linkedunion-design-kit 1.4.9 → 1.5.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/.next/types/app/page.js +26 -1
- package/dist/app/layout.js +11 -7
- package/dist/app/page.js +10 -4
- package/dist/app/scripts.js +8 -3
- package/dist/components/Avatar/Avatar.js +12 -7
- package/dist/components/Avatar/Avatar.stories.js +19 -13
- package/dist/components/Border/BorderRadius/BorderRadius.js +9 -5
- package/dist/components/Border/BorderRadius/BorderRadius.stories.js +14 -11
- package/dist/components/Border/BorderRadius/BorderRadiusTable.js +8 -4
- package/dist/components/Border/BorderRadius/BorderRadiusView.js +7 -3
- package/dist/components/Border/BorderWidth/BorderWidth.js +9 -5
- package/dist/components/Border/BorderWidth/BorderWidth.stories.js +14 -11
- package/dist/components/Border/BorderWidth/BorderWidthTable.js +8 -4
- package/dist/components/Border/BorderWidth/ViewBorderWidth.js +7 -3
- package/dist/components/Button/Button.js +17 -9
- package/dist/components/Button/Button.stories.js +50 -46
- package/dist/components/Button/index.d.ts +2 -2
- package/dist/components/Button/index.js +7 -4
- package/dist/components/Color/BackgroundColor/Color.js +7 -3
- package/dist/components/Color/BackgroundColor/Color.stories.js +33 -30
- package/dist/components/Color/BackgroundColor/index.js +7 -4
- package/dist/components/Color/TextColor/TextColor.d.ts +3 -0
- package/dist/components/Color/TextColor/TextColor.js +5 -0
- package/dist/components/Color/TextColor/TextColor.stories.d.ts +6 -0
- package/dist/components/Color/TextColor/TextColor.stories.js +32 -0
- package/dist/components/Color/TextColor.js +7 -3
- package/dist/components/Color/TextColor.stories.js +14 -11
- package/dist/components/Icons/IconView.js +9 -5
- package/dist/components/Icons/IconView.stories.js +9 -6
- package/dist/components/Icons/LUIcon.js +7 -5
- package/dist/components/Icons/LUIcon.stories.js +23 -17
- package/dist/components/Images/LuImage.js +12 -5
- package/dist/components/Images/LuImage.stories.js +21 -18
- package/dist/components/MediaCard/Card.js +18 -15
- package/dist/components/MediaCard/Card.stories.js +28 -26
- package/dist/components/MediaCard/ContactProfile/ContactProfile.js +14 -10
- package/dist/components/MediaCard/ContactProfile/ContactProfileTheme1.js +15 -8
- package/dist/components/MediaCard/ContactProfile/ContactProfileTheme2.js +15 -8
- package/dist/components/MediaCard/PostByCategory/PostByCategory.js +14 -10
- package/dist/components/MediaCard/PostByCategory/PostByCategoryTheme1.js +15 -8
- package/dist/components/MediaCard/PostByCategory/PostByCategoryTheme2.js +15 -8
- package/dist/components/MediaCard/index.d.ts +6 -10
- package/dist/components/MediaCard/index.js +11 -14
- package/dist/components/Size/MinWidthHeight.js +5 -3
- package/dist/components/Size/MinWidthHeight.stories.js +19 -13
- package/dist/components/Size/Size.js +5 -3
- package/dist/components/Size/Size.stories.js +17 -11
- package/dist/components/Size/WidthHeight.js +5 -3
- package/dist/components/Size/WidthHeight.stories.js +19 -13
- package/dist/components/Spacing/Margin/Margin.js +8 -4
- package/dist/components/Spacing/Margin/MarginBottom.js +8 -4
- package/dist/components/Spacing/Margin/MarginLeft.js +8 -4
- package/dist/components/Spacing/Margin/MarginRight.js +8 -4
- package/dist/components/Spacing/Margin/MarginToken.js +15 -11
- package/dist/components/Spacing/Margin/MarginToken.stories.js +9 -6
- package/dist/components/Spacing/Margin/MarginTop.js +8 -4
- package/dist/components/Spacing/Margin/MarginX.js +8 -4
- package/dist/components/Spacing/Margin/MarginY.js +8 -4
- package/dist/components/Spacing/Padding/Padding.js +8 -4
- package/dist/components/Spacing/Padding/PaddingBottom.js +8 -4
- package/dist/components/Spacing/Padding/PaddingLeft.js +8 -4
- package/dist/components/Spacing/Padding/PaddingRight.js +8 -4
- package/dist/components/Spacing/Padding/PaddingToken.js +15 -11
- package/dist/components/Spacing/Padding/PaddingToken.stories.js +9 -6
- package/dist/components/Spacing/Padding/PaddingTop.js +8 -4
- package/dist/components/Spacing/Padding/PaddingX.js +8 -4
- package/dist/components/Spacing/Padding/PaddingY.js +8 -4
- package/dist/components/Title/Title.js +11 -6
- package/dist/components/Title/Title.stories.js +15 -9
- package/dist/components/Title/Title.test.js +14 -9
- package/dist/components/Typography/Body/Body.js +8 -6
- package/dist/components/Typography/Body/Body.stories.js +25 -18
- package/dist/components/Typography/Body/index.js +27 -24
- package/dist/components/Typography/Body/type.js +2 -1
- package/dist/components/Typography/Display/Display.js +8 -6
- package/dist/components/Typography/Display/Display.stories.js +25 -18
- package/dist/components/Typography/Display/index.js +24 -21
- package/dist/components/Typography/Display/type.js +2 -1
- package/dist/components/Typography/Headings/Heading.test.js +24 -19
- package/dist/components/Typography/Headings/Headings.js +8 -6
- package/dist/components/Typography/Headings/Headings.stories.js +27 -20
- package/dist/components/Typography/Headings/index.js +38 -35
- package/dist/components/Typography/Headings/type.js +2 -1
- package/dist/components/Typography/Typography.js +7 -3
- package/dist/components/Typography/Typography.stories.js +27 -24
- package/dist/global/components/Table/Table.js +7 -5
- package/dist/index.js +31 -13
- package/dist/tailwind.config.js +72 -67
- package/dist/utils/colors.js +4 -1
- package/dist/utils/constants.js +5 -2
- package/dist/utils/enums.d.ts +6 -22
- package/dist/utils/enums.js +22 -34
- package/dist/utils/iconList.js +4 -1
- package/dist/utils/index.d.ts +4 -4
- package/dist/utils/index.js +78 -85
- package/package.json +2 -1
|
@@ -1,7 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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.LuImage = void 0;
|
|
7
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
+
var image_1 = __importDefault(require("next/image"));
|
|
9
|
+
var LuImage = function (_a) {
|
|
4
10
|
var image = _a.image, _b = _a.aspectRatio, aspectRatio = _b === void 0 ? "" : _b, _c = _a.width, width = _c === void 0 ? 240 : _c, _d = _a.height, height = _d === void 0 ? 240 : _d, _e = _a.className, className = _e === void 0 ? "" : _e;
|
|
5
|
-
return (
|
|
11
|
+
return ((0, jsx_runtime_1.jsx)(image_1.default, { src: image || "", alt: "Image", width: width, height: height, className: "".concat(aspectRatio, " ").concat(className) }));
|
|
6
12
|
};
|
|
7
|
-
|
|
13
|
+
exports.LuImage = LuImage;
|
|
14
|
+
exports.default = exports.LuImage;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __assign = (this && this.__assign) || function () {
|
|
2
3
|
__assign = Object.assign || function(t) {
|
|
3
4
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -9,41 +10,43 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
10
|
};
|
|
10
11
|
return __assign.apply(this, arguments);
|
|
11
12
|
};
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.image = void 0;
|
|
15
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
16
|
+
var LuImage_1 = require("./LuImage");
|
|
17
|
+
var utils_1 = require("../../utils");
|
|
18
|
+
var enums_1 = require("../../utils/enums");
|
|
19
|
+
exports.default = {
|
|
17
20
|
title: "Components/Image",
|
|
18
|
-
component: LuImage,
|
|
21
|
+
component: LuImage_1.LuImage,
|
|
19
22
|
};
|
|
20
23
|
var Template = function (args, _a) {
|
|
21
24
|
var argTypes = _a.argTypes;
|
|
22
25
|
//Show aspectRatio options based on orientation(landscape)
|
|
23
|
-
var isLandscape = args.orientation ===
|
|
26
|
+
var isLandscape = args.orientation === enums_1.OrientationEnum.horizontal;
|
|
24
27
|
argTypes.aspectRatio.options = isLandscape
|
|
25
|
-
? landscapeaspectRatioList.map(function (ratio) { return ratio.key; })
|
|
26
|
-
: portraitaspectRatioList.map(function (ratio) { return ratio.key; });
|
|
27
|
-
argTypes.aspectRatio.control.labels = Object.fromEntries((isLandscape ? landscapeaspectRatioList : portraitaspectRatioList).map(function (ratio) { return [ratio.key, ratio.label]; }));
|
|
28
|
-
return
|
|
28
|
+
? utils_1.landscapeaspectRatioList.map(function (ratio) { return ratio.key; })
|
|
29
|
+
: utils_1.portraitaspectRatioList.map(function (ratio) { return ratio.key; });
|
|
30
|
+
argTypes.aspectRatio.control.labels = Object.fromEntries((isLandscape ? utils_1.landscapeaspectRatioList : utils_1.portraitaspectRatioList).map(function (ratio) { return [ratio.key, ratio.label]; }));
|
|
31
|
+
return (0, jsx_runtime_1.jsx)(LuImage_1.LuImage, __assign({}, args));
|
|
29
32
|
};
|
|
30
|
-
|
|
31
|
-
image.args = {
|
|
33
|
+
exports.image = Template.bind({});
|
|
34
|
+
exports.image.args = {
|
|
32
35
|
image: "/images/demo-image.jpg",
|
|
33
|
-
aspectRatio: portraitaspectRatioList[0].key,
|
|
36
|
+
aspectRatio: utils_1.portraitaspectRatioList[0].key,
|
|
34
37
|
width: 240,
|
|
35
38
|
height: 240,
|
|
36
39
|
className: "",
|
|
37
40
|
};
|
|
38
|
-
image.argTypes = {
|
|
41
|
+
exports.image.argTypes = {
|
|
39
42
|
orientation: {
|
|
40
43
|
control: { type: "select" },
|
|
41
|
-
options: [
|
|
44
|
+
options: [enums_1.OrientationEnum.vertical, enums_1.OrientationEnum.horizontal],
|
|
42
45
|
},
|
|
43
46
|
//Show Default aspectRatio options for portrait orientation
|
|
44
47
|
aspectRatio: {
|
|
45
48
|
control: { type: "select" },
|
|
46
|
-
options: portraitaspectRatioList.map(function (ratio) { return ratio.key; }),
|
|
47
|
-
labels: Object.fromEntries(portraitaspectRatioList.map(function (ratio) { return [ratio.key, ratio.label]; })),
|
|
49
|
+
options: utils_1.portraitaspectRatioList.map(function (ratio) { return ratio.key; }),
|
|
50
|
+
labels: Object.fromEntries(utils_1.portraitaspectRatioList.map(function (ratio) { return [ratio.key, ratio.label]; })),
|
|
48
51
|
},
|
|
49
52
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __assign = (this && this.__assign) || function () {
|
|
2
3
|
__assign = Object.assign || function(t) {
|
|
3
4
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -9,22 +10,24 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
10
|
};
|
|
10
11
|
return __assign.apply(this, arguments);
|
|
11
12
|
};
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
15
|
+
var PostByCategory_1 = require("./PostByCategory/PostByCategory");
|
|
16
|
+
var colors_1 = require("../../utils/colors");
|
|
17
|
+
var utils_1 = require("../../utils");
|
|
18
|
+
var ContactProfile_1 = require("./ContactProfile/ContactProfile");
|
|
19
|
+
var _1 = require(".");
|
|
20
|
+
var enums_1 = require("../../utils/enums");
|
|
18
21
|
var Card = function (_a) {
|
|
19
|
-
var _b = _a.type, type = _b === void 0 ?
|
|
20
|
-
card_title_color: colors.default,
|
|
21
|
-
card_description_color: colors.caption_color,
|
|
22
|
+
var _b = _a.type, type = _b === void 0 ? _1.SectionTypeEnum.postByCategoriesTheme : _b, _c = _a.layout, layout = _c === void 0 ? enums_1.OrientationEnum.horizontal : _c, _d = _a.id, id = _d === void 0 ? 1 : _d, _e = _a.className, className = _e === void 0 ? "" : _e, _f = _a.image, image = _f === void 0 ? utils_1.defaultCardProps.image : _f, _g = _a.mediaPosition, mediaPosition = _g === void 0 ? "" : _g, _h = _a.heading, heading = _h === void 0 ? utils_1.defaultCardProps.heading : _h, _j = _a.body, body = _j === void 0 ? utils_1.defaultCardProps.body : _j, _k = _a.href, href = _k === void 0 ? utils_1.defaultCardProps.href : _k, _l = _a.btnLabel, btnLabel = _l === void 0 ? utils_1.defaultCardProps.btnLabel : _l, _m = _a.cardStyle, cardStyle = _m === void 0 ? {
|
|
23
|
+
card_title_color: colors_1.colors.default,
|
|
24
|
+
card_description_color: colors_1.colors.caption_color,
|
|
22
25
|
card_shadow_toggle: 1,
|
|
23
26
|
card_shadow_color: "rgba(52, 52, 52, 0.15)",
|
|
24
|
-
card_background_color: colors.white,
|
|
25
|
-
card_button_background_color: colors.gray,
|
|
26
|
-
card_button_text_color: colors.default,
|
|
27
|
-
card_image_border_color: colors === null || colors === void 0 ? void 0 : colors.default,
|
|
27
|
+
card_background_color: colors_1.colors.white,
|
|
28
|
+
card_button_background_color: colors_1.colors.gray,
|
|
29
|
+
card_button_text_color: colors_1.colors.default,
|
|
30
|
+
card_image_border_color: colors_1.colors === null || colors_1.colors === void 0 ? void 0 : colors_1.colors.default,
|
|
28
31
|
card_image_border_radius: "0",
|
|
29
32
|
card_image_border: "0",
|
|
30
33
|
} : _m;
|
|
@@ -40,6 +43,6 @@ var Card = function (_a) {
|
|
|
40
43
|
href: href,
|
|
41
44
|
cardStyle: cardStyle,
|
|
42
45
|
};
|
|
43
|
-
return (
|
|
46
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [type === _1.SectionTypeEnum.postByCategoriesTheme && ((0, jsx_runtime_1.jsx)(PostByCategory_1.PostByCategory, __assign({}, data))), type === _1.SectionTypeEnum.contactsProfileTheme && ((0, jsx_runtime_1.jsx)(ContactProfile_1.ContactProfile, __assign({}, data)))] }));
|
|
44
47
|
};
|
|
45
|
-
|
|
48
|
+
exports.default = Card;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __assign = (this && this.__assign) || function () {
|
|
2
3
|
__assign = Object.assign || function(t) {
|
|
3
4
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -9,51 +10,52 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
10
|
};
|
|
10
11
|
return __assign.apply(this, arguments);
|
|
11
12
|
};
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.card = void 0;
|
|
18
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
19
|
+
var Card_1 = __importDefault(require("./Card"));
|
|
20
|
+
var utils_1 = require("../../utils");
|
|
21
|
+
var colors_1 = require("../../utils/colors");
|
|
22
|
+
var _1 = require(".");
|
|
23
|
+
var enums_1 = require("../../utils/enums");
|
|
24
|
+
exports.default = {
|
|
18
25
|
title: "Components/Card",
|
|
19
|
-
component:
|
|
26
|
+
component: Card_1.default,
|
|
20
27
|
};
|
|
21
|
-
var Template = function (args) { return
|
|
22
|
-
|
|
23
|
-
card.args = {
|
|
24
|
-
type:
|
|
28
|
+
var Template = function (args) { return (0, jsx_runtime_1.jsx)(Card_1.default, __assign({}, args)); };
|
|
29
|
+
exports.card = Template.bind({});
|
|
30
|
+
exports.card.args = {
|
|
31
|
+
type: _1.SectionTypeEnum.postByCategoriesTheme,
|
|
25
32
|
image: "/images/demo-image.jpg",
|
|
26
33
|
heading: "Heading Text",
|
|
27
34
|
body: "The quick brown fox jumps over the lazy dog.",
|
|
28
|
-
|
|
29
|
-
layout: cardLayoutEnum.horizontal,
|
|
35
|
+
layout: enums_1.OrientationEnum.horizontal,
|
|
30
36
|
btnLabel: "View More",
|
|
31
37
|
href: "https://www.google.com/",
|
|
32
38
|
cardStyle: {
|
|
33
|
-
card_title_color: colors.default,
|
|
34
|
-
card_description_color: colors.caption_color,
|
|
39
|
+
card_title_color: colors_1.colors.default,
|
|
40
|
+
card_description_color: colors_1.colors.caption_color,
|
|
35
41
|
card_shadow_toggle: 1,
|
|
36
42
|
card_shadow_color: "rgba(52, 52, 52, 0.15)",
|
|
37
|
-
card_background_color: colors.white,
|
|
38
|
-
card_button_background_color: colors.gray,
|
|
39
|
-
card_button_text_color: colors.default,
|
|
43
|
+
card_background_color: colors_1.colors.white,
|
|
44
|
+
card_button_background_color: colors_1.colors.gray,
|
|
45
|
+
card_button_text_color: colors_1.colors.default,
|
|
40
46
|
},
|
|
41
47
|
id: 1,
|
|
42
48
|
};
|
|
43
|
-
card.argTypes = {
|
|
44
|
-
mediaPosition: {
|
|
45
|
-
control: { type: "select" },
|
|
46
|
-
options: [orientationEnum.portrait, orientationEnum.landscape],
|
|
47
|
-
},
|
|
49
|
+
exports.card.argTypes = {
|
|
48
50
|
layout: {
|
|
49
51
|
control: { type: "select" },
|
|
50
|
-
options: [
|
|
52
|
+
options: [enums_1.OrientationEnum.horizontal, enums_1.OrientationEnum.vertical],
|
|
51
53
|
},
|
|
52
54
|
type: {
|
|
53
55
|
control: {
|
|
54
56
|
type: "select",
|
|
55
|
-
labels: Object.fromEntries(sectionTypeList.map(function (type) { return [type.key, type.label]; })),
|
|
57
|
+
labels: Object.fromEntries(utils_1.sectionTypeList.map(function (type) { return [type.key, type.label]; })),
|
|
56
58
|
},
|
|
57
|
-
options: sectionTypeList.map(function (type) { return type.key; }),
|
|
59
|
+
options: utils_1.sectionTypeList.map(function (type) { return type.key; }),
|
|
58
60
|
},
|
|
59
61
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __assign = (this && this.__assign) || function () {
|
|
2
3
|
__assign = Object.assign || function(t) {
|
|
3
4
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -9,15 +10,18 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
10
|
};
|
|
10
11
|
return __assign.apply(this, arguments);
|
|
11
12
|
};
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.ContactProfile = void 0;
|
|
15
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
16
|
+
var ContactProfileTheme1_1 = require("./ContactProfileTheme1");
|
|
17
|
+
var ContactProfileTheme2_1 = require("./ContactProfileTheme2");
|
|
18
|
+
var scripts_1 = require("../../../app/scripts");
|
|
19
|
+
var colors_1 = require("../../../utils/colors");
|
|
20
|
+
var enums_1 = require("../../../utils/enums");
|
|
21
|
+
var ContactProfile = function (props) {
|
|
19
22
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
20
|
-
return (
|
|
21
|
-
? "0px 4px 12px 0px ".concat(getColor((_d = props.cardStyle) === null || _d === void 0 ? void 0 : _d.card_shadow_color, "rgba(52, 52, 52, 0.15)"))
|
|
22
|
-
: "0px 4px 12px 0px rgba(52, 52, 52, 0.15)", ";\n }\n .card_bg_ContactProfile_").concat(props.id, " {\n background-color: ").concat(getColor((_e = props.cardStyle) === null || _e === void 0 ? void 0 : _e.card_background_color, colors.white), " !important;\n }\n .card_ContactProfile_btn_").concat(props.id, " {\n background-color: ").concat(getColor((_f = props.cardStyle) === null || _f === void 0 ? void 0 : _f.card_button_background_color, colors.gray), " !important;\n color: ").concat(getColor((_g = props.cardStyle) === null || _g === void 0 ? void 0 : _g.card_button_text_color, colors.neutral), " !important;\n fill: ").concat(getColor((_h = props.cardStyle) === null || _h === void 0 ? void 0 : _h.card_button_text_color, colors.neutral), " !important;\n }\n .card_ContactProfile_btn_").concat(props.id, ":hover {\n background-color: ").concat(getColor((_j = props.cardStyle) === null || _j === void 0 ? void 0 : _j.card_button_background_color, colors.gray), " !important;\n color: ").concat(getColor((_k = props.cardStyle) === null || _k === void 0 ? void 0 : _k.card_button_text_color, colors.neutral), " !important;\n fill: ").concat(getColor((_l = props.cardStyle) === null || _l === void 0 ? void 0 : _l.card_button_text_color, colors.neutral), " !important;\n }\n ") })] }));
|
|
23
|
+
return ((0, jsx_runtime_1.jsxs)("div", { children: [props.layout === enums_1.OrientationEnum.horizontal ? ((0, jsx_runtime_1.jsx)(ContactProfileTheme1_1.ContactProfileTheme1, __assign({}, props))) : ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)(ContactProfileTheme2_1.ContactProfileTheme2, __assign({}, props)) })), (0, jsx_runtime_1.jsx)("style", { jsx: true, global: true, children: "\n .card_ContactProfile_title_color_".concat(props.id, " {\n color: ").concat((0, scripts_1.getColor)((_a = props.cardStyle) === null || _a === void 0 ? void 0 : _a.card_title_color, colors_1.colors === null || colors_1.colors === void 0 ? void 0 : colors_1.colors.default), ";\n }\n .card_ContactProfile_designation_color_").concat(props.id, " {\n color: ").concat((0, scripts_1.getColor)((_b = props.cardStyle) === null || _b === void 0 ? void 0 : _b.card_description_color, colors_1.colors.caption_color), ";\n }\n .card_shadow_ContactProfile_").concat(props.id, " {\n box-shadow: ").concat(((_c = props.cardStyle) === null || _c === void 0 ? void 0 : _c.card_shadow_toggle) === 1
|
|
24
|
+
? "0px 4px 12px 0px ".concat((0, scripts_1.getColor)((_d = props.cardStyle) === null || _d === void 0 ? void 0 : _d.card_shadow_color, "rgba(52, 52, 52, 0.15)"))
|
|
25
|
+
: "0px 4px 12px 0px rgba(52, 52, 52, 0.15)", ";\n }\n .card_bg_ContactProfile_").concat(props.id, " {\n background-color: ").concat((0, scripts_1.getColor)((_e = props.cardStyle) === null || _e === void 0 ? void 0 : _e.card_background_color, colors_1.colors.white), " !important;\n }\n .card_ContactProfile_btn_").concat(props.id, " {\n background-color: ").concat((0, scripts_1.getColor)((_f = props.cardStyle) === null || _f === void 0 ? void 0 : _f.card_button_background_color, colors_1.colors.gray), " !important;\n color: ").concat((0, scripts_1.getColor)((_g = props.cardStyle) === null || _g === void 0 ? void 0 : _g.card_button_text_color, colors_1.colors.neutral), " !important;\n fill: ").concat((0, scripts_1.getColor)((_h = props.cardStyle) === null || _h === void 0 ? void 0 : _h.card_button_text_color, colors_1.colors.neutral), " !important;\n }\n .card_ContactProfile_btn_").concat(props.id, ":hover {\n background-color: ").concat((0, scripts_1.getColor)((_j = props.cardStyle) === null || _j === void 0 ? void 0 : _j.card_button_background_color, colors_1.colors.gray), " !important;\n color: ").concat((0, scripts_1.getColor)((_k = props.cardStyle) === null || _k === void 0 ? void 0 : _k.card_button_text_color, colors_1.colors.neutral), " !important;\n fill: ").concat((0, scripts_1.getColor)((_l = props.cardStyle) === null || _l === void 0 ? void 0 : _l.card_button_text_color, colors_1.colors.neutral), " !important;\n }\n ") })] }));
|
|
23
26
|
};
|
|
27
|
+
exports.ContactProfile = ContactProfile;
|
|
@@ -1,9 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import { contentTypeEnum } from "../../../utils/enums";
|
|
5
|
-
import Link from "next/link";
|
|
6
|
-
import styles from "../card.module.css";
|
|
7
|
-
export var ContactProfileTheme1 = function (props) {
|
|
8
|
-
return (_jsxs("div", { className: "lu-pd-250 card_bg_ContactProfile_".concat(props.id, " lu-border-rounded-xl ").concat(props.className, " card_shadow_ContactProfile_").concat(props.id), children: [_jsxs("div", { className: "flex gap-x-5", children: [_jsx("div", { className: "max-w-[240px] overflow-hidden lu-aspect-square ".concat(styles.horizontal_card_image), children: _jsx(LuImage, { image: props.image, aspectRatio: "", width: 160, height: 160, className: "lu-border-rounded-full lu-height-100 object-cover", orientation: props.mediaPosition }) }), _jsx("div", { className: "flex flex-1 flex-col", children: _jsxs("div", { className: "flex flex-col justify-center flex-1 lu-height-100", children: [_jsx("div", { className: "card_ContactProfile_title_color_".concat(props.id, " lu-font-size-2x-large lu-font-weight-semibold ").concat(styles.horizontal_card_heading), children: props.heading }), _jsx("p", { className: "lu-base-font-size lu-font-weight-extra-light card_ContactProfile_designation_color_".concat(props.id, " ").concat(styles.horizontal_body_text), children: props.body })] }) })] }), _jsx(Link, { href: props.href || "", className: "lu-width-100 lu-text-decoration-none", children: _jsx(Button, { contentType: contentTypeEnum.text_with_icon, label: props.btnLabel, variant: "card_ContactProfile_btn_".concat(props.id), iconRight: "angle-right", rightIconSize: "lu-icon-small", size: "lu-btn-lg", className: "lu-border-rounded-sm justify-between lu-width-100 lu-mt-200 ".concat(styles.card_button, " card_ContactProfile_btn_").concat(props.id) }) })] }));
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9
4
|
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ContactProfileTheme1 = void 0;
|
|
7
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
+
var Button_1 = require("../../../components/Button/Button");
|
|
9
|
+
var LuImage_1 = require("../../../components/Images/LuImage");
|
|
10
|
+
var link_1 = __importDefault(require("next/link"));
|
|
11
|
+
var card_module_css_1 = __importDefault(require("../card.module.css"));
|
|
12
|
+
var enums_1 = require("../../../utils/enums");
|
|
13
|
+
var ContactProfileTheme1 = function (props) {
|
|
14
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: "lu-pd-250 card_bg_ContactProfile_".concat(props.id, " lu-border-rounded-xl ").concat(props.className, " card_shadow_ContactProfile_").concat(props.id), children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex gap-x-5", children: [(0, jsx_runtime_1.jsx)("div", { className: "max-w-[240px] overflow-hidden lu-aspect-square ".concat(card_module_css_1.default.horizontal_card_image), children: (0, jsx_runtime_1.jsx)(LuImage_1.LuImage, { image: props.image, aspectRatio: "", width: 160, height: 160, className: "lu-border-rounded-full lu-height-100 object-cover", orientation: props.mediaPosition }) }), (0, jsx_runtime_1.jsx)("div", { className: "flex flex-1 flex-col", children: (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col justify-center flex-1 lu-height-100", children: [(0, jsx_runtime_1.jsx)("div", { className: "card_ContactProfile_title_color_".concat(props.id, " lu-font-size-2x-large lu-font-weight-semibold ").concat(card_module_css_1.default.horizontal_card_heading), children: props.heading }), (0, jsx_runtime_1.jsx)("p", { className: "lu-base-font-size lu-font-weight-extra-light card_ContactProfile_designation_color_".concat(props.id, " ").concat(card_module_css_1.default.horizontal_body_text), children: props.body })] }) })] }), (0, jsx_runtime_1.jsx)(link_1.default, { href: props.href || "", className: "lu-width-100 lu-text-decoration-none", children: (0, jsx_runtime_1.jsx)(Button_1.Button, { contentType: enums_1.ContentType.text_with_icon, label: props.btnLabel, variant: "card_ContactProfile_btn_".concat(props.id), iconRight: "angle-right", rightIconSize: "lu-icon-small", size: "lu-btn-lg", className: "lu-border-rounded-sm justify-between lu-width-100 lu-mt-200 ".concat(card_module_css_1.default.card_button, " card_ContactProfile_btn_").concat(props.id) }) })] }));
|
|
15
|
+
};
|
|
16
|
+
exports.ContactProfileTheme1 = ContactProfileTheme1;
|
|
@@ -1,9 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import { contentTypeEnum } from "../../../utils/enums";
|
|
5
|
-
import Link from "next/link";
|
|
6
|
-
import styles from "../card.module.css";
|
|
7
|
-
export var ContactProfileTheme2 = function (props) {
|
|
8
|
-
return (_jsxs("div", { className: "lu-pd-400 card_bg_ContactProfile_".concat(props.id, " lu-border-rounded-xl ").concat(props.className, " card_shadow_ContactProfile_").concat(props.id, " flex flex-col items-center"), children: [_jsx("div", { className: "max-w-[160px] overflow-hidden lu-aspect-square", children: _jsx(LuImage, { image: props.image, width: 160, height: 160, className: "lu-height-100 object-cover lu-border-rounded-full", orientation: props.mediaPosition }) }), _jsxs("div", { className: "flex flex-col items-center flex-grow lu-m-250 text-center h-[100px]", children: [_jsx("div", { className: "card_ContactProfile_title_color_".concat(props.id, " lu-font-size-2x-large lu-font-weight-semibold ").concat(styles.vertical_card_heading), children: props.heading }), _jsx("p", { className: "lu-base-font-size lu-font-weight-extra-light card_ContactProfile_designation_color_".concat(props.id, " ").concat(styles.vertical_body_text), children: props.body })] }), _jsx(Link, { href: props.href || "", className: "lu-width-100 lu-text-decoration-none", children: _jsx(Button, { contentType: contentTypeEnum.text_with_icon, label: props.btnLabel, variant: "card_ContactProfile_btn_".concat(props.id), iconRight: "angle-right", rightIconSize: "lu-icon-small", size: "lu-btn-lg", className: "lu-border-rounded-sm justify-between lu-width-100 card_ContactProfile_btn_".concat(props.id) }) })] }));
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9
4
|
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ContactProfileTheme2 = void 0;
|
|
7
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
+
var Button_1 = require("../../../components/Button/Button");
|
|
9
|
+
var LuImage_1 = require("../../../components/Images/LuImage");
|
|
10
|
+
var link_1 = __importDefault(require("next/link"));
|
|
11
|
+
var card_module_css_1 = __importDefault(require("../card.module.css"));
|
|
12
|
+
var enums_1 = require("../../../utils/enums");
|
|
13
|
+
var ContactProfileTheme2 = function (props) {
|
|
14
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: "lu-pd-400 card_bg_ContactProfile_".concat(props.id, " lu-border-rounded-xl ").concat(props.className, " card_shadow_ContactProfile_").concat(props.id, " flex flex-col items-center"), children: [(0, jsx_runtime_1.jsx)("div", { className: "max-w-[160px] overflow-hidden lu-aspect-square", children: (0, jsx_runtime_1.jsx)(LuImage_1.LuImage, { image: props.image, width: 160, height: 160, className: "lu-height-100 object-cover lu-border-rounded-full", orientation: props.mediaPosition }) }), (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col items-center flex-grow lu-m-250 text-center h-[100px]", children: [(0, jsx_runtime_1.jsx)("div", { className: "card_ContactProfile_title_color_".concat(props.id, " lu-font-size-2x-large lu-font-weight-semibold ").concat(card_module_css_1.default.vertical_card_heading), children: props.heading }), (0, jsx_runtime_1.jsx)("p", { className: "lu-base-font-size lu-font-weight-extra-light card_ContactProfile_designation_color_".concat(props.id, " ").concat(card_module_css_1.default.vertical_body_text), children: props.body })] }), (0, jsx_runtime_1.jsx)(link_1.default, { href: props.href || "", className: "lu-width-100 lu-text-decoration-none", children: (0, jsx_runtime_1.jsx)(Button_1.Button, { contentType: enums_1.ContentType.text_with_icon, label: props.btnLabel, variant: "card_ContactProfile_btn_".concat(props.id), iconRight: "angle-right", rightIconSize: "lu-icon-small", size: "lu-btn-lg", className: "lu-border-rounded-sm justify-between lu-width-100 card_ContactProfile_btn_".concat(props.id) }) })] }));
|
|
15
|
+
};
|
|
16
|
+
exports.ContactProfileTheme2 = ContactProfileTheme2;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __assign = (this && this.__assign) || function () {
|
|
2
3
|
__assign = Object.assign || function(t) {
|
|
3
4
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -9,15 +10,18 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
10
|
};
|
|
10
11
|
return __assign.apply(this, arguments);
|
|
11
12
|
};
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.PostByCategory = void 0;
|
|
15
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
16
|
+
var colors_1 = require("../../../utils/colors");
|
|
17
|
+
var scripts_1 = require("../../../app/scripts");
|
|
18
|
+
var PostByCategoryTheme1_1 = require("./PostByCategoryTheme1");
|
|
19
|
+
var PostByCategoryTheme2_1 = require("./PostByCategoryTheme2");
|
|
20
|
+
var enums_1 = require("../../../utils/enums");
|
|
21
|
+
var PostByCategory = function (props) {
|
|
19
22
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
20
|
-
return (
|
|
21
|
-
? "0px 4px 12px 0px ".concat(getColor((_d = props.cardStyle) === null || _d === void 0 ? void 0 : _d.card_shadow_color, "rgba(52, 52, 52, 0.15)"))
|
|
22
|
-
: "0px 4px 12px 0px rgba(52, 52, 52, 0.15)", ";\n }\n .card_bg_PostByCategory_").concat(props.id, " {\n background-color: ").concat(getColor((_e = props.cardStyle) === null || _e === void 0 ? void 0 : _e.card_background_color, colors.white), " !important;\n }\n .card_PostByCategory_btn_").concat(props.id, " {\n background-color: ").concat(getColor((_f = props.cardStyle) === null || _f === void 0 ? void 0 : _f.card_button_background_color, colors.gray), " !important;\n color: ").concat(getColor((_g = props.cardStyle) === null || _g === void 0 ? void 0 : _g.card_button_text_color, colors.neutral), " !important;\n fill: ").concat(getColor((_h = props.cardStyle) === null || _h === void 0 ? void 0 : _h.card_button_text_color, colors.neutral), " !important;\n }\n .card_PostByCategory_btn_").concat(props.id, ":hover {\n background-color: ").concat(getColor((_j = props.cardStyle) === null || _j === void 0 ? void 0 : _j.card_button_background_color, colors.gray), " !important;\n color: ").concat(getColor((_k = props.cardStyle) === null || _k === void 0 ? void 0 : _k.card_button_text_color, colors.neutral), " !important;\n fill: ").concat(getColor((_l = props.cardStyle) === null || _l === void 0 ? void 0 : _l.card_button_text_color, colors.neutral), " !important;\n }\n .card_PostByCategory_theme2_image_").concat(props === null || props === void 0 ? void 0 : props.id, " {\n border-color: ").concat(getColor((_m = props.cardStyle) === null || _m === void 0 ? void 0 : _m.card_image_border_color, colors === null || colors === void 0 ? void 0 : colors.default), " !important;\n border-radius: ").concat(ensureValue((_o = props.cardStyle) === null || _o === void 0 ? void 0 : _o.card_image_border_radius, "0"), "%;\n border: ").concat(ensureValue((_p = props.cardStyle) === null || _p === void 0 ? void 0 : _p.card_image_border, "0"), "px\n solid;\n }\n ") })] }));
|
|
23
|
+
return ((0, jsx_runtime_1.jsxs)("div", { children: [props.layout === enums_1.OrientationEnum.horizontal ? ((0, jsx_runtime_1.jsx)(PostByCategoryTheme1_1.PostByCategoryTheme1, __assign({}, props))) : ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)(PostByCategoryTheme2_1.PostByCategoryTheme2, __assign({}, props)) })), (0, jsx_runtime_1.jsx)("style", { jsx: true, global: true, children: "\n .card_PostByCategory_title_color_".concat(props.id, " {\n color: ").concat((0, scripts_1.getColor)((_a = props.cardStyle) === null || _a === void 0 ? void 0 : _a.card_title_color, colors_1.colors === null || colors_1.colors === void 0 ? void 0 : colors_1.colors.default), ";\n }\n .card_PostByCategory_description_color_").concat(props.id, " {\n color: ").concat((0, scripts_1.getColor)((_b = props.cardStyle) === null || _b === void 0 ? void 0 : _b.card_description_color, colors_1.colors.caption_color), ";\n }\n .card_shadow_PostByCategory_").concat(props.id, " {\n box-shadow: ").concat(((_c = props.cardStyle) === null || _c === void 0 ? void 0 : _c.card_shadow_toggle) === 1
|
|
24
|
+
? "0px 4px 12px 0px ".concat((0, scripts_1.getColor)((_d = props.cardStyle) === null || _d === void 0 ? void 0 : _d.card_shadow_color, "rgba(52, 52, 52, 0.15)"))
|
|
25
|
+
: "0px 4px 12px 0px rgba(52, 52, 52, 0.15)", ";\n }\n .card_bg_PostByCategory_").concat(props.id, " {\n background-color: ").concat((0, scripts_1.getColor)((_e = props.cardStyle) === null || _e === void 0 ? void 0 : _e.card_background_color, colors_1.colors.white), " !important;\n }\n .card_PostByCategory_btn_").concat(props.id, " {\n background-color: ").concat((0, scripts_1.getColor)((_f = props.cardStyle) === null || _f === void 0 ? void 0 : _f.card_button_background_color, colors_1.colors.gray), " !important;\n color: ").concat((0, scripts_1.getColor)((_g = props.cardStyle) === null || _g === void 0 ? void 0 : _g.card_button_text_color, colors_1.colors.neutral), " !important;\n fill: ").concat((0, scripts_1.getColor)((_h = props.cardStyle) === null || _h === void 0 ? void 0 : _h.card_button_text_color, colors_1.colors.neutral), " !important;\n }\n .card_PostByCategory_btn_").concat(props.id, ":hover {\n background-color: ").concat((0, scripts_1.getColor)((_j = props.cardStyle) === null || _j === void 0 ? void 0 : _j.card_button_background_color, colors_1.colors.gray), " !important;\n color: ").concat((0, scripts_1.getColor)((_k = props.cardStyle) === null || _k === void 0 ? void 0 : _k.card_button_text_color, colors_1.colors.neutral), " !important;\n fill: ").concat((0, scripts_1.getColor)((_l = props.cardStyle) === null || _l === void 0 ? void 0 : _l.card_button_text_color, colors_1.colors.neutral), " !important;\n }\n .card_PostByCategory_theme2_image_").concat(props === null || props === void 0 ? void 0 : props.id, " {\n border-color: ").concat((0, scripts_1.getColor)((_m = props.cardStyle) === null || _m === void 0 ? void 0 : _m.card_image_border_color, colors_1.colors === null || colors_1.colors === void 0 ? void 0 : colors_1.colors.default), " !important;\n border-radius: ").concat((0, scripts_1.ensureValue)((_o = props.cardStyle) === null || _o === void 0 ? void 0 : _o.card_image_border_radius, "0"), "%;\n border: ").concat((0, scripts_1.ensureValue)((_p = props.cardStyle) === null || _p === void 0 ? void 0 : _p.card_image_border, "0"), "px\n solid;\n }\n ") })] }));
|
|
23
26
|
};
|
|
27
|
+
exports.PostByCategory = PostByCategory;
|
|
@@ -1,9 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import { Button } from "../../../components/Button/Button";
|
|
5
|
-
import { contentTypeEnum } from "../../../utils/enums";
|
|
6
|
-
import styles from "../card.module.css";
|
|
7
|
-
export var PostByCategoryTheme1 = function (props) {
|
|
8
|
-
return (_jsxs("div", { className: "lu-pd-250 card_bg_PostByCategory_".concat(props.id, " lu-border-rounded-xl ").concat(props.className, " card_shadow_PostByCategory_").concat(props.id, " flex gap-x-[20px] lu-width-100"), children: [_jsx("div", { className: "lu-width-100 max-w-[240px] overflow-hidden lu-aspect-square horizontal_card_image", children: _jsx(LuImage, { image: props.image, width: 240, height: 240, className: "lu-border-rounded-lg lu-width-100 lu-height-100 object-cover", orientation: props.mediaPosition }) }), _jsxs("div", { className: "flex flex-1 flex-col", children: [_jsxs("div", { className: "flex flex-col justify-center flex-1 h-full", children: [_jsx("div", { className: "card_PostByCategory_title_color_".concat(props.id, " lu-font-size-2x-large lu-font-weight-semibold ").concat(styles.horizontal_card_heading), children: props.heading }), _jsx("p", { className: "card_PostByCategory_description_color_".concat(props.id, " lu-base-font-size lu-font-weight-extra-light ").concat(styles.horizontal_body_text), children: props.body })] }), _jsx(Link, { href: props.href || "", className: "lu-width-100 lu-text-decoration-none", children: _jsx(Button, { contentType: contentTypeEnum.text_with_icon, label: props.btnLabel, variant: "card_PostByCategory_btn_".concat(props.id), iconRight: "angle-right", rightIconSize: "lu-icon-small", size: "lu-btn-lg", className: "lu-border-rounded-sm justify-between lu-width-100 ".concat(styles.card_button, " card_PostByCategory_btn_").concat(props.id) }) })] })] }));
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9
4
|
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.PostByCategoryTheme1 = void 0;
|
|
7
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
+
var LuImage_1 = require("../../../components/Images/LuImage");
|
|
9
|
+
var link_1 = __importDefault(require("next/link"));
|
|
10
|
+
var Button_1 = require("../../../components/Button/Button");
|
|
11
|
+
var card_module_css_1 = __importDefault(require("../card.module.css"));
|
|
12
|
+
var enums_1 = require("../../../utils/enums");
|
|
13
|
+
var PostByCategoryTheme1 = function (props) {
|
|
14
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: "lu-pd-250 card_bg_PostByCategory_".concat(props.id, " lu-border-rounded-xl ").concat(props.className, " card_shadow_PostByCategory_").concat(props.id, " flex gap-x-[20px] lu-width-100"), children: [(0, jsx_runtime_1.jsx)("div", { className: "lu-width-100 max-w-[240px] overflow-hidden lu-aspect-square horizontal_card_image", children: (0, jsx_runtime_1.jsx)(LuImage_1.LuImage, { image: props.image, width: 240, height: 240, className: "lu-border-rounded-lg lu-width-100 lu-height-100 object-cover", orientation: props.mediaPosition }) }), (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-1 flex-col", children: [(0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col justify-center flex-1 h-full", children: [(0, jsx_runtime_1.jsx)("div", { className: "card_PostByCategory_title_color_".concat(props.id, " lu-font-size-2x-large lu-font-weight-semibold ").concat(card_module_css_1.default.horizontal_card_heading), children: props.heading }), (0, jsx_runtime_1.jsx)("p", { className: "card_PostByCategory_description_color_".concat(props.id, " lu-base-font-size lu-font-weight-extra-light ").concat(card_module_css_1.default.horizontal_body_text), children: props.body })] }), (0, jsx_runtime_1.jsx)(link_1.default, { href: props.href || "", className: "lu-width-100 lu-text-decoration-none", children: (0, jsx_runtime_1.jsx)(Button_1.Button, { contentType: enums_1.ContentType.text_with_icon, label: props.btnLabel, variant: "card_PostByCategory_btn_".concat(props.id), iconRight: "angle-right", rightIconSize: "lu-icon-small", size: "lu-btn-lg", className: "lu-border-rounded-sm justify-between lu-width-100 ".concat(card_module_css_1.default.card_button, " card_PostByCategory_btn_").concat(props.id) }) })] })] }));
|
|
15
|
+
};
|
|
16
|
+
exports.PostByCategoryTheme1 = PostByCategoryTheme1;
|
|
@@ -1,9 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import { Button } from "../../../components/Button/Button";
|
|
5
|
-
import { contentTypeEnum } from "../../../utils/enums";
|
|
6
|
-
import styles from "../card.module.css";
|
|
7
|
-
export var PostByCategoryTheme2 = function (props) {
|
|
8
|
-
return (_jsxs("div", { className: "lu-pd-400 card_bg_PostByCategory_".concat(props.id, " lu-border-rounded-xl ").concat(props.className, " card_shadow_PostByCategory_").concat(props.id, " flex flex-col items-center lu-width-100"), children: [_jsx("div", { className: "lu-width-100 max-w-[240px] overflow-hidden lu-aspect-square", children: _jsx(LuImage, { image: props.image, width: 240, height: 240, className: "lu-width-100 lu-height-100 object-cover card_PostByCategory_theme2_image_".concat(props === null || props === void 0 ? void 0 : props.id), orientation: props.mediaPosition }) }), _jsxs("div", { className: "flex flex-col items-center flex-grow lu-m-250 text-center h-[100px]", children: [_jsx("div", { className: "card_PostByCategory_title_color_".concat(props.id, " lu-font-size-2x-large lu-font-weight-semibold ").concat(styles.vertical_card_heading), children: props.heading }), _jsx("p", { className: "card_PostByCategory_description_color_".concat(props.id, " lu-base-font-size lu-font-weight-extra-light ").concat(styles.vertical_body_text), children: props.body })] }), _jsx(Link, { href: props.href || "", className: "lu-width-100 lu-text-decoration-none", children: _jsx(Button, { contentType: contentTypeEnum.text_with_icon, label: props.btnLabel, variant: "card_PostByCategory_btn_".concat(props.id), iconRight: "angle-right", rightIconSize: "lu-icon-small", size: "lu-btn-lg", className: "lu-border-rounded-sm justify-between lu-width-100 card_PostByCategory_btn_".concat(props.id) }) })] }));
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9
4
|
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.PostByCategoryTheme2 = void 0;
|
|
7
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
+
var LuImage_1 = require("../../../components/Images/LuImage");
|
|
9
|
+
var link_1 = __importDefault(require("next/link"));
|
|
10
|
+
var Button_1 = require("../../../components/Button/Button");
|
|
11
|
+
var card_module_css_1 = __importDefault(require("../card.module.css"));
|
|
12
|
+
var enums_1 = require("../../../utils/enums");
|
|
13
|
+
var PostByCategoryTheme2 = function (props) {
|
|
14
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: "lu-pd-400 card_bg_PostByCategory_".concat(props.id, " lu-border-rounded-xl ").concat(props.className, " card_shadow_PostByCategory_").concat(props.id, " flex flex-col items-center lu-width-100"), children: [(0, jsx_runtime_1.jsx)("div", { className: "lu-width-100 max-w-[240px] overflow-hidden lu-aspect-square", children: (0, jsx_runtime_1.jsx)(LuImage_1.LuImage, { image: props.image, width: 240, height: 240, className: "lu-width-100 lu-height-100 object-cover card_PostByCategory_theme2_image_".concat(props === null || props === void 0 ? void 0 : props.id), orientation: props.mediaPosition }) }), (0, jsx_runtime_1.jsxs)("div", { className: "flex flex-col items-center flex-grow lu-m-250 text-center h-[100px]", children: [(0, jsx_runtime_1.jsx)("div", { className: "card_PostByCategory_title_color_".concat(props.id, " lu-font-size-2x-large lu-font-weight-semibold ").concat(card_module_css_1.default.vertical_card_heading), children: props.heading }), (0, jsx_runtime_1.jsx)("p", { className: "card_PostByCategory_description_color_".concat(props.id, " lu-base-font-size lu-font-weight-extra-light ").concat(card_module_css_1.default.vertical_body_text), children: props.body })] }), (0, jsx_runtime_1.jsx)(link_1.default, { href: props.href || "", className: "lu-width-100 lu-text-decoration-none", children: (0, jsx_runtime_1.jsx)(Button_1.Button, { contentType: enums_1.ContentType.text_with_icon, label: props.btnLabel, variant: "card_PostByCategory_btn_".concat(props.id), iconRight: "angle-right", rightIconSize: "lu-icon-small", size: "lu-btn-lg", className: "lu-border-rounded-sm justify-between lu-width-100 card_PostByCategory_btn_".concat(props.id) }) })] }));
|
|
15
|
+
};
|
|
16
|
+
exports.PostByCategoryTheme2 = PostByCategoryTheme2;
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
export declare enum cardLayoutEnum {
|
|
2
|
-
horizontal = "Horizontal",
|
|
3
|
-
vertical = "Vertical"
|
|
4
|
-
}
|
|
5
1
|
export declare enum SectionTypeEnum {
|
|
6
|
-
multiplePostsTheme = "
|
|
7
|
-
singlePostTheme = "
|
|
8
|
-
postByCategoriesTheme = "
|
|
9
|
-
contactsProfileTheme = "
|
|
10
|
-
galleryTheme = "
|
|
11
|
-
albumTheme = "
|
|
2
|
+
multiplePostsTheme = "multiple posts",
|
|
3
|
+
singlePostTheme = "single post",
|
|
4
|
+
postByCategoriesTheme = "post by categories",
|
|
5
|
+
contactsProfileTheme = "contacts profile",
|
|
6
|
+
galleryTheme = "gallery",
|
|
7
|
+
albumTheme = "album"
|
|
12
8
|
}
|
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
(
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
})(cardLayoutEnum || (cardLayoutEnum = {}));
|
|
6
|
-
;
|
|
7
|
-
export var SectionTypeEnum;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SectionTypeEnum = void 0;
|
|
4
|
+
var SectionTypeEnum;
|
|
8
5
|
(function (SectionTypeEnum) {
|
|
9
|
-
SectionTypeEnum["multiplePostsTheme"] = "
|
|
10
|
-
SectionTypeEnum["singlePostTheme"] = "
|
|
11
|
-
SectionTypeEnum["postByCategoriesTheme"] = "
|
|
12
|
-
SectionTypeEnum["contactsProfileTheme"] = "
|
|
13
|
-
SectionTypeEnum["galleryTheme"] = "
|
|
14
|
-
SectionTypeEnum["albumTheme"] = "
|
|
15
|
-
})(SectionTypeEnum || (SectionTypeEnum = {}));
|
|
6
|
+
SectionTypeEnum["multiplePostsTheme"] = "multiple posts";
|
|
7
|
+
SectionTypeEnum["singlePostTheme"] = "single post";
|
|
8
|
+
SectionTypeEnum["postByCategoriesTheme"] = "post by categories";
|
|
9
|
+
SectionTypeEnum["contactsProfileTheme"] = "contacts profile";
|
|
10
|
+
SectionTypeEnum["galleryTheme"] = "gallery";
|
|
11
|
+
SectionTypeEnum["albumTheme"] = "album";
|
|
12
|
+
})(SectionTypeEnum || (exports.SectionTypeEnum = SectionTypeEnum = {}));
|
|
16
13
|
;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
2
4
|
var MinWidthHeight = function (_a) {
|
|
3
5
|
var minWidth = _a.minWidth, minHeight = _a.minHeight;
|
|
4
|
-
return (
|
|
6
|
+
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)("div", { className: "w-fit", children: (0, jsx_runtime_1.jsx)("div", { className: "bg-blue-500 ".concat(minWidth, " ").concat(minHeight, " rounded"), "data-testid": "minWidthHeight-box" }) }) }));
|
|
5
7
|
};
|
|
6
|
-
|
|
8
|
+
exports.default = MinWidthHeight;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __assign = (this && this.__assign) || function () {
|
|
2
3
|
__assign = Object.assign || function(t) {
|
|
3
4
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
@@ -9,32 +10,37 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
10
|
};
|
|
10
11
|
return __assign.apply(this, arguments);
|
|
11
12
|
};
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.minWidthAndHeight = void 0;
|
|
18
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
19
|
+
var utils_1 = require("../../utils");
|
|
20
|
+
var MinWidthHeight_1 = __importDefault(require("./MinWidthHeight"));
|
|
21
|
+
exports.default = {
|
|
16
22
|
title: "Components/Size",
|
|
17
|
-
component:
|
|
23
|
+
component: MinWidthHeight_1.default,
|
|
18
24
|
};
|
|
19
|
-
var Template = function (args) { return (
|
|
20
|
-
|
|
21
|
-
minWidthAndHeight.args = {
|
|
25
|
+
var Template = function (args) { return ((0, jsx_runtime_1.jsx)(MinWidthHeight_1.default, __assign({}, args))); };
|
|
26
|
+
exports.minWidthAndHeight = Template.bind({});
|
|
27
|
+
exports.minWidthAndHeight.args = {
|
|
22
28
|
minWidth: "lu-min-width-100",
|
|
23
29
|
minHeight: "lu-min-height-100",
|
|
24
30
|
};
|
|
25
|
-
minWidthAndHeight.argTypes = {
|
|
31
|
+
exports.minWidthAndHeight.argTypes = {
|
|
26
32
|
minWidth: {
|
|
27
33
|
control: {
|
|
28
34
|
type: "select",
|
|
29
|
-
labels: Object.fromEntries(minWidths.map(function (size) { return [size.key, size.label]; })),
|
|
35
|
+
labels: Object.fromEntries(utils_1.minWidths.map(function (size) { return [size.key, size.label]; })),
|
|
30
36
|
},
|
|
31
|
-
options: minWidths.map(function (size) { return size.key; }),
|
|
37
|
+
options: utils_1.minWidths.map(function (size) { return size.key; }),
|
|
32
38
|
},
|
|
33
39
|
minHeight: {
|
|
34
40
|
control: {
|
|
35
41
|
type: "select",
|
|
36
|
-
labels: Object.fromEntries(minHeights.map(function (size) { return [size.key, size.label]; })),
|
|
42
|
+
labels: Object.fromEntries(utils_1.minHeights.map(function (size) { return [size.key, size.label]; })),
|
|
37
43
|
},
|
|
38
|
-
options: minHeights.map(function (size) { return size.key; }),
|
|
44
|
+
options: utils_1.minHeights.map(function (size) { return size.key; }),
|
|
39
45
|
},
|
|
40
46
|
};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
2
4
|
var Size = function (_a) {
|
|
3
5
|
var size = _a.size, color = _a.color;
|
|
4
|
-
return (
|
|
6
|
+
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)("div", { className: "".concat(size, " rounded lu-bg-primary-600"), "data-testid": "size-box" }) }));
|
|
5
7
|
};
|
|
6
|
-
|
|
8
|
+
exports.default = Size;
|