From df7ccde419387fb897e184c021728f49e60d6c8d Mon Sep 17 00:00:00 2001 From: David Featherston Date: Tue, 23 Apr 2024 17:06:47 +1000 Subject: [PATCH] chore(@dpc-sdp/ripple-ui-forms): update form story help text --- .../components/RplForm/RplForm.stories.mdx | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/packages/ripple-ui-forms/src/components/RplForm/RplForm.stories.mdx b/packages/ripple-ui-forms/src/components/RplForm/RplForm.stories.mdx index ab00b75c39..e5098f487d 100644 --- a/packages/ripple-ui-forms/src/components/RplForm/RplForm.stories.mdx +++ b/packages/ripple-ui-forms/src/components/RplForm/RplForm.stories.mdx @@ -72,7 +72,7 @@ export const SlotTemplate = (args) => ({ label: 'What kind of long enquiry do you have?', id: 'text', suffixIcon: 'icon-search', - help: 'Do you need help?', + help: '

Do you need help?

', validationLabel: 'enquiry', validation: 'required|length:0,20', columnClasses: 'rpl-col-6 rpl-col-3-m' @@ -83,7 +83,7 @@ export const SlotTemplate = (args) => ({ label: 'RplFormText Should you flush tissues down the toilet?', id: 'textnoicons', value: 'test content', - help: 'Do you need help?', + help: '

Do you need help?

', validation: 'required', columnClasses: 'rpl-col-12 rpl-col-5-m' }, @@ -92,7 +92,7 @@ export const SlotTemplate = (args) => ({ name: 'Text', label: 'Email', id: 'email', - help: 'Add your work email', + help: '

Add your work email

', validation: 'required' }, { @@ -100,7 +100,7 @@ export const SlotTemplate = (args) => ({ name: 'tel', label: 'Mobile number', id: 'tel', - help: 'Please enter a valid mobile number', + help: '

Please enter a valid mobile number

', validation:[['required'],['matches', /^(?:\+?(61))? ?(?:\((?=.*\)))?(0?[2-57-8])\)? ?(\d\d(?:[- ](?=\d{3})|(?!\d\d[- ]?\d[- ]))\d\d[- ]?\d[- ]?\d{3})$/]], validationMessages: { required: 'We require a mobile for verification purposes', @@ -112,7 +112,7 @@ export const SlotTemplate = (args) => ({ name: "role", label: "Role", id: "role", - help: "Enter your role", + help: "

Enter your role

", counter: "word", counterMin: 0, counterMax: 5, @@ -126,7 +126,7 @@ export const SlotTemplate = (args) => ({ name: 'message', label: 'Message', id: 'message', - help: 'Please enter a message', + help: '

Please enter a message

', counter: 'character', counterMin: 10, counterMax: 50, @@ -142,7 +142,7 @@ export const SlotTemplate = (args) => ({ name: 'single-checkbox', label: 'How are you?', checkboxLabel: 'I am good thanks', - help: 'A common human greeting', + help: '

A common human greeting

', value: false, validation: 'accepted', validationMessages: { @@ -154,7 +154,7 @@ export const SlotTemplate = (args) => ({ id: 'checkbox-group', name: 'checkbox-group', label: 'What is the answer?', - help: 'There may be multiple answers', + help: '

There may be multiple answers

', value: [], validation: 'required|length:2,3', validationMessages: { @@ -184,7 +184,7 @@ export const SlotTemplate = (args) => ({ id: 'radio-group', name: 'radio-group', label: 'Favourite colour?', - help: 'There is only one answer', + help: '

There is only one answer

', value: 'undefined', validation: 'required', validationMessages: { @@ -213,7 +213,7 @@ export const SlotTemplate = (args) => ({ id: 'option-buttons', name: 'option-buttons', label: 'Favourite fruit?', - help: 'What is it?', + help: '

What is it?

', value: '', validation: 'required', validationMessages: { @@ -252,7 +252,7 @@ export const SlotTemplate = (args) => ({ id: 'dropdown-single', name: 'dropdown-single', label: 'What is the answer?', - help: 'Just one answer', + help: '

Just one answer

', validation: 'required', validationMessages: { required: 'Please provide an answer', @@ -281,7 +281,7 @@ export const SlotTemplate = (args) => ({ id: 'dropdown-multi', name: 'dropdown-multi', label: 'What is the answer?', - help: 'There may be multiple answers', + help: '

There may be multiple answers

', columnClasses: 'rpl-col-12 rpl-col-5-m', validation: 'required|length:2,3', validationMessages: { @@ -312,7 +312,7 @@ export const SlotTemplate = (args) => ({ id: 'birthdate', name: 'birthdate', label: 'When is your birthday?', - help: 'The date you were born', + help: '

The date you were born

', validation: 'required|date_before:1999-12-25', validationMessages: { required: 'Please provide an answer', @@ -325,7 +325,7 @@ export const SlotTemplate = (args) => ({ label: "Quantity", columnClasses: 'rpl-col-12 rpl-col-5-m', id: "qty", - help: "How many do you need?", + help: "

How many do you need?

", min: 0, max: 5, mode: "alt",