@saasquatch/mint-components 1.5.0-3 → 1.5.0-4

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 (54) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/mint-components.cjs.js +1 -1
  3. package/dist/cjs/sqm-brand_31.cjs.entry.js +417 -364
  4. package/dist/cjs/{sqm-program-explainer-step-view-98958ab1.js → sqm-program-explainer-step-view-74863815.js} +8 -2
  5. package/dist/cjs/sqm-program-explainer-step.cjs.entry.js +1 -1
  6. package/dist/cjs/{sqm-program-explainer-view-ba7ed24a.js → sqm-program-explainer-view-afed92f5.js} +1 -0
  7. package/dist/cjs/sqm-program-explainer.cjs.entry.js +1 -1
  8. package/dist/collection/components/sqm-brand/SqmBrand.stories.js +31 -13
  9. package/dist/collection/components/sqm-brand/sqm-brand.js +51 -13
  10. package/dist/collection/components/sqm-program-explainer/ProgramExplainer.stories.js +3 -0
  11. package/dist/collection/components/sqm-program-explainer/sqm-program-explainer-view.js +1 -0
  12. package/dist/collection/components/sqm-program-explainer-step/ProgramExplainerStep.stories.js +2 -1
  13. package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step-view.js +8 -2
  14. package/dist/collection/components/sqm-program-explainer-step/sqm-program-explainer-step.js +23 -0
  15. package/dist/collection/fonts/GoogleFonts.js +12 -0
  16. package/dist/esm/loader.js +1 -1
  17. package/dist/esm/mint-components.js +1 -1
  18. package/dist/esm/sqm-brand_31.entry.js +418 -365
  19. package/dist/esm/{sqm-program-explainer-step-view-64fc0c37.js → sqm-program-explainer-step-view-f190277a.js} +8 -2
  20. package/dist/esm/sqm-program-explainer-step.entry.js +1 -1
  21. package/dist/esm/{sqm-program-explainer-view-68f0d242.js → sqm-program-explainer-view-1c603bb7.js} +1 -0
  22. package/dist/esm/sqm-program-explainer.entry.js +1 -1
  23. package/dist/esm-es5/loader.js +1 -1
  24. package/dist/esm-es5/mint-components.js +1 -1
  25. package/dist/esm-es5/sqm-brand_31.entry.js +2 -2
  26. package/dist/esm-es5/{sqm-program-explainer-step-view-64fc0c37.js → sqm-program-explainer-step-view-f190277a.js} +1 -1
  27. package/dist/esm-es5/sqm-program-explainer-step.entry.js +1 -1
  28. package/dist/esm-es5/{sqm-program-explainer-view-68f0d242.js → sqm-program-explainer-view-1c603bb7.js} +1 -1
  29. package/dist/esm-es5/sqm-program-explainer.entry.js +1 -1
  30. package/dist/mint-components/mint-components.esm.js +1 -1
  31. package/dist/mint-components/mint-components.js +1 -1
  32. package/dist/mint-components/p-16f5a7cb.system.js +1 -1
  33. package/dist/mint-components/{p-1435350e.system.js → p-2d6421b6.system.js} +1 -1
  34. package/dist/mint-components/p-3b6228f4.system.js +1 -0
  35. package/dist/mint-components/p-5f4d838e.system.entry.js +58 -0
  36. package/dist/mint-components/p-6c9c4477.js +1 -0
  37. package/dist/mint-components/{p-dd865aa8.entry.js → p-84dc4854.entry.js} +9 -9
  38. package/dist/mint-components/{p-259d31fc.entry.js → p-96a1967b.entry.js} +1 -1
  39. package/dist/mint-components/{p-5cda79ed.system.entry.js → p-9e4e397a.system.entry.js} +1 -1
  40. package/dist/mint-components/p-bc8b6125.js +1 -0
  41. package/dist/mint-components/{p-f52bc20c.entry.js → p-bf1b79ba.entry.js} +1 -1
  42. package/dist/mint-components/{p-864f49d2.system.entry.js → p-c3f91add.system.entry.js} +1 -1
  43. package/dist/types/components/sqm-brand/SqmBrand.stories.d.ts +1 -0
  44. package/dist/types/components/sqm-brand/sqm-brand.d.ts +6 -0
  45. package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step-view.d.ts +1 -0
  46. package/dist/types/components/sqm-program-explainer-step/sqm-program-explainer-step.d.ts +5 -0
  47. package/dist/types/components.d.ts +20 -0
  48. package/dist/types/fonts/GoogleFonts.d.ts +9 -0
  49. package/grapesjs/grapesjs.js +1 -1
  50. package/package.json +1 -1
  51. package/dist/mint-components/p-6d6be8bd.system.js +0 -1
  52. package/dist/mint-components/p-8c4931a5.js +0 -1
  53. package/dist/mint-components/p-adcde089.system.entry.js +0 -58
  54. package/dist/mint-components/p-bf7fcf0c.js +0 -1
@@ -32,8 +32,21 @@ const sqmAssetCardView = require('./sqm-asset-card-view-07f86880.js');
32
32
  const sqmPortalFooterView = require('./sqm-portal-footer-view-69c73802.js');
33
33
  const sqmHeroView = require('./sqm-hero-view-bb3d00a1.js');
34
34
  const sqmNameFieldsView = require('./sqm-name-fields-view-24614ac7.js');
35
- const sqmProgramExplainerView = require('./sqm-program-explainer-view-ba7ed24a.js');
36
- const sqmProgramExplainerStepView = require('./sqm-program-explainer-step-view-98958ab1.js');
35
+ const sqmProgramExplainerView = require('./sqm-program-explainer-view-afed92f5.js');
36
+ const sqmProgramExplainerStepView = require('./sqm-program-explainer-step-view-74863815.js');
37
+
38
+ /**
39
+ * Build a font CSS URL using the Google Fonts CSS API
40
+ *
41
+ * Docs: https://developers.google.com/fonts/docs/css2
42
+ *
43
+ * @param fonts - the font family or families to load
44
+ * @returns url to a .css file
45
+ */
46
+ function buildFontsCssUrl(...fonts) {
47
+ const queryString = fonts.map(f => `family=${encodeURIComponent(f)}`).join("&");
48
+ return `https://fonts.googleapis.com/css2?${queryString}`;
49
+ }
37
50
 
