@xsolla/xui-status-dropdown 0.185.2 → 0.185.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xsolla/xui-status-dropdown",
3
- "version": "0.185.2",
3
+ "version": "0.185.4",
4
4
  "main": "./web/index.js",
5
5
  "module": "./web/index.mjs",
6
6
  "types": "./web/index.d.ts",
@@ -13,10 +13,10 @@
13
13
  "test:coverage": "vitest run --coverage"
14
14
  },
15
15
  "dependencies": {
16
- "@xsolla/xui-context-menu": "0.185.2",
17
- "@xsolla/xui-core": "0.185.2",
18
- "@xsolla/xui-primitives-core": "0.185.2",
19
- "@xsolla/xui-status": "0.185.2"
16
+ "@xsolla/xui-context-menu": "0.185.4",
17
+ "@xsolla/xui-core": "0.185.4",
18
+ "@xsolla/xui-primitives-core": "0.185.4",
19
+ "@xsolla/xui-status": "0.185.4"
20
20
  },
21
21
  "peerDependencies": {
22
22
  "react": ">=16.8.0",
package/web/index.d.mts 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/web/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/web/index.js CHANGED
@@ -1185,6 +1185,7 @@ var StatusDropdown = (0, import_react3.forwardRef)(
1185
1185
  maxWidth,
1186
1186
  dot = false,
1187
1187
  children,
1188
+ placement = "bottom-start",
1188
1189
  isOpen: propIsOpen,
1189
1190
  onOpenChange,
1190
1191
  "aria-label": ariaLabel,
@@ -1351,6 +1352,7 @@ var StatusDropdown = (0, import_react3.forwardRef)(
1351
1352
  trigger,
1352
1353
  isOpen,
1353
1354
  onOpenChange: handleOpenChange,
1355
+ placement,
1354
1356
  "aria-label": "Change status",
1355
1357
  testID,
1356
1358
  themeMode,