@privateers/ui 0.3.17 → 0.3.18

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.d.cts CHANGED
@@ -134,9 +134,8 @@ 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";
138
137
  } & Pick<React$1.ComponentProps<"a">, "href"> & React$1.ComponentProps<"button">;
139
- declare function PaginationLink({ className, isActive, size, ...props }: PaginationLinkProps): react_jsx_runtime.JSX.Element;
138
+ declare function PaginationLink({ className, isActive, ...props }: PaginationLinkProps): react_jsx_runtime.JSX.Element;
140
139
  declare function PaginationPrevious({ className, ...props }: React$1.ComponentProps<typeof PaginationLink>): react_jsx_runtime.JSX.Element;
141
140
  declare function PaginationNext({ className, ...props }: React$1.ComponentProps<typeof PaginationLink>): react_jsx_runtime.JSX.Element;
142
141
  declare function PaginationEllipsis({ className, ...props }: React$1.ComponentProps<"span">): react_jsx_runtime.JSX.Element;
package/dist/index.d.ts CHANGED
@@ -134,9 +134,8 @@ 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";
138
137
  } & Pick<React$1.ComponentProps<"a">, "href"> & React$1.ComponentProps<"button">;
139
- declare function PaginationLink({ className, isActive, size, ...props }: PaginationLinkProps): react_jsx_runtime.JSX.Element;
138
+ declare function PaginationLink({ className, isActive, ...props }: PaginationLinkProps): react_jsx_runtime.JSX.Element;
140
139
  declare function PaginationPrevious({ className, ...props }: React$1.ComponentProps<typeof PaginationLink>): react_jsx_runtime.JSX.Element;
141
140
  declare function PaginationNext({ className, ...props }: React$1.ComponentProps<typeof PaginationLink>): react_jsx_runtime.JSX.Element;
142
141
  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",
932
931
  ...props
933
932
  }) {
934
- const variant = isActive ? "outline" : "ghost";
935
933
  return /* @__PURE__ */ jsx(
936
934
  "button",
937
935
  {
938
936
  "aria-current": isActive ? "page" : void 0,
939
937
  "data-slot": "pagination-link",
940
- "data-variant": variant,
941
938
  className: cn(
942
- buttonVariants({ variant, size }),
939
+ buttonVariants({
940
+ variant: isActive ? "outline" : "ghost",
941
+ size: "icon"
942
+ }),
943
943
  className
944
944
  ),
945
945
  ...props
@@ -954,7 +954,6 @@ function PaginationPrevious({
954
954
  PaginationLink,
955
955
  {
956
956
  "aria-label": "Go to previous page",
957
- size: "default",
958
957
  "data-slot": "pagination-previous",
959
958
  className: cn("gap-1 pl-2.5", className),
960
959
  ...props,
@@ -973,7 +972,6 @@ function PaginationNext({
973
972
  PaginationLink,
974
973
  {
975
974
  "aria-label": "Go to next page",
976
- size: "default",
977
975
  "data-slot": "pagination-next",
978
976
  className: cn("gap-1 pr-2.5", className),
979
977
  ...props,
@@ -1569,7 +1567,7 @@ function Slider({
1569
1567
  {
1570
1568
  "data-slot": "slider",
1571
1569
  defaultValue,
1572
- ...value !== void 0 ? { value } : {},
1570
+ value,
1573
1571
  min,
1574
1572
  max,
1575
1573
  className: cn(
@@ -1582,7 +1580,7 @@ function Slider({
1582
1580
  Slider$1.Track,
1583
1581
  {
1584
1582
  "data-slot": "slider-track",
1585
- className: "relative h-1.5 w-full grow overflow-hidden rounded-full bg-primary/40",
1583
+ className: "relative h-1.5 w-full grow overflow-hidden rounded-full bg-primary/20",
1586
1584
  children: /* @__PURE__ */ jsx(
1587
1585
  Slider$1.Range,
1588
1586
  {
@@ -1596,7 +1594,7 @@ function Slider({
1596
1594
  Slider$1.Thumb,
1597
1595
  {
1598
1596
  "data-slot": "slider-thumb",
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"
1597
+ className: "block size-4 rounded-full border border-primary/50 bg-background shadow transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50"
1600
1598
  },
1601
1599
  index
1602
1600
  ))
@@ -1745,7 +1743,7 @@ function Switch({
1745
1743
  "data-slot": "switch-thumb",
1746
1744
  className: cn(
1747
1745
  "pointer-events-none block size-4 rounded-full bg-background shadow-lg ring-0 transition-transform",
1748
- "data-[state=checked]:translate-x-4 data-[state=checked]:bg-primary-foreground data-[state=unchecked]:translate-x-0"
1746
+ "data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0"
1749
1747
  )
1750
1748
  }
1751
1749
  )