@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,6 +1,9 @@
1
1
  import { h, Component, Prop, Element } from "@stencil/core";
2
2
  import { shadeColor, detectMobileSafari, detectMobileChrome, } from "../../utilities";
3
3
  import { css } from "emotion";
4
+ /**
5
+ * @uiName Share Button
6
+ */
4
7
  export class ShareButton {
5
8
  clickHandler(e) {
6
9
  if (window["widgetIdent"].env === "demo") {
@@ -74,8 +77,11 @@ export class ShareButton {
74
77
  "required": false,
75
78
  "optional": false,
76
79
  "docs": {
77
- "tags": [],
78
- "text": ""
80
+ "tags": [{
81
+ "text": "Share Button Display Rule",
82
+ "name": "uiName"
83
+ }],
84
+ "text": "Show or hide button depending on what type of device the user is on"
79
85
  },
80
86
  "attribute": "displayrule",
81
87
  "reflect": false
@@ -91,8 +97,11 @@ export class ShareButton {
91
97
  "required": false,
92
98
  "optional": false,
93
99
  "docs": {
94
- "tags": [],
95
- "text": ""
100
+ "tags": [{
101
+ "text": "Share Button Text",
102
+ "name": "uiName"
103
+ }],
104
+ "text": "Text inside the share button"
96
105
  },
97
106
  "attribute": "text",
98
107
  "reflect": false
@@ -108,8 +117,17 @@ export class ShareButton {
108
117
  "required": false,
109
118
  "optional": false,
110
119
  "docs": {
111
- "tags": [],
112
- "text": ""
120
+ "tags": [{
121
+ "text": "Share Button Background Color",
122
+ "name": "uiName"
123
+ }, {
124
+ "text": "color",
125
+ "name": "uiWidget"
126
+ }, {
127
+ "text": "color",
128
+ "name": "format"
129
+ }],
130
+ "text": "Background color of the share button"
113
131
  },
114
132
  "attribute": "backgroundcolor",
115
133
  "reflect": false
@@ -125,8 +143,17 @@ export class ShareButton {
125
143
  "required": false,
126
144
  "optional": false,
127
145
  "docs": {
128
- "tags": [],
129
- "text": ""
146
+ "tags": [{
147
+ "text": "Share Button Text Color",
148
+ "name": "uiName"
149
+ }, {
150
+ "text": "color",
151
+ "name": "uiWidget"
152
+ }, {
153
+ "text": "color",
154
+ "name": "format"
155
+ }],
156
+ "text": "Color of the text inside the share button"
130
157
  },
131
158
  "attribute": "textcolor",
132
159
  "reflect": false
@@ -142,8 +169,11 @@ export class ShareButton {
142
169
  "required": false,
143
170
  "optional": false,
144
171
  "docs": {
145
- "tags": [],
146
- "text": ""
172
+ "tags": [{
173
+ "text": "Share Button Icon",
174
+ "name": "uiName"
175
+ }],
176
+ "text": "Share button icon"
147
177
  },
148
178
  "attribute": "icon",
149
179
  "reflect": false
@@ -159,8 +189,11 @@ export class ShareButton {
159
189
  "required": false,
160
190
  "optional": false,
161
191
  "docs": {
162
- "tags": [],
163
- "text": ""
192
+ "tags": [{
193
+ "text": "Share Button Class Name",
194
+ "name": "uiName"
195
+ }],
196
+ "text": "CSS Class name used to style the share button"
164
197
  },
165
198
  "attribute": "button-class-name",
166
199
  "reflect": false
@@ -176,8 +209,11 @@ export class ShareButton {
176
209
  "required": false,
177
210
  "optional": false,
178
211
  "docs": {
179
- "tags": [],
180
- "text": ""
212
+ "tags": [{
213
+ "text": "Share Button Icon Horizontal",
214
+ "name": "uiName"
215
+ }],
216
+ "text": "Number to horizontally align the share button icon"
181
217
  },
182
218
  "attribute": "iconhorizontal",
183
219
  "reflect": false
@@ -193,8 +229,11 @@ export class ShareButton {
193
229
  "required": false,
194
230
  "optional": false,
195
231
  "docs": {
196
- "tags": [],
197
- "text": ""
232
+ "tags": [{
233
+ "text": "Share Button Icon Vertical",
234
+ "name": "uiName"
235
+ }],
236
+ "text": "Number to vertically align the share button icon"
198
237
  },
199
238
  "attribute": "iconvertical",
200
239
  "reflect": false
@@ -210,8 +249,11 @@ export class ShareButton {
210
249
  "required": false,
211
250
  "optional": false,
212
251
  "docs": {
213
- "tags": [],
214
- "text": ""
252
+ "tags": [{
253
+ "text": "Share Button Icon Size",
254
+ "name": "uiName"
255
+ }],
256
+ "text": "Size of the Share button icon"
215
257
  },
216
258
  "attribute": "iconsize",
217
259
  "reflect": false
@@ -227,8 +269,11 @@ export class ShareButton {
227
269
  "required": false,
228
270
  "optional": false,
229
271
  "docs": {
230
- "tags": [],
231
- "text": ""
272
+ "tags": [{
273
+ "text": "Share Button Type",
274
+ "name": "uiName"
275
+ }],
276
+ "text": "Type of the share button"
232
277
  },
233
278
  "attribute": "type",
234
279
  "reflect": false
@@ -244,8 +289,17 @@ export class ShareButton {
244
289
  "required": false,
245
290
  "optional": false,
246
291
  "docs": {
247
- "tags": [],
248
- "text": ""
292
+ "tags": [{
293
+ "text": "URL",
294
+ "name": "uiName"
295
+ }, {
296
+ "text": "imageUpload",
297
+ "name": "uiWidget"
298
+ }, {
299
+ "text": "url",
300
+ "name": "format"
301
+ }],
302
+ "text": "URL redirect location"
249
303
  },
250
304
  "attribute": "url",
251
305
  "reflect": false