@saasquatch/vanilla-components 1.2.3 → 1.3.0-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 (52) 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 +179 -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 +63 -24
  8. package/dist/collection/components/copy-link-button/copy-link-button.js +33 -12
  9. package/dist/collection/components/global-container/global-container.js +28 -10
  10. package/dist/collection/components/image-component/image-component.js +33 -12
  11. package/dist/collection/components/partner-stat-component/partner-stat-component.js +29 -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 +205 -58
  15. package/dist/collection/components/rewards-actions/rewards-actions.js +33 -6
  16. package/dist/collection/components/share-button/share-button.js +58 -22
  17. package/dist/collection/components/share-button-container/share-button-container.js +824 -164
  18. package/dist/collection/components/stat-component/stat-component.js +40 -10
  19. package/dist/collection/components/stats-container/stats-container.js +23 -6
  20. package/dist/collection/components/text-component/text-component.js +58 -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 +178 -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 +196 -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 +63 -0
  33. package/dist/types/components/copy-link-button/copy-link-button.d.ts +33 -0
  34. package/dist/types/components/global-container/global-container.d.ts +28 -0
  35. package/dist/types/components/image-component/image-component.d.ts +33 -0
  36. package/dist/types/components/partner-stat-component/partner-stat-component.d.ts +29 -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 +167 -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 +58 -0
  42. package/dist/types/components/share-button-container/share-button-container.d.ts +494 -0
  43. package/dist/types/components/stat-component/stat-component.d.ts +32 -0
  44. package/dist/types/components/stats-container/stats-container.d.ts +18 -0
  45. package/dist/types/components/text-component/text-component.d.ts +58 -1
  46. package/dist/types/components.d.ts +1680 -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/dist/widget-components/widget-components.js +1 -1
  52. package/package.json +1 -1
@@ -3,6 +3,9 @@ import Clipboard from "clipboard";
3
3
  import { shadeColor, addClass, removeClass } from "../../utilities";
4
4
  import { css } from "emotion";
5
5
  import { API } from "../../services/WidgetHost";
