@saasquatch/mint-components 1.14.3-6 → 1.14.3
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/loader.cjs.js +1 -1
- package/dist/cjs/mint-components.cjs.js +1 -1
- package/dist/cjs/{mockRewardData-272e22d6.js → mockRewardData-7815f10f.js} +1 -1
- package/dist/cjs/sqm-banking-info-form_17.cjs.entry.js +5 -158
- package/dist/cjs/{sqm-invoice-table-view-0f7fa309.js → sqm-invoice-table-view-16ac73d0.js} +0 -17
- package/dist/cjs/sqm-referral-table_11.cjs.entry.js +3 -3
- package/dist/cjs/sqm-rewards-table_9.cjs.entry.js +2 -2
- package/dist/cjs/sqm-stencilbook.cjs.entry.js +895 -511
- package/dist/collection/components/sqm-referral-table/cells/sqm-referral-table-rewards-cell.js +1 -1
- package/dist/collection/components/sqm-referral-table/mockReferralData.js +1 -1
- package/dist/collection/components/sqm-rewards-table/RewardsTableCell.stories.js +2 -2
- package/dist/collection/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.js +1 -1
- package/dist/collection/components/sqm-rewards-table/mockRewardData.js +1 -1
- package/dist/collection/components/tax-and-cash/BankingForm.stories.js +0 -12
- package/dist/collection/components/tax-and-cash/TaxForm.stories.js +0 -16
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/formDefinitions.js +1 -1
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.js +1 -36
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +3 -106
- package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +0 -7
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.js +0 -38
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.js +1 -79
- package/dist/collection/components/tax-and-cash/sqm-docusign-form/useDocusignForm.js +0 -4
- package/dist/collection/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.js +2 -205
- package/dist/esm/loader.js +1 -1
- package/dist/esm/mint-components.js +1 -1
- package/dist/esm/{mockRewardData-8bd1b356.js → mockRewardData-a3cdb832.js} +1 -1
- package/dist/esm/sqm-banking-info-form_17.entry.js +5 -158
- package/dist/esm/{sqm-invoice-table-view-7f376a75.js → sqm-invoice-table-view-2c726568.js} +0 -17
- package/dist/esm/sqm-referral-table_11.entry.js +3 -3
- package/dist/esm/sqm-rewards-table_9.entry.js +2 -2
- package/dist/esm/sqm-stencilbook.entry.js +2880 -2496
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mint-components.js +1 -1
- package/dist/esm-es5/sqm-banking-info-form_17.entry.js +1 -1
- package/dist/esm-es5/sqm-invoice-table-view-2c726568.js +1 -0
- package/dist/esm-es5/sqm-referral-table_11.entry.js +1 -1
- package/dist/esm-es5/sqm-rewards-table_9.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-693942df.entry.js → p-08090b99.entry.js} +2 -2
- package/dist/mint-components/p-0d68b3b1.entry.js +205 -0
- package/dist/mint-components/{p-c82859b2.system.entry.js → p-207da855.system.entry.js} +1 -1
- package/dist/mint-components/p-37996351.system.js +1 -1
- package/dist/mint-components/p-3f067fd5.js +1 -0
- package/dist/mint-components/{p-fe2e2f4a.entry.js → p-89104bc4.entry.js} +1 -1
- package/dist/mint-components/p-a6178052.system.entry.js +1 -0
- package/dist/mint-components/p-a7746488.system.js +1 -0
- package/dist/mint-components/{p-805446b1.entry.js → p-b06add5c.entry.js} +2 -2
- package/dist/mint-components/{p-de8e9981.system.entry.js → p-cc833efb.system.entry.js} +1 -1
- package/dist/mint-components/{p-5d7e308c.system.entry.js → p-fc7a2647.system.entry.js} +1 -1
- package/dist/mint-components/sqm-stencilbook.entry.js +18989 -0
- package/dist/mint-components/sqm-stencilbook.system.entry.js +1 -0
- package/dist/types/components/sqm-rewards-table/cells/sqm-rewards-table-status-cell.d.ts +1 -1
- package/dist/types/components/tax-and-cash/BankingForm.stories.d.ts +0 -1
- package/dist/types/components/tax-and-cash/TaxForm.stories.d.ts +0 -1
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.d.ts +0 -6
- package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.d.ts +0 -16
- package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form-view.d.ts +0 -6
- package/dist/types/components/tax-and-cash/sqm-docusign-form/sqm-docusign-form.d.ts +0 -12
- package/dist/types/components/tax-and-cash/sqm-docusign-form/useDocusignForm.d.ts +0 -3
- package/dist/types/components/tax-and-cash/sqm-tax-and-cash/sqm-tax-and-cash.d.ts +0 -35
- package/dist/types/components.d.ts +0 -126
- package/docs/docs.docx +0 -0
- package/docs/raisins.json +1 -1
- package/grapesjs/grapesjs.js +1 -1
- package/package.json +1 -1
- package/shoelace/assets/icons/twitter-x.svg +4 -0
- package/dist/esm-es5/sqm-invoice-table-view-7f376a75.js +0 -1
- package/dist/mint-components/p-7e07418c.system.entry.js +0 -1
- package/dist/mint-components/p-9a1843cb.system.js +0 -1
- package/dist/mint-components/p-b03ef82f.entry.js +0 -205
- package/dist/mint-components/p-ccd60c4b.js +0 -1
- /package/dist/esm-es5/{mockRewardData-8bd1b356.js → mockRewardData-a3cdb832.js} +0 -0
- /package/dist/mint-components/{p-726a9924.js → p-938f64d9.js} +0 -0
- /package/dist/mint-components/{p-8413ade9.system.js → p-ae1ea5ac.system.js} +0 -0
|
@@ -2,42 +2,72 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const stencilHooks_module = require('./stencil-hooks.module-
|
|
7
|
-
require('./global-
|
|
8
|
-
const index_module = require('./index.module-
|
|
9
|
-
require('./
|
|
10
|
-
require('./
|
|
11
|
-
const
|
|
12
|
-
require('./
|
|
13
|
-
require('./mixins-
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
require('./
|
|
17
|
-
const
|
|
18
|
-
require('./sqm-
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
require('./
|
|
22
|
-
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
const
|
|
26
|
-
const
|
|
27
|
-
const
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
const
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
require('./
|
|
34
|
-
|
|
35
|
-
const
|
|
36
|
-
require('./
|
|
37
|
-
const
|
|
38
|
-
const
|
|
39
|
-
const
|
|
40
|
-
const
|
|
5
|
+
const index = require('./index-acf63b7d.js');
|
|
6
|
+
const stencilHooks_module = require('./stencil-hooks.module-c3a0542e.js');
|
|
7
|
+
require('./global-eec134b3.js');
|
|
8
|
+
const index_module = require('./index.module-b650af64.js');
|
|
9
|
+
require('./jss-preset-default.esm-b48f0c33.js');
|
|
10
|
+
const JSS = require('./JSS-518e9b4d.js');
|
|
11
|
+
const sqmAssetCardView = require('./sqm-asset-card-view-072f4417.js');
|
|
12
|
+
require('./cjs-2bf512b9.js');
|
|
13
|
+
require('./mixins-f67f16e9.js');
|
|
14
|
+
const sqmCloseButtonView = require('./sqm-close-button-view-901a77e4.js');
|
|
15
|
+
require('./utils-9bc62a9b.js');
|
|
16
|
+
require('./index-9a829282.js');
|
|
17
|
+
const emailRegistrationView = require('./email-registration-view-b42a5259.js');
|
|
18
|
+
const sqmLeaderboardRankView = require('./sqm-leaderboard-rank-view-9131cf2c.js');
|
|
19
|
+
const sqmLogoutCurrentUserView = require('./sqm-logout-current-user-view-a60b22ef.js');
|
|
20
|
+
const sqmNavigationSidebarView = require('./sqm-navigation-sidebar-view-62573715.js');
|
|
21
|
+
const sqmNavigationSidebarItemView = require('./sqm-navigation-sidebar-item-view-fe30a5ce.js');
|
|
22
|
+
require('./sqm-text-span-view-acbc9012.js');
|
|
23
|
+
const sqmPortalEmailVerificationView = require('./sqm-portal-email-verification-view-5b14fd85.js');
|
|
24
|
+
const sqmPortalForgotPasswordView = require('./sqm-portal-forgot-password-view-2e46dccb.js');
|
|
25
|
+
const sqmPortalLoginView = require('./sqm-portal-login-view-bc49b6a9.js');
|
|
26
|
+
const sqmBaseRegistrationFormView = require('./sqm-base-registration-form-view-52044daf.js');
|
|
27
|
+
const sqmPortalRegistrationFormView = require('./sqm-portal-registration-form-view-b77b5450.js');
|
|
28
|
+
const sqmPortalProfileView = require('./sqm-portal-profile-view-45486477.js');
|
|
29
|
+
require('./utilities-d5be98d4.js');
|
|
30
|
+
const sqmPortalResetPasswordView = require('./sqm-portal-reset-password-view-be122fc9.js');
|
|
31
|
+
const sqmPortalVerifyEmailView = require('./sqm-portal-verify-email-view-7a73f624.js');
|
|
32
|
+
require('./ErrorView-c2494478.js');
|
|
33
|
+
const sqmQrCodeView = require('./sqm-qr-code-view-2ec642bf.js');
|
|
34
|
+
require('./useReferralCodes-3c7036f3.js');
|
|
35
|
+
const useShareButton = require('./useShareButton-aa544c7f.js');
|
|
36
|
+
const ShadowViewAddon = require('./ShadowViewAddon-65409f44.js');
|
|
37
|
+
const copyTextView = require('./copy-text-view-046825f3.js');
|
|
38
|
+
const sqmBigStatView = require('./sqm-big-stat-view-97bcf92b.js');
|
|
39
|
+
const sqmPortalFrameView = require('./sqm-portal-frame-view-d638a0e6.js');
|
|
40
|
+
const sqmEditProfileView = require('./sqm-edit-profile-view-03c2fa43.js');
|
|
41
|
+
const useShareLink = require('./useShareLink-fa085a25.js');
|
|
42
|
+
require('./useChildElements-d89d4029.js');
|
|
43
|
+
const useDemoBigStat = require('./useDemoBigStat-1c381402.js');
|
|
44
|
+
const sqmPortalSectionView = require('./sqm-portal-section-view-c1f8b90a.js');
|
|
45
|
+
const sqmPortalContainerView = require('./sqm-portal-container-view-9ae2aa22.js');
|
|
46
|
+
const sqmStatContainerView = require('./sqm-stat-container-view-31fc9ab2.js');
|
|
47
|
+
const sqmPortalChangePasswordView = require('./sqm-portal-change-password-view-8926cb47.js');
|
|
48
|
+
const sqmPortalRegisterView = require('./sqm-portal-register-view-417f4216.js');
|
|
49
|
+
const sqmCheckboxFieldView = require('./sqm-checkbox-field-view-9ddbf23b.js');
|
|
50
|
+
const sqmPortalChangeMarketingView = require('./sqm-portal-change-marketing-view-62ab2fc3.js');
|
|
51
|
+
const GenericTableView = require('./GenericTableView-fd353a5f.js');
|
|
52
|
+
const luxon = require('./luxon-090ad81d.js');
|
|
53
|
+
const sqmTaskCardView = require('./sqm-task-card-view-15dfbbcf.js');
|
|
54
|
+
const sqmPortalFooterView = require('./sqm-portal-footer-view-87b1844b.js');
|
|
55
|
+
const sqmHeroView = require('./sqm-hero-view-fa964d63.js');
|
|
56
|
+
const sqmReferralIframeView = require('./sqm-referral-iframe-view-d0d08442.js');
|
|
57
|
+
const sqmNameFieldsView = require('./sqm-name-fields-view-7053e5e0.js');
|
|
58
|
+
const sqmDropdownFieldView = require('./sqm-dropdown-field-view-a2ae29c4.js');
|
|
59
|
+
const sqmInputFieldView = require('./sqm-input-field-view-b51f4038.js');
|
|
60
|
+
const RewardExchangeListData = require('./RewardExchangeListData-b84fc648.js');
|
|
61
|
+
const sqmCardFeedView = require('./sqm-card-feed-view-803efd42.js');
|
|
62
|
+
const sqmCouponCodeView = require('./sqm-coupon-code-view-4cd85c27.js');
|
|
63
|
+
require('./subregions-d43680d2.js');
|
|
64
|
+
require('./LoadingView-c8c0fb81.js');
|
|
65
|
+
require('./utils-75ce2a09.js');
|
|
66
|
+
const TaxForm_stories = require('./TaxForm.stories-fc262f3a.js');
|
|
67
|
+
require('./countries-473a6e62.js');
|
|
68
|
+
const IndirectTaxDetailsView = require('./IndirectTaxDetailsView-42e9e375.js');
|
|
69
|
+
const sqmInvoiceTableView = require('./sqm-invoice-table-view-f6b7d019.js');
|
|
70
|
+
const AutoColor = require('./AutoColor-db33223f.js');
|
|
41
71
|
|
|
42
72
|
/**
|
|
43
73
|
* lodash (Custom Build) <https://lodash.com/>
|
|
@@ -691,7 +721,7 @@ var StyleSheet = /*#__PURE__*/function () {
|
|
|
691
721
|
_this.tags.push(tag);
|
|
692
722
|
};
|
|
693
723
|
|
|
694
|
-
this.isSpeedy = options.speedy === undefined ? "
|
|
724
|
+
this.isSpeedy = options.speedy === undefined ? "development" === 'production' : options.speedy;
|
|
695
725
|
this.tags = [];
|
|
696
726
|
this.ctr = 0;
|
|
697
727
|
this.nonce = options.nonce; // key is the value of the data-emotion attribute, it's used to identify different sheets
|
|
@@ -718,6 +748,18 @@ var StyleSheet = /*#__PURE__*/function () {
|
|
|
718
748
|
|
|
719
749
|
var tag = this.tags[this.tags.length - 1];
|
|
720
750
|
|
|
751
|
+
if ("development" !== 'production') {
|
|
752
|
+
var isImportRule = rule.charCodeAt(0) === 64 && rule.charCodeAt(1) === 105;
|
|
753
|
+
|
|
754
|
+
if (isImportRule && this._alreadyInsertedOrderInsensitiveRule) {
|
|
755
|
+
// this would only cause problem in speedy mode
|
|
756
|
+
// but we don't want enabling speedy to affect the observable behavior
|
|
757
|
+
// so we report this error at all times
|
|
758
|
+
console.error("You're attempting to insert the following rule:\n" + rule + '\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules.');
|
|
759
|
+
}
|
|
760
|
+
this._alreadyInsertedOrderInsensitiveRule = this._alreadyInsertedOrderInsensitiveRule || !isImportRule;
|
|
761
|
+
}
|
|
762
|
+
|
|
721
763
|
if (this.isSpeedy) {
|
|
722
764
|
var sheet = sheetForTag(tag);
|
|
723
765
|
|
|
@@ -726,6 +768,9 @@ var StyleSheet = /*#__PURE__*/function () {
|
|
|
726
768
|
// the big drawback is that the css won't be editable in devtools
|
|
727
769
|
sheet.insertRule(rule, sheet.cssRules.length);
|
|
728
770
|
} catch (e) {
|
|
771
|
+
if ("development" !== 'production' && !/:(-moz-placeholder|-ms-input-placeholder|-moz-read-write|-moz-read-only){/.test(rule)) {
|
|
772
|
+
console.error("There was a problem inserting the following rule: \"" + rule + "\"", e);
|
|
773
|
+
}
|
|
729
774
|
}
|
|
730
775
|
} else {
|
|
731
776
|
tag.appendChild(document.createTextNode(rule));
|
|
@@ -741,12 +786,31 @@ var StyleSheet = /*#__PURE__*/function () {
|
|
|
741
786
|
});
|
|
742
787
|
this.tags = [];
|
|
743
788
|
this.ctr = 0;
|
|
789
|
+
|
|
790
|
+
if ("development" !== 'production') {
|
|
791
|
+
this._alreadyInsertedOrderInsensitiveRule = false;
|
|
792
|
+
}
|
|
744
793
|
};
|
|
745
794
|
|
|
746
795
|
return StyleSheet;
|
|
747
796
|
}();
|
|
748
797
|
|
|
749
|
-
var e="-ms-";var r="-moz-";var a="-webkit-";var c="comm";var n="rule";var t="decl";var i="@import";var p="@keyframes";var k=Math.abs;var d=String.fromCharCode;function m(e,r){return (((r<<2^z(e,0))<<2^z(e,1))<<2^z(e,2))<<2^z(e,3)}function g(e){return e.trim()}function x(e,r){return (e=r.exec(e))?e[0]:e}function y(e,r,a){return e.replace(r,a)}function j(e,r){return e.indexOf(r)}function z(e,r){return e.charCodeAt(r)|0}function C(e,r,a){return e.slice(r,a)}function A(e){return e.length}function M(e){return e.length}function O(e,r){return r.push(e),e}function S(e,r){return e.map(r).join("")}var q=1;var B=1;var D=0;var E=0;var F=0;var G="";function H(e,r,a,c,n,t,s){return {value:e,root:r,parent:a,type:c,props:n,children:t,line:q,column:B,length:s,return:""}}function I(e,r,a){return H(e,r.root,r.parent,a,r.props,r.children,0)}function J(){return F}function K(){F=E>0?z(G,--E):0;if(B--,F===10)B=1,q--;return F}function L(){F=E<D?z(G,E++):0;if(B++,F===10)B=1,q++;return F}function N(){return z(G,E)}function P(){return E}function Q(e,r){return C(G,e,r)}function R(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function T(e){return q=B=1,D=A(G=e),E=0,[]}function U(e){return G="",e}function V(e){return g(Q(E-1,_(e===91?e+2:e===40?e+1:e)))}function X(e){while(F=N())if(F<33)L();else break;return R(e)>2||R(F)>3?"":" "}function Z(e,r){while(--r&&L())if(F<48||F>102||F>57&&F<65||F>70&&F<97)break;return Q(e,P()+(r<6&&N()==32&&L()==32))}function _(e){while(L())switch(F){case e:return E;case 34:case 39:return _(e===34||e===39?e:F);case 40:if(e===41)_(e);break;case 92:L();break}return E}function ee(e,r){while(L())if(e+F===47+10)break;else if(e+F===42+42&&N()===47)break;return "/*"+Q(r,E-1)+"*"+d(e===47?e:L())}function re(e){while(!R(N()))L();return Q(e,E)}function ae(e){return U(ce("",null,null,null,[""],e=T(e),0,[0],e))}function ce(e,r,a,c,n,t,s,u,i){var f=0;var o=0;var l=s;var v=0;var h=0;var p=0;var b=1;var w=1;var $=1;var k=0;var m="";var g=n;var x=t;var j=c;var z=m;while(w)switch(p=k,k=L()){case 34:case 39:case 91:case 40:z+=V(k);break;case 9:case 10:case 13:case 32:z+=X(p);break;case 92:z+=Z(P()-1,7);continue;case 47:switch(N()){case 42:case 47:O(te(ee(L(),P()),r,a),i);break;default:z+="/";}break;case 123*b:u[f++]=A(z)*$;case 125*b:case 59:case 0:switch(k){case 0:case 125:w=0;case 59+o:if(h>0&&A(z)-l)O(h>32?se(z+";",c,a,l-1):se(y(z," ","")+";",c,a,l-2),i);break;case 59:z+=";";default:O(j=ne(z,r,a,f,o,n,u,m,g=[],x=[],l),t);if(k===123)if(o===0)ce(z,r,j,j,g,t,l,u,x);else switch(v){case 100:case 109:case 115:ce(e,j,j,c&&O(ne(e,j,j,0,0,n,u,m,n,g=[],l),x),n,x,l,u,c?g:x);break;default:ce(z,j,j,j,[""],x,l,u,x);}}f=o=h=0,b=$=1,m=z="",l=s;break;case 58:l=1+A(z),h=p;default:if(b<1)if(k==123)--b;else if(k==125&&b++==0&&K()==125)continue;switch(z+=d(k),k*b){case 38:$=o>0?1:(z+="\f",-1);break;case 44:u[f++]=(A(z)-1)*$,$=1;break;case 64:if(N()===45)z+=V(L());v=N(),o=A(m=z+=re(P())),k++;break;case 45:if(p===45&&A(z)==2)b=0;}}return t}function ne(e,r,a,c,t,s,u,i,f,o,l){var v=t-1;var h=t===0?s:[""];var p=M(h);for(var b=0,w=0,$=0;b<c;++b)for(var d=0,m=C(e,v+1,v=k(w=u[b])),x=e;d<p;++d)if(x=g(w>0?h[d]+" "+m:y(m,/&\f/g,h[d])))f[$++]=x;return H(e,r,a,t===0?n:i,f,o,l)}function te(e,r,a){return H(e,r,a,c,d(J()),C(e,2,-2),0)}function se(e,r,a,c){return H(e,r,a,t,C(e,0,c),C(e,c+1,-1),c)}function ue(c,n){switch(m(c,n)){case 5103:return a+"print-"+c+c;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return a+c+c;case 5349:case 4246:case 4810:case 6968:case 2756:return a+c+r+c+e+c+c;case 6828:case 4268:return a+c+e+c+c;case 6165:return a+c+e+"flex-"+c+c;case 5187:return a+c+y(c,/(\w+).+(:[^]+)/,a+"box-$1$2"+e+"flex-$1$2")+c;case 5443:return a+c+e+"flex-item-"+y(c,/flex-|-self/,"")+c;case 4675:return a+c+e+"flex-line-pack"+y(c,/align-content|flex-|-self/,"")+c;case 5548:return a+c+e+y(c,"shrink","negative")+c;case 5292:return a+c+e+y(c,"basis","preferred-size")+c;case 6060:return a+"box-"+y(c,"-grow","")+a+c+e+y(c,"grow","positive")+c;case 4554:return a+y(c,/([^-])(transform)/g,"$1"+a+"$2")+c;case 6187:return y(y(y(c,/(zoom-|grab)/,a+"$1"),/(image-set)/,a+"$1"),c,"")+c;case 5495:case 3959:return y(c,/(image-set\([^]*)/,a+"$1"+"$`$1");case 4968:return y(y(c,/(.+:)(flex-)?(.*)/,a+"box-pack:$3"+e+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+a+c+c;case 4095:case 3583:case 4068:case 2532:return y(c,/(.+)-inline(.+)/,a+"$1$2")+c;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(A(c)-1-n>6)switch(z(c,n+1)){case 109:if(z(c,n+4)!==45)break;case 102:return y(c,/(.+:)(.+)-([^]+)/,"$1"+a+"$2-$3"+"$1"+r+(z(c,n+3)==108?"$3":"$2-$3"))+c;case 115:return ~j(c,"stretch")?ue(y(c,"stretch","fill-available"),n)+c:c}break;case 4949:if(z(c,n+1)!==115)break;case 6444:switch(z(c,A(c)-3-(~j(c,"!important")&&10))){case 107:return y(c,":",":"+a)+c;case 101:return y(c,/(.+:)([^;!]+)(;|!.+)?/,"$1"+a+(z(c,14)===45?"inline-":"")+"box$3"+"$1"+a+"$2$3"+"$1"+e+"$2box$3")+c}break;case 5936:switch(z(c,n+11)){case 114:return a+c+e+y(c,/[svh]\w+-[tblr]{2}/,"tb")+c;case 108:return a+c+e+y(c,/[svh]\w+-[tblr]{2}/,"tb-rl")+c;case 45:return a+c+e+y(c,/[svh]\w+-[tblr]{2}/,"lr")+c}return a+c+e+c+c}return c}function ie(e,r){var a="";var c=M(e);for(var n=0;n<c;n++)a+=r(e[n],n,e,r)||"";return a}function fe(e,r,a,s){switch(e.type){case i:case t:return e.return=e.return||e.value;case c:return "";case n:e.value=e.props.join(",");}return A(a=ie(e.children,s))?e.return=e.value+"{"+a+"}":""}function oe(e){var r=M(e);return function(a,c,n,t){var s="";for(var u=0;u<r;u++)s+=e[u](a,c,n,t)||"";return s}}function le(e){return function(r){if(!r.root)if(r=r.return)e(r);}}function ve(c,s,u,i){if(!c.return)switch(c.type){case t:c.return=ue(c.value,c.length);break;case p:return ie([I(y(c.value,"@","@"+a),c,"")],i);case n:if(c.length)return S(c.props,(function(n){switch(x(n,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ie([I(y(n,/:(read-\w+)/,":"+r+"$1"),c,"")],i);case"::placeholder":return ie([I(y(n,/:(plac\w+)/,":"+a+"input-$1"),c,""),I(y(n,/:(plac\w+)/,":"+r+"$1"),c,""),I(y(n,/:(plac\w+)/,e+"input-$1"),c,"")],i)}return ""}))}}
|
|
798
|
+
var e="-ms-";var r="-moz-";var a="-webkit-";var c="comm";var n="rule";var t="decl";var s="@page";var u="@media";var i="@import";var f="@charset";var o="@viewport";var l="@supports";var v="@document";var h="@namespace";var p="@keyframes";var b="@font-face";var w="@counter-style";var $="@font-feature-values";var k=Math.abs;var d=String.fromCharCode;function m(e,r){return (((r<<2^z(e,0))<<2^z(e,1))<<2^z(e,2))<<2^z(e,3)}function g(e){return e.trim()}function x(e,r){return (e=r.exec(e))?e[0]:e}function y(e,r,a){return e.replace(r,a)}function j(e,r){return e.indexOf(r)}function z(e,r){return e.charCodeAt(r)|0}function C(e,r,a){return e.slice(r,a)}function A(e){return e.length}function M(e){return e.length}function O(e,r){return r.push(e),e}function S(e,r){return e.map(r).join("")}var q=1;var B=1;var D=0;var E=0;var F=0;var G="";function H(e,r,a,c,n,t,s){return {value:e,root:r,parent:a,type:c,props:n,children:t,line:q,column:B,length:s,return:""}}function I(e,r,a){return H(e,r.root,r.parent,a,r.props,r.children,0)}function J(){return F}function K(){F=E>0?z(G,--E):0;if(B--,F===10)B=1,q--;return F}function L(){F=E<D?z(G,E++):0;if(B++,F===10)B=1,q++;return F}function N(){return z(G,E)}function P(){return E}function Q(e,r){return C(G,e,r)}function R(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function T(e){return q=B=1,D=A(G=e),E=0,[]}function U(e){return G="",e}function V(e){return g(Q(E-1,_(e===91?e+2:e===40?e+1:e)))}function W(e){return U(Y(T(e)))}function X(e){while(F=N())if(F<33)L();else break;return R(e)>2||R(F)>3?"":" "}function Y(e){while(L())switch(R(F)){case 0:O(re(E-1),e);break;case 2:O(V(F),e);break;default:O(d(F),e);}return e}function Z(e,r){while(--r&&L())if(F<48||F>102||F>57&&F<65||F>70&&F<97)break;return Q(e,P()+(r<6&&N()==32&&L()==32))}function _(e){while(L())switch(F){case e:return E;case 34:case 39:return _(e===34||e===39?e:F);case 40:if(e===41)_(e);break;case 92:L();break}return E}function ee(e,r){while(L())if(e+F===47+10)break;else if(e+F===42+42&&N()===47)break;return "/*"+Q(r,E-1)+"*"+d(e===47?e:L())}function re(e){while(!R(N()))L();return Q(e,E)}function ae(e){return U(ce("",null,null,null,[""],e=T(e),0,[0],e))}function ce(e,r,a,c,n,t,s,u,i){var f=0;var o=0;var l=s;var v=0;var h=0;var p=0;var b=1;var w=1;var $=1;var k=0;var m="";var g=n;var x=t;var j=c;var z=m;while(w)switch(p=k,k=L()){case 34:case 39:case 91:case 40:z+=V(k);break;case 9:case 10:case 13:case 32:z+=X(p);break;case 92:z+=Z(P()-1,7);continue;case 47:switch(N()){case 42:case 47:O(te(ee(L(),P()),r,a),i);break;default:z+="/";}break;case 123*b:u[f++]=A(z)*$;case 125*b:case 59:case 0:switch(k){case 0:case 125:w=0;case 59+o:if(h>0&&A(z)-l)O(h>32?se(z+";",c,a,l-1):se(y(z," ","")+";",c,a,l-2),i);break;case 59:z+=";";default:O(j=ne(z,r,a,f,o,n,u,m,g=[],x=[],l),t);if(k===123)if(o===0)ce(z,r,j,j,g,t,l,u,x);else switch(v){case 100:case 109:case 115:ce(e,j,j,c&&O(ne(e,j,j,0,0,n,u,m,n,g=[],l),x),n,x,l,u,c?g:x);break;default:ce(z,j,j,j,[""],x,l,u,x);}}f=o=h=0,b=$=1,m=z="",l=s;break;case 58:l=1+A(z),h=p;default:if(b<1)if(k==123)--b;else if(k==125&&b++==0&&K()==125)continue;switch(z+=d(k),k*b){case 38:$=o>0?1:(z+="\f",-1);break;case 44:u[f++]=(A(z)-1)*$,$=1;break;case 64:if(N()===45)z+=V(L());v=N(),o=A(m=z+=re(P())),k++;break;case 45:if(p===45&&A(z)==2)b=0;}}return t}function ne(e,r,a,c,t,s,u,i,f,o,l){var v=t-1;var h=t===0?s:[""];var p=M(h);for(var b=0,w=0,$=0;b<c;++b)for(var d=0,m=C(e,v+1,v=k(w=u[b])),x=e;d<p;++d)if(x=g(w>0?h[d]+" "+m:y(m,/&\f/g,h[d])))f[$++]=x;return H(e,r,a,t===0?n:i,f,o,l)}function te(e,r,a){return H(e,r,a,c,d(J()),C(e,2,-2),0)}function se(e,r,a,c){return H(e,r,a,t,C(e,0,c),C(e,c+1,-1),c)}function ue(c,n){switch(m(c,n)){case 5103:return a+"print-"+c+c;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return a+c+c;case 5349:case 4246:case 4810:case 6968:case 2756:return a+c+r+c+e+c+c;case 6828:case 4268:return a+c+e+c+c;case 6165:return a+c+e+"flex-"+c+c;case 5187:return a+c+y(c,/(\w+).+(:[^]+)/,a+"box-$1$2"+e+"flex-$1$2")+c;case 5443:return a+c+e+"flex-item-"+y(c,/flex-|-self/,"")+c;case 4675:return a+c+e+"flex-line-pack"+y(c,/align-content|flex-|-self/,"")+c;case 5548:return a+c+e+y(c,"shrink","negative")+c;case 5292:return a+c+e+y(c,"basis","preferred-size")+c;case 6060:return a+"box-"+y(c,"-grow","")+a+c+e+y(c,"grow","positive")+c;case 4554:return a+y(c,/([^-])(transform)/g,"$1"+a+"$2")+c;case 6187:return y(y(y(c,/(zoom-|grab)/,a+"$1"),/(image-set)/,a+"$1"),c,"")+c;case 5495:case 3959:return y(c,/(image-set\([^]*)/,a+"$1"+"$`$1");case 4968:return y(y(c,/(.+:)(flex-)?(.*)/,a+"box-pack:$3"+e+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+a+c+c;case 4095:case 3583:case 4068:case 2532:return y(c,/(.+)-inline(.+)/,a+"$1$2")+c;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(A(c)-1-n>6)switch(z(c,n+1)){case 109:if(z(c,n+4)!==45)break;case 102:return y(c,/(.+:)(.+)-([^]+)/,"$1"+a+"$2-$3"+"$1"+r+(z(c,n+3)==108?"$3":"$2-$3"))+c;case 115:return ~j(c,"stretch")?ue(y(c,"stretch","fill-available"),n)+c:c}break;case 4949:if(z(c,n+1)!==115)break;case 6444:switch(z(c,A(c)-3-(~j(c,"!important")&&10))){case 107:return y(c,":",":"+a)+c;case 101:return y(c,/(.+:)([^;!]+)(;|!.+)?/,"$1"+a+(z(c,14)===45?"inline-":"")+"box$3"+"$1"+a+"$2$3"+"$1"+e+"$2box$3")+c}break;case 5936:switch(z(c,n+11)){case 114:return a+c+e+y(c,/[svh]\w+-[tblr]{2}/,"tb")+c;case 108:return a+c+e+y(c,/[svh]\w+-[tblr]{2}/,"tb-rl")+c;case 45:return a+c+e+y(c,/[svh]\w+-[tblr]{2}/,"lr")+c}return a+c+e+c+c}return c}function ie(e,r){var a="";var c=M(e);for(var n=0;n<c;n++)a+=r(e[n],n,e,r)||"";return a}function fe(e,r,a,s){switch(e.type){case i:case t:return e.return=e.return||e.value;case c:return "";case n:e.value=e.props.join(",");}return A(a=ie(e.children,s))?e.return=e.value+"{"+a+"}":""}function oe(e){var r=M(e);return function(a,c,n,t){var s="";for(var u=0;u<r;u++)s+=e[u](a,c,n,t)||"";return s}}function le(e){return function(r){if(!r.root)if(r=r.return)e(r);}}function ve(c,s,u,i){if(!c.return)switch(c.type){case t:c.return=ue(c.value,c.length);break;case p:return ie([I(y(c.value,"@","@"+a),c,"")],i);case n:if(c.length)return S(c.props,(function(n){switch(x(n,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ie([I(y(n,/:(read-\w+)/,":"+r+"$1"),c,"")],i);case"::placeholder":return ie([I(y(n,/:(plac\w+)/,":"+a+"input-$1"),c,""),I(y(n,/:(plac\w+)/,":"+r+"$1"),c,""),I(y(n,/:(plac\w+)/,e+"input-$1"),c,"")],i)}return ""}))}}function he(e){switch(e.type){case n:e.props=e.props.map((function(r){return S(W(r),(function(r,a,c){switch(z(r,0)){case 12:return C(r,1,A(r));case 0:case 40:case 43:case 62:case 126:return r;case 58:if(c[++a]==="global")c[a]="",c[++a]="\f"+C(c[a],a=1,-1);case 32:return a===1?"":r;default:switch(a){case 0:e=r;return M(c)>1?"":r;case a=M(c)-1:case 2:return a===2?r+e+e:r+e;default:return r}}}))}));}}
|
|
799
|
+
|
|
800
|
+
var weakMemoize = function weakMemoize(func) {
|
|
801
|
+
// $FlowFixMe flow doesn't include all non-primitive types as allowed for weakmaps
|
|
802
|
+
var cache = new WeakMap();
|
|
803
|
+
return function (arg) {
|
|
804
|
+
if (cache.has(arg)) {
|
|
805
|
+
// $FlowFixMe
|
|
806
|
+
return cache.get(arg);
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
var ret = func(arg);
|
|
810
|
+
cache.set(arg, ret);
|
|
811
|
+
return ret;
|
|
812
|
+
};
|
|
813
|
+
};
|
|
750
814
|
|
|
751
815
|
function memoize(fn) {
|
|
752
816
|
var cache = Object.create(null);
|
|
@@ -756,6 +820,10 @@ function memoize(fn) {
|
|
|
756
820
|
};
|
|
757
821
|
}
|
|
758
822
|
|
|
823
|
+
var last = function last(arr) {
|
|
824
|
+
return arr.length ? arr[arr.length - 1] : null;
|
|
825
|
+
};
|
|
826
|
+
|
|
759
827
|
var toRules = function toRules(parsed, points) {
|
|
760
828
|
// pretend we've started with a comma
|
|
761
829
|
var index = -1;
|
|
@@ -857,12 +925,79 @@ var removeLabel = function removeLabel(element) {
|
|
|
857
925
|
}
|
|
858
926
|
}
|
|
859
927
|
};
|
|
928
|
+
var ignoreFlag = 'emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason';
|
|
929
|
+
|
|
930
|
+
var isIgnoringComment = function isIgnoringComment(element) {
|
|
931
|
+
return !!element && element.type === 'comm' && element.children.indexOf(ignoreFlag) > -1;
|
|
932
|
+
};
|
|
933
|
+
|
|
934
|
+
var createUnsafeSelectorsAlarm = function createUnsafeSelectorsAlarm(cache) {
|
|
935
|
+
return function (element, index, children) {
|
|
936
|
+
if (element.type !== 'rule') return;
|
|
937
|
+
var unsafePseudoClasses = element.value.match(/(:first|:nth|:nth-last)-child/g);
|
|
938
|
+
|
|
939
|
+
if (unsafePseudoClasses && cache.compat !== true) {
|
|
940
|
+
var prevElement = index > 0 ? children[index - 1] : null;
|
|
941
|
+
|
|
942
|
+
if (prevElement && isIgnoringComment(last(prevElement.children))) {
|
|
943
|
+
return;
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
unsafePseudoClasses.forEach(function (unsafePseudoClass) {
|
|
947
|
+
console.error("The pseudo class \"" + unsafePseudoClass + "\" is potentially unsafe when doing server-side rendering. Try changing it to \"" + unsafePseudoClass.split('-child')[0] + "-of-type\".");
|
|
948
|
+
});
|
|
949
|
+
}
|
|
950
|
+
};
|
|
951
|
+
};
|
|
952
|
+
|
|
953
|
+
var isImportRule = function isImportRule(element) {
|
|
954
|
+
return element.type.charCodeAt(1) === 105 && element.type.charCodeAt(0) === 64;
|
|
955
|
+
};
|
|
956
|
+
|
|
957
|
+
var isPrependedWithRegularRules = function isPrependedWithRegularRules(index, children) {
|
|
958
|
+
for (var i = index - 1; i >= 0; i--) {
|
|
959
|
+
if (!isImportRule(children[i])) {
|
|
960
|
+
return true;
|
|
961
|
+
}
|
|
962
|
+
}
|
|
963
|
+
|
|
964
|
+
return false;
|
|
965
|
+
}; // use this to remove incorrect elements from further processing
|
|
966
|
+
// so they don't get handed to the `sheet` (or anything else)
|
|
967
|
+
// as that could potentially lead to additional logs which in turn could be overhelming to the user
|
|
968
|
+
|
|
969
|
+
|
|
970
|
+
var nullifyElement = function nullifyElement(element) {
|
|
971
|
+
element.type = '';
|
|
972
|
+
element.value = '';
|
|
973
|
+
element["return"] = '';
|
|
974
|
+
element.children = '';
|
|
975
|
+
element.props = '';
|
|
976
|
+
};
|
|
977
|
+
|
|
978
|
+
var incorrectImportAlarm = function incorrectImportAlarm(element, index, children) {
|
|
979
|
+
if (!isImportRule(element)) {
|
|
980
|
+
return;
|
|
981
|
+
}
|
|
982
|
+
|
|
983
|
+
if (element.parent) {
|
|
984
|
+
console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles.");
|
|
985
|
+
nullifyElement(element);
|
|
986
|
+
} else if (isPrependedWithRegularRules(index, children)) {
|
|
987
|
+
console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules.");
|
|
988
|
+
nullifyElement(element);
|
|
989
|
+
}
|
|
990
|
+
};
|
|
860
991
|
|
|
861
992
|
var defaultStylisPlugins = [ve];
|
|
862
993
|
|
|
863
994
|
var createCache = function createCache(options) {
|
|
864
995
|
var key = options.key;
|
|
865
996
|
|
|
997
|
+
if ("development" !== 'production' && !key) {
|
|
998
|
+
throw new Error("You have to configure `key` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.\n" + "If multiple caches share the same key they might \"fight\" for each other's style elements.");
|
|
999
|
+
}
|
|
1000
|
+
|
|
866
1001
|
if ( key === 'css') {
|
|
867
1002
|
var ssrStyles = document.querySelectorAll("style[data-emotion]:not([data-s])"); // get SSRed styles out of the way of React's hydration
|
|
868
1003
|
// document.head is a safe place to move them to(though note document.head is not necessarily the last place they will be)
|
|
@@ -888,6 +1023,13 @@ var createCache = function createCache(options) {
|
|
|
888
1023
|
|
|
889
1024
|
var stylisPlugins = options.stylisPlugins || defaultStylisPlugins;
|
|
890
1025
|
|
|
1026
|
+
if ("development" !== 'production') {
|
|
1027
|
+
// $FlowFixMe
|
|
1028
|
+
if (/[^a-z-]/.test(key)) {
|
|
1029
|
+
throw new Error("Emotion key must only contain lower case alphabetical characters and - but \"" + key + "\" was passed");
|
|
1030
|
+
}
|
|
1031
|
+
}
|
|
1032
|
+
|
|
891
1033
|
var inserted = {}; // $FlowFixMe
|
|
892
1034
|
|
|
893
1035
|
var container;
|
|
@@ -912,9 +1054,28 @@ var createCache = function createCache(options) {
|
|
|
912
1054
|
|
|
913
1055
|
var omnipresentPlugins = [compat, removeLabel];
|
|
914
1056
|
|
|
1057
|
+
if ("development" !== 'production') {
|
|
1058
|
+
omnipresentPlugins.push(createUnsafeSelectorsAlarm({
|
|
1059
|
+
get compat() {
|
|
1060
|
+
return cache.compat;
|
|
1061
|
+
}
|
|
1062
|
+
|
|
1063
|
+
}), incorrectImportAlarm);
|
|
1064
|
+
}
|
|
1065
|
+
|
|
915
1066
|
{
|
|
916
1067
|
var currentSheet;
|
|
917
|
-
var finalizingPlugins = [fe,
|
|
1068
|
+
var finalizingPlugins = [fe, "development" !== 'production' ? function (element) {
|
|
1069
|
+
if (!element.root) {
|
|
1070
|
+
if (element["return"]) {
|
|
1071
|
+
currentSheet.insert(element["return"]);
|
|
1072
|
+
} else if (element.value && element.type !== c) {
|
|
1073
|
+
// insert empty rule in non-production environments
|
|
1074
|
+
// so @emotion/jest can grab `key` from the (JS)DOM for caches without any rules inserted yet
|
|
1075
|
+
currentSheet.insert(element.value + "{}");
|
|
1076
|
+
}
|
|
1077
|
+
}
|
|
1078
|
+
} : le(function (rule) {
|
|
918
1079
|
currentSheet.insert(rule);
|
|
919
1080
|
})];
|
|
920
1081
|
var serializer = oe(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins));
|
|
@@ -926,6 +1087,14 @@ var createCache = function createCache(options) {
|
|
|
926
1087
|
_insert = function insert(selector, serialized, sheet, shouldCache) {
|
|
927
1088
|
currentSheet = sheet;
|
|
928
1089
|
|
|
1090
|
+
if ("development" !== 'production' && serialized.map !== undefined) {
|
|
1091
|
+
currentSheet = {
|
|
1092
|
+
insert: function insert(rule) {
|
|
1093
|
+
sheet.insert(rule + serialized.map);
|
|
1094
|
+
}
|
|
1095
|
+
};
|
|
1096
|
+
}
|
|
1097
|
+
|
|
929
1098
|
stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles);
|
|
930
1099
|
|
|
931
1100
|
if (shouldCache) {
|
|
@@ -1055,6 +1224,8 @@ var unitlessKeys = {
|
|
|
1055
1224
|
strokeWidth: 1
|
|
1056
1225
|
};
|
|
1057
1226
|
|
|
1227
|
+
var ILLEGAL_ESCAPE_SEQUENCE_ERROR = "You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences";
|
|
1228
|
+
var UNDEFINED_AS_OBJECT_KEY_ERROR = "You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).";
|
|
1058
1229
|
var hyphenateRegex = /[A-Z]|^ms/g;
|
|
1059
1230
|
var animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g;
|
|
1060
1231
|
|
|
@@ -1095,12 +1266,43 @@ var processStyleValue = function processStyleValue(key, value) {
|
|
|
1095
1266
|
return value;
|
|
1096
1267
|
};
|
|
1097
1268
|
|
|
1269
|
+
if ("development" !== 'production') {
|
|
1270
|
+
var contentValuePattern = /(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/;
|
|
1271
|
+
var contentValues = ['normal', 'none', 'initial', 'inherit', 'unset'];
|
|
1272
|
+
var oldProcessStyleValue = processStyleValue;
|
|
1273
|
+
var msPattern = /^-ms-/;
|
|
1274
|
+
var hyphenPattern = /-(.)/g;
|
|
1275
|
+
var hyphenatedCache = {};
|
|
1276
|
+
|
|
1277
|
+
processStyleValue = function processStyleValue(key, value) {
|
|
1278
|
+
if (key === 'content') {
|
|
1279
|
+
if (typeof value !== 'string' || contentValues.indexOf(value) === -1 && !contentValuePattern.test(value) && (value.charAt(0) !== value.charAt(value.length - 1) || value.charAt(0) !== '"' && value.charAt(0) !== "'")) {
|
|
1280
|
+
throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\"" + value + "\"'`");
|
|
1281
|
+
}
|
|
1282
|
+
}
|
|
1283
|
+
|
|
1284
|
+
var processed = oldProcessStyleValue(key, value);
|
|
1285
|
+
|
|
1286
|
+
if (processed !== '' && !isCustomProperty(key) && key.indexOf('-') !== -1 && hyphenatedCache[key] === undefined) {
|
|
1287
|
+
hyphenatedCache[key] = true;
|
|
1288
|
+
console.error("Using kebab-case for css properties in objects is not supported. Did you mean " + key.replace(msPattern, 'ms-').replace(hyphenPattern, function (str, _char) {
|
|
1289
|
+
return _char.toUpperCase();
|
|
1290
|
+
}) + "?");
|
|
1291
|
+
}
|
|
1292
|
+
|
|
1293
|
+
return processed;
|
|
1294
|
+
};
|
|
1295
|
+
}
|
|
1296
|
+
|
|
1098
1297
|
function handleInterpolation(mergedProps, registered, interpolation) {
|
|
1099
1298
|
if (interpolation == null) {
|
|
1100
1299
|
return '';
|
|
1101
1300
|
}
|
|
1102
1301
|
|
|
1103
1302
|
if (interpolation.__emotion_styles !== undefined) {
|
|
1303
|
+
if ("development" !== 'production' && interpolation.toString() === 'NO_COMPONENT_SELECTOR') {
|
|
1304
|
+
throw new Error('Component selectors can only be used in conjunction with @emotion/babel-plugin.');
|
|
1305
|
+
}
|
|
1104
1306
|
|
|
1105
1307
|
return interpolation;
|
|
1106
1308
|
}
|
|
@@ -1140,6 +1342,10 @@ function handleInterpolation(mergedProps, registered, interpolation) {
|
|
|
1140
1342
|
|
|
1141
1343
|
var styles = interpolation.styles + ";";
|
|
1142
1344
|
|
|
1345
|
+
if ("development" !== 'production' && interpolation.map !== undefined) {
|
|
1346
|
+
styles += interpolation.map;
|
|
1347
|
+
}
|
|
1348
|
+
|
|
1143
1349
|
return styles;
|
|
1144
1350
|
}
|
|
1145
1351
|
|
|
@@ -1153,10 +1359,28 @@ function handleInterpolation(mergedProps, registered, interpolation) {
|
|
|
1153
1359
|
var result = interpolation(mergedProps);
|
|
1154
1360
|
cursor = previousCursor;
|
|
1155
1361
|
return handleInterpolation(mergedProps, registered, result);
|
|
1362
|
+
} else if ("development" !== 'production') {
|
|
1363
|
+
console.error('Functions that are interpolated in css calls will be stringified.\n' + 'If you want to have a css call based on props, create a function that returns a css call like this\n' + 'let dynamicStyle = (props) => css`color: ${props.color}`\n' + 'It can be called directly with props or interpolated in a styled call like this\n' + "let SomeComponent = styled('div')`${dynamicStyle}`");
|
|
1156
1364
|
}
|
|
1157
1365
|
|
|
1158
1366
|
break;
|
|
1159
1367
|
}
|
|
1368
|
+
|
|
1369
|
+
case 'string':
|
|
1370
|
+
if ("development" !== 'production') {
|
|
1371
|
+
var matched = [];
|
|
1372
|
+
var replaced = interpolation.replace(animationRegex, function (match, p1, p2) {
|
|
1373
|
+
var fakeVarName = "animation" + matched.length;
|
|
1374
|
+
matched.push("const " + fakeVarName + " = keyframes`" + p2.replace(/^@keyframes animation-\w+/, '') + "`");
|
|
1375
|
+
return "${" + fakeVarName + "}";
|
|
1376
|
+
});
|
|
1377
|
+
|
|
1378
|
+
if (matched.length) {
|
|
1379
|
+
console.error('`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\n' + 'Instead of doing this:\n\n' + [].concat(matched, ["`" + replaced + "`"]).join('\n') + '\n\nYou should wrap it with `css` like this:\n\n' + ("css`" + replaced + "`"));
|
|
1380
|
+
}
|
|
1381
|
+
}
|
|
1382
|
+
|
|
1383
|
+
break;
|
|
1160
1384
|
} // finalize string values (regular strings and functions interpolated into css calls)
|
|
1161
1385
|
|
|
1162
1386
|
|
|
@@ -1186,7 +1410,7 @@ function createStringFromObject(mergedProps, registered, obj) {
|
|
|
1186
1410
|
string += processStyleName(_key) + ":" + processStyleValue(_key, value) + ";";
|
|
1187
1411
|
}
|
|
1188
1412
|
} else {
|
|
1189
|
-
if (_key === 'NO_COMPONENT_SELECTOR' && "
|
|
1413
|
+
if (_key === 'NO_COMPONENT_SELECTOR' && "development" !== 'production') {
|
|
1190
1414
|
throw new Error('Component selectors can only be used in conjunction with @emotion/babel-plugin.');
|
|
1191
1415
|
}
|
|
1192
1416
|
|
|
@@ -1209,6 +1433,9 @@ function createStringFromObject(mergedProps, registered, obj) {
|
|
|
1209
1433
|
|
|
1210
1434
|
default:
|
|
1211
1435
|
{
|
|
1436
|
+
if ("development" !== 'production' && _key === 'undefined') {
|
|
1437
|
+
console.error(UNDEFINED_AS_OBJECT_KEY_ERROR);
|
|
1438
|
+
}
|
|
1212
1439
|
|
|
1213
1440
|
string += _key + "{" + interpolated + "}";
|
|
1214
1441
|
}
|
|
@@ -1222,6 +1449,11 @@ function createStringFromObject(mergedProps, registered, obj) {
|
|
|
1222
1449
|
}
|
|
1223
1450
|
|
|
1224
1451
|
var labelPattern = /label:\s*([^\s;\n{]+)\s*(;|$)/g;
|
|
1452
|
+
var sourceMapPattern;
|
|
1453
|
+
|
|
1454
|
+
if ("development" !== 'production') {
|
|
1455
|
+
sourceMapPattern = /\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g;
|
|
1456
|
+
} // this is the cursor for keyframes
|
|
1225
1457
|
// keyframes are stored on the SerializedStyles object as a linked list
|
|
1226
1458
|
|
|
1227
1459
|
|
|
@@ -1240,6 +1472,9 @@ var serializeStyles = function serializeStyles(args, registered, mergedProps) {
|
|
|
1240
1472
|
stringMode = false;
|
|
1241
1473
|
styles += handleInterpolation(mergedProps, registered, strings);
|
|
1242
1474
|
} else {
|
|
1475
|
+
if ("development" !== 'production' && strings[0] === undefined) {
|
|
1476
|
+
console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR);
|
|
1477
|
+
}
|
|
1243
1478
|
|
|
1244
1479
|
styles += strings[0];
|
|
1245
1480
|
} // we start at 1 since we've already handled the first arg
|
|
@@ -1249,11 +1484,23 @@ var serializeStyles = function serializeStyles(args, registered, mergedProps) {
|
|
|
1249
1484
|
styles += handleInterpolation(mergedProps, registered, args[i]);
|
|
1250
1485
|
|
|
1251
1486
|
if (stringMode) {
|
|
1487
|
+
if ("development" !== 'production' && strings[i] === undefined) {
|
|
1488
|
+
console.error(ILLEGAL_ESCAPE_SEQUENCE_ERROR);
|
|
1489
|
+
}
|
|
1252
1490
|
|
|
1253
1491
|
styles += strings[i];
|
|
1254
1492
|
}
|
|
1255
1493
|
}
|
|
1256
1494
|
|
|
1495
|
+
var sourceMap;
|
|
1496
|
+
|
|
1497
|
+
if ("development" !== 'production') {
|
|
1498
|
+
styles = styles.replace(sourceMapPattern, function (match) {
|
|
1499
|
+
sourceMap = match;
|
|
1500
|
+
return '';
|
|
1501
|
+
});
|
|
1502
|
+
} // using a global regex with .exec is stateful so lastIndex has to be reset each time
|
|
1503
|
+
|
|
1257
1504
|
|
|
1258
1505
|
labelPattern.lastIndex = 0;
|
|
1259
1506
|
var identifierName = '';
|
|
@@ -1266,6 +1513,19 @@ var serializeStyles = function serializeStyles(args, registered, mergedProps) {
|
|
|
1266
1513
|
|
|
1267
1514
|
var name = murmur2(styles) + identifierName;
|
|
1268
1515
|
|
|
1516
|
+
if ("development" !== 'production') {
|
|
1517
|
+
// $FlowFixMe SerializedStyles type doesn't have toString property (and we don't want to add it)
|
|
1518
|
+
return {
|
|
1519
|
+
name: name,
|
|
1520
|
+
styles: styles,
|
|
1521
|
+
map: sourceMap,
|
|
1522
|
+
next: cursor,
|
|
1523
|
+
toString: function toString() {
|
|
1524
|
+
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
1525
|
+
}
|
|
1526
|
+
};
|
|
1527
|
+
}
|
|
1528
|
+
|
|
1269
1529
|
return {
|
|
1270
1530
|
name: name,
|
|
1271
1531
|
styles: styles,
|
|
@@ -1333,6 +1593,9 @@ var createEmotion = function createEmotion(options) {
|
|
|
1333
1593
|
var cache = createCache(options); // $FlowFixMe
|
|
1334
1594
|
|
|
1335
1595
|
cache.sheet.speedy = function (value) {
|
|
1596
|
+
if ("development" !== 'production' && this.ctr !== 0) {
|
|
1597
|
+
throw new Error('speedy must be changed before any rules are inserted');
|
|
1598
|
+
}
|
|
1336
1599
|
|
|
1337
1600
|
this.isSpeedy = value;
|
|
1338
1601
|
};
|
|
@@ -1451,9 +1714,18 @@ var classnames = function classnames(args) {
|
|
|
1451
1714
|
var _createEmotion = createEmotion({
|
|
1452
1715
|
key: 'css'
|
|
1453
1716
|
}),
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1717
|
+
flush = _createEmotion.flush,
|
|
1718
|
+
hydrate = _createEmotion.hydrate,
|
|
1719
|
+
cx = _createEmotion.cx,
|
|
1720
|
+
merge$1 = _createEmotion.merge,
|
|
1721
|
+
getRegisteredStyles$1 = _createEmotion.getRegisteredStyles,
|
|
1722
|
+
injectGlobal = _createEmotion.injectGlobal,
|
|
1723
|
+
keyframes = _createEmotion.keyframes,
|
|
1724
|
+
css = _createEmotion.css,
|
|
1725
|
+
sheet = _createEmotion.sheet,
|
|
1726
|
+
cache = _createEmotion.cache;
|
|
1727
|
+
|
|
1728
|
+
function i$1(){return (i$1=Object.assign||function(n){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(n[r]=o[r]);}return n}).apply(this,arguments)}function a$1(n,t){return t||(t=n.slice(0)),n.raw=t,n}var l$1,s$1,u$1,c$1=css(l$1||(l$1=a$1(['\n width: 100vw;\n height: 100vh;\n\n .story-book-outer-div {\n .story-div {\n font-family: "Arial", sans-serif;\n font-size: 12px;\n }\n padding-bottom: 500px;\n }\n\n .story-div {\n position: fixed;\n box-sizing: border-box;\n top: 0;\n width: 250px;\n height: 100vh;\n z-index: 999;\n overflow-y: scroll;\n background: white;\n margin-bottom: 32px;\n }\n\n .header {\n padding: 24px 0 16px 16px;\n margin-bottom: 24px;\n color: white;\n background: #333;\n cursor: pointer;\n\n h2 {\n letter-spacing: 3px;\n font-weight: 400;\n }\n }\n\n .parentStoryList {\n list-style: none;\n padding-left: 16px;\n\n summary {\n margin-bottom: 4px;\n }\n }\n .parentStory {\n cursor: pointer;\n }\n .parentStory.selected {\n font-weight: bold;\n }\n\n .subStory {\n font-size: 12px;\n cursor: pointer;\n line-height: 1.5em;\n margin-top: 4px;\n\n a {\n display: block;\n padding: 4px 4px 4px 16px;\n }\n }\n .subStory:hover {\n background-color: #eee;\n }\n .subStory.selected {\n background-color: lightgreen;\n }\n\n .component {\n padding: 24px 16px;\n }\n\n h4.group-header {\n margin: 8px 0;\n text-transform: uppercase;\n font-weight: 600;\n font-size: 14px;\n color: #575757;\n }\n\n .group-wrapper {\n margin-bottom: 24px;\n }\n\n .dynamic-display-wrapper {\n position: fixed;\n display: flex;\n flex-direction: column;\n bottom: 0;\n left: 100%;\n padding: 16px;\n z-index: 1000;\n background: white;\n transform: translateX(-100%);\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);\n\n & > :not(:first-child) {\n margin-top: 12px;\n }\n\n p {\n font-size: 12px;\n margin: 0;\n padding: 0;\n }\n\n .button-wrapper {\n display: flex;\n\n & > :not(:first-child) {\n margin-left: 12px;\n }\n }\n\n & button {\n border: 1px solid #eaeaea;\n background: white;\n border-radius: 4px;\n color: #777;\n padding: 4px 12px;\n justify-content: center;\n align-items: center;\n text-align: center;\n\n &.active {\n background: #555;\n border-color: #555;\n color: white;\n }\n }\n }\n'])));function d$1(n,t){var o,r=t.story.title.split("/"),e=r[1]?r[0]:"_";return i$1({},n,((o={})[e]=[].concat(n[e]||[],[{story:i$1({},t.story,{title:r[1]||r[0]}),subs:t.subs}]).sort(function(n,t){return n.story.title.localeCompare(t.story.title)}),o))}function p$1(n){return {story:n.default,subs:function(n,t){if(null==n)return {};var o,r,e={},i=Object.keys(n);for(r=0;r<i.length;r++)t.indexOf(o=i[r])>=0||(e[o]=n[o]);return e}(n,["default"])}}function f$1(n,t){var o,r;if(n){var e=decodeURIComponent(n).split("-"),i=e[1],a=e[2],l=null==t||null==(o=t[e[0]])?void 0:o.find(function(n){return n.story.title===i}),s=null==l||null==(r=l.subs)?void 0:r[a],u={key:n,story:s,parent:null==l?void 0:l.story,label:null==s?void 0:s.name};return u.key&&u.story&&u.parent&&u.label?u:void 0}}function y$1(l,y){var m=y.h,g=void 0===m?index.h:m,b=y.title,x=void 0===b?"Stencilbook":b,h=y.homepage,v=void 0===h?g("h3",null,"Select a story!"):h,w=y.addons,k=void 0===w?[]:w,S=stencilHooks_module.useMemo(function(){return l.map(p$1).reduce(d$1,{_:[]})},l),C=decodeURIComponent(window.location.hash).replace("#",""),z=stencilHooks_module.useState(f$1(C,S)),O=z[0],j=z[1],I=null==O?void 0:O.key,R=stencilHooks_module.useState(!0),U=R[0],_=R[1],B=stencilHooks_module.useState(!1),L=B[0],T=B[1],q=function(){return g("div",{class:"dynamic-display-wrapper"},g("button",{class:L?"active":"",onClick:function(){return T(function(n){return !n})}},"Toggle Dark Background"),g("button",{class:U?"active":"",onClick:function(){return _(function(n){return !n})}},"Toggle Sidebar"))},A=css(s$1||(s$1=a$1(["\n max-width: ",";\n margin-left: ",";\n "])),"1124px",U?"250px":"0px"),D=css(u$1||(u$1=a$1(["\n display: none;\n "])));document.body.style.backgroundColor=L?"#232323":"#fafafa";var N=function(n){var t=n.selected,o=k.reduce(function(n,o){return function(){return g(o,{story:i$1({},t)},g(n,null))}},null==t?void 0:t.story);return g(o,null)},P=function(){return g("div",{class:"story-book-outer-div"},g("div",{class:"story-div "+(U?"":D)},g("div",{class:"header",onClick:function(){j(void 0);}},g("h2",null,x)),g("ul",{class:"parentStoryList"},Object.keys(S).sort().map(function(n){return g("div",{class:"group-wrapper"},"_"!==n&&g("h4",{class:"group-header"},n),S[n].map(function(t){return g("li",{class:"parentStory"},g("details",{style:{marginBottom:"10px"}},g("summary",{style:{outline:"none"}},t.story.title),t.subs&&Object.keys(t.subs).map(function(o){var e=n+"-"+t.story.title+"-"+o,i=t.subs[o].storyName||lodash_startcase(o);return g("div",{class:"subStory "+(I===e?"selected":"")},g("a",{onClick:function(){return function(n){window.location.hash=encodeURIComponent(n),j(f$1(n,S));}(e)}},i))})))}))}))),g(q,null),g("div",{class:"component "+A},!I&&v,I&&g("div",null,g("h3",null,O.label),g(N,{selected:O}))))};return {class:c$1,children:g(P,null),View:P,selected:O}}
|
|
1457
1729
|
|
|
1458
1730
|
const scenario = "@author:noah\n@owner:noah\nFeature: Share Button\n\n The share button redirects users to a platform where they can share their referral link\n\n @motivating\n @ui\n Scenario Outline: Share button displays for various platforms\n Given the share button's medium prop is \"<medium>\"\n And the button's child is text saying \"BUTTON_TEXT\"\n When the share button is rendered\n Then the button has text \"BUTTON_TEXT\"\n And the button is <colour>\n And it displays an <icon> beside the text\n And clicking the button redirects to an appropriate link\n Examples:\n | medium | colour | icon |\n | facebook | #1877f2 | facebook logo |\n | twitter | #000000 | twitter x logo |\n | email | #666666 | envelope |\n | direct | brand colour | paper plane |\n | linkedin | #0077b5 | linkedIn logo |\n | sms | #34DA50 | chat bubble |\n | fbmessenger | #0084ff | messenger logo |\n | whatsapp | #25d366 | whatsapp logo |\n | linemessenger | #00B300 | linemessenger logo |\n | pinterest | #e60023 | pinterest logo |\n\n @minutia\n @ui\n Scenario Outline: Default icons can be overwritten\n Given a share button for any medium with <iconPropValue>\n When the share button is rendered\n Then it displays a <iconPropValue> instead of the share mediums default icon\n Examples:\n | iconPropValue |\n | basket |\n | bluetooth |\n | bandaid |\n\n @motivating\n @ui\n Scenario Outline: Default share medium colours can be overwritten\n Given a share button for any medium with <backgroundColourPropValue>\n When the share button is rendered\n Then the share button is <backgroundColourPropValue>\n Examples:\n | backgroundColourPropValue |\n | blue |\n | black |\n | green |\n\n @minutia\n @ui\n Scenario Outline: Share medium icons and text can be hidden\n Given a share button with <prop> <value>\n When the share button is rendered\n Then <element> is hidden\n Examples:\n | prop | value | element |\n | hideicon | true | icon |\n | hidetext | true | text |\n\n @minutia\n @ui\n Scenario Outline: Icons can be on either side of the text\n Given a share button with <iconslotPropValue>\n When the share button is rendered\n Then the icon is displayed to the <direction> of the text\n Examples:\n | iconslotPropValue | direction |\n | suffix | right |\n | prefix | left |\n | prefix | left |\n\n @minutia\n Scenario: Unsupported browsers hide native share buttons\n Given the share button's medium prop is \"direct\"\n And your browser does not support the Web Share API\n Then the share button is hidden\n\n @minutia\n Scenario: SMS share buttons are hidden on non Android and iOS devices\n Given the share button's medium is \"sms\"\n And the share button is being viewed on a device which is not an Android or iOS device\n Then the share button is hidden\n\n @motivating\n Scenario: Facebook share buttons uses SquatchAndroid sharing features\n Given the share button's medium is \"facebook\"\n And the share button is being viewed in a web view with the SquatchAndroid API\n And the Facebook app is available\n Then tapping the share button opens the phone's Facebook app\n And a share activity is opened with the share link prefilled\n\n @motivating\n Scenario: SquatchAndroid falls back to the Facebook website if no app is available\n Given the share button's medium is \"facebook\"\n And the share button is being viewed in a web view with the SquatchAndroid API\n And the Facebook app is not available\n Then tapping the share button opens the the Facebook mobile site in the device's browser\n And a share activity is opened with the share link prefilled\n\n @minutia\n Scenario: A supplied program ID is used if available\n Given the program id is supplied to the component in the \"programId\" prop\n Then the program ID in the \"programId\" prop is used to retrieve share links\n\n @minutia\n Scenario: The program ID is automatically fetched from context\n Given the program id is not supplied to the component in the \"programId\" prop\n Then the program ID is retrieved from context";
|
|
1459
1731
|
|
|
@@ -1468,37 +1740,37 @@ const WithIconPrefix = () => {
|
|
|
1468
1740
|
medium: "whatsapp",
|
|
1469
1741
|
iconslot: "prefix",
|
|
1470
1742
|
};
|
|
1471
|
-
return index.h(
|
|
1743
|
+
return index.h(useShareButton.ShareButtonView, Object.assign({}, props), "Share");
|
|
1472
1744
|
};
|
|
1473
1745
|
const WithIconSuffix = () => {
|
|
1474
1746
|
const props = { medium: "whatsapp", iconslot: "suffix" };
|
|
1475
|
-
return index.h(
|
|
1747
|
+
return index.h(useShareButton.ShareButtonView, Object.assign({}, props), "Share");
|
|
1476
1748
|
};
|
|
1477
1749
|
const WithIconOverride = () => {
|
|
1478
1750
|
const props = {
|
|
1479
1751
|
medium: "facebook",
|
|
1480
1752
|
icon: "person-badge",
|
|
1481
1753
|
};
|
|
1482
|
-
return index.h(
|
|
1754
|
+
return index.h(useShareButton.ShareButtonView, Object.assign({}, props), "Share");
|
|
1483
1755
|
};
|
|
1484
1756
|
const TextStyle = () => {
|
|
1485
1757
|
const props = {
|
|
1486
1758
|
medium: "facebook",
|
|
1487
1759
|
type: "text",
|
|
1488
1760
|
};
|
|
1489
|
-
return index.h(
|
|
1761
|
+
return index.h(useShareButton.ShareButtonView, Object.assign({}, props), "Share");
|
|
1490
1762
|
};
|
|
1491
1763
|
const WithoutIcon = () => {
|
|
1492
1764
|
const props = { medium: "facebook", hideicon: true };
|
|
1493
|
-
return index.h(
|
|
1765
|
+
return index.h(useShareButton.ShareButtonView, Object.assign({}, props), "Share");
|
|
1494
1766
|
};
|
|
1495
1767
|
const WithoutText = () => {
|
|
1496
1768
|
const props = { medium: "facebook", hidetext: true };
|
|
1497
|
-
return index.h(
|
|
1769
|
+
return index.h(useShareButton.ShareButtonView, Object.assign({}, props), "Share");
|
|
1498
1770
|
};
|
|
1499
1771
|
const TextStyleWithoutIcon = () => {
|
|
1500
1772
|
const props = { medium: "facebook", type: "text", hideicon: true };
|
|
1501
|
-
return index.h(
|
|
1773
|
+
return index.h(useShareButton.ShareButtonView, Object.assign({}, props), "Share");
|
|
1502
1774
|
};
|
|
1503
1775
|
const WithCustomColors = () => {
|
|
1504
1776
|
const props = {
|
|
@@ -1508,7 +1780,7 @@ const WithCustomColors = () => {
|
|
|
1508
1780
|
textcolor: "yellow",
|
|
1509
1781
|
iconslot: "prefix",
|
|
1510
1782
|
};
|
|
1511
|
-
return index.h(
|
|
1783
|
+
return index.h(useShareButton.ShareButtonView, Object.assign({}, props), "Facebook");
|
|
1512
1784
|
};
|
|
1513
1785
|
const WithCustomBorderRadius = () => {
|
|
1514
1786
|
const props = {
|
|
@@ -1517,7 +1789,7 @@ const WithCustomBorderRadius = () => {
|
|
|
1517
1789
|
borderradius: 8,
|
|
1518
1790
|
iconslot: "prefix",
|
|
1519
1791
|
};
|
|
1520
|
-
return index.h(
|
|
1792
|
+
return index.h(useShareButton.ShareButtonView, Object.assign({}, props), "Facebook");
|
|
1521
1793
|
};
|
|
1522
1794
|
const LinkLocationTest = () => {
|
|
1523
1795
|
const props = {
|
|
@@ -1526,7 +1798,7 @@ const LinkLocationTest = () => {
|
|
|
1526
1798
|
onClick: undefined,
|
|
1527
1799
|
messageLink: "https://www.example.com",
|
|
1528
1800
|
};
|
|
1529
|
-
return index.h(
|
|
1801
|
+
return index.h(useShareButton.ShareButtonView, Object.assign({}, props), "Click me");
|
|
1530
1802
|
};
|
|
1531
1803
|
const FullStackIcon = () => {
|
|
1532
1804
|
return (index.h("div", null,
|
|
@@ -1651,6 +1923,11 @@ const EmptyState = /*#__PURE__*/Object.freeze({
|
|
|
1651
1923
|
const Pagination_stories = {
|
|
1652
1924
|
title: "Components/Link Button",
|
|
1653
1925
|
};
|
|
1926
|
+
const defaultProps = {
|
|
1927
|
+
link: "https://example.com",
|
|
1928
|
+
openInNewTab: false,
|
|
1929
|
+
buttonText: "Button Text",
|
|
1930
|
+
};
|
|
1654
1931
|
const Default = () => {
|
|
1655
1932
|
return index.h("sqm-pagination", null);
|
|
1656
1933
|
};
|
|
@@ -1754,7 +2031,7 @@ const BigStat_stories = {
|
|
|
1754
2031
|
};
|
|
1755
2032
|
const Default$2 = () => {
|
|
1756
2033
|
const props = { value: 990000, statvalue: "9.900,00", loading: false };
|
|
1757
|
-
return index.h(
|
|
2034
|
+
return index.h(sqmBigStatView.BigStatView, Object.assign({}, props), "Big stat");
|
|
1758
2035
|
};
|
|
1759
2036
|
const LeftAlign = () => {
|
|
1760
2037
|
const props = {
|
|
@@ -1763,7 +2040,7 @@ const LeftAlign = () => {
|
|
|
1763
2040
|
alignment: "left",
|
|
1764
2041
|
loading: false,
|
|
1765
2042
|
};
|
|
1766
|
-
return index.h(
|
|
2043
|
+
return index.h(sqmBigStatView.BigStatView, Object.assign({}, props), "Big stat");
|
|
1767
2044
|
};
|
|
1768
2045
|
const RightAlign = () => {
|
|
1769
2046
|
const props = {
|
|
@@ -1772,7 +2049,7 @@ const RightAlign = () => {
|
|
|
1772
2049
|
alignment: "right",
|
|
1773
2050
|
loading: false,
|
|
1774
2051
|
};
|
|
1775
|
-
return index.h(
|
|
2052
|
+
return index.h(sqmBigStatView.BigStatView, Object.assign({}, props), "Big stat");
|
|
1776
2053
|
};
|
|
1777
2054
|
const FlexReverse = () => {
|
|
1778
2055
|
const props = {
|
|
@@ -1781,7 +2058,7 @@ const FlexReverse = () => {
|
|
|
1781
2058
|
flexReverse: true,
|
|
1782
2059
|
loading: false,
|
|
1783
2060
|
};
|
|
1784
|
-
return index.h(
|
|
2061
|
+
return index.h(sqmBigStatView.BigStatView, Object.assign({}, props), "Big stat");
|
|
1785
2062
|
};
|
|
1786
2063
|
const FlexReverseRight = () => {
|
|
1787
2064
|
const props = {
|
|
@@ -1791,7 +2068,7 @@ const FlexReverseRight = () => {
|
|
|
1791
2068
|
alignment: "right",
|
|
1792
2069
|
loading: false,
|
|
1793
2070
|
};
|
|
1794
|
-
return index.h(
|
|
2071
|
+
return index.h(sqmBigStatView.BigStatView, Object.assign({}, props), "Big stat");
|
|
1795
2072
|
};
|
|
1796
2073
|
const FlexReverseLeft = () => {
|
|
1797
2074
|
const props = {
|
|
@@ -1801,7 +2078,7 @@ const FlexReverseLeft = () => {
|
|
|
1801
2078
|
alignment: "left",
|
|
1802
2079
|
loading: false,
|
|
1803
2080
|
};
|
|
1804
|
-
return index.h(
|
|
2081
|
+
return index.h(sqmBigStatView.BigStatView, Object.assign({}, props), "Big stat");
|
|
1805
2082
|
};
|
|
1806
2083
|
const NoStatValue = () => {
|
|
1807
2084
|
const props = {
|
|
@@ -1809,7 +2086,7 @@ const NoStatValue = () => {
|
|
|
1809
2086
|
statvalue: "...",
|
|
1810
2087
|
loading: false,
|
|
1811
2088
|
};
|
|
1812
|
-
return index.h(
|
|
2089
|
+
return index.h(sqmBigStatView.BigStatView, Object.assign({}, props), "Big stat");
|
|
1813
2090
|
};
|
|
1814
2091
|
const InvalidStatValue = () => {
|
|
1815
2092
|
const props = {
|
|
@@ -1817,7 +2094,7 @@ const InvalidStatValue = () => {
|
|
|
1817
2094
|
statvalue: "!!!",
|
|
1818
2095
|
loading: false,
|
|
1819
2096
|
};
|
|
1820
|
-
return index.h(
|
|
2097
|
+
return index.h(sqmBigStatView.BigStatView, Object.assign({}, props), "Big stat");
|
|
1821
2098
|
};
|
|
1822
2099
|
const MultipleStats = () => {
|
|
1823
2100
|
return (index.h("sqm-stat-container", { space: "xxx-large", display: "flex" },
|
|
@@ -2007,6 +2284,7 @@ const defaultStyles$1 = {
|
|
|
2007
2284
|
rankSuffix: "{rank, selectordinal, one {#st} two {#nd} few {#rd} other {#th}}",
|
|
2008
2285
|
};
|
|
2009
2286
|
const link = index.h("a", null, "Support");
|
|
2287
|
+
const tag = "Contact" + link + "about upgrading your plan";
|
|
2010
2288
|
const defaultElements$1 = {
|
|
2011
2289
|
empty: (index.h("sqm-empty", { "empty-state-image": "https://res.cloudinary.com/saasquatch/image/upload/v1644360953/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" })),
|
|
2012
2290
|
};
|
|
@@ -2725,7 +3003,7 @@ function setupLoggedOut() {
|
|
|
2725
3003
|
const PortalFrame_stories = {
|
|
2726
3004
|
title: "Components/Microsite Frame",
|
|
2727
3005
|
};
|
|
2728
|
-
const defaultProps = {
|
|
3006
|
+
const defaultProps$1 = {
|
|
2729
3007
|
data: {
|
|
2730
3008
|
footer: index.h("span", null, "example@example.com"),
|
|
2731
3009
|
header: (index.h("div", { slot: "header", style: { display: "flex", flexDirection: "column" } },
|
|
@@ -2742,9 +3020,9 @@ const defaultProps = {
|
|
|
2742
3020
|
};
|
|
2743
3021
|
const FrameWithMenu = () => {
|
|
2744
3022
|
const props = {
|
|
2745
|
-
...defaultProps,
|
|
3023
|
+
...defaultProps$1,
|
|
2746
3024
|
};
|
|
2747
|
-
return (index.h(
|
|
3025
|
+
return (index.h(sqmPortalFrameView.PortalFrameView, Object.assign({}, props),
|
|
2748
3026
|
index.h("sqm-navigation-menu", { "menu-label": "Menu" },
|
|
2749
3027
|
index.h("sl-menu-item", { exportparts: "base: menuitem-base", value: "/widget" }, "Dashboard"),
|
|
2750
3028
|
index.h("sl-menu-item", { exportparts: "base: menuitem-base", value: "/editProfile" }, "Edit Profile"),
|
|
@@ -2753,9 +3031,9 @@ const FrameWithMenu = () => {
|
|
|
2753
3031
|
};
|
|
2754
3032
|
const FrameWithoutMenu = () => {
|
|
2755
3033
|
const props = {
|
|
2756
|
-
...defaultProps,
|
|
3034
|
+
...defaultProps$1,
|
|
2757
3035
|
};
|
|
2758
|
-
return index.h(
|
|
3036
|
+
return index.h(sqmPortalFrameView.PortalFrameView, Object.assign({}, props));
|
|
2759
3037
|
};
|
|
2760
3038
|
const FullStackFrame = () => {
|
|
2761
3039
|
var _a;
|
|
@@ -2820,7 +3098,7 @@ const PortalFrame = /*#__PURE__*/Object.freeze({
|
|
|
2820
3098
|
const EditProfileForm_stories = {
|
|
2821
3099
|
title: "Components/Edit Profile Form",
|
|
2822
3100
|
};
|
|
2823
|
-
const defaultProps$
|
|
3101
|
+
const defaultProps$2 = {
|
|
2824
3102
|
states: {
|
|
2825
3103
|
loading: false,
|
|
2826
3104
|
submitDisabled: false,
|
|
@@ -2863,15 +3141,15 @@ const defaultProps$1 = {
|
|
|
2863
3141
|
},
|
|
2864
3142
|
};
|
|
2865
3143
|
const EditProfileFormDisabled = () => {
|
|
2866
|
-
const props = defaultProps$
|
|
2867
|
-
return index.h(
|
|
3144
|
+
const props = defaultProps$2;
|
|
3145
|
+
return index.h(sqmEditProfileView.EditProfileView, Object.assign({}, props));
|
|
2868
3146
|
};
|
|
2869
3147
|
const EditProfileFormEnabled = () => {
|
|
2870
3148
|
const props = {
|
|
2871
|
-
...defaultProps$
|
|
2872
|
-
states: { ...defaultProps$
|
|
3149
|
+
...defaultProps$2,
|
|
3150
|
+
states: { ...defaultProps$2.states, showEdit: true },
|
|
2873
3151
|
};
|
|
2874
|
-
return index.h(
|
|
3152
|
+
return index.h(sqmEditProfileView.EditProfileView, Object.assign({}, props));
|
|
2875
3153
|
};
|
|
2876
3154
|
const FullStackFrameWithMenu = () => {
|
|
2877
3155
|
return (index.h("sqm-edit-profile", { editprofileheader: "Edit Profile", editprofiletext: "Update your profile.", firstnametext: "Bill", lastnametext: "Bob", canceltext: "Cancel", updatetext: "Update", currentregiontext: "Current Region", showregion: true }));
|
|
@@ -2912,7 +3190,7 @@ function setupGraphQL$1() {
|
|
|
2912
3190
|
}
|
|
2913
3191
|
const BareBonesView = createHookStory(() => {
|
|
2914
3192
|
setupGraphQL$1();
|
|
2915
|
-
const res =
|
|
3193
|
+
const res = useShareLink.useShareLink({
|
|
2916
3194
|
programId: "klip-referral-program",
|
|
2917
3195
|
tooltiplifespan: 0,
|
|
2918
3196
|
tooltiptext: "",
|
|
@@ -2924,7 +3202,7 @@ const BareBonesView = createHookStory(() => {
|
|
|
2924
3202
|
});
|
|
2925
3203
|
const RegularView = createHookStory(() => {
|
|
2926
3204
|
setupGraphQL$1();
|
|
2927
|
-
return (index.h(copyTextView.CopyTextView, Object.assign({},
|
|
3205
|
+
return (index.h(copyTextView.CopyTextView, Object.assign({}, useShareLink.useShareLink({
|
|
2928
3206
|
programId: "klip-referral-program",
|
|
2929
3207
|
tooltiptext: "Copied to clipboard",
|
|
2930
3208
|
tooltiplifespan: 1000,
|
|
@@ -2932,7 +3210,7 @@ const RegularView = createHookStory(() => {
|
|
|
2932
3210
|
});
|
|
2933
3211
|
const FastTooltip = createHookStory(() => {
|
|
2934
3212
|
setupGraphQL$1();
|
|
2935
|
-
return (index.h(copyTextView.CopyTextView, Object.assign({},
|
|
3213
|
+
return (index.h(copyTextView.CopyTextView, Object.assign({}, useShareLink.useShareLink({
|
|
2936
3214
|
programId: "klip-referral-program",
|
|
2937
3215
|
tooltiptext: "⠀⠀⠀⠀⠀⠀⠀⠀⠀HELLO THERE!!!\n⠀⠀⠀⡯⡯⡾⠝⠘⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢊⠘⡮⣣⠪⠢⡑⡌\n⠀⠀⠀⠟⠝⠈⠀⠀⠀⠡⠀⠠⢈⠠⢐⢠⢂⢔⣐⢄⡂⢔⠀⡁⢉⠸⢨⢑⠕⡌\n⠀⠀⡀⠁⠀⠀⠀⡀⢂⠡⠈⡔⣕⢮⣳⢯⣿⣻⣟⣯⣯⢷⣫⣆⡂⠀⠀⢐⠑⡌\n⢀⠠⠐⠈⠀⢀⢂⠢⡂⠕⡁⣝⢮⣳⢽⡽⣾⣻⣿⣯⡯⣟⣞⢾⢜⢆⠀⡀⠀⠪\n⣬⠂⠀⠀⢀⢂⢪⠨⢂⠥⣺⡪⣗⢗⣽⢽⡯⣿⣽⣷⢿⡽⡾⡽⣝⢎⠀⠀⠀⢡\n⣿⠀⠀⠀⢂⠢⢂⢥⢱⡹⣪⢞⡵⣻⡪⡯⡯⣟⡾⣿⣻⡽⣯⡻⣪⠧⠑⠀⠁⢐\n⣿⠀⠀⠀⠢⢑⠠⠑⠕⡝⡎⡗⡝⡎⣞⢽⡹⣕⢯⢻⠹⡹⢚⠝⡷⡽⡨⠀⠀⢔\n⣿⡯⠀⢈⠈⢄⠂⠂⠐⠀⠌⠠⢑⠱⡱⡱⡑⢔⠁⠀⡀⠐⠐⠐⡡⡹⣪⠀⠀⢘\n⣿⣽⠀⡀⡊⠀⠐⠨⠈⡁⠂⢈⠠⡱⡽⣷⡑⠁⠠⠑⠀⢉⢇⣤⢘⣪⢽⠀⢌⢎\n⣿⢾⠀⢌⠌⠀⡁⠢⠂⠐⡀⠀⢀⢳⢽⣽⡺⣨⢄⣑⢉⢃⢭⡲⣕⡭⣹⠠⢐⢗\n⣿⡗⠀⠢⠡⡱⡸⣔⢵⢱⢸⠈⠀⡪⣳⣳⢹⢜⡵⣱⢱⡱⣳⡹⣵⣻⢔⢅⢬⡷\n⣷⡇⡂⠡⡑⢕⢕⠕⡑⠡⢂⢊⢐⢕⡝⡮⡧⡳⣝⢴⡐⣁⠃⡫⡒⣕⢏⡮⣷⡟\n⣷⣻⣅⠑⢌⠢⠁⢐⠠⠑⡐⠐⠌⡪⠮⡫⠪⡪⡪⣺⢸⠰⠡⠠⠐⢱⠨⡪⡪⡰\n⣯⢷⣟⣇⡂⡂⡌⡀⠀⠁⡂⠅⠂⠀⡑⡄⢇⠇⢝⡨⡠⡁⢐⠠⢀⢪⡐⡜⡪⡊\n⣿⢽⡾⢹⡄⠕⡅⢇⠂⠑⣴⡬⣬⣬⣆⢮⣦⣷⣵⣷⡗⢃⢮⠱⡸⢰⢱⢸⢨⢌\n⣯⢯⣟⠸⣳⡅⠜⠔⡌⡐⠈⠻⠟⣿⢿⣿⣿⠿⡻⣃⠢⣱⡳⡱⡩⢢⠣⡃⠢⠁\n⡯⣟⣞⡇⡿⣽⡪⡘⡰⠨⢐⢀⠢⢢⢄⢤⣰⠼⡾⢕⢕⡵⣝⠎⢌⢪⠪⡘⡌⠀\n⡯⣳⠯⠚⢊⠡⡂⢂⠨⠊⠔⡑⠬⡸⣘⢬⢪⣪⡺⡼⣕⢯⢞⢕⢝⠎⢻⢼⣀⠀\n⠁⡂⠔⡁⡢⠣⢀⠢⠀⠅⠱⡐⡱⡘⡔⡕⡕⣲⡹⣎⡮⡏⡑⢜⢼⡱⢩⣗⣯⣟\n⢀⢂⢑⠀⡂⡃⠅⠊⢄⢑⠠⠑⢕⢕⢝⢮⢺⢕⢟⢮⢊⢢⢱⢄⠃⣇⣞⢞⣞⢾\n⢀⠢⡑⡀⢂⢊⠠⠁⡂⡐⠀⠅⡈⠪⠪⠪⠣⠫⠑⡁⢔⠕⣜⣜⢦⡰⡎⡯⡾⡽",
|
|
2938
3216
|
tooltiplifespan: 500,
|
|
@@ -2976,11 +3254,11 @@ const BareBonesView$1 = createHookStory(() => {
|
|
|
2976
3254
|
setupGraphQL$2();
|
|
2977
3255
|
const programId = "sam-partner-test-2";
|
|
2978
3256
|
const res = [
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
3257
|
+
useShareButton.useShareButton({ programId, medium: "facebook" }),
|
|
3258
|
+
useShareButton.useShareButton({ programId, medium: "twitter" }),
|
|
3259
|
+
useShareButton.useShareButton({ programId, medium: "email" }),
|
|
3260
|
+
useShareButton.useShareButton({ programId, medium: "direct" }),
|
|
3261
|
+
useShareButton.useShareButton({ programId, medium: "sms" }),
|
|
2984
3262
|
];
|
|
2985
3263
|
return (index.h("div", null, res.map((r) => (index.h("div", null,
|
|
2986
3264
|
index.h("button", { onClick: r.onClick },
|
|
@@ -3048,7 +3326,7 @@ const View = (statType, format, label) => {
|
|
|
3048
3326
|
};
|
|
3049
3327
|
const DemoView = () => {
|
|
3050
3328
|
const [type, setType] = stencilHooks_module.useState("/someRandomThing/with/someArguments/1234");
|
|
3051
|
-
const { props, label } =
|
|
3329
|
+
const { props, label } = useDemoBigStat.useDemoBigStat({
|
|
3052
3330
|
statType: type,
|
|
3053
3331
|
render: () => { },
|
|
3054
3332
|
disconnectedCallback: () => { },
|
|
@@ -3061,7 +3339,7 @@ const DemoView = () => {
|
|
|
3061
3339
|
index.h("input", { style: { width: "300px" }, type: "text", value: type, onInput: (e) => setType(e.target.value) })),
|
|
3062
3340
|
index.h("hr", null),
|
|
3063
3341
|
index.h("div", null,
|
|
3064
|
-
index.h(
|
|
3342
|
+
index.h(sqmBigStatView.BigStatView, Object.assign({}, props), label))));
|
|
3065
3343
|
};
|
|
3066
3344
|
const Demo = createHookStory(DemoView);
|
|
3067
3345
|
const ReferralsCount = createHookStory(() => View("/referralsCount", "/(referralsCount)/:status?"));
|
|
@@ -3574,6 +3852,12 @@ const DefaultView = (props) => {
|
|
|
3574
3852
|
};
|
|
3575
3853
|
const RewardList = createHookStory(() => {
|
|
3576
3854
|
setupGraphQL$6();
|
|
3855
|
+
const props = {
|
|
3856
|
+
listType: "",
|
|
3857
|
+
render: () => { },
|
|
3858
|
+
disconnectedCallback: () => { },
|
|
3859
|
+
ignored: true,
|
|
3860
|
+
};
|
|
3577
3861
|
return (index.h("sqm-reward-exchange-list", { "list-type": "something" }));
|
|
3578
3862
|
});
|
|
3579
3863
|
const FixedGlobalReward = createHookStory(() => {
|
|
@@ -3681,6 +3965,14 @@ function setupGraphQLKlip({ token, id }) {
|
|
|
3681
3965
|
return { id, accountId };
|
|
3682
3966
|
}
|
|
3683
3967
|
const RewardTableDemoHook = createHookStory(() => {
|
|
3968
|
+
// setupGraphQL();
|
|
3969
|
+
// setProgramId("sam-partner-test-2");
|
|
3970
|
+
const props = {
|
|
3971
|
+
listType: "",
|
|
3972
|
+
render: () => { },
|
|
3973
|
+
disconnectedCallback: () => { },
|
|
3974
|
+
ignored: true,
|
|
3975
|
+
};
|
|
3684
3976
|
return (index.h("sqm-rewards-table", { "per-page": "4" },
|
|
3685
3977
|
index.h("sqm-rewards-table-reward-column", null),
|
|
3686
3978
|
index.h("sqm-rewards-table-source-column", null),
|
|
@@ -3690,6 +3982,12 @@ const RewardTableDemoHook = createHookStory(() => {
|
|
|
3690
3982
|
const RewardsTableWithProgram = createHookStory(() => {
|
|
3691
3983
|
setupGraphQL$7();
|
|
3692
3984
|
index_module.setProgramId("sam-partner-test-2");
|
|
3985
|
+
const props = {
|
|
3986
|
+
listType: "",
|
|
3987
|
+
render: () => { },
|
|
3988
|
+
disconnectedCallback: () => { },
|
|
3989
|
+
ignored: true,
|
|
3990
|
+
};
|
|
3693
3991
|
return (index.h("sqm-rewards-table", null,
|
|
3694
3992
|
index.h("sqm-rewards-table-reward-column", null),
|
|
3695
3993
|
index.h("sqm-rewards-table-status-column", null),
|
|
@@ -3699,6 +3997,12 @@ const RewardsTableWithProgram = createHookStory(() => {
|
|
|
3699
3997
|
const RewardsTableNoProgram = createHookStory(() => {
|
|
3700
3998
|
setupGraphQL$7();
|
|
3701
3999
|
index_module.setProgramId(undefined);
|
|
4000
|
+
const props = {
|
|
4001
|
+
listType: "",
|
|
4002
|
+
render: () => { },
|
|
4003
|
+
disconnectedCallback: () => { },
|
|
4004
|
+
ignored: true,
|
|
4005
|
+
};
|
|
3702
4006
|
return (index.h("sqm-rewards-table", null,
|
|
3703
4007
|
index.h("sqm-rewards-table-reward-column", null),
|
|
3704
4008
|
index.h("sqm-rewards-table-status-column", null),
|
|
@@ -3711,6 +4015,12 @@ const RewardsTableEn = createHookStory(() => {
|
|
|
3711
4015
|
id: "samenglish",
|
|
3712
4016
|
});
|
|
3713
4017
|
index_module.setProgramId(undefined);
|
|
4018
|
+
const props = {
|
|
4019
|
+
listType: "",
|
|
4020
|
+
render: () => { },
|
|
4021
|
+
disconnectedCallback: () => { },
|
|
4022
|
+
ignored: true,
|
|
4023
|
+
};
|
|
3714
4024
|
return (index.h("sqm-rewards-table", { "per-page": "4" },
|
|
3715
4025
|
index.h("sqm-rewards-table-reward-column", null),
|
|
3716
4026
|
index.h("sqm-rewards-table-status-column", null),
|
|
@@ -3723,6 +4033,12 @@ const RewardsTableTr = createHookStory(() => {
|
|
|
3723
4033
|
id: "samturkey",
|
|
3724
4034
|
});
|
|
3725
4035
|
index_module.setProgramId(undefined);
|
|
4036
|
+
const props = {
|
|
4037
|
+
listType: "",
|
|
4038
|
+
render: () => { },
|
|
4039
|
+
disconnectedCallback: () => { },
|
|
4040
|
+
ignored: true,
|
|
4041
|
+
};
|
|
3726
4042
|
return (index.h("sqm-rewards-table", { "per-page": "4", "more-label": "Daha", "prev-label": "\u00D6ncesi", "empty-state-text": "Hen\u00FCz Referans Yok" },
|
|
3727
4043
|
index.h("sqm-rewards-table-reward-column", { "column-title": "\u00D6d\u00FCller", "redeemed-text": "{redeemedAmount} kullan\u0131ld\u0131", "available-text": "{availableAmount} mevcut" }),
|
|
3728
4044
|
index.h("sqm-rewards-table-source-column", { "column-title": "Kullan\u0131c\u0131lar", "anonymous-user": "Anonim Kullan\u0131c\u0131", "deleted-user": "Silinmi\u015F Kullan\u0131c\u0131", "reward-exchange-text": "\u00D6d\u00FClleri Kulann\u0131n", "referral-text": "{rewardSource, select, FRIEND_SIGNUP {Referans} REFERRED {Y\u00F6nlendiren} other {}}", "reward-source-text": "{rewardSource, select, MANUAL {Manuel} AUTOMATED {Otomatik} other {}}" }),
|
|
@@ -3735,6 +4051,12 @@ const RewardsTableFr = createHookStory(() => {
|
|
|
3735
4051
|
id: "samfrench",
|
|
3736
4052
|
});
|
|
3737
4053
|
index_module.setProgramId(undefined);
|
|
4054
|
+
const props = {
|
|
4055
|
+
listType: "",
|
|
4056
|
+
render: () => { },
|
|
4057
|
+
disconnectedCallback: () => { },
|
|
4058
|
+
ignored: true,
|
|
4059
|
+
};
|
|
3738
4060
|
return (index.h("sqm-rewards-table", { "per-page": "4", "more-label": "Plus", "prev-label": "Pr\u00E9c\u00E9dent", "empty-state-text": "Aucune R\u00E9compenses Maintenant" },
|
|
3739
4061
|
index.h("sqm-rewards-table-reward-column", { "column-title": "R\u00E9compenses", "redeemed-text": "{redeemedAmount} rachet\u00E9e", "available-text": "{availableAmount} disponible" }),
|
|
3740
4062
|
index.h("sqm-rewards-table-source-column", { "column-title": "Utilisateur", "anonymous-user": "Utilisateur Anonyme", "deleted-user": "Utilisateur Supprim\u00E9", "reward-exchange-text": "\u00C9change de R\u00E9compenses", "referral-text": "{rewardSource, select, FRIEND_SIGNUP {R\u00E9f\u00E9rence \u00E0} REFERRED {R\u00E9f\u00E9renc\u00E9 par} other {}}", "reward-source-text": "{rewardSource, select, MANUAL {Manuel} AUTOMATED {Automatique} other {}}" }),
|
|
@@ -3782,10 +4104,22 @@ function setupGraphQL$8() {
|
|
|
3782
4104
|
}
|
|
3783
4105
|
const TaskCard = createHookStory(() => {
|
|
3784
4106
|
setupGraphQL$8();
|
|
4107
|
+
const props = {
|
|
4108
|
+
listType: "",
|
|
4109
|
+
render: () => { },
|
|
4110
|
+
disconnectedCallback: () => { },
|
|
4111
|
+
ignored: true,
|
|
4112
|
+
};
|
|
3785
4113
|
return (index.h("sqm-task-card", { "card-title": "Comment on 5 articles", "button-text": "Start reading", goal: 5, steps: true, "show-progress-bar": true, "event-key": "testEvent", "open-new-tab": true }));
|
|
3786
4114
|
});
|
|
3787
4115
|
const TaskCardFeed = createHookStory(() => {
|
|
3788
4116
|
setupGraphQL$8();
|
|
4117
|
+
const props = {
|
|
4118
|
+
listType: "",
|
|
4119
|
+
render: () => { },
|
|
4120
|
+
disconnectedCallback: () => { },
|
|
4121
|
+
ignored: true,
|
|
4122
|
+
};
|
|
3789
4123
|
return (index.h("sqm-card-feed", null,
|
|
3790
4124
|
index.h("sqm-task-card", { "reward-amount": "75", "card-title": "Refer a Friend", description: "Invite a friend to Klip and get 75 points when they signup for a free trial or contact our us about an enterprise license.", "button-text": "Start referring", "button-link": "https://klip-staging.vercel.app/app/klip-rewards", goal: 1, repeatable: true, "completed-text": "", demoData: "", "ended-message": "", "event-key": "", "expiry-message": "", "progress-bar-unit": "", "reward-duration": "2022-01-04T08:00:00.000Z/2022-01-20T08:00:00.000Z", "reward-unit": "", "starts-on-message": "", "stat-type": "", "display-duration": "2022-01-04T08:00:00.000Z/2022-01-05T08:00:00.000Z" }),
|
|
3791
4125
|
index.h("sqb-program-section", { "program-id": "klip-loyalty" },
|
|
@@ -3821,8 +4155,8 @@ const style = {
|
|
|
3821
4155
|
"text-decoration": "underline",
|
|
3822
4156
|
},
|
|
3823
4157
|
};
|
|
3824
|
-
const sheet = JSS.createStyleSheet(style);
|
|
3825
|
-
const styleString = sheet.toString();
|
|
4158
|
+
const sheet$1 = JSS.createStyleSheet(style);
|
|
4159
|
+
const styleString = sheet$1.toString();
|
|
3826
4160
|
const item1Props = {
|
|
3827
4161
|
states: {
|
|
3828
4162
|
active: false,
|
|
@@ -3907,7 +4241,7 @@ const Dashboard = () => {
|
|
|
3907
4241
|
index.h(Sidebar, null),
|
|
3908
4242
|
index.h("sqm-divided-layout", { direction: "column" },
|
|
3909
4243
|
index.h(sqmPortalContainerView.PortalContainerView, Object.assign({}, { direction: "column", padding: "xxx-large", gap: "xxx-large" }),
|
|
3910
|
-
index.h(
|
|
4244
|
+
index.h(sqmPortalSectionView.PortalSectionView, Object.assign({}, {
|
|
3911
4245
|
labelMargin: "xx-small",
|
|
3912
4246
|
padding: "none",
|
|
3913
4247
|
label: (index.h("sqm-text", null,
|
|
@@ -3915,13 +4249,13 @@ const Dashboard = () => {
|
|
|
3915
4249
|
content: (index.h("sqm-text", null,
|
|
3916
4250
|
index.h("h1", null, "John Smith"))),
|
|
3917
4251
|
})),
|
|
3918
|
-
index.h(
|
|
3919
|
-
index.h(
|
|
3920
|
-
index.h(
|
|
3921
|
-
index.h(
|
|
3922
|
-
index.h(
|
|
4252
|
+
index.h(sqmStatContainerView.StatContainerView, Object.assign({}, { space: "64px" }),
|
|
4253
|
+
index.h(sqmBigStatView.BigStatView, Object.assign({}, { statvalue: "2,345", value: 234500, loading: false }), "Clicks"),
|
|
4254
|
+
index.h(sqmBigStatView.BigStatView, Object.assign({}, { statvalue: "58", value: 58, loading: false }), "Referrals"),
|
|
4255
|
+
index.h(sqmBigStatView.BigStatView, Object.assign({}, { statvalue: "$10,540", value: 1054000, loading: false }), "Earned"),
|
|
4256
|
+
index.h(sqmBigStatView.BigStatView, Object.assign({}, { statvalue: "$2,305", value: 230500, loading: false }), "Awaiting Payout"))),
|
|
3923
4257
|
index.h(sqmPortalContainerView.PortalContainerView, Object.assign({}, { direction: "column", padding: "xxx-large", gap: "xxx-large" }),
|
|
3924
|
-
index.h(
|
|
4258
|
+
index.h(sqmPortalSectionView.PortalSectionView, Object.assign({}, {
|
|
3925
4259
|
labelMargin: "x-large",
|
|
3926
4260
|
padding: "none",
|
|
3927
4261
|
label: (index.h("sqm-text", null,
|
|
@@ -3929,21 +4263,21 @@ const Dashboard = () => {
|
|
|
3929
4263
|
content: (index.h("sqm-text", null,
|
|
3930
4264
|
index.h("p", null, "Get rewarded for referring potential customers to MyCompany. Earn commission for each successful lead you send our way"))),
|
|
3931
4265
|
})),
|
|
3932
|
-
index.h(
|
|
4266
|
+
index.h(sqmPortalSectionView.PortalSectionView, Object.assign({}, {
|
|
3933
4267
|
labelMargin: "small",
|
|
3934
4268
|
padding: "none",
|
|
3935
4269
|
label: (index.h("sqm-text", null,
|
|
3936
4270
|
index.h("h3", null, "Share your referral link"))),
|
|
3937
4271
|
content: index.h(copyTextView.CopyTextView, Object.assign({}, sharelinkProps)),
|
|
3938
4272
|
})),
|
|
3939
|
-
index.h(
|
|
4273
|
+
index.h(sqmPortalSectionView.PortalSectionView, Object.assign({}, {
|
|
3940
4274
|
labelMargin: "small",
|
|
3941
4275
|
padding: "none",
|
|
3942
4276
|
label: (index.h("sqm-text", null,
|
|
3943
4277
|
index.h("h3", null, "Share your referral code"))),
|
|
3944
4278
|
content: index.h(copyTextView.CopyTextView, Object.assign({}, sharecodeProps)),
|
|
3945
4279
|
})),
|
|
3946
|
-
index.h(
|
|
4280
|
+
index.h(sqmPortalSectionView.PortalSectionView, Object.assign({}, {
|
|
3947
4281
|
labelMargin: "small",
|
|
3948
4282
|
padding: "none",
|
|
3949
4283
|
label: (index.h("sqm-text", null,
|
|
@@ -3954,9 +4288,9 @@ const Dashboard = () => {
|
|
|
3954
4288
|
gap: "xxx-large",
|
|
3955
4289
|
minWidth: "150px",
|
|
3956
4290
|
}),
|
|
3957
|
-
index.h(
|
|
3958
|
-
index.h(
|
|
3959
|
-
index.h(
|
|
4291
|
+
index.h(useShareButton.ShareButtonView, Object.assign({}, twitterButtonProps), "Post about us on X"),
|
|
4292
|
+
index.h(useShareButton.ShareButtonView, Object.assign({}, facebookButtonProps), "Share on Facebook"),
|
|
4293
|
+
index.h(useShareButton.ShareButtonView, Object.assign({}, linkedinButtonProps), "Post on Linkedin"))),
|
|
3960
4294
|
}))))));
|
|
3961
4295
|
};
|
|
3962
4296
|
const EditProfile$1 = () => {
|
|
@@ -4000,7 +4334,7 @@ const EditProfile$1 = () => {
|
|
|
4000
4334
|
onChange: (e) => console.log(e),
|
|
4001
4335
|
},
|
|
4002
4336
|
})),
|
|
4003
|
-
index.h(
|
|
4337
|
+
index.h(sqmPortalChangePasswordView.PortalChangePasswordView, Object.assign({}, {
|
|
4004
4338
|
states: {
|
|
4005
4339
|
open: true,
|
|
4006
4340
|
error: "",
|
|
@@ -4029,7 +4363,7 @@ const Commissions = () => {
|
|
|
4029
4363
|
index.h(Sidebar, null),
|
|
4030
4364
|
index.h("sqm-divided-layout", { direction: "column" },
|
|
4031
4365
|
index.h(sqmPortalContainerView.PortalContainerView, Object.assign({}, { direction: "column", padding: "xxx-large", gap: "xxx-large" }),
|
|
4032
|
-
index.h(
|
|
4366
|
+
index.h(sqmPortalSectionView.PortalSectionView, Object.assign({}, {
|
|
4033
4367
|
labelMargin: "xx-small",
|
|
4034
4368
|
padding: "none",
|
|
4035
4369
|
label: (index.h("sqm-text", null,
|
|
@@ -4038,15 +4372,15 @@ const Commissions = () => {
|
|
|
4038
4372
|
index.h("p", null,
|
|
4039
4373
|
"for the",
|
|
4040
4374
|
" ",
|
|
4041
|
-
index.h("span", { class: sheet.classes.HeaderSubtitleBold }, "Partner Program #1"),
|
|
4375
|
+
index.h("span", { class: sheet$1.classes.HeaderSubtitleBold }, "Partner Program #1"),
|
|
4042
4376
|
" ",
|
|
4043
4377
|
"program"))),
|
|
4044
4378
|
})),
|
|
4045
|
-
index.h(
|
|
4046
|
-
index.h(
|
|
4047
|
-
index.h(
|
|
4048
|
-
index.h(
|
|
4049
|
-
index.h(
|
|
4379
|
+
index.h(sqmStatContainerView.StatContainerView, Object.assign({}, { space: "64px" }),
|
|
4380
|
+
index.h(sqmBigStatView.BigStatView, Object.assign({}, { statvalue: "$ 1,000", value: 100000, loading: false }), "Total Earned"),
|
|
4381
|
+
index.h(sqmBigStatView.BigStatView, Object.assign({}, { statvalue: "$ 800", value: 80000, loading: false }), "Available"),
|
|
4382
|
+
index.h(sqmBigStatView.BigStatView, Object.assign({}, { statvalue: "$ 180", value: 18000, loading: false }), "Pending"),
|
|
4383
|
+
index.h(sqmBigStatView.BigStatView, Object.assign({}, { statvalue: "$ 20", value: 2000, loading: false }), "Redeemed"))))));
|
|
4050
4384
|
};
|
|
4051
4385
|
const Activity = () => {
|
|
4052
4386
|
return (index.h("sqm-divided-layout", { direction: "row" },
|
|
@@ -4054,7 +4388,7 @@ const Activity = () => {
|
|
|
4054
4388
|
index.h(Sidebar, null),
|
|
4055
4389
|
index.h("sqm-divided-layout", { direction: "column" },
|
|
4056
4390
|
index.h(sqmPortalContainerView.PortalContainerView, Object.assign({}, { direction: "column", padding: "xxx-large", gap: "xxx-large" }),
|
|
4057
|
-
index.h(
|
|
4391
|
+
index.h(sqmPortalSectionView.PortalSectionView, Object.assign({}, {
|
|
4058
4392
|
labelMargin: "xx-small",
|
|
4059
4393
|
padding: "none",
|
|
4060
4394
|
label: (index.h("sqm-text", null,
|
|
@@ -4063,30 +4397,30 @@ const Activity = () => {
|
|
|
4063
4397
|
index.h("p", null,
|
|
4064
4398
|
"for the",
|
|
4065
4399
|
" ",
|
|
4066
|
-
index.h("span", { class: sheet.classes.HeaderSubtitleBold }, "Partner Program #1"),
|
|
4400
|
+
index.h("span", { class: sheet$1.classes.HeaderSubtitleBold }, "Partner Program #1"),
|
|
4067
4401
|
" ",
|
|
4068
4402
|
"program"))),
|
|
4069
4403
|
})),
|
|
4070
|
-
index.h(
|
|
4404
|
+
index.h(sqmPortalSectionView.PortalSectionView, Object.assign({}, {
|
|
4071
4405
|
labelMargin: "x-large",
|
|
4072
4406
|
padding: "none",
|
|
4073
4407
|
label: (index.h("sqm-text", null,
|
|
4074
4408
|
index.h("h3", null, "Referral Activity"))),
|
|
4075
|
-
content: (index.h(
|
|
4076
|
-
index.h(
|
|
4077
|
-
index.h(
|
|
4078
|
-
index.h(
|
|
4079
|
-
index.h(
|
|
4409
|
+
content: (index.h(sqmStatContainerView.StatContainerView, Object.assign({}, { space: "64px" }),
|
|
4410
|
+
index.h(sqmBigStatView.BigStatView, Object.assign({}, { statvalue: "1,000", value: 100000, loading: false }), "Total Referrals"),
|
|
4411
|
+
index.h(sqmBigStatView.BigStatView, Object.assign({}, { statvalue: "800", value: 800, loading: false }), "Converted"),
|
|
4412
|
+
index.h(sqmBigStatView.BigStatView, Object.assign({}, { statvalue: "180", value: 180, loading: false }), "Pending"),
|
|
4413
|
+
index.h(sqmBigStatView.BigStatView, Object.assign({}, { statvalue: "20", value: 20, loading: false }), "Disqualified"))),
|
|
4080
4414
|
}))),
|
|
4081
|
-
index.h(
|
|
4415
|
+
index.h(sqmPortalSectionView.PortalSectionView, Object.assign({}, {
|
|
4082
4416
|
labelMargin: "x-large",
|
|
4083
4417
|
padding: "xxx-large",
|
|
4084
4418
|
label: (index.h("sqm-text", null,
|
|
4085
4419
|
index.h("h3", null, "Traffic Generated"))),
|
|
4086
|
-
content: (index.h(
|
|
4087
|
-
index.h(
|
|
4088
|
-
index.h(
|
|
4089
|
-
index.h(
|
|
4420
|
+
content: (index.h(sqmStatContainerView.StatContainerView, Object.assign({}, { space: "64px" }),
|
|
4421
|
+
index.h(sqmBigStatView.BigStatView, Object.assign({}, { statvalue: "1,000", value: 1000, loading: false }), "Clicks"),
|
|
4422
|
+
index.h(sqmBigStatView.BigStatView, Object.assign({}, { statvalue: "800", value: 800, loading: false }), "From share link"),
|
|
4423
|
+
index.h(sqmBigStatView.BigStatView, Object.assign({}, { statvalue: "180", value: 180, loading: false }), "From share mediums"))),
|
|
4090
4424
|
})))));
|
|
4091
4425
|
};
|
|
4092
4426
|
|
|
@@ -4162,8 +4496,11 @@ var marked = stencilHooks_module.createCommonjsModule(function (module, exports)
|
|
|
4162
4496
|
*/
|
|
4163
4497
|
|
|
4164
4498
|
(function (global, factory) {
|
|
4165
|
-
|
|
4166
|
-
|
|
4499
|
+
'object' === 'object' && 'object' !== 'undefined' ? module.exports = factory() :
|
|
4500
|
+
typeof undefined === 'function' && undefined.amd ? undefined(factory) :
|
|
4501
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.marked = factory());
|
|
4502
|
+
}(stencilHooks_module.commonjsGlobal, (function () { 'use strict';
|
|
4503
|
+
|
|
4167
4504
|
function _defineProperties(target, props) {
|
|
4168
4505
|
for (var i = 0; i < props.length; i++) {
|
|
4169
4506
|
var descriptor = props[i];
|
|
@@ -7246,6 +7583,20 @@ const NavigationSidebar_stories = {
|
|
|
7246
7583
|
title: "Components/Navigation Sidebar",
|
|
7247
7584
|
};
|
|
7248
7585
|
const DefaultNavigationSidebar = () => {
|
|
7586
|
+
const barProps = {
|
|
7587
|
+
data: {
|
|
7588
|
+
programs: [
|
|
7589
|
+
{
|
|
7590
|
+
key: "program1",
|
|
7591
|
+
label: "My Referral Program",
|
|
7592
|
+
},
|
|
7593
|
+
{
|
|
7594
|
+
key: "program2",
|
|
7595
|
+
label: "My Rewards Program",
|
|
7596
|
+
},
|
|
7597
|
+
],
|
|
7598
|
+
},
|
|
7599
|
+
};
|
|
7249
7600
|
const item1Props = {
|
|
7250
7601
|
states: {
|
|
7251
7602
|
active: false,
|
|
@@ -7280,7 +7631,7 @@ const NavigationSidebar = /*#__PURE__*/Object.freeze({
|
|
|
7280
7631
|
const PortalLogin_stories = {
|
|
7281
7632
|
title: "Components/Microsite Login",
|
|
7282
7633
|
};
|
|
7283
|
-
const defaultProps$
|
|
7634
|
+
const defaultProps$3 = {
|
|
7284
7635
|
states: {
|
|
7285
7636
|
error: "",
|
|
7286
7637
|
loading: false,
|
|
@@ -7325,8 +7676,8 @@ const loadingProps = {
|
|
|
7325
7676
|
pageLabel: "Sign in to your account",
|
|
7326
7677
|
},
|
|
7327
7678
|
};
|
|
7328
|
-
const Default$3 = () => (index.h("sqm-portal-login", { demoData: { ...defaultProps$
|
|
7329
|
-
const IsGoogle = () => (index.h(sqmPortalLoginView.PortalLoginView, Object.assign({}, defaultProps$
|
|
7679
|
+
const Default$3 = () => (index.h("sqm-portal-login", { demoData: { ...defaultProps$3 } }));
|
|
7680
|
+
const IsGoogle = () => (index.h(sqmPortalLoginView.PortalLoginView, Object.assign({}, defaultProps$3, { content: {
|
|
7330
7681
|
secondaryButton: (index.h("span", null,
|
|
7331
7682
|
"Don't have an account?",
|
|
7332
7683
|
" ",
|
|
@@ -7348,7 +7699,7 @@ const PortalLogin = /*#__PURE__*/Object.freeze({
|
|
|
7348
7699
|
const PortalRegister_stories = {
|
|
7349
7700
|
title: "Components/Microsite Register",
|
|
7350
7701
|
};
|
|
7351
|
-
const defaultProps$
|
|
7702
|
+
const defaultProps$4 = {
|
|
7352
7703
|
states: {
|
|
7353
7704
|
registrationFormState: {},
|
|
7354
7705
|
error: "",
|
|
@@ -7443,9 +7794,9 @@ const slottedProps = {
|
|
|
7443
7794
|
index.h("sl-input", { exportparts: "label: input-label, base: input-base", label: "Slotted Input 2", required: true }))),
|
|
7444
7795
|
},
|
|
7445
7796
|
};
|
|
7446
|
-
const Default$4 = () => index.h(
|
|
7447
|
-
const RegisterWithError = () => index.h(
|
|
7448
|
-
const RegisterLoading = () => index.h(
|
|
7797
|
+
const Default$4 = () => index.h(sqmPortalRegisterView.PortalRegisterView, Object.assign({}, defaultProps$4));
|
|
7798
|
+
const RegisterWithError = () => index.h(sqmPortalRegisterView.PortalRegisterView, Object.assign({}, errorProps$1));
|
|
7799
|
+
const RegisterLoading = () => index.h(sqmPortalRegisterView.PortalRegisterView, Object.assign({}, loadingProps$1));
|
|
7449
7800
|
const FieldsHidden = () => {
|
|
7450
7801
|
return (index.h("sqm-portal-register", { demoData: {
|
|
7451
7802
|
states: {
|
|
@@ -7458,9 +7809,9 @@ const FieldsHidden = () => {
|
|
|
7458
7809
|
},
|
|
7459
7810
|
} }));
|
|
7460
7811
|
};
|
|
7461
|
-
const SlottedInputs = () => index.h(
|
|
7462
|
-
const TermsAndConditions = () => (index.h(
|
|
7463
|
-
...defaultProps$
|
|
7812
|
+
const SlottedInputs = () => index.h(sqmPortalRegisterView.PortalRegisterView, Object.assign({}, slottedProps));
|
|
7813
|
+
const TermsAndConditions = () => (index.h(sqmPortalRegisterView.PortalRegisterView, Object.assign({}, defaultProps$4, { content: {
|
|
7814
|
+
...defaultProps$4.content,
|
|
7464
7815
|
terms: (index.h("p", null,
|
|
7465
7816
|
"By signing up you agree to the",
|
|
7466
7817
|
" ",
|
|
@@ -7481,7 +7832,7 @@ const PortalRegister = /*#__PURE__*/Object.freeze({
|
|
|
7481
7832
|
const PortalRegistrationForm_stories = {
|
|
7482
7833
|
title: "Components/Microsite Portal Register",
|
|
7483
7834
|
};
|
|
7484
|
-
const defaultProps$
|
|
7835
|
+
const defaultProps$5 = {
|
|
7485
7836
|
states: {
|
|
7486
7837
|
error: "",
|
|
7487
7838
|
loading: false,
|
|
@@ -7558,7 +7909,7 @@ const slottedProps$1 = {
|
|
|
7558
7909
|
index.h("sl-input", { exportparts: "label: input-label, base: input-base", label: "Slotted Input 2", required: true }))),
|
|
7559
7910
|
},
|
|
7560
7911
|
};
|
|
7561
|
-
const Default$5 = () => index.h(sqmPortalRegistrationFormView.PortalRegistrationFormView, Object.assign({}, defaultProps$
|
|
7912
|
+
const Default$5 = () => index.h(sqmPortalRegistrationFormView.PortalRegistrationFormView, Object.assign({}, defaultProps$5));
|
|
7562
7913
|
const RegisterWithError$1 = () => (index.h(sqmPortalRegistrationFormView.PortalRegistrationFormView, Object.assign({}, errorProps$2)));
|
|
7563
7914
|
const RegisterLoading$1 = () => (index.h(sqmPortalRegistrationFormView.PortalRegistrationFormView, Object.assign({}, loadingProps$2)));
|
|
7564
7915
|
const FieldsHidden$1 = () => {
|
|
@@ -7574,12 +7925,12 @@ const FieldsHidden$1 = () => {
|
|
|
7574
7925
|
} }));
|
|
7575
7926
|
};
|
|
7576
7927
|
const SlottedInputs$1 = () => (index.h(sqmPortalRegistrationFormView.PortalRegistrationFormView, Object.assign({}, slottedProps$1)));
|
|
7577
|
-
const RegisterWithMarketingEmailsCheckbox = () => (index.h(sqmPortalRegistrationFormView.PortalRegistrationFormView, Object.assign({}, defaultProps$
|
|
7578
|
-
...defaultProps$
|
|
7928
|
+
const RegisterWithMarketingEmailsCheckbox = () => (index.h(sqmPortalRegistrationFormView.PortalRegistrationFormView, Object.assign({}, defaultProps$5, { content: {
|
|
7929
|
+
...defaultProps$5.content,
|
|
7579
7930
|
emailOptIn: (index.h("sqm-checkbox-field", { checkboxLabel: "I would like to receive marketing and promotional emails for this referral program" })),
|
|
7580
7931
|
} })));
|
|
7581
|
-
const TermsAndConditions$1 = () => (index.h(sqmPortalRegistrationFormView.PortalRegistrationFormView, Object.assign({}, defaultProps$
|
|
7582
|
-
...defaultProps$
|
|
7932
|
+
const TermsAndConditions$1 = () => (index.h(sqmPortalRegistrationFormView.PortalRegistrationFormView, Object.assign({}, defaultProps$5, { content: {
|
|
7933
|
+
...defaultProps$5.content,
|
|
7583
7934
|
terms: (index.h("p", null,
|
|
7584
7935
|
"By signing up you agree to the",
|
|
7585
7936
|
" ",
|
|
@@ -7606,7 +7957,7 @@ const PortalForgotPassword_stories = {
|
|
|
7606
7957
|
scenario: scenario$6,
|
|
7607
7958
|
},
|
|
7608
7959
|
};
|
|
7609
|
-
const defaultProps$
|
|
7960
|
+
const defaultProps$6 = {
|
|
7610
7961
|
states: {
|
|
7611
7962
|
error: "",
|
|
7612
7963
|
loading: false,
|
|
@@ -7666,7 +8017,7 @@ const successProps = {
|
|
|
7666
8017
|
messageSlot: "Enter your email below to receive a password reset link.",
|
|
7667
8018
|
},
|
|
7668
8019
|
};
|
|
7669
|
-
const Default$6 = () => index.h(sqmPortalForgotPasswordView.PortalForgotPasswordView, Object.assign({}, defaultProps$
|
|
8020
|
+
const Default$6 = () => index.h(sqmPortalForgotPasswordView.PortalForgotPasswordView, Object.assign({}, defaultProps$6));
|
|
7670
8021
|
const ForgotPasswordWithError = () => (index.h(sqmPortalForgotPasswordView.PortalForgotPasswordView, Object.assign({}, errorProps$3)));
|
|
7671
8022
|
const ForgotPasswordLoading = () => (index.h(sqmPortalForgotPasswordView.PortalForgotPasswordView, Object.assign({}, loadingProps$3)));
|
|
7672
8023
|
const ForgotPasswordSuccess = () => (index.h(sqmPortalForgotPasswordView.PortalForgotPasswordView, Object.assign({}, successProps)));
|
|
@@ -7707,7 +8058,7 @@ const defaultStates = {
|
|
|
7707
8058
|
loadingVerification: false,
|
|
7708
8059
|
countdown: 10,
|
|
7709
8060
|
};
|
|
7710
|
-
const defaultProps$
|
|
8061
|
+
const defaultProps$7 = {
|
|
7711
8062
|
states: defaultStates,
|
|
7712
8063
|
callbacks: defaultCallbacks,
|
|
7713
8064
|
content: defaultContent,
|
|
@@ -7745,7 +8096,7 @@ const loadingVerificationProps = {
|
|
|
7745
8096
|
callbacks: defaultCallbacks,
|
|
7746
8097
|
content: defaultContent,
|
|
7747
8098
|
};
|
|
7748
|
-
const Default$7 = () => index.h(sqmPortalEmailVerificationView.PortalEmailVerificationView, Object.assign({}, defaultProps$
|
|
8099
|
+
const Default$7 = () => index.h(sqmPortalEmailVerificationView.PortalEmailVerificationView, Object.assign({}, defaultProps$7));
|
|
7749
8100
|
const EmailVerificationWithError = () => (index.h(sqmPortalEmailVerificationView.PortalEmailVerificationView, Object.assign({}, errorProps$4)));
|
|
7750
8101
|
const EmailVerificationLoading = () => (index.h(sqmPortalEmailVerificationView.PortalEmailVerificationView, Object.assign({}, loadingProps$4)));
|
|
7751
8102
|
const EmailVerificationCheckingVerification = () => (index.h(sqmPortalEmailVerificationView.PortalEmailVerificationView, Object.assign({}, loadingVerificationProps)));
|
|
@@ -7769,7 +8120,7 @@ const PortalResetPassword_stories = {
|
|
|
7769
8120
|
scenario: scenario$8,
|
|
7770
8121
|
},
|
|
7771
8122
|
};
|
|
7772
|
-
const defaultProps$
|
|
8123
|
+
const defaultProps$8 = {
|
|
7773
8124
|
states: {
|
|
7774
8125
|
error: "",
|
|
7775
8126
|
loading: false,
|
|
@@ -7907,7 +8258,7 @@ const validatingCodeProps = {
|
|
|
7907
8258
|
failed: () => console.log("failed"),
|
|
7908
8259
|
},
|
|
7909
8260
|
};
|
|
7910
|
-
const Default$8 = () => index.h(sqmPortalResetPasswordView.PortalResetPasswordView, Object.assign({}, defaultProps$
|
|
8261
|
+
const Default$8 = () => index.h(sqmPortalResetPasswordView.PortalResetPasswordView, Object.assign({}, defaultProps$8));
|
|
7911
8262
|
const DefaultWithoutConfirmField = () => (index.h(sqmPortalResetPasswordView.PortalResetPasswordView, Object.assign({}, defaultPropsNoConfirm)));
|
|
7912
8263
|
const ResetPasswordWithError = () => (index.h(sqmPortalResetPasswordView.PortalResetPasswordView, Object.assign({}, errorProps$5)));
|
|
7913
8264
|
const ResetPasswordLoading = () => (index.h(sqmPortalResetPasswordView.PortalResetPasswordView, Object.assign({}, loadingProps$5)));
|
|
@@ -8045,7 +8396,7 @@ const Row = () => {
|
|
|
8045
8396
|
return (index.h("sqm-divided-layout", { direction: "row" },
|
|
8046
8397
|
index.h(Sidebar$1, null),
|
|
8047
8398
|
index.h("div", { style: { padding: "48px" } },
|
|
8048
|
-
index.h(
|
|
8399
|
+
index.h(sqmPortalSectionView.PortalSectionView, Object.assign({}, {
|
|
8049
8400
|
labelMargin: "xx-small",
|
|
8050
8401
|
padding: "none",
|
|
8051
8402
|
label: (index.h("sqm-text", null,
|
|
@@ -8058,7 +8409,7 @@ const Column = () => {
|
|
|
8058
8409
|
return (index.h("sqm-divided-layout", { direction: "column" },
|
|
8059
8410
|
index.h(Sidebar$1, null),
|
|
8060
8411
|
index.h("div", { style: { padding: "48px" } },
|
|
8061
|
-
index.h(
|
|
8412
|
+
index.h(sqmPortalSectionView.PortalSectionView, Object.assign({}, {
|
|
8062
8413
|
labelMargin: "xx-small",
|
|
8063
8414
|
padding: "none",
|
|
8064
8415
|
label: (index.h("sqm-text", null,
|
|
@@ -8071,7 +8422,7 @@ const ColumnCustomDivider = () => {
|
|
|
8071
8422
|
return (index.h("sqm-divided-layout", { direction: "column", dividerStyle: "1px solid red" },
|
|
8072
8423
|
index.h(Sidebar$1, null),
|
|
8073
8424
|
index.h("div", { style: { padding: "48px" } },
|
|
8074
|
-
index.h(
|
|
8425
|
+
index.h(sqmPortalSectionView.PortalSectionView, Object.assign({}, {
|
|
8075
8426
|
labelMargin: "xx-small",
|
|
8076
8427
|
padding: "none",
|
|
8077
8428
|
label: (index.h("sqm-text", null,
|
|
@@ -8097,7 +8448,7 @@ const ChangePassword_stories = {
|
|
|
8097
8448
|
scenario: scenario$a,
|
|
8098
8449
|
},
|
|
8099
8450
|
};
|
|
8100
|
-
const defaultProps$
|
|
8451
|
+
const defaultProps$9 = {
|
|
8101
8452
|
states: {
|
|
8102
8453
|
open: false,
|
|
8103
8454
|
loading: false,
|
|
@@ -8229,12 +8580,12 @@ const successProps$3 = {
|
|
|
8229
8580
|
submit: (e) => console.log("Submit", e),
|
|
8230
8581
|
},
|
|
8231
8582
|
};
|
|
8232
|
-
const Default$a = () => index.h(
|
|
8233
|
-
const Open = () => index.h(
|
|
8234
|
-
const Error$2 = () => index.h(
|
|
8235
|
-
const PaswordError = () => (index.h(
|
|
8236
|
-
const Loading$1 = () => index.h(
|
|
8237
|
-
const Success = () => index.h(
|
|
8583
|
+
const Default$a = () => index.h(sqmPortalChangePasswordView.PortalChangePasswordView, Object.assign({}, defaultProps$9));
|
|
8584
|
+
const Open = () => index.h(sqmPortalChangePasswordView.PortalChangePasswordView, Object.assign({}, openProps));
|
|
8585
|
+
const Error$2 = () => index.h(sqmPortalChangePasswordView.PortalChangePasswordView, Object.assign({}, errorProps$7));
|
|
8586
|
+
const PaswordError = () => (index.h(sqmPortalChangePasswordView.PortalChangePasswordView, Object.assign({}, passwordErrorProps)));
|
|
8587
|
+
const Loading$1 = () => index.h(sqmPortalChangePasswordView.PortalChangePasswordView, Object.assign({}, loadingProps$6));
|
|
8588
|
+
const Success = () => index.h(sqmPortalChangePasswordView.PortalChangePasswordView, Object.assign({}, successProps$3));
|
|
8238
8589
|
|
|
8239
8590
|
const ChangePassword = /*#__PURE__*/Object.freeze({
|
|
8240
8591
|
__proto__: null,
|
|
@@ -8250,7 +8601,7 @@ const ChangePassword = /*#__PURE__*/Object.freeze({
|
|
|
8250
8601
|
const ChangeMarketing_stories = {
|
|
8251
8602
|
title: "Components/Change Marketing Emails Status",
|
|
8252
8603
|
};
|
|
8253
|
-
const defaultProps$
|
|
8604
|
+
const defaultProps$a = {
|
|
8254
8605
|
states: {
|
|
8255
8606
|
success: false,
|
|
8256
8607
|
loading: false,
|
|
@@ -8281,21 +8632,21 @@ const Default$b = () => {
|
|
|
8281
8632
|
return index.h("sqm-portal-change-marketing", null);
|
|
8282
8633
|
};
|
|
8283
8634
|
const Loading$2 = () => {
|
|
8284
|
-
return (index.h(
|
|
8635
|
+
return (index.h(sqmPortalChangeMarketingView.ChangeMarktingView, Object.assign({}, defaultProps$a, { states: { ...defaultProps$a.states, loading: true } })));
|
|
8285
8636
|
};
|
|
8286
8637
|
const Error$3 = () => {
|
|
8287
|
-
return (index.h(
|
|
8288
|
-
...defaultProps$
|
|
8638
|
+
return (index.h(sqmPortalChangeMarketingView.ChangeMarktingView, Object.assign({}, defaultProps$a, { states: {
|
|
8639
|
+
...defaultProps$a.states,
|
|
8289
8640
|
formState: {
|
|
8290
|
-
...defaultProps$
|
|
8641
|
+
...defaultProps$a.states.formState,
|
|
8291
8642
|
errors: { error: true },
|
|
8292
8643
|
error: "An error string",
|
|
8293
8644
|
},
|
|
8294
8645
|
} })));
|
|
8295
8646
|
};
|
|
8296
8647
|
const Success$1 = () => {
|
|
8297
|
-
return (index.h(
|
|
8298
|
-
...defaultProps$
|
|
8648
|
+
return (index.h(sqmPortalChangeMarketingView.ChangeMarktingView, Object.assign({}, defaultProps$a, { states: {
|
|
8649
|
+
...defaultProps$a.states,
|
|
8299
8650
|
success: true,
|
|
8300
8651
|
} })));
|
|
8301
8652
|
};
|
|
@@ -8312,7 +8663,7 @@ const ChangeMarketing = /*#__PURE__*/Object.freeze({
|
|
|
8312
8663
|
const PortalProfile_stories = {
|
|
8313
8664
|
title: "Components/Microsite Profile",
|
|
8314
8665
|
};
|
|
8315
|
-
const defaultProps$
|
|
8666
|
+
const defaultProps$b = {
|
|
8316
8667
|
states: {
|
|
8317
8668
|
success: false,
|
|
8318
8669
|
loading: false,
|
|
@@ -8528,7 +8879,7 @@ const successProps$4 = {
|
|
|
8528
8879
|
onChange: (e) => console.log(e),
|
|
8529
8880
|
},
|
|
8530
8881
|
};
|
|
8531
|
-
const Default$c = () => index.h(sqmPortalProfileView.PortalProfileView, Object.assign({}, defaultProps$
|
|
8882
|
+
const Default$c = () => index.h(sqmPortalProfileView.PortalProfileView, Object.assign({}, defaultProps$b));
|
|
8532
8883
|
const DefaultNoCountry = () => index.h(sqmPortalProfileView.PortalProfileView, Object.assign({}, noCountry));
|
|
8533
8884
|
const Loading$3 = () => index.h(sqmPortalProfileView.PortalProfileView, Object.assign({}, loadingProps$7));
|
|
8534
8885
|
const Disabled$1 = () => index.h(sqmPortalProfileView.PortalProfileView, Object.assign({}, disabledProps));
|
|
@@ -9917,116 +10268,116 @@ const TaskCard$1 = () => {
|
|
|
9917
10268
|
return (index.h("div", { style: storyFrame },
|
|
9918
10269
|
index.h(Resizer, null,
|
|
9919
10270
|
index.h("h4", null, "Not Repeatable"),
|
|
9920
|
-
index.h(
|
|
10271
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction, { content: { ...oneAction.content, description: "" }, states: { ...oneAction.states, progress: 0 } })),
|
|
9921
10272
|
index.h("h5", null),
|
|
9922
|
-
index.h(
|
|
10273
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions, { content: { ...coupleActions.content, description: "" }, states: { ...coupleActions.states, progress: 0 } })),
|
|
9923
10274
|
index.h("h5", null),
|
|
9924
|
-
index.h(
|
|
10275
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions, { content: { ...manyActions.content, description: "" }, states: { ...manyActions.states, progress: 230 } }))),
|
|
9925
10276
|
index.h(Resizer, null,
|
|
9926
10277
|
index.h("h4", null, "Repeatable"),
|
|
9927
|
-
index.h(
|
|
10278
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction, { content: { ...oneAction.content, repeatable: true }, states: { ...oneAction.states, progress: 2 } })),
|
|
9928
10279
|
index.h("h5", null),
|
|
9929
|
-
index.h(
|
|
10280
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions, { content: { ...coupleActions.content, repeatable: true }, states: { ...coupleActions.states, progress: 7 } })),
|
|
9930
10281
|
index.h("h5", null),
|
|
9931
|
-
index.h(
|
|
10282
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions, { content: { ...manyActions.content, repeatable: true }, states: { ...manyActions.states, progress: 650 } }))),
|
|
9932
10283
|
index.h(Resizer, null,
|
|
9933
10284
|
index.h("h4", null, "Complete"),
|
|
9934
|
-
index.h(
|
|
10285
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction, { states: { ...oneAction.states, progress: 1 } })),
|
|
9935
10286
|
index.h("h5", null),
|
|
9936
|
-
index.h(
|
|
10287
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions, { states: { ...coupleActions.states, progress: 5 } })),
|
|
9937
10288
|
index.h("h5", null),
|
|
9938
|
-
index.h(
|
|
10289
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions, { states: { ...manyActions.states, progress: 500 } }))),
|
|
9939
10290
|
index.h(Resizer, null,
|
|
9940
10291
|
index.h("h4", null, "Unavailable"),
|
|
9941
|
-
index.h(
|
|
10292
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction, { states: { ...oneAction.states, progress: 0 } }, expireRepeat)),
|
|
9942
10293
|
index.h("h5", null),
|
|
9943
|
-
index.h(
|
|
10294
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions, { states: { ...coupleActions.states, progress: 3 } }, expireRepeat)),
|
|
9944
10295
|
index.h("h5", null),
|
|
9945
|
-
index.h(
|
|
10296
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions, { states: { ...manyActions.states, progress: 250 } }, expireRepeat)))));
|
|
9946
10297
|
};
|
|
9947
10298
|
const TaskCardNotRepeatable = () => {
|
|
9948
10299
|
return (index.h("div", { style: storyFrame },
|
|
9949
10300
|
index.h("div", { style: resizable },
|
|
9950
10301
|
index.h("h4", null, "One Action"),
|
|
9951
|
-
index.h(
|
|
10302
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction, { states: { ...oneAction.states, progress: 0 } })),
|
|
9952
10303
|
index.h("h5", null),
|
|
9953
|
-
index.h(
|
|
10304
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction, { states: { ...oneAction.states, progress: 1 } })),
|
|
9954
10305
|
index.h("h5", null)),
|
|
9955
10306
|
index.h("div", { style: resizable },
|
|
9956
10307
|
index.h("h4", null, "A Couple Actions"),
|
|
9957
|
-
index.h(
|
|
10308
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions, { states: { ...coupleActions.states, progress: 1 } })),
|
|
9958
10309
|
index.h("h5", null),
|
|
9959
|
-
index.h(
|
|
10310
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions, { states: { ...coupleActions.states, progress: 5 } })),
|
|
9960
10311
|
index.h("h5", null)),
|
|
9961
10312
|
index.h("div", { style: resizable },
|
|
9962
10313
|
index.h("h4", null, "Many Actions"),
|
|
9963
|
-
index.h(
|
|
10314
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions, { states: { ...manyActions.states, progress: 230 } })),
|
|
9964
10315
|
index.h("h5", null),
|
|
9965
|
-
index.h(
|
|
10316
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions, { states: { ...manyActions.states, progress: 500 } })),
|
|
9966
10317
|
index.h("h5", null))));
|
|
9967
10318
|
};
|
|
9968
10319
|
const TaskCardRepeatable = () => {
|
|
9969
10320
|
return (index.h("div", { style: storyFrame },
|
|
9970
10321
|
index.h("div", { style: resizable },
|
|
9971
10322
|
index.h("h4", null, "One Action"),
|
|
9972
|
-
index.h(
|
|
10323
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction, { content: { ...oneAction.content, repeatable: true }, states: { ...oneAction.states, progress: 0 } })),
|
|
9973
10324
|
index.h("h5", null),
|
|
9974
|
-
index.h(
|
|
10325
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction, { content: { ...oneAction.content, repeatable: true }, states: { ...oneAction.states, progress: 1 } })),
|
|
9975
10326
|
index.h("h5", null)),
|
|
9976
10327
|
index.h("div", { style: resizable },
|
|
9977
10328
|
index.h("h4", null, "A Couple Actions"),
|
|
9978
|
-
index.h(
|
|
10329
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions, { content: { ...coupleActions.content, repeatable: true }, states: { ...coupleActions.states, progress: 0 } })),
|
|
9979
10330
|
index.h("h5", null),
|
|
9980
|
-
index.h(
|
|
10331
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions, { content: { ...coupleActions.content, repeatable: true }, states: { ...coupleActions.states, progress: 5 } })),
|
|
9981
10332
|
index.h("h5", null),
|
|
9982
|
-
index.h(
|
|
10333
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions, { content: { ...coupleActions.content, repeatable: true }, states: { ...coupleActions.states, progress: 7 } })),
|
|
9983
10334
|
index.h("h5", null),
|
|
9984
|
-
index.h(
|
|
10335
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions, { content: { ...coupleActions.content, repeatable: true }, states: { ...coupleActions.states, progress: 10 } })),
|
|
9985
10336
|
index.h("h5", null)),
|
|
9986
10337
|
index.h("div", { style: resizable },
|
|
9987
10338
|
index.h("h4", null, "Many Actions"),
|
|
9988
|
-
index.h(
|
|
10339
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions, { content: { ...manyActions.content, repeatable: true }, states: { ...manyActions.states, progress: 0 } })),
|
|
9989
10340
|
index.h("h5", null),
|
|
9990
|
-
index.h(
|
|
10341
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions, { content: { ...manyActions.content, repeatable: true }, states: { ...manyActions.states, progress: 500 } })),
|
|
9991
10342
|
index.h("h5", null),
|
|
9992
|
-
index.h(
|
|
10343
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions, { content: { ...manyActions.content, repeatable: true }, states: { ...manyActions.states, progress: 650 } })),
|
|
9993
10344
|
index.h("h5", null),
|
|
9994
|
-
index.h(
|
|
10345
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions, { content: { ...manyActions.content, repeatable: true }, states: { ...manyActions.states, progress: 1000 } })),
|
|
9995
10346
|
index.h("h5", null))));
|
|
9996
10347
|
};
|
|
9997
10348
|
const TaskCardRepeatableFinite = () => {
|
|
9998
10349
|
return (index.h("div", { style: storyFrame },
|
|
9999
10350
|
index.h("div", { style: resizable },
|
|
10000
10351
|
index.h("h4", null, "One Action"),
|
|
10001
|
-
index.h(
|
|
10352
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction, { content: { ...oneAction.content, repeatable: true, finite: 2 }, states: { ...oneAction.states, progress: 0 } })),
|
|
10002
10353
|
index.h("h5", null),
|
|
10003
|
-
index.h(
|
|
10354
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction, { content: { ...oneAction.content, repeatable: true, finite: 2 }, states: { ...oneAction.states, progress: 1 } })),
|
|
10004
10355
|
index.h("h5", null),
|
|
10005
|
-
index.h(
|
|
10356
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction, { content: { ...oneAction.content, repeatable: true, finite: 2 }, states: { ...oneAction.states, progress: 2 } })),
|
|
10006
10357
|
index.h("h5", null)),
|
|
10007
10358
|
index.h("div", { style: resizable },
|
|
10008
10359
|
index.h("h4", null, "A Couple Actions"),
|
|
10009
|
-
index.h(
|
|
10360
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions, { content: { ...coupleActions.content, repeatable: true, finite: 2 }, states: { ...coupleActions.states, progress: 2 } })),
|
|
10010
10361
|
index.h("h5", null),
|
|
10011
|
-
index.h(
|
|
10362
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions, { content: { ...coupleActions.content, repeatable: true, finite: 2 }, states: { ...coupleActions.states, progress: 5 } })),
|
|
10012
10363
|
index.h("h5", null),
|
|
10013
|
-
index.h(
|
|
10364
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions, { content: { ...coupleActions.content, repeatable: true, finite: 2 }, states: { ...coupleActions.states, progress: 10 } })),
|
|
10014
10365
|
index.h("h5", null),
|
|
10015
|
-
index.h(
|
|
10366
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions, { content: { ...coupleActions.content, repeatable: true, finite: 3 }, states: { ...coupleActions.states, progress: 12 } })),
|
|
10016
10367
|
index.h("h5", null),
|
|
10017
|
-
index.h(
|
|
10368
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions, { content: { ...coupleActions.content, repeatable: true, finite: 3 }, states: { ...coupleActions.states, progress: 15 } })),
|
|
10018
10369
|
index.h("h5", null)),
|
|
10019
10370
|
index.h("div", { style: resizable },
|
|
10020
10371
|
index.h("h4", null, "Many Actions"),
|
|
10021
|
-
index.h(
|
|
10372
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions, { content: { ...manyActions.content, repeatable: true, finite: 2 }, states: { ...manyActions.states, progress: 200 } })),
|
|
10022
10373
|
index.h("h5", null),
|
|
10023
|
-
index.h(
|
|
10374
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions, { content: { ...manyActions.content, repeatable: true, finite: 3 }, states: { ...manyActions.states, progress: 500 } })),
|
|
10024
10375
|
index.h("h5", null),
|
|
10025
|
-
index.h(
|
|
10376
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions, { content: { ...manyActions.content, repeatable: true, finite: 2 }, states: { ...manyActions.states, progress: 1000 } })),
|
|
10026
10377
|
index.h("h5", null),
|
|
10027
|
-
index.h(
|
|
10378
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions, { content: { ...manyActions.content, repeatable: true, finite: 3 }, states: { ...manyActions.states, progress: 1200 } })),
|
|
10028
10379
|
index.h("h5", null),
|
|
10029
|
-
index.h(
|
|
10380
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions, { content: { ...manyActions.content, repeatable: true, finite: 3 }, states: { ...manyActions.states, progress: 1500 } })),
|
|
10030
10381
|
index.h("h5", null))));
|
|
10031
10382
|
};
|
|
10032
10383
|
const TaskCardEndDate = () => {
|
|
@@ -10039,27 +10390,27 @@ const TaskCardEndDate = () => {
|
|
|
10039
10390
|
return (index.h("div", { style: storyFrame },
|
|
10040
10391
|
index.h("div", { style: resizable },
|
|
10041
10392
|
index.h("h4", null, "One Action"),
|
|
10042
|
-
index.h(
|
|
10393
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction, { content: { ...oneAction.content, ...expire } })),
|
|
10043
10394
|
index.h("h5", null),
|
|
10044
|
-
index.h(
|
|
10395
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction, { content: { ...oneAction.content, ...expireRepeat } })),
|
|
10045
10396
|
index.h("h5", null),
|
|
10046
|
-
index.h(
|
|
10397
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction, { content: { ...oneAction.content, ...expireRepeat }, states: { ...oneAction.states, progress: 1 } })),
|
|
10047
10398
|
index.h("h5", null)),
|
|
10048
10399
|
index.h("div", { style: resizable },
|
|
10049
10400
|
index.h("h4", null, "A Couple Actions"),
|
|
10050
|
-
index.h(
|
|
10401
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction, { content: { ...coupleActions.content, ...expire } })),
|
|
10051
10402
|
index.h("h5", null),
|
|
10052
|
-
index.h(
|
|
10403
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction, { content: { ...coupleActions.content, ...expireRepeat } })),
|
|
10053
10404
|
index.h("h5", null),
|
|
10054
|
-
index.h(
|
|
10405
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction, { content: { ...coupleActions.content, ...expireRepeat }, states: { ...coupleActions.states, progress: 5 } })),
|
|
10055
10406
|
index.h("h5", null)),
|
|
10056
10407
|
index.h("div", { style: resizable },
|
|
10057
10408
|
index.h("h4", null, "Many Actions"),
|
|
10058
|
-
index.h(
|
|
10409
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction, { content: { ...manyActions.content, ...expire } })),
|
|
10059
10410
|
index.h("h5", null),
|
|
10060
|
-
index.h(
|
|
10411
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction, { content: { ...manyActions.content, ...expireRepeat } })),
|
|
10061
10412
|
index.h("h5", null),
|
|
10062
|
-
index.h(
|
|
10413
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction, { content: { ...manyActions.content, ...expireRepeat }, states: { ...manyActions.states, progress: 1000 } })),
|
|
10063
10414
|
index.h("h5", null))));
|
|
10064
10415
|
};
|
|
10065
10416
|
const TaskCardLoading = () => {
|
|
@@ -10069,26 +10420,26 @@ const TaskCardLoading = () => {
|
|
|
10069
10420
|
return (index.h("div", { style: storyFrame },
|
|
10070
10421
|
index.h("div", { style: resizable },
|
|
10071
10422
|
index.h("h4", null, "One Action"),
|
|
10072
|
-
index.h(
|
|
10423
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction, loading)),
|
|
10073
10424
|
" ",
|
|
10074
10425
|
index.h("h5", null),
|
|
10075
|
-
index.h(
|
|
10426
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction, loading)),
|
|
10076
10427
|
" ",
|
|
10077
10428
|
index.h("h5", null)),
|
|
10078
10429
|
index.h("div", { style: resizable },
|
|
10079
10430
|
index.h("h4", null, "A Couple Actions"),
|
|
10080
|
-
index.h(
|
|
10431
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions, loading)),
|
|
10081
10432
|
" ",
|
|
10082
10433
|
index.h("h5", null),
|
|
10083
|
-
index.h(
|
|
10434
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions, loading)),
|
|
10084
10435
|
" ",
|
|
10085
10436
|
index.h("h5", null)),
|
|
10086
10437
|
index.h("div", { style: resizable },
|
|
10087
10438
|
index.h("h4", null, "Many Actions"),
|
|
10088
|
-
index.h(
|
|
10439
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions, loading)),
|
|
10089
10440
|
" ",
|
|
10090
10441
|
index.h("h5", null),
|
|
10091
|
-
index.h(
|
|
10442
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions, loading)),
|
|
10092
10443
|
" ",
|
|
10093
10444
|
index.h("h5", null))));
|
|
10094
10445
|
};
|
|
@@ -10102,33 +10453,33 @@ const TaskCardNotStarted = () => {
|
|
|
10102
10453
|
return (index.h("div", { style: storyFrame },
|
|
10103
10454
|
index.h("div", { style: resizable },
|
|
10104
10455
|
index.h("h4", null, "One Action"),
|
|
10105
|
-
index.h(
|
|
10456
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction, { states: { ...oneAction.states, progress: 0 }, content: { ...oneAction.content, ...expire } })),
|
|
10106
10457
|
index.h("h5", null),
|
|
10107
|
-
index.h(
|
|
10458
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction, { states: { ...oneAction.states, progress: 1 }, content: { ...oneAction.content, ...expire } })),
|
|
10108
10459
|
index.h("h5", null),
|
|
10109
|
-
index.h(
|
|
10460
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction, { states: { ...oneAction.states, progress: 0 }, content: { ...oneAction.content, ...expireRepeat } })),
|
|
10110
10461
|
index.h("h5", null),
|
|
10111
|
-
index.h(
|
|
10462
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction, { states: { ...oneAction.states, progress: 1 }, content: { ...oneAction.content, ...expireRepeat } })),
|
|
10112
10463
|
index.h("h5", null)),
|
|
10113
10464
|
index.h("div", { style: resizable },
|
|
10114
10465
|
index.h("h4", null, "A Couple Actions"),
|
|
10115
|
-
index.h(
|
|
10466
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions, { states: { ...coupleActions.states, progress: 1 }, content: { ...coupleActions.content, ...expire } })),
|
|
10116
10467
|
index.h("h5", null),
|
|
10117
|
-
index.h(
|
|
10468
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions, { states: { ...coupleActions.states, progress: 1 }, content: { ...coupleActions.content, ...expire } })),
|
|
10118
10469
|
index.h("h5", null),
|
|
10119
|
-
index.h(
|
|
10470
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions, { states: { ...coupleActions.states, progress: 1 }, content: { ...coupleActions.content, ...expireRepeat } })),
|
|
10120
10471
|
index.h("h5", null),
|
|
10121
|
-
index.h(
|
|
10472
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions, { states: { ...coupleActions.states, progress: 1 }, content: { ...coupleActions.content, ...expireRepeat } })),
|
|
10122
10473
|
index.h("h5", null)),
|
|
10123
10474
|
index.h("div", { style: resizable },
|
|
10124
10475
|
index.h("h4", null, "Many Actions"),
|
|
10125
|
-
index.h(
|
|
10476
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions, { states: { ...manyActions.states, progress: 100 }, content: { ...manyActions.content, ...expire } })),
|
|
10126
10477
|
index.h("h5", null),
|
|
10127
|
-
index.h(
|
|
10478
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions, { states: { ...manyActions.states, progress: 500 }, content: { ...manyActions.content, ...expire } })),
|
|
10128
10479
|
index.h("h5", null),
|
|
10129
|
-
index.h(
|
|
10480
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions, { states: { ...manyActions.states, progress: 100 }, content: { ...manyActions.content, ...expireRepeat } })),
|
|
10130
10481
|
index.h("h5", null),
|
|
10131
|
-
index.h(
|
|
10482
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions, { states: { ...manyActions.states, progress: 500 }, content: { ...manyActions.content, ...expireRepeat } })),
|
|
10132
10483
|
index.h("h5", null))));
|
|
10133
10484
|
};
|
|
10134
10485
|
const TaskCardEnded = () => {
|
|
@@ -10141,33 +10492,33 @@ const TaskCardEnded = () => {
|
|
|
10141
10492
|
return (index.h("div", { style: storyFrame },
|
|
10142
10493
|
index.h("div", { style: resizable },
|
|
10143
10494
|
index.h("h4", null, "One Action"),
|
|
10144
|
-
index.h(
|
|
10495
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction, { states: { ...oneAction.states, progress: 0 }, content: { ...oneAction.content, ...expire } })),
|
|
10145
10496
|
index.h("h5", null),
|
|
10146
|
-
index.h(
|
|
10497
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction, { states: { ...oneAction.states, progress: 1 }, content: { ...oneAction.content, ...expire } })),
|
|
10147
10498
|
index.h("h5", null),
|
|
10148
|
-
index.h(
|
|
10499
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction, { states: { ...oneAction.states, progress: 0 }, content: { ...oneAction.content, ...expireRepeat } })),
|
|
10149
10500
|
index.h("h5", null),
|
|
10150
|
-
index.h(
|
|
10501
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction, { states: { ...oneAction.states, progress: 1 }, content: { ...oneAction.content, ...expireRepeat } })),
|
|
10151
10502
|
index.h("h5", null)),
|
|
10152
10503
|
index.h("div", { style: resizable },
|
|
10153
10504
|
index.h("h4", null, "A Couple Actions"),
|
|
10154
|
-
index.h(
|
|
10505
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions, { states: { ...coupleActions.states, progress: 1 }, content: { ...coupleActions.content, ...expire } })),
|
|
10155
10506
|
index.h("h5", null),
|
|
10156
|
-
index.h(
|
|
10507
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions, { states: { ...coupleActions.states, progress: 1 }, content: { ...coupleActions.content, ...expire } })),
|
|
10157
10508
|
index.h("h5", null),
|
|
10158
|
-
index.h(
|
|
10509
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions, { states: { ...coupleActions.states, progress: 1 }, content: { ...coupleActions.content, ...expireRepeat } })),
|
|
10159
10510
|
index.h("h5", null),
|
|
10160
|
-
index.h(
|
|
10511
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions, { states: { ...coupleActions.states, progress: 1 }, content: { ...coupleActions.content, ...expireRepeat } })),
|
|
10161
10512
|
index.h("h5", null)),
|
|
10162
10513
|
index.h("div", { style: resizable },
|
|
10163
10514
|
index.h("h4", null, "Many Actions"),
|
|
10164
|
-
index.h(
|
|
10515
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions, { states: { ...manyActions.states, progress: 100 }, content: { ...manyActions.content, ...expire } })),
|
|
10165
10516
|
index.h("h5", null),
|
|
10166
|
-
index.h(
|
|
10517
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions, { states: { ...manyActions.states, progress: 500 }, content: { ...manyActions.content, ...expire } })),
|
|
10167
10518
|
index.h("h5", null),
|
|
10168
|
-
index.h(
|
|
10519
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions, { states: { ...manyActions.states, progress: 100 }, content: { ...manyActions.content, ...expireRepeat } })),
|
|
10169
10520
|
index.h("h5", null),
|
|
10170
|
-
index.h(
|
|
10521
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions, { states: { ...manyActions.states, progress: 500 }, content: { ...manyActions.content, ...expireRepeat } })),
|
|
10171
10522
|
index.h("h5", null))));
|
|
10172
10523
|
};
|
|
10173
10524
|
const TaskCardButtonHidden = () => {
|
|
@@ -10178,48 +10529,48 @@ const TaskCardButtonHidden = () => {
|
|
|
10178
10529
|
return (index.h("div", { style: storyFrame },
|
|
10179
10530
|
index.h(Resizer, null,
|
|
10180
10531
|
index.h("h4", null, "Not Repeatable"),
|
|
10181
|
-
index.h(
|
|
10532
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction, { content: { ...oneAction.content, description: "", hideButton: true }, states: { ...oneAction.states, progress: 0 } })),
|
|
10182
10533
|
index.h("h5", null),
|
|
10183
|
-
index.h(
|
|
10534
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions, { content: {
|
|
10184
10535
|
...coupleActions.content,
|
|
10185
10536
|
description: "",
|
|
10186
10537
|
hideButton: true,
|
|
10187
10538
|
}, states: { ...coupleActions.states, progress: 0 } })),
|
|
10188
10539
|
index.h("h5", null),
|
|
10189
|
-
index.h(
|
|
10540
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions, { content: {
|
|
10190
10541
|
...manyActions.content,
|
|
10191
10542
|
description: "",
|
|
10192
10543
|
hideButton: true,
|
|
10193
10544
|
}, states: { ...manyActions.states, progress: 230 } }))),
|
|
10194
10545
|
index.h(Resizer, null,
|
|
10195
10546
|
index.h("h4", null, "Repeatable"),
|
|
10196
|
-
index.h(
|
|
10547
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction, { content: { ...oneAction.content, repeatable: true, hideButton: true }, states: { ...oneAction.states, progress: 2 } })),
|
|
10197
10548
|
index.h("h5", null),
|
|
10198
|
-
index.h(
|
|
10549
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions, { content: {
|
|
10199
10550
|
...coupleActions.content,
|
|
10200
10551
|
repeatable: true,
|
|
10201
10552
|
hideButton: true,
|
|
10202
10553
|
}, states: { ...coupleActions.states, progress: 7 } })),
|
|
10203
10554
|
index.h("h5", null),
|
|
10204
|
-
index.h(
|
|
10555
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions, { content: {
|
|
10205
10556
|
...manyActions.content,
|
|
10206
10557
|
repeatable: true,
|
|
10207
10558
|
hideButton: true,
|
|
10208
10559
|
}, states: { ...manyActions.states, progress: 650 } }))),
|
|
10209
10560
|
index.h(Resizer, null,
|
|
10210
10561
|
index.h("h4", null, "Complete"),
|
|
10211
|
-
index.h(
|
|
10562
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction, { content: { ...oneAction.content, hideButton: true }, states: { ...oneAction.states, progress: 1 } })),
|
|
10212
10563
|
index.h("h5", null),
|
|
10213
|
-
index.h(
|
|
10564
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions, { content: { ...coupleActions.content, hideButton: true }, states: { ...coupleActions.states, progress: 5 } })),
|
|
10214
10565
|
index.h("h5", null),
|
|
10215
|
-
index.h(
|
|
10566
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions, { content: { ...manyActions.content, hideButton: true }, states: { ...manyActions.states, progress: 500 } }))),
|
|
10216
10567
|
index.h(Resizer, null,
|
|
10217
10568
|
index.h("h4", null, "Unavailable"),
|
|
10218
|
-
index.h(
|
|
10569
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction, { content: { ...oneAction.content, hideButton: true }, states: { ...oneAction.states, progress: 0 } }, expireRepeat)),
|
|
10219
10570
|
index.h("h5", null),
|
|
10220
|
-
index.h(
|
|
10571
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions, { content: { ...coupleActions.content, hideButton: true }, states: { ...coupleActions.states, progress: 3 } }, expireRepeat)),
|
|
10221
10572
|
index.h("h5", null),
|
|
10222
|
-
index.h(
|
|
10573
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions, { content: { ...manyActions.content, hideButton: true }, states: { ...manyActions.states, progress: 250 } }, expireRepeat)))));
|
|
10223
10574
|
};
|
|
10224
10575
|
const ProgressBar = () => {
|
|
10225
10576
|
const props = {
|
|
@@ -10228,7 +10579,7 @@ const ProgressBar = () => {
|
|
|
10228
10579
|
progressBarUnit: "$",
|
|
10229
10580
|
};
|
|
10230
10581
|
return (index.h("div", null,
|
|
10231
|
-
index.h(MatrixStory, { matrix: { progress: [0, 100, 500, 650, 1200] }, props: props, Component:
|
|
10582
|
+
index.h(MatrixStory, { matrix: { progress: [0, 100, 500, 650, 1200] }, props: props, Component: sqmTaskCardView.ProgressBarView })));
|
|
10232
10583
|
};
|
|
10233
10584
|
const ProgressBarSteps = () => {
|
|
10234
10585
|
const props = {
|
|
@@ -10237,7 +10588,7 @@ const ProgressBarSteps = () => {
|
|
|
10237
10588
|
goal: 5,
|
|
10238
10589
|
};
|
|
10239
10590
|
return (index.h("div", null,
|
|
10240
|
-
index.h(MatrixStory, { matrix: { progress: [0, 1, 5, 7, 12] }, props: props, Component:
|
|
10591
|
+
index.h(MatrixStory, { matrix: { progress: [0, 1, 5, 7, 12] }, props: props, Component: sqmTaskCardView.ProgressBarView })));
|
|
10241
10592
|
};
|
|
10242
10593
|
const ProgressBarRepeatable = () => {
|
|
10243
10594
|
const props = {
|
|
@@ -10247,7 +10598,7 @@ const ProgressBarRepeatable = () => {
|
|
|
10247
10598
|
repeatable: true,
|
|
10248
10599
|
};
|
|
10249
10600
|
return (index.h("div", null,
|
|
10250
|
-
index.h(MatrixStory, { matrix: { progress: [0, 250, 500, 750, 1000, 1250] }, props: props, Component:
|
|
10601
|
+
index.h(MatrixStory, { matrix: { progress: [0, 250, 500, 750, 1000, 1250] }, props: props, Component: sqmTaskCardView.ProgressBarView })));
|
|
10251
10602
|
};
|
|
10252
10603
|
const ProgressBarStepsRepeatable = () => {
|
|
10253
10604
|
const props = {
|
|
@@ -10257,7 +10608,7 @@ const ProgressBarStepsRepeatable = () => {
|
|
|
10257
10608
|
repeatable: true,
|
|
10258
10609
|
};
|
|
10259
10610
|
return (index.h("div", null,
|
|
10260
|
-
index.h(MatrixStory, { matrix: { progress: [0, 1, 5, 7, 12] }, props: props, Component:
|
|
10611
|
+
index.h(MatrixStory, { matrix: { progress: [0, 1, 5, 7, 12] }, props: props, Component: sqmTaskCardView.ProgressBarView })));
|
|
10261
10612
|
};
|
|
10262
10613
|
const ProgressBarFinite = () => {
|
|
10263
10614
|
const props = {
|
|
@@ -10268,7 +10619,7 @@ const ProgressBarFinite = () => {
|
|
|
10268
10619
|
finite: 2,
|
|
10269
10620
|
};
|
|
10270
10621
|
return (index.h("div", null,
|
|
10271
|
-
index.h(MatrixStory, { matrix: { progress: [0, 250, 500, 750, 1000, 1250] }, props: props, Component:
|
|
10622
|
+
index.h(MatrixStory, { matrix: { progress: [0, 250, 500, 750, 1000, 1250] }, props: props, Component: sqmTaskCardView.ProgressBarView })));
|
|
10272
10623
|
};
|
|
10273
10624
|
const ProgressBarStepsFinite = () => {
|
|
10274
10625
|
const props = {
|
|
@@ -10279,7 +10630,7 @@ const ProgressBarStepsFinite = () => {
|
|
|
10279
10630
|
finite: 2,
|
|
10280
10631
|
};
|
|
10281
10632
|
return (index.h("div", null,
|
|
10282
|
-
index.h(MatrixStory, { matrix: { progress: [0, 1, 5, 7, 10, 12] }, props: props, Component:
|
|
10633
|
+
index.h(MatrixStory, { matrix: { progress: [0, 1, 5, 7, 10, 12] }, props: props, Component: sqmTaskCardView.ProgressBarView })));
|
|
10283
10634
|
};
|
|
10284
10635
|
|
|
10285
10636
|
const TaskCard$2 = /*#__PURE__*/Object.freeze({
|
|
@@ -10518,13 +10869,13 @@ const PoweredByImg_stories = {
|
|
|
10518
10869
|
title: "Powered By",
|
|
10519
10870
|
};
|
|
10520
10871
|
const Default$d = () => {
|
|
10521
|
-
return index.h(
|
|
10872
|
+
return index.h(sqmPortalFooterView.PoweredByImg, null);
|
|
10522
10873
|
};
|
|
10523
10874
|
const CustomColor = () => {
|
|
10524
|
-
return index.h(
|
|
10875
|
+
return index.h(sqmPortalFooterView.PoweredByImg, { color: "salmon" });
|
|
10525
10876
|
};
|
|
10526
10877
|
const CustomWidthAndHeight = () => {
|
|
10527
|
-
return index.h(
|
|
10878
|
+
return index.h(sqmPortalFooterView.PoweredByImg, { width: 300, height: 50 });
|
|
10528
10879
|
};
|
|
10529
10880
|
|
|
10530
10881
|
const PoweredByImg = /*#__PURE__*/Object.freeze({
|
|
@@ -10543,7 +10894,7 @@ const PortalFooter_stories = {
|
|
|
10543
10894
|
scenario: scenario$f,
|
|
10544
10895
|
},
|
|
10545
10896
|
};
|
|
10546
|
-
const defaultProps$
|
|
10897
|
+
const defaultProps$c = {
|
|
10547
10898
|
supportEmail: "support@example.com",
|
|
10548
10899
|
supportText: "For program support, contact {email}",
|
|
10549
10900
|
hidePoweredBy: false,
|
|
@@ -10553,12 +10904,12 @@ const defaultProps$b = {
|
|
|
10553
10904
|
paddingBottom: "large",
|
|
10554
10905
|
paddingLeft: "large",
|
|
10555
10906
|
};
|
|
10556
|
-
const DefaultFooter = () => index.h(
|
|
10557
|
-
const FooterWithTerms = () => (index.h(
|
|
10558
|
-
const FooterWithFAQ = () => (index.h(
|
|
10559
|
-
const FooterWithTermsAndFAQ = () => (index.h(
|
|
10560
|
-
const FooterNoPoweredBy = () => (index.h(
|
|
10561
|
-
const FooterNoSupportText = () => (index.h(
|
|
10907
|
+
const DefaultFooter = () => index.h(sqmPortalFooterView.PortalFooterView, Object.assign({}, defaultProps$c));
|
|
10908
|
+
const FooterWithTerms = () => (index.h(sqmPortalFooterView.PortalFooterView, Object.assign({}, defaultProps$c, { termsLink: "https://example.com", termsText: "Terms and Conditions" })));
|
|
10909
|
+
const FooterWithFAQ = () => (index.h(sqmPortalFooterView.PortalFooterView, Object.assign({}, defaultProps$c, { faqLink: "https://example.com", faqText: "FAQ" })));
|
|
10910
|
+
const FooterWithTermsAndFAQ = () => (index.h(sqmPortalFooterView.PortalFooterView, Object.assign({}, defaultProps$c, { termsLink: "https://example.com", termsText: "Terms and Conditions", faqLink: "https://example.com", faqText: "FAQ" })));
|
|
10911
|
+
const FooterNoPoweredBy = () => (index.h(sqmPortalFooterView.PortalFooterView, Object.assign({}, defaultProps$c, { termsLink: "https://example.com", termsText: "Terms and Conditions", faqLink: "https://example.com", faqText: "FAQ", hidePoweredBy: true })));
|
|
10912
|
+
const FooterNoSupportText = () => (index.h(sqmPortalFooterView.PortalFooterView, Object.assign({}, defaultProps$c, { termsLink: "https://example.com", termsText: "Terms and Conditions", faqLink: "https://example.com", faqText: "FAQ", hideSupportText: true })));
|
|
10562
10913
|
|
|
10563
10914
|
const PortalFooter = /*#__PURE__*/Object.freeze({
|
|
10564
10915
|
__proto__: null,
|
|
@@ -10595,7 +10946,7 @@ const LoginOneColumn = () => {
|
|
|
10595
10946
|
},
|
|
10596
10947
|
};
|
|
10597
10948
|
return (index.h("div", { style: { height: "800px" } },
|
|
10598
|
-
index.h(
|
|
10949
|
+
index.h(sqmHeroView.HeroView, Object.assign({}, props))));
|
|
10599
10950
|
};
|
|
10600
10951
|
const LoginOneColumnWithMinHeight = () => {
|
|
10601
10952
|
return (index.h("sqm-hero", { background: "https://res.cloudinary.com/saasquatch/image/upload/v1683589933/Portal%20Assets/Screen-Shot-2022-01-06-at-3.23.58-AM.png", columns: 1, "padding-size": "medium", "wrap-direction": "wrap", "secondary-background": "#FFFFFF" },
|
|
@@ -10615,7 +10966,7 @@ const LoginOneColumnWithColor = () => {
|
|
|
10615
10966
|
},
|
|
10616
10967
|
};
|
|
10617
10968
|
return (index.h("div", { style: { height: "800px" } },
|
|
10618
|
-
index.h(
|
|
10969
|
+
index.h(sqmHeroView.HeroView, Object.assign({}, props))));
|
|
10619
10970
|
};
|
|
10620
10971
|
const LoginOneColumnWithImage = () => {
|
|
10621
10972
|
const props = {
|
|
@@ -10629,7 +10980,7 @@ const LoginOneColumnWithImage = () => {
|
|
|
10629
10980
|
content: { primaryColumn: index.h("sqm-portal-login", null) },
|
|
10630
10981
|
};
|
|
10631
10982
|
return (index.h("div", { style: { height: "800px" } },
|
|
10632
|
-
index.h(
|
|
10983
|
+
index.h(sqmHeroView.HeroView, Object.assign({}, props))));
|
|
10633
10984
|
};
|
|
10634
10985
|
const TwoColumnLoginLargePadding = () => {
|
|
10635
10986
|
const props = {
|
|
@@ -10649,7 +11000,7 @@ const TwoColumnLoginLargePadding = () => {
|
|
|
10649
11000
|
},
|
|
10650
11001
|
};
|
|
10651
11002
|
return (index.h("div", { style: { height: "800px" } },
|
|
10652
|
-
index.h(
|
|
11003
|
+
index.h(sqmHeroView.HeroView, Object.assign({}, props))));
|
|
10653
11004
|
};
|
|
10654
11005
|
const TwoColumnLoginMediumPadding = () => {
|
|
10655
11006
|
const props = {
|
|
@@ -10669,7 +11020,7 @@ const TwoColumnLoginMediumPadding = () => {
|
|
|
10669
11020
|
},
|
|
10670
11021
|
};
|
|
10671
11022
|
return (index.h("div", { style: { height: "800px" } },
|
|
10672
|
-
index.h(
|
|
11023
|
+
index.h(sqmHeroView.HeroView, Object.assign({}, props))));
|
|
10673
11024
|
};
|
|
10674
11025
|
const TwoColumnLoginSmallPadding = () => {
|
|
10675
11026
|
const props = {
|
|
@@ -10689,7 +11040,7 @@ const TwoColumnLoginSmallPadding = () => {
|
|
|
10689
11040
|
},
|
|
10690
11041
|
};
|
|
10691
11042
|
return (index.h("div", { style: { height: "800px" } },
|
|
10692
|
-
index.h(
|
|
11043
|
+
index.h(sqmHeroView.HeroView, Object.assign({}, props))));
|
|
10693
11044
|
};
|
|
10694
11045
|
const TwoColumnLoginNoPadding = () => {
|
|
10695
11046
|
const props = {
|
|
@@ -10709,7 +11060,7 @@ const TwoColumnLoginNoPadding = () => {
|
|
|
10709
11060
|
},
|
|
10710
11061
|
};
|
|
10711
11062
|
return (index.h("div", { style: { height: "800px" } },
|
|
10712
|
-
index.h(
|
|
11063
|
+
index.h(sqmHeroView.HeroView, Object.assign({}, props))));
|
|
10713
11064
|
};
|
|
10714
11065
|
const TwoColumnLoginReverseWrap = () => {
|
|
10715
11066
|
const props = {
|
|
@@ -10729,7 +11080,7 @@ const TwoColumnLoginReverseWrap = () => {
|
|
|
10729
11080
|
},
|
|
10730
11081
|
};
|
|
10731
11082
|
return (index.h("div", { style: { height: "800px" } },
|
|
10732
|
-
index.h(
|
|
11083
|
+
index.h(sqmHeroView.HeroView, Object.assign({}, props))));
|
|
10733
11084
|
};
|
|
10734
11085
|
const TwoColumnLoginWithImgElement = () => {
|
|
10735
11086
|
const props = {
|
|
@@ -10749,7 +11100,7 @@ const TwoColumnLoginWithImgElement = () => {
|
|
|
10749
11100
|
},
|
|
10750
11101
|
};
|
|
10751
11102
|
return (index.h("div", { style: { height: "800px" } },
|
|
10752
|
-
index.h(
|
|
11103
|
+
index.h(sqmHeroView.HeroView, Object.assign({}, props))));
|
|
10753
11104
|
};
|
|
10754
11105
|
const MinHeight = () => {
|
|
10755
11106
|
const props = {
|
|
@@ -10766,7 +11117,7 @@ const MinHeight = () => {
|
|
|
10766
11117
|
index.h("sqm-portal-login", null))),
|
|
10767
11118
|
},
|
|
10768
11119
|
};
|
|
10769
|
-
return index.h(
|
|
11120
|
+
return index.h(sqmHeroView.HeroView, Object.assign({}, props));
|
|
10770
11121
|
};
|
|
10771
11122
|
|
|
10772
11123
|
const Hero = /*#__PURE__*/Object.freeze({
|
|
@@ -10807,7 +11158,7 @@ const props = {
|
|
|
10807
11158
|
};
|
|
10808
11159
|
const ReferralIframe = () => {
|
|
10809
11160
|
return (index.h("div", { style: { width: "1000px", height: "1000px" } },
|
|
10810
|
-
index.h(
|
|
11161
|
+
index.h(sqmReferralIframeView.ReferralIframeView, Object.assign({}, props))));
|
|
10811
11162
|
};
|
|
10812
11163
|
const ReferralIframeError = () => {
|
|
10813
11164
|
return (index.h("div", { style: { width: "1000px", height: "1000px" } },
|
|
@@ -10855,10 +11206,10 @@ const errorProps$9 = {
|
|
|
10855
11206
|
},
|
|
10856
11207
|
};
|
|
10857
11208
|
const NameFields = () => {
|
|
10858
|
-
return index.h(
|
|
11209
|
+
return index.h(sqmNameFieldsView.NameFieldsView, Object.assign({}, props$1));
|
|
10859
11210
|
};
|
|
10860
11211
|
const NameFieldsWithErrors = () => {
|
|
10861
|
-
return index.h(
|
|
11212
|
+
return index.h(sqmNameFieldsView.NameFieldsView, Object.assign({}, errorProps$9));
|
|
10862
11213
|
};
|
|
10863
11214
|
|
|
10864
11215
|
const NameFields$1 = /*#__PURE__*/Object.freeze({
|
|
@@ -10876,7 +11227,7 @@ const CheckboxField_stories = {
|
|
|
10876
11227
|
scenario: scenario$j,
|
|
10877
11228
|
},
|
|
10878
11229
|
};
|
|
10879
|
-
const defaultProps$
|
|
11230
|
+
const defaultProps$d = {
|
|
10880
11231
|
states: {
|
|
10881
11232
|
registrationFormState: {
|
|
10882
11233
|
validationErrors: {},
|
|
@@ -10917,42 +11268,42 @@ const defaultRegisterProps = {
|
|
|
10917
11268
|
invalidEmailErrorMessage: "Must be a valid email address",
|
|
10918
11269
|
},
|
|
10919
11270
|
};
|
|
10920
|
-
const Default$e = createHookStory(() => (index.h(
|
|
10921
|
-
const DefaultChecked = createHookStory(() => (index.h(
|
|
10922
|
-
...defaultProps$
|
|
11271
|
+
const Default$e = createHookStory(() => (index.h(sqmCheckboxFieldView.CheckboxFieldView, Object.assign({}, defaultProps$d))));
|
|
11272
|
+
const DefaultChecked = createHookStory(() => (index.h(sqmCheckboxFieldView.CheckboxFieldView, Object.assign({}, defaultProps$d, { states: {
|
|
11273
|
+
...defaultProps$d.states,
|
|
10923
11274
|
checked: true,
|
|
10924
11275
|
} }))));
|
|
10925
|
-
const CustomLabel = createHookStory(() => (index.h(
|
|
10926
|
-
...defaultProps$
|
|
11276
|
+
const CustomLabel = createHookStory(() => (index.h(sqmCheckboxFieldView.CheckboxFieldView, Object.assign({}, defaultProps$d, { content: {
|
|
11277
|
+
...defaultProps$d.content,
|
|
10927
11278
|
checkboxLabel: "I Agree",
|
|
10928
11279
|
} }))));
|
|
10929
|
-
const Error$5 = createHookStory(() => (index.h(
|
|
10930
|
-
...defaultProps$
|
|
11280
|
+
const Error$5 = createHookStory(() => (index.h(sqmCheckboxFieldView.CheckboxFieldView, Object.assign({}, defaultProps$d, { states: {
|
|
11281
|
+
...defaultProps$d.states,
|
|
10931
11282
|
registrationFormState: {
|
|
10932
11283
|
validationErrors: {
|
|
10933
11284
|
agree: "Must be checked",
|
|
10934
11285
|
},
|
|
10935
11286
|
},
|
|
10936
11287
|
} }))));
|
|
10937
|
-
const CustomError = createHookStory(() => (index.h(
|
|
10938
|
-
...defaultProps$
|
|
11288
|
+
const CustomError = createHookStory(() => (index.h(sqmCheckboxFieldView.CheckboxFieldView, Object.assign({}, defaultProps$d, { states: {
|
|
11289
|
+
...defaultProps$d.states,
|
|
10939
11290
|
registrationFormState: {
|
|
10940
11291
|
validationErrors: {
|
|
10941
11292
|
agree: "Must be checked",
|
|
10942
11293
|
},
|
|
10943
11294
|
},
|
|
10944
11295
|
}, content: {
|
|
10945
|
-
...defaultProps$
|
|
11296
|
+
...defaultProps$d.content,
|
|
10946
11297
|
errorMessage: "This checkbox must be checked to continue",
|
|
10947
11298
|
} }))));
|
|
10948
|
-
const TermsAndConditions$2 = createHookStory(() => (index.h(
|
|
11299
|
+
const TermsAndConditions$2 = createHookStory(() => (index.h(sqmPortalRegisterView.PortalRegisterView, Object.assign({}, defaultRegisterProps, {
|
|
10949
11300
|
//@ts-ignore
|
|
10950
11301
|
content: {
|
|
10951
11302
|
...defaultRegisterProps.content,
|
|
10952
11303
|
terms: (index.h("p", null,
|
|
10953
11304
|
index.h("sqm-checkbox-field", null))),
|
|
10954
11305
|
} }))));
|
|
10955
|
-
const TermsAndConditionsCustomLabel = createHookStory(() => (index.h(
|
|
11306
|
+
const TermsAndConditionsCustomLabel = createHookStory(() => (index.h(sqmPortalRegisterView.PortalRegisterView, Object.assign({}, defaultRegisterProps, {
|
|
10956
11307
|
//@ts-ignore
|
|
10957
11308
|
content: {
|
|
10958
11309
|
...defaultRegisterProps.content,
|
|
@@ -10962,7 +11313,7 @@ const TermsAndConditionsCustomLabel = createHookStory(() => (index.h(ShadowViewA
|
|
|
10962
11313
|
index.h("a", { href: "https://example.com", target: "_blank" }, "Terms and Conditions"),
|
|
10963
11314
|
index.h("sqm-checkbox-field", { "checkbox-label": "I agree" }))),
|
|
10964
11315
|
} }))));
|
|
10965
|
-
const TermsAndConditionsLongCustomLabel = createHookStory(() => (index.h(
|
|
11316
|
+
const TermsAndConditionsLongCustomLabel = createHookStory(() => (index.h(sqmPortalRegisterView.PortalRegisterView, Object.assign({}, defaultRegisterProps, {
|
|
10966
11317
|
//@ts-ignore
|
|
10967
11318
|
content: {
|
|
10968
11319
|
...defaultRegisterProps.content,
|
|
@@ -11077,7 +11428,7 @@ const UseCheckboxField = /*#__PURE__*/Object.freeze({
|
|
|
11077
11428
|
const DropdownField_stories = {
|
|
11078
11429
|
title: "Components/Dropdown Field",
|
|
11079
11430
|
};
|
|
11080
|
-
const defaultProps$
|
|
11431
|
+
const defaultProps$e = {
|
|
11081
11432
|
states: {
|
|
11082
11433
|
registrationFormState: {},
|
|
11083
11434
|
},
|
|
@@ -11092,24 +11443,24 @@ const defaultProps$d = {
|
|
|
11092
11443
|
],
|
|
11093
11444
|
},
|
|
11094
11445
|
};
|
|
11095
|
-
const Default$g = createHookStory(() => (index.h(
|
|
11096
|
-
const CustomLabel$1 = createHookStory(() => (index.h(
|
|
11097
|
-
...defaultProps$
|
|
11446
|
+
const Default$g = createHookStory(() => (index.h(sqmDropdownFieldView.DropdownFieldView, Object.assign({}, defaultProps$e))));
|
|
11447
|
+
const CustomLabel$1 = createHookStory(() => (index.h(sqmDropdownFieldView.DropdownFieldView, Object.assign({}, defaultProps$e, { content: {
|
|
11448
|
+
...defaultProps$e.content,
|
|
11098
11449
|
dropdownLabel: "Pick your favorite",
|
|
11099
11450
|
} }))));
|
|
11100
|
-
const Error$6 = createHookStory(() => (index.h(
|
|
11101
|
-
...defaultProps$
|
|
11451
|
+
const Error$6 = createHookStory(() => (index.h(sqmDropdownFieldView.DropdownFieldView, Object.assign({}, defaultProps$e, { states: {
|
|
11452
|
+
...defaultProps$e.states,
|
|
11102
11453
|
registrationFormState: {
|
|
11103
11454
|
validationErrors: {
|
|
11104
11455
|
options: "Must select an option",
|
|
11105
11456
|
},
|
|
11106
11457
|
},
|
|
11107
11458
|
} }))));
|
|
11108
|
-
const CustomError$1 = createHookStory(() => (index.h(
|
|
11109
|
-
...defaultProps$
|
|
11459
|
+
const CustomError$1 = createHookStory(() => (index.h(sqmDropdownFieldView.DropdownFieldView, Object.assign({}, defaultProps$e, { content: {
|
|
11460
|
+
...defaultProps$e.content,
|
|
11110
11461
|
errorMessage: "An option must be selected to continue",
|
|
11111
11462
|
}, states: {
|
|
11112
|
-
...defaultProps$
|
|
11463
|
+
...defaultProps$e.states,
|
|
11113
11464
|
registrationFormState: {
|
|
11114
11465
|
validationErrors: {
|
|
11115
11466
|
options: "Must select an option",
|
|
@@ -11193,7 +11544,7 @@ const InputField_stories = {
|
|
|
11193
11544
|
scenario: scenario$l,
|
|
11194
11545
|
},
|
|
11195
11546
|
};
|
|
11196
|
-
const defaultProps$
|
|
11547
|
+
const defaultProps$f = {
|
|
11197
11548
|
states: {
|
|
11198
11549
|
registrationFormState: {
|
|
11199
11550
|
validationErrors: {},
|
|
@@ -11230,21 +11581,21 @@ const defaultRegisterProps$1 = {
|
|
|
11230
11581
|
invalidEmailErrorMessage: "Must be a valid email address",
|
|
11231
11582
|
},
|
|
11232
11583
|
};
|
|
11233
|
-
const Default$h = () => index.h(
|
|
11234
|
-
const CustomLabel$2 = () => (index.h(
|
|
11235
|
-
const Error$7 = () => (index.h(
|
|
11236
|
-
...defaultProps$
|
|
11584
|
+
const Default$h = () => index.h(sqmInputFieldView.InputFieldView, Object.assign({}, defaultProps$f));
|
|
11585
|
+
const CustomLabel$2 = () => (index.h(sqmInputFieldView.InputFieldView, Object.assign({}, defaultProps$f, { content: { ...defaultProps$f.content, fieldLabel: "My Label" } })));
|
|
11586
|
+
const Error$7 = () => (index.h(sqmInputFieldView.InputFieldView, Object.assign({}, defaultProps$f, { states: {
|
|
11587
|
+
...defaultProps$f.states,
|
|
11237
11588
|
registrationFormState: {
|
|
11238
11589
|
validationErrors: {
|
|
11239
11590
|
field: "Cannot be empty",
|
|
11240
11591
|
},
|
|
11241
11592
|
},
|
|
11242
11593
|
} })));
|
|
11243
|
-
const CustomError$2 = () => (index.h(
|
|
11244
|
-
...defaultProps$
|
|
11594
|
+
const CustomError$2 = () => (index.h(sqmInputFieldView.InputFieldView, Object.assign({}, defaultProps$f, { content: {
|
|
11595
|
+
...defaultProps$f.content,
|
|
11245
11596
|
errorMessage: "A value must be entered to continue",
|
|
11246
11597
|
}, states: {
|
|
11247
|
-
...defaultProps$
|
|
11598
|
+
...defaultProps$f.states,
|
|
11248
11599
|
registrationFormState: {
|
|
11249
11600
|
validationErrors: {
|
|
11250
11601
|
field: "Cannot be empty",
|
|
@@ -11252,27 +11603,27 @@ const CustomError$2 = () => (index.h(ShadowViewAddon.InputFieldView, Object.assi
|
|
|
11252
11603
|
},
|
|
11253
11604
|
} })));
|
|
11254
11605
|
const DateType = () => {
|
|
11255
|
-
return (index.h(
|
|
11256
|
-
...defaultProps$
|
|
11606
|
+
return (index.h(sqmInputFieldView.InputFieldView, Object.assign({}, defaultProps$f, { content: {
|
|
11607
|
+
...defaultProps$f.content,
|
|
11257
11608
|
fieldLabel: "Date",
|
|
11258
11609
|
fieldType: "date",
|
|
11259
11610
|
} })));
|
|
11260
11611
|
};
|
|
11261
11612
|
const TelType = () => {
|
|
11262
|
-
return (index.h(
|
|
11263
|
-
...defaultProps$
|
|
11613
|
+
return (index.h(sqmInputFieldView.InputFieldView, Object.assign({}, defaultProps$f, { content: {
|
|
11614
|
+
...defaultProps$f.content,
|
|
11264
11615
|
fieldLabel: "Phone Number",
|
|
11265
11616
|
fieldType: "tel",
|
|
11266
11617
|
} })));
|
|
11267
11618
|
};
|
|
11268
|
-
const RegistrationField = () => (index.h(
|
|
11619
|
+
const RegistrationField = () => (index.h(sqmPortalRegisterView.PortalRegisterView, Object.assign({}, defaultRegisterProps$1, { content: {
|
|
11269
11620
|
...defaultRegisterProps$1.content,
|
|
11270
|
-
formData: index.h(
|
|
11621
|
+
formData: index.h(sqmInputFieldView.InputFieldView, Object.assign({}, defaultProps$f)),
|
|
11271
11622
|
} })));
|
|
11272
|
-
const RegistrationFieldCustomLabel = () => (index.h(
|
|
11623
|
+
const RegistrationFieldCustomLabel = () => (index.h(sqmPortalRegisterView.PortalRegisterView, Object.assign({}, defaultRegisterProps$1, { content: {
|
|
11273
11624
|
...defaultRegisterProps$1.content,
|
|
11274
|
-
formData: (index.h(
|
|
11275
|
-
...defaultProps$
|
|
11625
|
+
formData: (index.h(sqmInputFieldView.InputFieldView, Object.assign({}, defaultProps$f, { content: {
|
|
11626
|
+
...defaultProps$f.content,
|
|
11276
11627
|
fieldLabel: "Data",
|
|
11277
11628
|
} }))),
|
|
11278
11629
|
} })));
|
|
@@ -11384,26 +11735,26 @@ const RewardExchangeList_stories = {
|
|
|
11384
11735
|
},
|
|
11385
11736
|
};
|
|
11386
11737
|
const StoryBase = (props) => () => {
|
|
11387
|
-
return index.h(
|
|
11388
|
-
};
|
|
11389
|
-
const ChooseReward = StoryBase(
|
|
11390
|
-
const CustomErrorMessage = StoryBase(
|
|
11391
|
-
const LongTextRewardExhange = StoryBase(
|
|
11392
|
-
const ChooseRewardSelected = StoryBase(
|
|
11393
|
-
const ChooseAmount = StoryBase(
|
|
11394
|
-
const ChooseAmountNoDescription = StoryBase(
|
|
11395
|
-
const ChooseAmountVariableAndStepped = StoryBase(
|
|
11396
|
-
const ChooseAmountVariableAndSteppedNoDescription = StoryBase(
|
|
11397
|
-
const chooseAmountVariableAndSteppedDisabled = StoryBase(
|
|
11398
|
-
const chooseAmountVariableAndSteppedUnavailable = StoryBase(
|
|
11399
|
-
const Confirm = StoryBase(
|
|
11400
|
-
const ConfirmVariableAndStepped = StoryBase(
|
|
11401
|
-
const RedemptionError = StoryBase(
|
|
11402
|
-
const QueryError = StoryBase(
|
|
11403
|
-
const SuccessPromo = StoryBase(
|
|
11404
|
-
const SuccessVariableAndStepped = StoryBase(
|
|
11405
|
-
const Loading$4 = StoryBase(
|
|
11406
|
-
const Empty$2 = StoryBase(
|
|
11738
|
+
return index.h(RewardExchangeListData.RewardExchangeView, Object.assign({}, props));
|
|
11739
|
+
};
|
|
11740
|
+
const ChooseReward = StoryBase(RewardExchangeListData.rewardExchange);
|
|
11741
|
+
const CustomErrorMessage = StoryBase(RewardExchangeListData.rewardExchangeCustomErrorMsg);
|
|
11742
|
+
const LongTextRewardExhange = StoryBase(RewardExchangeListData.rewardExchangeLongText);
|
|
11743
|
+
const ChooseRewardSelected = StoryBase(RewardExchangeListData.rewardExchangeSelected);
|
|
11744
|
+
const ChooseAmount = StoryBase(RewardExchangeListData.chooseAmountFixed);
|
|
11745
|
+
const ChooseAmountNoDescription = StoryBase(RewardExchangeListData.chooseAmountFixedNoDescription);
|
|
11746
|
+
const ChooseAmountVariableAndStepped = StoryBase(RewardExchangeListData.chooseAmountVariable);
|
|
11747
|
+
const ChooseAmountVariableAndSteppedNoDescription = StoryBase(RewardExchangeListData.chooseAmountVariableNoDescription);
|
|
11748
|
+
const chooseAmountVariableAndSteppedDisabled = StoryBase(RewardExchangeListData.chooseAmountVariableDisabled);
|
|
11749
|
+
const chooseAmountVariableAndSteppedUnavailable = StoryBase(RewardExchangeListData.chooseAmountVariableUnavailable);
|
|
11750
|
+
const Confirm = StoryBase(RewardExchangeListData.confirmFixed);
|
|
11751
|
+
const ConfirmVariableAndStepped = StoryBase(RewardExchangeListData.confirmVariable);
|
|
11752
|
+
const RedemptionError = StoryBase(RewardExchangeListData.redemptionError);
|
|
11753
|
+
const QueryError = StoryBase(RewardExchangeListData.queryError);
|
|
11754
|
+
const SuccessPromo = StoryBase(RewardExchangeListData.success);
|
|
11755
|
+
const SuccessVariableAndStepped = StoryBase(RewardExchangeListData.successVariable);
|
|
11756
|
+
const Loading$4 = StoryBase(RewardExchangeListData.loading);
|
|
11757
|
+
const Empty$2 = StoryBase(RewardExchangeListData.empty);
|
|
11407
11758
|
|
|
11408
11759
|
const RewardExchangeList = /*#__PURE__*/Object.freeze({
|
|
11409
11760
|
__proto__: null,
|
|
@@ -11716,92 +12067,92 @@ const manyActions$1 = {
|
|
|
11716
12067
|
states: { progress: 100, loading: false, loadingEvent: false },
|
|
11717
12068
|
};
|
|
11718
12069
|
const TaskCardGrid = () => {
|
|
11719
|
-
return (index.h(
|
|
11720
|
-
index.h(
|
|
12070
|
+
return (index.h(sqmCardFeedView.CardFeedView, { width: 347, gap: 24 },
|
|
12071
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction$1)),
|
|
11721
12072
|
index.h("div", null,
|
|
11722
|
-
index.h(
|
|
12073
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions$1))),
|
|
11723
12074
|
index.h("div", null,
|
|
11724
12075
|
index.h("div", null,
|
|
11725
|
-
index.h(
|
|
11726
|
-
index.h(
|
|
11727
|
-
index.h(
|
|
12076
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction$1)))),
|
|
12077
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions$1)),
|
|
12078
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions$1)),
|
|
11728
12079
|
index.h("div", null,
|
|
11729
|
-
index.h(
|
|
12080
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions$1))),
|
|
11730
12081
|
index.h("div", null,
|
|
11731
12082
|
index.h("div", null,
|
|
11732
|
-
index.h(
|
|
11733
|
-
index.h(
|
|
12083
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction$1)))),
|
|
12084
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions$1))));
|
|
11734
12085
|
};
|
|
11735
12086
|
const TaskCardGridHighGap = () => {
|
|
11736
|
-
return (index.h(
|
|
11737
|
-
index.h(
|
|
12087
|
+
return (index.h(sqmCardFeedView.CardFeedView, { width: 400, gap: 150 },
|
|
12088
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction$1)),
|
|
11738
12089
|
index.h("div", null,
|
|
11739
|
-
index.h(
|
|
12090
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions$1))),
|
|
11740
12091
|
index.h("div", null,
|
|
11741
12092
|
index.h("div", null,
|
|
11742
|
-
index.h(
|
|
11743
|
-
index.h(
|
|
11744
|
-
index.h(
|
|
12093
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction$1)))),
|
|
12094
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions$1)),
|
|
12095
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions$1)),
|
|
11745
12096
|
index.h("div", null,
|
|
11746
|
-
index.h(
|
|
12097
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions$1))),
|
|
11747
12098
|
index.h("div", null,
|
|
11748
12099
|
index.h("div", null,
|
|
11749
|
-
index.h(
|
|
11750
|
-
index.h(
|
|
12100
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction$1)))),
|
|
12101
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions$1))));
|
|
11751
12102
|
};
|
|
11752
12103
|
const TaskCardGridLowGap = () => {
|
|
11753
|
-
return (index.h(
|
|
11754
|
-
index.h(
|
|
12104
|
+
return (index.h(sqmCardFeedView.CardFeedView, { width: 400, gap: 12 },
|
|
12105
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction$1)),
|
|
11755
12106
|
index.h("div", null,
|
|
11756
|
-
index.h(
|
|
12107
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions$1))),
|
|
11757
12108
|
index.h("div", null,
|
|
11758
12109
|
index.h("div", null,
|
|
11759
|
-
index.h(
|
|
11760
|
-
index.h(
|
|
11761
|
-
index.h(
|
|
12110
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction$1)))),
|
|
12111
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions$1)),
|
|
12112
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions$1)),
|
|
11762
12113
|
index.h("div", null,
|
|
11763
|
-
index.h(
|
|
12114
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions$1))),
|
|
11764
12115
|
index.h("div", null,
|
|
11765
12116
|
index.h("div", null,
|
|
11766
|
-
index.h(
|
|
11767
|
-
index.h(
|
|
12117
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction$1)))),
|
|
12118
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions$1))));
|
|
11768
12119
|
};
|
|
11769
12120
|
const TaskCardGridHighWidth = () => {
|
|
11770
|
-
return (index.h(
|
|
11771
|
-
index.h(
|
|
12121
|
+
return (index.h(sqmCardFeedView.CardFeedView, { width: 1000, gap: 24 },
|
|
12122
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction$1)),
|
|
11772
12123
|
index.h("div", null,
|
|
11773
|
-
index.h(
|
|
12124
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions$1))),
|
|
11774
12125
|
index.h("div", null,
|
|
11775
12126
|
index.h("div", null,
|
|
11776
|
-
index.h(
|
|
11777
|
-
index.h(
|
|
11778
|
-
index.h(
|
|
12127
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction$1)))),
|
|
12128
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions$1)),
|
|
12129
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions$1)),
|
|
11779
12130
|
index.h("div", null,
|
|
11780
|
-
index.h(
|
|
12131
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions$1))),
|
|
11781
12132
|
index.h("div", null,
|
|
11782
12133
|
index.h("div", null,
|
|
11783
|
-
index.h(
|
|
11784
|
-
index.h(
|
|
12134
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction$1)))),
|
|
12135
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions$1))));
|
|
11785
12136
|
};
|
|
11786
12137
|
const TaskCardGridLowWidth = () => {
|
|
11787
|
-
return (index.h(
|
|
11788
|
-
index.h(
|
|
12138
|
+
return (index.h(sqmCardFeedView.CardFeedView, { width: 250, gap: 24 },
|
|
12139
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction$1)),
|
|
11789
12140
|
index.h("div", null,
|
|
11790
|
-
index.h(
|
|
12141
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions$1))),
|
|
11791
12142
|
index.h("div", null,
|
|
11792
12143
|
index.h("div", null,
|
|
11793
|
-
index.h(
|
|
11794
|
-
index.h(
|
|
11795
|
-
index.h(
|
|
12144
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction$1)))),
|
|
12145
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions$1)),
|
|
12146
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions$1)),
|
|
11796
12147
|
index.h("div", null,
|
|
11797
|
-
index.h(
|
|
12148
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, coupleActions$1))),
|
|
11798
12149
|
index.h("div", null,
|
|
11799
12150
|
index.h("div", null,
|
|
11800
|
-
index.h(
|
|
11801
|
-
index.h(
|
|
12151
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, oneAction$1)))),
|
|
12152
|
+
index.h(sqmTaskCardView.TaskCardView, Object.assign({}, manyActions$1))));
|
|
11802
12153
|
};
|
|
11803
12154
|
const CardFeedGeneric = () => {
|
|
11804
|
-
return (index.h(
|
|
12155
|
+
return (index.h(sqmCardFeedView.CardFeedView, { width: 300, gap: 24 },
|
|
11805
12156
|
index.h("div", { style: {
|
|
11806
12157
|
padding: "100px",
|
|
11807
12158
|
border: "1px dashed black",
|
|
@@ -12028,7 +12379,7 @@ const scenario1 = "@author:derek\n@owner:derek\nFeature: Reward Table Date Colum
|
|
|
12028
12379
|
|
|
12029
12380
|
const scenario2 = "@author:derek\n@owner:derek\nFeature: Reward Table reward Column\n\n Shows the exact reward\n\n Background:\n Given the reward column is included in the reward table\n And rewards with translations exist\n\n @motivating\n @ui\n Scenario Outline: The title of the reward column is configurable\n Given the \"column-title\" prop is set to <value>\n Then the reward column is shown with <columnTitle>\n Examples:\n | value | columnTitle |\n | Reward | |\n | My column title | My column title |\n\n @motivating\n Scenario: The reward column displays the prettyValue of the reward given\n Given a user with a reward\n When they view the rewards table\n Then they see the name of their reward in the reward column\n And the name is the prettyValue translated for the users locale\n\n @motivating\n @ui\n Scenario: The reward column displays an availability bar if the reward is redeemable\n Given a user with a <status> credit reward of <value>\n But the user has <redeemedAmount>\n When they view the rewards table\n Then the reward column displays <value>\n And under it displays an availability bar with <percentage> filled\n And under it displays <availabilityText>\n Examples:\n | status | value | percentage | availableAmount | availabilityText |\n | AVAILABLE | 10 Points | 100% | 10 Points | 10 Points remaining |\n | AVAILABLE | 10 Points | 90% | 9 Points | 9 Points remaining |\n | AVAILABLE | 10 Points | 10% | 1 Point | 1 Point remaining |\n | PENDING | 10 Points | 100% | 10 Points | 10 Points remaining |\n | PENDING | 10 Points | 90% | 9 Points | 9 Points remaining |\n | PENDING | 10 Points | 10% | 1 Point | 1 Point remaining |\n\n @motivating\n @ui\n Scenario Outline: The reward column displays an availability bar if the reward was redeemable but had been cancelled or expired\n Given a user with a credit reward of <value>\n And the reward has <status>\n But the user has <redeemedAmount>\n When they view the rewards table\n When they view the rewards table\n Then the reward column displays <value>\n And under it displays an availability bar with <percentage> filled\n And under it displays <redeemedText>\n Examples:\n | status | value | percentage | redeemedAmount | redeemedText |\n | EXPIRED | 10 Points | 100% | 0 Point | 0 Point redeemed |\n | EXPIRED | 10 Points | 80% | 2 Point | 2 Point redeemed |\n | CANCELLED | 10 Points | 100% | 0 Point | 0 Point redeemed |\n | CANCELLED | 10 Points | 20% | 8 Point | 8 Point redeemed |\n\n @motivating\n @ui\n Scenario: The reward column doesn't display the availability bar if the reward is not redeemable\n Given a user with a non credit reward\n When they view the rewards table\n Then they see the name of the reward\n But they do not see the availablity bar\n\n @motivating\n @ui\n Scenario Outline: The reward column doesn't display the availability bar if the reward is only 1 reward unit\n Given a user with a credit reward for 1 of a reward unit\n And it has <status>\n When they view the rewards table\n Then they see the name of the reward\n But they do not see the availablity bar\n Examples:\n | status |\n | AVAILABLE |\n | PENDING |\n | EXPIRED |\n | CANCELLED |\n\n @motivating\n @ui\n Scenario: The reward column doesn't display the availability bar for redeemed credit rewards\n Given a user with a \"REDEEMED\" credit reward\n When they view the rewards table\n Then they see the name of the reward\n But they do not see the availablity bar\n\n @motivating\n @ui\n Scenario: Users can copy their fuel tank codes\n Given a user with a fuel tank reward\n When they view the rewards table\n Then they see their fuel tank reward\n And they see their fuel tank code bolded in blue\n When they click on their code\n Then a tool tip appears saying it has been copied to their clipboard\n And their code is copied to their clipboard";
|
|
12030
12381
|
|
|
12031
|
-
const scenario3 = "@author:derek @owner:derek\nFeature: Reward Table Status Column\n Shows the status of each reward\n\n Background
|
|
12382
|
+
const scenario3 = "@author:derek @owner:derek\nFeature: Reward Table Status Column\n Shows the status of each reward\n\n Background:\n Given the status column is included in the reward table\n\n @motivating @ui\n Scenario Outline: The title of the status column is configurable\n Given the \"column-title\" prop is set to <value>\n Then the status column is shown with <columnTitle>\n\n Examples:\n | value | columnTitle |\n | Status | |\n | My column title | My column title |\n\n @motivating @ui\n Scenario Outline: The status column displays the status of each reward\n Given a user\n And they have a <status> reward\n When they view the reward table\n Then the status of their reward is displayed in <pillColour> pill with <text>\n\n Examples:\n | status | text | pillColour |\n | AVAILABLE | Available | Green |\n | CANCELLED | Cancelled | Red |\n | PENDING | Pending | Orange |\n | EXPIRED | Expired | Red |\n | REDEEMED | Redeemed | Blue |\n | PENDING_REVIEW | Pending | Orange |\n | PAYOUT_TRANSFERRED | Payout Approved | blue |\n | PAYOUT_NOT_YET_DUE | Payout Approved | blue |\n | PAYOUT_OVERDUE | Payout Failed | Red |\n | PAYOUT_REVERSED | Payout Cancelled | Red |\n | PENDING_TAX_REVIEW | Pending | Orange |\n | PENDING_NEW_TAX_FORM | Pending | Orange |\n | PENDING_TAX_SUBMISSION | Pending | Orange |\n | PENDING_PARTNER_CREATION | Pending | Orange |\n | DENIED | Denied | Red |\n\n @motivating\n Scenario Outline: Reward status related information is displayed under status pills\n Given a user\n And they have a <reward>\n And their program is\n When they view the reward table\n Then they see their reward\n And under the pill is <text>\n And the date is localized to the users locale\n\n Examples:\n | reward | text |\n | available reward with an expiry date | localized expiry date in format \"Month-Day-Year\" |\n | redeemed reward | localized redemption date in format \"Month-Day-Year\" |\n | expired reward | localized expired date in format \"Month-Day-Year\" |\n | cancelled reward | localized cancelled date in format \"Month-Day-Year\" |\n | pending reward with a end date | localized pending for date in format \"Month-Day-Year\" |\n | pending reward due to W9 | W-9 required |\n | pending reward due to fufillment error | Fulfillment error |\n | reward pending review of referral | Pending review |\n | pending reward due to no connected Impact partner | Complete your tax and cash payout setup to receive your rewards. |\n | pending reward due to an invalid tax document | Invalid tax form. Submit a new form to receive your rewards. |\n | pending reward due to user required to submit a tax document | Submit your tax documents to receive your rewards. |\n | pending reward due to tax document being in review | Awaiting tax form review. |\n | reward whose payout failed | Payout failed due to a fulfillment issue and is currently being retried. |\n | reward whose payout was approved | Reward approved for payout and was scheduled for payment based on your settings. |\n | reward whose payout was cancelled | If you think this is a mistake, contact our Support team. |\n | cancelled reward from denied referral | Flagged as fraud |\n\n @minutia\n Scenario Outline: Tax-related reward statuses are based on the user's Impact tax connection\n Given a user\n And they are in a program that has Impact tax handling enabled\n And they have at least one pending reward\n And the reward's pending reasons include \"MISSING_PAYOUT_CONFIGURATION\"\n Then the status description will be\n \"\"\"\n Complete your tax and cash payout setup to receive your rewards.\n \"\"\"\n\n @motivating\n Scenario Outline: Statuses can be customized\n Given the \"status-text\" prop is \"{status, select, AVAILABLE {Redeem me!} CANCELLED {Unavailable} PENDING {Coming soon!} EXPIRED {Past due} REDEEMED {Spent} PENDING_REVIEW {Pending Review!} PAYOUT_SENT {Payout Sent!} PAYOUT_FAILED {Payout Failed!} PENDING_TAX_REVIEW {Pending Tax Review!} PENDING_NEW_TAX_FORM {Pending new tax form!} PENDING_TAX_SUBMISSION {Pending tax submission!} PENDING_PARTNER_CREATION {Pending partner creation!} DENIED {Unlucky!}}\"\n And a user\n And they have a <status> reward\n When they view the reward table\n Then the status of their reward is displayed in <pillColour> pill with <text>\n\n Examples:\n | status | text | pillColour |\n | AVAILABLE | Redeem me! | Green |\n | CANCELLED | Unavailable | Red |\n | PENDING | Coming soon! | Orange |\n | EXPIRED | Past due | Red |\n | REDEEMED | Spent | Blue |\n | PENDING_REVIEW | Pending Review! | Orange |\n | PAYOUT_TRANSFERRED | Payout Approved! | Blue |\n | PAYOUT_NOT_YET_DUE | Payout Approved! | Blue |\n | PAYOUT_OVERDUE | Payout Failed! | Red |\n | PAYOUT_REVERSED | Payout Cancelled! | Red |\n | DENIED | Unlucky! | Red |\n\n @minutia @ui\n Scenario: Expiry status date text can be configured\n Given the \"expiry-text\" prop has <value>\n And a user with an available reward with an expiry date\n When they view the reward table\n Then they see <text> under the Available Status pill\n\n Examples:\n | value | text |\n | | Expires on <EXPIRY DATE> |\n | Redeem before | Redeem before <EXPIRY DATE> |\n";
|
|
12032
12383
|
|
|
12033
12384
|
const scenario4 = "@author:derek @owner:derek\nFeature: Reward Table Source Column\n Shows the source of each reward\n\n @motivating @ui\n Scenario Outline: The title of the source column is configurable\n Given the \"column-title\" prop is set to <value>\n Then the source column is shown with <columnTitle>\n\n Examples:\n | value | columnTitle |\n | Source | |\n | My column title | My column title |\n\n @motivating @ui\n Scenario: The source column displays manual if the reward is caused by a manual action\n Given a user with a \"MANUAL\" reward\n When they view the rewards table\n Then the source of their reward is displayed as \"Manual\"\n\n @motivating @ui\n Scenario: The source column displays the program name if the reward is caused automatically by a program\n Given a user with a \"AUTOMATED\" program reward\n And the program has name \"Loyalty Program\"\n When they view the rewards table\n Then the source of their reward is displayed as \"Loyalty Program\"\n\n @motivating @ui\n Scenario Outline: The source column displays customizable reward exchange text with amount if the reward is caused by reward exchange\n Given the \"reward-exchange-text\" prop is <propValue>\n And a user with a \"MANUAL\" reward\n But it was created by a reward exchange\n Then they view the rewards table\n Then the source displays <exchangeText>\n And under it displays the following\n | prettyRedeemedCredit → prettyValue |\n\n Examples:\n | propValue | exchangeText |\n | | Reward Exchange |\n | Exchanged | Exchanged |\n\n @motivating @ui\n Scenario Outline: The source column displays customizable referral information if the reward is from a referral\n Given the \"reward-source-text\" prop is <propValue>\n And a user with a referral reward\n And that reward has <rewardSource>\n When they view the rewards table\n Then then source displays <referralText>\n And under it displays the full name of the <referralUser>\n\n Examples:\n | propValue | rewardSource | referralText | referralUser |\n | | REFERRED | Referred by | referrer user |\n | | FRIEND_SIGNUP | Referral to | referred user |\n | {rewardSource, select, FRIEND_SIGNUP {You Referred} REFERRED {Referred you} other {}} | REFERRED | Referred you | referrer user |\n | {rewardSource, select, FRIEND_SIGNUP {You Referred} REFERRED {Referred you} other {}} | FRIEND_SIGNUP | You Referred | referred user |\n\n @motivating @ui\n Scenario Outline: The source column displays the existing name for a referral if either the first name or last name does not exist\n Given a user with a referral reward\n And referral user exists\n And referral user has <name>\n But referral user has no <otherName>\n When they view the rewards table\n Then referral user's name is displayed as <name>\n\n Examples:\n | name | otherName |\n | first.name | last.name |\n | last.name | first.name |\n\n @motivating @ui\n Scenario Outline: The source column displays referral as \"Anonymous User\" if the referral user has no names\n Given a user with a referral reward\n And that reward has <rewardSource>\n And the <referralUser> has no first name\n And the <referralUser> has no last name\n When they view the rewards table\n Then then source displays <sourceText>\n And under it displays \"Anonymous User\"\n\n Examples:\n | rewardSource | referralUser | sourceText |\n | FRIEND_SIGNUP | referrer | Referral to |\n | REFERRED | referred user | Referred by |\n\n @motivating @ui\n Scenario Outline: The source column displays referral as \"Deleted User\" if the referral user is deleted in the system\n Given a user with a referral reward\n And that reward has <rewardSource>\n But <referral> user was deleted\n When they view the rewards table\n Then the source displays <sourceText>\n And under it displays \"Deleted User\"\n\n Examples:\n | rewardSource | referral | sourceText |\n | \"FRIEND_SIGNUP\" | referrer | Referral to |\n | \"REFERRED\" | referred | Referred by |\n\n @motivating @ui\n Scenario Outline: The source column displays referral as \"Deleted referral\" if the referral user is deleted in the system\n Given a user with a referral reward\n And that reward has <rewardSource>\n But <referral> user was deleted\n When they view the rewards table\n Then the source displays <sourceText>\n And under it displays \"Deleted referral\"\n\n Examples:\n | rewardSource | referral | sourceText |\n | \"FRIEND_SIGNUP\" | referrer | Referral to |\n | \"REFERRED\" | referred | Referred by |\n\n @minutia @ui\n Scenario Outline: Name fallbacks for referral users without names are customizable\n Given <prop> with <value>\n And a user with a referral reward\n But the referral user <hadAction>\n When they view the rewards table\n Then the source displays <value> as the referral user\n\n Examples:\n | prop | value | hadAction |\n | deleted-user | Former Customer | was deleted |\n | anonymous-user | Nameless User | had first and last name deleted |\n\n @motivating\n Scenario Outline: Source text can be customized\n Given the \"reward-source-text\" prop is \"{rewardSource, select, MANUAL {Support} AUTOMATED {Loyalty Program} other {}}\"\n And a user with a <rewardSource> reward\n When they view the rewards table\n Then the source is <sourceText>\n\n Examples:\n | rewardSource | sourceText |\n | MANUAL | Support |\n | AUTOMATED | Loyalty Program |\n";
|
|
12034
12385
|
|
|
@@ -12059,7 +12410,7 @@ const rewardsData$1 = {
|
|
|
12059
12410
|
prettyAvailableNumber: "19",
|
|
12060
12411
|
prettyRedeemedNumber: "0",
|
|
12061
12412
|
statuses: ["AVAILABLE", "PENDING"],
|
|
12062
|
-
pendingReasons: ["US_TAX", "
|
|
12413
|
+
pendingReasons: ["US_TAX", "MISSING_PAYOUT_CONFIGURATION"],
|
|
12063
12414
|
globalRewardKey: null,
|
|
12064
12415
|
rewardSource: "MANUAL",
|
|
12065
12416
|
prettyRedeemedCredit: "0 Points",
|
|
@@ -12255,7 +12606,7 @@ const SourceCellDeletedUser = () => {
|
|
|
12255
12606
|
const SourceCellDeletedReferral = () => {
|
|
12256
12607
|
return (index.h("sqm-rewards-table-source-cell", {
|
|
12257
12608
|
//@ts-ignore
|
|
12258
|
-
reward: { ...rewardsData$1, ...deletedReferral() }, referralText: "Referral to", deletedReferralText: "Deleted Referral" }));
|
|
12609
|
+
reward: { ...rewardsData$1, ...deletedReferral(null) }, referralText: "Referral to", deletedReferralText: "Deleted Referral" }));
|
|
12259
12610
|
};
|
|
12260
12611
|
const StatusCellAvailable = () => {
|
|
12261
12612
|
return (index.h("sqm-rewards-table-status-cell", { statusText: "Available", reward: rewardsData$1 }));
|
|
@@ -12352,7 +12703,7 @@ const StatusCellPendingTaxSubmission = () => {
|
|
|
12352
12703
|
const StatusCellPendingPartnerCreation = () => {
|
|
12353
12704
|
return (index.h("sqm-rewards-table-status-cell", { statusText: "Pending", reward: {
|
|
12354
12705
|
...rewardsData$1,
|
|
12355
|
-
pendingReasons: ["
|
|
12706
|
+
pendingReasons: ["MISSING_PAYOUT_CONFIGURATION"],
|
|
12356
12707
|
} }));
|
|
12357
12708
|
};
|
|
12358
12709
|
const StatusCellPayoutSent = () => {
|
|
@@ -12728,6 +13079,12 @@ function setupGraphQLKlip$1({ token, id }) {
|
|
|
12728
13079
|
const ReferralTable$1 = createHookStory(() => {
|
|
12729
13080
|
setupGraphQL$c();
|
|
12730
13081
|
index_module.setProgramId("sam-partner-test-2");
|
|
13082
|
+
const props = {
|
|
13083
|
+
listType: "",
|
|
13084
|
+
render: () => { },
|
|
13085
|
+
disconnectedCallback: () => { },
|
|
13086
|
+
ignored: true,
|
|
13087
|
+
};
|
|
12731
13088
|
return (index.h("sqm-referral-table", null,
|
|
12732
13089
|
index.h("sqm-referral-table-user-column", null),
|
|
12733
13090
|
index.h("sqm-referral-table-status-column", null),
|
|
@@ -12735,6 +13092,14 @@ const ReferralTable$1 = createHookStory(() => {
|
|
|
12735
13092
|
index.h("sqm-referral-table-rewards-column", null)));
|
|
12736
13093
|
});
|
|
12737
13094
|
const ReferralTableDemoHook = createHookStory(() => {
|
|
13095
|
+
// setupGraphQL();
|
|
13096
|
+
// setProgramId("sam-partner-test-2");
|
|
13097
|
+
const props = {
|
|
13098
|
+
listType: "",
|
|
13099
|
+
render: () => { },
|
|
13100
|
+
disconnectedCallback: () => { },
|
|
13101
|
+
ignored: true,
|
|
13102
|
+
};
|
|
12738
13103
|
return (index.h("sqm-referral-table", null,
|
|
12739
13104
|
index.h("sqm-referral-table-user-column", null),
|
|
12740
13105
|
index.h("sqm-referral-table-status-column", null),
|
|
@@ -12742,6 +13107,14 @@ const ReferralTableDemoHook = createHookStory(() => {
|
|
|
12742
13107
|
index.h("sqm-referral-table-rewards-column", null)));
|
|
12743
13108
|
});
|
|
12744
13109
|
const ReferralTableDemoHookShowReferrer = createHookStory(() => {
|
|
13110
|
+
// setupGraphQL();
|
|
13111
|
+
// setProgramId("sam-partner-test-2");
|
|
13112
|
+
const props = {
|
|
13113
|
+
listType: "",
|
|
13114
|
+
render: () => { },
|
|
13115
|
+
disconnectedCallback: () => { },
|
|
13116
|
+
ignored: true,
|
|
13117
|
+
};
|
|
12745
13118
|
return (index.h("sqm-referral-table", { "show-referrer": "true" },
|
|
12746
13119
|
index.h("sqm-referral-table-user-column", null),
|
|
12747
13120
|
index.h("sqm-referral-table-status-column", null),
|
|
@@ -12754,6 +13127,12 @@ const ReferralTableEn = createHookStory(() => {
|
|
|
12754
13127
|
id: "samenglish",
|
|
12755
13128
|
});
|
|
12756
13129
|
index_module.setProgramId("klip-referral-program");
|
|
13130
|
+
const props = {
|
|
13131
|
+
listType: "",
|
|
13132
|
+
render: () => { },
|
|
13133
|
+
disconnectedCallback: () => { },
|
|
13134
|
+
ignored: true,
|
|
13135
|
+
};
|
|
12757
13136
|
return (index.h("sqm-referral-table", { "per-page": "4" },
|
|
12758
13137
|
index.h("sqm-referral-table-user-column", { "column-title": "User" }),
|
|
12759
13138
|
index.h("sqm-referral-table-status-column", { "column-title": "Referral Status" }),
|
|
@@ -12766,6 +13145,12 @@ const ReferralTableTr = createHookStory(() => {
|
|
|
12766
13145
|
id: "samturkey",
|
|
12767
13146
|
});
|
|
12768
13147
|
index_module.setProgramId("klip-referral-program");
|
|
13148
|
+
const props = {
|
|
13149
|
+
listType: "",
|
|
13150
|
+
render: () => { },
|
|
13151
|
+
disconnectedCallback: () => { },
|
|
13152
|
+
ignored: true,
|
|
13153
|
+
};
|
|
12769
13154
|
return (index.h("sqm-referral-table", { "more-label": "Daha", "prev-label": "\u00D6ncesi", "empty-state-text": "Hen\u00FCz \u00D6d\u00FCl Yok", "per-page": "4" },
|
|
12770
13155
|
index.h("sqm-referral-table-user-column", { "column-title": "Kullan\u0131c\u0131lar", "anonymous-user": "Anonim Kullan\u0131c\u0131", "deleted-user": "Silinmi\u015F Kullan\u0131c\u0131" }),
|
|
12771
13156
|
index.h("sqm-referral-table-status-column", { "column-title": "Durumu", "converted-status-text": "D\u00F6n\u00FC\u015Ft\u00FCr", "in-progress-status-text": "Devam etmekte" }),
|
|
@@ -12778,6 +13163,12 @@ const ReferralTableFr = createHookStory(() => {
|
|
|
12778
13163
|
id: "samfrench",
|
|
12779
13164
|
});
|
|
12780
13165
|
index_module.setProgramId("klip-referral-program");
|
|
13166
|
+
const props = {
|
|
13167
|
+
listType: "",
|
|
13168
|
+
render: () => { },
|
|
13169
|
+
disconnectedCallback: () => { },
|
|
13170
|
+
ignored: true,
|
|
13171
|
+
};
|
|
12781
13172
|
return (index.h("sqm-referral-table", { "more-label": "Plus", "prev-label": "Pr\u00E9c\u00E9dent", "empty-state-text": "Aucune R\u00E9f\u00E9rence Maintenant", "per-page": "4" },
|
|
12782
13173
|
index.h("sqm-referral-table-user-column", { "column-title": "Utilisateur", "anonymous-user": "Utilisateur Anonyme", "deleted-user": "Utilisateur Supprim\u00E9" }),
|
|
12783
13174
|
index.h("sqm-referral-table-status-column", { "column-title": "Statut de Parrainage", "converted-status-text": "Converti", "in-progress-status-text": "En cours" }),
|
|
@@ -14200,7 +14591,7 @@ const EmailRegistration_stories = {
|
|
|
14200
14591
|
// scenario,
|
|
14201
14592
|
},
|
|
14202
14593
|
};
|
|
14203
|
-
const defaultProps$
|
|
14594
|
+
const defaultProps$g = {
|
|
14204
14595
|
states: {
|
|
14205
14596
|
error: "",
|
|
14206
14597
|
loading: false,
|
|
@@ -14219,59 +14610,59 @@ const defaultProps$f = {
|
|
|
14219
14610
|
fraudErrorMessageTitle: "Looks like you tried referring yourself",
|
|
14220
14611
|
},
|
|
14221
14612
|
};
|
|
14222
|
-
const Default$i = () => index.h(emailRegistrationView.EmailRegistrationView, Object.assign({}, defaultProps$
|
|
14613
|
+
const Default$i = () => index.h(emailRegistrationView.EmailRegistrationView, Object.assign({}, defaultProps$g));
|
|
14223
14614
|
const HasFirstNameLastName = () => (index.h(emailRegistrationView.EmailRegistrationView, Object.assign({}, {
|
|
14224
|
-
...defaultProps$
|
|
14615
|
+
...defaultProps$g,
|
|
14225
14616
|
content: {
|
|
14226
|
-
...defaultProps$
|
|
14617
|
+
...defaultProps$g.content,
|
|
14227
14618
|
includeName: true,
|
|
14228
14619
|
},
|
|
14229
14620
|
})));
|
|
14230
14621
|
const WithSlots = () => (index.h(emailRegistrationView.EmailRegistrationView, Object.assign({}, {
|
|
14231
|
-
...defaultProps$
|
|
14622
|
+
...defaultProps$g,
|
|
14232
14623
|
content: {
|
|
14233
|
-
...defaultProps$
|
|
14624
|
+
...defaultProps$g.content,
|
|
14234
14625
|
topSlot: index.h("div", null, "Hello this is the top slot"),
|
|
14235
14626
|
bottomSlot: index.h("div", null, "Hello this is the bottom slot"),
|
|
14236
14627
|
},
|
|
14237
14628
|
})));
|
|
14238
14629
|
const NoBorder$1 = () => (index.h(emailRegistrationView.EmailRegistrationView, Object.assign({}, {
|
|
14239
|
-
...defaultProps$
|
|
14630
|
+
...defaultProps$g,
|
|
14240
14631
|
content: {
|
|
14241
|
-
...defaultProps$
|
|
14632
|
+
...defaultProps$g.content,
|
|
14242
14633
|
hideBorder: true,
|
|
14243
14634
|
},
|
|
14244
14635
|
})));
|
|
14245
14636
|
const BackgroundColor$2 = () => (index.h(emailRegistrationView.EmailRegistrationView, Object.assign({}, {
|
|
14246
|
-
...defaultProps$
|
|
14637
|
+
...defaultProps$g,
|
|
14247
14638
|
content: {
|
|
14248
|
-
...defaultProps$
|
|
14639
|
+
...defaultProps$g.content,
|
|
14249
14640
|
backgroundColor: "aquamarine",
|
|
14250
14641
|
},
|
|
14251
14642
|
})));
|
|
14252
14643
|
const Loading$5 = () => (index.h(emailRegistrationView.EmailRegistrationView, Object.assign({}, {
|
|
14253
|
-
...defaultProps$
|
|
14644
|
+
...defaultProps$g,
|
|
14254
14645
|
states: {
|
|
14255
14646
|
error: "",
|
|
14256
14647
|
loading: true,
|
|
14257
14648
|
},
|
|
14258
14649
|
})));
|
|
14259
14650
|
const Error$a = () => (index.h(emailRegistrationView.EmailRegistrationView, Object.assign({}, {
|
|
14260
|
-
...defaultProps$
|
|
14651
|
+
...defaultProps$g,
|
|
14261
14652
|
states: {
|
|
14262
14653
|
error: "Something went wrong. Please try again.",
|
|
14263
14654
|
loading: false,
|
|
14264
14655
|
},
|
|
14265
14656
|
})));
|
|
14266
14657
|
const FraudError = () => (index.h(emailRegistrationView.EmailRegistrationView, Object.assign({}, {
|
|
14267
|
-
...defaultProps$
|
|
14658
|
+
...defaultProps$g,
|
|
14268
14659
|
states: {
|
|
14269
14660
|
error: "FRAUD",
|
|
14270
14661
|
loading: false,
|
|
14271
14662
|
},
|
|
14272
14663
|
})));
|
|
14273
14664
|
const EmptyEmailError = () => (index.h(emailRegistrationView.EmailRegistrationView, Object.assign({}, {
|
|
14274
|
-
...defaultProps$
|
|
14665
|
+
...defaultProps$g,
|
|
14275
14666
|
states: {
|
|
14276
14667
|
error: "Something went wrong. Please try again.",
|
|
14277
14668
|
loading: false,
|
|
@@ -14303,7 +14694,7 @@ const CouponCode_stories = {
|
|
|
14303
14694
|
scenario: scenario$C,
|
|
14304
14695
|
},
|
|
14305
14696
|
};
|
|
14306
|
-
const defaultProps$
|
|
14697
|
+
const defaultProps$h = {
|
|
14307
14698
|
tooltiptext: "Copied to Clipboard",
|
|
14308
14699
|
copyString: "THANKSJANE125uv125",
|
|
14309
14700
|
open: false,
|
|
@@ -14328,43 +14719,43 @@ const TextAlignRight$3 = () => {
|
|
|
14328
14719
|
return index.h("sqm-coupon-code", { textAlign: "right" });
|
|
14329
14720
|
};
|
|
14330
14721
|
const CopyButton$3 = () => {
|
|
14331
|
-
return (index.h("sqm-coupon-code", Object.assign({}, defaultProps$
|
|
14722
|
+
return (index.h("sqm-coupon-code", Object.assign({}, defaultProps$h, { buttonStyle: "button-outside" })));
|
|
14332
14723
|
};
|
|
14333
14724
|
const CopyButtonCustomLabel = () => {
|
|
14334
|
-
return (index.h("sqm-coupon-code", Object.assign({}, defaultProps$
|
|
14725
|
+
return (index.h("sqm-coupon-code", Object.assign({}, defaultProps$h, { buttonStyle: "button-outside", "copy-button-label": "test long custom label" })));
|
|
14335
14726
|
};
|
|
14336
14727
|
const CopyButtonBelow$3 = () => {
|
|
14337
|
-
return (index.h("sqm-coupon-code", Object.assign({}, defaultProps$
|
|
14728
|
+
return (index.h("sqm-coupon-code", Object.assign({}, defaultProps$h, { buttonStyle: "button-below" })));
|
|
14338
14729
|
};
|
|
14339
14730
|
const CopyButtonBelowCustomLabel = () => {
|
|
14340
|
-
return (index.h("sqm-coupon-code", Object.assign({}, defaultProps$
|
|
14731
|
+
return (index.h("sqm-coupon-code", Object.assign({}, defaultProps$h, { buttonStyle: "button-below", "copy-button-label": "test long custom label" })));
|
|
14341
14732
|
};
|
|
14342
14733
|
const Loading$6 = () => {
|
|
14343
|
-
return index.h(
|
|
14734
|
+
return index.h(sqmCouponCodeView.CouponCodeView, Object.assign({}, defaultProps$h, { loading: true }));
|
|
14344
14735
|
};
|
|
14345
14736
|
const CopyButtonLoading = () => {
|
|
14346
|
-
return (index.h(
|
|
14737
|
+
return (index.h(sqmCouponCodeView.CouponCodeView, Object.assign({}, defaultProps$h, { buttonStyle: "button-outside", loading: true })));
|
|
14347
14738
|
};
|
|
14348
14739
|
const CopyButtonBelowLoading = () => {
|
|
14349
|
-
return (index.h(
|
|
14740
|
+
return (index.h(sqmCouponCodeView.CouponCodeView, Object.assign({}, defaultProps$h, { buttonStyle: "button-below", loading: true })));
|
|
14350
14741
|
};
|
|
14351
14742
|
const ErrorGeneric = () => {
|
|
14352
|
-
return (index.h(
|
|
14743
|
+
return (index.h(sqmCouponCodeView.CouponCodeView, Object.assign({}, defaultProps$h, { errorType: "warning", error: true, errorText: "We couldn't fetch your code. Please try again later or reach out to the Support team for help resolving this issue." })));
|
|
14353
14744
|
};
|
|
14354
14745
|
const ErrorPending = () => {
|
|
14355
|
-
return (index.h(
|
|
14746
|
+
return (index.h(sqmCouponCodeView.CouponCodeView, Object.assign({}, defaultProps$h, { errorType: "info", error: true, errorText: "Your code will be available on April 24, 2023. Mark your calendar and come back then to redeem your reward!" })));
|
|
14356
14747
|
};
|
|
14357
14748
|
const ErrorFullfillment = () => {
|
|
14358
|
-
return (index.h(
|
|
14749
|
+
return (index.h(sqmCouponCodeView.CouponCodeView, Object.assign({}, defaultProps$h, { errorType: "warning", error: true, errorText: "We couldn't fetch your code. Please try again later or reach out to the Support team for help resolving this issue." })));
|
|
14359
14750
|
};
|
|
14360
14751
|
const ErrorCancelled = () => {
|
|
14361
|
-
return (index.h(
|
|
14752
|
+
return (index.h(sqmCouponCodeView.CouponCodeView, Object.assign({}, defaultProps$h, { errorType: "warning", error: true, errorText: "This code has been cancelled. Please reach out to the Support team for help resolving this issue." })));
|
|
14362
14753
|
};
|
|
14363
14754
|
const ErrorExpired = () => {
|
|
14364
|
-
return (index.h(
|
|
14755
|
+
return (index.h(sqmCouponCodeView.CouponCodeView, Object.assign({}, defaultProps$h, { errorType: "warning", error: true, errorText: "Looks like this code has expired. Please reach out to the Support team for help resolving this issue." })));
|
|
14365
14756
|
};
|
|
14366
14757
|
const ErrorRedeemed = () => {
|
|
14367
|
-
return (index.h(
|
|
14758
|
+
return (index.h(sqmCouponCodeView.CouponCodeView, Object.assign({}, defaultProps$h, { errorType: "success", error: true, errorText: "Looks like you\u2019ve already redeemed this code." })));
|
|
14368
14759
|
};
|
|
14369
14760
|
|
|
14370
14761
|
const CouponCode$1 = /*#__PURE__*/Object.freeze({
|
|
@@ -14398,7 +14789,7 @@ const LogoutCurrentUser_stories = {
|
|
|
14398
14789
|
scenario: scenario$D,
|
|
14399
14790
|
},
|
|
14400
14791
|
};
|
|
14401
|
-
const defaultProps$
|
|
14792
|
+
const defaultProps$i = {
|
|
14402
14793
|
filledInEmailText: "Currently showing referral data for noah.clarke@saasquatch.com",
|
|
14403
14794
|
onSwitchClick: () => console.log("clicked"),
|
|
14404
14795
|
switchUserText: "not you?",
|
|
@@ -14406,7 +14797,7 @@ const defaultProps$h = {
|
|
|
14406
14797
|
emailErrorText: "Error fetching email",
|
|
14407
14798
|
};
|
|
14408
14799
|
const Default$j = () => {
|
|
14409
|
-
return index.h(sqmLogoutCurrentUserView.LogoutCurrentUserView, Object.assign({}, defaultProps$
|
|
14800
|
+
return index.h(sqmLogoutCurrentUserView.LogoutCurrentUserView, Object.assign({}, defaultProps$i));
|
|
14410
14801
|
};
|
|
14411
14802
|
|
|
14412
14803
|
const LogoutCurrentUser = /*#__PURE__*/Object.freeze({
|
|
@@ -14423,16 +14814,16 @@ const LinkButton_stories = {
|
|
|
14423
14814
|
scenario: scenario$E,
|
|
14424
14815
|
},
|
|
14425
14816
|
};
|
|
14426
|
-
const defaultProps$
|
|
14817
|
+
const defaultProps$j = {
|
|
14427
14818
|
link: "https://example.com",
|
|
14428
14819
|
openInNewTab: false,
|
|
14429
14820
|
buttonText: "Button Text",
|
|
14430
14821
|
};
|
|
14431
14822
|
const Default$k = () => {
|
|
14432
|
-
return index.h("sqm-link-button", Object.assign({}, defaultProps$
|
|
14823
|
+
return index.h("sqm-link-button", Object.assign({}, defaultProps$j));
|
|
14433
14824
|
};
|
|
14434
14825
|
const OpenInNewTab = () => {
|
|
14435
|
-
return (index.h("sqm-link-button", Object.assign({}, { ...defaultProps$
|
|
14826
|
+
return (index.h("sqm-link-button", Object.assign({}, { ...defaultProps$j, openInNewTab: true })));
|
|
14436
14827
|
};
|
|
14437
14828
|
|
|
14438
14829
|
const LinkButton = /*#__PURE__*/Object.freeze({
|
|
@@ -14448,7 +14839,7 @@ const CloseButton_stories = {
|
|
|
14448
14839
|
// scenario,
|
|
14449
14840
|
},
|
|
14450
14841
|
};
|
|
14451
|
-
const defaultProps$
|
|
14842
|
+
const defaultProps$k = {};
|
|
14452
14843
|
const containerStyles = {
|
|
14453
14844
|
position: "relative",
|
|
14454
14845
|
width: "500px",
|
|
@@ -14457,15 +14848,15 @@ const containerStyles = {
|
|
|
14457
14848
|
padding: "25px",
|
|
14458
14849
|
};
|
|
14459
14850
|
const Default$l = () => {
|
|
14460
|
-
return index.h(sqmCloseButtonView.CloseButtonView, Object.assign({}, defaultProps$
|
|
14851
|
+
return index.h(sqmCloseButtonView.CloseButtonView, Object.assign({}, defaultProps$k));
|
|
14461
14852
|
};
|
|
14462
14853
|
const InAContainer = () => {
|
|
14463
14854
|
return (index.h("div", { style: containerStyles },
|
|
14464
|
-
index.h(sqmCloseButtonView.CloseButtonView, Object.assign({}, defaultProps$
|
|
14855
|
+
index.h(sqmCloseButtonView.CloseButtonView, Object.assign({}, defaultProps$k))));
|
|
14465
14856
|
};
|
|
14466
14857
|
const CustomColor$1 = () => {
|
|
14467
14858
|
return (index.h("div", { style: containerStyles },
|
|
14468
|
-
index.h(sqmCloseButtonView.CloseButtonView, Object.assign({}, { ...defaultProps$
|
|
14859
|
+
index.h(sqmCloseButtonView.CloseButtonView, Object.assign({}, { ...defaultProps$k, color: "blue" }))));
|
|
14469
14860
|
};
|
|
14470
14861
|
|
|
14471
14862
|
const CloseButton = /*#__PURE__*/Object.freeze({
|
|
@@ -14508,10 +14899,10 @@ const style$1 = {
|
|
|
14508
14899
|
border: "1px solid var(--sl-color-gray-200)",
|
|
14509
14900
|
},
|
|
14510
14901
|
};
|
|
14511
|
-
const sheet$
|
|
14512
|
-
const styleString$1 = sheet$
|
|
14902
|
+
const sheet$2 = JSS.createStyleSheet(style$1);
|
|
14903
|
+
const styleString$1 = sheet$2.toString();
|
|
14513
14904
|
const DocusignExpiredView = (props) => {
|
|
14514
|
-
const { classes } = sheet$
|
|
14905
|
+
const { classes } = sheet$2;
|
|
14515
14906
|
const { text } = props;
|
|
14516
14907
|
return (index.h("div", null,
|
|
14517
14908
|
index.h("style", { type: "text/css" }, styleString$1),
|
|
@@ -14558,13 +14949,13 @@ const registeredInCanada = {
|
|
|
14558
14949
|
text: indirectDetailsSlotText,
|
|
14559
14950
|
};
|
|
14560
14951
|
const RegisteredInOtherRegion = () => {
|
|
14561
|
-
return index.h(
|
|
14952
|
+
return index.h(IndirectTaxDetailsView.OtherRegionSlotView, Object.assign({}, registeredInOtherRegion));
|
|
14562
14953
|
};
|
|
14563
14954
|
const RegisteredInCanada = () => {
|
|
14564
14955
|
return index.h(IndirectDetailsSlotView, Object.assign({}, registeredInCanada));
|
|
14565
14956
|
};
|
|
14566
14957
|
const RegisteredInOtherRegionWithErrors = () => {
|
|
14567
|
-
return (index.h(
|
|
14958
|
+
return (index.h(IndirectTaxDetailsView.OtherRegionSlotView, Object.assign({}, registeredInOtherRegion, { states: {
|
|
14568
14959
|
...registeredInOtherRegion.states,
|
|
14569
14960
|
formState: {
|
|
14570
14961
|
...registeredInOtherRegion.states.formState,
|
|
@@ -14620,8 +15011,8 @@ const style$2 = {
|
|
|
14620
15011
|
gap: "var(--sl-spacing-small)",
|
|
14621
15012
|
},
|
|
14622
15013
|
};
|
|
14623
|
-
const sheet$
|
|
14624
|
-
const styleString$2 = sheet$
|
|
15014
|
+
const sheet$3 = JSS.createStyleSheet(style$2);
|
|
15015
|
+
const styleString$2 = sheet$3.toString();
|
|
14625
15016
|
const vanillaStyle = `
|
|
14626
15017
|
:host{
|
|
14627
15018
|
display: block;
|
|
@@ -14645,14 +15036,14 @@ const RadioCardView = ({ title, icon, description, selected, }) => {
|
|
|
14645
15036
|
const border = selected
|
|
14646
15037
|
? "1px solid var(--sl-color-primary-500)"
|
|
14647
15038
|
: "1px solid #CACFD3";
|
|
14648
|
-
return (index.h("div", { part: "sqm-base", class: sheet$
|
|
15039
|
+
return (index.h("div", { part: "sqm-base", class: sheet$3.classes.Container, style: {
|
|
14649
15040
|
border,
|
|
14650
15041
|
} },
|
|
14651
15042
|
index.h("style", { type: "text/css" },
|
|
14652
15043
|
styleString$2,
|
|
14653
15044
|
vanillaStyle),
|
|
14654
15045
|
index.h("sl-checkbox", { checked: selected }),
|
|
14655
|
-
index.h("div", { part: "sqm-title-container", class: sheet$
|
|
15046
|
+
index.h("div", { part: "sqm-title-container", class: sheet$3.classes.TitleContainer },
|
|
14656
15047
|
index.h("sl-icon", { name: icon }),
|
|
14657
15048
|
index.h("p", null, title)),
|
|
14658
15049
|
index.h("p", null, description)));
|
|
@@ -14661,17 +15052,17 @@ const RadioCardView = ({ title, icon, description, selected, }) => {
|
|
|
14661
15052
|
const RadioCard_stories = {
|
|
14662
15053
|
title: "Components/Radio Card",
|
|
14663
15054
|
};
|
|
14664
|
-
const defaultProps$
|
|
15055
|
+
const defaultProps$l = {
|
|
14665
15056
|
selected: false,
|
|
14666
15057
|
title: "Card Title",
|
|
14667
15058
|
description: "Description text goes here",
|
|
14668
15059
|
icon: "apple",
|
|
14669
15060
|
};
|
|
14670
15061
|
const DefaultView$1 = () => {
|
|
14671
|
-
return index.h(RadioCardView, Object.assign({}, defaultProps$
|
|
15062
|
+
return index.h(RadioCardView, Object.assign({}, defaultProps$l));
|
|
14672
15063
|
};
|
|
14673
15064
|
const Selected = () => {
|
|
14674
|
-
return index.h(RadioCardView, Object.assign({}, defaultProps$
|
|
15065
|
+
return index.h(RadioCardView, Object.assign({}, defaultProps$l, { selected: true }));
|
|
14675
15066
|
};
|
|
14676
15067
|
|
|
14677
15068
|
const RadioCard = /*#__PURE__*/Object.freeze({
|
|
@@ -14684,13 +15075,13 @@ const RadioCard = /*#__PURE__*/Object.freeze({
|
|
|
14684
15075
|
const ProgressBar_stories = {
|
|
14685
15076
|
title: "Components/Progress Bar",
|
|
14686
15077
|
};
|
|
14687
|
-
const defaultProps$
|
|
15078
|
+
const defaultProps$m = {
|
|
14688
15079
|
progress: 2,
|
|
14689
15080
|
goal: 4,
|
|
14690
15081
|
steps: true,
|
|
14691
15082
|
};
|
|
14692
15083
|
const TaxAndPayoutsProgressBar = () => {
|
|
14693
|
-
return index.h(
|
|
15084
|
+
return index.h(RewardExchangeListData.ProgressBar, Object.assign({}, defaultProps$m, { stageCount: 4, currentStage: 2 }));
|
|
14694
15085
|
};
|
|
14695
15086
|
|
|
14696
15087
|
const ProgressBar$1 = /*#__PURE__*/Object.freeze({
|
|
@@ -14770,7 +15161,6 @@ const bankingFormProps = {
|
|
|
14770
15161
|
currency: "USD",
|
|
14771
15162
|
loadingError: false,
|
|
14772
15163
|
email: "test@example.com",
|
|
14773
|
-
showModal: false,
|
|
14774
15164
|
},
|
|
14775
15165
|
callbacks: {
|
|
14776
15166
|
onVerificationHide: () => { },
|
|
@@ -14780,8 +15170,6 @@ const bankingFormProps = {
|
|
|
14780
15170
|
setPaymentScheduleChecked: () => { },
|
|
14781
15171
|
setCountrySearch: () => { },
|
|
14782
15172
|
onBack: async () => console.log("back"),
|
|
14783
|
-
onModalOpen: () => { },
|
|
14784
|
-
onModalClose: () => { },
|
|
14785
15173
|
},
|
|
14786
15174
|
refs: { formRef: { current: null } },
|
|
14787
15175
|
};
|
|
@@ -15102,15 +15490,6 @@ const BankingInfoFormVerififyIdentityModal = () => {
|
|
|
15102
15490
|
},
|
|
15103
15491
|
} }));
|
|
15104
15492
|
};
|
|
15105
|
-
const BankingInfoFormModalOpen = () => {
|
|
15106
|
-
return (index.h("sqm-banking-info-form", { demoData: {
|
|
15107
|
-
...bankingFormProps,
|
|
15108
|
-
states: {
|
|
15109
|
-
...bankingFormProps.states,
|
|
15110
|
-
showModal: true,
|
|
15111
|
-
},
|
|
15112
|
-
} }));
|
|
15113
|
-
};
|
|
15114
15493
|
|
|
15115
15494
|
const BankingInfoForm = /*#__PURE__*/Object.freeze({
|
|
15116
15495
|
__proto__: null,
|
|
@@ -15137,8 +15516,7 @@ const BankingInfoForm = /*#__PURE__*/Object.freeze({
|
|
|
15137
15516
|
BankingInfoFormWithFixedDayPaymentSchedule: BankingInfoFormWithFixedDayPaymentSchedule,
|
|
15138
15517
|
BankingInfoFormWithFixedDayPaymentScheduleWithError: BankingInfoFormWithFixedDayPaymentScheduleWithError,
|
|
15139
15518
|
BankingInfoFormWithFixedDayPaymentScheduleLoading: BankingInfoFormWithFixedDayPaymentScheduleLoading,
|
|
15140
|
-
BankingInfoFormVerififyIdentityModal: BankingInfoFormVerififyIdentityModal
|
|
15141
|
-
BankingInfoFormModalOpen: BankingInfoFormModalOpen
|
|
15519
|
+
BankingInfoFormVerififyIdentityModal: BankingInfoFormVerififyIdentityModal
|
|
15142
15520
|
});
|
|
15143
15521
|
|
|
15144
15522
|
const InvoiceTableCell_stories = {
|
|
@@ -15361,6 +15739,12 @@ function setupGraphQL$d() {
|
|
|
15361
15739
|
const InvoiceTable$1 = createHookStory(() => {
|
|
15362
15740
|
setupGraphQL$d();
|
|
15363
15741
|
index_module.setProgramId("22999");
|
|
15742
|
+
const props = {
|
|
15743
|
+
listType: "",
|
|
15744
|
+
render: () => { },
|
|
15745
|
+
disconnectedCallback: () => { },
|
|
15746
|
+
ignored: true,
|
|
15747
|
+
};
|
|
15364
15748
|
return (index.h("sqm-invoice-table", null,
|
|
15365
15749
|
index.h("sqm-invoice-table-download-column", null),
|
|
15366
15750
|
index.h("sqm-invoice-table-date-column", { "column-title": "Date" }),
|
|
@@ -15389,7 +15773,7 @@ const UseInvoiceTableCells = /*#__PURE__*/Object.freeze({
|
|
|
15389
15773
|
const WidgetEmailVerification_stories = {
|
|
15390
15774
|
title: "Components/Widget Email Verification",
|
|
15391
15775
|
};
|
|
15392
|
-
const defaultProps$
|
|
15776
|
+
const defaultProps$n = {
|
|
15393
15777
|
email: "",
|
|
15394
15778
|
error: false,
|
|
15395
15779
|
loading: false,
|
|
@@ -15404,19 +15788,19 @@ const EmailIsPrefilled = () => (index.h("div", null,
|
|
|
15404
15788
|
index.h("sub", null, "To get your cash paid out directly to your bank account, please complete your account setup")),
|
|
15405
15789
|
index.h("sqm-email-verification", { demoData: {
|
|
15406
15790
|
states: {
|
|
15407
|
-
...defaultProps$
|
|
15791
|
+
...defaultProps$n,
|
|
15408
15792
|
email: "test@example.com",
|
|
15409
15793
|
},
|
|
15410
15794
|
} })));
|
|
15411
15795
|
const Loading$8 = () => (index.h("sqm-email-verification", { demoData: {
|
|
15412
15796
|
states: {
|
|
15413
|
-
...defaultProps$
|
|
15797
|
+
...defaultProps$n,
|
|
15414
15798
|
initialLoading: true,
|
|
15415
15799
|
},
|
|
15416
15800
|
} }));
|
|
15417
15801
|
const SaveLoading = () => (index.h("sqm-email-verification", { demoData: {
|
|
15418
15802
|
states: {
|
|
15419
|
-
...defaultProps$
|
|
15803
|
+
...defaultProps$n,
|
|
15420
15804
|
loading: true,
|
|
15421
15805
|
},
|
|
15422
15806
|
} }));
|
|
@@ -15427,19 +15811,19 @@ const WithHeader$1 = () => (index.h("div", null,
|
|
|
15427
15811
|
index.h("sub", null, "To get your cash paid out directly to your bank account, please complete your account setup")),
|
|
15428
15812
|
index.h("sqm-email-verification", { demoData: {
|
|
15429
15813
|
states: {
|
|
15430
|
-
...defaultProps$
|
|
15814
|
+
...defaultProps$n,
|
|
15431
15815
|
email: "test@example.com",
|
|
15432
15816
|
},
|
|
15433
15817
|
} })));
|
|
15434
15818
|
const InvalidEmail = () => (index.h("sqm-email-verification", { demoData: {
|
|
15435
15819
|
states: {
|
|
15436
|
-
...defaultProps$
|
|
15820
|
+
...defaultProps$n,
|
|
15437
15821
|
error: true,
|
|
15438
15822
|
},
|
|
15439
15823
|
} }));
|
|
15440
15824
|
const SendCodeError = () => (index.h("sqm-email-verification", { demoData: {
|
|
15441
15825
|
states: {
|
|
15442
|
-
...defaultProps$
|
|
15826
|
+
...defaultProps$n,
|
|
15443
15827
|
sendCodeError: true,
|
|
15444
15828
|
},
|
|
15445
15829
|
} }));
|
|
@@ -15459,35 +15843,35 @@ const WidgetEmailVerification = /*#__PURE__*/Object.freeze({
|
|
|
15459
15843
|
const WidgetCodeVerification_stories = {
|
|
15460
15844
|
title: "Components/Widget Code Verification",
|
|
15461
15845
|
};
|
|
15462
|
-
const defaultProps$
|
|
15846
|
+
const defaultProps$o = {
|
|
15463
15847
|
initialiseLoading: false,
|
|
15464
15848
|
email: "testemail@example.com",
|
|
15465
15849
|
loading: false,
|
|
15466
15850
|
verifyFailed: false,
|
|
15467
15851
|
emailResent: false,
|
|
15468
15852
|
};
|
|
15469
|
-
const Default$n = () => (index.h("sqm-code-verification", { demoData: { states: defaultProps$
|
|
15853
|
+
const Default$n = () => (index.h("sqm-code-verification", { demoData: { states: defaultProps$o } }));
|
|
15470
15854
|
const InitialLoading = () => (index.h("sqm-code-verification", { demoData: {
|
|
15471
15855
|
states: {
|
|
15472
|
-
...defaultProps$
|
|
15856
|
+
...defaultProps$o,
|
|
15473
15857
|
initialiseLoading: true,
|
|
15474
15858
|
},
|
|
15475
15859
|
} }));
|
|
15476
15860
|
const Loading$9 = () => (index.h("sqm-code-verification", { demoData: {
|
|
15477
15861
|
states: {
|
|
15478
|
-
...defaultProps$
|
|
15862
|
+
...defaultProps$o,
|
|
15479
15863
|
loading: true,
|
|
15480
15864
|
},
|
|
15481
15865
|
} }));
|
|
15482
15866
|
const CodeResent = () => (index.h("sqm-code-verification", { demoData: {
|
|
15483
15867
|
states: {
|
|
15484
|
-
...defaultProps$
|
|
15868
|
+
...defaultProps$o,
|
|
15485
15869
|
emailResent: true,
|
|
15486
15870
|
},
|
|
15487
15871
|
} }));
|
|
15488
15872
|
const VerificationFailed = () => (index.h("sqm-code-verification", { demoData: {
|
|
15489
15873
|
states: {
|
|
15490
|
-
...defaultProps$
|
|
15874
|
+
...defaultProps$o,
|
|
15491
15875
|
verifyFailed: true,
|
|
15492
15876
|
},
|
|
15493
15877
|
} }));
|
|
@@ -15505,17 +15889,17 @@ const WidgetCodeVerification = /*#__PURE__*/Object.freeze({
|
|
|
15505
15889
|
const PayoutButtonScroll_stories = {
|
|
15506
15890
|
title: "Components/Payout Scroll Button",
|
|
15507
15891
|
};
|
|
15508
|
-
const defaultProps$
|
|
15892
|
+
const defaultProps$p = {
|
|
15509
15893
|
payoutSettingsComplete: true,
|
|
15510
15894
|
};
|
|
15511
|
-
const CompletedTaxForm = () => (index.h("sqm-payout-button-scroll", { demoData: { states: { ...defaultProps$
|
|
15895
|
+
const CompletedTaxForm = () => (index.h("sqm-payout-button-scroll", { demoData: { states: { ...defaultProps$p, payoutSettingsComplete: true } } }));
|
|
15512
15896
|
const CompletedTaxFormWithStatsContainer = () => (index.h("sqm-portal-container", { display: "flex", maxWidth: "100%", minWidth: "100%", "justify-content": "space-between", flexWrap: "nowrap" },
|
|
15513
15897
|
index.h("sqm-portal-container", { display: "flex", "max-width": "fit-content" },
|
|
15514
15898
|
index.h("sqm-big-stat", { "flex-reverse": "true", alignment: "left", "stat-type": "/referralsCount" },
|
|
15515
15899
|
index.h("p", null, "Referrals")),
|
|
15516
15900
|
index.h("sqm-big-stat", { "flex-reverse": "true", alignment: "left", "stat-type": "/payoutBalance" },
|
|
15517
15901
|
index.h("p", null, "Cash Balance"))),
|
|
15518
|
-
index.h("sqm-payout-button-scroll", { demoData: { states: { ...defaultProps$
|
|
15902
|
+
index.h("sqm-payout-button-scroll", { demoData: { states: { ...defaultProps$p, payoutSettingsComplete: true } } })));
|
|
15519
15903
|
|
|
15520
15904
|
const PayoutButtonScroll = /*#__PURE__*/Object.freeze({
|
|
15521
15905
|
__proto__: null,
|
|
@@ -15527,20 +15911,20 @@ const PayoutButtonScroll = /*#__PURE__*/Object.freeze({
|
|
|
15527
15911
|
const PayoutStatusAlert_stories = {
|
|
15528
15912
|
title: "Components/Payout Status Alert",
|
|
15529
15913
|
};
|
|
15530
|
-
const defaultProps$
|
|
15914
|
+
const defaultProps$q = {
|
|
15531
15915
|
error: false,
|
|
15532
15916
|
status: "INFORMATION_REQUIRED",
|
|
15533
15917
|
loading: false,
|
|
15534
15918
|
veriffLoading: false,
|
|
15535
15919
|
};
|
|
15536
|
-
const InformationRequired = () => (index.h("sqm-payout-status-alert", { demoData: { states: defaultProps$
|
|
15537
|
-
const VerifyIdentity = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$
|
|
15538
|
-
const VerifyIdentityRequiredInternal = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$
|
|
15539
|
-
const VerifyIdentityReviewInternal = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$
|
|
15540
|
-
const VerifyIdentityFailedInternal = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$
|
|
15541
|
-
const Hold = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$
|
|
15542
|
-
const Loading$a = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$
|
|
15543
|
-
const Error$b = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$
|
|
15920
|
+
const InformationRequired = () => (index.h("sqm-payout-status-alert", { demoData: { states: defaultProps$q } }));
|
|
15921
|
+
const VerifyIdentity = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$q, status: "VERIFICATION:REQUIRED" } } }));
|
|
15922
|
+
const VerifyIdentityRequiredInternal = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$q, status: "VERIFICATION:INTERNAL" } } }));
|
|
15923
|
+
const VerifyIdentityReviewInternal = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$q, status: "VERIFICATION:REVIEW" } } }));
|
|
15924
|
+
const VerifyIdentityFailedInternal = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$q, status: "VERIFICATION:FAILED" } } }));
|
|
15925
|
+
const Hold = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$q, status: "HOLD" } } }));
|
|
15926
|
+
const Loading$a = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$q, loading: true } } }));
|
|
15927
|
+
const Error$b = () => (index.h("sqm-payout-status-alert", { demoData: { states: { ...defaultProps$q, error: true } } }));
|
|
15544
15928
|
|
|
15545
15929
|
const PayoutStatusAlert = /*#__PURE__*/Object.freeze({
|
|
15546
15930
|
__proto__: null,
|
|
@@ -15634,7 +16018,7 @@ const ReferralCodes$1 = /*#__PURE__*/Object.freeze({
|
|
|
15634
16018
|
const BaseRegistrationForm_stories = {
|
|
15635
16019
|
title: "Components/Microsite Base Registration",
|
|
15636
16020
|
};
|
|
15637
|
-
const defaultProps$
|
|
16021
|
+
const defaultProps$r = {
|
|
15638
16022
|
states: {
|
|
15639
16023
|
error: "",
|
|
15640
16024
|
},
|
|
@@ -15654,13 +16038,13 @@ const defaultProps$q = {
|
|
|
15654
16038
|
},
|
|
15655
16039
|
};
|
|
15656
16040
|
const errorProps$a = {
|
|
15657
|
-
...defaultProps$
|
|
16041
|
+
...defaultProps$r,
|
|
15658
16042
|
states: {
|
|
15659
16043
|
error: "Something went wrong. Please try again.",
|
|
15660
16044
|
},
|
|
15661
16045
|
};
|
|
15662
16046
|
const Default$o = () => {
|
|
15663
|
-
return index.h(sqmBaseRegistrationFormView.BaseRegistrationFormView, Object.assign({}, defaultProps$
|
|
16047
|
+
return index.h(sqmBaseRegistrationFormView.BaseRegistrationFormView, Object.assign({}, defaultProps$r));
|
|
15664
16048
|
};
|
|
15665
16049
|
const EmailError = () => {
|
|
15666
16050
|
return index.h(sqmBaseRegistrationFormView.BaseRegistrationFormView, Object.assign({}, errorProps$a));
|
|
@@ -15676,7 +16060,7 @@ const BaseRegistrationForm = /*#__PURE__*/Object.freeze({
|
|
|
15676
16060
|
const PortalGoogleRegistrationForm_stories = {
|
|
15677
16061
|
title: "Components/Microsite Google Register",
|
|
15678
16062
|
};
|
|
15679
|
-
const defaultProps$
|
|
16063
|
+
const defaultProps$s = {
|
|
15680
16064
|
states: {
|
|
15681
16065
|
error: "",
|
|
15682
16066
|
loading: false,
|
|
@@ -15702,7 +16086,7 @@ const defaultProps$r = {
|
|
|
15702
16086
|
passwordField: null,
|
|
15703
16087
|
formData: (index.h("div", null,
|
|
15704
16088
|
" ",
|
|
15705
|
-
index.h(
|
|
16089
|
+
index.h(sqmNameFieldsView.NameFieldsView, { states: {
|
|
15706
16090
|
registrationFormState: {
|
|
15707
16091
|
validationErrors: undefined,
|
|
15708
16092
|
disabled: true,
|
|
@@ -15721,7 +16105,7 @@ const defaultProps$r = {
|
|
|
15721
16105
|
},
|
|
15722
16106
|
};
|
|
15723
16107
|
const errorProps$b = {
|
|
15724
|
-
...defaultProps$
|
|
16108
|
+
...defaultProps$s,
|
|
15725
16109
|
states: {
|
|
15726
16110
|
error: "Something went wrong. Please try again.",
|
|
15727
16111
|
loading: false,
|
|
@@ -15737,7 +16121,7 @@ const errorProps$b = {
|
|
|
15737
16121
|
},
|
|
15738
16122
|
};
|
|
15739
16123
|
const loadingProps$8 = {
|
|
15740
|
-
...defaultProps$
|
|
16124
|
+
...defaultProps$s,
|
|
15741
16125
|
states: {
|
|
15742
16126
|
error: "",
|
|
15743
16127
|
loading: true,
|
|
@@ -15752,11 +16136,11 @@ const loadingProps$8 = {
|
|
|
15752
16136
|
},
|
|
15753
16137
|
},
|
|
15754
16138
|
};
|
|
15755
|
-
const Default$p = () => (index.h(sqmPortalRegistrationFormView.PortalRegistrationFormView, Object.assign({}, defaultProps$
|
|
16139
|
+
const Default$p = () => (index.h(sqmPortalRegistrationFormView.PortalRegistrationFormView, Object.assign({}, defaultProps$s)));
|
|
15756
16140
|
const RegisterWithError$2 = () => (index.h(sqmPortalRegistrationFormView.PortalRegistrationFormView, Object.assign({}, errorProps$b)));
|
|
15757
16141
|
const RegisterLoading$2 = () => (index.h(sqmPortalRegistrationFormView.PortalRegistrationFormView, Object.assign({}, loadingProps$8)));
|
|
15758
|
-
const TermsAndConditions$4 = () => (index.h(sqmPortalRegistrationFormView.PortalRegistrationFormView, Object.assign({}, defaultProps$
|
|
15759
|
-
...defaultProps$
|
|
16142
|
+
const TermsAndConditions$4 = () => (index.h(sqmPortalRegistrationFormView.PortalRegistrationFormView, Object.assign({}, defaultProps$s, { content: {
|
|
16143
|
+
...defaultProps$s.content,
|
|
15760
16144
|
terms: (index.h("p", null,
|
|
15761
16145
|
"By signing up you agree to the",
|
|
15762
16146
|
" ",
|
|
@@ -15775,7 +16159,7 @@ const PortalGoogleRegistrationFormStories = /*#__PURE__*/Object.freeze({
|
|
|
15775
16159
|
const QRCode_stories = {
|
|
15776
16160
|
title: "Components/QR Code",
|
|
15777
16161
|
};
|
|
15778
|
-
const defaultProps$
|
|
16162
|
+
const defaultProps$t = {
|
|
15779
16163
|
hideTitle: false,
|
|
15780
16164
|
loading: false,
|
|
15781
16165
|
alignment: "center",
|
|
@@ -15794,28 +16178,28 @@ const defaultProps$s = {
|
|
|
15794
16178
|
errorDescriptionText: "Please refresh this page and try again",
|
|
15795
16179
|
};
|
|
15796
16180
|
const Default$q = () => {
|
|
15797
|
-
return index.h(sqmQrCodeView.QrCodeView, Object.assign({}, defaultProps$
|
|
16181
|
+
return index.h(sqmQrCodeView.QrCodeView, Object.assign({}, defaultProps$t));
|
|
15798
16182
|
};
|
|
15799
16183
|
const HideTitle = () => {
|
|
15800
|
-
return index.h(sqmQrCodeView.QrCodeView, Object.assign({}, defaultProps$
|
|
16184
|
+
return index.h(sqmQrCodeView.QrCodeView, Object.assign({}, defaultProps$t, { hideTitle: true }));
|
|
15801
16185
|
};
|
|
15802
16186
|
const LeftAlign$1 = () => {
|
|
15803
|
-
return index.h(sqmQrCodeView.QrCodeView, Object.assign({}, defaultProps$
|
|
16187
|
+
return index.h(sqmQrCodeView.QrCodeView, Object.assign({}, defaultProps$t, { alignment: "left" }));
|
|
15804
16188
|
};
|
|
15805
16189
|
const CenterAlign = () => {
|
|
15806
|
-
return index.h(sqmQrCodeView.QrCodeView, Object.assign({}, defaultProps$
|
|
16190
|
+
return index.h(sqmQrCodeView.QrCodeView, Object.assign({}, defaultProps$t, { alignment: "center" }));
|
|
15807
16191
|
};
|
|
15808
16192
|
const RightAlign$1 = () => {
|
|
15809
|
-
return index.h(sqmQrCodeView.QrCodeView, Object.assign({}, defaultProps$
|
|
16193
|
+
return index.h(sqmQrCodeView.QrCodeView, Object.assign({}, defaultProps$t, { alignment: "right" }));
|
|
15810
16194
|
};
|
|
15811
16195
|
const Loading$c = () => {
|
|
15812
|
-
return index.h(sqmQrCodeView.QrCodeView, Object.assign({}, defaultProps$
|
|
16196
|
+
return index.h(sqmQrCodeView.QrCodeView, Object.assign({}, defaultProps$t, { loading: true }));
|
|
15813
16197
|
};
|
|
15814
16198
|
const Error$c = () => {
|
|
15815
|
-
return index.h(sqmQrCodeView.QrCodeView, Object.assign({}, defaultProps$
|
|
16199
|
+
return index.h(sqmQrCodeView.QrCodeView, Object.assign({}, defaultProps$t, { error: true }));
|
|
15816
16200
|
};
|
|
15817
16201
|
const DownloadError = () => {
|
|
15818
|
-
return index.h(sqmQrCodeView.QrCodeView, Object.assign({}, defaultProps$
|
|
16202
|
+
return index.h(sqmQrCodeView.QrCodeView, Object.assign({}, defaultProps$t, { error: true }));
|
|
15819
16203
|
};
|
|
15820
16204
|
|
|
15821
16205
|
const QRCode = /*#__PURE__*/Object.freeze({
|
|
@@ -15848,29 +16232,29 @@ const Default$r = `
|
|
|
15848
16232
|
`;
|
|
15849
16233
|
const Orangey = `
|
|
15850
16234
|
:root{
|
|
15851
|
-
${
|
|
16235
|
+
${AutoColor.autoColorScaleCss("orange")}
|
|
15852
16236
|
}
|
|
15853
16237
|
`;
|
|
15854
16238
|
const Netflix = `
|
|
15855
16239
|
:root{
|
|
15856
|
-
${
|
|
16240
|
+
${AutoColor.autoColorScaleCss("#e50914")}
|
|
15857
16241
|
}
|
|
15858
16242
|
`;
|
|
15859
16243
|
const SaaSquatchCorporate = `
|
|
15860
16244
|
:root{
|
|
15861
|
-
${
|
|
16245
|
+
${AutoColor.autoColorScaleCss("#65bd60")}
|
|
15862
16246
|
--sl-font-sans: Arial;
|
|
15863
16247
|
}
|
|
15864
16248
|
`;
|
|
15865
16249
|
const NYTimes = `
|
|
15866
16250
|
:root{
|
|
15867
|
-
${
|
|
16251
|
+
${AutoColor.autoColorScaleCss("black")}
|
|
15868
16252
|
--sl-font-sans: Georgia, 'Times New Roman', serif;
|
|
15869
16253
|
}
|
|
15870
16254
|
`;
|
|
15871
16255
|
const Klip = `
|
|
15872
16256
|
:root{
|
|
15873
|
-
${
|
|
16257
|
+
${AutoColor.autoColorScaleCss("#4225C4")};
|
|
15874
16258
|
}
|
|
15875
16259
|
|
|
15876
16260
|
`;
|
|
@@ -17211,7 +17595,7 @@ const mergeHTMLPlugin = {
|
|
|
17211
17595
|
/**
|
|
17212
17596
|
* @param {Node} node
|
|
17213
17597
|
*/
|
|
17214
|
-
function tag(node) {
|
|
17598
|
+
function tag$1(node) {
|
|
17215
17599
|
return node.nodeName.toLowerCase();
|
|
17216
17600
|
}
|
|
17217
17601
|
|
|
@@ -17235,7 +17619,7 @@ function nodeStream(node) {
|
|
|
17235
17619
|
// Prevent void elements from having an end tag that would actually
|
|
17236
17620
|
// double them in the output. There are more void elements in HTML
|
|
17237
17621
|
// but we list only those realistically expected in code display.
|
|
17238
|
-
if (!tag(child).match(/br|hr|img|input/)) {
|
|
17622
|
+
if (!tag$1(child).match(/br|hr|img|input/)) {
|
|
17239
17623
|
result.push({
|
|
17240
17624
|
event: 'stop',
|
|
17241
17625
|
offset: offset,
|
|
@@ -17294,14 +17678,14 @@ function mergeStreams(original, highlighted, value) {
|
|
|
17294
17678
|
return ' ' + attr.nodeName + '="' + escapeHTML(attr.value) + '"';
|
|
17295
17679
|
}
|
|
17296
17680
|
// @ts-ignore
|
|
17297
|
-
result += '<' + tag(node) + [].map.call(node.attributes, attributeString).join('') + '>';
|
|
17681
|
+
result += '<' + tag$1(node) + [].map.call(node.attributes, attributeString).join('') + '>';
|
|
17298
17682
|
}
|
|
17299
17683
|
|
|
17300
17684
|
/**
|
|
17301
17685
|
* @param {Node} node
|
|
17302
17686
|
*/
|
|
17303
17687
|
function close(node) {
|
|
17304
|
-
result += '</' + tag(node) + '>';
|
|
17688
|
+
result += '</' + tag$1(node) + '>';
|
|
17305
17689
|
}
|
|
17306
17690
|
|
|
17307
17691
|
/**
|
|
@@ -18552,7 +18936,7 @@ const stories = [
|
|
|
18552
18936
|
LinkButton,
|
|
18553
18937
|
EmailRegistration,
|
|
18554
18938
|
CloseButton,
|
|
18555
|
-
|
|
18939
|
+
TaxForm_stories.TaxForm,
|
|
18556
18940
|
RadioCard,
|
|
18557
18941
|
ProgressBar$1,
|
|
18558
18942
|
TaxFormSlots,
|