38
51
  var chroma = _extends.createCommonjsModule(function (module, exports) {
39
52
  /**
@@ -3300,24 +3313,41 @@ function makeColorScale(color) {
3300
3313
  const BrandComponent = class {
3301
3314
  constructor(hostRef) {
3302
3315
  index.registerInstance(this, hostRef);
3303
- /**
3304
- * Controls the primary brand color used in the Mint Components library. Note that this
3305
- * does not affect vanilla components or other component libraries.
3306
- *
3307
- * @uiName Brand Color
3308
- */
3309
- this.brandColor = "#0000FF";
3310
3316
  _extends.h$1(this);
3311
3317
  }
3312
3318
  disconnectedCallback() { }
3313
3319
  render() {
3314
- const css = autoColorScaleCss(this.brandColor);
3320
+ var _a, _b;
3321
+ const brandColor = (_a = this.brandColor) !== null && _a !== void 0 ? _a : "inherit";
3322
+ const css = autoColorScaleCss(brandColor);
3323
+ const sanitizedFont = ((_b = this.brandFont) !== null && _b !== void 0 ? _b : "").trim() || undefined;
3324
+ _extends.useEffect(() => {
3325
+ if (!sanitizedFont) {
3326
+ // Nothing required in default case.
3327
+ return;
3328
+ }
3329
+ const sheet = document.createElement("link");
3330
+ sheet.setAttribute("href", buildFontsCssUrl(sanitizedFont));
3331
+ sheet.setAttribute("rel", "stylesheet");
3332
+ document.head.appendChild(sheet);
3333
+ return () => document.head.removeChild(sheet);
3334
+ }, [sanitizedFont]);
3335
+ const font = sanitizedFont !== null && sanitizedFont !== void 0 ? sanitizedFont : "inherit";
3315
3336
  return (index.h(index.Host, null, index.h("style", null, `
3316
3337
  :host{
3317
3338
  display: contents;
3318
3339
  }
3319
- /* Selects any element placed inside a slot */
3340
+ /*
3341
+ Selects any element placed inside a slot
3342
+ - resets css variable inheritence for fonts
3343
+
3344
+ */
3320
3345
  ::slotted(*) {
3346
+ --sl-font-sans: "${font}", arial;
3347
+ --sl-input-font-family: "${font}", arial;
3348
+ --sl-tooltip-font-family: "${font}", arial;
3349
+ font-family: "${font}", arial;
3350
+
3321
3351
  ${css}
3322
3352
  }`), index.h("slot", null)));
3323
3353
  }
@@ -21076,15 +21106,15 @@ const FullStackIcon = () => {
21076
21106
  };
21077
21107
 
21078
21108
  const ShareButton$1 = /*#__PURE__*/Object.freeze({
21079
- __proto__: null,
21080
- 'default': ShareButton_stories,
21081
- WithIcon: WithIcon,
21082
- WithIconOverride: WithIconOverride,
21083
- TextStyle: TextStyle,
21084
- WithoutIcon: WithoutIcon,
21085
- WithoutText: WithoutText,
21086
- TextStyleWithoutIcon: TextStyleWithoutIcon,
21087
- FullStackIcon: FullStackIcon
21109
+ __proto__: null,
21110
+ 'default': ShareButton_stories,
21111
+ WithIcon: WithIcon,
21112
+ WithIconOverride: WithIconOverride,
21113
+ TextStyle: TextStyle,
21114
+ WithoutIcon: WithoutIcon,
21115
+ WithoutText: WithoutText,
21116
+ TextStyleWithoutIcon: TextStyleWithoutIcon,
21117
+ FullStackIcon: FullStackIcon
21088
21118
  });
21089
21119
 
21090
21120
  const ShareLink_stories = {
@@ -21120,12 +21150,12 @@ const FullStack = () => {
21120
21150
  };
21121
21151
 
21122
21152
  const ShareLink$1 = /*#__PURE__*/Object.freeze({
21123
- __proto__: null,
21124
- 'default': ShareLink_stories,
21125
- Default: Default,
21126
- Tooltip: Tooltip,
21127
- Disabled: Disabled,
21128
- FullStack: FullStack
21153
+ __proto__: null,
21154
+ 'default': ShareLink_stories,
21155
+ Default: Default,
21156
+ Tooltip: Tooltip,
21157
+ Disabled: Disabled,
21158
+ FullStack: FullStack
21129
21159
  });
21130
21160
 
21131
21161
  const BigStat_stories = {
@@ -21193,16 +21223,16 @@ const InvalidStatValue = () => {
21193
21223
  };
21194
21224
 
21195
21225
  const BigStat = /*#__PURE__*/Object.freeze({
21196
- __proto__: null,
21197
- 'default': BigStat_stories,
21198
- Default: Default$1,
21199
- LeftAlign: LeftAlign,
21200
- RightAlign: RightAlign,
21201
- FlexReverse: FlexReverse,
21202
- FlexReverseRight: FlexReverseRight,
21203
- FlexReverseLeft: FlexReverseLeft,
21204
- NoStatValue: NoStatValue,
21205
- InvalidStatValue: InvalidStatValue
21226
+ __proto__: null,
21227
+ 'default': BigStat_stories,
21228
+ Default: Default$1,
21229
+ LeftAlign: LeftAlign,
21230
+ RightAlign: RightAlign,
21231
+ FlexReverse: FlexReverse,
21232
+ FlexReverseRight: FlexReverseRight,
21233
+ FlexReverseLeft: FlexReverseLeft,
21234
+ NoStatValue: NoStatValue,
21235
+ InvalidStatValue: InvalidStatValue
21206
21236
  });
21207
21237
 
21208
21238
  const Leaderboard_stories = {
@@ -21305,12 +21335,12 @@ const Five = () => {
21305
21335
  };
21306
21336
 
21307
21337
  const Leaderboard = /*#__PURE__*/Object.freeze({
21308
- __proto__: null,
21309
- 'default': Leaderboard_stories,
21310
- Empty: Empty,
21311
- Loading: Loading,
21312
- One: One,
21313
- Five: Five
21338
+ __proto__: null,
21339
+ 'default': Leaderboard_stories,
21340
+ Empty: Empty,
21341
+ Loading: Loading,
21342
+ One: One,
21343
+ Five: Five
21314
21344
  });
21315
21345
 
21316
21346
  const HookStoryAddon = ({ story }, children) => {
@@ -21474,12 +21504,12 @@ const RouterPlayground = createHookStory(() => {
21474
21504
  });
21475
21505
 
21476
21506
  const Router = /*#__PURE__*/Object.freeze({
21477
- __proto__: null,
21478
- 'default': Router_stories,
21479
- TemplateNavigation: TemplateNavigation,
21480
- RouteNavigation: RouteNavigation,
21481
- Styling: Styling,
21482
- RouterPlayground: RouterPlayground
21507
+ __proto__: null,
21508
+ 'default': Router_stories,
21509
+ TemplateNavigation: TemplateNavigation,
21510
+ RouteNavigation: RouteNavigation,
21511
+ Styling: Styling,
21512
+ RouterPlayground: RouterPlayground
21483
21513
  });
21484
21514
 
21485
21515
  const LeaderboardRank_stories = {
@@ -21494,9 +21524,9 @@ const First = () => {
21494
21524
  };
21495
21525
 
21496
21526
  const LeaderboardRank = /*#__PURE__*/Object.freeze({
21497
- __proto__: null,
21498
- 'default': LeaderboardRank_stories,
21499
- First: First
21527
+ __proto__: null,
21528
+ 'default': LeaderboardRank_stories,
21529
+ First: First
21500
21530
  });
21501
21531
 
21502
21532
  function setupGraphQL() {
@@ -21616,12 +21646,12 @@ const FullStackFrameLoggedOut = () => {
21616
21646
  };
21617
21647
 
21618
21648
  const PortalFrame$1 = /*#__PURE__*/Object.freeze({
21619
- __proto__: null,
21620
- 'default': PortalFrame_stories,
21621
- FrameWithMenu: FrameWithMenu,
21622
- FrameWithoutMenu: FrameWithoutMenu,
21623
- FullStackFrame: FullStackFrame,
21624
- FullStackFrameLoggedOut: FullStackFrameLoggedOut
21649
+ __proto__: null,
21650
+ 'default': PortalFrame_stories,
21651
+ FrameWithMenu: FrameWithMenu,
21652
+ FrameWithoutMenu: FrameWithoutMenu,
21653
+ FullStackFrame: FullStackFrame,
21654
+ FullStackFrameLoggedOut: FullStackFrameLoggedOut
21625
21655
  });
21626
21656
 
21627
21657
  const EditProfileForm_stories = {
@@ -21685,11 +21715,11 @@ const FullStackFrameWithMenu = () => {
21685
21715
  };
21686
21716
 
21687
21717
  const EditProfile$1 = /*#__PURE__*/Object.freeze({
21688
- __proto__: null,
21689
- 'default': EditProfileForm_stories,
21690
- EditProfileFormDisabled: EditProfileFormDisabled,
21691
- EditProfileFormEnabled: EditProfileFormEnabled,
21692
- FullStackFrameWithMenu: FullStackFrameWithMenu
21718
+ __proto__: null,
21719
+ 'default': EditProfileForm_stories,
21720
+ EditProfileFormDisabled: EditProfileFormDisabled,
21721
+ EditProfileFormEnabled: EditProfileFormEnabled,
21722
+ FullStackFrameWithMenu: FullStackFrameWithMenu
21693
21723
  });
21694
21724
 
21695
21725
  const UseShareLink_stories = {
@@ -21747,11 +21777,11 @@ const FastTooltip = createHookStory(() => {
21747
21777
  });
21748
21778
 
21749
21779
  const UseShareLink = /*#__PURE__*/Object.freeze({
21750
- __proto__: null,
21751
- 'default': UseShareLink_stories,
21752
- BareBonesView: BareBonesView,
21753
- RegularView: RegularView,
21754
- FastTooltip: FastTooltip
21780
+ __proto__: null,
21781
+ 'default': UseShareLink_stories,
21782
+ BareBonesView: BareBonesView,
21783
+ RegularView: RegularView,
21784
+ FastTooltip: FastTooltip
21755
21785
  });
21756
21786
 
21757
21787
  const UseShareButton_stories = {
@@ -21810,10 +21840,10 @@ const RegularView$1 = createHookStory(() => {
21810
21840
  });
21811
21841
 
21812
21842
  const UseShareButton = /*#__PURE__*/Object.freeze({
21813
- __proto__: null,
21814
- 'default': UseShareButton_stories,
21815
- BareBonesView: BareBonesView$1,
21816
- RegularView: RegularView$1
21843
+ __proto__: null,
21844
+ 'default': UseShareButton_stories,
21845
+ BareBonesView: BareBonesView$1,
21846
+ RegularView: RegularView$1
21817
21847
  });
21818
21848
 
21819
21849
  const UseBigStat_stories = {
@@ -21918,36 +21948,36 @@ const CustomField = createHookStory(() => {
21918
21948
  });
21919
21949
 
21920
21950
  const UseBigStat = /*#__PURE__*/Object.freeze({
21921
- __proto__: null,
21922
- 'default': UseBigStat_stories,
21923
- Demo: Demo,
21924
- ReferralsCount: ReferralsCount,
21925
- referralsConvertedCount: referralsConvertedCount,
21926
- referralsStartedCount: referralsStartedCount,
21927
- ReferralsMonth: ReferralsMonth,
21928
- ReferralsWeek: ReferralsWeek,
21929
- RewardsCount: RewardsCount,
21930
- GlobalRewardsCount: GlobalRewardsCount,
21931
- GlobalRewardsCountFiltered: GlobalRewardsCountFiltered,
21932
- GlobalRewardsCountPctDiscount: GlobalRewardsCountPctDiscount,
21933
- GlobalRewardsCountPctDiscountPending: GlobalRewardsCountPctDiscountPending,
21934
- RewardsCountByUnit: RewardsCountByUnit,
21935
- GlobalRewardsCountByUnit: GlobalRewardsCountByUnit,
21936
- GlobalPendingRewardsCount: GlobalPendingRewardsCount,
21937
- RewardsAvailableCount: RewardsAvailableCount,
21938
- GlobalRewardsCountByIntegration: GlobalRewardsCountByIntegration,
21939
- GlobalRewardsCountByPendingIntegration: GlobalRewardsCountByPendingIntegration,
21940
- RewardsMonth: RewardsMonth,
21941
- RewardsWeek: RewardsWeek,
21942
- RewardsAssigned: RewardsAssigned,
21943
- RewardsAssignedCashUSD: RewardsAssignedCashUSD,
21944
- RewardsRedeemed: RewardsRedeemed,
21945
- RewardsAvailable: RewardsAvailable,
21946
- RewardsAvailableWithSlash: RewardsAvailableWithSlash,
21947
- RewardBalance: RewardBalance,
21948
- RewardBalanceCashUSD: RewardBalanceCashUSD,
21949
- ProgramGoals: ProgramGoals,
21950
- CustomField: CustomField
21951
+ __proto__: null,
21952
+ 'default': UseBigStat_stories,
21953
+ Demo: Demo,
21954
+ ReferralsCount: ReferralsCount,
21955
+ referralsConvertedCount: referralsConvertedCount,
21956
+ referralsStartedCount: referralsStartedCount,
21957
+ ReferralsMonth: ReferralsMonth,
21958
+ ReferralsWeek: ReferralsWeek,
21959
+ RewardsCount: RewardsCount,
21960
+ GlobalRewardsCount: GlobalRewardsCount,
21961
+ GlobalRewardsCountFiltered: GlobalRewardsCountFiltered,
21962
+ GlobalRewardsCountPctDiscount: GlobalRewardsCountPctDiscount,
21963
+ GlobalRewardsCountPctDiscountPending: GlobalRewardsCountPctDiscountPending,
21964
+ RewardsCountByUnit: RewardsCountByUnit,
21965
+ GlobalRewardsCountByUnit: GlobalRewardsCountByUnit,
21966
+ GlobalPendingRewardsCount: GlobalPendingRewardsCount,
21967
+ RewardsAvailableCount: RewardsAvailableCount,
21968
+ GlobalRewardsCountByIntegration: GlobalRewardsCountByIntegration,
21969
+ GlobalRewardsCountByPendingIntegration: GlobalRewardsCountByPendingIntegration,
21970
+ RewardsMonth: RewardsMonth,
21971
+ RewardsWeek: RewardsWeek,
21972
+ RewardsAssigned: RewardsAssigned,
21973
+ RewardsAssignedCashUSD: RewardsAssignedCashUSD,
21974
+ RewardsRedeemed: RewardsRedeemed,
21975
+ RewardsAvailable: RewardsAvailable,
21976
+ RewardsAvailableWithSlash: RewardsAvailableWithSlash,
21977
+ RewardBalance: RewardBalance,
21978
+ RewardBalanceCashUSD: RewardBalanceCashUSD,
21979
+ ProgramGoals: ProgramGoals,
21980
+ CustomField: CustomField
21951
21981
  });
21952
21982
 
21953
21983
  function setupGraphQL$4() {
@@ -21989,9 +22019,9 @@ const RegularView$2 = createHookStory(() => {
21989
22019
  });
21990
22020
 
21991
22021
  const UseEditProfile = /*#__PURE__*/Object.freeze({
21992
- __proto__: null,
21993
- 'default': UseEditProfile_stories,
21994
- RegularView: RegularView$2
22022
+ __proto__: null,
22023
+ 'default': UseEditProfile_stories,
22024
+ RegularView: RegularView$2
21995
22025
  });
21996
22026
 
21997
22027
  const UseLeaderboard_stories = {
@@ -22069,10 +22099,10 @@ const TopStartedReferrers = createHookStory(() => {
22069
22099
  });
22070
22100
 
22071
22101
  const UseLeaderboard = /*#__PURE__*/Object.freeze({
22072
- __proto__: null,
22073
- 'default': UseLeaderboard_stories,
22074
- TopConvertedReferrers: TopConvertedReferrers,
22075
- TopStartedReferrers: TopStartedReferrers
22102
+ __proto__: null,
22103
+ 'default': UseLeaderboard_stories,
22104
+ TopConvertedReferrers: TopConvertedReferrers,
22105
+ TopStartedReferrers: TopStartedReferrers
22076
22106
  });
22077
22107
 
22078
22108
  const FormMessage_stories = {
@@ -22104,12 +22134,12 @@ const FullStackSuccess = () => {
22104
22134
  };
22105
22135
 
22106
22136
  const FormMessage$1 = /*#__PURE__*/Object.freeze({
22107
- __proto__: null,
22108
- 'default': FormMessage_stories,
22109
- SuccessAlert: SuccessAlert,
22110
- ErrorAlert: ErrorAlert,
22111
- InfoAlert: InfoAlert,
22112
- FullStackSuccess: FullStackSuccess
22137
+ __proto__: null,
22138
+ 'default': FormMessage_stories,
22139
+ SuccessAlert: SuccessAlert,
22140
+ ErrorAlert: ErrorAlert,
22141
+ InfoAlert: InfoAlert,
22142
+ FullStackSuccess: FullStackSuccess
22113
22143
  });
22114
22144
 
22115
22145
  const EXCHANGE$1 = index_module.dist.gql `
@@ -22246,12 +22276,12 @@ const VariableCreditReward = createHookStory(() => {
22246
22276
  });
22247
22277
 
22248
22278
  const UseRewardExchangeList = /*#__PURE__*/Object.freeze({
22249
- __proto__: null,
22250
- 'default': UseRewardExchangeList_stories,
22251
- RewardList: RewardList,
22252
- FixedGlobalReward: FixedGlobalReward,
22253
- VariableGlobalReward: VariableGlobalReward,
22254
- VariableCreditReward: VariableCreditReward
22279
+ __proto__: null,
22280
+ 'default': UseRewardExchangeList_stories,
22281
+ RewardList: RewardList,
22282
+ FixedGlobalReward: FixedGlobalReward,
22283
+ VariableGlobalReward: VariableGlobalReward,
22284
+ VariableCreditReward: VariableCreditReward
22255
22285
  });
22256
22286
 
22257
22287
  const UseRewardsTable_stories = {
@@ -22292,10 +22322,10 @@ const RewardsTableNoProgram = createHookStory(() => {
22292
22322
  });
22293
22323
 
22294
22324
  const UseRewardsTable = /*#__PURE__*/Object.freeze({
22295
- __proto__: null,
22296
- 'default': UseRewardsTable_stories,
22297
- RewardsTableWithProgram: RewardsTableWithProgram,
22298
- RewardsTableNoProgram: RewardsTableNoProgram
22325
+ __proto__: null,
22326
+ 'default': UseRewardsTable_stories,
22327
+ RewardsTableWithProgram: RewardsTableWithProgram,
22328
+ RewardsTableNoProgram: RewardsTableNoProgram
22299
22329
  });
22300
22330
 
22301
22331
  const JWT = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjp7ImlkIjoic2FtK2tsaXBAc2Fhc3F1YXQuY2giLCJhY2NvdW50SWQiOiJzYW0ra2xpcEBzYWFzcXVhdC5jaCJ9fQ.FMNZ6oajyr6SiCcRqKKdyPqvNTvWROQ60MKAyfvWGfc";
@@ -22331,9 +22361,9 @@ const TaskCard = createHookStory(() => {
22331
22361
  });
22332
22362
 
22333
22363
  const UseTaskCard = /*#__PURE__*/Object.freeze({
22334
- __proto__: null,
22335
- 'default': UseTaskCard_stories,
22336
- TaskCard: TaskCard
22364
+ __proto__: null,
22365
+ 'default': UseTaskCard_stories,
22366
+ TaskCard: TaskCard
22337
22367
  });
22338
22368
 
22339
22369
  const NewPortal_stories = {
@@ -22630,12 +22660,12 @@ const Activity = () => {
22630
22660
  };
22631
22661
 
22632
22662
  const NewPortal = /*#__PURE__*/Object.freeze({
22633
- __proto__: null,
22634
- 'default': NewPortal_stories,
22635
- Dashboard: Dashboard,
22636
- EditProfile: EditProfile$2,
22637
- Commissions: Commissions,
22638
- Activity: Activity
22663
+ __proto__: null,
22664
+ 'default': NewPortal_stories,
22665
+ Dashboard: Dashboard,
22666
+ EditProfile: EditProfile$2,
22667
+ Commissions: Commissions,
22668
+ Activity: Activity
22639
22669
  });
22640
22670
 
22641
22671
  const SidebarItem_stories = {
@@ -22669,10 +22699,10 @@ const ActiveItem = () => {
22669
22699
  };
22670
22700
 
22671
22701
  const SidebarItem = /*#__PURE__*/Object.freeze({
22672
- __proto__: null,
22673
- 'default': SidebarItem_stories,
22674
- InactiveItem: InactiveItem,
22675
- ActiveItem: ActiveItem
22702
+ __proto__: null,
22703
+ 'default': SidebarItem_stories,
22704
+ InactiveItem: InactiveItem,
22705
+ ActiveItem: ActiveItem
22676
22706
  });
22677
22707
 
22678
22708
  const NavigationSidebar_stories = {
@@ -22719,9 +22749,9 @@ const DefaultNavigationSidebar = () => {
22719
22749
  };
22720
22750
 
22721
22751
  const NavigationSidebar = /*#__PURE__*/Object.freeze({
22722
- __proto__: null,
22723
- 'default': NavigationSidebar_stories,
22724
- DefaultNavigationSidebar: DefaultNavigationSidebar
22752
+ __proto__: null,
22753
+ 'default': NavigationSidebar_stories,
22754
+ DefaultNavigationSidebar: DefaultNavigationSidebar
22725
22755
  });
22726
22756
 
22727
22757
  const PortalLogin_stories = {
@@ -22762,11 +22792,11 @@ const LoginWithError = () => index.h(PortalLoginView, Object.assign({}, errorPro
22762
22792
  const LoginLoading = () => index.h(PortalLoginView, Object.assign({}, loadingProps));
22763
22793
 
22764
22794
  const PortalLogin$1 = /*#__PURE__*/Object.freeze({
22765
- __proto__: null,
22766
- 'default': PortalLogin_stories,
22767
- Default: Default$2,
22768
- LoginWithError: LoginWithError,
22769
- LoginLoading: LoginLoading
22795
+ __proto__: null,
22796
+ 'default': PortalLogin_stories,
22797
+ Default: Default$2,
22798
+ LoginWithError: LoginWithError,
22799
+ LoginLoading: LoginLoading
22770
22800
  });
22771
22801
 
22772
22802
  const PortalRegister_stories = {
@@ -22861,13 +22891,13 @@ const FieldsHidden = () => {
22861
22891
  const SlottedInputs = () => index.h(PortalRegisterView, Object.assign({}, slottedProps));
22862
22892
 
22863
22893
  const PortalRegister$1 = /*#__PURE__*/Object.freeze({
22864
- __proto__: null,
22865
- 'default': PortalRegister_stories,
22866
- Default: Default$3,
22867
- RegisterWithError: RegisterWithError,
22868
- RegisterLoading: RegisterLoading,
22869
- FieldsHidden: FieldsHidden,
22870
- SlottedInputs: SlottedInputs
22894
+ __proto__: null,
22895
+ 'default': PortalRegister_stories,
22896
+ Default: Default$3,
22897
+ RegisterWithError: RegisterWithError,
22898
+ RegisterLoading: RegisterLoading,
22899
+ FieldsHidden: FieldsHidden,
22900
+ SlottedInputs: SlottedInputs
22871
22901
  });
22872
22902
 
22873
22903
  const scenario = "@author:\r\n@owner:ian\r\nFeature: Forgot Password\r\n\r\n @motivating\r\n Scenario: Users can request to reset their password\r\n Given a user enters their email address\r\n And that email address is linked to a previously created account\r\n When they click \"Reset Password\"\r\n Then the button enters a loading state\r\n When the password reset email is sent\r\n Then a confirmation banner is shown stating a password reset email was sent\r\n\r\n @motivating\r\n Scenario: Users are notified if sending their password reset email fails\r\n Given a user enters their email address\r\n And that email address is linked to a previously created account\r\n When they click \"Reset Password\"\r\n Then the button enters a loading state\r\n When the password reset email fails to send\r\n Then the user will not receive a password reset email\r\n And an error banner is shown stating that they should try again\r\n\r\n @motivating\r\n @landmine\r\n Scenario: If the input email is not associated to an account a success banner will be shown but an email will not be sent\r\n Given the user entered an email address that is not associated to an accoun\r\n When they click \"Reset Password\"\r\n Then the button enters a loading state\r\n But no email will be sent\r\n And a success banner is shown stating a password reset email was sent if the given email was associated to an account\r\n\r\n @motivating\r\n Scenario: Users can resend password reset email\r\n Given a user had previously requested to reset their password\r\n When they enter their email address\r\n And that email address is linked to a previously created account\r\n And they click \"Reset Password\"\r\n Then the user will receive a second password reset email\r\n And a success banner is shown stating that their email was sent\r\n";
@@ -22940,12 +22970,12 @@ const ForgotPasswordLoading = () => (index.h(sqmPortalForgotPasswordView.PortalF
22940
22970
  const ForgotPasswordSuccess = () => (index.h(sqmPortalForgotPasswordView.PortalForgotPasswordView, Object.assign({}, successProps)));
22941
22971
 
22942
22972
  const PortalForgotPassword = /*#__PURE__*/Object.freeze({
22943
- __proto__: null,
22944
- 'default': PortalForgotPassword_stories,
22945
- Default: Default$4,
22946
- ForgotPasswordWithError: ForgotPasswordWithError,
22947
- ForgotPasswordLoading: ForgotPasswordLoading,
22948
- ForgotPasswordSuccess: ForgotPasswordSuccess
22973
+ __proto__: null,
22974
+ 'default': PortalForgotPassword_stories,
22975
+ Default: Default$4,
22976
+ ForgotPasswordWithError: ForgotPasswordWithError,
22977
+ ForgotPasswordLoading: ForgotPasswordLoading,
22978
+ ForgotPasswordSuccess: ForgotPasswordSuccess
22949
22979
  });
22950
22980
 
22951
22981
  const scenario$1 = "@author:\r\n@owner: ian\r\nFeature: Email Verification\r\n\r\n @minutae\r\n Scenario: User's redirected from registration can re-send their verification email\r\n Given a user has registered\r\n And they have been sent a verification email\r\n When they are redirected to the email verification page\r\n Then a message will be displayed\r\n And it will reflect that a email has already been sent to their email\r\n But they can still re-send the email\r\n When they click to \"Resend-Email\"\r\n Then the user will receive a verification email\r\n\r\n @motivating\r\n Scenario: Users are notified if sending the email verification message fails\r\n Given a user with an email was stored in session data from registration\r\n When they click to \"Resend-Email\"\r\n Then the button enters a loading state\r\n When an error occurs trying to send the verification email\r\n Then the user will not receive a verification email\r\n And an error banner is shown stating that they should try again\r\n\r\n @motivating\r\n Scenario: Users are notified if sending the email verification message succeeds\r\n Given a user with an email was stored in session data from registration\r\n When they click to \"Resend-Email\"\r\n Then the button enters a loading state\r\n When the email verification message sends\r\n Then the user will receive a verification email\r\n And a success banner is shown stating that their email was resent";
@@ -23026,12 +23056,12 @@ const EmailVerificationLoading = () => (index.h(sqmPortalEmailVerificationView.P
23026
23056
  const EmailVerificationSuccess = () => (index.h(sqmPortalEmailVerificationView.PortalEmailVerificationView, Object.assign({}, successProps$1)));
23027
23057
 
23028
23058
  const PortalEmailVerification = /*#__PURE__*/Object.freeze({
23029
- __proto__: null,
23030
- 'default': PortalEmailVerification_stories,
23031
- Default: Default$5,
23032
- EmailVerificationWithError: EmailVerificationWithError,
23033
- EmailVerificationLoading: EmailVerificationLoading,
23034
- EmailVerificationSuccess: EmailVerificationSuccess
23059
+ __proto__: null,
23060
+ 'default': PortalEmailVerification_stories,
23061
+ Default: Default$5,
23062
+ EmailVerificationWithError: EmailVerificationWithError,
23063
+ EmailVerificationLoading: EmailVerificationLoading,
23064
+ EmailVerificationSuccess: EmailVerificationSuccess
23035
23065
  });
23036
23066
 
23037
23067
  const scenario$2 = "@author:\r\n@owner:ian\r\nFeature: Reset Password\r\n\r\n\r\n Background: A user in on the password reset page\r\n Given a user who has been redirected to the password reset page\r\n\r\n @motivating\r\n Scenario: Users can reset their password\r\n Given a user has a valid oob code as a url query parameter\r\n When they enter their password twice\r\n And they click \"Update\"\r\n Then their password is updated\r\n And a banner with a success message will be displayed\r\n And they can log in with their new password\r\n\r\n @motivating\r\n Scenario Outline: Users cannot reset their password with an invalid or missing oob code\r\n Given a user has a <oobCode> as a url query parameter\r\n Then they will see an error message saying that their password reset code is invalid or expired\r\n When they click \"Continue\"\r\n Then they will be redirected to \"/\"\r\n Examples:\r\n | oobCode |\r\n | invalid oob code |\r\n | non existant oob code |\r\n\r\n @motivating\r\n Scenario: Users must enter the same password twice to successfully reset their password\r\n Given a user has been redirected to the password reset page\r\n And they have a valid oob code as a url query parameter\r\n When they enter two different passwords into the password reset form\r\n And they click \"Update\"\r\n Then their password is not be reset\r\n And an error banner stating the input passwords must match appears\r\n And their password will not be reset\r\n When they enter the same password twice\r\n And they click \"Update\"\r\n Then a banner appears with a success message\r\n And they can log in with their new password\r\n\r\n @motivating\r\n Scenario: Users are redirected to \"/\" by default\r\n Given the component does not have prop \"nextPage\"\r\n And the users url does not contain a \"nextPage\" query parameter\r\n And a user has entered their password twice\r\n When they click \"Update\"\r\n Then their password is updated\r\n And they are redirected to \"/\"\r\n\r\n @motivating\r\n Scenario: Custom redirection can be configured\r\n Given the component has prop \"nextPage\" with value \"/activity\"\r\n And the users url does not contain a \"nextPage\" query parameter\r\n And a user has entered their password twice\r\n When they click \"Update\"\r\n Then their password is updated\r\n And they are redirected to \"/activity\"";
@@ -23188,14 +23218,14 @@ const ResetPasswordSuccess = () => (index.h(sqmPortalResetPasswordView.PortalRes
23188
23218
  const CodeValidating = () => (index.h(sqmPortalResetPasswordView.PortalResetPasswordView, Object.assign({}, validatingCodeProps)));
23189
23219
 
23190
23220
  const PortalResetPassword = /*#__PURE__*/Object.freeze({
23191
- __proto__: null,
23192
- 'default': PortalResetPassword_stories,
23193
- Default: Default$6,
23194
- DefaultWithoutConfirmField: DefaultWithoutConfirmField,
23195
- ResetPasswordWithError: ResetPasswordWithError,
23196
- ResetPasswordLoading: ResetPasswordLoading,
23197
- ResetPasswordSuccess: ResetPasswordSuccess,
23198
- CodeValidating: CodeValidating
23221
+ __proto__: null,
23222
+ 'default': PortalResetPassword_stories,
23223
+ Default: Default$6,
23224
+ DefaultWithoutConfirmField: DefaultWithoutConfirmField,
23225
+ ResetPasswordWithError: ResetPasswordWithError,
23226
+ ResetPasswordLoading: ResetPasswordLoading,
23227
+ ResetPasswordSuccess: ResetPasswordSuccess,
23228
+ CodeValidating: CodeValidating
23199
23229
  });
23200
23230
 
23201
23231
  const scenario$3 = "@author:\r\n@owner:ian\r\nFeature: Verify Email\r\n\r\n\r\n Background: A user is on the email verification page\r\n Given a user who has been redirected to the email verification page\r\n\r\n @motivating\r\n Scenario: Verifying your email will take you to the portal login page\r\n Given a user has a valid oob code as a url query parameter\r\n When they click \"Verify Email\"\r\n Then the button will enter a loading state\r\n When their email is validated\r\n Then a button that says \"Continue\" will appear\r\n When they click \"Continue\"\r\n Then they will be redirected to login\r\n\r\n @motivating\r\n Scenario: Users will be automatically redirected if they dont click \"Continue\"\r\n Given a user has a valid oob code as a url query parameter\r\n When they click \"Verify Email\"\r\n Then the button will enter a loading state\r\n When their email is validated\r\n Then a button that says \"Continue\" will appear\r\n When they wait 5 seconds\r\n Then they will be redirected to login\r\n\r\n @motivating\r\n Scenario: Users are notified if verifying their email has failed\r\n Given a user has a valid oob code as a url query parameter\r\n When they click \"Verify Email\"\r\n Then the button will enter a loading state\r\n When their email fails to be validated\r\n Then an banner is shown stating that an error occured\r\n\r\n @motivating\r\n Scenario Outline: Users cannot verify their email with an invalid or missing oob code\r\n Given a user has a <oobCode> as a url query parameter\r\n Then they will see an error message saying that their verification code is invalid or expired\r\n When they click \"Continue\"\r\n Then they will be redirected to \"/\"\r\n Examples:\r\n | oobCode |\r\n | invalid oob code |\r\n | non existant oob code |\r\n\r\n @motivating\r\n Scenario: Users are redirected to \"/\" by default\r\n Given the component does not have prop \"nextPage\"\r\n And the users url does not contain a \"nextPage\" query parameter\r\n And a user has verified their email\r\n When they click \"Continue\"\r\n Then they will be redirected to \"/\"\r\n\r\n @motivating\r\n Scenario: Custom redirection can be configured\r\n Given the component has prop \"nextPage\" with value \"/activity\"\r\n And the users url does not contain a \"nextPage\" query parameter\r\n And a user has verified their email\r\n When they click \"Continue\"\r\n Then they will be redirected to \"/activity\"\r\n\r\n @motivating\r\n Scenario Outline: Users will be redirected to the value of the nextPage url parameter if it exists\r\n Given the component <mayHave> prop \"nextPage\" with <nextPageValue>\r\n And the users url contains a \"nextPage\" query paramater with <nextPageParamValue>\r\n And the user has verified their email\r\n When they click \"Continue\"\r\n Then they are redirected to <nextPageParamValue>\r\n Examples:\r\n | mayHave | nextPageValue | nextPageParamValue |\r\n | has | /dashboard | /activity |\r\n | does not have | N/A | /activity |";
@@ -23238,10 +23268,10 @@ const EmailVerificationWithError$1 = () => (index.h(sqmPortalVerifyEmailView.Por
23238
23268
  const EmailVerificationSuccess$1 = () => (index.h(sqmPortalVerifyEmailView.PortalVerifyEmailView, Object.assign({}, verifiedProps)));
23239
23269
 
23240
23270
  const PortalVerifyEmail = /*#__PURE__*/Object.freeze({
23241
- __proto__: null,
23242
- 'default': PortalVerifyEmail_stories,
23243
- EmailVerificationWithError: EmailVerificationWithError$1,
23244
- EmailVerificationSuccess: EmailVerificationSuccess$1
23271
+ __proto__: null,
23272
+ 'default': PortalVerifyEmail_stories,
23273
+ EmailVerificationWithError: EmailVerificationWithError$1,
23274
+ EmailVerificationSuccess: EmailVerificationSuccess$1
23245
23275
  });
23246
23276
 
23247
23277
  const AssetCard_stories = {
@@ -23273,11 +23303,11 @@ const CardWithNoImg = () => {
23273
23303
  };
23274
23304
 
23275
23305
  const AssetCard = /*#__PURE__*/Object.freeze({
23276
- __proto__: null,
23277
- 'default': AssetCard_stories,
23278
- Default: Default$7,
23279
- CardWithLongText: CardWithLongText,
23280
- CardWithNoImg: CardWithNoImg
23306
+ __proto__: null,
23307
+ 'default': AssetCard_stories,
23308
+ Default: Default$7,
23309
+ CardWithLongText: CardWithLongText,
23310
+ CardWithNoImg: CardWithNoImg
23281
23311
  });
23282
23312
 
23283
23313
  const DividedLayout_stories = {
@@ -23363,11 +23393,11 @@ const ColumnCustomDivider = () => {
23363
23393
  };
23364
23394
 
23365
23395
  const DividedLayout$1 = /*#__PURE__*/Object.freeze({
23366
- __proto__: null,
23367
- 'default': DividedLayout_stories,
23368
- Row: Row,
23369
- Column: Column,
23370
- ColumnCustomDivider: ColumnCustomDivider
23396
+ __proto__: null,
23397
+ 'default': DividedLayout_stories,
23398
+ Row: Row,
23399
+ Column: Column,
23400
+ ColumnCustomDivider: ColumnCustomDivider
23371
23401
  });
23372
23402
 
23373
23403
  const scenario$4 = "Feature: Change Password\r\n\r\n @motivating\r\n Scenario: Users can change their password\r\n Given a user has registered for the portal\r\n And they have a password\r\n When they navigate to the edit profile page\r\n And click \"Change your password...\"\r\n Then a popup will appear\r\n When they enter their new password\r\n And confirm it\r\n And click \"Change Password\"\r\n Then they will see a success banner stating that the change was successful\r\n When they logout\r\n And try to login\r\n Then they will not be able to login with their old password\r\n But they will be able to login with their new password\r\n\r\n @motivating\r\n Scenario: Users must confirm their password change\r\n Given a user has registered for the portal\r\n When they navigate to the edit profile page\r\n And click \"Change your password...\"\r\n Then a popup will appear\r\n When they enter their new password\r\n But they enter a different password to confirm\r\n And click \"Change Password\"\r\n Then they will see an error banner stating that the passwords didnt match\r\n When they logout\r\n And try to login\r\n Then they will be able to login with their existing password\r\n\r\n @motivating\r\n Scenario: Users must enter a new password and confirm it to change their password\r\n Given a user has registered for the portal\r\n When they navigate to the edit profile page\r\n And click \"Change your password...\"\r\n Then a popup will appear\r\n When they click \"Change password\"\r\n Then a validation error will appear for the new password field\r\n And their password will not be changed\r\n When they enter a new password\r\n And they click \"Change password\"\r\n Then a validation error will appear for the confirm new password field\r\n And their password will not be changed\r\n\r\n @motivating\r\n Scenario: An error banner will be displayed if the password change fails\r\n Given a user has registered for the portal\r\n When they navigate to the edit profile page\r\n And click \"Change your password...\"\r\n When they enter their new password\r\n And confirm it\r\n And click \"Change Password\"\r\n But the change fails\r\n Then they will see an error banner stating that the change failed\r\n When they logout\r\n And try to login\r\n Then they will be able to login with their existing password";
@@ -23518,14 +23548,14 @@ const Loading$1 = () => index.h(PortalChangePasswordView, Object.assign({}, load
23518
23548
  const Success = () => index.h(PortalChangePasswordView, Object.assign({}, successProps$3));
23519
23549
 
23520
23550
  const ChangePassword = /*#__PURE__*/Object.freeze({
23521
- __proto__: null,
23522
- 'default': ChangePassword_stories,
23523
- Default: Default$8,
23524
- Open: Open,
23525
- Error: Error$1,
23526
- PaswordError: PaswordError,
23527
- Loading: Loading$1,
23528
- Success: Success
23551
+ __proto__: null,
23552
+ 'default': ChangePassword_stories,
23553
+ Default: Default$8,
23554
+ Open: Open,
23555
+ Error: Error$1,
23556
+ PaswordError: PaswordError,
23557
+ Loading: Loading$1,
23558
+ Success: Success
23529
23559
  });
23530
23560
 
23531
23561
  const PortalProfile_stories = {
@@ -23759,14 +23789,14 @@ const Error$2 = () => index.h(sqmPortalProfileView.PortalProfileView, Object.ass
23759
23789
  const Success$1 = () => index.h(sqmPortalProfileView.PortalProfileView, Object.assign({}, successProps$4));
23760
23790
 
23761
23791
  const PortalProfile = /*#__PURE__*/Object.freeze({
23762
- __proto__: null,
23763
- 'default': PortalProfile_stories,
23764
- Default: Default$9,
23765
- DefaultNoCountry: DefaultNoCountry,
23766
- Loading: Loading$2,
23767
- Disabled: Disabled$1,
23768
- Error: Error$2,
23769
- Success: Success$1
23792
+ __proto__: null,
23793
+ 'default': PortalProfile_stories,
23794
+ Default: Default$9,
23795
+ DefaultNoCountry: DefaultNoCountry,
23796
+ Loading: Loading$2,
23797
+ Disabled: Disabled$1,
23798
+ Error: Error$2,
23799
+ Success: Success$1
23770
23800
  });
23771
23801
 
23772
23802
  const ReferralTableRewardsCell_stories = {
@@ -23982,23 +24012,23 @@ const tenRewardsCell = () => {
23982
24012
  };
23983
24013
 
23984
24014
  const ReferralTableRewardsCell$1 = /*#__PURE__*/Object.freeze({
23985
- __proto__: null,
23986
- 'default': ReferralTableRewardsCell_stories,
23987
- PendingNoUnpend: PendingNoUnpend,
23988
- PendingNoUnpendNoDetails: PendingNoUnpendNoDetails,
23989
- PendingWithUnpend: PendingWithUnpend,
23990
- AvailableNoExpiry: AvailableNoExpiry,
23991
- AvailableWithExpiry: AvailableWithExpiry,
23992
- Redeemed: Redeemed,
23993
- Cancelled: Cancelled,
23994
- Expired: Expired,
23995
- EmptyCell: EmptyCell,
23996
- oneRewardCell: oneRewardCell,
23997
- twoRewardsCell: twoRewardsCell,
23998
- threeRewardsCell: threeRewardsCell,
23999
- fiveRewardsCell: fiveRewardsCell,
24000
- eightRewardsCell: eightRewardsCell,
24001
- tenRewardsCell: tenRewardsCell
24015
+ __proto__: null,
24016
+ 'default': ReferralTableRewardsCell_stories,
24017
+ PendingNoUnpend: PendingNoUnpend,
24018
+ PendingNoUnpendNoDetails: PendingNoUnpendNoDetails,
24019
+ PendingWithUnpend: PendingWithUnpend,
24020
+ AvailableNoExpiry: AvailableNoExpiry,
24021
+ AvailableWithExpiry: AvailableWithExpiry,
24022
+ Redeemed: Redeemed,
24023
+ Cancelled: Cancelled,
24024
+ Expired: Expired,
24025
+ EmptyCell: EmptyCell,
24026
+ oneRewardCell: oneRewardCell,
24027
+ twoRewardsCell: twoRewardsCell,
24028
+ threeRewardsCell: threeRewardsCell,
24029
+ fiveRewardsCell: fiveRewardsCell,
24030
+ eightRewardsCell: eightRewardsCell,
24031
+ tenRewardsCell: tenRewardsCell
24002
24032
  });
24003
24033
 
24004
24034
  const ReferralTable_stories = {
@@ -24475,17 +24505,17 @@ const FullRewardsTable = () => {
24475
24505
  };
24476
24506
 
24477
24507
  const ReferralTable$1 = /*#__PURE__*/Object.freeze({
24478
- __proto__: null,
24479
- 'default': ReferralTable_stories,
24480
- SimpleUserTable: SimpleUserTable,
24481
- HiddenLabelsTable: HiddenLabelsTable,
24482
- CustomButtonTextTable: CustomButtonTextTable,
24483
- FullUserTable: FullUserTable,
24484
- LongCellTextTable: LongCellTextTable,
24485
- LongColumnTextTable: LongColumnTextTable,
24486
- EmptyTable: EmptyTable,
24487
- LoadingTable: LoadingTable,
24488
- FullRewardsTable: FullRewardsTable
24508
+ __proto__: null,
24509
+ 'default': ReferralTable_stories,
24510
+ SimpleUserTable: SimpleUserTable,
24511
+ HiddenLabelsTable: HiddenLabelsTable,
24512
+ CustomButtonTextTable: CustomButtonTextTable,
24513
+ FullUserTable: FullUserTable,
24514
+ LongCellTextTable: LongCellTextTable,
24515
+ LongColumnTextTable: LongColumnTextTable,
24516
+ EmptyTable: EmptyTable,
24517
+ LoadingTable: LoadingTable,
24518
+ FullRewardsTable: FullRewardsTable
24489
24519
  });
24490
24520
 
24491
24521
  const ReferralTableCell_stories = {
@@ -24551,14 +24581,14 @@ const RewardsCell = () => {
24551
24581
  };
24552
24582
 
24553
24583
  const ReferralTableCell$1 = /*#__PURE__*/Object.freeze({
24554
- __proto__: null,
24555
- 'default': ReferralTableCell_stories,
24556
- TableCell: TableCell,
24557
- TableUserCell: TableUserCell,
24558
- EmptyCell: EmptyCell$1,
24559
- StatusCell: StatusCell,
24560
- DateCell: DateCell,
24561
- RewardsCell: RewardsCell
24584
+ __proto__: null,
24585
+ 'default': ReferralTableCell_stories,
24586
+ TableCell: TableCell,
24587
+ TableUserCell: TableUserCell,
24588
+ EmptyCell: EmptyCell$1,
24589
+ StatusCell: StatusCell,
24590
+ DateCell: DateCell,
24591
+ RewardsCell: RewardsCell
24562
24592
  });
24563
24593
 
24564
24594
  const UserName_stories = {
@@ -24576,10 +24606,10 @@ const Username = () => {
24576
24606
  };
24577
24607
 
24578
24608
  const UserName = /*#__PURE__*/Object.freeze({
24579
- __proto__: null,
24580
- 'default': UserName_stories,
24581
- DemoData: DemoData,
24582
- Username: Username
24609
+ __proto__: null,
24610
+ 'default': UserName_stories,
24611
+ DemoData: DemoData,
24612
+ Username: Username
24583
24613
  });
24584
24614
 
24585
24615
  const PasswordField_stories = {
@@ -24623,11 +24653,11 @@ const ValidationError = () => {
24623
24653
  };
24624
24654
 
24625
24655
  const PasswordField = /*#__PURE__*/Object.freeze({
24626
- __proto__: null,
24627
- 'default': PasswordField_stories,
24628
- Start: Start,
24629
- EmptyError: EmptyError,
24630
- ValidationError: ValidationError
24656
+ __proto__: null,
24657
+ 'default': PasswordField_stories,
24658
+ Start: Start,
24659
+ EmptyError: EmptyError,
24660
+ ValidationError: ValidationError
24631
24661
  });
24632
24662
 
24633
24663
  /**
@@ -25767,21 +25797,21 @@ const ProgressBarStepsRepeatableFinite = () => {
25767
25797
  };
25768
25798
 
25769
25799
  const TaskCard$2 = /*#__PURE__*/Object.freeze({
25770
- __proto__: null,
25771
- 'default': TaskCard_stories,
25772
- TaskCard: TaskCard$1,
25773
- TaskCardNotRepeatable: TaskCardNotRepeatable,
25774
- TaskCardRepeatable: TaskCardRepeatable,
25775
- TaskCardRepeatableFinite: TaskCardRepeatableFinite,
25776
- TaskCardEndDate: TaskCardEndDate,
25777
- TaskCardLoading: TaskCardLoading,
25778
- TaskCardNotStarted: TaskCardNotStarted,
25779
- TaskCardEnded: TaskCardEnded,
25780
- ProgressBar: ProgressBar$1,
25781
- ProgressBarSteps: ProgressBarSteps,
25782
- ProgressBarRepeatable: ProgressBarRepeatable,
25783
- ProgressBarStepsRepeatable: ProgressBarStepsRepeatable,
25784
- ProgressBarStepsRepeatableFinite: ProgressBarStepsRepeatableFinite
25800
+ __proto__: null,
25801
+ 'default': TaskCard_stories,
25802
+ TaskCard: TaskCard$1,
25803
+ TaskCardNotRepeatable: TaskCardNotRepeatable,
25804
+ TaskCardRepeatable: TaskCardRepeatable,
25805
+ TaskCardRepeatableFinite: TaskCardRepeatableFinite,
25806
+ TaskCardEndDate: TaskCardEndDate,
25807
+ TaskCardLoading: TaskCardLoading,
25808
+ TaskCardNotStarted: TaskCardNotStarted,
25809
+ TaskCardEnded: TaskCardEnded,
25810
+ ProgressBar: ProgressBar$1,
25811
+ ProgressBarSteps: ProgressBarSteps,
25812
+ ProgressBarRepeatable: ProgressBarRepeatable,
25813
+ ProgressBarStepsRepeatable: ProgressBarStepsRepeatable,
25814
+ ProgressBarStepsRepeatableFinite: ProgressBarStepsRepeatableFinite
25785
25815
  });
25786
25816
 
25787
25817
  const portalTemplate = "<sqm-portal-frame>\r\n <a slot=\"header\" href=\"/\">\r\n <sqm-text style=\"height: 60px\">\r\n <img\r\n style=\"height: 60px\"\r\n src=\"https://res.cloudinary.com/saasquatch/image/upload/v1634255445/squatch-assets/Copy_of_saasquatch-logo-tree-large-horizontal.png\"\r\n />\r\n </sqm-text>\r\n </a>\r\n <sqb-program-section program-id=\"referral-program\">\r\n <sqm-router>\r\n <template\r\n path=\"/:path(\\bregister\\b|\\bemailVerification\\b|\\blogin\\b|\\bverifyEmail\\b|\\bforgotPassword\\b|\\bresetPassword\\b|\\blogout\\b)\"\r\n >\r\n <sqm-graphql-client-provider\r\n domain=\"https://managed-identity.saasquatch.com\"\r\n >\r\n <sqm-hero\r\n background=\"https://images.unsplash.com/photo-1599676821464-3555954838dc?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1939&q=80\"\r\n >\r\n <sqm-router>\r\n <template path=\"/register\">\r\n <sqm-portal-register>\r\n <sqm-name-fields slot=\"formData\"></sqm-name-fields>\r\n </sqm-portal-register>\r\n </template>\r\n\r\n <template path=\"/emailVerification\">\r\n <sqm-portal-protected-route\r\n redirect-to=\"/login\"\r\n ></sqm-portal-protected-route>\r\n <sqm-portal-email-verification></sqm-portal-email-verification>\r\n </template>\r\n\r\n <template path=\"/login\">\r\n <sqm-portal-login></sqm-portal-login>\r\n </template>\r\n\r\n <template path=\"/verifyEmail\">\r\n <sqm-portal-verify-email></sqm-portal-verify-email>\r\n </template>\r\n\r\n <template path=\"/forgotPassword\">\r\n <sqm-portal-forgot-password\r\n email-label=\"Business Email\"\r\n ></sqm-portal-forgot-password>\r\n </template>\r\n\r\n <template path=\"/resetPassword\">\r\n <sqm-portal-reset-password\r\n confirm-password=\"true\"\r\n ></sqm-portal-reset-password>\r\n </template>\r\n <template path=\"/logout\">\r\n <sqm-portal-logout next-page=\"/login\"></sqm-portal-logout>\r\n </template>\r\n </sqm-router>\r\n </sqm-hero>\r\n </sqm-graphql-client-provider>\r\n </template>\r\n </sqm-router>\r\n <sqm-router>\r\n <template path=\"/:path(\\bactivity\\b|\\beditProfile\\b)?\">\r\n <sqm-divided-layout\r\n direction=\"row\"\r\n style=\"\r\n border-top: 1px solid #eaeaea;\r\n border-bottom: 1px solid #eaeaea;\r\n \"\r\n >\r\n <sqm-navigation-sidebar>\r\n <sqm-navigation-sidebar-item\r\n path=\"/\"\r\n icon=\"house\"\r\n label=\"Dashboard\"\r\n ></sqm-navigation-sidebar-item>\r\n <sqm-navigation-sidebar-item\r\n path=\"/activity\"\r\n icon=\"bar-chart\"\r\n label=\"Activity\"\r\n ></sqm-navigation-sidebar-item>\r\n <sqm-navigation-sidebar-item\r\n path=\"/editProfile\"\r\n icon=\"person\"\r\n label=\"Edit Profile\"\r\n ></sqm-navigation-sidebar-item>\r\n <sqm-navigation-sidebar-item\r\n path=\"/logout\"\r\n icon=\"box-arrow-right\"\r\n label=\"Logout\"\r\n ></sqm-navigation-sidebar-item>\r\n </sqm-navigation-sidebar>\r\n <sqm-divided-layout direction=\"column\">\r\n <sqm-router>\r\n <template path=\"/\">\r\n <sqm-portal-protected-route\r\n require-email-verification=\"true\"\r\n redirect-to=\"/login\"\r\n redirect-to-unverified=\"/emailVerification\"\r\n ></sqm-portal-protected-route>\r\n <sqb-widget\r\n widget-type=\"p/referral-program/w/referrerWidget\"\r\n track-loads=\"true\"\r\n ></sqb-widget>\r\n </template>\r\n <template path=\"/editProfile\">\r\n <sqm-portal-protected-route\r\n require-email-verification=\"true\"\r\n redirect-to=\"/login\"\r\n redirect-to-unverified=\"/emailVerification\"\r\n ></sqm-portal-protected-route>\r\n <sqm-portal-container direction=\"column\" gap=\"xxx-large\">\r\n <sqm-portal-profile></sqm-portal-profile> </sqm-portal-container\r\n ><sqm-portal-container direction=\"column\" gap=\"xxx-large\">\r\n <sqm-graphql-client-provider\r\n domain=\"https://managed-identity.saasquatch.com\"\r\n >\r\n <sqm-portal-change-password></sqm-portal-change-password>\r\n </sqm-graphql-client-provider>\r\n </sqm-portal-container>\r\n </template>\r\n\r\n <template path=\"/activity\">\r\n <sqm-portal-protected-route\r\n require-email-verification=\"true\"\r\n redirect-to=\"/login\"\r\n redirect-to-unverified=\"/emailVerification\"\r\n ></sqm-portal-protected-route>\r\n <sqm-portal-container\r\n direction=\"column\"\r\n padding=\"xxx-large\"\r\n gap=\"xxx-large\"\r\n >\r\n <sqm-text> <h1>Activity</h1></sqm-text>\r\n <sqm-stat-container space=\"xxxx-large\"\r\n ><sqm-big-stat\r\n flex-reverse=\"true\"\r\n alignment=\"left\"\r\n stat-type=\"/referralsCount\"\r\n ><sqm-text><p>Referrals</p></sqm-text></sqm-big-stat\r\n >\r\n <sqm-big-stat\r\n flex-reverse=\"true\"\r\n alignment=\"left\"\r\n stat-type=\"/rewardsCountFiltered/AVAILABLE\"\r\n ><sqm-text><p>Rewards Earned</p></sqm-text></sqm-big-stat\r\n >\r\n <sqm-big-stat\r\n flex-reverse=\"true\"\r\n alignment=\"left\"\r\n stat-type=\"/rewardBalance/CREDIT/CENTS\"\r\n ><sqm-text><p>Reward Balance</p></sqm-text></sqm-big-stat\r\n >\r\n </sqm-stat-container>\r\n <sqm-referral-table>\r\n <sqm-referral-table-user-column></sqm-referral-table-user-column>\r\n <sqm-referral-table-rewards-column></sqm-referral-table-rewards-column>\r\n <sqm-referral-table-status-column></sqm-referral-table-status-column>\r\n <sqm-referral-table-date-column\r\n column-title=\"Referred\"\r\n date-shown=\"dateReferralStarted\"\r\n ></sqm-referral-table-date-column> </sqm-referral-table\r\n ></sqm-portal-container>\r\n </template>\r\n </sqm-router>\r\n </sqm-divided-layout>\r\n </sqm-divided-layout>\r\n </template>\r\n </sqm-router>\r\n </sqb-program-section>\r\n <sqm-portal-footer\r\n slot=\"footer\"\r\n support-email=\"support@example.com\"\r\n terms-link=\"https://example.com\"\r\n faq-link=\"https://example.com\"\r\n terms-text=\"Terms And Conditions\"\r\n faq-text=\"FAQ\"\r\n show-powered-by=\"true\"\r\n ></sqm-portal-footer>\r\n</sqm-portal-frame>\r\n";
@@ -28933,24 +28963,24 @@ const VerifyEmail = createHookStory(() => {
28933
28963
  });
28934
28964
 
28935
28965
  const PortalTemplates = /*#__PURE__*/Object.freeze({
28936
- __proto__: null,
28937
- 'default': PortalTemplates_stories,
28938
- DefaultPortal: DefaultPortal,
28939
- MultiProgramPortal: MultiProgramPortal,
28940
- LeadSubmitPortal: LeadSubmitPortal,
28941
- Login: Login,
28942
- ForgotPassword: ForgotPassword,
28943
- Register: Register,
28944
- Dashboard: Dashboard$1,
28945
- LeadSubmitIframe: LeadSubmitIframe,
28946
- Activity: Activity$1,
28947
- EditProfile: EditProfile$3,
28948
- ResetPassword: ResetPassword,
28949
- EmailVerification: EmailVerification,
28950
- EmailVerified: EmailVerified,
28951
- Widget: Widget,
28952
- ResetPasswordEmail: ResetPasswordEmail,
28953
- VerifyEmail: VerifyEmail
28966
+ __proto__: null,
28967
+ 'default': PortalTemplates_stories,
28968
+ DefaultPortal: DefaultPortal,
28969
+ MultiProgramPortal: MultiProgramPortal,
28970
+ LeadSubmitPortal: LeadSubmitPortal,
28971
+ Login: Login,
28972
+ ForgotPassword: ForgotPassword,
28973
+ Register: Register,
28974
+ Dashboard: Dashboard$1,
28975
+ LeadSubmitIframe: LeadSubmitIframe,
28976
+ Activity: Activity$1,
28977
+ EditProfile: EditProfile$3,
28978
+ ResetPassword: ResetPassword,
28979
+ EmailVerification: EmailVerification,
28980
+ EmailVerified: EmailVerified,
28981
+ Widget: Widget,
28982
+ ResetPasswordEmail: ResetPasswordEmail,
28983
+ VerifyEmail: VerifyEmail
28954
28984
  });
28955
28985
 
28956
28986
  const ProgramMenu_stories = {
@@ -28991,12 +29021,12 @@ const ProgramMenuWithSwitch = createHookStory(() => {
28991
29021
  });
28992
29022
 
28993
29023
  const ProgramMenu$1 = /*#__PURE__*/Object.freeze({
28994
- __proto__: null,
28995
- 'default': ProgramMenu_stories,
28996
- OneProgram: OneProgram,
28997
- TwoProgram: TwoProgram,
28998
- FiveProgram: FiveProgram,
28999
- ProgramMenuWithSwitch: ProgramMenuWithSwitch
29024
+ __proto__: null,
29025
+ 'default': ProgramMenu_stories,
29026
+ OneProgram: OneProgram,
29027
+ TwoProgram: TwoProgram,
29028
+ FiveProgram: FiveProgram,
29029
+ ProgramMenuWithSwitch: ProgramMenuWithSwitch
29000
29030
  });
29001
29031
 
29002
29032
  const PoweredByImg_stories = {
@@ -29013,11 +29043,11 @@ const CustomWidthAndHeight = () => {
29013
29043
  };
29014
29044
 
29015
29045
  const PoweredByImg = /*#__PURE__*/Object.freeze({
29016
- __proto__: null,
29017
- 'default': PoweredByImg_stories,
29018
- Default: Default$a,
29019
- CustomColor: CustomColor,
29020
- CustomWidthAndHeight: CustomWidthAndHeight
29046
+ __proto__: null,
29047
+ 'default': PoweredByImg_stories,
29048
+ Default: Default$a,
29049
+ CustomColor: CustomColor,
29050
+ CustomWidthAndHeight: CustomWidthAndHeight
29021
29051
  });
29022
29052
 
29023
29053
  const scenario$6 = "Feature: Portal Footer\r\n\r\n Background: A user is viewing the portal\r\n Given a hosted portal\r\n And a user is viewing the portal\r\n And the portal has a footer\r\n\r\n Scenario Outline: FAQ and T&C links/text are configurable and open in a new page when clicked\r\n Given the footer has prop \"terms-link\" with value \"https://example.com/terms\"\r\n And prop \"terms-text\" with value \"Terms and Conditions\"\r\n And prop \"faq-link\" with value \"https://example.com/FAQ\"\r\n And prop \"faq-text\" with value \"Visit FAQ\"\r\n When a user clicks on the \"Visit FAQ\" link\r\n Then they will be redirected to \"https://example.com/FAQ\" in a new page\r\n When they go back to the portal\r\n And click on the \"Terms and Conditions\" link\r\n Then they will be redirected to \"https://example.com/terms\" in a new page\r\n\r\n Scenario Outline: FAQ/T&C Links are not shown if a link is not provided\r\n Given the footer does not have <linkProp>\r\n But it <mayHave> <textProp> with <value>\r\n Then the <link> will not be shown in the footer\r\n Examples:\r\n | linkProp | mayHave | textProp | value | link |\r\n | terms-link | has | termsText | Terms and Conditions | T&C Link |\r\n | faq-link | has | faqText | Visit FAQ | FAQ Link |\r\n | terms-link | doesn't have | | | T&C Link |\r\n | faq-link | doesn't have | | | FAQ Link |\r\n\r\n Scenario Outline: The support email and text is configurable but has a default\r\n Given the footer <mayHave> <emailPropWithValue>\r\n And the footer <mayAlsoHave> <textPropWithValue>\r\n Then the footer's support email text is <renderedEmailText>\r\n And the email address will be a mailto link with <mailtoEmail>\r\n When the user clicks on the email address mailto Link\r\n Then the users preferred email client will open with a draft email to <mailtoEmail>\r\n Examples:\r\n | mayHave | emailPropWithValue | mayAlsoHave | textPropWithValue | mailtoEmail | renderedEmailText |\r\n | has | support@saasquatch.com | has | For support please contact {email} | support@saasquatch.com | For support please contact support@saasquatch.com |\r\n | doesn't have | N/A | doesn't have | N/A | support@example.com | For program support, contact support@example.com |\r\n\r\n Scenario Outline: Powered by SaaSquatch is shown by default\r\n Given the footer <mayHaveProp> \"show-powered-by\" with <value>\r\n Then the powered by SaaSquatch image <mayBeShown>\r\n Examples:\r\n | mayHaveProp | value | mayBeShown |\r\n | has prop | true | is shown |\r\n | has prop | false | isn't shown |\r\n | has prop | test | is shown |\r\n | has prop | | is shown |\r\n | doesn't have prop | | is shown |\r\n\r\n Scenario: Powered By Saasquatch links out to \"https://saasquatch.com\"\r\n Given the footer has the powered by SaaSquatch image\r\n When a user clicks on it\r\n Then they will be redirected to \"https://saasquatch.com\" in a new page";
@@ -29045,13 +29075,13 @@ const FooterWithTermsAndFAQ = () => (index.h(sqmPortalFooterView.PortalFooterVie
29045
29075
  const FooterNoPoweredBy = () => (index.h(sqmPortalFooterView.PortalFooterView, Object.assign({}, defaultProps$9, { termsLink: "https://example.com", termsText: "Terms and Conditions", faqLink: "https://example.com", faqText: "FAQ", showPoweredBy: false })));
29046
29076
 
29047
29077
  const PortalFooter = /*#__PURE__*/Object.freeze({
29048
- __proto__: null,
29049
- 'default': PortalFooter_stories,
29050
- DefaultFooter: DefaultFooter,
29051
- FooterWithTerms: FooterWithTerms,
29052
- FooterWithFAQ: FooterWithFAQ,
29053
- FooterWithTermsAndFAQ: FooterWithTermsAndFAQ,
29054
- FooterNoPoweredBy: FooterNoPoweredBy
29078
+ __proto__: null,
29079
+ 'default': PortalFooter_stories,
29080
+ DefaultFooter: DefaultFooter,
29081
+ FooterWithTerms: FooterWithTerms,
29082
+ FooterWithFAQ: FooterWithFAQ,
29083
+ FooterWithTermsAndFAQ: FooterWithTermsAndFAQ,
29084
+ FooterNoPoweredBy: FooterNoPoweredBy
29055
29085
  });
29056
29086
 
29057
29087
  const scenario$7 = "Feature: Hero Unit\r\n\r\n Background: A portal with a hero unit exists\r\n Given a hosted portal\r\n And the portal has hero unit on the login page\r\n And a user is viewing the login page\r\n\r\n Scenario: The hero unit defaults to a single column layout\r\n Given a hero unit does not have a \"columns\" prop\r\n But the following html is wrapped by the hero unit\r\n \"\"\"\r\n <sqm-portal-login></sqm-portal-login>\r\n <div slot=\"secondary-column\">\r\n <h1 style=\"text-align:center\">Get Referring!</h1>\r\n <p style=\"text-align:center\">\r\n Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do\r\n eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim\r\n ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut\r\n aliquip ex ea commodo consequat. Duis aute irure dolor in\r\n reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla\r\n pariatur.\r\n </p>\r\n </div>\r\n \"\"\"\r\n Then only a single column will be displayed\r\n And within it will be the login component\r\n\r\n Scenario Outline: The hero unit supports single or dual column layouts\r\n Given a hero unit with prop \"columns\" having <columnValue>\r\n And it wraps <html>\r\n Then the hero unit displays <columnValue> columns\r\n Examples:\r\n | columnValue | html |\r\n | 1 | <h1>Column 1!</h1> |\r\n | 2 | <h1>Column 1!</h1><div slot=\"secondary-column\"><h1 style=\"text-align:center\">Column 2!</h1></div> |\r\n\r\n Scenario: HTML to be displayed in the second column comes from the \"secondary-column\" slot\r\n Given a hero unit with \"columns\" \"2\"\r\n And the following html\r\n \"\"\"\r\n <h1>Column 1!</h1>\r\n <div>\r\n <h1 style=\"text-align:center\">Column 2!</h1>\r\n </div>\r\n \"\"\"\r\n When the hero unit is rendered\r\n Then only one column is displayed with content\r\n And column 1 will contain the \"Column 1!\" text\r\n And column 1 will contain the \"Column 2!\" text\r\n When the div for column two is updated to have 'slot=\"secondary-column\"'\r\n Then the two columns are displayed with content\r\n And column 1 will contain the \"Column 1!\" text\r\n And column 2 will contain the \"Column 2!\" text\r\n\r\n Scenario Outline: A background for the hero unit can be set as an image or colour\r\n Given a hero unit with <backgroundPropValue>\r\n Then the background will be <background>\r\n Examples:\r\n | background | background |\r\n | https://images.unsplash.com/photo-1599676821464-3555954838d | image of misty mountains |\r\n | LightSlateGrey | light slate grey |\r\n | #00FF00 | green |\r\n | rgb(128,0,128) | purple |\r\n\r\n Scenario Outline: Wrap Direction can be configured for mobile experiences\r\n Given a hero unit with the following HTML\r\n \"\"\"\r\n <h1>Column 1!</h1>\r\n <div slot=\"secondary-column\">\r\n <h1 style=\"text-align:center\">Column 2!</h1>\r\n </div>\r\n \"\"\"\r\n And prop \"wrap-direction\" has <value>\r\n When the window width is less than 600px\r\n Then the two columns will stack\r\n And <column> will be on top\r\n Examples:\r\n | value | column |\r\n | wrap | 1 |\r\n | wrap-reverse | 2 |\r\n | | 1 |";
@@ -29223,17 +29253,17 @@ const TwoColumnLoginWithImgElement = () => {
29223
29253
  };
29224
29254
 
29225
29255
  const Hero = /*#__PURE__*/Object.freeze({
29226
- __proto__: null,
29227
- 'default': Hero_stories,
29228
- LoginOneColumn: LoginOneColumn,
29229
- LoginOneColumnWithColor: LoginOneColumnWithColor,
29230
- LoginOneColumnWithImage: LoginOneColumnWithImage,
29231
- TwoColumnLoginLargePadding: TwoColumnLoginLargePadding,
29232
- TwoColumnLoginMediumPadding: TwoColumnLoginMediumPadding,
29233
- TwoColumnLoginSmallPadding: TwoColumnLoginSmallPadding,
29234
- TwoColumnLoginNoPadding: TwoColumnLoginNoPadding,
29235
- TwoColumnLoginReverseWrap: TwoColumnLoginReverseWrap,
29236
- TwoColumnLoginWithImgElement: TwoColumnLoginWithImgElement
29256
+ __proto__: null,
29257
+ 'default': Hero_stories,
29258
+ LoginOneColumn: LoginOneColumn,
29259
+ LoginOneColumnWithColor: LoginOneColumnWithColor,
29260
+ LoginOneColumnWithImage: LoginOneColumnWithImage,
29261
+ TwoColumnLoginLargePadding: TwoColumnLoginLargePadding,
29262
+ TwoColumnLoginMediumPadding: TwoColumnLoginMediumPadding,
29263
+ TwoColumnLoginSmallPadding: TwoColumnLoginSmallPadding,
29264
+ TwoColumnLoginNoPadding: TwoColumnLoginNoPadding,
29265
+ TwoColumnLoginReverseWrap: TwoColumnLoginReverseWrap,
29266
+ TwoColumnLoginWithImgElement: TwoColumnLoginWithImgElement
29237
29267
  });
29238
29268
 
29239
29269
  const scenario$8 = "@owner:sam\r\n@author:sam\r\n\r\nFeature: Referral Iframe\r\n\r\n Used to provide an external form for submitting referral leads using the current user's referral code\r\n\r\n Background: A user is logged in\r\n Given there is a logged in user\r\n\r\n @motivating\r\n Scenario: Referral code is passed to the iframe as a query parameter\r\n Given the \"iframe-src\" is \"https://example.com\"\r\n And the user has navigated to \"/refer\"\r\n And the user's referral code is \"BOBBYREFER\"\r\n When the iframe content is loaded\r\n Then the iframe url will be \"https://example.com?rsCode=BOBBYREFER\"\r\n\r\n @ui\r\n Scenario Outline: The height and width of the iFrame can be controlled via props\r\n Given the \"iframe-src\" is \"https://example.com\"\r\n And the iframe content is 1000x1000\r\n And the \"iframe-height\" is set to <heightValue>\r\n And the \"iframe-width\" is set to <widthValue>\r\n Then the content of the iframe will be displayed with scrollbars\r\n And the dimension of the iFrame displayed will be 500x500\r\n When the \"iframe-height\" is set to <heightValue>\r\n And the \"iframe-width\" is set to <widthValue>\r\n Then the full content of the iframe will be displayed on the page\r\n And the dimension of the iFrame displayed will be 1000x1000\r\n Examples:\r\n | heightValue | widthValue |\r\n | 500px | 500px |\r\n | 50% | 50% |\r\n\r\n @minutae\r\n Scenario Outline: The iFrame will fail fast if a iFrame source isn't provided\r\n Given \"iframe-src\" <mayBeAnAttribute>\r\n And it <mayHaveValue>\r\n When a user views the referral iFrame component\r\n Then an alert with an error message is displayed in place of the iFrame\r\n And it has a details section\r\n When \"More details\" is clicked\r\n Then the following information will be displayed\r\n | component being used |\r\n | missing attribute(s) |\r\n\r\n Examples:\r\n | mayBeAnAttribute | mayHaveValue |\r\n | is not an attribute | N/A |\r\n | is an attribute | \"\" |\r\n | is an attribute | |";
@@ -29266,10 +29296,10 @@ const ReferralIframeError = () => {
29266
29296
  };
29267
29297
 
29268
29298
  const ReferralIframe$1 = /*#__PURE__*/Object.freeze({
29269
- __proto__: null,
29270
- 'default': ReferralIframe_stories,
29271
- ReferralIframe: ReferralIframe,
29272
- ReferralIframeError: ReferralIframeError
29299
+ __proto__: null,
29300
+ 'default': ReferralIframe_stories,
29301
+ ReferralIframe: ReferralIframe,
29302
+ ReferralIframeError: ReferralIframeError
29273
29303
  });
29274
29304
 
29275
29305
  const scenario$9 = "@owner:sam\r\n@author:sam\r\n\r\nFeature: Name Fields\r\n\r\n Fields to be used to fill the first and last name of a user during registration\r\n\r\n Background:\r\n Given the current page is \"/register\"\r\n\r\n @motivating\r\n Scenario: Both first name and last name are required\r\n Given the email field has valid input\r\n And the password field has valid input\r\n And first name field is empty\r\n And last name field is empty\r\n When register is clicked\r\n Then the name fields will be highlighted in red\r\n And the error messages will say \"Cannot be empty\"\r\n\r\n @motivating\r\n Scenario: First and last name are upserted with the SaaSquatch user\r\n Given all fields have been filled with data\r\n | firstName | lastName | email | password |\r\n | Bob | Testerson | bob@example.com | SecurePassword1 |\r\n When register is clicked\r\n Then the email verification page will be loaded\r\n And the user will be upserted\r\n And the SaaSquatch user will contain data\r\n | firstName | lastName | email |\r\n | Bob | Testerson | bob@example.com |\r\n\r\n";
@@ -29309,10 +29339,10 @@ const NameFieldsWithErrors = () => {
29309
29339
  };
29310
29340
 
29311
29341
  const NameFields$1 = /*#__PURE__*/Object.freeze({
29312
- __proto__: null,
29313
- 'default': NameFields_stories,
29314
- NameFields: NameFields,
29315
- NameFieldsWithErrors: NameFieldsWithErrors
29342
+ __proto__: null,
29343
+ 'default': NameFields_stories,
29344
+ NameFields: NameFields,
29345
+ NameFieldsWithErrors: NameFieldsWithErrors
29316
29346
  });
29317
29347
 
29318
29348
  const baseResponse = (data, stage = "chooseReward", selectedItem = null, selectedStep = null, error = false, loading = false, fueltank = null) => ({
@@ -29565,19 +29595,19 @@ const SuccessPromo = StoryBase(success3);
29565
29595
  const Loading$3 = StoryBase(loading);
29566
29596
 
29567
29597
  const RewardExchangeList = /*#__PURE__*/Object.freeze({
29568
- __proto__: null,
29569
- 'default': RewardExchangeList_stories,
29570
- ChooseReward: ChooseReward,
29571
- ChooseRewardSelected: ChooseRewardSelected,
29572
- ChooseAmount: ChooseAmount,
29573
- ChooseAmountVariable: ChooseAmountVariable,
29574
- Confirm: Confirm,
29575
- ConfirmVariable: ConfirmVariable,
29576
- Error: Error$3,
29577
- Success: Success$2,
29578
- SuccessVariable: SuccessVariable,
29579
- SuccessPromo: SuccessPromo,
29580
- Loading: Loading$3
29598
+ __proto__: null,
29599
+ 'default': RewardExchangeList_stories,
29600
+ ChooseReward: ChooseReward,
29601
+ ChooseRewardSelected: ChooseRewardSelected,
29602
+ ChooseAmount: ChooseAmount,
29603
+ ChooseAmountVariable: ChooseAmountVariable,
29604
+ Confirm: Confirm,
29605
+ ConfirmVariable: ConfirmVariable,
29606
+ Error: Error$3,
29607
+ Success: Success$2,
29608
+ SuccessVariable: SuccessVariable,
29609
+ SuccessPromo: SuccessPromo,
29610
+ Loading: Loading$3
29581
29611
  });
29582
29612
 
29583
29613
  const ProgramExplainer_stories = {
@@ -29595,18 +29625,21 @@ const steps1 = {
29595
29625
  description: "Earn up to $1200 in rewards for each referral",
29596
29626
  color: "white",
29597
29627
  background: "#5B3EDA",
29628
+ icon: "person-plus-fill",
29598
29629
  };
29599
29630
  const steps2 = {
29600
29631
  title: "If your friend signs up for a Klip Business plan",
29601
29632
  description: "Get a $50 VISA giftcard when they pay for their first month",
29602
29633
  color: "black",
29603
29634
  background: "#F3CC66",
29635
+ icon: "server",
29604
29636
  };
29605
29637
  const steps3 = {
29606
29638
  title: "If your friend signs up for a Klip Enterprise plan",
29607
29639
  description: "Get up to $1200 in rewards - a $200 VISA giftcard when our sales team qualifies them as a good fit for Klip, and a $1000 VISA giftcard when they become a paying customer",
29608
29640
  color: "black",
29609
29641
  background: "#D3CCF5",
29642
+ icon: "people-fill",
29610
29643
  };
29611
29644
  const OneStep = () => {
29612
29645
  return (index.h(sqmProgramExplainerView.ProgramExplainerView, Object.assign({}, props$2),
@@ -29625,11 +29658,11 @@ const ThreeSteps = () => {
29625
29658
  };
29626
29659
 
29627
29660
  const ProgramExplainer = /*#__PURE__*/Object.freeze({
29628
- __proto__: null,
29629
- 'default': ProgramExplainer_stories,
29630
- OneStep: OneStep,
29631
- TwoSteps: TwoSteps,
29632
- ThreeSteps: ThreeSteps
29661
+ __proto__: null,
29662
+ 'default': ProgramExplainer_stories,
29663
+ OneStep: OneStep,
29664
+ TwoSteps: TwoSteps,
29665
+ ThreeSteps: ThreeSteps
29633
29666
  });
29634
29667
 
29635
29668
  const ProgramExplainerStep_stories = {
@@ -29640,7 +29673,8 @@ const Example1 = () => {
29640
29673
  title: "Invite your friends to Klip",
29641
29674
  description: "Earn up to $1200 in rewards for each referral",
29642
29675
  color: "white",
29643
- background: "#5B3EDA"
29676
+ background: "#5B3EDA",
29677
+ icon: "person-plus-fill",
29644
29678
  };
29645
29679
  return index.h(sqmProgramExplainerStepView.ProgramExplainerStepView, Object.assign({}, props));
29646
29680
  };
@@ -29653,27 +29687,28 @@ const Example1 = () => {
29653
29687
  // };
29654
29688
 
29655
29689
  const ProgramExplainerStep = /*#__PURE__*/Object.freeze({
29656
- __proto__: null,
29657
- 'default': ProgramExplainerStep_stories,
29658
- Example1: Example1
29690
+ __proto__: null,
29691
+ 'default': ProgramExplainerStep_stories,
29692
+ Example1: Example1
29659
29693
  });
29660
29694
 
29661
29695
  const SqmBrand_stories = {
29662
29696
  title: "Components/Brand",
29663
29697
  };
29664
29698
  const SampleComponents = () => (index.h("div", { style: { padding: "10px", border: "5px solid #EEE" } },
29665
- index.h("sl-button", { type: "default" }, "Default"),
29666
- index.h("sl-button", { type: "primary" }, "Primary"),
29667
- index.h("sl-button", { type: "success" }, "Success"),
29668
- index.h("sl-button", { type: "neutral" }, "Neutral"),
29669
- index.h("sl-button", { type: "warning" }, "Warning"),
29670
- index.h("sl-button", { type: "danger" }, "Danger"),
29671
- index.h("br", null),
29672
- index.h("sl-badge", { type: "primary" }, "Primary"),
29673
- index.h("sl-badge", { type: "success" }, "Success"),
29674
- index.h("sl-badge", { type: "neutral" }, "Neutral"),
29675
- index.h("sl-badge", { type: "warning" }, "Warning"),
29676
- index.h("sl-badge", { type: "danger" }, "Danger"),
29699
+ index.h("div", { style: { display: "flex", gap: "5px", padding: "5px" } },
29700
+ index.h("sl-button", { type: "default" }, "Default"),
29701
+ index.h("sl-button", { type: "primary" }, "Primary"),
29702
+ index.h("sl-button", { type: "success" }, "Success"),
29703
+ index.h("sl-button", { type: "neutral" }, "Neutral"),
29704
+ index.h("sl-button", { type: "warning" }, "Warning"),
29705
+ index.h("sl-button", { type: "danger" }, "Danger")),
29706
+ index.h("div", { style: { display: "flex", gap: "5px", padding: "5px" } },
29707
+ index.h("sl-badge", { type: "primary" }, "Primary"),
29708
+ index.h("sl-badge", { type: "success" }, "Success"),
29709
+ index.h("sl-badge", { type: "neutral" }, "Neutral"),
29710
+ index.h("sl-badge", { type: "warning" }, "Warning"),
29711
+ index.h("sl-badge", { type: "danger" }, "Danger")),
29677
29712
  index.h("div", { class: "color-palette" },
29678
29713
  index.h("div", { class: "color-palette__name" },
29679
29714
  "Primary",
@@ -29725,19 +29760,37 @@ const Nested = () => {
29725
29760
  function ColorSwatch({ depth }) {
29726
29761
  return (index.h("div", { style: {
29727
29762
  backgroundColor: `var(--sl-color-primary-${depth})`,
29763
+ color: `var(--sl-color-neutral-${1000 - depth})`,
29728
29764
  width: "50px",
29729
29765
  height: "50px",
29730
29766
  display: "flex",
29731
29767
  justifyContent: "center",
29732
- alignItems: "center"
29768
+ alignItems: "center",
29733
29769
  } }, depth));
29734
- }
29770
+ }
29771
+ const Fonts = () => {
29772
+ return (index.h("div", null,
29773
+ index.h(SampleComponents, null),
29774
+ index.h("sqm-brand", { "brand-font": "Roboto" },
29775
+ "Roboto",
29776
+ index.h(SampleComponents, null)),
29777
+ index.h("sqm-brand", { "brand-font": "Open Sans" },
29778
+ "Open Sans",
29779
+ index.h(SampleComponents, null)),
29780
+ index.h("sqm-brand", { "brand-font": "Lato" },
29781
+ "Lato",
29782
+ index.h(SampleComponents, null)),
29783
+ index.h("sqm-brand", { "brand-font": "Oswald" },
29784
+ "Oswald",
29785
+ index.h(SampleComponents, null))));
29786
+ };
29735
29787
 
29736
29788
  const BrandStories = /*#__PURE__*/Object.freeze({
29737
- __proto__: null,
29738
- 'default': SqmBrand_stories,
29739
- Examples: Examples,
29740
- Nested: Nested
29789
+ __proto__: null,
29790
+ 'default': SqmBrand_stories,
29791
+ Examples: Examples,
29792
+ Nested: Nested,
29793
+ Fonts: Fonts
29741
29794
  });
29742
29795
 
29743
29796
  /**
@@ -29793,13 +29846,13 @@ const Klip = `
29793
29846
  `;
29794
29847
 
29795
29848
  const Themes = /*#__PURE__*/Object.freeze({
29796
- __proto__: null,
29797
- Default: Default$b,
29798
- Orangey: Orangey,
29799
- Netflix: Netflix,
29800
- SaaSquatchCorporate: SaaSquatchCorporate,
29801
- NYTimes: NYTimes,
29802
- Klip: Klip
29849
+ __proto__: null,
29850
+ Default: Default$b,
29851
+ Orangey: Orangey,
29852
+ Netflix: Netflix,
29853
+ SaaSquatchCorporate: SaaSquatchCorporate,
29854
+ NYTimes: NYTimes,
29855
+ Klip: Klip
29803
29856
  });
29804
29857
 
29805
29858
  function deepFreeze(obj) {