groundfloor-react-ui 1.2.8 → 1.2.10

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.
Files changed (186) hide show
  1. package/dist/index.es.js +461 -430
  2. package/dist/index.js +469 -438
  3. package/package.json +15 -43
  4. package/rollup.config.js +6 -6
  5. package/assets/fonts/Averta/Averta-Black.woff2 +0 -0
  6. package/assets/fonts/Averta/Averta-BlackItalic.woff2 +0 -0
  7. package/assets/fonts/Averta/Averta-Bold.woff2 +0 -0
  8. package/assets/fonts/Averta/Averta-BoldItalic.woff2 +0 -0
  9. package/assets/fonts/Averta/Averta-ExtraBold.woff2 +0 -0
  10. package/assets/fonts/Averta/Averta-ExtraBoldItalic.woff2 +0 -0
  11. package/assets/fonts/Averta/Averta-ExtraThin.woff2 +0 -0
  12. package/assets/fonts/Averta/Averta-ExtraThinItalic.woff2 +0 -0
  13. package/assets/fonts/Averta/Averta-Light.woff2 +0 -0
  14. package/assets/fonts/Averta/Averta-LightItalic.woff2 +0 -0
  15. package/assets/fonts/Averta/Averta-Regular.woff2 +0 -0
  16. package/assets/fonts/Averta/Averta-RegularItalic.woff2 +0 -0
  17. package/assets/fonts/Averta/Averta-SemiBold.woff2 +0 -0
  18. package/assets/fonts/Averta/Averta-SemiBoldItalic.woff2 +0 -0
  19. package/assets/fonts/Averta/Averta-Thin.woff2 +0 -0
  20. package/assets/fonts/Averta/Averta-ThinItalic.woff2 +0 -0
  21. package/assets/fonts/Beauty/BeautyDemo.woff +0 -0
  22. package/assets/icons/app-logo.svg +0 -3
  23. package/assets/icons/arrow-down.svg +0 -3
  24. package/assets/icons/arrow-rotate.svg +0 -1
  25. package/assets/icons/arrow-up.svg +0 -3
  26. package/assets/icons/bell.svg +0 -3
  27. package/assets/icons/check.svg +0 -3
  28. package/assets/icons/checkmark.svg +0 -3
  29. package/assets/icons/chevron-down.svg +0 -3
  30. package/assets/icons/chevron-left.svg +0 -3
  31. package/assets/icons/chevron-right.svg +0 -3
  32. package/assets/icons/cloud-icon.svg +0 -3
  33. package/assets/icons/connection.svg +0 -3
  34. package/assets/icons/cross-icon.svg +0 -3
  35. package/assets/icons/default.svg +0 -1
  36. package/assets/icons/door-internal-active.svg +0 -1
  37. package/assets/icons/edit-icon.svg +0 -3
  38. package/assets/icons/ellipses-horizontal.svg +0 -3
  39. package/assets/icons/ellipses.svg +0 -3
  40. package/assets/icons/email.svg +0 -3
  41. package/assets/icons/eye-hide-view.svg +0 -1
  42. package/assets/icons/eye-hide.svg +0 -1
  43. package/assets/icons/file-attach-white.svg +0 -3
  44. package/assets/icons/file-attach.svg +0 -3
  45. package/assets/icons/file-icon.svg +0 -1
  46. package/assets/icons/file-upload.svg +0 -3
  47. package/assets/icons/functional-equation-regular.svg +0 -147
  48. package/assets/icons/hamburger-menu.svg +0 -3
  49. package/assets/icons/heart.svg +0 -18
  50. package/assets/icons/image.svg +0 -3
  51. package/assets/icons/info.svg +0 -3
  52. package/assets/icons/jpg-icon.svg +0 -3
  53. package/assets/icons/magnifier.svg +0 -3
  54. package/assets/icons/menu-ellipse-two.svg +0 -1
  55. package/assets/icons/menu-ellipse.svg +0 -53
  56. package/assets/icons/pause-all.svg +0 -1
  57. package/assets/icons/pdf-icon.svg +0 -3
  58. package/assets/icons/pen-icon.svg +0 -3
  59. package/assets/icons/plus-outlined.svg +0 -3
  60. package/assets/icons/resume.svg +0 -1
  61. package/assets/icons/sign-icon.svg +0 -3
  62. package/assets/icons/star.svg +0 -3
  63. package/assets/icons/trash-icon.svg +0 -59
  64. package/assets/icons/triangle-down.svg +0 -3
  65. package/assets/icons/users.svg +0 -11
  66. package/assets/icons/view.svg +0 -3
  67. package/assets/icons/watcher.svg +0 -3
  68. package/assets/icons/zoom-in-white.svg +0 -1
  69. package/assets/styles/global.css +0 -0
  70. package/assets/styles/global.scss +0 -0
  71. package/components/Accordion/Accordion.js +0 -167
  72. package/components/Accordion/AccordionSB.js +0 -170
  73. package/components/Accordion/AccordionSBfooter.js +0 -171
  74. package/components/Accordion/index.js +0 -4
  75. package/components/ArrowBar/ArrowBar.js +0 -276
  76. package/components/ArrowBar/index.js +0 -2
  77. package/components/Avatar/Avatar.js +0 -171
  78. package/components/Avatar/AvatarSB.js +0 -255
  79. package/components/Avatar/AvatarSBfooter.js +0 -279
  80. package/components/Avatar/index.js +0 -4
  81. package/components/Banner/Banner.js +0 -70
  82. package/components/Banner/index.js +0 -2
  83. package/components/Breadcrumb/Breadcrumb.js +0 -225
  84. package/components/Breadcrumb/index.js +0 -2
  85. package/components/Button/PrimaryButton.js +0 -167
  86. package/components/Button/SecondaryButton.js +0 -156
  87. package/components/Button/TinyButton.js +0 -101
  88. package/components/Button/index.js +0 -6
  89. package/components/Cards/Card.js +0 -43
  90. package/components/Cards/CardRef.js +0 -71
  91. package/components/Cards/DocumentCard.js +0 -215
  92. package/components/Cards/index.js +0 -5
  93. package/components/Content/Content.js +0 -50
  94. package/components/Content/index.js +0 -1
  95. package/components/DesignComponent/StyledComponent/StyledComponent.js +0 -326
  96. package/components/DesignComponent/StyledComponent/index.js +0 -1
  97. package/components/DesignComponent/index.js +0 -1
  98. package/components/Divider/Divider.js +0 -56
  99. package/components/Divider/index.js +0 -2
  100. package/components/Drawer/Drawer.js +0 -84
  101. package/components/Drawer/index.js +0 -2
  102. package/components/ErrorBoundary/ErrorBoundary.js +0 -44
  103. package/components/ErrorBoundary/index.js +0 -1
  104. package/components/FilterChip/FilterChip.js +0 -70
  105. package/components/FilterChip/index.js +0 -1
  106. package/components/Footer/Footer.js +0 -57
  107. package/components/Footer/FooterContent.js +0 -98
  108. package/components/Footer/index.js +0 -3
  109. package/components/Form/FormComponent.js +0 -244
  110. package/components/Form/HeaderComponent.js +0 -64
  111. package/components/Form/SubmitComponent.js +0 -63
  112. package/components/Form/index.js +0 -5
  113. package/components/GroupAvatars/GroupAvatars.js +0 -139
  114. package/components/GroupAvatars/index.js +0 -1
  115. package/components/GroupButtons/ButtonPopup.js +0 -191
  116. package/components/GroupButtons/GroupButtons.js +0 -150
  117. package/components/GroupButtons/GroupButtonsPopup.js +0 -163
  118. package/components/GroupButtons/index.js +0 -3
  119. package/components/GroupStatusCircle/GroupStatusCircle.js +0 -135
  120. package/components/GroupStatusCircle/index.js +0 -1
  121. package/components/Header/Header.js +0 -58
  122. package/components/Header/index.js +0 -1
  123. package/components/HyperLink/HyperLink.js +0 -114
  124. package/components/HyperLink/index.js +0 -1
  125. package/components/Icon/Icon.js +0 -176
  126. package/components/Icon/index.js +0 -1
  127. package/components/Images/Image.js +0 -107
  128. package/components/Images/index.js +0 -2
  129. package/components/Inputs/CheckBoxInput.js +0 -339
  130. package/components/Inputs/ColorInput.js +0 -145
  131. package/components/Inputs/DateSelect.js +0 -461
  132. package/components/Inputs/DropdownSelect.js +0 -690
  133. package/components/Inputs/DropzoneInput.js +0 -450
  134. package/components/Inputs/NumericInput.js +0 -166
  135. package/components/Inputs/PasswordInput.js +0 -242
  136. package/components/Inputs/RadioInput.js +0 -292
  137. package/components/Inputs/SearchInput.js +0 -19
  138. package/components/Inputs/Signature.js +0 -369
  139. package/components/Inputs/TextArea.js +0 -214
  140. package/components/Inputs/TextInput.js +0 -235
  141. package/components/Inputs/TimeInput.js +0 -186
  142. package/components/Inputs/ToggleSwitch.js +0 -157
  143. package/components/Inputs/index.js +0 -15
  144. package/components/Label/Label.js +0 -48
  145. package/components/Label/index.js +0 -1
  146. package/components/Loaders/Loader.js +0 -179
  147. package/components/Loaders/index.js +0 -2
  148. package/components/Modal/ModalComp.js +0 -216
  149. package/components/Modal/index.js +0 -1
  150. package/components/Overlay/Overlay.js +0 -158
  151. package/components/Overlay/index.js +0 -1
  152. package/components/Pagination/Pagination.js +0 -59
  153. package/components/Pagination/index.js +0 -1
  154. package/components/ProgressBar/ProgressBar.js +0 -101
  155. package/components/ProgressBar/index.js +0 -1
  156. package/components/ProgressSteps/ProgressSteps.js +0 -121
  157. package/components/ProgressSteps/index.js +0 -1
  158. package/components/Rating/Rating.js +0 -258
  159. package/components/Rating/index.js +0 -1
  160. package/components/SecondaryLink/DarkSecondaryLink.js +0 -97
  161. package/components/SecondaryLink/LightSecondaryLink.js +0 -93
  162. package/components/SecondaryLink/index.js +0 -3
  163. package/components/Sidebar/Navbar.js +0 -306
  164. package/components/Sidebar/Sidebar.js +0 -207
  165. package/components/Sidebar/index.js +0 -3
  166. package/components/StatusChip/PrimaryStatusChip.js +0 -78
  167. package/components/StatusChip/SecondaryStatusChip.js +0 -78
  168. package/components/StatusChip/SlimPrimaryStatusChip.js +0 -92
  169. package/components/StatusChip/SlimSecondaryStatusChip.js +0 -93
  170. package/components/StatusChip/index.js +0 -6
  171. package/components/StatusCircle/StatusCircle.js +0 -64
  172. package/components/StatusCircle/index.js +0 -1
  173. package/components/Tables/Table.js +0 -178
  174. package/components/Tables/index.js +0 -1
  175. package/components/Tooltip/Tooltip.js +0 -581
  176. package/components/Tooltip/index.js +0 -1
  177. package/components/Typography/Typography.js +0 -77
  178. package/components/Typography/index.js +0 -2
  179. package/components/constants/colors.js +0 -33
  180. package/components/constants/defaultStyle.js +0 -801
  181. package/components/constants/defaultThemeColor.js +0 -16
  182. package/components/constants/index.js +0 -7
  183. package/components/constants/utils.js +0 -31
  184. package/components/global/FontStyle.js +0 -131
  185. package/components/global/index.js +0 -1
  186. package/index.js +0 -41
