@saasquatch/mint-components 2.1.8-1 → 2.1.8-11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/dist/cjs/{ShadowViewAddon-5ce32291.js → ShadowViewAddon-0745de12.js} +384 -98
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/mint-components.cjs.js +1 -1
  4. package/dist/cjs/sqm-banking-info-form_10.cjs.entry.js +50 -377
  5. package/dist/cjs/{sqm-big-stat_46.cjs.entry.js → sqm-big-stat_45.cjs.entry.js} +172 -351
  6. package/dist/cjs/sqm-stencilbook.cjs.entry.js +168 -175
  7. package/dist/collection/collection-manifest.json +0 -1
  8. package/dist/collection/components/sqm-share-code/sqm-share-code.js +0 -1
  9. package/dist/collection/components/sqm-share-link/ShareLink.stories.js +142 -11
  10. package/dist/collection/components/sqm-share-link/UseShareLink.stories.js +14 -5
  11. package/dist/collection/components/sqm-share-link/sqm-share-link-view.js +173 -0
  12. package/dist/collection/components/sqm-share-link/sqm-share-link.js +536 -26
  13. package/dist/collection/components/sqm-share-link/useShareLink.js +210 -6
  14. package/dist/collection/components/sqm-stencilbook/sqm-stencilbook.js +0 -2
  15. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/formDefinitions.js +37 -75
  16. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.js +13 -688
  17. package/dist/collection/components/tax-and-cash/sqm-banking-info-form/useBankingInfoForm.js +1 -95
  18. package/dist/esm/{ShadowViewAddon-9d97b5d5.js → ShadowViewAddon-cd0033a6.js} +386 -100
  19. package/dist/esm/loader.js +1 -1
  20. package/dist/esm/mint-components.js +1 -1
  21. package/dist/esm/sqm-banking-info-form_10.entry.js +50 -377
  22. package/dist/esm/{sqm-big-stat_46.entry.js → sqm-big-stat_45.entry.js} +177 -355
  23. package/dist/esm/sqm-stencilbook.entry.js +168 -175
  24. package/dist/esm-es5/ShadowViewAddon-cd0033a6.js +1 -0
  25. package/dist/esm-es5/loader.js +1 -1
  26. package/dist/esm-es5/mint-components.js +1 -1
  27. package/dist/esm-es5/sqm-banking-info-form_10.entry.js +1 -1
  28. package/dist/esm-es5/sqm-big-stat_45.entry.js +1 -0
  29. package/dist/esm-es5/sqm-stencilbook.entry.js +1 -1
  30. package/dist/mint-components/mint-components.esm.js +1 -1
  31. package/dist/mint-components/{p-499885aa.entry.js → p-23e8dd9a.entry.js} +2 -2
  32. package/dist/mint-components/p-27e8efc8.system.js +1 -0
  33. package/dist/mint-components/p-2f314004.system.entry.js +1 -0
  34. package/dist/mint-components/{p-a6621899.system.entry.js → p-8c53dcc9.system.entry.js} +1 -1
  35. package/dist/mint-components/{p-22e39d2c.entry.js → p-a9bb29df.entry.js} +21 -90
  36. package/dist/mint-components/p-ca098be1.system.js +1 -1
  37. package/dist/mint-components/p-cacb897d.system.entry.js +1 -0
  38. package/dist/mint-components/p-fcb7e0a3.js +503 -0
  39. package/dist/mint-components/p-ff378015.entry.js +106 -0
  40. package/dist/types/components/sqm-share-link/ShareLink.stories.d.ts +10 -0
  41. package/dist/types/components/sqm-share-link/UseShareLink.stories.d.ts +6 -0
  42. package/dist/types/components/sqm-share-link/sqm-share-link-view.d.ts +37 -0
  43. package/dist/types/components/sqm-share-link/sqm-share-link.d.ts +107 -2
  44. package/dist/types/components/sqm-share-link/useShareLink.d.ts +27 -4
  45. package/dist/types/components/tax-and-cash/sqm-banking-info-form/formDefinitions.d.ts +0 -2
  46. package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form-view.d.ts +0 -4
  47. package/dist/types/components/tax-and-cash/sqm-banking-info-form/sqm-banking-info-form.d.ts +0 -165
  48. package/dist/types/components.d.ts +183 -380
  49. package/docs/docs.docx +0 -0
  50. package/docs/raisins.json +1 -1
  51. package/grapesjs/grapesjs.js +1 -1
  52. package/package.json +1 -1
  53. package/dist/collection/components/sqm-partner-info-modal/PartnerInfoModal.stories.js +0 -143
  54. package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal-view.js +0 -90
  55. package/dist/collection/components/sqm-partner-info-modal/sqm-partner-info-modal.js +0 -462
  56. package/dist/collection/components/sqm-partner-info-modal/usePartnerInfoModal.js +0 -180
  57. package/dist/esm-es5/ShadowViewAddon-9d97b5d5.js +0 -1
  58. package/dist/esm-es5/sqm-big-stat_46.entry.js +0 -1
  59. package/dist/mint-components/p-0f036907.system.js +0 -1
  60. package/dist/mint-components/p-adc4e263.js +0 -463
  61. package/dist/mint-components/p-b0253f4c.entry.js +0 -108
  62. package/dist/mint-components/p-d93e19e9.system.entry.js +0 -1
  63. package/dist/mint-components/p-e45a9966.system.entry.js +0 -1
  64. package/dist/types/components/sqm-partner-info-modal/PartnerInfoModal.stories.d.ts +0 -13
  65. package/dist/types/components/sqm-partner-info-modal/sqm-partner-info-modal-view.d.ts +0 -41
  66. package/dist/types/components/sqm-partner-info-modal/sqm-partner-info-modal.d.ts +0 -80
  67. package/dist/types/components/sqm-partner-info-modal/usePartnerInfoModal.d.ts +0 -16
