@saasquatch/vanilla-components 1.2.3 → 1.2.4-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 (53) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/sqh-close-button.cjs.entry.js +8 -3
  3. package/dist/cjs/sqh-copy-button_12.cjs.entry.js +182 -7
  4. package/dist/cjs/sqh-rewards-actions.cjs.entry.js +15 -0
  5. package/dist/cjs/widget-components.cjs.js +1 -1
  6. package/dist/collection/components/close-button/close-button.js +14 -3
  7. package/dist/collection/components/copy-button/copy-button.js +117 -24
  8. package/dist/collection/components/copy-link-button/copy-link-button.js +60 -12
  9. package/dist/collection/components/global-container/global-container.js +53 -10
  10. package/dist/collection/components/image-component/image-component.js +54 -12
  11. package/dist/collection/components/partner-stat-component/partner-stat-component.js +41 -11
  12. package/dist/collection/components/referral-code/referral-code.js +3 -0
  13. package/dist/collection/components/referral-component/referral-component.js +28 -10
  14. package/dist/collection/components/referral-list/referral-list.js +319 -58
  15. package/dist/collection/components/rewards-actions/rewards-actions.js +33 -6
  16. package/dist/collection/components/share-button/share-button.js +76 -22
  17. package/dist/collection/components/share-button-container/share-button-container.js +1097 -164
  18. package/dist/collection/components/stat-component/stat-component.js +40 -10
  19. package/dist/collection/components/stats-container/stats-container.js +30 -6
  20. package/dist/collection/components/text-component/text-component.js +70 -43
  21. package/dist/esm/loader.mjs +1 -1
  22. package/dist/esm/sqh-close-button.entry.js +8 -3
  23. package/dist/esm/sqh-copy-button_12.entry.js +181 -6
  24. package/dist/esm/sqh-rewards-actions.entry.js +15 -0
  25. package/dist/esm/widget-components.mjs +1 -1
  26. package/dist/esm-es5/loader.mjs +1 -1
  27. package/dist/esm-es5/sqh-close-button.entry.js +14 -9
  28. package/dist/esm-es5/sqh-copy-button_12.entry.js +199 -24
  29. package/dist/esm-es5/sqh-rewards-actions.entry.js +15 -0
  30. package/dist/esm-es5/widget-components.mjs +1 -1
  31. package/dist/types/components/close-button/close-button.d.ts +9 -1
  32. package/dist/types/components/copy-button/copy-button.d.ts +81 -0
  33. package/dist/types/components/copy-link-button/copy-link-button.d.ts +42 -0
  34. package/dist/types/components/global-container/global-container.d.ts +37 -0
  35. package/dist/types/components/image-component/image-component.d.ts +41 -0
  36. package/dist/types/components/partner-stat-component/partner-stat-component.d.ts +33 -1
  37. package/dist/types/components/referral-code/referral-code.d.ts +3 -0
  38. package/dist/types/components/referral-component/referral-component.d.ts +28 -0
  39. package/dist/types/components/referral-list/referral-list.d.ts +205 -0
  40. package/dist/types/components/rewards-actions/rewards-actions.d.ts +18 -0
  41. package/dist/types/components/share-button/share-button.d.ts +64 -0
  42. package/dist/types/components/share-button-container/share-button-container.d.ts +584 -0
  43. package/dist/types/components/stat-component/stat-component.d.ts +31 -0
  44. package/dist/types/components/stats-container/stats-container.d.ts +21 -0
  45. package/dist/types/components/text-component/text-component.d.ts +62 -1
  46. package/dist/types/components.d.ts +2052 -2
  47. package/dist/widget-components/p-58be1132.system.js +1 -1
  48. package/dist/widget-components/{p-75ab4c57.entry.js → p-d7059393.entry.js} +1 -1
  49. package/dist/widget-components/{p-d2335c54.system.entry.js → p-fba5ea7f.system.entry.js} +1 -1
  50. package/dist/widget-components/widget-components.esm.js +1 -1
  51. package/docs/raisins.json +1 -0
  52. package/package.json +12 -5
  53. package/CHANGELOG.md +0 -143
@@ -1,5 +1,8 @@
1
1
  import { h, Component, Prop, Event, Element, Watch, } from "@stencil/core";
2
2
  import { css } from "emotion";
