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.
- package/CHANGELOG.md +133 -0
- package/README.md +9 -4
- package/android/CMakeLists.txt +1 -0
- package/android/src/main/java/com/margelo/nitro/nitroinput/HybridNitroInputMeasure.kt +52 -0
- package/android/src/main/java/com/margelo/nitro/nitroinput/HybridNitroInputView.kt +74 -80
- package/android/src/main/java/com/margelo/nitro/nitroinput/HybridNitroNumberView.kt +18 -18
- package/android/src/main/java/com/margelo/nitro/nitroinput/HybridNitroTextView.kt +14 -14
- package/android/src/main/java/com/margelo/nitro/nitroinput/InputFonts.kt +199 -0
- package/android/src/main/java/com/margelo/nitro/nitroinput/InputSizing.kt +398 -0
- package/android/src/main/java/com/margelo/nitro/nitroinput/NitroInputView.kt +112 -333
- package/android/src/main/java/com/margelo/nitro/nitroinput/NitroNumberView.kt +178 -30
- package/cpp/RollingEngine.cpp +68 -5
- package/cpp/RollingEngine.hpp +13 -0
- package/cpp/numberformat/FormatFigure.cpp +134 -0
- package/cpp/numberformat/FormatFigure.hpp +65 -0
- package/cpp/numberformat/HybridNitroNumberFormat.cpp +32 -10
- package/cpp/numberformat/HybridNitroNumberFormat.hpp +9 -1
- package/ios/HybridNitroInputView.swift +69 -75
- package/ios/HybridNitroNumberView.swift +18 -18
- package/ios/HybridNitroTextView.swift +14 -14
- package/ios/InputSizing.swift +534 -0
- package/ios/NitroInputView.swift +102 -198
- package/ios/NitroNumberView.swift +98 -23
- package/lib/commonjs/nitrogen/generated/shared/json/NitroInputViewConfig.json +12 -8
- package/lib/commonjs/nitrogen/generated/shared/json/NitroNumberViewConfig.json +6 -6
- package/lib/commonjs/nitrogen/generated/shared/json/NitroTextViewConfig.json +6 -6
- package/lib/commonjs/src/NitroInput.js +164 -23
- package/lib/commonjs/src/NitroNumber.js +19 -11
- package/lib/commonjs/src/NitroText.js +6 -6
- package/lib/commonjs/src/NumberFormat.js +20 -0
- package/lib/commonjs/src/formatProps.js +57 -81
- package/lib/commonjs/src/specs/NitroInputMeasure.nitro.js +2 -0
- package/lib/module/nitrogen/generated/shared/json/NitroInputViewConfig.json +12 -8
- package/lib/module/nitrogen/generated/shared/json/NitroNumberViewConfig.json +6 -6
- package/lib/module/nitrogen/generated/shared/json/NitroTextViewConfig.json +6 -6
- package/lib/module/src/NitroInput.js +165 -24
- package/lib/module/src/NitroNumber.js +20 -12
- package/lib/module/src/NitroText.js +6 -6
- package/lib/module/src/NumberFormat.js +18 -0
- package/lib/module/src/formatProps.js +54 -81
- package/lib/module/src/specs/NitroInputMeasure.nitro.js +1 -0
- package/lib/typescript/src/NitroInput.d.ts +9 -16
- package/lib/typescript/src/NitroNumber.d.ts +25 -7
- package/lib/typescript/src/NumberFormat.d.ts +15 -1
- package/lib/typescript/src/formatProps.d.ts +23 -18
- package/lib/typescript/src/specs/NitroInput.nitro.d.ts +17 -8
- package/lib/typescript/src/specs/NitroInputMeasure.nitro.d.ts +67 -0
- package/lib/typescript/src/specs/NitroNumber.nitro.d.ts +6 -6
- package/lib/typescript/src/specs/NitroText.nitro.d.ts +6 -6
- package/lib/typescript/src/specs/NumberFormat.nitro.d.ts +33 -0
- package/nitro.json +10 -0
- package/nitrogen/generated/android/NitroInput+autolinking.cmake +2 -0
- package/nitrogen/generated/android/NitroInputOnLoad.cpp +16 -0
- package/nitrogen/generated/android/c++/JHybridNitroInputMeasureSpec.cpp +93 -0
- package/nitrogen/generated/android/c++/JHybridNitroInputMeasureSpec.hpp +63 -0
- package/nitrogen/generated/android/c++/JHybridNitroInputViewSpec.cpp +76 -40
- package/nitrogen/generated/android/c++/JHybridNitroInputViewSpec.hpp +24 -16
- package/nitrogen/generated/android/c++/JHybridNitroNumberViewSpec.cpp +30 -30
- package/nitrogen/generated/android/c++/JHybridNitroNumberViewSpec.hpp +12 -12
- package/nitrogen/generated/android/c++/JHybridNitroTextViewSpec.cpp +30 -30
- package/nitrogen/generated/android/c++/JHybridNitroTextViewSpec.hpp +12 -12
- package/nitrogen/generated/android/c++/JNitroInputSize.hpp +61 -0
- package/nitrogen/generated/android/c++/JNitroInputSizing.hpp +284 -0
- package/nitrogen/generated/android/c++/views/JHybridNitroInputViewStateUpdater.cpp +44 -24
- package/nitrogen/generated/android/c++/views/JHybridNitroNumberViewStateUpdater.cpp +18 -18
- package/nitrogen/generated/android/c++/views/JHybridNitroTextViewStateUpdater.cpp +18 -18
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/HybridNitroInputMeasureSpec.kt +56 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/HybridNitroInputViewSpec.kt +32 -8
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/HybridNitroNumberViewSpec.kt +6 -6
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/HybridNitroTextViewSpec.kt +6 -6
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NitroInputSize.kt +56 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NitroInputSizing.kt +246 -0
- package/nitrogen/generated/ios/NitroInput-Swift-Cxx-Bridge.cpp +17 -0
- package/nitrogen/generated/ios/NitroInput-Swift-Cxx-Bridge.hpp +29 -0
- package/nitrogen/generated/ios/NitroInput-Swift-Cxx-Umbrella.hpp +11 -0
- package/nitrogen/generated/ios/NitroInputAutolinking.mm +8 -0
- package/nitrogen/generated/ios/NitroInputAutolinking.swift +12 -0
- package/nitrogen/generated/ios/c++/HybridNitroInputMeasureSpecSwift.cpp +11 -0
- package/nitrogen/generated/ios/c++/HybridNitroInputMeasureSpecSwift.hpp +112 -0
- package/nitrogen/generated/ios/c++/HybridNitroInputViewSpecSwift.hpp +56 -32
- package/nitrogen/generated/ios/c++/HybridNitroNumberViewSpecSwift.hpp +24 -24
- package/nitrogen/generated/ios/c++/HybridNitroTextViewSpecSwift.hpp +24 -24
- package/nitrogen/generated/ios/c++/views/HybridNitroInputViewComponent.mm +56 -32
- package/nitrogen/generated/ios/c++/views/HybridNitroNumberViewComponent.mm +24 -24
- package/nitrogen/generated/ios/c++/views/HybridNitroTextViewComponent.mm +24 -24
- package/nitrogen/generated/ios/swift/HybridNitroInputMeasureSpec.swift +55 -0
- package/nitrogen/generated/ios/swift/HybridNitroInputMeasureSpec_cxx.swift +138 -0
- package/nitrogen/generated/ios/swift/HybridNitroInputViewSpec.swift +12 -8
- package/nitrogen/generated/ios/swift/HybridNitroInputViewSpec_cxx.swift +68 -24
- package/nitrogen/generated/ios/swift/HybridNitroNumberViewSpec.swift +6 -6
- package/nitrogen/generated/ios/swift/HybridNitroNumberViewSpec_cxx.swift +18 -18
- package/nitrogen/generated/ios/swift/HybridNitroTextViewSpec.swift +6 -6
- package/nitrogen/generated/ios/swift/HybridNitroTextViewSpec_cxx.swift +18 -18
- package/nitrogen/generated/ios/swift/NitroInputSize.swift +34 -0
- package/nitrogen/generated/ios/swift/NitroInputSizing.swift +242 -0
- package/nitrogen/generated/shared/c++/HybridNitroInputMeasureSpec.cpp +21 -0
- package/nitrogen/generated/shared/c++/HybridNitroInputMeasureSpec.hpp +66 -0
- package/nitrogen/generated/shared/c++/HybridNitroInputViewSpec.cpp +24 -16
- package/nitrogen/generated/shared/c++/HybridNitroInputViewSpec.hpp +24 -16
- package/nitrogen/generated/shared/c++/HybridNitroNumberFormatSpec.cpp +2 -0
- package/nitrogen/generated/shared/c++/HybridNitroNumberFormatSpec.hpp +8 -0
- package/nitrogen/generated/shared/c++/HybridNitroNumberViewSpec.cpp +12 -12
- package/nitrogen/generated/shared/c++/HybridNitroNumberViewSpec.hpp +12 -12
- package/nitrogen/generated/shared/c++/HybridNitroTextViewSpec.cpp +12 -12
- package/nitrogen/generated/shared/c++/HybridNitroTextViewSpec.hpp +12 -12
- package/nitrogen/generated/shared/c++/NitroInputSize.hpp +87 -0
- package/nitrogen/generated/shared/c++/NitroInputSizing.hpp +263 -0
- package/nitrogen/generated/shared/c++/NumberFigure.hpp +95 -0
- package/nitrogen/generated/shared/c++/NumberFormatLayout.hpp +112 -0
- package/nitrogen/generated/shared/c++/views/HybridNitroInputViewComponent.cpp +24 -16
- package/nitrogen/generated/shared/c++/views/HybridNitroInputViewComponent.hpp +36 -24
- package/nitrogen/generated/shared/c++/views/HybridNitroNumberViewComponent.cpp +12 -12
- package/nitrogen/generated/shared/c++/views/HybridNitroNumberViewComponent.hpp +18 -18
- package/nitrogen/generated/shared/c++/views/HybridNitroTextViewComponent.cpp +12 -12
- package/nitrogen/generated/shared/c++/views/HybridNitroTextViewComponent.hpp +18 -18
- package/nitrogen/generated/shared/json/NitroInputViewConfig.json +12 -8
- package/nitrogen/generated/shared/json/NitroNumberViewConfig.json +6 -6
- package/nitrogen/generated/shared/json/NitroTextViewConfig.json +6 -6
- package/package.json +5 -3
- package/src/NitroInput.tsx +201 -64
- package/src/NitroNumber.tsx +54 -25
- package/src/NitroText.tsx +6 -6
- package/src/NumberFormat.ts +22 -0
- package/src/formatProps.ts +59 -99
- package/src/specs/NitroInput.nitro.ts +17 -8
- package/src/specs/NitroInputMeasure.nitro.ts +76 -0
- package/src/specs/NitroNumber.nitro.ts +6 -6
- package/src/specs/NitroText.nitro.ts +6 -6
- 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
|
-
|
|
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
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
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
|
-
|
|
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("
|
|
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("
|
|
180
|
-
case hashString("
|
|
181
|
-
case hashString("
|
|
182
|
-
case hashString("
|
|
183
|
-
case hashString("
|
|
184
|
-
case hashString("
|
|
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("
|
|
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>
|
|
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>
|
|
113
|
-
nitro::ReactProp<double>
|
|
114
|
-
nitro::ReactProp<double>
|
|
115
|
-
nitro::ReactProp<std::string>
|
|
116
|
-
nitro::ReactProp<double>
|
|
117
|
-
nitro::ReactProp<NitroInputTextAlign>
|
|
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>
|
|
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
|
-
|
|
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
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
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("
|
|
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("
|
|
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("
|
|
162
|
-
case hashString("
|
|
163
|
-
case hashString("
|
|
164
|
-
case hashString("
|
|
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>>
|
|
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>>
|
|
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>>
|
|
118
|
-
nitro::ReactProp<std::optional<std::string>>
|
|
119
|
-
nitro::ReactProp<std::optional<double>>
|
|
120
|
-
nitro::ReactProp<std::optional<NitroNumberTextAlign>>
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
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
|
-
|
|
241
|
+
textSize.isProvided() ||
|
|
242
242
|
prefixFontSize.isProvided() ||
|
|
243
243
|
suffixFontSize.isProvided() ||
|
|
244
244
|
affixAlign.isProvided() ||
|
|
245
245
|
prefixAlign.isProvided() ||
|
|
246
246
|
suffixAlign.isProvided() ||
|
|
247
|
-
|
|
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
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
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
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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("
|
|
50
|
-
case hashString("
|
|
51
|
-
case hashString("
|
|
52
|
-
case hashString("
|
|
53
|
-
case hashString("
|
|
54
|
-
case hashString("
|
|
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>>
|
|
52
|
-
nitro::ReactProp<std::optional<double>>
|
|
53
|
-
nitro::ReactProp<std::optional<std::string>>
|
|
54
|
-
nitro::ReactProp<std::optional<double>>
|
|
55
|
-
nitro::ReactProp<std::optional<double>>
|
|
56
|
-
nitro::ReactProp<std::optional<NitroNumberTextAlign>>
|
|
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
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
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
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
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
|
-
"
|
|
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
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
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
|
-
"
|
|
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,
|