@saasquatch/vanilla-components 1.2.4-1 → 1.2.4-10
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.
- package/dist/cjs/{WidgetHost-71b013eb.js → WidgetHost-f349e877.js} +157 -0
- package/dist/cjs/{en-a49a5ef5.js → en-3a7cb52e.js} +2 -2
- package/dist/cjs/{index-deb40352.js → index-09a04159.js} +54 -3
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/sqh-close-button.cjs.entry.js +2 -2
- package/dist/cjs/{sqh-copy-button_12.cjs.entry.js → sqh-copy-button_14.cjs.entry.js} +1178 -42
- package/dist/cjs/sqh-referral-code.cjs.entry.js +2 -2
- package/dist/cjs/sqh-rewards-actions.cjs.entry.js +1 -1
- package/dist/cjs/widget-components.cjs.js +3 -3
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/close-button/close-button.js +3 -0
- package/dist/collection/components/copy-button/copy-button.js +18 -15
- package/dist/collection/components/copy-link-button/copy-link-button.js +11 -5
- package/dist/collection/components/cta-component/cta-component.css +6 -0
- package/dist/collection/components/cta-component/cta-component.js +393 -0
- package/dist/collection/components/global-container/global-container.js +6 -5
- package/dist/collection/components/image-component/image-component.js +11 -7
- package/dist/collection/components/partner-stat-component/partner-stat-component.js +20 -6
- package/dist/collection/components/progress-indicator/progress-indicator.css +73 -0
- package/dist/collection/components/progress-indicator/progress-indicator.js +554 -0
- package/dist/collection/components/referral-code/referral-code.js +3 -0
- package/dist/collection/components/referral-component/referral-component.js +1 -0
- package/dist/collection/components/referral-list/referral-list.js +49 -43
- package/dist/collection/components/rewards-actions/rewards-actions.js +1 -0
- package/dist/collection/components/share-button/share-button.js +4 -3
- package/dist/collection/components/share-button-container/share-button-container.js +53 -81
- package/dist/collection/components/stat-component/stat-component.js +22 -7
- package/dist/collection/components/stats-container/stats-container.js +13 -7
- package/dist/collection/components/text-component/text-component.js +44 -16
- package/dist/collection/services/WidgetHost.js +157 -0
- package/dist/esm/{WidgetHost-9c337319.js → WidgetHost-c033b6ac.js} +157 -0
- package/dist/esm/{en-be593af0.js → en-a652ab83.js} +1 -1
- package/dist/esm/{index-8ea8b6d8.js → index-342d7c26.js} +54 -3
- package/dist/esm/loader.mjs +3 -3
- package/dist/esm/sqh-close-button.entry.js +2 -2
- package/dist/esm/{sqh-copy-button_12.entry.js → sqh-copy-button_14.entry.js} +1177 -43
- package/dist/esm/sqh-referral-code.entry.js +2 -2
- package/dist/esm/sqh-rewards-actions.entry.js +1 -1
- package/dist/esm/widget-components.mjs +3 -3
- package/dist/esm-es5/{WidgetHost-9c337319.js → WidgetHost-c033b6ac.js} +96 -4
- package/dist/esm-es5/{en-be593af0.js → en-a652ab83.js} +1 -1
- package/dist/esm-es5/{index-8ea8b6d8.js → index-342d7c26.js} +53 -3
- package/dist/esm-es5/loader.mjs +3 -3
- package/dist/esm-es5/sqh-close-button.entry.js +2 -2
- package/dist/esm-es5/{sqh-copy-button_12.entry.js → sqh-copy-button_14.entry.js} +1065 -54
- package/dist/esm-es5/sqh-referral-code.entry.js +2 -2
- package/dist/esm-es5/sqh-rewards-actions.entry.js +1 -1
- package/dist/esm-es5/widget-components.mjs +3 -3
- package/dist/types/components/close-button/close-button.d.ts +3 -0
- package/dist/types/components/copy-button/copy-button.d.ts +10 -21
- package/dist/types/components/copy-link-button/copy-link-button.d.ts +5 -9
- package/dist/types/components/cta-component/cta-component.d.ts +89 -0
- package/dist/types/components/global-container/global-container.d.ts +4 -7
- package/dist/types/components/image-component/image-component.d.ts +6 -10
- package/dist/types/components/partner-stat-component/partner-stat-component.d.ts +12 -8
- package/dist/types/components/progress-indicator/progress-indicator.d.ts +91 -0
- package/dist/types/components/referral-code/referral-code.d.ts +3 -0
- package/dist/types/components/referral-component/referral-component.d.ts +1 -0
- package/dist/types/components/referral-list/referral-list.d.ts +42 -48
- package/dist/types/components/rewards-actions/rewards-actions.d.ts +1 -0
- package/dist/types/components/share-button/share-button.d.ts +3 -4
- package/dist/types/components/share-button-container/share-button-container.d.ts +13 -83
- package/dist/types/components/stat-component/stat-component.d.ts +13 -10
- package/dist/types/components/stats-container/stats-container.d.ts +8 -5
- package/dist/types/components/text-component/text-component.d.ts +17 -20
- package/dist/types/components.d.ts +488 -312
- package/dist/types/saasquatch.d.ts +3 -1
- package/dist/types/services/WidgetHost.d.ts +6 -0
- package/dist/widget-components/p-0839fd2c.system.entry.js +10 -0
- package/dist/widget-components/{p-44a6559d.js → p-17d80384.js} +1 -1
- package/dist/widget-components/{p-54ea7a00.entry.js → p-3ba562d0.entry.js} +1 -1
- package/dist/widget-components/{p-366f1663.entry.js → p-4293e873.entry.js} +1 -1
- package/dist/widget-components/{p-8e232564.system.js → p-54e83dfb.system.js} +2 -2
- package/dist/widget-components/{p-e2b4739f.system.entry.js → p-665b8d42.system.entry.js} +1 -1
- package/dist/widget-components/{p-edd43dbc.js → p-6e753d23.js} +68 -3
- package/dist/widget-components/p-a952fcf2.entry.js +233 -0
- package/dist/widget-components/{p-a846f503.system.js → p-aaf44379.system.js} +1 -1
- package/dist/widget-components/{p-b17efca4.system.entry.js → p-abf8a511.system.entry.js} +1 -1
- package/dist/widget-components/p-ad5121cf.system.js +1 -0
- package/dist/widget-components/p-d9e9c55c.system.entry.js +1 -0
- package/dist/widget-components/{p-58be1132.system.js → p-e82def83.system.js} +1 -1
- package/dist/widget-components/{p-9746ae26.entry.js → p-fb528be6.entry.js} +1 -1
- package/dist/widget-components/p-fbf0c7fe.js +1 -0
- package/dist/widget-components/widget-components.esm.js +1 -1
- package/dist/widget-components/widget-components.js +1 -1
- package/docs/raisins.json +1 -1
- package/package.json +4 -3
- package/dist/widget-components/p-485eaf44.js +0 -1
- package/dist/widget-components/p-c8bc8c77.system.entry.js +0 -1
- package/dist/widget-components/p-d416634a.entry.js +0 -148
- package/dist/widget-components/p-d97c955d.system.entry.js +0 -8
- package/dist/widget-components/p-e61a8100.system.js +0 -1
|
@@ -0,0 +1,393 @@
|
|
|
1
|
+
import { Component, Prop, h, Element } from '@stencil/core';
|
|
2
|
+
import { css } from 'emotion';
|
|
3
|
+
/**
|
|
4
|
+
* @uiName Call To Action
|
|
5
|
+
*/
|
|
6
|
+
export class CTAComponent {
|
|
7
|
+
render() {
|
|
8
|
+
const buttonStyle = css `
|
|
9
|
+
font-family: ${this.fontfamily || 'inherit'};
|
|
10
|
+
font-size: ${this.fontsize ? this.fontsize + 'px' : 'inherit'};
|
|
11
|
+
font-weight: ${this.fontweight ? this.fontweight : 'inherit'};
|
|
12
|
+
color: ${this.color || 'inherit'};
|
|
13
|
+
padding-top: ${this.paddingtop ? this.paddingtop + 'px' : 'inherit'};
|
|
14
|
+
padding-bottom: ${this.paddingbottom ? this.paddingbottom + 'px' : 'inherit'};
|
|
15
|
+
width:${this.width ? this.width + 'px' : 'auto'};
|
|
16
|
+
overflow-wrap: break-word;
|
|
17
|
+
border-radius: ${this.borderradius ? this.borderradius + 'px' : '8px'};
|
|
18
|
+
margin:0 auto;
|
|
19
|
+
border:none;
|
|
20
|
+
background-color: ${this.buttonbackground ? this.buttonbackground : '#F5A100'};
|
|
21
|
+
&:hover {
|
|
22
|
+
cursor:pointer;
|
|
23
|
+
opacity:0.9;
|
|
24
|
+
}
|
|
25
|
+
&:focus {
|
|
26
|
+
outline:none;
|
|
27
|
+
}
|
|
28
|
+
`;
|
|
29
|
+
const divStyle = css `
|
|
30
|
+
text-align: ${this.textalign};
|
|
31
|
+
background: ${this.background ? this.background : 'inherit'};
|
|
32
|
+
height: ${this.height || 'inherit'};
|
|
33
|
+
background-size: contain;
|
|
34
|
+
`;
|
|
35
|
+
return !this.ishidden &&
|
|
36
|
+
h("div", { class: divStyle },
|
|
37
|
+
h("button", { class: buttonStyle, onClick: () => window.open(this.url, "_blank") }, this.text));
|
|
38
|
+
}
|
|
39
|
+
static get is() { return "sqh-cta-component"; }
|
|
40
|
+
static get originalStyleUrls() { return {
|
|
41
|
+
"$": ["cta-component.scss"]
|
|
42
|
+
}; }
|
|
43
|
+
static get styleUrls() { return {
|
|
44
|
+
"$": ["cta-component.css"]
|
|
45
|
+
}; }
|
|
46
|
+
static get properties() { return {
|
|
47
|
+
"ishidden": {
|
|
48
|
+
"type": "boolean",
|
|
49
|
+
"mutable": false,
|
|
50
|
+
"complexType": {
|
|
51
|
+
"original": "boolean",
|
|
52
|
+
"resolved": "boolean",
|
|
53
|
+
"references": {}
|
|
54
|
+
},
|
|
55
|
+
"required": false,
|
|
56
|
+
"optional": false,
|
|
57
|
+
"docs": {
|
|
58
|
+
"tags": [{
|
|
59
|
+
"text": "Hide Text",
|
|
60
|
+
"name": "uiName"
|
|
61
|
+
}],
|
|
62
|
+
"text": ""
|
|
63
|
+
},
|
|
64
|
+
"attribute": "ishidden",
|
|
65
|
+
"reflect": false
|
|
66
|
+
},
|
|
67
|
+
"ismarkdown": {
|
|
68
|
+
"type": "boolean",
|
|
69
|
+
"mutable": false,
|
|
70
|
+
"complexType": {
|
|
71
|
+
"original": "boolean",
|
|
72
|
+
"resolved": "boolean",
|
|
73
|
+
"references": {}
|
|
74
|
+
},
|
|
75
|
+
"required": false,
|
|
76
|
+
"optional": false,
|
|
77
|
+
"docs": {
|
|
78
|
+
"tags": [{
|
|
79
|
+
"text": "Use Markdown",
|
|
80
|
+
"name": "uiName"
|
|
81
|
+
}],
|
|
82
|
+
"text": "Compile plain text into HTML. See {@link https://www.markdownguide.org/getting-started/ markdown} for more details."
|
|
83
|
+
},
|
|
84
|
+
"attribute": "ismarkdown",
|
|
85
|
+
"reflect": false
|
|
86
|
+
},
|
|
87
|
+
"text": {
|
|
88
|
+
"type": "string",
|
|
89
|
+
"mutable": false,
|
|
90
|
+
"complexType": {
|
|
91
|
+
"original": "string",
|
|
92
|
+
"resolved": "string",
|
|
93
|
+
"references": {}
|
|
94
|
+
},
|
|
95
|
+
"required": false,
|
|
96
|
+
"optional": false,
|
|
97
|
+
"docs": {
|
|
98
|
+
"tags": [{
|
|
99
|
+
"text": "Text",
|
|
100
|
+
"name": "uiName"
|
|
101
|
+
}],
|
|
102
|
+
"text": ""
|
|
103
|
+
},
|
|
104
|
+
"attribute": "text",
|
|
105
|
+
"reflect": false
|
|
106
|
+
},
|
|
107
|
+
"fontfamily": {
|
|
108
|
+
"type": "string",
|
|
109
|
+
"mutable": false,
|
|
110
|
+
"complexType": {
|
|
111
|
+
"original": "string",
|
|
112
|
+
"resolved": "string",
|
|
113
|
+
"references": {}
|
|
114
|
+
},
|
|
115
|
+
"required": false,
|
|
116
|
+
"optional": false,
|
|
117
|
+
"docs": {
|
|
118
|
+
"tags": [{
|
|
119
|
+
"text": "Font Family",
|
|
120
|
+
"name": "uiName"
|
|
121
|
+
}],
|
|
122
|
+
"text": ""
|
|
123
|
+
},
|
|
124
|
+
"attribute": "fontfamily",
|
|
125
|
+
"reflect": false
|
|
126
|
+
},
|
|
127
|
+
"color": {
|
|
128
|
+
"type": "string",
|
|
129
|
+
"mutable": false,
|
|
130
|
+
"complexType": {
|
|
131
|
+
"original": "string",
|
|
132
|
+
"resolved": "string",
|
|
133
|
+
"references": {}
|
|
134
|
+
},
|
|
135
|
+
"required": false,
|
|
136
|
+
"optional": false,
|
|
137
|
+
"docs": {
|
|
138
|
+
"tags": [{
|
|
139
|
+
"text": "Text Color",
|
|
140
|
+
"name": "uiName"
|
|
141
|
+
}, {
|
|
142
|
+
"text": "color",
|
|
143
|
+
"name": "uiWidget"
|
|
144
|
+
}, {
|
|
145
|
+
"text": "color",
|
|
146
|
+
"name": "format"
|
|
147
|
+
}],
|
|
148
|
+
"text": ""
|
|
149
|
+
},
|
|
150
|
+
"attribute": "color",
|
|
151
|
+
"reflect": false
|
|
152
|
+
},
|
|
153
|
+
"fontsize": {
|
|
154
|
+
"type": "string",
|
|
155
|
+
"mutable": false,
|
|
156
|
+
"complexType": {
|
|
157
|
+
"original": "string",
|
|
158
|
+
"resolved": "string",
|
|
159
|
+
"references": {}
|
|
160
|
+
},
|
|
161
|
+
"required": false,
|
|
162
|
+
"optional": false,
|
|
163
|
+
"docs": {
|
|
164
|
+
"tags": [{
|
|
165
|
+
"text": "Font Size",
|
|
166
|
+
"name": "uiName"
|
|
167
|
+
}],
|
|
168
|
+
"text": ""
|
|
169
|
+
},
|
|
170
|
+
"attribute": "fontsize",
|
|
171
|
+
"reflect": false
|
|
172
|
+
},
|
|
173
|
+
"paddingtop": {
|
|
174
|
+
"type": "string",
|
|
175
|
+
"mutable": false,
|
|
176
|
+
"complexType": {
|
|
177
|
+
"original": "string",
|
|
178
|
+
"resolved": "string",
|
|
179
|
+
"references": {}
|
|
180
|
+
},
|
|
181
|
+
"required": false,
|
|
182
|
+
"optional": false,
|
|
183
|
+
"docs": {
|
|
184
|
+
"tags": [{
|
|
185
|
+
"text": "Padding Top",
|
|
186
|
+
"name": "uiName"
|
|
187
|
+
}],
|
|
188
|
+
"text": "Top padding in pixels"
|
|
189
|
+
},
|
|
190
|
+
"attribute": "paddingtop",
|
|
191
|
+
"reflect": false
|
|
192
|
+
},
|
|
193
|
+
"fontweight": {
|
|
194
|
+
"type": "string",
|
|
195
|
+
"mutable": false,
|
|
196
|
+
"complexType": {
|
|
197
|
+
"original": "string",
|
|
198
|
+
"resolved": "string",
|
|
199
|
+
"references": {}
|
|
200
|
+
},
|
|
201
|
+
"required": false,
|
|
202
|
+
"optional": false,
|
|
203
|
+
"docs": {
|
|
204
|
+
"tags": [{
|
|
205
|
+
"text": "Font Weight",
|
|
206
|
+
"name": "uiName"
|
|
207
|
+
}],
|
|
208
|
+
"text": ""
|
|
209
|
+
},
|
|
210
|
+
"attribute": "fontweight",
|
|
211
|
+
"reflect": false
|
|
212
|
+
},
|
|
213
|
+
"paddingbottom": {
|
|
214
|
+
"type": "string",
|
|
215
|
+
"mutable": false,
|
|
216
|
+
"complexType": {
|
|
217
|
+
"original": "string",
|
|
218
|
+
"resolved": "string",
|
|
219
|
+
"references": {}
|
|
220
|
+
},
|
|
221
|
+
"required": false,
|
|
222
|
+
"optional": false,
|
|
223
|
+
"docs": {
|
|
224
|
+
"tags": [{
|
|
225
|
+
"text": "Padding Bottom",
|
|
226
|
+
"name": "uiName"
|
|
227
|
+
}],
|
|
228
|
+
"text": "Bottom padding in pixels"
|
|
229
|
+
},
|
|
230
|
+
"attribute": "paddingbottom",
|
|
231
|
+
"reflect": false
|
|
232
|
+
},
|
|
233
|
+
"textalign": {
|
|
234
|
+
"type": "string",
|
|
235
|
+
"mutable": false,
|
|
236
|
+
"complexType": {
|
|
237
|
+
"original": "string",
|
|
238
|
+
"resolved": "string",
|
|
239
|
+
"references": {}
|
|
240
|
+
},
|
|
241
|
+
"required": false,
|
|
242
|
+
"optional": false,
|
|
243
|
+
"docs": {
|
|
244
|
+
"tags": [{
|
|
245
|
+
"text": "Text Alignment",
|
|
246
|
+
"name": "uiName"
|
|
247
|
+
}, {
|
|
248
|
+
"text": "[\"left\", \"center\", \"right\"]",
|
|
249
|
+
"name": "uiEnum"
|
|
250
|
+
}, {
|
|
251
|
+
"text": "[\"Left\", \"Center\", \"Right\"]",
|
|
252
|
+
"name": "uiEnumNames"
|
|
253
|
+
}],
|
|
254
|
+
"text": ""
|
|
255
|
+
},
|
|
256
|
+
"attribute": "textalign",
|
|
257
|
+
"reflect": false
|
|
258
|
+
},
|
|
259
|
+
"background": {
|
|
260
|
+
"type": "string",
|
|
261
|
+
"mutable": false,
|
|
262
|
+
"complexType": {
|
|
263
|
+
"original": "string",
|
|
264
|
+
"resolved": "string",
|
|
265
|
+
"references": {}
|
|
266
|
+
},
|
|
267
|
+
"required": false,
|
|
268
|
+
"optional": false,
|
|
269
|
+
"docs": {
|
|
270
|
+
"tags": [{
|
|
271
|
+
"text": "Background",
|
|
272
|
+
"name": "uiName"
|
|
273
|
+
}],
|
|
274
|
+
"text": ""
|
|
275
|
+
},
|
|
276
|
+
"attribute": "background",
|
|
277
|
+
"reflect": false
|
|
278
|
+
},
|
|
279
|
+
"buttonbackground": {
|
|
280
|
+
"type": "string",
|
|
281
|
+
"mutable": false,
|
|
282
|
+
"complexType": {
|
|
283
|
+
"original": "string",
|
|
284
|
+
"resolved": "string",
|
|
285
|
+
"references": {}
|
|
286
|
+
},
|
|
287
|
+
"required": false,
|
|
288
|
+
"optional": false,
|
|
289
|
+
"docs": {
|
|
290
|
+
"tags": [{
|
|
291
|
+
"text": "Button Color",
|
|
292
|
+
"name": "uiName"
|
|
293
|
+
}, {
|
|
294
|
+
"text": "color",
|
|
295
|
+
"name": "uiWidget"
|
|
296
|
+
}, {
|
|
297
|
+
"text": "color",
|
|
298
|
+
"name": "format"
|
|
299
|
+
}, {
|
|
300
|
+
"text": "'#F5A100'",
|
|
301
|
+
"name": "default"
|
|
302
|
+
}],
|
|
303
|
+
"text": ""
|
|
304
|
+
},
|
|
305
|
+
"attribute": "buttonbackground",
|
|
306
|
+
"reflect": false
|
|
307
|
+
},
|
|
308
|
+
"height": {
|
|
309
|
+
"type": "string",
|
|
310
|
+
"mutable": false,
|
|
311
|
+
"complexType": {
|
|
312
|
+
"original": "string",
|
|
313
|
+
"resolved": "string",
|
|
314
|
+
"references": {}
|
|
315
|
+
},
|
|
316
|
+
"required": false,
|
|
317
|
+
"optional": false,
|
|
318
|
+
"docs": {
|
|
319
|
+
"tags": [{
|
|
320
|
+
"text": "Button Height",
|
|
321
|
+
"name": "uiName"
|
|
322
|
+
}],
|
|
323
|
+
"text": "Button height in pixels."
|
|
324
|
+
},
|
|
325
|
+
"attribute": "height",
|
|
326
|
+
"reflect": false
|
|
327
|
+
},
|
|
328
|
+
"width": {
|
|
329
|
+
"type": "string",
|
|
330
|
+
"mutable": false,
|
|
331
|
+
"complexType": {
|
|
332
|
+
"original": "string",
|
|
333
|
+
"resolved": "string",
|
|
334
|
+
"references": {}
|
|
335
|
+
},
|
|
336
|
+
"required": false,
|
|
337
|
+
"optional": false,
|
|
338
|
+
"docs": {
|
|
339
|
+
"tags": [{
|
|
340
|
+
"text": "Button Width",
|
|
341
|
+
"name": "uiName"
|
|
342
|
+
}],
|
|
343
|
+
"text": "Button width in pixels."
|
|
344
|
+
},
|
|
345
|
+
"attribute": "width",
|
|
346
|
+
"reflect": false
|
|
347
|
+
},
|
|
348
|
+
"borderradius": {
|
|
349
|
+
"type": "string",
|
|
350
|
+
"mutable": false,
|
|
351
|
+
"complexType": {
|
|
352
|
+
"original": "string",
|
|
353
|
+
"resolved": "string",
|
|
354
|
+
"references": {}
|
|
355
|
+
},
|
|
356
|
+
"required": false,
|
|
357
|
+
"optional": false,
|
|
358
|
+
"docs": {
|
|
359
|
+
"tags": [{
|
|
360
|
+
"text": "Border Radius",
|
|
361
|
+
"name": "uiName"
|
|
362
|
+
}, {
|
|
363
|
+
"text": "\"8px\"",
|
|
364
|
+
"name": "default"
|
|
365
|
+
}],
|
|
366
|
+
"text": ""
|
|
367
|
+
},
|
|
368
|
+
"attribute": "borderradius",
|
|
369
|
+
"reflect": false
|
|
370
|
+
},
|
|
371
|
+
"url": {
|
|
372
|
+
"type": "string",
|
|
373
|
+
"mutable": false,
|
|
374
|
+
"complexType": {
|
|
375
|
+
"original": "string",
|
|
376
|
+
"resolved": "string",
|
|
377
|
+
"references": {}
|
|
378
|
+
},
|
|
379
|
+
"required": false,
|
|
380
|
+
"optional": false,
|
|
381
|
+
"docs": {
|
|
382
|
+
"tags": [{
|
|
383
|
+
"text": "Button Link",
|
|
384
|
+
"name": "uiName"
|
|
385
|
+
}],
|
|
386
|
+
"text": ""
|
|
387
|
+
},
|
|
388
|
+
"attribute": "url",
|
|
389
|
+
"reflect": false
|
|
390
|
+
}
|
|
391
|
+
}; }
|
|
392
|
+
static get elementRef() { return "textEl"; }
|
|
393
|
+
}
|
|
@@ -2,6 +2,7 @@ import { h, Component, Prop } from "@stencil/core";
|
|
|
2
2
|
import { css } from "emotion";
|
|
3
3
|
/**
|
|
4
4
|
* @uiName Global Container
|
|
5
|
+
* @canvasRenderer always-replace
|
|
5
6
|
* @slots [{"name":"", "title":"Widget Content"}]
|
|
6
7
|
*/
|
|
7
8
|
export class GlobalContainer {
|
|
@@ -65,7 +66,7 @@ export class GlobalContainer {
|
|
|
65
66
|
"text": "\"#ffffff\"",
|
|
66
67
|
"name": "default"
|
|
67
68
|
}],
|
|
68
|
-
"text": "
|
|
69
|
+
"text": ""
|
|
69
70
|
},
|
|
70
71
|
"attribute": "background",
|
|
71
72
|
"reflect": false
|
|
@@ -91,7 +92,7 @@ export class GlobalContainer {
|
|
|
91
92
|
"text": "color",
|
|
92
93
|
"name": "format"
|
|
93
94
|
}],
|
|
94
|
-
"text": "
|
|
95
|
+
"text": "The background colour of the component while in the loading state."
|
|
95
96
|
},
|
|
96
97
|
"attribute": "loadingcolor",
|
|
97
98
|
"reflect": false
|
|
@@ -137,10 +138,10 @@ export class GlobalContainer {
|
|
|
137
138
|
"optional": false,
|
|
138
139
|
"docs": {
|
|
139
140
|
"tags": [{
|
|
140
|
-
"text": "Max Width",
|
|
141
|
+
"text": "Container Max Width",
|
|
141
142
|
"name": "uiName"
|
|
142
143
|
}],
|
|
143
|
-
"text": "
|
|
144
|
+
"text": ""
|
|
144
145
|
},
|
|
145
146
|
"attribute": "maxwidth",
|
|
146
147
|
"reflect": false
|
|
@@ -160,7 +161,7 @@ export class GlobalContainer {
|
|
|
160
161
|
"text": "Show Powered By",
|
|
161
162
|
"name": "uiName"
|
|
162
163
|
}],
|
|
163
|
-
"text": "Show
|
|
164
|
+
"text": "Show the Powered by SaaSquatch link. This can only be disabled on Pro plans."
|
|
164
165
|
},
|
|
165
166
|
"attribute": "poweredby",
|
|
166
167
|
"reflect": false
|
|
@@ -2,6 +2,7 @@ import { h, Component, Prop } from "@stencil/core";
|
|
|
2
2
|
import { css } from "emotion";
|
|
3
3
|
/**
|
|
4
4
|
* @uiName Image Component
|
|
5
|
+
* @canvasRenderer always-replace
|
|
5
6
|
*/
|
|
6
7
|
export class ImageComponent {
|
|
7
8
|
render() {
|
|
@@ -41,10 +42,13 @@ export class ImageComponent {
|
|
|
41
42
|
"optional": false,
|
|
42
43
|
"docs": {
|
|
43
44
|
"tags": [{
|
|
45
|
+
"text": undefined,
|
|
46
|
+
"name": "undocumented"
|
|
47
|
+
}, {
|
|
44
48
|
"text": "Hide Image",
|
|
45
49
|
"name": "uiName"
|
|
46
50
|
}],
|
|
47
|
-
"text": "
|
|
51
|
+
"text": ""
|
|
48
52
|
},
|
|
49
53
|
"attribute": "ishidden",
|
|
50
54
|
"reflect": false
|
|
@@ -61,7 +65,7 @@ export class ImageComponent {
|
|
|
61
65
|
"optional": false,
|
|
62
66
|
"docs": {
|
|
63
67
|
"tags": [{
|
|
64
|
-
"text": "URL",
|
|
68
|
+
"text": "Image URL",
|
|
65
69
|
"name": "uiName"
|
|
66
70
|
}, {
|
|
67
71
|
"text": "imageUpload",
|
|
@@ -70,7 +74,7 @@ export class ImageComponent {
|
|
|
70
74
|
"text": "url",
|
|
71
75
|
"name": "format"
|
|
72
76
|
}],
|
|
73
|
-
"text": "
|
|
77
|
+
"text": ""
|
|
74
78
|
},
|
|
75
79
|
"attribute": "url",
|
|
76
80
|
"reflect": false
|
|
@@ -90,7 +94,7 @@ export class ImageComponent {
|
|
|
90
94
|
"text": "Width",
|
|
91
95
|
"name": "uiName"
|
|
92
96
|
}],
|
|
93
|
-
"text": "
|
|
97
|
+
"text": "Define the width of the image with a pixel amount."
|
|
94
98
|
},
|
|
95
99
|
"attribute": "width",
|
|
96
100
|
"reflect": false
|
|
@@ -110,7 +114,7 @@ export class ImageComponent {
|
|
|
110
114
|
"text": "Border Radius",
|
|
111
115
|
"name": "uiName"
|
|
112
116
|
}],
|
|
113
|
-
"text": "
|
|
117
|
+
"text": "Define the radius of the corners with a pixel amount."
|
|
114
118
|
},
|
|
115
119
|
"attribute": "borderradius",
|
|
116
120
|
"reflect": false
|
|
@@ -127,7 +131,7 @@ export class ImageComponent {
|
|
|
127
131
|
"optional": false,
|
|
128
132
|
"docs": {
|
|
129
133
|
"tags": [{
|
|
130
|
-
"text": "Alignment",
|
|
134
|
+
"text": "Horizontal Alignment",
|
|
131
135
|
"name": "uiName"
|
|
132
136
|
}, {
|
|
133
137
|
"text": "[\"left\", \"center\", \"right\"]",
|
|
@@ -139,7 +143,7 @@ export class ImageComponent {
|
|
|
139
143
|
"text": "\"center\"",
|
|
140
144
|
"name": "default"
|
|
141
145
|
}],
|
|
142
|
-
"text": "
|
|
146
|
+
"text": ""
|
|
143
147
|
},
|
|
144
148
|
"attribute": "alignment",
|
|
145
149
|
"reflect": false
|
|
@@ -2,6 +2,11 @@ import { h, Component, Prop, Event, Element, Watch, } from "@stencil/core";
|
|
|
2
2
|
import { css } from "emotion";
|
|
3
3
|
/**
|
|
4
4
|
* @uiName Partner Stat
|
|
5
|
+
* @canvasRenderer always-replace
|
|
6
|
+
* @exampleGroup Statistics
|
|
7
|
+
* @example Pending CASH/CAD - <sqh-partner-stat-component statcolor="#000000" stattype="/rewardBalance/CREDIT/CASH_CAD/prettyPendingCredit" statdescription="Pending Balance" paddingtop="10" paddingbottom="10"></sqh-partner-stat-component>
|
|
8
|
+
* @example Available CASH/CAD - <sqh-partner-stat-component stattype="/rewardBalance/CREDIT/CASH_CAD/prettyValue" statdescription="Available Balance" paddingtop="10" paddingbottom="10" statcolor="#4CAF50"></sqh-partner-stat-component>
|
|
9
|
+
* @example Redeemed CASH/CAD - <sqh-partner-stat-component stattype="/rewardBalance/CREDIT/CASH_CAD/prettyRedeemedCredit" statdescription="Redeemed Balance" paddingtop="10" paddingbottom="10" statcolor="#000000"></sqh-partner-stat-component>
|
|
5
10
|
*/
|
|
6
11
|
export class PartnerStatComponent {
|
|
7
12
|
componentWillLoad() {
|
|
@@ -45,10 +50,13 @@ export class PartnerStatComponent {
|
|
|
45
50
|
"optional": false,
|
|
46
51
|
"docs": {
|
|
47
52
|
"tags": [{
|
|
53
|
+
"text": undefined,
|
|
54
|
+
"name": "undocumented"
|
|
55
|
+
}, {
|
|
48
56
|
"text": "Hide Stat",
|
|
49
57
|
"name": "uiName"
|
|
50
58
|
}],
|
|
51
|
-
"text": "
|
|
59
|
+
"text": ""
|
|
52
60
|
},
|
|
53
61
|
"attribute": "ishidden",
|
|
54
62
|
"reflect": false
|
|
@@ -73,8 +81,11 @@ export class PartnerStatComponent {
|
|
|
73
81
|
}, {
|
|
74
82
|
"text": undefined,
|
|
75
83
|
"name": "required"
|
|
84
|
+
}, {
|
|
85
|
+
"text": "1",
|
|
86
|
+
"name": "minLength"
|
|
76
87
|
}],
|
|
77
|
-
"text": "
|
|
88
|
+
"text": "Determines what type of stat is displayed. Manual paths are also supported."
|
|
78
89
|
},
|
|
79
90
|
"attribute": "stattype",
|
|
80
91
|
"reflect": false
|
|
@@ -91,8 +102,11 @@ export class PartnerStatComponent {
|
|
|
91
102
|
"optional": false,
|
|
92
103
|
"docs": {
|
|
93
104
|
"tags": [{
|
|
94
|
-
"text": "
|
|
105
|
+
"text": "Value",
|
|
95
106
|
"name": "uiName"
|
|
107
|
+
}, {
|
|
108
|
+
"text": undefined,
|
|
109
|
+
"name": "undocumented"
|
|
96
110
|
}],
|
|
97
111
|
"text": "Value of the stat"
|
|
98
112
|
},
|
|
@@ -111,10 +125,10 @@ export class PartnerStatComponent {
|
|
|
111
125
|
"optional": false,
|
|
112
126
|
"docs": {
|
|
113
127
|
"tags": [{
|
|
114
|
-
"text": "
|
|
128
|
+
"text": "Description",
|
|
115
129
|
"name": "uiName"
|
|
116
130
|
}],
|
|
117
|
-
"text": "
|
|
131
|
+
"text": ""
|
|
118
132
|
},
|
|
119
133
|
"attribute": "statdescription",
|
|
120
134
|
"reflect": false
|
|
@@ -131,7 +145,7 @@ export class PartnerStatComponent {
|
|
|
131
145
|
"optional": false,
|
|
132
146
|
"docs": {
|
|
133
147
|
"tags": [{
|
|
134
|
-
"text": "
|
|
148
|
+
"text": "Color",
|
|
135
149
|
"name": "uiName"
|
|
136
150
|
}, {
|
|
137
151
|
"text": "color",
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
sqh-progress-indicator {
|
|
2
|
+
display: block;
|
|
3
|
+
}
|
|
4
|
+
sqh-progress-indicator .container-loading {
|
|
5
|
+
display: none;
|
|
6
|
+
left: calc(50% - 50px);
|
|
7
|
+
position: absolute;
|
|
8
|
+
text-align: center;
|
|
9
|
+
top: 45%;
|
|
10
|
+
width: 100px;
|
|
11
|
+
}
|
|
12
|
+
sqh-progress-indicator:not(.hydrated) .container-loading {
|
|
13
|
+
display: block;
|
|
14
|
+
visibility: visible;
|
|
15
|
+
}
|
|
16
|
+
sqh-progress-indicator .loading-icon {
|
|
17
|
+
height: 40px;
|
|
18
|
+
text-align: center;
|
|
19
|
+
font-size: 10px;
|
|
20
|
+
position: absolute;
|
|
21
|
+
left: 0;
|
|
22
|
+
width: 100%;
|
|
23
|
+
top: 45%;
|
|
24
|
+
z-index: 1000;
|
|
25
|
+
}
|
|
26
|
+
sqh-progress-indicator .loading-icon-tr .loading-icon {
|
|
27
|
+
position: relative;
|
|
28
|
+
top: 0;
|
|
29
|
+
}
|
|
30
|
+
sqh-progress-indicator .loading-icon > div {
|
|
31
|
+
background-color: #439B76;
|
|
32
|
+
height: 100%;
|
|
33
|
+
margin: 1px;
|
|
34
|
+
width: 6px;
|
|
35
|
+
display: inline-block;
|
|
36
|
+
-webkit-animation: sk-stretchdelay 1.2s infinite ease-in-out;
|
|
37
|
+
animation: sk-stretchdelay 1.2s infinite ease-in-out;
|
|
38
|
+
}
|
|
39
|
+
sqh-progress-indicator .loading-icon .bar2 {
|
|
40
|
+
-webkit-animation-delay: -1.1s;
|
|
41
|
+
animation-delay: -1.1s;
|
|
42
|
+
}
|
|
43
|
+
sqh-progress-indicator .loading-icon .bar3 {
|
|
44
|
+
-webkit-animation-delay: -1s;
|
|
45
|
+
animation-delay: -1s;
|
|
46
|
+
}
|
|
47
|
+
sqh-progress-indicator .loading-icon .bar4 {
|
|
48
|
+
-webkit-animation-delay: -0.9s;
|
|
49
|
+
animation-delay: -0.9s;
|
|
50
|
+
}
|
|
51
|
+
sqh-progress-indicator .loading-icon .bar5 {
|
|
52
|
+
-webkit-animation-delay: -0.8s;
|
|
53
|
+
animation-delay: -0.8s;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
@-webkit-keyframes sk-stretchdelay {
|
|
57
|
+
0%, 40%, 100% {
|
|
58
|
+
-webkit-transform: scaleY(0.4);
|
|
59
|
+
}
|
|
60
|
+
20% {
|
|
61
|
+
-webkit-transform: scaleY(1);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
@keyframes sk-stretchdelay {
|
|
65
|
+
0%, 40%, 100% {
|
|
66
|
+
transform: scaleY(0.4);
|
|
67
|
+
-webkit-transform: scaleY(0.4);
|
|
68
|
+
}
|
|
69
|
+
20% {
|
|
70
|
+
transform: scaleY(1);
|
|
71
|
+
-webkit-transform: scaleY(1);
|
|
72
|
+
}
|
|
73
|
+
}
|