@saasquatch/vanilla-components 1.2.4-10 → 1.2.4-11
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/sqh-copy-button_14.cjs.entry.js +145 -140
- package/dist/collection/components/copy-button/copy-button.js +4 -4
- package/dist/collection/components/copy-link-button/copy-link-button.js +5 -5
- package/dist/collection/components/cta-component/cta-component.js +27 -24
- package/dist/collection/components/global-container/global-container.js +2 -2
- package/dist/collection/components/image-component/image-component.js +2 -2
- package/dist/collection/components/progress-indicator/progress-indicator.js +187 -175
- package/dist/collection/components/referral-list/referral-list.js +22 -25
- package/dist/collection/components/share-button/share-button.js +1 -1
- package/dist/collection/components/share-button-container/share-button-container.js +37 -37
- package/dist/collection/components/stats-container/stats-container.js +2 -2
- package/dist/collection/components/text-component/text-component.js +4 -4
- package/dist/esm/sqh-copy-button_14.entry.js +145 -140
- package/dist/esm-es5/sqh-copy-button_14.entry.js +83 -76
- package/dist/types/components/copy-button/copy-button.d.ts +4 -4
- package/dist/types/components/copy-link-button/copy-link-button.d.ts +5 -5
- package/dist/types/components/cta-component/cta-component.d.ts +7 -7
- package/dist/types/components/global-container/global-container.d.ts +2 -2
- package/dist/types/components/image-component/image-component.d.ts +2 -2
- package/dist/types/components/progress-indicator/progress-indicator.d.ts +19 -11
- package/dist/types/components/referral-list/referral-list.d.ts +22 -23
- package/dist/types/components/share-button/share-button.d.ts +1 -1
- package/dist/types/components/share-button-container/share-button-container.d.ts +36 -36
- package/dist/types/components/stats-container/stats-container.d.ts +2 -2
- package/dist/types/components/text-component/text-component.d.ts +1 -1
- package/dist/types/components.d.ts +184 -178
- package/dist/widget-components/{p-0839fd2c.system.entry.js → p-0e55cfb5.system.entry.js} +3 -3
- package/dist/widget-components/{p-a952fcf2.entry.js → p-0ec230df.entry.js} +81 -81
- package/dist/widget-components/p-e82def83.system.js +1 -1
- package/dist/widget-components/widget-components.esm.js +1 -1
- package/docs/raisins.json +1 -1
- package/package.json +2 -2
|
@@ -126,7 +126,7 @@ export class CopyButton {
|
|
|
126
126
|
"text": "Button Text",
|
|
127
127
|
"name": "uiName"
|
|
128
128
|
}, {
|
|
129
|
-
"text": "
|
|
129
|
+
"text": "COPY CODE",
|
|
130
130
|
"name": "default"
|
|
131
131
|
}],
|
|
132
132
|
"text": ""
|
|
@@ -276,7 +276,7 @@ export class CopyButton {
|
|
|
276
276
|
"text": "Copy Success Text",
|
|
277
277
|
"name": "uiName"
|
|
278
278
|
}, {
|
|
279
|
-
"text": "
|
|
279
|
+
"text": "copied!",
|
|
280
280
|
"name": "default"
|
|
281
281
|
}],
|
|
282
282
|
"text": "Shown when the code is successfully copied to the users clipboard."
|
|
@@ -299,7 +299,7 @@ export class CopyButton {
|
|
|
299
299
|
"text": "Copy Failure Text",
|
|
300
300
|
"name": "uiName"
|
|
301
301
|
}, {
|
|
302
|
-
"text": "
|
|
302
|
+
"text": "Press Ctrl+C to copy",
|
|
303
303
|
"name": "default"
|
|
304
304
|
}],
|
|
305
305
|
"text": "Shown when the button has failed to copy the code to the users clipboard."
|
|
@@ -322,7 +322,7 @@ export class CopyButton {
|
|
|
322
322
|
"text": "Reward Key",
|
|
323
323
|
"name": "uiName"
|
|
324
324
|
}, {
|
|
325
|
-
"text": "
|
|
325
|
+
"text": "referredReward",
|
|
326
326
|
"name": "default"
|
|
327
327
|
}],
|
|
328
328
|
"text": "The rewardKey of a fuel tank reward. This is used to get the fuel tank code for a user."
|
|
@@ -117,7 +117,7 @@ export class CopyLinkButton {
|
|
|
117
117
|
"text": "Button Text",
|
|
118
118
|
"name": "uiName"
|
|
119
119
|
}, {
|
|
120
|
-
"text": "
|
|
120
|
+
"text": "Copy",
|
|
121
121
|
"name": "default"
|
|
122
122
|
}],
|
|
123
123
|
"text": ""
|
|
@@ -140,7 +140,7 @@ export class CopyLinkButton {
|
|
|
140
140
|
"text": "Copy Success Text",
|
|
141
141
|
"name": "uiName"
|
|
142
142
|
}, {
|
|
143
|
-
"text": "
|
|
143
|
+
"text": "copied!",
|
|
144
144
|
"name": "default"
|
|
145
145
|
}],
|
|
146
146
|
"text": "Shown when the code is successfully copied to the users clipboard."
|
|
@@ -163,7 +163,7 @@ export class CopyLinkButton {
|
|
|
163
163
|
"text": "Copy Failure Text",
|
|
164
164
|
"name": "uiName"
|
|
165
165
|
}, {
|
|
166
|
-
"text": "
|
|
166
|
+
"text": "Press Ctrl+C to copy",
|
|
167
167
|
"name": "default"
|
|
168
168
|
}],
|
|
169
169
|
"text": "Shown when the button has failed to copy the code to the users clipboard."
|
|
@@ -192,7 +192,7 @@ export class CopyLinkButton {
|
|
|
192
192
|
"text": "color",
|
|
193
193
|
"name": "format"
|
|
194
194
|
}, {
|
|
195
|
-
"text": "
|
|
195
|
+
"text": "#5C6164",
|
|
196
196
|
"name": "default"
|
|
197
197
|
}],
|
|
198
198
|
"text": ""
|
|
@@ -221,7 +221,7 @@ export class CopyLinkButton {
|
|
|
221
221
|
"text": "color",
|
|
222
222
|
"name": "format"
|
|
223
223
|
}, {
|
|
224
|
-
"text": "
|
|
224
|
+
"text": "#FFFFFF",
|
|
225
225
|
"name": "default"
|
|
226
226
|
}],
|
|
227
227
|
"text": ""
|
|
@@ -1,40 +1,43 @@
|
|
|
1
|
-
import { Component, Prop, h, Element } from
|
|
2
|
-
import { css } from
|
|
1
|
+
import { Component, Prop, h, Element } from "@stencil/core";
|
|
2
|
+
import { css } from "emotion";
|
|
3
3
|
/**
|
|
4
4
|
* @uiName Call To Action
|
|
5
5
|
*/
|
|
6
6
|
export class CTAComponent {
|
|
7
7
|
render() {
|
|
8
8
|
const buttonStyle = css `
|
|
9
|
-
font-family: ${this.fontfamily ||
|
|
10
|
-
font-size: ${this.fontsize ? this.fontsize +
|
|
11
|
-
font-weight: ${this.fontweight ? this.fontweight :
|
|
12
|
-
color: ${this.color ||
|
|
13
|
-
padding-top: ${this.paddingtop ? this.paddingtop +
|
|
14
|
-
padding-bottom: ${this.paddingbottom
|
|
15
|
-
|
|
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
|
|
15
|
+
? this.paddingbottom + "px"
|
|
16
|
+
: "inherit"};
|
|
17
|
+
width: ${this.width ? this.width + "px" : "auto"};
|
|
16
18
|
overflow-wrap: break-word;
|
|
17
|
-
border-radius: ${this.borderradius ? this.borderradius +
|
|
18
|
-
margin:0 auto;
|
|
19
|
-
border:none;
|
|
20
|
-
background-color: ${this.buttonbackground
|
|
19
|
+
border-radius: ${this.borderradius ? this.borderradius + "px" : "8px"};
|
|
20
|
+
margin: 0 auto;
|
|
21
|
+
border: none;
|
|
22
|
+
background-color: ${this.buttonbackground
|
|
23
|
+
? this.buttonbackground
|
|
24
|
+
: "#F5A100"};
|
|
21
25
|
&:hover {
|
|
22
|
-
cursor:pointer;
|
|
23
|
-
opacity:0.9;
|
|
26
|
+
cursor: pointer;
|
|
27
|
+
opacity: 0.9;
|
|
24
28
|
}
|
|
25
29
|
&:focus {
|
|
26
|
-
outline:none;
|
|
30
|
+
outline: none;
|
|
27
31
|
}
|
|
28
32
|
`;
|
|
29
33
|
const divStyle = css `
|
|
30
34
|
text-align: ${this.textalign};
|
|
31
|
-
background: ${this.background ? this.background :
|
|
32
|
-
height: ${this.height ||
|
|
35
|
+
background: ${this.background ? this.background : "inherit"};
|
|
36
|
+
height: ${this.height || "inherit"};
|
|
33
37
|
background-size: contain;
|
|
34
38
|
`;
|
|
35
|
-
return !this.ishidden &&
|
|
36
|
-
h("
|
|
37
|
-
h("button", { class: buttonStyle, onClick: () => window.open(this.url, "_blank") }, this.text));
|
|
39
|
+
return (!this.ishidden && (h("div", { class: divStyle },
|
|
40
|
+
h("button", { class: buttonStyle, onClick: () => window.open(this.url, "_blank") }, this.text))));
|
|
38
41
|
}
|
|
39
42
|
static get is() { return "sqh-cta-component"; }
|
|
40
43
|
static get originalStyleUrls() { return {
|
|
@@ -79,7 +82,7 @@ export class CTAComponent {
|
|
|
79
82
|
"text": "Use Markdown",
|
|
80
83
|
"name": "uiName"
|
|
81
84
|
}],
|
|
82
|
-
"text": "Compile plain text into HTML. See
|
|
85
|
+
"text": "Compile plain text into HTML. See [markdown](https://www.markdownguide.org/getting-started/) for more details."
|
|
83
86
|
},
|
|
84
87
|
"attribute": "ismarkdown",
|
|
85
88
|
"reflect": false
|
|
@@ -297,7 +300,7 @@ export class CTAComponent {
|
|
|
297
300
|
"text": "color",
|
|
298
301
|
"name": "format"
|
|
299
302
|
}, {
|
|
300
|
-
"text": "
|
|
303
|
+
"text": "#F5A100",
|
|
301
304
|
"name": "default"
|
|
302
305
|
}],
|
|
303
306
|
"text": ""
|
|
@@ -360,7 +363,7 @@ export class CTAComponent {
|
|
|
360
363
|
"text": "Border Radius",
|
|
361
364
|
"name": "uiName"
|
|
362
365
|
}, {
|
|
363
|
-
"text": "
|
|
366
|
+
"text": "8px",
|
|
364
367
|
"name": "default"
|
|
365
368
|
}],
|
|
366
369
|
"text": ""
|
|
@@ -63,7 +63,7 @@ export class GlobalContainer {
|
|
|
63
63
|
"text": "color",
|
|
64
64
|
"name": "format"
|
|
65
65
|
}, {
|
|
66
|
-
"text": "
|
|
66
|
+
"text": "#ffffff",
|
|
67
67
|
"name": "default"
|
|
68
68
|
}],
|
|
69
69
|
"text": ""
|
|
@@ -112,7 +112,7 @@ export class GlobalContainer {
|
|
|
112
112
|
"text": "Font Family",
|
|
113
113
|
"name": "uiName"
|
|
114
114
|
}, {
|
|
115
|
-
"text": "
|
|
115
|
+
"text": "Roboto",
|
|
116
116
|
"name": "default"
|
|
117
117
|
}, {
|
|
118
118
|
"text": "[\"Roboto\", \"Artifakt Element\", \"Helvetica Neue,Helvetica,Arial,sans-serif\", \"Lato,sans-serif\", \"Times New Roman\", \"Arial\", \"Courier\", \"Tahoma\", \"Verdana\", \"Georgia\"]",
|
|
@@ -140,7 +140,7 @@ export class ImageComponent {
|
|
|
140
140
|
"text": "[\"Left\", \"Center\", \"Right\"]",
|
|
141
141
|
"name": "uiEnumNames"
|
|
142
142
|
}, {
|
|
143
|
-
"text": "
|
|
143
|
+
"text": "center",
|
|
144
144
|
"name": "default"
|
|
145
145
|
}],
|
|
146
146
|
"text": ""
|
|
@@ -166,7 +166,7 @@ export class ImageComponent {
|
|
|
166
166
|
"text": "textArea",
|
|
167
167
|
"name": "uiWidget"
|
|
168
168
|
}, {
|
|
169
|
-
"text": "
|
|
169
|
+
"text": "padding-top: 38px; padding-bottom: 7px;",
|
|
170
170
|
"name": "default"
|
|
171
171
|
}],
|
|
172
172
|
"text": "Additional CSS applied to the image element"
|