@kyndryl-design-system/shidoka-applications 2.66.3 → 2.66.4
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_ as e,a as t,b as i,c as
|
|
1
|
+
import{_ as e,a as t,b as i,c as n,d as a}from"../../../vendor/tslib-Ac8XvvSX.js";import{i as s,t as r,r as o,n as l}from"../../../vendor/@lit/reactive-element-f91Vet7N.js";import{e as d,x as h}from"../../../vendor/lit-html-fDTfWwFR.js";import{i as c}from"../../../vendor/lit-element-DxLLCKb1.js";var m=s`*,
|
|
2
2
|
*::before,
|
|
3
3
|
*::after {
|
|
4
4
|
box-sizing: border-box;
|
|
@@ -13,7 +13,8 @@ import{_ as e,a as t,b as i,c as a,d as s}from"../../../vendor/tslib-Ac8XvvSX.js
|
|
|
13
13
|
--skeleton-base-height: 16px;
|
|
14
14
|
--skeleton-border-radius: 4px;
|
|
15
15
|
--skeleton-background: var(--kd-color-background-loader-skeleton-default);
|
|
16
|
-
--skeleton-shimmer-duration:
|
|
16
|
+
--skeleton-shimmer-duration: 1.5s;
|
|
17
|
+
/* default shimmer color */
|
|
17
18
|
--_shimmer-color: var(--kd-color-background-loader-skeleton-tertiary);
|
|
18
19
|
display: block;
|
|
19
20
|
width: 100%;
|
|
@@ -39,7 +40,6 @@ import{_ as e,a as t,b as i,c as a,d as s}from"../../../vendor/tslib-Ac8XvvSX.js
|
|
|
39
40
|
overflow: hidden;
|
|
40
41
|
background: var(--skeleton-background);
|
|
41
42
|
border-radius: var(--skeleton-border-radius);
|
|
42
|
-
isolation: isolate;
|
|
43
43
|
}
|
|
44
44
|
.skeleton::after {
|
|
45
45
|
content: "";
|
|
@@ -51,7 +51,12 @@ import{_ as e,a as t,b as i,c as a,d as s}from"../../../vendor/tslib-Ac8XvvSX.js
|
|
|
51
51
|
background-repeat: no-repeat;
|
|
52
52
|
background-size: 200% 100%;
|
|
53
53
|
background-position: -100% 0;
|
|
54
|
-
animation:
|
|
54
|
+
animation-name: skeleton-shimmer;
|
|
55
|
+
animation-duration: var(--skeleton-shimmer-duration);
|
|
56
|
+
animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
57
|
+
animation-iteration-count: infinite;
|
|
58
|
+
animation-direction: alternate;
|
|
59
|
+
will-change: background-position;
|
|
55
60
|
}
|
|
56
61
|
.skeleton.rectangle {
|
|
57
62
|
border-radius: var(--skeleton-border-radius);
|
|
@@ -73,43 +78,38 @@ import{_ as e,a as t,b as i,c as a,d as s}from"../../../vendor/tslib-Ac8XvvSX.js
|
|
|
73
78
|
height: 128px;
|
|
74
79
|
}
|
|
75
80
|
|
|
81
|
+
/* AI variant */
|
|
76
82
|
.skeleton.ai-connected {
|
|
77
83
|
background: linear-gradient(90deg, var(--kd-color-background-gradients-ai-loader-start-gradient) 0%, var(--kd-color-background-gradients-ai-loader-end-gradient) 100%);
|
|
78
84
|
}
|
|
79
85
|
|
|
80
86
|
.skeleton.ai-connected::after {
|
|
81
|
-
|
|
82
|
-
background-image: none;
|
|
87
|
+
--_ai-band: color-mix(in oklab, gray 55%, transparent);
|
|
83
88
|
mix-blend-mode: screen;
|
|
84
|
-
|
|
85
|
-
-
|
|
86
|
-
mask-image: linear-gradient(90deg, transparent 0 15%, black 15% 30%, transparent 30% 45%);
|
|
87
|
-
-webkit-mask-size: 200% 100%;
|
|
88
|
-
mask-size: 200% 100%;
|
|
89
|
-
-webkit-mask-position: -100% 0;
|
|
90
|
-
mask-position: -100% 0;
|
|
89
|
+
background-image: linear-gradient(90deg, transparent 0%, var(--_ai-band) 15%, transparent 30%);
|
|
90
|
+
background-repeat: no-repeat;
|
|
91
91
|
background-size: 200% 100%;
|
|
92
92
|
background-position: -100% 0;
|
|
93
|
-
|
|
94
|
-
animation:
|
|
93
|
+
animation-name: skeleton-shimmer;
|
|
94
|
+
animation-duration: var(--skeleton-shimmer-duration);
|
|
95
|
+
animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
96
|
+
animation-iteration-count: infinite;
|
|
97
|
+
animation-direction: alternate;
|
|
98
|
+
will-change: background-position;
|
|
95
99
|
}
|
|
96
100
|
|
|
97
|
-
@keyframes shimmer {
|
|
101
|
+
@keyframes skeleton-shimmer {
|
|
98
102
|
0% {
|
|
99
103
|
background-position: -100% 0;
|
|
100
|
-
-webkit-mask-position: -100% 0;
|
|
101
|
-
mask-position: -100% 0;
|
|
102
104
|
}
|
|
103
105
|
100% {
|
|
104
106
|
background-position: 100% 0;
|
|
105
|
-
-webkit-mask-position: 100% 0;
|
|
106
|
-
mask-position: 100% 0;
|
|
107
107
|
}
|
|
108
|
-
}`;let
|
|
108
|
+
}`;let g=(()=>{var s,g,k,u,p,b,v;let f,w,y,x,z,S,j,C,M,W=[r("kyn-skeleton")],$=[],_=c,B=[],O=[],A=[],I=[],N=[],P=[],q=[],D=[],E=[],F=[],G=[],H=[],J=[],K=[];return w=class extends _{get shape(){return n(this,s,"f")}set shape(e){a(this,s,e,"f")}get size(){return n(this,g,"f")}set size(e){a(this,g,e,"f")}get width(){return n(this,k,"f")}set width(e){a(this,k,e,"f")}get height(){return n(this,u,"f")}set height(e){a(this,u,e,"f")}get lines(){return n(this,p,"f")}set lines(e){a(this,p,e,"f")}get inline(){return n(this,b,"f")}set inline(e){a(this,b,e,"f")}get aiConnected(){return n(this,v,"f")}set aiConnected(e){a(this,v,e,"f")}render(){const e={skeleton:!0,[this.shape]:!0,[`size-${this.size}`]:Boolean(this.size),"multi-line":this.lines>1,inline:this.inline,"ai-connected":this.aiConnected},t={...this.width&&{width:this.width},...this.height&&{height:this.height}},i=Array.from({length:this.lines},(()=>h`
|
|
109
109
|
<div
|
|
110
110
|
class=${d(e)}
|
|
111
111
|
style=${Object.entries(t).map((([e,t])=>`${e}: ${t}`)).join(";")}
|
|
112
112
|
aria-hidden="true"
|
|
113
113
|
></div>
|
|
114
|
-
`));return h`<div class="container">${i}</div>`}constructor(){super(...arguments),
|
|
114
|
+
`));return h`<div class="container">${i}</div>`}constructor(){super(...arguments),s.set(this,i(this,B,"rectangle")),g.set(this,(i(this,O),i(this,A,void 0))),k.set(this,(i(this,I),i(this,N,void 0))),u.set(this,(i(this,P),i(this,q,void 0))),p.set(this,(i(this,D),i(this,E,1))),b.set(this,(i(this,F),i(this,G,!1))),v.set(this,(i(this,H),i(this,J,!1))),i(this,K)}},s=new WeakMap,g=new WeakMap,k=new WeakMap,u=new WeakMap,p=new WeakMap,b=new WeakMap,v=new WeakMap,e(w,"Skeleton"),(()=>{var e;const i="function"==typeof Symbol&&Symbol.metadata?Object.create(null!==(e=_[Symbol.metadata])&&void 0!==e?e:null):void 0;y=[l({type:String,reflect:!0})],x=[l({type:String})],z=[l({type:String})],S=[l({type:String})],j=[l({type:Number})],C=[l({type:Boolean,reflect:!0})],M=[l({type:Boolean,reflect:!0})],t(w,null,y,{kind:"accessor",name:"shape",static:!1,private:!1,access:{has:e=>"shape"in e,get:e=>e.shape,set:(e,t)=>{e.shape=t}},metadata:i},B,O),t(w,null,x,{kind:"accessor",name:"size",static:!1,private:!1,access:{has:e=>"size"in e,get:e=>e.size,set:(e,t)=>{e.size=t}},metadata:i},A,I),t(w,null,z,{kind:"accessor",name:"width",static:!1,private:!1,access:{has:e=>"width"in e,get:e=>e.width,set:(e,t)=>{e.width=t}},metadata:i},N,P),t(w,null,S,{kind:"accessor",name:"height",static:!1,private:!1,access:{has:e=>"height"in e,get:e=>e.height,set:(e,t)=>{e.height=t}},metadata:i},q,D),t(w,null,j,{kind:"accessor",name:"lines",static:!1,private:!1,access:{has:e=>"lines"in e,get:e=>e.lines,set:(e,t)=>{e.lines=t}},metadata:i},E,F),t(w,null,C,{kind:"accessor",name:"inline",static:!1,private:!1,access:{has:e=>"inline"in e,get:e=>e.inline,set:(e,t)=>{e.inline=t}},metadata:i},G,H),t(w,null,M,{kind:"accessor",name:"aiConnected",static:!1,private:!1,access:{has:e=>"aiConnected"in e,get:e=>e.aiConnected,set:(e,t)=>{e.aiConnected=t}},metadata:i},J,K),t(null,f={value:w},W,{kind:"class",name:w.name,metadata:i},null,$),w=f.value,i&&Object.defineProperty(w,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i})})(),w.styles=o(m),i(w,$),w})();export{g as Skeleton};
|
|
115
115
|
//# sourceMappingURL=skeleton.js.map
|