6
+ /**
7
+ * @uiName Copy Link Button
8
+ */
6
9
  export class CopyLinkButton {
7
10
  componentWillLoad() {
8
11
  if (!this.ishidden) {
@@ -84,8 +87,11 @@ export class CopyLinkButton {
84
87
  "required": false,
85
88
  "optional": false,
86
89
  "docs": {
87
- "tags": [],
88
- "text": ""
90
+ "tags": [{
91
+ "text": "Hide Button",
92
+ "name": "uiName"
93
+ }],
94
+ "text": "Hide or show the component"
89
95
  },
90
96
  "attribute": "ishidden",
91
97
  "reflect": false
@@ -101,8 +107,11 @@ export class CopyLinkButton {
101
107
  "required": false,
102
108
  "optional": false,
103
109
  "docs": {
104
- "tags": [],
105
- "text": ""
110
+ "tags": [{
111
+ "text": "Button Text",
112
+ "name": "uiName"
113
+ }],
114
+ "text": "Text shown inside the copy button."
106
115
  },
107
116
  "attribute": "text",
108
117
  "reflect": false
@@ -118,8 +127,11 @@ export class CopyLinkButton {
118
127
  "required": false,
119
128
  "optional": false,
120
129
  "docs": {
121
- "tags": [],
122
- "text": ""
130
+ "tags": [{
131
+ "text": "Copy Success Text",
132
+ "name": "uiName"
133
+ }],
134
+ "text": "Shown when the code is successfully copied to the users clipboard."
123
135
  },
124
136
  "attribute": "copysuccess",
125
137
  "reflect": false
@@ -135,8 +147,11 @@ export class CopyLinkButton {
135
147
  "required": false,
136
148
  "optional": false,
137
149
  "docs": {
138
- "tags": [],
139
- "text": ""
150
+ "tags": [{
151
+ "text": "Copy Failure Text",
152
+ "name": "uiName"
153
+ }],
154
+ "text": "Shown when the button has failed to copy the code to the users clipboard."
140
155
  },
141
156
  "attribute": "copyfailure",
142
157
  "reflect": false
@@ -152,8 +167,11 @@ export class CopyLinkButton {
152
167
  "required": false,
153
168
  "optional": false,
154
169
  "docs": {
155
- "tags": [],
156
- "text": ""
170
+ "tags": [{
171
+ "text": "Button Color",
172
+ "name": "uiName"
173
+ }],
174
+ "text": "Background & border color of the copy button."
157
175
  },
158
176
  "attribute": "buttoncolor",
159
177
  "reflect": false
@@ -169,8 +187,11 @@ export class CopyLinkButton {
169
187
  "required": false,
170
188
  "optional": false,
171
189
  "docs": {
172
- "tags": [],
173
- "text": ""
190
+ "tags": [{
191
+ "text": "Text Color",
192
+ "name": "uiName"
193
+ }],
194
+ "text": "Color of text inside the copy button."
174
195
  },
175
196
  "attribute": "textcolor",
176
197
  "reflect": false
@@ -1,5 +1,8 @@
1
1
  import { h, Component, Prop } from "@stencil/core";
2
2
  import { css } from "emotion";
3
+ /**
4
+ * @uiName Global Container
5
+ */
3
6
  export class GlobalContainer {
4
7
  LoadingState(props) {
5
8
  const style = css `
@@ -48,8 +51,11 @@ export class GlobalContainer {
48
51
  "required": false,
49
52
  "optional": false,
50
53
  "docs": {
51
- "tags": [],
52
- "text": ""
54
+ "tags": [{
55
+ "text": "Background Color",
56
+ "name": "uiName"
57
+ }],
58
+ "text": "Configure the background color."
53
59
  },
54
60
  "attribute": "background",
55
61
  "reflect": false
@@ -65,8 +71,11 @@ export class GlobalContainer {
65
71
  "required": false,
66
72
  "optional": false,
67
73
  "docs": {
68
- "tags": [],
69
- "text": ""
74
+ "tags": [{
75
+ "text": "Loading Color",
76
+ "name": "uiName"
77
+ }],
78
+ "text": "Configure the color of the loading state."
70
79
  },
71
80
  "attribute": "loadingcolor",
72
81
  "reflect": false
@@ -82,8 +91,11 @@ export class GlobalContainer {
82
91
  "required": false,
83
92
  "optional": false,
84
93
  "docs": {
85
- "tags": [],
86
- "text": ""
94
+ "tags": [{
95
+ "text": "Font Family",
96
+ "name": "uiName"
97
+ }],
98
+ "text": "Font family used inside the container."
87
99
  },
88
100
  "attribute": "fontfamily",
89
101
  "reflect": false
@@ -99,8 +111,11 @@ export class GlobalContainer {
99
111
  "required": false,
100
112
  "optional": false,
101
113
  "docs": {
102
- "tags": [],
103
- "text": ""
114
+ "tags": [{
115
+ "text": "Max Width",
116
+ "name": "uiName"
117
+ }],
118
+ "text": "Maximum width on the container."
104
119
  },
105
120
  "attribute": "maxwidth",
106
121
  "reflect": false
@@ -116,8 +131,11 @@ export class GlobalContainer {
116
131
  "required": false,
117
132
  "optional": false,
118
133
  "docs": {
119
- "tags": [],
120
- "text": ""
134
+ "tags": [{
135
+ "text": "Powered By",
136
+ "name": "uiName"
137
+ }],
138
+ "text": "Show and hide the powered by SaaSquatch link."
121
139
  },
122
140
  "attribute": "poweredby",
123
141
  "reflect": false
@@ -1,5 +1,8 @@
1
1
  import { h, Component, Prop } from "@stencil/core";
2
2
  import { css } from "emotion";
3
+ /**
4
+ * @uiName Image Component
5
+ */
3
6
  export class ImageComponent {
4
7
  render() {
5
8
  const imageString = this.url;
@@ -37,8 +40,11 @@ export class ImageComponent {
37
40
  "required": false,
38
41
  "optional": false,
39
42
  "docs": {
40
- "tags": [],
41
- "text": ""
43
+ "tags": [{
44
+ "text": "Hide Image",
45
+ "name": "uiName"
46
+ }],
47
+ "text": "Hide or show the component"
42
48
  },
43
49
  "attribute": "ishidden",
44
50
  "reflect": false
@@ -54,8 +60,11 @@ export class ImageComponent {
54
60
  "required": false,
55
61
  "optional": false,
56
62
  "docs": {
57
- "tags": [],
58
- "text": ""
63
+ "tags": [{
64
+ "text": "URL",
65
+ "name": "uiName"
66
+ }],
67
+ "text": "Image link"
59
68
  },
60
69
  "attribute": "url",
61
70
  "reflect": false
@@ -71,8 +80,11 @@ export class ImageComponent {
71
80
  "required": false,
72
81
  "optional": false,
73
82
  "docs": {
74
- "tags": [],
75
- "text": ""
83
+ "tags": [{
84
+ "text": "Width",
85
+ "name": "uiName"
86
+ }],
87
+ "text": "Image width"
76
88
  },
77
89
  "attribute": "width",
78
90
  "reflect": false
@@ -88,8 +100,11 @@ export class ImageComponent {
88
100
  "required": false,
89
101
  "optional": false,
90
102
  "docs": {
91
- "tags": [],
92
- "text": ""
103
+ "tags": [{
104
+ "text": "Border Radius",
105
+ "name": "uiName"
106
+ }],
107
+ "text": "Configure border radius with pixel amount"
93
108
  },
94
109
  "attribute": "borderradius",
95
110
  "reflect": false
@@ -105,8 +120,11 @@ export class ImageComponent {
105
120
  "required": false,
106
121
  "optional": false,
107
122
  "docs": {
108
- "tags": [],
109
- "text": ""
123
+ "tags": [{
124
+ "text": "Alignment",
125
+ "name": "uiName"
126
+ }],
127
+ "text": "Configure alignment of the image"
110
128
  },
111
129
  "attribute": "alignment",
112
130
  "reflect": false
@@ -122,8 +140,11 @@ export class ImageComponent {
122
140
  "required": false,
123
141
  "optional": false,
124
142
  "docs": {
125
- "tags": [],
126
- "text": ""
143
+ "tags": [{
144
+ "text": "CSS",
145
+ "name": "uiName"
146
+ }],
147
+ "text": "Additional CSS applied to the image element"
127
148
  },
128
149
  "attribute": "css",
129
150
  "reflect": false
@@ -1,6 +1,9 @@
1
1
  import { h, Component, Prop, Event, Element, Watch, } from "@stencil/core";
2
2
  import { css } from "emotion";
3
- export class StatComponent {
3
+ /**
4
+ * @uiName Partner Stat
5
+ */
6
+ export class PartnerStatComponent {
4
7
  componentWillLoad() {
5
8
  this.statAddedHandler(this.elem);
6
9
  }
@@ -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,11 @@ 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": "Used to query the stats for a user"
63
72
  },
64
73
  "attribute": "stattype",
65
74
  "reflect": false
@@ -75,8 +84,11 @@ export class StatComponent {
75
84
  "required": false,
76
85
  "optional": false,
77
86
  "docs": {
78
- "tags": [],
79
- "text": ""
87
+ "tags": [{
88
+ "text": "Stat Value",
89
+ "name": "uiName"
90
+ }],
91
+ "text": "Value of the stat"
80
92
  },
81
93
  "attribute": "statvalue",
82
94
  "reflect": false
@@ -92,8 +104,11 @@ export class StatComponent {
92
104
  "required": false,
93
105
  "optional": false,
94
106
  "docs": {
95
- "tags": [],
96
- "text": ""
107
+ "tags": [{
108
+ "text": "Stat Description",
109
+ "name": "uiName"
110
+ }],
111
+ "text": "Description of the stat"
97
112
  },
98
113
  "attribute": "statdescription",
99
114
  "reflect": false
@@ -109,8 +124,11 @@ export class StatComponent {
109
124
  "required": false,
110
125
  "optional": false,
111
126
  "docs": {
112
- "tags": [],
113
- "text": ""
127
+ "tags": [{
128
+ "text": "Stat Color",
129
+ "name": "uiName"
130
+ }],
131
+ "text": "Color of the stat value and description"
114
132
  },
115
133
  "attribute": "statcolor",
116
134
  "reflect": false
@@ -1,5 +1,8 @@
1
1
  import { h, Component, State } from "@stencil/core";
2
2
  import { API } from "../../services/WidgetHost";
3
+ /**
4
+ * @uiName Referral Code
5
+ */
3
6
  export class ReferralCode {
4
7
  componentWillLoad() {
5
8
  return API.graphql
@@ -1,5 +1,8 @@
1
1
  import { h, Component, Prop } from "@stencil/core";
2
2
  import FormatJS from "../../services/FormatJs";
3
+ /**
4
+ * @uiName Referral Component
5
+ */
3
6
  export class ReferralComponent {
4
7
  getName() {
5
8
  const referral = this.referral;
@@ -156,8 +159,11 @@ export class ReferralComponent {
156
159
  "required": false,
157
160
  "optional": false,
158
161
  "docs": {
159
- "tags": [],
160
- "text": ""
162
+ "tags": [{
163
+ "text": "Referral",
164
+ "name": "uiName"
165
+ }],
166
+ "text": "Referral object"
161
167
  }
162
168
  },
163
169
  "referraltype": {
@@ -171,8 +177,11 @@ export class ReferralComponent {
171
177
  "required": false,
172
178
  "optional": false,
173
179
  "docs": {
174
- "tags": [],
175
- "text": ""
180
+ "tags": [{
181
+ "text": "Referral Type",
182
+ "name": "uiName"
183
+ }],
184
+ "text": "Type of referral"
176
185
  },
177
186
  "attribute": "referraltype",
178
187
  "reflect": false
@@ -192,8 +201,11 @@ export class ReferralComponent {
192
201
  "required": false,
193
202
  "optional": false,
194
203
  "docs": {
195
- "tags": [],
196
- "text": ""
204
+ "tags": [{
205
+ "text": "Referral Variables",
206
+ "name": "uiName"
207
+ }],
208
+ "text": "Referral variables used to format the row in the referral list"
197
209
  }
198
210
  },
199
211
  "unknownuser": {
@@ -211,8 +223,11 @@ export class ReferralComponent {
211
223
  "required": false,
212
224
  "optional": false,
213
225
  "docs": {
214
- "tags": [],
215
- "text": ""
226
+ "tags": [{
227
+ "text": "Unknown User",
228
+ "name": "uiName"
229
+ }],
230
+ "text": "Text shown when the name of a user is unknown"
216
231
  }
217
232
  },
218
233
  "locale": {
@@ -226,8 +241,11 @@ export class ReferralComponent {
226
241
  "required": false,
227
242
  "optional": false,
228
243
  "docs": {
229
- "tags": [],
230
- "text": ""
244
+ "tags": [{
245
+ "text": "Local",
246
+ "name": "uiName"
247
+ }],
248
+ "text": "Configure the local"
231
249
  },
232
250
  "attribute": "locale",
233
251
  "reflect": false