@impulse-ui-native/select 2.3.5 → 2.4.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.
Files changed (2) hide show
  1. package/README.md +11 -5
  2. package/package.json +9 -11
package/README.md CHANGED
@@ -8,7 +8,7 @@ Single- and multi-value select controls that present their options in a themed f
8
8
  pnpm add @impulse-ui-native/select @shopify/flash-list react-native-gesture-handler react-native-reanimated react-native-safe-area-context react-native-worklets
9
9
  ```
10
10
 
11
- Complete the Gesture Handler, Reanimated, Worklets, and Safe Area Context setup required by your React Native or Expo project. The simplest application setup is to use `ThemeProvider`, wrap the app with `GestureHandlerRootView` and `SafeAreaProvider`, and mount one `LayerCenter` at the application root.
11
+ Complete the Gesture Handler, Reanimated, Worklets, and Safe Area Context setup required by your React Native or Expo project. The simplest application setup is to use `ThemeProvider`, wrap the app with `GestureHandlerRootView` and `SafeAreaProvider`, and mount one `PortalsHost` inside a `PortalProvider` at the application root.
12
12
 
13
13
  ## Main exports
14
14
 
@@ -20,9 +20,15 @@ Complete the Gesture Handler, Reanimated, Worklets, and Safe Area Context setup
20
20
  ## Usage
21
21
 
22
22
  ```tsx
23
- import { LayerCenter } from "@impulse-ui-native/layers";
23
+ import {
24
+ PortalProvider,
25
+ PortalsHost,
26
+ PortalStore,
27
+ } from "@impulse-ui-native/portal";
24
28
  import { Select } from "@impulse-ui-native/select";
25
29
 
30
+ const portalStore = new PortalStore();
31
+
26
32
  const options = [
27
33
  { label: "Design", value: "design" },
28
34
  { label: "Engineering", value: "engineering" },
@@ -33,7 +39,7 @@ export function DepartmentField() {
33
39
  const [value, setValue] = useState<string>();
34
40
 
35
41
  return (
36
- <>
42
+ <PortalProvider store={portalStore}>
37
43
  <Select
38
44
  label="Department"
39
45
  options={options}
@@ -41,8 +47,8 @@ export function DepartmentField() {
41
47
  onChange={setValue}
42
48
  placeholder="Choose a department"
43
49
  />
44
- <LayerCenter />
45
- </>
50
+ <PortalsHost />
51
+ </PortalProvider>
46
52
  );
47
53
  }
48
54
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@impulse-ui-native/select",
3
- "version": "2.3.5",
3
+ "version": "2.4.0",
4
4
  "description": "Accessible select and option picker components for ImpulseUI Native applications.",
5
5
  "keywords": [
6
6
  "react-native",
@@ -28,15 +28,13 @@
28
28
  ],
29
29
  "sideEffects": false,
30
30
  "dependencies": {
31
- "@impulse-ui-native/theme": "2.3.5",
32
- "@impulse-ui-native/input": "2.3.5",
33
- "@impulse-ui-native/icon": "2.3.5",
34
- "@impulse-ui-native/core": "2.3.5",
35
- "@impulse-ui-native/primitives": "2.3.5",
36
- "@impulse-ui-native/flyout": "2.3.5",
37
- "@impulse-ui-native/types": "2.3.5",
38
- "@impulse-ui-native/layers": "2.3.5",
39
- "@impulse-ui-native/portal": "2.3.5"
31
+ "@impulse-ui-native/icon": "2.4.0",
32
+ "@impulse-ui-native/primitives": "2.4.0",
33
+ "@impulse-ui-native/input": "2.4.0",
34
+ "@impulse-ui-native/core": "2.4.0",
35
+ "@impulse-ui-native/flyout": "2.4.0",
36
+ "@impulse-ui-native/portal": "2.4.0",
37
+ "@impulse-ui-native/theme": "2.4.0"
40
38
  },
41
39
  "devDependencies": {
42
40
  "@shopify/flash-list": "2.0.2",
@@ -46,8 +44,8 @@
46
44
  "react": "19.2.3",
47
45
  "react-native": "0.86.2",
48
46
  "typescript": "~6.0.3",
49
- "@impulse-ui-native/prettier-config": "1.0.0",
50
47
  "@impulse-ui-native/eslint-config": "1.0.0",
48
+ "@impulse-ui-native/prettier-config": "1.0.0",
51
49
  "@impulse-ui-native/tsconfig": "1.0.0"
52
50
  },
53
51
  "peerDependencies": {