linkedunion-design-kit 1.4.8 → 1.4.9
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/Avatar/Avatar.d.ts +2 -1
- package/dist/components/Avatar/Avatar.js +3 -2
- package/dist/components/Avatar/Avatar.stories.js +1 -1
- package/dist/components/Button/Button.d.ts +1 -0
- package/dist/components/Button/Button.js +3 -2
- package/dist/components/Button/Button.stories.js +1 -1
- package/dist/components/Button/index.d.ts +4 -0
- package/dist/components/Button/index.js +6 -0
- package/dist/components/Color/BackgroundColor/BackgroundColor.d.ts +2 -0
- package/dist/components/Color/BackgroundColor/BackgroundColor.js +5 -0
- package/dist/components/Color/BackgroundColor/BackgroundColor.stories.d.ts +10 -0
- package/dist/components/Color/BackgroundColor/BackgroundColor.stories.js +100 -0
- package/dist/components/Icons/LUIcon.d.ts +2 -1
- package/dist/components/Icons/LUIcon.js +2 -1
- package/dist/components/Icons/LUIcon.stories.js +1 -1
- package/dist/components/Images/LuImage.d.ts +1 -0
- package/dist/components/Images/LuImage.js +2 -1
- package/dist/components/Images/LuImage.stories.js +1 -1
- package/dist/components/Images/index.d.ts +4 -0
- package/dist/components/Images/index.js +6 -0
- package/dist/components/MediaCard/Card.d.ts +2 -1
- package/dist/components/MediaCard/Card.js +3 -2
- package/dist/components/MediaCard/Card.stories.js +2 -2
- package/dist/components/MediaCard/ContactProfile/ContactProfile.js +1 -1
- package/dist/components/MediaCard/ContactProfile/ContactProfileTheme1.js +1 -1
- package/dist/components/MediaCard/ContactProfile/ContactProfileTheme2.js +1 -1
- package/dist/components/MediaCard/PostByCategory/PostByCategory.js +1 -1
- package/dist/components/MediaCard/PostByCategory/PostByCategoryTheme1.js +1 -1
- package/dist/components/MediaCard/PostByCategory/PostByCategoryTheme2.js +1 -1
- package/dist/components/MediaCard/index.d.ts +12 -0
- package/dist/components/MediaCard/index.js +16 -0
- package/dist/components/Size/MinWidthHeight.d.ts +2 -1
- package/dist/components/Size/MinWidthHeight.js +2 -1
- package/dist/components/Size/MinWidthHeight.stories.js +1 -1
- package/dist/components/Size/Size.d.ts +2 -1
- package/dist/components/Size/Size.js +2 -1
- package/dist/components/Size/Size.stories.js +1 -1
- package/dist/components/Size/WidthHeight.d.ts +2 -1
- package/dist/components/Size/WidthHeight.js +2 -1
- package/dist/components/Size/WidthHeight.stories.js +1 -1
- package/dist/components/Title/Title.d.ts +2 -1
- package/dist/components/Title/Title.js +2 -1
- package/dist/components/Title/Title.stories.js +1 -1
- package/dist/components/Title/Title.test.js +1 -1
- package/dist/components/Typography/Body/Body.d.ts +2 -1
- package/dist/components/Typography/Body/Body.js +2 -1
- package/dist/components/Typography/Body/Body.stories.js +1 -1
- package/dist/components/Typography/Display/Display.d.ts +2 -1
- package/dist/components/Typography/Display/Display.js +2 -1
- package/dist/components/Typography/Display/Display.stories.js +1 -1
- package/dist/components/Typography/Headings/Heading.test.js +1 -1
- package/dist/components/Typography/Headings/Headings.d.ts +2 -1
- package/dist/components/Typography/Headings/Headings.js +2 -1
- package/dist/components/Typography/Headings/Headings.stories.js +1 -1
- package/dist/index.d.ts +12 -12
- package/dist/index.js +12 -12
- package/dist/utils/enums.d.ts +25 -0
- package/dist/utils/enums.js +25 -0
- package/dist/utils/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import { AvatarProps } from "@/types/interface";
|
|
2
|
-
|
|
2
|
+
declare const Avatar: ({ image, icon, shape, size, className, }: AvatarProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default Avatar;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import LUIcon from "../Icons/LUIcon";
|
|
3
3
|
import { iconList } from "../../utils/iconList";
|
|
4
4
|
import { avtarBackgroundSize } from "../../utils";
|
|
5
|
-
|
|
5
|
+
var Avatar = function (_a) {
|
|
6
6
|
var image = _a.image, _b = _a.icon, icon = _b === void 0 ? "user" : _b, shape = _a.shape, size = _a.size, className = _a.className;
|
|
7
7
|
var defaultIcon = iconList.find(function (item) { return item.key === (icon || "user"); });
|
|
8
8
|
return (_jsx(_Fragment, { children: _jsx("div", { className: "".concat(image ? "lu-bg-primary-200" : "lu-bg-gray-100", " flex items-center justify-center ").concat(shape, " overflow-hidden ").concat(className), style: avtarBackgroundSize(size), "data-testid": "lu-avatar", children: image ? (_jsx("img", { src: image, alt: "image", className: "w-full h-full object-cover" })) : (_jsx(LUIcon, { size: size, icon: defaultIcon === null || defaultIcon === void 0 ? void 0 : defaultIcon.key, fill: "lu-neutral-icon-dark", className: "" })) }) }));
|
|
9
9
|
};
|
|
10
|
+
export default Avatar;
|
|
@@ -10,8 +10,8 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
import { Avatar } from "./Avatar";
|
|
14
13
|
import { avatarShapeList, avatarSizesList } from "../../utils";
|
|
14
|
+
import Avatar from "./Avatar";
|
|
15
15
|
export default {
|
|
16
16
|
title: "Components/Avatar",
|
|
17
17
|
component: Avatar,
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import { ButtonProps } from "@/types/interface";
|
|
2
2
|
export declare const Button: ({ contentType, variant, label, iconLeft, iconRight, onClick, shape, size, leftIconSize, rightIconSize, className, icon, iconSize, type, }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default Button;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import { buttonTypeEnum, contentTypeEnum } from "../../utils/
|
|
2
|
+
import LUIcon from "../Icons/LUIcon";
|
|
3
|
+
import { buttonTypeEnum, contentTypeEnum } from "../../utils/enums";
|
|
4
4
|
export var Button = function (_a) {
|
|
5
5
|
var _b = _a.contentType, contentType = _b === void 0 ? contentTypeEnum.text_with_icon : _b, _c = _a.variant, variant = _c === void 0 ? "lu-btn-primary" : _c, _d = _a.label, label = _d === void 0 ? "Button Text" : _d, iconLeft = _a.iconLeft, iconRight = _a.iconRight, onClick = _a.onClick, shape = _a.shape, _e = _a.size, size = _e === void 0 ? "lu-btn-md" : _e, leftIconSize = _a.leftIconSize, rightIconSize = _a.rightIconSize, className = _a.className, icon = _a.icon, iconSize = _a.iconSize, type = _a.type;
|
|
6
6
|
return (_jsx(_Fragment, { children: _jsxs("button", { className: "flex items-center ".concat(shape, " ").concat(type === buttonTypeEnum.outline ? "outline-button ".concat(variant) : variant, " ").concat(className, " ").concat(contentType === contentTypeEnum.icon_only ? "icon-only ".concat(size) : size), onClick: onClick, children: [contentType === contentTypeEnum.none && label, contentType === contentTypeEnum.icon_only && icon && (_jsx(LUIcon, { size: iconSize, icon: icon, fill: type === buttonTypeEnum.outline
|
|
@@ -11,3 +11,4 @@ export var Button = function (_a) {
|
|
|
11
11
|
? "outline-button ".concat(variant)
|
|
12
12
|
: variant, className: "lu-ml-100" }))] }))] }) }));
|
|
13
13
|
};
|
|
14
|
+
export default Button;
|
|
@@ -22,7 +22,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
22
22
|
import { Button } from "./Button";
|
|
23
23
|
import { borderRadiusList, buttonColorsList, buttonIconSizeList, buttonWithIconList, butttonSizeList, } from "../../utils";
|
|
24
24
|
import { iconList } from "../../utils/iconList";
|
|
25
|
-
import { buttonTypeEnum, contentTypeEnum } from "../../utils/
|
|
25
|
+
import { buttonTypeEnum, contentTypeEnum } from "../../utils/enums";
|
|
26
26
|
export default {
|
|
27
27
|
title: "Components/Button",
|
|
28
28
|
component: Button,
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
export var BackgroundColor = function (_a) {
|
|
3
|
+
var label = _a.label, color = _a.color;
|
|
4
|
+
return (_jsxs("div", { children: [_jsx("h2", { className: "lu-font-size-large lu-font-weight-bold lu-mb-200", children: label }), _jsxs("div", { className: "flex items-center gap-4", children: [_jsx("div", { className: "w-10 h-10 rounded ".concat(color), "data-testid": "color-box" }), _jsxs("div", { children: [_jsx("p", { className: "lu-font-weight-semibold", children: color === null || color === void 0 ? void 0 : color.replace("bg-", "") }), _jsx("code", { className: "lu-font-size-small", children: color })] })] })] }));
|
|
5
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Meta } from "@storybook/react";
|
|
2
|
+
import { ColorProps } from "@/types/interface";
|
|
3
|
+
declare const _default: Meta;
|
|
4
|
+
export default _default;
|
|
5
|
+
export declare const Primary: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, ColorProps>;
|
|
6
|
+
export declare const Gray: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, ColorProps>;
|
|
7
|
+
export declare const Success: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, ColorProps>;
|
|
8
|
+
export declare const Warning: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, ColorProps>;
|
|
9
|
+
export declare const Danger: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, ColorProps>;
|
|
10
|
+
export declare const Info: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, ColorProps>;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { BackgroundColor } from "../../../components/Color/BackgroundColor/BackgroundColor";
|
|
14
|
+
import { customBackgroundColor } from ".";
|
|
15
|
+
export default {
|
|
16
|
+
title: "Components/Color/BackgroundColor",
|
|
17
|
+
component: BackgroundColor,
|
|
18
|
+
argTypes: {
|
|
19
|
+
label: { control: "text" },
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
var Template = function (args) { return _jsx(BackgroundColor, __assign({}, args)); };
|
|
23
|
+
export var Primary = Template.bind({});
|
|
24
|
+
Primary.args = {
|
|
25
|
+
label: "Primary",
|
|
26
|
+
color: "lu-bg-primary-500", // Default color
|
|
27
|
+
};
|
|
28
|
+
Primary.argTypes = {
|
|
29
|
+
color: {
|
|
30
|
+
control: { type: "select" },
|
|
31
|
+
options: Object.keys(customBackgroundColor)
|
|
32
|
+
.filter(function (key) { return key.startsWith(".lu-bg-primary-"); })
|
|
33
|
+
.map(function (key) { return key.slice(1); }),
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
export var Gray = Template.bind({});
|
|
37
|
+
Gray.argTypes = {
|
|
38
|
+
color: {
|
|
39
|
+
control: { type: "select" },
|
|
40
|
+
options: Object.keys(customBackgroundColor)
|
|
41
|
+
.filter(function (key) { return key.startsWith(".lu-bg-neutral-"); })
|
|
42
|
+
.map(function (key) { return key.slice(1); }),
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
Gray.args = {
|
|
46
|
+
label: "Gray",
|
|
47
|
+
color: "lu-bg-neutral-500",
|
|
48
|
+
};
|
|
49
|
+
export var Success = Template.bind({});
|
|
50
|
+
Success.argTypes = {
|
|
51
|
+
color: {
|
|
52
|
+
control: { type: "select" },
|
|
53
|
+
options: Object.keys(customBackgroundColor)
|
|
54
|
+
.filter(function (key) { return key.startsWith(".lu-bg-success-"); })
|
|
55
|
+
.map(function (key) { return key.slice(1); }),
|
|
56
|
+
},
|
|
57
|
+
};
|
|
58
|
+
Success.args = {
|
|
59
|
+
label: "Success",
|
|
60
|
+
color: "lu-bg-success-500",
|
|
61
|
+
};
|
|
62
|
+
export var Warning = Template.bind({});
|
|
63
|
+
Warning.argTypes = {
|
|
64
|
+
color: {
|
|
65
|
+
control: { type: "select" },
|
|
66
|
+
options: Object.keys(customBackgroundColor)
|
|
67
|
+
.filter(function (key) { return key.startsWith(".lu-bg-warning-"); })
|
|
68
|
+
.map(function (key) { return key.slice(1); }),
|
|
69
|
+
},
|
|
70
|
+
};
|
|
71
|
+
Warning.args = {
|
|
72
|
+
label: "Warning",
|
|
73
|
+
color: "lu-bg-warning-500",
|
|
74
|
+
};
|
|
75
|
+
export var Danger = Template.bind({});
|
|
76
|
+
Danger.argTypes = {
|
|
77
|
+
color: {
|
|
78
|
+
control: { type: "select" },
|
|
79
|
+
options: Object.keys(customBackgroundColor)
|
|
80
|
+
.filter(function (key) { return key.startsWith(".lu-bg-danger-"); })
|
|
81
|
+
.map(function (key) { return key.slice(1); }),
|
|
82
|
+
},
|
|
83
|
+
};
|
|
84
|
+
Danger.args = {
|
|
85
|
+
label: "Danger",
|
|
86
|
+
color: "lu-bg-danger-500",
|
|
87
|
+
};
|
|
88
|
+
export var Info = Template.bind({});
|
|
89
|
+
Info.argTypes = {
|
|
90
|
+
color: {
|
|
91
|
+
control: { type: "select" },
|
|
92
|
+
options: Object.keys(customBackgroundColor)
|
|
93
|
+
.filter(function (key) { return key.startsWith(".lu-bg-info-"); })
|
|
94
|
+
.map(function (key) { return key.slice(1); }),
|
|
95
|
+
},
|
|
96
|
+
};
|
|
97
|
+
Info.args = {
|
|
98
|
+
label: "Info",
|
|
99
|
+
color: "lu-bg-info-500",
|
|
100
|
+
};
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import { IconProps } from "@/types/interface";
|
|
2
|
-
|
|
2
|
+
declare const LUIcon: ({ size, fill, icon, className }: IconProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default LUIcon;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { iconList } from "../../utils/iconList";
|
|
3
|
-
|
|
3
|
+
var LUIcon = function (_a) {
|
|
4
4
|
var _b;
|
|
5
5
|
var size = _a.size, fill = _a.fill, icon = _a.icon, className = _a.className;
|
|
6
6
|
var selectedIcon = iconList.find(function (item) { return item.key === icon; });
|
|
7
7
|
return (_jsx(_Fragment, { children: _jsxs("svg", { className: "".concat(size, " ").concat(className), viewBox: "0 0 32 32", fill: "none", children: [_jsx("g", { "clip-path": "url(#clip0_9168_14965)", children: _jsx("path", { d: (_b = selectedIcon === null || selectedIcon === void 0 ? void 0 : selectedIcon.path) !== null && _b !== void 0 ? _b : "", className: "".concat(fill, " icon") }) }), _jsx("defs", { children: _jsx("clipPath", { id: "clip0_9168_14965", children: _jsx("rect", { width: "32", height: "32", fill: "black" }) }) })] }) }));
|
|
8
8
|
};
|
|
9
|
+
export default LUIcon;
|
|
@@ -10,9 +10,9 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
import { LUIcon } from "./LUIcon";
|
|
14
13
|
import { iconColorList, iconSizeList } from "../../utils";
|
|
15
14
|
import { iconList } from "../../utils/iconList";
|
|
15
|
+
import LUIcon from "./LUIcon";
|
|
16
16
|
export default {
|
|
17
17
|
title: "Components/Icon",
|
|
18
18
|
component: LUIcon,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import Image from "next/image";
|
|
3
3
|
export var LuImage = function (_a) {
|
|
4
|
-
var image = _a.image, _b = _a.aspectRatio, aspectRatio = _b === void 0 ?
|
|
4
|
+
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
5
|
return (_jsx(Image, { src: image || "", alt: "Image", width: width, height: height, className: "".concat(aspectRatio, " ").concat(className) }));
|
|
6
6
|
};
|
|
7
|
+
export default LuImage;
|
|
@@ -12,7 +12,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
import { LuImage } from "./LuImage";
|
|
14
14
|
import { landscapeaspectRatioList, portraitaspectRatioList } from "../../utils";
|
|
15
|
-
import { orientationEnum } from "../../utils/
|
|
15
|
+
import { orientationEnum } from "../../utils/enums";
|
|
16
16
|
export default {
|
|
17
17
|
title: "Components/Image",
|
|
18
18
|
component: LuImage,
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import { CardProps } from "@/types/interface";
|
|
2
|
-
|
|
2
|
+
declare const Card: ({ type, layout, id, className, image, mediaPosition, heading, body, href, btnLabel, cardStyle, }: CardProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default Card;
|
|
@@ -10,12 +10,12 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
-
import { sectionType, cardLayoutEnum } from "../../utils/
|
|
13
|
+
import { sectionType, cardLayoutEnum } from "../../utils/enums";
|
|
14
14
|
import { PostByCategory } from "./PostByCategory/PostByCategory";
|
|
15
15
|
import { colors } from "../../utils/colors";
|
|
16
16
|
import { defaultCardProps } from "../../utils";
|
|
17
17
|
import { ContactProfile } from "./ContactProfile/ContactProfile";
|
|
18
|
-
|
|
18
|
+
var Card = function (_a) {
|
|
19
19
|
var _b = _a.type, type = _b === void 0 ? sectionType.postByCategoriesTheme : _b, _c = _a.layout, layout = _c === void 0 ? cardLayoutEnum.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 ? defaultCardProps.image : _f, _g = _a.mediaPosition, mediaPosition = _g === void 0 ? "" : _g, _h = _a.heading, heading = _h === void 0 ? defaultCardProps.heading : _h, _j = _a.body, body = _j === void 0 ? defaultCardProps.body : _j, _k = _a.href, href = _k === void 0 ? defaultCardProps.href : _k, _l = _a.btnLabel, btnLabel = _l === void 0 ? defaultCardProps.btnLabel : _l, _m = _a.cardStyle, cardStyle = _m === void 0 ? {
|
|
20
20
|
card_title_color: colors.default,
|
|
21
21
|
card_description_color: colors.caption_color,
|
|
@@ -42,3 +42,4 @@ export var Card = function (_a) {
|
|
|
42
42
|
};
|
|
43
43
|
return (_jsxs(_Fragment, { children: [type === sectionType.postByCategoriesTheme && (_jsx(PostByCategory, __assign({}, data))), type === sectionType.contactsProfileTheme && (_jsx(ContactProfile, __assign({}, data)))] }));
|
|
44
44
|
};
|
|
45
|
+
export default Card;
|
|
@@ -10,10 +10,10 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
import {
|
|
14
|
-
import { cardLayoutEnum, orientationEnum, sectionType } from "../../utils/enum";
|
|
13
|
+
import { cardLayoutEnum, orientationEnum, sectionType } from "../../utils/enums";
|
|
15
14
|
import { sectionTypeList } from "../../utils";
|
|
16
15
|
import { colors } from "../../utils/colors";
|
|
16
|
+
import Card from "./Card";
|
|
17
17
|
export default {
|
|
18
18
|
title: "Components/Card",
|
|
19
19
|
component: Card,
|
|
@@ -10,7 +10,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
-
import { cardLayoutEnum } from "../../../utils/
|
|
13
|
+
import { cardLayoutEnum } from "../../../utils/enums";
|
|
14
14
|
import { ContactProfileTheme1 } from "./ContactProfileTheme1";
|
|
15
15
|
import { ContactProfileTheme2 } from "./ContactProfileTheme2";
|
|
16
16
|
import { getColor } from "../../../app/scripts";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Button } from "../../../components/Button/Button";
|
|
3
3
|
import { LuImage } from "../../../components/Images/LuImage";
|
|
4
|
-
import { contentTypeEnum } from "../../../utils/
|
|
4
|
+
import { contentTypeEnum } from "../../../utils/enums";
|
|
5
5
|
import Link from "next/link";
|
|
6
6
|
import styles from "../card.module.css";
|
|
7
7
|
export var ContactProfileTheme1 = function (props) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Button } from "../../../components/Button/Button";
|
|
3
3
|
import { LuImage } from "../../../components/Images/LuImage";
|
|
4
|
-
import { contentTypeEnum } from "../../../utils/
|
|
4
|
+
import { contentTypeEnum } from "../../../utils/enums";
|
|
5
5
|
import Link from "next/link";
|
|
6
6
|
import styles from "../card.module.css";
|
|
7
7
|
export var ContactProfileTheme2 = function (props) {
|
|
@@ -10,7 +10,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
-
import { cardLayoutEnum } from "../../../utils/
|
|
13
|
+
import { cardLayoutEnum } from "../../../utils/enums";
|
|
14
14
|
import { colors } from "../../../utils/colors";
|
|
15
15
|
import { ensureValue, getColor } from "../../../app/scripts";
|
|
16
16
|
import { PostByCategoryTheme1 } from "./PostByCategoryTheme1";
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { LuImage } from "../../../components/Images/LuImage";
|
|
3
3
|
import Link from "next/link";
|
|
4
4
|
import { Button } from "../../../components/Button/Button";
|
|
5
|
-
import { contentTypeEnum } from "../../../utils/
|
|
5
|
+
import { contentTypeEnum } from "../../../utils/enums";
|
|
6
6
|
import styles from "../card.module.css";
|
|
7
7
|
export var PostByCategoryTheme1 = function (props) {
|
|
8
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) }) })] })] }));
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { LuImage } from "../../../components/Images/LuImage";
|
|
3
3
|
import Link from "next/link";
|
|
4
4
|
import { Button } from "../../../components/Button/Button";
|
|
5
|
-
import { contentTypeEnum } from "../../../utils/
|
|
5
|
+
import { contentTypeEnum } from "../../../utils/enums";
|
|
6
6
|
import styles from "../card.module.css";
|
|
7
7
|
export var PostByCategoryTheme2 = function (props) {
|
|
8
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) }) })] }));
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare enum cardLayoutEnum {
|
|
2
|
+
horizontal = "Horizontal",
|
|
3
|
+
vertical = "Vertical"
|
|
4
|
+
}
|
|
5
|
+
export declare enum SectionTypeEnum {
|
|
6
|
+
multiplePostsTheme = "Multiple Posts",
|
|
7
|
+
singlePostTheme = "Single Post",
|
|
8
|
+
postByCategoriesTheme = "Post By Categories",
|
|
9
|
+
contactsProfileTheme = "Contacts Profile",
|
|
10
|
+
galleryTheme = "Gallery",
|
|
11
|
+
albumTheme = "Album"
|
|
12
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export var cardLayoutEnum;
|
|
2
|
+
(function (cardLayoutEnum) {
|
|
3
|
+
cardLayoutEnum["horizontal"] = "Horizontal";
|
|
4
|
+
cardLayoutEnum["vertical"] = "Vertical";
|
|
5
|
+
})(cardLayoutEnum || (cardLayoutEnum = {}));
|
|
6
|
+
;
|
|
7
|
+
export var SectionTypeEnum;
|
|
8
|
+
(function (SectionTypeEnum) {
|
|
9
|
+
SectionTypeEnum["multiplePostsTheme"] = "Multiple Posts";
|
|
10
|
+
SectionTypeEnum["singlePostTheme"] = "Single Post";
|
|
11
|
+
SectionTypeEnum["postByCategoriesTheme"] = "Post By Categories";
|
|
12
|
+
SectionTypeEnum["contactsProfileTheme"] = "Contacts Profile";
|
|
13
|
+
SectionTypeEnum["galleryTheme"] = "Gallery";
|
|
14
|
+
SectionTypeEnum["albumTheme"] = "Album";
|
|
15
|
+
})(SectionTypeEnum || (SectionTypeEnum = {}));
|
|
16
|
+
;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import { MinWidthHeightProps } from "@/types/interface";
|
|
2
|
-
|
|
2
|
+
declare const MinWidthHeight: ({ minWidth, minHeight, }: MinWidthHeightProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default MinWidthHeight;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
|
|
2
|
+
var MinWidthHeight = function (_a) {
|
|
3
3
|
var minWidth = _a.minWidth, minHeight = _a.minHeight;
|
|
4
4
|
return (_jsx(_Fragment, { children: _jsx("div", { className: "w-fit", children: _jsx("div", { className: "bg-blue-500 ".concat(minWidth, " ").concat(minHeight, " rounded"), "data-testid": "minWidthHeight-box" }) }) }));
|
|
5
5
|
};
|
|
6
|
+
export default MinWidthHeight;
|
|
@@ -10,8 +10,8 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
import { MinWidthHeight } from "../../components/Size/MinWidthHeight";
|
|
14
13
|
import { minHeights, minWidths } from "../../utils";
|
|
14
|
+
import MinWidthHeight from "./MinWidthHeight";
|
|
15
15
|
export default {
|
|
16
16
|
title: "Components/Size",
|
|
17
17
|
component: MinWidthHeight,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
|
|
2
|
+
var Size = function (_a) {
|
|
3
3
|
var size = _a.size, color = _a.color;
|
|
4
4
|
return (_jsx(_Fragment, { children: _jsx("div", { className: "".concat(size, " rounded lu-bg-primary-600"), "data-testid": "size-box" }) }));
|
|
5
5
|
};
|
|
6
|
+
export default Size;
|
|
@@ -10,8 +10,8 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
import { Size } from "../../components/Size/Size";
|
|
14
13
|
import { sizes } from "../../utils";
|
|
14
|
+
import Size from "./Size";
|
|
15
15
|
export default {
|
|
16
16
|
title: "Components/Size",
|
|
17
17
|
component: Size,
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import { WidthHeightProps } from "@/types/interface";
|
|
2
|
-
|
|
2
|
+
declare const WidthHeight: ({ width, height }: WidthHeightProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default WidthHeight;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
|
|
2
|
+
var WidthHeight = function (_a) {
|
|
3
3
|
var width = _a.width, height = _a.height;
|
|
4
4
|
return (_jsx(_Fragment, { children: _jsx("div", { className: "bg-gray-200 lu-width-50 lu-height-25 relative rounded lu-pd-200", children: _jsx("div", { className: "absolute right-0 top-0 bg-blue-500 ".concat(width, " ").concat(height, " rounded"), "data-testid": "resizable-box" }) }) }));
|
|
5
5
|
};
|
|
6
|
+
export default WidthHeight;
|
|
@@ -10,8 +10,8 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
import { WidthHeight } from "../../components/Size/WidthHeight";
|
|
14
13
|
import { heights, widths } from "../../utils";
|
|
14
|
+
import WidthHeight from "./WidthHeight";
|
|
15
15
|
export default {
|
|
16
16
|
title: "Components/Size",
|
|
17
17
|
component: WidthHeight,
|
|
@@ -3,4 +3,5 @@ export interface TitleProps {
|
|
|
3
3
|
className?: string;
|
|
4
4
|
children?: React.ReactNode;
|
|
5
5
|
}
|
|
6
|
-
|
|
6
|
+
declare const Title: ({ className, children, }: TitleProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default Title;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Dummy_Title } from "../../utils/constants";
|
|
3
3
|
import TitleStyles from "./Title.module.css";
|
|
4
|
-
|
|
4
|
+
var Title = function (_a) {
|
|
5
5
|
var _b = _a.className, className = _b === void 0 ? "" : _b, _c = _a.children, children = _c === void 0 ? Dummy_Title : _c;
|
|
6
6
|
return (_jsx("h2", { className: "".concat(TitleStyles["main-title"], " ").concat(className), children: children }));
|
|
7
7
|
};
|
|
8
|
+
export default Title;
|
|
@@ -11,7 +11,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
import { Dummy_Title } from "../../utils/constants";
|
|
14
|
-
import
|
|
14
|
+
import Title from "./Title";
|
|
15
15
|
export default {
|
|
16
16
|
title: "Components/Title",
|
|
17
17
|
component: Title,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { render } from "@testing-library/react";
|
|
3
|
-
import { Title } from "./Title";
|
|
4
3
|
import { Dummy_Title } from "../../utils/constants";
|
|
4
|
+
import Title from "./Title";
|
|
5
5
|
describe("Title Component", function () {
|
|
6
6
|
it("renders with default props", function () {
|
|
7
7
|
var getByText = render(_jsx(Title, {})).getByText;
|
|
@@ -23,7 +23,8 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
23
23
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
24
|
import { Dummy_Para } from "../../../utils/constants";
|
|
25
25
|
import { BODY_CLASSES } from "./";
|
|
26
|
-
|
|
26
|
+
var Body = function (_a) {
|
|
27
27
|
var _b = _a.body, body = _b === void 0 ? BODY_CLASSES[0] : _b, _c = _a.label, label = _c === void 0 ? Dummy_Para : _c, _d = _a.className, className = _d === void 0 ? "" : _d, props = __rest(_a, ["body", "label", "className"]);
|
|
28
28
|
return (_jsx("div", __assign({ className: "".concat(body, " ").concat(className).trim() }, props, { children: label })));
|
|
29
29
|
};
|
|
30
|
+
export default Body;
|
|
@@ -10,10 +10,10 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
import { Body } from "./Body";
|
|
14
13
|
import Table from "../../../global/components/Table/Table";
|
|
15
14
|
import { BODY_CLASSES, bodyTableHeaders, bodyTableRows } from ".";
|
|
16
15
|
import { Dummy_Para } from "../../../utils/constants";
|
|
16
|
+
import Body from "./Body";
|
|
17
17
|
export default {
|
|
18
18
|
title: "Components/Typography/Body",
|
|
19
19
|
component: Body,
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import { DisplayProps } from "./type";
|
|
2
|
-
|
|
2
|
+
declare const Display: ({ display, label, className, ...props }: DisplayProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default Display;
|
|
@@ -23,7 +23,8 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
23
23
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
24
|
import { Dummy_Para } from "../../../utils/constants";
|
|
25
25
|
import { Display_Classes } from "./";
|
|
26
|
-
|
|
26
|
+
var Display = function (_a) {
|
|
27
27
|
var _b = _a.display, display = _b === void 0 ? Display_Classes["lu-display-1"] : _b, _c = _a.label, label = _c === void 0 ? Dummy_Para : _c, _d = _a.className, className = _d === void 0 ? "" : _d, props = __rest(_a, ["display", "label", "className"]);
|
|
28
28
|
return (_jsx("div", __assign({}, props, { className: "".concat(display, " ").concat(className, " "), children: label })));
|
|
29
29
|
};
|
|
30
|
+
export default Display;
|
|
@@ -10,7 +10,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
import
|
|
13
|
+
import Display from "./Display";
|
|
14
14
|
import { Display_Classes, displayTableHeaders, displayTableRows } from ".";
|
|
15
15
|
import Table from "../../../global/components/Table/Table";
|
|
16
16
|
import { Dummy_Para } from "../../../utils/constants";
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { render, screen } from "@testing-library/react";
|
|
3
3
|
import "@testing-library/jest-dom";
|
|
4
4
|
import { Dummy_Para } from "../../../utils/constants";
|
|
5
|
-
import
|
|
5
|
+
import Heading from "./Headings";
|
|
6
6
|
import { Heading_Classes } from "./";
|
|
7
7
|
describe("Heading Component", function () {
|
|
8
8
|
it("renders with default props", function () {
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import { HeadingProps } from "./type";
|
|
2
|
-
|
|
2
|
+
declare const Heading: ({ heading, label, className, ...props }: HeadingProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default Heading;
|
|
@@ -23,7 +23,8 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
23
23
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
24
|
import { Dummy_Para } from "../../../utils/constants";
|
|
25
25
|
import { Heading_Classes } from "./";
|
|
26
|
-
|
|
26
|
+
var Heading = function (_a) {
|
|
27
27
|
var _b = _a.heading, heading = _b === void 0 ? Heading_Classes["lu-heading-h1"] : _b, _c = _a.label, label = _c === void 0 ? Dummy_Para : _c, _d = _a.className, className = _d === void 0 ? "" : _d, props = __rest(_a, ["heading", "label", "className"]);
|
|
28
28
|
return (_jsx("h1", __assign({}, props, { className: "".concat(heading, " ").concat(className), children: label })));
|
|
29
29
|
};
|
|
30
|
+
export default Heading;
|
|
@@ -10,7 +10,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
import
|
|
13
|
+
import Heading from "./Headings";
|
|
14
14
|
import { headingsList } from "../../../utils";
|
|
15
15
|
import Table from "../../../global/components/Table/Table";
|
|
16
16
|
import { Heading_Classes, headingTableHeaders, headingTableRows } from "./";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export { Heading } from "./components/Typography/Headings/Headings";
|
|
2
|
-
export { Display } from "./components/Typography/Display/Display";
|
|
3
|
-
export { Body } from "./components/Typography/Body/Body";
|
|
4
|
-
export { Size } from "./components/Size/Size";
|
|
5
|
-
export { WidthHeight } from "./components/Size/WidthHeight";
|
|
6
|
-
export { MinWidthHeight } from "./components/Size/MinWidthHeight";
|
|
7
|
-
export { LUIcon } from "./components/Icons/LUIcon";
|
|
8
|
-
export { Card } from "./components/MediaCard/Card";
|
|
9
|
-
export { Button } from "./components/Button/Button";
|
|
10
|
-
export { LuImage } from "./components/Images/LuImage";
|
|
11
|
-
export { Avatar } from "./components/Avatar/Avatar";
|
|
12
|
-
export { Title } from "./components/Title/Title";
|
|
1
|
+
export { default as Heading } from "./components/Typography/Headings/Headings";
|
|
2
|
+
export { default as Display } from "./components/Typography/Display/Display";
|
|
3
|
+
export { default as Body } from "./components/Typography/Body/Body";
|
|
4
|
+
export { default as Size } from "./components/Size/Size";
|
|
5
|
+
export { default as WidthHeight } from "./components/Size/WidthHeight";
|
|
6
|
+
export { default as MinWidthHeight } from "./components/Size/MinWidthHeight";
|
|
7
|
+
export { default as LUIcon } from "./components/Icons/LUIcon";
|
|
8
|
+
export { default as Card } from "./components/MediaCard/Card";
|
|
9
|
+
export { default as Button } from "./components/Button/Button";
|
|
10
|
+
export { default as LuImage } from "./components/Images/LuImage";
|
|
11
|
+
export { default as Avatar } from "./components/Avatar/Avatar";
|
|
12
|
+
export { default as Title } from "./components/Title/Title";
|
|
13
13
|
import "./styles/global.css";
|
package/dist/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export { Heading } from "./components/Typography/Headings/Headings";
|
|
2
|
-
export { Display } from "./components/Typography/Display/Display";
|
|
3
|
-
export { Body } from "./components/Typography/Body/Body";
|
|
4
|
-
export { Size } from "./components/Size/Size";
|
|
5
|
-
export { WidthHeight } from "./components/Size/WidthHeight";
|
|
6
|
-
export { MinWidthHeight } from "./components/Size/MinWidthHeight";
|
|
7
|
-
export { LUIcon } from "./components/Icons/LUIcon";
|
|
8
|
-
export { Card } from "./components/MediaCard/Card";
|
|
9
|
-
export { Button } from "./components/Button/Button";
|
|
10
|
-
export { LuImage } from "./components/Images/LuImage";
|
|
11
|
-
export { Avatar } from "./components/Avatar/Avatar";
|
|
12
|
-
export { Title } from "./components/Title/Title";
|
|
1
|
+
export { default as Heading } from "./components/Typography/Headings/Headings";
|
|
2
|
+
export { default as Display } from "./components/Typography/Display/Display";
|
|
3
|
+
export { default as Body } from "./components/Typography/Body/Body";
|
|
4
|
+
export { default as Size } from "./components/Size/Size";
|
|
5
|
+
export { default as WidthHeight } from "./components/Size/WidthHeight";
|
|
6
|
+
export { default as MinWidthHeight } from "./components/Size/MinWidthHeight";
|
|
7
|
+
export { default as LUIcon } from "./components/Icons/LUIcon";
|
|
8
|
+
export { default as Card } from "./components/MediaCard/Card";
|
|
9
|
+
export { default as Button } from "./components/Button/Button";
|
|
10
|
+
export { default as LuImage } from "./components/Images/LuImage";
|
|
11
|
+
export { default as Avatar } from "./components/Avatar/Avatar";
|
|
12
|
+
export { default as Title } from "./components/Title/Title";
|
|
13
13
|
import "./styles/global.css";
|
package/dist/utils/enums.d.ts
CHANGED
|
@@ -1,3 +1,28 @@
|
|
|
1
|
+
export declare const contentTypeEnum: {
|
|
2
|
+
none: string;
|
|
3
|
+
text_with_icon: string;
|
|
4
|
+
icon_only: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const buttonTypeEnum: {
|
|
7
|
+
fill: string;
|
|
8
|
+
outline: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const orientationEnum: {
|
|
11
|
+
portrait: string;
|
|
12
|
+
landscape: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const cardLayoutEnum: {
|
|
15
|
+
horizontal: string;
|
|
16
|
+
vertical: string;
|
|
17
|
+
};
|
|
18
|
+
export declare const sectionType: {
|
|
19
|
+
multiplePostsTheme: string;
|
|
20
|
+
singlePostTheme: string;
|
|
21
|
+
postByCategoriesTheme: string;
|
|
22
|
+
contactsProfileTheme: string;
|
|
23
|
+
galleryTheme: string;
|
|
24
|
+
albumTheme: string;
|
|
25
|
+
};
|
|
1
26
|
export declare enum FontSize {
|
|
2
27
|
Base = "lu-base-font-size",
|
|
3
28
|
XSmall = "lu-font-size-x-small",
|
package/dist/utils/enums.js
CHANGED
|
@@ -1,3 +1,28 @@
|
|
|
1
|
+
export var contentTypeEnum = {
|
|
2
|
+
none: "None",
|
|
3
|
+
text_with_icon: "Text with Icon",
|
|
4
|
+
icon_only: "Icon Only",
|
|
5
|
+
};
|
|
6
|
+
export var buttonTypeEnum = {
|
|
7
|
+
fill: "Fill",
|
|
8
|
+
outline: "Outline",
|
|
9
|
+
};
|
|
10
|
+
export var orientationEnum = {
|
|
11
|
+
portrait: "Portrait",
|
|
12
|
+
landscape: "Landscape",
|
|
13
|
+
};
|
|
14
|
+
export var cardLayoutEnum = {
|
|
15
|
+
horizontal: "Horizontal",
|
|
16
|
+
vertical: "Vertical",
|
|
17
|
+
};
|
|
18
|
+
export var sectionType = {
|
|
19
|
+
multiplePostsTheme: "Multiple Posts",
|
|
20
|
+
singlePostTheme: "Single Post",
|
|
21
|
+
postByCategoriesTheme: "Post By Categories",
|
|
22
|
+
contactsProfileTheme: "Contacts Profile",
|
|
23
|
+
galleryTheme: "Gallery",
|
|
24
|
+
albumTheme: "Album",
|
|
25
|
+
};
|
|
1
26
|
export var FontSize;
|
|
2
27
|
(function (FontSize) {
|
|
3
28
|
FontSize["Base"] = "lu-base-font-size";
|
package/dist/utils/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { cardLayoutEnum, orientationEnum, sectionType } from "./
|
|
1
|
+
import { cardLayoutEnum, orientationEnum, sectionType } from "./enums";
|
|
2
2
|
//************Used for typography and color utilities Storybook************
|
|
3
3
|
export var text = "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.";
|
|
4
4
|
export var defaultCardProps = {
|