@@ -1,215 +0,0 @@
1
- import PropTypes from 'prop-types';
2
- import React from 'react';
3
- import styled, { css, useTheme } from 'styled-components';
4
- import defaultThemeColor from '../constants/defaultThemeColor';
5
-
6
- /**
7
- * Primary UI component for user interaction
8
- */
9
-
10
- const sizes = {
11
- sm: {
12
- cardWidth: '178px',
13
- cardMinHeight: '88px',
14
- borderRadius: '4px',
15
- border: '0.7px',
16
- bodyHeight: '55px',
17
- footerFontSize: '10px',
18
- footerMinHeight: '31px',
19
- footerPadding: '10.5px 16px',
20
- footerLineHeight: '16px',
21
- lineHeight: '12px',
22
- },
23
- md: {
24
- cardWidth: '215px',
25
- cardMinHeight: '123px',
26
- borderRadius: '6px',
27
- border: '1px',
28
- bodyHeight: '67px',
29
- footerFontSize: '14px',
30
- footerMinHeight: '54px',
31
- footerPadding: '18px 19px',
32
- footerLineHeight: '12px',
33
- lineHeight: '16px',
34
- },
35
- };
36
-
37
- const StyledDocumentCard = styled.div`
38
- ${({ trimFileName }) => {
39
- if (trimFileName) {
40
- return css`
41
- height: ${({ size }) => sizes[size].cardMinHeight};
42
- `;
43
- } else {
44
- return css`
45
- min-height: ${({ size }) => sizes[size].cardMinHeight};
46
- `;
47
- }
48
- }}
49
- width: ${({ size }) => sizes[size].cardWidth};
50
- border-radius: ${({ size }) => sizes[size].borderRadius};
51
- border: ${({ size }) => sizes[size].border} solid
52
- ${({ theme, variantBorder }) => theme.variant[variantBorder]};
53
- box-sizing: border-box;
54
-
55
- &:hover {
56
- border: ${({ size }) => sizes[size].border} solid
57
- ${({ theme, variantBorderHover }) => theme.variant[variantBorderHover]};
58
- button {
59
- &:hover {
60
- opacity: 0.8;
61
- }
62
- }
63
- }
64
- `;
65
-
66
- const StyledCardBody = styled.div`
67
- display: flex;
68
- justify-content: ${({ buttons }) =>
69
- buttons !== '11' ? 'center' : 'space-between'};
70
- align-items: center;
71
- height: ${({ size }) => sizes[size].bodyHeight};
72
- margin: 0;
73
- padding: ${({ size }) => sizes[size].bodyPadding};
74
- border: none;
75
- border-top-left-radius: ${({ size }) => sizes[size].borderRadius};
76
- border-top-right-radius: ${({ size }) => sizes[size].borderRadius};
77
- background-color: ${({ theme, variantBgBody }) =>
78
- theme.variant[variantBgBody]};
79
- background: linear-gradient(
80
- 0deg,
81
- rgba(226, 230, 245, 0.5),
82
- rgba(226, 230, 245, 0.5)
83
- )
84
- ${({ bgUrl }) => (bgUrl ? `, url('/images/documentCardBG.png')` : null)};
85
- background-size: cover;
86
- box-sizing: border-box;
87
- `;
88
-
89
- const StyledCardFooter = styled.div`
90
- ${({ trimFileName }) => {
91
- if (trimFileName) {
92
- return css`
93
- white-space: nowrap;
94
- overflow: hidden;
95
- text-overflow: ellipsis;
96
- height: ${({ size }) => sizes[size].footerMinHeight};
97
- `;
98
- } else {
99
- return css`
100
- display: flex;
101
- align-items: center;
102
- min-height: ${({ size }) => sizes[size].footerMinHeight};
103
- overflow-wrap: anywhere;
104
- hyphens: auto;
105
- `;
106
- }
107
- }}
108
- font-size: ${({ size }) => sizes[size].footerFontSize};
109
- padding: ${({ size }) => sizes[size].footerPadding};
110
- color: ${({ theme, variant }) => theme.variant[variant]};
111
- background-color: ${({ theme, variantBgFooter }) =>
112
- variantBgFooter ? theme.variant[variantBgFooter] : theme['bgColor']};
113
- box-sizing: border-box;
114
- line-height: ${({ size }) => sizes[size].lineHeight};
115
- border-bottom-left-radius: inherit;
116
- border-bottom-right-radius: inherit;
117
- `;
118
- export const DocumentCard = ({
119
- variant,
120
- variantBorder,
121
- variantBorderHover,
122
- variantBgBody,
123
- variantBgFooter,
124
- fileName,
125
- bgUrl,
126
- size,
127
- trimFileName,
128
- bodyContent,
129
- ...props
130
- }) => {
131
- const activeTheme = useTheme() || defaultThemeColor;
132
-
133
- return (
134
- <StyledDocumentCard
135
- variantBorder={variantBorder}
136
- variantBorderHover={variantBorderHover}
137
- variantBgBody={variantBgBody}
138
- size={size}
139
- trimFileName={trimFileName}
140
- theme={activeTheme}
141
- {...props}
142
- >
143
- <StyledCardBody bgUrl={bgUrl} size={size} theme={activeTheme}>
144
- {bodyContent}
145
- </StyledCardBody>
146
- <StyledCardFooter
147
- theme={activeTheme}
148
- title={fileName}
149
- variant={variant}
150
- variantBgFooter={variantBgFooter}
151
- trimFileName={trimFileName}
152
- size={size}
153
- >
154
- {fileName}
155
- </StyledCardFooter>
156
- </StyledDocumentCard>
157
- );
158
- };
159
-
160
- DocumentCard.propTypes = {
161
- /**
162
- * Color of Footer text. primary-1, 2, error, etc.
163
- */
164
- variant: PropTypes.string,
165
- /**
166
- * Color of DocumentCard border. primary-1, 2, error, etc.
167
- */
168
- variantBorder: PropTypes.string,
169
- /**
170
- * Color of DocumentCard border on hover. primary-1, 2, error, etc.
171
- */
172
- variantBorderHover: PropTypes.string,
173
- /**
174
- * Color of Body background. primary-1, 2, error, etc.
175
- */
176
- variantBgBody: PropTypes.string,
177
- /**
178
- * Color of Footer background. primary-1, 2, error, etc.
179
- */
180
- variantBgFooter: PropTypes.string,
181
- /**
182
- * String to display in the footer
183
- */
184
- fileName: PropTypes.string,
185
- /**
186
- * Url of the picture to display as card body background
187
- */
188
- bgUrl: PropTypes.string,
189
- /**
190
- * Size of the card small or medium
191
- */
192
- size: PropTypes.oneOf(['sm', 'md']),
193
- /**
194
- * If true if the fimeName is longer than the width is trimmed. If false the fileName is wrapped and the footer expands vertically
195
- */
196
- trimFileName: PropTypes.bool,
197
-
198
- /**
199
- * Children component of the Card Body
200
- */
201
- bodyContent: PropTypes.element,
202
- };
203
-
204
- DocumentCard.defaultProps = {
205
- variant: 'black',
206
- variantBorder: 'neutral-5',
207
- variantBorderHover: 'primary-1',
208
- variantBgBody: 'neutral-4',
209
- variantBgFooter: null,
210
- fileName: '',
211
- bgUrl: null,
212
- size: 'md',
213
- trimFileName: true,
214
- bodyContent: null,
215
- };
@@ -1,5 +0,0 @@
1
-
2
- export * from './Card';
3
- export * from './CardRef';
4
- export * from './DocumentCard';
5
-
@@ -1,50 +0,0 @@
1
- import PropTypes from 'prop-types';
2
- import React from 'react';
3
- import styled from 'styled-components';
4
- import defaultStyles from '../constants/defaultStyle';
5
- import getDefaultStyles from '../constants/utils';
6
-
7
- const ContentLayout = styled.div`
8
- //Set the styles from the default styles object
9
- ${({ theme, type }) => {
10
- return getDefaultStyles(theme, type);
11
- }}
12
- @media (max-width: 980px) {
13
- margin-left: 0px;
14
- }
15
- // custom styles
16
- ${({ customStyles }) => customStyles}
17
- `;
18
-
19
- export const Content = ({ theme, type, customStyles, ...props }) => {
20
- return (
21
- <ContentLayout theme={theme} customStyles={customStyles} type={type} {...props}>
22
- {props.children}
23
- </ContentLayout>
24
- )
25
- }
26
-
27
-
28
-
29
- Content.propTypes = {
30
- /**
31
- * Theme props
32
- */
33
- theme: PropTypes.object,
34
- /**
35
- * Custom style object
36
- */
37
- customStyles: PropTypes.object,
38
- /**
39
- * type Content
40
- */
41
- type: PropTypes.string,
42
- }
43
-
44
- Content.defaultProps = {
45
- theme: defaultStyles,
46
- customStyles: null,
47
- type: 'content'
48
- }
49
-
50
-
@@ -1 +0,0 @@
1
- export * from './Content';
@@ -1,326 +0,0 @@
1
- import React from 'react';
2
- import styled from "styled-components";
3
-
4
- export const PageContent = styled.div`
5
- width: 100%;
6
- display: flex;
7
- flex-direction: column;
8
- align-items: center;
9
- min-height: calc(100vh - 130px);
10
-
11
- button:hover,
12
- button:active,
13
- button:focus {
14
- outline: none;
15
- }
16
- `;
17
-
18
- export const StyledRowSearch = styled.div`
19
- position: relative;
20
- display: flex;
21
- width: 100%;
22
- padding: 25px;
23
- column-gap: 18px;
24
- align-items: center;
25
- box-sizing: border-box;
26
- background: linear-gradient(
27
- 0deg,
28
- hsla(0, 0%, 100%, 1) 20%,
29
- hsla(0, 0%, 100%, 0.5) 100%
30
- );
31
- border-radius: 6px;
32
-
33
- @media (max-width: 900px) {
34
- flex-wrap: wrap;
35
- height: fit-content;
36
- padding-bottom: 25.5px;
37
- }
38
-
39
- @media (max-width: 800px) {
40
- flex-wrap: nowrap;
41
- padding-bottom: 25.5px;
42
- align-items: stretch;
43
-
44
- & > div:nth-child(2) {
45
- margin-top: 26px;
46
- }
47
-
48
- & > span {
49
- margin-top: 26px;
50
- }
51
-
52
- & > * {
53
- flex-basis: unset;
54
- }
55
- }
56
-
57
- @media (max-width: 650px) {
58
- padding-top: 35px;
59
- padding-right: 39px;
60
- }
61
-
62
- & label {
63
- font-size: 14px;
64
- padding-bottom: 10px;
65
- margin-bottom: 0;
66
- }
67
-
68
- & first-child {
69
- &::placeholder {
70
- color: #a9b1b8;
71
- }
72
- }
73
-
74
- .single-select {
75
- flex-basis: 177px;
76
-
77
- @media (max-width: 800px) {
78
- flex-basis: unset;
79
- }
80
- }
81
-
82
- .selection-side {
83
- display: flex;
84
- align-items: center;
85
- position: absolute;
86
- right: 39px;
87
- top: 25.5px;
88
-
89
- svg {
90
- fill: ${({ defaultThemeColor }) =>
91
- defaultThemeColor.variant["primary-2"]};
92
-
93
- path {
94
- fill: ${({ defaultThemeColor }) =>
95
- defaultThemeColor.variant["primary-2"]};
96
- }
97
- }
98
-
99
- @media (max-width: 800px) {
100
- margin-right: 0;
101
- margin-top: 0;
102
- }
103
- }
104
- `;
105
-
106
- export const StyledClearSearch = styled.span`
107
- color: #2e56f4;
108
- font-style: normal;
109
- font-weight: normal;
110
- font-size: 14px;
111
- line-height: 17px;
112
- cursor: pointer;
113
- margin-top: 37px;
114
- margin-right: 65px;
115
- white-space: nowrap;
116
- `;
117
-
118
- export const StyledCentralBar = styled.div`
119
- display: flex;
120
- flex-direction: column;
121
- ${'' /* flex-grow: 1; */}
122
- max-width: 1340px;
123
- width: 100%;
124
- align-items: center;
125
- `;
126
- export const StyledWarning = styled.div`
127
- position: absolute;
128
- font-size: 12px;
129
- border-radius: 50%;
130
- right: 0;
131
- background-color: red;
132
- min-width: 20px;
133
- min-height: 20px;
134
- display: flex;
135
- align-items: center;
136
- justify-content: center;
137
- width: 4ch;
138
- height: 4ch;
139
- padding: 0px;
140
- transform: translate(30%, -30%);
141
- color: white;
142
- font-weight: 600;
143
- `;
144
-
145
- export const StyledCreateRow = styled.div`
146
- width: 90%;
147
- `;
148
-
149
- export const StyledRow = styled.div`
150
- background: linear-gradient(
151
- 0deg,
152
- hsla(0, 0%, 100%, 1) 20%,
153
- hsla(0, 0%, 100%, 0.5) 100%
154
- );
155
- width: 90%;
156
- `;
157
-
158
- export const StyledSearchRow = styled.div`
159
- width: 90%;
160
- `;
161
-
162
- export const ActionContainer = styled.div`
163
- display: flex;
164
- margin-left: auto !important;
165
- margin-right: auto !important;
166
- cursor: pointer;
167
- `;
168
-
169
- export const OverlayOptionContainer = styled.div`
170
- display: flex;
171
- flex-direction: column;
172
- width: 180px;
173
- background: #ffffff;
174
- box-shadow: 0px 5px 37px rgba(56, 66, 100, 0.15);
175
- border-radius: 6px;
176
- margin-right: 0.5rem;
177
- z-index: 999;
178
- `;
179
-
180
- export const OverlayOptionItemLabel = styled.div`
181
- margin: 10.5px 13px;
182
- padding: 0;
183
- `;
184
-
185
- export const ActionItem = styled.div`
186
- color: #081348;
187
- padding: 7.7px 6.5px 7.7px 24px;
188
- margin: 2.5px 13px;
189
- cursor: pointer;
190
- font-size: 12px;
191
- line-height: 15px;
192
-
193
- &:last-child {
194
- margin-bottom: 1rem;
195
- }
196
-
197
- position: relative;
198
-
199
- &:hover {
200
- background: #eaeefe;
201
- border-radius: 5px;
202
- }
203
- `;
204
-
205
- export const FormContainer = styled.div`
206
- position: relative;
207
- display: flex;
208
- width: 100%;
209
- column-gap: 18px;
210
- align-items: center;
211
- box-sizing: border-box;
212
- background: linear-gradient(
213
- 0deg,
214
- hsla(0, 0%, 100%, 1) 20%,
215
- hsla(0, 0%, 100%, 0.5) 100%
216
- );
217
- border-radius: 6px;
218
-
219
- @media (max-width: 900px) {
220
- flex-wrap: wrap;
221
- height: fit-content;
222
- padding-bottom: 25.5px;
223
- }
224
-
225
- @media (max-width: 800px) {
226
- flex-direction: column;
227
- flex-wrap: nowrap;
228
- padding-bottom: 25.5px;
229
- align-items: stretch;
230
-
231
- & > div:nth-child(2) {
232
- margin-top: 26px;
233
- }
234
-
235
- & > span {
236
- margin-top: 26px;
237
- }
238
-
239
- & > * {
240
- flex-basis: unset;
241
- }
242
- }
243
-
244
- @media (max-width: 650px) {
245
- padding-top: 35px;
246
- padding-right: 39px;
247
- }
248
-
249
- & label {
250
- font-size: 14px;
251
- padding-bottom: 10px;
252
- margin-bottom: 0;
253
- }
254
-
255
- & first-child {
256
- &::placeholder {
257
- color: #a9b1b8;
258
- }
259
- }
260
-
261
- .single-select {
262
- flex-basis: 177px;
263
-
264
- @media (max-width: 800px) {
265
- flex-basis: unset;
266
- }
267
- }
268
-
269
- .selection-side {
270
- display: flex;
271
- align-items: center;
272
- position: absolute;
273
- right: 39px;
274
- top: 25.5px;
275
-
276
- svg {
277
- fill: ${({ defaultThemeColor }) =>
278
- defaultThemeColor.variant["primary-2"]};
279
-
280
- path {
281
- fill: ${({ defaultThemeColor }) =>
282
- defaultThemeColor.variant["primary-2"]};
283
- }
284
- }
285
-
286
- @media (max-width: 800px) {
287
- margin-right: 0;
288
- margin-top: 0;
289
- }
290
- }
291
- `;
292
-
293
-
294
-
295
- export const SubmitButtonContainer = styled.div`
296
- display: flex;
297
- justify-content: end;
298
- `;
299
-
300
- export const MultiColumnWrapper = styled.div`
301
- display: flex;
302
- justify-content: center;
303
- flex-direction: row;
304
- align-items: flex-start;
305
- gap: 20px;
306
- `;
307
-
308
- export const MultiColumnDiv = styled.div`
309
- width: 48;
310
- max-width: 48%;
311
- min-width: 48%;
312
-
313
- `;
314
-
315
- const Wrapper = styled.form`
316
- width: 40vw;
317
- display: flex;
318
- justify-content: center;
319
- flex-direction: column;
320
- gap: 20px;
321
- ${({ customStyles }) => customStyles}
322
- `;
323
-
324
- export const FormWrapper = ({ customStyles, children }) => {
325
- return <Wrapper customStyles={customStyles}>{children}</Wrapper>;
326
- };
@@ -1 +0,0 @@
1
- export * from './StyledComponent';
@@ -1 +0,0 @@
1
- export * from './StyledComponent';
@@ -1,56 +0,0 @@
1
- import PropTypes from 'prop-types';
2
- import React from 'react';
3
- import styled, { useTheme } from 'styled-components';
4
- import defaultThemeColor from '../constants/defaultThemeColor';
5
-
6
- /**
7
- * Primary UI component for user interaction
8
- */
9
-
10
- const StyledDivider = styled.div`
11
- display: ${({ vertical }) => (vertical ? 'inline-block' : 'block')};
12
- background: ${({ theme, borderColor }) =>
13
- borderColor ? borderColor : theme.neutral['neutral-5']};
14
- content: '';
15
- height: ${({ vertical, thickness, height }) =>
16
- vertical ? height : thickness};
17
- width: ${({ vertical, thickness }) => (vertical ? thickness : null)};
18
- `;
19
- export const Divider = ({ vertical, borderColor, thickness, height, ...props }) => {
20
- const activeTheme = useTheme() || defaultThemeColor;
21
- return (
22
- <StyledDivider
23
- theme={activeTheme}
24
- borderColor={borderColor}
25
- thickness={thickness}
26
- vertical={vertical}
27
- height={height}
28
- {...props}
29
- />
30
- );
31
- };
32
-
33
- Divider.propTypes = {
34
- /**
35
- * Optional: How thick should be the divider in px
36
- */
37
- thickness: PropTypes.string,
38
- /**
39
- * Optional custom border color
40
- */
41
- borderColor: PropTypes.string,
42
- /**
43
- * Optional flag for vertical direction
44
- */
45
- vertical: PropTypes.bool,
46
- /**
47
- * Optional: How hight should be the divider in px (apply only when vertical is TRUE)
48
- */
49
- height: PropTypes.string,
50
- };
51
-
52
- Divider.defaultProps = {
53
- thickness: '2px',
54
- vertical: false,
55
- height: '10px',
56
- };
@@ -1,2 +0,0 @@
1
- export * from './Divider';
2
-