groundfloor-react-ui 1.0.0 → 1.0.1
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 +2 -2
- package/assets/icons/file-upload.svg +3 -0
- package/components/Accordion/Accordion.js +2 -2
- package/components/Form/FormComponent.js +1 -1
- package/components/Form/HeaderComponent.js +1 -6
- package/components/Icon/Icon.js +6 -6
- package/components/Inputs/DateSelect.js +2 -2
- package/components/Inputs/DropdownSelect.js +307 -301
- package/components/Inputs/DropzoneInput.js +226 -136
- package/components/Inputs/NumericInput.js +1 -2
- package/components/Inputs/Signature.js +142 -109
- package/components/Inputs/TextArea.js +1 -2
- package/components/Inputs/TextInput.js +3 -6
- package/components/Inputs/TimeInput.js +3 -4
- package/components/Modal/ModalComp.js +68 -46
- package/components/Modal/index.js +0 -1
- package/components/constants/defaultStyle.js +16 -20
- package/components/constants/defaultThemeColor.js +2 -1
- package/dist/index.es.js +421 -436
- package/dist/index.js +284 -299
- package/package.json +1 -1
- package/components/Inputs/CheckBoxEditableInput.js +0 -352
- package/components/Inputs/CheckBoxInputMS.js +0 -160
- package/components/Inputs/TextInputClicable.js +0 -198
- package/components/Inputs/TextInputClicableMS.js +0 -255
- package/components/Modal/Modal.js +0 -116
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@ The official component library for GroundFloor application
|
|
|
7
7
|
The package can be installed via [npm](https://github.com/npm/cli):
|
|
8
8
|
|
|
9
9
|
```
|
|
10
|
-
npm install
|
|
10
|
+
npm install groundfloor-react-ui --save
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
## Pre-requisites
|
|
@@ -17,4 +17,4 @@ The following peer dependencies are required to run in a React Project
|
|
|
17
17
|
- React v16.8 or greater
|
|
18
18
|
- styled-components v5 or greater
|
|
19
19
|
|
|
20
|
-
---
|
|
20
|
+
---
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M10.926 4.72609L8.14392 7.26414C7.84042 7.54002 7.38517 7.65037 6.97038 7.54921C6.54548 7.44806 6.22175 7.1446 6.11047 6.76757C5.98907 6.38134 6.11047 5.97673 6.42408 5.69165L11.2801 1.27765C11.3914 1.1765 11.533 1.09374 11.6847 1.04776C11.9781 0.937409 12.312 0.937409 12.6054 1.04776C12.7571 1.10293 12.8886 1.1765 13.01 1.27765L17.866 5.69165C18.0987 5.90316 18.2201 6.17903 18.2201 6.4733C18.2201 6.76757 18.0886 7.05264 17.866 7.25495C17.6334 7.47565 17.3197 7.586 16.996 7.586C16.6723 7.586 16.3587 7.46645 16.1361 7.25495L13.354 4.72609V15.3105C13.354 15.9174 12.8077 16.414 12.14 16.414C11.4723 16.414 10.926 15.9174 10.926 15.3105V4.72609ZM21.852 15.3105C21.852 14.7036 22.3983 14.207 23.066 14.207C23.7337 14.207 24.28 14.7036 24.28 15.3105V19.7245C24.28 21.5545 22.6512 23.035 20.638 23.035H3.642C1.62878 23.035 0 21.5545 0 19.7245V15.3105C0 14.7036 0.5463 14.207 1.214 14.207C1.8817 14.207 2.428 14.7036 2.428 15.3105V19.7245C2.428 20.3314 2.9743 20.828 3.642 20.828H20.638C21.3057 20.828 21.852 20.3314 21.852 19.7245V15.3105Z" fill="#2E56F4"/>
|
|
3
|
+
</svg>
|
|
@@ -42,7 +42,7 @@ export const Accordion = ({
|
|
|
42
42
|
style={
|
|
43
43
|
toggleIconAnimation &&
|
|
44
44
|
contentIsOpen ? { transform: 'rotate(180deg)', transition: 'transform ease 95ms', background: 'transparent' } :
|
|
45
|
-
{ transform: 'rotate(0deg)', background: 'transparent' }
|
|
45
|
+
{ transform: 'rotate(0deg)', transition: 'transform ease 95ms', background: 'transparent' }
|
|
46
46
|
}
|
|
47
47
|
>
|
|
48
48
|
{icon}
|
|
@@ -58,7 +58,7 @@ export const Accordion = ({
|
|
|
58
58
|
// contentIsOpen={contentIsOpen}
|
|
59
59
|
{...props}
|
|
60
60
|
style={
|
|
61
|
-
contentIsOpen ? { height: contentRef.current.scrollHeight + 'px', } : { height: '0px', borderBottom: 'none' }
|
|
61
|
+
contentIsOpen ? { height: contentRef.current.scrollHeight + 'px', } : { height: '0px', borderBottom: 'none', }
|
|
62
62
|
}
|
|
63
63
|
content={content}
|
|
64
64
|
/>}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { Fragment } from 'react'
|
|
2
|
-
import { FormContainer, FormWrapper, MultiColumnWrapper, MultiColumnDiv
|
|
2
|
+
import { FormContainer, FormWrapper, MultiColumnWrapper, MultiColumnDiv } from './StyledComponent';
|
|
3
3
|
import defaultThemeColor from '../constants/defaultThemeColor'
|
|
4
4
|
import { Header } from '../Header';
|
|
5
5
|
import { Label } from '../Label';
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
import React
|
|
2
|
-
import { Label } from '../..';
|
|
3
|
-
import { SubmitButtonContainer } from './StyledComponent';
|
|
1
|
+
import React from 'react'
|
|
4
2
|
import defaultThemeColor from '../constants/defaultThemeColor'
|
|
5
3
|
import userIcon from "../../assets/icons/users.svg";
|
|
6
4
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
5
|
export const HeaderComponent = ({ title, subtitle, wrapperstyle }) => {
|
|
11
6
|
|
|
12
7
|
const titleStyle = {
|
package/components/Icon/Icon.js
CHANGED
|
@@ -45,6 +45,7 @@ import zoomInWhite from '../../assets/icons/zoom-in-white.svg'
|
|
|
45
45
|
import view from '../../assets/icons/view.svg'
|
|
46
46
|
import user from '../../assets/icons/users.svg'
|
|
47
47
|
import watcher from '../../assets/icons/watcher.svg'
|
|
48
|
+
import fileUpload from '../../assets/icons/file-upload.svg'
|
|
48
49
|
|
|
49
50
|
|
|
50
51
|
/** icon name should be kebab-case, e.g "plus-outline" */
|
|
@@ -72,14 +73,14 @@ const iconObj = {
|
|
|
72
73
|
'star': star,
|
|
73
74
|
'cloud-icon': cloudIcon,
|
|
74
75
|
'check-icon': checkIcon,
|
|
75
|
-
'arrow-rotate':arrowRotate,
|
|
76
|
+
'arrow-rotate': arrowRotate,
|
|
76
77
|
'magnifier-icon': magnifier,
|
|
77
78
|
'connection': connection,
|
|
78
79
|
'door-internal-active': doorInternalActive,
|
|
79
80
|
'ellipses-horizontal': ellipsesHorizontal,
|
|
80
81
|
'ellipses': ellipses,
|
|
81
82
|
'file-attach-white': fileAttachWhite,
|
|
82
|
-
'functional-equation':equation,
|
|
83
|
+
'functional-equation': equation,
|
|
83
84
|
"menu-ellipse-two": menuEllipseTwo,
|
|
84
85
|
'menu-ellipse': menuEllipse,
|
|
85
86
|
'pause-all': pauseAll,
|
|
@@ -88,9 +89,8 @@ const iconObj = {
|
|
|
88
89
|
'zoom-in-white': zoomInWhite,
|
|
89
90
|
'watcher': watcher,
|
|
90
91
|
'view': view,
|
|
91
|
-
'user-icon':user,
|
|
92
|
-
|
|
93
|
-
|
|
92
|
+
'user-icon': user,
|
|
93
|
+
'file-upload': fileUpload,
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
const StyledSVGIcon = styled(ReactSVG)`
|
|
@@ -158,4 +158,4 @@ Icon.propTypes = {
|
|
|
158
158
|
Icon.defaultProps = {
|
|
159
159
|
size: 16,
|
|
160
160
|
color: defaultThemeColor.primary['primary-1'],
|
|
161
|
-
}
|
|
161
|
+
}
|
|
@@ -7,7 +7,6 @@ import defaultThemeColor from '../constants/defaultThemeColor';
|
|
|
7
7
|
|
|
8
8
|
import { Icon } from "../Icon";
|
|
9
9
|
|
|
10
|
-
const border = `#D4D7E3`;
|
|
11
10
|
|
|
12
11
|
const Wrapper = styled.div`
|
|
13
12
|
|
|
@@ -32,11 +31,12 @@ const Wrapper = styled.div`
|
|
|
32
31
|
}
|
|
33
32
|
|
|
34
33
|
.react-datepicker__input-container{
|
|
35
|
-
border: 1px solid ${border};
|
|
34
|
+
border: 1px solid ${defaultThemeColor.border};
|
|
36
35
|
border-radius: 4px;
|
|
37
36
|
padding: 8px 12px;
|
|
38
37
|
display: flex;
|
|
39
38
|
align-items: center;
|
|
39
|
+
background-color: ${({ theme }) => theme.bgColor};
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
&:focus-within {
|