Skip to content

Commit

Permalink
fix(ui-library): comments removed
Browse files Browse the repository at this point in the history
  • Loading branch information
RubirajAccenture committed Mar 20, 2024
1 parent 7f3f557 commit 7d4aca2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ export default {
},
if: { arg: 'hasLabel', eq: true },
},
// todo it has to be renamed? Checke this
hasIcon: {
description: 'Choose if component has an icon.',
options: [undefined, ...PureIconKeys],
Expand All @@ -120,8 +119,7 @@ export default {
category: 'Content / Settings',
},
},
// todo it has to be renamed? Checke this
inputIcon: {
icon: {
description: 'Select an icon which is displayed inside of the input.',
options: [undefined, ...PureIconKeys],
control: { type: 'select' },
Expand All @@ -130,8 +128,6 @@ export default {
category: 'Content / Settings',
},
},

// todo renaming from hintText to hasHint in the blrFormRenderFunction, partially solution with name overwriting
hasHint: {
name: 'hasHint',
description: ' Choose if component has a hint message. ',
Expand All @@ -143,7 +139,6 @@ export default {
category: 'Content / Settings',
},
},
// todo renaming from hintMessageIcon to hintMessageIcon in the blrFormRenderFunction, partially solution with name overwriting
hintMessageIcon: {
name: 'hintMessageIcon',
description: 'Select an icon which is displayed in front of the hint message.',
Expand All @@ -154,7 +149,6 @@ export default {
category: 'Content / Settings',
},
},
// todo renaming from hintText to hasHint in the blrFormRenderFunction, partially solution with name overwriting
hintMessage: {
name: 'hintMessage',
description: 'Enter string used used as hint message.',
Expand All @@ -163,7 +157,6 @@ export default {
category: 'Content / Settings',
},
},
//States
disabled: {
name: 'disabled',
description:
Expand All @@ -181,7 +174,6 @@ export default {
category: 'States',
},
},
// Validation
required: {
name: 'required',
description: 'Choose if the component must hold a value after an interaction or a submit.',
Expand All @@ -198,7 +190,6 @@ export default {
category: 'Validation',
},
},
// todo renaming from errorMessageIcon to errorMessageIcon, partially solution with name overwriting
errorMessageIcon: {
name: 'errorMessageIcon',
description: 'Select an icon which is displayed in front of the error message.',
Expand All @@ -216,7 +207,6 @@ export default {
category: 'Validation',
},
},
//Accessibility
arialabel: {
name: 'ariaLabel',
description:
Expand All @@ -225,7 +215,6 @@ export default {
category: 'Accessibility',
},
},
// Events
blrTextValueChange: {
name: 'blrTextValueChange',
description: 'Fires when the value changes.',
Expand Down Expand Up @@ -325,30 +314,29 @@ BlrInputFieldText.storyName = 'Input Field Text';

// Default parameters for Input Field Text component
const defaultParams: BlrInputFieldTextType = {
theme: 'Light',
sizeVariant: 'md',
type: 'text',
placeholder: 'Placeholder-text',
value: '',
maxLength: 140,
hasLabel: true,
label: 'Label-text',
labelAppendix: '(Appendix)',
hasIcon: true,
icon: 'blr360',
hasHint: false,
hintMessage: 'This is a small hint message',
hintMessageIcon: 'blrInfo',
arialabel: 'InputFieldText',
name: 'InputFieldText',
theme: 'Light',
inputFieldTextId: 'Input Id',
hasLabel: true,
required: false,
disabled: false,
readonly: false,
required: false,
hasError: false,
errorMessage: '',
errorMessageIcon: 'blrInfo',

type: 'text',
icon: 'blr360',
hasIcon: true,
arialabel: 'InputFieldText',
name: 'InputFieldText',
inputFieldTextId: 'Input Id',
};

BlrInputFieldText.args = defaultParams;
Expand All @@ -357,6 +345,7 @@ BlrInputFieldText.args = defaultParams;
const argTypesToDisable = [
'theme',
'sizeVariant',
'type',
'isResizeable',
'placeholder',
'value',
Expand All @@ -368,7 +357,6 @@ const argTypesToDisable = [
'hasHint',
'hintText',
'hintMessageIcon',
'type',
'hasIcon',
'inputFieldTextId',
'disabled',
Expand Down
3 changes: 2 additions & 1 deletion packages/ui-library/src/components/input-field-text/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export class BlrInputFieldText extends LitElement {
@property() inputFieldTextId!: string;
@property() type: InputTypes = 'text';
@property() arialabel!: string;
@property() hasLabel!: boolean;
@property() label!: string;
@property() labelAppendix?: string;
@property() value!: string;
Expand All @@ -61,7 +62,7 @@ export class BlrInputFieldText extends LitElement {
@property() hintMessage?: string;
@property() hintMessageIcon?: SizelessIconType;
@property() errorMessageIcon?: SizelessIconType;
@property() hasLabel!: boolean;

@property() name!: string;
@property() theme: ThemeType = 'Light';

Expand Down

0 comments on commit 7d4aca2

Please sign in to comment.