@nestledjs/forms-native 0.1.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 (37) hide show
  1. package/index.d.ts +38 -0
  2. package/index.js +4077 -0
  3. package/lib/fields/button-field.d.ts +4 -0
  4. package/lib/fields/button.d.ts +16 -0
  5. package/lib/fields/checkbox-field.d.ts +12 -0
  6. package/lib/fields/checkbox-group.d.ts +7 -0
  7. package/lib/fields/content-field.d.ts +6 -0
  8. package/lib/fields/custom-checkbox-field.d.ts +8 -0
  9. package/lib/fields/custom-field.d.ts +12 -0
  10. package/lib/fields/datepicker-field.d.ts +8 -0
  11. package/lib/fields/datetimepicker-field.d.ts +8 -0
  12. package/lib/fields/email-field.d.ts +7 -0
  13. package/lib/fields/label.d.ts +15 -0
  14. package/lib/fields/markdown-editor.d.ts +7 -0
  15. package/lib/fields/money-field.d.ts +7 -0
  16. package/lib/fields/number-field.d.ts +7 -0
  17. package/lib/fields/password-field.d.ts +7 -0
  18. package/lib/fields/phone-field.d.ts +14 -0
  19. package/lib/fields/radio-field.d.ts +7 -0
  20. package/lib/fields/select-field-enum.d.ts +7 -0
  21. package/lib/fields/select-field-multi-search-apollo.d.ts +16 -0
  22. package/lib/fields/select-field-multi-search.d.ts +7 -0
  23. package/lib/fields/select-field-multi.d.ts +7 -0
  24. package/lib/fields/select-field-search-apollo.d.ts +10 -0
  25. package/lib/fields/select-field-search.d.ts +7 -0
  26. package/lib/fields/select-field.d.ts +7 -0
  27. package/lib/fields/switch-field.d.ts +7 -0
  28. package/lib/fields/text-field.d.ts +7 -0
  29. package/lib/fields/textarea-field.d.ts +7 -0
  30. package/lib/fields/timepicker-field.d.ts +11 -0
  31. package/lib/fields/url-field.d.ts +7 -0
  32. package/lib/form.d.ts +32 -0
  33. package/lib/native-theme-context.d.ts +928 -0
  34. package/lib/render-form-field.d.ts +10 -0
  35. package/lib/themes/default.d.ts +933 -0
  36. package/lib/utils/resolve-theme.d.ts +11 -0
  37. package/package.json +62 -0
@@ -0,0 +1,11 @@
1
+ import { NativeTheme } from '../themes/default';
2
+ type DeepPartial<T> = {
3
+ [P in keyof T]?: T[P] extends object ? DeepPartial<T[P]> : T[P];
4
+ };
5
+ /**
6
+ * Creates the final native theme by merging user overrides on top of defaults.
7
+ * Unlike the web version which uses CSS class strings, the native version
8
+ * merges StyleSheet objects.
9
+ */
10
+ export declare function createFinalNativeTheme(userTheme?: DeepPartial<NativeTheme>): NativeTheme;
11
+ export {};
package/package.json ADDED
@@ -0,0 +1,62 @@
1
+ {
2
+ "name": "@nestledjs/forms-native",
3
+ "version": "0.1.0",
4
+ "exports": {
5
+ ".": {
6
+ "import": "./index.js",
7
+ "types": "./index.d.ts"
8
+ }
9
+ },
10
+ "main": "./index.js",
11
+ "types": "./index.d.ts",
12
+ "type": "module",
13
+ "description": "React Native form library powered by @nestledjs/forms-core — declarative, validated, themeable forms for Expo and React Native",
14
+ "keywords": [
15
+ "react-native",
16
+ "expo",
17
+ "forms",
18
+ "typescript",
19
+ "validation",
20
+ "react-hook-form",
21
+ "zod",
22
+ "nativewind"
23
+ ],
24
+ "author": "Nestled Contributors",
25
+ "license": "MIT",
26
+ "repository": {
27
+ "type": "git",
28
+ "url": "git+https://github.com/nestledjs/nestled.git"
29
+ },
30
+ "publishConfig": {
31
+ "access": "public"
32
+ },
33
+ "peerDependencies": {
34
+ "react": ">=18.0.0",
35
+ "react-native": ">=0.72.0",
36
+ "expo-checkbox": ">=3.0.0"
37
+ },
38
+ "peerDependenciesMeta": {
39
+ "@apollo/client": {
40
+ "optional": true
41
+ },
42
+ "@react-native-community/datetimepicker": {
43
+ "optional": true
44
+ },
45
+ "react-native-phone-number-input": {
46
+ "optional": true
47
+ },
48
+ "react-native-element-dropdown": {
49
+ "optional": true
50
+ },
51
+ "react-native-markdown-display": {
52
+ "optional": true
53
+ },
54
+ "expo-checkbox": {
55
+ "optional": true
56
+ }
57
+ },
58
+ "dependencies": {
59
+ "@nestledjs/forms-core": "0.1.0",
60
+ "react-hook-form": "^7.58.1"
61
+ }
62
+ }