@@ -29,7 +29,7 @@ import './utilities-77b1e0cc.js';
29
29
  import { P as PortalResetPasswordView } from './sqm-portal-reset-password-view-cfbc0eb0.js';
30
30
  import './ErrorView-74cb3af8.js';
31
31
  import { Q as QrCodeView } from './sqm-qr-code-view-ce476721.js';
32
- import { S as StatContainerView, B as BigStatView, a as ShareButtonView, P as PortalChangePasswordView, b as PoweredByImg$1, c as BaseRegistrationFormView, u as useDemoBigStat, T as TaskCardView, C as CardFeedView, d as CheckboxFieldView, e as CouponCodeView, D as DropdownFieldView, E as EditProfileView, L as LeaderboardView, H as HeroView, I as InputFieldView, N as NameFieldsView, f as ChangeMarktingView, g as PortalFooterView, h as PortalFrameView, R as ReferralIframeView, i as RewardExchangeView, r as rewardExchangeCustomErrorMsg, j as rewardExchangeLongText, k as rewardExchangeSelected, l as chooseAmountFixed, m as chooseAmountFixedNoDescription, n as chooseAmountVariable, o as chooseAmountVariableNoDescription, p as chooseAmountVariableDisabled, q as chooseAmountVariableUnavailable, s as confirmFixed, t as confirmVariable, v as redemptionError, w as queryError, x as success, y as successVariable, z as loading, A as empty$1, F as rewardExchange, G as useShareButton, J as useShareLink, K as ProgressBarView, M as ProgressBar$2, O as LeadFormView, Q as LeadDropdownFieldView, U as PartnerInfoModalView, V as ShadowViewAddon } from './ShadowViewAddon-9d97b5d5.js';
32
+ import { S as StatContainerView, B as BigStatView, a as ShareButtonView, P as PortalChangePasswordView, b as PoweredByImg$1, c as BaseRegistrationFormView, u as useDemoBigStat, T as TaskCardView, C as CardFeedView, d as CheckboxFieldView, e as CouponCodeView, D as DropdownFieldView, E as EditProfileView, L as LeaderboardView, H as HeroView, I as InputFieldView, N as NameFieldsView, f as ChangeMarktingView, g as PortalFooterView, h as PortalFrameView, R as ReferralIframeView, i as RewardExchangeView, r as rewardExchangeCustomErrorMsg, j as rewardExchangeLongText, k as rewardExchangeSelected, l as chooseAmountFixed, m as chooseAmountFixedNoDescription, n as chooseAmountVariable, o as chooseAmountVariableNoDescription, p as chooseAmountVariableDisabled, q as chooseAmountVariableUnavailable, s as confirmFixed, t as confirmVariable, v as redemptionError, w as queryError, x as success, y as successVariable, z as loading, A as empty$1, F as rewardExchange, G as useShareButton, J as ShareLinkView, K as useShareLink, M as ProgressBarView, O as ProgressBar$2, Q as LeadFormView, U as LeadDropdownFieldView, V as ShadowViewAddon } from './ShadowViewAddon-cd0033a6.js';
33
33
  import { P as PortalContainerView, a as PortalSectionView } from './sqm-portal-container-view-a8c708cd.js';
