linkedunion-design-kit 1.9.7 → 1.9.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.
|
@@ -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: {
|
|
@@ -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
|
@@ -2881,13 +2881,6 @@
|
|
|
2881
2881
|
}
|
|
2882
2882
|
}
|
|
2883
2883
|
}
|
|
2884
|
-
.hover\:bg-transparent {
|
|
2885
|
-
&:hover {
|
|
2886
|
-
@media (hover: hover) {
|
|
2887
|
-
background-color: transparent;
|
|
2888
|
-
}
|
|
2889
|
-
}
|
|
2890
|
-
}
|
|
2891
2884
|
.hover\:bg-yellow-50 {
|
|
2892
2885
|
&:hover {
|
|
2893
2886
|
@media (hover: hover) {
|
|
@@ -3466,11 +3459,6 @@
|
|
|
3466
3459
|
background-color: var(--accent);
|
|
3467
3460
|
}
|
|
3468
3461
|
}
|
|
3469
|
-
.focus\:bg-transparent {
|
|
3470
|
-
&:focus {
|
|
3471
|
-
background-color: transparent;
|
|
3472
|
-
}
|
|
3473
|
-
}
|
|
3474
3462
|
.focus\:text-accent-foreground {
|
|
3475
3463
|
&:focus {
|
|
3476
3464
|
color: var(--accent-foreground);
|
|
@@ -3702,11 +3690,6 @@
|
|
|
3702
3690
|
background-color: #73030e;
|
|
3703
3691
|
}
|
|
3704
3692
|
}
|
|
3705
|
-
.active\:bg-transparent {
|
|
3706
|
-
&:active {
|
|
3707
|
-
background-color: transparent;
|
|
3708
|
-
}
|
|
3709
|
-
}
|
|
3710
3693
|
.active\:bg-yellow-500 {
|
|
3711
3694
|
&:active {
|
|
3712
3695
|
background-color: #ffd333;
|
|
@@ -4761,6 +4744,11 @@
|
|
|
4761
4744
|
--sidebar-border: oklch(0.922 0 0);
|
|
4762
4745
|
--sidebar-ring: oklch(0.708 0 0);
|
|
4763
4746
|
}
|
|
4747
|
+
@layer utilities {
|
|
4748
|
+
.lu-bg-transparent {
|
|
4749
|
+
background-color: transparent;
|
|
4750
|
+
}
|
|
4751
|
+
}
|
|
4764
4752
|
@property --tw-translate-x {
|
|
4765
4753
|
syntax: "*";
|
|
4766
4754
|
inherits: false;
|