oolib 2.0.0 → 2.1.3
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/BlockLabel/index.d.ts +1 -0
- package/dist/components/BlockLabel/index.js +22 -0
- package/dist/components/BlockLabel/index.styled.d.ts +1 -0
- package/dist/components/BlockLabel/index.styled.js +13 -0
- package/dist/components/Breadcrumbs/index.d.ts +4 -0
- package/dist/components/Breadcrumbs/index.js +51 -0
- package/dist/components/Breadcrumbs/index.styled.d.ts +2 -0
- package/dist/components/Breadcrumbs/index.styled.js +24 -0
- package/dist/components/Buttons/index.js +1 -1
- package/dist/components/Tags/index.js +3 -2
- package/dist/components/Tags/index.styled.js +7 -73
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function BlockLabel(props: any): JSX.Element;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.BlockLabel = void 0;
|
|
7
|
+
var react_1 = __importDefault(require("react"));
|
|
8
|
+
var Typo_1 = require("../Typo");
|
|
9
|
+
var index_styled_1 = require("./index.styled");
|
|
10
|
+
var colors_1 = require("../../themes/colors");
|
|
11
|
+
var red = colors_1.colors.red, greyColor40 = colors_1.colors.greyColor40, greyColor80 = colors_1.colors.greyColor80;
|
|
12
|
+
var BlockLabel = function (props) {
|
|
13
|
+
var label = props.label, subLabel = props.subLabel, invert = props.invert, error = props.error, required = props.required, readOnly = props.readOnly, style = props.style;
|
|
14
|
+
var optional = readOnly ? false : !required;
|
|
15
|
+
return (react_1.default.createElement(index_styled_1.BlockLabelStyled, { style: style },
|
|
16
|
+
react_1.default.createElement("div", { style: { display: 'flex', gap: '1rem' } },
|
|
17
|
+
react_1.default.createElement(Typo_1.SANS_3, { invert: invert, bold: true, capitalize: true }, label),
|
|
18
|
+
optional && react_1.default.createElement(Typo_1.SANS_3, { color: invert ? greyColor40 : greyColor80 }, "(optional)"),
|
|
19
|
+
error && react_1.default.createElement(Typo_1.SANS_3, { color: red }, error)),
|
|
20
|
+
subLabel && (react_1.default.createElement(Typo_1.SANS_3, { color: invert ? greyColor40 : greyColor80 }, subLabel))));
|
|
21
|
+
};
|
|
22
|
+
exports.BlockLabel = BlockLabel;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const BlockLabelStyled: any;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
|
+
};
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.BlockLabelStyled = void 0;
|
|
11
|
+
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
|
+
exports.BlockLabelStyled = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\ndisplay: flex;\nflex-direction: column;\ngap: 0rem;\n\n"], ["\ndisplay: flex;\nflex-direction: column;\ngap: 0rem;\n\n"])));
|
|
13
|
+
var templateObject_1;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
3
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
4
|
+
if (ar || !(i in from)) {
|
|
5
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
6
|
+
ar[i] = from[i];
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.Breadcrumbs = void 0;
|
|
13
|
+
var react_1 = require("react");
|
|
14
|
+
var index_styled_1 = require("./index.styled");
|
|
15
|
+
var Typo_1 = require("../Typo");
|
|
16
|
+
var icons_1 = require("../../icons");
|
|
17
|
+
var themes_1 = require("../../themes");
|
|
18
|
+
var ArrowLeft = icons_1.phosphorIcons.ArrowLeft;
|
|
19
|
+
var white = themes_1.colors.white, greyColor100 = themes_1.colors.greyColor100;
|
|
20
|
+
// links array will be taken from params in the future (react router)
|
|
21
|
+
var Breadcrumbs = function (_a) {
|
|
22
|
+
var links = _a.links, invert = _a.invert;
|
|
23
|
+
var _b = (0, react_1.useState)(0), containerWidth = _b[0], setContainerWidth = _b[1];
|
|
24
|
+
var _c = (0, react_1.useState)(false), beConcise = _c[0], setBeConcise = _c[1];
|
|
25
|
+
var measuredContainer = (0, react_1.useRef)(null);
|
|
26
|
+
(0, react_1.useEffect)(function () {
|
|
27
|
+
measuredContainer && setContainerWidth(measuredContainer.current.offsetWidth);
|
|
28
|
+
}, []);
|
|
29
|
+
(0, react_1.useLayoutEffect)(function () {
|
|
30
|
+
var childrenWidth = __spreadArray([], measuredContainer.current.children, true).reduce(function (accum, el) { return accum + el.offsetWidth; }, 0);
|
|
31
|
+
var isOverflowing = childrenWidth > (measuredContainer.current.offsetWidth * 0.88); // if exceeded 88% of the parent
|
|
32
|
+
if (isOverflowing)
|
|
33
|
+
setBeConcise(true);
|
|
34
|
+
}, [containerWidth]);
|
|
35
|
+
if (containerWidth < 660) { // for small devices || the breadcrumbs is next to something and will only be < 660px
|
|
36
|
+
return (React.createElement(index_styled_1.StyledBreadcrumbs, { ref: measuredContainer },
|
|
37
|
+
React.createElement(index_styled_1.StyledLinkCrumb, { href: "#", invert: invert },
|
|
38
|
+
React.createElement(ArrowLeft, { size: 14, weight: "bold", color: invert ? white : greyColor100 }),
|
|
39
|
+
React.createElement(Typo_1.SANS_2, { invert: invert }, "Back"))));
|
|
40
|
+
}
|
|
41
|
+
var linksDisplayed = beConcise && links.length > 3 ? [links[0], "...", links[links.length - 2], links[links.length - 1]] : links;
|
|
42
|
+
return (React.createElement(index_styled_1.StyledBreadcrumbs, { ref: measuredContainer }, linksDisplayed.map(function (link, ind) {
|
|
43
|
+
if (link === "...") {
|
|
44
|
+
return (React.createElement(index_styled_1.StyledLinkCrumb, { invert: invert },
|
|
45
|
+
React.createElement(Typo_1.SANS_2, { invert: invert }, "...")));
|
|
46
|
+
}
|
|
47
|
+
return (React.createElement(index_styled_1.StyledLinkCrumb, { href: link.to, invert: invert, key: ind, style: beConcise && ind == linksDisplayed.length - 1 ? { width: (links.length >= 3 ? '40%' : '70%') } : {} },
|
|
48
|
+
React.createElement(Typo_1.SANS_2, { invert: invert, style: { whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis' } }, link.display)));
|
|
49
|
+
})));
|
|
50
|
+
};
|
|
51
|
+
exports.Breadcrumbs = Breadcrumbs;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
+
return cooked;
|
|
5
|
+
};
|
|
6
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
|
+
};
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.StyledLinkCrumb = exports.StyledBreadcrumbs = void 0;
|
|
11
|
+
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
|
+
var themes_1 = require("../../themes");
|
|
13
|
+
var white = themes_1.colors.white, greyColor100 = themes_1.colors.greyColor100;
|
|
14
|
+
var StyledBreadcrumbs = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n padding: 0;\n gap: 15px;\n & a:last-child {\n text-decoration: none;\n }\n"], ["\n display: flex;\n align-items: center;\n padding: 0;\n gap: 15px;\n & a:last-child {\n text-decoration: none;\n }\n"])));
|
|
15
|
+
exports.StyledBreadcrumbs = StyledBreadcrumbs;
|
|
16
|
+
var StyledLinkCrumb = styled_components_1.default.a(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n gap: 5px;\n position: relative;\n color: ", ";\n &::after {\n content: \"\";\n width: 1px;\n height: 60%;\n border-right: 1px solid ", ";\n cursor: default;\n position: absolute;\n left: calc(100% + 7px);\n top: 25%;\n }\n &:last-child::after {content: none;}\n"], ["\n display: flex;\n align-items: center;\n gap: 5px;\n position: relative;\n color: ", ";\n &::after {\n content: \"\";\n width: 1px;\n height: 60%;\n border-right: 1px solid ", ";\n cursor: default;\n position: absolute;\n left: calc(100% + 7px);\n top: 25%;\n }\n &:last-child::after {content: none;}\n"])), function (_a) {
|
|
17
|
+
var invert = _a.invert;
|
|
18
|
+
return invert ? white : greyColor100;
|
|
19
|
+
}, function (_a) {
|
|
20
|
+
var invert = _a.invert;
|
|
21
|
+
return invert ? white : greyColor100;
|
|
22
|
+
});
|
|
23
|
+
exports.StyledLinkCrumb = StyledLinkCrumb;
|
|
24
|
+
var templateObject_1, templateObject_2;
|
|
@@ -54,7 +54,7 @@ var Button = function (_a) {
|
|
|
54
54
|
var props = _a.props, variant = _a.variant;
|
|
55
55
|
var link = props.link, onClick = props.onClick;
|
|
56
56
|
var handleOpenLink = function () {
|
|
57
|
-
window.open(link.val);
|
|
57
|
+
window.open(link === null || link === void 0 ? void 0 : link.val);
|
|
58
58
|
};
|
|
59
59
|
var buttonAction = onClick || handleOpenLink;
|
|
60
60
|
return (react_1.default.createElement(ButtonStyledWrapper, { props: __assign(__assign({}, props), { onClick: buttonAction }), variant: variant }));
|
|
@@ -35,8 +35,9 @@ function TagClear(_a) {
|
|
|
35
35
|
var id = _a.id, display = _a.display, value = _a.value, M = _a.M, invert = _a.invert, _b = _a.onClick, onClick = _b === void 0 ? function () { } : _b, theme = _a.theme, variantSecondary = _a.variantSecondary, variantGhost = _a.variantGhost, grey = _a.grey;
|
|
36
36
|
var XIconCom = icons_1.phosphorIcons['X'];
|
|
37
37
|
var size = M ? 'M' : 'S';
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
return (react_1.default.createElement(index_styled_1.StyledTagClear, { invert: invert, theme: theme, size: size, grey: grey, variantGhost: variantGhost, variantSecondary: variantSecondary, onClick: function () {
|
|
39
|
+
return !variantSecondary && !variantGhost && onClick(id, { display: display, value: value });
|
|
40
|
+
} },
|
|
40
41
|
react_1.default.createElement(Typo_1.SANS_3, { semibold: true }, display),
|
|
41
42
|
react_1.default.createElement(index_styled_1.StyledIconWrapper, { theme: theme, invert: invert, grey: grey, variantSecondary: variantSecondary, onClick: function () {
|
|
42
43
|
return (variantSecondary || variantGhost) && onClick(id, { display: display, value: value });
|
|
@@ -56,13 +56,13 @@ var StyledTagClear = styled_components_1.default.div(templateObject_9 || (templa
|
|
|
56
56
|
!variantGhost &&
|
|
57
57
|
(!grey
|
|
58
58
|
? (0, styled_components_1.css)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n\t\t\t\t\tcursor: pointer;\n\t\t\t\t\tbackground-color: ", ";\n\t\t\t\t\tcolor: ", ";\n\t\t\t "], ["\n\t\t\t\t\tcursor: pointer;\n\t\t\t\t\tbackground-color: ", ";\n\t\t\t\t\tcolor: ", ";\n\t\t\t "])), !invert
|
|
59
|
-
? colors.primaryColor100
|
|
60
|
-
: colors.primaryColor40, !invert ? white : greyColor100) : (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n\t\t\t\t\tcursor: pointer;\n\t\t\t\t\tbackground-color: ", ";\n\t\t\t\t\tcolor: ", ";\n\t\t\t "], ["\n\t\t\t\t\tcursor: pointer;\n\t\t\t\t\tbackground-color: ", ";\n\t\t\t\t\tcolor: ", ";\n\t\t\t "])), !invert ? greyColor15 : greyColor80, !invert ? greyColor80 : greyColor40));
|
|
59
|
+
? colors === null || colors === void 0 ? void 0 : colors.primaryColor100
|
|
60
|
+
: colors === null || colors === void 0 ? void 0 : colors.primaryColor40, !invert ? white : greyColor100) : (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n\t\t\t\t\tcursor: pointer;\n\t\t\t\t\tbackground-color: ", ";\n\t\t\t\t\tcolor: ", ";\n\t\t\t "], ["\n\t\t\t\t\tcursor: pointer;\n\t\t\t\t\tbackground-color: ", ";\n\t\t\t\t\tcolor: ", ";\n\t\t\t "])), !invert ? greyColor15 : greyColor80, !invert ? greyColor80 : greyColor40));
|
|
61
61
|
}, function (_a) {
|
|
62
62
|
var variantSecondary = _a.variantSecondary, invert = _a.invert, grey = _a.grey, colors = _a.theme.colors;
|
|
63
63
|
return variantSecondary &&
|
|
64
64
|
(!grey
|
|
65
|
-
? (0, styled_components_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n\t\t\t\t\tbackground: none;\n\t\t\t\t\tborder: 2px solid\n\t\t\t\t\t\t", ";\n\t\t\t\t\tcolor: ", ";\n\t\t\t "], ["\n\t\t\t\t\tbackground: none;\n\t\t\t\t\tborder: 2px solid\n\t\t\t\t\t\t", ";\n\t\t\t\t\tcolor: ", ";\n\t\t\t "])), !invert ? colors.primaryColor100 : colors.primaryColor40, !invert ? colors.primaryColorText : colors.primaryColor40) : (0, styled_components_1.css)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n\t\t\t\t\tbackground: none;\n\t\t\t\t\tborder: 2px solid ", ";\n\t\t\t\t\tcolor: ", ";\n\t\t\t "], ["\n\t\t\t\t\tbackground: none;\n\t\t\t\t\tborder: 2px solid ", ";\n\t\t\t\t\tcolor: ", ";\n\t\t\t "])), !invert ? greyColor15 : greyColor80, !invert ? greyColor80 : greyColor15));
|
|
65
|
+
? (0, styled_components_1.css)(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n\t\t\t\t\tbackground: none;\n\t\t\t\t\tborder: 2px solid\n\t\t\t\t\t\t", ";\n\t\t\t\t\tcolor: ", ";\n\t\t\t "], ["\n\t\t\t\t\tbackground: none;\n\t\t\t\t\tborder: 2px solid\n\t\t\t\t\t\t", ";\n\t\t\t\t\tcolor: ", ";\n\t\t\t "])), !invert ? colors === null || colors === void 0 ? void 0 : colors.primaryColor100 : colors === null || colors === void 0 ? void 0 : colors.primaryColor40, !invert ? colors === null || colors === void 0 ? void 0 : colors.primaryColorText : colors === null || colors === void 0 ? void 0 : colors.primaryColor40) : (0, styled_components_1.css)(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n\t\t\t\t\tbackground: none;\n\t\t\t\t\tborder: 2px solid ", ";\n\t\t\t\t\tcolor: ", ";\n\t\t\t "], ["\n\t\t\t\t\tbackground: none;\n\t\t\t\t\tborder: 2px solid ", ";\n\t\t\t\t\tcolor: ", ";\n\t\t\t "])), !invert ? greyColor15 : greyColor80, !invert ? greyColor80 : greyColor15));
|
|
66
66
|
}, function (_a) {
|
|
67
67
|
var variantGhost = _a.variantGhost;
|
|
68
68
|
return variantGhost && (0, styled_components_1.css)(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n\t\t\tbackground: none;\n\t\t"], ["\n\t\t\tbackground: none;\n\t\t"])));
|
|
@@ -73,7 +73,7 @@ var StyledTagSelect = styled_components_1.default.div(templateObject_10 || (temp
|
|
|
73
73
|
return commonStyle({ size: size });
|
|
74
74
|
}, function (_a) {
|
|
75
75
|
var selected = _a.selected, colors = _a.theme.colors;
|
|
76
|
-
return "\n border: 2px solid ".concat(colors.primaryColor100, ";\n cursor: pointer;\n background-color: ").concat(selected ? colors.primaryColor100 : null, ";\n\t\tcolor: ").concat(!selected ? colors.primaryColorText : white, "\n ");
|
|
76
|
+
return "\n border: 2px solid ".concat(colors === null || colors === void 0 ? void 0 : colors.primaryColor100, ";\n cursor: pointer;\n background-color: ").concat(selected ? colors === null || colors === void 0 ? void 0 : colors.primaryColor100 : null, ";\n\t\tcolor: ").concat(!selected ? colors === null || colors === void 0 ? void 0 : colors.primaryColorText : white, "\n ");
|
|
77
77
|
});
|
|
78
78
|
exports.StyledTagSelect = StyledTagSelect;
|
|
79
79
|
var StyledTagLink = styled_components_1.default.div(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n ", "\n\t", "\n\n\t", "\n\t\n"], ["\n ", "\n\t", "\n\n\t", "\n\t\n"])), function (_a) {
|
|
@@ -82,11 +82,11 @@ var StyledTagLink = styled_components_1.default.div(templateObject_13 || (templa
|
|
|
82
82
|
}, function (_a) {
|
|
83
83
|
var variantSecondary = _a.variantSecondary, invert = _a.invert, colors = _a.theme.colors;
|
|
84
84
|
return !variantSecondary && (0, styled_components_1.css)(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n\t\t\tbackground-color: ", ";\n\t\t\tcolor: ", ";\n\t\t"], ["\n\t\t\tbackground-color: ", ";\n\t\t\tcolor: ", ";\n\t\t"])), !invert
|
|
85
|
-
? colors.primaryColor100
|
|
86
|
-
: colors.primaryColor40, !invert ? white : greyColor100);
|
|
85
|
+
? colors === null || colors === void 0 ? void 0 : colors.primaryColor100
|
|
86
|
+
: colors === null || colors === void 0 ? void 0 : colors.primaryColor40, !invert ? white : greyColor100);
|
|
87
87
|
}, function (_a) {
|
|
88
88
|
var variantSecondary = _a.variantSecondary, invert = _a.invert, colors = _a.theme.colors;
|
|
89
|
-
return variantSecondary && (0, styled_components_1.css)(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n\t\t\tbackground: none;\n\t\t\tborder: 2px solid\n\t\t\t\t", ";\n\t\t\tcolor: ", ";\n\t\t"], ["\n\t\t\tbackground: none;\n\t\t\tborder: 2px solid\n\t\t\t\t", ";\n\t\t\tcolor: ", ";\n\t\t"])), !invert ? colors.primaryColor100 : colors.primaryColor40, !invert ? colors.primaryColorText : colors.primaryColor40);
|
|
89
|
+
return variantSecondary && (0, styled_components_1.css)(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n\t\t\tbackground: none;\n\t\t\tborder: 2px solid\n\t\t\t\t", ";\n\t\t\tcolor: ", ";\n\t\t"], ["\n\t\t\tbackground: none;\n\t\t\tborder: 2px solid\n\t\t\t\t", ";\n\t\t\tcolor: ", ";\n\t\t"])), !invert ? colors === null || colors === void 0 ? void 0 : colors.primaryColor100 : colors === null || colors === void 0 ? void 0 : colors.primaryColor40, !invert ? colors === null || colors === void 0 ? void 0 : colors.primaryColorText : colors === null || colors === void 0 ? void 0 : colors.primaryColor40);
|
|
90
90
|
});
|
|
91
91
|
exports.StyledTagLink = StyledTagLink;
|
|
92
92
|
var StyledIconWrapper = styled_components_1.default.div(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n display: flex;\n\tjustify-content: center;\n\talign-items: center;\n\tcursor: pointer;\n\n\t", "\n"], ["\n display: flex;\n\tjustify-content: center;\n\talign-items: center;\n\tcursor: pointer;\n\n\t", "\n"])), function (_a) {
|
|
@@ -97,69 +97,3 @@ exports.StyledIconWrapper = StyledIconWrapper;
|
|
|
97
97
|
var StyledLink = (0, styled_components_1.default)(react_router_dom_1.NavLink)(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n text-decoration: none;\n"], ["\n text-decoration: none;\n"])));
|
|
98
98
|
exports.StyledLink = StyledLink;
|
|
99
99
|
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16;
|
|
100
|
-
// const StyledTag = Styled.div`
|
|
101
|
-
// padding: 0 1rem;
|
|
102
|
-
// position: relative;
|
|
103
|
-
// display: inline-flex;
|
|
104
|
-
// column-gap: 1rem;
|
|
105
|
-
// align-items: center;
|
|
106
|
-
// border-radius:0.2rem;
|
|
107
|
-
// white-space: nowrap;
|
|
108
|
-
// height: ${({ size }) => SIZES[size]};
|
|
109
|
-
// ${({ tagSelect, selected, theme }) =>
|
|
110
|
-
// tagSelect && TagModifiers['tagSelect']({ selected, theme })}
|
|
111
|
-
// ${({ tagDisplay, invert, theme }) =>
|
|
112
|
-
// tagDisplay && TagModifiers['tagDisplay']({ invert, theme })}
|
|
113
|
-
// ${({ tagLink, invert, theme }) =>
|
|
114
|
-
// tagLink && TagModifiers['tagLink']({ invert, theme })}
|
|
115
|
-
// ${({ tagClear, primary, primaryOutline }) =>
|
|
116
|
-
// tagClear && TagModifiers['tagClear']({ primary, primaryOutline })}
|
|
117
|
-
// ${({ primary, invert, theme }) =>
|
|
118
|
-
// primary && TagModifiers['primary']({ invert, theme })}
|
|
119
|
-
// ${({ secondary, invert, theme }) =>
|
|
120
|
-
// secondary && TagModifiers['secondary']({ invert, theme })}
|
|
121
|
-
// ${({ primaryOutline, invert, theme }) =>
|
|
122
|
-
// primaryOutline && TagModifiers['primaryOutline']({ invert, theme })}
|
|
123
|
-
// ${({ secondaryOutline, invert, theme }) =>
|
|
124
|
-
// secondaryOutline && TagModifiers['secondaryOutline']({ invert, theme })}
|
|
125
|
-
// ${({ ghost }) => ghost && TagModifiers['ghost']()}
|
|
126
|
-
// `
|
|
127
|
-
// const TagModifiers = {
|
|
128
|
-
// tagSelect: ({ selected, theme: { colors } }) => `
|
|
129
|
-
// border: 2px solid ${colors.primaryColor100};
|
|
130
|
-
// cursor: pointer;
|
|
131
|
-
// background-color: ${selected ? colors.primaryColor100 : null};
|
|
132
|
-
// color: ${!selected ? colors.primaryColorText : white}
|
|
133
|
-
// `,
|
|
134
|
-
// tagDisplay: ({ invert, theme: { colors } }) => `
|
|
135
|
-
// border: 2px solid ${!invert ? greyColor10 : greyColor80};
|
|
136
|
-
// background-color: inherit;
|
|
137
|
-
// cursor: auto;
|
|
138
|
-
// `,
|
|
139
|
-
// tagLink: () => `
|
|
140
|
-
// cursor: pointer;
|
|
141
|
-
// `,
|
|
142
|
-
// tagClear: ({ primaryOutline, primary }) => `
|
|
143
|
-
// cursor: ${primary || primaryOutline ? 'pointer' : 'auto'};
|
|
144
|
-
// `,
|
|
145
|
-
// primary: ({ invert, theme: { colors } }) => `
|
|
146
|
-
// background-color: ${!invert ? colors.primaryColor100 : colors.primaryColor40};
|
|
147
|
-
// color: ${!invert ? white : greyColor100};
|
|
148
|
-
// `,
|
|
149
|
-
// secondary: ({ invert, theme: { colors } }) => `
|
|
150
|
-
// background-color: ${!invert ? greyColor15 : greyColor80};
|
|
151
|
-
// color: ${!invert ? greyColor80 : greyColor15};
|
|
152
|
-
// `,
|
|
153
|
-
// primaryOutline: ({ invert, theme: { colors } }) => `
|
|
154
|
-
// border: 2px solid ${!invert ? colors.primaryColor100 : colors.primaryColor40};
|
|
155
|
-
// color: ${!invert ? colors.primaryColorText : colors.primaryColor40};
|
|
156
|
-
// `,
|
|
157
|
-
// secondaryOutline: ({ invert, theme: { colors } }) => `
|
|
158
|
-
// border: 2px solid ${!invert ? greyColor15 : greyColor80};
|
|
159
|
-
// color: ${!invert ? greyColor80 : greyColor15};
|
|
160
|
-
// `,
|
|
161
|
-
// ghost: () => `
|
|
162
|
-
// background: none;
|
|
163
|
-
// border: none;
|
|
164
|
-
// `,
|
|
165
|
-
// }
|
package/dist/index.d.ts
CHANGED
|
@@ -3,4 +3,6 @@ export * from "./components/Typo";
|
|
|
3
3
|
export * from "./components/Loader";
|
|
4
4
|
export * from "./components/Buttons";
|
|
5
5
|
export * from "./components/Tags";
|
|
6
|
+
export * from "./components/Breadcrumbs";
|
|
7
|
+
export * from "./components/BlockLabel";
|
|
6
8
|
export { colors } from "./themes";
|
package/dist/index.js
CHANGED
|
@@ -19,3 +19,5 @@ var themes_1 = require("./themes");
|
|
|
19
19
|
Object.defineProperty(exports, "colors", { enumerable: true, get: function () { return themes_1.colors; } });
|
|
20
20
|
__exportStar(require("./components/Buttons"), exports);
|
|
21
21
|
__exportStar(require("./components/Tags"), exports);
|
|
22
|
+
__exportStar(require("./components/Breadcrumbs"), exports);
|
|
23
|
+
__exportStar(require("./components/BlockLabel"), exports);
|