1.0.3 ā€¢ Published 1 year ago

@erpardeepjain/rc-pui v1.0.3

Weekly downloads
-
License
-
Repository
github
Last release
1 year ago

This Package contains below React UI Components available to use

  • Multi Select Dropdown
  • Currency Formatter
  • Search Input
  • Pagination

šŸ’„ Working Demo - Stackblitz

Documentation is still incomplete, will try to update asap. PR's for New Components are Welcome

Install

npm install --save @erpardeepjain/rc-pui

Usage

Pagination

NameDescription
pageCountnumber
itemCountnumber
currentPagenumber
onPageChangefunction
showLabelboolean
showStartEndPageboolean
import { Pagination } from '@erpardeepjain/rc-pui';
...
const {pageCount, itemCount, currentPage, onPageChange, showLabel, showStartEndPage } = paginationConfig;
...
<Pagination paginationConfig={paginationConfig} />

Currency Formatter

props

NameDescriptionDefault
valueintegerN/A
prefixstringN/A
zeroAllowedbooleantrue
noSpanbooleanN/A
onlyCommabooleanN/A
eleClassstringN/A
import { CurrencyFormat } from '@erpardeepjain/rc-pui';
...
<CurrencyFormat prefix="$" value="123456789" zeroAllowed />

Search Input

NameDescriptionDefault
placeholderstringSearch
waitTimeintiger500
minSearchCharintiger2
onChangefunctionfunction
import { SearchInput } from '@erpardeepjain/rc-pui';
...
const onSearchCB = (searchedValue) => {
    console.log(searchedValue);
};
...
<SearchInput onChange={onSearchCB} placeholder="Search Record" waitTime={300} minSearchChar={2} />

Multi Select Dropdown

NameDescriptionDefault
namestringN/A
labelstringSelect Multiple
optionsarray[]
selectAllbooleanfalse
onSelectfunctionfunction
import { MultiSelect } from '@erpardeepjain/rc-pui';
...
const handleFilter = (selectedItems) => {
    console.log(selectedItems);
};
...
<MultiSelect 
    title="Status"
    options={['completed', 'failed', 'processing']} 
    name="status"
    selectAll="true"
    onSelect={handleFilter}
/>
1.0.2

1 year ago

1.0.3

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

0.7.1

1 year ago

0.6.0

1 year ago

0.5.0

1 year ago

0.4.3

1 year ago

0.4.2

1 year ago

0.4.1

1 year ago

0.4.0

1 year ago

0.3.2

1 year ago

0.3.1

1 year ago

0.2.0

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago