@everymatrix/ui-skeleton 0.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 (49) hide show
  1. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  2. package/dist/cjs/index-c4768c66.js +1239 -0
  3. package/dist/cjs/index.cjs.js +10 -0
  4. package/dist/cjs/loader.cjs.js +15 -0
  5. package/dist/cjs/ui-skeleton-43520ebc.js +136 -0
  6. package/dist/cjs/ui-skeleton.cjs.entry.js +10 -0
  7. package/dist/cjs/ui-skeleton.cjs.js +25 -0
  8. package/dist/collection/collection-manifest.json +12 -0
  9. package/dist/collection/components/ui-skeleton/index.js +1 -0
  10. package/dist/collection/components/ui-skeleton/ui-skeleton.css +59 -0
  11. package/dist/collection/components/ui-skeleton/ui-skeleton.js +418 -0
  12. package/dist/collection/index.js +1 -0
  13. package/dist/collection/utils/utils.js +3 -0
  14. package/dist/esm/app-globals-0f993ce5.js +3 -0
  15. package/dist/esm/index-f5cf3f14.js +1213 -0
  16. package/dist/esm/index.js +2 -0
  17. package/dist/esm/loader.js +11 -0
  18. package/dist/esm/ui-skeleton-2473e87c.js +134 -0
  19. package/dist/esm/ui-skeleton.entry.js +2 -0
  20. package/dist/esm/ui-skeleton.js +20 -0
  21. package/dist/index.cjs.js +1 -0
  22. package/dist/index.js +1 -0
  23. package/dist/stencil.config.dev.js +19 -0
  24. package/dist/stencil.config.js +17 -0
  25. package/dist/storybook/main.js +21 -0
  26. package/dist/storybook/preview.js +9 -0
  27. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/ui-skeleton/.stencil/packages/stencil/ui-skeleton/stencil.config.d.ts +2 -0
  28. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/ui-skeleton/.stencil/packages/stencil/ui-skeleton/stencil.config.dev.d.ts +2 -0
  29. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/ui-skeleton/.stencil/packages/stencil/ui-skeleton/storybook/main.d.ts +3 -0
  30. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/ui-skeleton/.stencil/packages/stencil/ui-skeleton/storybook/preview.d.ts +70 -0
  31. package/dist/types/components/ui-skeleton/index.d.ts +1 -0
  32. package/dist/types/components/ui-skeleton/ui-skeleton.d.ts +71 -0
  33. package/dist/types/components.d.ts +149 -0
  34. package/dist/types/index.d.ts +1 -0
  35. package/dist/types/stencil-public-runtime.d.ts +1680 -0
  36. package/dist/types/utils/utils.d.ts +1 -0
  37. package/dist/ui-skeleton/index.esm.js +1 -0
  38. package/dist/ui-skeleton/p-443310cf.js +2 -0
  39. package/dist/ui-skeleton/p-75e06c6c.js +1 -0
  40. package/dist/ui-skeleton/p-933ae591.entry.js +1 -0
  41. package/dist/ui-skeleton/p-e1255160.js +1 -0
  42. package/dist/ui-skeleton/ui-skeleton.esm.js +1 -0
  43. package/loader/cdn.js +1 -0
  44. package/loader/index.cjs.js +1 -0
  45. package/loader/index.d.ts +24 -0
  46. package/loader/index.es2017.js +1 -0
  47. package/loader/index.js +2 -0
  48. package/loader/package.json +11 -0
  49. package/package.json +26 -0
