@7onic-ui/react 0.2.5 → 0.2.7
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/README.md +2 -2
- package/dist/index.js +15 -16
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15 -16
- package/dist/index.mjs.map +1 -1
- package/llms.txt +7 -3
- package/package.json +1 -3
package/dist/index.mjs
CHANGED
|
@@ -1355,7 +1355,7 @@ var Field = Object.assign(FieldRoot, {
|
|
|
1355
1355
|
var inputVariants = cva9(
|
|
1356
1356
|
[
|
|
1357
1357
|
"flex w-full bg-background text-foreground placeholder:text-foreground/30",
|
|
1358
|
-
"border transition-colors duration-micro",
|
|
1358
|
+
"border transition-colors duration-micro outline-transparent",
|
|
1359
1359
|
"focus:[outline:2px_solid_transparent]",
|
|
1360
1360
|
"disabled:cursor-not-allowed disabled:opacity-50 disabled:bg-background-muted",
|
|
1361
1361
|
"file:border-0 file:bg-transparent file:text-sm file:font-semibold"
|
|
@@ -1564,7 +1564,7 @@ import { cva as cva10 } from "class-variance-authority";
|
|
|
1564
1564
|
var textareaVariants = cva10(
|
|
1565
1565
|
[
|
|
1566
1566
|
"flex w-full bg-background text-foreground placeholder:text-foreground/30",
|
|
1567
|
-
"border transition-colors duration-micro",
|
|
1567
|
+
"border transition-colors duration-micro outline-transparent",
|
|
1568
1568
|
"focus:[outline:2px_solid_transparent]",
|
|
1569
1569
|
"disabled:cursor-not-allowed disabled:opacity-50 disabled:bg-background-muted"
|
|
1570
1570
|
].join(" "),
|
|
@@ -2304,7 +2304,7 @@ var DropdownMenuContent = React17.forwardRef(({ className, sideOffset = 4, radiu
|
|
|
2304
2304
|
onCloseAutoFocus?.(e);
|
|
2305
2305
|
},
|
|
2306
2306
|
className: cn(
|
|
2307
|
-
"z-dropdown min-w-[8rem] overflow-hidden border border-border bg-background shadow-lg",
|
|
2307
|
+
"z-dropdown min-w-[8rem] overflow-hidden border border-border bg-background text-foreground shadow-lg",
|
|
2308
2308
|
flush ? "py-1" : "p-1",
|
|
2309
2309
|
contentRadiusMap[radius],
|
|
2310
2310
|
className
|
|
@@ -2443,7 +2443,7 @@ var DropdownMenuSubContent = React17.forwardRef(({ className, ...props }, ref) =
|
|
|
2443
2443
|
{
|
|
2444
2444
|
ref,
|
|
2445
2445
|
className: cn(
|
|
2446
|
-
"z-dropdown min-w-[8rem] overflow-hidden border border-border bg-background shadow-lg",
|
|
2446
|
+
"z-dropdown min-w-[8rem] overflow-hidden border border-border bg-background text-foreground shadow-lg",
|
|
2447
2447
|
flush ? "py-1" : "p-1",
|
|
2448
2448
|
contentRadiusMap[radius],
|
|
2449
2449
|
className
|
|
@@ -2603,7 +2603,7 @@ var SelectTrigger = React18.forwardRef(({ className, children, ...props }, ref)
|
|
|
2603
2603
|
"flex w-full items-center justify-between bg-background text-foreground hover:bg-background-muted",
|
|
2604
2604
|
"border border-border",
|
|
2605
2605
|
triggerRadiusMap[radius],
|
|
2606
|
-
"transition-colors duration-micro",
|
|
2606
|
+
"transition-colors duration-micro outline-transparent",
|
|
2607
2607
|
"focus-visible:shadow-[0_0_0_2px_var(--color-focus-ring)] focus:[outline:2px_solid_transparent]",
|
|
2608
2608
|
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
2609
2609
|
"data-[placeholder]:text-foreground/30",
|
|
@@ -2661,7 +2661,7 @@ var SelectContent = React18.forwardRef(({ className, children, position = "poppe
|
|
|
2661
2661
|
onCloseAutoFocus?.(e);
|
|
2662
2662
|
},
|
|
2663
2663
|
className: cn(
|
|
2664
|
-
"relative z-dropdown min-w-[var(--radix-select-trigger-width)] overflow-hidden border border-border bg-background shadow-lg",
|
|
2664
|
+
"relative z-dropdown min-w-[var(--radix-select-trigger-width)] overflow-hidden border border-border bg-background text-foreground shadow-lg",
|
|
2665
2665
|
flush ? "py-1" : "p-1",
|
|
2666
2666
|
contentRadiusMap2[contentRadius],
|
|
2667
2667
|
position === "popper" && "max-h-[var(--radix-select-content-available-height)]",
|
|
@@ -4660,9 +4660,8 @@ var PaginationRoot = React26.forwardRef(
|
|
|
4660
4660
|
color = "default",
|
|
4661
4661
|
radius = "md",
|
|
4662
4662
|
disabled = false,
|
|
4663
|
-
|
|
4664
|
-
|
|
4665
|
-
withEdges: _withEdges = false,
|
|
4663
|
+
withControls = true,
|
|
4664
|
+
withEdges = false,
|
|
4666
4665
|
loop = false,
|
|
4667
4666
|
children,
|
|
4668
4667
|
...props
|
|
@@ -4700,7 +4699,7 @@ var PaginationRoot = React26.forwardRef(
|
|
|
4700
4699
|
className: cn("", className),
|
|
4701
4700
|
...props
|
|
4702
4701
|
},
|
|
4703
|
-
children
|
|
4702
|
+
children ?? /* @__PURE__ */ React26.createElement(PaginationContent, null, withEdges && /* @__PURE__ */ React26.createElement(PaginationItem, null, /* @__PURE__ */ React26.createElement(PaginationFirst, null)), withControls && /* @__PURE__ */ React26.createElement(PaginationItem, null, /* @__PURE__ */ React26.createElement(PaginationPrevious, null)), /* @__PURE__ */ React26.createElement(PaginationItems, null), withControls && /* @__PURE__ */ React26.createElement(PaginationItem, null, /* @__PURE__ */ React26.createElement(PaginationNext, null)), withEdges && /* @__PURE__ */ React26.createElement(PaginationItem, null, /* @__PURE__ */ React26.createElement(PaginationLast, null)))
|
|
4704
4703
|
));
|
|
4705
4704
|
}
|
|
4706
4705
|
);
|
|
@@ -4997,7 +4996,7 @@ var ModalContent = React27.forwardRef(({ className, children, size = "sm", scrol
|
|
|
4997
4996
|
"div",
|
|
4998
4997
|
{
|
|
4999
4998
|
className: cn(
|
|
5000
|
-
"relative w-full rounded-xl bg-background shadow-xl overflow-hidden",
|
|
4999
|
+
"relative w-full rounded-xl bg-background text-foreground shadow-xl overflow-hidden",
|
|
5001
5000
|
modalContentVariants({ size }),
|
|
5002
5001
|
className
|
|
5003
5002
|
),
|
|
@@ -5013,7 +5012,7 @@ var ModalContent = React27.forwardRef(({ className, children, size = "sm", scrol
|
|
|
5013
5012
|
{
|
|
5014
5013
|
ref,
|
|
5015
5014
|
className: cn(
|
|
5016
|
-
"relative w-full rounded-xl bg-background shadow-xl overflow-hidden",
|
|
5015
|
+
"relative w-full rounded-xl bg-background text-foreground shadow-xl overflow-hidden",
|
|
5017
5016
|
"focus:outline-none",
|
|
5018
5017
|
"data-[state=open]:animate-modal-content-enter data-[state=closed]:animate-modal-content-exit",
|
|
5019
5018
|
modalContentVariants({ size }),
|
|
@@ -5117,7 +5116,7 @@ var AlertModalContent = React27.forwardRef(({ className, children, size = "sm",
|
|
|
5117
5116
|
{
|
|
5118
5117
|
ref,
|
|
5119
5118
|
className: cn(
|
|
5120
|
-
"relative w-full rounded-xl bg-background shadow-xl",
|
|
5119
|
+
"relative w-full rounded-xl bg-background text-foreground shadow-xl",
|
|
5121
5120
|
"focus:outline-none",
|
|
5122
5121
|
"data-[state=open]:animate-modal-content-enter data-[state=closed]:animate-modal-content-exit",
|
|
5123
5122
|
alertModalContentVariants({ size }),
|
|
@@ -5299,7 +5298,7 @@ var DrawerContent = React28.forwardRef(({ className, children, side = "right", s
|
|
|
5299
5298
|
{
|
|
5300
5299
|
ref,
|
|
5301
5300
|
className: cn(
|
|
5302
|
-
"fixed z-modal flex flex-col bg-background shadow-xl",
|
|
5301
|
+
"fixed z-modal flex flex-col bg-background text-foreground shadow-xl",
|
|
5303
5302
|
"focus:outline-none",
|
|
5304
5303
|
SIDE_POSITION[side],
|
|
5305
5304
|
isHorizontal ? "max-w-full h-full" : "max-h-full w-full",
|
|
@@ -5493,8 +5492,8 @@ var popoverContentVariants = cva25(
|
|
|
5493
5492
|
{
|
|
5494
5493
|
variants: {
|
|
5495
5494
|
variant: {
|
|
5496
|
-
default: "bg-background-paper border border-border shadow-lg",
|
|
5497
|
-
elevated: "bg-background-paper/95 border border-border-subtle shadow-xl backdrop-blur-sm"
|
|
5495
|
+
default: "bg-background-paper text-foreground border border-border shadow-lg",
|
|
5496
|
+
elevated: "bg-background-paper/95 text-foreground border border-border-subtle shadow-xl backdrop-blur-sm"
|
|
5498
5497
|
},
|
|
5499
5498
|
size: {
|
|
5500
5499
|
sm: "text-sm p-3 rounded-lg",
|