@privateers/ui 0.3.18 → 0.3.20

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 CHANGED
@@ -126,7 +126,7 @@ function AvatarFallback({
126
126
  {
127
127
  "data-slot": "avatar-fallback",
128
128
  className: cn(
129
- "flex size-full items-center justify-center rounded-full bg-muted text-sm font-medium",
129
+ "bg-muted text-muted-foreground flex size-full items-center justify-center rounded-full text-sm font-medium",
130
130
  className
131
131
  ),
132
132
  ...props
@@ -949,18 +949,18 @@ function PaginationItem({
949
949
  function PaginationLink({
950
950
  className,
951
951
  isActive,
952
+ size = "icon",
952
953
  ...props
953
954
  }) {
955
+ const variant = isActive ? "outline" : "ghost";
954
956
  return /* @__PURE__ */ jsxRuntime.jsx(
955
957
  "button",
956
958
  {
957
959
  "aria-current": isActive ? "page" : void 0,
958
960
  "data-slot": "pagination-link",
961
+ "data-variant": variant,
959
962
  className: cn(
960
- buttonVariants({
961
- variant: isActive ? "outline" : "ghost",
962
- size: "icon"
963
- }),
963
+ buttonVariants({ variant, size }),
964
964
  className
965
965
  ),
966
966
  ...props
@@ -975,6 +975,7 @@ function PaginationPrevious({
975
975
  PaginationLink,
976
976
  {
977
977
  "aria-label": "Go to previous page",
978
+ size: "default",
978
979
  "data-slot": "pagination-previous",
979
980
  className: cn("gap-1 pl-2.5", className),
980
981
  ...props,
@@ -993,6 +994,7 @@ function PaginationNext({
993
994
  PaginationLink,
994
995
  {
995
996
  "aria-label": "Go to next page",
997
+ size: "default",
996
998
  "data-slot": "pagination-next",
997
999
  className: cn("gap-1 pr-2.5", className),
998
1000
  ...props,
@@ -1151,7 +1153,7 @@ function SheetOverlay({
1151
1153
  {
1152
1154
  "data-slot": "sheet-overlay",
1153
1155
  className: cn(
1154
- "fixed inset-0 z-50 bg-black/80",
1156
+ "fixed inset-0 z-50 bg-overlay/80",
1155
1157
  "data-[state=open]:animate-in data-[state=closed]:animate-out",
1156
1158
  "data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
1157
1159
  className
@@ -1588,7 +1590,7 @@ function Slider({
1588
1590
  {
1589
1591
  "data-slot": "slider",
1590
1592
  defaultValue,
1591
- value,
1593
+ ...value !== void 0 ? { value } : {},
1592
1594
  min,
1593
1595
  max,
1594
1596
  className: cn(
@@ -1601,7 +1603,7 @@ function Slider({
1601
1603
  radixUi.Slider.Track,
1602
1604
  {
1603
1605
  "data-slot": "slider-track",
1604
- className: "relative h-1.5 w-full grow overflow-hidden rounded-full bg-primary/20",
1606
+ className: "relative h-1.5 w-full grow overflow-hidden rounded-full bg-primary/40",
1605
1607
  children: /* @__PURE__ */ jsxRuntime.jsx(
1606
1608
  radixUi.Slider.Range,
1607
1609
  {
@@ -1615,7 +1617,7 @@ function Slider({
1615
1617
  radixUi.Slider.Thumb,
1616
1618
  {
1617
1619
  "data-slot": "slider-thumb",
1618
- 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"
1620
+ 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"
1619
1621
  },
1620
1622
  index
1621
1623
  ))
@@ -1764,7 +1766,7 @@ function Switch({
1764
1766
  "data-slot": "switch-thumb",
1765
1767
  className: cn(
1766
1768
  "pointer-events-none block size-4 rounded-full bg-background shadow-lg ring-0 transition-transform",
1767
- "data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0"
1769
+ "data-[state=checked]:translate-x-4 data-[state=checked]:bg-primary-foreground data-[state=unchecked]:translate-x-0"
1768
1770
  )
1769
1771
  }
1770
1772
  )
@@ -2514,7 +2516,7 @@ function AlertDialogOverlay({
2514
2516
  radixUi.AlertDialog.Overlay,
2515
2517
  {
2516
2518
  "data-slot": "alert-dialog-overlay",
2517
- className: cn("data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs fixed inset-0 z-50", className),
2519
+ className: cn("data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-overlay/10 duration-100 supports-backdrop-filter:backdrop-blur-xs fixed inset-0 z-50", className),
2518
2520
  ...props
2519
2521
  }
2520
2522
  );
@@ -2667,7 +2669,7 @@ function DialogOverlay({
2667
2669
  {
2668
2670
  "data-slot": "dialog-overlay",
2669
2671
  className: cn(
2670
- "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 bg-black/50 fixed inset-0 z-50",
2672
+ "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 bg-overlay/50 fixed inset-0 z-50",
2671
2673
  className
2672
2674
  ),
2673
2675
  ...props