4.0.1 • Published 1 year ago

@paprika/data-field v4.0.1

Weekly downloads
271
License
MIT
Repository
github
Last release
1 year ago

@paprika/data-field

Description

Field Types package is a set of components that help the Table and DataGrid to enhance the cell property to display different value in a ease manner

Installation

yarn add @paprika/data-field

or with npm:

npm install @paprika/data-field

Props

DataField

PropTyperequireddefaultDescription
childrennodetrue-

DataField.Numeric

PropTyperequireddefaultDescription
valuestring,numbertrue-The value to be localize
align DataField.types.align.LEFT, DataField.types.align.RIGHT, DataField.types.align.CENTERfalseDataField.types.align.RIGHTText alignment for the number default is right
intlobjectfalse{}The window.Intl.numberFormat option object https://mzl.la/3iW0ioQ
currencystringfalsenullWhen passing a currency string as 'EUR' or 'JPY' will display the correct currency symbol, is a short version instead of using the intl prop.
colorstringfalsenullAdd a color to the number, accept any kind of html color #F60, rgba(100,100,100, 0.5), etc.
hasOnlyRadixSeparatorboolfalsetrueControls if the number should be display with full delimiter or only the decimal separators

#DataField

DataField component helps during your Table or DataGrid implementation providing you with small components that encapsulate specific stylings for specific types that adapts to our Design System.

Uses

Once the component is imported:

import DataField from "@paprika/data-field";

You can make use of different Fields in the following way:

/**
 *  Using the Numeric field. The following applies either for the <Table /> or <DataGrid /> component
 */

import DataField from "@paprika/data-field";

function App() {
  return <DataField.Numeric align={DataField.types.align.LEFT} currency="USD" number={1240} />;
}

Links

4.0.1

1 year ago

4.0.1-next.0

1 year ago

4.0.0

1 year ago

4.0.0-next.0

1 year ago

3.0.2-next.0

2 years ago

3.0.3

2 years ago

3.0.2

2 years ago

3.0.3-next.0

2 years ago

3.0.0-next.0

2 years ago

3.0.1

2 years ago

3.0.0

2 years ago

3.0.1-next.0

2 years ago

2.0.4

3 years ago

2.0.4-next.0

3 years ago

2.0.3

3 years ago

2.0.2

3 years ago

2.0.3-next.0

3 years ago

2.0.2-next.0

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

2.0.1-next.0

3 years ago

2.0.0-next.0

3 years ago

1.0.37

3 years ago

1.0.36

3 years ago

1.0.35

3 years ago

1.0.36-next.0

3 years ago

1.0.35-next.0

3 years ago

1.0.37-next.0

3 years ago

1.0.34

3 years ago

1.0.34-next.1

3 years ago

1.0.34-next.0

3 years ago

1.0.33

3 years ago

1.0.32

3 years ago

1.0.31

4 years ago

1.0.32-next.0

3 years ago

1.0.32-next.1

3 years ago

1.0.33-next.0

3 years ago

1.0.29

4 years ago

1.0.28

4 years ago

1.0.29-next.2

4 years ago

1.0.29-next.0

4 years ago

1.0.28-next.0

4 years ago

1.0.29-next.1

4 years ago

1.0.30

4 years ago

1.0.31-next.0

4 years ago

1.0.30-next.0

4 years ago

1.0.30-next.1

4 years ago

1.0.26

4 years ago

1.0.27

4 years ago

1.0.27-next.0

4 years ago

1.0.26-next.1

4 years ago

1.0.26-next.0

4 years ago

1.0.25

4 years ago

1.0.24

4 years ago

1.0.24-next.0

4 years ago

1.0.25-next.0

4 years ago

1.0.23

4 years ago

1.0.23-next.0

4 years ago

1.0.22

4 years ago

1.0.22-next.0

4 years ago

1.0.21

4 years ago

1.0.21-next.0

4 years ago

1.0.20-next.0

4 years ago

1.0.20

4 years ago

1.0.19

4 years ago

1.0.19-next.0

4 years ago

1.0.18

4 years ago

1.0.18-next.0

4 years ago

1.0.17

4 years ago

1.0.16

4 years ago

1.0.17-next.0

4 years ago

1.0.16-next.0

4 years ago

1.0.13-next.0

4 years ago

1.0.13-next.2

4 years ago

1.0.13-next.1

4 years ago

1.0.14-next.0

4 years ago

1.0.15

4 years ago

1.0.15-next.0

4 years ago

1.0.14

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.12-next.0

4 years ago

1.0.11

4 years ago

1.0.11-next.0

4 years ago

1.0.10

4 years ago

1.0.10-alpha.3

4 years ago

1.0.10-alpha.2

4 years ago

1.0.10-alpha.1

4 years ago

1.0.10-alpha.0

4 years ago

1.0.9

4 years ago

1.0.9-alpha.0

4 years ago

1.0.8

4 years ago

1.0.8-alpha.0

4 years ago

1.0.7

4 years ago

1.0.7-alpha.0

4 years ago

1.0.6

4 years ago

1.0.6-alpha.1

4 years ago

1.0.6-alpha.0

4 years ago

1.0.5

4 years ago

1.0.5-alpha.0

4 years ago

1.0.4

5 years ago

1.0.4-alpha.0

5 years ago

1.0.3

5 years ago

1.0.3-alpha.2

5 years ago

1.0.3-alpha.1

5 years ago

1.0.3-alpha.0

5 years ago

1.0.2

5 years ago

1.0.2-alpha.2

5 years ago

1.0.2-alpha.1

5 years ago

1.0.1

5 years ago

1.0.2-alpha.0

5 years ago

1.0.1-alpha.1

5 years ago

1.0.1-alpha.0

5 years ago

1.0.0

5 years ago

0.1.3

5 years ago

0.1.3-alpha.5

5 years ago

0.1.3-alpha.4

5 years ago

0.1.3-alpha.3

5 years ago

0.1.3-alpha.2

5 years ago

0.1.3-alpha.1

5 years ago

0.1.3-alpha.0

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago