@yamada-ui/react 2.2.6-dev-20260730073118 → 2.2.6

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.
@@ -2,7 +2,7 @@ import { ComponentSlotStyle } from "../../core/system/index.types.js";
2
2
  import { CSSModifierObject, CSSPropObject, CSSSlotObject } from "../../core/css/index.types.js";
3
3
  import "../../index.js";
4
4
  //#region src/components/chart/polar-chart.style.d.ts
5
- declare const polarChartStyle: ComponentSlotStyle<"label" | "grid" | "dot" | "root" | "activeDot" | "angleAxis" | "angleAxisLabel" | "angleAxisLine" | "angleAxisTick" | "angleAxisTickLine" | "labelLine" | "labelList" | "pie" | "radar" | "radial" | "radialBackground" | "radiusAxis" | "radiusAxisLabel" | "radiusAxisLine" | "radiusAxisTick" | "radiusAxisTickLine" | "sector", CSSPropObject<CSSSlotObject<"label" | "grid" | "dot" | "root" | "activeDot" | "angleAxis" | "angleAxisLabel" | "angleAxisLine" | "angleAxisTick" | "angleAxisTickLine" | "labelLine" | "labelList" | "pie" | "radar" | "radial" | "radialBackground" | "radiusAxis" | "radiusAxisLabel" | "radiusAxisLine" | "radiusAxisTick" | "radiusAxisTickLine" | "sector">>, CSSModifierObject<CSSSlotObject<"label" | "grid" | "dot" | "root" | "activeDot" | "angleAxis" | "angleAxisLabel" | "angleAxisLine" | "angleAxisTick" | "angleAxisTickLine" | "labelLine" | "labelList" | "pie" | "radar" | "radial" | "radialBackground" | "radiusAxis" | "radiusAxisLabel" | "radiusAxisLine" | "radiusAxisTick" | "radiusAxisTickLine" | "sector">>, CSSModifierObject<CSSSlotObject<"label" | "grid" | "dot" | "root" | "activeDot" | "angleAxis" | "angleAxisLabel" | "angleAxisLine" | "angleAxisTick" | "angleAxisTickLine" | "labelLine" | "labelList" | "pie" | "radar" | "radial" | "radialBackground" | "radiusAxis" | "radiusAxisLabel" | "radiusAxisLine" | "radiusAxisTick" | "radiusAxisTickLine" | "sector">>>;
5
+ declare const polarChartStyle: ComponentSlotStyle<"label" | "grid" | "dot" | "root" | "labelList" | "activeDot" | "radial" | "labelLine" | "angleAxis" | "angleAxisLabel" | "angleAxisLine" | "angleAxisTick" | "angleAxisTickLine" | "pie" | "radar" | "radialBackground" | "radiusAxis" | "radiusAxisLabel" | "radiusAxisLine" | "radiusAxisTick" | "radiusAxisTickLine" | "sector", CSSPropObject<CSSSlotObject<"label" | "grid" | "dot" | "root" | "labelList" | "activeDot" | "radial" | "labelLine" | "angleAxis" | "angleAxisLabel" | "angleAxisLine" | "angleAxisTick" | "angleAxisTickLine" | "pie" | "radar" | "radialBackground" | "radiusAxis" | "radiusAxisLabel" | "radiusAxisLine" | "radiusAxisTick" | "radiusAxisTickLine" | "sector">>, CSSModifierObject<CSSSlotObject<"label" | "grid" | "dot" | "root" | "labelList" | "activeDot" | "radial" | "labelLine" | "angleAxis" | "angleAxisLabel" | "angleAxisLine" | "angleAxisTick" | "angleAxisTickLine" | "pie" | "radar" | "radialBackground" | "radiusAxis" | "radiusAxisLabel" | "radiusAxisLine" | "radiusAxisTick" | "radiusAxisTickLine" | "sector">>, CSSModifierObject<CSSSlotObject<"label" | "grid" | "dot" | "root" | "labelList" | "activeDot" | "radial" | "labelLine" | "angleAxis" | "angleAxisLabel" | "angleAxisLine" | "angleAxisTick" | "angleAxisTickLine" | "pie" | "radar" | "radialBackground" | "radiusAxis" | "radiusAxisLabel" | "radiusAxisLine" | "radiusAxisTick" | "radiusAxisTickLine" | "sector">>>;
6
6
  type PolarChartStyle = typeof polarChartStyle;
7
7
  //#endregion
8
8
  export { PolarChartStyle, polarChartStyle };
@@ -1,5 +1,6 @@
1
1
  import { FC, PropsWithChildren, RefObject } from "react";
2
2
  //#region src/components/focus-lock/focus-lock.d.ts
