@spothero/ui 15.10.7 → 15.10.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spothero/ui",
3
- "version": "15.10.7",
3
+ "version": "15.10.9",
4
4
  "description": "SpotHero's React component UI library.",
5
5
  "main": "v2/index.js",
6
6
  "repository": "https://github.com/spothero/fe-monorepo",
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import {
2
3
  Alert as ChakraAlert,
3
4
  AlertTitle,
@@ -85,7 +86,7 @@ Alert.propTypes = {
85
86
  /** Status. One of: success, neutral, warning, or error */
86
87
  status: PropTypes.oneOf(['neutral', 'success', 'warning', 'error']),
87
88
  /** Title Text. Will not display title if empty */
88
- title: PropTypes.string,
89
+ title: PropTypes.node,
89
90
  /** Props to pass to button (like onClick). Will not display button if this or buttonText empty */
90
91
  buttonProps: PropTypes.object,
91
92
  /** Text of button. Will not display button if this or buttonProps empty */
@@ -99,7 +100,7 @@ Alert.propTypes = {
99
100
  /** Whether or not to show the icon */
100
101
  showIcon: PropTypes.bool,
101
102
  /** Description text. Will not display description if empty */
102
- description: PropTypes.string,
103
+ description: PropTypes.node,
103
104
  /** Size of the text */
104
105
  size: PropTypes.oneOf(['sm', 'md', 'lg']),
105
106
  };
@@ -12,7 +12,7 @@ const baseStyle = props => ({
12
12
  header,
13
13
  content: content(props),
14
14
  body: body(props),
15
- popper: popper(props),
15
+ popper,
16
16
  });
17
17
 
18
18
  export default merge(chakraDefaultTheme.components.Popover, {
@@ -2,7 +2,15 @@ const popoverContentStyles = ({variant}) => ({
2
2
  padding: 4,
3
3
  marginBottom: 0,
4
4
  maxWidth: '20rem',
5
+ borderRadius: 'base',
5
6
  background: variant === 'dark' ? 'secondary.default' : 'white',
7
+ boxShadow: '2px 2px 4px 0 rgba(0,45,91,0.1)',
8
+ color: variant === 'dark' ? 'white' : 'black',
9
+ borderColor: 'gray.100',
10
+ borderWidth: '1px',
11
+ borderStyle: 'solid',
12
+ '--popper-arrow-shadow-color': t => t.colors.gray['100'],
13
+ zIndex: 'layer10',
6
14
  });
7
15
 
8
16
  export default popoverContentStyles;
@@ -1,13 +1,5 @@
1
- const popperStyles = ({variant}) => ({
2
- borderRadius: 4,
3
- boxShadow: '2px 2px 4px 0 rgba(0,45,91,0.1)',
4
- color: variant === 'dark' ? 'white' : 'black',
5
- background: variant === 'dark' ? 'secondary.default' : 'white',
6
- borderColor: 'gray.100',
7
- '--popper-arrow-shadow-color': t => t.colors.gray['100'],
8
- borderWidth: '1px',
9
- borderStyle: 'solid',
10
- zIndex: 'layer10',
11
- });
1
+ const popperStyles = {
2
+ borderRadius: 'base',
3
+ };
12
4
 
13
5
  export default popperStyles;