3
+ /**
4
+ * @uiName Stat Component
5
+ */
3
6
  export class StatComponent {
4
7
  componentWillLoad() {
5
8
  this.statAddedHandler(this.elem);
@@ -41,8 +44,11 @@ export class StatComponent {
41
44
  "required": false,
42
45
  "optional": false,
43
46
  "docs": {
44
- "tags": [],
45
- "text": ""
47
+ "tags": [{
48
+ "text": "Hide Stat",
49
+ "name": "uiName"
50
+ }],
51
+ "text": "Hide or show the component"
46
52
  },
47
53
  "attribute": "ishidden",
48
54
  "reflect": false
@@ -58,8 +64,17 @@ export class StatComponent {
58
64
  "required": false,
59
65
  "optional": false,
60
66
  "docs": {
61
- "tags": [],
62
- "text": ""
67
+ "tags": [{
68
+ "text": "Stat Type",
69
+ "name": "uiName"
70
+ }, {
71
+ "text": "statTypeSelector",
72
+ "name": "uiWidget"
73
+ }, {
74
+ "text": undefined,
75
+ "name": "required"
76
+ }],
77
+ "text": "Type of stat being displayed. e.g /rewardsCount"
63
78
  },
64
79
  "attribute": "stattype",
65
80
  "reflect": false
@@ -75,8 +90,11 @@ export class StatComponent {
75
90
  "required": false,
76
91
  "optional": false,
77
92
  "docs": {
78
- "tags": [],
79
- "text": ""
93
+ "tags": [{
94
+ "text": "Stat Value",
95
+ "name": "uiName"
96
+ }],
97
+ "text": "Value shown inside stat"
80
98
  },
81
99
  "attribute": "statvalue",
82
100
  "reflect": false
@@ -92,8 +110,11 @@ export class StatComponent {
92
110
  "required": false,
93
111
  "optional": false,
94
112
  "docs": {
95
- "tags": [],
96
- "text": ""
113
+ "tags": [{
114
+ "text": "Stat Description",
115
+ "name": "uiName"
116
+ }],
117
+ "text": "Description shown underneath stat value"
97
118
  },
98
119
  "attribute": "statdescription",
99
120
  "reflect": false
@@ -109,8 +130,17 @@ export class StatComponent {
109
130
  "required": false,
110
131
  "optional": false,
111
132
  "docs": {
112
- "tags": [],
113
- "text": ""
133
+ "tags": [{
134
+ "text": "Stat Color",
135
+ "name": "uiName"
136
+ }, {
137
+ "text": "color",
138
+ "name": "uiWidget"
139
+ }, {
140
+ "text": "color",
141
+ "name": "format"
142
+ }],
143
+ "text": "Text color of the stat"
114
144
  },
115
145
  "attribute": "statcolor",
116
146
  "reflect": false
@@ -2,8 +2,17 @@ import { h, Component, Prop, State, Element, Listen } from "@stencil/core";
2
2
  import { API } from "../../services/WidgetHost";
3
3
  import { pathToRegexp } from "path-to-regexp";
4
4
  import { css } from "emotion";
5
+ /**
6
+ * @uiName Stats Container
7
+ * @slots [{"name":"","title":"Stats"}]
8
+ */
5
9
  export class StatsContainer {
6
10
  constructor() {
11
+ /**
12
+ * Hide the component
13
+ *
14
+ * @uiName Is Hidden
15
+ */
7
16
  this.ishidden = false;
8
17
  this.statPaths = [
9
18
  "/rewardBalance/:type/:unit/:valuetype?/:isGlobal?",
@@ -117,8 +126,11 @@ export class StatsContainer {
117
126
  "required": false,
118
127
  "optional": false,
119
128
  "docs": {
120
- "tags": [],
121
- "text": ""
129
+ "tags": [{
130
+ "text": "Is Hidden",
131
+ "name": "uiName"
132
+ }],
133
+ "text": "Hide the component"
122
134
  },
123
135
  "attribute": "ishidden",
124
136
  "reflect": false,
@@ -135,8 +147,14 @@ export class StatsContainer {
135
147
  "required": false,
136
148
  "optional": false,
137
149
  "docs": {
138
- "tags": [],
139
- "text": ""
150
+ "tags": [{
151
+ "text": "Padding Top",
152
+ "name": "uiName"
153
+ }, {
154
+ "text": "\"0\"",
155
+ "name": "default"
156
+ }],
157
+ "text": "Configure the padding top of the container"
140
158
  },
141
159
  "attribute": "paddingtop",
142
160
  "reflect": false
@@ -152,8 +170,14 @@ export class StatsContainer {
152
170
  "required": false,
153
171
  "optional": false,
154
172
  "docs": {
155
- "tags": [],
156
- "text": ""
173
+ "tags": [{
174
+ "text": "Padding Bottom",
175
+ "name": "uiName"
176
+ }, {
177
+ "text": "\"0\"",
178
+ "name": "default"
179
+ }],
180
+ "text": "Configure the padding bottom of the container"
157
181
  },
158
182
  "attribute": "paddingbottom",
159
183
  "reflect": false
@@ -1,10 +1,10 @@
1
1
  import { h, Component, Prop, Element } from "@stencil/core";
2
2
  import { css } from "emotion";
3
3
  import marked from "marked";
4
+ /**
5
+ * @uiName Text Component
6
+ */
4
7
  export class TextComponent {
5
- constructor() {
6
- this.padding = "10px 20px 15px";
7
- }
8
8
  render() {
9
9
  const regex = /\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/i;
10
10
  const textStyle = css `
@@ -50,8 +50,11 @@ export class TextComponent {
50
50
  "required": false,
51
51
  "optional": false,
52
52
  "docs": {
53
- "tags": [],
54
- "text": ""
53
+ "tags": [{
54
+ "text": "Hide Text",
55
+ "name": "uiName"
56
+ }],
57
+ "text": "Hide or show the component"
55
58
  },
56
59
  "attribute": "ishidden",
57
60
  "reflect": false
@@ -67,8 +70,11 @@ export class TextComponent {
67
70
  "required": false,
68
71
  "optional": false,
69
72
  "docs": {
70
- "tags": [],
71
- "text": ""
73
+ "tags": [{
74
+ "text": "Is Markdown",
75
+ "name": "uiName"
76
+ }],
77
+ "text": "Compiles plain text into markdown"
72
78
  },
73
79
  "attribute": "ismarkdown",
74
80
  "reflect": false
@@ -84,8 +90,11 @@ export class TextComponent {
84
90
  "required": false,
85
91
  "optional": false,
86
92
  "docs": {
87
- "tags": [],
88
- "text": ""
93
+ "tags": [{
94
+ "text": "Text",
95
+ "name": "uiName"
96
+ }],
97
+ "text": "The text content"
89
98
  },
90
99
  "attribute": "text",
91
100
  "reflect": false
@@ -101,8 +110,11 @@ export class TextComponent {
101
110
  "required": false,
102
111
  "optional": false,
103
112
  "docs": {
104
- "tags": [],
105
- "text": ""
113
+ "tags": [{
114
+ "text": "Font Family",
115
+ "name": "uiName"
116
+ }],
117
+ "text": "Font family of the text"
106
118
  },
107
119
  "attribute": "fontfamily",
108
120
  "reflect": false
@@ -118,8 +130,17 @@ export class TextComponent {
118
130
  "required": false,
119
131
  "optional": false,
120
132
  "docs": {
121
- "tags": [],
122
- "text": ""
133
+ "tags": [{
134
+ "text": "Color",
135
+ "name": "uiName"
136
+ }, {
137
+ "text": "color",
138
+ "name": "uiWidget"
139
+ }, {
140
+ "text": "color",
141
+ "name": "format"
142
+ }],
143
+ "text": "Color of the text"
123
144
  },
124
145
  "attribute": "color",
125
146
  "reflect": false
@@ -135,8 +156,11 @@ export class TextComponent {
135
156
  "required": false,
136
157
  "optional": false,
137
158
  "docs": {
138
- "tags": [],
139
- "text": ""
159
+ "tags": [{
160
+ "text": "Font Size",
161
+ "name": "uiName"
162
+ }],
163
+ "text": "Size of the text"
140
164
  },
141
165
  "attribute": "fontsize",
142
166
  "reflect": false
@@ -152,8 +176,11 @@ export class TextComponent {
152
176
  "required": false,
153
177
  "optional": false,
154
178
  "docs": {
155
- "tags": [],
156
- "text": ""
179
+ "tags": [{
180
+ "text": "Padding Top",
181
+ "name": "uiName"
182
+ }],
183
+ "text": "Top padding on text"
157
184
  },
158
185
  "attribute": "paddingtop",
159
186
  "reflect": false
@@ -169,30 +196,15 @@ export class TextComponent {
169
196
  "required": false,
170
197
  "optional": false,
171
198
  "docs": {
172
- "tags": [],
173
- "text": ""
199
+ "tags": [{
200
+ "text": "Padding Bottom",
201
+ "name": "uiName"
202
+ }],
203
+ "text": "Bottom padding on text"
174
204
  },
175
205
  "attribute": "paddingbottom",
176
206
  "reflect": false
177
207
  },
178
- "padding": {
179
- "type": "string",
180
- "mutable": false,
181
- "complexType": {
182
- "original": "string",
183
- "resolved": "string",
184
- "references": {}
185
- },
186
- "required": false,
187
- "optional": false,
188
- "docs": {
189
- "tags": [],
190
- "text": ""
191
- },
192
- "attribute": "padding",
193
- "reflect": false,
194
- "defaultValue": "\"10px 20px 15px\""
195
- },
196
208
  "textalign": {
197
209
  "type": "string",
198
210
  "mutable": false,
@@ -204,8 +216,17 @@ export class TextComponent {
204
216
  "required": false,
205
217
  "optional": false,
206
218
  "docs": {
207
- "tags": [],
208
- "text": ""
219
+ "tags": [{
220
+ "text": "Text Align",
221
+ "name": "uiName"
222
+ }, {
223
+ "text": "[\"left\", \"center\", \"right\"]",
224
+ "name": "uiEnum"
225
+ }, {
226
+ "text": "[\"Left\", \"Center\", \"Right\"]",
227
+ "name": "uiEnumNames"
228
+ }],
229
+ "text": "Text alignment"
209
230
  },
210
231
  "attribute": "textalign",
211
232
  "reflect": false
@@ -221,8 +242,11 @@ export class TextComponent {
221
242
  "required": false,
222
243
  "optional": false,
223
244
  "docs": {
224
- "tags": [],
225
- "text": ""
245
+ "tags": [{
246
+ "text": "Background",
247
+ "name": "uiName"
248
+ }],
249
+ "text": "Background the container, color or url"
226
250
  },
227
251
  "attribute": "background",
228
252
  "reflect": false
@@ -238,8 +262,11 @@ export class TextComponent {
238
262
  "required": false,
239
263
  "optional": false,
240
264
  "docs": {
241
- "tags": [],
242
- "text": ""
265
+ "tags": [{
266
+ "text": "Height",
267
+ "name": "uiName"
268
+ }],
269
+ "text": "Height of the container"
243
270
  },
244
271
  "attribute": "height",
245
272
  "reflect": false
@@ -5,7 +5,7 @@ import './_commonjsHelpers-1d681858.js';
5
5
  const defineCustomElements = (win, options) => {
6
6
  if (typeof window === 'undefined') return Promise.resolve();
7
7
  return patchEsm().then(() => {
8
- return bootstrapLazy([["sqh-close-button",[[0,"sqh-close-button",{"text":[1]},[[0,"click","handleClick"]]]]],["sqh-referral-code",[[0,"sqh-referral-code",{"referralcode":[32]}]]],["sqh-rewards-actions",[[0,"sqh-rewards-actions",{"previoustext":[1],"hidetext":[1],"nexttext":[1]}]]],["sqh-copy-button_12",[[0,"sqh-referral-list",{"ishidden":[4],"paginatemore":[1],"paginateless":[1],"noreferralsyet":[1],"referralnamecolor":[1],"referraltextcolor":[1],"unknownuser":[1],"showexpiry":[4],"shownotes":[4],"redeemedvalue":[1],"showreferrer":[4],"referrercontent":[1],"referrervalue":[1],"rewardcolor":[1],"customernotecolor":[1],"usefirstreward":[4],"convertedcontent":[1],"valuecontent":[1],"pendingcolor":[1],"pendingcontent":[1],"pendingvalue":[1],"expiredcolor":[1],"expiredcontent":[1],"expiredvalue":[1],"expiresvalue":[1],"cancelledcolor":[1],"cancelledcontent":[1],"cancelledvalue":[1],"internationalization":[4],"referrals":[32],"referralsCount":[32],"referredBy":[32],"rewards":[32],"loading":[32],"offset":[32],"locale":[32]}],[0,"sqh-share-button-container",{"ishidden":[4],"emaildisplayrule":[1],"emailtext":[1],"emailbackgroundcolor":[1],"emailtextcolor":[1],"emailicon":[1],"emailclassName":[1,"emailclass-name"],"emailiconhorizontal":[2],"emailiconvertical":[2],"emailiconsize":[2],"facebookdisplayrule":[1],"facebooktext":[1],"facebookbackgroundcolor":[1],"facebooktextcolor":[1],"facebookicon":[1],"facebookclassName":[1,"facebookclass-name"],"facebookiconhorizontal":[2],"facebookiconvertical":[2],"facebookiconsize":[2],"twitterdisplayrule":[1],"twittertext":[1],"twitterbackgroundcolor":[1],"twittertextcolor":[1],"twittericon":[1],"twitterclassName":[1,"twitterclass-name"],"twittericonhorizontal":[2],"twittericonvertical":[2],"twittericonsize":[2],"smsdisplayrule":[1],"smstext":[1],"smsbackgroundcolor":[1],"smstextcolor":[1],"smsicon":[1],"smsclassName":[1,"smsclass-name"],"smsiconhorizontal":[2],"smsiconvertical":[2],"smsiconsize":[2],"whatsappdisplayrule":[1],"whatsapptext":[1],"whatsappbackgroundcolor":[1],"whatsapptextcolor":[1],"whatsappicon":[1],"whatsappclassName":[1,"whatsappclass-name"],"whatsappiconhorizontal":[2],"whatsappiconvertical":[2],"whatsappiconsize":[2],"linkedindisplayrule":[1],"linkedintext":[1],"linkedinbackgroundcolor":[1],"linkedintextcolor":[1],"linkedinicon":[1],"linkedinclassName":[1,"linkedinclass-name"],"linkediniconhorizontal":[2],"linkediniconvertical":[2],"linkediniconsize":[2],"pinterestdisplayrule":[1],"pinteresttext":[1],"pinterestbackgroundcolor":[1],"pinteresttextcolor":[1],"pinteresticon":[1],"pinterestclassName":[1,"pinterestclass-name"],"pinteresticonhorizontal":[2],"pinteresticonvertical":[2],"pinteresticonsize":[2],"messengerdisplayrule":[1],"messengertext":[1],"messengerbackgroundcolor":[1],"messengertextcolor":[1],"messengericon":[1],"messengerclassName":[1,"messengerclass-name"],"messengericonhorizontal":[2],"messengericonvertical":[2],"messengericonsize":[2],"linedisplayrule":[1],"linetext":[1],"linebackgroundcolor":[1],"linetextcolor":[1],"lineicon":[1],"lineclassName":[1,"lineclass-name"],"lineiconhorizontal":[2],"lineiconvertical":[2],"lineiconsize":[2],"emailurl":[32],"facebookurl":[32],"twitterurl":[32],"smsurl":[32],"whatsappurl":[32],"linkedinurl":[32],"pinteresturl":[32],"messengerurl":[32],"lineurl":[32]}],[0,"sqh-copy-button",{"ishidden":[4],"text":[1],"width":[2],"backgroundcolor":[1],"borderradius":[2],"textcolor":[1],"fontsize":[2],"copysuccess":[1],"copyfailure":[1],"rewardkey":[1],"codefontsize":[2],"codefontcolor":[1],"fueltankcode":[32]}],[0,"sqh-copy-link-button",{"ishidden":[4],"text":[1],"copysuccess":[1],"copyfailure":[1],"buttoncolor":[1],"textcolor":[1],"sharelink":[32]}],[4,"sqh-global-container",{"background":[1],"loadingcolor":[1],"fontfamily":[1],"maxwidth":[1],"poweredby":[4]}],[0,"sqh-image-component",{"ishidden":[4],"url":[1],"width":[2],"borderradius":[2],"alignment":[1],"css":[1]}],[0,"sqh-partner-stat-component",{"ishidden":[4],"stattype":[1],"statvalue":[1],"statdescription":[1],"statcolor":[1]}],[0,"sqh-stat-component",{"ishidden":[4],"stattype":[1],"statvalue":[1],"statdescription":[1],"statcolor":[1]}],[4,"sqh-stats-container",{"ishidden":[4],"paddingtop":[1],"paddingbottom":[1],"loading":[32],"stats":[32]},[[0,"statTypeUpdated","statTypeUpdatedHandler"],[0,"statAdded","statAddedHandler"]]],[0,"sqh-text-component",{"ishidden":[4],"ismarkdown":[4],"text":[1],"fontfamily":[1],"color":[1],"fontsize":[1],"paddingtop":[1],"paddingbottom":[1],"padding":[1],"textalign":[1],"background":[1],"height":[1]}],[0,"sqh-referral-component",{"referral":[16],"referraltype":[1],"referralvariables":[16],"unknownuser":[16],"locale":[1]}],[0,"sqh-share-button",{"displayrule":[1],"text":[1],"backgroundcolor":[1],"textcolor":[1],"icon":[1],"buttonClassName":[1,"button-class-name"],"iconhorizontal":[2],"iconvertical":[2],"iconsize":[2],"type":[1],"url":[1]}]]]], options);
8
+ return bootstrapLazy([["sqh-close-button",[[0,"sqh-close-button",{"text":[1]},[[0,"click","handleClick"]]]]],["sqh-referral-code",[[0,"sqh-referral-code",{"referralcode":[32]}]]],["sqh-rewards-actions",[[0,"sqh-rewards-actions",{"previoustext":[1],"hidetext":[1],"nexttext":[1]}]]],["sqh-copy-button_12",[[0,"sqh-referral-list",{"ishidden":[4],"paginatemore":[1],"paginateless":[1],"noreferralsyet":[1],"referralnamecolor":[1],"referraltextcolor":[1],"unknownuser":[1],"showexpiry":[4],"shownotes":[4],"redeemedvalue":[1],"showreferrer":[4],"referrercontent":[1],"referrervalue":[1],"rewardcolor":[1],"customernotecolor":[1],"usefirstreward":[4],"convertedcontent":[1],"valuecontent":[1],"pendingcolor":[1],"pendingcontent":[1],"pendingvalue":[1],"expiredcolor":[1],"expiredcontent":[1],"expiredvalue":[1],"expiresvalue":[1],"cancelledcolor":[1],"cancelledcontent":[1],"cancelledvalue":[1],"internationalization":[4],"referrals":[32],"referralsCount":[32],"referredBy":[32],"rewards":[32],"loading":[32],"offset":[32],"locale":[32]}],[0,"sqh-share-button-container",{"ishidden":[4],"emaildisplayrule":[1],"emailtext":[1],"emailbackgroundcolor":[1],"emailtextcolor":[1],"emailicon":[1],"emailclassName":[1,"emailclass-name"],"emailiconhorizontal":[2],"emailiconvertical":[2],"emailiconsize":[2],"facebookdisplayrule":[1],"facebooktext":[1],"facebookbackgroundcolor":[1],"facebooktextcolor":[1],"facebookicon":[1],"facebookclassName":[1,"facebookclass-name"],"facebookiconhorizontal":[2],"facebookiconvertical":[2],"facebookiconsize":[2],"twitterdisplayrule":[1],"twittertext":[1],"twitterbackgroundcolor":[1],"twittertextcolor":[1],"twittericon":[1],"twitterclassName":[1,"twitterclass-name"],"twittericonhorizontal":[2],"twittericonvertical":[2],"twittericonsize":[2],"smsdisplayrule":[1],"smstext":[1],"smsbackgroundcolor":[1],"smstextcolor":[1],"smsicon":[1],"smsclassName":[1,"smsclass-name"],"smsiconhorizontal":[2],"smsiconvertical":[2],"smsiconsize":[2],"whatsappdisplayrule":[1],"whatsapptext":[1],"whatsappbackgroundcolor":[1],"whatsapptextcolor":[1],"whatsappicon":[1],"whatsappclassName":[1,"whatsappclass-name"],"whatsappiconhorizontal":[2],"whatsappiconvertical":[2],"whatsappiconsize":[2],"linkedindisplayrule":[1],"linkedintext":[1],"linkedinbackgroundcolor":[1],"linkedintextcolor":[1],"linkedinicon":[1],"linkedinclassName":[1,"linkedinclass-name"],"linkediniconhorizontal":[2],"linkediniconvertical":[2],"linkediniconsize":[2],"pinterestdisplayrule":[1],"pinteresttext":[1],"pinterestbackgroundcolor":[1],"pinteresttextcolor":[1],"pinteresticon":[1],"pinterestclassName":[1,"pinterestclass-name"],"pinteresticonhorizontal":[2],"pinteresticonvertical":[2],"pinteresticonsize":[2],"messengerdisplayrule":[1],"messengertext":[1],"messengerbackgroundcolor":[1],"messengertextcolor":[1],"messengericon":[1],"messengerclassName":[1,"messengerclass-name"],"messengericonhorizontal":[2],"messengericonvertical":[2],"messengericonsize":[2],"linedisplayrule":[1],"linetext":[1],"linebackgroundcolor":[1],"linetextcolor":[1],"lineicon":[1],"lineclassName":[1,"lineclass-name"],"lineiconhorizontal":[2],"lineiconvertical":[2],"lineiconsize":[2],"emailurl":[32],"facebookurl":[32],"twitterurl":[32],"smsurl":[32],"whatsappurl":[32],"linkedinurl":[32],"pinteresturl":[32],"messengerurl":[32],"lineurl":[32]}],[0,"sqh-copy-button",{"ishidden":[4],"text":[1],"width":[2],"backgroundcolor":[1],"borderradius":[2],"textcolor":[1],"fontsize":[2],"copysuccess":[1],"copyfailure":[1],"rewardkey":[1],"codefontsize":[2],"codefontcolor":[1],"fueltankcode":[32]}],[0,"sqh-copy-link-button",{"ishidden":[4],"text":[1],"copysuccess":[1],"copyfailure":[1],"buttoncolor":[1],"textcolor":[1],"sharelink":[32]}],[4,"sqh-global-container",{"background":[1],"loadingcolor":[1],"fontfamily":[1],"maxwidth":[1],"poweredby":[4]}],[0,"sqh-image-component",{"ishidden":[4],"url":[1],"width":[2],"borderradius":[2],"alignment":[1],"css":[1]}],[0,"sqh-partner-stat-component",{"ishidden":[4],"stattype":[1],"statvalue":[1],"statdescription":[1],"statcolor":[1]}],[0,"sqh-stat-component",{"ishidden":[4],"stattype":[1],"statvalue":[1],"statdescription":[1],"statcolor":[1]}],[4,"sqh-stats-container",{"ishidden":[4],"paddingtop":[1],"paddingbottom":[1],"loading":[32],"stats":[32]},[[0,"statTypeUpdated","statTypeUpdatedHandler"],[0,"statAdded","statAddedHandler"]]],[0,"sqh-text-component",{"ishidden":[4],"ismarkdown":[4],"text":[1],"fontfamily":[1],"color":[1],"fontsize":[1],"paddingtop":[1],"paddingbottom":[1],"textalign":[1],"background":[1],"height":[1]}],[0,"sqh-referral-component",{"referral":[16],"referraltype":[1],"referralvariables":[16],"unknownuser":[16],"locale":[1]}],[0,"sqh-share-button",{"displayrule":[1],"text":[1],"backgroundcolor":[1],"textcolor":[1],"icon":[1],"buttonClassName":[1,"button-class-name"],"iconhorizontal":[2],"iconvertical":[2],"iconsize":[2],"type":[1],"url":[1]}]]]], options);
9
9
  });
10
10
  };
11
11
 
@@ -4,9 +4,14 @@ import { A as API, w as widgetIdent } from './WidgetHost-a27e693d.js';
4
4
 
5
5
  const closeButtonCss = "sqh-close-button .squatch-header-close{position:absolute;top:4px;right:6px;background:transparent;border:0;color:#4486e1;font-size:12px}sqh-close-button .squatch-header-close:hover{text-decoration:underline}";
6
6
 
7
- const TwitterShareButton = class {
7
+ const CloseButton = class {
8
8
  constructor(hostRef) {
9
9
  registerInstance(this, hostRef);
10
+ /**
11
+ * The text shown inside the close button.
12
+ *
13
+ * @uiName Button Text
14
+ */
10
15
  this.text = "Close";
11
16
  }
12
17
  handleClick() {
@@ -23,6 +28,6 @@ const TwitterShareButton = class {
23
28
  }
24
29
  get closeButton() { return getElement(this); }
25
30
  };
26
- TwitterShareButton.style = closeButtonCss;
31
+ CloseButton.style = closeButtonCss;
27
32
 
28
- export { TwitterShareButton as sqh_close_button };
33
+ export { CloseButton as sqh_close_button };