@firecms/ui 3.0.0-canary.123 → 3.0.0-canary.125
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/components/Tooltip.d.ts +2 -1
- package/dist/index.es.js +4 -4
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +4 -4
- package/dist/index.umd.js.map +1 -1
- package/package.json +2 -2
- package/src/components/Select.tsx +4 -5
- package/src/components/Sheet.tsx +1 -1
- package/src/components/Tooltip.tsx +3 -1
@@ -13,6 +13,7 @@ export type TooltipProps = {
|
|
13
13
|
tooltipStyle?: React.CSSProperties;
|
14
14
|
children: React.ReactNode;
|
15
15
|
className?: string;
|
16
|
+
container?: HTMLElement;
|
16
17
|
style?: React.CSSProperties;
|
17
18
|
};
|
18
|
-
export declare const Tooltip: ({ open, defaultOpen, side, delayDuration, sideOffset, align, onOpenChange, title, tooltipClassName, tooltipStyle, children, asChild, className, style }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
|
19
|
+
export declare const Tooltip: ({ open, defaultOpen, side, delayDuration, sideOffset, align, onOpenChange, title, tooltipClassName, tooltipStyle, children, asChild, container, className, style }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
|
package/dist/index.es.js
CHANGED
@@ -16080,7 +16080,6 @@ const Select = forwardRef(({
|
|
16080
16080
|
placeholder,
|
16081
16081
|
className: "w-full",
|
16082
16082
|
children: [
|
16083
|
-
!hasValue && placeholder,
|
16084
16083
|
hasValue && value && renderValue ? renderValue(value) : placeholder,
|
16085
16084
|
hasValue && !renderValue && value
|
16086
16085
|
]
|
@@ -16110,7 +16109,7 @@ const Select = forwardRef(({
|
|
16110
16109
|
SelectPrimitive.Content,
|
16111
16110
|
{
|
16112
16111
|
position,
|
16113
|
-
className: cls("z-50 relative overflow-hidden border bg-white dark:bg-gray-900 p-2 rounded-lg", defaultBorderMixin),
|
16112
|
+
className: cls(focusedDisabled, "z-50 relative overflow-hidden border bg-white dark:bg-gray-900 p-2 rounded-lg", defaultBorderMixin),
|
16114
16113
|
children: /* @__PURE__ */ jsx(
|
16115
16114
|
SelectPrimitive.Viewport,
|
16116
16115
|
{
|
@@ -16222,7 +16221,7 @@ const Sheet = ({
|
|
16222
16221
|
open: displayed || open,
|
16223
16222
|
onOpenChange,
|
16224
16223
|
children: /* @__PURE__ */ jsxs(DialogPrimitive.Portal, { children: [
|
16225
|
-
/* @__PURE__ */ jsx(DialogPrimitive.Title, { children: title ?? "Sheet" }),
|
16224
|
+
/* @__PURE__ */ jsx(DialogPrimitive.Title, { autoFocus: true, tabIndex: 0, children: title ?? "Sheet" }),
|
16226
16225
|
/* @__PURE__ */ jsx(
|
16227
16226
|
DialogPrimitive.Overlay,
|
16228
16227
|
{
|
@@ -16639,6 +16638,7 @@ const Tooltip = ({
|
|
16639
16638
|
tooltipStyle,
|
16640
16639
|
children,
|
16641
16640
|
asChild = false,
|
16641
|
+
container,
|
16642
16642
|
className,
|
16643
16643
|
style
|
16644
16644
|
}) => {
|
@@ -16648,7 +16648,7 @@ const Tooltip = ({
|
|
16648
16648
|
const trigger = asChild ? /* @__PURE__ */ jsx(TooltipPrimitive.Trigger, { asChild: true, children }) : /* @__PURE__ */ jsx(TooltipPrimitive.Trigger, { asChild: true, children: /* @__PURE__ */ jsx("div", { style, className, children }) });
|
16649
16649
|
return /* @__PURE__ */ jsx(TooltipPrimitive.Provider, { delayDuration, children: /* @__PURE__ */ jsxs(TooltipPrimitive.Root, { open, onOpenChange, defaultOpen, children: [
|
16650
16650
|
trigger,
|
16651
|
-
/* @__PURE__ */ jsx(TooltipPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
16651
|
+
/* @__PURE__ */ jsx(TooltipPrimitive.Portal, { container, children: /* @__PURE__ */ jsx(
|
16652
16652
|
TooltipPrimitive.Content,
|
16653
16653
|
{
|
16654
16654
|
className: cls(
|