@fluid-topics/ft-skeleton 1.1.70 → 1.1.71
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/build/ft-skeleton.light.js +14 -14
- package/build/ft-skeleton.min.js +179 -123
- package/package.json +3 -3
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";(()=>{var $=Object.create;var m=Object.defineProperty;var y=Object.getOwnPropertyDescriptor;var w=Object.getOwnPropertyNames;var C=Object.getPrototypeOf,W=Object.prototype.hasOwnProperty;var g=(t,r)=>()=>(r||t((r={exports:{}}).exports,r),r.exports);var S=(t,r,i,c)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of w(r))!W.call(t,n)&&n!==i&&m(t,n,{get:()=>r[n],enumerable:!(c=y(r,n))||c.enumerable});return t};var l=(t,r,i)=>(i=t!=null?$(C(t)):{},S(r||!t||!t.__esModule?m(i,"default",{value:t,enumerable:!0}):i,t));var s=g((E,f)=>{f.exports=ftGlobals.wcUtils});var d=g((O,p)=>{p.exports=ftGlobals.lit});var x=l(s());var k=l(d()),u=l(s());var h=l(d()),o=l(s()),e={display:o.FtCssVariableFactory.create("--ft-skeleton--display","","DISPLAY","block"),width:o.FtCssVariableFactory.create("--ft-skeleton--width","","SIZE","100%"),height:o.FtCssVariableFactory.create("--ft-skeleton--height","","SIZE","20px"),backgroundColor:o.FtCssVariableFactory.create("--ft-skeleton--background-color","","COLOR","#f1f1f1"),glareWidth:o.FtCssVariableFactory.create("--ft-skeleton--glare-width","","SIZE","200px"),glareColor:o.FtCssVariableFactory.create("--ft-skeleton--glare-color","","COLOR","rgba(255, 255, 255, .6)"),animationDuration:o.FtCssVariableFactory.create("--ft-skeleton--animation-duration","","UNKNOWN","2s"),borderRadiusM:o.FtCssVariableFactory.external(o.designSystemVariables.borderRadiusM,"Design system")},b=h.css`
|
|
2
2
|
:host {
|
|
3
|
-
width: ${
|
|
4
|
-
height: ${
|
|
5
|
-
display: ${
|
|
3
|
+
width: ${e.width};
|
|
4
|
+
height: ${e.height};
|
|
5
|
+
display: ${e.display};
|
|
6
6
|
overflow: hidden;
|
|
7
|
-
border-radius: ${
|
|
7
|
+
border-radius: ${e.borderRadiusM};
|
|
8
8
|
background: linear-gradient(
|
|
9
9
|
90deg,
|
|
10
10
|
transparent,
|
|
11
|
-
${
|
|
12
|
-
${
|
|
13
|
-
transparent ${
|
|
14
|
-
), ${
|
|
11
|
+
${e.glareColor} calc(0.45 * ${e.glareWidth}),
|
|
12
|
+
${e.glareColor} calc(0.55 * ${e.glareWidth}),
|
|
13
|
+
transparent ${e.glareWidth}
|
|
14
|
+
), ${e.backgroundColor};
|
|
15
15
|
background-repeat: repeat-y;
|
|
16
16
|
background-size: 100vw 100vh;
|
|
17
17
|
background-attachment: fixed;
|
|
18
|
-
background-position: calc(${
|
|
19
|
-
animation: shine ${
|
|
18
|
+
background-position: calc(${e.glareWidth} * -1) 0;
|
|
19
|
+
animation: shine ${e.animationDuration} infinite;
|
|
20
20
|
animation-timing-function: linear;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
@keyframes shine {
|
|
24
24
|
to {
|
|
25
|
-
background-position: calc(100vw + ${
|
|
25
|
+
background-position: calc(100vw + ${e.glareWidth}) 0, calc(${e.glareWidth} * -1) 0;
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
-
`;class
|
|
29
|
-
`}}
|
|
28
|
+
`;var a=class extends u.FtLitElement{render(){return k.html`
|
|
29
|
+
`}};a.elementDefinitions={};a.styles=b;(0,x.customElement)("ft-skeleton")(a);})();
|