34
34
  import { I as InvoiceTableView, a as INDIRECT_TAX_SPAIN_REGIONS, b as INDIRECT_TAX_PROVINCES, O as OtherRegionSlotView, U as UserInfoFormView$1 } from './sqm-user-info-form-view-19d81a2b.js';
35
35
  import { t as taxTypeToName, L as LoadingView } from './data-12e6aae1.js';
@@ -14050,21 +14050,151 @@ const CustomStyles$1 = () => {
14050
14050
  return h(CopyTextView, Object.assign({}, props));
14051
14051
  };
14052
14052
  const CustomStylesWithDemoHooks = () => {
14053
- const props = {
14054
- copyString: "https://noah.example.com",
14055
- open: false,
14056
- tooltiptext: "Copied!",
14057
- backgroundColor: "#1ed760",
14058
- borderRadius: "30px",
14059
- textColor: "red",
14060
- buttonType: "primary",
14061
- borderColor: "#121212",
14062
- };
14063
- return (h("sqm-share-link", { demoData: { ...props }, backgroundColor: "#1ed760" }));
14053
+ return (h("sqm-share-link", { demoData: {
14054
+ copyTextViewProps: {
14055
+ copyString: "https://noah.example.com",
14056
+ open: false,
14057
+ tooltiptext: "Copied!",
14058
+ backgroundColor: "#1ed760",
14059
+ borderRadius: "30px",
14060
+ textColor: "red",
14061
+ buttonType: "primary",
14062
+ borderColor: "#121212",
14063
+ },
14064
+ }, backgroundColor: "#1ed760" }));
14064
14065
  };
14065
14066
  const FullStack = () => {
14066
14067
  return h("sqm-share-link", null);
14067
14068
  };
