groundfloor-react-ui 1.2.2 → 1.2.4
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/components/Avatar/AvatarSBfooter.js +1 -3
- package/components/Button/PrimaryButton.js +1 -1
- package/components/Cards/DocumentCard.js +126 -126
- package/components/Cards/index.js +1 -1
- package/components/Content/Content.js +1 -2
- package/components/Content/index.js +1 -1
- package/components/DesignComponent/StyledComponent/StyledComponent.js +1 -0
- package/components/DesignComponent/StyledComponent/index.js +1 -1
- package/components/DesignComponent/index.js +1 -1
- package/components/ErrorBoundary/ErrorBoundary.js +1 -1
- package/components/Footer/Footer.js +1 -2
- package/components/Footer/FooterContent.js +1 -3
- package/components/Footer/index.js +2 -1
- package/components/Form/SubmitComponent.js +1 -1
- package/components/Form/index.js +1 -0
- package/components/GroupButtons/ButtonPopup.js +2 -2
- package/components/GroupButtons/GroupButtons.js +1 -1
- package/components/GroupButtons/index.js +1 -1
- package/components/GroupStatusCircle/GroupStatusCircle.js +1 -1
- package/components/Header/Header.js +2 -2
- package/components/HyperLink/HyperLink.js +2 -2
- package/components/Icon/Icon.js +46 -46
- package/components/Inputs/ColorInput.js +47 -46
- package/components/Inputs/DropzoneInput.js +1 -1
- package/components/Inputs/NumericInput.js +5 -5
- package/components/Inputs/PasswordInput.js +5 -5
- package/components/Inputs/RadioInput.js +15 -14
- package/components/Inputs/Signature.js +1 -1
- package/components/Inputs/TextInput.js +4 -4
- package/components/Inputs/TimeInput.js +1 -1
- package/components/Label/Label.js +8 -8
- package/components/Loaders/Loader.js +3 -3
- package/components/Overlay/Overlay.js +2 -2
- package/components/Pagination/Pagination.js +17 -17
- package/components/ProgressSteps/ProgressSteps.js +1 -1
- package/components/SecondaryLink/DarkSecondaryLink.js +1 -1
- package/components/SecondaryLink/LightSecondaryLink.js +1 -1
- package/components/SecondaryLink/index.js +1 -1
- package/components/Sidebar/Sidebar.js +1 -1
- package/components/Sidebar/index.js +1 -1
- package/components/StatusChip/PrimaryStatusChip.js +1 -1
- package/components/StatusChip/SecondaryStatusChip.js +1 -1
- package/components/StatusChip/SlimPrimaryStatusChip.js +1 -1
- package/components/StatusChip/SlimSecondaryStatusChip.js +1 -1
- package/components/StatusCircle/StatusCircle.js +1 -1
- package/components/Tooltip/Tooltip.js +279 -279
- package/components/constants/defaultStyle.js +20 -20
- package/components/constants/defaultThemeColor.js +1 -1
- package/components/global/FontStyle.js +10 -10
- package/dist/index.es.js +222 -222
- package/dist/index.js +156 -156
- package/package.json +1 -1
|
@@ -15,8 +15,8 @@ background-color: ${({ theme }) => theme.bgColor};
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
${({ inBuiltCss, defaultColorWrapperStyle }) => {
|
|
18
|
-
|
|
19
|
-
}}
|
|
18
|
+
return getDefaultStyles(inBuiltCss, defaultColorWrapperStyle);
|
|
19
|
+
}}
|
|
20
20
|
// custom styles
|
|
21
21
|
${({ customColorWrapperStyle }) => customColorWrapperStyle}
|
|
22
22
|
|
|
@@ -41,8 +41,8 @@ padding: 0;
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
${({ inBuiltCss, defaultInputColorStyle }) => {
|
|
44
|
-
|
|
45
|
-
}}
|
|
44
|
+
return getDefaultStyles(inBuiltCss, defaultInputColorStyle);
|
|
45
|
+
}}
|
|
46
46
|
// custom styles
|
|
47
47
|
${({ customInputColorStyle }) => customInputColorStyle}
|
|
48
48
|
`;
|
|
@@ -57,45 +57,46 @@ export const ColorInput = ({
|
|
|
57
57
|
customColorWrapperStyle,
|
|
58
58
|
id,
|
|
59
59
|
...props
|
|
60
|
-
|
|
61
|
-
|
|
60
|
+
}) => {
|
|
61
|
+
const activeTheme = useTheme() || defaultThemeColor;
|
|
62
62
|
return (
|
|
63
|
-
|
|
63
|
+
|
|
64
64
|
<ColorWrapper customColorWrapperStyle={customColorWrapperStyle}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
65
|
+
defaultColorWrapperStyle={'ColorWrapper'}
|
|
66
|
+
theme={activeTheme}
|
|
67
|
+
inBuiltCss={defaultStyles}
|
|
68
|
+
{...props}>
|
|
69
|
+
|
|
70
|
+
<InputColor
|
|
71
71
|
id={id}
|
|
72
72
|
customInputColorStyle={customInputColorStyle}
|
|
73
|
-
defaultInputColorStyle={'input-color'}
|
|
73
|
+
defaultInputColorStyle={'input-color'}
|
|
74
74
|
inBuiltCss={defaultStyles}
|
|
75
75
|
theme={activeTheme}
|
|
76
76
|
{...props}
|
|
77
77
|
type="color"
|
|
78
78
|
value={value}
|
|
79
|
-
|
|
79
|
+
|
|
80
80
|
onChange={
|
|
81
|
-
(e)=>{
|
|
82
|
-
setValue(e.target.value)
|
|
83
|
-
/>
|
|
84
|
-
<Label
|
|
85
|
-
themeColor={defaultThemeColor}
|
|
86
|
-
customStyles={labelStyle}
|
|
87
|
-
type={'label-text'}
|
|
88
|
-
text={label}
|
|
89
|
-
style={{
|
|
90
|
-
display: 'flex',
|
|
91
|
-
paddingBottom: '0px',
|
|
92
|
-
paddingLeft: '10px'
|
|
81
|
+
(e) => {
|
|
82
|
+
setValue(e.target.value)
|
|
93
83
|
}}
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
84
|
+
/>
|
|
85
|
+
<Label
|
|
86
|
+
themeColor={defaultThemeColor}
|
|
87
|
+
customStyles={labelStyle}
|
|
88
|
+
type={'label-text'}
|
|
89
|
+
text={label}
|
|
90
|
+
style={{
|
|
91
|
+
display: 'flex',
|
|
92
|
+
paddingBottom: '0px',
|
|
93
|
+
paddingLeft: '10px'
|
|
94
|
+
}}
|
|
95
|
+
{...props}
|
|
96
|
+
/>
|
|
97
|
+
|
|
97
98
|
</ColorWrapper>
|
|
98
|
-
|
|
99
|
+
|
|
99
100
|
);
|
|
100
101
|
};
|
|
101
102
|
|
|
@@ -107,8 +108,8 @@ ColorInput.propTypes = {
|
|
|
107
108
|
/**
|
|
108
109
|
* Label style of ColorInput
|
|
109
110
|
*/
|
|
110
|
-
|
|
111
|
-
|
|
111
|
+
labelStyle: PropTypes.object,
|
|
112
|
+
|
|
112
113
|
/**
|
|
113
114
|
* color value of input
|
|
114
115
|
*/
|
|
@@ -124,21 +125,21 @@ ColorInput.propTypes = {
|
|
|
124
125
|
/**
|
|
125
126
|
* custom style of the wrapper around the color-input
|
|
126
127
|
*/
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
128
|
+
customColorWrapperStyle: PropTypes.object,
|
|
129
|
+
/**
|
|
130
|
+
* id of the colorInput
|
|
131
|
+
*/
|
|
132
|
+
id: PropTypes.string
|
|
132
133
|
|
|
133
134
|
}
|
|
134
135
|
|
|
135
|
-
ColorInput.defaultProps ={
|
|
136
|
-
label: '',
|
|
137
|
-
labelStyle: {},
|
|
138
|
-
customInputColorStyle: {},
|
|
139
|
-
customColorWrapperStyle: {},
|
|
140
|
-
value: '#FFFFFF',
|
|
141
|
-
setValue: ()=>{ },
|
|
142
|
-
id: ''
|
|
136
|
+
ColorInput.defaultProps = {
|
|
137
|
+
label: '',
|
|
138
|
+
labelStyle: {},
|
|
139
|
+
customInputColorStyle: {},
|
|
140
|
+
customColorWrapperStyle: {},
|
|
141
|
+
value: '#FFFFFF',
|
|
142
|
+
setValue: () => { },
|
|
143
|
+
id: ''
|
|
143
144
|
};
|
|
144
145
|
|
|
@@ -149,10 +149,10 @@ NumericInput.propTypes = {
|
|
|
149
149
|
* custom style of input element
|
|
150
150
|
*/
|
|
151
151
|
inputStyle: PropTypes.object,
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
152
|
+
/**
|
|
153
|
+
* id of the number input
|
|
154
|
+
*/
|
|
155
|
+
id: PropTypes.string,
|
|
156
156
|
};
|
|
157
157
|
|
|
158
158
|
NumericInput.defaultProps = {
|
|
@@ -161,5 +161,5 @@ NumericInput.defaultProps = {
|
|
|
161
161
|
labelInline: false,
|
|
162
162
|
inputStyle: {},
|
|
163
163
|
inputValue: null,
|
|
164
|
-
id:''
|
|
164
|
+
id: ''
|
|
165
165
|
};
|
|
@@ -154,10 +154,10 @@ export const PasswordInput = ({
|
|
|
154
154
|
inBuiltCss={defaultStyles}
|
|
155
155
|
{...props}
|
|
156
156
|
/>
|
|
157
|
-
{showHideIcon === true ?
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
157
|
+
{showHideIcon === true ?
|
|
158
|
+
<div className='input-icon' onClick={() => setShowEye(!showEye)}>
|
|
159
|
+
{showEye ? <Icon icon='eye-show' /> : <Icon icon='eye-hide' />}
|
|
160
|
+
</div> : ''
|
|
161
161
|
}
|
|
162
162
|
</TextWrapper>
|
|
163
163
|
{passwordRules ? <div style={{ ...rulesStyle, marginLeft: '5px' }}>{passwordRules}</div> : ''}
|
|
@@ -220,7 +220,7 @@ PasswordInput.propTypes = {
|
|
|
220
220
|
/**
|
|
221
221
|
* hide icon shows or not
|
|
222
222
|
*/
|
|
223
|
-
|
|
223
|
+
showHideIcon: PropTypes.bool,
|
|
224
224
|
};
|
|
225
225
|
|
|
226
226
|
PasswordInput.defaultProps = {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
|
+
import React from 'react';
|
|
2
3
|
import styled, { useTheme } from 'styled-components';
|
|
3
4
|
import defaultStyles from '../constants/defaultStyle';
|
|
4
5
|
import defaultThemeColor from '../constants/defaultThemeColor';
|
|
@@ -132,7 +133,7 @@ export const RadioInput = ({
|
|
|
132
133
|
{options.map((item, i) => {
|
|
133
134
|
return (
|
|
134
135
|
<WrapperDiv
|
|
135
|
-
|
|
136
|
+
WrapperDivStyle={WrapperDivStyle}
|
|
136
137
|
key={i + Math.random() * 101}
|
|
137
138
|
id={item.id}
|
|
138
139
|
inline={inline}
|
|
@@ -213,16 +214,16 @@ RadioInput.propTypes = {
|
|
|
213
214
|
/**
|
|
214
215
|
* RadioButton Contents i.e:-
|
|
215
216
|
[
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
217
|
+
{
|
|
218
|
+
label: 'First Radio Button',
|
|
219
|
+
value: 'first',
|
|
220
|
+
disabled: true,
|
|
221
|
+
disabledColor: '#ae3232',
|
|
222
|
+
id: '1'
|
|
223
|
+
},
|
|
224
|
+
{ label: 'Second Radio Button', value: 'second', id: '2' },
|
|
225
|
+
{ label: 'Third Radio Button', value: 'third', id: '3' },
|
|
226
|
+
]
|
|
226
227
|
*/
|
|
227
228
|
options: PropTypes.array,
|
|
228
229
|
/**
|
|
@@ -230,9 +231,9 @@ RadioInput.propTypes = {
|
|
|
230
231
|
*/
|
|
231
232
|
optionStyle: PropTypes.object,
|
|
232
233
|
/**
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
234
|
+
* RadioButton wraperdiv style object
|
|
235
|
+
*/
|
|
236
|
+
WrapperDivStyle: PropTypes.object,
|
|
236
237
|
/**
|
|
237
238
|
* RadioButton checked value
|
|
238
239
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import PropTypes from 'prop-types';
|
|
2
|
-
import { useEffect, useRef, useState } from 'react';
|
|
2
|
+
import React, { useEffect, useRef, useState } from 'react';
|
|
3
3
|
import SignaturePad from 'react-signature-pad-wrapper';
|
|
4
4
|
import styled, { useTheme } from 'styled-components';
|
|
5
5
|
import defaultStyles from '../constants/defaultStyle';
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import PropTypes from 'prop-types';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
import styled from 'styled-components';
|
|
4
|
-
import defaultThemeColor from '../constants/defaultThemeColor';
|
|
5
4
|
import defaultStyles from '../constants/defaultStyle';
|
|
5
|
+
import defaultThemeColor from '../constants/defaultThemeColor';
|
|
6
6
|
import getDefaultStyles from '../constants/utils';
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
const LabelLayout = styled.label`
|
|
9
9
|
//Set the styles from the default styles object
|
|
10
|
-
${
|
|
10
|
+
${({ theme, type }) => {
|
|
11
11
|
return getDefaultStyles(theme, type);
|
|
12
|
-
|
|
12
|
+
}}
|
|
13
13
|
|
|
14
14
|
// custom styles
|
|
15
|
-
${({customStyles})=>customStyles}
|
|
15
|
+
${({ customStyles }) => customStyles}
|
|
16
16
|
`;
|
|
17
17
|
|
|
18
|
-
export const Label = ({ customStyles, text, className,required, ...props }) => {
|
|
18
|
+
export const Label = ({ customStyles, text, className, required, ...props }) => {
|
|
19
19
|
const theme = defaultStyles;
|
|
20
20
|
return (
|
|
21
21
|
<LabelLayout required={required} theme={theme} customStyles={customStyles} type={'label'} {...props}>
|
|
@@ -42,7 +42,7 @@ Label.propTypes = {
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
Label.defaultProps = {
|
|
45
|
-
text:''
|
|
45
|
+
text: ''
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import styled, { keyframes, css } from "styled-components";
|
|
3
1
|
import PropTypes from 'prop-types';
|
|
2
|
+
import React from "react";
|
|
3
|
+
import styled, { css, keyframes } from "styled-components";
|
|
4
4
|
import defaultStyles from '../constants/defaultStyle';
|
|
5
5
|
|
|
6
6
|
const ldsSpinner = keyframes`
|
|
@@ -128,7 +128,7 @@ const Spinner = styled.div`
|
|
|
128
128
|
}
|
|
129
129
|
`
|
|
130
130
|
|
|
131
|
-
export const Loader = ({
|
|
131
|
+
export const Loader = ({ size, thickness, propellerHeight, customStyles }) => {
|
|
132
132
|
const theme = defaultStyles;
|
|
133
133
|
|
|
134
134
|
return (
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import PropTypes from 'prop-types';
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { usePopperTooltip } from 'react-popper-tooltip';
|
|
3
4
|
import styled from 'styled-components';
|
|
4
5
|
import defaultStyles from '../constants/defaultStyle';
|
|
5
|
-
import { usePopperTooltip } from 'react-popper-tooltip';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Primary UI component for user interaction
|
|
@@ -10,24 +10,24 @@ const StyledPagination = styled.div`
|
|
|
10
10
|
`;
|
|
11
11
|
|
|
12
12
|
export const Pagination = ({ ...props }) => {
|
|
13
|
-
|
|
13
|
+
const activeTheme = useTheme() || defaultThemeColor;
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
return (
|
|
16
|
+
<StyledPagination theme={activeTheme}>{props.children}</StyledPagination>
|
|
17
|
+
);
|
|
18
18
|
};
|
|
19
19
|
|
|
20
20
|
const Item = styled.div`
|
|
21
21
|
font-size: 14px;
|
|
22
22
|
color: ${({ selected, theme }) =>
|
|
23
|
-
|
|
23
|
+
selected ? theme.variant['primary-1'] : null};
|
|
24
24
|
|
|
25
25
|
svg {
|
|
26
26
|
width: 14px;
|
|
27
27
|
height: 14px;
|
|
28
28
|
path {
|
|
29
29
|
fill: ${({ selected, theme }) =>
|
|
30
|
-
|
|
30
|
+
selected ? theme.variant['primary-1'] : theme.variant['neutral-2']};
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
|
|
@@ -38,22 +38,22 @@ const Item = styled.div`
|
|
|
38
38
|
`;
|
|
39
39
|
|
|
40
40
|
Pagination.PageItem = function PageItem({ selected, ...props }) {
|
|
41
|
-
|
|
41
|
+
const activeTheme = useTheme() || defaultThemeColor;
|
|
42
42
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
43
|
+
return (
|
|
44
|
+
<Item selected={selected} theme={activeTheme} {...props}>
|
|
45
|
+
{props.children}
|
|
46
|
+
</Item>
|
|
47
|
+
);
|
|
48
48
|
};
|
|
49
49
|
|
|
50
50
|
Pagination.PageItem.propTypes = {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
51
|
+
/**
|
|
52
|
+
* Is Page selected?
|
|
53
|
+
*/
|
|
54
|
+
selected: PropTypes.bool,
|
|
55
55
|
};
|
|
56
56
|
|
|
57
57
|
Pagination.PageItem.defaultProps = {
|
|
58
|
-
|
|
58
|
+
selected: false,
|
|
59
59
|
};
|