@fluid-topics/ft-skeleton 2.0.27 → 2.0.29

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/define.js CHANGED
@@ -1,3 +1,3 @@
1
- import { customElement } from "@fluid-topics/ft-wc-utils";
2
- import { FtSkeleton } from "./ft-skeleton";
3
- customElement("ft-skeleton")(FtSkeleton);
1
+ import { customElements } from "@fluid-topics/ft-wc-utils";
2
+ import definitions from "./definitions";
3
+ customElements(definitions);
@@ -0,0 +1,5 @@
1
+ import { FtSkeleton } from "./ft-skeleton";
2
+ declare const _default: {
3
+ "ft-skeleton": typeof FtSkeleton;
4
+ };
5
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import { FtSkeleton } from "./ft-skeleton";
2
+ export default {
3
+ "ft-skeleton": FtSkeleton,
4
+ };
@@ -1,29 +1,29 @@
1
- "use strict";(()=>{var y=Object.create;var g=Object.defineProperty;var x=Object.getOwnPropertyDescriptor;var w=Object.getOwnPropertyNames;var C=Object.getPrototypeOf,W=Object.prototype.hasOwnProperty;var m=(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&&g(t,n,{get:()=>r[n],enumerable:!(c=x(r,n))||c.enumerable});return t};var l=(t,r,i)=>(i=t!=null?y(C(t)):{},S(r||!t||!t.__esModule?g(i,"default",{value:t,enumerable:!0}):i,t));var s=m((E,h)=>{h.exports=ftGlobals.wcUtils});var d=m((O,f)=>{f.exports=ftGlobals.lit});var $=l(s());var k=l(d()),u=l(s());var p=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=p.css`
1
+ "use strict";(()=>{var x=Object.create;var g=Object.defineProperty;var w=Object.getOwnPropertyDescriptor;var C=Object.getOwnPropertyNames;var W=Object.getPrototypeOf,S=Object.prototype.hasOwnProperty;var m=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports);var D=(e,r,i,c)=>{if(r&&typeof r=="object"||typeof r=="function")for(let n of C(r))!S.call(e,n)&&n!==i&&g(e,n,{get:()=>r[n],enumerable:!(c=w(r,n))||c.enumerable});return e};var l=(e,r,i)=>(i=e!=null?x(W(e)):{},D(r||!e||!e.__esModule?g(i,"default",{value:e,enumerable:!0}):i,e));var s=m((O,f)=>{f.exports=ftGlobals.wcUtils});var d=m((R,h)=>{h.exports=ftGlobals.lit});var y=l(s());var k=l(d()),u=l(s());var p=l(d()),o=l(s()),t={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=p.css`
2
2
  :host {
3
- width: ${e.width};
4
- height: ${e.height};
5
- display: ${e.display};
3
+ width: ${t.width};
4
+ height: ${t.height};
5
+ display: ${t.display};
6
6
  overflow: hidden;
7
- border-radius: ${e.borderRadiusM};
7
+ border-radius: ${t.borderRadiusM};
8
8
  background: linear-gradient(
9
9
  90deg,
10
10
  transparent,
11
- ${e.glareColor} calc(0.45 * ${e.glareWidth}),
12
- ${e.glareColor} calc(0.55 * ${e.glareWidth}),
13
- transparent ${e.glareWidth}
14
- ), ${e.backgroundColor};
11
+ ${t.glareColor} calc(0.45 * ${t.glareWidth}),
12
+ ${t.glareColor} calc(0.55 * ${t.glareWidth}),
13
+ transparent ${t.glareWidth}
14
+ ), ${t.backgroundColor};
15
15
  background-repeat: repeat-y;
16
16
  background-size: 100vw 100vh;
17
17
  background-attachment: fixed;
18
- background-position: calc(${e.glareWidth} * -1) 0;
19
- animation: shine ${e.animationDuration} infinite;
18
+ background-position: calc(${t.glareWidth} * -1) 0;
19
+ animation: shine ${t.animationDuration} infinite;
20
20
  animation-timing-function: linear;
21
21
  }
22
22
 
23
23
  @keyframes shine {
24
24
  to {
25
- background-position: calc(100vw + ${e.glareWidth}) 0, calc(${e.glareWidth} * -1) 0;
25
+ background-position: calc(100vw + ${t.glareWidth}) 0, calc(${t.glareWidth} * -1) 0;
26
26
  }
27
27
  }
28
28
  `;var a=class extends u.FtLitElement{render(){return k.html`
29
- `}};a.elementDefinitions={};a.styles=b;(0,$.customElement)("ft-skeleton")(a);})();
29
+ `}};a.elementDefinitions={};a.styles=b;var $={"ft-skeleton":a};(0,y.customElements)($);})();