@privateers/ui 0.3.16 → 0.3.17
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/index.cjs +6 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +6 -4
- package/dist/index.js.map +1 -1
- package/dist/styles/brands/dis-creadis.css +3 -3
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -134,8 +134,9 @@ declare function PaginationContent({ className, ...props }: React$1.ComponentPro
|
|
|
134
134
|
declare function PaginationItem({ ...props }: React$1.ComponentProps<"li">): react_jsx_runtime.JSX.Element;
|
|
135
135
|
type PaginationLinkProps = {
|
|
136
136
|
isActive?: boolean;
|
|
137
|
+
size?: "default" | "sm" | "icon";
|
|
137
138
|
} & Pick<React$1.ComponentProps<"a">, "href"> & React$1.ComponentProps<"button">;
|
|
138
|
-
declare function PaginationLink({ className, isActive, ...props }: PaginationLinkProps): react_jsx_runtime.JSX.Element;
|
|
139
|
+
declare function PaginationLink({ className, isActive, size, ...props }: PaginationLinkProps): react_jsx_runtime.JSX.Element;
|
|
139
140
|
declare function PaginationPrevious({ className, ...props }: React$1.ComponentProps<typeof PaginationLink>): react_jsx_runtime.JSX.Element;
|
|
140
141
|
declare function PaginationNext({ className, ...props }: React$1.ComponentProps<typeof PaginationLink>): react_jsx_runtime.JSX.Element;
|
|
141
142
|
declare function PaginationEllipsis({ className, ...props }: React$1.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
|
package/dist/index.d.ts
CHANGED
|
@@ -134,8 +134,9 @@ declare function PaginationContent({ className, ...props }: React$1.ComponentPro
|
|
|
134
134
|
declare function PaginationItem({ ...props }: React$1.ComponentProps<"li">): react_jsx_runtime.JSX.Element;
|
|
135
135
|
type PaginationLinkProps = {
|
|
136
136
|
isActive?: boolean;
|
|
137
|
+
size?: "default" | "sm" | "icon";
|
|
137
138
|
} & Pick<React$1.ComponentProps<"a">, "href"> & React$1.ComponentProps<"button">;
|
|
138
|
-
declare function PaginationLink({ className, isActive, ...props }: PaginationLinkProps): react_jsx_runtime.JSX.Element;
|
|
139
|
+
declare function PaginationLink({ className, isActive, size, ...props }: PaginationLinkProps): react_jsx_runtime.JSX.Element;
|
|
139
140
|
declare function PaginationPrevious({ className, ...props }: React$1.ComponentProps<typeof PaginationLink>): react_jsx_runtime.JSX.Element;
|
|
140
141
|
declare function PaginationNext({ className, ...props }: React$1.ComponentProps<typeof PaginationLink>): react_jsx_runtime.JSX.Element;
|
|
141
142
|
declare function PaginationEllipsis({ className, ...props }: React$1.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
|
package/dist/index.js
CHANGED
|
@@ -928,18 +928,18 @@ function PaginationItem({
|
|
|
928
928
|
function PaginationLink({
|
|
929
929
|
className,
|
|
930
930
|
isActive,
|
|
931
|
+
size = "icon",
|
|
931
932
|
...props
|
|
932
933
|
}) {
|
|
934
|
+
const variant = isActive ? "outline" : "ghost";
|
|
933
935
|
return /* @__PURE__ */ jsx(
|
|
934
936
|
"button",
|
|
935
937
|
{
|
|
936
938
|
"aria-current": isActive ? "page" : void 0,
|
|
937
939
|
"data-slot": "pagination-link",
|
|
940
|
+
"data-variant": variant,
|
|
938
941
|
className: cn(
|
|
939
|
-
buttonVariants({
|
|
940
|
-
variant: isActive ? "outline" : "ghost",
|
|
941
|
-
size: "icon"
|
|
942
|
-
}),
|
|
942
|
+
buttonVariants({ variant, size }),
|
|
943
943
|
className
|
|
944
944
|
),
|
|
945
945
|
...props
|
|
@@ -954,6 +954,7 @@ function PaginationPrevious({
|
|
|
954
954
|
PaginationLink,
|
|
955
955
|
{
|
|
956
956
|
"aria-label": "Go to previous page",
|
|
957
|
+
size: "default",
|
|
957
958
|
"data-slot": "pagination-previous",
|
|
958
959
|
className: cn("gap-1 pl-2.5", className),
|
|
959
960
|
...props,
|
|
@@ -972,6 +973,7 @@ function PaginationNext({
|
|
|
972
973
|
PaginationLink,
|
|
973
974
|
{
|
|
974
975
|
"aria-label": "Go to next page",
|
|
976
|
+
size: "default",
|
|
975
977
|
"data-slot": "pagination-next",
|
|
976
978
|
className: cn("gap-1 pr-2.5", className),
|
|
977
979
|
...props,
|