beem-component 0.9.9 → 1.0.0
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/Link.js +23 -0
- package/dist/components/index.js +8 -0
- package/package.json +2 -1
- package/src/App.js +5 -0
- package/src/lib/components/Link.js +19 -0
- package/src/lib/components/index.js +3 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.BmRouteLink = void 0;
|
|
7
|
+
|
|
8
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
9
|
+
|
|
10
|
+
var _reactRouterDom = require("react-router-dom");
|
|
11
|
+
|
|
12
|
+
var _colors = require("../components/colors");
|
|
13
|
+
|
|
14
|
+
var _text = require("../components/text");
|
|
15
|
+
|
|
16
|
+
var _templateObject;
|
|
17
|
+
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
|
+
|
|
20
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
21
|
+
|
|
22
|
+
var BmRouteLink = (0, _styledComponents.default)(_reactRouterDom.Link)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n color: ", ";\n text-decoration: none;\n &:hover,\n &:focus,\n &:active {\n color: ", " !important;\n font-weight: bold;\n &:before {\n font-weight: normal;\n }\n }\n"])), _text.p, _colors.BmPrimaryBlack, _colors.BmPrimaryBlack);
|
|
23
|
+
exports.BmRouteLink = BmRouteLink;
|
package/dist/components/index.js
CHANGED
|
@@ -1185,6 +1185,12 @@ Object.defineProperty(exports, "BmAccordicon", {
|
|
|
1185
1185
|
return _Accordicon.BmAccordicon;
|
|
1186
1186
|
}
|
|
1187
1187
|
});
|
|
1188
|
+
Object.defineProperty(exports, "BmRouteLink", {
|
|
1189
|
+
enumerable: true,
|
|
1190
|
+
get: function get() {
|
|
1191
|
+
return _Link.BmRouteLink;
|
|
1192
|
+
}
|
|
1193
|
+
});
|
|
1188
1194
|
|
|
1189
1195
|
var _Accordion = _interopRequireDefault(require("./Accordion"));
|
|
1190
1196
|
|
|
@@ -1284,4 +1290,6 @@ var _labelsInfo = require("./CustomerInfo/labelsInfo");
|
|
|
1284
1290
|
|
|
1285
1291
|
var _Accordicon = require("./Accordicon");
|
|
1286
1292
|
|
|
1293
|
+
var _Link = require("./Link");
|
|
1294
|
+
|
|
1287
1295
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "beem-component",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "dist/components/index.js",
|
|
6
6
|
"peerDependencies": {
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
"node-sass": "^6.0.1",
|
|
17
17
|
"react": "^17.0.2",
|
|
18
18
|
"react-dom": "^17.0.2",
|
|
19
|
+
"react-router-dom": "^5.3.0",
|
|
19
20
|
"react-scripts": "4.0.3",
|
|
20
21
|
"styled-components": "^5.3.0",
|
|
21
22
|
"web-vitals": "^1.1.2"
|
package/src/App.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
import { HashRouter } from "react-router-dom";
|
|
2
3
|
import "../src/main.scss";
|
|
3
4
|
import { MainWrapper } from "./lib/components/Chats/chatwrapper";
|
|
4
5
|
import { GlobalStyle } from "./lib/components/globalStyles";
|
|
@@ -9,12 +10,16 @@ import { CreateSegment } from "./CreateSegments";
|
|
|
9
10
|
import Chat from "./CHAT";
|
|
10
11
|
import { BmAccordicon } from "./lib/components/Accordicon";
|
|
11
12
|
import BmAccordion from "./lib/components/Accordion";
|
|
13
|
+
import { BmRouteLink } from "./lib/components/Link";
|
|
12
14
|
export const App = () => {
|
|
13
15
|
return (
|
|
14
16
|
<>
|
|
15
17
|
<GlobalStyle />
|
|
16
18
|
<BmAccordicon dropdown trailingIcon>
|
|
17
19
|
<h4>jclkdj</h4>
|
|
20
|
+
<HashRouter>
|
|
21
|
+
<BmRouteLink to="#">Hello</BmRouteLink>
|
|
22
|
+
</HashRouter>
|
|
18
23
|
<h2>kghgfih</h2>
|
|
19
24
|
</BmAccordicon>
|
|
20
25
|
<Chat />
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import styled from "styled-components";
|
|
2
|
+
import { Link } from "react-router-dom";
|
|
3
|
+
import { BmPrimaryBlack } from "../components/colors";
|
|
4
|
+
import { p } from "../components/text";
|
|
5
|
+
|
|
6
|
+
export const BmRouteLink = styled(Link)`
|
|
7
|
+
${p}
|
|
8
|
+
color: ${BmPrimaryBlack};
|
|
9
|
+
text-decoration: none;
|
|
10
|
+
&:hover,
|
|
11
|
+
&:focus,
|
|
12
|
+
&:active {
|
|
13
|
+
color: ${BmPrimaryBlack} !important;
|
|
14
|
+
font-weight: bold;
|
|
15
|
+
&:before {
|
|
16
|
+
font-weight: normal;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
`;
|
|
@@ -8,6 +8,7 @@ import { BmDropdown } from "./dropdown";
|
|
|
8
8
|
import { BmInput } from "./input";
|
|
9
9
|
import { BmLogo } from "./logo";
|
|
10
10
|
import { BmSearch } from "./search";
|
|
11
|
+
|
|
11
12
|
import {
|
|
12
13
|
BmTab,
|
|
13
14
|
BmTabItem,
|
|
@@ -265,6 +266,7 @@ import {
|
|
|
265
266
|
BmColorLabelPicker,
|
|
266
267
|
} from "./CustomerInfo/labelsInfo";
|
|
267
268
|
import { BmAccordicon } from "./Accordicon";
|
|
269
|
+
import { BmRouteLink } from "./Link";
|
|
268
270
|
|
|
269
271
|
export {
|
|
270
272
|
BmAccordion,
|
|
@@ -464,4 +466,5 @@ export {
|
|
|
464
466
|
BmColorLabel,
|
|
465
467
|
BmColorLabelPicker,
|
|
466
468
|
BmAccordicon,
|
|
469
|
+
BmRouteLink
|
|
467
470
|
};
|