@spothero/ui 17.2.3 → 17.2.4

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.
@@ -18,7 +18,7 @@ const baseStyle = {
18
18
  borderStyle: 'solid',
19
19
  borderRadius: '1.25rem',
20
20
  textTransform: 'capitalize',
21
- transition: 'all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94)',
21
+ transition: 'all normal ease',
22
22
  _disabled: {
23
23
  cursor: 'not-allowed',
24
24
  opacity: 1,
@@ -12,8 +12,9 @@ const baseStyle = {
12
12
  borderWidth: 1,
13
13
  borderStyle: 'solid',
14
14
  borderImage: 'initial',
15
- borderRadius: 'var(--chakra-radii-sm)',
15
+ borderRadius: 'sm',
16
16
  borderColor: 'gray.600',
17
+ transition: 'all 150ms ease',
17
18
  _readOnly: {
18
19
  boxShadow: 'none !important',
19
20
  userSelect: 'all'
@@ -25,11 +26,11 @@ const baseStyle = {
25
26
  },
26
27
  _focus: {
27
28
  zIndex: 1,
28
- boxShadow: t => `0 0 1px 1px ${t.colors.primary['300']}`
29
+ boxShadow: 'outline'
29
30
  },
30
31
  _checked: {
31
- borderColor: 'brandBlue',
32
- backgroundColor: 'brandBlue',
32
+ borderColor: 'primary.default',
33
+ backgroundColor: 'primary.default',
33
34
  _hover: {
34
35
  borderColor: 'primary.600',
35
36
  backgroundColor: 'primary.600'
@@ -38,6 +39,9 @@ const baseStyle = {
38
39
  borderColor: 'gray.200',
39
40
  backgroundColor: 'gray.200'
40
41
  }
42
+ },
43
+ '& svg': {
44
+ filter: `drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25))`
41
45
  }
42
46
  },
43
47
  label: {
@@ -35,7 +35,7 @@ const variants = {
35
35
  fontWeight: 'normal'
36
36
  },
37
37
  _focus: {
38
- borderColor: 'brandBlue'
38
+ borderColor: 'primary.default'
39
39
  },
40
40
  _hover: {
41
41
  borderColor: 'gray.300'
@@ -1,15 +1,19 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
5
6
  });
6
7
  exports.variants = exports.default = void 0;
8
+ var _merge = _interopRequireDefault(require("lodash/merge"));
9
+ var _theme = _interopRequireDefault(require("@chakra-ui/theme"));
7
10
  const baseStyle = {
8
- transition: `all 0.15s ease-out`,
11
+ transition: `all 0.15s ease`,
9
12
  color: 'text.link.light',
10
13
  fontWeight: 'semibold',
11
14
  _hover: {
12
- color: 'primary.600'
15
+ color: 'primary.600',
16
+ textDecoration: 'none'
13
17
  },
14
18
  _focus: {
15
19
  boxShadow: 'outline'
@@ -34,9 +38,9 @@ exports.variants = variants;
34
38
  const defaultProps = {
35
39
  variant: 'standard'
36
40
  };
37
- var _default = {
41
+ var _default = (0, _merge.default)(_theme.default.components.Link, {
38
42
  baseStyle,
39
43
  variants,
40
44
  defaultProps
41
- };
45
+ });
42
46
  exports.default = _default;
@@ -20,7 +20,10 @@ const closeButtonStyles = _ref => {
20
20
  padding: 4,
21
21
  borderTopRightRadius: 4,
22
22
  _hover: pseudoStyles(variant),
23
- _focus: pseudoStyles(variant)
23
+ _focus: {
24
+ ...pseudoStyles(variant),
25
+ boxShadow: 'outline'
26
+ }
24
27
  };
25
28
  };
26
29
  var _default = closeButtonStyles;
@@ -20,7 +20,10 @@ const popoverContentStyles = _ref => {
20
20
  borderWidth: '1px',
21
21
  borderStyle: 'solid',
22
22
  '--popper-arrow-shadow-color': t => t.colors.gray['100'],
23
- zIndex: 'layer10'
23
+ zIndex: 'layer10',
24
+ _focusVisible: {
25
+ outline: '3px solid rgba(91, 170, 250, 0.7)'
26
+ }
24
27
  };
25
28
  };
26
29
  var _default = popoverContentStyles;
@@ -14,25 +14,35 @@ const baseStyle = {
14
14
  borderWidth: '1px',
15
15
  borderColor: 'gray.dark',
16
16
  backgroundColor: 'white',
17
+ color: 'white',
17
18
  minWidth: 5,
18
19
  minHeight: 5,
19
20
  marginTop: 1,
21
+ transition: 'all 150ms ease',
22
+ _before: {
23
+ content: '""',
24
+ display: 'inline-block',
25
+ position: 'relative',
26
+ width: '0px',
27
+ height: '0px',
28
+ opacity: '0',
29
+ borderRadius: '50%',
30
+ background: 'currentcolor',
31
+ transition: 'all 150ms ease-in',
32
+ filter: `drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25))`
33
+ },
20
34
  _checked: {
21
- borderWidth: 0,
35
+ borderColor: 'primary.default',
22
36
  color: 'white',
23
37
  backgroundColor: 'primary.default',
24
38
  _before: {
25
- content: '""',
26
- display: 'inline-block',
27
- position: 'relative',
28
39
  width: 2,
29
40
  height: 2,
30
- borderRadius: '50%',
31
- background: 'currentcolor'
41
+ opacity: '1'
32
42
  }
33
43
  },
34
44
  _focus: {
35
- boxShadow: t => `0 0 1px 2px ${t.colors.primary['300']}`
45
+ boxShadow: 'outline'
36
46
  },
37
47
  _disabled: {
38
48
  borderColor: 'gray.200',
@@ -14,7 +14,15 @@ const overrides = {
14
14
  },
15
15
  baseStyle: props => (0, _merge.default)(_theme.default.components.Switch.baseStyle(props), {
16
16
  track: {
17
- bg: 'gray.medium'
17
+ bg: 'gray.medium',
18
+ overflow: 'clip'
19
+ },
20
+ thumb: {
21
+ transition: 'all 150ms ease',
22
+ boxShadow: 'base',
23
+ _hover: {
24
+ boxShadow: 'md'
25
+ }
18
26
  }
19
27
  })
20
28
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spothero/ui",
3
- "version": "17.2.3",
3
+ "version": "17.2.4",
4
4
  "description": "SpotHero's React component UI library.",
5
5
  "main": "./dist/components/index.js",
6
6
  "exports": "./dist/components/index.js",