@expo/ui 1.0.0-canary-20250305-0af9ad2 → 1.0.0-canary-20250320-7a205d3

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 (53) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/android/src/main/java/expo/modules/ui/ExpoUIModule.kt +4 -0
  3. package/android/src/main/java/expo/modules/ui/PickerView.kt +3 -0
  4. package/android/src/main/java/expo/modules/ui/TextInputView.kt +75 -0
  5. package/android/src/main/java/expo/modules/ui/menu/ContextMenu.kt +7 -3
  6. package/build/components/BottomSheet/index.d.ts +9 -0
  7. package/build/components/BottomSheet/index.d.ts.map +1 -0
  8. package/build/components/BottomSheet/index.ios.d.ts +11 -0
  9. package/build/components/BottomSheet/index.ios.d.ts.map +1 -0
  10. package/build/components/Button/index.d.ts +25 -8
  11. package/build/components/Button/index.d.ts.map +1 -1
  12. package/build/components/ContextMenu/index.android.d.ts +23 -0
  13. package/build/components/ContextMenu/index.android.d.ts.map +1 -0
  14. package/build/components/ContextMenu/index.d.ts +62 -19
  15. package/build/components/ContextMenu/index.d.ts.map +1 -1
  16. package/build/components/DatePicker/index.d.ts +8 -9
  17. package/build/components/DatePicker/index.d.ts.map +1 -1
  18. package/build/components/Picker/index.d.ts +30 -19
  19. package/build/components/Picker/index.d.ts.map +1 -1
  20. package/build/components/Progress/index.d.ts +1 -1
  21. package/build/components/Section/index.d.ts +6 -1
  22. package/build/components/Section/index.d.ts.map +1 -1
  23. package/build/components/Slider/index.d.ts +18 -10
  24. package/build/components/Slider/index.d.ts.map +1 -1
  25. package/build/components/Switch/index.d.ts +18 -36
  26. package/build/components/Switch/index.d.ts.map +1 -1
  27. package/build/components/TextInput/index.d.ts +25 -2
  28. package/build/components/TextInput/index.d.ts.map +1 -1
  29. package/build/src/types.d.ts +13 -0
  30. package/build/src/types.d.ts.map +1 -0
  31. package/components/BottomSheet/index.ios.tsx +34 -0
  32. package/components/BottomSheet/index.tsx +12 -0
  33. package/components/Button/index.tsx +26 -8
  34. package/components/ContextMenu/index.android.tsx +72 -0
  35. package/components/ContextMenu/index.tsx +73 -30
  36. package/components/DatePicker/index.tsx +7 -8
  37. package/components/Picker/index.tsx +32 -19
  38. package/components/Progress/index.tsx +1 -1
  39. package/components/Section/index.tsx +6 -1
  40. package/components/Slider/index.tsx +19 -10
  41. package/components/Switch/index.tsx +37 -54
  42. package/components/TextInput/index.tsx +31 -4
  43. package/ios/BottomSheetView.swift +82 -0
  44. package/ios/ContextMenu/ContextMenu.swift +65 -2
  45. package/ios/ContextMenu/ContextMenuRecords.swift +6 -0
  46. package/ios/ExpoUIModule.swift +3 -0
  47. package/ios/PickerView.swift +32 -27
  48. package/package.json +3 -6
  49. package/src/types.ts +16 -0
  50. package/tsconfig.json +1 -1
  51. package/build/src/index.d.ts +0 -13
  52. package/build/src/index.d.ts.map +0 -1
  53. package/src/index.ts +0 -22
