@xsolla/xui-status-dropdown 0.185.3 → 0.185.5

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 CHANGED
@@ -86,6 +86,7 @@ const [status, setStatus] = useState('Success');
86
86
  | `palette` | `'Neutral' \| 'Success' \| 'Warning' \| 'Alert' \| 'Brand'` | `'Neutral'` | Colour palette for the trigger. |
87
87
  | `dot` | `boolean` | `false` | Show a small status dot before the label. |
88
88
  | `children` | `ReactNode` | — | Menu content; typically `ContextMenuItem` elements. |
89
+ | `placement` | `ContextMenuPlacement` | `'bottom-start'` | Menu placement relative to the trigger. |
89
90
  | `onSelect` | `(value: any) => void` | — | Fired when a menu item is selected. |
90
91
  | `isOpen` | `boolean` | — | Controlled open state. |
91
92
  | `onOpenChange` | `(isOpen: boolean) => void` | — | Fires when the open state changes. |
@@ -1,5 +1,6 @@
1
1
  import React, { ReactNode } from 'react';
2
2
  import { ThemeOverrideProps } from '@xsolla/xui-core';
3
+ import { ContextMenuPlacement } from '@xsolla/xui-context-menu';
3
4
 
4
5
  type StatusDropdownPalette = "Neutral" | "Success" | "Warning" | "Alert" | "Brand";
5
6
  type StatusDropdownSize = "xl" | "lg" | "md" | "sm" | "xs";
@@ -16,6 +17,8 @@ interface StatusDropdownProps extends ThemeOverrideProps {
16
17
  dot?: boolean;
17
18
  /** Dropdown menu content (usually ContextMenuItem components) */
18
19
  children: ReactNode;
20
+ /** Menu placement relative to the trigger. Defaults to `"bottom-start"`. */
21
+ placement?: ContextMenuPlacement;
19
22
  /** Whether the dropdown is open (controlled) */
20
23
  isOpen?: boolean;
21
24
  /** Callback when the open state changes */
package/native/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import React, { ReactNode } from 'react';
2
2
  import { ThemeOverrideProps } from '@xsolla/xui-core';
3
+ import { ContextMenuPlacement } from '@xsolla/xui-context-menu';
3
4
 
4
5
  type StatusDropdownPalette = "Neutral" | "Success" | "Warning" | "Alert" | "Brand";
5
6
  type StatusDropdownSize = "xl" | "lg" | "md" | "sm" | "xs";
@@ -16,6 +17,8 @@ interface StatusDropdownProps extends ThemeOverrideProps {
16
17
  dot?: boolean;
17
18
  /** Dropdown menu content (usually ContextMenuItem components) */
18
19
  children: ReactNode;
20
+ /** Menu placement relative to the trigger. Defaults to `"bottom-start"`. */
21
+ placement?: ContextMenuPlacement;
19
22
  /** Whether the dropdown is open (controlled) */
20
23
  isOpen?: boolean;
21
24
  /** Callback when the open state changes */
package/native/index.js CHANGED
@@ -1138,6 +1138,7 @@ var StatusDropdown = (0, import_react2.forwardRef)(
1138
1138
  maxWidth,
1139
1139
  dot = false,
1140
1140
  children,
1141
+ placement = "bottom-start",
1141
1142
  isOpen: propIsOpen,
1142
1143
  onOpenChange,
1143
1144
  "aria-label": ariaLabel,
@@ -1304,6 +1305,7 @@ var StatusDropdown = (0, import_react2.forwardRef)(
1304
1305
  trigger,
1305
1306
  isOpen,
1306
1307
  onOpenChange: handleOpenChange,
1308
+ placement,
1307
1309
  "aria-label": "Change status",
1308
1310
  testID,
1309
1311
  themeMode,