krl-alfred 1.76.5 → 1.76.6
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.
|
@@ -67,7 +67,7 @@ var Breadcrumbs = function (props) {
|
|
|
67
67
|
};
|
|
68
68
|
return ((0, jsx_runtime_1.jsxs)(Breadcrumbs_styled_1.BreadcrumbsWrapper, { children: [(0, jsx_runtime_1.jsx)(Breadcrumbs_styled_1.BreadcrumbsList, { children: data === null || data === void 0 ? void 0 : data.map(function (breadCrumbItem, key) {
|
|
69
69
|
var _a;
|
|
70
|
-
return ((0, jsx_runtime_1.jsxs)(Breadcrumbs_styled_1.BreadcrumbsListItem, { children: [(0, jsx_runtime_1.jsx)(Breadcrumbs_styled_1.BreadcrumbsListItemBackIconWrapper, __assign({ onClick: onClickBackIcon }, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, { name: "
|
|
70
|
+
return ((0, jsx_runtime_1.jsxs)(Breadcrumbs_styled_1.BreadcrumbsListItem, { children: [(0, jsx_runtime_1.jsx)(Breadcrumbs_styled_1.BreadcrumbsListItemBackIconWrapper, __assign({ onClick: onClickBackIcon }, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, { strokeWidth: "3px", name: "ArrowLeftBig", width: "16px", height: "16px" }) })), ((_a = breadCrumbItem === null || breadCrumbItem === void 0 ? void 0 : breadCrumbItem.children) === null || _a === void 0 ? void 0 : _a.length) > 0 ? ((0, jsx_runtime_1.jsxs)(Breadcrumbs_styled_1.BreadcrumbsListDropdownWrapper, { children: [key >= 1 && ((0, jsx_runtime_1.jsx)(Breadcrumbs_styled_1.BreadcrumbsListItemIconWrapper, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, { name: "ArrowSmallRightStroke" }) })), (0, jsx_runtime_1.jsxs)(Breadcrumbs_styled_1.BreadcrumbsListDropdownOpener, { children: [breadCrumbItem.name, (0, jsx_runtime_1.jsx)(Icon_1.default, { name: "ArrowSmallDown" })] }), (0, jsx_runtime_1.jsx)(SubMenu, { item: breadCrumbItem, data: breadCrumbItem.children })] })) : ((0, jsx_runtime_1.jsxs)(ButtonLinkComponent, __assign({ item: breadCrumbItem }, { children: [key >= 1 && ((0, jsx_runtime_1.jsx)(Breadcrumbs_styled_1.BreadcrumbsListItemIconWrapper, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, { name: "ArrowSmallRightStroke" }) })), (0, jsx_runtime_1.jsx)(Breadcrumbs_styled_1.BreadcrumbsListItemInner, { children: breadCrumbItem.name })] })))] }, key));
|
|
71
71
|
}) }), (0, jsx_runtime_1.jsx)(SubMenuMobile, {})] }));
|
|
72
72
|
};
|
|
73
73
|
exports.default = Breadcrumbs;
|
|
@@ -21,12 +21,12 @@ var Icon_1 = __importDefault(require("../Icon/Icon"));
|
|
|
21
21
|
var Loader_1 = __importDefault(require("../Loader"));
|
|
22
22
|
var prop_types_1 = __importDefault(require("prop-types"));
|
|
23
23
|
var Children = function (props) {
|
|
24
|
-
var children = props.children, icon = props.icon,
|
|
24
|
+
var children = props.children, icon = props.icon, iconStrokeWidth = props.iconStrokeWidth;
|
|
25
25
|
return (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("div", __assign({ className: "children" }, { children: children })), icon && ((0, jsx_runtime_1.jsx)(Button_styled_1.IconStyled, __assign({}, props, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, { strokeWidth: iconStrokeWidth, name: icon, width: "16px", height: "16px" }) })))] });
|
|
26
26
|
};
|
|
27
27
|
var Button = function (props) {
|
|
28
28
|
var type = props.type, isLoading = props.isLoading, onClick = props.onClick, disabled = props.disabled, size = props.size, variant = props.variant, width = props.width, icon = props.icon, children = props.children, iconStrokeWidth = props.iconStrokeWidth;
|
|
29
|
-
return ((0, jsx_runtime_1.jsx)(Button_styled_1.ButtonStyled, __assign({ className: (0, classnames_1.default)({ "loading": isLoading }), onClick: onClick, disabled: disabled || isLoading, size: size, variant: variant, width: width, icon: icon, type: type }, { children: isLoading ? ((0, jsx_runtime_1.jsx)(Loader_1.default, { width: size === "big" ? "24px" : "16px", height: size === "big" ? "24px" : "16px", variant: variant === 'primary' ? 'secondary' : 'primary' })) : (0, jsx_runtime_1.jsx)(Children, __assign({ iconStrokeWidth: iconStrokeWidth, icon: icon
|
|
29
|
+
return ((0, jsx_runtime_1.jsx)(Button_styled_1.ButtonStyled, __assign({ className: (0, classnames_1.default)({ "loading": isLoading }), onClick: onClick, disabled: disabled || isLoading, size: size, variant: variant, width: width, icon: icon, type: type }, { children: isLoading ? ((0, jsx_runtime_1.jsx)(Loader_1.default, { width: size === "big" ? "24px" : "16px", height: size === "big" ? "24px" : "16px", variant: variant === 'primary' ? 'secondary' : 'primary' })) : (0, jsx_runtime_1.jsx)(Children, __assign({ iconStrokeWidth: iconStrokeWidth, icon: icon }, { children: children })) })));
|
|
30
30
|
};
|
|
31
31
|
Button.propTypes = {
|
|
32
32
|
iconStrokeWidth: prop_types_1.default.string,
|
|
@@ -31,6 +31,6 @@ exports.WaveStyled = exports.SpinnerStyled = void 0;
|
|
|
31
31
|
var styled_components_1 = __importStar(require("styled-components"));
|
|
32
32
|
var spin = (0, styled_components_1.keyframes)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n from {\n transform:rotate(0deg);\n }\n to {\n transform:rotate(360deg);\n }\n"], ["\n from {\n transform:rotate(0deg);\n }\n to {\n transform:rotate(360deg);\n }\n"])));
|
|
33
33
|
var wave = (0, styled_components_1.keyframes)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n 0% {\n transform: scale(0.5);\n }\n 50% {\n transform: scale(1);\n }\n 100% {\n transform: scale(0.5);\n }\n"], ["\n 0% {\n transform: scale(0.5);\n }\n 50% {\n transform: scale(1);\n }\n 100% {\n transform: scale(0.5);\n }\n"])));
|
|
34
|
-
exports.SpinnerStyled = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n width: ", ";\n height: ", ";\n display: block;\n div{\n display: block;\n }\n svg {\n animation-name: ", ";\n animation-duration:
|
|
34
|
+
exports.SpinnerStyled = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n width: ", ";\n height: ", ";\n display: block;\n div{\n display: block;\n }\n svg {\n animation-name: ", ";\n animation-duration: 800ms;\n animation-iteration-count: infinite;\n animation-timing-function: linear; \n }\n"], ["\n width: ", ";\n height: ", ";\n display: block;\n div{\n display: block;\n }\n svg {\n animation-name: ", ";\n animation-duration: 800ms;\n animation-iteration-count: infinite;\n animation-timing-function: linear; \n }\n"])), function (props) { return props.width; }, function (props) { return props.height; }, spin);
|
|
35
35
|
exports.WaveStyled = styled_components_1.default.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n span {\n border-radius: 50%;\n display: inline-block;\n margin: 0 1px;\n vertical-align: middle;\n width: 7px;\n height: 7px;\n &:first-child {\n background-color: var(--primary-opacity-50);\n animation: ", " 0.9s 0.2s linear infinite;\n }\n &:nth-child(2) {\n background-color: var(--primary-opacity-75);\n animation: ", " 0.9s 0.4s linear infinite;\n }\n &:nth-child(3) {\n background-color: var(--primary);\n animation: ", " 0.9s 0.6s linear infinite;\n }\n }\n"], ["\n span {\n border-radius: 50%;\n display: inline-block;\n margin: 0 1px;\n vertical-align: middle;\n width: 7px;\n height: 7px;\n &:first-child {\n background-color: var(--primary-opacity-50);\n animation: ", " 0.9s 0.2s linear infinite;\n }\n &:nth-child(2) {\n background-color: var(--primary-opacity-75);\n animation: ", " 0.9s 0.4s linear infinite;\n }\n &:nth-child(3) {\n background-color: var(--primary);\n animation: ", " 0.9s 0.6s linear infinite;\n }\n }\n"])), wave, wave, wave);
|
|
36
36
|
var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
|
|
@@ -18,8 +18,8 @@ var jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
18
18
|
var TextLink_styled_1 = require("./TextLink.styled");
|
|
19
19
|
var Icon_1 = __importDefault(require("../Icon/Icon"));
|
|
20
20
|
var TextLink = function (props) {
|
|
21
|
-
var onClick = props.onClick, children = props.children, href = props.href, target = props.target, icon = props.icon, iconWidth = props.iconWidth, iconHeight = props.iconHeight, size = props.size, iconDirection = props.iconDirection;
|
|
22
|
-
return ((0, jsx_runtime_1.jsx)(TextLink_styled_1.TextLinkStyled, __assign({ size: size, href: href, target: target, onClick: onClick }, props, { children: (0, jsx_runtime_1.jsxs)(TextLink_styled_1.Inner, __assign({ iconDirection: iconDirection }, { children: [icon && ((0, jsx_runtime_1.jsx)(TextLink_styled_1.IconStyled, __assign({ iconDirection: iconDirection }, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, { name: icon, width: iconWidth, height: iconHeight }) }))), children] })) })));
|
|
21
|
+
var onClick = props.onClick, children = props.children, href = props.href, target = props.target, icon = props.icon, iconWidth = props.iconWidth, iconHeight = props.iconHeight, size = props.size, iconDirection = props.iconDirection, iconStrokeWidth = props.iconStrokeWidth;
|
|
22
|
+
return ((0, jsx_runtime_1.jsx)(TextLink_styled_1.TextLinkStyled, __assign({ size: size, href: href, target: target, onClick: onClick }, props, { children: (0, jsx_runtime_1.jsxs)(TextLink_styled_1.Inner, __assign({ iconDirection: iconDirection }, { children: [icon && ((0, jsx_runtime_1.jsx)(TextLink_styled_1.IconStyled, __assign({ iconDirection: iconDirection }, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, { strokeWidth: iconStrokeWidth, name: icon, width: iconWidth, height: iconHeight }) }))), children] })) })));
|
|
23
23
|
};
|
|
24
24
|
TextLink.defaultProps = {
|
|
25
25
|
iconWidth: "24px",
|
|
@@ -27,5 +27,6 @@ TextLink.defaultProps = {
|
|
|
27
27
|
variant: "primary",
|
|
28
28
|
size: "small",
|
|
29
29
|
iconDirection: "left",
|
|
30
|
+
iconStrokeWidth: "2px",
|
|
30
31
|
};
|
|
31
32
|
exports.default = TextLink;
|