package/package.json CHANGED
@@ -1,9 +1,7 @@
1
1
  {
2
2
  "name": "@expo/ui",
3
- "version": "1.0.0-canary-20250305-0af9ad2",
3
+ "version": "1.0.0-canary-20250320-7a205d3",
4
4
  "description": "A collection of UI components",
5
- "main": "src/index.ts",
6
- "types": "build/index.d.ts",
7
5
  "scripts": {
8
6
  "build": "expo-module build",
9
7
  "clean": "expo-module clean",
@@ -29,12 +27,11 @@
29
27
  "dependencies": {},
30
28
  "devDependencies": {
31
29
  "@types/react": "~19.0.10",
32
- "expo-module-scripts": "4.0.5-canary-20250305-0af9ad2"
30
+ "expo-module-scripts": "4.0.5-canary-20250320-7a205d3"
33
31
  },
34
32
  "peerDependencies": {
35
33
  "expo": "*",
36
34
  "react": "*",
37
35
  "react-native": "*"
38
- },
39
- "gitHead": "0af9ad2afd326af47eae076f81a89105a026312d"
36
+ }
40
37
  }
package/src/types.ts ADDED
@@ -0,0 +1,16 @@
1
+ export type * from '../components/Button';
2
+ export type * from '../components/ContextMenu';
3
+ export type * from '../components/Picker';
4
+ export type * from '../components/Section';
5
+ export type * from '../components/Slider';
6
+ export type * from '../components/Switch';
7
+
8
+ /**
9
+ * @hidden
10
+ */
11
+ export type ViewEvent<Name extends string, Data> = Record<
12
+ Name,
13
+ Data extends object
14
+ ? ((event: { nativeEvent: Data }) => void) | undefined
15
+ : (() => void) | undefined
16
+ >;
package/tsconfig.json CHANGED
@@ -4,6 +4,6 @@
4
4
  "outDir": "./build",
5
5
  "emitDeclarationOnly": true
6
6
  },
7
- "include": ["./components", "src/index.ts"],
7
+ "include": ["./components", "src/types.ts"],
8
8
  "exclude": ["**/__mocks__/*", "**/__tests__/*", "**/__rsc_tests__/*"]
9
9
  }
@@ -1,13 +0,0 @@
1
- export type { Switch, SwitchProps } from '../components/Switch';
2
- export type { Picker, PickerProps } from '../components/Picker';
3
- export type { Button, ButtonProps } from '../components/Button';
4
- export type { ContextMenu, ContextMenuProps, Submenu, SubmenuProps, ActivationMethod, } from '../components/ContextMenu';
5
- export type { Section, SectionProps } from '../components/Section';
6
- export type { Slider, SliderProps } from '../components/Slider';
7
- /**
8
- * @hidden
9
- */
10
- export type ViewEvent<Name extends string, Data> = Record<Name, Data extends object ? ((event: {
11
- nativeEvent: Data;
12
- }) => void) | undefined : (() => void) | undefined>;
13
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAChE,YAAY,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAChE,YAAY,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAChE,YAAY,EACV,WAAW,EACX,gBAAgB,EAChB,OAAO,EACP,YAAY,EACZ,gBAAgB,GACjB,MAAM,2BAA2B,CAAC;AACnC,YAAY,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACnE,YAAY,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEhE;;GAEG;AACH,MAAM,MAAM,SAAS,CAAC,IAAI,SAAS,MAAM,EAAE,IAAI,IAAI,MAAM,CACvD,IAAI,EACJ,IAAI,SAAS,MAAM,GACf,CAAC,CAAC,KAAK,EAAE;IAAE,WAAW,EAAE,IAAI,CAAA;CAAE,KAAK,IAAI,CAAC,GAAG,SAAS,GACpD,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAC7B,CAAC"}
package/src/index.ts DELETED
@@ -1,22 +0,0 @@
1
- export type { Switch, SwitchProps } from '../components/Switch';
2
- export type { Picker, PickerProps } from '../components/Picker';
3
- export type { Button, ButtonProps } from '../components/Button';
4
- export type {
5
- ContextMenu,
6
- ContextMenuProps,
7
- Submenu,
8
- SubmenuProps,
9
- ActivationMethod,
10
- } from '../components/ContextMenu';
11
- export type { Section, SectionProps } from '../components/Section';
12
- export type { Slider, SliderProps } from '../components/Slider';
13
-
14
- /**
15
- * @hidden
16
- */
17
- export type ViewEvent<Name extends string, Data> = Record<
18
- Name,
19
- Data extends object
20
- ? ((event: { nativeEvent: Data }) => void) | undefined
21
- : (() => void) | undefined
22
- >;