@aurora-ds/components 1.8.1 → 1.8.2
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/cjs/index.js +18 -6
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +18 -6
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +9 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1162,7 +1162,7 @@ declare class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryS
|
|
|
1162
1162
|
static getDerivedStateFromError: (error: Error) => ErrorBoundaryState;
|
|
1163
1163
|
componentDidCatch(error: Error, info: ErrorInfo): void;
|
|
1164
1164
|
private reset;
|
|
1165
|
-
render(): string | number | bigint | boolean |
|
|
1165
|
+
render(): string | number | bigint | boolean | Iterable<react.ReactNode> | Promise<string | number | bigint | boolean | react.ReactPortal | react.ReactElement<unknown, string | react.JSXElementConstructor<any>> | Iterable<react.ReactNode> | null | undefined> | react_jsx_runtime.JSX.Element | null | undefined;
|
|
1166
1166
|
}
|
|
1167
1167
|
|
|
1168
1168
|
type DefaultErrorFallbackProps = {
|
|
@@ -2837,6 +2837,13 @@ type UseMenuPositionOptions = {
|
|
|
2837
2837
|
minWidth?: number | string;
|
|
2838
2838
|
/** Gap in px between anchor and menu. @default 4 */
|
|
2839
2839
|
gap?: number;
|
|
2840
|
+
/**
|
|
2841
|
+
* Vertical offset in px applied when `placement` is `'right'` or `'left'`.
|
|
2842
|
+
* A positive value shifts the panel **upward** — use it to align the panel's
|
|
2843
|
+
* first item with the trigger item by compensating for the panel's paddingTop.
|
|
2844
|
+
* @default 0
|
|
2845
|
+
*/
|
|
2846
|
+
verticalOffset?: number;
|
|
2840
2847
|
/**
|
|
2841
2848
|
* Where the menu opens relative to the anchor.
|
|
2842
2849
|
* - `'bottom'` — opens below the anchor (default dropdown).
|
|
@@ -3217,7 +3224,7 @@ declare const useListKeyNav: ({ itemCount, enabled, onSelect, isDisabled, loop,
|
|
|
3217
3224
|
* Uses a two-pass strategy: first render with `menuHeight = 0`, then a rAF
|
|
3218
3225
|
* recompute with the actual rendered size to apply any overflow offset.
|
|
3219
3226
|
*/
|
|
3220
|
-
declare const useMenuPosition: ({ anchorEl, open, menuRef, minWidth, gap, placement, }: UseMenuPositionOptions) => UseMenuPositionResult;
|
|
3227
|
+
declare const useMenuPosition: ({ anchorEl, open, menuRef, minWidth, gap, verticalOffset, placement, }: UseMenuPositionOptions) => UseMenuPositionResult;
|
|
3221
3228
|
|
|
3222
3229
|
type UseTooltipPositionOptions = {
|
|
3223
3230
|
/** Preferred placement of the tooltip relative to its trigger. */
|