linkedunion-design-kit 1.4.6 → 1.4.7
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/app/scripts.js +1 -1
- package/dist/components/Avatar/Avatar.js +1 -1
- package/dist/components/Color/BackgroundColor/Color.js +1 -1
- package/dist/components/Color/BackgroundColor/Color.stories.js +13 -13
- package/dist/components/Color/BackgroundColor/index.d.ts +7 -0
- package/dist/components/Color/BackgroundColor/index.js +8 -0
- package/dist/components/MediaCard/Card.d.ts +1 -1
- package/dist/components/MediaCard/Card.js +18 -16
- package/dist/components/MediaCard/Card.stories.js +11 -2
- package/dist/components/MediaCard/ContactProfile/ContactProfile.d.ts +2 -0
- package/dist/components/MediaCard/ContactProfile/ContactProfile.js +23 -0
- package/dist/components/MediaCard/ContactProfile/ContactProfileTheme1.d.ts +2 -0
- package/dist/components/MediaCard/ContactProfile/ContactProfileTheme1.js +8 -0
- package/dist/components/MediaCard/ContactProfile/ContactProfileTheme2.d.ts +2 -0
- package/dist/components/MediaCard/ContactProfile/ContactProfileTheme2.js +8 -0
- package/dist/components/MediaCard/PostByCategory/PostByCategory.d.ts +2 -0
- package/dist/components/MediaCard/PostByCategory/PostByCategory.js +23 -0
- package/dist/components/MediaCard/PostByCategory/PostByCategoryTheme1.d.ts +2 -0
- package/dist/components/MediaCard/PostByCategory/PostByCategoryTheme1.js +8 -0
- package/dist/components/MediaCard/PostByCategory/PostByCategoryTheme2.d.ts +2 -0
- package/dist/components/MediaCard/PostByCategory/PostByCategoryTheme2.js +8 -0
- package/dist/components/MediaCard/PostByCategory.js +21 -9
- package/dist/components/MediaCard/PostByCategoryTheme1.d.ts +2 -0
- package/dist/components/MediaCard/PostByCategoryTheme1.js +8 -0
- package/dist/components/MediaCard/PostByCategoryTheme2.d.ts +2 -0
- package/dist/components/MediaCard/PostByCategoryTheme2.js +8 -0
- package/dist/components/Size/Size.js +1 -1
- package/dist/components/Size/Size.stories.js +1 -6
- package/dist/components/Spacing/Margin/MarginToken.js +3 -1
- package/dist/components/Spacing/Margin/MarginX.d.ts +1 -0
- package/dist/components/Spacing/Margin/MarginX.js +5 -0
- package/dist/components/Spacing/Margin/MarginY.d.ts +1 -0
- package/dist/components/Spacing/Margin/MarginY.js +5 -0
- package/dist/components/Spacing/Padding/PaddingToken.js +3 -1
- package/dist/components/Spacing/Padding/PaddingX.d.ts +1 -0
- package/dist/components/Spacing/Padding/PaddingX.js +5 -0
- package/dist/components/Spacing/Padding/PaddingY.d.ts +1 -0
- package/dist/components/Spacing/Padding/PaddingY.js +5 -0
- package/dist/components/Typography/Body/Body.d.ts +2 -0
- package/dist/components/Typography/Body/Body.js +29 -0
- package/dist/components/Typography/Body/Body.stories.d.ts +6 -0
- package/dist/components/Typography/Body/Body.stories.js +68 -0
- package/dist/components/Typography/Body/body.test.d.ts +1 -0
- package/dist/components/Typography/Body/body.test.js +44 -0
- package/dist/components/Typography/Body/index.d.ts +14 -0
- package/dist/components/Typography/Body/index.js +50 -0
- package/dist/components/Typography/Body/type.d.ts +7 -0
- package/dist/components/Typography/Body/type.js +1 -0
- package/dist/components/Typography/Display/Display.d.ts +2 -0
- package/dist/components/Typography/Display/Display.js +29 -0
- package/dist/components/Typography/Display/Display.stories.d.ts +6 -0
- package/dist/components/Typography/Display/Display.stories.js +68 -0
- package/dist/components/Typography/Display/Display.test.d.ts +1 -0
- package/dist/components/Typography/Display/Display.test.js +44 -0
- package/dist/components/Typography/Display/index.d.ts +38 -0
- package/dist/components/Typography/Display/index.js +61 -0
- package/dist/components/Typography/Display/type.d.ts +8 -0
- package/dist/components/Typography/Display/type.js +1 -0
- package/dist/components/Typography/Headings/Heading.test.d.ts +1 -0
- package/dist/components/Typography/Headings/Heading.test.js +44 -0
- package/dist/components/Typography/Headings/Headings.d.ts +2 -2
- package/dist/components/Typography/Headings/Headings.js +27 -3
- package/dist/components/Typography/Headings/Headings.stories.d.ts +4 -2
- package/dist/components/Typography/Headings/Headings.stories.js +35 -8
- package/dist/components/Typography/Headings/index.d.ts +21 -0
- package/dist/components/Typography/Headings/index.js +68 -0
- package/dist/components/Typography/Headings/type.d.ts +6 -0
- package/dist/components/Typography/Headings/type.js +1 -0
- package/dist/global/components/Table/Table.d.ts +14 -0
- package/dist/global/components/Table/Table.js +12 -0
- package/dist/index.d.ts +13 -10
- package/dist/index.js +13 -10
- package/dist/styles/global.css +1113 -7930
- package/dist/tailwind.config.d.ts +1 -1
- package/dist/tailwind.config.js +83 -46
- package/dist/utils/colors.d.ts +7 -0
- package/dist/utils/colors.js +7 -0
- package/dist/utils/constants.d.ts +1 -0
- package/dist/utils/constants.js +1 -0
- package/dist/utils/enum.js +14 -14
- package/dist/utils/enums.d.ts +51 -0
- package/dist/utils/enums.js +56 -0
- package/dist/utils/index.d.ts +0 -93
- package/dist/utils/index.js +0 -165
- package/package.json +1 -1
package/dist/app/scripts.js
CHANGED
|
@@ -5,7 +5,7 @@ import { avtarBackgroundSize } from "../../utils";
|
|
|
5
5
|
export 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
|
-
return (_jsx(_Fragment, { children: _jsx("div", { className: "".concat(image ? 'bg-primary-200' : 'bg-gray-100', " flex items-center justify-center ").concat(shape, " overflow-hidden ").concat(className), style: avtarBackgroundSize(size), "data-testid": "lu-avatar", children: image ?
|
|
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 ?
|
|
9
9
|
_jsx("img", { src: image, alt: "image", className: "w-full h-full object-cover" })
|
|
10
10
|
:
|
|
11
11
|
_jsx(LUIcon, { size: size, icon: defaultIcon === null || defaultIcon === void 0 ? void 0 : defaultIcon.key, fill: "lu-neutral-icon-dark", className: "" }) }) }));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
export var Color = function (_a) {
|
|
3
3
|
var label = _a.label, color = _a.color;
|
|
4
|
-
return (_jsxs("div", { children: [_jsx("h2", { className: "
|
|
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
5
|
};
|
|
@@ -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 { Color } from "../../../components/Color/BackgroundColor/Color";
|
|
14
|
-
import {
|
|
14
|
+
import { customBackgroundColor } from ".";
|
|
15
15
|
export default {
|
|
16
16
|
title: "Components/Color/BackgroundColor",
|
|
17
17
|
component: Color,
|
|
@@ -23,66 +23,66 @@ var Template = function (args) { return _jsx(Color, __assign({}, args)); };
|
|
|
23
23
|
export var Primary = Template.bind({});
|
|
24
24
|
Primary.args = {
|
|
25
25
|
label: "Primary",
|
|
26
|
-
color: "bg-primary-500", // Default color
|
|
26
|
+
color: "lu-bg-primary-500", // Default color
|
|
27
27
|
};
|
|
28
28
|
Primary.argTypes = {
|
|
29
29
|
color: {
|
|
30
30
|
control: { type: "select" },
|
|
31
|
-
options:
|
|
31
|
+
options: Object.keys(customBackgroundColor).filter(function (key) { return key.startsWith(".lu-bg-primary-"); }).map(function (key) { return key.slice(1); })
|
|
32
32
|
},
|
|
33
33
|
};
|
|
34
34
|
export var Gray = Template.bind({});
|
|
35
35
|
Gray.argTypes = {
|
|
36
36
|
color: {
|
|
37
37
|
control: { type: "select" },
|
|
38
|
-
options:
|
|
38
|
+
options: Object.keys(customBackgroundColor).filter(function (key) { return key.startsWith(".lu-bg-neutral-"); }).map(function (key) { return key.slice(1); })
|
|
39
39
|
},
|
|
40
40
|
};
|
|
41
41
|
Gray.args = {
|
|
42
42
|
label: "Gray",
|
|
43
|
-
color: "bg-
|
|
43
|
+
color: "lu-bg-neutral-500",
|
|
44
44
|
};
|
|
45
45
|
export var Success = Template.bind({});
|
|
46
46
|
Success.argTypes = {
|
|
47
47
|
color: {
|
|
48
48
|
control: { type: "select" },
|
|
49
|
-
options:
|
|
49
|
+
options: Object.keys(customBackgroundColor).filter(function (key) { return key.startsWith(".lu-bg-success-"); }).map(function (key) { return key.slice(1); })
|
|
50
50
|
},
|
|
51
51
|
};
|
|
52
52
|
Success.args = {
|
|
53
53
|
label: "Success",
|
|
54
|
-
color: "bg-success-500",
|
|
54
|
+
color: "lu-bg-success-500",
|
|
55
55
|
};
|
|
56
56
|
export var Warning = Template.bind({});
|
|
57
57
|
Warning.argTypes = {
|
|
58
58
|
color: {
|
|
59
59
|
control: { type: "select" },
|
|
60
|
-
options:
|
|
60
|
+
options: Object.keys(customBackgroundColor).filter(function (key) { return key.startsWith(".lu-bg-warning-"); }).map(function (key) { return key.slice(1); })
|
|
61
61
|
},
|
|
62
62
|
};
|
|
63
63
|
Warning.args = {
|
|
64
64
|
label: "Warning",
|
|
65
|
-
color: "bg-warning-500",
|
|
65
|
+
color: "lu-bg-warning-500",
|
|
66
66
|
};
|
|
67
67
|
export var Danger = Template.bind({});
|
|
68
68
|
Danger.argTypes = {
|
|
69
69
|
color: {
|
|
70
70
|
control: { type: "select" },
|
|
71
|
-
options:
|
|
71
|
+
options: Object.keys(customBackgroundColor).filter(function (key) { return key.startsWith(".lu-bg-danger-"); }).map(function (key) { return key.slice(1); })
|
|
72
72
|
},
|
|
73
73
|
};
|
|
74
74
|
Danger.args = {
|
|
75
75
|
label: "Danger",
|
|
76
|
-
color: "bg-danger-500",
|
|
76
|
+
color: "lu-bg-danger-500",
|
|
77
77
|
};
|
|
78
78
|
export var Info = Template.bind({});
|
|
79
79
|
Info.argTypes = {
|
|
80
80
|
color: {
|
|
81
81
|
control: { type: "select" },
|
|
82
|
-
options:
|
|
82
|
+
options: Object.keys(customBackgroundColor).filter(function (key) { return key.startsWith(".lu-bg-info-"); }).map(function (key) { return key.slice(1); })
|
|
83
83
|
},
|
|
84
84
|
};
|
|
85
85
|
Info.args = {
|
|
86
86
|
label: "Info",
|
|
87
|
-
color: "bg-info-500",
|
|
87
|
+
color: "lu-bg-info-500",
|
|
88
88
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export var colorNames = ["primary", "neutral", "success", "warning", "danger", "info"];
|
|
2
|
+
export var shades = Array.from({ length: 11 }, function (_, i) { return i * 100; }); // Generates [0, 100, 200, ..., 1000]
|
|
3
|
+
export var customBackgroundColor = Object.fromEntries(colorNames.flatMap(function (color) {
|
|
4
|
+
return shades.map(function (shade) { return [
|
|
5
|
+
".lu-bg-".concat(color, "-").concat(shade),
|
|
6
|
+
{ backgroundColor: "var(--".concat(color, "-").concat(shade, ")") }, // Generates { ".lu-bg-primary-100": { backgroundColor: "var(--primary-100)" }, ... }
|
|
7
|
+
]; });
|
|
8
|
+
}));
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { CardProps } from "@/types/interface";
|
|
2
|
-
export declare const Card: ({ type,
|
|
2
|
+
export declare const Card: ({ type, layout, id, className, image, mediaPosition, heading, body, href, btnLabel, cardStyle }: CardProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -9,23 +9,25 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
-
var t = {};
|
|
14
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
-
t[p] = s[p];
|
|
16
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
-
t[p[i]] = s[p[i]];
|
|
20
|
-
}
|
|
21
|
-
return t;
|
|
22
|
-
};
|
|
23
12
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
|
-
import { sectionType } from "../../utils/enum";
|
|
25
|
-
import { PostByCategory } from "./PostByCategory";
|
|
26
|
-
import {
|
|
13
|
+
import { sectionType, cardLayoutEnum } from "../../utils/enum";
|
|
14
|
+
import { PostByCategory } from "./PostByCategory/PostByCategory";
|
|
15
|
+
import { colors } from "../../utils/colors";
|
|
16
|
+
import { defaultCardProps } from "../../utils";
|
|
17
|
+
import { ContactProfile } from "./ContactProfile/ContactProfile";
|
|
27
18
|
export var Card = function (_a) {
|
|
28
|
-
var _b = _a.type, type = _b === void 0 ? sectionType.postByCategoriesTheme : _b, defaultCardProps =
|
|
29
|
-
|
|
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
|
+
card_title_color: colors.default,
|
|
21
|
+
card_description_color: colors.caption_color,
|
|
22
|
+
card_shadow_toggle: 1,
|
|
23
|
+
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,
|
|
28
|
+
card_image_border_radius: '0',
|
|
29
|
+
card_image_border: '0'
|
|
30
|
+
} : _m;
|
|
31
|
+
var data = { id: id, image: image, layout: layout, mediaPosition: mediaPosition, heading: heading, body: body, className: className, btnLabel: btnLabel, href: href, cardStyle: cardStyle };
|
|
30
32
|
return (_jsxs(_Fragment, { children: [type === sectionType.postByCategoriesTheme && _jsx(PostByCategory, __assign({}, data)), type === sectionType.contactsProfileTheme && _jsx(ContactProfile, __assign({}, data))] }));
|
|
31
33
|
};
|
|
@@ -13,6 +13,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
13
13
|
import { Card } from "./Card";
|
|
14
14
|
import { cardLayoutEnum, orientationEnum, sectionType } from "../../utils/enum";
|
|
15
15
|
import { sectionTypeList } from "../../utils";
|
|
16
|
+
import { colors } from "../../utils/colors";
|
|
16
17
|
export default {
|
|
17
18
|
title: "Components/Card",
|
|
18
19
|
component: Card,
|
|
@@ -28,7 +29,15 @@ card.args = {
|
|
|
28
29
|
layout: cardLayoutEnum.horizontal,
|
|
29
30
|
btnLabel: 'View More',
|
|
30
31
|
href: 'https://www.google.com/',
|
|
31
|
-
|
|
32
|
+
cardStyle: {
|
|
33
|
+
card_title_color: colors.default,
|
|
34
|
+
card_description_color: colors.caption_color,
|
|
35
|
+
card_shadow_toggle: 1,
|
|
36
|
+
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,
|
|
40
|
+
},
|
|
32
41
|
id: 1
|
|
33
42
|
};
|
|
34
43
|
card.argTypes = {
|
|
@@ -43,5 +52,5 @@ card.argTypes = {
|
|
|
43
52
|
type: {
|
|
44
53
|
control: { type: "select", labels: Object.fromEntries(sectionTypeList.map(function (type) { return [type.key, type.label]; })) },
|
|
45
54
|
options: sectionTypeList.map(function (type) { return type.key; }),
|
|
46
|
-
}
|
|
55
|
+
},
|
|
47
56
|
};
|
|
@@ -0,0 +1,23 @@
|
|
|
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, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { cardLayoutEnum } from "../../../utils/enum";
|
|
14
|
+
import { ContactProfileTheme1 } from "./ContactProfileTheme1";
|
|
15
|
+
import { ContactProfileTheme2 } from "./ContactProfileTheme2";
|
|
16
|
+
import { getColor } from "../../../app/scripts";
|
|
17
|
+
import { colors } from "../../../utils/colors";
|
|
18
|
+
export var ContactProfile = function (props) {
|
|
19
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
20
|
+
return (_jsxs("div", { children: [props.layout === cardLayoutEnum.horizontal ?
|
|
21
|
+
_jsx(ContactProfileTheme1, __assign({}, props))
|
|
22
|
+
: (_jsx(_Fragment, { children: _jsx(ContactProfileTheme2, __assign({}, props)) })), _jsx("style", { jsx: true, global: true, children: "\n .card_ContactProfile_title_color_".concat(props.id, " {\n color: ").concat(getColor((_a = props.cardStyle) === null || _a === void 0 ? void 0 : _a.card_title_color, colors === null || colors === void 0 ? void 0 : colors.default), ";\n }\n .card_ContactProfile_designation_color_").concat(props.id, " {\n color: ").concat(getColor((_b = props.cardStyle) === null || _b === void 0 ? void 0 : _b.card_description_color, 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 ? "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)')) : '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
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Button } from "../../../components/Button/Button";
|
|
3
|
+
import { LuImage } from "../../../components/Images/LuImage";
|
|
4
|
+
import { contentTypeEnum } from "../../../utils/enum";
|
|
5
|
+
import Link from "next/link";
|
|
6
|
+
export var ContactProfileTheme1 = function (props) {
|
|
7
|
+
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 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 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, " 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 card_button card_ContactProfile_btn_".concat(props.id) }) })] }));
|
|
8
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Button } from "../../../components/Button/Button";
|
|
3
|
+
import { LuImage } from "../../../components/Images/LuImage";
|
|
4
|
+
import { contentTypeEnum } from "../../../utils/enum";
|
|
5
|
+
import Link from "next/link";
|
|
6
|
+
export var ContactProfileTheme2 = function (props) {
|
|
7
|
+
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 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, " 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) }) })] }));
|
|
8
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
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, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { cardLayoutEnum } from "../../../utils/enum";
|
|
14
|
+
import { colors } from "../../../utils/colors";
|
|
15
|
+
import { ensureValue, getColor } from "../../../app/scripts";
|
|
16
|
+
import { PostByCategoryTheme1 } from "./PostByCategoryTheme1";
|
|
17
|
+
import { PostByCategoryTheme2 } from "./PostByCategoryTheme2";
|
|
18
|
+
export var PostByCategory = function (props) {
|
|
19
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
20
|
+
return (_jsxs("div", { children: [props.layout === cardLayoutEnum.horizontal ?
|
|
21
|
+
_jsx(PostByCategoryTheme1, __assign({}, props))
|
|
22
|
+
: (_jsx(_Fragment, { children: _jsx(PostByCategoryTheme2, __assign({}, props)) })), _jsx("style", { jsx: true, global: true, children: "\n .card_PostByCategory_title_color_".concat(props.id, " {\n color: ").concat(getColor((_a = props.cardStyle) === null || _a === void 0 ? void 0 : _a.card_title_color, colors === null || colors === void 0 ? void 0 : colors.default), ";\n }\n .card_PostByCategory_description_color_").concat(props.id, " {\n color: ").concat(getColor((_b = props.cardStyle) === null || _b === void 0 ? void 0 : _b.card_description_color, 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 ? "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)')) : '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 solid\n }\n ") })] }));
|
|
23
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { LuImage } from "../../../components/Images/LuImage";
|
|
3
|
+
import Link from "next/link";
|
|
4
|
+
import { Button } from "../../../components/Button/Button";
|
|
5
|
+
import { contentTypeEnum } from "../../../utils/enum";
|
|
6
|
+
export var PostByCategoryTheme1 = function (props) {
|
|
7
|
+
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 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 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 card_button card_PostByCategory_btn_".concat(props.id) }) })] })] }));
|
|
8
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { LuImage } from "../../../components/Images/LuImage";
|
|
3
|
+
import Link from "next/link";
|
|
4
|
+
import { Button } from "../../../components/Button/Button";
|
|
5
|
+
import { contentTypeEnum } from "../../../utils/enum";
|
|
6
|
+
export var PostByCategoryTheme2 = function (props) {
|
|
7
|
+
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 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 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) }) })] }));
|
|
8
|
+
};
|
|
@@ -1,11 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { cardLayoutEnum } from "../../utils/enum";
|
|
14
|
+
import { colors } from "../../utils/colors";
|
|
15
|
+
import { ensureValue, getColor } from "../../app/scripts";
|
|
16
|
+
import { PostByCategoryTheme1 } from "./PostByCategoryTheme1";
|
|
17
|
+
import { PostByCategoryTheme2 } from "./PostByCategoryTheme2";
|
|
7
18
|
export var PostByCategory = function (props) {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
19
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
20
|
+
return (_jsxs("div", { children: [props.layout === cardLayoutEnum.horizontal ?
|
|
21
|
+
_jsx(PostByCategoryTheme1, __assign({}, props))
|
|
22
|
+
: (_jsx(_Fragment, { children: _jsx(PostByCategoryTheme2, __assign({}, props)) })), _jsx("style", { jsx: true, global: true, children: "\n .card_PostByCategory_title_color_".concat(props.id, " {\n color: ").concat(getColor((_a = props.cardStyle) === null || _a === void 0 ? void 0 : _a.card_title_color, colors === null || colors === void 0 ? void 0 : colors.default), ";\n }\n .card_PostByCategory_description_color_").concat(props.id, " {\n color: ").concat(getColor((_b = props.cardStyle) === null || _b === void 0 ? void 0 : _b.card_description_color, 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 ? "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)')) : '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 solid\n }\n ") })] }));
|
|
11
23
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { LuImage } from "../Images/LuImage";
|
|
3
|
+
import Link from "next/link";
|
|
4
|
+
import { Button } from "../Button/Button";
|
|
5
|
+
import { contentTypeEnum } from "../../utils/enum";
|
|
6
|
+
export var PostByCategoryTheme1 = function (props) {
|
|
7
|
+
return (_jsx(_Fragment, { children: _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 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 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 card_button card_PostByCategory_btn_".concat(props.id) }) })] })] }) }));
|
|
8
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { LuImage } from "../Images/LuImage";
|
|
3
|
+
import Link from "next/link";
|
|
4
|
+
import { Button } from "../Button/Button";
|
|
5
|
+
import { contentTypeEnum } from "../../utils/enum";
|
|
6
|
+
export var PostByCategoryTheme2 = function (props) {
|
|
7
|
+
return (_jsx(_Fragment, { children: _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 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 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) }) })] }) }));
|
|
8
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
export var Size = function (_a) {
|
|
3
3
|
var size = _a.size, color = _a.color;
|
|
4
|
-
return (_jsx(_Fragment, { children: _jsx("div", { className: "".concat(size, " rounded ")
|
|
4
|
+
return (_jsx(_Fragment, { children: _jsx("div", { className: "".concat(size, " rounded lu-bg-primary-600"), "data-testid": "size-box" }) }));
|
|
5
5
|
};
|
|
@@ -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 { Size } from "../../components/Size/Size";
|
|
14
|
-
import {
|
|
14
|
+
import { sizes } from "../../utils";
|
|
15
15
|
export default {
|
|
16
16
|
title: "Components/Size",
|
|
17
17
|
component: Size,
|
|
@@ -20,15 +20,10 @@ var Template = function (args) { return _jsx(Size, __assign({}, args)); };
|
|
|
20
20
|
export var SizeStory = Template.bind({});
|
|
21
21
|
SizeStory.args = {
|
|
22
22
|
size: 'lu-size-400',
|
|
23
|
-
color: 'bg-primary-500',
|
|
24
23
|
};
|
|
25
24
|
SizeStory.argTypes = {
|
|
26
25
|
size: {
|
|
27
26
|
control: { type: "select", labels: Object.fromEntries(sizes.map(function (size) { return [size.key, size.label]; })) },
|
|
28
27
|
options: sizes.map(function (size) { return size.key; }),
|
|
29
28
|
},
|
|
30
|
-
color: {
|
|
31
|
-
control: { type: "select" },
|
|
32
|
-
options: colorGroups.primary,
|
|
33
|
-
},
|
|
34
29
|
};
|
|
@@ -5,6 +5,8 @@ import { MarginLeft } from "./MarginLeft";
|
|
|
5
5
|
import { MarginRight } from "./MarginRight";
|
|
6
6
|
import { MarginTop } from "./MarginTop";
|
|
7
7
|
import { MarginBottom } from "./MarginBottom";
|
|
8
|
+
import { MarginX } from "./MarginX";
|
|
9
|
+
import { MarginY } from "./MarginY";
|
|
8
10
|
export var MarginToken = function () {
|
|
9
|
-
return (_jsxs(_Fragment, { children: [_jsx("div", { className: "lu-font-size-large lu-font-weight-semibold lu-text-center lu-text-uppercase lu-text-decoration-underline lu-mb-100", children: "Spacing Token" }), _jsxs("table", { className: "lu-width-100 lu-font-size-x-small lu-font-weight-medium", children: [_jsx("thead", { className: "bg-primary-100", children: _jsxs("tr", { children: [_jsx("th", { className: "".concat(table_header_className), children: "Alias Token Name" }), _jsx("th", { className: "".concat(table_header_className), children: "Base unit Multiplier of 8" }), _jsx("th", { className: "".concat(table_header_className), children: "Value(PX)(REM)" })] }) }), _jsxs("tbody", { children: [_jsx(Margin, {}), _jsx(MarginLeft, {}), _jsx(MarginRight, {}), _jsx(MarginTop, {}), _jsx(MarginBottom, {})] })] })] }));
|
|
11
|
+
return (_jsxs(_Fragment, { children: [_jsx("div", { className: "lu-font-size-large lu-font-weight-semibold lu-text-center lu-text-uppercase lu-text-decoration-underline lu-mb-100", children: "Spacing Token" }), _jsxs("table", { className: "lu-width-100 lu-font-size-x-small lu-font-weight-medium", children: [_jsx("thead", { className: "lu-bg-primary-100", children: _jsxs("tr", { children: [_jsx("th", { className: "".concat(table_header_className), children: "Alias Token Name" }), _jsx("th", { className: "".concat(table_header_className), children: "Base unit Multiplier of 8" }), _jsx("th", { className: "".concat(table_header_className), children: "Value(PX)(REM)" })] }) }), _jsxs("tbody", { children: [_jsx(Margin, {}), _jsx(MarginLeft, {}), _jsx(MarginRight, {}), _jsx(MarginTop, {}), _jsx(MarginBottom, {}), _jsx(MarginX, {}), _jsx(MarginY, {})] })] })] }));
|
|
10
12
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const MarginX: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { table_data_className, table_row_className, table_sub_heading_className } from "../../../utils";
|
|
3
|
+
export var MarginX = function () {
|
|
4
|
+
return (_jsxs(_Fragment, { children: [_jsx("tr", { children: _jsx("td", { colSpan: 3, className: "".concat(table_sub_heading_className), children: "Margin X axis" }) }), _jsxs("tr", { children: [_jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "lu-mx-auto" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "auto" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "auto" }) })] }), _jsxs("tr", { children: [_jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "lu-mx-0" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "0x" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "0px = 0rem" }) })] }), _jsxs("tr", { children: [_jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "lu-mx-050" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "0.5x" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "4px = 0.25rem" }) })] }), _jsxs("tr", { children: [_jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "lu-mx-100" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "1x" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "8px = 0.5rem" }) })] }), _jsxs("tr", { children: [_jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "lu-mx-150" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "1.5x" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "12px = 0.75rem" }) })] }), _jsxs("tr", { children: [_jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "lu-mx-200" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "2x" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "16px = 1rem" }) })] }), _jsxs("tr", { children: [_jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "lu-mx-250" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "2.5x" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "20px = 1.25rem" }) })] }), _jsxs("tr", { children: [_jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "lu-mx-300" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "3x" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "24px = 1.5rem" }) })] }), _jsxs("tr", { children: [_jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "lu-mx-400" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "4x" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "32px = 2rem" }) })] }), _jsxs("tr", { children: [_jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "lu-mx-500" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "5x" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "40px = 2.5rem" }) })] }), _jsxs("tr", { children: [_jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "lu-mx-600" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "6x" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "48px = 3rem" }) })] }), _jsxs("tr", { children: [_jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "lu-mx-800" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "8x" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "64px = 4rem" }) })] }), _jsxs("tr", { children: [_jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "lu-mx-1000" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "10x" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "80px = 5rem" }) })] }), _jsxs("tr", { children: [_jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "lu-mx-1500" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "15x" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "120px = 7.5rem" }) })] }), _jsxs("tr", { children: [_jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "lu-mx-2000" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "20x" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "160px = 10rem" }) })] }), _jsxs("tr", { children: [_jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "lu-mx-2500" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "25x" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "200px = 12.5rem" }) })] }), _jsxs("tr", { children: [_jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "lu-mx-3000" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "30x" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "240px = 15rem" }) })] })] }));
|
|
5
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const MarginY: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { table_data_className, table_row_className, table_sub_heading_className } from "../../../utils";
|
|
3
|
+
export var MarginY = function () {
|
|
4
|
+
return (_jsxs(_Fragment, { children: [_jsx("tr", { children: _jsx("td", { colSpan: 3, className: "".concat(table_sub_heading_className), children: "Margin Y axis" }) }), _jsxs("tr", { children: [_jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "lu-my-auto" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "auto" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "auto" }) })] }), _jsxs("tr", { children: [_jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "lu-my-0" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "0x" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "0px = 0rem" }) })] }), _jsxs("tr", { children: [_jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "lu-my-050" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "0.5x" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "4px = 0.25rem" }) })] }), _jsxs("tr", { children: [_jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "lu-my-100" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "1x" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "8px = 0.5rem" }) })] }), _jsxs("tr", { children: [_jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "lu-my-150" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "1.5x" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "12px = 0.75rem" }) })] }), _jsxs("tr", { children: [_jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "lu-my-200" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "2x" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "16px = 1rem" }) })] }), _jsxs("tr", { children: [_jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "lu-my-250" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "2.5x" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "20px = 1.25rem" }) })] }), _jsxs("tr", { children: [_jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "lu-my-300" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "3x" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "24px = 1.5rem" }) })] }), _jsxs("tr", { children: [_jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "lu-my-400" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "4x" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "32px = 2rem" }) })] }), _jsxs("tr", { children: [_jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "lu-my-500" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "5x" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "40px = 2.5rem" }) })] }), _jsxs("tr", { children: [_jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "lu-my-600" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "6x" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "48px = 3rem" }) })] }), _jsxs("tr", { children: [_jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "lu-my-800" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "8x" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "64px = 4rem" }) })] }), _jsxs("tr", { children: [_jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "lu-my-1000" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "10x" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "80px = 5rem" }) })] }), _jsxs("tr", { children: [_jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "lu-my-1500" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "15x" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "120px = 7.5rem" }) })] }), _jsxs("tr", { children: [_jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "lu-my-2000" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "20x" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "160px = 10rem" }) })] }), _jsxs("tr", { children: [_jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "lu-my-2500" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "25x" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "200px = 12.5rem" }) })] }), _jsxs("tr", { children: [_jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "lu-my-3000" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "30x" }) }), _jsx("td", { className: "".concat(table_row_className), children: _jsx("span", { className: "".concat(table_data_className), children: "240px = 15rem" }) })] })] }));
|
|
5
|
+
};
|
|
@@ -5,6 +5,8 @@ import { PaddingLeft } from "./PaddingLeft";
|
|
|
5
5
|
import { PaddingRight } from "./PaddingRight";
|
|
6
6
|
import { PaddingTop } from "./PaddingTop";
|
|
7
7
|
import { PaddingBottom } from "./PaddingBottom";
|
|
8
|
+
import { PaddingX } from "./PaddingX";
|
|
9
|
+
import { PaddingY } from "./PaddingY";
|
|
8
10
|
export var PaddingToken = function () {
|
|
9
|
-
return (_jsxs(_Fragment, { children: [_jsx("div", { className: "lu-font-size-large lu-font-weight-semibold lu-text-center lu-text-uppercase lu-text-decoration-underline lu-mb-100", children: "Spacing Token" }), _jsxs("table", { className: "lu-width-100 lu-font-size-x-small lu-font-weight-medium", children: [_jsx("thead", { className: "bg-primary-100", children: _jsxs("tr", { children: [_jsx("th", { className: "".concat(table_header_className), children: "Alias Token Name" }), _jsx("th", { className: "".concat(table_header_className), children: "Base unit Multiplier of 8" }), _jsx("th", { className: "".concat(table_header_className), children: "Value(PX)(REM)" })] }) }), _jsxs("tbody", { children: [_jsx(Padding, {}), _jsx(PaddingLeft, {}), _jsx(PaddingRight, {}), _jsx(PaddingTop, {}), _jsx(PaddingBottom, {})] })] })] }));
|
|
11
|
+
return (_jsxs(_Fragment, { children: [_jsx("div", { className: "lu-font-size-large lu-font-weight-semibold lu-text-center lu-text-uppercase lu-text-decoration-underline lu-mb-100", children: "Spacing Token" }), _jsxs("table", { className: "lu-width-100 lu-font-size-x-small lu-font-weight-medium", children: [_jsx("thead", { className: "bg-primary-100", children: _jsxs("tr", { children: [_jsx("th", { className: "".concat(table_header_className), children: "Alias Token Name" }), _jsx("th", { className: "".concat(table_header_className), children: "Base unit Multiplier of 8" }), _jsx("th", { className: "".concat(table_header_className), children: "Value(PX)(REM)" })] }) }), _jsxs("tbody", { children: [_jsx(Padding, {}), _jsx(PaddingLeft, {}), _jsx(PaddingRight, {}), _jsx(PaddingTop, {}), _jsx(PaddingBottom, {}), _jsx(PaddingX, {}), _jsx(PaddingY, {})] })] })] }));
|
|
10
12
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const PaddingX: () => import("react/jsx-runtime").JSX.Element;
|