1.0.37 • Published 5 months ago
@eachawy/frontend-library v1.0.37
React General Components
Download
npm i frontend-library@version
Styles
@import url('../../../../node_modules/primereact/resources/primereact.min.css');
@import url('../../../../node_modules/primeicons/primeicons.css');
@import url('../../../../node_modules/frontend-library/lib/resource/scss/components-style.css');
Components
DropDown Compoent
<DropdownComponent
Class="col-sm-12 col-md-6 GC-dropdown"
label={translate('existingLicenseVerification.selectCountryIssuance')}
value={this.state.selectedCountry}
optionList={[
{ name: 'Australia', code: 'AU' },
{ name: 'Brazil', code: 'BR' },
{ name: 'China', code: 'CN' },
{ name: 'Egypt', code: 'EG' },
{ name: 'France', code: 'FR' },
{ name: 'Germany', code: 'DE' },
{ name: 'India', code: 'IN' },
{ name: 'Japan', code: 'JP' },
{ name: 'Spain', code: 'ES' },
{ name: 'United States', code: 'US' },
]}
onchange={e => this.handleSelectedCountry(e)}
optionlabel="name"
filterby="name"
placeholder=""
/>
DatePicker Component
<DatePickerComponent
classInfo="Unified_Number_info"
titleInfo={'Unified Number'}
Class={'col-sm-6'}
label={'journeyApplicationStep1.card.birthDate'}
value={new Date('06/30/2021')}
changed={date => console.log(date._d)}
placeholder={'day/month/year'}
currentLang={'en'}
/>
Plate Component
<PlateComponent Class={'expo'} plateType={'sport'} plateCharacter={'G'} plateNum={'44115'} />
RadioButton Component
<RadioButtonComponent id="yes" group="permission" value={'true'} checked={true} label={'no'} onchange={e => console.log(e)} />
<RadioButtonComponent id="no" group="permission" value={'false'} checked={true} label={'yes'} onchange={e => console.log(e)} />
Loading Component
<LoadingComponent show={false} />
Input Component
<InputComponent
classInfo="Unified_Number_info"
titleInfo={'Unified Number'}
label="Name"
placeholder="Text Box"
value="Eachawy"
Class="col-sm-6"
onchange={e => console.log(e)}
/>
Info Component
<InfoComponent classInfo="Unified_Number_info" textInfo={'info'} />
Uploader Component
<UploaderComponent
Class={'col-sm-6'}
id="uploaderTest"
onchanged={e => console.log(e)}
filesType={['image/jpeg', 'image/png', 'application/pdf']}
uploaderText={'driving School'}
maximumFileSize={5000000}
uploaderReq={'test'}
chooseFile={'Choose File'}
filesNumber={1}
/>
CheckBox Component
<CheckBoxComponent
id="makeSureYouHaveVerifiedId"
lbl={'employee Login'}
Checked={true}
handleChangeChk={e => console.log(e.target.checked)}
/>
Button Component
<ButtonComponent onClick={() => console.log('You clicked on the pink circle!')}>Im a pink circle!</ButtonComponent>
<ButtonComponent Class="BtnCancel" onClick={() => console.log('Cancel')}>Im a pink circle! Cancel</ButtonComponent>
AttachmentView Component
<AttachmentViewComponent
key={this.state.attachFile ? this.state.attachFile.id : null}
attachFile={this.state.attachFile ? this.state.attachFile.base64 : null}
caption={'Select a document to preview'}
class={'approveStamp'}
/>
TypeScript
Typescript is fully supported as type definition files are provided in the npm package of frontend-library.
1.0.37
5 months ago
1.0.36
5 months ago
1.0.35
6 months ago
1.0.34
6 months ago
1.0.33
6 months ago
1.0.32
7 months ago
1.0.31
7 months ago
1.0.30
7 months ago
1.0.29
7 months ago
1.0.28
8 months ago
1.0.27
8 months ago
1.0.26
8 months ago
1.0.25
9 months ago
1.0.24
9 months ago
1.0.23
9 months ago
1.0.22
9 months ago
1.0.21
9 months ago
1.0.20
9 months ago
1.0.19
9 months ago
1.0.18
9 months ago
1.0.17
9 months ago
1.0.16
9 months ago
1.0.15
9 months ago
1.0.14
9 months ago
1.0.13
9 months ago
1.0.12
9 months ago
1.0.11
9 months ago
1.0.10
9 months ago
1.0.9
9 months ago
1.0.8
9 months ago
1.0.7
9 months ago
1.0.6
9 months ago
1.0.5
9 months ago
1.0.4
9 months ago
1.0.3
9 months ago
1.0.2
9 months ago
1.0.1
9 months ago
1.0.0
9 months ago