@everymatrix/casino-challenges-list 0.0.1

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 (56) hide show
  1. package/dist/casino-challenges-list/app-globals-0f993ce5.js +1 -0
  2. package/dist/casino-challenges-list/casino-challenges-list-d8eefa92.js +1 -0
  3. package/dist/casino-challenges-list/casino-challenges-list.esm.js +1 -0
  4. package/dist/casino-challenges-list/casino-challenges-list_2.entry.js +1 -0
  5. package/dist/casino-challenges-list/index-e9d014fd.js +2 -0
  6. package/dist/casino-challenges-list/index.esm.js +1 -0
  7. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  8. package/dist/cjs/casino-challenges-list-4da62aa7.js +155 -0
  9. package/dist/cjs/casino-challenges-list.cjs.js +25 -0
  10. package/dist/cjs/casino-challenges-list_2.cjs.entry.js +184 -0
  11. package/dist/cjs/index-75e73570.js +1200 -0
  12. package/dist/cjs/index.cjs.js +11 -0
  13. package/dist/cjs/loader.cjs.js +15 -0
  14. package/dist/collection/collection-manifest.json +19 -0
  15. package/dist/collection/components/casino-challenges-list/casino-challenges-list.css +40 -0
  16. package/dist/collection/components/casino-challenges-list/casino-challenges-list.js +274 -0
  17. package/dist/collection/components/casino-challenges-list/index.js +1 -0
  18. package/dist/collection/index.js +1 -0
  19. package/dist/collection/utils/types.js +40 -0
  20. package/dist/collection/utils/utils.js +3 -0
  21. package/dist/esm/app-globals-0f993ce5.js +3 -0
  22. package/dist/esm/casino-challenges-list-d8eefa92.js +153 -0
  23. package/dist/esm/casino-challenges-list.js +20 -0
  24. package/dist/esm/casino-challenges-list_2.entry.js +179 -0
  25. package/dist/esm/index-e9d014fd.js +1171 -0
  26. package/dist/esm/index.js +3 -0
  27. package/dist/esm/loader.js +11 -0
  28. package/dist/index.cjs.js +1 -0
  29. package/dist/index.js +1 -0
  30. package/dist/stencil.config.dev.js +19 -0
  31. package/dist/stencil.config.js +19 -0
  32. package/dist/storybook/main.js +43 -0
  33. package/dist/storybook/preview.js +9 -0
  34. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-challenges-list/.stencil/libs/common/src/storybook/storybook-utils.d.ts +39 -0
  35. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-challenges-list/.stencil/packages/stencil/casino-challenges-list/stencil.config.d.ts +2 -0
  36. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-challenges-list/.stencil/packages/stencil/casino-challenges-list/stencil.config.dev.d.ts +2 -0
  37. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-challenges-list/.stencil/packages/stencil/casino-challenges-list/storybook/main.d.ts +3 -0
  38. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-challenges-list/.stencil/packages/stencil/casino-challenges-list/storybook/preview.d.ts +70 -0
  39. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-challenges-list/.stencil/tools/plugins/index.d.ts +3 -0
  40. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-challenges-list/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +5 -0
  41. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-challenges-list/.stencil/tools/plugins/vite-chunk-plugin.d.ts +6 -0
  42. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/casino-challenges-list/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +4 -0
  43. package/dist/types/components/casino-challenges-list/casino-challenges-list.d.ts +30 -0
  44. package/dist/types/components/casino-challenges-list/index.d.ts +1 -0
  45. package/dist/types/components.d.ts +71 -0
  46. package/dist/types/index.d.ts +1 -0
  47. package/dist/types/stencil-public-runtime.d.ts +1674 -0
  48. package/dist/types/utils/types.d.ts +124 -0
  49. package/dist/types/utils/utils.d.ts +1 -0
  50. package/loader/cdn.js +1 -0
  51. package/loader/index.cjs.js +1 -0
  52. package/loader/index.d.ts +24 -0
  53. package/loader/index.es2017.js +1 -0
  54. package/loader/index.js +2 -0
  55. package/loader/package.json +11 -0
  56. package/package.json +27 -0
