@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.
- package/dist/components/Button/Button.styles.js +1 -1
- package/dist/components/Checkbox/styles/index.js +8 -4
- package/dist/components/Input/styles/index.js +1 -1
- package/dist/components/Link/Link.styles.js +8 -4
- package/dist/components/Popover/styles/popover-close-button.js +4 -1
- package/dist/components/Popover/styles/popover-content.js +4 -1
- package/dist/components/Radio/styles/index.js +17 -7
- package/dist/components/Switch/styles/index.js +9 -1
- package/package.json +1 -1
|
@@ -12,8 +12,9 @@ const baseStyle = {
|
|
|
12
12
|
borderWidth: 1,
|
|
13
13
|
borderStyle: 'solid',
|
|
14
14
|
borderImage: 'initial',
|
|
15
|
-
borderRadius: '
|
|
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:
|
|
29
|
+
boxShadow: 'outline'
|
|
29
30
|
},
|
|
30
31
|
_checked: {
|
|
31
|
-
borderColor: '
|
|
32
|
-
backgroundColor: '
|
|
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: {
|
|
@@ -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
|
|
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:
|
|
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
|
-
|
|
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
|
-
|
|
31
|
-
background: 'currentcolor'
|
|
41
|
+
opacity: '1'
|
|
32
42
|
}
|
|
33
43
|
},
|
|
34
44
|
_focus: {
|
|
35
|
-
boxShadow:
|
|
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
|
};
|