react-native-nitro-input 0.3.8 → 0.4.1
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 +105 -0
- package/README.md +6 -1
- package/android/src/main/java/com/margelo/nitro/nitroinput/DigitSlots.kt +143 -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 +80 -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 +244 -0
- package/android/src/main/java/com/margelo/nitro/nitroinput/InputSizing.kt +404 -0
- package/android/src/main/java/com/margelo/nitro/nitroinput/NitroInputView.kt +168 -338
- package/android/src/main/java/com/margelo/nitro/nitroinput/NitroNumberView.kt +178 -30
- package/ios/HybridNitroInputView.swift +73 -75
- package/ios/HybridNitroNumberView.swift +18 -18
- package/ios/HybridNitroTextView.swift +14 -14
- package/ios/InputSizing.swift +628 -0
- package/ios/NitroInputView.swift +180 -209
- package/ios/NitroNumberView.swift +98 -23
- package/lib/commonjs/nitrogen/generated/shared/json/NitroInputViewConfig.json +14 -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 +166 -23
- package/lib/commonjs/src/NitroNumber.js +1 -1
- package/lib/commonjs/src/NitroText.js +6 -6
- package/lib/commonjs/src/specs/NitroInputMeasure.nitro.js +2 -0
- package/lib/module/nitrogen/generated/shared/json/NitroInputViewConfig.json +14 -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 +167 -24
- package/lib/module/src/NitroNumber.js +1 -1
- package/lib/module/src/NitroText.js +6 -6
- package/lib/module/src/specs/NitroInputMeasure.nitro.js +1 -0
- package/lib/typescript/src/NitroInput.d.ts +20 -16
- package/lib/typescript/src/specs/NitroInput.nitro.d.ts +21 -8
- package/lib/typescript/src/specs/NitroInputMeasure.nitro.d.ts +69 -0
- package/lib/typescript/src/specs/NitroNumber.nitro.d.ts +6 -6
- package/lib/typescript/src/specs/NitroText.nitro.d.ts +6 -6
- 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 +94 -40
- package/nitrogen/generated/android/c++/JHybridNitroInputViewSpec.hpp +28 -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 +292 -0
- package/nitrogen/generated/android/c++/views/JHybridNitroInputViewStateUpdater.cpp +54 -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 +44 -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 +256 -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 +68 -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 +68 -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 +14 -8
- package/nitrogen/generated/ios/swift/HybridNitroInputViewSpec_cxx.swift +90 -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 +252 -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 +28 -16
- package/nitrogen/generated/shared/c++/HybridNitroInputViewSpec.hpp +28 -16
- 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 +271 -0
- package/nitrogen/generated/shared/c++/views/HybridNitroInputViewComponent.cpp +28 -16
- package/nitrogen/generated/shared/c++/views/HybridNitroInputViewComponent.hpp +42 -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 +14 -8
- package/nitrogen/generated/shared/json/NitroNumberViewConfig.json +6 -6
- package/nitrogen/generated/shared/json/NitroTextViewConfig.json +6 -6
- package/package.json +4 -2
- package/src/NitroInput.tsx +215 -64
- package/src/NitroNumber.tsx +6 -6
- package/src/NitroText.tsx +6 -6
- package/src/specs/NitroInput.nitro.ts +21 -8
- package/src/specs/NitroInputMeasure.nitro.ts +78 -0
- package/src/specs/NitroNumber.nitro.ts +6 -6
- package/src/specs/NitroText.nitro.ts +6 -6
|
@@ -219,9 +219,9 @@ void JHybridNitroNumberViewStateUpdater::updateViewProps(jni::alias_ref<jni::JCl
|
|
|
219
219
|
hybridView->setShimmerDelay(newProps->shimmerDelay.get());
|
|
220
220
|
}
|
|
221
221
|
if (oldProps == nullptr
|
|
222
|
-
? newProps->
|
|
223
|
-
: !newProps->
|
|
224
|
-
hybridView->
|
|
222
|
+
? newProps->textSize.isProvided()
|
|
223
|
+
: !newProps->textSize.hasSameValue(oldProps->textSize)) {
|
|
224
|
+
hybridView->setTextSize(newProps->textSize.get());
|
|
225
225
|
}
|
|
226
226
|
if (oldProps == nullptr
|
|
227
227
|
? newProps->prefixFontSize.isProvided()
|
|
@@ -249,9 +249,9 @@ void JHybridNitroNumberViewStateUpdater::updateViewProps(jni::alias_ref<jni::JCl
|
|
|
249
249
|
hybridView->setSuffixAlign(newProps->suffixAlign.get());
|
|
250
250
|
}
|
|
251
251
|
if (oldProps == nullptr
|
|
252
|
-
? newProps->
|
|
253
|
-
: !newProps->
|
|
254
|
-
hybridView->
|
|
252
|
+
? newProps->textLetterSpacing.isProvided()
|
|
253
|
+
: !newProps->textLetterSpacing.hasSameValue(oldProps->textLetterSpacing)) {
|
|
254
|
+
hybridView->setTextLetterSpacing(newProps->textLetterSpacing.get());
|
|
255
255
|
}
|
|
256
256
|
if (oldProps == nullptr
|
|
257
257
|
? newProps->prefixSpacing.isProvided()
|
|
@@ -364,24 +364,24 @@ void JHybridNitroNumberViewStateUpdater::updateViewProps(jni::alias_ref<jni::JCl
|
|
|
364
364
|
hybridView->setMaxFontSizeMultiplier(newProps->maxFontSizeMultiplier.get());
|
|
365
365
|
}
|
|
366
366
|
if (oldProps == nullptr
|
|
367
|
-
? newProps->
|
|
368
|
-
: !newProps->
|
|
369
|
-
hybridView->
|
|
367
|
+
? newProps->textWeight.isProvided()
|
|
368
|
+
: !newProps->textWeight.hasSameValue(oldProps->textWeight)) {
|
|
369
|
+
hybridView->setTextWeight(newProps->textWeight.get());
|
|
370
370
|
}
|
|
371
371
|
if (oldProps == nullptr
|
|
372
|
-
? newProps->
|
|
373
|
-
: !newProps->
|
|
374
|
-
hybridView->
|
|
372
|
+
? newProps->textFamily.isProvided()
|
|
373
|
+
: !newProps->textFamily.hasSameValue(oldProps->textFamily)) {
|
|
374
|
+
hybridView->setTextFamily(newProps->textFamily.get());
|
|
375
375
|
}
|
|
376
376
|
if (oldProps == nullptr
|
|
377
|
-
? newProps->
|
|
378
|
-
: !newProps->
|
|
379
|
-
hybridView->
|
|
377
|
+
? newProps->textColor.isProvided()
|
|
378
|
+
: !newProps->textColor.hasSameValue(oldProps->textColor)) {
|
|
379
|
+
hybridView->setTextColor(newProps->textColor.get());
|
|
380
380
|
}
|
|
381
381
|
if (oldProps == nullptr
|
|
382
|
-
? newProps->
|
|
383
|
-
: !newProps->
|
|
384
|
-
hybridView->
|
|
382
|
+
? newProps->textAlignment.isProvided()
|
|
383
|
+
: !newProps->textAlignment.hasSameValue(oldProps->textAlignment)) {
|
|
384
|
+
hybridView->setTextAlignment(newProps->textAlignment.get());
|
|
385
385
|
}
|
|
386
386
|
if (oldProps == nullptr
|
|
387
387
|
? newProps->rightToLeft.isProvided()
|
|
@@ -59,34 +59,34 @@ void JHybridNitroTextViewStateUpdater::updateViewProps(jni::alias_ref<jni::JClas
|
|
|
59
59
|
hybridView->setText(newProps->text.get());
|
|
60
60
|
}
|
|
61
61
|
if (oldProps == nullptr
|
|
62
|
-
? newProps->
|
|
63
|
-
: !newProps->
|
|
64
|
-
hybridView->
|
|
62
|
+
? newProps->textSize.isProvided()
|
|
63
|
+
: !newProps->textSize.hasSameValue(oldProps->textSize)) {
|
|
64
|
+
hybridView->setTextSize(newProps->textSize.get());
|
|
65
65
|
}
|
|
66
66
|
if (oldProps == nullptr
|
|
67
|
-
? newProps->
|
|
68
|
-
: !newProps->
|
|
69
|
-
hybridView->
|
|
67
|
+
? newProps->textWeight.isProvided()
|
|
68
|
+
: !newProps->textWeight.hasSameValue(oldProps->textWeight)) {
|
|
69
|
+
hybridView->setTextWeight(newProps->textWeight.get());
|
|
70
70
|
}
|
|
71
71
|
if (oldProps == nullptr
|
|
72
|
-
? newProps->
|
|
73
|
-
: !newProps->
|
|
74
|
-
hybridView->
|
|
72
|
+
? newProps->textFamily.isProvided()
|
|
73
|
+
: !newProps->textFamily.hasSameValue(oldProps->textFamily)) {
|
|
74
|
+
hybridView->setTextFamily(newProps->textFamily.get());
|
|
75
75
|
}
|
|
76
76
|
if (oldProps == nullptr
|
|
77
|
-
? newProps->
|
|
78
|
-
: !newProps->
|
|
79
|
-
hybridView->
|
|
77
|
+
? newProps->textColor.isProvided()
|
|
78
|
+
: !newProps->textColor.hasSameValue(oldProps->textColor)) {
|
|
79
|
+
hybridView->setTextColor(newProps->textColor.get());
|
|
80
80
|
}
|
|
81
81
|
if (oldProps == nullptr
|
|
82
|
-
? newProps->
|
|
83
|
-
: !newProps->
|
|
84
|
-
hybridView->
|
|
82
|
+
? newProps->textLetterSpacing.isProvided()
|
|
83
|
+
: !newProps->textLetterSpacing.hasSameValue(oldProps->textLetterSpacing)) {
|
|
84
|
+
hybridView->setTextLetterSpacing(newProps->textLetterSpacing.get());
|
|
85
85
|
}
|
|
86
86
|
if (oldProps == nullptr
|
|
87
|
-
? newProps->
|
|
88
|
-
: !newProps->
|
|
89
|
-
hybridView->
|
|
87
|
+
? newProps->textAlignment.isProvided()
|
|
88
|
+
: !newProps->textAlignment.hasSameValue(oldProps->textAlignment)) {
|
|
89
|
+
hybridView->setTextAlignment(newProps->textAlignment.get());
|
|
90
90
|
}
|
|
91
91
|
if (oldProps == nullptr
|
|
92
92
|
? newProps->rightToLeft.isProvided()
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// HybridNitroInputMeasureSpec.kt
|
|
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
|
+
package com.margelo.nitro.nitroinput
|
|
9
|
+
|
|
10
|
+
import androidx.annotation.Keep
|
|
11
|
+
import com.facebook.jni.HybridData
|
|
12
|
+
import com.facebook.proguard.annotations.DoNotStrip
|
|
13
|
+
import dalvik.annotation.optimization.FastNative
|
|
14
|
+
import com.margelo.nitro.core.HybridObject
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* A Kotlin class representing the NitroInputMeasure HybridObject.
|
|
18
|
+
* Implement this abstract class to create Kotlin-based instances of NitroInputMeasure.
|
|
19
|
+
*/
|
|
20
|
+
@DoNotStrip
|
|
21
|
+
@Keep
|
|
22
|
+
@Suppress(
|
|
23
|
+
"KotlinJniMissingFunction", "unused",
|
|
24
|
+
"RedundantSuppression", "RedundantUnitReturnType", "SimpleRedundantLet",
|
|
25
|
+
"LocalVariableName", "PropertyName", "PrivatePropertyName", "FunctionName"
|
|
26
|
+
)
|
|
27
|
+
abstract class HybridNitroInputMeasureSpec: HybridObject() {
|
|
28
|
+
// Properties
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
// Methods
|
|
32
|
+
@DoNotStrip
|
|
33
|
+
@Keep
|
|
34
|
+
abstract fun measure(sizing: NitroInputSizing): NitroInputSize
|
|
35
|
+
|
|
36
|
+
// Default implementation of `HybridObject.toString()`
|
|
37
|
+
override fun toString(): String {
|
|
38
|
+
return "[HybridObject NitroInputMeasure]"
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
// C++ backing class
|
|
42
|
+
@DoNotStrip
|
|
43
|
+
@Keep
|
|
44
|
+
protected open class CxxPart(javaPart: HybridNitroInputMeasureSpec): HybridObject.CxxPart(javaPart) {
|
|
45
|
+
// C++ JHybridNitroInputMeasureSpec::CxxPart::initHybrid(...)
|
|
46
|
+
@FastNative
|
|
47
|
+
external override fun initHybrid(): HybridData
|
|
48
|
+
}
|
|
49
|
+
override fun createCxxPart(): CxxPart {
|
|
50
|
+
return CxxPart(this)
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
companion object {
|
|
54
|
+
protected const val TAG = "HybridNitroInputMeasureSpec"
|
|
55
|
+
}
|
|
56
|
+
}
|
package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/HybridNitroInputViewSpec.kt
CHANGED
|
@@ -247,7 +247,19 @@ abstract class HybridNitroInputViewSpec: HybridView() {
|
|
|
247
247
|
@get:Keep
|
|
248
248
|
@set:DoNotStrip
|
|
249
249
|
@set:Keep
|
|
250
|
-
abstract var
|
|
250
|
+
abstract var textLetterSpacing: Double
|
|
251
|
+
|
|
252
|
+
@get:DoNotStrip
|
|
253
|
+
@get:Keep
|
|
254
|
+
@set:DoNotStrip
|
|
255
|
+
@set:Keep
|
|
256
|
+
abstract var tabularNums: Boolean
|
|
257
|
+
|
|
258
|
+
@get:DoNotStrip
|
|
259
|
+
@get:Keep
|
|
260
|
+
@set:DoNotStrip
|
|
261
|
+
@set:Keep
|
|
262
|
+
abstract var slotDigits: Boolean
|
|
251
263
|
|
|
252
264
|
@get:DoNotStrip
|
|
253
265
|
@get:Keep
|
|
@@ -313,37 +325,37 @@ abstract class HybridNitroInputViewSpec: HybridView() {
|
|
|
313
325
|
@get:Keep
|
|
314
326
|
@set:DoNotStrip
|
|
315
327
|
@set:Keep
|
|
316
|
-
abstract var
|
|
328
|
+
abstract var textSize: Double
|
|
317
329
|
|
|
318
330
|
@get:DoNotStrip
|
|
319
331
|
@get:Keep
|
|
320
332
|
@set:DoNotStrip
|
|
321
333
|
@set:Keep
|
|
322
|
-
abstract var
|
|
334
|
+
abstract var textLineHeight: Double
|
|
323
335
|
|
|
324
336
|
@get:DoNotStrip
|
|
325
337
|
@get:Keep
|
|
326
338
|
@set:DoNotStrip
|
|
327
339
|
@set:Keep
|
|
328
|
-
abstract var
|
|
340
|
+
abstract var textWeight: Double
|
|
329
341
|
|
|
330
342
|
@get:DoNotStrip
|
|
331
343
|
@get:Keep
|
|
332
344
|
@set:DoNotStrip
|
|
333
345
|
@set:Keep
|
|
334
|
-
abstract var
|
|
346
|
+
abstract var textFamily: String
|
|
335
347
|
|
|
336
348
|
@get:DoNotStrip
|
|
337
349
|
@get:Keep
|
|
338
350
|
@set:DoNotStrip
|
|
339
351
|
@set:Keep
|
|
340
|
-
abstract var
|
|
352
|
+
abstract var textColor: Double
|
|
341
353
|
|
|
342
354
|
@get:DoNotStrip
|
|
343
355
|
@get:Keep
|
|
344
356
|
@set:DoNotStrip
|
|
345
357
|
@set:Keep
|
|
346
|
-
abstract var
|
|
358
|
+
abstract var textAlignment: NitroInputTextAlign
|
|
347
359
|
|
|
348
360
|
@get:DoNotStrip
|
|
349
361
|
@get:Keep
|
|
@@ -439,7 +451,31 @@ abstract class HybridNitroInputViewSpec: HybridView() {
|
|
|
439
451
|
@get:Keep
|
|
440
452
|
@set:DoNotStrip
|
|
441
453
|
@set:Keep
|
|
442
|
-
abstract var
|
|
454
|
+
abstract var textVerticalAlignment: NitroInputTextAlignVertical
|
|
455
|
+
|
|
456
|
+
@get:DoNotStrip
|
|
457
|
+
@get:Keep
|
|
458
|
+
@set:DoNotStrip
|
|
459
|
+
@set:Keep
|
|
460
|
+
abstract var textInsetLeft: Double
|
|
461
|
+
|
|
462
|
+
@get:DoNotStrip
|
|
463
|
+
@get:Keep
|
|
464
|
+
@set:DoNotStrip
|
|
465
|
+
@set:Keep
|
|
466
|
+
abstract var textInsetTop: Double
|
|
467
|
+
|
|
468
|
+
@get:DoNotStrip
|
|
469
|
+
@get:Keep
|
|
470
|
+
@set:DoNotStrip
|
|
471
|
+
@set:Keep
|
|
472
|
+
abstract var textInsetRight: Double
|
|
473
|
+
|
|
474
|
+
@get:DoNotStrip
|
|
475
|
+
@get:Keep
|
|
476
|
+
@set:DoNotStrip
|
|
477
|
+
@set:Keep
|
|
478
|
+
abstract var textInsetBottom: Double
|
|
443
479
|
|
|
444
480
|
@get:DoNotStrip
|
|
445
481
|
@get:Keep
|
package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/HybridNitroNumberViewSpec.kt
CHANGED
|
@@ -229,7 +229,7 @@ abstract class HybridNitroNumberViewSpec: HybridView() {
|
|
|
229
229
|
@get:Keep
|
|
230
230
|
@set:DoNotStrip
|
|
231
231
|
@set:Keep
|
|
232
|
-
abstract var
|
|
232
|
+
abstract var textSize: Double?
|
|
233
233
|
|
|
234
234
|
@get:DoNotStrip
|
|
235
235
|
@get:Keep
|
|
@@ -265,7 +265,7 @@ abstract class HybridNitroNumberViewSpec: HybridView() {
|
|
|
265
265
|
@get:Keep
|
|
266
266
|
@set:DoNotStrip
|
|
267
267
|
@set:Keep
|
|
268
|
-
abstract var
|
|
268
|
+
abstract var textLetterSpacing: Double?
|
|
269
269
|
|
|
270
270
|
@get:DoNotStrip
|
|
271
271
|
@get:Keep
|
|
@@ -403,25 +403,25 @@ abstract class HybridNitroNumberViewSpec: HybridView() {
|
|
|
403
403
|
@get:Keep
|
|
404
404
|
@set:DoNotStrip
|
|
405
405
|
@set:Keep
|
|
406
|
-
abstract var
|
|
406
|
+
abstract var textWeight: Double?
|
|
407
407
|
|
|
408
408
|
@get:DoNotStrip
|
|
409
409
|
@get:Keep
|
|
410
410
|
@set:DoNotStrip
|
|
411
411
|
@set:Keep
|
|
412
|
-
abstract var
|
|
412
|
+
abstract var textFamily: String?
|
|
413
413
|
|
|
414
414
|
@get:DoNotStrip
|
|
415
415
|
@get:Keep
|
|
416
416
|
@set:DoNotStrip
|
|
417
417
|
@set:Keep
|
|
418
|
-
abstract var
|
|
418
|
+
abstract var textColor: Double?
|
|
419
419
|
|
|
420
420
|
@get:DoNotStrip
|
|
421
421
|
@get:Keep
|
|
422
422
|
@set:DoNotStrip
|
|
423
423
|
@set:Keep
|
|
424
|
-
abstract var
|
|
424
|
+
abstract var textAlignment: NitroNumberTextAlign?
|
|
425
425
|
|
|
426
426
|
@get:DoNotStrip
|
|
427
427
|
@get:Keep
|
package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/HybridNitroTextViewSpec.kt
CHANGED
|
@@ -37,37 +37,37 @@ abstract class HybridNitroTextViewSpec: HybridView() {
|
|
|
37
37
|
@get:Keep
|
|
38
38
|
@set:DoNotStrip
|
|
39
39
|
@set:Keep
|
|
40
|
-
abstract var
|
|
40
|
+
abstract var textSize: Double?
|
|
41
41
|
|
|
42
42
|
@get:DoNotStrip
|
|
43
43
|
@get:Keep
|
|
44
44
|
@set:DoNotStrip
|
|
45
45
|
@set:Keep
|
|
46
|
-
abstract var
|
|
46
|
+
abstract var textWeight: Double?
|
|
47
47
|
|
|
48
48
|
@get:DoNotStrip
|
|
49
49
|
@get:Keep
|
|
50
50
|
@set:DoNotStrip
|
|
51
51
|
@set:Keep
|
|
52
|
-
abstract var
|
|
52
|
+
abstract var textFamily: String?
|
|
53
53
|
|
|
54
54
|
@get:DoNotStrip
|
|
55
55
|
@get:Keep
|
|
56
56
|
@set:DoNotStrip
|
|
57
57
|
@set:Keep
|
|
58
|
-
abstract var
|
|
58
|
+
abstract var textColor: Double?
|
|
59
59
|
|
|
60
60
|
@get:DoNotStrip
|
|
61
61
|
@get:Keep
|
|
62
62
|
@set:DoNotStrip
|
|
63
63
|
@set:Keep
|
|
64
|
-
abstract var
|
|
64
|
+
abstract var textLetterSpacing: Double?
|
|
65
65
|
|
|
66
66
|
@get:DoNotStrip
|
|
67
67
|
@get:Keep
|
|
68
68
|
@set:DoNotStrip
|
|
69
69
|
@set:Keep
|
|
70
|
-
abstract var
|
|
70
|
+
abstract var textAlignment: NitroNumberTextAlign?
|
|
71
71
|
|
|
72
72
|
@get:DoNotStrip
|
|
73
73
|
@get:Keep
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// NitroInputSize.kt
|
|
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
|
+
package com.margelo.nitro.nitroinput
|
|
9
|
+
|
|
10
|
+
import androidx.annotation.Keep
|
|
11
|
+
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
|
+
import java.util.Objects
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Represents the JavaScript object/struct "NitroInputSize".
|
|
17
|
+
*/
|
|
18
|
+
@DoNotStrip
|
|
19
|
+
@Keep
|
|
20
|
+
data class NitroInputSize(
|
|
21
|
+
@DoNotStrip
|
|
22
|
+
@Keep
|
|
23
|
+
val width: Double,
|
|
24
|
+
@DoNotStrip
|
|
25
|
+
@Keep
|
|
26
|
+
val height: Double
|
|
27
|
+
) {
|
|
28
|
+
/* primary constructor */
|
|
29
|
+
|
|
30
|
+
override fun equals(other: Any?): Boolean {
|
|
31
|
+
if (this === other) return true
|
|
32
|
+
if (other !is NitroInputSize) return false
|
|
33
|
+
return Objects.deepEquals(this.width, other.width)
|
|
34
|
+
&& Objects.deepEquals(this.height, other.height)
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
override fun hashCode(): Int {
|
|
38
|
+
return arrayOf<Any?>(
|
|
39
|
+
width,
|
|
40
|
+
height
|
|
41
|
+
).contentDeepHashCode()
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
companion object {
|
|
45
|
+
/**
|
|
46
|
+
* Constructor called from C++
|
|
47
|
+
*/
|
|
48
|
+
@DoNotStrip
|
|
49
|
+
@Keep
|
|
50
|
+
@Suppress("unused")
|
|
51
|
+
@JvmStatic
|
|
52
|
+
private fun fromCpp(width: Double, height: Double): NitroInputSize {
|
|
53
|
+
return NitroInputSize(width, height)
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// NitroInputSizing.kt
|
|
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
|
+
package com.margelo.nitro.nitroinput
|
|
9
|
+
|
|
10
|
+
import androidx.annotation.Keep
|
|
11
|
+
import com.facebook.proguard.annotations.DoNotStrip
|
|
12
|
+
import java.util.Objects
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Represents the JavaScript object/struct "NitroInputSizing".
|
|
17
|
+
*/
|
|
18
|
+
@DoNotStrip
|
|
19
|
+
@Keep
|
|
20
|
+
data class NitroInputSizing(
|
|
21
|
+
@DoNotStrip
|
|
22
|
+
@Keep
|
|
23
|
+
val text: String,
|
|
24
|
+
@DoNotStrip
|
|
25
|
+
@Keep
|
|
26
|
+
val mode: NitroInputMode,
|
|
27
|
+
@DoNotStrip
|
|
28
|
+
@Keep
|
|
29
|
+
val plain: Boolean,
|
|
30
|
+
@DoNotStrip
|
|
31
|
+
@Keep
|
|
32
|
+
val multiline: Boolean,
|
|
33
|
+
@DoNotStrip
|
|
34
|
+
@Keep
|
|
35
|
+
val secureTextEntry: Boolean,
|
|
36
|
+
@DoNotStrip
|
|
37
|
+
@Keep
|
|
38
|
+
val maxLength: Double,
|
|
39
|
+
@DoNotStrip
|
|
40
|
+
@Keep
|
|
41
|
+
val fractionDigits: Double,
|
|
42
|
+
@DoNotStrip
|
|
43
|
+
@Keep
|
|
44
|
+
val maxIntegerDigits: Double,
|
|
45
|
+
@DoNotStrip
|
|
46
|
+
@Keep
|
|
47
|
+
val groupingSeparator: String,
|
|
48
|
+
@DoNotStrip
|
|
49
|
+
@Keep
|
|
50
|
+
val decimalSeparator: String,
|
|
51
|
+
@DoNotStrip
|
|
52
|
+
@Keep
|
|
53
|
+
val prefix: String,
|
|
54
|
+
@DoNotStrip
|
|
55
|
+
@Keep
|
|
56
|
+
val suffix: String,
|
|
57
|
+
@DoNotStrip
|
|
58
|
+
@Keep
|
|
59
|
+
val signPlacement: NitroInputSignPlacement,
|
|
60
|
+
@DoNotStrip
|
|
61
|
+
@Keep
|
|
62
|
+
val placeholder: String,
|
|
63
|
+
@DoNotStrip
|
|
64
|
+
@Keep
|
|
65
|
+
val mask: String,
|
|
66
|
+
@DoNotStrip
|
|
67
|
+
@Keep
|
|
68
|
+
val maskNotations: Array<NitroInputNotation>,
|
|
69
|
+
@DoNotStrip
|
|
70
|
+
@Keep
|
|
71
|
+
val maskAutocomplete: Boolean,
|
|
72
|
+
@DoNotStrip
|
|
73
|
+
@Keep
|
|
74
|
+
val maskAutoSkip: Boolean,
|
|
75
|
+
@DoNotStrip
|
|
76
|
+
@Keep
|
|
77
|
+
val maskAffinityFormats: Array<String>,
|
|
78
|
+
@DoNotStrip
|
|
79
|
+
@Keep
|
|
80
|
+
val maskAffinityStrategy: NitroInputMaskAffinity,
|
|
81
|
+
@DoNotStrip
|
|
82
|
+
@Keep
|
|
83
|
+
val maskTextCase: NitroInputTextCase,
|
|
84
|
+
@DoNotStrip
|
|
85
|
+
@Keep
|
|
86
|
+
val maskCharacterMap: Array<NitroInputCharacterMapping>,
|
|
87
|
+
@DoNotStrip
|
|
88
|
+
@Keep
|
|
89
|
+
val maskSlotPlaceholder: String,
|
|
90
|
+
@DoNotStrip
|
|
91
|
+
@Keep
|
|
92
|
+
val keepPlaceholder: Boolean,
|
|
93
|
+
@DoNotStrip
|
|
94
|
+
@Keep
|
|
95
|
+
val textSize: Double,
|
|
96
|
+
@DoNotStrip
|
|
97
|
+
@Keep
|
|
98
|
+
val textLineHeight: Double,
|
|
99
|
+
@DoNotStrip
|
|
100
|
+
@Keep
|
|
101
|
+
val prefixFontSize: Double,
|
|
102
|
+
@DoNotStrip
|
|
103
|
+
@Keep
|
|
104
|
+
val suffixFontSize: Double,
|
|
105
|
+
@DoNotStrip
|
|
106
|
+
@Keep
|
|
107
|
+
val textWeight: Double,
|
|
108
|
+
@DoNotStrip
|
|
109
|
+
@Keep
|
|
110
|
+
val textFamily: String,
|
|
111
|
+
@DoNotStrip
|
|
112
|
+
@Keep
|
|
113
|
+
val textLetterSpacing: Double,
|
|
114
|
+
@DoNotStrip
|
|
115
|
+
@Keep
|
|
116
|
+
val tabularNums: Boolean,
|
|
117
|
+
@DoNotStrip
|
|
118
|
+
@Keep
|
|
119
|
+
val slotDigits: Boolean,
|
|
120
|
+
@DoNotStrip
|
|
121
|
+
@Keep
|
|
122
|
+
val prefixSpacing: Double,
|
|
123
|
+
@DoNotStrip
|
|
124
|
+
@Keep
|
|
125
|
+
val suffixSpacing: Double,
|
|
126
|
+
@DoNotStrip
|
|
127
|
+
@Keep
|
|
128
|
+
val allowFontScaling: Boolean,
|
|
129
|
+
@DoNotStrip
|
|
130
|
+
@Keep
|
|
131
|
+
val maxFontSizeMultiplier: Double,
|
|
132
|
+
@DoNotStrip
|
|
133
|
+
@Keep
|
|
134
|
+
val variant: NitroInputVariant,
|
|
135
|
+
@DoNotStrip
|
|
136
|
+
@Keep
|
|
137
|
+
val label: String,
|
|
138
|
+
@DoNotStrip
|
|
139
|
+
@Keep
|
|
140
|
+
val labelBehavior: NitroInputLabelBehavior,
|
|
141
|
+
@DoNotStrip
|
|
142
|
+
@Keep
|
|
143
|
+
val labelFontSize: Double,
|
|
144
|
+
@DoNotStrip
|
|
145
|
+
@Keep
|
|
146
|
+
val cornerRadius: Double
|
|
147
|
+
) {
|
|
148
|
+
/* primary constructor */
|
|
149
|
+
|
|
150
|
+
override fun equals(other: Any?): Boolean {
|
|
151
|
+
if (this === other) return true
|
|
152
|
+
if (other !is NitroInputSizing) return false
|
|
153
|
+
return Objects.deepEquals(this.text, other.text)
|
|
154
|
+
&& Objects.deepEquals(this.mode, other.mode)
|
|
155
|
+
&& Objects.deepEquals(this.plain, other.plain)
|
|
156
|
+
&& Objects.deepEquals(this.multiline, other.multiline)
|
|
157
|
+
&& Objects.deepEquals(this.secureTextEntry, other.secureTextEntry)
|
|
158
|
+
&& Objects.deepEquals(this.maxLength, other.maxLength)
|
|
159
|
+
&& Objects.deepEquals(this.fractionDigits, other.fractionDigits)
|
|
160
|
+
&& Objects.deepEquals(this.maxIntegerDigits, other.maxIntegerDigits)
|
|
161
|
+
&& Objects.deepEquals(this.groupingSeparator, other.groupingSeparator)
|
|
162
|
+
&& Objects.deepEquals(this.decimalSeparator, other.decimalSeparator)
|
|
163
|
+
&& Objects.deepEquals(this.prefix, other.prefix)
|
|
164
|
+
&& Objects.deepEquals(this.suffix, other.suffix)
|
|
165
|
+
&& Objects.deepEquals(this.signPlacement, other.signPlacement)
|
|
166
|
+
&& Objects.deepEquals(this.placeholder, other.placeholder)
|
|
167
|
+
&& Objects.deepEquals(this.mask, other.mask)
|
|
168
|
+
&& Objects.deepEquals(this.maskNotations, other.maskNotations)
|
|
169
|
+
&& Objects.deepEquals(this.maskAutocomplete, other.maskAutocomplete)
|
|
170
|
+
&& Objects.deepEquals(this.maskAutoSkip, other.maskAutoSkip)
|
|
171
|
+
&& Objects.deepEquals(this.maskAffinityFormats, other.maskAffinityFormats)
|
|
172
|
+
&& Objects.deepEquals(this.maskAffinityStrategy, other.maskAffinityStrategy)
|
|
173
|
+
&& Objects.deepEquals(this.maskTextCase, other.maskTextCase)
|
|
174
|
+
&& Objects.deepEquals(this.maskCharacterMap, other.maskCharacterMap)
|
|
175
|
+
&& Objects.deepEquals(this.maskSlotPlaceholder, other.maskSlotPlaceholder)
|
|
176
|
+
&& Objects.deepEquals(this.keepPlaceholder, other.keepPlaceholder)
|
|
177
|
+
&& Objects.deepEquals(this.textSize, other.textSize)
|
|
178
|
+
&& Objects.deepEquals(this.textLineHeight, other.textLineHeight)
|
|
179
|
+
&& Objects.deepEquals(this.prefixFontSize, other.prefixFontSize)
|
|
180
|
+
&& Objects.deepEquals(this.suffixFontSize, other.suffixFontSize)
|
|
181
|
+
&& Objects.deepEquals(this.textWeight, other.textWeight)
|
|
182
|
+
&& Objects.deepEquals(this.textFamily, other.textFamily)
|
|
183
|
+
&& Objects.deepEquals(this.textLetterSpacing, other.textLetterSpacing)
|
|
184
|
+
&& Objects.deepEquals(this.tabularNums, other.tabularNums)
|
|
185
|
+
&& Objects.deepEquals(this.slotDigits, other.slotDigits)
|
|
186
|
+
&& Objects.deepEquals(this.prefixSpacing, other.prefixSpacing)
|
|
187
|
+
&& Objects.deepEquals(this.suffixSpacing, other.suffixSpacing)
|
|
188
|
+
&& Objects.deepEquals(this.allowFontScaling, other.allowFontScaling)
|
|
189
|
+
&& Objects.deepEquals(this.maxFontSizeMultiplier, other.maxFontSizeMultiplier)
|
|
190
|
+
&& Objects.deepEquals(this.variant, other.variant)
|
|
191
|
+
&& Objects.deepEquals(this.label, other.label)
|
|
192
|
+
&& Objects.deepEquals(this.labelBehavior, other.labelBehavior)
|
|
193
|
+
&& Objects.deepEquals(this.labelFontSize, other.labelFontSize)
|
|
194
|
+
&& Objects.deepEquals(this.cornerRadius, other.cornerRadius)
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
override fun hashCode(): Int {
|
|
198
|
+
return arrayOf<Any?>(
|
|
199
|
+
text,
|
|
200
|
+
mode,
|
|
201
|
+
plain,
|
|
202
|
+
multiline,
|
|
203
|
+
secureTextEntry,
|
|
204
|
+
maxLength,
|
|
205
|
+
fractionDigits,
|
|
206
|
+
maxIntegerDigits,
|
|
207
|
+
groupingSeparator,
|
|
208
|
+
decimalSeparator,
|
|
209
|
+
prefix,
|
|
210
|
+
suffix,
|
|
211
|
+
signPlacement,
|
|
212
|
+
placeholder,
|
|
213
|
+
mask,
|
|
214
|
+
maskNotations,
|
|
215
|
+
maskAutocomplete,
|
|
216
|
+
maskAutoSkip,
|
|
217
|
+
maskAffinityFormats,
|
|
218
|
+
maskAffinityStrategy,
|
|
219
|
+
maskTextCase,
|
|
220
|
+
maskCharacterMap,
|
|
221
|
+
maskSlotPlaceholder,
|
|
222
|
+
keepPlaceholder,
|
|
223
|
+
textSize,
|
|
224
|
+
textLineHeight,
|
|
225
|
+
prefixFontSize,
|
|
226
|
+
suffixFontSize,
|
|
227
|
+
textWeight,
|
|
228
|
+
textFamily,
|
|
229
|
+
textLetterSpacing,
|
|
230
|
+
tabularNums,
|
|
231
|
+
slotDigits,
|
|
232
|
+
prefixSpacing,
|
|
233
|
+
suffixSpacing,
|
|
234
|
+
allowFontScaling,
|
|
235
|
+
maxFontSizeMultiplier,
|
|
236
|
+
variant,
|
|
237
|
+
label,
|
|
238
|
+
labelBehavior,
|
|
239
|
+
labelFontSize,
|
|
240
|
+
cornerRadius
|
|
241
|
+
).contentDeepHashCode()
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
companion object {
|
|
245
|
+
/**
|
|
246
|
+
* Constructor called from C++
|
|
247
|
+
*/
|
|
248
|
+
@DoNotStrip
|
|
249
|
+
@Keep
|
|
250
|
+
@Suppress("unused")
|
|
251
|
+
@JvmStatic
|
|
252
|
+
private fun fromCpp(text: String, mode: NitroInputMode, plain: Boolean, multiline: Boolean, secureTextEntry: Boolean, maxLength: Double, fractionDigits: Double, maxIntegerDigits: Double, groupingSeparator: String, decimalSeparator: String, prefix: String, suffix: String, signPlacement: NitroInputSignPlacement, placeholder: String, mask: String, maskNotations: Array<NitroInputNotation>, maskAutocomplete: Boolean, maskAutoSkip: Boolean, maskAffinityFormats: Array<String>, maskAffinityStrategy: NitroInputMaskAffinity, maskTextCase: NitroInputTextCase, maskCharacterMap: Array<NitroInputCharacterMapping>, maskSlotPlaceholder: String, keepPlaceholder: Boolean, textSize: Double, textLineHeight: Double, prefixFontSize: Double, suffixFontSize: Double, textWeight: Double, textFamily: String, textLetterSpacing: Double, tabularNums: Boolean, slotDigits: Boolean, prefixSpacing: Double, suffixSpacing: Double, allowFontScaling: Boolean, maxFontSizeMultiplier: Double, variant: NitroInputVariant, label: String, labelBehavior: NitroInputLabelBehavior, labelFontSize: Double, cornerRadius: Double): NitroInputSizing {
|
|
253
|
+
return NitroInputSizing(text, mode, plain, multiline, secureTextEntry, maxLength, fractionDigits, maxIntegerDigits, groupingSeparator, decimalSeparator, prefix, suffix, signPlacement, placeholder, mask, maskNotations, maskAutocomplete, maskAutoSkip, maskAffinityFormats, maskAffinityStrategy, maskTextCase, maskCharacterMap, maskSlotPlaceholder, keepPlaceholder, textSize, textLineHeight, prefixFontSize, suffixFontSize, textWeight, textFamily, textLetterSpacing, tabularNums, slotDigits, prefixSpacing, suffixSpacing, allowFontScaling, maxFontSizeMultiplier, variant, label, labelBehavior, labelFontSize, cornerRadius)
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
}
|