@aurora-ds/components 1.7.17 → 1.7.19
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 +57 -19
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +57 -19
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +26 -11
- 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 = {
|
|
@@ -2818,8 +2818,14 @@ type DialogComponent = FC<DialogProps> & {
|
|
|
2818
2818
|
|
|
2819
2819
|
declare const Dialog: DialogComponent;
|
|
2820
2820
|
|
|
2821
|
-
/**
|
|
2822
|
-
|
|
2821
|
+
/**
|
|
2822
|
+
* Where the menu opens relative to its anchor.
|
|
2823
|
+
* - `'bottom'` — opens below the anchor (default dropdown).
|
|
2824
|
+
* - `'right'` — opens to the right of the anchor, flips left when no room.
|
|
2825
|
+
* - `'left'` — opens to the left of the anchor, flips right when no room.
|
|
2826
|
+
* - `'top'` — opens above the anchor, flips below when no room.
|
|
2827
|
+
*/
|
|
2828
|
+
type MenuPlacement = 'bottom' | 'right' | 'left' | 'top';
|
|
2823
2829
|
type UseMenuPositionOptions = {
|
|
2824
2830
|
/** Anchor element the menu is positioned relative to. */
|
|
2825
2831
|
anchorEl?: HTMLElement | null;
|
|
@@ -2834,7 +2840,9 @@ type UseMenuPositionOptions = {
|
|
|
2834
2840
|
/**
|
|
2835
2841
|
* Where the menu opens relative to the anchor.
|
|
2836
2842
|
* - `'bottom'` — opens below the anchor (default dropdown).
|
|
2837
|
-
* - `'right'` — opens
|
|
2843
|
+
* - `'right'` — opens to the right of the anchor, flips left when no room.
|
|
2844
|
+
* - `'left'` — opens to the left of the anchor, flips right when no room.
|
|
2845
|
+
* - `'top'` — opens above the anchor, flips below when no room.
|
|
2838
2846
|
* @default 'bottom'
|
|
2839
2847
|
*/
|
|
2840
2848
|
placement?: MenuPlacement;
|
|
@@ -2948,7 +2956,14 @@ type MenuItemProps = HTMLAttributes<HTMLLIElement> & {
|
|
|
2948
2956
|
* @a11y Recommended — exposes `aria-haspopup="menu"` and `aria-expanded`.
|
|
2949
2957
|
*/
|
|
2950
2958
|
submenu?: ReactNode;
|
|
2951
|
-
/**
|
|
2959
|
+
/**
|
|
2960
|
+
* Direction in which the submenu opens relative to the item.
|
|
2961
|
+
* - `'right'` — opens to the right, flips left when no room (default).
|
|
2962
|
+
* - `'left'` — opens to the left, flips right when no room.
|
|
2963
|
+
* - `'bottom'` — opens below the item.
|
|
2964
|
+
* - `'top'` — opens above the item, flips below when no room.
|
|
2965
|
+
* @default 'right'
|
|
2966
|
+
*/
|
|
2952
2967
|
submenuPlacement?: MenuPlacement;
|
|
2953
2968
|
};
|
|
2954
2969
|
|
|
@@ -3175,12 +3190,12 @@ declare const useListKeyNav: ({ itemCount, enabled, onSelect, isDisabled, loop,
|
|
|
3175
3190
|
* Computes and continuously updates the `position: fixed` style for a menu panel.
|
|
3176
3191
|
*
|
|
3177
3192
|
* Positioning strategy:
|
|
3178
|
-
* - `placement="bottom"` (default):
|
|
3179
|
-
*
|
|
3180
|
-
*
|
|
3181
|
-
* - `placement="
|
|
3182
|
-
*
|
|
3183
|
-
*
|
|
3193
|
+
* - `placement="bottom"` (default): opens below the anchor; overflows are shifted up.
|
|
3194
|
+
* - `placement="top"`: opens above the anchor; flips to bottom when no room.
|
|
3195
|
+
* - `placement="right"`: opens to the right of the anchor; flips to the left when no room.
|
|
3196
|
+
* - `placement="left"`: opens to the left of the anchor; flips to the right when no room.
|
|
3197
|
+
*
|
|
3198
|
+
* In all cases the vertical position is clamped inside the viewport.
|
|
3184
3199
|
*
|
|
3185
3200
|
* Scroll handling: the page scroll is locked while the menu is open (see
|
|
3186
3201
|
* `MenuPanel`), so the anchor cannot move out from under the menu. As a safety
|