You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enhance Input Component with Left and Right Icons and Update Related Elements
This commit enhances the Input component by introducing left and right icons, updates the InputIcon component, and revises the test cases. It also includes a few deprecations and minor changes to the stories and styles.
Changes include:
Input component in inputStandAlone.tsx now includes left and right icons, providing more flexibility in the design of the input fields.
InputIcon component in inputIcon.tsx has been updated to support left and right icons. A deprecated version of the component has been introduced to support the old icon prop until it is removed.
Test cases in input.test.tsx have been updated to reflect the changes made to the Input component, including testing for the new left and right icons.
The icon and iconPosition props in the Input component in input.ts have been deprecated. They will be replaced with leftIcon and rightIcon in a future update.
Stories in stories.tsx have been updated to include examples of the new left and right icons.
Styles in input.styled.ts have been updated to accommodate the new left and right icons.
These changes enhance the functionality and flexibility of the Input component.
'In the error state, the field is accompanied by an error icon and a description of the problem to help resolve it.',
33
+
control: {type: 'object'},
34
+
table: {
35
+
type: {
36
+
summary: 'IElementOrIcon',
37
+
},
38
+
category: CATEGORY_CONTROL.CONTENT,
39
+
},
40
+
},
41
+
// deprecated - remove when `errorMessageIcon` prop is removed
29
42
errorIcon: {
30
43
description:
31
44
'Object with error icon properties. In the error state, the field is accompanied by an error mbIcon and a description of the problem to help resolve it.',
0 commit comments