@@ -0,0 +1,2 @@
1
+ export { U as UiSkeleton } from './ui-skeleton-2473e87c.js';
2
+ import './index-f5cf3f14.js';
@@ -0,0 +1,11 @@
1
+ import { b as bootstrapLazy } from './index-f5cf3f14.js';
2
+ export { s as setNonce } from './index-f5cf3f14.js';
3
+ import { g as globalScripts } from './app-globals-0f993ce5.js';
4
+
5
+ const defineCustomElements = async (win, options) => {
6
+ if (typeof window === 'undefined') return undefined;
7
+ await globalScripts();
8
+ return bootstrapLazy([["ui-skeleton",[[0,"ui-skeleton",{"structure":[1],"width":[2],"height":[2],"borderRadius":[2,"border-radius"],"marginBottom":[2,"margin-bottom"],"marginTop":[2,"margin-top"],"marginLeft":[2,"margin-left"],"marginRight":[2,"margin-right"],"animation":[4],"rows":[2],"size":[2],"color":[1],"primaryColor":[1,"primary-color"],"secondaryColor":[1,"secondary-color"]},null,{"structure":["handleStructureChange"],"primaryColor":["updateStyles"],"secondaryColor":["updateStyles"]}]]]], options);
9
+ };
10
+
11
+ export { defineCustomElements };
@@ -0,0 +1,134 @@
1
+ import { r as registerInstance, h } from './index-f5cf3f14.js';
2
+
3
+ const uiSkeletonCss = ".Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 2px)}.Circle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.Text{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 5px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:var(--emw-skeleton-text-width-100, 300px)}.Title{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 5px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 250px);height:var(--emw-skeleton-image-height, 200px);border-radius:var(--emw-skeleton-image-border-radius, 10px)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 5px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, var(--emw-skeleton-color-0, #c2c2c2))}100%{background-color:var(--emw-skeleton-secondary-color, var(--emw-skeleton-color-100, #f0f0f0))}}";
4
+ const UiSkeletonStyle0 = uiSkeletonCss;
5
+
6
+ const UiSkeleton = class {
7
+ constructor(hostRef) {
8
+ registerInstance(this, hostRef);
9
+ /**
10
+ * Toggles skeleton animation
11
+ */
12
+ this.animation = true;
13
+ }
14
+ handleStructureChange(newValue, oldValue) {
15
+ if (oldValue !== newValue) {
16
+ this.handleStructure(newValue);
17
+ }
18
+ }
19
+ updateStyles() {
20
+ if (this.primaryColor) {
21
+ this.skeletonContainer.style.setProperty('--emw-skeleton-primary-color', this.primaryColor);
22
+ }
23
+ if (this.secondaryColor) {
24
+ this.skeletonContainer.style.setProperty('--emw-skeleton-secondary-color', this.secondaryColor);
25
+ }
26
+ }
27
+ handleStructure(structure) {
28
+ switch (structure) {
29
+ case 'logo':
30
+ return this.renderLogo();
31
+ case 'image':
32
+ return this.renderImage();
33
+ case 'title':
34
+ return this.renderTitle();
35
+ case 'text':
36
+ return this.renderText();
37
+ case 'rectangle':
38
+ return this.renderRectangle();
39
+ case 'circle':
40
+ return this.renderCircle();
41
+ }
42
+ }
43
+ renderLogo() {
44
+ const styles = {
45
+ width: `${this.width}px`,
46
+ height: `${this.height}px`,
47
+ 'background-color': `${this.color}`,
48
+ 'border-radius': `${this.borderRadius}px`,
49
+ 'margin-bottom': `${this.marginBottom}px`,
50
+ 'margin-top': `${this.marginTop}px`,
51
+ 'margin-left': `${this.marginLeft}px`,
52
+ 'margin-right': `${this.marginRight}px`
53
+ };
54
+ return (h("div", { style: styles, class: "Skeleton Logo" }));
55
+ }
56
+ renderImage() {
57
+ const styles = {
58
+ width: `${this.width}px`,
59
+ height: `${this.height}px`,
60
+ 'background-color': `${this.color}`,
61
+ 'border-radius': `${this.borderRadius}px`,
62
+ 'margin-bottom': `${this.marginBottom}px`,
63
+ 'margin-top': `${this.marginTop}px`,
64
+ 'margin-left': `${this.marginLeft}px`,
65
+ 'margin-right': `${this.marginRight}px`
66
+ };
67
+ return (h("div", { style: styles, class: "Skeleton Image" }));
68
+ }
69
+ renderTitle() {
70
+ const styles = {
71
+ width: `${this.width}px`,
72
+ height: `${this.height}px`,
73
+ 'background-color': `${this.color}`,
74
+ 'border-radius': `${this.borderRadius}px`,
75
+ 'margin-bottom': `${this.marginBottom}px`,
76
+ 'margin-top': `${this.marginTop}px`,
77
+ 'margin-left': `${this.marginLeft}px`,
78
+ 'margin-right': `${this.marginRight}px`
79
+ };
80
+ return (h("div", { style: styles, class: "Skeleton Title" }));
81
+ }
82
+ renderText() {
83
+ const styles = {
84
+ width: `${this.width}px`,
85
+ height: `${this.height}px`,
86
+ 'background-color': `${this.color}`,
87
+ 'border-radius': `${this.borderRadius}px`,
88
+ 'margin-bottom': `${this.marginBottom}px`,
89
+ 'margin-top': `${this.marginTop}px`,
90
+ 'margin-left': `${this.marginLeft}px`,
91
+ 'margin-right': `${this.marginRight}px`
92
+ };
93
+ return (Array.from({ length: this.rows > 0 ? this.rows : 1 }).map((_, index) => (h("div", { style: styles, key: index, class: "Skeleton Text" }))));
94
+ }
95
+ renderRectangle() {
96
+ const styles = {
97
+ width: `${this.width}px`,
98
+ height: `${this.height}px`,
99
+ 'backgroud-color': `${this.color}`,
100
+ 'border-radius': `${this.borderRadius}px`,
101
+ 'margin-bottom': `${this.marginBottom}px`,
102
+ 'margin-top': `${this.marginTop}px`,
103
+ 'margin-left': `${this.marginLeft}px`,
104
+ 'margin-right': `${this.marginRight}px`
105
+ };
106
+ return (h("div", { style: styles, class: "Skeleton Rectangle" }));
107
+ }
108
+ renderCircle() {
109
+ const styles = {
110
+ width: `${this.size}px`,
111
+ height: `${this.size}px`,
112
+ 'background-color': `${this.color}`,
113
+ 'margin-bottom': `${this.marginBottom}px`,
114
+ 'margin-top': `${this.marginTop}px`,
115
+ 'margin-left': `${this.marginLeft}px`,
116
+ 'margin-right': `${this.marginRight}px`
117
+ };
118
+ return (h("div", { ref: el => this.skeletonContainer = el }, h("div", { style: styles, class: "Circle " + (this.animation ? 'Skeleton' : '') })));
119
+ }
120
+ componentDidLoad() {
121
+ this.updateStyles();
122
+ }
123
+ render() {
124
+ return (this.handleStructure(this.structure));
125
+ }
126
+ static get watchers() { return {
127
+ "structure": ["handleStructureChange"],
128
+ "primaryColor": ["updateStyles"],
129
+ "secondaryColor": ["updateStyles"]
130
+ }; }
131
+ };
132
+ UiSkeleton.style = UiSkeletonStyle0;
133
+
134
+ export { UiSkeleton as U };
@@ -0,0 +1,2 @@
1
+ export { U as ui_skeleton } from './ui-skeleton-2473e87c.js';
2
+ import './index-f5cf3f14.js';
@@ -0,0 +1,20 @@
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-f5cf3f14.js';
2
+ export { s as setNonce } from './index-f5cf3f14.js';
3
+ import { g as globalScripts } from './app-globals-0f993ce5.js';
4
+
5
+ /*
6
+ Stencil Client Patch Browser v4.25.1 | MIT Licensed | https://stenciljs.com
7
+ */
8
+ var patchBrowser = () => {
9
+ const importMeta = import.meta.url;
10
+ const opts = {};
11
+ if (importMeta !== "") {
12
+ opts.resourcesUrl = new URL(".", importMeta).href;
13
+ }
14
+ return promiseResolve(opts);
15
+ };
16
+
17
+ patchBrowser().then(async (options) => {
18
+ await globalScripts();
19
+ return bootstrapLazy([["ui-skeleton",[[0,"ui-skeleton",{"structure":[1],"width":[2],"height":[2],"borderRadius":[2,"border-radius"],"marginBottom":[2,"margin-bottom"],"marginTop":[2,"margin-top"],"marginLeft":[2,"margin-left"],"marginRight":[2,"margin-right"],"animation":[4],"rows":[2],"size":[2],"color":[1],"primaryColor":[1,"primary-color"],"secondaryColor":[1,"secondary-color"]},null,{"structure":["handleStructureChange"],"primaryColor":["updateStyles"],"secondaryColor":["updateStyles"]}]]]], options);
20
+ });
@@ -0,0 +1 @@
1
+ module.exports = require('./cjs/index.cjs.js');
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ export * from './esm/index.js';
@@ -0,0 +1,19 @@
1
+ import { sass } from "@stencil/sass";
2
+ export const config = {
3
+ namespace: 'ui-skeleton',
4
+ taskQueue: 'async',
5
+ sourceMap: false,
6
+ minifyJs: true,
7
+ extras: {
8
+ experimentalImportInjection: true
9
+ },
10
+ plugins: [sass()],
11
+ outputTargets: [
12
+ {
13
+ type: 'www'
14
+ },
15
+ {
16
+ type: 'docs-readme'
17
+ }
18
+ ]
19
+ };
@@ -0,0 +1,17 @@
1
+ import { sass } from "@stencil/sass";
2
+ export const config = {
3
+ namespace: 'ui-skeleton',
4
+ taskQueue: 'async',
5
+ sourceMap: false,
6
+ minifyJs: true,
7
+ extras: {
8
+ experimentalImportInjection: true
9
+ },
10
+ plugins: [sass()],
11
+ outputTargets: [
12
+ {
13
+ type: 'dist',
14
+ esmLoaderPath: '../loader'
15
+ }
16
+ ]
17
+ };
@@ -0,0 +1,21 @@
1
+ import * as path from "path";
2
+ const config = {
3
+ stories: ['../**/*.@(mdx|stories.@(js|ts|tsx))'],
4
+ addons: ['@storybook/addon-essentials', '@storybook/addon-interactions', 'storybook-dark-mode'],
5
+ docs: {
6
+ defaultName: 'Documentation',
7
+ autodocs: 'tag'
8
+ },
9
+ framework: {
10
+ name: '@storybook/web-components-vite',
11
+ options: {}
12
+ },
13
+ viteFinal: async (config) => {
14
+ return Object.assign(Object.assign({}, config), { resolve: {
15
+ alias: {
16
+ 'ui-skeleton': path.resolve(__dirname, '../../../../dist/packages/stencil/ui-skeleton')
17
+ }
18
+ } });
19
+ }
20
+ };
21
+ export default config;
@@ -0,0 +1,9 @@
1
+ import { themes } from "@storybook/theming";
2
+ export const parameters = {
3
+ darkMode: {
4
+ dark: Object.assign(Object.assign({}, themes.dark), { appBg: 'black' }),
5
+ light: Object.assign(Object.assign({}, themes.normal), { appBg: 'green' }),
6
+ current: 'light',
7
+ stylePreview: true
8
+ }
9
+ };
@@ -0,0 +1,2 @@
1
+ import { Config } from '../../../../../../../../../../../../stencil-public-runtime';
2
+ export declare const config: Config;
@@ -0,0 +1,2 @@
1
+ import { Config } from '../../../../../../../../../../../../stencil-public-runtime';
2
+ export declare const config: Config;
@@ -0,0 +1,3 @@
1
+ import type { StorybookConfig } from '@storybook/web-components-vite';
2
+ declare const config: StorybookConfig;
3
+ export default config;
@@ -0,0 +1,70 @@
1
+ export declare const parameters: {
2
+ darkMode: {
3
+ dark: {
4
+ appBg: string;
5
+ base: "light" | "dark";
6
+ colorPrimary: string;
7
+ colorSecondary: string;
8
+ appContentBg: string;
9
+ appPreviewBg: string;
10
+ appBorderColor: string;
11
+ appBorderRadius: number;
12
+ fontBase: string;
13
+ fontCode: string;
14
+ textColor: string;
15
+ textInverseColor: string;
16
+ textMutedColor: string;
17
+ barTextColor: string;
18
+ barHoverColor: string;
19
+ barSelectedColor: string;
20
+ barBg: string;
21
+ buttonBg: string;
22
+ buttonBorder: string;
23
+ booleanBg: string;
24
+ booleanSelectedBg: string;
25
+ inputBg: string;
26
+ inputBorder: string;
27
+ inputTextColor: string;
28
+ inputBorderRadius: number;
29
+ brandTitle?: string;
30
+ brandUrl?: string;
31
+ brandImage?: string;
32
+ brandTarget?: string;
33
+ gridCellSize?: number;
34
+ };
35
+ light: {
36
+ appBg: string;
37
+ base: "light" | "dark";
38
+ colorPrimary: string;
39
+ colorSecondary: string;
40
+ appContentBg: string;
41
+ appPreviewBg: string;
42
+ appBorderColor: string;
43
+ appBorderRadius: number;
44
+ fontBase: string;
45
+ fontCode: string;
46
+ textColor: string;
47
+ textInverseColor: string;
48
+ textMutedColor: string;
49
+ barTextColor: string;
50
+ barHoverColor: string;
51
+ barSelectedColor: string;
52
+ barBg: string;
53
+ buttonBg: string;
54
+ buttonBorder: string;
55
+ booleanBg: string;
56
+ booleanSelectedBg: string;
57
+ inputBg: string;
58
+ inputBorder: string;
59
+ inputTextColor: string;
60
+ inputBorderRadius: number;
61
+ brandTitle?: string;
62
+ brandUrl?: string;
63
+ brandImage?: string;
64
+ brandTarget?: string;
65
+ gridCellSize?: number;
66
+ };
67
+ current: string;
68
+ stylePreview: boolean;
69
+ };
70
+ };
@@ -0,0 +1 @@
1
+ export { UiSkeleton } from './ui-skeleton';
@@ -0,0 +1,71 @@
1
+ export declare class UiSkeleton {
2
+ /**
3
+ * The structure of the skeleton
4
+ */
5
+ structure: 'logo' | 'image' | 'title' | 'text' | 'rectangle' | 'circle';
6
+ /**
7
+ * Width of the element
8
+ */
9
+ width: number;
10
+ /**
11
+ * Height of the element
12
+ */
13
+ height: number;
14
+ /**
15
+ * The border radius of the element
16
+ */
17
+ borderRadius: number;
18
+ /**
19
+ * Margin bottom for the element
20
+ */
21
+ marginBottom: number;
22
+ /**
23
+ * Margin top for the element
24
+ */
25
+ marginTop: number;
26
+ /**
27
+ * Margin left for the element
28
+ */
29
+ marginLeft: number;
30
+ /**
31
+ * Margin right for the element
32
+ */
33
+ marginRight: number;
34
+ /**
35
+ * Toggles skeleton animation
36
+ */
37
+ animation: boolean;
38
+ /**
39
+ * Number of rows displayed - only for `text`
40
+ */
41
+ rows: number;
42
+ /**
43
+ * The size of the circle - only for `circle
44
+ */
45
+ size: number;
46
+ /**
47
+ * Color of the skeleton when animation is `off` - hexa value (e.g. #c2c2c2)
48
+ */
49
+ color: string;
50
+ /**
51
+ * Primary color of the skeleton when animation is `on` - hexa value (e.g. #c2c2c2)
52
+ */
53
+ primaryColor: string;
54
+ /**
55
+ * Secondary color of the skeleton when animation is `on` - hexa value (e.g. #ffffff)
56
+ */
57
+ secondaryColor: string;
58
+ private skeletonContainer;
59
+ constructor();
60
+ handleStructureChange(newValue: any, oldValue: any): void;
61
+ updateStyles(): void;
62
+ handleStructure(structure: any): any;
63
+ renderLogo(): any;
64
+ renderImage(): any;
65
+ renderTitle(): any;
66
+ renderText(): any[];
67
+ renderRectangle(): any;
68
+ renderCircle(): any;
69
+ componentDidLoad(): void;
70
+ render(): any;
71
+ }
@@ -0,0 +1,149 @@
1
+ /* eslint-disable */
2
+ /* tslint:disable */
3
+ /**
4
+ * This is an autogenerated file created by the Stencil compiler.
5
+ * It contains typing information for all components that exist in this project.
6
+ */
7
+ import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
+ export namespace Components {
9
+ interface UiSkeleton {
10
+ /**
11
+ * Toggles skeleton animation
12
+ */
13
+ "animation": boolean;
14
+ /**
15
+ * The border radius of the element
16
+ */
17
+ "borderRadius": number;
18
+ /**
19
+ * Color of the skeleton when animation is `off` - hexa value (e.g. #c2c2c2)
20
+ */
21
+ "color": string;
22
+ /**
23
+ * Height of the element
24
+ */
25
+ "height": number;
26
+ /**
27
+ * Margin bottom for the element
28
+ */
29
+ "marginBottom": number;
30
+ /**
31
+ * Margin left for the element
32
+ */
33
+ "marginLeft": number;
34
+ /**
35
+ * Margin right for the element
36
+ */
37
+ "marginRight": number;
38
+ /**
39
+ * Margin top for the element
40
+ */
41
+ "marginTop": number;
42
+ /**
43
+ * Primary color of the skeleton when animation is `on` - hexa value (e.g. #c2c2c2)
44
+ */
45
+ "primaryColor": string;
46
+ /**
47
+ * Number of rows displayed - only for `text`
48
+ */
49
+ "rows": number;
50
+ /**
51
+ * Secondary color of the skeleton when animation is `on` - hexa value (e.g. #ffffff)
52
+ */
53
+ "secondaryColor": string;
54
+ /**
55
+ * The size of the circle - only for `circle
56
+ */
57
+ "size": number;
58
+ /**
59
+ * The structure of the skeleton
60
+ */
61
+ "structure": 'logo' | 'image' | 'title' | 'text' | 'rectangle' | 'circle';
62
+ /**
63
+ * Width of the element
64
+ */
65
+ "width": number;
66
+ }
67
+ }
68
+ declare global {
69
+ interface HTMLUiSkeletonElement extends Components.UiSkeleton, HTMLStencilElement {
70
+ }
71
+ var HTMLUiSkeletonElement: {
72
+ prototype: HTMLUiSkeletonElement;
73
+ new (): HTMLUiSkeletonElement;
74
+ };
75
+ interface HTMLElementTagNameMap {
76
+ "ui-skeleton": HTMLUiSkeletonElement;
77
+ }
78
+ }
79
+ declare namespace LocalJSX {
80
+ interface UiSkeleton {
81
+ /**
82
+ * Toggles skeleton animation
83
+ */
84
+ "animation"?: boolean;
85
+ /**
86
+ * The border radius of the element
87
+ */
88
+ "borderRadius"?: number;
89
+ /**
90
+ * Color of the skeleton when animation is `off` - hexa value (e.g. #c2c2c2)
91
+ */
92
+ "color"?: string;
93
+ /**
94
+ * Height of the element
95
+ */
96
+ "height"?: number;
97
+ /**
98
+ * Margin bottom for the element
99
+ */
100
+ "marginBottom"?: number;
101
+ /**
102
+ * Margin left for the element
103
+ */
104
+ "marginLeft"?: number;
105
+ /**
106
+ * Margin right for the element
107
+ */
108
+ "marginRight"?: number;
109
+ /**
110
+ * Margin top for the element
111
+ */
112
+ "marginTop"?: number;
113
+ /**
114
+ * Primary color of the skeleton when animation is `on` - hexa value (e.g. #c2c2c2)
115
+ */
116
+ "primaryColor"?: string;
117
+ /**
118
+ * Number of rows displayed - only for `text`
119
+ */
120
+ "rows"?: number;
121
+ /**
122
+ * Secondary color of the skeleton when animation is `on` - hexa value (e.g. #ffffff)
123
+ */
124
+ "secondaryColor"?: string;
125
+ /**
126
+ * The size of the circle - only for `circle
127
+ */
128
+ "size"?: number;
129
+ /**
130
+ * The structure of the skeleton
131
+ */
132
+ "structure"?: 'logo' | 'image' | 'title' | 'text' | 'rectangle' | 'circle';
133
+ /**
134
+ * Width of the element
135
+ */
136
+ "width"?: number;
137
+ }
138
+ interface IntrinsicElements {
139
+ "ui-skeleton": UiSkeleton;
140
+ }
141
+ }
142
+ export { LocalJSX as JSX };
143
+ declare module "@stencil/core" {
144
+ export namespace JSX {
145
+ interface IntrinsicElements {
146
+ "ui-skeleton": LocalJSX.UiSkeleton & JSXBase.HTMLAttributes<HTMLUiSkeletonElement>;
147
+ }
148
+ }
149
+ }
@@ -0,0 +1 @@
1
+ export * from './components/ui-skeleton';