1.0.37 • Published 6 months ago
@eachawy/frontend-library v1.0.37
React General Components
Download
npm i frontend-library@versionStyles
@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
6 months ago
1.0.36
6 months ago
1.0.35
7 months ago
1.0.34
7 months ago
1.0.33
7 months ago
1.0.32
8 months ago
1.0.31
8 months ago
1.0.30
8 months ago
1.0.29
8 months ago
1.0.28
10 months ago
1.0.27
10 months ago
1.0.26
10 months ago
1.0.25
10 months ago
1.0.24
10 months ago
1.0.23
10 months ago
1.0.22
10 months ago
1.0.21
10 months ago
1.0.20
10 months ago
1.0.19
10 months ago
1.0.18
10 months ago
1.0.17
10 months ago
1.0.16
10 months ago
1.0.15
10 months ago
1.0.14
10 months ago
1.0.13
10 months ago
1.0.12
10 months ago
1.0.11
10 months ago
1.0.10
10 months ago
1.0.9
10 months ago
1.0.8
10 months ago
1.0.7
10 months ago
1.0.6
10 months ago
1.0.5
10 months ago
1.0.4
10 months ago
1.0.3
10 months ago
1.0.2
10 months ago
1.0.1
10 months ago
1.0.0
10 months ago