@saasquatch/vanilla-components 1.2.4-2 → 1.2.4-5

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 (26) hide show
  1. package/dist/cjs/sqh-copy-button_12.cjs.entry.js +1 -1
  2. package/dist/collection/components/copy-button/copy-button.js +12 -12
  3. package/dist/collection/components/copy-link-button/copy-link-button.js +4 -4
  4. package/dist/collection/components/global-container/global-container.js +4 -4
  5. package/dist/collection/components/image-component/image-component.js +6 -6
  6. package/dist/collection/components/partner-stat-component/partner-stat-component.js +15 -5
  7. package/dist/collection/components/referral-code/referral-code.js +2 -0
  8. package/dist/collection/components/referral-list/referral-list.js +19 -17
  9. package/dist/collection/components/share-button-container/share-button-container.js +10 -10
  10. package/dist/collection/components/stat-component/stat-component.js +8 -0
  11. package/dist/collection/components/stats-container/stats-container.js +3 -0
  12. package/dist/esm/sqh-copy-button_12.entry.js +1 -1
  13. package/dist/esm-es5/sqh-copy-button_12.entry.js +1 -1
  14. package/dist/types/components/copy-button/copy-button.d.ts +6 -18
  15. package/dist/types/components/copy-link-button/copy-link-button.d.ts +1 -7
  16. package/dist/types/components/global-container/global-container.d.ts +3 -5
  17. package/dist/types/components/image-component/image-component.d.ts +4 -8
  18. package/dist/types/components/partner-stat-component/partner-stat-component.d.ts +10 -6
  19. package/dist/types/components/referral-code/referral-code.d.ts +2 -0
  20. package/dist/types/components/referral-list/referral-list.d.ts +15 -21
  21. package/dist/types/components/share-button-container/share-button-container.d.ts +9 -9
  22. package/dist/types/components/stat-component/stat-component.d.ts +6 -0
  23. package/dist/types/components/stats-container/stats-container.d.ts +3 -0
  24. package/dist/types/components.d.ts +90 -118
  25. package/docs/raisins.json +1 -1
  26. package/package.json +1 -1
