krl-alfred 1.8.0 → 1.9.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/Breadcrumbs/Breadcrumbs.js +16 -23
- package/dist/components/Breadcrumbs/Breadcrumbs.styled.js +5 -5
- package/dist/components/CategoryMenu/CategoryMenu.js +1 -3
- package/dist/components/CategoryMenu/CategoryMenu.styled.js +1 -1
- package/dist/components/Modal/Modal.js +5 -2
- package/dist/components/Modal/Modal.styled.js +4 -3
- package/dist/components/Modal/stories/Modal.stories.js +99 -4
- package/package.json +1 -1
|
@@ -4,27 +4,17 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
-
var react_1 = require("react");
|
|
8
7
|
var prop_types_1 = __importDefault(require("prop-types"));
|
|
9
8
|
var Breadcrumbs_styled_1 = require("./Breadcrumbs.styled");
|
|
10
9
|
var Icon_1 = __importDefault(require("../Icon/Icon"));
|
|
11
10
|
var refactorColumn_1 = __importDefault(require("./../../utils/refactorColumn"));
|
|
11
|
+
var classnames_1 = __importDefault(require("classnames"));
|
|
12
12
|
var Breadcrumbs = function (props) {
|
|
13
13
|
var data = props.data, subMenuRowLength = props.subMenuRowLength, onClickBackIcon = props.onClickBackIcon;
|
|
14
|
-
var _a = (0, react_1.useState)(false), showDropdown = _a[0], setShowDropdown = _a[1];
|
|
15
|
-
var breadcrumbSmRef = (0, react_1.useRef)(null);
|
|
16
14
|
var getSubData = function () {
|
|
17
|
-
var _a;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
var responseData = [];
|
|
21
|
-
if (refactorData) {
|
|
22
|
-
responseData = refactorData.children;
|
|
23
|
-
var activeIndex = responseData.findIndex(function (item) { return item.isActive; });
|
|
24
|
-
if (activeIndex > 0) {
|
|
25
|
-
responseData.splice(0, 0, responseData.splice(activeIndex, 1)[0]);
|
|
26
|
-
}
|
|
27
|
-
return responseData || [];
|
|
15
|
+
var refactorData = data === null || data === void 0 ? void 0 : data.find(function (dataItem) { var _a; return ((_a = dataItem.children) === null || _a === void 0 ? void 0 : _a.length) > 0; });
|
|
16
|
+
if (refactorData && refactorData.children) {
|
|
17
|
+
return refactorData === null || refactorData === void 0 ? void 0 : refactorData.children;
|
|
28
18
|
}
|
|
29
19
|
return [];
|
|
30
20
|
};
|
|
@@ -32,30 +22,33 @@ var Breadcrumbs = function (props) {
|
|
|
32
22
|
var item = _a.item, children = _a.children;
|
|
33
23
|
return item.component ? ((0, jsx_runtime_1.jsx)(item.component, { children: children })) : ((0, jsx_runtime_1.jsx)("a", { href: item.slug, children: children }));
|
|
34
24
|
};
|
|
35
|
-
(
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
25
|
+
setTimeout(function () {
|
|
26
|
+
var elem = document.querySelector('.breadcrumbSm');
|
|
27
|
+
var activeItem = document.querySelector('.breadcrumbSm li.active');
|
|
28
|
+
if (activeItem) {
|
|
29
|
+
elem.scrollLeft = activeItem.offsetLeft;
|
|
30
|
+
}
|
|
31
|
+
}, 100);
|
|
40
32
|
var SubMenu = function (_a) {
|
|
41
33
|
var data = _a.data, item = _a.item;
|
|
42
34
|
var grid = subMenuRowLength && Math.ceil(data.length / subMenuRowLength);
|
|
43
35
|
var dataWithColumn = (0, refactorColumn_1.default)(data, subMenuRowLength || 0);
|
|
44
36
|
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)(Breadcrumbs_styled_1.DropdownList, { gridTemplateColumns: grid, children: dataWithColumn === null || dataWithColumn === void 0 ? void 0 : dataWithColumn.map(function (childColumn) {
|
|
45
37
|
return ((0, jsx_runtime_1.jsx)(Breadcrumbs_styled_1.SubCategoryItem, { children: (0, jsx_runtime_1.jsx)(Breadcrumbs_styled_1.SubCategoryItemList, { children: childColumn === null || childColumn === void 0 ? void 0 : childColumn.map(function (child) {
|
|
46
|
-
return ((0, jsx_runtime_1.jsx)(Breadcrumbs_styled_1.SubCategoryItemListItem, { isActive: child.isActive, isSeeAll: child.isSeeAll, className: "caption-medium-12-15",
|
|
38
|
+
return ((0, jsx_runtime_1.jsx)(Breadcrumbs_styled_1.SubCategoryItemListItem, { isActive: child.isActive, isSeeAll: child.isSeeAll, className: "caption-medium-12-15", children: (0, jsx_runtime_1.jsx)(ButtonLinkComponent, { item: child, children: child.name }) }));
|
|
47
39
|
}) }) }));
|
|
48
40
|
}) }) }));
|
|
49
41
|
};
|
|
50
42
|
var SubMenuMobile = function () {
|
|
51
43
|
var _a;
|
|
52
|
-
return ((0, jsx_runtime_1.jsx)(Breadcrumbs_styled_1.SubMenuMobileWrapper, {
|
|
53
|
-
|
|
44
|
+
return ((0, jsx_runtime_1.jsx)(Breadcrumbs_styled_1.SubMenuMobileWrapper, { className: "breadcrumbSm", children: (_a = getSubData()) === null || _a === void 0 ? void 0 : _a.map(function (item) {
|
|
45
|
+
var _a;
|
|
46
|
+
return ((0, jsx_runtime_1.jsx)(Breadcrumbs_styled_1.SubMenuMobileItem, { isActive: item.isActive, className: (0, classnames_1.default)("caption-bold-12-15", (_a = {}, _a["active"] = item.isActive, _a)), children: (0, jsx_runtime_1.jsx)(ButtonLinkComponent, { item: item, children: item.name }) }));
|
|
54
47
|
}) }));
|
|
55
48
|
};
|
|
56
49
|
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) {
|
|
57
50
|
var _a;
|
|
58
|
-
return ((0, jsx_runtime_1.jsxs)(Breadcrumbs_styled_1.BreadcrumbsListItem, { children: [(0, jsx_runtime_1.jsx)(Breadcrumbs_styled_1.BreadcrumbsListItemBackIconWrapper, { onClick: onClickBackIcon, children: (0, jsx_runtime_1.jsx)(Icon_1.default, { name: "ArrowLeft" }) }), ((_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: "ArrowRight" }) })), (0, jsx_runtime_1.jsxs)(Breadcrumbs_styled_1.BreadcrumbsListDropdownOpener, {
|
|
51
|
+
return ((0, jsx_runtime_1.jsxs)(Breadcrumbs_styled_1.BreadcrumbsListItem, { children: [(0, jsx_runtime_1.jsx)(Breadcrumbs_styled_1.BreadcrumbsListItemBackIconWrapper, { onClick: onClickBackIcon, children: (0, jsx_runtime_1.jsx)(Icon_1.default, { name: "ArrowLeft" }) }), ((_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: "ArrowRight" }) })), (0, jsx_runtime_1.jsxs)(Breadcrumbs_styled_1.BreadcrumbsListDropdownOpener, { className: "caption-bold-12-15", children: [breadCrumbItem.name, (0, jsx_runtime_1.jsx)(Icon_1.default, { stroke: "#9763F6", name: "ArrowSmallDown" })] }), (0, jsx_runtime_1.jsx)(SubMenu, { item: breadCrumbItem, data: breadCrumbItem.children })] })) : ((0, jsx_runtime_1.jsxs)(ButtonLinkComponent, { item: breadCrumbItem, children: [key >= 1 && ((0, jsx_runtime_1.jsx)(Breadcrumbs_styled_1.BreadcrumbsListItemIconWrapper, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, { name: "ArrowRight" }) })), (0, jsx_runtime_1.jsx)(Breadcrumbs_styled_1.BreadcrumbsListItemInner, { className: "caption-bold-12-15", children: breadCrumbItem.name })] }))] }, breadCrumbItem.id));
|
|
59
52
|
}) }), (0, jsx_runtime_1.jsx)(SubMenuMobile, {})] }));
|
|
60
53
|
};
|
|
61
54
|
exports.default = Breadcrumbs;
|
|
@@ -12,17 +12,17 @@ var styled_components_1 = __importDefault(require("styled-components"));
|
|
|
12
12
|
var devices_1 = require("../../constants/devices");
|
|
13
13
|
exports.BreadcrumbsWrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display:block;\n a {\n text-decoration: none;\n color: inherit;\n }\n"], ["\n display:block;\n a {\n text-decoration: none;\n color: inherit;\n }\n"])));
|
|
14
14
|
exports.BreadcrumbsList = styled_components_1.default.ul(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: flex-start;\n width: 100%;\n padding: 0;\n margin:0;\n"], ["\n display: flex;\n align-items: center;\n justify-content: flex-start;\n width: 100%;\n padding: 0;\n margin:0;\n"])));
|
|
15
|
-
exports.BreadcrumbsListItem = styled_components_1.default.li(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n position: relative;\n margin: 0 0;\n padding: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n @media only screen and ", " {\n &:not(:nth-
|
|
15
|
+
exports.BreadcrumbsListItem = styled_components_1.default.li(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n position: relative;\n margin: 0 0;\n padding: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n @media only screen and ", " {\n &:not(:nth-child(2)) {\n display: none;\n }\n }\n > a {\n display: flex;\n align-items: center;\n justify-content: center;\n font-family: inherit;\n }\n &:hover{\n ul{\n opacity: 1;\n visibility: visible;\n transform: translateY(0);\n }\n button {\n svg {\n transform: rotate(180deg);\n }\n }\n }\n"], ["\n position: relative;\n margin: 0 0;\n padding: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n @media only screen and ", " {\n &:not(:nth-child(2)) {\n display: none;\n }\n }\n > a {\n display: flex;\n align-items: center;\n justify-content: center;\n font-family: inherit;\n }\n &:hover{\n ul{\n opacity: 1;\n visibility: visible;\n transform: translateY(0);\n }\n button {\n svg {\n transform: rotate(180deg);\n }\n }\n }\n"])), devices_1.devices.md);
|
|
16
16
|
exports.BreadcrumbsListItemInner = styled_components_1.default.span(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n position: relative;\n margin: 0;\n display: block;\n color: var(--dark-opacity-50);\n max-width: 150px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n"], ["\n position: relative;\n margin: 0;\n display: block;\n color: var(--dark-opacity-50);\n max-width: 150px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n"])));
|
|
17
17
|
exports.BreadcrumbsListItemIconWrapper = styled_components_1.default.span(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n display: block;\n margin-left: 16px;\n margin-right: 16px;\n\n @media only screen and ", " {\n display: none;\n }\n svg {\n display: block;\n }\n"], ["\n display: block;\n margin-left: 16px;\n margin-right: 16px;\n\n @media only screen and ", " {\n display: none;\n }\n svg {\n display: block;\n }\n"])), devices_1.devices.md);
|
|
18
18
|
exports.BreadcrumbsListItemBackIconWrapper = styled_components_1.default.span(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n display: block;\n margin-left: 0;\n margin-right: 16px;\n display: none;\n @media only screen and ", " {\n display: block;\n }\n svg {\n display: block;\n }\n"], ["\n display: block;\n margin-left: 0;\n margin-right: 16px;\n display: none;\n @media only screen and ", " {\n display: block;\n }\n svg {\n display: block;\n }\n"])), devices_1.devices.md);
|
|
19
|
-
exports.BreadcrumbsListDropdownWrapper = styled_components_1.default.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n"])));
|
|
20
|
-
exports.BreadcrumbsListDropdownOpener = styled_components_1.default.button(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n border: 1px solid var(--primary);\n border-radius: 4px;\n color: var(--primary);\n padding: 0 8px;\n background-color: white;\n height: 24px;\n cursor: pointer;\n outline: none !important;\n svg {\n display: inline-block;\n vertical-align: middle;\n width: 16px;\n height: 16px;\n margin-left: 8px;\n }\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n border: 1px solid var(--primary);\n border-radius: 4px;\n color: var(--primary);\n padding: 0 8px;\n background-color: white;\n height: 24px;\n cursor: pointer;\n outline: none !important;\n svg {\n display: inline-block;\n vertical-align: middle;\n width: 16px;\n height: 16px;\n margin-left: 8px;\n }\n"])));
|
|
21
|
-
exports.DropdownList = styled_components_1.default.ul(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n border: 1px solid var(--grey-10);\n background: white;\n z-index:5;\n border-radius: 8px;\n box-shadow: 0px 6px 30px var(--grey-10);\n display: grid;\n padding: 8px;\n grid-template-columns: repeat(\n ", ",\n 154px\n );\n text-align: start;\n gap: 0 16px;\n position: absolute;\n left: 48px;\n top: calc(100% + 8px);\n"], ["\n border: 1px solid var(--grey-10);\n background: white;\n z-index:5;\n border-radius: 8px;\n box-shadow: 0px 6px 30px var(--grey-10);\n display: grid;\n padding: 8px;\n grid-template-columns: repeat(\n ", ",\n 154px\n );\n text-align: start;\n gap: 0 16px;\n position: absolute;\n left: 48px;\n top: calc(100% + 8px);\n"])), function (props) { return props.gridTemplateColumns || "3"; });
|
|
19
|
+
exports.BreadcrumbsListDropdownWrapper = styled_components_1.default.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n\n"])));
|
|
20
|
+
exports.BreadcrumbsListDropdownOpener = styled_components_1.default.button(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n border: 1px solid var(--primary);\n border-radius: 4px;\n color: var(--primary);\n padding: 0 8px;\n background-color: white;\n height: 24px;\n cursor: pointer;\n outline: none !important;\n svg {\n display: inline-block;\n vertical-align: middle;\n width: 16px;\n height: 16px;\n margin-left: 8px;\n transition: all 0.2s ease-in-out;\n }\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n border: 1px solid var(--primary);\n border-radius: 4px;\n color: var(--primary);\n padding: 0 8px;\n background-color: white;\n height: 24px;\n cursor: pointer;\n outline: none !important;\n svg {\n display: inline-block;\n vertical-align: middle;\n width: 16px;\n height: 16px;\n margin-left: 8px;\n transition: all 0.2s ease-in-out;\n }\n"])));
|
|
21
|
+
exports.DropdownList = styled_components_1.default.ul(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n border: 1px solid var(--grey-10);\n background: white;\n z-index:5;\n border-radius: 8px;\n box-shadow: 0px 6px 30px var(--grey-10);\n display: grid;\n padding: 8px;\n grid-template-columns: repeat(\n ", ",\n 154px\n );\n text-align: start;\n gap: 0 16px;\n position: absolute;\n left: 48px;\n top: calc(100% + 8px);\n opacity: 0;\n visibility: hidden;\n transform: translateY(10px);\n transition: all 0.2s ease-in-out;\n"], ["\n border: 1px solid var(--grey-10);\n background: white;\n z-index:5;\n border-radius: 8px;\n box-shadow: 0px 6px 30px var(--grey-10);\n display: grid;\n padding: 8px;\n grid-template-columns: repeat(\n ", ",\n 154px\n );\n text-align: start;\n gap: 0 16px;\n position: absolute;\n left: 48px;\n top: calc(100% + 8px);\n opacity: 0;\n visibility: hidden;\n transform: translateY(10px);\n transition: all 0.2s ease-in-out;\n"])), function (props) { return props.gridTemplateColumns || "3"; });
|
|
22
22
|
exports.SubCategoryItem = styled_components_1.default.li(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n display: block;\n"], ["\n display: block;\n"])));
|
|
23
23
|
exports.SubCategoryItemList = styled_components_1.default.ul(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n display: grid;\n padding: 0;\n gap: 4px 0;\n"], ["\n display: grid;\n padding: 0;\n gap: 4px 0;\n"])));
|
|
24
24
|
exports.SubCategoryItemListItem = styled_components_1.default.li(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n display: block;\n padding: 0;\n > a {\n text-decoration: none;\n color: var(--dark);\n padding: 8px;\n border-radius: 5px;\n display: block;\n ", "\n background-color : var(--primary-opacity-10);\n color: var(--primary);\n font-weight: 700;\n ", "\n ", "\n }\n"], ["\n display: block;\n padding: 0;\n > a {\n text-decoration: none;\n color: var(--dark);\n padding: 8px;\n border-radius: 5px;\n display: block;\n ", "\n background-color : var(--primary-opacity-10);\n color: var(--primary);\n font-weight: 700;\n ", "\n ", "\n }\n"])), function (props) { return (props.isActive ? "" : "&:hover{"); }, function (props) { return (props.isActive ? "" : "}"); }, function (props) { return (props.isSeeAll ? "font-weight: 700;" : ""); });
|
|
25
25
|
exports.BreadcrumbsListDropdownListItem = styled_components_1.default.li(templateObject_13 || (templateObject_13 = __makeTemplateObject([""], [""])));
|
|
26
26
|
exports.SubMenuMobileWrapper = styled_components_1.default.ul(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n display: flex;\n position: relative;\n overflow: auto;\n padding: 0;\n white-space: nowrap;\n gap: 8px;\n width: 100%;\n scroll-snap-type: x proximity;\n -webkit-overflow-scrolling: touch;\n scrollbar-width: none;\n overflow-x: scroll;\n padding: 24px 0 30px 0;\n margin-bottom: 0;\n display: none;\n margin-top:0;\n &::-webkit-scrollbar {\n display: none;\n }\n @media only screen and ", " {\n display: flex;\n }\n"], ["\n display: flex;\n position: relative;\n overflow: auto;\n padding: 0;\n white-space: nowrap;\n gap: 8px;\n width: 100%;\n scroll-snap-type: x proximity;\n -webkit-overflow-scrolling: touch;\n scrollbar-width: none;\n overflow-x: scroll;\n padding: 24px 0 30px 0;\n margin-bottom: 0;\n display: none;\n margin-top:0;\n &::-webkit-scrollbar {\n display: none;\n }\n @media only screen and ", " {\n display: flex;\n }\n"])), devices_1.devices.md);
|
|
27
|
-
exports.SubMenuMobileItem = styled_components_1.default.li(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n display: block;\n a {\n display: block;\n padding: 0 24px;\n height:40px;\n line-height:38px;\n background: #ffffff;\n border: 1px solid ", ";\n box-shadow: 0px 6px 30px #eae9f0;\n border-radius:
|
|
27
|
+
exports.SubMenuMobileItem = styled_components_1.default.li(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n display: block;\n a {\n display: block;\n padding: 0 24px;\n height:40px;\n line-height:38px;\n background: #ffffff;\n border: 1px solid ", ";\n box-shadow: 0px 6px 30px #eae9f0;\n border-radius: 8px;\n text-align: center;\n box-sizing:border-box;\n color: ", ";\n }\n"], ["\n display: block;\n a {\n display: block;\n padding: 0 24px;\n height:40px;\n line-height:38px;\n background: #ffffff;\n border: 1px solid ", ";\n box-shadow: 0px 6px 30px #eae9f0;\n border-radius: 8px;\n text-align: center;\n box-sizing:border-box;\n color: ", ";\n }\n"])), function (props) { return (props.isActive ? "var(--primary)" : "var(--grey-10)"); }, function (props) { return (props.isActive ? "var(--primary)" : "var(--dark-opacity-75)"); });
|
|
28
28
|
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;
|
|
@@ -26,7 +26,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
};
|
|
27
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
28
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
29
|
-
var react_1 = require("react");
|
|
30
29
|
var prop_types_1 = __importDefault(require("prop-types"));
|
|
31
30
|
var CategoryMenu_styled_1 = require("./CategoryMenu.styled");
|
|
32
31
|
var refactorColumn_1 = __importDefault(require("./../../utils/refactorColumn"));
|
|
@@ -39,8 +38,7 @@ var CategoryMenu = function (props) {
|
|
|
39
38
|
};
|
|
40
39
|
var MenuButton = function (_a) {
|
|
41
40
|
var item = __rest(_a, []);
|
|
42
|
-
|
|
43
|
-
return ((0, jsx_runtime_1.jsxs)(CategoryMenu_styled_1.CategoryItem, { isActiveCategory: item.isActive, onMouseEnter: function () { return setMenuIconColor("#0A103D"); }, onMouseLeave: function () { return setMenuIconColor("#474C6D"); }, children: [(0, jsx_runtime_1.jsx)(ButtonLinkComponent, { item: item, children: (0, jsx_runtime_1.jsxs)(CategoryMenu_styled_1.CategoryItemButtonInner, { children: [(0, jsx_runtime_1.jsx)(CategoryMenu_styled_1.CategoryItemButtonIcon, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, { name: item.icon, stroke: menuIconColor }) }), (0, jsx_runtime_1.jsx)(CategoryMenu_styled_1.CategoryItemButtonTitle, { className: "caption-semi-bold-12-15", children: item.name })] }) }), item.children] }));
|
|
41
|
+
return ((0, jsx_runtime_1.jsxs)(CategoryMenu_styled_1.CategoryItem, { isActiveCategory: item.isActive, children: [(0, jsx_runtime_1.jsx)(ButtonLinkComponent, { item: item, children: (0, jsx_runtime_1.jsxs)(CategoryMenu_styled_1.CategoryItemButtonInner, { children: [(0, jsx_runtime_1.jsx)(CategoryMenu_styled_1.CategoryItemButtonIcon, { children: (0, jsx_runtime_1.jsx)(Icon_1.default, { name: item.icon }) }), (0, jsx_runtime_1.jsx)(CategoryMenu_styled_1.CategoryItemButtonTitle, { className: "caption-semi-bold-12-15", children: item.name })] }) }), item.children] }));
|
|
44
42
|
};
|
|
45
43
|
var CategorySubMenu = function (_a) {
|
|
46
44
|
var item = _a.item, children = _a.children;
|
|
@@ -31,7 +31,7 @@ exports.SubCategoryInnerItemButtonInner = exports.SubCategoryInnerItem = exports
|
|
|
31
31
|
var styled_components_1 = __importStar(require("styled-components"));
|
|
32
32
|
exports.CategoryMenuWrapper = styled_components_1.default.ul(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n padding:0;\n margin: 11px 0;\n a {\n text-decoration:none\n }\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n padding:0;\n margin: 11px 0;\n a {\n text-decoration:none\n }\n"])));
|
|
33
33
|
var hoverAndActive = (0, styled_components_1.css)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n color: var(--dark);\n &:before{\n border-color: var(--grey-10);\n box-shadow: 0px 6px 30px 0px #EAE9F0;\n }\n"], ["\n color: var(--dark);\n &:before{\n border-color: var(--grey-10);\n box-shadow: 0px 6px 30px 0px #EAE9F0;\n }\n"])));
|
|
34
|
-
exports.CategoryItem = styled_components_1.default.li(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: block;\n position: relative;\n margin: 0 8.5px;\n padding-bottom: 8px;\n padding-top: 8px;\n &:hover{\n > ul{\n opacity: 1;\n visibility: visible;\n transform: translateY(0);\n }\n > a {\n > span{\n ", "\n }\n }\n }\n ", "\n"], ["\n display: block;\n position: relative;\n margin: 0 8.5px;\n padding-bottom: 8px;\n padding-top: 8px;\n &:hover{\n > ul{\n opacity: 1;\n visibility: visible;\n transform: translateY(0);\n }\n > a {\n > span{\n ", "\n }\n }\n }\n ", "\n"])), hoverAndActive, function (props) { return props.isActiveCategory ? "\n > a > span{\n ".concat(hoverAndActive, "\n }\n ") : ""; });
|
|
34
|
+
exports.CategoryItem = styled_components_1.default.li(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: block;\n position: relative;\n margin: 0 8.5px;\n padding-bottom: 8px;\n padding-top: 8px;\n path, circle {\n stroke : var(--dark-opacity-75)\n }\n &:hover{\n path , circle {\n stroke : var(--dark);\n }\n > ul{\n opacity: 1;\n visibility: visible;\n transform: translateY(0);\n }\n > a {\n > span{\n ", "\n }\n }\n }\n ", "\n"], ["\n display: block;\n position: relative;\n margin: 0 8.5px;\n padding-bottom: 8px;\n padding-top: 8px;\n path, circle {\n stroke : var(--dark-opacity-75)\n }\n &:hover{\n path , circle {\n stroke : var(--dark);\n }\n > ul{\n opacity: 1;\n visibility: visible;\n transform: translateY(0);\n }\n > a {\n > span{\n ", "\n }\n }\n }\n ", "\n"])), hoverAndActive, function (props) { return props.isActiveCategory ? "\n > a > span{\n ".concat(hoverAndActive, "\n }\n ") : ""; });
|
|
35
35
|
exports.CategoryItemButtonInner = styled_components_1.default.span(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n text-decoration: none;\n padding: 12px 16px;\n color: var(--dark-opacity-75);\n margin: 0;\n transition: all 0.2s ease-in-out;\n text-align: center;\n outline: none;\n display: block;\n position: relative;\n border: 0;\n background: transparent;\n outline: 0;\n width: 100%;\n font-family:inherit;\n cursor:pointer;\n box-sizing: border-box;\n &:before{\n content: \"\";\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n border: 1px solid white;\n color: var(--dark-opacity-75);\n background-color: white;\n border-radius: 8px;\n z-index: -1;\n transition: all 0.2s ease-in-out;\n }\n"], ["\n text-decoration: none;\n padding: 12px 16px;\n color: var(--dark-opacity-75);\n margin: 0;\n transition: all 0.2s ease-in-out;\n text-align: center;\n outline: none;\n display: block;\n position: relative;\n border: 0;\n background: transparent;\n outline: 0;\n width: 100%;\n font-family:inherit;\n cursor:pointer;\n box-sizing: border-box;\n &:before{\n content: \"\";\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n border: 1px solid white;\n color: var(--dark-opacity-75);\n background-color: white;\n border-radius: 8px;\n z-index: -1;\n transition: all 0.2s ease-in-out;\n }\n"])));
|
|
36
36
|
exports.CategoryItemButtonIcon = styled_components_1.default.span(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n height: 24px;\n display:block;\n"], ["\n height: 24px;\n display:block;\n"])));
|
|
37
37
|
exports.CategoryItemButtonTitle = styled_components_1.default.strong(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n margin-top: 8px;\n display:block;\n"], ["\n margin-top: 8px;\n display:block;\n"])));
|
|
@@ -44,7 +44,7 @@ var Modal = function (props) {
|
|
|
44
44
|
(props === null || props === void 0 ? void 0 : props.onClose) && props.onClose();
|
|
45
45
|
};
|
|
46
46
|
var onPrimaryAction = props.onPrimaryAction, onSecondaryAction = props.onSecondaryAction, onBack = props.onBack, other = __rest(props, ["onPrimaryAction", "onSecondaryAction", "onBack"]);
|
|
47
|
-
return showModal && react_dom_1.default.createPortal((0, jsx_runtime_1.jsx)(Modal_styled_1.OverlayStyled, { children: (0, jsx_runtime_1.jsxs)(Modal_styled_1.ModalStyled, __assign({}, other, { children: [(0, jsx_runtime_1.jsxs)("div", { className: "header", children: [props.showBackIcon ? (0, jsx_runtime_1.jsx)("div", { onClick: onBack, className: "icon", children: (0, jsx_runtime_1.jsx)(Icon_1.default, { name: "ArrowMedium" }) }) : props.titleAlignment === 'center' && (0, jsx_runtime_1.jsx)("div", { className: "empty" }), (0, jsx_runtime_1.jsxs)("div", { className: "title", children: [props.title && (0, jsx_runtime_1.jsx)("h5", { className: "headline-semi-bold-20-24", children: props.title }), props.titleDescription && (0, jsx_runtime_1.jsx)("p", { className: "body-regular-14-17", children: props.titleDescription })] }), props.showCloseIcon ? (0, jsx_runtime_1.jsx)("div", { onClick: onClose, className: "icon", children: (0, jsx_runtime_1.jsx)(Icon_1.default, { name: "Close" }) }) : (0, jsx_runtime_1.jsx)("div", { className: "empty" })] }), (0, jsx_runtime_1.
|
|
47
|
+
return showModal && react_dom_1.default.createPortal((0, jsx_runtime_1.jsx)(Modal_styled_1.OverlayStyled, { children: (0, jsx_runtime_1.jsxs)(Modal_styled_1.ModalStyled, __assign({}, other, { children: [(0, jsx_runtime_1.jsxs)("div", { className: "header", children: [props.showBackIcon ? (0, jsx_runtime_1.jsx)("div", { onClick: onBack, className: "icon", children: (0, jsx_runtime_1.jsx)(Icon_1.default, { name: "ArrowMedium" }) }) : props.titleAlignment === 'center' && (0, jsx_runtime_1.jsx)("div", { className: "empty" }), (0, jsx_runtime_1.jsxs)("div", { className: "title", children: [props.title && (0, jsx_runtime_1.jsx)("h5", { className: "headline-semi-bold-20-24", children: props.title }), props.titleDescription && (0, jsx_runtime_1.jsx)("p", { className: "body-regular-14-17", children: props.titleDescription })] }), props.showCloseIcon ? (0, jsx_runtime_1.jsx)("div", { onClick: onClose, className: "icon", children: (0, jsx_runtime_1.jsx)(Icon_1.default, { name: "Close" }) }) : (0, jsx_runtime_1.jsx)("div", { className: "empty" })] }), (0, jsx_runtime_1.jsxs)("div", { className: "content", children: [props.contentTitle && (0, jsx_runtime_1.jsx)("strong", { className: "contentTitle headline-semi-bold-20-24", children: props.contentTitle }), (0, jsx_runtime_1.jsx)("div", { className: "contentInner", children: props.children })] }), (0, jsx_runtime_1.jsxs)("div", { className: "buttons", children: [props.showPrimaryButton && (0, jsx_runtime_1.jsx)(Button_1.default, __assign({ onClick: onPrimaryAction, size: 'big', variant: 'primary' }, props.primaryButtonProps, { children: props.primaryButtonText })), props.showSecondaryButton && (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [props.buttonsAlignment === 'vertical' && (0, jsx_runtime_1.jsx)("div", { className: "divider caption-medium-12-15", children: "veya" }), (0, jsx_runtime_1.jsx)(Button_1.default, __assign({ onClick: onSecondaryAction, size: 'big', variant: 'inverted' }, props.secondaryButtonProps, { children: props.secondaryButtonText }))] })] })] })) }), document.body);
|
|
48
48
|
};
|
|
49
49
|
exports.default = Modal;
|
|
50
50
|
Modal.defaultProps = {
|
|
@@ -61,5 +61,8 @@ Modal.defaultProps = {
|
|
|
61
61
|
},
|
|
62
62
|
showHeaderBorder: false,
|
|
63
63
|
showFooterBorder: false,
|
|
64
|
-
|
|
64
|
+
showContentBorder: false,
|
|
65
|
+
hasFixedHeight: false,
|
|
66
|
+
titleAlignment: 'center',
|
|
67
|
+
contentTitle: ''
|
|
65
68
|
};
|
|
@@ -9,7 +9,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.OverlayStyled = exports.ModalStyled = void 0;
|
|
11
11
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
|
-
|
|
12
|
+
var devices_1 = require("../../constants/devices");
|
|
13
|
+
exports.ModalStyled = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background: white;\n border-radius: 8px;\n box-sizing: border-box;\n width: ", ";\n \n @media only screen and ", " {\n display: grid;\n height: 100dvh;\n align-content: space-between;\n border-radius: 0;\n }\n \n div.header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 24px;\n border-bottom: ", ";\n margin-bottom: ", "; \n box-sizing: border-box;\n\n div.empty {\n width: 32px;\n height: 32px;\n }\n\n div.icon {\n width: 32px;\n height: 32px;\n border-radius: 8px;\n cursor: pointer;\n background: white;\n transition: all .2s;\n\n &:hover {\n box-shadow: 0 6px 30px #EAE9F0;\n }\n\n }\n div.title {\n h5 {\n margin: 0;\n padding: 0;\n }\n p {\n margin: 8px 0 0;\n }\n }\n \n }\n\n div.content {\n padding: 0 24px;\n .contentTitle{\n margin-bottom:32px;\n display:block;\n }\n .contentInner{\n @media only screen and ", " {\n height : calc(100dvh - 251px);\n position:relative;\n overflow: auto;\n }\n box-sizing:border-box;\n height: ", ";\n position: relative;\n overflow: auto;\n ", "\n }\n }\n\n div.buttons {\n padding: 24px;\n display: flex;\n justify-content: ", ";\n box-sizing: border-box;\n border-top: ", ";\n margin-top: ", ";\n flex-direction: ", ";\n\n div.divider {\n overflow: hidden;\n text-align: center;\n width: 100%;\n color: var(--dark-opacity-10);\n margin: 16px 0;\n\n &:before, &:after {\n background-color: var(--dark-opacity-10);\n content: \"\";\n display: inline-block;\n height: 1px;\n position: relative;\n vertical-align: middle;\n width: 50%;\n }\n\n &:before {\n right: 8px;\n margin-left: -50%;\n }\n\n &:after {\n left: 8px;\n margin-right: -50%;\n }\n }\n\n button {\n width: auto;\n }\n button + button {\n margin-right: ", ";\n }\n }\n"], ["\n background: white;\n border-radius: 8px;\n box-sizing: border-box;\n width: ", ";\n \n @media only screen and ", " {\n display: grid;\n height: 100dvh;\n align-content: space-between;\n border-radius: 0;\n }\n \n div.header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n padding: 24px;\n border-bottom: ", ";\n margin-bottom: ", "; \n box-sizing: border-box;\n\n div.empty {\n width: 32px;\n height: 32px;\n }\n\n div.icon {\n width: 32px;\n height: 32px;\n border-radius: 8px;\n cursor: pointer;\n background: white;\n transition: all .2s;\n\n &:hover {\n box-shadow: 0 6px 30px #EAE9F0;\n }\n\n }\n div.title {\n h5 {\n margin: 0;\n padding: 0;\n }\n p {\n margin: 8px 0 0;\n }\n }\n \n }\n\n div.content {\n padding: 0 24px;\n .contentTitle{\n margin-bottom:32px;\n display:block;\n }\n .contentInner{\n @media only screen and ", " {\n height : calc(100dvh - 251px);\n position:relative;\n overflow: auto;\n }\n box-sizing:border-box;\n height: ", ";\n position: relative;\n overflow: auto;\n ", "\n }\n }\n\n div.buttons {\n padding: 24px;\n display: flex;\n justify-content: ", ";\n box-sizing: border-box;\n border-top: ", ";\n margin-top: ", ";\n flex-direction: ", ";\n\n div.divider {\n overflow: hidden;\n text-align: center;\n width: 100%;\n color: var(--dark-opacity-10);\n margin: 16px 0;\n\n &:before, &:after {\n background-color: var(--dark-opacity-10);\n content: \"\";\n display: inline-block;\n height: 1px;\n position: relative;\n vertical-align: middle;\n width: 50%;\n }\n\n &:before {\n right: 8px;\n margin-left: -50%;\n }\n\n &:after {\n left: 8px;\n margin-right: -50%;\n }\n }\n\n button {\n width: auto;\n }\n button + button {\n margin-right: ", ";\n }\n }\n"])), function (props) {
|
|
13
14
|
switch (props.size) {
|
|
14
15
|
case 'small':
|
|
15
16
|
return "375px";
|
|
@@ -20,7 +21,7 @@ exports.ModalStyled = styled_components_1.default.div(templateObject_1 || (templ
|
|
|
20
21
|
default:
|
|
21
22
|
return "462px";
|
|
22
23
|
}
|
|
23
|
-
}, function (props) { return props.showHeaderBorder ? '1px solid
|
|
24
|
+
}, devices_1.devices.md, function (props) { return props.showHeaderBorder ? '1px solid var(--dark-opacity-10)' : 'none'; }, function (props) { return props.showHeaderBorder ? '24px' : '0'; }, devices_1.devices.md, function (props) { return props.hasFixedHeight ? '507px' : 'auto'; }, function (props) { return props.showContentBorder ? ("\n border:1px solid var(--dark-opacity-10);\n border-radius: 8px;\n padding: 24px;\n ") : (""); }, function (props) { return props.buttonsAlignment == 'horizontal' ? 'flex-start' : 'space-between'; }, function (props) { return props.showFooterBorder ? '1px solid var(--dark-opacity-10)' : 'none'; }, function (props) { return props.showFooterBorder ? '24px' : '0'; }, function (props) {
|
|
24
25
|
switch (props.buttonsAlignment) {
|
|
25
26
|
case 'vertical':
|
|
26
27
|
return 'column';
|
|
@@ -29,6 +30,6 @@ exports.ModalStyled = styled_components_1.default.div(templateObject_1 || (templ
|
|
|
29
30
|
default:
|
|
30
31
|
return 'column';
|
|
31
32
|
}
|
|
32
|
-
}, function (props) { return props.buttonsAlignment == 'horizontal' ? '
|
|
33
|
+
}, function (props) { return props.buttonsAlignment == 'horizontal' ? '24px' : '0'; });
|
|
33
34
|
exports.OverlayStyled = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n position: fixed;\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: var(--grey-40);\n overflow: hidden;\n left: 0;\n top: 0;\n z-index: 999999;\n"], ["\n position: fixed;\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: var(--grey-40);\n overflow: hidden;\n left: 0;\n top: 0;\n z-index: 999999;\n"])));
|
|
34
35
|
var templateObject_1, templateObject_2;
|
|
@@ -3,7 +3,7 @@ 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.Default = void 0;
|
|
6
|
+
exports.Type6 = exports.Type5 = exports.Type4 = exports.Type3 = exports.Type2 = exports.Type1 = exports.Default = void 0;
|
|
7
7
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
8
|
var Modal_1 = __importDefault(require("../Modal"));
|
|
9
9
|
var props_1 = require("../props");
|
|
@@ -23,7 +23,7 @@ exports.default = {
|
|
|
23
23
|
defaultValue: 'Title',
|
|
24
24
|
},
|
|
25
25
|
onPrimaryAction: { action: 'primary clicked' },
|
|
26
|
-
onSecondaryAction: { action: 'secondary clicked' }
|
|
26
|
+
onSecondaryAction: { action: 'secondary clicked' },
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
29
|
exports.Default = {
|
|
@@ -34,8 +34,103 @@ exports.Default = {
|
|
|
34
34
|
title: 'Title',
|
|
35
35
|
showPrimaryButton: true,
|
|
36
36
|
showSecondaryButton: true,
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
hasFixedHeight: false,
|
|
38
|
+
primaryButtonText: 'Primary Action',
|
|
39
|
+
secondaryButtonText: 'Other',
|
|
40
|
+
children: (0, jsx_runtime_1.jsx)("div", { children: "Content" })
|
|
41
|
+
},
|
|
42
|
+
};
|
|
43
|
+
exports.Type1 = {
|
|
44
|
+
args: {
|
|
45
|
+
showBackIcon: true,
|
|
46
|
+
showCloseIcon: true,
|
|
47
|
+
show: true,
|
|
48
|
+
title: 'Title',
|
|
49
|
+
showPrimaryButton: true,
|
|
50
|
+
showSecondaryButton: true,
|
|
51
|
+
primaryButtonText: 'Primary Action',
|
|
52
|
+
secondaryButtonText: 'Other',
|
|
53
|
+
children: (0, jsx_runtime_1.jsx)("div", { children: "Content" })
|
|
54
|
+
},
|
|
55
|
+
};
|
|
56
|
+
exports.Type2 = {
|
|
57
|
+
args: {
|
|
58
|
+
showBackIcon: true,
|
|
59
|
+
showCloseIcon: true,
|
|
60
|
+
show: true,
|
|
61
|
+
title: 'Title',
|
|
62
|
+
showPrimaryButton: true,
|
|
63
|
+
showSecondaryButton: false,
|
|
64
|
+
primaryButtonText: 'Primary Action',
|
|
65
|
+
secondaryButtonText: 'Other',
|
|
66
|
+
children: (0, jsx_runtime_1.jsx)("div", { children: "Content" })
|
|
67
|
+
},
|
|
68
|
+
};
|
|
69
|
+
exports.Type3 = {
|
|
70
|
+
args: {
|
|
71
|
+
showBackIcon: false,
|
|
72
|
+
showCloseIcon: true,
|
|
73
|
+
show: true,
|
|
74
|
+
contentTitle: 'Title',
|
|
75
|
+
showPrimaryButton: true,
|
|
76
|
+
showSecondaryButton: false,
|
|
77
|
+
buttonsAlignment: 'horizontal',
|
|
78
|
+
primaryButtonText: 'Primary Action',
|
|
79
|
+
secondaryButtonText: 'Other',
|
|
80
|
+
children: (0, jsx_runtime_1.jsx)("div", { children: "Content" })
|
|
81
|
+
},
|
|
82
|
+
};
|
|
83
|
+
exports.Type4 = {
|
|
84
|
+
args: {
|
|
85
|
+
showBackIcon: false,
|
|
86
|
+
showCloseIcon: true,
|
|
87
|
+
show: true,
|
|
88
|
+
contentTitle: 'Title',
|
|
89
|
+
showPrimaryButton: true,
|
|
90
|
+
showSecondaryButton: true,
|
|
91
|
+
buttonsAlignment: 'horizontal',
|
|
92
|
+
primaryButtonText: 'Primary Action',
|
|
93
|
+
secondaryButtonText: 'Other',
|
|
94
|
+
children: (0, jsx_runtime_1.jsx)("div", { children: "Content" })
|
|
95
|
+
},
|
|
96
|
+
};
|
|
97
|
+
exports.Type5 = {
|
|
98
|
+
args: {
|
|
99
|
+
showBackIcon: false,
|
|
100
|
+
showCloseIcon: true,
|
|
101
|
+
show: true,
|
|
102
|
+
title: 'Title',
|
|
103
|
+
titleDescription: 'Body Text',
|
|
104
|
+
buttonsAlignment: 'horizontal',
|
|
105
|
+
showPrimaryButton: true,
|
|
106
|
+
showSecondaryButton: false,
|
|
107
|
+
showHeaderBorder: true,
|
|
108
|
+
showContentBorder: true,
|
|
109
|
+
showFooterBorder: true,
|
|
110
|
+
hasFixedHeight: false,
|
|
111
|
+
primaryButtonText: 'Primary Action',
|
|
112
|
+
secondaryButtonText: 'Other',
|
|
113
|
+
titleAlignment: 'left',
|
|
114
|
+
children: (0, jsx_runtime_1.jsx)("div", { children: "Content" })
|
|
115
|
+
},
|
|
116
|
+
};
|
|
117
|
+
exports.Type6 = {
|
|
118
|
+
args: {
|
|
119
|
+
showBackIcon: false,
|
|
120
|
+
showCloseIcon: true,
|
|
121
|
+
show: true,
|
|
122
|
+
title: 'Title',
|
|
123
|
+
titleDescription: 'Body Text',
|
|
124
|
+
buttonsAlignment: 'horizontal',
|
|
125
|
+
showPrimaryButton: true,
|
|
126
|
+
showSecondaryButton: true,
|
|
127
|
+
showHeaderBorder: true,
|
|
128
|
+
showContentBorder: true,
|
|
129
|
+
showFooterBorder: true,
|
|
130
|
+
hasFixedHeight: false,
|
|
131
|
+
primaryButtonText: 'Primary Action',
|
|
132
|
+
secondaryButtonText: 'Other',
|
|
133
|
+
titleAlignment: 'left',
|
|
39
134
|
children: (0, jsx_runtime_1.jsx)("div", { children: "Content" })
|
|
40
135
|
},
|
|
41
136
|
};
|