@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.cjs
CHANGED
|
@@ -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,
|
|
@@ -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/
|
|
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
|
|
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
|
)
|