@@ -14,47 +14,37 @@ export declare class CopyButton {
14
14
  */
15
15
  ishidden: boolean;
16
16
  /**
17
- * Text shown inside the copy button.
18
- *
19
17
  * @uiName Button Text
20
18
  * @default "COPY CODE"
21
19
  */
22
20
  text: string;
23
21
  /**
24
- * Sets a maximum width on the copy button.
25
- *
26
- * @uiName Max Width
22
+ * @uiName Button Max Width
27
23
  * @default 170
28
24
  */
29
25
  width: number;
30
26
  /**
31
- * Background & border color of the copy button.
32
- *
33
- * @uiName Background Color
27
+ * @uiName Button Color
34
28
  * @uiWidget color
35
29
  * @format color
36
30
  * @default #35b21e
37
31
  */
38
32
  backgroundcolor: string;
39
33
  /**
40
- * Configure border radius with pixel amount
34
+ * Define the radius of the corners with a pixel amount.
41
35
  *
42
36
  * @uiName Border Radius
43
37
  * @default 4
44
38
  */
45
39
  borderradius: number;
46
40
  /**
47
- * Color of text inside the copy button.
48
- *
49
- * @uiName Text Color
41
+ * @uiName Button Text Color
50
42
  * @uiWidget color
51
43
  * @format color
52
44
  * @default #ffffff
53
45
  */
54
46
  textcolor: string;
55
47
  /**
56
- * Font size of the copy button text.
57
- *
58
48
  * @uiName Font Size
59
49
  * @default 14
60
50
  */
@@ -74,7 +64,7 @@ export declare class CopyButton {
74
64
  */
75
65
  copyfailure: string;
76
66
  /**
77
- * rewardkey is used to get the fuel tank code for a user.
67
+ * The rewardKey of a fuel tank reward. This is used to get the fuel tank code for a user.
78
68
  *
79
69
  * @uiName Reward Key
80
70
  * @default "referredReward"
@@ -88,9 +78,7 @@ export declare class CopyButton {
88
78
  */
89
79
  codefontsize: number;
90
80
  /**
91
- * Text color of the fuel tank code.
92
- *
93
- * @uiName Code Font Color
81
+ * @uiName Fuel Tank Code Color
94
82
  * @uiWidget color
95
83
  * @format color
96
84
  * @default #000000
@@ -13,8 +13,6 @@ export declare class CopyLinkButton {
13
13
  */
14
14
  ishidden: boolean;
15
15
  /**
16
- * Text shown inside the copy button.
17
- *
18
16
  * @uiName Button Text
19
17
  * @default "Copy"
20
18
  */
@@ -34,8 +32,6 @@ export declare class CopyLinkButton {
34
32
  */
35
33
  copyfailure: string;
36
34
  /**
37
- * Background & border color of the copy button.
38
- *
39
35
  * @uiName Button Color
40
36
  * @uiWidget color
41
37
  * @format color
@@ -43,9 +39,7 @@ export declare class CopyLinkButton {
43
39
  */
44
40
  buttoncolor: string;
45
41
  /**
46
- * Color of text inside the copy button.
47
- *
48
- * @uiName Text Color
42
+ * @uiName Button Text Color
49
43
  * @uiWidget color
50
44
  * @format color
51
45
  * @default "#FFFFFF"
@@ -14,7 +14,7 @@ export declare class GlobalContainer {
14
14
  */
15
15
  background: string;
16
16
  /**
17
- * Configure the color of the loading state.
17
+ * The background colour of the component while in the loading state.
18
18
  *
19
19
  * @uiName Loading Color
20
20
  * @uiWidget color
@@ -31,13 +31,11 @@ export declare class GlobalContainer {
31
31
  */
32
32
  fontfamily: string;
33
33
  /**
34
- * Maximum width on the container.
35
- *
36
- * @uiName Max Width
34
+ * @uiName Container Max Width
37
35
  */
38
36
  maxwidth: string;
39
37
  /**
40
- * Show and hide the powered by SaaSquatch link. Can only be disabled on Pro plans.
38
+ * Show the Powered by SaaSquatch link. This can only be disabled on Pro plans.
41
39
  *
42
40
  * @uiName Show Powered By
43
41
  */
@@ -10,30 +10,26 @@ export declare class ImageComponent {
10
10
  */
11
11
  ishidden: boolean;
12
12
  /**
13
- * Image link
14
- *
15
- * @uiName URL
13
+ * @uiName Image URL
16
14
  * @uiWidget imageUpload
17
15
  * @format url
18
16
  *
19
17
  */
20
18
  url: string;
21
19
  /**
22
- * Image width
20
+ * Define the width of the image with a pixel amount.
23
21
  *
24
22
  * @uiName Width
25
23
  */
26
24
  width: number;
27
25
  /**
28
- * Configure border radius with pixel amount
26
+ * Define the radius of the corners with a pixel amount.
29
27
  *
30
28
  * @uiName Border Radius
31
29
  */
32
30
  borderradius: number;
33
31
  /**
34
- * Configure alignment of the image
35
- *
36
- * @uiName Alignment
32
+ * @uiName Horizontal Alignment
37
33
  * @uiEnum ["left", "center", "right"]
38
34
  * @uiEnumNames ["Left", "Center", "Right"]
39
35
  * @default "center"
@@ -2,6 +2,10 @@ import { EventEmitter } from "../../stencil-public-runtime";
2
2
  /**
3
3
  * @uiName Partner Stat
4
4
  * @canvasRenderer always-replace
5
+ * @exampleGroup Statistics
6
+ * @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>
7
+ * @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>
8
+ * @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
9
  */
6
10
  export declare class PartnerStatComponent {
7
11
  elem: HTMLElement;
@@ -12,29 +16,29 @@ export declare class PartnerStatComponent {
12
16
  */
13
17
  ishidden: boolean;
14
18
  /**
15
- * Used to query the stats for a user
19
+ * Determines what type of stat is displayed. Manual paths are also supported.
16
20
  *
17
21
  * @uiName Stat Type
18
22
  * @uiWidget statTypeSelector
19
23
  * @required
24
+ * @minLength 1
20
25
  */
21
26
  stattype: string;
22
27
  /**
23
28
  * Value of the stat
24
29
  *
25
- * @uiName Stat Value
30
+ * @uiName Value
31
+ * @undocumented
26
32
  */
27
33
  statvalue: string;
28
34
  /**
29
- * Description of the stat
30
- *
31
- * @uiName Stat Description
35
+ * @uiName Description
32
36
  */
33
37
  statdescription: string;
34
38
  /**
35
39
  * Color of the stat value and description
36
40
  *
37
- * @uiName Stat Color
41
+ * @uiName Color
38
42
  * @uiWidget color
39
43
  * @format color
40
44
  */
@@ -1,6 +1,8 @@
1
1
  /**
2
2
  * @uiName Referral Code
3
3
  * @canvasRenderer always-replace
4
+ * @exampleGroup Referrals
5
+ * @example Referral Code - <sqh-referral-code />
4
6
  */
5
7
  export declare class ReferralCode {
6
8
  referralcode: string;
@@ -1,6 +1,8 @@
1
1
  /**
2
2
  * @uiName Referral List
3
3
  * @canvasRenderer always-replace
4
+ * @exampleGroup Referrals
5
+ * @example Referral List - <sqh-referral-list ishidden="false" showreferrer="true" usefirstreward="false" referralnamecolor="darkslategray" referraltextcolor="lightgray" rewardcolor="#4BB543" pendingcolor="lightgray" pendingvalue="Reward Pending" referrervalue="Referred" referrercontent="Referred you {date}" convertedcontent="Signed up, referred {date}" pendingcontent="Trial user, referred {date}" pendingvalue="Referral pending" valuecontent="and {extrarewards} more {extrarewards, plural, one {reward} other {rewards}}" expiredcolor="lightgray" expiredvalue="Expired Reward" expiredcontent="Signed up, referred {date}" cancelledcolor="#C81D05" cancelledvalue="Cancelled Reward" cancelledcontent="Signed up, referred {date}" paginatemore="View More" paginateless="Previous" noreferralsyet="No Referrals Yet..." unknownuser="Your Friend"></sqh-referral-list>
4
6
  */
5
7
  export declare class ReferralList {
6
8
  /**
@@ -31,7 +33,7 @@ export declare class ReferralList {
31
33
  */
32
34
  noreferralsyet: string;
33
35
  /**
34
- * Text color of the referred users name
36
+ * Text color of the referred user's name
35
37
  *
36
38
  * @uiName Referral Name Color
37
39
  * @uiWidget color
@@ -40,8 +42,6 @@ export declare class ReferralList {
40
42
  */
41
43
  referralnamecolor: string;
42
44
  /**
43
- * Text color of the referral status
44
- *
45
45
  * @uiName Referral Text Color
46
46
  * @uiWidget color
47
47
  * @format color
@@ -49,21 +49,17 @@ export declare class ReferralList {
49
49
  */
50
50
  referraltextcolor: string;
51
51
  /**
52
- * Text shown when the referred users name is unknown
52
+ * Text shown when the referred user's name is unknown
53
53
  *
54
54
  * @uiName Unknown User Text
55
55
  * @default "Your Friend"
56
56
  */
57
57
  unknownuser: string;
58
58
  /**
59
- * Show or hide expired rewards
60
- *
61
- * @uiName Show Expiry
59
+ * @uiName Show Expired Rewards
62
60
  */
63
61
  showexpiry: boolean;
64
62
  /**
65
- * Show the customer note for a referral
66
- *
67
63
  * @uiName Show Customer Note
68
64
  */
69
65
  shownotes: boolean;
@@ -76,9 +72,9 @@ export declare class ReferralList {
76
72
  */
77
73
  redeemedvalue: string;
78
74
  /**
79
- * Show or hide the referrer
75
+ * Show referral and reward information on who referred you.
80
76
  *
81
- * @uiName Show Referrer
77
+ * @uiName Show Referred By
82
78
  * @uiGroup Referrer
83
79
  * @default ""
84
80
  */
@@ -100,7 +96,7 @@ export declare class ReferralList {
100
96
  */
101
97
  referrervalue: string;
102
98
  /**
103
- * Color of the successful reward icon and the text value
99
+ * Color of the successful reward icon and text in the rewards column.
104
100
  *
105
101
  * @uiName Reward Color
106
102
  * @uiGroup Converted Referrals
@@ -110,16 +106,14 @@ export declare class ReferralList {
110
106
  */
111
107
  rewardcolor: string;
112
108
  /**
113
- * Color of the customer note
114
- *
115
- * @uiName Reward Color
109
+ * @uiName Customer Note Color
116
110
  * @uiGroup Converted Referrals
117
111
  * @uiWidget color
118
112
  * @format color
119
113
  */
120
114
  customernotecolor: string;
121
115
  /**
122
- * Show value of the first earned reward inside the rewards column
116
+ * Show the value of the first earned reward inside the rewards column
123
117
  *
124
118
  * @uiName Use First Reward
125
119
  * @uiGroup Converted Referrals
@@ -143,7 +137,7 @@ export declare class ReferralList {
143
137
  */
144
138
  valuecontent: string;
145
139
  /**
146
- * Color of the pending icon and text
140
+ * Color of the pending reward icon and text in the rewards column.
147
141
  *
148
142
  * @uiName Pending Color
149
143
  * @uiGroup Pending Referrals
@@ -169,7 +163,7 @@ export declare class ReferralList {
169
163
  */
170
164
  pendingvalue: string;
171
165
  /**
172
- * Color of the expired icon and text
166
+ * Color of the expired reward icon and text in the rewards column.
173
167
  *
174
168
  * @uiName Expired Color
175
169
  * @uiGroup Expired Rewards
@@ -202,7 +196,7 @@ export declare class ReferralList {
202
196
  */
203
197
  expiresvalue: string;
204
198
  /**
205
- * Color of the cancelled icon and text
199
+ * Color of the cancelled icon and text in the rewards column.
206
200
  *
207
201
  * @uiName Cancelled Color
208
202
  * @uiGroup Cancelled Rewards
@@ -212,7 +206,7 @@ export declare class ReferralList {
212
206
  */
213
207
  cancelledcolor: string;
214
208
  /**
215
- * Cancelled text content shown in the user column
209
+ * Content shown in the referral column for a cancelled reward.
216
210
  *
217
211
  * @uiName Cancelled Content
218
212
  * @uiGroup Cancelled Rewards
@@ -220,7 +214,7 @@ export declare class ReferralList {
220
214
  */
221
215
  cancelledcontent: string;
222
216
  /**
223
- * Cancelled text content shown alongside the icon in the referral column
217
+ * Text shown alongside the icon in the referral column for a cancelled reward.
224
218
  *
225
219
  * @uiName Cancelled Value
226
220
  * @uiGroup Cancelled Rewards
@@ -57,7 +57,7 @@ export declare class ShareButtonContainer {
57
57
  */
58
58
  emailicon: string;
59
59
  /**
60
- * CSS Class name used to style the Email button
60
+ * CSS class name for additional styling.
61
61
  *
62
62
  * @uiName Email Class Name
63
63
  * @uiGroup Email
@@ -131,7 +131,7 @@ export declare class ShareButtonContainer {
131
131
  */
132
132
  facebookicon: string;
133
133
  /**
134
- * CSS Class name used to style the facebook button
134
+ * CSS class name for additional styling.
135
135
  *
136
136
  * @uiName Facebook Class Name
137
137
  * @uiGroup Facebook
@@ -205,7 +205,7 @@ export declare class ShareButtonContainer {
205
205
  */
206
206
  twittericon: string;
207
207
  /**
208
- * CSS Class name used to style the twitter button
208
+ * CSS class name for additional styling.
209
209
  *
210
210
  * @uiName Twitter Class Name
211
211
  * @uiGroup Twitter
@@ -279,7 +279,7 @@ export declare class ShareButtonContainer {
279
279
  */
280
280
  smsicon: string;
281
281
  /**
282
- * CSS Class name used to style the SMS button
282
+ * CSS class name for additional styling.
283
283
  *
284
284
  * @uiName SMS Class Name
285
285
  * @uiGroup SMS
@@ -353,7 +353,7 @@ export declare class ShareButtonContainer {
353
353
  */
354
354
  whatsappicon: string;
355
355
  /**
356
- * CSS Class name used to style the WhatsApp button
356
+ * CSS class name for additional styling.
357
357
  *
358
358
  * @uiName WhatsApp Class Name
359
359
  * @uiGroup WhatsApp
@@ -427,7 +427,7 @@ export declare class ShareButtonContainer {
427
427
  */
428
428
  linkedinicon: string;
429
429
  /**
430
- * CSS Class name used to style the Linkedin button
430
+ * CSS class name for additional styling.
431
431
  *
432
432
  * @uiName Linkedin Class Name
433
433
  * @uiGroup LinkedIn
@@ -501,7 +501,7 @@ export declare class ShareButtonContainer {
501
501
  */
502
502
  pinteresticon: string;
503
503
  /**
504
- * CSS Class name used to style the Pinterest button
504
+ * CSS class name for additional styling.
505
505
  *
506
506
  * @uiName Pinterest Class Name
507
507
  * @uiGroup Pinterest
@@ -575,7 +575,7 @@ export declare class ShareButtonContainer {
575
575
  */
576
576
  messengericon: string;
577
577
  /**
578
- * CSS Class name used to style the Messenger button
578
+ * CSS class name for additional styling.
579
579
  *
580
580
  * @uiName Messenger Class Name
581
581
  * @uiGroup Messenger
@@ -649,7 +649,7 @@ export declare class ShareButtonContainer {
649
649
  */
650
650
  lineicon: string;
651
651
  /**
652
- * CSS Class name used to style the Line button
652
+ * CSS class name for additional styling.
653
653
  *
654
654
  * @uiName Line Class Name
655
655
  * @uiGroup Line Messenger
@@ -2,6 +2,11 @@ import { EventEmitter } from "../../stencil-public-runtime";
2
2
  /**
3
3
  * @uiName Stat Component
4
4
  * @canvasRenderer always-replace
5
+ * @exampleGroup Statistics
6
+ * @example Referral Count - <sqh-stat-component ishidden="false" statcolor="#4caf50" stattype="/referralsCount" statdescription="Friends Referred" paddingtop="10" paddingbottom="10"></sqh-stat-component>
7
+ * @example Reward Count - <sqh-stat-component ishidden="false" stattype="/rewardsCount" statdescription="Total Rewards" paddingtop="10" paddingbottom="10" statcolor="#000000"></sqh-stat-component>
8
+ * @example Credit Earned - <sqh-stat-component ishidden="false" stattype="/rewardBalance/CREDIT/CENTS/prettyAssignedCredit" statdescription="Credit earned" paddingtop="10" paddingbottom="10" statcolor="#000000"></sqh-stat-component>
9
+ * @example Points Earned - <sqh-stat-component statcolor="#000000" stattype="/rewardBalance/CREDIT/POINT/totalAssignedCredit" statdescription="Points Earned" paddingtop="10" paddingbottom="10"></sqh-stat-component>
5
10
  */
6
11
  export declare class StatComponent {
7
12
  elem: HTMLElement;
@@ -16,6 +21,7 @@ export declare class StatComponent {
16
21
  * @uiName Stat Type
17
22
  * @uiWidget statTypeSelector
18
23
  * @required
24
+ * @minLength 1
19
25
  */
20
26
  stattype: string;
21
27
  /**
@@ -2,6 +2,9 @@
2
2
  * @uiName Stats Container
3
3
  * @canvasRenderer always-replace
4
4
  * @slots [{"name":"","title":"Stats"}]
5
+ * @exampleGroup Statistics
6
+ * @example Referral Stat Group - <sqh-stats-container ishidden="false" paddingtop="0" paddingbottom="0"><sqh-stat-component ishidden="false" statcolor="#4caf50" stattype="/referralsCount" statdescription="Friends Referred" paddingtop="10" paddingbottom="10"></sqh-stat-component><sqh-stat-component ishidden="false" stattype="/rewardsCount" statdescription="Total Rewards" paddingtop="10" paddingbottom="10" statcolor="#000000"></sqh-stat-component><sqh-stat-component ishidden="false" stattype="/rewardBalance/CREDIT/CENTS/prettyAssignedCredit" statdescription="Credit earned" paddingtop="10" paddingbottom="10" statcolor="#000000"></sqh-stat-component></sqh-stats-container>
7
+ * @example Partner Stat Group - <sqh-stats-container ishidden="false" paddingtop="0" paddingbottom="0"><sqh-partner-stat-component ishidden="false" statcolor="#000000" stattype="/rewardBalance/CREDIT/CASH_CAD/prettyPendingCredit" statdescription="Pending Balance" paddingtop="10" paddingbottom="10"></sqh-partner-stat-component><sqh-partner-stat-component ishidden="false" stattype="/rewardBalance/CREDIT/CASH_CAD/prettyValue" statdescription="Available Balance" paddingtop="10" paddingbottom="10" statcolor="#4caf50"></sqh-partner-stat-component><sqh-partner-stat-component ishidden="false" stattype="/rewardBalance/CREDIT/CASH_CAD/prettyRedeemedCredit" statdescription="Redeemed Balance" paddingtop="10" paddingbottom="10" statcolor="#000000"></sqh-partner-stat-component></sqh-stats-container>
5
8
  */
6
9
  export declare class StatsContainer {
7
10
  container: HTMLElement;