@redocly/theme 0.1.22 → 0.1.23

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.
@@ -15,4 +15,4 @@ export interface ButtonProps {
15
15
  onClick?: (e?: any) => void;
16
16
  }
17
17
  export declare const baseButtonStyles: FlattenSimpleInterpolation;
18
- export declare const Button: React.FC<ButtonProps>;
18
+ export declare const Button: import("styled-components").StyledComponent<React.FC<ButtonProps>, any, {}, never>;
package/Button/Button.js CHANGED
@@ -74,7 +74,7 @@ var StyledButton = styled_components_1.default.button.attrs(function (_a) {
74
74
  var disabled = _a.disabled;
75
75
  return disabled && (0, styled_components_1.css)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n &,\n &:hover {\n cursor: default;\n color: #999999;\n pointer-events: none;\n }\n "], ["\n &,\n &:hover {\n cursor: default;\n color: #999999;\n pointer-events: none;\n }\n "])));
76
76
  });
77
- var Button = function (props) {
77
+ var ButtonComponent = function (props) {
78
78
  if (props.to) {
79
79
  return (react_1.default.createElement(Link_1.Link, { to: props.to },
80
80
  react_1.default.createElement(StyledButton, __assign({}, props))));
@@ -83,5 +83,5 @@ var Button = function (props) {
83
83
  return react_1.default.createElement(StyledButton, __assign({}, props));
84
84
  }
85
85
  };
86
- exports.Button = Button;
87
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8;
86
+ exports.Button = (0, styled_components_1.default)(ButtonComponent)(templateObject_9 || (templateObject_9 = __makeTemplateObject([""], [""])));
87
+ var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redocly/theme",
3
- "version": "0.1.22",
3
+ "version": "0.1.23",
4
4
  "description": "Shared UI components",
5
5
  "author": "team@redocly.com",
6
6
  "license": "SEE LICENSE IN LICENSE",
@@ -127,7 +127,7 @@ const StyledButton = styled.button.attrs(({ color = 'default', extraClass }: But
127
127
  `}
128
128
  `;
129
129
 
130
- export const Button: React.FC<ButtonProps> = (props) => {
130
+ const ButtonComponent: React.FC<ButtonProps> = (props) => {
131
131
  if (props.to) {
132
132
  return (
133
133
  <Link to={props.to}>
@@ -138,3 +138,5 @@ export const Button: React.FC<ButtonProps> = (props) => {
138
138
  return <StyledButton {...props} />;
139
139
  }
140
140
  };
141
+
142
+ export const Button = styled(ButtonComponent)``;