@nuralyui/skeleton 0.0.4 → 0.0.5

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.
Files changed (3) hide show
  1. package/bundle.js +289 -2
  2. package/bundle.js.gz +0 -0
  3. package/package.json +1 -1
package/bundle.js CHANGED
@@ -1,6 +1,293 @@
1
- import{css as e,LitElement as t,html as o}from"lit";import{property as n,customElement as a}from"lit/decorators.js";import{classMap as i}from"lit/directives/class-map.js";import{styleMap as r}from"lit/directives/style-map.js";import{NuralyUIBaseMixin as s}from"@nuralyui/common/mixins";const l=e`:host{display:block}.skeleton{display:flex;flex-direction:column;gap:16px}.skeleton-header{display:flex;align-items:center;gap:16px}.skeleton-content{flex:1}.skeleton-avatar{flex-shrink:0;background:var(--nuraly-skeleton-background,rgba(0,0,0,.06));border-radius:4px}.skeleton-avatar--circle{border-radius:50%}.skeleton-avatar--square{border-radius:4px}.skeleton-avatar--small{width:32px;height:32px}.skeleton-avatar--default{width:40px;height:40px}.skeleton-avatar--large{width:48px;height:48px}.skeleton-title{height:16px;background:var(--nuraly-skeleton-background,rgba(0,0,0,.06));border-radius:4px;margin-bottom:12px}.skeleton-title--round{border-radius:8px}.skeleton-paragraph{display:flex;flex-direction:column;gap:12px}.skeleton-paragraph-line{height:16px;background:var(--nuraly-skeleton-background,rgba(0,0,0,.06));border-radius:4px}.skeleton-paragraph-line--round{border-radius:8px}.skeleton-button{display:inline-block;background:var(--nuraly-skeleton-background,rgba(0,0,0,.06));border-radius:4px}.skeleton-button--block{display:block;width:100%}.skeleton-button--circle{border-radius:50%}.skeleton-button--round{border-radius:16px}.skeleton-button--square{border-radius:4px}.skeleton-button--small{width:64px;height:24px}.skeleton-button--default{width:80px;height:32px}.skeleton-button--large{width:96px;height:40px}.skeleton-input{display:block;background:var(--nuraly-skeleton-background,rgba(0,0,0,.06));border-radius:4px}.skeleton-input--small{height:24px}.skeleton-input--default{height:32px}.skeleton-input--large{height:40px}.skeleton-input--block{width:100%}.skeleton-image{display:flex;align-items:center;justify-content:center;background:var(--nuraly-skeleton-background,rgba(0,0,0,.06));border-radius:4px;width:100%;height:200px}.skeleton-image-icon{font-size:48px;color:var(--nuraly-skeleton-icon-color,rgba(0,0,0,.15))}@keyframes skeleton-loading{0%{background-position:100% 50%}100%{background-position:0 50%}}.skeleton--active .skeleton-avatar,.skeleton--active .skeleton-button,.skeleton--active .skeleton-image,.skeleton--active .skeleton-input,.skeleton--active .skeleton-paragraph-line,.skeleton--active .skeleton-title{background:linear-gradient(90deg,var(--nuraly-skeleton-gradient-from,rgba(0,0,0,.06)) 25%,var(--nuraly-skeleton-gradient-to,rgba(0,0,0,.15)) 37%,var(--nuraly-skeleton-gradient-from,rgba(0,0,0,.06)) 63%);background-size:400% 100%;animation:skeleton-loading 1.4s ease infinite}:host([theme=carbon-dark]) .skeleton-avatar,:host([theme=carbon-dark]) .skeleton-button,:host([theme=carbon-dark]) .skeleton-image,:host([theme=carbon-dark]) .skeleton-input,:host([theme=carbon-dark]) .skeleton-paragraph-line,:host([theme=carbon-dark]) .skeleton-title{background:rgba(255,255,255,.08)}:host([theme=carbon-dark]) .skeleton-image-icon{color:rgba(255,255,255,.15)}:host([theme=carbon-dark]) .skeleton--active .skeleton-avatar,:host([theme=carbon-dark]) .skeleton--active .skeleton-button,:host([theme=carbon-dark]) .skeleton--active .skeleton-image,:host([theme=carbon-dark]) .skeleton--active .skeleton-input,:host([theme=carbon-dark]) .skeleton--active .skeleton-paragraph-line,:host([theme=carbon-dark]) .skeleton--active .skeleton-title{background:linear-gradient(90deg,rgba(255,255,255,.08) 25%,rgba(255,255,255,.15) 37%,rgba(255,255,255,.08) 63%);background-size:400% 100%}.skeleton-wrapper{display:block}.skeleton-wrapper--hidden{display:none}`
1
+ import{css as t,LitElement as e,html as o}from"lit";import{property as a,customElement as n}from"lit/decorators.js";import{classMap as i}from"lit/directives/class-map.js";import{styleMap as r}from"lit/directives/style-map.js";import{NuralyUIBaseMixin as s}from"@nuralyui/common/mixins";const l=t`
2
+ :host {
3
+ display: block;
4
+ }
5
+
6
+ .skeleton {
7
+ display: flex;
8
+ flex-direction: column;
9
+ gap: 16px;
10
+ }
11
+
12
+ .skeleton-header {
13
+ display: flex;
14
+ align-items: center;
15
+ gap: 16px;
16
+ }
17
+
18
+ .skeleton-content {
19
+ flex: 1;
20
+ }
21
+
22
+ /* Avatar */
23
+ .skeleton-avatar {
24
+ flex-shrink: 0;
25
+ background: var(--nuraly-skeleton-background, rgba(0, 0, 0, 0.06));
26
+ border-radius: 4px;
27
+ }
28
+
29
+ .skeleton-avatar--circle {
30
+ border-radius: 50%;
31
+ }
32
+
33
+ .skeleton-avatar--square {
34
+ border-radius: 4px;
35
+ }
36
+
37
+ .skeleton-avatar--small {
38
+ width: 32px;
39
+ height: 32px;
40
+ }
41
+
42
+ .skeleton-avatar--default {
43
+ width: 40px;
44
+ height: 40px;
45
+ }
46
+
47
+ .skeleton-avatar--large {
48
+ width: 48px;
49
+ height: 48px;
50
+ }
51
+
52
+ /* Title */
53
+ .skeleton-title {
54
+ height: 16px;
55
+ background: var(--nuraly-skeleton-background, rgba(0, 0, 0, 0.06));
56
+ border-radius: 4px;
57
+ margin-bottom: 12px;
58
+ }
59
+
60
+ .skeleton-title--round {
61
+ border-radius: 8px;
62
+ }
63
+
64
+ /* Paragraph */
65
+ .skeleton-paragraph {
66
+ display: flex;
67
+ flex-direction: column;
68
+ gap: 12px;
69
+ }
70
+
71
+ .skeleton-paragraph-line {
72
+ height: 16px;
73
+ background: var(--nuraly-skeleton-background, rgba(0, 0, 0, 0.06));
74
+ border-radius: 4px;
75
+ }
76
+
77
+ .skeleton-paragraph-line--round {
78
+ border-radius: 8px;
79
+ }
80
+
81
+ /* Button */
82
+ .skeleton-button {
83
+ display: inline-block;
84
+ background: var(--nuraly-skeleton-background, rgba(0, 0, 0, 0.06));
85
+ border-radius: 4px;
86
+ }
87
+
88
+ .skeleton-button--block {
89
+ display: block;
90
+ width: 100%;
91
+ }
92
+
93
+ .skeleton-button--circle {
94
+ border-radius: 50%;
95
+ }
96
+
97
+ .skeleton-button--round {
98
+ border-radius: 16px;
99
+ }
100
+
101
+ .skeleton-button--square {
102
+ border-radius: 4px;
103
+ }
104
+
105
+ .skeleton-button--small {
106
+ width: 64px;
107
+ height: 24px;
108
+ }
109
+
110
+ .skeleton-button--default {
111
+ width: 80px;
112
+ height: 32px;
113
+ }
114
+
115
+ .skeleton-button--large {
116
+ width: 96px;
117
+ height: 40px;
118
+ }
119
+
120
+ /* Input */
121
+ .skeleton-input {
122
+ display: block;
123
+ background: var(--nuraly-skeleton-background, rgba(0, 0, 0, 0.06));
124
+ border-radius: 4px;
125
+ }
126
+
127
+ .skeleton-input--small {
128
+ height: 24px;
129
+ }
130
+
131
+ .skeleton-input--default {
132
+ height: 32px;
133
+ }
134
+
135
+ .skeleton-input--large {
136
+ height: 40px;
137
+ }
138
+
139
+ .skeleton-input--block {
140
+ width: 100%;
141
+ }
142
+
143
+ /* Image */
144
+ .skeleton-image {
145
+ display: flex;
146
+ align-items: center;
147
+ justify-content: center;
148
+ background: var(--nuraly-skeleton-background, rgba(0, 0, 0, 0.06));
149
+ border-radius: 4px;
150
+ width: 100%;
151
+ height: 200px;
152
+ }
153
+
154
+ .skeleton-image-icon {
155
+ font-size: 48px;
156
+ color: var(--nuraly-skeleton-icon-color, rgba(0, 0, 0, 0.15));
157
+ }
158
+
159
+ /* Active animation */
160
+ @keyframes skeleton-loading {
161
+ 0% {
162
+ background-position: 100% 50%;
163
+ }
164
+ 100% {
165
+ background-position: 0 50%;
166
+ }
167
+ }
168
+
169
+ .skeleton--active .skeleton-avatar,
170
+ .skeleton--active .skeleton-title,
171
+ .skeleton--active .skeleton-paragraph-line,
172
+ .skeleton--active .skeleton-button,
173
+ .skeleton--active .skeleton-input,
174
+ .skeleton--active .skeleton-image {
175
+ background: linear-gradient(
176
+ 90deg,
177
+ var(--nuraly-skeleton-gradient-from, rgba(0, 0, 0, 0.06)) 25%,
178
+ var(--nuraly-skeleton-gradient-to, rgba(0, 0, 0, 0.15)) 37%,
179
+ var(--nuraly-skeleton-gradient-from, rgba(0, 0, 0, 0.06)) 63%
180
+ );
181
+ background-size: 400% 100%;
182
+ animation: skeleton-loading 1.4s ease infinite;
183
+ }
184
+
185
+ /* Dark theme support */
186
+ :host([theme='carbon-dark']) .skeleton-avatar,
187
+ :host([theme='carbon-dark']) .skeleton-title,
188
+ :host([theme='carbon-dark']) .skeleton-paragraph-line,
189
+ :host([theme='carbon-dark']) .skeleton-button,
190
+ :host([theme='carbon-dark']) .skeleton-input,
191
+ :host([theme='carbon-dark']) .skeleton-image {
192
+ background: rgba(255, 255, 255, 0.08);
193
+ }
194
+
195
+ :host([theme='carbon-dark']) .skeleton-image-icon {
196
+ color: rgba(255, 255, 255, 0.15);
197
+ }
198
+
199
+ :host([theme='carbon-dark']) .skeleton--active .skeleton-avatar,
200
+ :host([theme='carbon-dark']) .skeleton--active .skeleton-title,
201
+ :host([theme='carbon-dark']) .skeleton--active .skeleton-paragraph-line,
202
+ :host([theme='carbon-dark']) .skeleton--active .skeleton-button,
203
+ :host([theme='carbon-dark']) .skeleton--active .skeleton-input,
204
+ :host([theme='carbon-dark']) .skeleton--active .skeleton-image {
205
+ background: linear-gradient(
206
+ 90deg,
207
+ rgba(255, 255, 255, 0.08) 25%,
208
+ rgba(255, 255, 255, 0.15) 37%,
209
+ rgba(255, 255, 255, 0.08) 63%
210
+ );
211
+ background-size: 400% 100%;
212
+ }
213
+
214
+ /* Content wrapper for loading state */
215
+ .skeleton-wrapper {
216
+ display: block;
217
+ }
218
+
219
+ .skeleton-wrapper--hidden {
220
+ display: none;
221
+ }
222
+ `
2
223
  /**
3
224
  * @license
4
225
  * Copyright 2023 Nuraly, Laabidi Aymen
5
226
  * SPDX-License-Identifier: MIT
6
- */;var d=function(e,t,o,n){for(var a,i=arguments.length,r=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n,s=e.length-1;s>=0;s--)(a=e[s])&&(r=(i<3?a(r):i>3?a(t,o,r):a(t,o))||r);return i>3&&r&&Object.defineProperty(t,o,r),r};let h=class extends(s(t)){constructor(){super(...arguments),this.active=!1,this.avatar=!1,this.avatarConfig={},this.loading=!0,this.paragraph=!0,this.paragraphConfig={},this.round=!1,this.showTitle=!0,this.titleConfig={},this.buttonConfig={},this.inputConfig={},this.imageConfig={},this.block=!1,this.shape="default",this.size="default"}renderAvatar(){const e="object"==typeof this.avatar?this.avatar:this.avatarConfig,t=e.shape||"circle",n=e.size||"default",a="number"==typeof n?"":n,s="number"==typeof n?{width:`${n}px`,height:`${n}px`}:{};return o`<div class="${i({"skeleton-avatar":!0,[`skeleton-avatar--${t}`]:!0,[`skeleton-avatar--${a}`]:!!a})}" style="${r(s)}"></div>`}renderTitle(){const e=("object"==typeof this.showTitle?this.showTitle:this.titleConfig).width,t=e?{width:"number"==typeof e?`${e}px`:e}:{width:"38%"};return o`<div class="${i({"skeleton-title":!0,"skeleton-title--round":this.round})}" style="${r(t)}"></div>`}renderParagraph(){const e="object"==typeof this.paragraph?this.paragraph:this.paragraphConfig,t=e.rows||3,n=e.width;return o`<div class="skeleton-paragraph">${Array.from({length:t},((e,a)=>o`<div class="${i({"skeleton-paragraph-line":!0,"skeleton-paragraph-line--round":this.round})}" style="${r((e=>{if(Array.isArray(n)){const t=n[e];return t?{width:"number"==typeof t?`${t}px`:t}:{}}return e===t-1?n?{width:"number"==typeof n?`${n}px`:n}:{width:"61%"}:{}})(a))}"></div>`))}</div>`}renderButton(){const e=this.buttonConfig,t=e.shape||this.shape,n=e.size||this.size,a=void 0!==e.block?e.block:this.block;return o`<div class="${i({"skeleton-button":!0,[`skeleton-button--${t}`]:!0,[`skeleton-button--${n}`]:!0,"skeleton-button--block":a})}"></div>`}renderInput(){const e=this.inputConfig,t=e.size||this.size,n=void 0!==e.block?e.block:this.block;return o`<div class="${i({"skeleton-input":!0,[`skeleton-input--${t}`]:!0,"skeleton-input--block":n})}"></div>`}renderImage(){return o`<div class="skeleton-image"><svg class="skeleton-image-icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="48" height="48"><path d="M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zM338 304c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zm513.9 437.1c-2.1 2.1-4.5 3.8-7 5.1-5.2 2.7-11.1 4.1-17.1 4.1H196.2c-6 0-11.9-1.4-17.1-4.1-2.5-1.3-4.9-3-7-5.1-4.4-4.4-7.1-10.5-7.1-17.1 0-3.7.8-7.4 2.5-10.8 1.6-3.4 4.1-6.4 7.1-8.8l112.3-97.5c8.8-7.6 22.1-7.6 30.9 0l148.5 129 203.9-177c8.8-7.6 22.1-7.6 30.9 0l179.8 156.1c3 2.6 5.5 5.7 7.1 9.3 1.7 3.7 2.5 7.6 2.5 11.6-.1 6.6-2.8 12.7-7.2 17.1z" fill="currentColor"/></svg></div>`}renderStandaloneElement(){switch(this.element){case"button":return this.renderButton();case"input":return this.renderInput();case"image":return this.renderImage();case"avatar":return this.renderAvatar();default:return o``}}renderSkeleton(){return this.element?o`<div class="${i({skeleton:!0,"skeleton--active":this.active||"avatar"===this.element&&!!this.avatarConfig.active})}">${this.renderStandaloneElement()}</div>`:o`<div class="${i({skeleton:!0,"skeleton--active":this.active})}">${this.avatar||this.showTitle||this.paragraph?o`${this.avatar?o`<div class="skeleton-header">${this.renderAvatar()} ${this.showTitle||this.paragraph?o`<div class="skeleton-content">${this.showTitle?this.renderTitle():""} ${this.paragraph?this.renderParagraph():""}</div>`:""}</div>`:o`<div class="skeleton-content">${this.showTitle?this.renderTitle():""} ${this.paragraph?this.renderParagraph():""}</div>`}`:""}</div>`}render(){return this.loading?this.renderSkeleton():o`<div class="skeleton-wrapper"><slot name="content"><slot></slot></slot></div>`}};h.styles=l,d([n({type:Boolean})],h.prototype,"active",void 0),d([n({type:Boolean})],h.prototype,"avatar",void 0),d([n({type:Object,attribute:"avatar-config"})],h.prototype,"avatarConfig",void 0),d([n({type:Boolean})],h.prototype,"loading",void 0),d([n({type:Boolean})],h.prototype,"paragraph",void 0),d([n({type:Object,attribute:"paragraph-config"})],h.prototype,"paragraphConfig",void 0),d([n({type:Boolean})],h.prototype,"round",void 0),d([n({type:Boolean,attribute:"show-title"})],h.prototype,"showTitle",void 0),d([n({type:Object,attribute:"title-config"})],h.prototype,"titleConfig",void 0),d([n({type:String})],h.prototype,"element",void 0),d([n({type:Object,attribute:"button-config"})],h.prototype,"buttonConfig",void 0),d([n({type:Object,attribute:"input-config"})],h.prototype,"inputConfig",void 0),d([n({type:Object,attribute:"image-config"})],h.prototype,"imageConfig",void 0),d([n({type:Boolean})],h.prototype,"block",void 0),d([n({type:String})],h.prototype,"shape",void 0),d([n({type:String})],h.prototype,"size",void 0),h=d([a("nr-skeleton")],h);export{h as NrSkeletonElement};
227
+ */;var d=function(t,e,o,a){for(var n,i=arguments.length,r=i<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,o):a,s=t.length-1;s>=0;s--)(n=t[s])&&(r=(i<3?n(r):i>3?n(e,o,r):n(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r};let h=class extends(s(e)){constructor(){super(...arguments),this.active=!1,this.avatar=!1,this.avatarConfig={},this.loading=!0,this.paragraph=!0,this.paragraphConfig={},this.round=!1,this.showTitle=!0,this.titleConfig={},this.buttonConfig={},this.inputConfig={},this.imageConfig={},this.block=!1,this.shape="default",this.size="default"}renderAvatar(){const t="object"==typeof this.avatar?this.avatar:this.avatarConfig,e=t.shape||"circle",a=t.size||"default",n="number"==typeof a?"":a,s="number"==typeof a?{width:`${a}px`,height:`${a}px`}:{};return o`
228
+ <div
229
+ class=${i({"skeleton-avatar":!0,[`skeleton-avatar--${e}`]:!0,[`skeleton-avatar--${n}`]:!!n})}
230
+ style=${r(s)}></div>
231
+ `}renderTitle(){const t=("object"==typeof this.showTitle?this.showTitle:this.titleConfig).width,e=t?{width:"number"==typeof t?`${t}px`:t}:{width:"38%"};return o`
232
+ <div
233
+ class=${i({"skeleton-title":!0,"skeleton-title--round":this.round})}
234
+ style=${r(e)}></div>
235
+ `}renderParagraph(){const t="object"==typeof this.paragraph?this.paragraph:this.paragraphConfig,e=t.rows||3,a=t.width;return o`
236
+ <div class="skeleton-paragraph">
237
+ ${Array.from({length:e},((t,n)=>o`
238
+ <div
239
+ class=${i({"skeleton-paragraph-line":!0,"skeleton-paragraph-line--round":this.round})}
240
+ style=${r((t=>{if(Array.isArray(a)){const e=a[t];return e?{width:"number"==typeof e?`${e}px`:e}:{}}return t===e-1?a?{width:"number"==typeof a?`${a}px`:a}:{width:"61%"}:{}})(n))}></div>
241
+ `))}
242
+ </div>
243
+ `}renderButton(){const t=this.buttonConfig,e=t.shape||this.shape,a=t.size||this.size,n=void 0!==t.block?t.block:this.block;return o`
244
+ <div
245
+ class=${i({"skeleton-button":!0,[`skeleton-button--${e}`]:!0,[`skeleton-button--${a}`]:!0,"skeleton-button--block":n})}></div>
246
+ `}renderInput(){const t=this.inputConfig,e=t.size||this.size,a=void 0!==t.block?t.block:this.block;return o`
247
+ <div
248
+ class=${i({"skeleton-input":!0,[`skeleton-input--${e}`]:!0,"skeleton-input--block":a})}></div>
249
+ `}renderImage(){return o`
250
+ <div class="skeleton-image">
251
+ <svg
252
+ class="skeleton-image-icon"
253
+ viewBox="0 0 1024 1024"
254
+ xmlns="http://www.w3.org/2000/svg"
255
+ width="48"
256
+ height="48">
257
+ <path
258
+ d="M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zM338 304c35.3 0 64 28.7 64 64s-28.7 64-64 64-64-28.7-64-64 28.7-64 64-64zm513.9 437.1c-2.1 2.1-4.5 3.8-7 5.1-5.2 2.7-11.1 4.1-17.1 4.1H196.2c-6 0-11.9-1.4-17.1-4.1-2.5-1.3-4.9-3-7-5.1-4.4-4.4-7.1-10.5-7.1-17.1 0-3.7.8-7.4 2.5-10.8 1.6-3.4 4.1-6.4 7.1-8.8l112.3-97.5c8.8-7.6 22.1-7.6 30.9 0l148.5 129 203.9-177c8.8-7.6 22.1-7.6 30.9 0l179.8 156.1c3 2.6 5.5 5.7 7.1 9.3 1.7 3.7 2.5 7.6 2.5 11.6-.1 6.6-2.8 12.7-7.2 17.1z"
259
+ fill="currentColor" />
260
+ </svg>
261
+ </div>
262
+ `}renderStandaloneElement(){switch(this.element){case"button":return this.renderButton();case"input":return this.renderInput();case"image":return this.renderImage();case"avatar":return this.renderAvatar();default:return o``}}renderSkeleton(){return this.element?o`
263
+ <div
264
+ class=${i({skeleton:!0,"skeleton--active":this.active||"avatar"===this.element&&!!this.avatarConfig.active})}>
265
+ ${this.renderStandaloneElement()}
266
+ </div>
267
+ `:o`
268
+ <div
269
+ class=${i({skeleton:!0,"skeleton--active":this.active})}>
270
+ ${this.avatar||this.showTitle||this.paragraph?o`
271
+ ${this.avatar?o`
272
+ <div class="skeleton-header">
273
+ ${this.renderAvatar()}
274
+ ${this.showTitle||this.paragraph?o`
275
+ <div class="skeleton-content">
276
+ ${this.showTitle?this.renderTitle():""}
277
+ ${this.paragraph?this.renderParagraph():""}
278
+ </div>
279
+ `:""}
280
+ </div>
281
+ `:o`
282
+ <div class="skeleton-content">
283
+ ${this.showTitle?this.renderTitle():""}
284
+ ${this.paragraph?this.renderParagraph():""}
285
+ </div>
286
+ `}
287
+ `:""}
288
+ </div>
289
+ `}render(){return this.loading?this.renderSkeleton():o`
290
+ <div class="skeleton-wrapper">
291
+ <slot name="content"><slot></slot></slot>
292
+ </div>
293
+ `}};h.styles=l,d([a({type:Boolean})],h.prototype,"active",void 0),d([a({type:Boolean})],h.prototype,"avatar",void 0),d([a({type:Object,attribute:"avatar-config"})],h.prototype,"avatarConfig",void 0),d([a({type:Boolean})],h.prototype,"loading",void 0),d([a({type:Boolean})],h.prototype,"paragraph",void 0),d([a({type:Object,attribute:"paragraph-config"})],h.prototype,"paragraphConfig",void 0),d([a({type:Boolean})],h.prototype,"round",void 0),d([a({type:Boolean,attribute:"show-title"})],h.prototype,"showTitle",void 0),d([a({type:Object,attribute:"title-config"})],h.prototype,"titleConfig",void 0),d([a({type:String})],h.prototype,"element",void 0),d([a({type:Object,attribute:"button-config"})],h.prototype,"buttonConfig",void 0),d([a({type:Object,attribute:"input-config"})],h.prototype,"inputConfig",void 0),d([a({type:Object,attribute:"image-config"})],h.prototype,"imageConfig",void 0),d([a({type:Boolean})],h.prototype,"block",void 0),d([a({type:String})],h.prototype,"shape",void 0),d([a({type:String})],h.prototype,"size",void 0),h=d([n("nr-skeleton")],h);export{h as NrSkeletonElement};
package/bundle.js.gz CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuralyui/skeleton",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "NuralyUI Skeleton Component - Placeholder for loading content",
5
5
  "author": "Nuraly, Laabidi Aymen",
6
6
  "license": "MIT",