react-native-nitro-input 0.3.8 → 0.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 (107) hide show
  1. package/CHANGELOG.md +89 -0
  2. package/README.md +5 -1
  3. package/android/src/main/java/com/margelo/nitro/nitroinput/HybridNitroInputMeasure.kt +52 -0
  4. package/android/src/main/java/com/margelo/nitro/nitroinput/HybridNitroInputView.kt +74 -80
  5. package/android/src/main/java/com/margelo/nitro/nitroinput/HybridNitroNumberView.kt +18 -18
  6. package/android/src/main/java/com/margelo/nitro/nitroinput/HybridNitroTextView.kt +14 -14
  7. package/android/src/main/java/com/margelo/nitro/nitroinput/InputFonts.kt +199 -0
  8. package/android/src/main/java/com/margelo/nitro/nitroinput/InputSizing.kt +398 -0
  9. package/android/src/main/java/com/margelo/nitro/nitroinput/NitroInputView.kt +112 -333
  10. package/android/src/main/java/com/margelo/nitro/nitroinput/NitroNumberView.kt +178 -30
  11. package/ios/HybridNitroInputView.swift +69 -75
  12. package/ios/HybridNitroNumberView.swift +18 -18
  13. package/ios/HybridNitroTextView.swift +14 -14
  14. package/ios/InputSizing.swift +534 -0
  15. package/ios/NitroInputView.swift +102 -198
  16. package/ios/NitroNumberView.swift +98 -23
  17. package/lib/commonjs/nitrogen/generated/shared/json/NitroInputViewConfig.json +12 -8
  18. package/lib/commonjs/nitrogen/generated/shared/json/NitroNumberViewConfig.json +6 -6
  19. package/lib/commonjs/nitrogen/generated/shared/json/NitroTextViewConfig.json +6 -6
  20. package/lib/commonjs/src/NitroInput.js +164 -23
  21. package/lib/commonjs/src/NitroNumber.js +1 -1
  22. package/lib/commonjs/src/NitroText.js +6 -6
  23. package/lib/commonjs/src/specs/NitroInputMeasure.nitro.js +2 -0
  24. package/lib/module/nitrogen/generated/shared/json/NitroInputViewConfig.json +12 -8
  25. package/lib/module/nitrogen/generated/shared/json/NitroNumberViewConfig.json +6 -6
  26. package/lib/module/nitrogen/generated/shared/json/NitroTextViewConfig.json +6 -6
  27. package/lib/module/src/NitroInput.js +165 -24
  28. package/lib/module/src/NitroNumber.js +1 -1
  29. package/lib/module/src/NitroText.js +6 -6
  30. package/lib/module/src/specs/NitroInputMeasure.nitro.js +1 -0
  31. package/lib/typescript/src/NitroInput.d.ts +9 -16
  32. package/lib/typescript/src/specs/NitroInput.nitro.d.ts +17 -8
  33. package/lib/typescript/src/specs/NitroInputMeasure.nitro.d.ts +67 -0
  34. package/lib/typescript/src/specs/NitroNumber.nitro.d.ts +6 -6
  35. package/lib/typescript/src/specs/NitroText.nitro.d.ts +6 -6
  36. package/nitro.json +10 -0
  37. package/nitrogen/generated/android/NitroInput+autolinking.cmake +2 -0
  38. package/nitrogen/generated/android/NitroInputOnLoad.cpp +16 -0
  39. package/nitrogen/generated/android/c++/JHybridNitroInputMeasureSpec.cpp +93 -0
  40. package/nitrogen/generated/android/c++/JHybridNitroInputMeasureSpec.hpp +63 -0
  41. package/nitrogen/generated/android/c++/JHybridNitroInputViewSpec.cpp +76 -40
  42. package/nitrogen/generated/android/c++/JHybridNitroInputViewSpec.hpp +24 -16
  43. package/nitrogen/generated/android/c++/JHybridNitroNumberViewSpec.cpp +30 -30
  44. package/nitrogen/generated/android/c++/JHybridNitroNumberViewSpec.hpp +12 -12
  45. package/nitrogen/generated/android/c++/JHybridNitroTextViewSpec.cpp +30 -30
  46. package/nitrogen/generated/android/c++/JHybridNitroTextViewSpec.hpp +12 -12
  47. package/nitrogen/generated/android/c++/JNitroInputSize.hpp +61 -0
  48. package/nitrogen/generated/android/c++/JNitroInputSizing.hpp +284 -0
  49. package/nitrogen/generated/android/c++/views/JHybridNitroInputViewStateUpdater.cpp +44 -24
  50. package/nitrogen/generated/android/c++/views/JHybridNitroNumberViewStateUpdater.cpp +18 -18
  51. package/nitrogen/generated/android/c++/views/JHybridNitroTextViewStateUpdater.cpp +18 -18
  52. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/HybridNitroInputMeasureSpec.kt +56 -0
  53. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/HybridNitroInputViewSpec.kt +32 -8
  54. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/HybridNitroNumberViewSpec.kt +6 -6
  55. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/HybridNitroTextViewSpec.kt +6 -6
  56. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NitroInputSize.kt +56 -0
  57. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NitroInputSizing.kt +246 -0
  58. package/nitrogen/generated/ios/NitroInput-Swift-Cxx-Bridge.cpp +17 -0
  59. package/nitrogen/generated/ios/NitroInput-Swift-Cxx-Bridge.hpp +29 -0
  60. package/nitrogen/generated/ios/NitroInput-Swift-Cxx-Umbrella.hpp +11 -0
  61. package/nitrogen/generated/ios/NitroInputAutolinking.mm +8 -0
  62. package/nitrogen/generated/ios/NitroInputAutolinking.swift +12 -0
  63. package/nitrogen/generated/ios/c++/HybridNitroInputMeasureSpecSwift.cpp +11 -0
  64. package/nitrogen/generated/ios/c++/HybridNitroInputMeasureSpecSwift.hpp +112 -0
  65. package/nitrogen/generated/ios/c++/HybridNitroInputViewSpecSwift.hpp +56 -32
  66. package/nitrogen/generated/ios/c++/HybridNitroNumberViewSpecSwift.hpp +24 -24
  67. package/nitrogen/generated/ios/c++/HybridNitroTextViewSpecSwift.hpp +24 -24
  68. package/nitrogen/generated/ios/c++/views/HybridNitroInputViewComponent.mm +56 -32
  69. package/nitrogen/generated/ios/c++/views/HybridNitroNumberViewComponent.mm +24 -24
  70. package/nitrogen/generated/ios/c++/views/HybridNitroTextViewComponent.mm +24 -24
  71. package/nitrogen/generated/ios/swift/HybridNitroInputMeasureSpec.swift +55 -0
  72. package/nitrogen/generated/ios/swift/HybridNitroInputMeasureSpec_cxx.swift +138 -0
  73. package/nitrogen/generated/ios/swift/HybridNitroInputViewSpec.swift +12 -8
  74. package/nitrogen/generated/ios/swift/HybridNitroInputViewSpec_cxx.swift +68 -24
  75. package/nitrogen/generated/ios/swift/HybridNitroNumberViewSpec.swift +6 -6
  76. package/nitrogen/generated/ios/swift/HybridNitroNumberViewSpec_cxx.swift +18 -18
  77. package/nitrogen/generated/ios/swift/HybridNitroTextViewSpec.swift +6 -6
  78. package/nitrogen/generated/ios/swift/HybridNitroTextViewSpec_cxx.swift +18 -18
  79. package/nitrogen/generated/ios/swift/NitroInputSize.swift +34 -0
  80. package/nitrogen/generated/ios/swift/NitroInputSizing.swift +242 -0
  81. package/nitrogen/generated/shared/c++/HybridNitroInputMeasureSpec.cpp +21 -0
  82. package/nitrogen/generated/shared/c++/HybridNitroInputMeasureSpec.hpp +66 -0
  83. package/nitrogen/generated/shared/c++/HybridNitroInputViewSpec.cpp +24 -16
  84. package/nitrogen/generated/shared/c++/HybridNitroInputViewSpec.hpp +24 -16
  85. package/nitrogen/generated/shared/c++/HybridNitroNumberViewSpec.cpp +12 -12
  86. package/nitrogen/generated/shared/c++/HybridNitroNumberViewSpec.hpp +12 -12
  87. package/nitrogen/generated/shared/c++/HybridNitroTextViewSpec.cpp +12 -12
  88. package/nitrogen/generated/shared/c++/HybridNitroTextViewSpec.hpp +12 -12
  89. package/nitrogen/generated/shared/c++/NitroInputSize.hpp +87 -0
  90. package/nitrogen/generated/shared/c++/NitroInputSizing.hpp +263 -0
  91. package/nitrogen/generated/shared/c++/views/HybridNitroInputViewComponent.cpp +24 -16
  92. package/nitrogen/generated/shared/c++/views/HybridNitroInputViewComponent.hpp +36 -24
  93. package/nitrogen/generated/shared/c++/views/HybridNitroNumberViewComponent.cpp +12 -12
  94. package/nitrogen/generated/shared/c++/views/HybridNitroNumberViewComponent.hpp +18 -18
  95. package/nitrogen/generated/shared/c++/views/HybridNitroTextViewComponent.cpp +12 -12
  96. package/nitrogen/generated/shared/c++/views/HybridNitroTextViewComponent.hpp +18 -18
  97. package/nitrogen/generated/shared/json/NitroInputViewConfig.json +12 -8
  98. package/nitrogen/generated/shared/json/NitroNumberViewConfig.json +6 -6
  99. package/nitrogen/generated/shared/json/NitroTextViewConfig.json +6 -6
  100. package/package.json +4 -2
  101. package/src/NitroInput.tsx +201 -64
  102. package/src/NitroNumber.tsx +6 -6
  103. package/src/NitroText.tsx +6 -6
  104. package/src/specs/NitroInput.nitro.ts +17 -8
  105. package/src/specs/NitroInputMeasure.nitro.ts +76 -0
  106. package/src/specs/NitroNumber.nitro.ts +6 -6
  107. package/src/specs/NitroText.nitro.ts +6 -6
