linkedunion-design-kit 1.1.4 → 1.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Avatar/Avatar.js +1 -1
- package/dist/components/Avatar/Avatar.stories.js +1 -1
- package/dist/components/Images/LuImage.d.ts +1 -1
- package/dist/components/Images/LuImage.js +3 -2
- package/dist/components/Images/LuImage.stories.js +3 -3
- package/dist/components/MediaCard/Card.d.ts +1 -1
- package/dist/components/MediaCard/Card.js +27 -8
- package/dist/components/MediaCard/Card.stories.js +8 -2
- package/dist/components/MediaCard/ContactProfile.d.ts +2 -0
- package/dist/components/MediaCard/ContactProfile.js +10 -0
- package/dist/components/MediaCard/PostByCategory.d.ts +2 -0
- package/dist/components/MediaCard/PostByCategory.js +10 -0
- package/dist/styles/global.css +35 -44
- package/dist/utils/enum.d.ts +8 -0
- package/dist/utils/enum.js +8 -0
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/index.js +9 -0
- package/package.json +1 -1
|
@@ -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), children: image ?
|
|
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 ?
|
|
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: "" }) }) }));
|
|
@@ -19,7 +19,7 @@ export default {
|
|
|
19
19
|
var Template = function (args) { return _jsx(Avatar, __assign({}, args)); };
|
|
20
20
|
export var avatar = Template.bind({});
|
|
21
21
|
avatar.args = {
|
|
22
|
-
image: '/images/
|
|
22
|
+
image: '/images/avatar.png',
|
|
23
23
|
shape: 'square',
|
|
24
24
|
size: 'lu-avatar-massive',
|
|
25
25
|
className: '',
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { AspectRatioProps } from "@/types/interface";
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const LuImage: ({ image, aspectRatio, className }: AspectRatioProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
|
|
2
|
+
import Image from "next/image";
|
|
3
|
+
export var LuImage = function (_a) {
|
|
3
4
|
var image = _a.image, aspectRatio = _a.aspectRatio, className = _a.className;
|
|
4
|
-
return (_jsx(
|
|
5
|
+
return (_jsx(Image, { src: image || '', alt: "Image", width: 240, height: 160, className: "".concat(aspectRatio, " ").concat(className) }));
|
|
5
6
|
};
|
|
@@ -10,12 +10,12 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
import {
|
|
13
|
+
import { LuImage } from "./LuImage";
|
|
14
14
|
import { landscapeaspectRatioList, portraitaspectRatioList } from "../../utils";
|
|
15
15
|
import { orientationEnum } from "../../utils/enum";
|
|
16
16
|
export default {
|
|
17
17
|
title: "Components/Image",
|
|
18
|
-
component:
|
|
18
|
+
component: LuImage,
|
|
19
19
|
};
|
|
20
20
|
var Template = function (args, _a) {
|
|
21
21
|
var argTypes = _a.argTypes;
|
|
@@ -26,7 +26,7 @@ var Template = function (args, _a) {
|
|
|
26
26
|
ratio.key,
|
|
27
27
|
ratio.label,
|
|
28
28
|
]; }));
|
|
29
|
-
return _jsx(
|
|
29
|
+
return _jsx(LuImage, __assign({}, args));
|
|
30
30
|
};
|
|
31
31
|
export var image = Template.bind({});
|
|
32
32
|
image.args = {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
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;
|
|
2
|
+
export declare const Card: ({ type, image, layout, mediaPosition, heading, body, className, btnLabel }: CardProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,10 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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, orientationEnum, sectionType } from "../../utils/enum";
|
|
14
|
+
import { PostByCategory } from "./PostByCategory";
|
|
15
|
+
import { ContactProfile } from "./ContactProfile";
|
|
5
16
|
export var Card = function (_a) {
|
|
6
|
-
var _b = _a.image, image =
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
17
|
+
var _b = _a.type, type = _b === void 0 ? sectionType.postByCategoriesTheme : _b, _c = _a.image, image = _c === void 0 ? '/images/demo-image.jpg' : _c, _d = _a.layout, layout = _d === void 0 ? cardLayoutEnum.horizontal : _d, _e = _a.mediaPosition, mediaPosition = _e === void 0 ? orientationEnum.landscape : _e, _f = _a.heading, heading = _f === void 0 ? 'Heading Text' : _f, _g = _a.body, body = _g === void 0 ? 'The quick brown fox jumps over the lazy dog.' : _g, _h = _a.className, className = _h === void 0 ? '' : _h, _j = _a.btnLabel, btnLabel = _j === void 0 ? 'View More' : _j;
|
|
18
|
+
var data = {
|
|
19
|
+
type: type,
|
|
20
|
+
image: image,
|
|
21
|
+
layout: layout,
|
|
22
|
+
mediaPosition: mediaPosition,
|
|
23
|
+
heading: heading,
|
|
24
|
+
body: body,
|
|
25
|
+
className: className,
|
|
26
|
+
btnLabel: btnLabel,
|
|
27
|
+
};
|
|
28
|
+
return (_jsxs(_Fragment, { children: [type === sectionType.postByCategoriesTheme && _jsx(PostByCategory, __assign({}, data)), type === sectionType.contactsProfileTheme && _jsx(ContactProfile, __assign({}, data))] }));
|
|
10
29
|
};
|
|
@@ -11,7 +11,8 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
import { Card } from "./Card";
|
|
14
|
-
import { cardLayoutEnum, orientationEnum } from "../../utils/enum";
|
|
14
|
+
import { cardLayoutEnum, orientationEnum, sectionType } from "../../utils/enum";
|
|
15
|
+
import { sectionTypeList } from "../../utils";
|
|
15
16
|
export default {
|
|
16
17
|
title: "Components/Card",
|
|
17
18
|
component: Card,
|
|
@@ -19,12 +20,13 @@ export default {
|
|
|
19
20
|
var Template = function (args) { return _jsx(Card, __assign({}, args)); };
|
|
20
21
|
export var card = Template.bind({});
|
|
21
22
|
card.args = {
|
|
23
|
+
type: sectionType.postByCategoriesTheme,
|
|
22
24
|
image: '/images/demo-image.jpg',
|
|
23
25
|
heading: 'Heading Text',
|
|
24
26
|
body: 'The quick brown fox jumps over the lazy dog.',
|
|
25
27
|
mediaPosition: orientationEnum.landscape,
|
|
26
28
|
layout: cardLayoutEnum.horizontal,
|
|
27
|
-
btnLabel: 'View More'
|
|
29
|
+
btnLabel: 'View More',
|
|
28
30
|
};
|
|
29
31
|
card.argTypes = {
|
|
30
32
|
mediaPosition: {
|
|
@@ -35,4 +37,8 @@ card.argTypes = {
|
|
|
35
37
|
control: { type: "select" },
|
|
36
38
|
options: [cardLayoutEnum.horizontal, cardLayoutEnum.vertical],
|
|
37
39
|
},
|
|
40
|
+
type: {
|
|
41
|
+
control: { type: "select", labels: Object.fromEntries(sectionTypeList.map(function (type) { return [type.key, type.label]; })) },
|
|
42
|
+
options: sectionTypeList.map(function (type) { return type.key; }),
|
|
43
|
+
}
|
|
38
44
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { cardLayoutEnum, contentTypeEnum, orientationEnum } from "../../utils/enum";
|
|
3
|
+
import { LuImage } from "../Images/LuImage";
|
|
4
|
+
import { Button } from "../Button/Button";
|
|
5
|
+
export var ContactProfile = function (_a) {
|
|
6
|
+
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;
|
|
7
|
+
return (_jsx(_Fragment, { children: layout === cardLayoutEnum.horizontal ?
|
|
8
|
+
_jsxs("div", { className: "lu-pd-250 bg-white lu-border-rounded-xl ".concat(className, " lu-shadow-md flex gap-x-[20px] lu-width-100"), children: [_jsx("div", { className: "lu-width-100 max-w-[240px] overflow-hidden lu-aspect-square", children: _jsx(LuImage, { image: image, aspectRatio: "", className: "lu-border-rounded-full lu-width-100 lu-height-100 object-cover", 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 horizontal_card_heading", children: heading }), _jsx("p", { className: "lu-base-font-size lu-font-weight-extra-light horizontal_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" })] })] })
|
|
9
|
+
: (_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 lu-width-100"), children: [_jsx("div", { className: "lu-width-100 max-w-[240px] overflow-hidden lu-aspect-square", children: _jsx(LuImage, { image: image, className: "lu-width-100 lu-height-100 object-cover lu-border-rounded-full", orientation: mediaPosition }) }), _jsxs("div", { className: "flex flex-col items-center flex-grow lu-m-250 text-center h-[100px]", children: [_jsx("div", { className: "text-gray-950 lu-font-size-2x-large lu-font-weight-semibold vertical_card_heading", children: heading }), _jsx("p", { className: "lu-base-font-size lu-font-weight-extra-light vertical_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
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { cardLayoutEnum, contentTypeEnum, orientationEnum } from "../../utils/enum";
|
|
3
|
+
import { LuImage } from "../Images/LuImage";
|
|
4
|
+
import { Button } from "../Button/Button";
|
|
5
|
+
export var PostByCategory = function (_a) {
|
|
6
|
+
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;
|
|
7
|
+
return (_jsx(_Fragment, { children: layout === cardLayoutEnum.horizontal ?
|
|
8
|
+
_jsxs("div", { className: "lu-pd-250 bg-white lu-border-rounded-xl ".concat(className, " lu-shadow-md flex gap-x-[20px] lu-width-100"), children: [_jsx("div", { className: "lu-width-100 max-w-[240px] overflow-hidden lu-aspect-square", children: _jsx(LuImage, { image: image, aspectRatio: "", className: "lu-border-rounded-lg lu-width-100 lu-height-100 object-cover", 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 horizontal_card_heading", children: heading }), _jsx("p", { className: "lu-base-font-size lu-font-weight-extra-light horizontal_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" })] })] })
|
|
9
|
+
: (_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 lu-width-100"), children: [_jsx("div", { className: "lu-width-100 max-w-[240px] overflow-hidden lu-aspect-square", children: _jsx(LuImage, { image: image, className: "lu-width-100 lu-height-100 object-cover", orientation: mediaPosition }) }), _jsxs("div", { className: "flex flex-col items-center flex-grow lu-m-250 text-center h-[100px]", children: [_jsx("div", { className: "text-gray-950 lu-font-size-2x-large lu-font-weight-semibold vertical_card_heading", children: heading }), _jsx("p", { className: "lu-base-font-size lu-font-weight-extra-light vertical_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
|
+
};
|
package/dist/styles/global.css
CHANGED
|
@@ -613,6 +613,9 @@ video {
|
|
|
613
613
|
.h-48 {
|
|
614
614
|
height: 12rem;
|
|
615
615
|
}
|
|
616
|
+
.h-\[100px\] {
|
|
617
|
+
height: 100px;
|
|
618
|
+
}
|
|
616
619
|
.h-full {
|
|
617
620
|
height: 100%;
|
|
618
621
|
}
|
|
@@ -676,9 +679,6 @@ video {
|
|
|
676
679
|
.w-10 {
|
|
677
680
|
width: 2.5rem;
|
|
678
681
|
}
|
|
679
|
-
.w-\[240px\] {
|
|
680
|
-
width: 240px;
|
|
681
|
-
}
|
|
682
682
|
.w-fit {
|
|
683
683
|
width: -moz-fit-content;
|
|
684
684
|
width: fit-content;
|
|
@@ -743,12 +743,18 @@ video {
|
|
|
743
743
|
.max-w-5xl {
|
|
744
744
|
max-width: 64rem;
|
|
745
745
|
}
|
|
746
|
+
.max-w-\[240px\] {
|
|
747
|
+
max-width: 240px;
|
|
748
|
+
}
|
|
746
749
|
.max-w-\[30ch\] {
|
|
747
750
|
max-width: 30ch;
|
|
748
751
|
}
|
|
749
752
|
.flex-1 {
|
|
750
753
|
flex: 1 1 0%;
|
|
751
754
|
}
|
|
755
|
+
.flex-grow {
|
|
756
|
+
flex-grow: 1;
|
|
757
|
+
}
|
|
752
758
|
.transform {
|
|
753
759
|
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));
|
|
754
760
|
}
|
|
@@ -10612,169 +10618,156 @@ table, th, td {
|
|
|
10612
10618
|
margin-left: var(--lu-spacing-3000);
|
|
10613
10619
|
}
|
|
10614
10620
|
|
|
10615
|
-
@media (max-width: 430px) {
|
|
10616
|
-
.horizontal_body_text {
|
|
10617
|
-
display: -webkit-box;
|
|
10618
|
-
-webkit-line-clamp: 2;
|
|
10619
|
-
/* Limits text to 2 lines */
|
|
10620
|
-
line-clamp: 2;
|
|
10621
|
-
/* Limits text to 2 lines */
|
|
10622
|
-
-webkit-box-orient: vertical;
|
|
10623
|
-
overflow: hidden;
|
|
10624
|
-
text-overflow: ellipsis;
|
|
10625
|
-
}
|
|
10626
|
-
}
|
|
10627
10621
|
|
|
10622
|
+
.vertical_card_heading {
|
|
10623
|
+
display: -webkit-box;
|
|
10624
|
+
-webkit-line-clamp: 1;
|
|
10625
|
+
-webkit-box-orient: vertical;
|
|
10626
|
+
overflow: hidden;
|
|
10627
|
+
text-transform: capitalize;
|
|
10628
|
+
}
|
|
10629
|
+
.vertical_body_text{
|
|
10630
|
+
display: -webkit-box;
|
|
10631
|
+
-webkit-line-clamp: 2;
|
|
10632
|
+
-webkit-box-orient: vertical;
|
|
10633
|
+
overflow: hidden;
|
|
10634
|
+
}
|
|
10635
|
+
.horizontal_body_text {
|
|
10636
|
+
display: -webkit-box;
|
|
10637
|
+
-webkit-line-clamp: 2;
|
|
10638
|
+
-webkit-box-orient: vertical;
|
|
10639
|
+
overflow: hidden;
|
|
10640
|
+
}
|
|
10641
|
+
.horizontal_card_heading{
|
|
10642
|
+
display: -webkit-box;
|
|
10643
|
+
-webkit-line-clamp: 1;
|
|
10644
|
+
-webkit-box-orient: vertical;
|
|
10645
|
+
overflow: hidden;
|
|
10646
|
+
text-transform: capitalize;
|
|
10647
|
+
}
|
|
10628
10648
|
.before\:absolute::before {
|
|
10629
10649
|
content: var(--tw-content);
|
|
10630
10650
|
position: absolute;
|
|
10631
10651
|
}
|
|
10632
|
-
|
|
10633
10652
|
.before\:h-\[300px\]::before {
|
|
10634
10653
|
content: var(--tw-content);
|
|
10635
10654
|
height: 300px;
|
|
10636
10655
|
}
|
|
10637
|
-
|
|
10638
10656
|
.before\:w-\[480px\]::before {
|
|
10639
10657
|
content: var(--tw-content);
|
|
10640
10658
|
width: 480px;
|
|
10641
10659
|
}
|
|
10642
|
-
|
|
10643
10660
|
.before\:-translate-x-1\/2::before {
|
|
10644
10661
|
content: var(--tw-content);
|
|
10645
10662
|
--tw-translate-x: -50%;
|
|
10646
10663
|
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));
|
|
10647
10664
|
}
|
|
10648
|
-
|
|
10649
10665
|
.before\:rounded-full::before {
|
|
10650
10666
|
content: var(--tw-content);
|
|
10651
10667
|
border-radius: 9999px;
|
|
10652
10668
|
}
|
|
10653
|
-
|
|
10654
10669
|
.before\:bg-gradient-radial::before {
|
|
10655
10670
|
content: var(--tw-content);
|
|
10656
10671
|
background-image: radial-gradient(var(--tw-gradient-stops));
|
|
10657
10672
|
}
|
|
10658
|
-
|
|
10659
10673
|
.before\:from-white::before {
|
|
10660
10674
|
content: var(--tw-content);
|
|
10661
10675
|
--tw-gradient-from: #FEFEFE var(--tw-gradient-from-position);
|
|
10662
10676
|
--tw-gradient-to: rgb(254 254 254 / 0) var(--tw-gradient-to-position);
|
|
10663
10677
|
--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
|
|
10664
10678
|
}
|
|
10665
|
-
|
|
10666
10679
|
.before\:to-transparent::before {
|
|
10667
10680
|
content: var(--tw-content);
|
|
10668
10681
|
--tw-gradient-to: transparent var(--tw-gradient-to-position);
|
|
10669
10682
|
}
|
|
10670
|
-
|
|
10671
10683
|
.before\:blur-2xl::before {
|
|
10672
10684
|
content: var(--tw-content);
|
|
10673
10685
|
--tw-blur: blur(40px);
|
|
10674
10686
|
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
|
|
10675
10687
|
}
|
|
10676
|
-
|
|
10677
10688
|
.before\:content-\[\'\'\]::before {
|
|
10678
10689
|
--tw-content: '';
|
|
10679
10690
|
content: var(--tw-content);
|
|
10680
10691
|
}
|
|
10681
|
-
|
|
10682
10692
|
.after\:absolute::after {
|
|
10683
10693
|
content: var(--tw-content);
|
|
10684
10694
|
position: absolute;
|
|
10685
10695
|
}
|
|
10686
|
-
|
|
10687
10696
|
.after\:-z-20::after {
|
|
10688
10697
|
content: var(--tw-content);
|
|
10689
10698
|
z-index: -20;
|
|
10690
10699
|
}
|
|
10691
|
-
|
|
10692
10700
|
.after\:h-\[180px\]::after {
|
|
10693
10701
|
content: var(--tw-content);
|
|
10694
10702
|
height: 180px;
|
|
10695
10703
|
}
|
|
10696
|
-
|
|
10697
10704
|
.after\:w-\[240px\]::after {
|
|
10698
10705
|
content: var(--tw-content);
|
|
10699
10706
|
width: 240px;
|
|
10700
10707
|
}
|
|
10701
|
-
|
|
10702
10708
|
.after\:translate-x-1\/3::after {
|
|
10703
10709
|
content: var(--tw-content);
|
|
10704
10710
|
--tw-translate-x: 33.333333%;
|
|
10705
10711
|
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));
|
|
10706
10712
|
}
|
|
10707
|
-
|
|
10708
10713
|
.after\:bg-gradient-conic::after {
|
|
10709
10714
|
content: var(--tw-content);
|
|
10710
10715
|
background-image: conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops));
|
|
10711
10716
|
}
|
|
10712
|
-
|
|
10713
10717
|
.after\:from-sky-200::after {
|
|
10714
10718
|
content: var(--tw-content);
|
|
10715
10719
|
--tw-gradient-from: #bae6fd var(--tw-gradient-from-position);
|
|
10716
10720
|
--tw-gradient-to: rgb(186 230 253 / 0) var(--tw-gradient-to-position);
|
|
10717
10721
|
--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
|
|
10718
10722
|
}
|
|
10719
|
-
|
|
10720
10723
|
.after\:via-blue-200::after {
|
|
10721
10724
|
content: var(--tw-content);
|
|
10722
10725
|
--tw-gradient-to: rgb(191 219 254 / 0) var(--tw-gradient-to-position);
|
|
10723
10726
|
--tw-gradient-stops: var(--tw-gradient-from), #bfdbfe var(--tw-gradient-via-position), var(--tw-gradient-to);
|
|
10724
10727
|
}
|
|
10725
|
-
|
|
10726
10728
|
.after\:blur-2xl::after {
|
|
10727
10729
|
content: var(--tw-content);
|
|
10728
10730
|
--tw-blur: blur(40px);
|
|
10729
10731
|
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
|
|
10730
10732
|
}
|
|
10731
|
-
|
|
10732
10733
|
.after\:content-\[\'\'\]::after {
|
|
10733
10734
|
--tw-content: '';
|
|
10734
10735
|
content: var(--tw-content);
|
|
10735
10736
|
}
|
|
10736
|
-
|
|
10737
10737
|
.hover\:border-gray-300:hover {
|
|
10738
10738
|
--tw-border-opacity: 1;
|
|
10739
10739
|
border-color: rgb(183 186 189 / var(--tw-border-opacity, 1));
|
|
10740
10740
|
}
|
|
10741
|
-
|
|
10742
10741
|
.hover\:bg-gray-100:hover {
|
|
10743
10742
|
--tw-bg-opacity: 1;
|
|
10744
10743
|
background-color: rgb(236 237 238 / var(--tw-bg-opacity, 1));
|
|
10745
10744
|
}
|
|
10746
|
-
|
|
10747
10745
|
.hover\:bg-gray-200:hover {
|
|
10748
10746
|
--tw-bg-opacity: 1;
|
|
10749
10747
|
background-color: rgb(210 212 213 / var(--tw-bg-opacity, 1));
|
|
10750
10748
|
}
|
|
10751
|
-
|
|
10752
10749
|
.group:hover .group-hover\:translate-x-1 {
|
|
10753
10750
|
--tw-translate-x: 0.25rem;
|
|
10754
10751
|
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));
|
|
10755
10752
|
}
|
|
10756
|
-
|
|
10757
10753
|
@media (prefers-reduced-motion: reduce) {
|
|
10758
10754
|
|
|
10759
10755
|
.motion-reduce\:transform-none {
|
|
10760
10756
|
transform: none;
|
|
10761
10757
|
}
|
|
10762
10758
|
}
|
|
10763
|
-
|
|
10764
10759
|
@media (min-width: 640px) {
|
|
10765
10760
|
|
|
10766
10761
|
.sm\:grid-cols-4 {
|
|
10767
10762
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
|
10768
10763
|
}
|
|
10769
10764
|
}
|
|
10770
|
-
|
|
10771
10765
|
@media (min-width: 768px) {
|
|
10772
10766
|
|
|
10773
10767
|
.md\:grid-cols-6 {
|
|
10774
10768
|
grid-template-columns: repeat(6, minmax(0, 1fr));
|
|
10775
10769
|
}
|
|
10776
10770
|
}
|
|
10777
|
-
|
|
10778
10771
|
@media (min-width: 1024px) {
|
|
10779
10772
|
|
|
10780
10773
|
.lg\:pointer-events-auto {
|
|
@@ -10851,7 +10844,6 @@ table, th, td {
|
|
|
10851
10844
|
height: 360px;
|
|
10852
10845
|
}
|
|
10853
10846
|
}
|
|
10854
|
-
|
|
10855
10847
|
@media (prefers-color-scheme: dark) {
|
|
10856
10848
|
|
|
10857
10849
|
.dark\:border-neutral-800 {
|
|
@@ -10939,7 +10931,6 @@ table, th, td {
|
|
|
10939
10931
|
background-color: rgb(38 38 38 / 0.3);
|
|
10940
10932
|
}
|
|
10941
10933
|
}
|
|
10942
|
-
|
|
10943
10934
|
@media (min-width: 1024px) {
|
|
10944
10935
|
|
|
10945
10936
|
@media (prefers-color-scheme: dark) {
|
package/dist/utils/enum.d.ts
CHANGED
|
@@ -15,3 +15,11 @@ export declare const cardLayoutEnum: {
|
|
|
15
15
|
horizontal: string;
|
|
16
16
|
vertical: string;
|
|
17
17
|
};
|
|
18
|
+
export declare const sectionType: {
|
|
19
|
+
multiplePostsTheme: string;
|
|
20
|
+
singlePostTheme: string;
|
|
21
|
+
postByCategoriesTheme: string;
|
|
22
|
+
contactsProfileTheme: string;
|
|
23
|
+
galleryTheme: string;
|
|
24
|
+
albumTheme: string;
|
|
25
|
+
};
|
package/dist/utils/enum.js
CHANGED
|
@@ -15,3 +15,11 @@ export var cardLayoutEnum = {
|
|
|
15
15
|
horizontal: 'Horizontal',
|
|
16
16
|
vertical: 'Vertical'
|
|
17
17
|
};
|
|
18
|
+
export var sectionType = {
|
|
19
|
+
multiplePostsTheme: "Multiple Posts",
|
|
20
|
+
singlePostTheme: 'Single Post',
|
|
21
|
+
postByCategoriesTheme: 'Post By Categories',
|
|
22
|
+
contactsProfileTheme: 'Contacts Profile',
|
|
23
|
+
galleryTheme: 'Gallery',
|
|
24
|
+
albumTheme: 'Album'
|
|
25
|
+
};
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -111,6 +111,10 @@ export declare const avtarBackgroundSize: (size: string) => {
|
|
|
111
111
|
width: string;
|
|
112
112
|
height: string;
|
|
113
113
|
} | undefined;
|
|
114
|
+
export declare const sectionTypeList: {
|
|
115
|
+
key: string;
|
|
116
|
+
label: string;
|
|
117
|
+
}[];
|
|
114
118
|
export default function generateUtilities(property: string, theme: (property: string) => Record<string, string>): Record<string, Record<string, string>>;
|
|
115
119
|
export declare const customColors: {
|
|
116
120
|
white: string;
|
package/dist/utils/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { sectionType } from "./enum";
|
|
1
2
|
//************Used for typography and color utilities Storybook************
|
|
2
3
|
export var text = "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.";
|
|
3
4
|
export var colorGroups = {
|
|
@@ -416,6 +417,14 @@ export var avtarBackgroundSize = function (size) {
|
|
|
416
417
|
};
|
|
417
418
|
}
|
|
418
419
|
};
|
|
420
|
+
export var sectionTypeList = [
|
|
421
|
+
{ key: sectionType.multiplePostsTheme, label: sectionType.multiplePostsTheme },
|
|
422
|
+
{ key: sectionType.albumTheme, label: sectionType.albumTheme },
|
|
423
|
+
{ key: sectionType.contactsProfileTheme, label: sectionType.contactsProfileTheme },
|
|
424
|
+
{ key: sectionType.singlePostTheme, label: sectionType.singlePostTheme },
|
|
425
|
+
{ key: sectionType.postByCategoriesTheme, label: sectionType.postByCategoriesTheme },
|
|
426
|
+
{ key: sectionType.galleryTheme, label: sectionType.galleryTheme }
|
|
427
|
+
];
|
|
419
428
|
//Plugin for generating utilities (Used in tailwind.config.js)
|
|
420
429
|
export default function generateUtilities(property, theme) {
|
|
421
430
|
var utilities = theme(property);
|