linkedunion-design-kit 1.1.0 → 1.1.2

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.
@@ -0,0 +1,2 @@
1
+ import { AvatarProps } from "@/types/interface";
2
+ export declare const Avatar: ({ image, icon, shape, size, className }: AvatarProps) => import("react/jsx-runtime").JSX.Element;
@@ -1 +1,12 @@
1
- "use strict";
1
+ import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { LUIcon } from "../Icons/LUIcon";
3
+ import { iconList } from "../../utils/iconList";
4
+ import { avtarBackgroundSize } from "../../utils";
5
+ export var Avatar = function (_a) {
6
+ var image = _a.image, _b = _a.icon, icon = _b === void 0 ? 'user' : _b, shape = _a.shape, size = _a.size, className = _a.className;
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), children: image ?
9
+ _jsx("img", { src: image, alt: "image", className: "w-full h-full object-cover" })
10
+ :
11
+ _jsx(LUIcon, { size: size, icon: defaultIcon === null || defaultIcon === void 0 ? void 0 : defaultIcon.key, fill: "lu-neutral-icon-dark", className: "" }) }) }));
12
+ };
@@ -0,0 +1,4 @@
1
+ import { Meta } from "@storybook/react";
2
+ declare const _default: Meta;
3
+ export default _default;
4
+ export declare const avatar: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("@storybook/csf").Args>;
@@ -0,0 +1,37 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ import { Avatar } from "./Avatar";
14
+ import { avatarShapeList, avatarSizesList } from "../../utils";
15
+ export default {
16
+ title: "Components/Avatar",
17
+ component: Avatar,
18
+ };
19
+ var Template = function (args) { return _jsx(Avatar, __assign({}, args)); };
20
+ export var avatar = Template.bind({});
21
+ avatar.args = {
22
+ image: '/images/sanjna.jpg',
23
+ shape: 'square',
24
+ size: 'lu-avatar-massive',
25
+ className: '',
26
+ icon: "user",
27
+ };
28
+ avatar.argTypes = {
29
+ shape: {
30
+ control: { type: "select", labels: Object.fromEntries(avatarShapeList.map(function (borderRadius) { return [borderRadius.key, borderRadius.label]; })) },
31
+ options: avatarShapeList.map(function (borderRadius) { return borderRadius.key; }),
32
+ },
33
+ size: {
34
+ control: { type: "select", labels: Object.fromEntries(avatarSizesList.map(function (size) { return [size.key, size.label]; })) },
35
+ options: avatarSizesList.map(function (size) { return size.key; }),
36
+ },
37
+ };
@@ -2,6 +2,6 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
2
2
  import { LUIcon } from "../Icons/LUIcon";
3
3
  import { buttonTypeEnum, contentTypeEnum } from "../../utils/enum";
4
4
  export var Button = function (_a) {
5
- var contentType = _a.contentType, variant = _a.variant, label = _a.label, iconLeft = _a.iconLeft, iconRight = _a.iconRight, onClick = _a.onClick, shape = _a.shape, size = _a.size, leftIconSize = _a.leftIconSize, rightIconSize = _a.rightIconSize, className = _a.className, icon = _a.icon, iconSize = _a.iconSize, type = _a.type;
5
+ var _b = _a.contentType, contentType = _b === void 0 ? contentTypeEnum.text_with_icon : _b, _c = _a.variant, variant = _c === void 0 ? 'lu-btn-primary' : _c, _d = _a.label, label = _d === void 0 ? 'Button Text' : _d, iconLeft = _a.iconLeft, iconRight = _a.iconRight, onClick = _a.onClick, shape = _a.shape, _e = _a.size, size = _e === void 0 ? 'lu-btn-md' : _e, leftIconSize = _a.leftIconSize, rightIconSize = _a.rightIconSize, className = _a.className, icon = _a.icon, iconSize = _a.iconSize, type = _a.type;
6
6
  return (_jsx(_Fragment, { children: _jsxs("button", { className: "flex items-center ".concat(shape, " ").concat(type === buttonTypeEnum.outline ? "outline-button ".concat(variant) : variant, " ").concat(className, " ").concat(contentType === contentTypeEnum.icon_only ? "icon-only ".concat(size) : size), onClick: onClick, children: [contentType === contentTypeEnum.none && label, contentType === contentTypeEnum.icon_only && icon && (_jsx(LUIcon, { size: iconSize, icon: icon, fill: type === buttonTypeEnum.outline ? "outline-button ".concat(variant) : variant })), contentType === contentTypeEnum.text_with_icon && (_jsxs(_Fragment, { children: [iconLeft && iconLeft !== 'none' && (_jsx(LUIcon, { size: leftIconSize, icon: iconLeft, fill: type === buttonTypeEnum.outline ? "outline-button ".concat(variant) : variant, className: "lu-mr-100" })), label, iconRight && iconRight !== 'none' && (_jsx(LUIcon, { size: rightIconSize, icon: iconRight, fill: type === buttonTypeEnum.outline ? "outline-button ".concat(variant) : variant, className: "lu-ml-100" }))] }))] }) }));
7
7
  };
