@televet/kibble-ui 1.0.17-beta.3 → 1.0.17-beta.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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CSSProperties } from 'react';
|
|
1
|
+
import React, { CSSProperties } from 'react';
|
|
2
2
|
import { LogoHoliday, LogoType, LogoColor } from './logo.types';
|
|
3
3
|
export interface ILogoProps {
|
|
4
4
|
type?: LogoType;
|
|
@@ -7,4 +7,4 @@ export interface ILogoProps {
|
|
|
7
7
|
style?: CSSProperties;
|
|
8
8
|
handleClick?: () => void;
|
|
9
9
|
}
|
|
10
|
-
export declare const Logo:
|
|
10
|
+
export declare const Logo: React.ForwardRefExoticComponent<ILogoProps & React.RefAttributes<any>>;
|
package/build/index.js
CHANGED
|
@@ -2107,7 +2107,7 @@ var fullLogoMap = {
|
|
|
2107
2107
|
teal: SvgTeal,
|
|
2108
2108
|
};
|
|
2109
2109
|
|
|
2110
|
-
var Logo = function (_a) {
|
|
2110
|
+
var Logo = React.forwardRef(function (_a, ref) {
|
|
2111
2111
|
var _b = _a.type, type = _b === void 0 ? 'full' : _b, _c = _a.color, color = _c === void 0 ? 'teal' : _c, holiday = _a.holiday, style = _a.style, handleClick = _a.handleClick;
|
|
2112
2112
|
var LogoComponent;
|
|
2113
2113
|
if (holiday) {
|
|
@@ -2119,8 +2119,9 @@ var Logo = function (_a) {
|
|
|
2119
2119
|
else {
|
|
2120
2120
|
LogoComponent = fullLogoMap[color];
|
|
2121
2121
|
}
|
|
2122
|
-
return React__default["default"].createElement(LogoComponent, { style: style, onClick: handleClick });
|
|
2123
|
-
};
|
|
2122
|
+
return React__default["default"].createElement(LogoComponent, { ref: ref, style: style, onClick: handleClick });
|
|
2123
|
+
});
|
|
2124
|
+
Logo.displayName = 'Logo';
|
|
2124
2125
|
|
|
2125
2126
|
/*! *****************************************************************************
|
|
2126
2127
|
Copyright (c) Microsoft Corporation.
|