14069
+ // Customize URL stories
14070
+ const noopFn = () => { };
14071
+ const defaultCustomizeProps = {
14072
+ copyTextViewProps: {
14073
+ copyString: "https://ssqt.co/abc123",
14074
+ open: false,
14075
+ tooltiptext: "Copied!",
14076
+ },
14077
+ customizeUrl: true,
14078
+ customizeLinkLabel: "Customize Link",
14079
+ saveLabelText: "Save",
14080
+ cancelLabelText: "Cancel",
14081
+ successMessage: "Link updated successfully",
14082
+ isEditing: false,
14083
+ editValue: "",
14084
+ domainPrefix: "https://ssqt.co/",
14085
+ editsRemaining: 3,
14086
+ maxEdits: 5,
14087
+ limitReached: false,
14088
+ validationError: null,
14089
+ isValidating: false,
14090
+ isSaving: false,
14091
+ showSuccess: false,
14092
+ characterLimit: 15,
14093
+ charactersRemaining: 15,
14094
+ editLimitText: "You can edit your link up to 5 times.",
14095
+ editLimitReachedText: "5 edit limit reached. To make more changes, please contact {supportLink}.",
14096
+ supportLinkText: "Support",
14097
+ customizeDisabled: false,
14098
+ customizeDisabledTooltip: "Link customization is not available.",
14099
+ onCustomizeClick: noopFn,
14100
+ onEditValueChange: noopFn,
14101
+ onSave: noopFn,
14102
+ onCancel: noopFn,
14103
+ };
14104
+ const CustomizeUrlDefault = () => {
14105
+ return h(ShareLinkView, Object.assign({}, defaultCustomizeProps));
14106
+ };
14107
+ const CustomizeUrlEditing = () => {
14108
+ return (h(ShareLinkView, Object.assign({}, {
14109
+ ...defaultCustomizeProps,
14110
+ isEditing: true,
14111
+ editValue: "nvoiwb18",
14112
+ charactersRemaining: 7,
14113
+ })));
14114
+ };
14115
+ const CustomizeUrlCustomized = () => {
14116
+ return (h(ShareLinkView, Object.assign({}, {
14117
+ ...defaultCustomizeProps,
14118
+ copyTextViewProps: {
14119
+ ...defaultCustomizeProps.copyTextViewProps,
14120
+ copyString: "https://ssqt.co/bobtesterson",
14121
+ },
14122
+ })));
14123
+ };
14124
+ const CustomizeUrlLimitReached = () => {
14125
+ return (h(ShareLinkView, Object.assign({}, {
14126
+ ...defaultCustomizeProps,
14127
+ copyTextViewProps: {
14128
+ ...defaultCustomizeProps.copyTextViewProps,
14129
+ copyString: "https://ssqt.co/bobtesterson",
14130
+ },
14131
+ editsRemaining: 0,
14132
+ limitReached: true,
14133
+ })));
14134
+ };
14135
+ const CustomizeUrlDisabled = () => {
14136
+ return (h(ShareLinkView, Object.assign({}, {
14137
+ ...defaultCustomizeProps,
14138
+ customizeDisabled: true,
14139
+ })));
14140
+ };
14141
+ const CustomizeUrlValidationError = () => {
14142
+ return (h(ShareLinkView, Object.assign({}, {
14143
+ ...defaultCustomizeProps,
14144
+ isEditing: true,
14145
+ editValue: "nvoiwb18",
14146
+ charactersRemaining: 7,
14147
+ validationError: {
14148
+ code: "EXISTING_CODE_CONFLICT",
14149
+ title: "This link is already taken",
14150
+ description: "Try adding numbers, a dash or underscore to create a unique link.",
14151
+ },
14152
+ })));
14153
+ };
14154
+ const CustomizeUrlInvalidCharacters = () => {
14155
+ return (h(ShareLinkView, Object.assign({}, {
14156
+ ...defaultCustomizeProps,
14157
+ isEditing: true,
14158
+ editValue: "nvoiwb18",
14159
+ charactersRemaining: 7,
14160
+ validationError: {
14161
+ code: "INVALID_CHARACTERS",
14162
+ title: "Please use only letters, numbers, dashes and underscores",
14163
+ description: "Special characters can break the link when sharing.",
14164
+ },
14165
+ })));
14166
+ };
14167
+ const CustomizeUrlProfanity = () => {
14168
+ return (h(ShareLinkView, Object.assign({}, {
14169
+ ...defaultCustomizeProps,
14170
+ isEditing: true,
14171
+ editValue: "nvoiwb18",
14172
+ charactersRemaining: 7,
14173
+ validationError: {
14174
+ code: "PROFANITY",
14175
+ title: "Please try a different link",
14176
+ description: "This link contains a restricted word.",
14177
+ },
14178
+ })));
14179
+ };
14180
+ const CustomizeUrlSaving = () => {
14181
+ return (h(ShareLinkView, Object.assign({}, {
14182
+ ...defaultCustomizeProps,
14183
+ isEditing: true,
14184
+ editValue: "bobtesterson",
14185
+ isSaving: true,
14186
+ })));
14187
+ };
14188
+ const CustomizeUrlSuccess = () => {
14189
+ return (h(ShareLinkView, Object.assign({}, {
14190
+ ...defaultCustomizeProps,
14191
+ copyTextViewProps: {
14192
+ ...defaultCustomizeProps.copyTextViewProps,
14193
+ copyString: "https://ssqt.co/bobtesterson",
14194
+ },
14195
+ showSuccess: true,
14196
+ })));
14197
+ };
14068
14198
 
