linkedunion-design-kit 0.1.3 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.next/types/app/page.d.ts +8 -0
- package/dist/.next/types/app/page.js +22 -0
- package/dist/app/layout.d.ts +1 -1
- package/dist/app/layout.jsx +1 -1
- package/dist/components/Border/BorderRadius/BorderRadius.d.ts +2 -0
- package/dist/components/Border/BorderRadius/BorderRadius.jsx +12 -0
- package/dist/components/Border/BorderRadius/BorderRadius.stories.d.ts +4 -0
- package/dist/components/Border/BorderRadius/BorderRadius.stories.jsx +17 -0
- package/dist/components/Border/BorderRadius/BorderRadiusTable.d.ts +1 -0
- package/dist/components/Border/BorderRadius/BorderRadiusTable.jsx +61 -0
- package/dist/components/Border/BorderRadius/BorderRadiusView.d.ts +2 -0
- package/dist/components/Border/BorderRadius/BorderRadiusView.jsx +8 -0
- package/dist/components/Border/BorderWidth/BorderWidth.d.ts +2 -0
- package/dist/components/Border/BorderWidth/BorderWidth.jsx +12 -0
- package/dist/components/Border/BorderWidth/BorderWidth.stories.d.ts +4 -0
- package/dist/components/Border/BorderWidth/BorderWidth.stories.jsx +17 -0
- package/dist/components/Border/BorderWidth/BorderWidthTable.d.ts +1 -0
- package/dist/components/Border/BorderWidth/BorderWidthTable.jsx +36 -0
- package/dist/components/Border/BorderWidth/ViewBorderWidth.d.ts +2 -0
- package/dist/components/Border/BorderWidth/ViewBorderWidth.jsx +8 -0
- package/dist/components/Button/Button.d.ts +2 -0
- package/dist/components/Button/Button.jsx +16 -0
- package/dist/components/Button/Button.stories.d.ts +4 -0
- package/dist/components/Button/Button.stories.jsx +109 -0
- package/dist/components/Icons/IconView.d.ts +1 -0
- package/dist/components/Icons/IconView.jsx +23 -0
- package/dist/components/Icons/IconView.stories.d.ts +4 -0
- package/dist/components/Icons/IconView.stories.jsx +8 -0
- package/dist/components/Icons/LUIcon.d.ts +2 -0
- package/dist/components/Icons/LUIcon.jsx +20 -0
- package/dist/components/Icons/LUIcon.stories.d.ts +4 -0
- package/dist/components/Icons/LUIcon.stories.jsx +29 -0
- package/dist/components/Images/LuImage.d.ts +2 -0
- package/dist/components/Images/LuImage.jsx +6 -0
- package/dist/components/Images/LuImage.stories.d.ts +4 -0
- package/dist/components/Images/LuImage.stories.jsx +37 -0
- package/dist/components/Size/MinWidthHeight.d.ts +2 -0
- package/dist/components/Size/MinWidthHeight.jsx +8 -0
- package/dist/components/Size/MinWidthHeight.stories.d.ts +5 -0
- package/dist/components/Size/MinWidthHeight.stories.jsx +22 -0
- package/dist/components/Size/WidthHeight.d.ts +2 -0
- package/dist/components/Size/{Resizable.jsx → WidthHeight.jsx} +3 -3
- package/dist/components/Size/WidthHeight.stories.d.ts +5 -0
- package/dist/components/Size/{Resizable.stories.jsx → WidthHeight.stories.jsx} +9 -9
- package/dist/components/Spacing/Margin/Margin.d.ts +1 -0
- package/dist/components/Spacing/Margin/Margin.jsx +86 -0
- package/dist/components/Spacing/Margin/MarginBottom.d.ts +1 -0
- package/dist/components/Spacing/Margin/MarginBottom.jsx +86 -0
- package/dist/components/Spacing/Margin/MarginLeft.d.ts +1 -0
- package/dist/components/Spacing/Margin/MarginLeft.jsx +86 -0
- package/dist/components/Spacing/Margin/MarginRight.d.ts +1 -0
- package/dist/components/Spacing/Margin/MarginRight.jsx +86 -0
- package/dist/components/Spacing/Margin/MarginToken.d.ts +1 -0
- package/dist/components/Spacing/Margin/MarginToken.jsx +27 -0
- package/dist/components/Spacing/Margin/MarginToken.stories.d.ts +4 -0
- package/dist/components/Spacing/Margin/MarginToken.stories.jsx +7 -0
- package/dist/components/Spacing/Margin/MarginTop.d.ts +1 -0
- package/dist/components/Spacing/Margin/MarginTop.jsx +87 -0
- package/dist/components/Spacing/Padding/Padding.d.ts +1 -0
- package/dist/components/Spacing/Padding/Padding.jsx +87 -0
- package/dist/components/Spacing/Padding/PaddingBottom.d.ts +1 -0
- package/dist/components/Spacing/Padding/PaddingBottom.jsx +86 -0
- package/dist/components/Spacing/Padding/PaddingLeft.d.ts +1 -0
- package/dist/components/Spacing/Padding/PaddingLeft.jsx +86 -0
- package/dist/components/Spacing/Padding/PaddingRight.d.ts +1 -0
- package/dist/components/Spacing/Padding/PaddingRight.jsx +87 -0
- package/dist/components/Spacing/Padding/PaddingToken.d.ts +1 -0
- package/dist/components/Spacing/Padding/PaddingToken.jsx +27 -0
- package/dist/components/Spacing/Padding/PaddingToken.stories.d.ts +4 -0
- package/dist/components/Spacing/Padding/PaddingToken.stories.jsx +7 -0
- package/dist/components/Spacing/Padding/PaddingTop.d.ts +1 -0
- package/dist/components/Spacing/Padding/PaddingTop.jsx +87 -0
- package/dist/global.css +2094 -5489
- package/dist/index.d.ts +4 -2
- package/dist/index.js +4 -2
- package/dist/tailwind.config.js +42 -10
- package/dist/utils/enum.d.ts +13 -0
- package/dist/utils/enum.js +13 -0
- package/dist/utils/iconList.d.ts +5 -0
- package/dist/utils/iconList.js +807 -0
- package/dist/utils/index.d.ts +1082 -45
- package/dist/utils/index.js +1127 -90
- package/package.json +5 -2
- package/dist/components/Size/Resizable.d.ts +0 -2
- package/dist/components/Size/Resizable.stories.d.ts +0 -5
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export { Color } from './components/Color/Color';
|
|
2
2
|
export { Typography } from './components/Typography/Typography';
|
|
3
3
|
export { Size } from './components/Size/Size';
|
|
4
|
-
export {
|
|
5
|
-
|
|
4
|
+
export { WidthHeight } from './components/Size/WidthHeight';
|
|
5
|
+
export { MinWidthHeight } from './components/Size/MinWidthHeight';
|
|
6
|
+
export { LUIcon } from './components/Icons/LUIcon';
|
|
7
|
+
import './styles/global.css';
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export { Color } from './components/Color/Color';
|
|
2
2
|
export { Typography } from './components/Typography/Typography';
|
|
3
3
|
export { Size } from './components/Size/Size';
|
|
4
|
-
export {
|
|
5
|
-
|
|
4
|
+
export { WidthHeight } from './components/Size/WidthHeight';
|
|
5
|
+
export { MinWidthHeight } from './components/Size/MinWidthHeight';
|
|
6
|
+
export { LUIcon } from './components/Icons/LUIcon';
|
|
7
|
+
import './styles/global.css';
|
package/dist/tailwind.config.js
CHANGED
|
@@ -7,16 +7,17 @@ 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 { colorGroups, customAspectRatio, customBorderRadius, customBorderWidth, customBoxShadow, customColors, customFontSize, customFontWeight, customHeight, customLineHeight, customLogoSize, customMinHeight, customMinWidth, customOpacity, customSize,
|
|
10
|
+
import { borderRadiusList, borderWidthList, buttonColorsList, buttonIconSizeList, buttonWithIconList, butttonSizeList, colorGroups, customAspectRatio, customBorderRadius, customBorderWidth, customBoxShadow, customButtonColors, customButtonIconSize, customButtonOutlineColors, customButtonSize, customColors, customFontSize, customFontWeight, customHeight, customIconButtonSize, customIconColors, customIconSize, customLineHeight, customLogoSize, customMinHeight, customMinWidth, customOpacity, customSize, customTextAlignment, customTextDecoration, customTextTransform, customTextWrap, customWidth, fontSizes, fontWeights, heights, iconColorList, iconSizeList, landscapeaspectRatioList, lineHeights, minHeights, minWidths, portraitaspectRatioList, sizes, textAlignment, textDecorations, textTransform, textWraps, widths } from './utils';
|
|
11
11
|
import generateUtilities from './utils';
|
|
12
12
|
var plugin = require('tailwindcss/plugin');
|
|
13
13
|
var config = {
|
|
14
|
+
mode: 'jit',
|
|
14
15
|
content: [
|
|
15
16
|
'./pages/**/*.{js,ts,jsx,tsx,mdx}',
|
|
16
17
|
'./components/**/*.{js,ts,jsx,tsx,mdx}',
|
|
17
18
|
'./app/**/*.{js,ts,jsx,tsx,mdx}',
|
|
18
19
|
],
|
|
19
|
-
safelist: __spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray([], colorGroups.primary.map(function (color) { return ({ pattern: new RegExp(color) }); }), true), colorGroups.gray.map(function (color) { return ({ pattern: new RegExp(color) }); }), true), colorGroups.success.map(function (color) { return ({ pattern: new RegExp(color) }); }), true), colorGroups.warning.map(function (color) { return ({ pattern: new RegExp(color) }); }), true), colorGroups.danger.map(function (color) { return ({ pattern: new RegExp(color) }); }), true), colorGroups.info.map(function (color) { return ({ pattern: new RegExp(color) }); }), true), fontSizes.map(function (fontSize) { return ({ pattern: new RegExp(fontSize.key) }); }), true), fontWeights.map(function (fontWeight) { return ({ pattern: new RegExp(fontWeight.key) }); }), true), lineHeights.map(function (lineHeight) { return ({ pattern: new RegExp(lineHeight.key) }); }), true), textAlignment.map(function (textAlign) { return ({ pattern: new RegExp(textAlign.key) }); }), true), textTransform.map(function (textTrans) { return ({ pattern: new RegExp(textTrans.key) }); }), 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),
|
|
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([], colorGroups.primary.map(function (color) { return ({ pattern: new RegExp(color) }); }), true), colorGroups.gray.map(function (color) { return ({ pattern: new RegExp(color) }); }), true), colorGroups.success.map(function (color) { return ({ pattern: new RegExp(color) }); }), true), colorGroups.warning.map(function (color) { return ({ pattern: new RegExp(color) }); }), true), colorGroups.danger.map(function (color) { return ({ pattern: new RegExp(color) }); }), true), colorGroups.info.map(function (color) { return ({ pattern: new RegExp(color) }); }), true), fontSizes.map(function (fontSize) { return ({ pattern: new RegExp(fontSize.key) }); }), true), fontWeights.map(function (fontWeight) { return ({ pattern: new RegExp(fontWeight.key) }); }), true), lineHeights.map(function (lineHeight) { return ({ pattern: new RegExp(lineHeight.key) }); }), true), textAlignment.map(function (textAlign) { return ({ pattern: new RegExp(textAlign.key) }); }), true), textTransform.map(function (textTrans) { return ({ pattern: new RegExp(textTrans.key) }); }), 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 ({ pattern: new RegExp(borderRadius.key) }); }), true), borderWidthList.map(function (borderWidth) { return ({ pattern: new RegExp(borderWidth.key) }); }), true), iconSizeList.map(function (iconSize) { return ({ pattern: new RegExp(iconSize.key) }); }), true), iconColorList.map(function (iconColor) { return ({ pattern: new RegExp(iconColor.key) }); }), true), buttonColorsList.map(function (btnColor) { return ({ pattern: new RegExp(btnColor.key) }); }), true), butttonSizeList.map(function (btnSize) { return ({ pattern: new RegExp(btnSize.key) }); }), true), buttonIconSizeList.map(function (btnIconSize) { return ({ pattern: new RegExp(btnIconSize.key) }); }), true), buttonWithIconList.map(function (iconButton) { return ({ pattern: new RegExp(iconButton.key) }); }), true), portraitaspectRatioList.map(function (aspectRatio) { return ({ pattern: new RegExp(aspectRatio.key) }); }), true), landscapeaspectRatioList.map(function (aspectRatio) { return ({ pattern: new RegExp(aspectRatio.key) }); }), true),
|
|
20
21
|
theme: {
|
|
21
22
|
extend: {
|
|
22
23
|
backgroundImage: {
|
|
@@ -37,12 +38,8 @@ var config = {
|
|
|
37
38
|
minWidth: customMinWidth,
|
|
38
39
|
minHeight: customMinHeight,
|
|
39
40
|
logoSize: customLogoSize,
|
|
40
|
-
spacing: customSpacing,
|
|
41
41
|
opacity: customOpacity,
|
|
42
|
-
|
|
43
|
-
borderRadius: customBorderRadius,
|
|
44
|
-
aspectRatio: customAspectRatio,
|
|
45
|
-
boxShadow: customBoxShadow
|
|
42
|
+
boxShadow: customBoxShadow,
|
|
46
43
|
},
|
|
47
44
|
},
|
|
48
45
|
plugins: [
|
|
@@ -97,9 +94,44 @@ var config = {
|
|
|
97
94
|
return acc;
|
|
98
95
|
}, {});
|
|
99
96
|
addUtilities(heightUtilities, ['responsive']);
|
|
100
|
-
//
|
|
101
|
-
var
|
|
102
|
-
|
|
97
|
+
//Min width Plugin
|
|
98
|
+
var minWidthUtilities = Object.entries(customMinWidth).reduce(function (acc, _a) {
|
|
99
|
+
var key = _a[0], value = _a[1];
|
|
100
|
+
acc[".".concat(key)] = {
|
|
101
|
+
minWidth: value,
|
|
102
|
+
};
|
|
103
|
+
return acc;
|
|
104
|
+
}, {});
|
|
105
|
+
addUtilities(minWidthUtilities, ['responsive']);
|
|
106
|
+
//Min height Plugin
|
|
107
|
+
var minHeightUtilities = Object.entries(customMinHeight).reduce(function (acc, _a) {
|
|
108
|
+
var key = _a[0], value = _a[1];
|
|
109
|
+
acc[".".concat(key)] = {
|
|
110
|
+
minHeight: value,
|
|
111
|
+
};
|
|
112
|
+
return acc;
|
|
113
|
+
}, {});
|
|
114
|
+
addUtilities(minHeightUtilities, ['responsive']);
|
|
115
|
+
// Add plugin border radius
|
|
116
|
+
addUtilities(customBorderRadius, ['responsive']);
|
|
117
|
+
// Add plugin border width
|
|
118
|
+
addUtilities(customBorderWidth, ['responsive']);
|
|
119
|
+
//plugin for icon size
|
|
120
|
+
addUtilities(customIconSize, ['responsive', 'hover']);
|
|
121
|
+
//plugin for icon colors
|
|
122
|
+
addUtilities(customIconColors, ['responsive']);
|
|
123
|
+
//plugin for custom button colors
|
|
124
|
+
addUtilities(customButtonColors, ['responsive']);
|
|
125
|
+
//plugin for custom button size
|
|
126
|
+
addUtilities(customButtonSize, ['responsive']);
|
|
127
|
+
//plugin for custom button icon size
|
|
128
|
+
addUtilities(customButtonIconSize, ['responsive']);
|
|
129
|
+
//plugin for custom button with icon
|
|
130
|
+
addUtilities(customIconButtonSize, ['responsive']);
|
|
131
|
+
//plugin for outline button color
|
|
132
|
+
addUtilities(customButtonOutlineColors, ['responsive']);
|
|
133
|
+
//plugin for aspect ratio
|
|
134
|
+
addUtilities(customAspectRatio, ['responsive']);
|
|
103
135
|
}),
|
|
104
136
|
],
|
|
105
137
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const contentTypeEnum: {
|
|
2
|
+
none: string;
|
|
3
|
+
text_with_icon: string;
|
|
4
|
+
icon_only: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const buttonTypeEnum: {
|
|
7
|
+
fill: string;
|
|
8
|
+
outline: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const orientationEnum: {
|
|
11
|
+
portrait: string;
|
|
12
|
+
landscape: string;
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export var contentTypeEnum = {
|
|
2
|
+
none: 'None',
|
|
3
|
+
text_with_icon: 'Text with Icon',
|
|
4
|
+
icon_only: 'Icon Only'
|
|
5
|
+
};
|
|
6
|
+
export var buttonTypeEnum = {
|
|
7
|
+
fill: 'Fill',
|
|
8
|
+
outline: 'Outline'
|
|
9
|
+
};
|
|
10
|
+
export var orientationEnum = {
|
|
11
|
+
portrait: 'Portrait',
|
|
12
|
+
landscape: 'Landscape'
|
|
13
|
+
};
|