@xsolla/xui-select 0.127.0 → 0.129.0

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
@@ -335,12 +335,24 @@ theme.radius.button
335
335
  | Z-Index | 1000 |
336
336
  | Scroll | overflowY: auto |
337
337
 
338
+ ## React Native Notes
339
+
340
+ The Select component works on React Native with the following differences:
341
+
342
+ | Feature | Web | React Native |
343
+ |---------|-----|-------------|
344
+ | Searchable dropdown | Supported (`searchable` prop) | **Not available** — prop is ignored |
345
+ | Dropdown shadow | CSS `box-shadow` | Android `elevation: 4` |
346
+ | Scroll behavior | `overflowY: auto` | Native `ScrollView` |
347
+ | Cursor styles | `pointer` / `not-allowed` | Ignored |
348
+ | Click-outside dismiss | `document.addEventListener` | Not active (guarded by `isNative`) |
349
+
338
350
  ## Accessibility
339
351
 
340
352
  - Uses semantic button element for trigger
341
353
  - Dropdown menu has proper focus management
342
354
  - Keyboard navigation supported (Tab, Enter, Space, Escape)
343
355
  - Selected item is visually highlighted
344
- - Auto-scrolls to selected item when opened
356
+ - Auto-scrolls to selected item when opened (web only)
345
357
  - Focus indicators follow WCAG guidelines
346
358
  - Disabled state properly communicated to assistive technology
@@ -1,11 +1,12 @@
1
1
  import React from 'react';
2
+ import { ThemeOverrideProps } from '@xsolla/xui-core';
2
3
 
3
4
  interface SelectOption {
4
5
  label: string;
5
6
  value: any;
6
7
  disabled?: boolean;
7
8
  }
8
- interface SelectProps {
9
+ interface SelectProps extends ThemeOverrideProps {
9
10
  value?: string;
10
11
  placeholder?: string;
11
12
  onPress?: () => void;
package/native/index.d.ts CHANGED
@@ -1,11 +1,12 @@
1
1
  import React from 'react';
2
+ import { ThemeOverrideProps } from '@xsolla/xui-core';
2
3
 
3
4
  interface SelectOption {
4
5
  label: string;
5
6
  value: any;
6
7
  disabled?: boolean;
7
8
  }
8
- interface SelectProps {
9
+ interface SelectProps extends ThemeOverrideProps {
9
10
  value?: string;
10
11
  placeholder?: string;
11
12
  onPress?: () => void;