@privateers/ui 0.3.18 → 0.3.19
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 +10 -8
- 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 +10 -8
- package/dist/index.js.map +1 -1
- package/dist/styles/brands/dis-creadis.css +17 -7
- package/dist/styles/brands/m-plus.css +5 -2
- package/dist/styles/brands/retur.css +152 -0
- package/dist/styles/library.css +69 -0
- package/package.json +3 -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,
|
|
@@ -1567,7 +1569,7 @@ function Slider({
|
|
|
1567
1569
|
{
|
|
1568
1570
|
"data-slot": "slider",
|
|
1569
1571
|
defaultValue,
|
|
1570
|
-
value,
|
|
1572
|
+
...value !== void 0 ? { value } : {},
|
|
1571
1573
|
min,
|
|
1572
1574
|
max,
|
|
1573
1575
|
className: cn(
|
|
@@ -1580,7 +1582,7 @@ function Slider({
|
|
|
1580
1582
|
Slider$1.Track,
|
|
1581
1583
|
{
|
|
1582
1584
|
"data-slot": "slider-track",
|
|
1583
|
-
className: "relative h-1.5 w-full grow overflow-hidden rounded-full bg-primary/
|
|
1585
|
+
className: "relative h-1.5 w-full grow overflow-hidden rounded-full bg-primary/40",
|
|
1584
1586
|
children: /* @__PURE__ */ jsx(
|
|
1585
1587
|
Slider$1.Range,
|
|
1586
1588
|
{
|
|
@@ -1594,7 +1596,7 @@ function Slider({
|
|
|
1594
1596
|
Slider$1.Thumb,
|
|
1595
1597
|
{
|
|
1596
1598
|
"data-slot": "slider-thumb",
|
|
1597
|
-
className: "block size-4 rounded-full border border-primary
|
|
1599
|
+
className: "block size-4 rounded-full border-2 border-primary bg-primary-foreground shadow transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50"
|
|
1598
1600
|
},
|
|
1599
1601
|
index
|
|
1600
1602
|
))
|
|
@@ -1743,7 +1745,7 @@ function Switch({
|
|
|
1743
1745
|
"data-slot": "switch-thumb",
|
|
1744
1746
|
className: cn(
|
|
1745
1747
|
"pointer-events-none block size-4 rounded-full bg-background shadow-lg ring-0 transition-transform",
|
|
1746
|
-
"data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0"
|
|
1748
|
+
"data-[state=checked]:translate-x-4 data-[state=checked]:bg-primary-foreground data-[state=unchecked]:translate-x-0"
|
|
1747
1749
|
)
|
|
1748
1750
|
}
|
|
1749
1751
|
)
|