cherry-styled-components 0.2.18 → 0.2.19
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/icon-button.js +6 -2
- package/package.json +1 -1
package/dist/icon-button.js
CHANGED
|
@@ -25,6 +25,10 @@ var iconButtonStyles = (theme, $size, $error, disabled, $active) => {
|
|
|
25
25
|
``,
|
|
26
26
|
`;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;position:relative;width:`,
|
|
27
27
|
`px;height:`,
|
|
28
|
+
`px;min-width:`,
|
|
29
|
+
`px;max-width:`,
|
|
30
|
+
`px;min-height:`,
|
|
31
|
+
`px;max-height:`,
|
|
28
32
|
`px;border-radius:50%;background:`,
|
|
29
33
|
`;border:solid 2px `,
|
|
30
34
|
`;color:`,
|
|
@@ -35,7 +39,7 @@ var iconButtonStyles = (theme, $size, $error, disabled, $active) => {
|
|
|
35
39
|
` `,
|
|
36
40
|
` `,
|
|
37
41
|
``
|
|
38
|
-
], resetButton, box, box, theme.colors.light, theme.colors.grayLight, $error ? theme.colors.error : theme.colors.grayDark, $error ? tint(theme.colors.error, 10) : theme.colors.primaryLight, icon, icon, !disabled && ($error ? css([
|
|
42
|
+
], resetButton, box, box, box, box, box, box, theme.colors.light, theme.colors.grayLight, $error ? theme.colors.error : theme.colors.grayDark, $error ? tint(theme.colors.error, 10) : theme.colors.primaryLight, icon, icon, !disabled && ($error ? css([
|
|
39
43
|
`border-color:`,
|
|
40
44
|
`;&:hover{border-color:`,
|
|
41
45
|
`;color:`,
|
|
@@ -64,7 +68,7 @@ var iconButtonStyles = (theme, $size, $error, disabled, $active) => {
|
|
|
64
68
|
};
|
|
65
69
|
var StyledIconButton = styled.button.withConfig({
|
|
66
70
|
displayName: "icon-button__StyledIconButton",
|
|
67
|
-
componentId: "sc-
|
|
71
|
+
componentId: "sc-9fd4b85f-0"
|
|
68
72
|
})([``, ``], ({ theme, $size, $error, disabled, $active }) => iconButtonStyles(theme, $size, $error, disabled, $active));
|
|
69
73
|
function LocalIconButton({ ...props }, ref) {
|
|
70
74
|
return /*#__PURE__*/ jsx(StyledIconButton, {
|
package/package.json
CHANGED