3
+ declare const useFocusLockShard: () => ((shard: HTMLElement) => () => void) | undefined;
3
4
  interface FocusLockProps extends PropsWithChildren {
4
5
  /**
5
6
  * If `true`, the first focusable element within the `children` will auto-focused once `FocusLock` mounts.
@@ -53,5 +54,5 @@ interface FocusLockProps extends PropsWithChildren {
53
54
  */
54
55
  declare const FocusLock: FC<FocusLockProps>;
55
56
  //#endregion
56
- export { FocusLock, FocusLockProps };
57
+ export { FocusLock, FocusLockProps, useFocusLockShard };
57
58
  //# sourceMappingURL=focus-lock.d.ts.map
@@ -1,2 +1,2 @@
1
- import { FocusLock, FocusLockProps } from "./focus-lock.js";
2
- export { FocusLock, type FocusLockProps };
1
+ import { FocusLock, FocusLockProps, useFocusLockShard } from "./focus-lock.js";
2
+ export { FocusLock, type FocusLockProps, useFocusLockShard };
@@ -11,7 +11,7 @@ import { PortalProps } from "../portal/portal.js";
11
11
  import "../portal/index.js";
12
12
  import { UsePopoverProps } from "./use-popover.js";
13
13
  import "../../index.js";
14
- import { FC, PropsWithChildren } from "react";
14
+ import { FC, PropsWithChildren, ReactNode } from "react";
15
15
  //#region src/components/popover/popover.d.ts
16
16
  interface UsePopupAnimationProps {
17
17
  /**
@@ -69,7 +69,11 @@ declare const usePopoverStyleProps: (props?: UsePopoverStyleProps) => {
69
69
  placement: Direction | undefined;
70
70
  strategy: import("@floating-ui/react-dom").Strategy | undefined;
71
71
  };
72
- interface PopoverRootProps extends Merge<UsePopoverProps, UsePopoverStyleProps>, UsePopupAnimationProps, ThemeProps<PopoverStyle> {
72
+ interface PopoverRootProps extends Merge<UsePopoverProps, UsePopoverStyleProps>, UsePopupAnimationProps, ThemeProps<PopoverStyle>, ShorthandPopoverContentProps {
73
+ /**
74
+ * The popover anchor to use.
75
+ */
76
+ anchor?: ReactNode;
73
77
  /**
74
78
  * The children of the popover.
75
79
  */
@@ -77,6 +81,38 @@ interface PopoverRootProps extends Merge<UsePopoverProps, UsePopoverStyleProps>,
77
81
  open: boolean;
78
82
  onClose: () => void;
79
83
  }>;
84
+ /**
85
+ * The popover trigger to use.
86
+ */
87
+ trigger?: ReactNode;
88
+ /**
89
+ * Props for anchor element.
90
+ */
91
+ anchorProps?: Omit<PopoverAnchorProps, "asChild" | "children">;
92
+ /**
93
+ * Props for body element.
94
+ */
95
+ bodyProps?: Omit<PopoverBodyProps, "children">;
96
+ /**
97
+ * Props for close trigger element.
98
+ */
99
+ closeTriggerProps?: Omit<PopoverCloseTriggerProps, "asChild" | "children">;
100
+ /**
101
+ * Props for content element.
102
+ */
103
+ contentProps?: Omit<PopoverContentProps, "children">;
104
+ /**
105
+ * Props for footer element.
106
+ */
107
+ footerProps?: Omit<PopoverFooterProps, "children">;
108
+ /**
109
+ * Props for header element.
110
+ */
111
+ headerProps?: Omit<PopoverHeaderProps, "children">;
112
+ /**
113
+ * Props for trigger element.
114
+ */
115
+ triggerProps?: Omit<PopoverTriggerProps, "asChild" | "children">;
80
116
  }
81
117
  declare const PopoverPropsContext: import("react").Context<Partial<PopoverRootProps> | undefined>, usePopoverPropsContext: () => Partial<PopoverRootProps> | undefined;
82
118
  /**
@@ -103,6 +139,20 @@ interface PopoverContentProps extends Omit<HTMLMotionProps, "children">, PropsWi
103
139
  positionerProps?: Omit<PopoverPositionerProps, "children">;
104
140
  }
105
141
  declare const PopoverContent: Component<"div", PopoverContentProps>;
142
+ interface ShorthandPopoverContentProps {
143
+ /**
144
+ * The popover body to use.
145
+ */
146
+ body?: PopoverBodyProps | ReactNode;
147
+ /**
148
+ * The popover footer to use.
149
+ */
150
+ footer?: PopoverFooterProps | ReactNode;
151
+ /**
152
+ * The popover header to use.
153
+ */
154
+ header?: PopoverHeaderProps | ReactNode;
155
+ }
106
156
  interface PopoverHeaderProps extends HTMLStyledProps {}
107
157
  declare const PopoverHeader: Component<"div", PopoverHeaderProps>;
108
158
  interface PopoverBodyProps extends HTMLStyledProps {}