@@ -0,0 +1,263 @@
1
+ ///
2
+ /// NitroInputSizing.hpp
3
+ /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
+ /// https://github.com/mrousavy/nitro
5
+ /// Copyright © Marc Rousavy @ Margelo
6
+ ///
7
+
8
+ #pragma once
9
+
10
+ #if __has_include(<NitroModules/JSIConverter.hpp>)
11
+ #include <NitroModules/JSIConverter.hpp>
12
+ #else
13
+ #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
14
+ #endif
15
+ #if __has_include(<NitroModules/NitroDefines.hpp>)
16
+ #include <NitroModules/NitroDefines.hpp>
17
+ #else
18
+ #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
19
+ #endif
20
+ #if __has_include(<NitroModules/JSIHelpers.hpp>)
21
+ #include <NitroModules/JSIHelpers.hpp>
22
+ #else
23
+ #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
24
+ #endif
25
+ #if __has_include(<NitroModules/PropNameIDCache.hpp>)
26
+ #include <NitroModules/PropNameIDCache.hpp>
27
+ #else
28
+ #error NitroModules cannot be found! Are you sure you installed NitroModules properly?
29
+ #endif
30
+
31
+ // Forward declaration of `NitroInputMode` to properly resolve imports.
32
+ namespace margelo::nitro::nitroinput { enum class NitroInputMode; }
33
+ // Forward declaration of `NitroInputSignPlacement` to properly resolve imports.
34
+ namespace margelo::nitro::nitroinput { enum class NitroInputSignPlacement; }
35
+ // Forward declaration of `NitroInputNotation` to properly resolve imports.
36
+ namespace margelo::nitro::nitroinput { struct NitroInputNotation; }
37
+ // Forward declaration of `NitroInputMaskAffinity` to properly resolve imports.
38
+ namespace margelo::nitro::nitroinput { enum class NitroInputMaskAffinity; }
39
+ // Forward declaration of `NitroInputTextCase` to properly resolve imports.
40
+ namespace margelo::nitro::nitroinput { enum class NitroInputTextCase; }
41
+ // Forward declaration of `NitroInputCharacterMapping` to properly resolve imports.
42
+ namespace margelo::nitro::nitroinput { struct NitroInputCharacterMapping; }
43
+ // Forward declaration of `NitroInputVariant` to properly resolve imports.
44
+ namespace margelo::nitro::nitroinput { enum class NitroInputVariant; }
45
+ // Forward declaration of `NitroInputLabelBehavior` to properly resolve imports.
46
+ namespace margelo::nitro::nitroinput { enum class NitroInputLabelBehavior; }
47
+
48
+ #include <string>
49
+ #include "NitroInputMode.hpp"
50
+ #include "NitroInputSignPlacement.hpp"
51
+ #include "NitroInputNotation.hpp"
52
+ #include <vector>
53
+ #include "NitroInputMaskAffinity.hpp"
54
+ #include "NitroInputTextCase.hpp"
55
+ #include "NitroInputCharacterMapping.hpp"
56
+ #include "NitroInputVariant.hpp"
57
+ #include "NitroInputLabelBehavior.hpp"
58
+
59
+ namespace margelo::nitro::nitroinput {
60
+
61
+ /**
62
+ * A struct which can be represented as a JavaScript object (NitroInputSizing).
63
+ */
64
+ struct NitroInputSizing final {
65
+ public:
66
+ std::string text SWIFT_PRIVATE;
67
+ NitroInputMode mode SWIFT_PRIVATE;
68
+ bool plain SWIFT_PRIVATE;
69
+ bool multiline SWIFT_PRIVATE;
70
+ bool secureTextEntry SWIFT_PRIVATE;
71
+ double maxLength SWIFT_PRIVATE;
72
+ double fractionDigits SWIFT_PRIVATE;
73
+ double maxIntegerDigits SWIFT_PRIVATE;
74
+ std::string groupingSeparator SWIFT_PRIVATE;
75
+ std::string decimalSeparator SWIFT_PRIVATE;
76
+ std::string prefix SWIFT_PRIVATE;
77
+ std::string suffix SWIFT_PRIVATE;
78
+ NitroInputSignPlacement signPlacement SWIFT_PRIVATE;
79
+ std::string placeholder SWIFT_PRIVATE;
80
+ std::string mask SWIFT_PRIVATE;
81
+ std::vector<NitroInputNotation> maskNotations SWIFT_PRIVATE;
82
+ bool maskAutocomplete SWIFT_PRIVATE;
83
+ bool maskAutoSkip SWIFT_PRIVATE;
84
+ std::vector<std::string> maskAffinityFormats SWIFT_PRIVATE;
85
+ NitroInputMaskAffinity maskAffinityStrategy SWIFT_PRIVATE;
86
+ NitroInputTextCase maskTextCase SWIFT_PRIVATE;
87
+ std::vector<NitroInputCharacterMapping> maskCharacterMap SWIFT_PRIVATE;
88
+ std::string maskSlotPlaceholder SWIFT_PRIVATE;
89
+ bool keepPlaceholder SWIFT_PRIVATE;
90
+ double textSize SWIFT_PRIVATE;
91
+ double textLineHeight SWIFT_PRIVATE;
92
+ double prefixFontSize SWIFT_PRIVATE;
93
+ double suffixFontSize SWIFT_PRIVATE;
94
+ double textWeight SWIFT_PRIVATE;
95
+ std::string textFamily SWIFT_PRIVATE;
96
+ double textLetterSpacing SWIFT_PRIVATE;
97
+ double prefixSpacing SWIFT_PRIVATE;
98
+ double suffixSpacing SWIFT_PRIVATE;
99
+ bool allowFontScaling SWIFT_PRIVATE;
100
+ double maxFontSizeMultiplier SWIFT_PRIVATE;
101
+ NitroInputVariant variant SWIFT_PRIVATE;
102
+ std::string label SWIFT_PRIVATE;
103
+ NitroInputLabelBehavior labelBehavior SWIFT_PRIVATE;
104
+ double labelFontSize SWIFT_PRIVATE;
105
+ double cornerRadius SWIFT_PRIVATE;
106
+
107
+ public:
108
+ NitroInputSizing() = default;
109
+ explicit NitroInputSizing(std::string text, NitroInputMode mode, bool plain, bool multiline, bool secureTextEntry, double maxLength, double fractionDigits, double maxIntegerDigits, std::string groupingSeparator, std::string decimalSeparator, std::string prefix, std::string suffix, NitroInputSignPlacement signPlacement, std::string placeholder, std::string mask, std::vector<NitroInputNotation> maskNotations, bool maskAutocomplete, bool maskAutoSkip, std::vector<std::string> maskAffinityFormats, NitroInputMaskAffinity maskAffinityStrategy, NitroInputTextCase maskTextCase, std::vector<NitroInputCharacterMapping> maskCharacterMap, std::string maskSlotPlaceholder, bool keepPlaceholder, double textSize, double textLineHeight, double prefixFontSize, double suffixFontSize, double textWeight, std::string textFamily, double textLetterSpacing, double prefixSpacing, double suffixSpacing, bool allowFontScaling, double maxFontSizeMultiplier, NitroInputVariant variant, std::string label, NitroInputLabelBehavior labelBehavior, double labelFontSize, double cornerRadius): text(text), mode(mode), plain(plain), multiline(multiline), secureTextEntry(secureTextEntry), maxLength(maxLength), fractionDigits(fractionDigits), maxIntegerDigits(maxIntegerDigits), groupingSeparator(groupingSeparator), decimalSeparator(decimalSeparator), prefix(prefix), suffix(suffix), signPlacement(signPlacement), placeholder(placeholder), mask(mask), maskNotations(maskNotations), maskAutocomplete(maskAutocomplete), maskAutoSkip(maskAutoSkip), maskAffinityFormats(maskAffinityFormats), maskAffinityStrategy(maskAffinityStrategy), maskTextCase(maskTextCase), maskCharacterMap(maskCharacterMap), maskSlotPlaceholder(maskSlotPlaceholder), keepPlaceholder(keepPlaceholder), textSize(textSize), textLineHeight(textLineHeight), prefixFontSize(prefixFontSize), suffixFontSize(suffixFontSize), textWeight(textWeight), textFamily(textFamily), textLetterSpacing(textLetterSpacing), prefixSpacing(prefixSpacing), suffixSpacing(suffixSpacing), allowFontScaling(allowFontScaling), maxFontSizeMultiplier(maxFontSizeMultiplier), variant(variant), label(label), labelBehavior(labelBehavior), labelFontSize(labelFontSize), cornerRadius(cornerRadius) {}
110
+
111
+ public:
112
+ friend bool operator==(const NitroInputSizing& lhs, const NitroInputSizing& rhs) = default;
113
+ };
114
+
115
+ } // namespace margelo::nitro::nitroinput
116
+
117
+ namespace margelo::nitro {
118
+
119
+ // C++ NitroInputSizing <> JS NitroInputSizing (object)
120
+ template <>
121
+ struct JSIConverter<margelo::nitro::nitroinput::NitroInputSizing> final {
122
+ static inline margelo::nitro::nitroinput::NitroInputSizing fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
123
+ jsi::Object obj = arg.asObject(runtime);
124
+ return margelo::nitro::nitroinput::NitroInputSizing(
125
+ JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "text"))),
126
+ JSIConverter<margelo::nitro::nitroinput::NitroInputMode>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "mode"))),
127
+ JSIConverter<bool>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "plain"))),
128
+ JSIConverter<bool>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "multiline"))),
129
+ JSIConverter<bool>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "secureTextEntry"))),
130
+ JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "maxLength"))),
131
+ JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "fractionDigits"))),
132
+ JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "maxIntegerDigits"))),
133
+ JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "groupingSeparator"))),
134
+ JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "decimalSeparator"))),
135
+ JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "prefix"))),
136
+ JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "suffix"))),
137
+ JSIConverter<margelo::nitro::nitroinput::NitroInputSignPlacement>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "signPlacement"))),
138
+ JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "placeholder"))),
139
+ JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "mask"))),
140
+ JSIConverter<std::vector<margelo::nitro::nitroinput::NitroInputNotation>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "maskNotations"))),
141
+ JSIConverter<bool>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "maskAutocomplete"))),
142
+ JSIConverter<bool>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "maskAutoSkip"))),
143
+ JSIConverter<std::vector<std::string>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "maskAffinityFormats"))),
144
+ JSIConverter<margelo::nitro::nitroinput::NitroInputMaskAffinity>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "maskAffinityStrategy"))),
145
+ JSIConverter<margelo::nitro::nitroinput::NitroInputTextCase>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "maskTextCase"))),
146
+ JSIConverter<std::vector<margelo::nitro::nitroinput::NitroInputCharacterMapping>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "maskCharacterMap"))),
147
+ JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "maskSlotPlaceholder"))),
148
+ JSIConverter<bool>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "keepPlaceholder"))),
149
+ JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "textSize"))),
150
+ JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "textLineHeight"))),
151
+ JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "prefixFontSize"))),
152
+ JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "suffixFontSize"))),
153
+ JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "textWeight"))),
154
+ JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "textFamily"))),
155
+ JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "textLetterSpacing"))),
156
+ JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "prefixSpacing"))),
157
+ JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "suffixSpacing"))),
158
+ JSIConverter<bool>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "allowFontScaling"))),
159
+ JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "maxFontSizeMultiplier"))),
160
+ JSIConverter<margelo::nitro::nitroinput::NitroInputVariant>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "variant"))),
161
+ JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "label"))),
162
+ JSIConverter<margelo::nitro::nitroinput::NitroInputLabelBehavior>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "labelBehavior"))),
163
+ JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "labelFontSize"))),
164
+ JSIConverter<double>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "cornerRadius")))
165
+ );
166
+ }
167
+ static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::nitroinput::NitroInputSizing& arg) {
168
+ jsi::Object obj(runtime);
169
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "text"), JSIConverter<std::string>::toJSI(runtime, arg.text));
170
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "mode"), JSIConverter<margelo::nitro::nitroinput::NitroInputMode>::toJSI(runtime, arg.mode));
171
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "plain"), JSIConverter<bool>::toJSI(runtime, arg.plain));
172
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "multiline"), JSIConverter<bool>::toJSI(runtime, arg.multiline));
173
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "secureTextEntry"), JSIConverter<bool>::toJSI(runtime, arg.secureTextEntry));
174
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "maxLength"), JSIConverter<double>::toJSI(runtime, arg.maxLength));
175
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "fractionDigits"), JSIConverter<double>::toJSI(runtime, arg.fractionDigits));
176
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "maxIntegerDigits"), JSIConverter<double>::toJSI(runtime, arg.maxIntegerDigits));
177
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "groupingSeparator"), JSIConverter<std::string>::toJSI(runtime, arg.groupingSeparator));
178
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "decimalSeparator"), JSIConverter<std::string>::toJSI(runtime, arg.decimalSeparator));
179
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "prefix"), JSIConverter<std::string>::toJSI(runtime, arg.prefix));
180
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "suffix"), JSIConverter<std::string>::toJSI(runtime, arg.suffix));
181
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "signPlacement"), JSIConverter<margelo::nitro::nitroinput::NitroInputSignPlacement>::toJSI(runtime, arg.signPlacement));
182
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "placeholder"), JSIConverter<std::string>::toJSI(runtime, arg.placeholder));
183
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "mask"), JSIConverter<std::string>::toJSI(runtime, arg.mask));
184
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "maskNotations"), JSIConverter<std::vector<margelo::nitro::nitroinput::NitroInputNotation>>::toJSI(runtime, arg.maskNotations));
185
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "maskAutocomplete"), JSIConverter<bool>::toJSI(runtime, arg.maskAutocomplete));
186
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "maskAutoSkip"), JSIConverter<bool>::toJSI(runtime, arg.maskAutoSkip));
187
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "maskAffinityFormats"), JSIConverter<std::vector<std::string>>::toJSI(runtime, arg.maskAffinityFormats));
188
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "maskAffinityStrategy"), JSIConverter<margelo::nitro::nitroinput::NitroInputMaskAffinity>::toJSI(runtime, arg.maskAffinityStrategy));
189
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "maskTextCase"), JSIConverter<margelo::nitro::nitroinput::NitroInputTextCase>::toJSI(runtime, arg.maskTextCase));
190
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "maskCharacterMap"), JSIConverter<std::vector<margelo::nitro::nitroinput::NitroInputCharacterMapping>>::toJSI(runtime, arg.maskCharacterMap));
191
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "maskSlotPlaceholder"), JSIConverter<std::string>::toJSI(runtime, arg.maskSlotPlaceholder));
192
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "keepPlaceholder"), JSIConverter<bool>::toJSI(runtime, arg.keepPlaceholder));
193
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "textSize"), JSIConverter<double>::toJSI(runtime, arg.textSize));
194
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "textLineHeight"), JSIConverter<double>::toJSI(runtime, arg.textLineHeight));
195
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "prefixFontSize"), JSIConverter<double>::toJSI(runtime, arg.prefixFontSize));
196
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "suffixFontSize"), JSIConverter<double>::toJSI(runtime, arg.suffixFontSize));
197
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "textWeight"), JSIConverter<double>::toJSI(runtime, arg.textWeight));
198
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "textFamily"), JSIConverter<std::string>::toJSI(runtime, arg.textFamily));
199
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "textLetterSpacing"), JSIConverter<double>::toJSI(runtime, arg.textLetterSpacing));
200
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "prefixSpacing"), JSIConverter<double>::toJSI(runtime, arg.prefixSpacing));
201
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "suffixSpacing"), JSIConverter<double>::toJSI(runtime, arg.suffixSpacing));
202
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "allowFontScaling"), JSIConverter<bool>::toJSI(runtime, arg.allowFontScaling));
203
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "maxFontSizeMultiplier"), JSIConverter<double>::toJSI(runtime, arg.maxFontSizeMultiplier));
204
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "variant"), JSIConverter<margelo::nitro::nitroinput::NitroInputVariant>::toJSI(runtime, arg.variant));
205
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "label"), JSIConverter<std::string>::toJSI(runtime, arg.label));
206
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "labelBehavior"), JSIConverter<margelo::nitro::nitroinput::NitroInputLabelBehavior>::toJSI(runtime, arg.labelBehavior));
207
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "labelFontSize"), JSIConverter<double>::toJSI(runtime, arg.labelFontSize));
208
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "cornerRadius"), JSIConverter<double>::toJSI(runtime, arg.cornerRadius));
209
+ return obj;
210
+ }
211
+ static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
212
+ if (!value.isObject()) {
213
+ return false;
214
+ }
215
+ jsi::Object obj = value.getObject(runtime);
216
+ if (!nitro::isPlainObject(runtime, obj)) {
217
+ return false;
218
+ }
219
+ if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "text")))) return false;
220
+ if (!JSIConverter<margelo::nitro::nitroinput::NitroInputMode>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "mode")))) return false;
221
+ if (!JSIConverter<bool>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "plain")))) return false;
222
+ if (!JSIConverter<bool>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "multiline")))) return false;
223
+ if (!JSIConverter<bool>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "secureTextEntry")))) return false;
224
+ if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "maxLength")))) return false;
225
+ if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "fractionDigits")))) return false;
226
+ if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "maxIntegerDigits")))) return false;
227
+ if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "groupingSeparator")))) return false;
228
+ if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "decimalSeparator")))) return false;
229
+ if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "prefix")))) return false;
230
+ if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "suffix")))) return false;
231
+ if (!JSIConverter<margelo::nitro::nitroinput::NitroInputSignPlacement>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "signPlacement")))) return false;
232
+ if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "placeholder")))) return false;
233
+ if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "mask")))) return false;
234
+ if (!JSIConverter<std::vector<margelo::nitro::nitroinput::NitroInputNotation>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "maskNotations")))) return false;
235
+ if (!JSIConverter<bool>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "maskAutocomplete")))) return false;
236
+ if (!JSIConverter<bool>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "maskAutoSkip")))) return false;
237
+ if (!JSIConverter<std::vector<std::string>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "maskAffinityFormats")))) return false;
238
+ if (!JSIConverter<margelo::nitro::nitroinput::NitroInputMaskAffinity>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "maskAffinityStrategy")))) return false;
239
+ if (!JSIConverter<margelo::nitro::nitroinput::NitroInputTextCase>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "maskTextCase")))) return false;
240
+ if (!JSIConverter<std::vector<margelo::nitro::nitroinput::NitroInputCharacterMapping>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "maskCharacterMap")))) return false;
241
+ if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "maskSlotPlaceholder")))) return false;
242
+ if (!JSIConverter<bool>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "keepPlaceholder")))) return false;
243
+ if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "textSize")))) return false;
244
+ if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "textLineHeight")))) return false;
245
+ if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "prefixFontSize")))) return false;
246
+ if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "suffixFontSize")))) return false;
247
+ if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "textWeight")))) return false;
248
+ if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "textFamily")))) return false;
249
+ if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "textLetterSpacing")))) return false;
250
+ if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "prefixSpacing")))) return false;
251
+ if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "suffixSpacing")))) return false;
252
+ if (!JSIConverter<bool>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "allowFontScaling")))) return false;
253
+ if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "maxFontSizeMultiplier")))) return false;
254
+ if (!JSIConverter<margelo::nitro::nitroinput::NitroInputVariant>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "variant")))) return false;
255
+ if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "label")))) return false;
256
+ if (!JSIConverter<margelo::nitro::nitroinput::NitroInputLabelBehavior>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "labelBehavior")))) return false;
257
+ if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "labelFontSize")))) return false;
258
+ if (!JSIConverter<double>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "cornerRadius")))) return false;
259
+ return true;
260
+ }
261
+ };
262
+
263
+ } // namespace margelo::nitro
@@ -56,7 +56,7 @@ namespace margelo::nitro::nitroinput::views {
56
56
  signPlacement(nitro::ReactProp<NitroInputSignPlacement>::fromRawValue("NitroInputView", "signPlacement", rawProps, sourceProps.signPlacement)),
57
57
  prefixAlign(nitro::ReactProp<NitroInputAffixAlign>::fromRawValue("NitroInputView", "prefixAlign", rawProps, sourceProps.prefixAlign)),
58
58
  suffixAlign(nitro::ReactProp<NitroInputAffixAlign>::fromRawValue("NitroInputView", "suffixAlign", rawProps, sourceProps.suffixAlign)),
59
- letterSpacing(nitro::ReactProp<double>::fromRawValue("NitroInputView", "letterSpacing", rawProps, sourceProps.letterSpacing)),
59
+ textLetterSpacing(nitro::ReactProp<double>::fromRawValue("NitroInputView", "textLetterSpacing", rawProps, sourceProps.textLetterSpacing)),
60
60
  prefixSpacing(nitro::ReactProp<double>::fromRawValue("NitroInputView", "prefixSpacing", rawProps, sourceProps.prefixSpacing)),
61
61
  suffixSpacing(nitro::ReactProp<double>::fromRawValue("NitroInputView", "suffixSpacing", rawProps, sourceProps.suffixSpacing)),
62
62
  prefixOffset(nitro::ReactProp<double>::fromRawValue("NitroInputView", "prefixOffset", rawProps, sourceProps.prefixOffset)),
@@ -67,12 +67,12 @@ namespace margelo::nitro::nitroinput::views {
67
67
  easing(nitro::ReactProp<NitroInputEasing>::fromRawValue("NitroInputView", "easing", rawProps, sourceProps.easing)),
68
68
  bounce(nitro::ReactProp<double>::fromRawValue("NitroInputView", "bounce", rawProps, sourceProps.bounce)),
69
69
  effect(nitro::ReactProp<NitroInputEffect>::fromRawValue("NitroInputView", "effect", rawProps, sourceProps.effect)),
70
- fontSize(nitro::ReactProp<double>::fromRawValue("NitroInputView", "fontSize", rawProps, sourceProps.fontSize)),
71
- lineHeight(nitro::ReactProp<double>::fromRawValue("NitroInputView", "lineHeight", rawProps, sourceProps.lineHeight)),
72
- fontWeight(nitro::ReactProp<double>::fromRawValue("NitroInputView", "fontWeight", rawProps, sourceProps.fontWeight)),
73
- fontFamily(nitro::ReactProp<std::string>::fromRawValue("NitroInputView", "fontFamily", rawProps, sourceProps.fontFamily)),
74
- color(nitro::ReactProp<double>::fromRawValue("NitroInputView", "color", rawProps, sourceProps.color)),
75
- textAlign(nitro::ReactProp<NitroInputTextAlign>::fromRawValue("NitroInputView", "textAlign", rawProps, sourceProps.textAlign)),
70
+ textSize(nitro::ReactProp<double>::fromRawValue("NitroInputView", "textSize", rawProps, sourceProps.textSize)),
71
+ textLineHeight(nitro::ReactProp<double>::fromRawValue("NitroInputView", "textLineHeight", rawProps, sourceProps.textLineHeight)),
72
+ textWeight(nitro::ReactProp<double>::fromRawValue("NitroInputView", "textWeight", rawProps, sourceProps.textWeight)),
73
+ textFamily(nitro::ReactProp<std::string>::fromRawValue("NitroInputView", "textFamily", rawProps, sourceProps.textFamily)),
74
+ textColor(nitro::ReactProp<double>::fromRawValue("NitroInputView", "textColor", rawProps, sourceProps.textColor)),
75
+ textAlignment(nitro::ReactProp<NitroInputTextAlign>::fromRawValue("NitroInputView", "textAlignment", rawProps, sourceProps.textAlignment)),
76
76
  rightToLeft(nitro::ReactProp<bool>::fromRawValue("NitroInputView", "rightToLeft", rawProps, sourceProps.rightToLeft)),
77
77
  caretColor(nitro::ReactProp<double>::fromRawValue("NitroInputView", "caretColor", rawProps, sourceProps.caretColor)),
78
78
  selectionColor(nitro::ReactProp<double>::fromRawValue("NitroInputView", "selectionColor", rawProps, sourceProps.selectionColor)),
@@ -88,7 +88,11 @@ namespace margelo::nitro::nitroinput::views {
88
88
  editable(nitro::ReactProp<bool>::fromRawValue("NitroInputView", "editable", rawProps, sourceProps.editable)),
89
89
  multiline(nitro::ReactProp<bool>::fromRawValue("NitroInputView", "multiline", rawProps, sourceProps.multiline)),
90
90
  numberOfLines(nitro::ReactProp<double>::fromRawValue("NitroInputView", "numberOfLines", rawProps, sourceProps.numberOfLines)),
91
- textAlignVertical(nitro::ReactProp<NitroInputTextAlignVertical>::fromRawValue("NitroInputView", "textAlignVertical", rawProps, sourceProps.textAlignVertical)),
91
+ textVerticalAlignment(nitro::ReactProp<NitroInputTextAlignVertical>::fromRawValue("NitroInputView", "textVerticalAlignment", rawProps, sourceProps.textVerticalAlignment)),
92
+ textInsetLeft(nitro::ReactProp<double>::fromRawValue("NitroInputView", "textInsetLeft", rawProps, sourceProps.textInsetLeft)),
93
+ textInsetTop(nitro::ReactProp<double>::fromRawValue("NitroInputView", "textInsetTop", rawProps, sourceProps.textInsetTop)),
94
+ textInsetRight(nitro::ReactProp<double>::fromRawValue("NitroInputView", "textInsetRight", rawProps, sourceProps.textInsetRight)),
95
+ textInsetBottom(nitro::ReactProp<double>::fromRawValue("NitroInputView", "textInsetBottom", rawProps, sourceProps.textInsetBottom)),
92
96
  scrollEnabled(nitro::ReactProp<bool>::fromRawValue("NitroInputView", "scrollEnabled", rawProps, sourceProps.scrollEnabled)),
93
97
  autoFocus(nitro::ReactProp<bool>::fromRawValue("NitroInputView", "autoFocus", rawProps, sourceProps.autoFocus)),
94
98
  fieldTestID(nitro::ReactProp<std::string>::fromRawValue("NitroInputView", "fieldTestID", rawProps, sourceProps.fieldTestID)),
@@ -165,7 +169,7 @@ namespace margelo::nitro::nitroinput::views {
165
169
  case hashString("signPlacement"): return true;
166
170
  case hashString("prefixAlign"): return true;
167
171
  case hashString("suffixAlign"): return true;
168
- case hashString("letterSpacing"): return true;
172
+ case hashString("textLetterSpacing"): return true;
169
173
  case hashString("prefixSpacing"): return true;
170
174
  case hashString("suffixSpacing"): return true;
171
175
  case hashString("prefixOffset"): return true;
@@ -176,12 +180,12 @@ namespace margelo::nitro::nitroinput::views {
176
180
  case hashString("easing"): return true;
177
181
  case hashString("bounce"): return true;
178
182
  case hashString("effect"): return true;
179
- case hashString("fontSize"): return true;
180
- case hashString("lineHeight"): return true;
181
- case hashString("fontWeight"): return true;
182
- case hashString("fontFamily"): return true;
183
- case hashString("color"): return true;
184
- case hashString("textAlign"): return true;
183
+ case hashString("textSize"): return true;
184
+ case hashString("textLineHeight"): return true;
185
+ case hashString("textWeight"): return true;
186
+ case hashString("textFamily"): return true;
187
+ case hashString("textColor"): return true;
188
+ case hashString("textAlignment"): return true;
185
189
  case hashString("rightToLeft"): return true;
186
190
  case hashString("caretColor"): return true;
187
191
  case hashString("selectionColor"): return true;
@@ -197,7 +201,11 @@ namespace margelo::nitro::nitroinput::views {
197
201
  case hashString("editable"): return true;
198
202
  case hashString("multiline"): return true;
199
203
  case hashString("numberOfLines"): return true;
200
- case hashString("textAlignVertical"): return true;
204
+ case hashString("textVerticalAlignment"): return true;
205
+ case hashString("textInsetLeft"): return true;
206
+ case hashString("textInsetTop"): return true;
207
+ case hashString("textInsetRight"): return true;
208
+ case hashString("textInsetBottom"): return true;
201
209
  case hashString("scrollEnabled"): return true;
202
210
  case hashString("autoFocus"): return true;
203
211
  case hashString("fieldTestID"): return true;
@@ -98,7 +98,7 @@ namespace margelo::nitro::nitroinput::views {
98
98
  nitro::ReactProp<NitroInputSignPlacement> signPlacement;
99
99
  nitro::ReactProp<NitroInputAffixAlign> prefixAlign;
100
100
  nitro::ReactProp<NitroInputAffixAlign> suffixAlign;
101
- nitro::ReactProp<double> letterSpacing;
101
+ nitro::ReactProp<double> textLetterSpacing;
102
102
  nitro::ReactProp<double> prefixSpacing;
103
103
  nitro::ReactProp<double> suffixSpacing;
104
104
  nitro::ReactProp<double> prefixOffset;
@@ -109,12 +109,12 @@ namespace margelo::nitro::nitroinput::views {
109
109
  nitro::ReactProp<NitroInputEasing> easing;
110
110
  nitro::ReactProp<double> bounce;
111
111
  nitro::ReactProp<NitroInputEffect> effect;
112
- nitro::ReactProp<double> fontSize;
113
- nitro::ReactProp<double> lineHeight;
114
- nitro::ReactProp<double> fontWeight;
115
- nitro::ReactProp<std::string> fontFamily;
116
- nitro::ReactProp<double> color;
117
- nitro::ReactProp<NitroInputTextAlign> textAlign;
112
+ nitro::ReactProp<double> textSize;
113
+ nitro::ReactProp<double> textLineHeight;
114
+ nitro::ReactProp<double> textWeight;
115
+ nitro::ReactProp<std::string> textFamily;
116
+ nitro::ReactProp<double> textColor;
117
+ nitro::ReactProp<NitroInputTextAlign> textAlignment;
118
118
  nitro::ReactProp<bool> rightToLeft;
119
119
  nitro::ReactProp<double> caretColor;
120
120
  nitro::ReactProp<double> selectionColor;
@@ -130,7 +130,11 @@ namespace margelo::nitro::nitroinput::views {
130
130
  nitro::ReactProp<bool> editable;
131
131
  nitro::ReactProp<bool> multiline;
132
132
  nitro::ReactProp<double> numberOfLines;
133
- nitro::ReactProp<NitroInputTextAlignVertical> textAlignVertical;
133
+ nitro::ReactProp<NitroInputTextAlignVertical> textVerticalAlignment;
134
+ nitro::ReactProp<double> textInsetLeft;
135
+ nitro::ReactProp<double> textInsetTop;
136
+ nitro::ReactProp<double> textInsetRight;
137
+ nitro::ReactProp<double> textInsetBottom;
134
138
  nitro::ReactProp<bool> scrollEnabled;
135
139
  nitro::ReactProp<bool> autoFocus;
136
140
  nitro::ReactProp<std::string> fieldTestID;
@@ -207,7 +211,7 @@ namespace margelo::nitro::nitroinput::views {
207
211
  signPlacement.hasSameValue(other.signPlacement) &&
208
212
  prefixAlign.hasSameValue(other.prefixAlign) &&
209
213
  suffixAlign.hasSameValue(other.suffixAlign) &&
210
- letterSpacing.hasSameValue(other.letterSpacing) &&
214
+ textLetterSpacing.hasSameValue(other.textLetterSpacing) &&
211
215
  prefixSpacing.hasSameValue(other.prefixSpacing) &&
212
216
  suffixSpacing.hasSameValue(other.suffixSpacing) &&
213
217
  prefixOffset.hasSameValue(other.prefixOffset) &&
@@ -218,12 +222,12 @@ namespace margelo::nitro::nitroinput::views {
218
222
  easing.hasSameValue(other.easing) &&
219
223
  bounce.hasSameValue(other.bounce) &&
220
224
  effect.hasSameValue(other.effect) &&
221
- fontSize.hasSameValue(other.fontSize) &&
222
- lineHeight.hasSameValue(other.lineHeight) &&
223
- fontWeight.hasSameValue(other.fontWeight) &&
224
- fontFamily.hasSameValue(other.fontFamily) &&
225
- color.hasSameValue(other.color) &&
226
- textAlign.hasSameValue(other.textAlign) &&
225
+ textSize.hasSameValue(other.textSize) &&
226
+ textLineHeight.hasSameValue(other.textLineHeight) &&
227
+ textWeight.hasSameValue(other.textWeight) &&
228
+ textFamily.hasSameValue(other.textFamily) &&
229
+ textColor.hasSameValue(other.textColor) &&
230
+ textAlignment.hasSameValue(other.textAlignment) &&
227
231
  rightToLeft.hasSameValue(other.rightToLeft) &&
228
232
  caretColor.hasSameValue(other.caretColor) &&
229
233
  selectionColor.hasSameValue(other.selectionColor) &&
@@ -239,7 +243,11 @@ namespace margelo::nitro::nitroinput::views {
239
243
  editable.hasSameValue(other.editable) &&
240
244
  multiline.hasSameValue(other.multiline) &&
241
245
  numberOfLines.hasSameValue(other.numberOfLines) &&
242
- textAlignVertical.hasSameValue(other.textAlignVertical) &&
246
+ textVerticalAlignment.hasSameValue(other.textVerticalAlignment) &&
247
+ textInsetLeft.hasSameValue(other.textInsetLeft) &&
248
+ textInsetTop.hasSameValue(other.textInsetTop) &&
249
+ textInsetRight.hasSameValue(other.textInsetRight) &&
250
+ textInsetBottom.hasSameValue(other.textInsetBottom) &&
243
251
  scrollEnabled.hasSameValue(other.scrollEnabled) &&
244
252
  autoFocus.hasSameValue(other.autoFocus) &&
245
253
  fieldTestID.hasSameValue(other.fieldTestID) &&
@@ -317,7 +325,7 @@ namespace margelo::nitro::nitroinput::views {
317
325
  signPlacement.isProvided() ||
318
326
  prefixAlign.isProvided() ||
319
327
  suffixAlign.isProvided() ||
320
- letterSpacing.isProvided() ||
328
+ textLetterSpacing.isProvided() ||
321
329
  prefixSpacing.isProvided() ||
322
330
  suffixSpacing.isProvided() ||
323
331
  prefixOffset.isProvided() ||
@@ -328,12 +336,12 @@ namespace margelo::nitro::nitroinput::views {
328
336
  easing.isProvided() ||
329
337
  bounce.isProvided() ||
330
338
  effect.isProvided() ||
331
- fontSize.isProvided() ||
332
- lineHeight.isProvided() ||
333
- fontWeight.isProvided() ||
334
- fontFamily.isProvided() ||
335
- color.isProvided() ||
336
- textAlign.isProvided() ||
339
+ textSize.isProvided() ||
340
+ textLineHeight.isProvided() ||
341
+ textWeight.isProvided() ||
342
+ textFamily.isProvided() ||
343
+ textColor.isProvided() ||
344
+ textAlignment.isProvided() ||
337
345
  rightToLeft.isProvided() ||
338
346
  caretColor.isProvided() ||
339
347
  selectionColor.isProvided() ||
@@ -349,7 +357,11 @@ namespace margelo::nitro::nitroinput::views {
349
357
  editable.isProvided() ||
350
358
  multiline.isProvided() ||
351
359
  numberOfLines.isProvided() ||
352
- textAlignVertical.isProvided() ||
360
+ textVerticalAlignment.isProvided() ||
361
+ textInsetLeft.isProvided() ||
362
+ textInsetTop.isProvided() ||
363
+ textInsetRight.isProvided() ||
364
+ textInsetBottom.isProvided() ||
353
365
  scrollEnabled.isProvided() ||
354
366
  autoFocus.isProvided() ||
355
367
  fieldTestID.isProvided() ||
@@ -53,13 +53,13 @@ namespace margelo::nitro::nitroinput::views {
53
53
  shimmerBaseColor(nitro::ReactProp<std::optional<double>>::fromRawValue("NitroNumberView", "shimmerBaseColor", rawProps, sourceProps.shimmerBaseColor)),
54
54
  shimmerDirection(nitro::ReactProp<std::optional<NitroNumberShimmerDirection>>::fromRawValue("NitroNumberView", "shimmerDirection", rawProps, sourceProps.shimmerDirection)),
55
55
  shimmerDelay(nitro::ReactProp<std::optional<double>>::fromRawValue("NitroNumberView", "shimmerDelay", rawProps, sourceProps.shimmerDelay)),
56
- fontSize(nitro::ReactProp<std::optional<double>>::fromRawValue("NitroNumberView", "fontSize", rawProps, sourceProps.fontSize)),
56
+ textSize(nitro::ReactProp<std::optional<double>>::fromRawValue("NitroNumberView", "textSize", rawProps, sourceProps.textSize)),
57
57
  prefixFontSize(nitro::ReactProp<std::optional<double>>::fromRawValue("NitroNumberView", "prefixFontSize", rawProps, sourceProps.prefixFontSize)),
58
58
  suffixFontSize(nitro::ReactProp<std::optional<double>>::fromRawValue("NitroNumberView", "suffixFontSize", rawProps, sourceProps.suffixFontSize)),
59
59
  affixAlign(nitro::ReactProp<std::optional<NitroNumberAffixAlign>>::fromRawValue("NitroNumberView", "affixAlign", rawProps, sourceProps.affixAlign)),
60
60
  prefixAlign(nitro::ReactProp<std::optional<NitroNumberAffixAlign>>::fromRawValue("NitroNumberView", "prefixAlign", rawProps, sourceProps.prefixAlign)),
61
61
  suffixAlign(nitro::ReactProp<std::optional<NitroNumberAffixAlign>>::fromRawValue("NitroNumberView", "suffixAlign", rawProps, sourceProps.suffixAlign)),
62
- letterSpacing(nitro::ReactProp<std::optional<double>>::fromRawValue("NitroNumberView", "letterSpacing", rawProps, sourceProps.letterSpacing)),
62
+ textLetterSpacing(nitro::ReactProp<std::optional<double>>::fromRawValue("NitroNumberView", "textLetterSpacing", rawProps, sourceProps.textLetterSpacing)),
63
63
  prefixSpacing(nitro::ReactProp<std::optional<double>>::fromRawValue("NitroNumberView", "prefixSpacing", rawProps, sourceProps.prefixSpacing)),
64
64
  suffixSpacing(nitro::ReactProp<std::optional<double>>::fromRawValue("NitroNumberView", "suffixSpacing", rawProps, sourceProps.suffixSpacing)),
65
65
  prefixOffset(nitro::ReactProp<std::optional<double>>::fromRawValue("NitroNumberView", "prefixOffset", rawProps, sourceProps.prefixOffset)),
@@ -82,10 +82,10 @@ namespace margelo::nitro::nitroinput::views {
82
82
  minimumFontScale(nitro::ReactProp<std::optional<double>>::fromRawValue("NitroNumberView", "minimumFontScale", rawProps, sourceProps.minimumFontScale)),
83
83
  allowFontScaling(nitro::ReactProp<std::optional<bool>>::fromRawValue("NitroNumberView", "allowFontScaling", rawProps, sourceProps.allowFontScaling)),
84
84
  maxFontSizeMultiplier(nitro::ReactProp<std::optional<double>>::fromRawValue("NitroNumberView", "maxFontSizeMultiplier", rawProps, sourceProps.maxFontSizeMultiplier)),
85
- fontWeight(nitro::ReactProp<std::optional<double>>::fromRawValue("NitroNumberView", "fontWeight", rawProps, sourceProps.fontWeight)),
86
- fontFamily(nitro::ReactProp<std::optional<std::string>>::fromRawValue("NitroNumberView", "fontFamily", rawProps, sourceProps.fontFamily)),
87
- color(nitro::ReactProp<std::optional<double>>::fromRawValue("NitroNumberView", "color", rawProps, sourceProps.color)),
88
- textAlign(nitro::ReactProp<std::optional<NitroNumberTextAlign>>::fromRawValue("NitroNumberView", "textAlign", rawProps, sourceProps.textAlign)),
85
+ textWeight(nitro::ReactProp<std::optional<double>>::fromRawValue("NitroNumberView", "textWeight", rawProps, sourceProps.textWeight)),
86
+ textFamily(nitro::ReactProp<std::optional<std::string>>::fromRawValue("NitroNumberView", "textFamily", rawProps, sourceProps.textFamily)),
87
+ textColor(nitro::ReactProp<std::optional<double>>::fromRawValue("NitroNumberView", "textColor", rawProps, sourceProps.textColor)),
88
+ textAlignment(nitro::ReactProp<std::optional<NitroNumberTextAlign>>::fromRawValue("NitroNumberView", "textAlignment", rawProps, sourceProps.textAlignment)),
89
89
  rightToLeft(nitro::ReactProp<std::optional<bool>>::fromRawValue("NitroNumberView", "rightToLeft", rawProps, sourceProps.rightToLeft)),
90
90
  onSizeChange(nitro::ReactProp<std::optional<std::function<void(double /* width */, double /* height */)>>>::fromRawValue("NitroNumberView", "onSizeChange", rawProps, sourceProps.onSizeChange)),
91
91
  onRevealEnd(nitro::ReactProp<std::optional<std::function<void()>>>::fromRawValue("NitroNumberView", "onRevealEnd", rawProps, sourceProps.onRevealEnd)),
@@ -129,13 +129,13 @@ namespace margelo::nitro::nitroinput::views {
129
129
  case hashString("shimmerBaseColor"): return true;
130
130
  case hashString("shimmerDirection"): return true;
131
131
  case hashString("shimmerDelay"): return true;
132
- case hashString("fontSize"): return true;
132
+ case hashString("textSize"): return true;
133
133
  case hashString("prefixFontSize"): return true;
134
134
  case hashString("suffixFontSize"): return true;
135
135
  case hashString("affixAlign"): return true;
136
136
  case hashString("prefixAlign"): return true;
137
137
  case hashString("suffixAlign"): return true;
138
- case hashString("letterSpacing"): return true;
138
+ case hashString("textLetterSpacing"): return true;
139
139
  case hashString("prefixSpacing"): return true;
140
140
  case hashString("suffixSpacing"): return true;
141
141
  case hashString("prefixOffset"): return true;
@@ -158,10 +158,10 @@ namespace margelo::nitro::nitroinput::views {
158
158
  case hashString("minimumFontScale"): return true;
159
159
  case hashString("allowFontScaling"): return true;
160
160
  case hashString("maxFontSizeMultiplier"): return true;
161
- case hashString("fontWeight"): return true;
162
- case hashString("fontFamily"): return true;
163
- case hashString("color"): return true;
164
- case hashString("textAlign"): return true;
161
+ case hashString("textWeight"): return true;
162
+ case hashString("textFamily"): return true;
163
+ case hashString("textColor"): return true;
164
+ case hashString("textAlignment"): return true;
165
165
  case hashString("rightToLeft"): return true;
166
166
  case hashString("onSizeChange"): return true;
167
167
  case hashString("onRevealEnd"): return true;