@saasquatch/mint-components 1.5.3-0 → 1.5.3-1

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.
@@ -754,10 +754,6 @@ const InputField = class {
754
754
  constructor(hostRef) {
755
755
  index.registerInstance(this, hostRef);
756
756
  this.ignored = true;
757
- /**
758
- * @uiName Input label
759
- */
760
- this.fieldLabel = "My Custom Input";
761
757
  /**
762
758
  * @uiName Input Type
763
759
  * @uiType string
@@ -5284,6 +5280,7 @@ function usePortalRegister(props) {
5284
5280
  return;
5285
5281
  const key = control.name;
5286
5282
  const value = control.value;
5283
+ console.log({ key, value });
5287
5284
  jsonpointer.jsonpointer.set(formData, key, value);
5288
5285
  // required validation
5289
5286
  if (control.required && !value) {
@@ -9893,8 +9893,13 @@ const NameFields$1 = /*#__PURE__*/Object.freeze({
9893
9893
  NameFieldsWithErrors: NameFieldsWithErrors
9894
9894
  });
9895
9895
 
9896
+ const scenario$i = "@owner:sam\r\n@author:sam\r\nFeature: Checkbox Field\r\n\r\n Field to be used to be used as a checkbox during registration. A motivating use case is to use this component as a terms\r\n and conditions field, to sastisfy legal requirements that a customer might have for their end users.\r\n\r\n Background:\r\n Given a user is viewing the \"/register\"\r\n And the registration page has the following fields\r\n | fields |\r\n | first name |\r\n | last name |\r\n | email |\r\n | password |\r\n | checkbox |\r\n\r\n @motivating\r\n Scenario: Checkbox is required by default\r\n Given a checkbox inside of a \"sqm-portal-register\"\r\n And the name fields have valid input\r\n And the email field has valid input\r\n And the password field has valid input\r\n And the checkbox is not checked\r\n When the user tries to register\r\n Then the checkbox is highlighted in red\r\n And the error message says \"Must be checked\"\r\n\r\n\r\n @landmine\r\n Scenario: Checkboxes with the same \"checkbox-name\" are not submitted in the form data\r\n Given the register form has the following html\r\n \"\"\"\r\n <sqm-portal-register>\r\n <sqm-name-fields slot=\"formData\"></sqm-name-fields>\r\n <sqm-checkbox-field\r\n slot=\"formData\"\r\n checkbox-label=\"I am not a robot\"\r\n error-message=\"Cannot be a robot\"\r\n checkbox-name=\"isHuman\"\r\n ></sqm-checkbox-field>\r\n <div slot=\"terms\">\r\n <sqm-checkbox-field checkbox-name=\"isHuman\"></sqm-checkbox-field>\r\n </div>\r\n </sqm-portal-register>\r\n \"\"\"\r\n And the checkboxes are checked\r\n When the user tries to register\r\n Then the form is submitted\r\n But no field with key \"isHuman\" is included in the form data\r\n\r\n @motivating\r\n Scenario: Multiple checkboxes need different \"checkbox-name\" values\r\n Given the register form has the following html\r\n \"\"\"\r\n <sqm-portal-register>\r\n <sqm-name-fields slot=\"formData\"></sqm-name-fields>\r\n <sqm-checkbox-field\r\n slot=\"formData\"\r\n checkbox-label=\"I am not a robot\"\r\n error-message=\"Cannot be a robot\"\r\n checkbox-name=\"isHuman\"\r\n ></sqm-checkbox-field>\r\n <div slot=\"terms\">\r\n <sqm-checkbox-field checkbox-name=\"myCheckbox\"></sqm-checkbox-field>\r\n </div>\r\n </sqm-portal-register>\r\n \"\"\"\r\n And the checkboxes are not checked\r\n When the user tries to register\r\n Then both checkboxes are bordered in red\r\n And the checkboxes have different error messages\r\n When the user checks the boxes\r\n And tries to register\r\n Then the form is submitted\r\n And the following fields are included in the form data\r\n | feilds |\r\n | isHuman |\r\n | myCheckbox |\r\n\r\n @motivating\r\n Scenario: Checkboxes can be optional\r\n Given the register form has the following html\r\n \"\"\"\r\n <sqm-portal-register>\r\n <sqm-name-fields slot=\"formData\"></sqm-name-fields>\r\n <sqm-checkbox-field\r\n slot=\"formData\"\r\n checkbox-label=\"I am not a robot\"\r\n checkbox-required=\"false\"\r\n checkbox-name=\"isHuman\"\r\n />\r\n </sqm-portal-register>\r\n \"\"\"\r\n And the checkbox is not checked\r\n When the user tries to register\r\n Then there is no error for the checkbox\r\n\r\n @minutae\r\n Scenario Outline: Validation error message is configurable\r\n Given a checkbox inside of a \"sqm-portal-register\"\r\n And the checkbox is required\r\n And the checkbox has prop \"error-message\" with <propValue>\r\n When the user tries to register\r\n But they havent checked the checkbox\r\n Then they see <errorMessage> below\r\n Examples:\r\n | propValue | errorMessage |\r\n | | Must be checked |\r\n | My Custom Message | My Custom Message |\r\n\r\n @motivating\r\n Scenario Outline: Checkbox text and link are configurable\r\n Given a checkbox inside of a \"sqm-portal-register\"\r\n And the checkbox has the following prop values\r\n | prop | value |\r\n | checkbox-label | <labelText> |\r\n | checkbox-label-link | <labelLink> |\r\n | checkbox-label-link-text | <labelLinkText> |\r\n When the user views the checkbox\r\n Then they see <text>\r\n And when they click <labelLinkText> they are redirected to <labelLink>\r\n #First example below is the defaults set by the controller\r\n Examples:\r\n | labelText | labelLinkText | labelLink | text |\r\n | By signing up you agree to the {labelLink} | Terms and Conditions | https://example.com | By signing up you agree to the Terms and Conditions |\r\n | Read our {labelLink} before registration | Terms of Service | https://example.com/terms | Read our Terms of Service before registration |\r\n | By registering you agree to our terms and conditions | N/A | N/A | By registering you agree to our terms and conditions |\r\n\r\n @motivating\r\n Scenario: The form field name attribute is configurable\r\n Given a checkbox inside of a \"sqm-portal-register\"\r\n And the checkbox has prop \"checkbox-name\" with value \"myCheckBox\"\r\n When the user checks the box\r\n And they register\r\n Then the value of the checkbox is submitted under \"myCheckBox\" field";
9897
+
9896
9898
  const CheckboxField_stories = {
9897
9899
  title: "Components/Checkbox Field",
9900
+ parameters: {
9901
+ scenario: scenario$i,
9902
+ },
9898
9903
  };
9899
9904
  const defaultProps$a = {
9900
9905
  states: {
@@ -9989,6 +9994,9 @@ const CheckboxField = /*#__PURE__*/Object.freeze({
9989
9994
 
9990
9995
  const UseCheckboxField_stories = {
9991
9996
  title: "Hooks / useCheckboxField",
9997
+ parameters: {
9998
+ scenario: scenario$i,
9999
+ },
9992
10000
  };
9993
10001
  function setupGraphQL$9() {
9994
10002
  const id = "testestest";
@@ -10146,12 +10154,12 @@ const UseDropdownField = /*#__PURE__*/Object.freeze({
10146
10154
  Countries: Countries
10147
10155
  });
10148
10156
 
10149
- const scenario$i = "@author:derek\r\n@owner:derek\r\nFeature: Form Input Field\r\n\r\n This componenent is used as a custom registration field during registration. The field can be text, a number, \r\n date or phone number. A motivating use case is to ask for a users company name, this value would then be mapped \r\n through the Managed Identity Service and upserted on the user after registration.\r\n\r\n Background: A user exists and is viewing the hosted portal registration\r\n Given a user is viewing \"/register\"\r\n\r\n @motivating\r\n Scenario: Input fields are required by default\r\n Given an input field inside of a \"sqm-portal-register\" component\r\n And the user has filled out all standard registration fields\r\n But the custom input field is empty\r\n When the user tries to register\r\n Then the custom input field is highlighted in red\r\n And the error message \"Cannot be empty\" appears below\r\n\r\n @motivating\r\n Scenario: Input field labels are configurable\r\n Given an input field inside of a \"sqm-portal-register\" component\r\n And it has prop \"field-label\" with value \"My Custom Input\"\r\n When the user views the registration form\r\n Then they see the label \"My Custom Input\" above the input field\r\n\r\n @motivating\r\n Scenario: Input fields can be optional\r\n Given the register form has the following html\r\n \"\"\"\r\n <sqm-portal-register>\r\n <sqm-name-fields slot=\"formData\"></sqm-name-fields>\r\n <sqm-input-field\r\n slot=\"formData\"\r\n field-label=\"Company Name\"\r\n field-name=\"companyName\"\r\n field-required=\"false\"\r\n />\r\n </sqm-portal-register>\r\n \"\"\"\r\n And the company name input is empty\r\n When the user tries to register\r\n Then there is no error for the company name input\r\n\r\n @minutae\r\n Scenario Outline: Validation error message is configurable\r\n Given an input field inside of a \"sqm-portal-register\" component\r\n And the input field is required\r\n And the input field has prop \"error-message\" with <propValue>\r\n When the user tries to register\r\n But they havent filled in the input field\r\n Then they see <errorMessage> below\r\n Examples:\r\n | propValue | errorMessage |\r\n | | Cannot be empty |\r\n | My Custom Message | My Custom Message |\r\n\r\n @motivating\r\n Scenario: The form field name attribute is configurable\r\n Given an input field inside of a \"sqm-portal-register\" component\r\n And the input field has prop \"field-name\" with value \"myCustomField\"\r\n When the user adds a value to the input field\r\n And they register\r\n Then the value of the input field is submitted under \"myCustomField\" field\r\n And it is of type 'string'\r\n\r\n @motivating\r\n Scenario Outline: By default the input field is a text input\r\n Given an input field inside of a \"sqm-portal-register\" component\r\n And the input field <mayHave> prop \"field-type\" with <value>\r\n When the user views the input field\r\n Then it is a text input\r\n Examples:\r\n | mayHave | value |\r\n | has | text |\r\n | doesn't have | |\r\n\r\n @motivating\r\n Scenario: The input field can be a number input\r\n Given an input field inside of a \"sqm-portal-register\" component\r\n And the input field has prop \"field-type\" \"number\"\r\n When the user views the input field\r\n And the hover over\r\n Then they see up and down arrows on the right hand side\r\n When they click the up arrow\r\n Then the number in the input field increments\r\n When they click the down arrow\r\n Then the number in the input field decrements\r\n When they click the input\r\n And try to enter text characters\r\n Then nothing happens\r\n When they click the input field\r\n And try to enter number characters\r\n Then they are added in the input\r\n\r\n @motivating\r\n Scenario: The input field can provide a date picker\r\n Given an input field inside of a \"sqm-portal-register\" component\r\n And the input field has prop \"field-type\" \"date\"\r\n When the user views the input field\r\n Then they see \"mm/dd/yyyy\" as a placeholder\r\n And they see a calender icon on the right\r\n When they start typing a date\r\n Then it maintains the \"mm/dd/yyyy\" format\r\n When they click the calendar icon\r\n Then a dropdown appears\r\n And they see a calendar\r\n When they select a date\r\n Then it is applied to the input\r\n\r\n @motivating\r\n Scenario: The input field can format telephone numbers\r\n Given an input field inside of a \"sqm-portal-register\" component\r\n And the input field has prop \"field-type\" \"tel\"\r\n When the user views the input field\r\n And they start typing in a phone number\r\n Then it is formatted into the following form \"(XXX) XXX-XXXX\"\r\n When they start their phone number with a \"1\"\r\n And add their 10 character phone number\r\n Then it is formatted into the following form \"1 (XXX) XXX-XXXX\"\r\n\r\n @landmine\r\n Scenario: Telephone formating is removed after 10 numbers\r\n Given a user viewing a telephone type input field\r\n And they entered their 10 character phone number\r\n And it was not prefixed with a 1\r\n When they add another character\r\n Then the formatting is removed\r\n\r\n @landmine\r\n Scenario: Number type inputs are recorded in the form data as a string\r\n Given an input field inside of a \"sqm-portal-register\" component\r\n And the input field has prop \"field-type\" \"number\"\r\n When the user views the input field\r\n And they input 12\r\n And they submit the form\r\n Then the input value 12 is recorded in the form data as a string";
10157
+ const scenario$j = "@author:derek\r\n@owner:derek\r\nFeature: Form Input Field\r\n\r\n This component is used as a custom registration field during registration. The field can be text, a number,\r\n date or phone number. A motivating use case is to ask for a users company name, this value would then be mapped\r\n through the Managed Identity Service and upserted on the user after registration.\r\n\r\n Background: A user exists and is viewing the hosted portal registration\r\n Given a user is viewing \"/register\"\r\n And \"/register\" contains the registration form\r\n And the registration form has a custom input field \r\n\r\n @motivating\r\n Scenario Outline: Input fields are required by default but can be optional\r\n Given the input has prop \"field-required\" with <value>\r\n And the input is empty\r\n When the user tries to register\r\n Then the input <mayBe> highlighted in red\r\n And an error message <mayAppear> in red below\r\n And form submission <mayBe> blocked\r\n Examples:\r\n | value | mayBe | mayAppear |\r\n | true | is | appears |\r\n | | is | appears |\r\n | false | isn't | doesn't appear |\r\n\r\n @motivating\r\n Scenario: Input field labels are configurable\r\n Given the input has prop \"field-label\" with value \"My Custom Input\"\r\n When the user views the registration form\r\n Then they see the input field\r\n And it has label \"My Custom Input\" above the input\r\n\r\n @minutae\r\n Scenario Outline: Validation error message is configurable\r\n Given the input is required\r\n And it has prop \"error-message\" with <value>\r\n When the user tries to register\r\n But they haven't filled in the input\r\n Then they see <errorMessage> below\r\n Examples:\r\n | value | errorMessage |\r\n | | Cannot be empty |\r\n | My Custom Message | My Custom Message |\r\n\r\n @motivating\r\n Scenario: Form data attribute name is configurable\r\n Given the input has prop \"field-name\" with value \"myCustomField\"\r\n When the user types \"testing testing\" into the input\r\n And they register\r\n Then \"testing testing\" is submitted under \"myCustomField\" in the form data\r\n\r\n @motivating\r\n Scenario Outline: The input field is a text input by default\r\n Given the input <mayHave> prop \"field-type\" with <value>\r\n When the user views the input field\r\n Then it is a text input\r\n Examples:\r\n | mayHave | value |\r\n | has | text |\r\n | doesn't have | |\r\n\r\n @motivating\r\n Scenario: Number type inputs are supported\r\n Given the input has prop \"field-type\" with value \"number\"\r\n When the user views the input field\r\n And the hover over it\r\n Then they see up and down arrows on the right hand side\r\n When they click the up arrow\r\n Then the number in the input field increments\r\n When they click the down arrow\r\n Then the number in the input field decrements\r\n When they click the input\r\n And try to enter text characters\r\n Then nothing happens\r\n When they click the input field\r\n Then they are able to input numbers\r\n\r\n @motivating\r\n Scenario: Date type inputs are supported\r\n Given the input has prop \"field-type\" \"date\"\r\n When the user views the input field\r\n Then they see \"mm/dd/yyyy\" as a placeholder\r\n And they see a calendar icon on the right\r\n When they start typing a date\r\n Then it maintains the \"mm/dd/yyyy\" format\r\n When they click the calendar icon\r\n Then a dropdown appears\r\n And they see a calendar\r\n When they select a date\r\n Then it is applied to the input\r\n\r\n @motivating\r\n Scenario: Phone number type inputs are supported\r\n Given the input has prop \"field-type\" with value \"tel\"\r\n When the user starts typing a phone number in the input\r\n Then it is formatted into the following form \"(XXX) XXX-XXXX\"\r\n When they pre-fix their phone number with a \"1\"\r\n Then it is formatted into the following form \"1 (XXX) XXX-XXXX\"\r\n\r\n @landmine\r\n Scenario: Telephone formatting is removed after 10 numbers\r\n Given a user using a phone number input field\r\n And they entered their 10 character phone number\r\n And it was not prefixed with a 1\r\n When they add another character\r\n Then the formatting is removed\r\n\r\n @landmine\r\n Scenario Outline: Input values are always recorded as strings in the form data\r\n Given the input has prop \"field-type\" with <value>\r\n When the user inputs <formInput>\r\n And they register\r\n Then <formInput> is recorded in the form data as a string\r\n Examples:\r\n | value | formInput |\r\n | text | Hello there |\r\n | number | 123 |\r\n | date | 05/07/2021 |\r\n | tel | (250) 234-9877 |";
10150
10158
 
10151
10159
  const InputField_stories = {
10152
10160
  title: "Components/Input Field",
10153
10161
  parameters: {
10154
- scenario: scenario$i,
10162
+ scenario: scenario$j,
10155
10163
  },
10156
10164
  };
10157
10165
  const defaultProps$c = {
@@ -10250,7 +10258,7 @@ const InputField = /*#__PURE__*/Object.freeze({
10250
10258
  const UseInputField_stories = {
10251
10259
  title: "Hooks / useInputField",
10252
10260
  parameters: {
10253
- scenario: scenario$i,
10261
+ scenario: scenario$j,
10254
10262
  },
10255
10263
  };
10256
10264
  function setupGraphQL$b() {
@@ -10332,12 +10340,12 @@ const UseInputField = /*#__PURE__*/Object.freeze({
10332
10340
  TelType: TelType$1
10333
10341
  });
10334
10342
 
10335
- const scenario$j = "@author:derek\r\n@owner:derek\r\nFeature: Reward Exchange List\r\n\r\n The Reward Exchange List gives end users the power to exchange their rewards for other rewards.\r\n It populates a list from the reward exchange rules set up on a given tenant.\r\n\r\n Background:\r\n Given a tenant with reward exchange rules\r\n\r\n @motivating\r\n @ui\r\n Scenario: The empty state is shown if there are no visible exchanges\r\n Given a user with no visible exchanges\r\n When they view the reward exchange\r\n Then no exchange options are displayed\r\n And they see an image of a present\r\n And \"Redeem Rewards\" in bold\r\n And \"Use your points to redeem rewards once they become available\" below the bolded text\r\n And the pagination buttons are disabled\r\n\r\n @minutae\r\n @ui\r\n Scenario: A custom empty state can be provided\r\n Given a user with no visible exchanges\r\n And a custom empty state has been supplied in the \"empty\" slot\r\n When they view the reward exchange\r\n Then they see the custom empty state\r\n\r\n @motivating\r\n @ui\r\n Scenario: A Loading Skeleton is displayed when the reward exchange rules are loading\r\n Given a user\r\n When they load the reward exchange list\r\n Then they see a loading Skeleton\r\n And it has 8 skeleton cards\r\n When the reward exchange rules have loaded\r\n Then the skeleton is replaced with reward exchange options\r\n\r\n @motivating\r\n Scenario: An error banner appears when the reward exchange list fails to load\r\n Given a user trying to view the reward exchange list\r\n But it fails to load\r\n Then an error banner is displayed\r\n And it displays \"Unable to load reward exchange list. Please try again\"\r\n\r\n @motivating\r\n @ui\r\n Scenario: The exchange progress bar progresses through the exchange process\r\n Given a user who is eligible for the tenants reward exchange rules\r\n When they view the reward exchange list\r\n Then the process bar displays the following elements\r\n | elements |\r\n | Step 1 `Rewards` title in black |\r\n | Step 1 circle with green outline, white fill and number 1 in green |\r\n | Step 2 `Select` title in grey |\r\n | Step 2 circle with grey fill and number 2 in white |\r\n | Step 3 `Confirm` title in grey |\r\n | Step 3 circle with grey fill and number 3 in white |\r\n | lines between all steps are greyed out |\r\n When they continue to the selection page\r\n Then the progress bar displays the following elements\r\n | elements |\r\n | Step 1 `Rewards` title in black |\r\n | Step 1 circle with white checkmark and green fill |\r\n | Step 2 `Select` title in black |\r\n | Step 2 circle with green outline, white fill and number 2 in green |\r\n | Step 3 `Confirm` title in grey |\r\n | Step 3 circle with grey fill and number 3 in white |\r\n | Green line between step 1 and 2 |\r\n | Grey line between step 2 and 3 |\r\n When they continue to the confirmation page\r\n Then the progress bar displays the following elements\r\n | elements |\r\n | Step 1 `Rewards` title in black |\r\n | Step 1 circle with white checkmark and green fill |\r\n | Step 2 `Select` title in black |\r\n | Step 2 circle with white checkmark and green fill |\r\n | Step 3 `Confirm` title in black |\r\n | Step 3 circle with green outline, white fill and number 3 in green |\r\n | Green line between all steps |\r\n When they continue to the redemption page\r\n Then the progress bar displays the following elements\r\n | elements |\r\n | Step 1 `Rewards` title in black |\r\n | Step 1 circle with white checkmark and green fill |\r\n | Step 2 `Select` title in black |\r\n | Step 2 circle with white checkmark and green fill |\r\n | Step 3 `Confirm` title in black |\r\n | Step 3 circle with white checkmark and green fill |\r\n | Green line between all steps |\r\n\r\n @motivating\r\n Scenario: Users must choose a reward exchange option to continue to the selection page\r\n Given a user who is eligible for the tenants reward exchange rules\r\n When they view the reward exchange list\r\n Then the 'Continue' button is disabled\r\n When they select a reward exchange card\r\n Then the card is outlined in brand colour with a brand colour cirlcular check box icon in the top right\r\n And the continue button is no longer disabled\r\n When they click \"Continue\"\r\n Then they are brought to the selection page\r\n\r\n @motivating\r\n @ui\r\n Scenario: Reward exchange rule names and images are used in the reward exchange cards\r\n Given a tenant reward exchange rule\r\n And it has name \"My Visa Exchange Rule\"\r\n And it has an image\r\n When a user views the reward exchange list\r\n Then they see a exchange card with title \"My Visa Exchange Rule\"\r\n And the exchange image on the left hand side of the card\r\n\r\n @motivating\r\n Scenario Outline: Reward exchange source values are displayed on reward exchange cards\r\n Given a <type> reward exchange rule\r\n When a user views the reward exchange list\r\n Then they see <text> under the name on the exchange option cards\r\n And the pretty values are localized to a user locale\r\n Examples:\r\n | type | text |\r\n | FIXED_GLOBAL_REWARD | the exchange source pretty value |\r\n | STEPPED_FIXED_GLOBAL_REWARD | the exchange source min pretty value to the source max pretty value |\r\n | VARIABLE_GLOBAL_REWARD | the exchange source min pretty value to the source max pretty value |\r\n | VARIABLE_CREDIT_REWARD | the exchange source min pretty value to the source max pretty value |\r\n\r\n @motivating\r\n Scenario Outline: Reward exchange cards can display customized error messages\r\n Given a reward exchange rule\r\n And it has <availabilityPredicate>\r\n And the reward exchange list has prop \"not-available-error\" with <value>\r\n When the user views the reward exchange list\r\n Then the card for the reward exchange rule is disabled\r\n And <message> is displayed\r\n Examples:\r\n | availabilityPredicate | value | message |\r\n | 'champion' in user.segments ? \"NOT_CHAMPION\" : true | {unavailableReasonCode, select, NOT_CHAMPION {Sorry must be a champion!} other {unavailableReasonCode} } | Sorry must be a champion! |\r\n | user.customFields.purchaseCount < 10 ? \"MORE_PURCHASE\" : true | {unavailableReasonCode, select, MORE_PURCHASE {Complete 10 purchases to unlock} other {unavailableReasonCode} } | Complete 10 purchases to unlock |\r\n\r\n @motivating\r\n Scenario: Exchange options are disabled if they put a user over the W9 limit\r\n Given a user who is approaching their W9 limit\r\n And a reward exchange rule\r\n And its destination reward has a US taxable value that would put the user over their limit\r\n When they view the reward exchange list\r\n Then the reward exchange card is disabled\r\n And a \"US Tax Limit\" error message is displayed on to the right of a exclamation triangle icon\r\n And the text is orange\r\n And the icon is orange\r\n\r\n @motivating\r\n Scenario Outline: Exchange options are disabled if a users lacks enough credit to redeem\r\n Given a <type> reward exchange rule\r\n But the user lacks enough credit to exchange for it\r\n When they view the reward exchange list\r\n Then the reward exchange card is disabled\r\n And a <text> error message is displayed on to the right of a exclamation triangle icon\r\n And the text is orange\r\n And the icon is orange\r\n Examples:\r\n | type | text |\r\n | FIXED_GLOBAL_REWARD | {prettySourceValue} required |\r\n | STEPPED_FIXED_GLOBAL_REWARD | {prettySourceMinValue} required |\r\n | VARIABLE_GLOBAL_REWARD | {prettySourceMinValue} required |\r\n | VARIABLE_CREDIT_REWARD | {prettySourceMinValue} required |\r\n\r\n @motivating\r\n Scenario: Users can go back to the Rewards page from the Select page\r\n Given a user viewing the Select page\r\n Then they see a \"Cancel\" text button\r\n And a \"Continue to confirmation\" brand colour button in the bottom right corner\r\n When they click \"Cancel\"\r\n Then they return to the Rewards page\r\n\r\n @motivating\r\n Scenario: Users can go back to the Select Page from the Confirm page\r\n Given a user viewing the Confirm page\r\n Then they see a \"Back\" text button\r\n And a \"Redeem\" brand colour button in the bottom right corner\r\n When they click \"Back\"\r\n Then they return to the Select Page\r\n\r\n @motivating\r\n Scenario: Reward rules with visibility predicates that evaluates to false are not shown\r\n Given a tenant reward exchange rule with visibility predicates that evaluates to false\r\n When a user views the reward exchange list\r\n Then they do not see the card for that reward exchange rule\r\n\r\n @motivating\r\n Scenario Outline: Users can choose their reward option for variable rewards on the Select page\r\n Given a <type> exchange rule\r\n And it has the following fields\r\n | fields |\r\n | name |\r\n | description |\r\n | image |\r\n When a user views the reward exchange list\r\n And they progress to the Select page for this exchange\r\n Then they see the exchange rule image on the left hand side\r\n And on the right hand side they see the following in this order from top to bottom\r\n | elements |\r\n | exchange name |\r\n | exchange description |\r\n | select list with all exchange options using pretty values, destination reward above source reward |\r\n Examples:\r\n | type |\r\n | STEPPED_FIXED_GLOBAL_REWARD |\r\n | VARIABLE_GLOBAL_REWARD |\r\n | VARIABLE_CREDIT_REWARD |\r\n\r\n @motivating\r\n Scenario: Users who selected a fixed exchange rule see exchange information on the Select page\r\n Given a \"FIXED_GLOBAL_REWARD\" exchange rule\r\n And it has the following fields\r\n | fields |\r\n | name |\r\n | description |\r\n | image |\r\n When a user views the reward exchange list\r\n And they progress to the Select page for this exchange\r\n Then they see the exchange rule image on the left hand side\r\n And on the right hand side they see the following in this order from top to bottom\r\n | elements |\r\n | exchange name |\r\n | exchange source pretty value displayed in brand colour |\r\n | exchange description |\r\n\r\n @motivating\r\n Scenario Outline: Users selection variable rewards can only select rewards they are eligible to exchange for\r\n Given a <type> exchange rule\r\n When a user views the reward exchange list\r\n And they progress to the Select page for this exchange\r\n Then they see a drop down with all the reward exchange selections\r\n When they click on the drop down\r\n But they are not eligible for all of the exchanges options <dueToReason>\r\n Then the ineligble options are disabled\r\n And under the source value is <text>\r\n Examples:\r\n | type | dueToReason | text |\r\n | STEPPED_FIXED_GLOBAL_REWARD | due to insufficent source value | {prettySourceValue} required |\r\n | VARIABLE_GLOBAL_REWARD | due to insufficent source value | {prettySourceValue} required |\r\n | VARIABLE_CREDIT_REWARD | due to insufficent source value | {prettySourceValue} required |\r\n | STEPPED_FIXED_GLOBAL_REWARD | W9 | US Tax Limit |\r\n | VARIABLE_GLOBAL_REWARD | W9 | US Tax Limit |\r\n | VARIABLE_CREDIT_REWARD | W9 | US Tax Limit |\r\n\r\n @motivating\r\n Scenario Outline: The Confirm page allows users to view their exchange before committing\r\n Given a <type> exchange rule\r\n When a user views the reward exchange list\r\n And they select the exchange\r\n And they progress to Confirm page\r\n Then they see a row with title \"Reward\"\r\n And it contains the exchange name\r\n And it contains the exchange image\r\n And they <maySee> a row with title \"Reward Amount\"\r\n And it <mayContain> <amountTitle>\r\n And they see a row with title \"Cost to Redeem\"\r\n And it contains the source reward pretty value in bolded text\r\n Examples:\r\n | type | maySee | mayContain | amountTitle |\r\n | FIXED_GLOBAL_REWARD | don't | doesn't contain | N/A |\r\n | VARIABLE_GLOBAL_REWARD | see | contains | the pretty destination value |\r\n | STEPPED_FIXED_GLOBAL_REWARD | see | contains | the pretty destination value |\r\n | VARIABLE_CREDIT_REWARD | see | contains | the pretty destination value |\r\n\r\n @motivating\r\n Scenario: An error banner is displayed if an error occurs during redemeption\r\n Given a user has selected a reward to exchange\r\n And is on the confirmation page\r\n When they click \"Redeem\"\r\n But an error occurs\r\n Then an error banner appears\r\n And it contains details about the error\r\n And the reward exchange is not completed\r\n\r\n @motivating\r\n Scenario: Confetti is displayed when a reward exchange succeeds\r\n Given a user has selected a reward to exchange\r\n And they are on the confirmation page\r\n When they click \"Redeem\"\r\n And the exchange is successful\r\n Then they see confetti centered on the success page\r\n And they see text describing what they exchanged for their new reward\r\n And they see a \"Done\" brand colour button\r\n When they click \"Done\"\r\n Then they see the Rewards page\r\n\r\n @motivating\r\n Scenario: Fuel tank codes are shown when a reward exchange succeeds\r\n Given a user has selected to exchange for a fuel tank reward\r\n When they complete the reward exchange\r\n And are on the success page\r\n Then they see a textbox with their fuel tank code\r\n And a clipboard icon\r\n When they click the clipboard icon\r\n Then their fuel tank code is copied to their clipboard\r\n\r\n @motivating\r\n Scenario Outline: Users can exchange for any type of reward\r\n Given a <type> reward exchange rule for a <reward>\r\n And a user who has enough source credit to exchange for the reward\r\n When they go through the exchange flow\r\n And exchange for their reward\r\n Then their credit is exchanged for the <reward>\r\n Examples:\r\n | type | reward |\r\n | FIXED_GLOBAL_REWARD | gift card |\r\n | FIXED_GLOBAL_REWARD | fuel tank code |\r\n | FIXED_GLOBAL_REWARD | discount |\r\n | FIXED_GLOBAL_REWARD | credit reward |\r\n | STEPPED_FIXED_GLOBAL_REWARD | gift card |\r\n | STEPPED_FIXED_GLOBAL_REWARD | discount |\r\n | STEPPED_FIXED_GLOBAL_REWARD | credit reward |\r\n | VARIABLE_GLOBAL_REWARD | gift card |\r\n | VARIABLE_GLOBAL_REWARD | discount |\r\n | VARIABLE_GLOBAL_REWARD | credit reward |\r\n | VARIABLE_CREDIT_REWARD | credit reward |";
10343
+ const scenario$k = "@author:derek\r\n@owner:derek\r\nFeature: Reward Exchange List\r\n\r\n The Reward Exchange List gives end users the power to exchange their rewards for other rewards.\r\n It populates a list from the reward exchange rules set up on a given tenant.\r\n\r\n Background:\r\n Given a tenant with reward exchange rules\r\n\r\n @motivating\r\n @ui\r\n Scenario: The empty state is shown if there are no visible exchanges\r\n Given a user with no visible exchanges\r\n When they view the reward exchange\r\n Then no exchange options are displayed\r\n And they see an image of a present\r\n And \"Redeem Rewards\" in bold\r\n And \"Use your points to redeem rewards once they become available\" below the bolded text\r\n And the pagination buttons are disabled\r\n\r\n @minutae\r\n @ui\r\n Scenario: A custom empty state can be provided\r\n Given a user with no visible exchanges\r\n And a custom empty state has been supplied in the \"empty\" slot\r\n When they view the reward exchange\r\n Then they see the custom empty state\r\n\r\n @motivating\r\n @ui\r\n Scenario: A Loading Skeleton is displayed when the reward exchange rules are loading\r\n Given a user\r\n When they load the reward exchange list\r\n Then they see a loading Skeleton\r\n And it has 8 skeleton cards\r\n When the reward exchange rules have loaded\r\n Then the skeleton is replaced with reward exchange options\r\n\r\n @motivating\r\n Scenario: An error banner appears when the reward exchange list fails to load\r\n Given a user trying to view the reward exchange list\r\n But it fails to load\r\n Then an error banner is displayed\r\n And it displays \"Unable to load reward exchange list. Please try again\"\r\n\r\n @motivating\r\n @ui\r\n Scenario: The exchange progress bar progresses through the exchange process\r\n Given a user who is eligible for the tenants reward exchange rules\r\n When they view the reward exchange list\r\n Then the process bar displays the following elements\r\n | elements |\r\n | Step 1 `Rewards` title in black |\r\n | Step 1 circle with green outline, white fill and number 1 in green |\r\n | Step 2 `Select` title in grey |\r\n | Step 2 circle with grey fill and number 2 in white |\r\n | Step 3 `Confirm` title in grey |\r\n | Step 3 circle with grey fill and number 3 in white |\r\n | lines between all steps are greyed out |\r\n When they continue to the selection page\r\n Then the progress bar displays the following elements\r\n | elements |\r\n | Step 1 `Rewards` title in black |\r\n | Step 1 circle with white checkmark and green fill |\r\n | Step 2 `Select` title in black |\r\n | Step 2 circle with green outline, white fill and number 2 in green |\r\n | Step 3 `Confirm` title in grey |\r\n | Step 3 circle with grey fill and number 3 in white |\r\n | Green line between step 1 and 2 |\r\n | Grey line between step 2 and 3 |\r\n When they continue to the confirmation page\r\n Then the progress bar displays the following elements\r\n | elements |\r\n | Step 1 `Rewards` title in black |\r\n | Step 1 circle with white checkmark and green fill |\r\n | Step 2 `Select` title in black |\r\n | Step 2 circle with white checkmark and green fill |\r\n | Step 3 `Confirm` title in black |\r\n | Step 3 circle with green outline, white fill and number 3 in green |\r\n | Green line between all steps |\r\n When they continue to the redemption page\r\n Then the progress bar displays the following elements\r\n | elements |\r\n | Step 1 `Rewards` title in black |\r\n | Step 1 circle with white checkmark and green fill |\r\n | Step 2 `Select` title in black |\r\n | Step 2 circle with white checkmark and green fill |\r\n | Step 3 `Confirm` title in black |\r\n | Step 3 circle with white checkmark and green fill |\r\n | Green line between all steps |\r\n\r\n @motivating\r\n Scenario: Users must choose a reward exchange option to continue to the selection page\r\n Given a user who is eligible for the tenants reward exchange rules\r\n When they view the reward exchange list\r\n Then the 'Continue' button is disabled\r\n When they select a reward exchange card\r\n Then the card is outlined in brand colour with a brand colour cirlcular check box icon in the top right\r\n And the continue button is no longer disabled\r\n When they click \"Continue\"\r\n Then they are brought to the selection page\r\n\r\n @motivating\r\n @ui\r\n Scenario: Reward exchange rule names and images are used in the reward exchange cards\r\n Given a tenant reward exchange rule\r\n And it has name \"My Visa Exchange Rule\"\r\n And it has an image\r\n When a user views the reward exchange list\r\n Then they see a exchange card with title \"My Visa Exchange Rule\"\r\n And the exchange image on the left hand side of the card\r\n\r\n @motivating\r\n Scenario Outline: Reward exchange source values are displayed on reward exchange cards\r\n Given a <type> reward exchange rule\r\n When a user views the reward exchange list\r\n Then they see <text> under the name on the exchange option cards\r\n And the pretty values are localized to a user locale\r\n Examples:\r\n | type | text |\r\n | FIXED_GLOBAL_REWARD | the exchange source pretty value |\r\n | STEPPED_FIXED_GLOBAL_REWARD | the exchange source min pretty value to the source max pretty value |\r\n | VARIABLE_GLOBAL_REWARD | the exchange source min pretty value to the source max pretty value |\r\n | VARIABLE_CREDIT_REWARD | the exchange source min pretty value to the source max pretty value |\r\n\r\n @motivating\r\n Scenario Outline: Reward exchange cards can display customized error messages\r\n Given a reward exchange rule\r\n And it has <availabilityPredicate>\r\n And the reward exchange list has prop \"not-available-error\" with <value>\r\n When the user views the reward exchange list\r\n Then the card for the reward exchange rule is disabled\r\n And <message> is displayed\r\n Examples:\r\n | availabilityPredicate | value | message |\r\n | 'champion' in user.segments ? \"NOT_CHAMPION\" : true | {unavailableReasonCode, select, NOT_CHAMPION {Sorry must be a champion!} other {unavailableReasonCode} } | Sorry must be a champion! |\r\n | user.customFields.purchaseCount < 10 ? \"MORE_PURCHASE\" : true | {unavailableReasonCode, select, MORE_PURCHASE {Complete 10 purchases to unlock} other {unavailableReasonCode} } | Complete 10 purchases to unlock |\r\n\r\n @motivating\r\n Scenario: Exchange options are disabled if they put a user over the W9 limit\r\n Given a user who is approaching their W9 limit\r\n And a reward exchange rule\r\n And its destination reward has a US taxable value that would put the user over their limit\r\n When they view the reward exchange list\r\n Then the reward exchange card is disabled\r\n And a \"US Tax Limit\" error message is displayed on to the right of a exclamation triangle icon\r\n And the text is orange\r\n And the icon is orange\r\n\r\n @motivating\r\n Scenario Outline: Exchange options are disabled if a users lacks enough credit to redeem\r\n Given a <type> reward exchange rule\r\n But the user lacks enough credit to exchange for it\r\n When they view the reward exchange list\r\n Then the reward exchange card is disabled\r\n And a <text> error message is displayed on to the right of a exclamation triangle icon\r\n And the text is orange\r\n And the icon is orange\r\n Examples:\r\n | type | text |\r\n | FIXED_GLOBAL_REWARD | {prettySourceValue} required |\r\n | STEPPED_FIXED_GLOBAL_REWARD | {prettySourceMinValue} required |\r\n | VARIABLE_GLOBAL_REWARD | {prettySourceMinValue} required |\r\n | VARIABLE_CREDIT_REWARD | {prettySourceMinValue} required |\r\n\r\n @motivating\r\n Scenario: Users can go back to the Rewards page from the Select page\r\n Given a user viewing the Select page\r\n Then they see a \"Cancel\" text button\r\n And a \"Continue to confirmation\" brand colour button in the bottom right corner\r\n When they click \"Cancel\"\r\n Then they return to the Rewards page\r\n\r\n @motivating\r\n Scenario: Users can go back to the Select Page from the Confirm page\r\n Given a user viewing the Confirm page\r\n Then they see a \"Back\" text button\r\n And a \"Redeem\" brand colour button in the bottom right corner\r\n When they click \"Back\"\r\n Then they return to the Select Page\r\n\r\n @motivating\r\n Scenario: Reward rules with visibility predicates that evaluates to false are not shown\r\n Given a tenant reward exchange rule with visibility predicates that evaluates to false\r\n When a user views the reward exchange list\r\n Then they do not see the card for that reward exchange rule\r\n\r\n @motivating\r\n Scenario Outline: Users can choose their reward option for variable rewards on the Select page\r\n Given a <type> exchange rule\r\n And it has the following fields\r\n | fields |\r\n | name |\r\n | description |\r\n | image |\r\n When a user views the reward exchange list\r\n And they progress to the Select page for this exchange\r\n Then they see the exchange rule image on the left hand side\r\n And on the right hand side they see the following in this order from top to bottom\r\n | elements |\r\n | exchange name |\r\n | exchange description |\r\n | select list with all exchange options using pretty values, destination reward above source reward |\r\n Examples:\r\n | type |\r\n | STEPPED_FIXED_GLOBAL_REWARD |\r\n | VARIABLE_GLOBAL_REWARD |\r\n | VARIABLE_CREDIT_REWARD |\r\n\r\n @motivating\r\n Scenario: Users who selected a fixed exchange rule see exchange information on the Select page\r\n Given a \"FIXED_GLOBAL_REWARD\" exchange rule\r\n And it has the following fields\r\n | fields |\r\n | name |\r\n | description |\r\n | image |\r\n When a user views the reward exchange list\r\n And they progress to the Select page for this exchange\r\n Then they see the exchange rule image on the left hand side\r\n And on the right hand side they see the following in this order from top to bottom\r\n | elements |\r\n | exchange name |\r\n | exchange source pretty value displayed in brand colour |\r\n | exchange description |\r\n\r\n @motivating\r\n Scenario Outline: Users selection variable rewards can only select rewards they are eligible to exchange for\r\n Given a <type> exchange rule\r\n When a user views the reward exchange list\r\n And they progress to the Select page for this exchange\r\n Then they see a drop down with all the reward exchange selections\r\n When they click on the drop down\r\n But they are not eligible for all of the exchanges options <dueToReason>\r\n Then the ineligble options are disabled\r\n And under the source value is <text>\r\n Examples:\r\n | type | dueToReason | text |\r\n | STEPPED_FIXED_GLOBAL_REWARD | due to insufficent source value | {prettySourceValue} required |\r\n | VARIABLE_GLOBAL_REWARD | due to insufficent source value | {prettySourceValue} required |\r\n | VARIABLE_CREDIT_REWARD | due to insufficent source value | {prettySourceValue} required |\r\n | STEPPED_FIXED_GLOBAL_REWARD | W9 | US Tax Limit |\r\n | VARIABLE_GLOBAL_REWARD | W9 | US Tax Limit |\r\n | VARIABLE_CREDIT_REWARD | W9 | US Tax Limit |\r\n\r\n @motivating\r\n Scenario Outline: The Confirm page allows users to view their exchange before committing\r\n Given a <type> exchange rule\r\n When a user views the reward exchange list\r\n And they select the exchange\r\n And they progress to Confirm page\r\n Then they see a row with title \"Reward\"\r\n And it contains the exchange name\r\n And it contains the exchange image\r\n And they <maySee> a row with title \"Reward Amount\"\r\n And it <mayContain> <amountTitle>\r\n And they see a row with title \"Cost to Redeem\"\r\n And it contains the source reward pretty value in bolded text\r\n Examples:\r\n | type | maySee | mayContain | amountTitle |\r\n | FIXED_GLOBAL_REWARD | don't | doesn't contain | N/A |\r\n | VARIABLE_GLOBAL_REWARD | see | contains | the pretty destination value |\r\n | STEPPED_FIXED_GLOBAL_REWARD | see | contains | the pretty destination value |\r\n | VARIABLE_CREDIT_REWARD | see | contains | the pretty destination value |\r\n\r\n @motivating\r\n Scenario: An error banner is displayed if an error occurs during redemeption\r\n Given a user has selected a reward to exchange\r\n And is on the confirmation page\r\n When they click \"Redeem\"\r\n But an error occurs\r\n Then an error banner appears\r\n And it contains details about the error\r\n And the reward exchange is not completed\r\n\r\n @motivating\r\n Scenario: Confetti is displayed when a reward exchange succeeds\r\n Given a user has selected a reward to exchange\r\n And they are on the confirmation page\r\n When they click \"Redeem\"\r\n And the exchange is successful\r\n Then they see confetti centered on the success page\r\n And they see text describing what they exchanged for their new reward\r\n And they see a \"Done\" brand colour button\r\n When they click \"Done\"\r\n Then they see the Rewards page\r\n\r\n @motivating\r\n Scenario: Fuel tank codes are shown when a reward exchange succeeds\r\n Given a user has selected to exchange for a fuel tank reward\r\n When they complete the reward exchange\r\n And are on the success page\r\n Then they see a textbox with their fuel tank code\r\n And a clipboard icon\r\n When they click the clipboard icon\r\n Then their fuel tank code is copied to their clipboard\r\n\r\n @motivating\r\n Scenario Outline: Users can exchange for any type of reward\r\n Given a <type> reward exchange rule for a <reward>\r\n And a user who has enough source credit to exchange for the reward\r\n When they go through the exchange flow\r\n And exchange for their reward\r\n Then their credit is exchanged for the <reward>\r\n Examples:\r\n | type | reward |\r\n | FIXED_GLOBAL_REWARD | gift card |\r\n | FIXED_GLOBAL_REWARD | fuel tank code |\r\n | FIXED_GLOBAL_REWARD | discount |\r\n | FIXED_GLOBAL_REWARD | credit reward |\r\n | STEPPED_FIXED_GLOBAL_REWARD | gift card |\r\n | STEPPED_FIXED_GLOBAL_REWARD | discount |\r\n | STEPPED_FIXED_GLOBAL_REWARD | credit reward |\r\n | VARIABLE_GLOBAL_REWARD | gift card |\r\n | VARIABLE_GLOBAL_REWARD | discount |\r\n | VARIABLE_GLOBAL_REWARD | credit reward |\r\n | VARIABLE_CREDIT_REWARD | credit reward |";
10336
10344
 
10337
10345
  const RewardExchangeList_stories = {
10338
10346
  title: "Components/Reward Exchange List",
10339
10347
  parameters: {
10340
- scenario: scenario$j,
10348
+ scenario: scenario$k,
10341
10349
  },
10342
10350
  };
10343
10351
  const StoryBase = (props) => () => {
@@ -10385,12 +10393,12 @@ const RewardExchangeList = /*#__PURE__*/Object.freeze({
10385
10393
  Empty: Empty$2
10386
10394
  });
10387
10395
 
10388
- const scenario$k = "@author:derek\r\n@owner:derek\r\nFeature: Program Explainer\r\n\r\n @motivating\r\n @ui\r\n Scenario Outline: The program explainer wraps program explainer steps and aligns them\r\n Given a program explainer component\r\n And it has <number> program explainer steps as components\r\n When a user views the program explainer\r\n Then they see <number> steps aligned horizontally\r\n And they have equal height/width\r\n And equal padding in between\r\n When they are viewed on a screen smaller than 500px\r\n Then the steps stack vertically with equal padding in between\r\n And they have equal width\r\n But height may vary\r\n Examples:\r\n | number |\r\n | 2 |\r\n | 3 |\r\n | 4 |\r\n\r\n @motivating\r\n @ui\r\n Scenario: The program explainer displays a section header\r\n Given a program explainer step with props\r\n | prop | value |\r\n | header | My Header |\r\n And it has program explainer steps as children\r\n When a user views the program explainer\r\n Then they see \"My Header\" centered above the explainer steps\r\n\r\n @motivating\r\n @ui\r\n Scenario: Colours are customizable\r\n Given a program explainer with props\r\n | prop | value |\r\n | text-color | purple |\r\n | background-color | grey |\r\n When a user views the program explainer\r\n Then the header is purple\r\n And the background between steos is grey\r\n";
10396
+ const scenario$l = "@author:derek\r\n@owner:derek\r\nFeature: Program Explainer\r\n\r\n @motivating\r\n @ui\r\n Scenario Outline: The program explainer wraps program explainer steps and aligns them\r\n Given a program explainer component\r\n And it has <number> program explainer steps as components\r\n When a user views the program explainer\r\n Then they see <number> steps aligned horizontally\r\n And they have equal height/width\r\n And equal padding in between\r\n When they are viewed on a screen smaller than 500px\r\n Then the steps stack vertically with equal padding in between\r\n And they have equal width\r\n But height may vary\r\n Examples:\r\n | number |\r\n | 2 |\r\n | 3 |\r\n | 4 |\r\n\r\n @motivating\r\n @ui\r\n Scenario: The program explainer displays a section header\r\n Given a program explainer step with props\r\n | prop | value |\r\n | header | My Header |\r\n And it has program explainer steps as children\r\n When a user views the program explainer\r\n Then they see \"My Header\" centered above the explainer steps\r\n\r\n @motivating\r\n @ui\r\n Scenario: Colours are customizable\r\n Given a program explainer with props\r\n | prop | value |\r\n | text-color | purple |\r\n | background-color | grey |\r\n When a user views the program explainer\r\n Then the header is purple\r\n And the background between steos is grey\r\n";
10389
10397
 
10390
10398
  const ProgramExplainer_stories = {
10391
10399
  title: "Components/Program Explainer",
10392
10400
  parameters: {
10393
- scenario: scenario$k,
10401
+ scenario: scenario$l,
10394
10402
  },
10395
10403
  };
10396
10404
  const OneStep = () => {
@@ -10446,12 +10454,12 @@ const ProgramExplainer = /*#__PURE__*/Object.freeze({
10446
10454
  ProgramExplainerGeneric: ProgramExplainerGeneric
10447
10455
  });
10448
10456
 
10449
- const scenario$l = "@author:derek\r\n@owner:derek\r\nFeature: Program Explainer Step\r\n\r\n @motivating\r\n @ui\r\n Scenario: The program explainer step displays a icon, header and description\r\n Given a program explainer step with props\r\n | prop | value |\r\n | header | My Header |\r\n | description | My program explainer description |\r\n | icon | person-plus-fill |\r\n When a user views the explainer step\r\n Then they see an person icon with a + in the top left hand corner\r\n And the icon is weight 300 brand colour\r\n And below they see \"My Header\" in large bold font\r\n And below they see \"My program explainer description\" in medium font\r\n And the step background colour is weight 50 brand colour\r\n\r\n @motivating\r\n @ui\r\n Scenario: The program explainer can display an image in place of an icon\r\n Given a program explainer\r\n And it has an \"image-url\" prop with a value of a valid url to an image\r\n When a user views the explainer step\r\n Then the image is displayed in place of an incon in the top left hand corner\r\n\r\n @motivating\r\n @ui\r\n Scenario: Colours are customizable\r\n Given a program explainer step with props\r\n | prop | value |\r\n | text-color | purple |\r\n | background-color | grey |\r\n When a user views the explainer step\r\n Then they see the step background is grey\r\n And the header text is purple\r\n And the description text is purple\r\n";
10457
+ const scenario$m = "@author:derek\r\n@owner:derek\r\nFeature: Program Explainer Step\r\n\r\n @motivating\r\n @ui\r\n Scenario: The program explainer step displays a icon, header and description\r\n Given a program explainer step with props\r\n | prop | value |\r\n | header | My Header |\r\n | description | My program explainer description |\r\n | icon | person-plus-fill |\r\n When a user views the explainer step\r\n Then they see an person icon with a + in the top left hand corner\r\n And the icon is weight 300 brand colour\r\n And below they see \"My Header\" in large bold font\r\n And below they see \"My program explainer description\" in medium font\r\n And the step background colour is weight 50 brand colour\r\n\r\n @motivating\r\n @ui\r\n Scenario: The program explainer can display an image in place of an icon\r\n Given a program explainer\r\n And it has an \"image-url\" prop with a value of a valid url to an image\r\n When a user views the explainer step\r\n Then the image is displayed in place of an incon in the top left hand corner\r\n\r\n @motivating\r\n @ui\r\n Scenario: Colours are customizable\r\n Given a program explainer step with props\r\n | prop | value |\r\n | text-color | purple |\r\n | background-color | grey |\r\n When a user views the explainer step\r\n Then they see the step background is grey\r\n And the header text is purple\r\n And the description text is purple\r\n";
10450
10458
 
10451
10459
  const ProgramExplainerStep_stories = {
10452
10460
  title: "Components/Program Explainer Step",
10453
10461
  parameters: {
10454
- scenario: scenario$l,
10462
+ scenario: scenario$m,
10455
10463
  },
10456
10464
  };
10457
10465
  const ProgramExplainerStep = () => {
@@ -10468,12 +10476,12 @@ const ProgramExplainerStep$1 = /*#__PURE__*/Object.freeze({
10468
10476
  ProgramExplainerStepCustom: ProgramExplainerStepCustom
10469
10477
  });
10470
10478
 
10471
- const scenario$m = "@author:derek\r\n@owner:logan\r\nFeature: Brand Configuration\r\n\r\n\t@motivating\r\n\tScenario: The brand components creates a colour pallet from a brand colour and applies it to children\r\n\t\tGiven a brand component with \"brand-color\" \"#4225c4\"\r\n\t\tAnd it is wrapping several mint components\r\n\t\tWhen a user views the children components\r\n\t\tThen the following css variables are set\r\n\t\t\t| variable | value |\r\n\t\t\t| --sl-color-primary-50 | hsla(251, 68%, 95%, 1) |\r\n\t\t\t| --sl-color-primary-100 | hsla(251, 68%, 86%, 1) |\r\n\t\t\t| --sl-color-primary-200 | hsla(251, 68%, 76%, 1) |\r\n\t\t\t| --sl-color-primary-300 | hsla(251, 68%, 66%, 1) |\r\n\t\t\t| --sl-color-primary-400 | hsla(251, 68%, 56%, 1) |\r\n\t\t\t| --sl-color-primary-500 | hsla(251, 68%, 46%, 1) |\r\n\t\t\t| --sl-color-primary-600 | hsla(251, 68%, 39%, 1) |\r\n\t\t\t| --sl-color-primary-700 | hsla(251, 68%, 32%, 1) |\r\n\t\t\t| --sl-color-primary-800 | hsla(251, 68%, 25%, 1) |\r\n\t\t\t| --sl-color-primary-900 | hsla(251, 68%, 18%, 1) |\r\n\t\t\t| --sl-color-primary-950 | hsla(251, 68%, 15%, 1) |\r\n\t\t\t| --sl-focus-ring-color-primary | var(--sl-color-primary-100) |\r\n\t\t\t| --sl-input-border-color-focus | var(--sl-color-primary-500) |\r\n\t\t\t| --sl-color-primary-hue | var(--sl-color-primary-500) |\r\n\t\tAnd they are applied to the children components\r\n\t\tBut they are not applied to any components outside of the brand component\r\n\t\tAnd they are not applied to any vanilla components\r\n\r\n\t@minutae\r\n\tScenario Outline: The brand colour can be hex, HSL or rgb\r\n\t\tGiven a brand component with \"brand-color\" <colour>\r\n\t\tAnd it is wrapping several mint components\r\n\t\tWhen a user views the children components\r\n\t\tThen the colour is used to create a brand palete\r\n\t\tAnd it is applied to the children components\r\n\t\tExamples:\r\n\t\t\t| colour |\r\n\t\t\t| #4225c4 |\r\n\t\t\t| rgb(66, 37, 196) |\r\n\t\t\t| hsl(251, 68%, 46%) |\r\n\t\t\t| hsla(251, 68%, 46%, 1) |\r\n\r\n\t@motivating\r\n\tScenario: The brand component can apply a brand font to children components\r\n\t\tGiven a brand component with \"brand-font\" \"Nunito Sans\"\r\n\t\tAnd it is wrapping several mint components\r\n\t\tWhen a user views the children components\r\n\t\tThen the following css variables are set\r\n\t\t\t| variable | value |\r\n\t\t\t| --sl-font-sans | \"Nunito Sans\", arial |\r\n\t\t\t| --sl-input-font-family | \"Nunito Sans\", arial |\r\n\t\t\t| --sl-tooltip-font-family | \"Nunito Sans\", arial |\r\n\t\t\t| font-family | \"Nunito Sans\", arial |\r\n\t\tAnd they are applied to the children components\r\n\t\tAnd the children component's text is \"Nunito Sans\"";
10479
+ const scenario$n = "@author:derek\r\n@owner:logan\r\nFeature: Brand Configuration\r\n\r\n\t@motivating\r\n\tScenario: The brand components creates a colour pallet from a brand colour and applies it to children\r\n\t\tGiven a brand component with \"brand-color\" \"#4225c4\"\r\n\t\tAnd it is wrapping several mint components\r\n\t\tWhen a user views the children components\r\n\t\tThen the following css variables are set\r\n\t\t\t| variable | value |\r\n\t\t\t| --sl-color-primary-50 | hsla(251, 68%, 95%, 1) |\r\n\t\t\t| --sl-color-primary-100 | hsla(251, 68%, 86%, 1) |\r\n\t\t\t| --sl-color-primary-200 | hsla(251, 68%, 76%, 1) |\r\n\t\t\t| --sl-color-primary-300 | hsla(251, 68%, 66%, 1) |\r\n\t\t\t| --sl-color-primary-400 | hsla(251, 68%, 56%, 1) |\r\n\t\t\t| --sl-color-primary-500 | hsla(251, 68%, 46%, 1) |\r\n\t\t\t| --sl-color-primary-600 | hsla(251, 68%, 39%, 1) |\r\n\t\t\t| --sl-color-primary-700 | hsla(251, 68%, 32%, 1) |\r\n\t\t\t| --sl-color-primary-800 | hsla(251, 68%, 25%, 1) |\r\n\t\t\t| --sl-color-primary-900 | hsla(251, 68%, 18%, 1) |\r\n\t\t\t| --sl-color-primary-950 | hsla(251, 68%, 15%, 1) |\r\n\t\t\t| --sl-focus-ring-color-primary | var(--sl-color-primary-100) |\r\n\t\t\t| --sl-input-border-color-focus | var(--sl-color-primary-500) |\r\n\t\t\t| --sl-color-primary-hue | var(--sl-color-primary-500) |\r\n\t\tAnd they are applied to the children components\r\n\t\tBut they are not applied to any components outside of the brand component\r\n\t\tAnd they are not applied to any vanilla components\r\n\r\n\t@minutae\r\n\tScenario Outline: The brand colour can be hex, HSL or rgb\r\n\t\tGiven a brand component with \"brand-color\" <colour>\r\n\t\tAnd it is wrapping several mint components\r\n\t\tWhen a user views the children components\r\n\t\tThen the colour is used to create a brand palete\r\n\t\tAnd it is applied to the children components\r\n\t\tExamples:\r\n\t\t\t| colour |\r\n\t\t\t| #4225c4 |\r\n\t\t\t| rgb(66, 37, 196) |\r\n\t\t\t| hsl(251, 68%, 46%) |\r\n\t\t\t| hsla(251, 68%, 46%, 1) |\r\n\r\n\t@motivating\r\n\tScenario: The brand component can apply a brand font to children components\r\n\t\tGiven a brand component with \"brand-font\" \"Nunito Sans\"\r\n\t\tAnd it is wrapping several mint components\r\n\t\tWhen a user views the children components\r\n\t\tThen the following css variables are set\r\n\t\t\t| variable | value |\r\n\t\t\t| --sl-font-sans | \"Nunito Sans\", arial |\r\n\t\t\t| --sl-input-font-family | \"Nunito Sans\", arial |\r\n\t\t\t| --sl-tooltip-font-family | \"Nunito Sans\", arial |\r\n\t\t\t| font-family | \"Nunito Sans\", arial |\r\n\t\tAnd they are applied to the children components\r\n\t\tAnd the children component's text is \"Nunito Sans\"";
10472
10480
 
10473
10481
  const SqmBrand_stories = {
10474
10482
  title: "Components/Brand",
10475
10483
  parameters: {
10476
- scenario: scenario$m,
10484
+ scenario: scenario$n,
10477
10485
  },
10478
10486
  };
10479
10487
  const SampleComponents = () => (index.h("div", { style: { padding: "10px", border: "5px solid #EEE" } },
@@ -10574,12 +10582,12 @@ const BrandStories = /*#__PURE__*/Object.freeze({
10574
10582
  Fonts: Fonts
10575
10583
  });
10576
10584
 
10577
- const scenario$n = "@author:kutay\r\n@owner:kutay\r\nFeature: Card Feed\r\n\r\n\tThe Card Feed component displays Task Card components in a grid layout.\r\n\r\n\tBackground: A user on the portal is viewing the widget\r\n\t\tGiven a user viewing the Card Feed component\r\n\r\n\t@motivating\r\n\tScenario: The Card Feed component displays Task Cards given as children slots\r\n\t\tGiven a Card Feed component\r\n\t\tAnd it is wrapping a number of task cards as children\r\n\t\tWhen the user views the Card Feed\r\n\t\tThen the task cards are displayed in a masonry layout\r\n\t\tWhen the card feed with grows or shrinks in width\r\n\t\tThen the number of columns adjust to the given width\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario Outline: The Card Feed component can have a maximum width\r\n\t\tGiven a Card Feed component\r\n\t\tAnd it is wrapping a number of task cards as children\r\n\t\tAnd has prop \"width\" has a provided <value>\r\n\t\tThen the task cards are displayed in a masonry layout\r\n\t\tWhen the card feed with grows or shrinks in width\r\n\t\tThen the number of columns adjust to the given width\r\n\t\tAnd the task cards do not exceed <width>\r\n\t\tExamples:\r\n\t\t\t| value | width |\r\n\t\t\t| | 347px |\r\n\t\t\t| 200 | 200px |\r\n\t\t\t| 400 | 400px |\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario Outline: The Card Feed component gap between task cards can be customized\r\n\t\tGiven a Card Feed component\r\n\t\tAnd it is wrapping a number of task cards as children\r\n\t\tAnd has prop \"gap\" has a provided <value>\r\n\t\tThen the task cards are displayed in a masonry layout\r\n\t\tAnd the gap between the columns is the <gap>\r\n\t\tExamples:\r\n\t\t\t| value | gap |\r\n\t\t\t| | 24px |\r\n\t\t\t| 20 | 20px |\r\n\t\t\t| 50 | 50px |";
10585
+ const scenario$o = "@author:kutay\r\n@owner:kutay\r\nFeature: Card Feed\r\n\r\n\tThe Card Feed component displays Task Card components in a grid layout.\r\n\r\n\tBackground: A user on the portal is viewing the widget\r\n\t\tGiven a user viewing the Card Feed component\r\n\r\n\t@motivating\r\n\tScenario: The Card Feed component displays Task Cards given as children slots\r\n\t\tGiven a Card Feed component\r\n\t\tAnd it is wrapping a number of task cards as children\r\n\t\tWhen the user views the Card Feed\r\n\t\tThen the task cards are displayed in a masonry layout\r\n\t\tWhen the card feed with grows or shrinks in width\r\n\t\tThen the number of columns adjust to the given width\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario Outline: The Card Feed component can have a maximum width\r\n\t\tGiven a Card Feed component\r\n\t\tAnd it is wrapping a number of task cards as children\r\n\t\tAnd has prop \"width\" has a provided <value>\r\n\t\tThen the task cards are displayed in a masonry layout\r\n\t\tWhen the card feed with grows or shrinks in width\r\n\t\tThen the number of columns adjust to the given width\r\n\t\tAnd the task cards do not exceed <width>\r\n\t\tExamples:\r\n\t\t\t| value | width |\r\n\t\t\t| | 347px |\r\n\t\t\t| 200 | 200px |\r\n\t\t\t| 400 | 400px |\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario Outline: The Card Feed component gap between task cards can be customized\r\n\t\tGiven a Card Feed component\r\n\t\tAnd it is wrapping a number of task cards as children\r\n\t\tAnd has prop \"gap\" has a provided <value>\r\n\t\tThen the task cards are displayed in a masonry layout\r\n\t\tAnd the gap between the columns is the <gap>\r\n\t\tExamples:\r\n\t\t\t| value | gap |\r\n\t\t\t| | 24px |\r\n\t\t\t| 20 | 20px |\r\n\t\t\t| 50 | 50px |";
10578
10586
 
10579
10587
  const CardFeed_stories = {
10580
10588
  title: "Components/Card Feed",
10581
10589
  parameters: {
10582
- scenario: scenario$n,
10590
+ scenario: scenario$o,
10583
10591
  },
10584
10592
  };
10585
10593
  const oneAction$1 = {
@@ -10816,12 +10824,12 @@ const CardFeed = /*#__PURE__*/Object.freeze({
10816
10824
  CardFeedGeneric: CardFeedGeneric
10817
10825
  });
10818
10826
 
10819
- const scenario$o = "@author:kutay\r\n@owner:noah\r\nFeature: Portal Container\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario: Horizontal content overflows, but does not stretch\r\n\t\tGiven there are two element in the container\r\n\t\tAnd the first is small\r\n\t\tAnd the second would stretch the container wider than it's parent\r\n\t\tThen the second one is clipped\r\n\t\tAnd the first one doesn't stretch\r\n\r\n\t@landmine\r\n\t@ui\r\n\tScenario: `max-width` is required for displaying as a row\r\n\t\tGiven I have `direction` to \"row\"\r\n\t\tAnd I have not set a `max-width`\r\n\t\tThen it displays as a column\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario Outline: Content padding can be customized\r\n\t\tGiven prop \"padding\" has <value>\r\n\t\tThen <padding> is applied to content\r\n\r\n\t\tExamples:\r\n\t\t\t| value | padding |\r\n\t\t\t| none | no padding |\r\n\t\t\t| xxx-small | xxx-small |\r\n\t\t\t| xx-small | xx-small |\r\n\t\t\t| x-small | x-small |\r\n\t\t\t| small | small |\r\n\t\t\t| medium | medium |\r\n\t\t\t| large | large |\r\n\t\t\t| x-large | x-large |\r\n\t\t\t| xx-large | xx-large |\r\n\t\t\t| xxx-large | xxx-large |\r\n\t\t\t| xxxx-large | xxxx-large |\r\n\t\t\t| N/A | no padding |\r\n\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario Outline: Gap between content elements can be customized\r\n\t\tGiven prop \"gap\" has <value>\r\n\t\tThen <gap> is applied to elements between content\r\n\r\n\t\tExamples:\r\n\t\t\t| value | gap |\r\n\t\t\t| none | no padding |\r\n\t\t\t| xxx-small | xxx-small |\r\n\t\t\t| xx-small | xx-small |\r\n\t\t\t| x-small | x-small |\r\n\t\t\t| small | small |\r\n\t\t\t| medium | medium |\r\n\t\t\t| large | large |\r\n\t\t\t| x-large | x-large |\r\n\t\t\t| xx-large | xx-large |\r\n\t\t\t| xxx-large | xxx-large |\r\n\t\t\t| xxxx-large | xxxx-large |\r\n\t\t\t| N/A | no padding |\r\n\r\n\t@minutae\r\n\t@ui\r\n\tScenario: Content can be center aligned in horizontal view\r\n\t\tGiven I have supplied the prop \"center\"\r\n\t\tThen the content is center aligned\r\n\r\n\t@minutae\r\n\t@ui\r\n\tScenario: Content in the last row can span full width with display in horizontal view\r\n\t\tGiven I have `display` to \"flex\"\r\n\t\tThen the content is full width on the last row\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario Outline: Content can be aligned along the x-axis \r\n\t\tGiven prop \"justify-content\" has <value>\r\n\t\tThen content within the container is aligned <alignment>\r\n\r\n\t\tExamples:\r\n\t\t\t| value | alignment |\r\n\t\t\t| none | no alignment |\r\n\t\t\t| start | to the start |\r\n\t\t\t| center | to the center |\r\n\t\t\t| end | to the end |\r\n\t\t\t| space-between | with space between |\r\n\t\t\t| space-around | with space around |\r\n\t\t\t| space-evenly | with space evenly |";
10827
+ const scenario$p = "@author:kutay\r\n@owner:noah\r\nFeature: Portal Container\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario: Horizontal content overflows, but does not stretch\r\n\t\tGiven there are two element in the container\r\n\t\tAnd the first is small\r\n\t\tAnd the second would stretch the container wider than it's parent\r\n\t\tThen the second one is clipped\r\n\t\tAnd the first one doesn't stretch\r\n\r\n\t@landmine\r\n\t@ui\r\n\tScenario: `max-width` is required for displaying as a row\r\n\t\tGiven I have `direction` to \"row\"\r\n\t\tAnd I have not set a `max-width`\r\n\t\tThen it displays as a column\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario Outline: Content padding can be customized\r\n\t\tGiven prop \"padding\" has <value>\r\n\t\tThen <padding> is applied to content\r\n\r\n\t\tExamples:\r\n\t\t\t| value | padding |\r\n\t\t\t| none | no padding |\r\n\t\t\t| xxx-small | xxx-small |\r\n\t\t\t| xx-small | xx-small |\r\n\t\t\t| x-small | x-small |\r\n\t\t\t| small | small |\r\n\t\t\t| medium | medium |\r\n\t\t\t| large | large |\r\n\t\t\t| x-large | x-large |\r\n\t\t\t| xx-large | xx-large |\r\n\t\t\t| xxx-large | xxx-large |\r\n\t\t\t| xxxx-large | xxxx-large |\r\n\t\t\t| N/A | no padding |\r\n\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario Outline: Gap between content elements can be customized\r\n\t\tGiven prop \"gap\" has <value>\r\n\t\tThen <gap> is applied to elements between content\r\n\r\n\t\tExamples:\r\n\t\t\t| value | gap |\r\n\t\t\t| none | no padding |\r\n\t\t\t| xxx-small | xxx-small |\r\n\t\t\t| xx-small | xx-small |\r\n\t\t\t| x-small | x-small |\r\n\t\t\t| small | small |\r\n\t\t\t| medium | medium |\r\n\t\t\t| large | large |\r\n\t\t\t| x-large | x-large |\r\n\t\t\t| xx-large | xx-large |\r\n\t\t\t| xxx-large | xxx-large |\r\n\t\t\t| xxxx-large | xxxx-large |\r\n\t\t\t| N/A | no padding |\r\n\r\n\t@minutae\r\n\t@ui\r\n\tScenario: Content can be center aligned in horizontal view\r\n\t\tGiven I have supplied the prop \"center\"\r\n\t\tThen the content is center aligned\r\n\r\n\t@minutae\r\n\t@ui\r\n\tScenario: Content in the last row can span full width with display in horizontal view\r\n\t\tGiven I have `display` to \"flex\"\r\n\t\tThen the content is full width on the last row\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario Outline: Content can be aligned along the x-axis \r\n\t\tGiven prop \"justify-content\" has <value>\r\n\t\tThen content within the container is aligned <alignment>\r\n\r\n\t\tExamples:\r\n\t\t\t| value | alignment |\r\n\t\t\t| none | no alignment |\r\n\t\t\t| start | to the start |\r\n\t\t\t| center | to the center |\r\n\t\t\t| end | to the end |\r\n\t\t\t| space-between | with space between |\r\n\t\t\t| space-around | with space around |\r\n\t\t\t| space-evenly | with space evenly |";
10820
10828
 
10821
10829
  const PortalContainer_stories = {
10822
10830
  title: "Components/Portal Container",
10823
10831
  parameters: {
10824
- scenario: scenario$o,
10832
+ scenario: scenario$p,
10825
10833
  },
10826
10834
  };
10827
10835
  const TooWideColumn = () => (index.h("div", { style: { width: "200px", border: "1px dashed grey" } },
@@ -10963,11 +10971,11 @@ const scenario3 = "@author:derek\r\n@owner:derek\r\nFeature: Reward Table Status
10963
10971
 
10964
10972
  const scenario4 = "@author:derek\r\n@owner:derek\r\nFeature: Reward Table Source Column\r\n\r\n Shows the source of each reward\r\n\r\n @motivating\r\n @ui\r\n Scenario Outline: The title of the source column is configurable\r\n Given the \"column-title\" prop is set to <value>\r\n Then the source column is shown with <columnTitle>\r\n Examples:\r\n | value | columnTitle |\r\n | Source | |\r\n | My column title | My column title |\r\n\r\n @motivating\r\n @ui\r\n Scenario: The source column displays manual if the reward is caused by a manual action\r\n Given a user with a \"MANUAL\" reward\r\n When they view the rewards table\r\n Then the source of their reward is displayed as \"Manual\"\r\n\r\n @motivating\r\n @ui\r\n Scenario: The source column displays the program name if the reward is caused automatically by a program\r\n Given a user with a \"AUTOMATED\" program reward\r\n And the program has name \"Loyalty Program\"\r\n When they view the rewards table\r\n Then the source of their reward is displayed as \"Loyalty Program\"\r\n\r\n @motivating\r\n @ui\r\n Scenario Outline: The source column displays customizable reward exchange text with amount if the reward is caused by reward exchange\r\n Given the \"reward-exchange-text\" prop is <propValue>\r\n And a user with a \"MANUAL\" reward\r\n But it was created by a reward exchange\r\n Then they view the rewards table\r\n Then the source displays <exchangeText>\r\n And under it displays the following\r\n | prettyRedeemedCredit → prettyValue |\r\n Examples:\r\n | propValue | exchangeText |\r\n | | Reward Exchange |\r\n | Exchanged | Exchanged |\r\n\r\n @motivating\r\n @ui\r\n Scenario Outline: The source column displays customizable referral information if the reward is from a referral\r\n Given the \"reward-source-text\" prop is <propValue>\r\n And a user with a referral reward\r\n And that reward has <rewardSource>\r\n When they view the rewards table\r\n Then then source displays <referralText>\r\n And under it displays the full name of the <referralUser>\r\n Examples:\r\n | propValue | rewardSource | referralText | referralUser |\r\n | | REFERRED | Referred by | referrer user |\r\n | | FRIEND_SIGNUP | Referral to | referred user |\r\n | {rewardSource, select, FRIEND_SIGNUP {You Referred} REFERRED {Referred you} other {}} | REFERRED | Referred you | referrer user |\r\n | {rewardSource, select, FRIEND_SIGNUP {You Referred} REFERRED {Referred you} other {}} | FRIEND_SIGNUP | You Referred | referred user |\r\n\r\n @motivating\r\n @ui\r\n Scenario Outline: The source column displays the existing name for a referral if either the first name or last name does not exist\r\n Given a user with a referral reward\r\n And referral user exists\r\n And referral user has <name>\r\n But referral user has no <otherName>\r\n When they view the rewards table\r\n Then referral user's name is displayed as <name>\r\n Examples:\r\n | name | otherName |\r\n | first.name | last.name |\r\n | last.name | first.name |\r\n\r\n @motivating\r\n @ui\r\n Scenario Outline: The source column displays referral as \"Anonymous User\" if the referral user has no names\r\n Given a user with a referral reward\r\n And that reward has <rewardSource>\r\n And the <referralUser> has no first name\r\n And the <referralUser> has no last name\r\n When they view the rewards table\r\n Then then source displays <sourceText>\r\n And under it displays \"Anonymous User\"\r\n Examples:\r\n | rewardSource | referralUser | sourceText |\r\n | FRIEND_SIGNUP | referrer | Referral to |\r\n | REFERRED | referred user | Referred by |\r\n\r\n @motivating\r\n @ui\r\n Scenario Outline: The source column displays referral as \"Deleted User\" if the referral user is deleted in the system\r\n Given a user with a referral reward\r\n And that reward has <rewardSource>\r\n But <referral> user was deleted\r\n When they view the rewards table\r\n Then the source displays <sourceText>\r\n And under it displays \"Deleted User\"\r\n Examples:\r\n | rewardSource | referral | sourceText |\r\n | \"FRIEND_SIGNUP\" | referrer | Referral to |\r\n | \"REFERRED\" | referred | Referred by |\r\n\r\n @minutae\r\n @ui\r\n Scenario Outline: Name fallbacks for referral users without names are customizable\r\n Given <prop> with <value>\r\n And a user with a referral reward\r\n But the referral user <hadAction>\r\n When they view the rewards table\r\n Then the source displays <value> as the referral user\r\n Examples:\r\n | prop | value | hadAction |\r\n | deleted-user | Former Customer | was deleted |\r\n | anonymous-user | Nameless User | had first and last name deleted |\r\n\r\n @motivating\r\n Scenario Outline: Source text can be customized\r\n Given the \"reward-source-text\" prop is \"{rewardSource, select, MANUAL {Support} AUTOMATED {Loyalty Program} other {}}\"\r\n And a user with a <rewardSource> reward\r\n When they view the rewards table\r\n Then the source is <sourceText>\r\n Examples:\r\n | rewardSource | sourceText |\r\n | MANUAL | Support |\r\n | AUTOMATED | Loyalty Program |";
10965
10973
 
10966
- const scenario$p = scenario1 + scenario2 + scenario3 + scenario4;
10974
+ const scenario$q = scenario1 + scenario2 + scenario3 + scenario4;
10967
10975
  const RewardsTableCell_stories = {
10968
10976
  title: "Components/Rewards Table Cell",
10969
10977
  parameters: {
10970
- scenario: scenario$p,
10978
+ scenario: scenario$q,
10971
10979
  },
10972
10980
  };
10973
10981
  const rewardsData$1 = {
@@ -11265,12 +11273,12 @@ const RewardsTableCell = /*#__PURE__*/Object.freeze({
11265
11273
  EmptyCell: EmptyCell$2
11266
11274
  });
11267
11275
 
11268
- const scenario$q = "@owner:sam\r\n@author:sam\r\nFeature: Rewards Table\r\n\r\n Shows a list of rewards as a table\r\n\r\n @motivating\r\n @ui\r\n Scenario: The empty state is shown if there are no rewards\r\n Given a user with rewards\r\n When they view the reward table\r\n Then no rewards are displayed\r\n And they see an image with a user icon\r\n And \"View your rewards\" in bold\r\n And \"See all the rewards you have earned from referring friends and completing tasks\" below the bolded text\r\n And the pagination buttons are disabled\r\n\r\n @minutae\r\n @ui\r\n Scenario: A custom empty state can be provided\r\n Given a user with no rewards\r\n And a custom empty state has been supplied in the \"empty\" slot\r\n When they view the reward table\r\n Then they see the custom empty state\r\n\r\n @minutae\r\n @ui\r\n Scenario: The loading state is shown while rewards are loading\r\n Given the table is loading\r\n Then the loading state is shown in the table\r\n And a custom loading state can be supplied in the \"loading\" slot\r\n And the pagination buttons are disabled\r\n\r\n @motivating\r\n @ui\r\n Scenario Outline: The table becomes paginated when the number of rewards exceeds the per page limit\r\n Given the user has <number of rewards>\r\n And the table is configured to show <page limit> rewards per page\r\n Then the table will have <number of pages> page(s)\r\n And pagination buttons will allow users to navigate between pages\r\n And the pagination button to go to the next page is disabled on the last page of rewards\r\n And the pagination button to go to the previous page is disabled on the first page of rewards\r\n Examples:\r\n | number of rewards | page limit | number of pages |\r\n | 0 | 4 | 1 |\r\n | 1 | 4 | 1 |\r\n | 3 | 4 | 1 |\r\n | 5 | 4 | 2 |\r\n | 42 | 4 | 11 |\r\n\r\n @motivating\r\n @ui\r\n Scenario: The table converts to a card view on tablet and mobile window sizes\r\n Given a user with rewards\r\n When they view the table\r\n And their window size is smaller than \"799px\"\r\n Then rewards are displayed as cards\r\n And they are in two columns\r\n When their window size is smaller than \"599px\"\r\n Then the rewards are displayed as cards in a singular column\r\n\r\n @motivating\r\n @ui\r\n Scenario: Table and Mobile beakpoints can be configured\r\n Given the reward table has been configured with the following props\r\n | prop | value |\r\n | smBreakpoint | 599 |\r\n | mdBreakpoint | 799 |\r\n And a user with rewards\r\n When they view the table\r\n And their window size is smaller than \"799px\"\r\n Then rewards are displayed as cards\r\n And they are in two columns\r\n When their window size is smaller than \"599px\"\r\n Then the rewards are displayed as cards in a singular column\r\n\r\n @motivating\r\n @ui\r\n Scenario Outline: By default the first column heading is hidden in mobile\r\n Given a reward table with 4 columns\r\n And prop \"hidden-columns\" with <hideColumnValue>\r\n And a user with rewards\r\n When they view the reward table\r\n And their window size is below the tablet breakpoint\r\n Then reward cards are displayed\r\n And the titles of <columnsArehidden> within the card\r\n Examples:\r\n | hideColumnValue | columnsArehidden |\r\n | | the first column |\r\n | 0,1,2 | the first, second and third columns |\r\n | 3 | the fourth column |\r\n\r\n @motivating\r\n Scenario: Only rewards which occured in the program specific by \"program-id\" are shown\r\n Given the table is configured with \"program-id\"\r\n Then only rewards from the program with \"program-id\" are shown\r\n\r\n @landmine\r\n Scenario: When a `classic` program Id is set then any reward without a programId is shown\r\n There is no easy way for the backend to filter for \"classic\" programs,\r\n thus we are filtering for rewards without programId's.\r\n\r\n Given the \"program-id\" of the table is set to \"classic\"\r\n Then rewards from classic programs are shown\r\n And manual rewards are shown\r\n\r\n @minutae\r\n @ui\r\n Scenario: Column heading can be hidden\r\n Given the table is configured with \"show-labels\" set to false\r\n Then the table is displayed without column headings";
11276
+ const scenario$r = "@owner:sam\r\n@author:sam\r\nFeature: Rewards Table\r\n\r\n Shows a list of rewards as a table\r\n\r\n @motivating\r\n @ui\r\n Scenario: The empty state is shown if there are no rewards\r\n Given a user with rewards\r\n When they view the reward table\r\n Then no rewards are displayed\r\n And they see an image with a user icon\r\n And \"View your rewards\" in bold\r\n And \"See all the rewards you have earned from referring friends and completing tasks\" below the bolded text\r\n And the pagination buttons are disabled\r\n\r\n @minutae\r\n @ui\r\n Scenario: A custom empty state can be provided\r\n Given a user with no rewards\r\n And a custom empty state has been supplied in the \"empty\" slot\r\n When they view the reward table\r\n Then they see the custom empty state\r\n\r\n @minutae\r\n @ui\r\n Scenario: The loading state is shown while rewards are loading\r\n Given the table is loading\r\n Then the loading state is shown in the table\r\n And a custom loading state can be supplied in the \"loading\" slot\r\n And the pagination buttons are disabled\r\n\r\n @motivating\r\n @ui\r\n Scenario Outline: The table becomes paginated when the number of rewards exceeds the per page limit\r\n Given the user has <number of rewards>\r\n And the table is configured to show <page limit> rewards per page\r\n Then the table will have <number of pages> page(s)\r\n And pagination buttons will allow users to navigate between pages\r\n And the pagination button to go to the next page is disabled on the last page of rewards\r\n And the pagination button to go to the previous page is disabled on the first page of rewards\r\n Examples:\r\n | number of rewards | page limit | number of pages |\r\n | 0 | 4 | 1 |\r\n | 1 | 4 | 1 |\r\n | 3 | 4 | 1 |\r\n | 5 | 4 | 2 |\r\n | 42 | 4 | 11 |\r\n\r\n @motivating\r\n @ui\r\n Scenario: The table converts to a card view on tablet and mobile window sizes\r\n Given a user with rewards\r\n When they view the table\r\n And their window size is smaller than \"799px\"\r\n Then rewards are displayed as cards\r\n And they are in two columns\r\n When their window size is smaller than \"599px\"\r\n Then the rewards are displayed as cards in a singular column\r\n\r\n @motivating\r\n @ui\r\n Scenario: Table and Mobile beakpoints can be configured\r\n Given the reward table has been configured with the following props\r\n | prop | value |\r\n | smBreakpoint | 599 |\r\n | mdBreakpoint | 799 |\r\n And a user with rewards\r\n When they view the table\r\n And their window size is smaller than \"799px\"\r\n Then rewards are displayed as cards\r\n And they are in two columns\r\n When their window size is smaller than \"599px\"\r\n Then the rewards are displayed as cards in a singular column\r\n\r\n @motivating\r\n @ui\r\n Scenario Outline: By default the first column heading is hidden in mobile\r\n Given a reward table with 4 columns\r\n And prop \"hidden-columns\" with <hideColumnValue>\r\n And a user with rewards\r\n When they view the reward table\r\n And their window size is below the tablet breakpoint\r\n Then reward cards are displayed\r\n And the titles of <columnsArehidden> within the card\r\n Examples:\r\n | hideColumnValue | columnsArehidden |\r\n | | the first column |\r\n | 0,1,2 | the first, second and third columns |\r\n | 3 | the fourth column |\r\n\r\n @motivating\r\n Scenario: Only rewards which occured in the program specific by \"program-id\" are shown\r\n Given the table is configured with \"program-id\"\r\n Then only rewards from the program with \"program-id\" are shown\r\n\r\n @landmine\r\n Scenario: When a `classic` program Id is set then any reward without a programId is shown\r\n There is no easy way for the backend to filter for \"classic\" programs,\r\n thus we are filtering for rewards without programId's.\r\n\r\n Given the \"program-id\" of the table is set to \"classic\"\r\n Then rewards from classic programs are shown\r\n And manual rewards are shown\r\n\r\n @minutae\r\n @ui\r\n Scenario: Column heading can be hidden\r\n Given the table is configured with \"show-labels\" set to false\r\n Then the table is displayed without column headings";
11269
11277
 
11270
11278
  const RewardsTable_stories = {
11271
11279
  title: "Components/Rewards Table",
11272
11280
  parameters: {
11273
- scenario: scenario$q,
11281
+ scenario: scenario$r,
11274
11282
  },
11275
11283
  };
11276
11284
  const loadingElement$1 = (index.h("div", { slot: "loading", style: { display: "contents" } },
@@ -11514,12 +11522,12 @@ const UseReferralTable = /*#__PURE__*/Object.freeze({
11514
11522
  ReferralTableFr: ReferralTableFr
11515
11523
  });
11516
11524
 
11517
- const scenario$r = "@author:kutay\r\n@owner:kutay\r\nFeature: Hero Image\r\n\r\n\tThe Hero Image component displays media images with a header, description and button using an overlay or a double column layout to offer an attrative widget page.\r\n\r\n\tBackground: A user on the portal is viewing the widget\r\n\t\tGiven a user viewing the Hero Image component\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario: Overlay image displays header, description, and button with brand color\r\n\t\tGiven a Hero Image component configured with the following props\r\n\t\t\t| prop | value |\r\n\t\t\t| image-url | \"https://res.cloudinary.com/saasquatch/image/upload/v1644000278/squatch-assets/bTwu1Um.png\" |\r\n\t\t\t| header | \"Klip Rewards\" |\r\n\t\t\t| description | \"Refer friends or complete tasks while using Klip to earn rewards\" |\r\n\t\t\t| button-text | \"Start earning\" |\r\n\t\t\t| layout | \"overlay\" |\r\n\t\tThen they see their image\r\n\t\tAnd the image has no padding\r\n\t\tAnd it has a brand colour overlay\r\n\t\tAnd \"Klip Rewards\" is displayed over top of the image in xxx-large font\r\n\t\tAnd below \"Refer friends or complete tasks while using Klip to earn rewards\" is displayed over top of the image in x-large font\r\n\t\tAnd below they see a brand coloured button with text \"Start earning\"\r\n\t\tAnd the text section has xxx-large padding\r\n\t\tWhen the component is scaled down to 599px\r\n\t\tThen the image is scaled to fit content\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario Outline: Overlay image crop can be aligned left, center or right\r\n\t\tGiven a Hero Image component configured with the following props\r\n\t\t\t| prop | value |\r\n\t\t\t| image-url | \"https://res.cloudinary.com/saasquatch/image/upload/v1644000278/squatch-assets/bTwu1Um.png\" |\r\n\t\t\t| header | \"Klip Rewards\" |\r\n\t\t\t| description | \"Refer friends or complete tasks while using Klip to earn rewards\" |\r\n\t\t\t| button-text | \"Start earning\" |\r\n\t\t\t| layout | \"overlay\" |\r\n\t\t\t| image-pos | <value> |\r\n\t\tThen the image with overlay is displayed\r\n\t\tWhen the component is scaled down to 599px\r\n\t\tThen the image is <alignment> to fit content\r\n\t\tExamples:\r\n\t\t\t| value | alignment |\r\n\t\t\t| left | left aligned |\r\n\t\t\t| center | centered |\r\n\t\t\t| right | right aligned |\r\n\t\t\t| N/A | centered |\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario Outline: Overlay padding is configurable\r\n\t\tGiven a Hero Image component configured with the following props\r\n\t\t\t| prop | value |\r\n\t\t\t| image-url | \"https://res.cloudinary.com/saasquatch/image/upload/v1644000278/squatch-assets/bTwu1Um.png\" |\r\n\t\t\t| header | \"Klip Rewards\" |\r\n\t\t\t| description | \"Refer friends or complete tasks while using Klip to earn rewards\" |\r\n\t\t\t| button-text | \"Start earning\" |\r\n\t\t\t| layout | \"overlay\" |\r\n\t\t\t| padding-text | <value> |\r\n\t\tThen the image with overlay is displayed\r\n\t\tAnd <padding> is applied around header, description and button\r\n\t\tExamples:\r\n\t\t\t| value | padding |\r\n\t\t\t| none | no padding |\r\n\t\t\t| xxx-small | xxx-small |\r\n\t\t\t| xx-small | xx-small |\r\n\t\t\t| x-small | x-small |\r\n\t\t\t| small | small |\r\n\t\t\t| medium | medium |\r\n\t\t\t| large | large |\r\n\t\t\t| x-large | x-large |\r\n\t\t\t| xx-large | xx-large |\r\n\t\t\t| xxx-large | xxx-large |\r\n\t\t\t| xxxx-large | xxxx-large |\r\n\t\t\t| N/A | no padding |\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario Outline: Overlay color and background is configurable\r\n\t\tGiven a Hero Image component configured with the following props\r\n\t\t\t| prop | value |\r\n\t\t\t| image-url | \"https://res.cloudinary.com/saasquatch/image/upload/v1644000278/squatch-assets/bTwu1Um.png\" |\r\n\t\t\t| header | \"Klip Rewards\" |\r\n\t\t\t| description | \"Refer friends or complete tasks while using Klip to earn rewards\" |\r\n\t\t\t| button-text | \"Start earning\" |\r\n\t\t\t| layout | \"overlay\" |\r\n\t\t\t| text-color | <textColor> |\r\n\t\t\t| overlay-color | <overlayColor> |\r\n\t\t\t| overlay-opacity | <overlayOpacity> |\r\n\t\tThen the image with overlay is displayed\r\n\t\tAnd the overlay is <overlayColor>\r\n\t\tAnd the overlay has <overlayOpacity>\r\n\t\tAnd the text is <textColor>\r\n\t\tExamples:\r\n\t\t\t| textColor | overlayColor | overlayOpacity |\r\n\t\t\t| #fffc4b | #ff7f7f | 0.9 |\r\n\t\t\t| #1d0314 | #4baa1a | 0 |\r\n\t\t\t| #211a27 | #aa481a | 1 |\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario: Two-column layout displays an image on one side and on the other side a header, description, and button\r\n\t\tGiven a Hero Image component configured with the following props\r\n\t\t\t| prop | value |\r\n\t\t\t| image-url | \"https://res.cloudinary.com/saasquatch/image/upload/v1644000275/squatch-assets/yr6ER3R.png\" |\r\n\t\t\t| header | \"Klip Rewards\" |\r\n\t\t\t| description | \"Refer friends or complete tasks while using Klip to earn rewards\" |\r\n\t\t\t| button-text | \"Start earning\" |\r\n\t\t\t| layout | \"columns\" |\r\n\t\tThen the image is displayed on the left\r\n\t\tAnd the following elements are displayed on the right\r\n\t\t\t| elements |\r\n\t\t\t| header |\r\n\t\t\t| description |\r\n\t\t\t| button |\r\n\t\tWhen the component is scaled down to 599px\r\n\t\tThen the two-column layout switches to a row layout\r\n\t\tAnd the image is displayed on top\r\n\t\tAnd the content is displayed below\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario Outline: Image position is configurable for desktop and mobile\r\n\t\tGiven a Hero Image component configured with the following props\r\n\t\t\t| prop | value |\r\n\t\t\t| image-url | \"https://res.cloudinary.com/saasquatch/image/upload/v1644000275/squatch-assets/yr6ER3R.png\" |\r\n\t\t\t| header | \"Klip Rewards\" |\r\n\t\t\t| description | \"Refer friends or complete tasks while using Klip to earn rewards\" |\r\n\t\t\t| button-text | \"Start earning\" |\r\n\t\t\t| layout | \"columns\" |\r\n\t\t\t| image-pos | <imagePos> |\r\n\t\t\t| image-mobile-pos | <imageMobilePos> |\r\n\t\tThen the image is displayed on the <imagePos>\r\n\t\tWhen the component is scaled down to 599px\r\n\t\tThen two-column layout switches to a row layout\r\n\t\tAnd image is displayed on the <imageMobilePos>\r\n\t\tExamples:\r\n\t\t\t| imagePos | imageMobilePos |\r\n\t\t\t| left | top |\r\n\t\t\t| right | bottom |\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario Outline: Padding is configurable for the image and text of two column layouts\r\n\t\tGiven a Hero Image component configured with the following props\r\n\t\t\t| prop | value |\r\n\t\t\t| image-url | \"https://res.cloudinary.com/saasquatch/image/upload/v1644000275/squatch-assets/yr6ER3R.png\" |\r\n\t\t\t| header | \"Klip Rewards\" |\r\n\t\t\t| description | \"Refer friends or complete tasks while using Klip to earn rewards\" |\r\n\t\t\t| button-text | \"Start earning\" |\r\n\t\t\t| layout | \"columns\" |\r\n\t\t\t| padding-text | <paddingText> |\r\n\t\t\t| padding-image | <paddingImage> |\r\n\t\tThen the two column layout is displayed\r\n\t\tAnd the image has padding <paddingImage>\r\n\t\tAnd the text has padding <paddingText>\r\n\t\tExamples:\r\n\t\t\t| paddingText | paddingImage |\r\n\t\t\t| xxx-small | xxx-small |\r\n\t\t\t| xx-small | xx-small |\r\n\t\t\t| x-small | x-small |\r\n\t\t\t| small | small |\r\n\t\t\t| medium | medium |\r\n\t\t\t| large | large |\r\n\t\t\t| x-large | x-large |\r\n\t\t\t| xx-large | xx-large |\r\n\t\t\t| xxx-large | xxx-large |\r\n\t\t\t| xxxx-large | xxxx-large |\r\n\t\t\t| none | none |\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario Outline: Two-column layout image division percentage is configurable\r\n\t\tGiven a Hero Image component configured with the following props\r\n\t\t\t| prop | value |\r\n\t\t\t| image-url | \"https://res.cloudinary.com/saasquatch/image/upload/v1644000248/squatch-assets/MVgOJn7.png\" |\r\n\t\t\t| header | \"Klip Rewards\" |\r\n\t\t\t| description | \"Refer friends or complete tasks while using Klip to earn rewards\" |\r\n\t\t\t| button-text | \"Start earning\" |\r\n\t\t\t| layout | \"columns\" |\r\n\t\t\t| image-percentage | <percent> |\r\n\t\tThen the two column layout is displayed\r\n\t\tAnd the image takes up <percent> of the two-column layout\r\n\t\tAnd the text elements take up the remainder of the space\r\n\t\tExamples:\r\n\t\t\t| percent |\r\n\t\t\t| 25% |\r\n\t\t\t| 42% |\r\n\t\t\t| 66% |\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario: Two-column layout text and background color is configurable\r\n\t\tGiven a Hero Image component configured with the following props\r\n\t\t\t| prop | value |\r\n\t\t\t| image-url | \"https://res.cloudinary.com/saasquatch/image/upload/v1644000275/squatch-assets/yr6ER3R.png\" |\r\n\t\t\t| header | \"Klip Rewards\" |\r\n\t\t\t| description | \"Refer friends or complete tasks while using Klip to earn rewards\" |\r\n\t\t\t| button-text | \"Start earning\" |\r\n\t\t\t| layout | \"columns\" |\r\n\t\t\t| text-color | <textColor> |\r\n\t\t\t| background-color | <backgroundColor> |\r\n\t\tThen the two column layout is displayed\r\n\t\tAnd the text has color <textColor>\r\n\t\tAnd the background has color <backgroundColor>\r\n\t\tExamples:\r\n\t\t\t| textColor | backgroundColor |\r\n\t\t\t| #fffc4b | #ff7f7f |\r\n\t\t\t| #1d0314 | #4baa1a |\r\n\t\t\t| #211a27 | #aa481a |";
11525
+ const scenario$s = "@author:kutay\r\n@owner:kutay\r\nFeature: Hero Image\r\n\r\n\tThe Hero Image component displays media images with a header, description and button using an overlay or a double column layout to offer an attrative widget page.\r\n\r\n\tBackground: A user on the portal is viewing the widget\r\n\t\tGiven a user viewing the Hero Image component\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario: Overlay image displays header, description, and button with brand color\r\n\t\tGiven a Hero Image component configured with the following props\r\n\t\t\t| prop | value |\r\n\t\t\t| image-url | \"https://res.cloudinary.com/saasquatch/image/upload/v1644000278/squatch-assets/bTwu1Um.png\" |\r\n\t\t\t| header | \"Klip Rewards\" |\r\n\t\t\t| description | \"Refer friends or complete tasks while using Klip to earn rewards\" |\r\n\t\t\t| button-text | \"Start earning\" |\r\n\t\t\t| layout | \"overlay\" |\r\n\t\tThen they see their image\r\n\t\tAnd the image has no padding\r\n\t\tAnd it has a brand colour overlay\r\n\t\tAnd \"Klip Rewards\" is displayed over top of the image in xxx-large font\r\n\t\tAnd below \"Refer friends or complete tasks while using Klip to earn rewards\" is displayed over top of the image in x-large font\r\n\t\tAnd below they see a brand coloured button with text \"Start earning\"\r\n\t\tAnd the text section has xxx-large padding\r\n\t\tWhen the component is scaled down to 599px\r\n\t\tThen the image is scaled to fit content\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario Outline: Overlay image crop can be aligned left, center or right\r\n\t\tGiven a Hero Image component configured with the following props\r\n\t\t\t| prop | value |\r\n\t\t\t| image-url | \"https://res.cloudinary.com/saasquatch/image/upload/v1644000278/squatch-assets/bTwu1Um.png\" |\r\n\t\t\t| header | \"Klip Rewards\" |\r\n\t\t\t| description | \"Refer friends or complete tasks while using Klip to earn rewards\" |\r\n\t\t\t| button-text | \"Start earning\" |\r\n\t\t\t| layout | \"overlay\" |\r\n\t\t\t| image-pos | <value> |\r\n\t\tThen the image with overlay is displayed\r\n\t\tWhen the component is scaled down to 599px\r\n\t\tThen the image is <alignment> to fit content\r\n\t\tExamples:\r\n\t\t\t| value | alignment |\r\n\t\t\t| left | left aligned |\r\n\t\t\t| center | centered |\r\n\t\t\t| right | right aligned |\r\n\t\t\t| N/A | centered |\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario Outline: Overlay padding is configurable\r\n\t\tGiven a Hero Image component configured with the following props\r\n\t\t\t| prop | value |\r\n\t\t\t| image-url | \"https://res.cloudinary.com/saasquatch/image/upload/v1644000278/squatch-assets/bTwu1Um.png\" |\r\n\t\t\t| header | \"Klip Rewards\" |\r\n\t\t\t| description | \"Refer friends or complete tasks while using Klip to earn rewards\" |\r\n\t\t\t| button-text | \"Start earning\" |\r\n\t\t\t| layout | \"overlay\" |\r\n\t\t\t| padding-text | <value> |\r\n\t\tThen the image with overlay is displayed\r\n\t\tAnd <padding> is applied around header, description and button\r\n\t\tExamples:\r\n\t\t\t| value | padding |\r\n\t\t\t| none | no padding |\r\n\t\t\t| xxx-small | xxx-small |\r\n\t\t\t| xx-small | xx-small |\r\n\t\t\t| x-small | x-small |\r\n\t\t\t| small | small |\r\n\t\t\t| medium | medium |\r\n\t\t\t| large | large |\r\n\t\t\t| x-large | x-large |\r\n\t\t\t| xx-large | xx-large |\r\n\t\t\t| xxx-large | xxx-large |\r\n\t\t\t| xxxx-large | xxxx-large |\r\n\t\t\t| N/A | no padding |\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario Outline: Overlay color and background is configurable\r\n\t\tGiven a Hero Image component configured with the following props\r\n\t\t\t| prop | value |\r\n\t\t\t| image-url | \"https://res.cloudinary.com/saasquatch/image/upload/v1644000278/squatch-assets/bTwu1Um.png\" |\r\n\t\t\t| header | \"Klip Rewards\" |\r\n\t\t\t| description | \"Refer friends or complete tasks while using Klip to earn rewards\" |\r\n\t\t\t| button-text | \"Start earning\" |\r\n\t\t\t| layout | \"overlay\" |\r\n\t\t\t| text-color | <textColor> |\r\n\t\t\t| overlay-color | <overlayColor> |\r\n\t\t\t| overlay-opacity | <overlayOpacity> |\r\n\t\tThen the image with overlay is displayed\r\n\t\tAnd the overlay is <overlayColor>\r\n\t\tAnd the overlay has <overlayOpacity>\r\n\t\tAnd the text is <textColor>\r\n\t\tExamples:\r\n\t\t\t| textColor | overlayColor | overlayOpacity |\r\n\t\t\t| #fffc4b | #ff7f7f | 0.9 |\r\n\t\t\t| #1d0314 | #4baa1a | 0 |\r\n\t\t\t| #211a27 | #aa481a | 1 |\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario: Two-column layout displays an image on one side and on the other side a header, description, and button\r\n\t\tGiven a Hero Image component configured with the following props\r\n\t\t\t| prop | value |\r\n\t\t\t| image-url | \"https://res.cloudinary.com/saasquatch/image/upload/v1644000275/squatch-assets/yr6ER3R.png\" |\r\n\t\t\t| header | \"Klip Rewards\" |\r\n\t\t\t| description | \"Refer friends or complete tasks while using Klip to earn rewards\" |\r\n\t\t\t| button-text | \"Start earning\" |\r\n\t\t\t| layout | \"columns\" |\r\n\t\tThen the image is displayed on the left\r\n\t\tAnd the following elements are displayed on the right\r\n\t\t\t| elements |\r\n\t\t\t| header |\r\n\t\t\t| description |\r\n\t\t\t| button |\r\n\t\tWhen the component is scaled down to 599px\r\n\t\tThen the two-column layout switches to a row layout\r\n\t\tAnd the image is displayed on top\r\n\t\tAnd the content is displayed below\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario Outline: Image position is configurable for desktop and mobile\r\n\t\tGiven a Hero Image component configured with the following props\r\n\t\t\t| prop | value |\r\n\t\t\t| image-url | \"https://res.cloudinary.com/saasquatch/image/upload/v1644000275/squatch-assets/yr6ER3R.png\" |\r\n\t\t\t| header | \"Klip Rewards\" |\r\n\t\t\t| description | \"Refer friends or complete tasks while using Klip to earn rewards\" |\r\n\t\t\t| button-text | \"Start earning\" |\r\n\t\t\t| layout | \"columns\" |\r\n\t\t\t| image-pos | <imagePos> |\r\n\t\t\t| image-mobile-pos | <imageMobilePos> |\r\n\t\tThen the image is displayed on the <imagePos>\r\n\t\tWhen the component is scaled down to 599px\r\n\t\tThen two-column layout switches to a row layout\r\n\t\tAnd image is displayed on the <imageMobilePos>\r\n\t\tExamples:\r\n\t\t\t| imagePos | imageMobilePos |\r\n\t\t\t| left | top |\r\n\t\t\t| right | bottom |\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario Outline: Padding is configurable for the image and text of two column layouts\r\n\t\tGiven a Hero Image component configured with the following props\r\n\t\t\t| prop | value |\r\n\t\t\t| image-url | \"https://res.cloudinary.com/saasquatch/image/upload/v1644000275/squatch-assets/yr6ER3R.png\" |\r\n\t\t\t| header | \"Klip Rewards\" |\r\n\t\t\t| description | \"Refer friends or complete tasks while using Klip to earn rewards\" |\r\n\t\t\t| button-text | \"Start earning\" |\r\n\t\t\t| layout | \"columns\" |\r\n\t\t\t| padding-text | <paddingText> |\r\n\t\t\t| padding-image | <paddingImage> |\r\n\t\tThen the two column layout is displayed\r\n\t\tAnd the image has padding <paddingImage>\r\n\t\tAnd the text has padding <paddingText>\r\n\t\tExamples:\r\n\t\t\t| paddingText | paddingImage |\r\n\t\t\t| xxx-small | xxx-small |\r\n\t\t\t| xx-small | xx-small |\r\n\t\t\t| x-small | x-small |\r\n\t\t\t| small | small |\r\n\t\t\t| medium | medium |\r\n\t\t\t| large | large |\r\n\t\t\t| x-large | x-large |\r\n\t\t\t| xx-large | xx-large |\r\n\t\t\t| xxx-large | xxx-large |\r\n\t\t\t| xxxx-large | xxxx-large |\r\n\t\t\t| none | none |\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario Outline: Two-column layout image division percentage is configurable\r\n\t\tGiven a Hero Image component configured with the following props\r\n\t\t\t| prop | value |\r\n\t\t\t| image-url | \"https://res.cloudinary.com/saasquatch/image/upload/v1644000248/squatch-assets/MVgOJn7.png\" |\r\n\t\t\t| header | \"Klip Rewards\" |\r\n\t\t\t| description | \"Refer friends or complete tasks while using Klip to earn rewards\" |\r\n\t\t\t| button-text | \"Start earning\" |\r\n\t\t\t| layout | \"columns\" |\r\n\t\t\t| image-percentage | <percent> |\r\n\t\tThen the two column layout is displayed\r\n\t\tAnd the image takes up <percent> of the two-column layout\r\n\t\tAnd the text elements take up the remainder of the space\r\n\t\tExamples:\r\n\t\t\t| percent |\r\n\t\t\t| 25% |\r\n\t\t\t| 42% |\r\n\t\t\t| 66% |\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario: Two-column layout text and background color is configurable\r\n\t\tGiven a Hero Image component configured with the following props\r\n\t\t\t| prop | value |\r\n\t\t\t| image-url | \"https://res.cloudinary.com/saasquatch/image/upload/v1644000275/squatch-assets/yr6ER3R.png\" |\r\n\t\t\t| header | \"Klip Rewards\" |\r\n\t\t\t| description | \"Refer friends or complete tasks while using Klip to earn rewards\" |\r\n\t\t\t| button-text | \"Start earning\" |\r\n\t\t\t| layout | \"columns\" |\r\n\t\t\t| text-color | <textColor> |\r\n\t\t\t| background-color | <backgroundColor> |\r\n\t\tThen the two column layout is displayed\r\n\t\tAnd the text has color <textColor>\r\n\t\tAnd the background has color <backgroundColor>\r\n\t\tExamples:\r\n\t\t\t| textColor | backgroundColor |\r\n\t\t\t| #fffc4b | #ff7f7f |\r\n\t\t\t| #1d0314 | #4baa1a |\r\n\t\t\t| #211a27 | #aa481a |";
11518
11526
 
11519
11527
  const HeroImage_stories = {
11520
11528
  title: "Components/Hero Image",
11521
11529
  parameters: {
11522
- scenario: scenario$r,
11530
+ scenario: scenario$s,
11523
11531
  },
11524
11532
  };
11525
11533
  const OverlayHeader = () => {
@@ -11592,12 +11600,12 @@ const HeroImage = /*#__PURE__*/Object.freeze({
11592
11600
  ColumnsCustomColors: ColumnsCustomColors
11593
11601
  });
11594
11602
 
11595
- const scenario$s = "@author:kutay\r\n@owner:kutay\r\nFeature: Referral Card\r\n\r\n\tThe Referral Card component takes in two slots and displays them side by side.\r\n\r\n\tBackground: A user on the portal is viewing the widget\r\n\t\tGiven a user viewing the Referral Card component\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario: Referral Card component displays provided content in left and right slots side by side\r\n\t\tGiven a Referral Card component\r\n\t\tAnd a slot with the name \"left\"\r\n\t\tAnd a slot with the name \"right\"\r\n\t\tWhen the user views the referral card\r\n\t\tThen the slot contents are displayed the card with equal width\r\n\t\tWhen the component is scaled down to 499px\r\n\t\tThen the column layout switches to row layout\r\n\t\tAnd the \"left\" slot content is displayed above the \"right\" slot content\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario Outline: Referral Card component content can be vertically aligned start, center, end\r\n\t\tGiven a Referral Card component\r\n\t\tAnd a slot with the name \"left\"\r\n\t\tAnd a slot with the name \"right\"\r\n\t\tAnd the prop \"vertical-alignment\" has <value>\r\n\t\tThen slots contents are displayed inside the card\r\n\t\tAnd slots are vertically aligned to <alignment> of the card\r\n\t\tExamples:\r\n\t\t\t| value | alignment |\r\n\t\t\t| start | the top |\r\n\t\t\t| center | the center |\r\n\t\t\t| end | the bottom |\r\n\t\t\t| N/A | the top |\r\n\r\n";
11603
+ const scenario$t = "@author:kutay\r\n@owner:kutay\r\nFeature: Referral Card\r\n\r\n\tThe Referral Card component takes in two slots and displays them side by side.\r\n\r\n\tBackground: A user on the portal is viewing the widget\r\n\t\tGiven a user viewing the Referral Card component\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario: Referral Card component displays provided content in left and right slots side by side\r\n\t\tGiven a Referral Card component\r\n\t\tAnd a slot with the name \"left\"\r\n\t\tAnd a slot with the name \"right\"\r\n\t\tWhen the user views the referral card\r\n\t\tThen the slot contents are displayed the card with equal width\r\n\t\tWhen the component is scaled down to 499px\r\n\t\tThen the column layout switches to row layout\r\n\t\tAnd the \"left\" slot content is displayed above the \"right\" slot content\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario Outline: Referral Card component content can be vertically aligned start, center, end\r\n\t\tGiven a Referral Card component\r\n\t\tAnd a slot with the name \"left\"\r\n\t\tAnd a slot with the name \"right\"\r\n\t\tAnd the prop \"vertical-alignment\" has <value>\r\n\t\tThen slots contents are displayed inside the card\r\n\t\tAnd slots are vertically aligned to <alignment> of the card\r\n\t\tExamples:\r\n\t\t\t| value | alignment |\r\n\t\t\t| start | the top |\r\n\t\t\t| center | the center |\r\n\t\t\t| end | the bottom |\r\n\t\t\t| N/A | the top |\r\n\r\n";
11596
11604
 
11597
11605
  const ReferralCard_stories = {
11598
11606
  title: "Components/Referral Card",
11599
11607
  parameters: {
11600
- scenario: scenario$s,
11608
+ scenario: scenario$t,
11601
11609
  },
11602
11610
  };
11603
11611
  const media = (slot) => {
@@ -11688,11 +11696,11 @@ const scenarioTimeline = "@author:derek\r\n@owner:kutay\r\nFeature: Timeline\r\n
11688
11696
 
11689
11697
  const scenarioTimelineEntry = "@author:derek\r\n@owner:kutay\r\nFeature: Timeline Entry\r\n\r\n @motivating\r\n @ui\r\n Scenario: Timeline entries have an icon, a reward and an entry desciption\r\n Given an timeline entry with the following props\r\n | prop | value |\r\n | unit | Visa Giftcard |\r\n | reward | 50$ |\r\n | desc | Earn a 50$ Visa Giftcard for each referral you make |\r\n When a user views the entry\r\n Then they see a gift icon\r\n And see \"$50 VISA GIFTCARRD\" to the right\r\n And \"$50\" is bolded with x-large font size\r\n And below they see \"Earn a 50$ Visa Giftcard for each referral you make\"\r\n\r\n @motivating\r\n @ui\r\n Scenario Outline: Icon can either be a gift or a brand colour cirle\r\n Given a timeline entry with \"icon\" <iconPropValue>\r\n When a user views the entry\r\n Then they see an <icon>\r\n Examples:\r\n | iconPropValue 1 | icon |\r\n | gift | gift |\r\n | circle | brand colour circle |\r\n | | gift |\r\n\r\n @motivating\r\n @ui\r\n Scenario: A timeline entry can display a line to connect it to another entry\r\n Given a timeline entry with \"line\" \"true\"\r\n When a user views the entry\r\n Then they see the entry\r\n But it has a brand colour line connecting it to the next timeline entry\r\n";
11690
11698
 
11691
- const scenario$t = scenarioTimeline + scenarioTimelineEntry;
11699
+ const scenario$u = scenarioTimeline + scenarioTimelineEntry;
11692
11700
  const Timeline_stories = {
11693
11701
  title: "Components/Timeline",
11694
11702
  parameters: {
11695
- scenario: scenario$t,
11703
+ scenario: scenario$u,
11696
11704
  },
11697
11705
  };
11698
11706
  const TimelineWith1Reward = () => {
@@ -11765,12 +11773,12 @@ const Timeline = /*#__PURE__*/Object.freeze({
11765
11773
  TimelineWith4Rewards: TimelineWith4Rewards
11766
11774
  });
11767
11775
 
11768
- const scenario$u = "@author:kutay\r\n@owner:kutay\r\nFeature: Image\r\n\r\n\tBackground: A user on the portal is viewing the widget\r\n\t\tGiven a user viewing the image component\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario: Image is displayed from URL\r\n\t\tGiven an Image component\r\n\t\tAnd prop \"image-url\" is provided with a valid image url\r\n\t\tThen the image is displayed\r\n\t\tAnd it is centered\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario Outline: Images can be aligned left, center or right\r\n\t\tGiven an Image component\r\n\t\tAnd prop \"image-url\" is provided with a valid image url\r\n\t\tAnd prop \"align\" has <value>\r\n\t\tThen the image is displayed\r\n\t\tAnd it is aligned to the <value>\r\n\t\tExamples:\r\n\t\t\t| value |\r\n\t\t\t| left |\r\n\t\t\t| center |\r\n\t\t\t| right |\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario: Image background can be assigned a color\r\n\t\tGiven an Image component\r\n\t\tAnd prop \"image-url\" is provided with a valid image url\r\n\t\tAnd prop \"background-color\" is provided a color\r\n\t\tThen the image is displayed\r\n\t\tAnd the background is the provided color\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario: Image minimum height can be constrained\r\n\t\tGiven an Image component\r\n\t\tAnd prop \"image-url\" is provided\r\n\t\tAnd prop \"min-height\" is given a minimum value\r\n\t\tThen the image is displayed\r\n\t\tAnd the container size changes\r\n\t\tThen the image does not shrink below its minimum height";
11776
+ const scenario$v = "@author:kutay\r\n@owner:kutay\r\nFeature: Image\r\n\r\n\tBackground: A user on the portal is viewing the widget\r\n\t\tGiven a user viewing the image component\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario: Image is displayed from URL\r\n\t\tGiven an Image component\r\n\t\tAnd prop \"image-url\" is provided with a valid image url\r\n\t\tThen the image is displayed\r\n\t\tAnd it is centered\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario Outline: Images can be aligned left, center or right\r\n\t\tGiven an Image component\r\n\t\tAnd prop \"image-url\" is provided with a valid image url\r\n\t\tAnd prop \"align\" has <value>\r\n\t\tThen the image is displayed\r\n\t\tAnd it is aligned to the <value>\r\n\t\tExamples:\r\n\t\t\t| value |\r\n\t\t\t| left |\r\n\t\t\t| center |\r\n\t\t\t| right |\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario: Image background can be assigned a color\r\n\t\tGiven an Image component\r\n\t\tAnd prop \"image-url\" is provided with a valid image url\r\n\t\tAnd prop \"background-color\" is provided a color\r\n\t\tThen the image is displayed\r\n\t\tAnd the background is the provided color\r\n\r\n\t@motivating\r\n\t@ui\r\n\tScenario: Image minimum height can be constrained\r\n\t\tGiven an Image component\r\n\t\tAnd prop \"image-url\" is provided\r\n\t\tAnd prop \"min-height\" is given a minimum value\r\n\t\tThen the image is displayed\r\n\t\tAnd the container size changes\r\n\t\tThen the image does not shrink below its minimum height";
11769
11777
 
11770
11778
  const Image_stories = {
11771
11779
  title: "Components/Image",
11772
11780
  parameters: {
11773
- scenario: scenario$u,
11781
+ scenario: scenario$v,
11774
11782
  },
11775
11783
  };
11776
11784
  const Image = () => {
@@ -11803,12 +11811,12 @@ const Image$1 = /*#__PURE__*/Object.freeze({
11803
11811
  MinimumHeight: MinimumHeight
11804
11812
  });
11805
11813
 
11806
- const scenario$v = "@author:derek\r\n@owner:noah\r\nFeature: Titled Section\r\n\r\n Background: The titled section has a label and content\r\n Given a titled section\r\n And it has a label\r\n And it has content in the content slot\r\n\r\n @motivating\r\n @ui\r\n Scenario: Text alignment defaults to left align but can be configured\r\n Given the titled section has \"text-align\" <textAlignPropValue>\r\n When a user views the titled section\r\n Then the text in the label is <aligned>\r\n And the text in the content is <aligned>\r\n Examples:\r\n | textAlignPropValue | aligned |\r\n | center | center |\r\n | left | left |\r\n | right | right |\r\n | | left |\r\n\r\n @minutae\r\n @ui\r\n Scenario: Label margin is configurable\r\n Given the titled section has \"label-margin\" <marginPropValue>\r\n When a user views the titled section\r\n Then <marginPropValue> margin is between the label and content\r\n Examples:\r\n | marginPropValue | margin |\r\n | none | no |\r\n | xxx-small | xxx-small |\r\n | xx-small | xx-small |\r\n | x-small | x-small |\r\n | small | small |\r\n | medium | medium |\r\n | large | large |\r\n | x-large | x-large |\r\n | xx-large | xx-large |\r\n | xxx-large | xxx-large |\r\n | xxxx-large | xxxx-large |\r\n | | no |\r\n\r\n @minutae\r\n @ui\r\n Scenario Outline: Titled section padding is configurable\r\n Given the titled section has \"padding\" <paddingPropValue>\r\n When a user views the titled section\r\n Then <paddingPropValue> padding is applied around the titled section\r\n Examples:\r\n | paddingPropValue | padding |\r\n | none | no |\r\n | xxx-small | xxx-small |\r\n | xx-small | xx-small |\r\n | x-small | x-small |\r\n | small | small |\r\n | medium | medium |\r\n | large | large |\r\n | x-large | x-large |\r\n | xx-large | xx-large |\r\n | xxx-large | xxx-large |\r\n | xxxx-large | xxxx-large |\r\n | | no |";
11814
+ const scenario$w = "@author:derek\r\n@owner:noah\r\nFeature: Titled Section\r\n\r\n Background: The titled section has a label and content\r\n Given a titled section\r\n And it has a label\r\n And it has content in the content slot\r\n\r\n @motivating\r\n @ui\r\n Scenario: Text alignment defaults to left align but can be configured\r\n Given the titled section has \"text-align\" <textAlignPropValue>\r\n When a user views the titled section\r\n Then the text in the label is <aligned>\r\n And the text in the content is <aligned>\r\n Examples:\r\n | textAlignPropValue | aligned |\r\n | center | center |\r\n | left | left |\r\n | right | right |\r\n | | left |\r\n\r\n @minutae\r\n @ui\r\n Scenario: Label margin is configurable\r\n Given the titled section has \"label-margin\" <marginPropValue>\r\n When a user views the titled section\r\n Then <marginPropValue> margin is between the label and content\r\n Examples:\r\n | marginPropValue | margin |\r\n | none | no |\r\n | xxx-small | xxx-small |\r\n | xx-small | xx-small |\r\n | x-small | x-small |\r\n | small | small |\r\n | medium | medium |\r\n | large | large |\r\n | x-large | x-large |\r\n | xx-large | xx-large |\r\n | xxx-large | xxx-large |\r\n | xxxx-large | xxxx-large |\r\n | | no |\r\n\r\n @minutae\r\n @ui\r\n Scenario Outline: Titled section padding is configurable\r\n Given the titled section has \"padding\" <paddingPropValue>\r\n When a user views the titled section\r\n Then <paddingPropValue> padding is applied around the titled section\r\n Examples:\r\n | paddingPropValue | padding |\r\n | none | no |\r\n | xxx-small | xxx-small |\r\n | xx-small | xx-small |\r\n | x-small | x-small |\r\n | small | small |\r\n | medium | medium |\r\n | large | large |\r\n | x-large | x-large |\r\n | xx-large | xx-large |\r\n | xxx-large | xxx-large |\r\n | xxxx-large | xxxx-large |\r\n | | no |";
11807
11815
 
11808
11816
  const TitledSection_stories = {
11809
11817
  title: "Components/Titled Section",
11810
11818
  parameters: {
11811
- scenario: scenario$v,
11819
+ scenario: scenario$w,
11812
11820
  },
11813
11821
  };
11814
11822
  const AlignLeft = () => {
@@ -12204,12 +12212,12 @@ const Scroll = /*#__PURE__*/Object.freeze({
12204
12212
  ShoelaceProps: ShoelaceProps
12205
12213
  });
12206
12214
 
12207
- const scenario$w = "@author:Zach\r\n@owner:Zach\r\nFeature: Tabs\r\n\r\n The Tabs takes in the Tab component as children and maps through to display their header and content.\r\n\r\n Background: A user on the portal is viewing the widget\r\n Given a user viewing the Tabs component\r\n\r\n @motivating\r\n Scenario: Content inside the active tab is shown\r\n Given the header is set to <tabHeader>\r\n And the content inside is <tabContent>\r\n And the user has clicked <tabHeader>\r\n Then the <tabContent> is shown\r\n Examples:\r\n | tabHeader | tabContent |\r\n | Settings | This is the settings tab |\r\n | General | This is the general tab |\r\n | History | This is the history tab |\r\n\r\n @motivating\r\n @ui\r\n Scenario: The placement of the tabs is configurable\r\n Given The placement prop has been passed a valid <placement>\r\n Then tabs are placed on the <placementResult>\r\n Examples:\r\n | placement | placementResult |\r\n | | top of the content |\r\n | left | left hand side of the content |\r\n | right | right hand side of the content |\r\n | bottom | bottom of the content |\r\n\r\n\r\n @minutae\r\n @ui\r\n Scenario Outline: Tabs are setup to use the brand color\r\n Given the brand color is set to darkblue\r\n Then the text inside the active tab is darkblue\r\n And the underline of the active tab is darkblue\r\n\r\n @ui\r\n Scenario: Tabs are responsive\r\n Given the user is on a mobile device\r\n When there are more tabs than the horizontal space allows for\r\n Then clickable arrows appear on the left and right of the tabs\r\n And the tabs are scrollable\r\n\r\n @landmine\r\n Scenario: Program section cannot be used inside of tabs\r\n Given a tabs component\r\n And tab containing a program section with program-id \"test123\"\r\n And the program section wraps a component using program context\r\n When the tabs component is rendered\r\n Then the \"sq:program-id\" event listener for the program section is removed\r\n And the component does not use program-id \"test123\" to source its data\r\n And falls back to the global program id";
12215
+ const scenario$x = "@author:Zach\r\n@owner:Zach\r\nFeature: Tabs\r\n\r\n The Tabs takes in the Tab component as children and maps through to display their header and content.\r\n\r\n Background: A user on the portal is viewing the widget\r\n Given a user viewing the Tabs component\r\n\r\n @motivating\r\n Scenario: Content inside the active tab is shown\r\n Given the header is set to <tabHeader>\r\n And the content inside is <tabContent>\r\n And the user has clicked <tabHeader>\r\n Then the <tabContent> is shown\r\n Examples:\r\n | tabHeader | tabContent |\r\n | Settings | This is the settings tab |\r\n | General | This is the general tab |\r\n | History | This is the history tab |\r\n\r\n @motivating\r\n @ui\r\n Scenario: The placement of the tabs is configurable\r\n Given The placement prop has been passed a valid <placement>\r\n Then tabs are placed on the <placementResult>\r\n Examples:\r\n | placement | placementResult |\r\n | | top of the content |\r\n | left | left hand side of the content |\r\n | right | right hand side of the content |\r\n | bottom | bottom of the content |\r\n\r\n\r\n @minutae\r\n @ui\r\n Scenario Outline: Tabs are setup to use the brand color\r\n Given the brand color is set to darkblue\r\n Then the text inside the active tab is darkblue\r\n And the underline of the active tab is darkblue\r\n\r\n @ui\r\n Scenario: Tabs are responsive\r\n Given the user is on a mobile device\r\n When there are more tabs than the horizontal space allows for\r\n Then clickable arrows appear on the left and right of the tabs\r\n And the tabs are scrollable\r\n\r\n @landmine\r\n Scenario: Program section cannot be used inside of tabs\r\n Given a tabs component\r\n And tab containing a program section with program-id \"test123\"\r\n And the program section wraps a component using program context\r\n When the tabs component is rendered\r\n Then the \"sq:program-id\" event listener for the program section is removed\r\n And the component does not use program-id \"test123\" to source its data\r\n And falls back to the global program id";
12208
12216
 
12209
12217
  const Tabs_stories = {
12210
12218
  title: "Components/Tabs",
12211
12219
  parameters: {
12212
- scenario: scenario$w,
12220
+ scenario: scenario$x,
12213
12221
  },
12214
12222
  };
12215
12223
  const SimpleTabs = () => (index.h("div", { style: { maxWidth: "700px", margin: "auto" }, innerHTML: `
@@ -12708,12 +12716,12 @@ const Tabs = /*#__PURE__*/Object.freeze({
12708
12716
  RightTabs: RightTabs
12709
12717
  });
12710
12718
 
12711
- const scenario$x = "@author:johan\r\n@owner:johan\r\nFeature: Share Code\r\n\r\n The share code component is a box that allows users to see and copy their referral code for a given program\r\n \r\n Background: Environment\r\n Given there is a valid program ID in the environment\r\n And there is a valid user ID and account ID in the environment\r\n\r\n @motivating\r\n Scenario: A Users referral code can be copied to their clipboard\r\n Given tooltiptext is \"hello tooltip\"\r\n When the component renders\r\n Then there is a textbox with the user's share link\r\n When the clipboard icon is clicked\r\n Then the link is copied to clipboard\r\n And a tooltip will appear for ~1 second\r\n\r\n @minutae\r\n Scenario: Tooltip lifespan defaults to 2000\r\n Given the tooltip's lifespan is set to 2000\r\n And there is tooltip text\r\n When the component renders\r\n And the clipboard icon is clicked\r\n Then a tooltip will appear for ~2 seconds\r\n\r\n @minutae\r\n Scenario: Demo\r\n Given isDemo() returns true\r\n Then the share link is \"https://www.example.com/sharelink/abc\"\r\n And the component won't be interactive\r\n And the tooltip is hidden\r\n\r\n @minutae\r\n Scenario: Program ID can be sourced from prop\r\n Given the programId prop is set to \"program-a\"\r\n And window.widgetIdent.programId is set to \"program-b\"\r\n When the component renders\r\n Then the share link is for \"program-a\"\r\n\r\n @minutae\r\n Scenario: Program ID can be sourced from window\r\n Given the programId prop is unset\r\n And window.widgetIdent.programId is set to \"program-b\"\r\n When the component renders\r\n Then the share link is for \"program-b\"\r\n\r\n @minutae\r\n Scenario: An analytic event is fired when a user copies their code\r\n Given a user viewing the share code component\r\n And the component is rendered for \"program-a\"\r\n When they click to copy their code\r\n Then an \"USER_REFERRAL_PROGRAM_ENGAGEMENT_EVENT\" analytic event is fired\r\n And it is for \"program-a\"\r\n And it has share medium \"DIRECT\"\r\n";
12719
+ const scenario$y = "@author:johan\r\n@owner:johan\r\nFeature: Share Code\r\n\r\n The share code component is a box that allows users to see and copy their referral code for a given program\r\n \r\n Background: Environment\r\n Given there is a valid program ID in the environment\r\n And there is a valid user ID and account ID in the environment\r\n\r\n @motivating\r\n Scenario: A Users referral code can be copied to their clipboard\r\n Given tooltiptext is \"hello tooltip\"\r\n When the component renders\r\n Then there is a textbox with the user's share link\r\n When the clipboard icon is clicked\r\n Then the link is copied to clipboard\r\n And a tooltip will appear for ~1 second\r\n\r\n @minutae\r\n Scenario: Tooltip lifespan defaults to 2000\r\n Given the tooltip's lifespan is set to 2000\r\n And there is tooltip text\r\n When the component renders\r\n And the clipboard icon is clicked\r\n Then a tooltip will appear for ~2 seconds\r\n\r\n @minutae\r\n Scenario: Demo\r\n Given isDemo() returns true\r\n Then the share link is \"https://www.example.com/sharelink/abc\"\r\n And the component won't be interactive\r\n And the tooltip is hidden\r\n\r\n @minutae\r\n Scenario: Program ID can be sourced from prop\r\n Given the programId prop is set to \"program-a\"\r\n And window.widgetIdent.programId is set to \"program-b\"\r\n When the component renders\r\n Then the share link is for \"program-a\"\r\n\r\n @minutae\r\n Scenario: Program ID can be sourced from window\r\n Given the programId prop is unset\r\n And window.widgetIdent.programId is set to \"program-b\"\r\n When the component renders\r\n Then the share link is for \"program-b\"\r\n\r\n @minutae\r\n Scenario: An analytic event is fired when a user copies their code\r\n Given a user viewing the share code component\r\n And the component is rendered for \"program-a\"\r\n When they click to copy their code\r\n Then an \"USER_REFERRAL_PROGRAM_ENGAGEMENT_EVENT\" analytic event is fired\r\n And it is for \"program-a\"\r\n And it has share medium \"DIRECT\"\r\n";
12712
12720
 
12713
12721
  const ShareCode_stories = {
12714
12722
  title: "Components/Share Code",
12715
12723
  parameters: {
12716
- scenario: scenario$x,
12724
+ scenario: scenario$y,
12717
12725
  },
12718
12726
  };
12719
12727
  const ShareCode = () => {
@@ -15455,7 +15463,7 @@ const StencilStorybook = class {
15455
15463
  const { class: Style, children } = f(stories, {
15456
15464
  h: index.h,
15457
15465
  title: "Mint Components",
15458
- addons: [CucumberAddon, ShadowViewAddon.ShadowViewAddon, HookStoryAddon],
15466
+ addons: [HookStoryAddon, ShadowViewAddon.ShadowViewAddon, CucumberAddon],
15459
15467
  });
15460
15468
  const [selectedTheme, setSelected] = stencilHooks_module.useState("Default");
15461
15469
  const [checkerboard, setCheckerboard] = stencilHooks_module.useState(true);