react-native-nitro-input 0.3.7 → 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 (129) hide show
  1. package/CHANGELOG.md +133 -0
  2. package/README.md +9 -4
  3. package/android/CMakeLists.txt +1 -0
  4. package/android/src/main/java/com/margelo/nitro/nitroinput/HybridNitroInputMeasure.kt +52 -0
  5. package/android/src/main/java/com/margelo/nitro/nitroinput/HybridNitroInputView.kt +74 -80
  6. package/android/src/main/java/com/margelo/nitro/nitroinput/HybridNitroNumberView.kt +18 -18
  7. package/android/src/main/java/com/margelo/nitro/nitroinput/HybridNitroTextView.kt +14 -14
  8. package/android/src/main/java/com/margelo/nitro/nitroinput/InputFonts.kt +199 -0
  9. package/android/src/main/java/com/margelo/nitro/nitroinput/InputSizing.kt +398 -0
  10. package/android/src/main/java/com/margelo/nitro/nitroinput/NitroInputView.kt +112 -333
  11. package/android/src/main/java/com/margelo/nitro/nitroinput/NitroNumberView.kt +178 -30
  12. package/cpp/RollingEngine.cpp +68 -5
  13. package/cpp/RollingEngine.hpp +13 -0
  14. package/cpp/numberformat/FormatFigure.cpp +134 -0
  15. package/cpp/numberformat/FormatFigure.hpp +65 -0
  16. package/cpp/numberformat/HybridNitroNumberFormat.cpp +32 -10
  17. package/cpp/numberformat/HybridNitroNumberFormat.hpp +9 -1
  18. package/ios/HybridNitroInputView.swift +69 -75
  19. package/ios/HybridNitroNumberView.swift +18 -18
  20. package/ios/HybridNitroTextView.swift +14 -14
  21. package/ios/InputSizing.swift +534 -0
  22. package/ios/NitroInputView.swift +102 -198
  23. package/ios/NitroNumberView.swift +98 -23
  24. package/lib/commonjs/nitrogen/generated/shared/json/NitroInputViewConfig.json +12 -8
  25. package/lib/commonjs/nitrogen/generated/shared/json/NitroNumberViewConfig.json +6 -6
  26. package/lib/commonjs/nitrogen/generated/shared/json/NitroTextViewConfig.json +6 -6
  27. package/lib/commonjs/src/NitroInput.js +164 -23
  28. package/lib/commonjs/src/NitroNumber.js +19 -11
  29. package/lib/commonjs/src/NitroText.js +6 -6
  30. package/lib/commonjs/src/NumberFormat.js +20 -0
  31. package/lib/commonjs/src/formatProps.js +57 -81
  32. package/lib/commonjs/src/specs/NitroInputMeasure.nitro.js +2 -0
  33. package/lib/module/nitrogen/generated/shared/json/NitroInputViewConfig.json +12 -8
  34. package/lib/module/nitrogen/generated/shared/json/NitroNumberViewConfig.json +6 -6
  35. package/lib/module/nitrogen/generated/shared/json/NitroTextViewConfig.json +6 -6
  36. package/lib/module/src/NitroInput.js +165 -24
  37. package/lib/module/src/NitroNumber.js +20 -12
  38. package/lib/module/src/NitroText.js +6 -6
  39. package/lib/module/src/NumberFormat.js +18 -0
  40. package/lib/module/src/formatProps.js +54 -81
  41. package/lib/module/src/specs/NitroInputMeasure.nitro.js +1 -0
  42. package/lib/typescript/src/NitroInput.d.ts +9 -16
  43. package/lib/typescript/src/NitroNumber.d.ts +25 -7
  44. package/lib/typescript/src/NumberFormat.d.ts +15 -1
  45. package/lib/typescript/src/formatProps.d.ts +23 -18
  46. package/lib/typescript/src/specs/NitroInput.nitro.d.ts +17 -8
  47. package/lib/typescript/src/specs/NitroInputMeasure.nitro.d.ts +67 -0
  48. package/lib/typescript/src/specs/NitroNumber.nitro.d.ts +6 -6
  49. package/lib/typescript/src/specs/NitroText.nitro.d.ts +6 -6
  50. package/lib/typescript/src/specs/NumberFormat.nitro.d.ts +33 -0
  51. package/nitro.json +10 -0
  52. package/nitrogen/generated/android/NitroInput+autolinking.cmake +2 -0
  53. package/nitrogen/generated/android/NitroInputOnLoad.cpp +16 -0
  54. package/nitrogen/generated/android/c++/JHybridNitroInputMeasureSpec.cpp +93 -0
  55. package/nitrogen/generated/android/c++/JHybridNitroInputMeasureSpec.hpp +63 -0
  56. package/nitrogen/generated/android/c++/JHybridNitroInputViewSpec.cpp +76 -40
  57. package/nitrogen/generated/android/c++/JHybridNitroInputViewSpec.hpp +24 -16
  58. package/nitrogen/generated/android/c++/JHybridNitroNumberViewSpec.cpp +30 -30
  59. package/nitrogen/generated/android/c++/JHybridNitroNumberViewSpec.hpp +12 -12
  60. package/nitrogen/generated/android/c++/JHybridNitroTextViewSpec.cpp +30 -30
  61. package/nitrogen/generated/android/c++/JHybridNitroTextViewSpec.hpp +12 -12
  62. package/nitrogen/generated/android/c++/JNitroInputSize.hpp +61 -0
  63. package/nitrogen/generated/android/c++/JNitroInputSizing.hpp +284 -0
  64. package/nitrogen/generated/android/c++/views/JHybridNitroInputViewStateUpdater.cpp +44 -24
  65. package/nitrogen/generated/android/c++/views/JHybridNitroNumberViewStateUpdater.cpp +18 -18
  66. package/nitrogen/generated/android/c++/views/JHybridNitroTextViewStateUpdater.cpp +18 -18
  67. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/HybridNitroInputMeasureSpec.kt +56 -0
  68. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/HybridNitroInputViewSpec.kt +32 -8
  69. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/HybridNitroNumberViewSpec.kt +6 -6
  70. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/HybridNitroTextViewSpec.kt +6 -6
  71. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NitroInputSize.kt +56 -0
  72. package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NitroInputSizing.kt +246 -0
  73. package/nitrogen/generated/ios/NitroInput-Swift-Cxx-Bridge.cpp +17 -0
  74. package/nitrogen/generated/ios/NitroInput-Swift-Cxx-Bridge.hpp +29 -0
  75. package/nitrogen/generated/ios/NitroInput-Swift-Cxx-Umbrella.hpp +11 -0
  76. package/nitrogen/generated/ios/NitroInputAutolinking.mm +8 -0
  77. package/nitrogen/generated/ios/NitroInputAutolinking.swift +12 -0
  78. package/nitrogen/generated/ios/c++/HybridNitroInputMeasureSpecSwift.cpp +11 -0
  79. package/nitrogen/generated/ios/c++/HybridNitroInputMeasureSpecSwift.hpp +112 -0
  80. package/nitrogen/generated/ios/c++/HybridNitroInputViewSpecSwift.hpp +56 -32
  81. package/nitrogen/generated/ios/c++/HybridNitroNumberViewSpecSwift.hpp +24 -24
  82. package/nitrogen/generated/ios/c++/HybridNitroTextViewSpecSwift.hpp +24 -24
  83. package/nitrogen/generated/ios/c++/views/HybridNitroInputViewComponent.mm +56 -32
  84. package/nitrogen/generated/ios/c++/views/HybridNitroNumberViewComponent.mm +24 -24
  85. package/nitrogen/generated/ios/c++/views/HybridNitroTextViewComponent.mm +24 -24
  86. package/nitrogen/generated/ios/swift/HybridNitroInputMeasureSpec.swift +55 -0
  87. package/nitrogen/generated/ios/swift/HybridNitroInputMeasureSpec_cxx.swift +138 -0
  88. package/nitrogen/generated/ios/swift/HybridNitroInputViewSpec.swift +12 -8
  89. package/nitrogen/generated/ios/swift/HybridNitroInputViewSpec_cxx.swift +68 -24
  90. package/nitrogen/generated/ios/swift/HybridNitroNumberViewSpec.swift +6 -6
  91. package/nitrogen/generated/ios/swift/HybridNitroNumberViewSpec_cxx.swift +18 -18
  92. package/nitrogen/generated/ios/swift/HybridNitroTextViewSpec.swift +6 -6
  93. package/nitrogen/generated/ios/swift/HybridNitroTextViewSpec_cxx.swift +18 -18
  94. package/nitrogen/generated/ios/swift/NitroInputSize.swift +34 -0
  95. package/nitrogen/generated/ios/swift/NitroInputSizing.swift +242 -0
  96. package/nitrogen/generated/shared/c++/HybridNitroInputMeasureSpec.cpp +21 -0
  97. package/nitrogen/generated/shared/c++/HybridNitroInputMeasureSpec.hpp +66 -0
  98. package/nitrogen/generated/shared/c++/HybridNitroInputViewSpec.cpp +24 -16
  99. package/nitrogen/generated/shared/c++/HybridNitroInputViewSpec.hpp +24 -16
  100. package/nitrogen/generated/shared/c++/HybridNitroNumberFormatSpec.cpp +2 -0
  101. package/nitrogen/generated/shared/c++/HybridNitroNumberFormatSpec.hpp +8 -0
  102. package/nitrogen/generated/shared/c++/HybridNitroNumberViewSpec.cpp +12 -12
  103. package/nitrogen/generated/shared/c++/HybridNitroNumberViewSpec.hpp +12 -12
  104. package/nitrogen/generated/shared/c++/HybridNitroTextViewSpec.cpp +12 -12
  105. package/nitrogen/generated/shared/c++/HybridNitroTextViewSpec.hpp +12 -12
  106. package/nitrogen/generated/shared/c++/NitroInputSize.hpp +87 -0
  107. package/nitrogen/generated/shared/c++/NitroInputSizing.hpp +263 -0
  108. package/nitrogen/generated/shared/c++/NumberFigure.hpp +95 -0
  109. package/nitrogen/generated/shared/c++/NumberFormatLayout.hpp +112 -0
  110. package/nitrogen/generated/shared/c++/views/HybridNitroInputViewComponent.cpp +24 -16
  111. package/nitrogen/generated/shared/c++/views/HybridNitroInputViewComponent.hpp +36 -24
  112. package/nitrogen/generated/shared/c++/views/HybridNitroNumberViewComponent.cpp +12 -12
  113. package/nitrogen/generated/shared/c++/views/HybridNitroNumberViewComponent.hpp +18 -18
  114. package/nitrogen/generated/shared/c++/views/HybridNitroTextViewComponent.cpp +12 -12
  115. package/nitrogen/generated/shared/c++/views/HybridNitroTextViewComponent.hpp +18 -18
  116. package/nitrogen/generated/shared/json/NitroInputViewConfig.json +12 -8
  117. package/nitrogen/generated/shared/json/NitroNumberViewConfig.json +6 -6
  118. package/nitrogen/generated/shared/json/NitroTextViewConfig.json +6 -6
  119. package/package.json +5 -3
  120. package/src/NitroInput.tsx +201 -64
  121. package/src/NitroNumber.tsx +54 -25
  122. package/src/NitroText.tsx +6 -6
  123. package/src/NumberFormat.ts +22 -0
  124. package/src/formatProps.ts +59 -99
  125. package/src/specs/NitroInput.nitro.ts +17 -8
  126. package/src/specs/NitroInputMeasure.nitro.ts +76 -0
  127. package/src/specs/NitroNumber.nitro.ts +6 -6
  128. package/src/specs/NitroText.nitro.ts +6 -6
  129. package/src/specs/NumberFormat.nitro.ts +35 -0
