equestrian-ui-kit 0.0.4 → 0.0.5
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/lib/components/Link/Link.jsx +2 -2
- package/lib/index.d.ts +2 -1
- package/lib/index.js +3 -1
- package/package.json +1 -1
|
@@ -9,8 +9,8 @@ const react_router_dom_1 = require("react-router-dom");
|
|
|
9
9
|
const Text = ({ children, color, src, className }) => {
|
|
10
10
|
const colorStyle = color === 'black' ? Link_module_scss_1.default.linkBlack : Link_module_scss_1.default.linkDarkGray;
|
|
11
11
|
const classNameStyle = className ? className : '';
|
|
12
|
-
return (<react_router_dom_1.Link to={src} className={[Link_module_scss_1.default.link, colorStyle, classNameStyle].filter((s) => s.length != 0).join(' ')}>
|
|
13
|
-
{children}
|
|
12
|
+
return (<react_router_dom_1.Link to={src} className={[Link_module_scss_1.default.link, colorStyle, classNameStyle].filter((s) => s.length != 0).join(' ')}>
|
|
13
|
+
{children}
|
|
14
14
|
</react_router_dom_1.Link>);
|
|
15
15
|
};
|
|
16
16
|
exports.default = Text;
|
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -3,6 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.Text = void 0;
|
|
6
|
+
exports.Link = exports.Text = void 0;
|
|
7
7
|
const Text_1 = __importDefault(require("./components/Text/Text"));
|
|
8
8
|
exports.Text = Text_1.default;
|
|
9
|
+
const Link_1 = __importDefault(require("./components/Link/Link"));
|
|
10
|
+
exports.Link = Link_1.default;
|