@@ -42,6 +42,7 @@ button.args = {
42
42
  icon: 'chart-simple',
43
43
  iconSize: 'lu-icon-small',
44
44
  type: buttonTypeEnum.fill,
45
+ className: '',
45
46
  };
46
47
  button.argTypes = {
47
48
  contentType: {
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  export var Image = function (_a) {
3
3
  var image = _a.image, aspectRatio = _a.aspectRatio, className = _a.className;
4
- return (_jsx("div", { className: "lu-width-25 lu-height-25", "data-testid": "lu-image", children: _jsx("img", { src: image || '', alt: "Image", className: "lu-width-100 ".concat(aspectRatio, " ").concat(className) }) }));
4
+ return (_jsx("div", { "data-testid": "lu-image", children: _jsx("img", { src: image || '', alt: "Image", className: "w-[240px] ".concat(aspectRatio, " ").concat(className) }) }));
5
5
  };
@@ -0,0 +1,2 @@
1
+ import { CardProps } from "@/types/interface";
2
+ export declare const Card: ({ image, layout, mediaPosition, heading, body, className, btnLabel }: CardProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,11 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { Image } from "../Images/LuImage";
3
+ import { Button } from "../Button/Button";
4
+ import { cardLayoutEnum, contentTypeEnum, orientationEnum } from "../../utils/enum";
5
+ import styles from "./Card.module.css";
6
+ export var Card = function (_a) {
7
+ var _b = _a.image, image = _b === void 0 ? '/images/demo-image.jpg' : _b, _c = _a.layout, layout = _c === void 0 ? cardLayoutEnum.horizontal : _c, _d = _a.mediaPosition, mediaPosition = _d === void 0 ? orientationEnum.landscape : _d, _e = _a.heading, heading = _e === void 0 ? 'Heading Text' : _e, _f = _a.body, body = _f === void 0 ? 'The quick brown fox jumps over the lazy dog.' : _f, _g = _a.className, className = _g === void 0 ? '' : _g, _h = _a.btnLabel, btnLabel = _h === void 0 ? 'View More' : _h;
8
+ return (_jsx(_Fragment, { children: layout === cardLayoutEnum.horizontal ?
9
+ _jsxs("div", { className: "lu-pd-250 bg-white lu-border-rounded-xl ".concat(className, " lu-shadow-md flex gap-x-[20px] w-fit"), children: [_jsx(Image, { image: image, aspectRatio: "lu-aspect-square", className: "lu-border-rounded-lg", orientation: 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: "text-gray-950 lu-font-size-2x-large lu-font-weight-semibold", children: heading }), _jsx("p", { className: "lu-base-font-size lu-font-weight-extra-light ".concat(styles.body_text), children: body })] }), _jsx(Button, { contentType: contentTypeEnum.text_with_icon, label: btnLabel, variant: 'lu-btn-gray', iconRight: "angle-right", rightIconSize: "lu-icon-small", size: "lu-btn-lg", className: "lu-border-rounded-sm justify-between lu-width-100" })] })] })
10
+ : (_jsx(_Fragment, { children: _jsxs("div", { className: "lu-pd-400 bg-white lu-border-rounded-xl ".concat(className, " lu-shadow-md flex flex-col items-center w-fit"), children: [_jsx(Image, { image: image, aspectRatio: "lu-aspect-square", className: "lu-border-rounded-lg", orientation: mediaPosition }), _jsxs("div", { className: "".concat(styles.card, " flex flex-col items-center lu-m-250"), children: [_jsx("div", { className: "text-gray-950 lu-font-size-2x-large lu-font-weight-semibold", children: heading }), _jsx("p", { className: "lu-base-font-size lu-font-weight-extra-light", children: body })] }), _jsx(Button, { contentType: contentTypeEnum.text_with_icon, label: btnLabel, variant: 'lu-btn-gray', iconRight: "angle-right", rightIconSize: "lu-icon-small", size: "lu-btn-lg", className: "lu-border-rounded-sm justify-between lu-width-100" })] }) })) }));
11
+ };
@@ -0,0 +1,4 @@
1
+ import { Meta } from "@storybook/react";
2
+ declare const _default: Meta;
3
+ export default _default;
4
+ export declare const card: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, import("@storybook/csf").Args>;
@@ -0,0 +1,38 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
12
+ import { jsx as _jsx } from "react/jsx-runtime";
13
+ import { Card } from "./Card";
14
+ import { cardLayoutEnum, orientationEnum } from "../../utils/enum";
15
+ export default {
16
+ title: "Components/Card",
17
+ component: Card,
18
+ };
19
+ var Template = function (args) { return _jsx(Card, __assign({}, args)); };
20
+ export var card = Template.bind({});
21
+ card.args = {
22
+ image: '/images/demo-image.jpg',
23
+ heading: 'Heading Text',
24
+ body: 'The quick brown fox jumps over the lazy dog.',
25
+ mediaPosition: orientationEnum.landscape,
26
+ layout: cardLayoutEnum.horizontal,
27
+ btnLabel: 'View More'
28
+ };
29
+ card.argTypes = {
30
+ mediaPosition: {
31
+ control: { type: "select" },
32
+ options: [orientationEnum.portrait, orientationEnum.landscape],
33
+ },
34
+ layout: {
35
+ control: { type: "select" },
36
+ options: [cardLayoutEnum.horizontal, cardLayoutEnum.vertical],
37
+ },
38
+ };
package/dist/index.d.ts CHANGED
@@ -3,4 +3,6 @@ export { Size } from './components/Size/Size';
3
3
  export { WidthHeight } from './components/Size/WidthHeight';
