@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
@@ -1,10 +1,43 @@
1
1
  import Clipboard from "clipboard";
2
+ /**
3
+ * @uiName Copy Link Button
4
+ */
2
5
  export declare class CopyLinkButton {
6
+ /**
7
+ * Hide or show the component
8
+ *
9
+ * @uiName Hide Button
10
+ */
3
11
  ishidden: boolean;
12
+ /**
13
+ * Text shown inside the copy button.
14
+ *
15
+ * @uiName Button Text
16
+ */
4
17
  text: string;
18
+ /**
19
+ * Shown when the code is successfully copied to the users clipboard.
20
+ *
21
+ * @uiName Copy Success Text
22
+ */
5
23
  copysuccess: string;
24
+ /**
25
+ * Shown when the button has failed to copy the code to the users clipboard.
26
+ *
27
+ * @uiName Copy Failure Text
28
+ */
6
29
  copyfailure: string;
30
+ /**
31
+ * Background & border color of the copy button.
32
+ *
33
+ * @uiName Button Color
34
+ */
7
35
  buttoncolor: string;
36
+ /**
37
+ * Color of text inside the copy button.
38
+ *
39
+ * @uiName Text Color
40
+ */
8
41
  textcolor: string;
9
42
  sharelink: string;
10
43
  componentWillLoad(): any;
@@ -1,8 +1,36 @@
1
+ /**
2
+ * @uiName Global Container
3
+ */
1
4
  export declare class GlobalContainer {
5
+ /**
6
+ * Configure the background color.
7
+ *
8
+ * @uiName Background Color
9
+ */
2
10
  background: string;
11
+ /**
12
+ * Configure the color of the loading state.
13
+ *
14
+ * @uiName Loading Color
15
+ */
3
16
  loadingcolor: string;
17
+ /**
18
+ * Font family used inside the container.
19
+ *
20
+ * @uiName Font Family
21
+ */
4
22
  fontfamily: string;
23
+ /**
24
+ * Maximum width on the container.
25
+ *
26
+ * @uiName Max Width
27
+ */
5
28
  maxwidth: string;
29
+ /**
30
+ * Show and hide the powered by SaaSquatch link.
31
+ *
32
+ * @uiName Powered By
33
+ */
6
34
  poweredby: boolean;
7
35
  LoadingState(props: any): any;
8
36
  render(): any;
@@ -1,9 +1,42 @@
1
+ /**
2
+ * @uiName Image Component
3
+ */
1
4
  export declare class ImageComponent {
5
+ /**
6
+ * Hide or show the component
7
+ *
8
+ * @uiName Hide Image
9
+ */
2
10
  ishidden: boolean;
11
+ /**
12
+ * Image link
13
+ *
14
+ * @uiName URL
15
+ */
3
16
  url: string;
17
+ /**
18
+ * Image width
19
+ *
20
+ * @uiName Width
21
+ */
4
22
  width: number;
23
+ /**
24
+ * Configure border radius with pixel amount
25
+ *
26
+ * @uiName Border Radius
27
+ */
5
28
  borderradius: number;
29
+ /**
30
+ * Configure alignment of the image
31
+ *
32
+ * @uiName Alignment
33
+ */
6
34
  alignment: string;
35
+ /**
36
+ * Additional CSS applied to the image element
37
+ *
38
+ * @uiName CSS
39
+ */
7
40
  css: string;
8
41
  render(): any;
9
42
  }
@@ -1,10 +1,38 @@
1
1
  import { EventEmitter } from "../../stencil-public-runtime";
2
- export declare class StatComponent {
2
+ /**
3
+ * @uiName Partner Stat
4
+ */
5
+ export declare class PartnerStatComponent {
3
6
  elem: HTMLElement;
7
+ /**
8
+ * Hide or show the component
9
+ *
10
+ * @uiName Hide Stat
11
+ */
4
12
  ishidden: boolean;
13
+ /**
14
+ * Used to query the stats for a user
15
+ *
16
+ * @uiName Stat Type
17
+ */
5
18
  stattype: string;
19
+ /**
20
+ * Value of the stat
21
+ *
22
+ * @uiName Stat Value
23
+ */
6
24
  statvalue: string;
25
+ /**
26
+ * Description of the stat
27
+ *
28
+ * @uiName Stat Description
29
+ */
7
30
  statdescription: string;
31
+ /**
32
+ * Color of the stat value and description
33
+ *
34
+ * @uiName Stat Color
35
+ */
8
36
  statcolor: string;
9
37
  statTypeUpdated: EventEmitter;
10
38
  statAdded: EventEmitter;
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @uiName Referral Code
3
+ */
1
4
  export declare class ReferralCode {
2
5
  referralcode: string;
3
6
  componentWillLoad(): Promise<void>;
@@ -1,8 +1,36 @@
1
+ /**
2
+ * @uiName Referral Component
3
+ */
1
4
  export declare class ReferralComponent {
5
+ /**
6
+ * Referral object
7
+ *
8
+ * @uiName Referral
9
+ */
2
10
  referral: Referral | ReferredByReferral;
11
+ /**
12
+ * Type of referral
13
+ *
14
+ * @uiName Referral Type
15
+ */
3
16
  referraltype: "converted" | "pending" | "referrer";
17
+ /**
18
+ * Referral variables used to format the row in the referral list
19
+ *
20
+ * @uiName Referral Variables
21
+ */
4
22
  referralvariables: ReferralVariables;
23
+ /**
24
+ * Text shown when the name of a user is unknown
25
+ *
26
+ * @uiName Unknown User
27
+ */
5
28
  unknownuser: String;
29
+ /**
30
+ * Configure the local
31
+ *
32
+ * @uiName Local
33
+ */
6
34
  locale: string;
7
35
  getName(): String;
8
36
  getIcon(): "icon-ok-circled" | "icon-attention";
@@ -1,32 +1,199 @@
1
+ /**
2
+ * @uiName Referral List
3
+ */
1
4
  export declare class ReferralList {
5
+ /**
6
+ * Hide or show the component
7
+ *
8
+ * @uiName Hide Referral List
9
+ */
2
10
  ishidden: boolean;
11
+ /**
12
+ * Shown inside the paginate more button
13
+ *
14
+ * @uiName Paginate More Text
15
+ */
3
16
  paginatemore: string;
17
+ /**
18
+ * Shown inside the paginate less button
19
+ *
20
+ * @uiName Paginate Less Text
21
+ */
4
22
  paginateless: string;
23
+ /**
24
+ * Shown when referral list is empty
25
+ *
26
+ * @uiName Empty Referrals Text
27
+ */
5
28
  noreferralsyet: string;
29
+ /**
30
+ * Text color of the referred users name
31
+ *
32
+ * @uiName Referral Name Color
33
+ */
6
34
  referralnamecolor: string;
35
+ /**
36
+ * Text color of the referral status
37
+ *
38
+ * @uiName Referral Text Color
39
+ */
7
40
  referraltextcolor: string;
41
+ /**
42
+ * Text shown when the referred users name is unknown
43
+ *
44
+ * @uiName Unknown User Text
45
+ */
8
46
  unknownuser: string;
47
+ /**
48
+ * Show or hide expired rewards
49
+ *
50
+ * @uiName Show Expiry
51
+ */
9
52
  showexpiry: boolean;
53
+ /**
54
+ * Show the customer note for a referral
55
+ *
56
+ * @uiName Show Customer Note
57
+ */
10
58
  shownotes: boolean;
59
+ /**
60
+ * Shown when reward is redeemed
61
+ *
62
+ * @uiName Redeemed Value
63
+ */
11
64
  redeemedvalue: string;
65
+ /**
66
+ * Show or hide the referrer
67
+ *
68
+ * @uiName Show Referrer
69
+ * @uiGroup referrerProps
70
+ */
12
71
  showreferrer: boolean;
72
+ /**
73
+ * Text explaining who referred you to the program
74
+ *
75
+ * @uiName Referrer Content
76
+ * @uiGroup referrerProps
77
+ */
13
78
  referrercontent: string;
79
+ /**
80
+ * Referred Text shown in reward column
81
+ *
82
+ * @uiName Referrer Value
83
+ * @uiGroup referrerProps
84
+ */
14
85
  referrervalue: string;
86
+ /**
87
+ * Color of the successful reward icon and the text value
88
+ *
89
+ * @uiName Reward Color
90
+ * @uiGroup convertedReferralProps
91
+ */
15
92
  rewardcolor: string;
93
+ /**
94
+ * Color of the customer note
95
+ *
96
+ * @uiName Reward Color
97
+ * @uiGroup convertedReferralProps
98
+ */
16
99
  customernotecolor: string;
100
+ /**
101
+ * Show value of the first earned reward inside the rewards column
102
+ *
103
+ * @uiName Use First Reward
104
+ * @uiGroup convertedReferralProps
105
+ */
17
106
  usefirstreward: boolean;
107
+ /**
108
+ * Content shown when a referral is converted
109
+ *
110
+ * @uiName Converted Content
111
+ * @uiGroup convertedReferralProps
112
+ */
18
113
  convertedcontent: string;
114
+ /**
115
+ * Value shown in the rewards column
116
+ *
117
+ * @uiName Value Content
118
+ * @uiGroup convertedReferralProps
119
+ */
19
120
  valuecontent: string;
121
+ /**
122
+ * Color of the pending icon and text
123
+ *
124
+ * @uiName Pending Color
125
+ * @uiGroup pendingReferralProps
126
+ */
20
127
  pendingcolor: string;
128
+ /**
129
+ * Pending content shown in the user column
130
+ *
131
+ * @uiName Pending Content
132
+ * @uiGroup pendingReferralProps
133
+ */
21
134
  pendingcontent: string;
135
+ /**
136
+ * Pending content shown alongside the icon in the referral column
137
+ *
138
+ * @uiName Pending Value
139
+ * @uiGroup pendingReferralProps
140
+ */
22
141
  pendingvalue: string;
142
+ /**
143
+ * Color of the expired icon and text
144
+ *
145
+ * @uiName Expired Color
146
+ * @uiGroup expiredRewardProps
147
+ */
23
148
  expiredcolor: string;
149
+ /**
150
+ * Expired content shown in the user column
151
+ *
152
+ * @uiName Expired Content
153
+ * @uiGroup expiredRewardProps
154
+ */
24
155
  expiredcontent: string;
156
+ /**
157
+ * Expired content shown alongside the icon in the referral column
158
+ *
159
+ * @uiName Expired Value
160
+ * @uiGroup expiredRewardProps
161
+ */
25
162
  expiredvalue: string;
163
+ /**
164
+ * Reward expiry ICU message
165
+ *
166
+ * @uiName Expires Value
167
+ * @uiGroup expiredRewardProps
168
+ */
26
169
  expiresvalue: string;
170
+ /**
171
+ * Color of the cancelled icon and text
172
+ *
173
+ * @uiName Cancelled Color
174
+ * @uiGroup cancelledRewardProps
175
+ */
27
176
  cancelledcolor: string;
177
+ /**
178
+ * Cancelled text content shown in the user column
179
+ *
180
+ * @uiName Cancelled Content
181
+ * @uiGroup cancelledRewardProps
182
+ */
28
183
  cancelledcontent: string;
184
+ /**
185
+ * Cancelled text content shown alongside the icon in the referral column
186
+ *
187
+ * @uiName Cancelled Value
188
+ * @uiGroup cancelledRewardProps
189
+ */
29
190
  cancelledvalue: string;
191
+ /**
192
+ * When true, the local gets set by using the value passed to the referral component
193
+ *
194
+ * @uiName Internationalization
195
+ * @uiGroup internationalizationProps
196
+ */
30
197
  internationalization: boolean;
31
198
  referrals: Referral[];
32
199
  referralsCount: number;
@@ -1,6 +1,24 @@
1
+ /**
2
+ * @uiName Reward Actions
3
+ */
1
4
  export declare class RewardsActions {
5
+ /**
6
+ * Text inside the previous button
7
+ *
8
+ * @uiName Previous Button Text
9
+ */
2
10
  previoustext: string;
11
+ /**
12
+ * Text inside the hide button
13
+ *
14
+ * @uiName Hide Button Text
15
+ */
3
16
  hidetext: string;
17
+ /**
18
+ * Text inside the next button
19
+ *
20
+ * @uiName Next Button Text
21
+ */
4
22
  nexttext: string;
5
23
  render(): any;
6
24
  }
@@ -1,14 +1,72 @@
1
+ /**
2
+ * @uiName Share Button
3
+ */
1
4
  export declare class ShareButton {
5
+ /**
6
+ * Show and hide button depending on what type of device the user is on
7
+ *
8
+ * @uiName Share Button Display Rule
9
+ */
2
10
  displayrule: string;
11
+ /**
12
+ * Text inside the Share button
13
+ *
14
+ * @uiName Share Button Text
15
+ */
3
16
  text: string;
17
+ /**
18
+ * Background color of the Share button
19
+ *
20
+ * @uiName Share Button Background Color
21
+ */
4
22
  backgroundcolor: string;
23
+ /**
24
+ * Color of the text inside the Share button
25
+ *
26
+ * @uiName Share Button Text Color
27
+ */
5
28
  textcolor: string;
29
+ /**
30
+ * Share button icon
31
+ *
32
+ * @uiName Share Button Icon
33
+ */
6
34
  icon: string;
35
+ /**
36
+ * CSS Class name used to style the Share button
37
+ *
38
+ * @uiName Share Button Class Name
39
+ */
7
40
  buttonClassName: string;
41
+ /**
42
+ * Number to horizontally align the Share button icon
43
+ *
44
+ * @uiName Share Button Icon Horizontal
45
+ */
8
46
  iconhorizontal: number;
47
+ /**
48
+ * Number to vertically align the Share button icon
49
+ *
50
+ * @uiName Share Button Icon Vertical
51
+ */
9
52
  iconvertical: number;
53
+ /**
54
+ * Size of the Share button icon
55
+ *
56
+ * @uiName Share Button Icon Size
57
+ */
10
58
  iconsize: number;
59
+ /**
60
+ * Type of the share button
61
+ *
62
+ * @uiName Share Button Type
63
+ */
11
64
  type: string;
65
+ /**
66
+ * URL redirect location
67
+ *
68
+ * @uiName URL
69
+ */
12
70
  url: string;
13
71
  button: HTMLElement;
14
72
  clickHandler(e: any): void;