finezza-ui-component 1.8.7 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,193 +1,193 @@
1
- # finezza-ui-component
2
-
3
- > Components for finezza
4
-
5
- [![NPM](https://img.shields.io/npm/v/finezza-ui-component.svg)](https://www.npmjs.com/package/finezza-ui-component) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
6
-
7
- ## Install
8
-
9
- ```bash
10
- npm install --save finezza-ui-component
11
- ```
12
-
13
- ## Usage
14
-
15
- To Import ConfirmButton
16
-
17
- ```jsx
18
- import React, { Component } from 'react'
19
-
20
- import { ConfirmButton } from 'finezza-ui-component'
21
- class Example extends Component {
22
- render() {
23
- return (
24
- <ConfirmButton
25
- handleConfirm='func(), it will not return any value only take a callback function'
26
- buttonTitle='string, the name of the button'
27
- popupTitle='string, the title of the dialog box'
28
- className='object, will pass the className'
29
- style='object, styling object style'
30
- buttonType='string, icon -> if we need only icon, else it will show the texted button'
31
- color="string, it will take only the mentioned values -> 'default','inherit','primary','secondary'"
32
- IconButton='icon name, name of the icon if we want the button as only icon'
33
- disabled='bool, to disbale the button'
34
- type='string, the type of the button such as submit type'
35
- />
36
- )
37
- }
38
- }
39
- ```
40
-
41
- To Import CurrencyInputbox
42
-
43
- ```jsx
44
- import React, { Component } from 'react'
45
-
46
- import { CurrencyInputbox } from 'finezza-ui-component'
47
-
48
- class Example extends Component {
49
- render() {
50
- return (
51
- <CurrencyInputbox
52
- handleChange='func(event, value), will return event,value(without comma)'
53
- value='string, will place the value'
54
- label='string, will give the label of the textbox'
55
- name='string, will give the name of the textbox'
56
- errorMessage='string, will give the error message to show'
57
- required='bool, will give true or false'
58
- disable='bool, will give true or false'
59
- disableInword='if text in word is not required'
60
- />
61
- )
62
- }
63
- }
64
- ```
65
-
66
- To Import PercentageInputbox
67
-
68
- ```jsx
69
- import React, { Component } from 'react'
70
-
71
- import { PercentageInputbox } from 'finezza-ui-component'
72
-
73
- class Example extends Component {
74
- render() {
75
- return (
76
- <PercentageInputbox
77
- handleChange='func, will return event'
78
- value='string, will place the value'
79
- label='string, will give the label of the textbox'
80
- name='string, will give the name of the textbox'
81
- errorMessage='string, will give the error message to show'
82
- required='bool, will give true or false'
83
- disable='bool, will give true or false'
84
- inputMask='string, will give the valid masking pattern'
85
- />
86
- )
87
- }
88
- }
89
- ```
90
-
91
- To Import Textbox
92
-
93
- ```jsx
94
- import React, { Component } from 'react'
95
-
96
- import { Textbox } from 'finezza-ui-component'
97
-
98
- class Example extends Component {
99
- render() {
100
- return (
101
- <Textbox
102
- handleChange='func, will return event'
103
- value='string, will place the value'
104
- label='string, will give the label of the textbox'
105
- name='string, will give the name of the textbox'
106
- errorMessage='string, will give the error message to show'
107
- required='bool, will give true or false'
108
- disable='bool, will give true or false'
109
- inputMask='string, will give the valid masking pattern'
110
- />
111
- )
112
- }
113
- }
114
- ```
115
-
116
- To Import Table
117
-
118
- ```jsx
119
- import React, { Component } from 'react'
120
-
121
- import { CustomTable } from 'finezza-ui-component'
122
-
123
- class Example extends Component {
124
- const
125
- tableHeader = [
126
- {
127
- displayName: 'AMOUNT',
128
- fieldName: 'amount',
129
- isAmount: true,
130
- width: '550px',
131
- align: 'center'
132
- }
133
- ]
134
- render() {
135
- return (
136
- <CustomTable
137
- tableHeader='array'
138
- rowData='array'
139
- checkbox='bool'
140
- handleCheckBox='func,(will return index of selected rows)'
141
- title='string'
142
- onClickRow='func (will return index of select row)'
143
- bankStyle='bool'
144
- />
145
- )
146
- }
147
- }
148
- ```
149
-
150
- To Import Loading Screen
151
-
152
- ```jsx
153
- import React, { Component } from 'react'
154
-
155
- import { LoadingScreen } from 'finezza-ui-component'
156
-
157
- class Example extends Component {
158
- render() {
159
- return (
160
- <LoadingScreen src='if we need to change the logo, by default it will show finezza logo' />
161
- )
162
- }
163
- }
164
- ```
165
-
166
- To Import Spinner
167
-
168
- ```jsx
169
- import React, { Component } from 'react'
170
-
171
- import { SpinnerScreen } from 'finezza-ui-component'
172
-
173
- class Example extends Component {
174
- render() {
175
- return (
176
- <SpinnerScreen
177
- open='bool'
178
- src='if we need to change the logo, by default it will show finezza logo'
179
- />
180
- )
181
- }
182
- }
183
- ```
184
-
185
- To Import all together
186
-
187
- ```jsx
188
- import { SpinnerScreen, LoadingScreen, CustomTable } from 'finezza-ui-component'
189
- ```
190
-
191
- ## License
192
-
193
- MIT © [](https://github.com/)
1
+ # finezza-ui-component
2
+
3
+ > Components for finezza
4
+
5
+ [![NPM](https://img.shields.io/npm/v/finezza-ui-component.svg)](https://www.npmjs.com/package/finezza-ui-component) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
6
+
7
+ ## Install
8
+
9
+ ```bash
10
+ npm install --save finezza-ui-component
11
+ ```
12
+
13
+ ## Usage
14
+
15
+ To Import ConfirmButton
16
+
17
+ ```jsx
18
+ import React, { Component } from 'react'
19
+
20
+ import { ConfirmButton } from 'finezza-ui-component'
21
+ class Example extends Component {
22
+ render() {
23
+ return (
24
+ <ConfirmButton
25
+ handleConfirm='func(), it will not return any value only take a callback function'
26
+ buttonTitle='string, the name of the button'
27
+ popupTitle='string, the title of the dialog box'
28
+ className='object, will pass the className'
29
+ style='object, styling object style'
30
+ buttonType='string, icon -> if we need only icon, else it will show the texted button'
31
+ color="string, it will take only the mentioned values -> 'default','inherit','primary','secondary'"
32
+ IconButton='icon name, name of the icon if we want the button as only icon'
33
+ disabled='bool, to disbale the button'
34
+ type='string, the type of the button such as submit type'
35
+ />
36
+ )
37
+ }
38
+ }
39
+ ```
40
+
41
+ To Import CurrencyInputbox
42
+
43
+ ```jsx
44
+ import React, { Component } from 'react'
45
+
46
+ import { CurrencyInputbox } from 'finezza-ui-component'
47
+
48
+ class Example extends Component {
49
+ render() {
50
+ return (
51
+ <CurrencyInputbox
52
+ handleChange='func(event, value), will return event,value(without comma)'
53
+ value='string, will place the value'
54
+ label='string, will give the label of the textbox'
55
+ name='string, will give the name of the textbox'
56
+ errorMessage='string, will give the error message to show'
57
+ required='bool, will give true or false'
58
+ disable='bool, will give true or false'
59
+ disableInword='if text in word is not required'
60
+ />
61
+ )
62
+ }
63
+ }
64
+ ```
65
+
66
+ To Import PercentageInputbox
67
+
68
+ ```jsx
69
+ import React, { Component } from 'react'
70
+
71
+ import { PercentageInputbox } from 'finezza-ui-component'
72
+
73
+ class Example extends Component {
74
+ render() {
75
+ return (
76
+ <PercentageInputbox
77
+ handleChange='func, will return event'
78
+ value='string, will place the value'
79
+ label='string, will give the label of the textbox'
80
+ name='string, will give the name of the textbox'
81
+ errorMessage='string, will give the error message to show'
82
+ required='bool, will give true or false'
83
+ disable='bool, will give true or false'
84
+ inputMask='string, will give the valid masking pattern'
85
+ />
86
+ )
87
+ }
88
+ }
89
+ ```
90
+
91
+ To Import Textbox
92
+
93
+ ```jsx
94
+ import React, { Component } from 'react'
95
+
96
+ import { Textbox } from 'finezza-ui-component'
97
+
98
+ class Example extends Component {
99
+ render() {
100
+ return (
101
+ <Textbox
102
+ handleChange='func, will return event'
103
+ value='string, will place the value'
104
+ label='string, will give the label of the textbox'
105
+ name='string, will give the name of the textbox'
106
+ errorMessage='string, will give the error message to show'
107
+ required='bool, will give true or false'
108
+ disable='bool, will give true or false'
109
+ inputMask='string, will give the valid masking pattern'
110
+ />
111
+ )
112
+ }
113
+ }
114
+ ```
115
+
116
+ To Import Table
117
+
118
+ ```jsx
119
+ import React, { Component } from 'react'
120
+
121
+ import { CustomTable } from 'finezza-ui-component'
122
+
123
+ class Example extends Component {
124
+ const
125
+ tableHeader = [
126
+ {
127
+ displayName: 'AMOUNT',
128
+ fieldName: 'amount',
129
+ isAmount: true,
130
+ width: '550px',
131
+ align: 'center'
132
+ }
133
+ ]
134
+ render() {
135
+ return (
136
+ <CustomTable
137
+ tableHeader='array'
138
+ rowData='array'
139
+ checkbox='bool'
140
+ handleCheckBox='func,(will return index of selected rows)'
141
+ title='string'
142
+ onClickRow='func (will return index of select row)'
143
+ bankStyle='bool'
144
+ />
145
+ )
146
+ }
147
+ }
148
+ ```
149
+
150
+ To Import Loading Screen
151
+
152
+ ```jsx
153
+ import React, { Component } from 'react'
154
+
155
+ import { LoadingScreen } from 'finezza-ui-component'
156
+
157
+ class Example extends Component {
158
+ render() {
159
+ return (
160
+ <LoadingScreen src='if we need to change the logo, by default it will show finezza logo' />
161
+ )
162
+ }
163
+ }
164
+ ```
165
+
166
+ To Import Spinner
167
+
168
+ ```jsx
169
+ import React, { Component } from 'react'
170
+
171
+ import { SpinnerScreen } from 'finezza-ui-component'
172
+
173
+ class Example extends Component {
174
+ render() {
175
+ return (
176
+ <SpinnerScreen
177
+ open='bool'
178
+ src='if we need to change the logo, by default it will show finezza logo'
179
+ />
180
+ )
181
+ }
182
+ }
183
+ ```
184
+
185
+ To Import all together
186
+
187
+ ```jsx
188
+ import { SpinnerScreen, LoadingScreen, CustomTable } from 'finezza-ui-component'
189
+ ```
190
+
191
+ ## License
192
+
193
+ MIT © [](https://github.com/)
@@ -0,0 +1 @@
1
+ [data-simplebar]{position:relative;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start}.simplebar-wrapper{overflow:hidden;width:inherit;height:inherit;max-width:inherit;max-height:inherit}.simplebar-mask{direction:inherit;position:absolute;overflow:hidden;padding:0;margin:0;inset:0;width:auto!important;height:auto!important;z-index:0}.simplebar-offset{direction:inherit!important;box-sizing:inherit!important;resize:none!important;position:absolute;inset:0;padding:0;margin:0;-webkit-overflow-scrolling:touch}.simplebar-content-wrapper{direction:inherit;box-sizing:border-box!important;position:relative;display:block;height:100%;width:auto;max-width:100%;max-height:100%;overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.simplebar-content-wrapper::-webkit-scrollbar,.simplebar-hide-scrollbar::-webkit-scrollbar{display:none;width:0;height:0}.simplebar-content:after,.simplebar-content:before{content:" ";display:table}.simplebar-placeholder{max-height:100%;max-width:100%;width:100%;pointer-events:none}.simplebar-height-auto-observer-wrapper{box-sizing:inherit!important;height:100%;width:100%;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none;flex-grow:inherit;flex-shrink:0;flex-basis:0}.simplebar-height-auto-observer{box-sizing:inherit;display:block;opacity:0;position:absolute;top:0;left:0;height:1000%;width:1000%;min-height:1px;min-width:1px;overflow:hidden;pointer-events:none;z-index:-1}.simplebar-track{z-index:1;position:absolute;right:0;bottom:0;pointer-events:none;overflow:hidden}[data-simplebar].simplebar-dragging,[data-simplebar].simplebar-dragging .simplebar-content{pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}[data-simplebar].simplebar-dragging .simplebar-track{pointer-events:all}.simplebar-scrollbar{position:absolute;left:0;right:0;min-height:10px}.simplebar-scrollbar:before{position:absolute;content:"";background:#000;border-radius:7px;left:2px;right:2px;opacity:0;transition:opacity .2s .5s linear}.simplebar-scrollbar.simplebar-visible:before{opacity:.5;transition-delay:0s;transition-duration:0s}.simplebar-track.simplebar-vertical{top:0;width:11px}.simplebar-scrollbar:before{inset:2px}.simplebar-track.simplebar-horizontal{left:0;height:11px}.simplebar-track.simplebar-horizontal .simplebar-scrollbar{inset:0 auto 0 0;min-height:0;min-width:10px;width:auto}[data-simplebar-direction=rtl] .simplebar-track.simplebar-vertical{right:auto;left:0}.simplebar-dummy-scrollbar-size{direction:rtl;position:fixed;opacity:0;visibility:hidden;height:500px;width:500px;overflow-y:hidden;overflow-x:scroll;-ms-overflow-style:scrollbar!important}.simplebar-dummy-scrollbar-size>div{width:200%;height:200%;margin:10px 0}.simplebar-hide-scrollbar{position:fixed;left:0;visibility:hidden;overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none}