linkedunion-design-kit 1.9.6-beta.1 → 1.9.6-beta.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.
|
@@ -37,9 +37,9 @@ import LUIcon from "../../Icons/LUIcon";
|
|
|
37
37
|
import { buttonStyles } from "..";
|
|
38
38
|
export var variant = {
|
|
39
39
|
fill: "",
|
|
40
|
-
link: "bg-transparent hover:bg-transparent focus:bg-transparent active:bg-transparent !p-0 underline-offset-4 hover:underline border-none",
|
|
41
|
-
outline: "border bg-transparent",
|
|
42
|
-
ghost: "bg-transparent border-none",
|
|
40
|
+
link: "lu-bg-transparent hover:lu-bg-transparent focus:lu-bg-transparent active:lu-bg-transparent !p-0 underline-offset-4 hover:underline border-none",
|
|
41
|
+
outline: "border lu-bg-transparent",
|
|
42
|
+
ghost: "lu-bg-transparent border-none",
|
|
43
43
|
};
|
|
44
44
|
var buttonVariants = cva("inline-flex items-center justify-center gap-2 whitespace-nowrap text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-blue-200 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive cursor-pointer", {
|
|
45
45
|
variants: {
|
|
@@ -40,7 +40,7 @@ export var MultipleNewsCard = function (props) {
|
|
|
40
40
|
// Vertical layout
|
|
41
41
|
return (_jsxs("div", { className: "!p-4 bg-white rounded-2xl flex flex-col !gap-5 max-w-md shadow-lg ".concat(editor === null || editor === void 0 ? void 0 : editor.card), children: [_jsxs("div", { className: "flex ".concat(mediaPosition === "top" ? "flex-col" : "flex-col-reverse", " !gap-4"), children: [mediaPosition === "middle" && (_jsx(Body, { variant: "body-lg", className: "text-gray-600 line-clamp-2 h-14 ".concat(editor === null || editor === void 0 ? void 0 : editor.cardText), dangerouslySetInnerHTML: {
|
|
42
42
|
__html: item.description || "",
|
|
43
|
-
} })), _jsx(CardMedia, { className: "aspect-16/10" }), _jsxs("div", { className: "flex flex-col !gap-1", children: [_jsx(Heading, { variant: "h4-700", className: "line-clamp-1 capitalize ".concat(editor === null || editor === void 0 ? void 0 : editor.cardTitle), children: item === null || item === void 0 ? void 0 : item.title }), (
|
|
43
|
+
} })), _jsx(CardMedia, { className: "aspect-16/10" }), _jsxs("div", { className: "flex flex-col !gap-1", children: [_jsx(Heading, { variant: "h4-700", className: "line-clamp-1 capitalize ".concat(editor === null || editor === void 0 ? void 0 : editor.cardTitle), children: item === null || item === void 0 ? void 0 : item.title }), _jsx(Body, { "aria-description": "short-Description", variant: mediaPosition === "middle" ? "body-lg-500" : "body-xl", className: "".concat(item.description || mediaPosition === "middle" ? "line-clamp-1 text-gray-600" : "line-clamp-2 h-14 text-gray-600", " ").concat(editor === null || editor === void 0 ? void 0 : editor.shortDescription), children: item === null || item === void 0 ? void 0 : item.short_description }), mediaPosition !== "middle" && (_jsx(Body, { variant: "body-lg", className: "text-gray-600 line-clamp-2 ".concat(editor === null || editor === void 0 ? void 0 : editor.cardText), dangerouslySetInnerHTML: {
|
|
44
44
|
__html: item.description || "",
|
|
45
45
|
} }))] })] }), _jsx(ActionButton, {})] }));
|
|
46
46
|
};
|
|
@@ -27,22 +27,22 @@ import { buttonVariants } from "../Button/Button/Button";
|
|
|
27
27
|
import LUIcon from "../Icons/LUIcon";
|
|
28
28
|
var Pagination = function (_a) {
|
|
29
29
|
var className = _a.className, props = __rest(_a, ["className"]);
|
|
30
|
-
return (_jsx("nav", __assign({ role: "navigation", "aria-label": "pagination",
|
|
30
|
+
return (_jsx("nav", __assign({ role: "navigation", "aria-label": "pagination", className: cn("mx-auto flex w-full justify-center", className) }, props)));
|
|
31
31
|
};
|
|
32
32
|
Pagination.displayName = "Pagination";
|
|
33
33
|
var PaginationContent = React.forwardRef(function (_a, ref) {
|
|
34
34
|
var className = _a.className, props = __rest(_a, ["className"]);
|
|
35
|
-
return (_jsx("ul", __assign({
|
|
35
|
+
return (_jsx("ul", __assign({ "data-slot": "reset-bs-ul", ref: ref, className: cn("flex flex-row items-center gap-1", className) }, props)));
|
|
36
36
|
});
|
|
37
37
|
PaginationContent.displayName = "PaginationContent";
|
|
38
38
|
var PaginationItem = React.forwardRef(function (_a, ref) {
|
|
39
39
|
var className = _a.className, props = __rest(_a, ["className"]);
|
|
40
|
-
return (_jsx("li", __assign({ ref: ref,
|
|
40
|
+
return (_jsx("li", __assign({ ref: ref, className: cn("", className) }, props)));
|
|
41
41
|
});
|
|
42
42
|
PaginationItem.displayName = "PaginationItem";
|
|
43
43
|
var PaginationLink = function (_a) {
|
|
44
44
|
var className = _a.className, isActive = _a.isActive, _b = _a.size, size = _b === void 0 ? "md" : _b, _c = _a.color, color = _c === void 0 ? "gray" : _c, _d = _a.variant, variant = _d === void 0 ? "ghost" : _d, props = __rest(_a, ["className", "isActive", "size", "color", "variant"]);
|
|
45
|
-
return (_jsx("a", __assign({ "aria-current": isActive ? "page" : undefined, "data-slot": "
|
|
45
|
+
return (_jsx("a", __assign({ "aria-current": isActive ? "page" : undefined, "data-slot": "reset-bs-link", className: cn(buttonVariants({
|
|
46
46
|
variant: isActive ? (variant === "link" ? variant : "fill") : variant,
|
|
47
47
|
size: size,
|
|
48
48
|
color: color,
|
|
@@ -51,18 +51,18 @@ var PaginationLink = function (_a) {
|
|
|
51
51
|
PaginationLink.displayName = "PaginationLink";
|
|
52
52
|
var PaginationPrevious = function (_a) {
|
|
53
53
|
var className = _a.className, props = __rest(_a, ["className"]);
|
|
54
|
-
return (_jsxs(PaginationLink, __assign({ "aria-label": "Go to previous page", size: "md",
|
|
54
|
+
return (_jsxs(PaginationLink, __assign({ "aria-label": "Go to previous page", size: "md", className: cn("gap-1 pl-2.5", className) }, props, { children: [_jsx(LUIcon, { icon: "arrow-left" }), "Previous"] })));
|
|
55
55
|
};
|
|
56
56
|
PaginationPrevious.displayName = "PaginationPrevious";
|
|
57
57
|
var PaginationNext = function (_a) {
|
|
58
58
|
var className = _a.className, props = __rest(_a, ["className"]);
|
|
59
|
-
return (_jsxs(PaginationLink, __assign({ "aria-label": "Go to next page", size: "md",
|
|
59
|
+
return (_jsxs(PaginationLink, __assign({ "aria-label": "Go to next page", size: "md", className: cn("gap-1 pr-2.5", className) }, props, { children: [_jsx("span", { children: "Next" }), _jsx(LUIcon, { icon: "arrow-right" })] })));
|
|
60
60
|
};
|
|
61
61
|
PaginationNext.displayName = "PaginationNext";
|
|
62
62
|
var PaginationEllipsis = function (_a) {
|
|
63
63
|
var color = _a.color, props = __rest(_a, ["color"]);
|
|
64
64
|
return (_jsxs(_Fragment, { children: [_jsx(LUIcon, __assign({ icon: "ellipsis-horizontal" // Always use ellipsis-horizontal
|
|
65
|
-
, color: color
|
|
65
|
+
, color: color }, props)), _jsx("span", { className: "sr-only", children: "More pages" })] }));
|
|
66
66
|
};
|
|
67
67
|
PaginationEllipsis.displayName = "PaginationEllipsis";
|
|
68
68
|
export { Pagination, PaginationContent, PaginationLink, PaginationItem, PaginationPrevious, PaginationNext, PaginationEllipsis, };
|
package/dist/styles/global.css
CHANGED
|
@@ -2880,13 +2880,6 @@
|
|
|
2880
2880
|
}
|
|
2881
2881
|
}
|
|
2882
2882
|
}
|
|
2883
|
-
.hover\:bg-transparent {
|
|
2884
|
-
&:hover {
|
|
2885
|
-
@media (hover: hover) {
|
|
2886
|
-
background-color: transparent;
|
|
2887
|
-
}
|
|
2888
|
-
}
|
|
2889
|
-
}
|
|
2890
2883
|
.hover\:bg-yellow-50 {
|
|
2891
2884
|
&:hover {
|
|
2892
2885
|
@media (hover: hover) {
|
|
@@ -3465,11 +3458,6 @@
|
|
|
3465
3458
|
background-color: var(--accent);
|
|
3466
3459
|
}
|
|
3467
3460
|
}
|
|
3468
|
-
.focus\:bg-transparent {
|
|
3469
|
-
&:focus {
|
|
3470
|
-
background-color: transparent;
|
|
3471
|
-
}
|
|
3472
|
-
}
|
|
3473
3461
|
.focus\:text-accent-foreground {
|
|
3474
3462
|
&:focus {
|
|
3475
3463
|
color: var(--accent-foreground);
|
|
@@ -3701,11 +3689,6 @@
|
|
|
3701
3689
|
background-color: #73030e;
|
|
3702
3690
|
}
|
|
3703
3691
|
}
|
|
3704
|
-
.active\:bg-transparent {
|
|
3705
|
-
&:active {
|
|
3706
|
-
background-color: transparent;
|
|
3707
|
-
}
|
|
3708
|
-
}
|
|
3709
3692
|
.active\:bg-yellow-500 {
|
|
3710
3693
|
&:active {
|
|
3711
3694
|
background-color: #ffd333;
|
|
@@ -4770,6 +4753,11 @@
|
|
|
4770
4753
|
--sidebar-border: oklch(0.922 0 0);
|
|
4771
4754
|
--sidebar-ring: oklch(0.708 0 0);
|
|
4772
4755
|
}
|
|
4756
|
+
@layer utilities {
|
|
4757
|
+
.lu-bg-transparent {
|
|
4758
|
+
background-color: transparent;
|
|
4759
|
+
}
|
|
4760
|
+
}
|
|
4773
4761
|
@property --tw-translate-x {
|
|
4774
4762
|
syntax: "*";
|
|
4775
4763
|
inherits: false;
|