@@ -0,0 +1,112 @@
1
+ ///
2
+ /// NumberFormatLayout.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
+
32
+
33
+ #include <string>
34
+ #include <vector>
35
+
36
+ namespace margelo::nitro::nitroinput {
37
+
38
+ /**
39
+ * A struct which can be represented as a JavaScript object (NumberFormatLayout).
40
+ */
41
+ struct NumberFormatLayout final {
42
+ public:
43
+ std::string prefix SWIFT_PRIVATE;
44
+ std::string suffix SWIFT_PRIVATE;
45
+ std::string groupingSeparator SWIFT_PRIVATE;
46
+ std::string decimalSeparator SWIFT_PRIVATE;
47
+ bool signAfterAffix SWIFT_PRIVATE;
48
+ std::string minusSign SWIFT_PRIVATE;
49
+ std::vector<double> groupingSizes SWIFT_PRIVATE;
50
+ std::vector<std::string> digitGlyphs SWIFT_PRIVATE;
51
+
52
+ public:
53
+ NumberFormatLayout() = default;
54
+ explicit NumberFormatLayout(std::string prefix, std::string suffix, std::string groupingSeparator, std::string decimalSeparator, bool signAfterAffix, std::string minusSign, std::vector<double> groupingSizes, std::vector<std::string> digitGlyphs): prefix(prefix), suffix(suffix), groupingSeparator(groupingSeparator), decimalSeparator(decimalSeparator), signAfterAffix(signAfterAffix), minusSign(minusSign), groupingSizes(groupingSizes), digitGlyphs(digitGlyphs) {}
55
+
56
+ public:
57
+ friend bool operator==(const NumberFormatLayout& lhs, const NumberFormatLayout& rhs) = default;
58
+ };
59
+
60
+ } // namespace margelo::nitro::nitroinput
61
+
62
+ namespace margelo::nitro {
63
+
64
+ // C++ NumberFormatLayout <> JS NumberFormatLayout (object)
65
+ template <>
66
+ struct JSIConverter<margelo::nitro::nitroinput::NumberFormatLayout> final {
67
+ static inline margelo::nitro::nitroinput::NumberFormatLayout fromJSI(jsi::Runtime& runtime, const jsi::Value& arg) {
68
+ jsi::Object obj = arg.asObject(runtime);
69
+ return margelo::nitro::nitroinput::NumberFormatLayout(
70
+ JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "prefix"))),
71
+ JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "suffix"))),
72
+ JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "groupingSeparator"))),
73
+ JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "decimalSeparator"))),
74
+ JSIConverter<bool>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "signAfterAffix"))),
75
+ JSIConverter<std::string>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "minusSign"))),
76
+ JSIConverter<std::vector<double>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "groupingSizes"))),
77
+ JSIConverter<std::vector<std::string>>::fromJSI(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "digitGlyphs")))
78
+ );
79
+ }
80
+ static inline jsi::Value toJSI(jsi::Runtime& runtime, const margelo::nitro::nitroinput::NumberFormatLayout& arg) {
81
+ jsi::Object obj(runtime);
82
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "prefix"), JSIConverter<std::string>::toJSI(runtime, arg.prefix));
83
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "suffix"), JSIConverter<std::string>::toJSI(runtime, arg.suffix));
84
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "groupingSeparator"), JSIConverter<std::string>::toJSI(runtime, arg.groupingSeparator));
85
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "decimalSeparator"), JSIConverter<std::string>::toJSI(runtime, arg.decimalSeparator));
86
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "signAfterAffix"), JSIConverter<bool>::toJSI(runtime, arg.signAfterAffix));
87
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "minusSign"), JSIConverter<std::string>::toJSI(runtime, arg.minusSign));
88
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "groupingSizes"), JSIConverter<std::vector<double>>::toJSI(runtime, arg.groupingSizes));
89
+ obj.setProperty(runtime, PropNameIDCache::get(runtime, "digitGlyphs"), JSIConverter<std::vector<std::string>>::toJSI(runtime, arg.digitGlyphs));
90
+ return obj;
91
+ }
92
+ static inline bool canConvert(jsi::Runtime& runtime, const jsi::Value& value) {
93
+ if (!value.isObject()) {
94
+ return false;
95
+ }
96
+ jsi::Object obj = value.getObject(runtime);
97
+ if (!nitro::isPlainObject(runtime, obj)) {
98
+ return false;
99
+ }
100
+ if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "prefix")))) return false;
101
+ if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "suffix")))) return false;
102
+ if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "groupingSeparator")))) return false;
103
+ if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "decimalSeparator")))) return false;
104
+ if (!JSIConverter<bool>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "signAfterAffix")))) return false;
105
+ if (!JSIConverter<std::string>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "minusSign")))) return false;
106
+ if (!JSIConverter<std::vector<double>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "groupingSizes")))) return false;
107
+ if (!JSIConverter<std::vector<std::string>>::canConvert(runtime, obj.getProperty(runtime, PropNameIDCache::get(runtime, "digitGlyphs")))) return false;
108
+ return true;
109
+ }
110
+ };
111
+
112
+ } // 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;
@@ -85,13 +85,13 @@ namespace margelo::nitro::nitroinput::views {
85
85
  nitro::ReactProp<std::optional<double>> shimmerBaseColor;
86
86
  nitro::ReactProp<std::optional<NitroNumberShimmerDirection>> shimmerDirection;
87
87
  nitro::ReactProp<std::optional<double>> shimmerDelay;
88
- nitro::ReactProp<std::optional<double>> fontSize;
88
+ nitro::ReactProp<std::optional<double>> textSize;
89
89
  nitro::ReactProp<std::optional<double>> prefixFontSize;
90
90
  nitro::ReactProp<std::optional<double>> suffixFontSize;
91
91
  nitro::ReactProp<std::optional<NitroNumberAffixAlign>> affixAlign;
92
92
  nitro::ReactProp<std::optional<NitroNumberAffixAlign>> prefixAlign;
93
93
  nitro::ReactProp<std::optional<NitroNumberAffixAlign>> suffixAlign;
94
- nitro::ReactProp<std::optional<double>> letterSpacing;
94
+ nitro::ReactProp<std::optional<double>> textLetterSpacing;
95
95
  nitro::ReactProp<std::optional<double>> prefixSpacing;
96
96
  nitro::ReactProp<std::optional<double>> suffixSpacing;
97
97
  nitro::ReactProp<std::optional<double>> prefixOffset;
@@ -114,10 +114,10 @@ namespace margelo::nitro::nitroinput::views {
114
114
  nitro::ReactProp<std::optional<double>> minimumFontScale;
115
115
  nitro::ReactProp<std::optional<bool>> allowFontScaling;
116
116
  nitro::ReactProp<std::optional<double>> maxFontSizeMultiplier;
117
- nitro::ReactProp<std::optional<double>> fontWeight;
118
- nitro::ReactProp<std::optional<std::string>> fontFamily;
119
- nitro::ReactProp<std::optional<double>> color;
120
- nitro::ReactProp<std::optional<NitroNumberTextAlign>> textAlign;
117
+ nitro::ReactProp<std::optional<double>> textWeight;
118
+ nitro::ReactProp<std::optional<std::string>> textFamily;
119
+ nitro::ReactProp<std::optional<double>> textColor;
120
+ nitro::ReactProp<std::optional<NitroNumberTextAlign>> textAlignment;
121
121
  nitro::ReactProp<std::optional<bool>> rightToLeft;
122
122
  nitro::ReactProp<std::optional<std::function<void(double /* width */, double /* height */)>>> onSizeChange;
123
123
  nitro::ReactProp<std::optional<std::function<void()>>> onRevealEnd;
@@ -161,13 +161,13 @@ namespace margelo::nitro::nitroinput::views {
161
161
  shimmerBaseColor.hasSameValue(other.shimmerBaseColor) &&
162
162
  shimmerDirection.hasSameValue(other.shimmerDirection) &&
163
163
  shimmerDelay.hasSameValue(other.shimmerDelay) &&
164
- fontSize.hasSameValue(other.fontSize) &&
164
+ textSize.hasSameValue(other.textSize) &&
165
165
  prefixFontSize.hasSameValue(other.prefixFontSize) &&
166
166
  suffixFontSize.hasSameValue(other.suffixFontSize) &&
167
167
  affixAlign.hasSameValue(other.affixAlign) &&
168
168
  prefixAlign.hasSameValue(other.prefixAlign) &&
169
169
  suffixAlign.hasSameValue(other.suffixAlign) &&
170
- letterSpacing.hasSameValue(other.letterSpacing) &&
170
+ textLetterSpacing.hasSameValue(other.textLetterSpacing) &&
171
171
  prefixSpacing.hasSameValue(other.prefixSpacing) &&
172
172
  suffixSpacing.hasSameValue(other.suffixSpacing) &&
173
173
  prefixOffset.hasSameValue(other.prefixOffset) &&
@@ -190,10 +190,10 @@ namespace margelo::nitro::nitroinput::views {
190
190
  minimumFontScale.hasSameValue(other.minimumFontScale) &&
191
191
  allowFontScaling.hasSameValue(other.allowFontScaling) &&
192
192
  maxFontSizeMultiplier.hasSameValue(other.maxFontSizeMultiplier) &&
193
- fontWeight.hasSameValue(other.fontWeight) &&
194
- fontFamily.hasSameValue(other.fontFamily) &&
195
- color.hasSameValue(other.color) &&
196
- textAlign.hasSameValue(other.textAlign) &&
193
+ textWeight.hasSameValue(other.textWeight) &&
194
+ textFamily.hasSameValue(other.textFamily) &&
195
+ textColor.hasSameValue(other.textColor) &&
196
+ textAlignment.hasSameValue(other.textAlignment) &&
197
197
  rightToLeft.hasSameValue(other.rightToLeft) &&
198
198
  onSizeChange.hasSameValue(other.onSizeChange) &&
199
199
  onRevealEnd.hasSameValue(other.onRevealEnd) &&
@@ -238,13 +238,13 @@ namespace margelo::nitro::nitroinput::views {
238
238
  shimmerBaseColor.isProvided() ||
239
239
  shimmerDirection.isProvided() ||
240
240
  shimmerDelay.isProvided() ||
241
- fontSize.isProvided() ||
241
+ textSize.isProvided() ||
242
242
  prefixFontSize.isProvided() ||
243
243
  suffixFontSize.isProvided() ||
244
244
  affixAlign.isProvided() ||
245
245
  prefixAlign.isProvided() ||
246
246
  suffixAlign.isProvided() ||
247
- letterSpacing.isProvided() ||
247
+ textLetterSpacing.isProvided() ||
248
248
  prefixSpacing.isProvided() ||
249
249
  suffixSpacing.isProvided() ||
250
250
  prefixOffset.isProvided() ||
@@ -267,10 +267,10 @@ namespace margelo::nitro::nitroinput::views {
267
267
  minimumFontScale.isProvided() ||
268
268
  allowFontScaling.isProvided() ||
269
269
  maxFontSizeMultiplier.isProvided() ||
270
- fontWeight.isProvided() ||
271
- fontFamily.isProvided() ||
272
- color.isProvided() ||
273
- textAlign.isProvided() ||
270
+ textWeight.isProvided() ||
271
+ textFamily.isProvided() ||
272
+ textColor.isProvided() ||
273
+ textAlignment.isProvided() ||
274
274
  rightToLeft.isProvided() ||
275
275
  onSizeChange.isProvided() ||
276
276
  onRevealEnd.isProvided() ||
@@ -21,12 +21,12 @@ namespace margelo::nitro::nitroinput::views {
21
21
  const react::RawProps& rawProps):
22
22
  react::ViewProps(context, sourceProps, rawProps, filterObjectKeys),
23
23
  text(nitro::ReactProp<std::string>::fromRawValue("NitroTextView", "text", rawProps, sourceProps.text)),
24
- fontSize(nitro::ReactProp<std::optional<double>>::fromRawValue("NitroTextView", "fontSize", rawProps, sourceProps.fontSize)),
25
- fontWeight(nitro::ReactProp<std::optional<double>>::fromRawValue("NitroTextView", "fontWeight", rawProps, sourceProps.fontWeight)),
26
- fontFamily(nitro::ReactProp<std::optional<std::string>>::fromRawValue("NitroTextView", "fontFamily", rawProps, sourceProps.fontFamily)),
27
- color(nitro::ReactProp<std::optional<double>>::fromRawValue("NitroTextView", "color", rawProps, sourceProps.color)),
28
- letterSpacing(nitro::ReactProp<std::optional<double>>::fromRawValue("NitroTextView", "letterSpacing", rawProps, sourceProps.letterSpacing)),
29
- textAlign(nitro::ReactProp<std::optional<NitroNumberTextAlign>>::fromRawValue("NitroTextView", "textAlign", rawProps, sourceProps.textAlign)),
24
+ textSize(nitro::ReactProp<std::optional<double>>::fromRawValue("NitroTextView", "textSize", rawProps, sourceProps.textSize)),
25
+ textWeight(nitro::ReactProp<std::optional<double>>::fromRawValue("NitroTextView", "textWeight", rawProps, sourceProps.textWeight)),
26
+ textFamily(nitro::ReactProp<std::optional<std::string>>::fromRawValue("NitroTextView", "textFamily", rawProps, sourceProps.textFamily)),
27
+ textColor(nitro::ReactProp<std::optional<double>>::fromRawValue("NitroTextView", "textColor", rawProps, sourceProps.textColor)),
28
+ textLetterSpacing(nitro::ReactProp<std::optional<double>>::fromRawValue("NitroTextView", "textLetterSpacing", rawProps, sourceProps.textLetterSpacing)),
29
+ textAlignment(nitro::ReactProp<std::optional<NitroNumberTextAlign>>::fromRawValue("NitroTextView", "textAlignment", rawProps, sourceProps.textAlignment)),
30
30
  rightToLeft(nitro::ReactProp<std::optional<bool>>::fromRawValue("NitroTextView", "rightToLeft", rawProps, sourceProps.rightToLeft)),
31
31
  duration(nitro::ReactProp<std::optional<double>>::fromRawValue("NitroTextView", "duration", rawProps, sourceProps.duration)),
32
32
  easing(nitro::ReactProp<std::optional<NitroInputEasing>>::fromRawValue("NitroTextView", "easing", rawProps, sourceProps.easing)),
@@ -46,12 +46,12 @@ namespace margelo::nitro::nitroinput::views {
46
46
  bool HybridNitroTextViewProps::filterObjectKeys(const std::string& propName) {
47
47
  switch (hashString(propName)) {
48
48
  case hashString("text"): return true;
49
- case hashString("fontSize"): return true;
50
- case hashString("fontWeight"): return true;
51
- case hashString("fontFamily"): return true;
52
- case hashString("color"): return true;
53
- case hashString("letterSpacing"): return true;
54
- case hashString("textAlign"): return true;
49
+ case hashString("textSize"): return true;
50
+ case hashString("textWeight"): return true;
51
+ case hashString("textFamily"): return true;
52
+ case hashString("textColor"): return true;
53
+ case hashString("textLetterSpacing"): return true;
54
+ case hashString("textAlignment"): return true;
55
55
  case hashString("rightToLeft"): return true;
56
56
  case hashString("duration"): return true;
57
57
  case hashString("easing"): return true;
@@ -48,12 +48,12 @@ namespace margelo::nitro::nitroinput::views {
48
48
 
49
49
  public:
50
50
  nitro::ReactProp<std::string> text;
51
- nitro::ReactProp<std::optional<double>> fontSize;
52
- nitro::ReactProp<std::optional<double>> fontWeight;
53
- nitro::ReactProp<std::optional<std::string>> fontFamily;
54
- nitro::ReactProp<std::optional<double>> color;
55
- nitro::ReactProp<std::optional<double>> letterSpacing;
56
- nitro::ReactProp<std::optional<NitroNumberTextAlign>> textAlign;
51
+ nitro::ReactProp<std::optional<double>> textSize;
52
+ nitro::ReactProp<std::optional<double>> textWeight;
53
+ nitro::ReactProp<std::optional<std::string>> textFamily;
54
+ nitro::ReactProp<std::optional<double>> textColor;
55
+ nitro::ReactProp<std::optional<double>> textLetterSpacing;
56
+ nitro::ReactProp<std::optional<NitroNumberTextAlign>> textAlignment;
57
57
  nitro::ReactProp<std::optional<bool>> rightToLeft;
58
58
  nitro::ReactProp<std::optional<double>> duration;
59
59
  nitro::ReactProp<std::optional<NitroInputEasing>> easing;
@@ -73,12 +73,12 @@ namespace margelo::nitro::nitroinput::views {
73
73
  [[nodiscard]]
74
74
  bool hasSameProps(const HybridNitroTextViewProps& other) const noexcept {
75
75
  return text.hasSameValue(other.text) &&
76
- fontSize.hasSameValue(other.fontSize) &&
77
- fontWeight.hasSameValue(other.fontWeight) &&
78
- fontFamily.hasSameValue(other.fontFamily) &&
79
- color.hasSameValue(other.color) &&
80
- letterSpacing.hasSameValue(other.letterSpacing) &&
81
- textAlign.hasSameValue(other.textAlign) &&
76
+ textSize.hasSameValue(other.textSize) &&
77
+ textWeight.hasSameValue(other.textWeight) &&
78
+ textFamily.hasSameValue(other.textFamily) &&
79
+ textColor.hasSameValue(other.textColor) &&
80
+ textLetterSpacing.hasSameValue(other.textLetterSpacing) &&
81
+ textAlignment.hasSameValue(other.textAlignment) &&
82
82
  rightToLeft.hasSameValue(other.rightToLeft) &&
83
83
  duration.hasSameValue(other.duration) &&
84
84
  easing.hasSameValue(other.easing) &&
@@ -99,12 +99,12 @@ namespace margelo::nitro::nitroinput::views {
99
99
  [[nodiscard]]
100
100
  bool hasAnyProvidedProps() const noexcept {
101
101
  return text.isProvided() ||
102
- fontSize.isProvided() ||
103
- fontWeight.isProvided() ||
104
- fontFamily.isProvided() ||
105
- color.isProvided() ||
106
- letterSpacing.isProvided() ||
107
- textAlign.isProvided() ||
102
+ textSize.isProvided() ||
103
+ textWeight.isProvided() ||
104
+ textFamily.isProvided() ||
105
+ textColor.isProvided() ||
106
+ textLetterSpacing.isProvided() ||
107
+ textAlignment.isProvided() ||
108
108
  rightToLeft.isProvided() ||
109
109
  duration.isProvided() ||
110
110
  easing.isProvided() ||
@@ -40,7 +40,7 @@
40
40
  "signPlacement": true,
41
41
  "prefixAlign": true,
42
42
  "suffixAlign": true,
43
- "letterSpacing": true,
43
+ "textLetterSpacing": true,
44
44
  "prefixSpacing": true,
45
45
  "suffixSpacing": true,
46
46
  "prefixOffset": true,
@@ -51,12 +51,12 @@
51
51
  "easing": true,
52
52
  "bounce": true,
53
53
  "effect": true,
54
- "fontSize": true,
55
- "lineHeight": true,
56
- "fontWeight": true,
57
- "fontFamily": true,
58
- "color": true,
59
- "textAlign": true,
54
+ "textSize": true,
55
+ "textLineHeight": true,
56
+ "textWeight": true,
57
+ "textFamily": true,
58
+ "textColor": true,
59
+ "textAlignment": true,
60
60
  "rightToLeft": true,
61
61
  "caretColor": true,
62
62
  "selectionColor": true,
@@ -72,7 +72,11 @@
72
72
  "editable": true,
73
73
  "multiline": true,
74
74
  "numberOfLines": true,
75
- "textAlignVertical": true,
75
+ "textVerticalAlignment": true,
76
+ "textInsetLeft": true,
77
+ "textInsetTop": true,
78
+ "textInsetRight": true,
79
+ "textInsetBottom": true,
76
80
  "scrollEnabled": true,
77
81
  "autoFocus": true,
78
82
  "fieldTestID": true,