linkedunion-design-kit 1.4.6 → 1.4.8
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/README.md +20 -8
- package/dist/app/layout.d.ts +2 -2
- package/dist/app/layout.js +5 -5
- package/dist/app/page.js +2 -2
- package/dist/app/scripts.js +1 -1
- package/dist/components/Avatar/Avatar.d.ts +1 -1
- package/dist/components/Avatar/Avatar.js +2 -5
- package/dist/components/Avatar/Avatar.stories.js +15 -6
- package/dist/components/Border/BorderRadius/BorderRadius.stories.js +8 -2
- package/dist/components/Border/BorderRadius/BorderRadiusTable.js +1 -1
- package/dist/components/Border/BorderRadius/BorderRadiusView.js +1 -1
- package/dist/components/Border/BorderWidth/BorderWidth.stories.js +8 -2
- package/dist/components/Border/BorderWidth/BorderWidthTable.js +1 -1
- package/dist/components/Border/BorderWidth/ViewBorderWidth.js +1 -1
- package/dist/components/Button/Button.d.ts +1 -1
- package/dist/components/Button/Button.js +8 -2
- package/dist/components/Button/Button.stories.js +56 -22
- package/dist/components/Color/BackgroundColor/Color.js +1 -1
- package/dist/components/Color/BackgroundColor/Color.stories.js +25 -13
- package/dist/components/Color/BackgroundColor/index.d.ts +7 -0
- package/dist/components/Color/BackgroundColor/index.js +15 -0
- package/dist/components/Color/TextColor.d.ts +1 -1
- package/dist/components/Color/TextColor.js +2 -2
- package/dist/components/Color/TextColor.stories.js +4 -1
- package/dist/components/Icons/IconView.stories.js +1 -1
- package/dist/components/Icons/LUIcon.js +1 -1
- package/dist/components/Icons/LUIcon.stories.js +16 -7
- package/dist/components/Images/LuImage.d.ts +1 -1
- package/dist/components/Images/LuImage.js +2 -2
- package/dist/components/Images/LuImage.stories.js +7 -9
- package/dist/components/MediaCard/Card.d.ts +1 -1
- package/dist/components/MediaCard/Card.js +30 -17
- package/dist/components/MediaCard/Card.stories.js +21 -9
- 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 +9 -0
- package/dist/components/MediaCard/ContactProfile/ContactProfileTheme2.d.ts +2 -0
- package/dist/components/MediaCard/ContactProfile/ContactProfileTheme2.js +9 -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 +9 -0
- package/dist/components/MediaCard/PostByCategory/PostByCategoryTheme2.d.ts +2 -0
- package/dist/components/MediaCard/PostByCategory/PostByCategoryTheme2.js +9 -0
- package/dist/components/MediaCard/card.module.css +52 -0
- package/dist/components/Size/MinWidthHeight.d.ts +1 -1
- package/dist/components/Size/MinWidthHeight.stories.js +11 -5
- package/dist/components/Size/Size.js +1 -1
- package/dist/components/Size/Size.stories.js +6 -8
- package/dist/components/Size/WidthHeight.stories.js +10 -4
- package/dist/components/Spacing/Margin/Margin.js +1 -1
- package/dist/components/Spacing/Margin/MarginBottom.js +1 -1
- package/dist/components/Spacing/Margin/MarginLeft.js +1 -1
- package/dist/components/Spacing/Margin/MarginRight.js +1 -1
- package/dist/components/Spacing/Margin/MarginToken.js +3 -1
- package/dist/components/Spacing/Margin/MarginTop.js +1 -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/Padding.js +1 -1
- package/dist/components/Spacing/Padding/PaddingBottom.js +1 -1
- package/dist/components/Spacing/Padding/PaddingLeft.js +1 -1
- package/dist/components/Spacing/Padding/PaddingRight.js +1 -1
- package/dist/components/Spacing/Padding/PaddingToken.js +3 -1
- package/dist/components/Spacing/Padding/PaddingTop.js +1 -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/Title/Title.d.ts +6 -0
- package/dist/components/Title/Title.js +7 -0
- package/dist/components/Title/Title.module.css +56 -0
- package/dist/components/Title/Title.stories.d.ts +5 -0
- package/dist/components/Title/Title.stories.js +49 -0
- package/dist/components/Title/Title.test.d.ts +1 -0
- package/dist/components/Title/Title.test.js +24 -0
- package/dist/components/Typography/Body/Body.d.ts +2 -0
- package/dist/components/{MediaCard/Card.jsx → Typography/Body/Body.js} +6 -10
- 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 +72 -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 +39 -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/components/Typography/Typography.css +3002 -0
- package/dist/components/Typography/Typography.d.ts +1 -1
- package/dist/components/Typography/Typography.js +1 -1
- package/dist/components/Typography/Typography.stories.js +36 -15
- 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 +1151 -8030
- package/dist/tailwind.config.d.ts +1 -1
- package/dist/tailwind.config.js +85 -46
- package/dist/utils/colors.d.ts +7 -0
- package/dist/utils/colors.js +7 -0
- package/dist/utils/constants.d.ts +2 -0
- package/dist/utils/constants.js +2 -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/iconList.js +479 -479
- package/dist/utils/index.d.ts +379 -472
- package/dist/utils/index.js +1383 -1527
- package/package.json +5 -2
- package/dist/app/layout.jsx +0 -13
- package/dist/app/page.jsx +0 -71
- package/dist/components/Avatar/Avatar.jsx +0 -15
- package/dist/components/Avatar/Avatar.stories.jsx +0 -25
- package/dist/components/Border/BorderRadius/BorderRadius.jsx +0 -12
- package/dist/components/Border/BorderRadius/BorderRadius.stories.jsx +0 -17
- package/dist/components/Border/BorderRadius/BorderRadiusTable.jsx +0 -61
- package/dist/components/Border/BorderRadius/BorderRadiusView.jsx +0 -8
- package/dist/components/Border/BorderWidth/BorderWidth.jsx +0 -12
- package/dist/components/Border/BorderWidth/BorderWidth.stories.jsx +0 -17
- package/dist/components/Border/BorderWidth/BorderWidthTable.jsx +0 -36
- package/dist/components/Border/BorderWidth/ViewBorderWidth.jsx +0 -8
- package/dist/components/Button/Button.jsx +0 -16
- package/dist/components/Button/Button.stories.jsx +0 -110
- package/dist/components/Color/BackgroundColor/Color.jsx +0 -16
- package/dist/components/Color/BackgroundColor/Color.stories.jsx +0 -76
- package/dist/components/Color/Color.d.ts +0 -2
- package/dist/components/Color/Color.js +0 -5
- package/dist/components/Color/Color.stories.d.ts +0 -10
- package/dist/components/Color/Color.stories.js +0 -88
- package/dist/components/Color/TextColor.jsx +0 -6
- package/dist/components/Color/TextColor.stories.jsx +0 -17
- package/dist/components/Icons/IconView.jsx +0 -23
- package/dist/components/Icons/IconView.stories.jsx +0 -8
- package/dist/components/Icons/LUIcon.jsx +0 -20
- package/dist/components/Icons/LUIcon.stories.jsx +0 -29
- package/dist/components/Images/LuImage.jsx +0 -7
- package/dist/components/Images/LuImage.stories.jsx +0 -39
- package/dist/components/MediaCard/Card.stories.jsx +0 -35
- package/dist/components/MediaCard/ContactProfile.js +0 -10
- package/dist/components/MediaCard/ContactProfile.jsx +0 -39
- package/dist/components/MediaCard/PostByCategory.js +0 -11
- package/dist/components/MediaCard/PostByCategory.jsx +0 -46
- package/dist/components/Navigation/TopNavigation/TopNavigation.d.ts +0 -2
- package/dist/components/Navigation/TopNavigation/TopNavigation.js +0 -8
- package/dist/components/Navigation/TopNavigation/TopNavigation.jsx +0 -45
- package/dist/components/Navigation/TopNavigation/TopNavigation.stories.d.ts +0 -4
- package/dist/components/Navigation/TopNavigation/TopNavigation.stories.js +0 -52
- package/dist/components/Navigation/TopNavigation/TopNavigation.stories.jsx +0 -40
- package/dist/components/Size/MinWidthHeight.jsx +0 -8
- package/dist/components/Size/MinWidthHeight.stories.jsx +0 -22
- package/dist/components/Size/Size.jsx +0 -6
- package/dist/components/Size/Size.stories.jsx +0 -22
- package/dist/components/Size/WidthHeight.jsx +0 -8
- package/dist/components/Size/WidthHeight.stories.jsx +0 -22
- package/dist/components/Spacing/Margin/Margin.jsx +0 -86
- package/dist/components/Spacing/Margin/MarginBottom.jsx +0 -86
- package/dist/components/Spacing/Margin/MarginLeft.jsx +0 -86
- package/dist/components/Spacing/Margin/MarginRight.jsx +0 -86
- package/dist/components/Spacing/Margin/MarginToken.jsx +0 -27
- package/dist/components/Spacing/Margin/MarginToken.stories.jsx +0 -7
- package/dist/components/Spacing/Margin/MarginTop.jsx +0 -87
- package/dist/components/Spacing/Padding/Padding.jsx +0 -87
- package/dist/components/Spacing/Padding/PaddingBottom.jsx +0 -86
- package/dist/components/Spacing/Padding/PaddingLeft.jsx +0 -86
- package/dist/components/Spacing/Padding/PaddingRight.jsx +0 -87
- package/dist/components/Spacing/Padding/PaddingToken.jsx +0 -27
- package/dist/components/Spacing/Padding/PaddingToken.stories.jsx +0 -7
- package/dist/components/Spacing/Padding/PaddingTop.jsx +0 -87
- package/dist/components/Typography/Headings/Headings.jsx +0 -6
- package/dist/components/Typography/Headings/Headings.stories.jsx +0 -19
- package/dist/components/Typography/Typography.jsx +0 -8
- package/dist/components/Typography/Typography.stories.jsx +0 -51
- /package/dist/components/MediaCard/{ContactProfile.d.ts → ContactProfile/ContactProfile.d.ts} +0 -0
- /package/dist/components/MediaCard/{PostByCategory.d.ts → PostByCategory/PostByCategory.d.ts} +0 -0
package/dist/tailwind.config.js
CHANGED
|
@@ -7,24 +7,59 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
7
7
|
}
|
|
8
8
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
9
9
|
};
|
|
10
|
-
import { avatarShapeList, avatarSizesList, borderRadiusList, borderWidthList, buttonColorsList, buttonIconSizeList, buttonWithIconList, butttonSizeList,
|
|
11
|
-
import generateUtilities from
|
|
12
|
-
|
|
10
|
+
import { avatarShapeList, avatarSizesList, borderRadiusList, borderWidthList, buttonColorsList, buttonIconSizeList, buttonWithIconList, butttonSizeList, customAspectRatio, customAvatarSize, customBorderRadius, customBorderWidth, customBoxShadow, customButtonColors, customButtonIconSize, customButtonOutlineColors, customButtonSize, customFontSize, customFontWeight, customHeadings, customHeight, customIconButtonSize, customIconColors, customIconSize, customizeAvtarShape, customizeTextColors, customLineHeight, customLogoSize, customMinHeight, customMinWidth, customOpacity, customSize, customTextAlignment, customTextDecoration, customTextTransform, customTextWrap, customWidth, fontSizes, fontWeights, headingsList, heights, iconColorList, iconSizeList, landscapeaspectRatioList, lineHeights, minHeights, minWidths, portraitaspectRatioList, sizes, textAlignment, textColorList, textDecorations, textTransform, textWraps, widths, } from "./utils";
|
|
11
|
+
import generateUtilities from "./utils";
|
|
12
|
+
import { customDisplay, Display_Classes, } from "./components/Typography/Display";
|
|
13
|
+
import { colorNames, customBackgroundColor, shades, } from "./components/Color/BackgroundColor";
|
|
14
|
+
var plugin = require("tailwindcss/plugin");
|
|
13
15
|
var config = {
|
|
14
|
-
mode:
|
|
16
|
+
mode: "jit",
|
|
15
17
|
content: [
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
18
|
+
"./pages/**/*.{js,ts,jsx,tsx,mdx}",
|
|
19
|
+
"./components/**/*.{js,ts,jsx,tsx,mdx}",
|
|
20
|
+
"./app/**/*.{js,ts,jsx,tsx,mdx}",
|
|
19
21
|
],
|
|
20
|
-
safelist: __spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(
|
|
22
|
+
safelist: __spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray([], colorNames.flatMap(function (color) {
|
|
23
|
+
return shades.map(function (shade) { return "lu-bg-".concat(color, "-").concat(shade); });
|
|
24
|
+
}), true), fontSizes.map(function (fontSize) { return ({ pattern: new RegExp(fontSize.key) }); }), true), fontWeights.map(function (fontWeight) { return ({
|
|
25
|
+
pattern: new RegExp(fontWeight.key),
|
|
26
|
+
}); }), true), lineHeights.map(function (lineHeight) { return ({
|
|
27
|
+
pattern: new RegExp(lineHeight.key),
|
|
28
|
+
}); }), true), textAlignment.map(function (textAlign) { return ({
|
|
29
|
+
pattern: new RegExp(textAlign.key),
|
|
30
|
+
}); }), true), textTransform.map(function (textTrans) { return ({
|
|
31
|
+
pattern: new RegExp(textTrans.key),
|
|
32
|
+
}); }), true), textDecorations.map(function (textDec) { return ({ pattern: new RegExp(textDec.key) }); }), true), textWraps.map(function (textWrap) { return ({ pattern: new RegExp(textWrap.key) }); }), true), sizes.map(function (size) { return ({ pattern: new RegExp(size.key) }); }), true), widths.map(function (width) { return ({ pattern: new RegExp(width.key) }); }), true), heights.map(function (height) { return ({ pattern: new RegExp(height.key) }); }), true), minWidths.map(function (minWidth) { return ({ pattern: new RegExp(minWidth.key) }); }), true), minHeights.map(function (minHeight) { return ({ pattern: new RegExp(minHeight.key) }); }), true), borderRadiusList.map(function (borderRadius) { return ({
|
|
33
|
+
pattern: new RegExp(borderRadius.key),
|
|
34
|
+
}); }), true), borderWidthList.map(function (borderWidth) { return ({
|
|
35
|
+
pattern: new RegExp(borderWidth.key),
|
|
36
|
+
}); }), true), iconSizeList.map(function (iconSize) { return ({ pattern: new RegExp(iconSize.key) }); }), true), iconColorList.map(function (iconColor) { return ({
|
|
37
|
+
pattern: new RegExp(iconColor.key),
|
|
38
|
+
}); }), true), buttonColorsList.map(function (btnColor) { return ({
|
|
39
|
+
pattern: new RegExp(btnColor.key),
|
|
40
|
+
}); }), true), butttonSizeList.map(function (btnSize) { return ({ pattern: new RegExp(btnSize.key) }); }), true), buttonIconSizeList.map(function (btnIconSize) { return ({
|
|
41
|
+
pattern: new RegExp(btnIconSize.key),
|
|
42
|
+
}); }), true), buttonWithIconList.map(function (iconButton) { return ({
|
|
43
|
+
pattern: new RegExp(iconButton.key),
|
|
44
|
+
}); }), true), portraitaspectRatioList.map(function (aspectRatio) { return ({
|
|
45
|
+
pattern: new RegExp(aspectRatio.key),
|
|
46
|
+
}); }), true), landscapeaspectRatioList.map(function (aspectRatio) { return ({
|
|
47
|
+
pattern: new RegExp(aspectRatio.key),
|
|
48
|
+
}); }), true), avatarSizesList.map(function (avatarSize) { return ({
|
|
49
|
+
pattern: new RegExp(avatarSize.key),
|
|
50
|
+
}); }), true), avatarShapeList.map(function (avatarShape) { return ({
|
|
51
|
+
pattern: new RegExp(avatarShape.key),
|
|
52
|
+
}); }), true), textColorList.map(function (textColor) { return ({
|
|
53
|
+
pattern: new RegExp(textColor.key),
|
|
54
|
+
}); }), true), headingsList.map(function (heading) { return ({ pattern: new RegExp(heading.key) }); }), true), Object.keys(Display_Classes).map(function (display) { return ({
|
|
55
|
+
pattern: new RegExp(display),
|
|
56
|
+
}); }), true),
|
|
21
57
|
theme: {
|
|
22
58
|
extend: {
|
|
23
59
|
backgroundImage: {
|
|
24
|
-
|
|
25
|
-
|
|
60
|
+
"gradient-radial": "radial-gradient(var(--tw-gradient-stops))",
|
|
61
|
+
"gradient-conic": "conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))",
|
|
26
62
|
},
|
|
27
|
-
colors: customColors,
|
|
28
63
|
fontSize: customFontSize,
|
|
29
64
|
fontWeight: customFontWeight,
|
|
30
65
|
lineHeight: customLineHeight,
|
|
@@ -46,26 +81,26 @@ var config = {
|
|
|
46
81
|
plugin(function (_a) {
|
|
47
82
|
var addUtilities = _a.addUtilities, theme = _a.theme;
|
|
48
83
|
//Font Size plugin
|
|
49
|
-
var fontSizeUtilities = generateUtilities(
|
|
50
|
-
addUtilities(fontSizeUtilities, [
|
|
84
|
+
var fontSizeUtilities = generateUtilities("fontSize", theme);
|
|
85
|
+
addUtilities(fontSizeUtilities, ["responsive"]);
|
|
51
86
|
//Font Weight plugin
|
|
52
|
-
var fontWeightUtilities = generateUtilities(
|
|
53
|
-
addUtilities(fontWeightUtilities, [
|
|
87
|
+
var fontWeightUtilities = generateUtilities("fontWeight", theme);
|
|
88
|
+
addUtilities(fontWeightUtilities, ["responsive"]);
|
|
54
89
|
//Line Height plugin
|
|
55
|
-
var lineHeightUtilities = generateUtilities(
|
|
56
|
-
addUtilities(lineHeightUtilities, [
|
|
90
|
+
var lineHeightUtilities = generateUtilities("lineHeight", theme);
|
|
91
|
+
addUtilities(lineHeightUtilities, ["responsive"]);
|
|
57
92
|
//Text Alignment plugin
|
|
58
|
-
var textAlignmentUtilities = generateUtilities(
|
|
59
|
-
addUtilities(textAlignmentUtilities, [
|
|
93
|
+
var textAlignmentUtilities = generateUtilities("textAlign", theme);
|
|
94
|
+
addUtilities(textAlignmentUtilities, ["responsive"]);
|
|
60
95
|
//Text Transform plugin
|
|
61
|
-
var textTransformUtilities = generateUtilities(
|
|
62
|
-
addUtilities(textTransformUtilities, [
|
|
96
|
+
var textTransformUtilities = generateUtilities("textTransform", theme);
|
|
97
|
+
addUtilities(textTransformUtilities, ["responsive"]);
|
|
63
98
|
//Text Decoration plugin
|
|
64
|
-
var textDecorationUtilities = generateUtilities(
|
|
65
|
-
addUtilities(textDecorationUtilities, [
|
|
99
|
+
var textDecorationUtilities = generateUtilities("textDecoration", theme);
|
|
100
|
+
addUtilities(textDecorationUtilities, ["responsive"]);
|
|
66
101
|
//Text Wrap plugin
|
|
67
|
-
var textWrapUtilities = generateUtilities(
|
|
68
|
-
addUtilities(textWrapUtilities, [
|
|
102
|
+
var textWrapUtilities = generateUtilities("textWrap", theme);
|
|
103
|
+
addUtilities(textWrapUtilities, ["responsive"]);
|
|
69
104
|
//Size plugin
|
|
70
105
|
var sizeUtilities = Object.entries(customSize).reduce(function (acc, _a) {
|
|
71
106
|
var key = _a[0], value = _a[1];
|
|
@@ -75,7 +110,7 @@ var config = {
|
|
|
75
110
|
};
|
|
76
111
|
return acc;
|
|
77
112
|
}, {});
|
|
78
|
-
addUtilities(sizeUtilities, [
|
|
113
|
+
addUtilities(sizeUtilities, ["responsive"]);
|
|
79
114
|
//width plugin
|
|
80
115
|
var widthUtilities = Object.entries(customWidth).reduce(function (acc, _a) {
|
|
81
116
|
var key = _a[0], value = _a[1];
|
|
@@ -84,7 +119,7 @@ var config = {
|
|
|
84
119
|
};
|
|
85
120
|
return acc;
|
|
86
121
|
}, {});
|
|
87
|
-
addUtilities(widthUtilities, [
|
|
122
|
+
addUtilities(widthUtilities, ["responsive"]);
|
|
88
123
|
//height plugin
|
|
89
124
|
var heightUtilities = Object.entries(customHeight).reduce(function (acc, _a) {
|
|
90
125
|
var key = _a[0], value = _a[1];
|
|
@@ -93,7 +128,7 @@ var config = {
|
|
|
93
128
|
};
|
|
94
129
|
return acc;
|
|
95
130
|
}, {});
|
|
96
|
-
addUtilities(heightUtilities, [
|
|
131
|
+
addUtilities(heightUtilities, ["responsive"]);
|
|
97
132
|
//Min width Plugin
|
|
98
133
|
var minWidthUtilities = Object.entries(customMinWidth).reduce(function (acc, _a) {
|
|
99
134
|
var key = _a[0], value = _a[1];
|
|
@@ -102,7 +137,7 @@ var config = {
|
|
|
102
137
|
};
|
|
103
138
|
return acc;
|
|
104
139
|
}, {});
|
|
105
|
-
addUtilities(minWidthUtilities, [
|
|
140
|
+
addUtilities(minWidthUtilities, ["responsive"]);
|
|
106
141
|
//Min height Plugin
|
|
107
142
|
var minHeightUtilities = Object.entries(customMinHeight).reduce(function (acc, _a) {
|
|
108
143
|
var key = _a[0], value = _a[1];
|
|
@@ -111,38 +146,42 @@ var config = {
|
|
|
111
146
|
};
|
|
112
147
|
return acc;
|
|
113
148
|
}, {});
|
|
114
|
-
addUtilities(minHeightUtilities, [
|
|
149
|
+
addUtilities(minHeightUtilities, ["responsive"]);
|
|
115
150
|
// Add plugin border radius
|
|
116
|
-
addUtilities(customBorderRadius, [
|
|
151
|
+
addUtilities(customBorderRadius, ["responsive"]);
|
|
117
152
|
// Add plugin border width
|
|
118
|
-
addUtilities(customBorderWidth, [
|
|
153
|
+
addUtilities(customBorderWidth, ["responsive"]);
|
|
119
154
|
//plugin for icon size
|
|
120
|
-
addUtilities(customIconSize, [
|
|
155
|
+
addUtilities(customIconSize, ["responsive", "hover"]);
|
|
121
156
|
//plugin for icon colors
|
|
122
|
-
addUtilities(customIconColors, [
|
|
157
|
+
addUtilities(customIconColors, ["responsive"]);
|
|
123
158
|
//plugin for custom button colors
|
|
124
|
-
addUtilities(customButtonColors, [
|
|
159
|
+
addUtilities(customButtonColors, ["responsive"]);
|
|
125
160
|
//plugin for custom button size
|
|
126
|
-
addUtilities(customButtonSize, [
|
|
161
|
+
addUtilities(customButtonSize, ["responsive"]);
|
|
127
162
|
//plugin for custom button icon size
|
|
128
|
-
addUtilities(customButtonIconSize, [
|
|
163
|
+
addUtilities(customButtonIconSize, ["responsive"]);
|
|
129
164
|
//plugin for custom button with icon
|
|
130
|
-
addUtilities(customIconButtonSize, [
|
|
165
|
+
addUtilities(customIconButtonSize, ["responsive"]);
|
|
131
166
|
//plugin for outline button color
|
|
132
|
-
addUtilities(customButtonOutlineColors, [
|
|
167
|
+
addUtilities(customButtonOutlineColors, ["responsive"]);
|
|
133
168
|
//plugin for aspect ratio
|
|
134
|
-
addUtilities(customAspectRatio, [
|
|
169
|
+
addUtilities(customAspectRatio, ["responsive"]);
|
|
135
170
|
//Plugin for avatar size
|
|
136
|
-
addUtilities(customAvatarSize, [
|
|
171
|
+
addUtilities(customAvatarSize, ["responsive"]);
|
|
137
172
|
//plugin for avatar shape
|
|
138
|
-
addUtilities(customizeAvtarShape, [
|
|
173
|
+
addUtilities(customizeAvtarShape, ["responsive"]);
|
|
139
174
|
//plugin for box shadow
|
|
140
|
-
var boxShadowUtilities = generateUtilities(
|
|
141
|
-
addUtilities(boxShadowUtilities, [
|
|
175
|
+
var boxShadowUtilities = generateUtilities("boxShadow", theme);
|
|
176
|
+
addUtilities(boxShadowUtilities, ["responsive"]);
|
|
142
177
|
//plugin for custom text colors
|
|
143
|
-
addUtilities(customizeTextColors, [
|
|
178
|
+
addUtilities(customizeTextColors, ["responsive"]);
|
|
144
179
|
//plugin for custom headings
|
|
145
|
-
addUtilities(customHeadings, [
|
|
180
|
+
addUtilities(customHeadings, ["responsive"]);
|
|
181
|
+
//plugin for custom Display
|
|
182
|
+
addUtilities(customDisplay, ["responsive"]);
|
|
183
|
+
//plugin for custom background colors
|
|
184
|
+
addUtilities(customBackgroundColor, ["responsive"]);
|
|
146
185
|
}),
|
|
147
186
|
],
|
|
148
187
|
};
|
package/dist/utils/enum.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
export var contentTypeEnum = {
|
|
2
|
-
none:
|
|
3
|
-
text_with_icon:
|
|
4
|
-
icon_only:
|
|
2
|
+
none: "None",
|
|
3
|
+
text_with_icon: "Text with Icon",
|
|
4
|
+
icon_only: "Icon Only",
|
|
5
5
|
};
|
|
6
6
|
export var buttonTypeEnum = {
|
|
7
|
-
fill:
|
|
8
|
-
outline:
|
|
7
|
+
fill: "Fill",
|
|
8
|
+
outline: "Outline",
|
|
9
9
|
};
|
|
10
10
|
export var orientationEnum = {
|
|
11
|
-
portrait:
|
|
12
|
-
landscape:
|
|
11
|
+
portrait: "Portrait",
|
|
12
|
+
landscape: "Landscape",
|
|
13
13
|
};
|
|
14
14
|
export var cardLayoutEnum = {
|
|
15
|
-
horizontal:
|
|
16
|
-
vertical:
|
|
15
|
+
horizontal: "Horizontal",
|
|
16
|
+
vertical: "Vertical",
|
|
17
17
|
};
|
|
18
18
|
export var sectionType = {
|
|
19
19
|
multiplePostsTheme: "Multiple Posts",
|
|
20
|
-
singlePostTheme:
|
|
21
|
-
postByCategoriesTheme:
|
|
22
|
-
contactsProfileTheme:
|
|
23
|
-
galleryTheme:
|
|
24
|
-
albumTheme:
|
|
20
|
+
singlePostTheme: "Single Post",
|
|
21
|
+
postByCategoriesTheme: "Post By Categories",
|
|
22
|
+
contactsProfileTheme: "Contacts Profile",
|
|
23
|
+
galleryTheme: "Gallery",
|
|
24
|
+
albumTheme: "Album",
|
|
25
25
|
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export declare enum FontSize {
|
|
2
|
+
Base = "lu-base-font-size",
|
|
3
|
+
XSmall = "lu-font-size-x-small",
|
|
4
|
+
Small = "lu-font-size-small",
|
|
5
|
+
Medium = "lu-font-size-medium",
|
|
6
|
+
Large = "lu-font-size-large",
|
|
7
|
+
XLarge = "lu-font-size-x-large",
|
|
8
|
+
TwoXLarge = "lu-font-size-2x-large",
|
|
9
|
+
ThreeXLarge = "lu-font-size-3x-large",
|
|
10
|
+
FourXLarge = "lu-font-size-4x-large",
|
|
11
|
+
FiveXLarge = "lu-font-size-5x-large",
|
|
12
|
+
SixXLarge = "lu-font-size-6x-large",
|
|
13
|
+
SevenXLarge = "lu-font-size-7x-large",
|
|
14
|
+
Huge = "lu-font-size-huge"
|
|
15
|
+
}
|
|
16
|
+
export declare enum FontFamily {
|
|
17
|
+
Base = "lu-font-family-poppins"
|
|
18
|
+
}
|
|
19
|
+
export declare enum FontWeight {
|
|
20
|
+
Thin = "lu-font-weight-thin",
|
|
21
|
+
ExtraLight = "lu-font-weight-extra-light",
|
|
22
|
+
Light = "lu-font-weight-light",
|
|
23
|
+
Regular = "lu-font-weight-regular",
|
|
24
|
+
Medium = "lu-font-weight-medium",
|
|
25
|
+
SemiBold = "lu-font-weight-semibold",
|
|
26
|
+
Bold = "lu-font-weight-bold",
|
|
27
|
+
ExtraBold = "lu-font-weight-extra-bold",
|
|
28
|
+
Black = "lu-font-weight-black"
|
|
29
|
+
}
|
|
30
|
+
export declare enum LineHeights {
|
|
31
|
+
XS = "lu-line-height-xs",
|
|
32
|
+
SM = "lu-line-height-sm",
|
|
33
|
+
BASE = "lu-line-height-base",
|
|
34
|
+
LG = "lu-line-height-lg"
|
|
35
|
+
}
|
|
36
|
+
export declare enum TextColor {
|
|
37
|
+
Base = "lu-text-base",
|
|
38
|
+
Default = "lu-text-default",
|
|
39
|
+
Secondary = "lu-text-secondary",
|
|
40
|
+
Caption = "lu-text-caption",
|
|
41
|
+
Placeholder = "lu-text-placeholder",
|
|
42
|
+
Disabled = "lu-text-disabled",
|
|
43
|
+
Primary = "lu-text-primary",
|
|
44
|
+
Success = "lu-text-success",
|
|
45
|
+
Warning = "lu-text-warning",
|
|
46
|
+
Danger = "lu-text-danger",
|
|
47
|
+
Gray = "lu-text-gray",
|
|
48
|
+
Info = "lu-text-info",
|
|
49
|
+
LinkDefault = "lu-text-link-default",
|
|
50
|
+
LinkPressed = "lu-text-link-pressed"
|
|
51
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
export var FontSize;
|
|
2
|
+
(function (FontSize) {
|
|
3
|
+
FontSize["Base"] = "lu-base-font-size";
|
|
4
|
+
FontSize["XSmall"] = "lu-font-size-x-small";
|
|
5
|
+
FontSize["Small"] = "lu-font-size-small";
|
|
6
|
+
FontSize["Medium"] = "lu-font-size-medium";
|
|
7
|
+
FontSize["Large"] = "lu-font-size-large";
|
|
8
|
+
FontSize["XLarge"] = "lu-font-size-x-large";
|
|
9
|
+
FontSize["TwoXLarge"] = "lu-font-size-2x-large";
|
|
10
|
+
FontSize["ThreeXLarge"] = "lu-font-size-3x-large";
|
|
11
|
+
FontSize["FourXLarge"] = "lu-font-size-4x-large";
|
|
12
|
+
FontSize["FiveXLarge"] = "lu-font-size-5x-large";
|
|
13
|
+
FontSize["SixXLarge"] = "lu-font-size-6x-large";
|
|
14
|
+
FontSize["SevenXLarge"] = "lu-font-size-7x-large";
|
|
15
|
+
FontSize["Huge"] = "lu-font-size-huge";
|
|
16
|
+
})(FontSize || (FontSize = {}));
|
|
17
|
+
export var FontFamily;
|
|
18
|
+
(function (FontFamily) {
|
|
19
|
+
FontFamily["Base"] = "lu-font-family-poppins";
|
|
20
|
+
})(FontFamily || (FontFamily = {}));
|
|
21
|
+
export var FontWeight;
|
|
22
|
+
(function (FontWeight) {
|
|
23
|
+
FontWeight["Thin"] = "lu-font-weight-thin";
|
|
24
|
+
FontWeight["ExtraLight"] = "lu-font-weight-extra-light";
|
|
25
|
+
FontWeight["Light"] = "lu-font-weight-light";
|
|
26
|
+
FontWeight["Regular"] = "lu-font-weight-regular";
|
|
27
|
+
FontWeight["Medium"] = "lu-font-weight-medium";
|
|
28
|
+
FontWeight["SemiBold"] = "lu-font-weight-semibold";
|
|
29
|
+
FontWeight["Bold"] = "lu-font-weight-bold";
|
|
30
|
+
FontWeight["ExtraBold"] = "lu-font-weight-extra-bold";
|
|
31
|
+
FontWeight["Black"] = "lu-font-weight-black";
|
|
32
|
+
})(FontWeight || (FontWeight = {}));
|
|
33
|
+
export var LineHeights;
|
|
34
|
+
(function (LineHeights) {
|
|
35
|
+
LineHeights["XS"] = "lu-line-height-xs";
|
|
36
|
+
LineHeights["SM"] = "lu-line-height-sm";
|
|
37
|
+
LineHeights["BASE"] = "lu-line-height-base";
|
|
38
|
+
LineHeights["LG"] = "lu-line-height-lg";
|
|
39
|
+
})(LineHeights || (LineHeights = {}));
|
|
40
|
+
export var TextColor;
|
|
41
|
+
(function (TextColor) {
|
|
42
|
+
TextColor["Base"] = "lu-text-base";
|
|
43
|
+
TextColor["Default"] = "lu-text-default";
|
|
44
|
+
TextColor["Secondary"] = "lu-text-secondary";
|
|
45
|
+
TextColor["Caption"] = "lu-text-caption";
|
|
46
|
+
TextColor["Placeholder"] = "lu-text-placeholder";
|
|
47
|
+
TextColor["Disabled"] = "lu-text-disabled";
|
|
48
|
+
TextColor["Primary"] = "lu-text-primary";
|
|
49
|
+
TextColor["Success"] = "lu-text-success";
|
|
50
|
+
TextColor["Warning"] = "lu-text-warning";
|
|
51
|
+
TextColor["Danger"] = "lu-text-danger";
|
|
52
|
+
TextColor["Gray"] = "lu-text-gray";
|
|
53
|
+
TextColor["Info"] = "lu-text-info";
|
|
54
|
+
TextColor["LinkDefault"] = "lu-text-link-default";
|
|
55
|
+
TextColor["LinkPressed"] = "lu-text-link-pressed";
|
|
56
|
+
})(TextColor || (TextColor = {}));
|