@@ -0,0 +1,179 @@
1
+ export { C as casino_challenges_list } from './casino-challenges-list-d8eefa92.js';
2
+ import { r as registerInstance, h, H as Host } from './index-e9d014fd.js';
3
+ import '@everymatrix/casino-challenge-card';
4
+
5
+ const uiSkeletonCss = ":host{display:block}.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, 10px)}.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, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.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, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.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, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}";
6
+ const UiSkeletonStyle0 = uiSkeletonCss;
7
+
8
+ const UiSkeleton = class {
9
+ constructor(hostRef) {
10
+ registerInstance(this, hostRef);
11
+ this.stylingValue = {
12
+ width: this.handleStylingProps(this.width),
13
+ height: this.handleStylingProps(this.height),
14
+ borderRadius: this.handleStylingProps(this.borderRadius),
15
+ marginBottom: this.handleStylingProps(this.marginBottom),
16
+ marginTop: this.handleStylingProps(this.marginTop),
17
+ marginLeft: this.handleStylingProps(this.marginLeft),
18
+ marginRight: this.handleStylingProps(this.marginRight),
19
+ size: this.handleStylingProps(this.size)
20
+ };
21
+ this.structure = undefined;
22
+ this.width = 'unset';
23
+ this.height = 'unset';
24
+ this.borderRadius = 'unset';
25
+ this.marginBottom = 'unset';
26
+ this.marginTop = 'unset';
27
+ this.marginLeft = 'unset';
28
+ this.marginRight = 'unset';
29
+ this.animation = true;
30
+ this.rows = 0;
31
+ this.size = '100%';
32
+ }
33
+ handleStructureChange(newValue, oldValue) {
34
+ if (oldValue !== newValue) {
35
+ this.handleStructure(newValue);
36
+ }
37
+ }
38
+ handleStylingProps(value) {
39
+ switch (typeof value) {
40
+ case 'number':
41
+ return value === 0 ? 0 : `${value}px`;
42
+ case 'undefined':
43
+ return 'unset';
44
+ case 'string':
45
+ if (['auto', 'unset', 'none', 'inherit', 'initial'].includes(value) ||
46
+ value.endsWith('px') ||
47
+ value.endsWith('%')) {
48
+ return value;
49
+ }
50
+ else {
51
+ return 'unset';
52
+ }
53
+ default:
54
+ return 'unset';
55
+ }
56
+ }
57
+ handleStructure(structure) {
58
+ switch (structure) {
59
+ case 'logo':
60
+ return this.renderLogo();
61
+ case 'image':
62
+ return this.renderImage();
63
+ case 'title':
64
+ return this.renderTitle();
65
+ case 'text':
66
+ return this.renderText();
67
+ case 'rectangle':
68
+ return this.renderRectangle();
69
+ case 'circle':
70
+ return this.renderCircle();
71
+ default:
72
+ return null;
73
+ }
74
+ }
75
+ renderLogo() {
76
+ return (h("div", { class: "SkeletonContainer" }, h("div", { class: 'Logo ' + (this.animation ? 'Skeleton' : '') })));
77
+ }
78
+ renderImage() {
79
+ return h("div", { class: 'Image ' + (this.animation ? 'Skeleton' : '') });
80
+ }
81
+ renderTitle() {
82
+ return (h("div", { class: "SkeletonContainer" }, h("div", { class: 'Title ' + (this.animation ? 'Skeleton' : '') })));
83
+ }
84
+ renderText() {
85
+ return (h("div", { class: "SkeletonContainer" }, Array.from({ length: this.rows > 0 ? this.rows : 1 }).map((_, index) => (h("div", { key: index, class: 'Text ' + (this.animation ? 'Skeleton' : '') })))));
86
+ }
87
+ renderRectangle() {
88
+ return (h("div", { class: "SkeletonContainer" }, h("div", { class: 'Rectangle ' + (this.animation ? 'Skeleton' : '') })));
89
+ }
90
+ renderCircle() {
91
+ return (h("div", { class: "SkeletonContainer" }, h("div", { class: 'Circle ' + (this.animation ? 'Skeleton' : '') })));
92
+ }
93
+ render() {
94
+ let styleBlock = '';
95
+ switch (this.structure) {
96
+ case 'logo':
97
+ styleBlock = `
98
+ :host {
99
+ --emw-skeleton-logo-width: ${this.stylingValue.width};
100
+ --emw-skeleton-logo-height: ${this.stylingValue.height};
101
+ --emw-skeleton-logo-border-radius: ${this.stylingValue.borderRadius};
102
+ --emw-skeleton-logo-margin-bottom: ${this.stylingValue.marginBottom};
103
+ --emw-skeleton-logo-margin-top: ${this.stylingValue.marginTop};
104
+ --emw-skeleton-logo-margin-left: ${this.stylingValue.marginLeft};
105
+ --emw-skeleton-logo-margin-right: ${this.stylingValue.marginRight};
106
+ }
107
+ `;
108
+ break;
109
+ case 'image':
110
+ styleBlock = `
111
+ :host {
112
+ --emw-skeleton-image-width: ${this.stylingValue.width};
113
+ --emw-skeleton-image-height: ${this.stylingValue.height};
114
+ --emw-skeleton-image-border-radius: ${this.stylingValue.borderRadius};
115
+ --emw-skeleton-image-margin-bottom: ${this.stylingValue.marginBottom};
116
+ --emw-skeleton-image-margin-top: ${this.stylingValue.marginTop};
117
+ --emw-skeleton-image-margin-left: ${this.stylingValue.marginLeft};
118
+ --emw-skeleton-image-margin-right: ${this.stylingValue.marginRight};
119
+ }
120
+ `;
121
+ break;
122
+ case 'title':
123
+ styleBlock = `
124
+ :host {
125
+ --emw-skeleton-title-width: ${this.stylingValue.width};
126
+ --emw-skeleton-title-height: ${this.stylingValue.height};
127
+ --emw-skeleton-title-border-radius: ${this.stylingValue.borderRadius};
128
+ --emw-skeleton-title-margin-bottom: ${this.stylingValue.marginBottom};
129
+ --emw-skeleton-title-margin-top: ${this.stylingValue.marginTop};
130
+ --emw-skeleton-title-margin-left: ${this.stylingValue.marginLeft};
131
+ --emw-skeleton-title-margin-right: ${this.stylingValue.marginRight};
132
+ }
133
+ `;
134
+ break;
135
+ case 'text':
136
+ styleBlock = `
137
+ :host {
138
+ --emw-skeleton-text-width: ${this.stylingValue.width};
139
+ --emw-skeleton-text-height: ${this.stylingValue.height};
140
+ --emw-skeleton-text-border-radius: ${this.stylingValue.borderRadius};
141
+ --emw-skeleton-text-margin-bottom: ${this.stylingValue.marginBottom};
142
+ --emw-skeleton-text-margin-top: ${this.stylingValue.marginTop};
143
+ --emw-skeleton-text-margin-left: ${this.stylingValue.marginLeft};
144
+ --emw-skeleton-text-margin-right: ${this.stylingValue.marginRight};
145
+ }
146
+ `;
147
+ break;
148
+ case 'rectangle':
149
+ styleBlock = `
150
+ :host {
151
+ --emw-skeleton-rectangle-width: ${this.stylingValue.width};
152
+ --emw-skeleton-rectangle-height: ${this.stylingValue.height};
153
+ --emw-skeleton-rectangle-border-radius: ${this.stylingValue.borderRadius};
154
+ --emw-skeleton-rectangle-margin-bottom: ${this.stylingValue.marginBottom};
155
+ --emw-skeleton-rectangle-margin-top: ${this.stylingValue.marginTop};
156
+ --emw-skeleton-rectangle-margin-left: ${this.stylingValue.marginLeft};
157
+ --emw-skeleton-rectangle-margin-right: ${this.stylingValue.marginRight};
158
+ }
159
+ `;
160
+ break;
161
+ case 'circle':
162
+ styleBlock = `
163
+ :host {
164
+ --emw-skeleton-circle-size: ${this.stylingValue.size};
165
+ }
166
+ `;
167
+ break;
168
+ default:
169
+ styleBlock = '';
170
+ }
171
+ return (h(Host, { key: 'e6b885bfd985ce7663d990756fe9101e25eb97f0' }, h("style", { key: '06ae24c7bb74f4dacfc12ae58085333f9dc89da5' }, styleBlock), this.handleStructure(this.structure)));
172
+ }
173
+ static get watchers() { return {
174
+ "structure": ["handleStructureChange"]
175
+ }; }
176
+ };
177
+ UiSkeleton.style = UiSkeletonStyle0;
178
+
179
+ export { UiSkeleton as ui_skeleton };