0.2.56 • Published 5 days ago

@aeros-ui/components v0.2.56

Weekly downloads
-
License
-
Repository
github
Last release
5 days ago

AEROS Component Library

A UI and component library for ELANY's new AEROS system.
Built with React, Material UI, and Material-Table to allow developers to access the ELANY UI theme and custom components for a faster workflow.

Contents

Installation

Install

//with npm

npm install @aeros-ui/components
//with yarn

yarn add @aeros-ui/components

Update Package

//with npm

npm install @aeros-ui/components@latest
//with yarn    

yarn add @aeros-ui/components@latest

Peer Dependencies

React

This package requires use of react version 17^ and react-dom version 17^

// with npx  

npx create-react-app <app-name>
//with yarn  

yarn create react-app <app-name>

Material UI

This package requires use of Material UI version 5^

//with npm  

npm install @emotion/react @emotion/styled @mui/material @mui/icons-material @mui/lab @mui/styles
//with yarn

yarn add @emotion/react @emotion/styled @mui/material @mui/icons-material @mui/lab @mui/styles

Material-Table

This package requires use of @material-table/core and @material-table/exporters
@material-table/core documentation (new release)
@material-table/exporters documentation (new release)
material-table documentation (older version)

//with npm   

npm install @material-table/core @material-table/exporters
//with yarn

yarn add @material-table/core @material-table/exporters

Components

Accordions

Accordion Item

Import

import { AccordionItem } from '@aeros-ui/components';   

Props

NameTypeDescription
childrennodeThe content of the component.
disabledbooleanA true or false condition to disable the accordion.
expandedbooleanA true or false condition to expand the accordion panel.
panelNamestringThe header for the accordion.

Buttons

Choose File Button

Import

import { ChooseFileButton } from '@aeros-ui/components';  

Props

Search Button

Import

import { SearchButton } from '@aeros-ui/components';

Props

NameTypeDescription
onClickfunctionEvent fired when button is clicked
disabledbooleana true or false condition to disable the button

Addition MuiButton Props

Search Loading Button

Import

import { SearchLoadingButton } from '@aeros-ui/components';  

Props

The loading button has no required props.
Additonal MuiLoadingButton Props

Cards

TransactionCard

Import

import { TransactionCard } from '@aeros-ui/components';  

Props

NameTypeDescriptionOptions
childrennodeContent for the component
sideNoteelement or nullAn instance of the InfoSideNote or ErrorSideNote component.
selectedPolicyelement or nullAn instance of the SelectedPolicyTable component.
titlestringThe header component for the card.

Dialogs

Session Timeout

Import

import { SessionTimeout } from '@aeros-ui/components';

Props

NameTypeDescription
openbooleana true or false condition to open the dialog

Inputs

Currency Input

Import

import { CurrencyInput } from '@aeros-ui/components';

const CurrencyInputExample = () => {
    const [currencyValue, setCurrencyValue] = useState();
    return (
        <CurrencyInput
            label="Premium"
            value={currencyValue}
            onChange={(event, value)=> setCurrencyValue(value)}
        />
    )
}

Props

| Name | Type | Description | Options | | --- | --- | --- | | | color | string | The input color if color other than default is needed | info error | | disabled | boolean | A true or false condition to disable the input | | | error | boolean | A true or false condition to display the input in an error state | | | label | string | A label for the input if needed | | | onChange | function | A callback function fired when the value is changed. | | | value | any | The value of the input element | |

Date Input

Import

import { DateInput } from '@aeros-ui/components';   

Props

Search Input

Import

import { SearchInput } from '@aeros-ui/components';  

Props

NameTypeDescriptionOptions
labelstringA label for the input
onChangestringA callback function fired when the value is changed.
widthstring   or   numericThe width of the inputpercentage, pixels, or numeric value
valueanyThe value of the input element

Additional MuiTextField Props

Text Input

Import

import { TextInput } from '@aeros-ui/components';

Props

Select Input

Import

import { TransTypeSelect } from '@aeros-ui/components';   

Props

NameTypeDescriptionOptions
colorstringThe color for the input
disabledbooleanA condition to disable the select
errorbooleanA condition to show the select in an error state.
labelstringA label for the select
onChangefunctionA callback function fired when the value is changed.
optionsarrayArray of options for the select's menu items
valueanyThe value of the input element
widthstring   or   numericThe width of the inputpercentage, pixels, or numeric value

Side Notes

Error Side Note

Import

import { ErrorSideNote } from '@aeros-ui/components';

Props

NameTypeDescription
titlestringTitle of the side note for the card header
dataarrayarray of objects passed to the list items containing the side note messages to be displayed [{message: "message text"}]

