skeleton-webcomponent-loader 2.1.4 → 3.0.0

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 (58) hide show
  1. package/dist/cjs/app-globals-V2Kpy_OQ.js +5 -0
  2. package/dist/cjs/index-BKUCi6S8.js +1522 -0
  3. package/dist/cjs/loader.cjs.js +7 -29
  4. package/dist/cjs/nb-skeleton.cjs.entry.js +168 -114
  5. package/dist/cjs/skeleton-webcomponent.cjs.js +17 -15
  6. package/dist/collection/collection-manifest.json +4 -3
  7. package/dist/collection/components/skeleton/skeleton.js +460 -304
  8. package/dist/{custom-elements → components}/index.d.ts +13 -23
  9. package/dist/components/index.js +1 -0
  10. package/dist/components/nb-skeleton.d.ts +11 -0
  11. package/dist/components/nb-skeleton.js +1 -0
  12. package/dist/esm/app-globals-DQuL1Twl.js +3 -0
  13. package/dist/esm/index-D_NQrSVN.js +1515 -0
  14. package/dist/esm/loader.js +7 -27
  15. package/dist/esm/nb-skeleton.entry.js +168 -112
  16. package/dist/esm/skeleton-webcomponent.js +15 -15
  17. package/dist/esm-es5/app-globals-DQuL1Twl.js +1 -0
  18. package/dist/esm-es5/index-D_NQrSVN.js +2 -0
  19. package/dist/esm-es5/loader.js +1 -1
  20. package/dist/esm-es5/nb-skeleton.entry.js +1 -1
  21. package/dist/esm-es5/skeleton-webcomponent.js +1 -1
  22. package/dist/skeleton-webcomponent/p-0ab2f3bc.system.entry.js +1 -0
  23. package/dist/skeleton-webcomponent/p-BbPAtVJG.system.js +1 -0
  24. package/dist/skeleton-webcomponent/p-CEkATbjM.system.js +2 -0
  25. package/dist/skeleton-webcomponent/p-DQuL1Twl.js +1 -0
  26. package/dist/skeleton-webcomponent/p-D_NQrSVN.js +2 -0
  27. package/dist/skeleton-webcomponent/p-DikQ2aXB.system.js +1 -0
  28. package/dist/skeleton-webcomponent/p-e5fc5295.entry.js +1 -0
  29. package/dist/skeleton-webcomponent/skeleton-webcomponent.esm.js +1 -1
  30. package/dist/skeleton-webcomponent/skeleton-webcomponent.js +14 -19
  31. package/dist/types/components/skeleton/skeleton.d.ts +101 -67
  32. package/dist/types/components.d.ts +75 -2
  33. package/dist/types/stencil-public-runtime.d.ts +335 -40
  34. package/loader/cdn.js +1 -2
  35. package/loader/index.cjs.js +1 -2
  36. package/loader/index.d.ts +13 -1
  37. package/loader/index.es2017.js +1 -2
  38. package/loader/index.js +1 -2
  39. package/package.json +5 -5
  40. package/readme.md +0 -3
  41. package/CHANGELOG.md +0 -26
  42. package/dist/cjs/css-shim-b3e497ca.js +0 -6
  43. package/dist/cjs/index-b5d2dca0.js +0 -1156
  44. package/dist/custom-elements/index.js +0 -142
  45. package/dist/esm/css-shim-2f04a37a.js +0 -4
  46. package/dist/esm/index-63fd3905.js +0 -1128
  47. package/dist/esm/polyfills/css-shim.js +0 -1
  48. package/dist/esm-es5/css-shim-2f04a37a.js +0 -1
  49. package/dist/esm-es5/index-63fd3905.js +0 -1
  50. package/dist/skeleton-webcomponent/p-12077897.js +0 -1
  51. package/dist/skeleton-webcomponent/p-16aec442.system.js +0 -1
  52. package/dist/skeleton-webcomponent/p-63ed3b45.entry.js +0 -1
  53. package/dist/skeleton-webcomponent/p-7e96e5d4.js +0 -1
  54. package/dist/skeleton-webcomponent/p-8bef7229.system.js +0 -1
  55. package/dist/skeleton-webcomponent/p-dc1bf577.system.entry.js +0 -1
  56. package/dist/skeleton-webcomponent/p-f59432d4.system.js +0 -1
  57. package/loader/package.json +0 -10
  58. /package/dist/skeleton-webcomponent/{p-50ea2036.system.js → p-YWpyar7R.system.js} +0 -0
@@ -1,314 +1,470 @@
1
- import { Component, h, Prop } from '@stencil/core';
2
- import { ALLOWED_ANIMATIONS } from './skeleton.constants';
1
+ import { h, Host } from "@stencil/core";
2
+ import { ALLOWED_ANIMATIONS } from "./skeleton.constants";
3
3
  export class Skeleton {
4
- constructor() {
5
- /**
6
- * Number of rows of current skeleton type
7
- *
8
- * @memberof Skeleton
9
- */
10
- this.count = 1;
11
- /**
12
- * Variant of the skeleton - circle or row
13
- *
14
- * @type {('circle' | '')}
15
- * @memberof Skeleton
16
- */
17
- this.variant = 'text';
18
- /**
19
- * Width of the skeleton ex. 100px, 100%, auto etc.
20
- *
21
- *
22
- * @type {string}
23
- * @memberof Skeleton
24
- */
25
- this.width = null;
26
- /**
27
- * Height of the skeleton ex. 100px, 100%, auto etc.
28
- *
29
- * @type {string}
30
- * @memberof Skeleton
31
- */
32
- this.height = null;
33
- /**
34
- * MarginBottom of the skeleton ex. 10px, 0 etc.
35
- *
36
- * @type {string}
37
- * @memberof Skeleton
38
- */
39
- this.marginBottom = null;
40
- /**
41
- * Animation type
42
- *
43
- * @type {('progress' | 'progress-dark' | 'pulse' | 'false')}
44
- * @memberof Skeleton
45
- */
46
- this.animation = 'progress';
47
- /**
48
- * Custom css styles (background/margins/width/height etc.)
49
- *
50
- * @type {({[k: string]: string} | string)}
51
- * @memberof Skeleton
52
- */
53
- this.customStyles = {};
54
- /**
55
- * Whether to show warnings for the wrong animation type/custom styles
56
- *
57
- * @memberof Skeleton
58
- */
59
- this.showWarnings = true;
60
- this.items = [];
61
- }
62
- componentWillLoad() {
63
- this.init();
64
- }
65
- componentWillUpdate() {
66
- this.init();
67
- }
68
- init() {
69
- this.items.length = this.count;
70
- this.items.fill(1);
71
- if (!ALLOWED_ANIMATIONS.includes(this.animation)) {
72
- if (this.showWarnings) {
73
- console.warn(`\`Skeleton\` need to receive 'animation' as: ${ALLOWED_ANIMATIONS.join(', ')}. Forcing default to "progress".`);
74
- }
75
- this.animation = 'progress';
4
+ constructor() {
5
+ /**
6
+ * Number of rows of current skeleton type
7
+ *
8
+ * @memberof Skeleton
9
+ */
10
+ this.count = 1;
11
+ /**
12
+ * Accessible text announced by screen readers while content is loading
13
+ *
14
+ * @type {string}
15
+ * @memberof Skeleton
16
+ */
17
+ this.label = 'Loading...';
18
+ /**
19
+ * Wrapper element tag that carries ARIA attributes (e.g. div, span, section)
20
+ *
21
+ * @type {string}
22
+ * @memberof Skeleton
23
+ */
24
+ this.as = 'div';
25
+ /**
26
+ * Render rows directly in the host element and apply ARIA attributes to host
27
+ *
28
+ * @type {boolean}
29
+ * @memberof Skeleton
30
+ */
31
+ this.asChild = false;
32
+ /**
33
+ * Variant of the skeleton - circle or row
34
+ *
35
+ * @type {('circle' | '')}
36
+ * @memberof Skeleton
37
+ */
38
+ this.variant = 'text';
39
+ /**
40
+ * Width of the skeleton ex. 100px, 100%, auto etc.
41
+ *
42
+ *
43
+ * @type {string}
44
+ * @memberof Skeleton
45
+ */
46
+ this.width = null;
47
+ /**
48
+ * Height of the skeleton ex. 100px, 100%, auto etc.
49
+ *
50
+ * @type {string}
51
+ * @memberof Skeleton
52
+ */
53
+ this.height = null;
54
+ /**
55
+ * MarginBottom of the skeleton ex. 10px, 0 etc.
56
+ *
57
+ * @type {string}
58
+ * @memberof Skeleton
59
+ */
60
+ this.marginBottom = null;
61
+ /**
62
+ * Animation type
63
+ *
64
+ * @type {('progress' | 'progress-dark' | 'pulse' | 'false')}
65
+ * @memberof Skeleton
66
+ */
67
+ this.animation = 'progress';
68
+ /**
69
+ * Custom css styles (background/margins/width/height etc.)
70
+ *
71
+ * @type {({[k: string]: string} | string)}
72
+ * @memberof Skeleton
73
+ */
74
+ this.customStyles = {};
75
+ /**
76
+ * Whether to show warnings for the wrong animation type/custom styles
77
+ *
78
+ * @memberof Skeleton
79
+ */
80
+ this.showWarnings = true;
81
+ this.items = [];
82
+ this.parsedCustomStyles = {};
76
83
  }
77
- if (this.customStyles && typeof this.customStyles === 'string') {
78
- try {
79
- this.customStyles = JSON.parse(this.customStyles);
80
- }
81
- catch (error) {
84
+ componentWillLoad() {
85
+ this.init();
86
+ }
87
+ componentWillUpdate() {
88
+ this.init();
89
+ }
90
+ init() {
91
+ this.items.length = this.count;
92
+ this.items.fill(1);
93
+ this.parsedCustomStyles = {};
94
+ if (!ALLOWED_ANIMATIONS.includes(this.animation)) {
95
+ if (this.showWarnings) {
96
+ console.warn(`\`Skeleton\` need to receive 'animation' as: ${ALLOWED_ANIMATIONS.join(', ')}. Forcing default to "progress".`);
97
+ }
98
+ this.animation = 'progress';
99
+ }
100
+ if (this.customStyles && typeof this.customStyles === 'string') {
101
+ try {
102
+ const parsed = JSON.parse(this.customStyles);
103
+ if (parsed && typeof parsed === 'object') {
104
+ this.parsedCustomStyles = parsed;
105
+ }
106
+ }
107
+ catch (error) {
108
+ if (this.showWarnings) {
109
+ console.warn(`can't parse styles`, this.customStyles);
110
+ }
111
+ }
112
+ }
113
+ else if (this.customStyles && typeof this.customStyles === 'object') {
114
+ this.parsedCustomStyles = this.customStyles;
115
+ }
116
+ }
117
+ get style() {
118
+ let dimenssionsStyles = {
119
+ width: null,
120
+ height: null,
121
+ marginBottom: null
122
+ };
123
+ if (this.width) {
124
+ dimenssionsStyles.width = this.width;
125
+ }
126
+ if (this.height) {
127
+ dimenssionsStyles.height = this.height;
128
+ }
129
+ if (this.marginBottom) {
130
+ dimenssionsStyles.marginBottom = this.marginBottom;
131
+ }
132
+ const styles = this.parsedCustomStyles;
133
+ return Object.assign(Object.assign({}, dimenssionsStyles), styles);
134
+ }
135
+ resolveWrapperTag() {
136
+ const tag = (this.as || '').trim().toLowerCase();
137
+ if (/^[a-z][a-z0-9-]*$/.test(tag)) {
138
+ return tag;
139
+ }
82
140
  if (this.showWarnings) {
83
- console.warn(`can't parse styles`, this.customStyles);
141
+ console.warn('`Skeleton` `as` prop must be a valid html tag name. Falling back to "div".');
84
142
  }
85
- }
143
+ return 'div';
86
144
  }
87
- }
88
- get style() {
89
- let dimenssionsStyles = {
90
- width: null,
91
- height: null,
92
- marginBottom: null
93
- };
94
- if (this.width) {
95
- dimenssionsStyles.width = this.width;
145
+ get ariaProps() {
146
+ return {
147
+ 'aria-busy': 'true',
148
+ 'aria-label': this.label,
149
+ 'aria-valuemin': '0',
150
+ 'aria-valuemax': '100',
151
+ 'aria-valuetext': this.label,
152
+ role: 'progressbar',
153
+ };
154
+ }
155
+ renderRows() {
156
+ return this.items.map((_, index) => {
157
+ return (h("span", { key: index, class: {
158
+ circle: this.variant === 'circle',
159
+ rect: this.variant === 'rect',
160
+ progress: this.animation === 'progress',
161
+ 'progress-dark': this.animation === 'progress-dark',
162
+ pulse: this.animation === 'pulse',
163
+ skeleton: true
164
+ }, "aria-hidden": "true", style: this.style }));
165
+ });
166
+ }
167
+ render() {
168
+ if (this.asChild) {
169
+ return h(Host, Object.assign({}, this.ariaProps), this.renderRows());
170
+ }
171
+ const WrapperTag = this.resolveWrapperTag();
172
+ return (h(Host, null, h(WrapperTag, Object.assign({}, this.ariaProps), this.renderRows())));
96
173
  }
97
- if (this.height) {
98
- dimenssionsStyles.height = this.height;
174
+ static get is() { return "nb-skeleton"; }
175
+ static get encapsulation() { return "shadow"; }
176
+ static get originalStyleUrls() {
177
+ return {
178
+ "$": ["skeleton.scss"]
179
+ };
99
180
  }
100
- if (this.marginBottom) {
101
- dimenssionsStyles.marginBottom = this.marginBottom;
181
+ static get styleUrls() {
182
+ return {
183
+ "$": ["skeleton.css"]
184
+ };
102
185
  }
103
- const styles = typeof this.customStyles === 'object' ? this.customStyles : {};
104
- return Object.assign(Object.assign({}, dimenssionsStyles), styles);
105
- }
106
- render() {
107
- return this.items.map((_, index) => {
108
- return (h("span", { key: index, class: {
109
- circle: this.variant === 'circle',
110
- rect: this.variant === 'rect',
111
- progress: this.animation === 'progress',
112
- 'progress-dark': this.animation === 'progress-dark',
113
- pulse: this.animation === 'pulse',
114
- skeleton: true
115
- }, "aria-busy": "true", "aria-valuemin": "0", "aria-valuemax": "100", "aria-valuetext": "Loading...", role: "progressbar", tabindex: "0", style: this.style }));
116
- });
117
- }
118
- static get is() { return "nb-skeleton"; }
119
- static get encapsulation() { return "shadow"; }
120
- static get originalStyleUrls() { return {
121
- "$": ["skeleton.scss"]
122
- }; }
123
- static get styleUrls() { return {
124
- "$": ["skeleton.css"]
125
- }; }
126
- static get properties() { return {
127
- "count": {
128
- "type": "number",
129
- "mutable": false,
130
- "complexType": {
131
- "original": "number",
132
- "resolved": "number",
133
- "references": {}
134
- },
135
- "required": false,
136
- "optional": false,
137
- "docs": {
138
- "tags": [{
139
- "name": "memberof",
140
- "text": "Skeleton"
141
- }],
142
- "text": "Number of rows of current skeleton type"
143
- },
144
- "attribute": "count",
145
- "reflect": false,
146
- "defaultValue": "1"
147
- },
148
- "variant": {
149
- "type": "string",
150
- "mutable": false,
151
- "complexType": {
152
- "original": "'circle' | 'rect' | 'text'",
153
- "resolved": "\"circle\" | \"rect\" | \"text\"",
154
- "references": {}
155
- },
156
- "required": false,
157
- "optional": false,
158
- "docs": {
159
- "tags": [{
160
- "name": "type",
161
- "text": "{('circle' | '')}"
162
- }, {
163
- "name": "memberof",
164
- "text": "Skeleton"
165
- }],
166
- "text": "Variant of the skeleton - circle or row"
167
- },
168
- "attribute": "variant",
169
- "reflect": false,
170
- "defaultValue": "'text'"
171
- },
172
- "width": {
173
- "type": "string",
174
- "mutable": false,
175
- "complexType": {
176
- "original": "string",
177
- "resolved": "string",
178
- "references": {}
179
- },
180
- "required": false,
181
- "optional": false,
182
- "docs": {
183
- "tags": [{
184
- "name": "type",
185
- "text": "{string}"
186
- }, {
187
- "name": "memberof",
188
- "text": "Skeleton"
189
- }],
190
- "text": "Width of the skeleton ex. 100px, 100%, auto etc."
191
- },
192
- "attribute": "width",
193
- "reflect": false,
194
- "defaultValue": "null"
195
- },
196
- "height": {
197
- "type": "string",
198
- "mutable": false,
199
- "complexType": {
200
- "original": "string",
201
- "resolved": "string",
202
- "references": {}
203
- },
204
- "required": false,
205
- "optional": false,
206
- "docs": {
207
- "tags": [{
208
- "name": "type",
209
- "text": "{string}"
210
- }, {
211
- "name": "memberof",
212
- "text": "Skeleton"
213
- }],
214
- "text": "Height of the skeleton ex. 100px, 100%, auto etc."
215
- },
216
- "attribute": "height",
217
- "reflect": false,
218
- "defaultValue": "null"
219
- },
220
- "marginBottom": {
221
- "type": "string",
222
- "mutable": false,
223
- "complexType": {
224
- "original": "string",
225
- "resolved": "string",
226
- "references": {}
227
- },
228
- "required": false,
229
- "optional": false,
230
- "docs": {
231
- "tags": [{
232
- "name": "type",
233
- "text": "{string}"
234
- }, {
235
- "name": "memberof",
236
- "text": "Skeleton"
237
- }],
238
- "text": "MarginBottom of the skeleton ex. 10px, 0 etc."
239
- },
240
- "attribute": "margin-bottom",
241
- "reflect": false,
242
- "defaultValue": "null"
243
- },
244
- "animation": {
245
- "type": "string",
246
- "mutable": false,
247
- "complexType": {
248
- "original": "'progress' | 'progress-dark' | 'pulse' | 'false'",
249
- "resolved": "\"false\" | \"progress\" | \"progress-dark\" | \"pulse\"",
250
- "references": {}
251
- },
252
- "required": false,
253
- "optional": false,
254
- "docs": {
255
- "tags": [{
256
- "name": "type",
257
- "text": "{('progress' | 'progress-dark' | 'pulse' | 'false')}"
258
- }, {
259
- "name": "memberof",
260
- "text": "Skeleton"
261
- }],
262
- "text": "Animation type"
263
- },
264
- "attribute": "animation",
265
- "reflect": false,
266
- "defaultValue": "'progress'"
267
- },
268
- "customStyles": {
269
- "type": "string",
270
- "mutable": false,
271
- "complexType": {
272
- "original": "{ [key: string]: string } | string",
273
- "resolved": "string | { [key: string]: string; }",
274
- "references": {}
275
- },
276
- "required": false,
277
- "optional": false,
278
- "docs": {
279
- "tags": [{
280
- "name": "type",
281
- "text": "{({[k: string]: string} | string)}"
282
- }, {
283
- "name": "memberof",
284
- "text": "Skeleton"
285
- }],
286
- "text": "Custom css styles (background/margins/width/height etc.)"
287
- },
288
- "attribute": "custom-styles",
289
- "reflect": false,
290
- "defaultValue": "{}"
291
- },
292
- "showWarnings": {
293
- "type": "boolean",
294
- "mutable": false,
295
- "complexType": {
296
- "original": "boolean",
297
- "resolved": "boolean",
298
- "references": {}
299
- },
300
- "required": false,
301
- "optional": false,
302
- "docs": {
303
- "tags": [{
304
- "name": "memberof",
305
- "text": "Skeleton"
306
- }],
307
- "text": "Whether to show warnings for the wrong animation type/custom styles"
308
- },
309
- "attribute": "show-warnings",
310
- "reflect": false,
311
- "defaultValue": "true"
186
+ static get properties() {
187
+ return {
188
+ "count": {
189
+ "type": "number",
190
+ "mutable": false,
191
+ "complexType": {
192
+ "original": "number",
193
+ "resolved": "number",
194
+ "references": {}
195
+ },
196
+ "required": false,
197
+ "optional": false,
198
+ "docs": {
199
+ "tags": [{
200
+ "name": "memberof",
201
+ "text": "Skeleton"
202
+ }],
203
+ "text": "Number of rows of current skeleton type"
204
+ },
205
+ "getter": false,
206
+ "setter": false,
207
+ "reflect": false,
208
+ "attribute": "count",
209
+ "defaultValue": "1"
210
+ },
211
+ "label": {
212
+ "type": "string",
213
+ "mutable": false,
214
+ "complexType": {
215
+ "original": "string",
216
+ "resolved": "string",
217
+ "references": {}
218
+ },
219
+ "required": false,
220
+ "optional": false,
221
+ "docs": {
222
+ "tags": [{
223
+ "name": "type",
224
+ "text": "{string}"
225
+ }, {
226
+ "name": "memberof",
227
+ "text": "Skeleton"
228
+ }],
229
+ "text": "Accessible text announced by screen readers while content is loading"
230
+ },
231
+ "getter": false,
232
+ "setter": false,
233
+ "reflect": false,
234
+ "attribute": "label",
235
+ "defaultValue": "'Loading...'"
236
+ },
237
+ "as": {
238
+ "type": "string",
239
+ "mutable": false,
240
+ "complexType": {
241
+ "original": "string",
242
+ "resolved": "string",
243
+ "references": {}
244
+ },
245
+ "required": false,
246
+ "optional": false,
247
+ "docs": {
248
+ "tags": [{
249
+ "name": "type",
250
+ "text": "{string}"
251
+ }, {
252
+ "name": "memberof",
253
+ "text": "Skeleton"
254
+ }],
255
+ "text": "Wrapper element tag that carries ARIA attributes (e.g. div, span, section)"
256
+ },
257
+ "getter": false,
258
+ "setter": false,
259
+ "reflect": false,
260
+ "attribute": "as",
261
+ "defaultValue": "'div'"
262
+ },
263
+ "asChild": {
264
+ "type": "boolean",
265
+ "mutable": false,
266
+ "complexType": {
267
+ "original": "boolean",
268
+ "resolved": "boolean",
269
+ "references": {}
270
+ },
271
+ "required": false,
272
+ "optional": false,
273
+ "docs": {
274
+ "tags": [{
275
+ "name": "type",
276
+ "text": "{boolean}"
277
+ }, {
278
+ "name": "memberof",
279
+ "text": "Skeleton"
280
+ }],
281
+ "text": "Render rows directly in the host element and apply ARIA attributes to host"
282
+ },
283
+ "getter": false,
284
+ "setter": false,
285
+ "reflect": false,
286
+ "attribute": "as-child",
287
+ "defaultValue": "false"
288
+ },
289
+ "variant": {
290
+ "type": "string",
291
+ "mutable": false,
292
+ "complexType": {
293
+ "original": "'circle' | 'rect' | 'text'",
294
+ "resolved": "\"circle\" | \"rect\" | \"text\"",
295
+ "references": {}
296
+ },
297
+ "required": false,
298
+ "optional": false,
299
+ "docs": {
300
+ "tags": [{
301
+ "name": "type",
302
+ "text": "{('circle' | '')}"
303
+ }, {
304
+ "name": "memberof",
305
+ "text": "Skeleton"
306
+ }],
307
+ "text": "Variant of the skeleton - circle or row"
308
+ },
309
+ "getter": false,
310
+ "setter": false,
311
+ "reflect": false,
312
+ "attribute": "variant",
313
+ "defaultValue": "'text'"
314
+ },
315
+ "width": {
316
+ "type": "string",
317
+ "mutable": false,
318
+ "complexType": {
319
+ "original": "string",
320
+ "resolved": "string",
321
+ "references": {}
322
+ },
323
+ "required": false,
324
+ "optional": false,
325
+ "docs": {
326
+ "tags": [{
327
+ "name": "type",
328
+ "text": "{string}"
329
+ }, {
330
+ "name": "memberof",
331
+ "text": "Skeleton"
332
+ }],
333
+ "text": "Width of the skeleton ex. 100px, 100%, auto etc."
334
+ },
335
+ "getter": false,
336
+ "setter": false,
337
+ "reflect": false,
338
+ "attribute": "width",
339
+ "defaultValue": "null"
340
+ },
341
+ "height": {
342
+ "type": "string",
343
+ "mutable": false,
344
+ "complexType": {
345
+ "original": "string",
346
+ "resolved": "string",
347
+ "references": {}
348
+ },
349
+ "required": false,
350
+ "optional": false,
351
+ "docs": {
352
+ "tags": [{
353
+ "name": "type",
354
+ "text": "{string}"
355
+ }, {
356
+ "name": "memberof",
357
+ "text": "Skeleton"
358
+ }],
359
+ "text": "Height of the skeleton ex. 100px, 100%, auto etc."
360
+ },
361
+ "getter": false,
362
+ "setter": false,
363
+ "reflect": false,
364
+ "attribute": "height",
365
+ "defaultValue": "null"
366
+ },
367
+ "marginBottom": {
368
+ "type": "string",
369
+ "mutable": false,
370
+ "complexType": {
371
+ "original": "string",
372
+ "resolved": "string",
373
+ "references": {}
374
+ },
375
+ "required": false,
376
+ "optional": false,
377
+ "docs": {
378
+ "tags": [{
379
+ "name": "type",
380
+ "text": "{string}"
381
+ }, {
382
+ "name": "memberof",
383
+ "text": "Skeleton"
384
+ }],
385
+ "text": "MarginBottom of the skeleton ex. 10px, 0 etc."
386
+ },
387
+ "getter": false,
388
+ "setter": false,
389
+ "reflect": false,
390
+ "attribute": "margin-bottom",
391
+ "defaultValue": "null"
392
+ },
393
+ "animation": {
394
+ "type": "string",
395
+ "mutable": false,
396
+ "complexType": {
397
+ "original": "'progress' | 'progress-dark' | 'pulse' | 'false'",
398
+ "resolved": "\"false\" | \"progress\" | \"progress-dark\" | \"pulse\"",
399
+ "references": {}
400
+ },
401
+ "required": false,
402
+ "optional": false,
403
+ "docs": {
404
+ "tags": [{
405
+ "name": "type",
406
+ "text": "{('progress' | 'progress-dark' | 'pulse' | 'false')}"
407
+ }, {
408
+ "name": "memberof",
409
+ "text": "Skeleton"
410
+ }],
411
+ "text": "Animation type"
412
+ },
413
+ "getter": false,
414
+ "setter": false,
415
+ "reflect": false,
416
+ "attribute": "animation",
417
+ "defaultValue": "'progress'"
418
+ },
419
+ "customStyles": {
420
+ "type": "string",
421
+ "mutable": false,
422
+ "complexType": {
423
+ "original": "{ [key: string]: string } | string",
424
+ "resolved": "string | { [key: string]: string; }",
425
+ "references": {}
426
+ },
427
+ "required": false,
428
+ "optional": false,
429
+ "docs": {
430
+ "tags": [{
431
+ "name": "type",
432
+ "text": "{({[k: string]: string} | string)}"
433
+ }, {
434
+ "name": "memberof",
435
+ "text": "Skeleton"
436
+ }],
437
+ "text": "Custom css styles (background/margins/width/height etc.)"
438
+ },
439
+ "getter": false,
440
+ "setter": false,
441
+ "reflect": false,
442
+ "attribute": "custom-styles",
443
+ "defaultValue": "{}"
444
+ },
445
+ "showWarnings": {
446
+ "type": "boolean",
447
+ "mutable": false,
448
+ "complexType": {
449
+ "original": "boolean",
450
+ "resolved": "boolean",
451
+ "references": {}
452
+ },
453
+ "required": false,
454
+ "optional": false,
455
+ "docs": {
456
+ "tags": [{
457
+ "name": "memberof",
458
+ "text": "Skeleton"
459
+ }],
460
+ "text": "Whether to show warnings for the wrong animation type/custom styles"
461
+ },
462
+ "getter": false,
463
+ "setter": false,
464
+ "reflect": false,
465
+ "attribute": "show-warnings",
466
+ "defaultValue": "true"
467
+ }
468
+ };
312
469
  }
313
- }; }
314
470
  }