@aquera/nile-elements 0.0.60 → 0.0.61
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/README.md +4 -0
- package/demo/filenames.txt +1 -1
- package/dist/index.iife.js +94 -24
- package/dist/nile-loader/nile-loader.cjs.js +1 -1
- package/dist/nile-loader/nile-loader.cjs.js.map +1 -1
- package/dist/nile-loader/nile-loader.css.cjs.js +1 -1
- package/dist/nile-loader/nile-loader.css.cjs.js.map +1 -1
- package/dist/nile-loader/nile-loader.css.esm.js +17 -3
- package/dist/nile-loader/nile-loader.esm.js +59 -3
- package/dist/src/nile-loader/nile-loader.css.js +15 -1
- package/dist/src/nile-loader/nile-loader.css.js.map +1 -1
- package/dist/src/nile-loader/nile-loader.d.ts +6 -2
- package/dist/src/nile-loader/nile-loader.js +82 -2
- package/dist/src/nile-loader/nile-loader.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/nile-loader/nile-loader.css.ts +15 -1
- package/src/nile-loader/nile-loader.ts +83 -5
@@ -1,2 +1,2 @@
|
|
1
|
-
System.register(["tslib","../index-cd83c5c8.cjs.js","lit/decorators.js","./nile-loader.css.cjs.js","lit"],function(_export,_context){"use strict";var i,t,
|
1
|
+
System.register(["tslib","../index-cd83c5c8.cjs.js","lit/decorators.js","./nile-loader.css.cjs.js","lit"],function(_export,_context){"use strict";var i,t,e,r,s,o,_templateObject,_templateObject2,_templateObject3,n;function _taggedTemplateLiteral(strings,raw){if(!raw){raw=strings.slice(0);}return Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}));}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _toPropertyKey(arg){var key=_toPrimitive(arg,"string");return typeof key==="symbol"?key:String(key);}function _toPrimitive(input,hint){if(typeof input!=="object"||input===null)return input;var prim=input[Symbol.toPrimitive];if(prim!==undefined){var res=prim.call(input,hint||"default");if(typeof res!=="object")return res;throw new TypeError("@@toPrimitive must return a primitive value.");}return(hint==="string"?String:Number)(input);}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function");}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});Object.defineProperty(subClass,"prototype",{writable:false});if(superClass)_setPrototypeOf(subClass,superClass);}function _setPrototypeOf(o,p){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(o,p){o.__proto__=p;return o;};return _setPrototypeOf(o,p);}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function _createSuperInternal(){var Super=_getPrototypeOf(Derived),result;if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget);}else{result=Super.apply(this,arguments);}return _possibleConstructorReturn(this,result);};}function _possibleConstructorReturn(self,call){if(call&&(typeof call==="object"||typeof call==="function")){return call;}else if(call!==void 0){throw new TypeError("Derived constructors may only return object or undefined");}return _assertThisInitialized(self);}function _assertThisInitialized(self){if(self===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return self;}function _isNativeReflectConstruct(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true;}catch(e){return false;}}function _getPrototypeOf(o){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o);};return _getPrototypeOf(o);}return{setters:[function(_tslib){i=_tslib.__decorate;},function(_index001CjsJs){t=_index001CjsJs.s;e=_index001CjsJs.x;},function(_litDecoratorsJs){r=_litDecoratorsJs.property;s=_litDecoratorsJs.customElement;},function(_nileLoaderCssCjsJs){o=_nileLoaderCssCjsJs.s;},function(_lit){}],execute:function(){_export("N",n=/*#__PURE__*/function(_t){_inherits(n,_t);var _super=_createSuper(n);function n(){var _this;_classCallCheck(this,n);_this=_super.apply(this,arguments),_this.height="60",_this.width="60",_this.position="absolute",_this.margin="",_this.variant="v3";return _this;}_createClass(n,[{key:"render",value:function render(){switch(this.variant){case"v1":default:return this.renderV1();case"v2":return this.renderV2();case"v3":return this.renderV3();}}},{key:"renderV1",value:function renderV1(){return e(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <div\n style=\"width: ","px; height: ","px; background-size: ","px; position: ","; margin: ","\"\n class=\"nile-loader__v1\"\n ></div>\n "])),this.width,this.height,this.width,this.position,this.margin);}},{key:"renderV2",value:function renderV2(){return e(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n <svg\n class=\"nile-loader__v2\"\n width=\"","\"\n height=\"","\"\n viewBox=\"0 0 32 32\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <g id=\"Loading circle\">\n <path\n id=\"Background\"\n d=\"M30 16C30 17.8385 29.6379 19.659 28.9343 21.3576C28.2308 23.0561 27.1995 24.5995 25.8995 25.8995C24.5995 27.1995 23.0561 28.2307 21.3576 28.9343C19.659 29.6379 17.8385 30 16 30C14.1615 30 12.341 29.6379 10.6424 28.9343C8.94387 28.2307 7.40052 27.1995 6.1005 25.8995C4.80048 24.5995 3.76925 23.0561 3.06569 21.3576C2.36212 19.659 2 17.8385 2 16C2 14.1615 2.36212 12.341 3.06569 10.6424C3.76926 8.94387 4.80049 7.40052 6.10051 6.1005C7.40053 4.80048 8.94388 3.76925 10.6424 3.06568C12.341 2.36212 14.1615 2 16 2C17.8385 2 19.659 2.36212 21.3576 3.06569C23.0561 3.76926 24.5995 4.80049 25.8995 6.10051C27.1995 7.40053 28.2308 8.94388 28.9343 10.6424C29.6379 12.341 30 14.1615 30 16Z\"\n stroke=\"#F2F4F7\"\n stroke-width=\"4\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n <path\n id=\"Line\"\n d=\"M16 2C17.8385 2 19.659 2.36212 21.3576 3.06569C23.0561 3.76925 24.5995 4.80049 25.8995 6.10051C27.1995 7.40053 28.2308 8.94388 28.9343 10.6424C29.6379 12.341 30 14.1615 30 16\"\n stroke=\"#005EA6\"\n stroke-width=\"4\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n </g>\n </svg>\n "])),this.width,this.height);}},{key:"renderV3",value:function renderV3(){return e(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n <svg\n class=\"nile-loader__v3\"\n width=\"","\"\n height=\"","\"\n viewBox=\"0 0 32 32\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <g id=\"Loading circle\">\n <path\n id=\"Background\"\n d=\"M30 16C30 17.8385 29.6379 19.659 28.9343 21.3576C28.2308 23.0561 27.1995 24.5995 25.8995 25.8995C24.5995 27.1995 23.0561 28.2307 21.3576 28.9343C19.659 29.6379 17.8385 30 16 30C14.1615 30 12.341 29.6379 10.6424 28.9343C8.94387 28.2307 7.40052 27.1995 6.1005 25.8995C4.80048 24.5995 3.76925 23.0561 3.06569 21.3576C2.36212 19.659 2 17.8385 2 16C2 14.1615 2.36212 12.341 3.06569 10.6424C3.76926 8.94387 4.80049 7.40052 6.10051 6.1005C7.40053 4.80048 8.94388 3.76925 10.6424 3.06568C12.341 2.36212 14.1615 2 16 2C17.8385 2 19.659 2.36212 21.3576 3.06569C23.0561 3.76926 24.5995 4.80049 25.8995 6.10051C27.1995 7.40053 28.2308 8.94388 28.9343 10.6424C29.6379 12.341 30 14.1615 30 16L30 16Z\"\n stroke=\"white\"\n stroke-width=\"4\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n <path\n id=\"Line\"\n d=\"M6.10051 6.1005C7.66275 4.53826 9.57255 3.36793 11.6738 2.68521C13.775 2.00248 16.0079 1.82675 18.1901 2.17236C20.3722 2.51798 22.4416 3.37514 24.229 4.67376C26.0164 5.97238 27.4711 7.67559 28.4741 9.64414C29.4771 11.6127 30 13.7907 30 16C30 18.2093 29.4771 20.3873 28.4741 22.3559C27.4711 24.3244 26.0164 26.0276 24.229 27.3262C22.4416 28.6249 20.3722 29.482 18.1901 29.8276\"\n stroke=\"#005EA6\"\n stroke-width=\"4\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n </g>\n </svg>\n "])),this.width,this.height);}}]);return n;}(t));n.styles=o,i([r({type:String})],n.prototype,"height",void 0),i([r({type:String})],n.prototype,"width",void 0),i([r({type:String})],n.prototype,"position",void 0),i([r({type:String})],n.prototype,"margin",void 0),i([r({type:String})],n.prototype,"variant",void 0),_export("N",n=i([s("nile-loader")],n));}};});
|
2
2
|
//# sourceMappingURL=nile-loader.cjs.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"nile-loader.cjs.js","sources":["../../../src/nile-loader/nile-loader.ts"],"sourcesContent":["import { CSSResultGroup, css } from 'lit';\nimport { LitElement, html } from 'lit-element';\nimport { customElement, property } from 'lit/decorators.js';\nimport styles from './nile-loader.css';\n\n@customElement('nile-loader')\nexport class NileLoader extends LitElement {\n
|
1
|
+
{"version":3,"file":"nile-loader.cjs.js","sources":["../../../src/nile-loader/nile-loader.ts"],"sourcesContent":["import { CSSResultGroup, css } from 'lit';\nimport { LitElement, html, TemplateResult } from 'lit-element';\nimport { customElement, property } from 'lit/decorators.js';\nimport styles from './nile-loader.css';\n\n@customElement('nile-loader')\nexport class NileLoader extends LitElement {\n @property({ type: String }) height = '60';\n @property({ type: String }) width = '60';\n @property({ type: String }) position = 'absolute';\n @property({ type: String }) margin = '';\n @property({ type: String }) variant = 'v3';\n\n static override styles: CSSResultGroup = styles;\n\n override render(): TemplateResult {\n switch (this.variant) {\n case 'v1':\n return this.renderV1();\n case 'v2':\n return this.renderV2();\n case 'v3':\n return this.renderV3();\n default:\n return this.renderV1();\n } }\n\n private renderV1(): TemplateResult {\n return html`\n <div\n style=\"width: ${this.width}px; height: ${this\n .height}px; background-size: ${this.width}px; position: ${this\n .position}; margin: ${this.margin}\"\n class=\"nile-loader__v1\"\n ></div>\n `;\n }\n\n private renderV2(): TemplateResult {\n return html`\n <svg\n class=\"nile-loader__v2\"\n width=\"${this.width}\"\n height=\"${this.height}\"\n viewBox=\"0 0 32 32\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <g id=\"Loading circle\">\n <path\n id=\"Background\"\n d=\"M30 16C30 17.8385 29.6379 19.659 28.9343 21.3576C28.2308 23.0561 27.1995 24.5995 25.8995 25.8995C24.5995 27.1995 23.0561 28.2307 21.3576 28.9343C19.659 29.6379 17.8385 30 16 30C14.1615 30 12.341 29.6379 10.6424 28.9343C8.94387 28.2307 7.40052 27.1995 6.1005 25.8995C4.80048 24.5995 3.76925 23.0561 3.06569 21.3576C2.36212 19.659 2 17.8385 2 16C2 14.1615 2.36212 12.341 3.06569 10.6424C3.76926 8.94387 4.80049 7.40052 6.10051 6.1005C7.40053 4.80048 8.94388 3.76925 10.6424 3.06568C12.341 2.36212 14.1615 2 16 2C17.8385 2 19.659 2.36212 21.3576 3.06569C23.0561 3.76926 24.5995 4.80049 25.8995 6.10051C27.1995 7.40053 28.2308 8.94388 28.9343 10.6424C29.6379 12.341 30 14.1615 30 16Z\"\n stroke=\"#F2F4F7\"\n stroke-width=\"4\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n <path\n id=\"Line\"\n d=\"M16 2C17.8385 2 19.659 2.36212 21.3576 3.06569C23.0561 3.76925 24.5995 4.80049 25.8995 6.10051C27.1995 7.40053 28.2308 8.94388 28.9343 10.6424C29.6379 12.341 30 14.1615 30 16\"\n stroke=\"#005EA6\"\n stroke-width=\"4\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n </g>\n </svg>\n `;\n }\n\n private renderV3(): TemplateResult {\n return html`\n <svg\n class=\"nile-loader__v3\"\n width=\"${this.width}\"\n height=\"${this.height}\"\n viewBox=\"0 0 32 32\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <g id=\"Loading circle\">\n <path\n id=\"Background\"\n d=\"M30 16C30 17.8385 29.6379 19.659 28.9343 21.3576C28.2308 23.0561 27.1995 24.5995 25.8995 25.8995C24.5995 27.1995 23.0561 28.2307 21.3576 28.9343C19.659 29.6379 17.8385 30 16 30C14.1615 30 12.341 29.6379 10.6424 28.9343C8.94387 28.2307 7.40052 27.1995 6.1005 25.8995C4.80048 24.5995 3.76925 23.0561 3.06569 21.3576C2.36212 19.659 2 17.8385 2 16C2 14.1615 2.36212 12.341 3.06569 10.6424C3.76926 8.94387 4.80049 7.40052 6.10051 6.1005C7.40053 4.80048 8.94388 3.76925 10.6424 3.06568C12.341 2.36212 14.1615 2 16 2C17.8385 2 19.659 2.36212 21.3576 3.06569C23.0561 3.76926 24.5995 4.80049 25.8995 6.10051C27.1995 7.40053 28.2308 8.94388 28.9343 10.6424C29.6379 12.341 30 14.1615 30 16L30 16Z\"\n stroke=\"white\"\n stroke-width=\"4\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n <path\n id=\"Line\"\n d=\"M6.10051 6.1005C7.66275 4.53826 9.57255 3.36793 11.6738 2.68521C13.775 2.00248 16.0079 1.82675 18.1901 2.17236C20.3722 2.51798 22.4416 3.37514 24.229 4.67376C26.0164 5.97238 27.4711 7.67559 28.4741 9.64414C29.4771 11.6127 30 13.7907 30 16C30 18.2093 29.4771 20.3873 28.4741 22.3559C27.4711 24.3244 26.0164 26.0276 24.229 27.3262C22.4416 28.6249 20.3722 29.482 18.1901 29.8276\"\n stroke=\"#005EA6\"\n stroke-width=\"4\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n </g>\n </svg>\n `;\n }\n}\n"],"names":["NileLoader","_t","_inherits","n","_super","_createSuper","this","height","width","position","margin","variant","_this","_createClass","key","value","render","renderV1","renderV2","renderV3","html","_templateObject","_taggedTemplateLiteral","_templateObject2","_templateObject3","LitElement","styles","__decorate","property","type","String","prototype","customElement"],"mappings":"qqHAMaA,CAAN,uBAAAC,EAAA,EAAAC,SAAA,CAAAC,CAAA,CAAAF,EAAA,MAAAG,MAAA,CAAAC,YAAA,CAAAF,CAAA,EAAA,SAAAA,EAAA,qEACuBG,EAAAA,KAAAA,CAAMC,MAAG,CAAA,IAAA,CACTD,KAAAA,CAAKE,KAAAA,CAAG,IACRF,CAAAA,KAAAA,CAAQG,QAAG,CAAA,UAAA,CACXH,KAAAA,CAAMI,MAAAA,CAAG,EACTJ,CAAAA,KAAAA,CAAOK,OAAG,CAAA,IA0FvC,QAAAC,KAAA,EAtFUC,YAAA,CAAAV,CAAA,GAAAW,GAAA,UAAAC,KAAA,UAAAC,OAAA,CACP,CAAA,OAAQV,IAAKK,CAAAA,OAAAA,EACX,IAAK,IAAA,CAML,QACE,MAAOL,KAAKW,CAAAA,QAAAA,CAAAA,CAAAA,CALd,IAAK,IAAA,CACH,MAAOX,KAAAA,CAAKY,QACd,CAAA,CAAA,CAAA,IAAK,IACH,CAAA,MAAOZ,KAAKa,CAAAA,QAAAA,CAAAA,CAAAA,EAGZ,CAEE,GAAAL,GAAA,YAAAC,KAAA,UAAAE,SAAA,CACN,CAAA,MAAOG,CAAAA,CAAI,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA,+KAEShB,IAAAA,CAAKE,MAAoBF,IACtCC,CAAAA,MAAAA,CAA8BD,KAAKE,KAAsBF,CAAAA,IAAAA,CACzDG,SAAqBH,IAAKI,CAAAA,MAAAA,EAIlC,CAEO,GAAAI,GAAA,YAAAC,KAAA,UAAAG,SAAA,CACN,CAAA,MAAOE,CAAAA,CAAI,CAAAG,gBAAA,GAAAA,gBAAA,CAAAD,sBAAA,qiDAGEhB,IAAKE,CAAAA,KAAAA,CACJF,IAAKC,CAAAA,MAAAA,EAyBpB,CAEO,GAAAO,GAAA,YAAAC,KAAA,UAAAI,SAAA,CACN,CAAA,MAAOC,CAAAA,CAAI,CAAAI,gBAAA,GAAAA,gBAAA,CAAAF,sBAAA,kvDAGEhB,IAAKE,CAAAA,KAAAA,CACJF,IAAKC,CAAAA,MAAAA,EAyBpB,CAvFeP,WAAAA,CAAAA,GAPcyB,CAAzB,GAOWzB,CAAAA,CAAM0B,MAAmBA,CAAAA,CAAAA,CANbC,CAAA,CAAA,CAA3BC,CAAS,CAAA,CAAEC,IAAMC,CAAAA,MAAAA,CAAAA,CAAAA,CAAAA,CAAwB9B,CAAA+B,CAAAA,SAAAA,CAAA,QAAA,CAAA,IAAA,EAAA,CAAA,CACdJ,CAAA,CAAA,CAA3BC,CAAS,CAAA,CAAEC,IAAMC,CAAAA,MAAAA,CAAAA,CAAAA,CAAAA,CAAuB9B,CAAA+B,CAAAA,SAAAA,CAAA,OAAA,CAAA,IAAA,EAAA,CAAA,CACbJ,CAAA,CAAA,CAA3BC,CAAS,CAAA,CAAEC,IAAMC,CAAAA,MAAAA,CAAAA,CAAAA,CAAAA,CAAgC9B,EAAA+B,SAAA,CAAA,UAAA,CAAA,IAAA,EACtBJ,CAAAA,CAAAA,CAAAA,CAAA,CAA3BC,CAAAA,CAAS,CAAEC,IAAAA,CAAMC,MAAsB9B,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAA+B,SAAA,CAAA,QAAA,CAAA,IAAA,EACZJ,CAAAA,CAAAA,CAAAA,CAAA,CAA3BC,CAAAA,CAAS,CAAEC,IAAAA,CAAMC,MAAyB9B,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAA+B,SAAA,CAAA,SAAA,CAAA,IAAA,EALhC/B,CAAAA,CAAAA,OAAAA,KAAAA,CAAAA,CAAU2B,CAAA,CAAA,CADtBK,CAAc,CAAA,aAAA,CAAA,CAAA,CACFhC"}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
System.register(["lit"],function(_export,_context){"use strict";var
|
1
|
+
System.register(["lit"],function(_export,_context){"use strict";var r,_templateObject,o;function _taggedTemplateLiteral(strings,raw){if(!raw){raw=strings.slice(0);}return Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}));}return{setters:[function(_lit){r=_lit.css;}],execute:function(){_export("s",o=r(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n .nile-loader__v1 {\n border-radius: 50%;\n display: inline-block;\n border-top: 1px solid var(--nile-colors-blue-500);\n border-right: 1px solid var(--nile-colors-blue-500);\n box-shadow: 0 1px 1px -1px var(--nile-colors-blue-500);\n box-sizing: border-box;\n animation: rotation 0.5s linear infinite;\n }\n\n @keyframes rotation {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n }\n\n .nile-loader__v2,\n .nile-loader__v3 {\n animation: spin 1.5s linear infinite;\n }\n\n @keyframes spin {\n 0% {\n transform: translate(-50%, -50%) rotate(0deg);\n }\n 100% {\n transform: translate(-50%, -50%) rotate(360deg);\n }\n }\n"]))));}};});
|
2
2
|
//# sourceMappingURL=nile-loader.css.cjs.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"nile-loader.css.cjs.js","sources":["../../../src/nile-loader/nile-loader.css.ts"],"sourcesContent":["import { css } from 'lit';\n\nexport default css`\n .nile-
|
1
|
+
{"version":3,"file":"nile-loader.css.cjs.js","sources":["../../../src/nile-loader/nile-loader.css.ts"],"sourcesContent":["import { css } from 'lit';\n\nexport default css`\n .nile-loader__v1 {\n border-radius: 50%;\n display: inline-block;\n border-top: 1px solid var(--nile-colors-blue-500);\n border-right: 1px solid var(--nile-colors-blue-500);\n box-shadow: 0 1px 1px -1px var(--nile-colors-blue-500);\n box-sizing: border-box;\n animation: rotation 0.5s linear infinite;\n }\n\n @keyframes rotation {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n }\n\n .nile-loader__v2,\n .nile-loader__v3 {\n animation: spin 1.5s linear infinite;\n }\n\n @keyframes spin {\n 0% {\n transform: translate(-50%, -50%) rotate(0deg);\n }\n 100% {\n transform: translate(-50%, -50%) rotate(360deg);\n }\n }\n`;\n"],"names":["styles","css","_templateObject","_taggedTemplateLiteral"],"mappings":"yUAEeA,CAAAA,CAAAC,CAAG,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA"}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import{css as
|
2
|
-
.nile-
|
1
|
+
import{css as r}from"lit";var o=r`
|
2
|
+
.nile-loader__v1 {
|
3
3
|
border-radius: 50%;
|
4
4
|
display: inline-block;
|
5
5
|
border-top: 1px solid var(--nile-colors-blue-500);
|
@@ -17,4 +17,18 @@ import{css as o}from"lit";var r=o`
|
|
17
17
|
transform: rotate(360deg);
|
18
18
|
}
|
19
19
|
}
|
20
|
-
|
20
|
+
|
21
|
+
.nile-loader__v2,
|
22
|
+
.nile-loader__v3 {
|
23
|
+
animation: spin 1.5s linear infinite;
|
24
|
+
}
|
25
|
+
|
26
|
+
@keyframes spin {
|
27
|
+
0% {
|
28
|
+
transform: translate(-50%, -50%) rotate(0deg);
|
29
|
+
}
|
30
|
+
100% {
|
31
|
+
transform: translate(-50%, -50%) rotate(360deg);
|
32
|
+
}
|
33
|
+
}
|
34
|
+
`;export{o as s};
|
@@ -1,6 +1,62 @@
|
|
1
|
-
import{__decorate as i}from"tslib";import{s as t,x as
|
1
|
+
import{__decorate as i}from"tslib";import{s as t,x as e}from"../index-cd2f9c12.esm.js";import{property as r,customElement as s}from"lit/decorators.js";import{s as o}from"./nile-loader.css.esm.js";import"lit";let n=class extends t{constructor(){super(...arguments),this.height="60",this.width="60",this.position="absolute",this.margin="",this.variant="v3"}render(){switch(this.variant){case"v1":default:return this.renderV1();case"v2":return this.renderV2();case"v3":return this.renderV3()}}renderV1(){return e`
|
2
2
|
<div
|
3
3
|
style="width: ${this.width}px; height: ${this.height}px; background-size: ${this.width}px; position: ${this.position}; margin: ${this.margin}"
|
4
|
-
class="nile-
|
4
|
+
class="nile-loader__v1"
|
5
5
|
></div>
|
6
|
-
`}
|
6
|
+
`}renderV2(){return e`
|
7
|
+
<svg
|
8
|
+
class="nile-loader__v2"
|
9
|
+
width="${this.width}"
|
10
|
+
height="${this.height}"
|
11
|
+
viewBox="0 0 32 32"
|
12
|
+
fill="none"
|
13
|
+
xmlns="http://www.w3.org/2000/svg"
|
14
|
+
>
|
15
|
+
<g id="Loading circle">
|
16
|
+
<path
|
17
|
+
id="Background"
|
18
|
+
d="M30 16C30 17.8385 29.6379 19.659 28.9343 21.3576C28.2308 23.0561 27.1995 24.5995 25.8995 25.8995C24.5995 27.1995 23.0561 28.2307 21.3576 28.9343C19.659 29.6379 17.8385 30 16 30C14.1615 30 12.341 29.6379 10.6424 28.9343C8.94387 28.2307 7.40052 27.1995 6.1005 25.8995C4.80048 24.5995 3.76925 23.0561 3.06569 21.3576C2.36212 19.659 2 17.8385 2 16C2 14.1615 2.36212 12.341 3.06569 10.6424C3.76926 8.94387 4.80049 7.40052 6.10051 6.1005C7.40053 4.80048 8.94388 3.76925 10.6424 3.06568C12.341 2.36212 14.1615 2 16 2C17.8385 2 19.659 2.36212 21.3576 3.06569C23.0561 3.76926 24.5995 4.80049 25.8995 6.10051C27.1995 7.40053 28.2308 8.94388 28.9343 10.6424C29.6379 12.341 30 14.1615 30 16Z"
|
19
|
+
stroke="#F2F4F7"
|
20
|
+
stroke-width="4"
|
21
|
+
stroke-linecap="round"
|
22
|
+
stroke-linejoin="round"
|
23
|
+
/>
|
24
|
+
<path
|
25
|
+
id="Line"
|
26
|
+
d="M16 2C17.8385 2 19.659 2.36212 21.3576 3.06569C23.0561 3.76925 24.5995 4.80049 25.8995 6.10051C27.1995 7.40053 28.2308 8.94388 28.9343 10.6424C29.6379 12.341 30 14.1615 30 16"
|
27
|
+
stroke="#005EA6"
|
28
|
+
stroke-width="4"
|
29
|
+
stroke-linecap="round"
|
30
|
+
stroke-linejoin="round"
|
31
|
+
/>
|
32
|
+
</g>
|
33
|
+
</svg>
|
34
|
+
`}renderV3(){return e`
|
35
|
+
<svg
|
36
|
+
class="nile-loader__v3"
|
37
|
+
width="${this.width}"
|
38
|
+
height="${this.height}"
|
39
|
+
viewBox="0 0 32 32"
|
40
|
+
fill="none"
|
41
|
+
xmlns="http://www.w3.org/2000/svg"
|
42
|
+
>
|
43
|
+
<g id="Loading circle">
|
44
|
+
<path
|
45
|
+
id="Background"
|
46
|
+
d="M30 16C30 17.8385 29.6379 19.659 28.9343 21.3576C28.2308 23.0561 27.1995 24.5995 25.8995 25.8995C24.5995 27.1995 23.0561 28.2307 21.3576 28.9343C19.659 29.6379 17.8385 30 16 30C14.1615 30 12.341 29.6379 10.6424 28.9343C8.94387 28.2307 7.40052 27.1995 6.1005 25.8995C4.80048 24.5995 3.76925 23.0561 3.06569 21.3576C2.36212 19.659 2 17.8385 2 16C2 14.1615 2.36212 12.341 3.06569 10.6424C3.76926 8.94387 4.80049 7.40052 6.10051 6.1005C7.40053 4.80048 8.94388 3.76925 10.6424 3.06568C12.341 2.36212 14.1615 2 16 2C17.8385 2 19.659 2.36212 21.3576 3.06569C23.0561 3.76926 24.5995 4.80049 25.8995 6.10051C27.1995 7.40053 28.2308 8.94388 28.9343 10.6424C29.6379 12.341 30 14.1615 30 16L30 16Z"
|
47
|
+
stroke="white"
|
48
|
+
stroke-width="4"
|
49
|
+
stroke-linecap="round"
|
50
|
+
stroke-linejoin="round"
|
51
|
+
/>
|
52
|
+
<path
|
53
|
+
id="Line"
|
54
|
+
d="M6.10051 6.1005C7.66275 4.53826 9.57255 3.36793 11.6738 2.68521C13.775 2.00248 16.0079 1.82675 18.1901 2.17236C20.3722 2.51798 22.4416 3.37514 24.229 4.67376C26.0164 5.97238 27.4711 7.67559 28.4741 9.64414C29.4771 11.6127 30 13.7907 30 16C30 18.2093 29.4771 20.3873 28.4741 22.3559C27.4711 24.3244 26.0164 26.0276 24.229 27.3262C22.4416 28.6249 20.3722 29.482 18.1901 29.8276"
|
55
|
+
stroke="#005EA6"
|
56
|
+
stroke-width="4"
|
57
|
+
stroke-linecap="round"
|
58
|
+
stroke-linejoin="round"
|
59
|
+
/>
|
60
|
+
</g>
|
61
|
+
</svg>
|
62
|
+
`}};n.styles=o,i([r({type:String})],n.prototype,"height",void 0),i([r({type:String})],n.prototype,"width",void 0),i([r({type:String})],n.prototype,"position",void 0),i([r({type:String})],n.prototype,"margin",void 0),i([r({type:String})],n.prototype,"variant",void 0),n=i([s("nile-loader")],n);export{n as N};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { css } from 'lit';
|
2
2
|
export default css `
|
3
|
-
.nile-
|
3
|
+
.nile-loader__v1 {
|
4
4
|
border-radius: 50%;
|
5
5
|
display: inline-block;
|
6
6
|
border-top: 1px solid var(--nile-colors-blue-500);
|
@@ -18,5 +18,19 @@ export default css `
|
|
18
18
|
transform: rotate(360deg);
|
19
19
|
}
|
20
20
|
}
|
21
|
+
|
22
|
+
.nile-loader__v2,
|
23
|
+
.nile-loader__v3 {
|
24
|
+
animation: spin 1.5s linear infinite;
|
25
|
+
}
|
26
|
+
|
27
|
+
@keyframes spin {
|
28
|
+
0% {
|
29
|
+
transform: translate(-50%, -50%) rotate(0deg);
|
30
|
+
}
|
31
|
+
100% {
|
32
|
+
transform: translate(-50%, -50%) rotate(360deg);
|
33
|
+
}
|
34
|
+
}
|
21
35
|
`;
|
22
36
|
//# sourceMappingURL=nile-loader.css.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"nile-loader.css.js","sourceRoot":"","sources":["../../../src/nile-loader/nile-loader.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,eAAe,GAAG,CAAA
|
1
|
+
{"version":3,"file":"nile-loader.css.js","sourceRoot":"","sources":["../../../src/nile-loader/nile-loader.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,eAAe,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiCjB,CAAC","sourcesContent":["import { css } from 'lit';\n\nexport default css`\n .nile-loader__v1 {\n border-radius: 50%;\n display: inline-block;\n border-top: 1px solid var(--nile-colors-blue-500);\n border-right: 1px solid var(--nile-colors-blue-500);\n box-shadow: 0 1px 1px -1px var(--nile-colors-blue-500);\n box-sizing: border-box;\n animation: rotation 0.5s linear infinite;\n }\n\n @keyframes rotation {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n }\n\n .nile-loader__v2,\n .nile-loader__v3 {\n animation: spin 1.5s linear infinite;\n }\n\n @keyframes spin {\n 0% {\n transform: translate(-50%, -50%) rotate(0deg);\n }\n 100% {\n transform: translate(-50%, -50%) rotate(360deg);\n }\n }\n`;\n"]}
|
@@ -1,10 +1,14 @@
|
|
1
1
|
import { CSSResultGroup } from 'lit';
|
2
|
-
import { LitElement } from 'lit-element';
|
2
|
+
import { LitElement, TemplateResult } from 'lit-element';
|
3
3
|
export declare class NileLoader extends LitElement {
|
4
4
|
height: string;
|
5
5
|
width: string;
|
6
6
|
position: string;
|
7
7
|
margin: string;
|
8
|
+
variant: string;
|
8
9
|
static styles: CSSResultGroup;
|
9
|
-
render():
|
10
|
+
render(): TemplateResult;
|
11
|
+
private renderV1;
|
12
|
+
private renderV2;
|
13
|
+
private renderV3;
|
10
14
|
}
|
@@ -9,15 +9,92 @@ let NileLoader = class NileLoader extends LitElement {
|
|
9
9
|
this.width = '60';
|
10
10
|
this.position = 'absolute';
|
11
11
|
this.margin = '';
|
12
|
+
this.variant = 'v3';
|
12
13
|
}
|
13
14
|
render() {
|
15
|
+
switch (this.variant) {
|
16
|
+
case 'v1':
|
17
|
+
return this.renderV1();
|
18
|
+
case 'v2':
|
19
|
+
return this.renderV2();
|
20
|
+
case 'v3':
|
21
|
+
return this.renderV3();
|
22
|
+
default:
|
23
|
+
return this.renderV1();
|
24
|
+
}
|
25
|
+
}
|
26
|
+
renderV1() {
|
14
27
|
return html `
|
15
28
|
<div
|
16
|
-
style="width: ${this.width}px; height: ${this
|
17
|
-
|
29
|
+
style="width: ${this.width}px; height: ${this
|
30
|
+
.height}px; background-size: ${this.width}px; position: ${this
|
31
|
+
.position}; margin: ${this.margin}"
|
32
|
+
class="nile-loader__v1"
|
18
33
|
></div>
|
19
34
|
`;
|
20
35
|
}
|
36
|
+
renderV2() {
|
37
|
+
return html `
|
38
|
+
<svg
|
39
|
+
class="nile-loader__v2"
|
40
|
+
width="${this.width}"
|
41
|
+
height="${this.height}"
|
42
|
+
viewBox="0 0 32 32"
|
43
|
+
fill="none"
|
44
|
+
xmlns="http://www.w3.org/2000/svg"
|
45
|
+
>
|
46
|
+
<g id="Loading circle">
|
47
|
+
<path
|
48
|
+
id="Background"
|
49
|
+
d="M30 16C30 17.8385 29.6379 19.659 28.9343 21.3576C28.2308 23.0561 27.1995 24.5995 25.8995 25.8995C24.5995 27.1995 23.0561 28.2307 21.3576 28.9343C19.659 29.6379 17.8385 30 16 30C14.1615 30 12.341 29.6379 10.6424 28.9343C8.94387 28.2307 7.40052 27.1995 6.1005 25.8995C4.80048 24.5995 3.76925 23.0561 3.06569 21.3576C2.36212 19.659 2 17.8385 2 16C2 14.1615 2.36212 12.341 3.06569 10.6424C3.76926 8.94387 4.80049 7.40052 6.10051 6.1005C7.40053 4.80048 8.94388 3.76925 10.6424 3.06568C12.341 2.36212 14.1615 2 16 2C17.8385 2 19.659 2.36212 21.3576 3.06569C23.0561 3.76926 24.5995 4.80049 25.8995 6.10051C27.1995 7.40053 28.2308 8.94388 28.9343 10.6424C29.6379 12.341 30 14.1615 30 16Z"
|
50
|
+
stroke="#F2F4F7"
|
51
|
+
stroke-width="4"
|
52
|
+
stroke-linecap="round"
|
53
|
+
stroke-linejoin="round"
|
54
|
+
/>
|
55
|
+
<path
|
56
|
+
id="Line"
|
57
|
+
d="M16 2C17.8385 2 19.659 2.36212 21.3576 3.06569C23.0561 3.76925 24.5995 4.80049 25.8995 6.10051C27.1995 7.40053 28.2308 8.94388 28.9343 10.6424C29.6379 12.341 30 14.1615 30 16"
|
58
|
+
stroke="#005EA6"
|
59
|
+
stroke-width="4"
|
60
|
+
stroke-linecap="round"
|
61
|
+
stroke-linejoin="round"
|
62
|
+
/>
|
63
|
+
</g>
|
64
|
+
</svg>
|
65
|
+
`;
|
66
|
+
}
|
67
|
+
renderV3() {
|
68
|
+
return html `
|
69
|
+
<svg
|
70
|
+
class="nile-loader__v3"
|
71
|
+
width="${this.width}"
|
72
|
+
height="${this.height}"
|
73
|
+
viewBox="0 0 32 32"
|
74
|
+
fill="none"
|
75
|
+
xmlns="http://www.w3.org/2000/svg"
|
76
|
+
>
|
77
|
+
<g id="Loading circle">
|
78
|
+
<path
|
79
|
+
id="Background"
|
80
|
+
d="M30 16C30 17.8385 29.6379 19.659 28.9343 21.3576C28.2308 23.0561 27.1995 24.5995 25.8995 25.8995C24.5995 27.1995 23.0561 28.2307 21.3576 28.9343C19.659 29.6379 17.8385 30 16 30C14.1615 30 12.341 29.6379 10.6424 28.9343C8.94387 28.2307 7.40052 27.1995 6.1005 25.8995C4.80048 24.5995 3.76925 23.0561 3.06569 21.3576C2.36212 19.659 2 17.8385 2 16C2 14.1615 2.36212 12.341 3.06569 10.6424C3.76926 8.94387 4.80049 7.40052 6.10051 6.1005C7.40053 4.80048 8.94388 3.76925 10.6424 3.06568C12.341 2.36212 14.1615 2 16 2C17.8385 2 19.659 2.36212 21.3576 3.06569C23.0561 3.76926 24.5995 4.80049 25.8995 6.10051C27.1995 7.40053 28.2308 8.94388 28.9343 10.6424C29.6379 12.341 30 14.1615 30 16L30 16Z"
|
81
|
+
stroke="white"
|
82
|
+
stroke-width="4"
|
83
|
+
stroke-linecap="round"
|
84
|
+
stroke-linejoin="round"
|
85
|
+
/>
|
86
|
+
<path
|
87
|
+
id="Line"
|
88
|
+
d="M6.10051 6.1005C7.66275 4.53826 9.57255 3.36793 11.6738 2.68521C13.775 2.00248 16.0079 1.82675 18.1901 2.17236C20.3722 2.51798 22.4416 3.37514 24.229 4.67376C26.0164 5.97238 27.4711 7.67559 28.4741 9.64414C29.4771 11.6127 30 13.7907 30 16C30 18.2093 29.4771 20.3873 28.4741 22.3559C27.4711 24.3244 26.0164 26.0276 24.229 27.3262C22.4416 28.6249 20.3722 29.482 18.1901 29.8276"
|
89
|
+
stroke="#005EA6"
|
90
|
+
stroke-width="4"
|
91
|
+
stroke-linecap="round"
|
92
|
+
stroke-linejoin="round"
|
93
|
+
/>
|
94
|
+
</g>
|
95
|
+
</svg>
|
96
|
+
`;
|
97
|
+
}
|
21
98
|
};
|
22
99
|
NileLoader.styles = styles;
|
23
100
|
__decorate([
|
@@ -32,6 +109,9 @@ __decorate([
|
|
32
109
|
__decorate([
|
33
110
|
property({ type: String })
|
34
111
|
], NileLoader.prototype, "margin", void 0);
|
112
|
+
__decorate([
|
113
|
+
property({ type: String })
|
114
|
+
], NileLoader.prototype, "variant", void 0);
|
35
115
|
NileLoader = __decorate([
|
36
116
|
customElement('nile-loader')
|
37
117
|
], NileLoader);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"nile-loader.js","sourceRoot":"","sources":["../../../src/nile-loader/nile-loader.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,UAAU,EAAE,IAAI,
|
1
|
+
{"version":3,"file":"nile-loader.js","sourceRoot":"","sources":["../../../src/nile-loader/nile-loader.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAkB,MAAM,aAAa,CAAC;AAC/D,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,MAAM,MAAM,mBAAmB,CAAC;AAGhC,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,UAAU;IAAnC;;QACuB,WAAM,GAAG,IAAI,CAAC;QACd,UAAK,GAAG,IAAI,CAAC;QACb,aAAQ,GAAG,UAAU,CAAC;QACtB,WAAM,GAAG,EAAE,CAAC;QACZ,YAAO,GAAG,IAAI,CAAC;IA0F7C,CAAC;IAtFU,MAAM;QACb,QAAQ,IAAI,CAAC,OAAO,EAAE;YACpB,KAAK,IAAI;gBACP,OAAO,IAAI,CAAC,QAAQ,EAAE,CAAC;YACzB,KAAK,IAAI;gBACP,OAAO,IAAI,CAAC,QAAQ,EAAE,CAAC;YACzB,KAAK,IAAI;gBACP,OAAO,IAAI,CAAC,QAAQ,EAAE,CAAC;YACzB;gBACE,OAAO,IAAI,CAAC,QAAQ,EAAE,CAAC;SAC1B;IAAE,CAAC;IAEE,QAAQ;QACd,OAAO,IAAI,CAAA;;wBAES,IAAI,CAAC,KAAK,eAAe,IAAI;aAC1C,MAAM,wBAAwB,IAAI,CAAC,KAAK,iBAAiB,IAAI;aAC7D,QAAQ,aAAa,IAAI,CAAC,MAAM;;;KAGtC,CAAC;IACJ,CAAC;IAEO,QAAQ;QACd,OAAO,IAAI,CAAA;;;iBAGE,IAAI,CAAC,KAAK;kBACT,IAAI,CAAC,MAAM;;;;;;;;;;;;;;;;;;;;;;;;KAwBxB,CAAC;IACJ,CAAC;IAEO,QAAQ;QACd,OAAO,IAAI,CAAA;;;iBAGE,IAAI,CAAC,KAAK;kBACT,IAAI,CAAC,MAAM;;;;;;;;;;;;;;;;;;;;;;;;KAwBxB,CAAC;IACJ,CAAC;;AAvFe,iBAAM,GAAmB,MAAM,CAAC;AANpB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;0CAAe;AACd;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;yCAAc;AACb;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;4CAAuB;AACtB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;0CAAa;AACZ;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;2CAAgB;AALhC,UAAU;IADtB,aAAa,CAAC,aAAa,CAAC;GAChB,UAAU,CA+FtB;SA/FY,UAAU","sourcesContent":["import { CSSResultGroup, css } from 'lit';\nimport { LitElement, html, TemplateResult } from 'lit-element';\nimport { customElement, property } from 'lit/decorators.js';\nimport styles from './nile-loader.css';\n\n@customElement('nile-loader')\nexport class NileLoader extends LitElement {\n @property({ type: String }) height = '60';\n @property({ type: String }) width = '60';\n @property({ type: String }) position = 'absolute';\n @property({ type: String }) margin = '';\n @property({ type: String }) variant = 'v3';\n\n static override styles: CSSResultGroup = styles;\n\n override render(): TemplateResult {\n switch (this.variant) {\n case 'v1':\n return this.renderV1();\n case 'v2':\n return this.renderV2();\n case 'v3':\n return this.renderV3();\n default:\n return this.renderV1();\n } }\n\n private renderV1(): TemplateResult {\n return html`\n <div\n style=\"width: ${this.width}px; height: ${this\n .height}px; background-size: ${this.width}px; position: ${this\n .position}; margin: ${this.margin}\"\n class=\"nile-loader__v1\"\n ></div>\n `;\n }\n\n private renderV2(): TemplateResult {\n return html`\n <svg\n class=\"nile-loader__v2\"\n width=\"${this.width}\"\n height=\"${this.height}\"\n viewBox=\"0 0 32 32\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <g id=\"Loading circle\">\n <path\n id=\"Background\"\n d=\"M30 16C30 17.8385 29.6379 19.659 28.9343 21.3576C28.2308 23.0561 27.1995 24.5995 25.8995 25.8995C24.5995 27.1995 23.0561 28.2307 21.3576 28.9343C19.659 29.6379 17.8385 30 16 30C14.1615 30 12.341 29.6379 10.6424 28.9343C8.94387 28.2307 7.40052 27.1995 6.1005 25.8995C4.80048 24.5995 3.76925 23.0561 3.06569 21.3576C2.36212 19.659 2 17.8385 2 16C2 14.1615 2.36212 12.341 3.06569 10.6424C3.76926 8.94387 4.80049 7.40052 6.10051 6.1005C7.40053 4.80048 8.94388 3.76925 10.6424 3.06568C12.341 2.36212 14.1615 2 16 2C17.8385 2 19.659 2.36212 21.3576 3.06569C23.0561 3.76926 24.5995 4.80049 25.8995 6.10051C27.1995 7.40053 28.2308 8.94388 28.9343 10.6424C29.6379 12.341 30 14.1615 30 16Z\"\n stroke=\"#F2F4F7\"\n stroke-width=\"4\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n <path\n id=\"Line\"\n d=\"M16 2C17.8385 2 19.659 2.36212 21.3576 3.06569C23.0561 3.76925 24.5995 4.80049 25.8995 6.10051C27.1995 7.40053 28.2308 8.94388 28.9343 10.6424C29.6379 12.341 30 14.1615 30 16\"\n stroke=\"#005EA6\"\n stroke-width=\"4\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n </g>\n </svg>\n `;\n }\n\n private renderV3(): TemplateResult {\n return html`\n <svg\n class=\"nile-loader__v3\"\n width=\"${this.width}\"\n height=\"${this.height}\"\n viewBox=\"0 0 32 32\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <g id=\"Loading circle\">\n <path\n id=\"Background\"\n d=\"M30 16C30 17.8385 29.6379 19.659 28.9343 21.3576C28.2308 23.0561 27.1995 24.5995 25.8995 25.8995C24.5995 27.1995 23.0561 28.2307 21.3576 28.9343C19.659 29.6379 17.8385 30 16 30C14.1615 30 12.341 29.6379 10.6424 28.9343C8.94387 28.2307 7.40052 27.1995 6.1005 25.8995C4.80048 24.5995 3.76925 23.0561 3.06569 21.3576C2.36212 19.659 2 17.8385 2 16C2 14.1615 2.36212 12.341 3.06569 10.6424C3.76926 8.94387 4.80049 7.40052 6.10051 6.1005C7.40053 4.80048 8.94388 3.76925 10.6424 3.06568C12.341 2.36212 14.1615 2 16 2C17.8385 2 19.659 2.36212 21.3576 3.06569C23.0561 3.76926 24.5995 4.80049 25.8995 6.10051C27.1995 7.40053 28.2308 8.94388 28.9343 10.6424C29.6379 12.341 30 14.1615 30 16L30 16Z\"\n stroke=\"white\"\n stroke-width=\"4\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n <path\n id=\"Line\"\n d=\"M6.10051 6.1005C7.66275 4.53826 9.57255 3.36793 11.6738 2.68521C13.775 2.00248 16.0079 1.82675 18.1901 2.17236C20.3722 2.51798 22.4416 3.37514 24.229 4.67376C26.0164 5.97238 27.4711 7.67559 28.4741 9.64414C29.4771 11.6127 30 13.7907 30 16C30 18.2093 29.4771 20.3873 28.4741 22.3559C27.4711 24.3244 26.0164 26.0276 24.229 27.3262C22.4416 28.6249 20.3722 29.482 18.1901 29.8276\"\n stroke=\"#005EA6\"\n stroke-width=\"4\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n />\n </g>\n </svg>\n `;\n }\n}\n"]}
|