14069
14199
  const ShareLink = /*#__PURE__*/Object.freeze({
14070
14200
  __proto__: null,
@@ -14079,7 +14209,17 @@ const ShareLink = /*#__PURE__*/Object.freeze({
14079
14209
  CopyButtonBelow: CopyButtonBelow$3,
14080
14210
  CustomStyles: CustomStyles$1,
14081
14211
  CustomStylesWithDemoHooks: CustomStylesWithDemoHooks,
14082
- FullStack: FullStack
14212
+ FullStack: FullStack,
14213
+ CustomizeUrlDefault: CustomizeUrlDefault,
14214
+ CustomizeUrlEditing: CustomizeUrlEditing,
14215
+ CustomizeUrlCustomized: CustomizeUrlCustomized,
14216
+ CustomizeUrlLimitReached: CustomizeUrlLimitReached,
14217
+ CustomizeUrlDisabled: CustomizeUrlDisabled,
14218
+ CustomizeUrlValidationError: CustomizeUrlValidationError,
14219
+ CustomizeUrlInvalidCharacters: CustomizeUrlInvalidCharacters,
14220
+ CustomizeUrlProfanity: CustomizeUrlProfanity,
14221
+ CustomizeUrlSaving: CustomizeUrlSaving,
14222
+ CustomizeUrlSuccess: CustomizeUrlSuccess
14083
14223
  });
14084
14224
 
14085
14225
  const UseShareLink_stories = {
@@ -14117,11 +14257,11 @@ const BareBonesView$1 = createHookStory(() => {
14117
14257
  return (h("div", null,
14118
14258
  "Sharelink:",
14119
14259
  " ",
14120
- h("code", { style: { borderStyle: "solid", borderWidth: "1px", padding: "2px" } }, res.copyString)));
14260
+ h("code", { style: { borderStyle: "solid", borderWidth: "1px", padding: "2px" } }, res.copyTextViewProps.copyString)));
14121
14261
  });
14122
14262
  const RegularView$2 = createHookStory(() => {
14123
14263
  setupGraphQL$c();
14124
- return (h(CopyTextView, Object.assign({}, useShareLink({
14264
+ return (h(ShareLinkView, Object.assign({}, useShareLink({
14125
14265
  programId: "klip-referral-program",
14126
14266
  tooltiptext: "Copied to clipboard",
14127
14267
  tooltiplifespan: 1000,
@@ -14129,19 +14269,29 @@ const RegularView$2 = createHookStory(() => {
14129
14269
  });
14130
14270
  const FastTooltip = createHookStory(() => {
14131
14271
  setupGraphQL$c();
14132
- return (h(CopyTextView, Object.assign({}, useShareLink({
14272
+ return (h(ShareLinkView, Object.assign({}, useShareLink({
14133
14273
  programId: "klip-referral-program",
14134
- tooltiptext: "⠀⠀⠀⠀⠀⠀⠀⠀⠀HELLO THERE!!!\n⠀⠀⠀⡯⡯⡾⠝⠘⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢊⠘⡮⣣⠪⠢⡑⡌\n⠀⠀⠀⠟⠝⠈⠀⠀⠀⠡⠀⠠⢈⠠⢐⢠⢂⢔⣐⢄⡂⢔⠀⡁⢉⠸⢨⢑⠕⡌\n⠀⠀⡀⠁⠀⠀⠀⡀⢂⠡⠈⡔⣕⢮⣳⢯⣿⣻⣟⣯⣯⢷⣫⣆⡂⠀⠀⢐⠑⡌\n⢀⠠⠐⠈⠀⢀⢂⠢⡂⠕⡁⣝⢮⣳⢽⡽⣾⣻⣿⣯⡯⣟⣞⢾⢜⢆⠀⡀⠀⠪\n⣬⠂⠀⠀⢀⢂⢪⠨⢂⠥⣺⡪⣗⢗⣽⢽⡯⣿⣽⣷⢿⡽⡾⡽⣝⢎⠀⠀⠀⢡\n⣿⠀⠀⠀⢂⠢⢂⢥⢱⡹⣪⢞⡵⣻⡪⡯⡯⣟⡾⣿⣻⡽⣯⡻⣪⠧⠑⠀⠁⢐\n⣿⠀⠀⠀⠢⢑⠠⠑⠕⡝⡎⡗⡝⡎⣞⢽⡹⣕⢯⢻⠹⡹⢚⠝⡷⡽⡨⠀⠀⢔\n⣿⡯⠀⢈⠈⢄⠂⠂⠐⠀⠌⠠⢑⠱⡱⡱⡑⢔⠁⠀⡀⠐⠐⠐⡡⡹⣪⠀⠀⢘\n⣿⣽⠀⡀⡊⠀⠐⠨⠈⡁⠂⢈⠠⡱⡽⣷⡑⠁⠠⠑⠀⢉⢇⣤⢘⣪⢽⠀⢌⢎\n⣿⢾⠀⢌⠌⠀⡁⠢⠂⠐⡀⠀⢀⢳⢽⣽⡺⣨⢄⣑⢉⢃⢭⡲⣕⡭⣹⠠⢐⢗\n⣿⡗⠀⠢⠡⡱⡸⣔⢵⢱⢸⠈⠀⡪⣳⣳⢹⢜⡵⣱⢱⡱⣳⡹⣵⣻⢔⢅⢬⡷\n⣷⡇⡂⠡⡑⢕⢕⠕⡑⠡⢂⢊⢐⢕⡝⡮⡧⡳⣝⢴⡐⣁⠃⡫⡒⣕⢏⡮⣷⡟\n⣷⣻⣅⠑⢌⠢⠁⢐⠠⠑⡐⠐⠌⡪⠮⡫⠪⡪⡪⣺⢸⠰⠡⠠⠐⢱⠨⡪⡪⡰\n⣯⢷⣟⣇⡂⡂⡌⡀⠀⠁⡂⠅⠂⠀⡑⡄⢇⠇⢝⡨⡠⡁⢐⠠⢀⢪⡐⡜⡪⡊\n⣿⢽⡾⢹⡄⠕⡅⢇⠂⠑⣴⡬⣬⣬⣆⢮⣦⣷⣵⣷⡗⢃⢮⠱⡸⢰⢱⢸⢨⢌\n⣯⢯⣟⠸⣳⡅⠜⠔⡌⡐⠈⠻⠟⣿⢿⣿⣿⠿⡻⣃⠢⣱⡳⡱⡩⢢⠣⡃⠢⠁\n⡯⣟⣞⡇⡿⣽⡪⡘⡰⠨⢐⢀⠢⢢⢄⢤⣰⠼⡾⢕⢕⡵⣝⠎⢌⢪⠪⡘⡌⠀\n⡯⣳⠯⠚⢊⠡⡂⢂⠨⠊⠔⡑⠬⡸⣘⢬⢪⣪⡺⡼⣕⢯⢞⢕⢝⠎⢻⢼⣀⠀\n⠁⡂⠔⡁⡢⠣⢀⠢⠀⠅⠱⡐⡱⡘⡔⡕⡕⣲⡹⣎⡮⡏⡑⢜⢼⡱⢩⣗⣯⣟\n⢀⢂⢑⠀⡂⡃⠅⠊⢄⢑⠠⠑⢕⢕⢝⢮⢺⢕⢟⢮⢊⢢⢱⢄⠃⣇⣞⢞⣞⢾\n⢀⠢⡑⡀⢂⢊⠠⠁⡂⡐⠀⠅⡈⠪⠪⠪⠣⠫⠑⡁⢔⠕⣜⣜⢦⡰⡎⡯⡾⡽",
14274
+ tooltiptext: "Copied to clipboard",
14135
14275
  tooltiplifespan: 500,
14136
14276
  }))));
14137
14277
  });
14278
+ const CustomizeUrlEnabled = createHookStory(() => {
14279
+ setupGraphQL$c();
14280
+ return (h(ShareLinkView, Object.assign({}, useShareLink({
14281
+ programId: "klip-referral-program",
14282
+ tooltiptext: "Copied to clipboard",
14283
+ tooltiplifespan: 1000,
14284
+ customizeUrl: true,
14285
+ }))));
14286
+ });
14138
14287
 
14139
14288
  const UseShareLink = /*#__PURE__*/Object.freeze({
14140
14289
  __proto__: null,
14141
14290
  'default': UseShareLink_stories,
14142
14291
  BareBonesView: BareBonesView$1,
14143
14292
  RegularView: RegularView$2,
14144
- FastTooltip: FastTooltip
14293
+ FastTooltip: FastTooltip,
14294
+ CustomizeUrlEnabled: CustomizeUrlEnabled
14145
14295
  });
14146
14296
 
14147
14297
  const scenario$C = "@author:Zach\n@owner:Zach\nFeature: Tabs\n\n The Tabs takes in the Tab component as children and maps through to display their header and content.\n\n Background: A user on the portal is viewing the widget\n Given a user viewing the Tabs component\n\n @motivating\n Scenario: Content inside the active tab is shown\n Given the header is set to <tabHeader>\n And the content inside is <tabContent>\n And the user has clicked <tabHeader>\n Then the <tabContent> is shown\n Examples:\n | tabHeader | tabContent |\n | Settings | This is the settings tab |\n | General | This is the general tab |\n | History | This is the history tab |\n\n @motivating\n @ui\n Scenario: The placement of the tabs is configurable\n Given The placement prop has been passed a valid <placement>\n Then tabs are placed on the <placementResult>\n Examples:\n | placement | placementResult |\n | | top of the content |\n | left | left hand side of the content |\n | right | right hand side of the content |\n | bottom | bottom of the content |\n\n\n @minutia\n @ui\n Scenario Outline: Tabs are setup to use the brand color\n Given the brand color is set to darkblue\n Then the text inside the active tab is darkblue\n And the underline of the active tab is darkblue\n\n @ui\n Scenario: Tabs are responsive\n Given the user is on a mobile device\n When there are more tabs than the horizontal space allows for\n Then clickable arrows appear on the left and right of the tabs\n And the tabs are scrollable\n\n @landmine\n Scenario: Program section cannot be used inside of tabs\n Given a tabs component\n And tab containing a program section with program-id \"test123\"\n And the program section wraps a component using program context\n When the tabs component is rendered\n Then the \"sq:program-id\" event listener for the program section is removed\n And the component does not use program-id \"test123\" to source its data\n And falls back to the global program id";
@@ -18696,162 +18846,6 @@ const UserInfoFormView = /*#__PURE__*/Object.freeze({
18696
18846
  DisabledForm: DisabledForm
18697
18847
  });
18698
18848
 
18699
- const PartnerInfoModal_stories = {
18700
- title: "Components/Partner Info Modal",
18701
- };
18702
- const demoCountries = [
18703
- { countryCode: "US", displayName: "United States" },
18704
- { countryCode: "CA", displayName: "Canada" },
18705
- { countryCode: "GB", displayName: "United Kingdom" },
18706
- { countryCode: "AU", displayName: "Australia" },
18707
- { countryCode: "DE", displayName: "Germany" },
18708
- { countryCode: "FR", displayName: "France" },
18709
- { countryCode: "JP", displayName: "Japan" },
18710
- ];
18711
- const demoCurrencies = [
18712
- { currencyCode: "USD", displayName: "US Dollar" },
18713
- { currencyCode: "CAD", displayName: "Canadian Dollar" },
18714
- { currencyCode: "GBP", displayName: "British Pound" },
18715
- { currencyCode: "EUR", displayName: "Euro" },
18716
- { currencyCode: "AUD", displayName: "Australian Dollar" },
18717
- ];
18718
- const noopCallbacks = {
18719
- onCountryChange: (e) => console.log("Country changed:", e),
18720
- onCurrencyChange: (e) => console.log("Currency changed:", e),
18721
- onCountrySearch: (v) => console.log("Country search:", v),
18722
- onCurrencySearch: (v) => console.log("Currency search:", v),
18723
- onSubmit: () => console.log("Submit"),
18724
- onClose: () => console.log("Close"),
18725
- };
18726
- const defaultText$1 = {
18727
- modalBrandHeader: "Welcome to {brandName} Program!",
18728
- descriptionNewPartner: "We just need a bit more information about you before you start earning cash!",
18729
- descriptionExistingPartner: "We noticed you are already an Impact.com partner, please confirm your information.",
18730
- countryLabel: "Country",
18731
- currencyLabel: "Currency",
18732
- submitButtonLabel: "Submit",
18733
- confirmButtonLabel: "Confirm",
18734
- searchCountryPlaceholder: "Search for a country",
18735
- searchCurrencyPlaceholder: "Search for a currency",
18736
- };
18737
- const defaultProps$y = {
18738
- states: {
18739
- open: true,
18740
- loading: false,
18741
- submitting: false,
18742
- isExistingPartner: false,
18743
- countryCode: "",
18744
- currency: "",
18745
- error: "",
18746
- success: false,
18747
- brandName: "Test Brand",
18748
- filteredCountries: demoCountries,
18749
- filteredCurrencies: demoCurrencies,
18750
- },
18751
- callbacks: noopCallbacks,
18752
- text: defaultText$1,
18753
- };
18754
- const NewPartnerEmpty = () => {
18755
- return h(PartnerInfoModalView, Object.assign({}, defaultProps$y));
18756
- };
18757
- const NewPartnerPrefilled = () => {
18758
- const props = {
18759
- ...defaultProps$y,
18760
- states: {
18761
- ...defaultProps$y.states,
18762
- countryCode: "US",
18763
- currency: "",
18764
- },
18765
- };
18766
- return h(PartnerInfoModalView, Object.assign({}, props));
18767
- };
18768
- const NewPartnerFullySelected = () => {
18769
- const props = {
18770
- ...defaultProps$y,
18771
- states: {
18772
- ...defaultProps$y.states,
18773
- countryCode: "US",
18774
- currency: "USD",
18775
- },
18776
- };
18777
- return h(PartnerInfoModalView, Object.assign({}, props));
18778
- };
18779
- const ExistingPartnerConfirm = () => {
18780
- const props = {
18781
- ...defaultProps$y,
18782
- states: {
18783
- ...defaultProps$y.states,
18784
- isExistingPartner: true,
18785
- countryCode: "CA",
18786
- currency: "CAD",
18787
- },
18788
- };
18789
- return h(PartnerInfoModalView, Object.assign({}, props));
18790
- };
18791
- const Submitting = () => {
18792
- const props = {
18793
- ...defaultProps$y,
18794
- states: {
18795
- ...defaultProps$y.states,
18796
- countryCode: "GB",
18797
- currency: "GBP",
18798
- submitting: true,
18799
- },
18800
- };
18801
- return h(PartnerInfoModalView, Object.assign({}, props));
18802
- };
18803
- const WithError$3 = () => {
18804
- const props = {
18805
- ...defaultProps$y,
18806
- states: {
18807
- ...defaultProps$y.states,
18808
- countryCode: "US",
18809
- currency: "USD",
18810
- error: "An error occurred while creating your partner account. Please try again.",
18811
- },
18812
- };
18813
- return h(PartnerInfoModalView, Object.assign({}, props));
18814
- };
18815
- const ValidationError$1 = () => {
18816
- const props = {
18817
- ...defaultProps$y,
18818
- states: {
18819
- ...defaultProps$y.states,
18820
- countryCode: "",
18821
- currency: "",
18822
- error: "Please select both a country and currency.",
18823
- },
18824
- };
18825
- return h(PartnerInfoModalView, Object.assign({}, props));
18826
- };
18827
- const Closed = () => {
18828
- const props = {
18829
- ...defaultProps$y,
18830
- states: {
18831
- ...defaultProps$y.states,
18832
- open: false,
18833
- },
18834
- };
18835
- return h(PartnerInfoModalView, Object.assign({}, props));
18836
- };
18837
- const FullStackDemo = () => {
18838
- return (h("sqm-partner-info-modal", { "brand-name": "Acme", "header-new-partner": "Welcome to {brandName} Program!", "description-new-partner": "We just need a bit more information about you before you start earning cash!", "submit-button-label": "Submit" }));
18839
- };
18840
-
18841
- const PartnerInfoModal = /*#__PURE__*/Object.freeze({
18842
- __proto__: null,
18843
- 'default': PartnerInfoModal_stories,
18844
- NewPartnerEmpty: NewPartnerEmpty,
18845
- NewPartnerPrefilled: NewPartnerPrefilled,
18846
- NewPartnerFullySelected: NewPartnerFullySelected,
18847
- ExistingPartnerConfirm: ExistingPartnerConfirm,
18848
- Submitting: Submitting,
18849
- WithError: WithError$3,
18850
- ValidationError: ValidationError$1,
18851
- Closed: Closed,
18852
- FullStackDemo: FullStackDemo
18853
- });
18854
-
18855
18849
  function deepFreeze(obj) {
18856
18850
  if (obj instanceof Map) {
18857
18851
  obj.clear = obj.delete = obj.set = function () {
@@ -21545,7 +21539,6 @@ const stories = [
21545
21539
  TaxAndCashRewardsTable,
21546
21540
  TaxAndCashReferralTableRewardsCell,
21547
21541
  TaxAndCashReferralTable$1,
21548
- PartnerInfoModal,
21549
21542
  ];
21550
21543
  const StencilStorybook = class {
21551
21544
  constructor(hostRef) {