Info Side Note

Import

import { InfoSideNote } from '@aeros-ui/components';

Props

NameTypeDescription
titlestringTitle of the side note for the card header
dataarrayarray of objects passed to the list items containing the side note messages to be displayed [{message: "message text"}]

Steppers

Transaction Stepper

Import

import { TransactionStepper } from '@aeros-ui/components';  

Props

NameTypeDescription
stepsarrayA list of the step labels.
activeStepnumberThe index of the activeStep
disabledStepsarrayA list of the disabled steps indices.
completedStepsarrayA list of the completed steps indices.

Tables

Nested Table Header

A component to use when a Material-Table component requires a details panel.

Import

import { NestedTableHeader } from '@aeros-ui/components';  

Props

NameTypeDescription
tableSubheadersarrayA list of the nested table headers to display.

Table Filter Input

A component to use to override the Material-Table Filter Component.

Import

import { TableFilterInput } from '@aeros-ui/components';   

Props

NameTypeDescription
onChangefunctionA built in function from Material-Table that handles the filter onChange for the component.

Additional MuiTextField Props

Table Toolbar

A component to use to override the current MToolbar component from Material-Table.

Import

import { TableToolbar } from '@aeros-ui/components';

Props

NameTypeDescription
onFilterClickfunctionEvent fired when the filter icon button in the toolbar is clicked.
onDensityClickfunctionEvent fired when the density icon button in the toolbar is clicked.
showFiltersbooleanA true or false condition to show the filter inputs below the table header.

0.2.56

5 days ago

0.2.52

5 days ago

0.2.51

5 days ago

0.2.55

5 days ago

0.2.54

5 days ago

0.2.53

5 days ago

0.2.1

6 days ago

0.2.3

6 days ago

0.2.2

6 days ago

0.2.5

6 days ago

0.2.4

6 days ago

0.1.99

2 months ago

0.2.0

2 months ago

0.1.98

2 months ago

0.1.97

2 months ago

0.1.96

3 months ago

0.1.95

6 months ago

0.1.92

10 months ago

0.1.93

9 months ago

0.1.94

9 months ago

0.1.90

11 months ago

0.1.91

11 months ago

0.1.85

1 year ago

0.1.86

12 months ago

0.1.87

12 months ago

0.1.88

12 months ago

0.1.89

12 months ago

0.1.80

1 year ago

0.1.81

1 year ago

0.1.82

1 year ago

0.1.83

1 year ago

0.1.84

1 year ago

0.1.75

1 year ago

0.1.76

1 year ago

0.1.77

1 year ago

0.1.78

1 year ago

0.1.79

1 year ago

0.1.74

1 year ago

0.1.71

1 year ago

0.1.72

1 year ago

0.1.73

1 year ago

0.1.70

1 year ago

0.1.63

1 year ago

0.1.64

1 year ago

0.1.65

1 year ago

0.1.66

1 year ago

0.1.67

1 year ago

0.1.68

1 year ago

0.1.69

1 year ago

0.1.57

1 year ago

0.1.58

1 year ago

0.1.59

1 year ago

0.1.60

1 year ago

0.1.61

1 year ago

0.1.62

1 year ago

0.1.52

1 year ago

0.1.53

1 year ago

0.1.54

1 year ago

0.1.55

1 year ago

0.1.56

1 year ago

0.1.50

1 year ago

0.1.51

1 year ago

0.1.49

1 year ago

0.1.48

2 years ago

0.1.46

2 years ago

0.1.47

2 years ago

0.1.30

2 years ago

0.1.31

2 years ago

0.1.32

2 years ago

0.1.33

2 years ago

0.1.34

2 years ago

0.1.35

2 years ago

0.1.36

2 years ago

0.1.37

2 years ago

0.1.27

2 years ago

0.1.28

2 years ago

0.1.29

2 years ago

0.1.41

2 years ago

0.1.42

2 years ago

0.1.43

2 years ago

0.1.44

2 years ago

0.1.45

2 years ago

0.1.26

2 years ago

0.1.40

2 years ago

0.1.38

2 years ago

0.1.39

2 years ago

0.1.15

2 years ago

0.1.20

2 years ago

0.1.21

2 years ago

0.1.22

2 years ago

0.1.23

2 years ago

0.1.24

2 years ago

0.1.25

2 years ago

0.1.16

2 years ago

0.1.17

2 years ago

0.1.18

2 years ago

0.1.19

2 years ago

0.1.12

2 years ago

0.1.13

2 years ago

0.1.14

2 years ago

0.1.11

2 years ago

0.1.10

2 years ago

0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago