groundfloor-react-ui 1.0.4 → 1.0.5

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.
@@ -1,4 +1,3 @@
1
- /* eslint-disable no-unused-expressions */
2
1
  import styled from "styled-components";
3
2
 
4
3
  export const PageContent = styled.div`
@@ -21,7 +20,7 @@ export const StyledRowSearch = styled.div`
21
20
  width: 100%;
22
21
  padding: 25px;
23
22
  column-gap: 18px;
24
- align-items: flex-start;
23
+ align-items: center;
25
24
  box-sizing: border-box;
26
25
  background: linear-gradient(
27
26
  0deg,
@@ -61,7 +60,7 @@ export const StyledRowSearch = styled.div`
61
60
 
62
61
  & label {
63
62
  font-size: 14px;
64
- // padding-bottom: 10px;
63
+ padding-bottom: 10px;
65
64
  margin-bottom: 0;
66
65
  }
67
66
 
@@ -118,7 +117,7 @@ export const StyledClearSearch = styled.span`
118
117
  export const StyledCentralBar = styled.div`
119
118
  display: flex;
120
119
  flex-direction: column;
121
- flex-grow: 1;
120
+ ${'' /* flex-grow: 1; */}
122
121
  max-width: 1340px;
123
122
  width: 100%;
124
123
  align-items: center;
@@ -204,8 +203,6 @@ export const ActionItem = styled.div`
204
203
 
205
204
  export const FormContainer = styled.div`
206
205
  position: relative;
207
- padding: 25px;
208
- z-index: 2;
209
206
  display: flex;
210
207
  width: 100%;
211
208
  column-gap: 18px;
@@ -217,8 +214,7 @@ export const FormContainer = styled.div`
217
214
  hsla(0, 0%, 100%, 0.5) 100%
218
215
  );
219
216
  border-radius: 6px;
220
- // margin-bottom: 25px;
221
-
217
+
222
218
  @media (max-width: 900px) {
223
219
  flex-wrap: wrap;
224
220
  height: fit-content;
@@ -251,7 +247,7 @@ export const FormContainer = styled.div`
251
247
 
252
248
  & label {
253
249
  font-size: 14px;
254
- // padding-bottom: 10px;
250
+ padding-bottom: 10px;
255
251
  margin-bottom: 0;
256
252
  }
257
253
 
@@ -294,7 +290,7 @@ export const FormContainer = styled.div`
294
290
  `;
295
291
 
296
292
  export const FormWrapper = styled.form`
297
- width: 100%;
293
+ width: 40vw;
298
294
  display: flex;
299
295
  justify-content: center;
300
296
  flex-direction: column;
@@ -303,21 +299,20 @@ export const FormWrapper = styled.form`
303
299
 
304
300
  export const SubmitButtonContainer = styled.div`
305
301
  display: flex;
306
- justify-content: center;
307
-
308
- // custom styles
309
- ${({ style }) => style}
302
+ justify-content: end;
310
303
  `;
311
304
 
312
305
  export const MultiColumnWrapper = styled.div`
313
306
  display: flex;
314
307
  justify-content: center;
315
308
  flex-direction: row;
316
- {/*align-items: center;*/}
309
+ align-items: flex-start;
317
310
  gap: 20px;
318
311
  `;
319
312
 
320
313
  export const MultiColumnDiv = styled.div`
321
- width:50%;
322
- width: ${({ cols }) => { Math.floor(100 / cols) + '%' }};
314
+ width: 48;
315
+ max-width: 48%;
316
+ min-width: 48%;
317
+
323
318
  `;
@@ -0,0 +1 @@
1
+ export * from './StyledComponent';
@@ -0,0 +1 @@
1
+ export * from './StyledComponent';
@@ -1,11 +1,11 @@
1
1
  import React, { Fragment } from 'react'
2
- import { FormContainer, FormWrapper, MultiColumnWrapper, MultiColumnDiv } from './StyledComponent';
3
2
  import defaultThemeColor from '../constants/defaultThemeColor'
4
3
  import { Header } from '../Header';
5
4
  import { Label } from '../Label';
6
5
  import { CheckBoxInput, DateSelect, DropdownSelect, DropzoneInput, NumericInput, RadioInput, SearchInput, SignatureInput, TextArea, TextInput, ToggleSwitch } from '../Inputs';
7
6
  import { Rating } from '../Rating';
8
7
  import { PrimaryButton, SecondaryButton, TinyButton } from '../Button';
8
+ import { FormContainer, FormWrapper, MultiColumnDiv, MultiColumnWrapper } from '../DesignComponent';
9
9
 
10
10
 
11
11
 
@@ -34,7 +34,7 @@ export const FormComponent = ({ formData, ...props }) => {
34
34
  text={item.text}
35
35
  {...props}
36
36
  style={{ marginBottom: '7px' }}
37
- />
37
+ />
38
38
  </MultiColumnDiv>
39
39
  <MultiColumnDiv>
40
40
  <pre>
@@ -48,7 +48,7 @@ export const FormComponent = ({ formData, ...props }) => {
48
48
  const label = (item) => {
49
49
  return (
50
50
  <Label
51
- style={{ marginBottom: '7px' }}
51
+ style={{ marginBottom: '7px' }}
52
52
  {...item}
53
53
  {...props}
54
54
  />
@@ -1,6 +1,6 @@
1
1
  import React, { Fragment, useState } from 'react'
2
2
  import { PrimaryButton, SecondaryButton } from '../Button';
3
- import { SubmitButtonContainer } from './StyledComponent';
3
+ import { SubmitButtonContainer } from '../DesignComponent';
4
4
 
5
5
 
6
6
  export const SubmitComponent = ({ formData, onSubmit, onReset, style, ...props }) => {
@@ -1,4 +1,3 @@
1
1
  export * from './FormComponent';
2
2
  export * from './HeaderComponent';
3
3
  export * from './SubmitComponent';
4
- export * from './StyledComponent';