@saasquatch/mint-components 1.5.5 → 1.5.6-2
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.
- package/dist/cjs/sqm-big-stat_35.cjs.entry.js +135 -69
- package/dist/cjs/sqm-empty_5.cjs.entry.js +2 -2
- package/dist/cjs/sqm-hero.cjs.entry.js +15 -7
- package/dist/cjs/sqm-password-field.cjs.entry.js +5 -2
- package/dist/cjs/sqm-portal-email-verification.cjs.entry.js +4 -4
- package/dist/cjs/sqm-portal-forgot-password.cjs.entry.js +4 -4
- package/dist/cjs/sqm-portal-logout.cjs.entry.js +1 -1
- package/dist/cjs/sqm-portal-profile.cjs.entry.js +18 -8
- package/dist/cjs/sqm-portal-protected-route.cjs.entry.js +1 -1
- package/dist/cjs/sqm-portal-reset-password.cjs.entry.js +12 -10
- package/dist/cjs/sqm-portal-verify-email.cjs.entry.js +2 -2
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +21 -8
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +8 -4
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +7 -79
- package/dist/collection/components/sqm-asset-card/sqm-asset-card.js +2 -2
- package/dist/collection/components/sqm-big-stat/sqm-big-stat.js +13 -8
- package/dist/collection/components/sqm-brand/sqm-brand.js +1 -1
- package/dist/collection/components/sqm-card-feed/sqm-card-feed.js +1 -0
- package/dist/collection/components/sqm-checkbox-field/sqm-checkbox-field.js +11 -10
- package/dist/collection/components/sqm-divided-layout/sqm-divided-layout.js +4 -4
- package/dist/collection/components/sqm-dropdown-field/sqm-dropdown-field.js +5 -5
- package/dist/collection/components/sqm-edit-profile/sqm-edit-profile.js +9 -9
- package/dist/collection/components/sqm-empty/sqm-empty.js +1 -0
- package/dist/collection/components/sqm-form-message/sqm-form-message.js +3 -3
- package/dist/collection/components/sqm-hero/sqm-hero.js +23 -15
- package/dist/collection/components/sqm-hero-image/sqm-hero-image.js +7 -3
- package/dist/collection/components/sqm-hook-story-container/sqm-hook-story-container.js +3 -0
- package/dist/collection/components/sqm-leaderboard/Leaderboard.stories.js +2 -74
- package/dist/collection/components/sqm-leaderboard/sqm-leaderboard.js +10 -8
- package/dist/collection/components/sqm-leaderboard-rank/sqm-leaderboard-rank.js +4 -4
- package/dist/collection/components/sqm-name-fields/sqm-name-fields.js +4 -4
- package/dist/collection/components/sqm-navigation-menu/sqm-navigation-menu.js +3 -3
- package/dist/collection/components/sqm-navigation-sidebar/sqm-navigation-sidebar.js +1 -1
- package/dist/collection/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.js +1 -1
- package/dist/collection/components/sqm-password-field/sqm-password-field.js +9 -6
- package/dist/collection/components/sqm-popup-container/sqm-popup-container.js +11 -11
- package/dist/collection/components/sqm-portal-change-password/sqm-portal-change-password.js +34 -22
- package/dist/collection/components/sqm-portal-container/sqm-portal-container.js +5 -4
- package/dist/collection/components/sqm-portal-email-verification/sqm-portal-email-verification.js +8 -8
- package/dist/collection/components/sqm-portal-forgot-password/sqm-portal-forgot-password.js +8 -8
- package/dist/collection/components/sqm-portal-login/sqm-portal-login.js +42 -26
- package/dist/collection/components/sqm-portal-logout/sqm-portal-logout.js +2 -2
- package/dist/collection/components/sqm-portal-profile/sqm-portal-profile.js +31 -21
- package/dist/collection/components/sqm-portal-protected-route/sqm-portal-protected-route.js +2 -2
- package/dist/collection/components/sqm-portal-register/sqm-portal-register.js +36 -28
- package/dist/collection/components/sqm-portal-reset-password/sqm-portal-reset-password.js +23 -21
- package/dist/collection/components/sqm-portal-verify-email/sqm-portal-verify-email.js +4 -4
- package/dist/collection/components/sqm-program-explainer/sqm-program-explainer.js +1 -0
- package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step.js +2 -0
- package/dist/collection/components/sqm-referral-card/sqm-referral-card.js +2 -0
- package/dist/collection/components/sqm-referral-iframe/sqm-referral-iframe.js +11 -9
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-column.js +1 -0
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-date-column.js +1 -0
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.js +1 -0
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-status-column.js +1 -0
- package/dist/collection/components/sqm-referral-table/columns/sqm-referral-table-user-column.js +11 -6
- package/dist/collection/components/sqm-referral-table/sqm-referral-table.js +23 -14
- package/dist/collection/components/sqm-reward-exchange-list/sqm-reward-exchange-list.js +21 -13
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.js +1 -0
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.js +1 -0
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.js +3 -2
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.js +13 -8
- package/dist/collection/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.js +1 -0
- package/dist/collection/components/sqm-route/sqm-route.js +1 -1
- package/dist/collection/components/sqm-share-button/sqm-share-button.js +25 -15
- package/dist/collection/components/sqm-share-code/sqm-share-code.js +7 -7
- package/dist/collection/components/sqm-share-link/sqm-share-link.js +7 -7
- package/dist/collection/components/sqm-stat-container/sqm-stat-container.js +3 -2
- package/dist/collection/components/sqm-tab/sqm-tab.js +1 -0
- package/dist/collection/components/sqm-task-card/sqm-task-card.js +95 -8
- package/dist/collection/components/sqm-text-span/sqm-text-span.js +1 -1
- package/dist/collection/components/sqm-timeline/sqm-timeline-entry.js +2 -0
- package/dist/collection/components/sqm-timeline/sqm-timeline.js +4 -2
- package/dist/collection/components/sqm-titled-section/sqm-titled-section.js +4 -4
- package/dist/collection/components/sqm-user-name/sqm-user-name.js +6 -5
- package/dist/esm/sqm-big-stat_35.entry.js +135 -69
- package/dist/esm/sqm-empty_5.entry.js +2 -2
- package/dist/esm/sqm-hero.entry.js +15 -7
- package/dist/esm/sqm-password-field.entry.js +5 -2
- package/dist/esm/sqm-portal-email-verification.entry.js +4 -4
- package/dist/esm/sqm-portal-forgot-password.entry.js +4 -4
- package/dist/esm/sqm-portal-logout.entry.js +1 -1
- package/dist/esm/sqm-portal-profile.entry.js +18 -8
- package/dist/esm/sqm-portal-protected-route.entry.js +1 -1
- package/dist/esm/sqm-portal-reset-password.entry.js +12 -10
- package/dist/esm/sqm-portal-verify-email.entry.js +2 -2
- package/dist/esm/sqm-referral-table_11.entry.js +21 -8
- package/dist/esm/sqm-rewards-table_9.entry.js +8 -4
- package/dist/esm/sqm-stencilbook.entry.js +7 -79
- package/dist/esm-es5/sqm-big-stat_35.entry.js +1 -1
- package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
- package/dist/mint-components/mint-components.esm.js +1 -1
- package/dist/mint-components/{p-951e7817.system.entry.js → p-25ac7c14.system.entry.js} +1 -1
- package/dist/mint-components/p-5bef951d.system.entry.js +1 -0
- package/dist/mint-components/p-94096609.system.js +1 -1
- package/dist/mint-components/{p-87ffb558.entry.js → p-c7b0f076.entry.js} +2 -2
- package/dist/types/components/sqm-asset-card/sqm-asset-card.d.ts +2 -2
- package/dist/types/components/sqm-big-stat/sqm-big-stat.d.ts +12 -5
- package/dist/types/components/sqm-brand/sqm-brand.d.ts +1 -1
- package/dist/types/components/sqm-card-feed/sqm-card-feed.d.ts +1 -0
- package/dist/types/components/sqm-checkbox-field/sqm-checkbox-field.d.ts +6 -5
- package/dist/types/components/sqm-divided-layout/sqm-divided-layout.d.ts +2 -2
- package/dist/types/components/sqm-dropdown-field/sqm-dropdown-field.d.ts +3 -3
- package/dist/types/components/sqm-edit-profile/sqm-edit-profile.d.ts +10 -7
- package/dist/types/components/sqm-empty/sqm-empty.d.ts +1 -0
- package/dist/types/components/sqm-form-message/sqm-form-message.d.ts +8 -2
- package/dist/types/components/sqm-hero/sqm-hero.d.ts +20 -8
- package/dist/types/components/sqm-hero-image/sqm-hero-image.d.ts +5 -1
- package/dist/types/components/sqm-hook-story-container/sqm-hook-story-container.d.ts +3 -0
- package/dist/types/components/sqm-leaderboard/sqm-leaderboard.d.ts +7 -7
- package/dist/types/components/sqm-leaderboard-rank/sqm-leaderboard-rank.d.ts +4 -4
- package/dist/types/components/sqm-name-fields/sqm-name-fields.d.ts +2 -2
- package/dist/types/components/sqm-navigation-menu/sqm-navigation-menu.d.ts +4 -2
- package/dist/types/components/sqm-navigation-sidebar/sqm-navigation-sidebar.d.ts +1 -1
- package/dist/types/components/sqm-navigation-sidebar-item/sqm-navigation-sidebar-item.d.ts +1 -1
- package/dist/types/components/sqm-password-field/sqm-password-field.d.ts +5 -2
- package/dist/types/components/sqm-popup-container/sqm-popup-container.d.ts +21 -6
- package/dist/types/components/sqm-portal-change-password/sqm-portal-change-password.d.ts +20 -8
- package/dist/types/components/sqm-portal-container/sqm-portal-container.d.ts +6 -3
- package/dist/types/components/sqm-portal-email-verification/sqm-portal-email-verification.d.ts +4 -4
- package/dist/types/components/sqm-portal-forgot-password/sqm-portal-forgot-password.d.ts +4 -4
- package/dist/types/components/sqm-portal-login/sqm-portal-login.d.ts +25 -9
- package/dist/types/components/sqm-portal-logout/sqm-portal-logout.d.ts +1 -1
- package/dist/types/components/sqm-portal-profile/sqm-portal-profile.d.ts +18 -8
- package/dist/types/components/sqm-portal-protected-route/sqm-portal-protected-route.d.ts +1 -1
- package/dist/types/components/sqm-portal-register/sqm-portal-register.d.ts +20 -12
- package/dist/types/components/sqm-portal-reset-password/sqm-portal-reset-password.d.ts +12 -10
- package/dist/types/components/sqm-portal-verify-email/sqm-portal-verify-email.d.ts +2 -2
- package/dist/types/components/sqm-program-explainer/sqm-program-explainer.d.ts +1 -0
- package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step.d.ts +2 -0
- package/dist/types/components/sqm-referral-card/sqm-referral-card.d.ts +2 -0
- package/dist/types/components/sqm-referral-iframe/sqm-referral-iframe.d.ts +7 -4
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-column.d.ts +1 -0
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-date-column.d.ts +1 -0
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-rewards-column.d.ts +1 -0
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-status-column.d.ts +1 -0
- package/dist/types/components/sqm-referral-table/columns/sqm-referral-table-user-column.d.ts +7 -2
- package/dist/types/components/sqm-referral-table/sqm-referral-table.d.ts +15 -6
- package/dist/types/components/sqm-reward-exchange-list/sqm-reward-exchange-list.d.ts +17 -9
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-date-column.d.ts +1 -0
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-note-column.d.ts +1 -0
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-reward-column.d.ts +2 -1
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-source-column.d.ts +8 -3
- package/dist/types/components/sqm-rewards-table/columns/sqm-rewards-table-status-column.d.ts +1 -0
- package/dist/types/components/sqm-route/sqm-route.d.ts +1 -1
- package/dist/types/components/sqm-share-button/sqm-share-button.d.ts +24 -9
- package/dist/types/components/sqm-share-code/sqm-share-code.d.ts +3 -2
- package/dist/types/components/sqm-share-link/sqm-share-link.d.ts +3 -2
- package/dist/types/components/sqm-stat-container/sqm-stat-container.d.ts +2 -1
- package/dist/types/components/sqm-tab/sqm-tab.d.ts +1 -0
- package/dist/types/components/sqm-task-card/sqm-task-card.d.ts +34 -8
- package/dist/types/components/sqm-text-span/sqm-text-span.d.ts +1 -1
- package/dist/types/components/sqm-timeline/sqm-timeline-entry.d.ts +2 -0
- package/dist/types/components/sqm-timeline/sqm-timeline.d.ts +4 -2
- package/dist/types/components/sqm-titled-section/sqm-titled-section.d.ts +2 -2
- package/dist/types/components/sqm-user-name/sqm-user-name.d.ts +3 -2
- package/dist/types/components.d.ts +478 -318
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -0
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +8 -3
- package/dist/mint-components/p-64cc1a70.system.entry.js +0 -1
|
@@ -13,20 +13,21 @@ export class CheckboxField {
|
|
|
13
13
|
constructor() {
|
|
14
14
|
this.ignored = true;
|
|
15
15
|
/**
|
|
16
|
-
* @uiName Checkbox
|
|
16
|
+
* @uiName Checkbox Label
|
|
17
17
|
*/
|
|
18
18
|
this.checkboxLabel = "By signing up you agree to the {labelLink}";
|
|
19
19
|
/**
|
|
20
|
-
* @uiName Checkbox label link
|
|
21
20
|
* Used with link text if the checkbox label contains {labelLink}
|
|
21
|
+
*
|
|
22
|
+
* @uiName Checkbox Label Link
|
|
22
23
|
*/
|
|
23
24
|
this.checkboxLabelLink = "https://example.com";
|
|
24
25
|
/**
|
|
25
|
-
* @uiName Checkbox
|
|
26
|
+
* @uiName Checkbox Label Link Text
|
|
26
27
|
*/
|
|
27
28
|
this.checkboxLabelLinkText = "Terms and Conditions";
|
|
28
29
|
/**
|
|
29
|
-
* @uiName Unchecked
|
|
30
|
+
* @uiName Unchecked Error Message
|
|
30
31
|
*/
|
|
31
32
|
this.errorMessage = "Must be checked";
|
|
32
33
|
/**
|
|
@@ -68,7 +69,7 @@ export class CheckboxField {
|
|
|
68
69
|
"optional": false,
|
|
69
70
|
"docs": {
|
|
70
71
|
"tags": [{
|
|
71
|
-
"text": "Checkbox
|
|
72
|
+
"text": "Checkbox Name Attribute",
|
|
72
73
|
"name": "uiName"
|
|
73
74
|
}],
|
|
74
75
|
"text": ""
|
|
@@ -88,7 +89,7 @@ export class CheckboxField {
|
|
|
88
89
|
"optional": false,
|
|
89
90
|
"docs": {
|
|
90
91
|
"tags": [{
|
|
91
|
-
"text": "Checkbox
|
|
92
|
+
"text": "Checkbox Label",
|
|
92
93
|
"name": "uiName"
|
|
93
94
|
}],
|
|
94
95
|
"text": ""
|
|
@@ -109,10 +110,10 @@ export class CheckboxField {
|
|
|
109
110
|
"optional": false,
|
|
110
111
|
"docs": {
|
|
111
112
|
"tags": [{
|
|
112
|
-
"text": "Checkbox
|
|
113
|
+
"text": "Checkbox Label Link",
|
|
113
114
|
"name": "uiName"
|
|
114
115
|
}],
|
|
115
|
-
"text": ""
|
|
116
|
+
"text": "Used with link text if the checkbox label contains {labelLink}"
|
|
116
117
|
},
|
|
117
118
|
"attribute": "checkbox-label-link",
|
|
118
119
|
"reflect": false,
|
|
@@ -130,7 +131,7 @@ export class CheckboxField {
|
|
|
130
131
|
"optional": false,
|
|
131
132
|
"docs": {
|
|
132
133
|
"tags": [{
|
|
133
|
-
"text": "Checkbox
|
|
134
|
+
"text": "Checkbox Label Link Text",
|
|
134
135
|
"name": "uiName"
|
|
135
136
|
}],
|
|
136
137
|
"text": ""
|
|
@@ -151,7 +152,7 @@ export class CheckboxField {
|
|
|
151
152
|
"optional": false,
|
|
152
153
|
"docs": {
|
|
153
154
|
"tags": [{
|
|
154
|
-
"text": "Unchecked
|
|
155
|
+
"text": "Unchecked Error Message",
|
|
155
156
|
"name": "uiName"
|
|
156
157
|
}],
|
|
157
158
|
"text": ""
|
|
@@ -11,8 +11,8 @@ import { getProps } from "../../utils/utils";
|
|
|
11
11
|
export class DividedLayout {
|
|
12
12
|
constructor() {
|
|
13
13
|
/**
|
|
14
|
-
* Uses CSS border
|
|
15
|
-
* @uiName Border
|
|
14
|
+
* Uses Shorthand CSS border syntax
|
|
15
|
+
* @uiName Border Style
|
|
16
16
|
*/
|
|
17
17
|
this.dividerStyle = "1px solid #EAEAEA";
|
|
18
18
|
withHooks(this);
|
|
@@ -66,10 +66,10 @@ export class DividedLayout {
|
|
|
66
66
|
"optional": false,
|
|
67
67
|
"docs": {
|
|
68
68
|
"tags": [{
|
|
69
|
-
"text": "Border
|
|
69
|
+
"text": "Border Style",
|
|
70
70
|
"name": "uiName"
|
|
71
71
|
}],
|
|
72
|
-
"text": "Uses CSS border
|
|
72
|
+
"text": "Uses Shorthand CSS border syntax"
|
|
73
73
|
},
|
|
74
74
|
"attribute": "divider-style",
|
|
75
75
|
"reflect": false,
|
|
@@ -13,11 +13,11 @@ export class DropdownField {
|
|
|
13
13
|
constructor() {
|
|
14
14
|
this.ignored = true;
|
|
15
15
|
/**
|
|
16
|
-
* @uiName Dropdown
|
|
16
|
+
* @uiName Dropdown Label
|
|
17
17
|
*/
|
|
18
18
|
this.dropdownLabel = "Select an option";
|
|
19
19
|
/**
|
|
20
|
-
* @uiName Unselected
|
|
20
|
+
* @uiName Unselected Error Message
|
|
21
21
|
*/
|
|
22
22
|
this.errorMessage = "Select an option";
|
|
23
23
|
/**
|
|
@@ -61,7 +61,7 @@ export class DropdownField {
|
|
|
61
61
|
"optional": false,
|
|
62
62
|
"docs": {
|
|
63
63
|
"tags": [{
|
|
64
|
-
"text": "Dropdown
|
|
64
|
+
"text": "Dropdown Name Attribute",
|
|
65
65
|
"name": "uiName"
|
|
66
66
|
}],
|
|
67
67
|
"text": ""
|
|
@@ -81,7 +81,7 @@ export class DropdownField {
|
|
|
81
81
|
"optional": false,
|
|
82
82
|
"docs": {
|
|
83
83
|
"tags": [{
|
|
84
|
-
"text": "Dropdown
|
|
84
|
+
"text": "Dropdown Label",
|
|
85
85
|
"name": "uiName"
|
|
86
86
|
}],
|
|
87
87
|
"text": ""
|
|
@@ -102,7 +102,7 @@ export class DropdownField {
|
|
|
102
102
|
"optional": false,
|
|
103
103
|
"docs": {
|
|
104
104
|
"tags": [{
|
|
105
|
-
"text": "Unselected
|
|
105
|
+
"text": "Unselected Error Message",
|
|
106
106
|
"name": "uiName"
|
|
107
107
|
}],
|
|
108
108
|
"text": ""
|
|
@@ -61,10 +61,10 @@ export class EditProfile {
|
|
|
61
61
|
"optional": false,
|
|
62
62
|
"docs": {
|
|
63
63
|
"tags": [{
|
|
64
|
-
"text": "
|
|
64
|
+
"text": "Edit Profile Text",
|
|
65
65
|
"name": "uiName"
|
|
66
66
|
}],
|
|
67
|
-
"text": ""
|
|
67
|
+
"text": "Enable editing button text"
|
|
68
68
|
},
|
|
69
69
|
"attribute": "editprofiletext",
|
|
70
70
|
"reflect": false
|
|
@@ -81,7 +81,7 @@ export class EditProfile {
|
|
|
81
81
|
"optional": false,
|
|
82
82
|
"docs": {
|
|
83
83
|
"tags": [{
|
|
84
|
-
"text": "Cancel
|
|
84
|
+
"text": "Cancel Button Text",
|
|
85
85
|
"name": "uiName"
|
|
86
86
|
}],
|
|
87
87
|
"text": ""
|
|
@@ -101,7 +101,7 @@ export class EditProfile {
|
|
|
101
101
|
"optional": false,
|
|
102
102
|
"docs": {
|
|
103
103
|
"tags": [{
|
|
104
|
-
"text": "
|
|
104
|
+
"text": "Info Button Text",
|
|
105
105
|
"name": "uiName"
|
|
106
106
|
}],
|
|
107
107
|
"text": ""
|
|
@@ -121,7 +121,7 @@ export class EditProfile {
|
|
|
121
121
|
"optional": false,
|
|
122
122
|
"docs": {
|
|
123
123
|
"tags": [{
|
|
124
|
-
"text": "First
|
|
124
|
+
"text": "First Name Label",
|
|
125
125
|
"name": "uiName"
|
|
126
126
|
}],
|
|
127
127
|
"text": ""
|
|
@@ -141,7 +141,7 @@ export class EditProfile {
|
|
|
141
141
|
"optional": false,
|
|
142
142
|
"docs": {
|
|
143
143
|
"tags": [{
|
|
144
|
-
"text": "Last
|
|
144
|
+
"text": "Last Name Label",
|
|
145
145
|
"name": "uiName"
|
|
146
146
|
}],
|
|
147
147
|
"text": ""
|
|
@@ -161,7 +161,7 @@ export class EditProfile {
|
|
|
161
161
|
"optional": false,
|
|
162
162
|
"docs": {
|
|
163
163
|
"tags": [{
|
|
164
|
-
"text": "Region
|
|
164
|
+
"text": "Region Field Label",
|
|
165
165
|
"name": "uiName"
|
|
166
166
|
}],
|
|
167
167
|
"text": ""
|
|
@@ -181,10 +181,10 @@ export class EditProfile {
|
|
|
181
181
|
"optional": false,
|
|
182
182
|
"docs": {
|
|
183
183
|
"tags": [{
|
|
184
|
-
"text": "Show
|
|
184
|
+
"text": "Show Region",
|
|
185
185
|
"name": "uiName"
|
|
186
186
|
}],
|
|
187
|
-
"text": ""
|
|
187
|
+
"text": "Show or hide current region"
|
|
188
188
|
},
|
|
189
189
|
"attribute": "showregion",
|
|
190
190
|
"reflect": false
|
|
@@ -2,6 +2,7 @@ import { Component, h, Host, Prop } from "@stencil/core";
|
|
|
2
2
|
import { EmptyStateView } from "./sqm-empty-view";
|
|
3
3
|
/**
|
|
4
4
|
* @uiName Empty State Content
|
|
5
|
+
* @validParents ["sqm-referral-table","sqm-rewards-table","sqm-leaderboard", "sqm-reward-exchange-list"]
|
|
5
6
|
*/
|
|
6
7
|
export class HeroImage {
|
|
7
8
|
render() {
|
|
@@ -47,7 +47,7 @@ export class FormMessage {
|
|
|
47
47
|
"optional": false,
|
|
48
48
|
"docs": {
|
|
49
49
|
"tags": [{
|
|
50
|
-
"text": "Type
|
|
50
|
+
"text": "Alert Type",
|
|
51
51
|
"name": "uiName"
|
|
52
52
|
}],
|
|
53
53
|
"text": ""
|
|
@@ -67,10 +67,10 @@ export class FormMessage {
|
|
|
67
67
|
"optional": true,
|
|
68
68
|
"docs": {
|
|
69
69
|
"tags": [{
|
|
70
|
-
"text": "Icon
|
|
70
|
+
"text": "Icon",
|
|
71
71
|
"name": "uiName"
|
|
72
72
|
}],
|
|
73
|
-
"text": ""
|
|
73
|
+
"text": "Icon to use in alert"
|
|
74
74
|
},
|
|
75
75
|
"attribute": "icon",
|
|
76
76
|
"reflect": false
|
|
@@ -9,17 +9,25 @@ import { getProps } from "../../utils/utils";
|
|
|
9
9
|
*/
|
|
10
10
|
export class Hero {
|
|
11
11
|
constructor() {
|
|
12
|
-
/**
|
|
12
|
+
/**
|
|
13
|
+
* Number of columns in the layout
|
|
14
|
+
*
|
|
15
|
+
* @uiName Columns
|
|
16
|
+
*/
|
|
13
17
|
this.columns = 1;
|
|
14
18
|
/**
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
+
* Can be an image url, colour or Shoelace variable.
|
|
20
|
+
*
|
|
21
|
+
* @uiName Background
|
|
22
|
+
*/
|
|
19
23
|
this.background = "var(--sl-color-gray-50)";
|
|
20
|
-
/** @uiName Padding
|
|
24
|
+
/** @uiName Padding Size */
|
|
21
25
|
this.paddingSize = "large";
|
|
22
|
-
/**
|
|
26
|
+
/**
|
|
27
|
+
* Flexbox wrap direction, accepts wrap or wrap-reverse
|
|
28
|
+
*
|
|
29
|
+
* @uiName Wrap Direction
|
|
30
|
+
*/
|
|
23
31
|
this.wrapDirection = "wrap";
|
|
24
32
|
withHooks(this);
|
|
25
33
|
}
|
|
@@ -49,10 +57,10 @@ export class Hero {
|
|
|
49
57
|
"optional": false,
|
|
50
58
|
"docs": {
|
|
51
59
|
"tags": [{
|
|
52
|
-
"text": "
|
|
60
|
+
"text": "Columns",
|
|
53
61
|
"name": "uiName"
|
|
54
62
|
}],
|
|
55
|
-
"text": ""
|
|
63
|
+
"text": "Number of columns in the layout"
|
|
56
64
|
},
|
|
57
65
|
"attribute": "columns",
|
|
58
66
|
"reflect": false,
|
|
@@ -73,7 +81,7 @@ export class Hero {
|
|
|
73
81
|
"text": "Background",
|
|
74
82
|
"name": "uiName"
|
|
75
83
|
}],
|
|
76
|
-
"text": "Can
|
|
84
|
+
"text": "Can be an image url, colour or Shoelace variable."
|
|
77
85
|
},
|
|
78
86
|
"attribute": "background",
|
|
79
87
|
"reflect": false,
|
|
@@ -91,7 +99,7 @@ export class Hero {
|
|
|
91
99
|
"optional": false,
|
|
92
100
|
"docs": {
|
|
93
101
|
"tags": [{
|
|
94
|
-
"text": "Padding
|
|
102
|
+
"text": "Padding Size",
|
|
95
103
|
"name": "uiName"
|
|
96
104
|
}],
|
|
97
105
|
"text": ""
|
|
@@ -112,10 +120,10 @@ export class Hero {
|
|
|
112
120
|
"optional": true,
|
|
113
121
|
"docs": {
|
|
114
122
|
"tags": [{
|
|
115
|
-
"text": "Secondary
|
|
123
|
+
"text": "Secondary Background",
|
|
116
124
|
"name": "uiName"
|
|
117
125
|
}],
|
|
118
|
-
"text": ""
|
|
126
|
+
"text": "Secondary background image or color (for use in the right column)"
|
|
119
127
|
},
|
|
120
128
|
"attribute": "secondary-background",
|
|
121
129
|
"reflect": false
|
|
@@ -132,10 +140,10 @@ export class Hero {
|
|
|
132
140
|
"optional": false,
|
|
133
141
|
"docs": {
|
|
134
142
|
"tags": [{
|
|
135
|
-
"text": "Wrap
|
|
143
|
+
"text": "Wrap Direction",
|
|
136
144
|
"name": "uiName"
|
|
137
145
|
}],
|
|
138
|
-
"text": ""
|
|
146
|
+
"text": "Flexbox wrap direction, accepts wrap or wrap-reverse"
|
|
139
147
|
},
|
|
140
148
|
"attribute": "wrap-direction",
|
|
141
149
|
"reflect": false,
|
|
@@ -4,6 +4,8 @@ import { getProps } from "../../utils/utils";
|
|
|
4
4
|
import { HeroImageView } from "./sqm-hero-image-view";
|
|
5
5
|
/**
|
|
6
6
|
* @uiName Hero Image
|
|
7
|
+
* @example Two Column Layout - <sqm-hero-image image-url="https://res.cloudinary.com/saasquatch/image/upload/v1644000275/squatch-assets/yr6ER3R.png" header="MyCompany Rewards" description="Refer a friend and earn up to $1200 in rewards" layout="columns" image-pos="right" background-color="#F9F9F9"></sqm-hero-image>
|
|
8
|
+
* @example Overlay - <sqm-hero-image image-url="https://res.cloudinary.com/saasquatch/image/upload/v1644000275/squatch-assets/yr6ER3R.png" header="MyCompany Rewards" description="Refer a friend and earn up to $1200 in rewards" layout="overlay" image-pos="center" background-color="#F9F9F9" button-link="https://www.example.com" button-new-tab button-text="Earn!" image-percentage="45" overlay-opacity=".5" padding-image="small" padding-text="xxxx-large"></sqm-hero-image>
|
|
7
9
|
*/
|
|
8
10
|
export class HeroImage {
|
|
9
11
|
constructor() {
|
|
@@ -38,7 +40,9 @@ export class HeroImage {
|
|
|
38
40
|
*/
|
|
39
41
|
this.imageMobilePos = "top";
|
|
40
42
|
/**
|
|
41
|
-
*
|
|
43
|
+
* CTA Button Opens Link in New Tab
|
|
44
|
+
*
|
|
45
|
+
* @uiName Button New Tab
|
|
42
46
|
*/
|
|
43
47
|
this.buttonNewTab = false;
|
|
44
48
|
/**
|
|
@@ -384,10 +388,10 @@ export class HeroImage {
|
|
|
384
388
|
"optional": true,
|
|
385
389
|
"docs": {
|
|
386
390
|
"tags": [{
|
|
387
|
-
"text": "
|
|
391
|
+
"text": "Button New Tab",
|
|
388
392
|
"name": "uiName"
|
|
389
393
|
}],
|
|
390
|
-
"text": ""
|
|
394
|
+
"text": "CTA Button Opens Link in New Tab"
|
|
391
395
|
},
|
|
392
396
|
"attribute": "button-new-tab",
|
|
393
397
|
"reflect": false,
|
|
@@ -79,78 +79,6 @@ const users = [
|
|
|
79
79
|
rowNumber: 10,
|
|
80
80
|
},
|
|
81
81
|
];
|
|
82
|
-
const pointsUsers = [
|
|
83
|
-
{
|
|
84
|
-
firstName: "",
|
|
85
|
-
lastInitial: "",
|
|
86
|
-
textValue: "82 Points",
|
|
87
|
-
rank: 1,
|
|
88
|
-
rowNumber: 1,
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
firstName: "MF",
|
|
92
|
-
lastInitial: "D",
|
|
93
|
-
textValue: "73 Points",
|
|
94
|
-
rank: 2,
|
|
95
|
-
rowNumber: 2,
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
firstName: "Freddie",
|
|
99
|
-
lastInitial: "G",
|
|
100
|
-
textValue: "64 Points",
|
|
101
|
-
rank: 3,
|
|
102
|
-
rowNumber: 3,
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
firstName: "Benny",
|
|
106
|
-
lastInitial: "B",
|
|
107
|
-
textValue: "55 Points",
|
|
108
|
-
rank: 4,
|
|
109
|
-
rowNumber: 4,
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
firstName: "Mos",
|
|
113
|
-
lastInitial: "D",
|
|
114
|
-
textValue: "46 Points",
|
|
115
|
-
rank: 5,
|
|
116
|
-
rowNumber: 5,
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
firstName: "Joe",
|
|
120
|
-
lastInitial: "S",
|
|
121
|
-
textValue: "42 Points",
|
|
122
|
-
rank: 6,
|
|
123
|
-
rowNumber: 6,
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
firstName: "Zach",
|
|
127
|
-
lastInitial: "H",
|
|
128
|
-
textValue: "41 Points",
|
|
129
|
-
rank: 7,
|
|
130
|
-
rowNumber: 7,
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
firstName: "Sarah",
|
|
134
|
-
lastInitial: "S",
|
|
135
|
-
textValue: "39 Points",
|
|
136
|
-
rank: 8,
|
|
137
|
-
rowNumber: 8,
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
firstName: "James",
|
|
141
|
-
lastInitial: "",
|
|
142
|
-
textValue: "33 Points",
|
|
143
|
-
rank: 9,
|
|
144
|
-
rowNumber: 9,
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
firstName: "",
|
|
148
|
-
lastInitial: "J",
|
|
149
|
-
textValue: "29 Points",
|
|
150
|
-
rank: 10,
|
|
151
|
-
rowNumber: 10,
|
|
152
|
-
},
|
|
153
|
-
];
|
|
154
82
|
const defaultStyles = {
|
|
155
83
|
usersheading: "User",
|
|
156
84
|
statsheading: "Referrals",
|
|
@@ -357,12 +285,12 @@ export const PointsLeaderboard = () => {
|
|
|
357
285
|
},
|
|
358
286
|
data: {
|
|
359
287
|
rankType: "rowNumber",
|
|
360
|
-
leaderboard:
|
|
288
|
+
leaderboard: users,
|
|
361
289
|
rowNumber: 10,
|
|
362
290
|
viewerRank: {
|
|
363
291
|
firstName: "Viktor",
|
|
364
292
|
lastInitial: "V",
|
|
365
|
-
textValue: "82
|
|
293
|
+
textValue: "82",
|
|
366
294
|
rank: 1,
|
|
367
295
|
rowNumber: 1,
|
|
368
296
|
},
|
|
@@ -7,6 +7,9 @@ import { LeaderboardView } from "./sqm-leaderboard-view";
|
|
|
7
7
|
import { useLeaderboard } from "./useLeaderboard";
|
|
8
8
|
/**
|
|
9
9
|
* @uiName Leaderboard
|
|
10
|
+
* @example Referral Converted Leaderboard - <sqm-leaderboard usersheading="Referrer" statsheading="Referrals" rankheading="Rank" rank-type="rowNumber" leaderboard-type="topConvertedReferrers" show-rank anonymous-user="Anonymous User"> <sqm-empty empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644000223/squatch-assets/empty_leaderboard2.png" empty-state-header="View your rank in the leaderboard" empty-state-text="Be the first to refer a friend and reach the top of the leaderboard" > </sqm-empty></sqm-leaderboard>
|
|
11
|
+
* @example Referral Started Leaderboard - <sqm-leaderboard usersheading="Referrer" statsheading="Referrals" rankheading="Rank" rank-type="rowNumber" leaderboard-type="topStartedReferrers" show-rank anonymous-user="Anonymous User"> <sqm-empty empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644000223/squatch-assets/empty_leaderboard2.png" empty-state-header="View your rank in the leaderboard" empty-state-text="Be the first to refer a friend and reach the top of the leaderboard" > </sqm-empty></sqm-leaderboard>
|
|
12
|
+
* @example Point Earners Leaderboard - <sqm-leaderboard usersheading="Users" statsheading="Points Earned" rankheading="Rank" rank-type="rowNumber" leaderboard-type="topPointEarners" show-rank anonymous-user="Anonymous User"> <sqm-empty empty-state-image="https://res.cloudinary.com/saasquatch/image/upload/v1644000223/squatch-assets/empty_leaderboard2.png" empty-state-header="View your rank in the leaderboard" empty-state-text="Be the first to earn points and reach the top of the leaderboard" ></sqm-empty></sqm-leaderboard>
|
|
10
13
|
*/
|
|
11
14
|
export class Leaderboard {
|
|
12
15
|
constructor() {
|
|
@@ -17,9 +20,8 @@ export class Leaderboard {
|
|
|
17
20
|
*/
|
|
18
21
|
this.hideViewer = false;
|
|
19
22
|
/**
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
* @uiName Anonymous User Name
|
|
23
|
+
* Title displayed for users without names
|
|
24
|
+
* @uiName Unknown User Text
|
|
23
25
|
*/
|
|
24
26
|
this.anonymousUser = "Anonymous User";
|
|
25
27
|
/**
|
|
@@ -150,7 +152,7 @@ export class Leaderboard {
|
|
|
150
152
|
"optional": false,
|
|
151
153
|
"docs": {
|
|
152
154
|
"tags": [{
|
|
153
|
-
"text": "Show Rank
|
|
155
|
+
"text": "Show Leaderboard Rank",
|
|
154
156
|
"name": "uiName"
|
|
155
157
|
}],
|
|
156
158
|
"text": ""
|
|
@@ -249,10 +251,10 @@ export class Leaderboard {
|
|
|
249
251
|
"optional": false,
|
|
250
252
|
"docs": {
|
|
251
253
|
"tags": [{
|
|
252
|
-
"text": "
|
|
254
|
+
"text": "Unknown User Text",
|
|
253
255
|
"name": "uiName"
|
|
254
256
|
}],
|
|
255
|
-
"text": "
|
|
257
|
+
"text": "Title displayed for users without names"
|
|
256
258
|
},
|
|
257
259
|
"attribute": "anonymous-user",
|
|
258
260
|
"reflect": false,
|
|
@@ -277,9 +279,9 @@ export class Leaderboard {
|
|
|
277
279
|
"name": "uiWidget"
|
|
278
280
|
}, {
|
|
279
281
|
"text": "{\"allowPastDates\":true, \"months\": 1}",
|
|
280
|
-
"name": "
|
|
282
|
+
"name": "uiWidgetOptions"
|
|
281
283
|
}],
|
|
282
|
-
"text": "
|
|
284
|
+
"text": ""
|
|
283
285
|
},
|
|
284
286
|
"attribute": "interval",
|
|
285
287
|
"reflect": false
|
|
@@ -44,7 +44,7 @@ export class LeaderboardRank {
|
|
|
44
44
|
"optional": false,
|
|
45
45
|
"docs": {
|
|
46
46
|
"tags": [{
|
|
47
|
-
"text": "Default
|
|
47
|
+
"text": "Default Rank",
|
|
48
48
|
"name": "uiName"
|
|
49
49
|
}, {
|
|
50
50
|
"text": "string",
|
|
@@ -94,7 +94,7 @@ export class LeaderboardRank {
|
|
|
94
94
|
"optional": false,
|
|
95
95
|
"docs": {
|
|
96
96
|
"tags": [{
|
|
97
|
-
"text": "Leaderboard
|
|
97
|
+
"text": "Leaderboard Type",
|
|
98
98
|
"name": "uiName"
|
|
99
99
|
}, {
|
|
100
100
|
"text": "string",
|
|
@@ -143,14 +143,14 @@ export class LeaderboardRank {
|
|
|
143
143
|
"optional": false,
|
|
144
144
|
"docs": {
|
|
145
145
|
"tags": [{
|
|
146
|
-
"text": "Leaderboard
|
|
146
|
+
"text": "Leaderboard Time Interval",
|
|
147
147
|
"name": "uiName"
|
|
148
148
|
}, {
|
|
149
149
|
"text": "DateRange",
|
|
150
150
|
"name": "uiWidget"
|
|
151
151
|
}, {
|
|
152
152
|
"text": "{\"allowPastDates\":true, \"months\": 1}",
|
|
153
|
-
"name": "
|
|
153
|
+
"name": "uiWidgetOptions"
|
|
154
154
|
}],
|
|
155
155
|
"text": ""
|
|
156
156
|
},
|
|
@@ -11,11 +11,11 @@ export class NameFields {
|
|
|
11
11
|
constructor() {
|
|
12
12
|
this.ignored = true;
|
|
13
13
|
/**
|
|
14
|
-
* @uiName First
|
|
14
|
+
* @uiName First Name label
|
|
15
15
|
*/
|
|
16
16
|
this.firstNameLabel = "First Name";
|
|
17
17
|
/**
|
|
18
|
-
* @uiName Last
|
|
18
|
+
* @uiName Last Name label
|
|
19
19
|
*/
|
|
20
20
|
this.lastNameLabel = "Last Name";
|
|
21
21
|
withHooks(this);
|
|
@@ -39,7 +39,7 @@ export class NameFields {
|
|
|
39
39
|
"optional": false,
|
|
40
40
|
"docs": {
|
|
41
41
|
"tags": [{
|
|
42
|
-
"text": "First
|
|
42
|
+
"text": "First Name label",
|
|
43
43
|
"name": "uiName"
|
|
44
44
|
}],
|
|
45
45
|
"text": ""
|
|
@@ -60,7 +60,7 @@ export class NameFields {
|
|
|
60
60
|
"optional": false,
|
|
61
61
|
"docs": {
|
|
62
62
|
"tags": [{
|
|
63
|
-
"text": "Last
|
|
63
|
+
"text": "Last Name label",
|
|
64
64
|
"name": "uiName"
|
|
65
65
|
}],
|
|
66
66
|
"text": ""
|
|
@@ -42,7 +42,7 @@ export class NavigationMenu {
|
|
|
42
42
|
"optional": false,
|
|
43
43
|
"docs": {
|
|
44
44
|
"tags": [{
|
|
45
|
-
"text": "Include
|
|
45
|
+
"text": "Include Dropdown Menu",
|
|
46
46
|
"name": "uiName"
|
|
47
47
|
}],
|
|
48
48
|
"text": ""
|
|
@@ -62,10 +62,10 @@ export class NavigationMenu {
|
|
|
62
62
|
"optional": false,
|
|
63
63
|
"docs": {
|
|
64
64
|
"tags": [{
|
|
65
|
-
"text": "Label
|
|
65
|
+
"text": "Menu Label",
|
|
66
66
|
"name": "uiName"
|
|
67
67
|
}],
|
|
68
|
-
"text": ""
|
|
68
|
+
"text": "Label on the header menu"
|
|
69
69
|
},
|
|
70
70
|
"attribute": "menu-label",
|
|
71
71
|
"reflect": false
|
|
@@ -2,7 +2,7 @@ import { withHooks } from "@saasquatch/stencil-hooks";
|
|
|
2
2
|
import { Component, h, State } from "@stencil/core";
|
|
3
3
|
import { NavigationSidebarView } from "./sqm-navigation-sidebar-view";
|
|
4
4
|
/**
|
|
5
|
-
* A
|
|
5
|
+
* A container for navigation menu items
|
|
6
6
|
*
|
|
7
7
|
* @uiName Navigation Sidebar
|
|
8
8
|
*/
|