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 15, 2024
1 parent cd52cc9 commit f40db60
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ 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 +120,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 +129,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 +140,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 +150,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 Down Expand Up @@ -198,7 +193,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 Down Expand Up @@ -325,30 +319,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 +350,7 @@ BlrInputFieldText.args = defaultParams;
const argTypesToDisable = [
'theme',
'sizeVariant',
'type',
'isResizeable',
'placeholder',
'value',
Expand All @@ -368,7 +362,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 f40db60

Please sign in to comment.