4
4
  export { MinWidthHeight } from './components/Size/MinWidthHeight';
5
5
  export { LUIcon } from './components/Icons/LUIcon';
6
+ export { Card } from './components/MediaCard/Card';
6
7
  import './styles/global.css';
8
+ import './components/MediaCard/Card.module.css';
package/dist/index.js CHANGED
@@ -3,4 +3,6 @@ export { Size } from './components/Size/Size';
3
3
  export { WidthHeight } from './components/Size/WidthHeight';
4
4
  export { MinWidthHeight } from './components/Size/MinWidthHeight';
5
5
  export { LUIcon } from './components/Icons/LUIcon';
6
+ export { Card } from './components/MediaCard/Card';
6
7
  import './styles/global.css';
8
+ import './components/MediaCard/Card.module.css';
@@ -556,6 +556,9 @@ video {
556
556
  .grid {
557
557
  display: grid;
558
558
  }
559
+ .aspect-square {
560
+ aspect-ratio: 1 / 1;
561
+ }
559
562
  .size-lu-size-050 {
560
563
  width: var(--core-050);
561
564
  height: var(--core-050);
@@ -610,6 +613,9 @@ video {
610
613
  .h-48 {
611
614
  height: 12rem;
612
615
  }
616
+ .h-full {
617
+ height: 100%;
618
+ }
613
619
  .h-lu-height-10 {
614
620
  height: 10%;
615
621
  }
@@ -670,6 +676,9 @@ video {
670
676
  .w-10 {
671
677
  width: 2.5rem;
672
678
  }
679
+ .w-\[240px\] {
680
+ width: 240px;
681
+ }
673
682
  .w-fit {
674
683
  width: -moz-fit-content;
675
684
  width: fit-content;
@@ -737,6 +746,9 @@ video {
737
746
  .max-w-\[30ch\] {
738
747
  max-width: 30ch;
739
748
  }
749
+ .flex-1 {
750
+ flex: 1 1 0%;
751
+ }
740
752
  .transform {
741
753
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
742
754
  }
@@ -770,6 +782,13 @@ video {
770
782
  .gap-6 {
771
783
  gap: 1.5rem;
772
784
  }
785
+ .gap-x-\[20px\] {
786
+ -moz-column-gap: 20px;
787
+ column-gap: 20px;
788
+ }
789
+ .overflow-hidden {
790
+ overflow: hidden;
791
+ }
773
792
  .rounded {
774
793
  border-radius: 0.25rem;
775
794
  }
@@ -8387,6 +8406,10 @@ video {
8387
8406
  .bg-warning-900\/lu-opacity-95 {
8388
8407
  background-color: rgb(102 80 0 / 0.95);
8389
8408
  }
8409
+ .bg-white {
8410
+ --tw-bg-opacity: 1;
8411
+ background-color: rgb(254 254 254 / var(--tw-bg-opacity, 1));
8412
+ }
8390
8413
  .bg-gradient-to-b {
8391
8414
  background-image: linear-gradient(to bottom, var(--tw-gradient-stops));
8392
8415
  }
@@ -8407,6 +8430,10 @@ video {
8407
8430
  --tw-gradient-to: rgb(254 254 254 / 0) var(--tw-gradient-to-position);
8408
8431
  --tw-gradient-stops: var(--tw-gradient-from), #FEFEFE var(--tw-gradient-via-position), var(--tw-gradient-to);
8409
8432
  }
8433
+ .object-cover {
8434
+ -o-object-fit: cover;
8435
+ object-fit: cover;
8436
+ }
8410
8437
  .p-24 {
8411
8438
  padding: 6rem;
8412
8439
  }
@@ -8533,6 +8560,10 @@ video {
8533
8560
  --tw-text-opacity: 1;
8534
8561
  color: rgb(81 84 88 / var(--tw-text-opacity, 1));
8535
8562
  }
8563
+ .text-gray-950 {
8564
+ --tw-text-opacity: 1;
8565
+ color: rgb(3 7 18 / var(--tw-text-opacity, 1));
8566
+ }
8536
8567
  .opacity-50 {
8537
8568
  opacity: 0.5;
8538
8569
  }
@@ -9856,6 +9887,66 @@ video {
9856
9887
  .lu-aspect-9-21-por {
9857
9888
  aspect-ratio: 9 / 21;
9858
9889
  }
9890
+ .lu-avatar-massive {
9891
+ width: var(--core-1500);
9892
+ height: var(--core-1500);
9893
+ }
9894
+ .lu-avatar-huge {
9895
+ width: var( --core-1000);
9896
+ height: var( --core-1000);
9897
+ }
9898
+ .lu-avatar-7x-large {
9899
+ width: var(--core-800);
9900
+ height: var(--core-800);
9901
+ }
9902
+ .lu-avatar-6x-large {
9903
+ width: var(--core-600);
9904
+ height: var(--core-600);
9905
+ }
9906
+ .lu-avatar-5x-large {
9907
+ width: var(--core-450);
9908
+ height: var(--core-450);
9909
+ }
9910
+ .lu-avatar-4x-large {
9911
+ width: var(--core-400);
9912
+ height: var(--core-400);
9913
+ }
9914
+ .lu-avatar-3x-large {
9915
+ width: var(--core-350);
9916
+ height: var(--core-350);
9917
+ }
9918
+ .lu-avatar-2x-large {
9919
+ width: var(--core-300);
9920
+ height: var(--core-300);
9921
+ }
9922
+ .lu-avatar-x-large {
9923
+ width: var(--core-250);
9924
+ height: var(--core-250);
9925
+ }
9926
+ .lu-avatar-large {
9927
+ width: var(--core-225);
9928
+ height: var(--core-225);
9929
+ }
9930
+ .lu-avatar-medium {
9931
+ width: var(--core-200);
9932
+ height: var(--core-200);
9933
+ }
9934
+ .lu-avatar-small {
9935
+ width: var(--core-175);
9936
+ height: var(--core-175);
9937
+ }
9938
+ .square {
9939
+ border-radius: 0px;
9940
+ }
9941
+ .circle {
9942
+ border-radius: 9999px;
9943
+ }
9944
+ .none {
9945
+ box-shadow: none;
9946
+ }
9947
+ .lu-shadow-md {
9948
+ box-shadow: 0px 4px 12px 0 rgba(52, 52, 52, 0.15);
9949
+ }
9859
9950
 
9860
9951
  :root {
9861
9952
  /* --foreground-rgb: 0, 0, 0; */
@@ -7,7 +7,7 @@ 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 { 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';
10
+ import { avatarShapeList, avatarSizesList, borderRadiusList, borderWidthList, buttonColorsList, buttonIconSizeList, buttonWithIconList, butttonSizeList, colorGroups, customAspectRatio, customAvatarSize, customBorderRadius, customBorderWidth, customBoxShadow, customButtonColors, customButtonIconSize, customButtonOutlineColors, customButtonSize, customColors, customFontSize, customFontWeight, customHeight, customIconButtonSize, customIconColors, customIconSize, customizeAvtarShape, 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 = {
@@ -17,7 +17,7 @@ var config = {
17
17
  './components/**/*.{js,ts,jsx,tsx,mdx}',
18
18
  './app/**/*.{js,ts,jsx,tsx,mdx}',
19
19
  ],
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
+ 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(__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), avatarSizesList.map(function (avatarSize) { return ({ pattern: new RegExp(avatarSize.key) }); }), true), avatarShapeList.map(function (avatarShape) { return ({ pattern: new RegExp(avatarShape.key) }); }), true),
21
21
  theme: {
22
22
  extend: {
23
23
  backgroundImage: {
@@ -132,6 +132,13 @@ var config = {
132
132
  addUtilities(customButtonOutlineColors, ['responsive']);
133
133
  //plugin for aspect ratio
134
134
  addUtilities(customAspectRatio, ['responsive']);
135
+ //Plugin for avatar size
136
+ addUtilities(customAvatarSize, ['responsive']);
137
+ //plugin for avatar shape
138
+ addUtilities(customizeAvtarShape, ['responsive']);
139
+ //plugin for box shadow
140
+ var boxShadowUtilities = generateUtilities('boxShadow', theme);
141
+ addUtilities(boxShadowUtilities, ['responsive']);
135
142
  }),
136
143
  ],
137
144
  };
@@ -11,3 +11,7 @@ export declare const orientationEnum: {
11
11
  portrait: string;
12
12
  landscape: string;
13
13
  };
14
+ export declare const cardLayoutEnum: {
15
+ horizontal: string;
16
+ vertical: string;
17
+ };
@@ -11,3 +11,7 @@ export var orientationEnum = {
11
11
  portrait: 'Portrait',
12
12
  landscape: 'Landscape'
13
13
  };
14
+ export var cardLayoutEnum = {
15
+ horizontal: 'Horizontal',
16
+ vertical: 'Vertical'
17
+ };
@@ -99,6 +99,18 @@ export declare const landscapeaspectRatioList: {
99
99
  key: string;
100
100
  label: string;
101
101
  }[];
102
+ export declare const avatarSizesList: {
103
+ key: string;
104
+ label: string;
105
+ }[];
106
+ export declare const avatarShapeList: {
107
+ key: string;
108
+ label: string;
109
+ }[];
110
+ export declare const avtarBackgroundSize: (size: string) => {
111
+ width: string;
112
+ height: string;
113
+ } | undefined;
102
114
  export default function generateUtilities(property: string, theme: (property: string) => Record<string, string>): Record<string, Record<string, string>>;
103
115
  export declare const customColors: {
104
116
  white: string;
@@ -1352,6 +1364,64 @@ export declare const customIconButtonSize: {
1352
1364
  padding: string;
1353
1365
  };
1354
1366
  };
1367
+ export declare const customAvatarSize: {
1368
+ '.lu-avatar-massive': {
1369
+ width: string;
1370
+ height: string;
1371
+ };
1372
+ '.lu-avatar-huge': {
1373
+ width: string;
1374
+ height: string;
1375
+ };
1376
+ '.lu-avatar-7x-large': {
1377
+ width: string;
1378
+ height: string;
1379
+ };
1380
+ '.lu-avatar-6x-large': {
1381
+ width: string;
1382
+ height: string;
1383
+ };
1384
+ '.lu-avatar-5x-large': {
1385
+ width: string;
1386
+ height: string;
1387
+ };
1388
+ '.lu-avatar-4x-large': {
1389
+ width: string;
1390
+ height: string;
1391
+ };
1392
+ '.lu-avatar-3x-large': {
1393
+ width: string;
1394
+ height: string;
1395
+ };
1396
+ '.lu-avatar-2x-large': {
1397
+ width: string;
1398
+ height: string;
1399
+ };
1400
+ '.lu-avatar-x-large': {
1401
+ width: string;
1402
+ height: string;
1403
+ };
1404
+ '.lu-avatar-large': {
1405
+ width: string;
1406
+ height: string;
1407
+ };
1408
+ '.lu-avatar-medium': {
1409
+ width: string;
1410
+ height: string;
1411
+ };
1412
+ '.lu-avatar-small': {
1413
+ width: string;
1414
+ height: string;
1415
+ };
1416
+ };
1417
+ export declare const customizeAvtarShape: {
1418
+ '.square': {
1419
+ borderRadius: string;
1420
+ };
1421
+ '.circle': {
1422
+ borderRadius: string;
1423
+ };
1424
+ };
1355
1425
  export declare const table_data_className = "bg-gray-100 lu-pt-050 lu-pr-100 lu-pb-050 lu-pl-100 rounded gap-2.5";
1356
1426
  export declare const table_header_className = "lu-pd-200";
1357
1427
  export declare const table_sub_heading_className = "lu-text-center lu-text-uppercase lu-font-weight-semibold lu-font-size-large lu-pd-200";
@@ -318,6 +318,104 @@ export var landscapeaspectRatioList = [
318
318
  { key: 'lu-aspect-16-9-landsc', label: 'lu-aspect-16-9-landsc: 16/9' },
319
319
  { key: 'lu-aspect-21-9-landscape', label: 'lu-aspect-21-9-landscape: 21/9' },
320
320
  ];
321
+ export var avatarSizesList = [
322
+ { key: 'lu-avatar-massive', label: 'lu-avatar-massive' },
323
+ { key: 'lu-avatar-huge', label: 'lu-avatar-huge' },
324
+ { key: 'lu-avatar-7x-large', label: 'lu-avatar-7x-large' },
325
+ { key: 'lu-avatar-6x-large', label: 'lu-avatar-6x-large' },
326
+ { key: 'lu-avatar-5x-large', label: 'lu-avatar-5x-large' },
327
+ { key: 'lu-avatar-4x-large', label: 'lu-avatar-4x-large' },
328
+ { key: 'lu-avatar-3x-large', label: 'lu-avatar-3x-large' },
329
+ { key: 'lu-avatar-2x-large', label: 'lu-avatar-2x-large' },
330
+ { key: 'lu-avatar-x-large', label: 'lu-avatar-x-large' },
331
+ { key: 'lu-avatar-large', label: 'lu-avatar-large' },
332
+ { key: 'lu-avatar-medium', label: 'lu-avatar-medium' },
333
+ { key: 'lu-avatar-small', label: 'lu-avatar-small' },
334
+ ];
335
+ export var avatarShapeList = [
336
+ { key: 'square', label: 'square' },
337
+ { key: 'circle', label: 'circle' },
338
+ ];
339
+ export var avtarBackgroundSize = function (size) {
340
+ if (size === 'lu-avatar-massive') {
341
+ return {
342
+ width: '200px',
343
+ height: '200px',
344
+ };
345
+ }
346
+ else if (size === 'lu-avatar-huge') {
347
+ return {
348
+ width: '160px',
349
+ height: '160px',
350
+ };
351
+ }
352
+ else if (size === 'lu-avatar-7x-large') {
353
+ return {
354
+ width: '144px',
355
+ height: '144px',
356
+ };
357
+ }
358
+ else if (size === 'lu-avatar-6x-large') {
359
+ return {
360
+ width: '128px',
361
+ height: '128px',
362
+ };
363
+ }
364
+ else if (size === 'lu-avatar-5x-large') {
365
+ return {
366
+ width: '116px',
367
+ height: '116px',
368
+ };
369
+ }
370
+ else if (size === 'lu-avatar-4x-large') {
371
+ return {
372
+ width: '96px',
373
+ height: '96px',
374
+ };
375
+ }
376
+ else if (size === 'lu-avatar-4x-large') {
377
+ return {
378
+ width: '96px',
379
+ height: '96px',
380
+ };
381
+ }
382
+ else if (size === 'lu-avatar-3x-large') {
383
+ return {
384
+ width: '76px',
385
+ height: '76px',
386
+ };
387
+ }
388
+ else if (size === 'lu-avatar-2x-large') {
389
+ return {
390
+ width: '64px',
391
+ height: '64px',
392
+ };
393
+ }
394
+ else if (size === 'lu-avatar-x-large') {
395
+ return {
396
+ width: '52px',
397
+ height: '52px',
398
+ };
399
+ }
400
+ else if (size === 'lu-avatar-large') {
401
+ return {
402
+ width: '42px',
403
+ height: '42px',
404
+ };
405
+ }
406
+ else if (size === 'lu-avatar-medium') {
407
+ return {
408
+ width: '32px',
409
+ height: '32px',
410
+ };
411
+ }
412
+ else if (size === 'lu-avatar-small') {
413
+ return {
414
+ width: '30px',
415
+ height: '30px',
416
+ };
417
+ }
418
+ };
321
419
  //Plugin for generating utilities (Used in tailwind.config.js)
322
420
  export default function generateUtilities(property, theme) {
323
421
  var utilities = theme(property);
@@ -1489,6 +1587,60 @@ export var customIconButtonSize = {
1489
1587
  padding: 'var(--core-100)'
1490
1588
  },
1491
1589
  };
1590
+ export var customAvatarSize = {
1591
+ '.lu-avatar-massive': {
1592
+ width: 'var(--core-1500)',
1593
+ height: 'var(--core-1500)',
1594
+ },
1595
+ '.lu-avatar-huge': {
1596
+ width: 'var( --core-1000)',
1597
+ height: 'var( --core-1000)',
1598
+ },
1599
+ '.lu-avatar-7x-large': {
1600
+ width: 'var(--core-800)',
1601
+ height: 'var(--core-800)',
1602
+ },
1603
+ '.lu-avatar-6x-large': {
1604
+ width: 'var(--core-600)',
1605
+ height: 'var(--core-600)'
1606
+ },
1607
+ '.lu-avatar-5x-large': {
1608
+ width: 'var(--core-450)',
1609
+ height: 'var(--core-450)'
1610
+ },
1611
+ '.lu-avatar-4x-large': {
1612
+ width: 'var(--core-400)',
1613
+ height: 'var(--core-400)'
1614
+ },
1615
+ '.lu-avatar-3x-large': {
1616
+ width: 'var(--core-350)',
1617
+ height: 'var(--core-350)'
1618
+ },
1619
+ '.lu-avatar-2x-large': {
1620
+ width: 'var(--core-300)',
1621
+ height: 'var(--core-300)'
1622
+ },
1623
+ '.lu-avatar-x-large': {
1624
+ width: 'var(--core-250)',
1625
+ height: 'var(--core-250)'
1626
+ },
1627
+ '.lu-avatar-large': {
1628
+ width: 'var(--core-225)',
1629
+ height: 'var(--core-225)'
1630
+ },
1631
+ '.lu-avatar-medium': {
1632
+ width: 'var(--core-200)',
1633
+ height: 'var(--core-200)'
1634
+ },
1635
+ '.lu-avatar-small': {
1636
+ width: 'var(--core-175)',
1637
+ height: 'var(--core-175)'
1638
+ },
1639
+ };
1640
+ export var customizeAvtarShape = {
1641
+ '.square': { borderRadius: '0px' },
1642
+ '.circle': { borderRadius: '9999px' },
1643
+ };
1492
1644
  // Components CSS Classes
1493
1645
  export var table_data_className = 'bg-gray-100 lu-pt-050 lu-pr-100 lu-pb-050 lu-pl-100 rounded gap-2.5';
1494
1646
  export var table_header_className = 'lu-pd-200';
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "linkedunion-design-kit",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "private": false,
5
5
  "files": [
6
6
  "dist",
7
- "styles/global.css"
7
+ "styles/global.css",
8
+ "dist/components/MediaCard/Card.module.css"
8
9
  ],
9
10
  "main": "dist/index.js",
10
11
  "types": "dist/index.d.ts",