groundfloor-react-ui 1.2.7 → 1.2.8

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.
@@ -83,7 +83,7 @@ const OptionText = styled.span`
83
83
  else if (!checked && !defaultTextColor) return theme.neutral['neutral-2'];
84
84
  }};
85
85
 
86
- margin-right: ${({ inline }) => (inline ? '30px' : '0px')};
86
+ margin-right: ${({ inline }) => (inline ? '30px' : '10px')};
87
87
 
88
88
  // custom styles
89
89
  ${({ optionTextStyle }) => optionTextStyle}
@@ -96,9 +96,9 @@ const WrapperDiv = styled.label`
96
96
  width: fit-content;
97
97
  margin-bottom: ${({ inline }) => (!inline ? '18px !important' : '')};
98
98
  cursor: pointer;
99
- align-items: center;
100
99
  display: flex;
101
100
  gap: 10px;
101
+ align-items: start;
102
102
 
103
103
  // custom styles
104
104
  ${({ wrapperStyles }) => wrapperStyles}
@@ -293,6 +293,16 @@ CheckBoxInput.propTypes = {
293
293
  inline: PropTypes.bool,
294
294
  /**
295
295
  * Array that will be rendered for checkbox options
296
+ ex: [
297
+ {
298
+ label: 'Lorem ipsum dolor sit amet',
299
+ value: 'Option One',
300
+ disabled: false,
301
+ id: '1'
302
+ // disabledColor: '#B25068',
303
+ },
304
+ { label: 'Option Two', value: 'Option Two', checked: true, id: '2' },
305
+ ]
296
306
  */
297
307
  options: PropTypes.array,
298
308
  /**
@@ -311,6 +321,8 @@ CheckBoxInput.propTypes = {
311
321
  * Wrapper styles
312
322
  */
313
323
  wrapperStyles: PropTypes.object,
324
+
325
+
314
326
  };
315
327
 
316
328
  CheckBoxInput.defaultProps = {
@@ -101,6 +101,8 @@ export const Navbar = ({
101
101
  listElementStyle,
102
102
  customSelectCardColor,
103
103
  user,
104
+ firstBottomContent,
105
+ secondBottomContent,
104
106
  ...props
105
107
  }) => {
106
108
  const activeTheme = useTheme() || defaultThemeColor;
@@ -287,12 +289,13 @@ export const Navbar = ({
287
289
  >
288
290
  <ListElementFooter
289
291
  listElementStyle={listElementStyle}
290
- onClick={() => { }}
291
292
  >
292
- <p>Change Password</p>
293
+ {firstBottomContent}
294
+
293
295
  </ListElementFooter>
294
296
  <ListElementFooter onClick={() => { }}>
295
- <p>Sign Out</p>
297
+
298
+ {secondBottomContent}
296
299
  </ListElementFooter>
297
300
  </div>
298
301
  }
@@ -198,4 +198,10 @@ Sidebar.propTypes = {
198
198
  * Component to pin the sidebar on large screen
199
199
  */
200
200
  pinner: PropTypes.any,
201
+ };
202
+
203
+
204
+ Sidebar.defaultProps = {
205
+ forceClose: () => { },
206
+ forceOpen: false,
201
207
  };
@@ -344,6 +344,7 @@ const defaultStyles = {
344
344
  */
345
345
  'checkBox-outer': {
346
346
  border: `2px solid ${defaultThemeColor.border}`,
347
+ minWidth: '20px',
347
348
  width: '20px',
348
349
  height: '20px',
349
350
  'border-radius': '3px',
@@ -353,6 +354,7 @@ const defaultStyles = {
353
354
  'checkBox-inner': {
354
355
  'background-repeat': 'no-repeat',
355
356
  'background-position': 'center',
357
+ minWidth: '20px',
356
358
  width: '20px',
357
359
  height: '20px',
358
360
  color: `${defaultThemeColor.bgColor}`,