@7onic-ui/react 0.3.8 → 0.3.9
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/chart.js +1 -1
- package/dist/chart.js.map +1 -1
- package/dist/chart.mjs +1 -1
- package/dist/chart.mjs.map +1 -1
- package/dist/index.js +22 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +22 -7
- package/dist/index.mjs.map +1 -1
- package/llms.txt +6 -2
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2279,7 +2279,7 @@ var DropdownMenuContent = React17.forwardRef(({ className, sideOffset = 4, radiu
|
|
|
2279
2279
|
onCloseAutoFocus?.(e);
|
|
2280
2280
|
},
|
|
2281
2281
|
className: cn(
|
|
2282
|
-
"z-
|
|
2282
|
+
"z-popover min-w-[8rem] overflow-hidden border border-border bg-background text-foreground shadow-lg",
|
|
2283
2283
|
flush ? "py-1" : "p-1",
|
|
2284
2284
|
contentRadiusMap[radius],
|
|
2285
2285
|
className
|
|
@@ -2418,7 +2418,7 @@ var DropdownMenuSubContent = React17.forwardRef(({ className, ...props }, ref) =
|
|
|
2418
2418
|
{
|
|
2419
2419
|
ref,
|
|
2420
2420
|
className: cn(
|
|
2421
|
-
"z-
|
|
2421
|
+
"z-popover min-w-[8rem] overflow-hidden border border-border bg-background text-foreground shadow-lg",
|
|
2422
2422
|
flush ? "py-1" : "p-1",
|
|
2423
2423
|
contentRadiusMap[radius],
|
|
2424
2424
|
className
|
|
@@ -2621,7 +2621,7 @@ var SelectContent = React18.forwardRef(({ className, children, position = "poppe
|
|
|
2621
2621
|
onCloseAutoFocus?.(e);
|
|
2622
2622
|
},
|
|
2623
2623
|
className: cn(
|
|
2624
|
-
"relative z-
|
|
2624
|
+
"relative z-popover min-w-[var(--radix-select-trigger-width)] overflow-hidden border border-border bg-background text-foreground shadow-lg",
|
|
2625
2625
|
flush ? "py-1" : "p-1",
|
|
2626
2626
|
contentRadiusMap2[contentRadius],
|
|
2627
2627
|
position === "popper" && "max-h-[var(--radix-select-content-available-height)]",
|
|
@@ -3778,7 +3778,8 @@ var tabsTriggerVariants = cva20(
|
|
|
3778
3778
|
[
|
|
3779
3779
|
"inline-flex items-center justify-center gap-2 whitespace-nowrap",
|
|
3780
3780
|
"transition-all duration-micro ease-out cursor-pointer",
|
|
3781
|
-
|
|
3781
|
+
// Keyboard-only focus ring: see pointer tracking in TabsTrigger
|
|
3782
|
+
"[&:focus-visible:not([data-pointer-focus])]:focus-ring",
|
|
3782
3783
|
"disabled:pointer-events-none disabled:text-text-subtle disabled:opacity-50"
|
|
3783
3784
|
].join(" "),
|
|
3784
3785
|
{
|
|
@@ -3882,9 +3883,10 @@ var pillItemRadiusClasses = {
|
|
|
3882
3883
|
"3xl": "rounded-2xl",
|
|
3883
3884
|
full: "rounded-full"
|
|
3884
3885
|
};
|
|
3885
|
-
var TabsTrigger = React24.forwardRef(({ className, children, ...props }, ref) => {
|
|
3886
|
+
var TabsTrigger = React24.forwardRef(({ className, children, onPointerDown, onKeyDown, onBlur, ...props }, ref) => {
|
|
3886
3887
|
const { variant, size, fitted, color, radius } = useTabsStyleContext();
|
|
3887
3888
|
const resolvedSize = size || "default";
|
|
3889
|
+
const [pointerFocus, setPointerFocus] = React24.useState(false);
|
|
3888
3890
|
return /* @__PURE__ */ React24.createElement(
|
|
3889
3891
|
TabsPrimitive.Trigger,
|
|
3890
3892
|
{
|
|
@@ -3897,6 +3899,19 @@ var TabsTrigger = React24.forwardRef(({ className, children, ...props }, ref) =>
|
|
|
3897
3899
|
variant === "pill" && pillItemRadiusClasses[radius || "md"],
|
|
3898
3900
|
className
|
|
3899
3901
|
),
|
|
3902
|
+
"data-pointer-focus": pointerFocus ? "" : void 0,
|
|
3903
|
+
onPointerDown: (event) => {
|
|
3904
|
+
setPointerFocus(true);
|
|
3905
|
+
onPointerDown?.(event);
|
|
3906
|
+
},
|
|
3907
|
+
onKeyDown: (event) => {
|
|
3908
|
+
setPointerFocus(false);
|
|
3909
|
+
onKeyDown?.(event);
|
|
3910
|
+
},
|
|
3911
|
+
onBlur: (event) => {
|
|
3912
|
+
setPointerFocus(false);
|
|
3913
|
+
onBlur?.(event);
|
|
3914
|
+
},
|
|
3900
3915
|
...props
|
|
3901
3916
|
},
|
|
3902
3917
|
children
|
|
@@ -5338,7 +5353,7 @@ var ANIMATION_CLASSES3 = {
|
|
|
5338
5353
|
right: "data-[state=open]:animate-popover-right-enter data-[state=closed]:animate-popover-right-exit"
|
|
5339
5354
|
};
|
|
5340
5355
|
var popoverContentVariants = cva25(
|
|
5341
|
-
"relative z-popover font-normal select-none w-auto max-w-[calc(100vw-16px)] outline-none",
|
|
5356
|
+
"relative z-popover flex flex-col font-normal select-none w-auto max-w-[calc(100vw-16px)] max-h-[var(--radix-popover-content-available-height)] outline-none",
|
|
5342
5357
|
{
|
|
5343
5358
|
variants: {
|
|
5344
5359
|
variant: {
|
|
@@ -5395,7 +5410,7 @@ var PopoverContent = React30.forwardRef(({ className, variant = "default", size,
|
|
|
5395
5410
|
},
|
|
5396
5411
|
closeIcon || /* @__PURE__ */ React30.createElement(DefaultCloseIcon3, { className: "icon-sm" })
|
|
5397
5412
|
),
|
|
5398
|
-
children,
|
|
5413
|
+
/* @__PURE__ */ React30.createElement("div", { className: "min-h-0 overflow-y-auto -m-1 p-1" }, children),
|
|
5399
5414
|
showArrow && variant === "default" && /* @__PURE__ */ React30.createElement(
|
|
5400
5415
|
"div",
|
|
5401
5416
|
{
|