react-native-unistyles 3.0.0-beta.4 → 3.0.0-beta.6
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/README.md +18 -3
- package/android/src/main/cxx/NativeUnistylesModule.cpp +2 -2
- package/android/src/main/cxx/NativeUnistylesModule.h +1 -1
- package/android/src/main/java/com/unistyles/NativePlatform+android.kt +1 -2
- package/android/src/main/java/com/unistyles/NativePlatform+insets.kt +4 -0
- package/android/src/main/java/com/unistyles/NativePlatform+listener.kt +2 -1
- package/android/src/main/java/com/unistyles/UnistylesModule.kt +0 -4
- package/android/src/main/java/com/unistyles/UnistylesPackage.kt +6 -6
- package/components/native/ActivityIndicator/package.json +2 -1
- package/components/native/Animated/package.json +5 -0
- package/components/native/FlatList/package.json +2 -1
- package/components/native/Image/package.json +2 -1
- package/components/native/ImageBackground/package.json +2 -1
- package/components/native/KeyboardAvoidingView/package.json +2 -1
- package/components/native/NativeText/package.json +5 -0
- package/components/native/NativeView/package.json +5 -0
- package/components/native/Pressable/package.json +1 -1
- package/components/native/RefreshControl/package.json +2 -1
- package/components/native/ScrollView/package.json +2 -1
- package/components/native/SectionList/package.json +2 -1
- package/components/native/Switch/package.json +2 -1
- package/components/native/Text/package.json +2 -1
- package/components/native/TextInput/package.json +2 -1
- package/components/native/TouchableHighlight/package.json +2 -1
- package/components/native/TouchableOpacity/package.json +2 -1
- package/components/native/View/package.json +2 -1
- package/components/native/VirtualizedList/package.json +2 -1
- package/cxx/common/Constants.h +4 -4
- package/cxx/common/Helpers.h +1 -1
- package/cxx/core/HashGenerator.cpp +23 -0
- package/cxx/core/HashGenerator.h +13 -0
- package/cxx/core/HostUnistyle.cpp +83 -0
- package/cxx/core/HostUnistyle.h +27 -0
- package/cxx/core/RNStyle.h +18 -0
- package/cxx/core/Unistyle.h +13 -4
- package/cxx/core/UnistyleWrapper.h +92 -47
- package/cxx/core/UnistylesRegistry.cpp +40 -11
- package/cxx/core/UnistylesRegistry.h +5 -4
- package/cxx/hybridObjects/HybridNavigationBar.cpp +3 -3
- package/cxx/hybridObjects/HybridNavigationBar.h +2 -2
- package/cxx/hybridObjects/HybridShadowRegistry.cpp +39 -45
- package/cxx/hybridObjects/HybridShadowRegistry.h +0 -10
- package/cxx/hybridObjects/HybridStatusBar.cpp +3 -3
- package/cxx/hybridObjects/HybridStatusBar.h +2 -2
- package/cxx/hybridObjects/HybridStyleSheet.cpp +52 -10
- package/cxx/hybridObjects/HybridStyleSheet.h +2 -1
- package/cxx/hybridObjects/HybridUnistylesRuntime.cpp +15 -15
- package/cxx/hybridObjects/HybridUnistylesRuntime.h +2 -2
- package/cxx/parser/Parser.cpp +26 -27
- package/cxx/parser/Parser.h +2 -1
- package/ios/NativePlatform+ios.swift +21 -11
- package/ios/NativePlatform.swift +2 -2
- package/ios/UnistylesModuleOnLoad.h +4 -4
- package/ios/UnistylesModuleOnLoad.mm +5 -8
- package/lib/commonjs/components/ScopedTheme.js.map +1 -1
- package/lib/commonjs/components/index.js +0 -7
- package/lib/commonjs/components/index.js.map +1 -1
- package/lib/commonjs/components/native/Animated.js +23 -0
- package/lib/commonjs/components/native/Animated.js.map +1 -0
- package/lib/commonjs/components/native/ImageBackground.js +47 -1
- package/lib/commonjs/components/native/ImageBackground.js.map +1 -1
- package/lib/commonjs/components/native/ImageBackground.native.js +10 -0
- package/lib/commonjs/components/native/ImageBackground.native.js.map +1 -0
- package/lib/commonjs/components/native/NativeText.js +13 -0
- package/lib/commonjs/components/native/NativeText.js.map +1 -0
- package/lib/commonjs/components/native/NativeText.native.js +18 -0
- package/lib/commonjs/components/native/NativeText.native.js.map +1 -0
- package/lib/commonjs/components/native/NativeView.js +9 -0
- package/lib/commonjs/components/native/NativeView.js.map +1 -0
- package/lib/commonjs/components/native/NativeView.native.js +20 -0
- package/lib/commonjs/components/native/NativeView.native.js.map +1 -0
- package/lib/commonjs/components/native/Pressable.js +26 -51
- package/lib/commonjs/components/native/Pressable.js.map +1 -1
- package/lib/commonjs/components/native/Pressable.native.js +25 -9
- package/lib/commonjs/components/native/Pressable.native.js.map +1 -1
- package/lib/commonjs/core/createUnistylesElement.js +33 -5
- package/lib/commonjs/core/createUnistylesElement.js.map +1 -1
- package/lib/commonjs/core/createUnistylesElement.native.js +54 -0
- package/lib/commonjs/core/createUnistylesElement.native.js.map +1 -0
- package/lib/commonjs/core/createUnistylesImageBackground.js +41 -15
- package/lib/commonjs/core/createUnistylesImageBackground.js.map +1 -1
- package/lib/commonjs/core/getClassname.js +23 -0
- package/lib/commonjs/core/getClassname.js.map +1 -0
- package/lib/commonjs/core/getClassname.native.js +9 -0
- package/lib/commonjs/core/getClassname.native.js.map +1 -0
- package/lib/commonjs/core/index.js +14 -7
- package/lib/commonjs/core/index.js.map +1 -1
- package/lib/commonjs/core/passForwardRef.js +2 -2
- package/lib/commonjs/core/passForwardRef.js.map +1 -1
- package/lib/commonjs/core/useProxifiedUnistyles/index.js +13 -0
- package/lib/commonjs/core/useProxifiedUnistyles/index.js.map +1 -0
- package/lib/commonjs/core/useProxifiedUnistyles/listener.js +22 -0
- package/lib/commonjs/core/useProxifiedUnistyles/listener.js.map +1 -0
- package/lib/commonjs/core/useProxifiedUnistyles/listener.native.js +26 -0
- package/lib/commonjs/core/useProxifiedUnistyles/listener.native.js.map +1 -0
- package/lib/commonjs/core/useProxifiedUnistyles/types.js +6 -0
- package/lib/commonjs/core/useProxifiedUnistyles/types.js.map +1 -0
- package/lib/commonjs/core/{withUnistyles/useDependencies.js → useProxifiedUnistyles/useProxifiedUnistyles.js} +22 -22
- package/lib/commonjs/core/useProxifiedUnistyles/useProxifiedUnistyles.js.map +1 -0
- package/lib/commonjs/core/useUnistyles.js +19 -0
- package/lib/commonjs/core/useUnistyles.js.map +1 -0
- package/lib/commonjs/core/warn.js +16 -0
- package/lib/commonjs/core/warn.js.map +1 -0
- package/lib/commonjs/core/withUnistyles/withUnistyles.js +19 -55
- package/lib/commonjs/core/withUnistyles/withUnistyles.js.map +1 -1
- package/lib/commonjs/core/withUnistyles/withUnistyles.native.js +32 -65
- package/lib/commonjs/core/withUnistyles/withUnistyles.native.js.map +1 -1
- package/lib/commonjs/index.js +23 -4
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/server/getServerUnistyles.js +40 -0
- package/lib/commonjs/server/getServerUnistyles.js.map +1 -0
- package/lib/commonjs/server/hydrateServerUnistyles.js +17 -0
- package/lib/commonjs/server/hydrateServerUnistyles.js.map +1 -0
- package/lib/commonjs/server/index.js +34 -0
- package/lib/commonjs/server/index.js.map +1 -0
- package/lib/commonjs/server/resetServerUnistyles.js +16 -0
- package/lib/commonjs/server/resetServerUnistyles.js.map +1 -0
- package/lib/commonjs/server/types.js +8 -0
- package/lib/commonjs/server/types.js.map +1 -0
- package/lib/commonjs/server/useServerUnistyles.js +27 -0
- package/lib/commonjs/server/useServerUnistyles.js.map +1 -0
- package/lib/commonjs/specs/ShadowRegistry/index.js +6 -3
- package/lib/commonjs/specs/ShadowRegistry/index.js.map +1 -1
- package/lib/commonjs/specs/StyleSheet/index.js.map +1 -1
- package/lib/commonjs/utils.js +19 -2
- package/lib/commonjs/utils.js.map +1 -1
- package/lib/commonjs/web/convert/object/filter.js +2 -2
- package/lib/commonjs/web/convert/object/filter.js.map +1 -1
- package/lib/commonjs/web/convert/style.js +4 -4
- package/lib/commonjs/web/convert/style.js.map +1 -1
- package/lib/commonjs/web/create.js +20 -15
- package/lib/commonjs/web/create.js.map +1 -1
- package/lib/commonjs/web/css/core.js +55 -0
- package/lib/commonjs/web/css/core.js.map +1 -0
- package/lib/commonjs/web/css/index.js +17 -0
- package/lib/commonjs/web/css/index.js.map +1 -0
- package/lib/commonjs/web/css/state.js +155 -0
- package/lib/commonjs/web/css/state.js.map +1 -0
- package/lib/commonjs/web/css/utils.js +47 -0
- package/lib/commonjs/web/css/utils.js.map +1 -0
- package/lib/commonjs/web/index.js +14 -18
- package/lib/commonjs/web/index.js.map +1 -1
- package/lib/commonjs/web/listener.js +9 -7
- package/lib/commonjs/web/listener.js.map +1 -1
- package/lib/commonjs/web/registry.js +44 -123
- package/lib/commonjs/web/registry.js.map +1 -1
- package/lib/commonjs/web/runtime.js +28 -21
- package/lib/commonjs/web/runtime.js.map +1 -1
- package/lib/commonjs/web/services.js +28 -0
- package/lib/commonjs/web/services.js.map +1 -0
- package/lib/commonjs/web/shadowRegistry.js +46 -93
- package/lib/commonjs/web/shadowRegistry.js.map +1 -1
- package/lib/commonjs/web/state.js +39 -9
- package/lib/commonjs/web/state.js.map +1 -1
- package/lib/commonjs/web/types.js +6 -0
- package/lib/commonjs/web/types.js.map +1 -0
- package/lib/commonjs/web/utils/common.js +29 -9
- package/lib/commonjs/web/utils/common.js.map +1 -1
- package/lib/commonjs/web/utils/unistyle.js +32 -19
- package/lib/commonjs/web/utils/unistyle.js.map +1 -1
- package/lib/commonjs/web/variants.js +25 -27
- package/lib/commonjs/web/variants.js.map +1 -1
- package/lib/module/components/ScopedTheme.js.map +1 -1
- package/lib/module/components/index.js +0 -1
- package/lib/module/components/index.js.map +1 -1
- package/lib/module/components/native/Animated.js +19 -0
- package/lib/module/components/native/Animated.js.map +1 -0
- package/lib/module/components/native/ImageBackground.js +47 -2
- package/lib/module/components/native/ImageBackground.js.map +1 -1
- package/lib/module/components/native/ImageBackground.native.js +6 -0
- package/lib/module/components/native/ImageBackground.native.js.map +1 -0
- package/lib/module/components/native/NativeText.js +4 -0
- package/lib/module/components/native/NativeText.js.map +1 -0
- package/lib/module/components/native/NativeText.native.js +15 -0
- package/lib/module/components/native/NativeText.native.js.map +1 -0
- package/lib/module/components/native/NativeView.js +5 -0
- package/lib/module/components/native/NativeView.js.map +1 -0
- package/lib/module/components/native/NativeView.native.js +17 -0
- package/lib/module/components/native/NativeView.native.js.map +1 -0
- package/lib/module/components/native/Pressable.js +27 -52
- package/lib/module/components/native/Pressable.js.map +1 -1
- package/lib/module/components/native/Pressable.native.js +26 -10
- package/lib/module/components/native/Pressable.native.js.map +1 -1
- package/lib/module/core/createUnistylesElement.js +33 -5
- package/lib/module/core/createUnistylesElement.js.map +1 -1
- package/lib/module/core/createUnistylesElement.native.js +47 -0
- package/lib/module/core/createUnistylesElement.native.js.map +1 -0
- package/lib/module/core/createUnistylesImageBackground.js +39 -14
- package/lib/module/core/createUnistylesImageBackground.js.map +1 -1
- package/lib/module/core/getClassname.js +18 -0
- package/lib/module/core/getClassname.js.map +1 -0
- package/lib/module/core/getClassname.native.js +4 -0
- package/lib/module/core/getClassname.native.js.map +1 -0
- package/lib/module/core/index.js +2 -1
- package/lib/module/core/index.js.map +1 -1
- package/lib/module/core/passForwardRef.js +2 -2
- package/lib/module/core/passForwardRef.js.map +1 -1
- package/lib/module/core/useProxifiedUnistyles/index.js +4 -0
- package/lib/module/core/useProxifiedUnistyles/index.js.map +1 -0
- package/lib/module/core/useProxifiedUnistyles/listener.js +17 -0
- package/lib/module/core/useProxifiedUnistyles/listener.js.map +1 -0
- package/lib/module/core/useProxifiedUnistyles/listener.native.js +21 -0
- package/lib/module/core/useProxifiedUnistyles/listener.native.js.map +1 -0
- package/lib/module/core/useProxifiedUnistyles/types.js +4 -0
- package/lib/module/core/useProxifiedUnistyles/types.js.map +1 -0
- package/lib/module/core/{withUnistyles/useDependencies.js → useProxifiedUnistyles/useProxifiedUnistyles.js} +19 -19
- package/lib/module/core/useProxifiedUnistyles/useProxifiedUnistyles.js.map +1 -0
- package/lib/module/core/useUnistyles.js +14 -0
- package/lib/module/core/useUnistyles.js.map +1 -0
- package/lib/module/core/warn.js +11 -0
- package/lib/module/core/warn.js.map +1 -0
- package/lib/module/core/withUnistyles/withUnistyles.js +19 -55
- package/lib/module/core/withUnistyles/withUnistyles.js.map +1 -1
- package/lib/module/core/withUnistyles/withUnistyles.native.js +33 -66
- package/lib/module/core/withUnistyles/withUnistyles.native.js.map +1 -1
- package/lib/module/index.js +3 -2
- package/lib/module/index.js.map +1 -1
- package/lib/module/server/getServerUnistyles.js +34 -0
- package/lib/module/server/getServerUnistyles.js.map +1 -0
- package/lib/module/server/hydrateServerUnistyles.js +12 -0
- package/lib/module/server/hydrateServerUnistyles.js.map +1 -0
- package/lib/module/server/index.js +7 -0
- package/lib/module/server/index.js.map +1 -0
- package/lib/module/server/resetServerUnistyles.js +11 -0
- package/lib/module/server/resetServerUnistyles.js.map +1 -0
- package/lib/module/server/types.js +4 -0
- package/lib/module/server/types.js.map +1 -0
- package/lib/module/server/useServerUnistyles.js +22 -0
- package/lib/module/server/useServerUnistyles.js.map +1 -0
- package/lib/module/specs/ShadowRegistry/index.js +6 -3
- package/lib/module/specs/ShadowRegistry/index.js.map +1 -1
- package/lib/module/specs/StyleSheet/index.js.map +1 -1
- package/lib/module/utils.js +16 -1
- package/lib/module/utils.js.map +1 -1
- package/lib/module/web/convert/object/filter.js +2 -2
- package/lib/module/web/convert/object/filter.js.map +1 -1
- package/lib/module/web/convert/style.js +4 -4
- package/lib/module/web/convert/style.js.map +1 -1
- package/lib/module/web/create.js +20 -15
- package/lib/module/web/create.js.map +1 -1
- package/lib/module/web/css/core.js +50 -0
- package/lib/module/web/css/core.js.map +1 -0
- package/lib/module/web/css/index.js +4 -0
- package/lib/module/web/css/index.js.map +1 -0
- package/lib/module/web/css/state.js +150 -0
- package/lib/module/web/css/state.js.map +1 -0
- package/lib/module/web/css/utils.js +41 -0
- package/lib/module/web/css/utils.js.map +1 -0
- package/lib/module/web/index.js +10 -5
- package/lib/module/web/index.js.map +1 -1
- package/lib/module/web/listener.js +8 -7
- package/lib/module/web/listener.js.map +1 -1
- package/lib/module/web/registry.js +44 -124
- package/lib/module/web/registry.js.map +1 -1
- package/lib/module/web/runtime.js +27 -21
- package/lib/module/web/runtime.js.map +1 -1
- package/lib/module/web/services.js +23 -0
- package/lib/module/web/services.js.map +1 -0
- package/lib/module/web/shadowRegistry.js +46 -94
- package/lib/module/web/shadowRegistry.js.map +1 -1
- package/lib/module/web/state.js +39 -10
- package/lib/module/web/state.js.map +1 -1
- package/lib/module/web/types.js +4 -0
- package/lib/module/web/types.js.map +1 -0
- package/lib/module/web/utils/common.js +26 -7
- package/lib/module/web/utils/common.js.map +1 -1
- package/lib/module/web/utils/unistyle.js +31 -17
- package/lib/module/web/utils/unistyle.js.map +1 -1
- package/lib/module/web/variants.js +25 -27
- package/lib/module/web/variants.js.map +1 -1
- package/lib/typescript/src/components/index.d.ts +0 -1
- package/lib/typescript/src/components/index.d.ts.map +1 -1
- package/lib/typescript/src/components/native/ActivityIndicator.d.ts +1 -1
- package/lib/typescript/src/components/native/ActivityIndicator.d.ts.map +1 -1
- package/lib/typescript/src/components/native/Animated.d.ts +39 -0
- package/lib/typescript/src/components/native/Animated.d.ts.map +1 -0
- package/lib/typescript/src/components/native/FlatList.d.ts +1 -1
- package/lib/typescript/src/components/native/FlatList.d.ts.map +1 -1
- package/lib/typescript/src/components/native/Image.d.ts +1 -1
- package/lib/typescript/src/components/native/Image.d.ts.map +1 -1
- package/lib/typescript/src/components/native/ImageBackground.d.ts +1 -2
- package/lib/typescript/src/components/native/ImageBackground.d.ts.map +1 -1
- package/lib/typescript/src/components/native/ImageBackground.native.d.ts +2 -0
- package/lib/typescript/src/components/native/ImageBackground.native.d.ts.map +1 -0
- package/lib/typescript/src/components/native/KeyboardAvoidingView.d.ts +1 -1
- package/lib/typescript/src/components/native/KeyboardAvoidingView.d.ts.map +1 -1
- package/lib/typescript/src/components/native/NativeText.d.ts +2 -0
- package/lib/typescript/src/components/native/NativeText.d.ts.map +1 -0
- package/lib/typescript/src/components/native/NativeText.native.d.ts +2 -0
- package/lib/typescript/src/components/native/NativeText.native.d.ts.map +1 -0
- package/lib/typescript/src/components/native/NativeView.d.ts +3 -0
- package/lib/typescript/src/components/native/NativeView.d.ts.map +1 -0
- package/lib/typescript/src/components/native/NativeView.native.d.ts +3 -0
- package/lib/typescript/src/components/native/NativeView.native.d.ts.map +1 -0
- package/lib/typescript/src/components/native/Pressable.d.ts +3 -2
- package/lib/typescript/src/components/native/Pressable.d.ts.map +1 -1
- package/lib/typescript/src/components/native/Pressable.native.d.ts.map +1 -1
- package/lib/typescript/src/components/native/RefreshControl.d.ts +1 -1
- package/lib/typescript/src/components/native/RefreshControl.d.ts.map +1 -1
- package/lib/typescript/src/components/native/ScrollView.d.ts +1 -1
- package/lib/typescript/src/components/native/ScrollView.d.ts.map +1 -1
- package/lib/typescript/src/components/native/SectionList.d.ts +1 -1
- package/lib/typescript/src/components/native/SectionList.d.ts.map +1 -1
- package/lib/typescript/src/components/native/Switch.d.ts +1 -1
- package/lib/typescript/src/components/native/Switch.d.ts.map +1 -1
- package/lib/typescript/src/components/native/Text.d.ts +1 -1
- package/lib/typescript/src/components/native/Text.d.ts.map +1 -1
- package/lib/typescript/src/components/native/TextInput.d.ts +1 -1
- package/lib/typescript/src/components/native/TextInput.d.ts.map +1 -1
- package/lib/typescript/src/components/native/TouchableHighlight.d.ts +1 -1
- package/lib/typescript/src/components/native/TouchableHighlight.d.ts.map +1 -1
- package/lib/typescript/src/components/native/TouchableOpacity.d.ts +1 -1
- package/lib/typescript/src/components/native/TouchableOpacity.d.ts.map +1 -1
- package/lib/typescript/src/components/native/View.d.ts +1 -1
- package/lib/typescript/src/components/native/View.d.ts.map +1 -1
- package/lib/typescript/src/components/native/VirtualizedList.d.ts +1 -1
- package/lib/typescript/src/components/native/VirtualizedList.d.ts.map +1 -1
- package/lib/typescript/src/core/createUnistylesElement.d.ts +1 -2
- package/lib/typescript/src/core/createUnistylesElement.d.ts.map +1 -1
- package/lib/typescript/src/core/createUnistylesElement.native.d.ts +2 -0
- package/lib/typescript/src/core/createUnistylesElement.native.d.ts.map +1 -0
- package/lib/typescript/src/core/createUnistylesImageBackground.d.ts +2 -3
- package/lib/typescript/src/core/createUnistylesImageBackground.d.ts.map +1 -1
- package/lib/typescript/src/core/getClassname.d.ts +7 -0
- package/lib/typescript/src/core/getClassname.d.ts.map +1 -0
- package/lib/typescript/src/core/getClassname.native.d.ts +2 -0
- package/lib/typescript/src/core/getClassname.native.d.ts.map +1 -0
- package/lib/typescript/src/core/index.d.ts +2 -1
- package/lib/typescript/src/core/index.d.ts.map +1 -1
- package/lib/typescript/src/core/passForwardRef.d.ts.map +1 -1
- package/lib/typescript/src/core/useProxifiedUnistyles/index.d.ts +2 -0
- package/lib/typescript/src/core/useProxifiedUnistyles/index.d.ts.map +1 -0
- package/lib/typescript/src/core/useProxifiedUnistyles/listener.d.ts +3 -0
- package/lib/typescript/src/core/useProxifiedUnistyles/listener.d.ts.map +1 -0
- package/lib/typescript/src/core/useProxifiedUnistyles/listener.native.d.ts +3 -0
- package/lib/typescript/src/core/useProxifiedUnistyles/listener.native.d.ts.map +1 -0
- package/lib/typescript/src/core/useProxifiedUnistyles/types.d.ts +7 -0
- package/lib/typescript/src/core/useProxifiedUnistyles/types.d.ts.map +1 -0
- package/lib/typescript/src/core/useProxifiedUnistyles/useProxifiedUnistyles.d.ts +8 -0
- package/lib/typescript/src/core/useProxifiedUnistyles/useProxifiedUnistyles.d.ts.map +1 -0
- package/lib/typescript/src/core/useUnistyles.d.ts +6 -0
- package/lib/typescript/src/core/useUnistyles.d.ts.map +1 -0
- package/lib/typescript/src/core/warn.d.ts +3 -0
- package/lib/typescript/src/core/warn.d.ts.map +1 -0
- package/lib/typescript/src/core/withUnistyles/withUnistyles.d.ts +0 -3
- package/lib/typescript/src/core/withUnistyles/withUnistyles.d.ts.map +1 -1
- package/lib/typescript/src/core/withUnistyles/withUnistyles.native.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +3 -2
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/server/getServerUnistyles.d.ts +4 -0
- package/lib/typescript/src/server/getServerUnistyles.d.ts.map +1 -0
- package/lib/typescript/src/server/hydrateServerUnistyles.d.ts +8 -0
- package/lib/typescript/src/server/hydrateServerUnistyles.d.ts.map +1 -0
- package/lib/typescript/src/server/index.d.ts +5 -0
- package/lib/typescript/src/server/index.d.ts.map +1 -0
- package/lib/typescript/src/server/resetServerUnistyles.d.ts +2 -0
- package/lib/typescript/src/server/resetServerUnistyles.d.ts.map +1 -0
- package/lib/typescript/src/server/types.d.ts +5 -0
- package/lib/typescript/src/server/types.d.ts.map +1 -0
- package/lib/typescript/src/server/useServerUnistyles.d.ts +4 -0
- package/lib/typescript/src/server/useServerUnistyles.d.ts.map +1 -0
- package/lib/typescript/src/specs/ShadowRegistry/index.d.ts +0 -3
- package/lib/typescript/src/specs/ShadowRegistry/index.d.ts.map +1 -1
- package/lib/typescript/src/specs/StyleSheet/index.d.ts +5 -1
- package/lib/typescript/src/specs/StyleSheet/index.d.ts.map +1 -1
- package/lib/typescript/src/utils.d.ts +2 -0
- package/lib/typescript/src/utils.d.ts.map +1 -1
- package/lib/typescript/src/web/convert/style.d.ts.map +1 -1
- package/lib/typescript/src/web/create.d.ts.map +1 -1
- package/lib/typescript/src/web/css/core.d.ts +3 -0
- package/lib/typescript/src/web/css/core.d.ts.map +1 -0
- package/lib/typescript/src/web/css/index.d.ts +2 -0
- package/lib/typescript/src/web/css/index.d.ts.map +1 -0
- package/lib/typescript/src/web/css/state.d.ts +30 -0
- package/lib/typescript/src/web/css/state.d.ts.map +1 -0
- package/lib/typescript/src/web/css/utils.d.ts +4 -0
- package/lib/typescript/src/web/css/utils.d.ts.map +1 -0
- package/lib/typescript/src/web/index.d.ts +7 -1
- package/lib/typescript/src/web/index.d.ts.map +1 -1
- package/lib/typescript/src/web/listener.d.ts +4 -3
- package/lib/typescript/src/web/listener.d.ts.map +1 -1
- package/lib/typescript/src/web/registry.d.ts +11 -8
- package/lib/typescript/src/web/registry.d.ts.map +1 -1
- package/lib/typescript/src/web/runtime.d.ts +6 -4
- package/lib/typescript/src/web/runtime.d.ts.map +1 -1
- package/lib/typescript/src/web/services.d.ts +15 -0
- package/lib/typescript/src/web/services.d.ts.map +1 -0
- package/lib/typescript/src/web/shadowRegistry.d.ts +10 -13
- package/lib/typescript/src/web/shadowRegistry.d.ts.map +1 -1
- package/lib/typescript/src/web/state.d.ts +7 -3
- package/lib/typescript/src/web/state.d.ts.map +1 -1
- package/lib/typescript/src/web/types.d.ts +13 -0
- package/lib/typescript/src/web/types.d.ts.map +1 -0
- package/lib/typescript/src/web/utils/common.d.ts +2 -1
- package/lib/typescript/src/web/utils/common.d.ts.map +1 -1
- package/lib/typescript/src/web/utils/unistyle.d.ts +5 -4
- package/lib/typescript/src/web/utils/unistyle.d.ts.map +1 -1
- package/lib/typescript/src/web/variants.d.ts +2 -2
- package/lib/typescript/src/web/variants.d.ts.map +1 -1
- package/nitrogen/generated/android/c++/JColorScheme.hpp +2 -1
- package/nitrogen/generated/android/c++/JDimensions.hpp +2 -1
- package/nitrogen/generated/android/c++/JFunc_void_UnistylesNativeMiniRuntime.hpp +36 -10
- package/nitrogen/generated/android/c++/JFunc_void_std__vector_UnistyleDependency__UnistylesNativeMiniRuntime.hpp +53 -19
- package/nitrogen/generated/android/c++/JHybridNativePlatformSpec.cpp +5 -5
- package/nitrogen/generated/android/c++/JHybridNativePlatformSpec.hpp +1 -1
- package/nitrogen/generated/android/c++/JInsets.hpp +2 -1
- package/nitrogen/generated/android/c++/JOrientation.hpp +2 -1
- package/nitrogen/generated/android/c++/JUnistyleDependency.hpp +2 -1
- package/nitrogen/generated/android/c++/JUnistylesNativeMiniRuntime.hpp +2 -1
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/unistyles/ColorScheme.kt +1 -1
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/unistyles/Dimensions.kt +10 -5
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/unistyles/Func_void_UnistylesNativeMiniRuntime.kt +43 -14
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/unistyles/Func_void_std__vector_UnistyleDependency__UnistylesNativeMiniRuntime.kt +43 -14
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/unistyles/HybridNativePlatformSpec.kt +10 -10
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/unistyles/Insets.kt +13 -8
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/unistyles/Orientation.kt +1 -1
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/unistyles/UnistyleDependency.kt +1 -1
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/unistyles/UnistylesNativeMiniRuntime.kt +19 -14
- package/nitrogen/generated/android/unistyles+autolinking.cmake +4 -1
- package/nitrogen/generated/android/unistyles+autolinking.gradle +1 -1
- package/nitrogen/generated/android/unistylesOnLoad.cpp +7 -3
- package/nitrogen/generated/android/unistylesOnLoad.hpp +1 -1
- package/nitrogen/generated/ios/Unistyles+autolinking.rb +1 -1
- package/nitrogen/generated/ios/Unistyles-Swift-Cxx-Bridge.cpp +21 -6
- package/nitrogen/generated/ios/Unistyles-Swift-Cxx-Bridge.hpp +105 -27
- package/nitrogen/generated/ios/Unistyles-Swift-Cxx-Umbrella.hpp +5 -3
- package/nitrogen/generated/ios/c++/HybridNativePlatformSpecSwift.cpp +1 -1
- package/nitrogen/generated/ios/c++/HybridNativePlatformSpecSwift.hpp +92 -33
- package/nitrogen/generated/ios/swift/ColorScheme.swift +1 -1
- package/nitrogen/generated/ios/swift/Dimensions.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_UnistylesNativeMiniRuntime.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_std__vector_UnistyleDependency__UnistylesNativeMiniRuntime.swift +46 -0
- package/nitrogen/generated/ios/swift/HybridNativePlatformSpec.swift +36 -23
- package/nitrogen/generated/ios/swift/HybridNativePlatformSpec_cxx.swift +327 -0
- package/nitrogen/generated/ios/swift/Insets.swift +1 -1
- package/nitrogen/generated/ios/swift/Orientation.swift +1 -1
- package/nitrogen/generated/ios/swift/UnistyleDependency.swift +1 -1
- package/nitrogen/generated/ios/swift/UnistylesNativeMiniRuntime.swift +1 -1
- package/nitrogen/generated/shared/c++/ColorScheme.hpp +1 -1
- package/nitrogen/generated/shared/c++/Dimensions.hpp +1 -1
- package/nitrogen/generated/shared/c++/HybridNativePlatformSpec.cpp +1 -1
- package/nitrogen/generated/shared/c++/HybridNativePlatformSpec.hpp +1 -1
- package/nitrogen/generated/shared/c++/HybridUnistylesNavigationBarSpec.cpp +1 -1
- package/nitrogen/generated/shared/c++/HybridUnistylesNavigationBarSpec.hpp +1 -1
- package/nitrogen/generated/shared/c++/HybridUnistylesRuntimeSpec.cpp +1 -1
- package/nitrogen/generated/shared/c++/HybridUnistylesRuntimeSpec.hpp +1 -1
- package/nitrogen/generated/shared/c++/HybridUnistylesShadowRegistrySpec.cpp +1 -1
- package/nitrogen/generated/shared/c++/HybridUnistylesShadowRegistrySpec.hpp +1 -1
- package/nitrogen/generated/shared/c++/HybridUnistylesStatusBarSpec.cpp +1 -1
- package/nitrogen/generated/shared/c++/HybridUnistylesStatusBarSpec.hpp +1 -1
- package/nitrogen/generated/shared/c++/HybridUnistylesStyleSheetSpec.cpp +1 -1
- package/nitrogen/generated/shared/c++/HybridUnistylesStyleSheetSpec.hpp +1 -1
- package/nitrogen/generated/shared/c++/Insets.hpp +1 -1
- package/nitrogen/generated/shared/c++/Orientation.hpp +1 -1
- package/nitrogen/generated/shared/c++/UnistyleDependency.hpp +2 -2
- package/nitrogen/generated/shared/c++/UnistylesCxxMiniRuntime.hpp +1 -1
- package/nitrogen/generated/shared/c++/UnistylesNativeMiniRuntime.hpp +1 -1
- package/package.json +23 -14
- package/plugin/consts.js +63 -0
- package/plugin/exotic.js +54 -0
- package/plugin/import.js +1 -21
- package/plugin/index.d.ts +89 -0
- package/plugin/index.js +58 -96
- package/plugin/stylesheet.js +28 -1
- package/plugin/variants.js +49 -75
- package/src/components/ScopedTheme.tsx +1 -1
- package/src/components/index.ts +0 -1
- package/src/components/native/Animated.tsx +17 -0
- package/src/components/native/ImageBackground.native.tsx +4 -0
- package/src/components/native/ImageBackground.tsx +57 -2
- package/src/components/native/NativeText.native.tsx +12 -0
- package/src/components/native/NativeText.tsx +1 -0
- package/src/components/native/NativeView.native.tsx +13 -0
- package/src/components/native/NativeView.tsx +3 -0
- package/src/components/native/Pressable.native.tsx +32 -15
- package/src/components/native/Pressable.tsx +35 -69
- package/src/core/createUnistylesElement.native.tsx +51 -0
- package/src/core/createUnistylesElement.tsx +47 -8
- package/src/core/createUnistylesImageBackground.tsx +44 -18
- package/src/core/getClassname.native.ts +1 -0
- package/src/core/getClassname.ts +14 -0
- package/src/core/index.ts +2 -1
- package/src/core/passForwardRef.ts +1 -2
- package/src/core/useProxifiedUnistyles/index.ts +1 -0
- package/src/core/useProxifiedUnistyles/listener.native.ts +18 -0
- package/src/core/useProxifiedUnistyles/listener.ts +13 -0
- package/src/core/useProxifiedUnistyles/types.ts +7 -0
- package/src/core/{withUnistyles/useDependencies.ts → useProxifiedUnistyles/useProxifiedUnistyles.ts} +19 -26
- package/src/core/useUnistyles.ts +11 -0
- package/src/core/warn.ts +13 -0
- package/src/core/withUnistyles/withUnistyles.native.tsx +39 -68
- package/src/core/withUnistyles/withUnistyles.tsx +19 -56
- package/src/index.ts +3 -2
- package/src/server/getServerUnistyles.tsx +21 -0
- package/src/server/hydrateServerUnistyles.ts +17 -0
- package/src/server/index.ts +5 -0
- package/src/server/resetServerUnistyles.ts +9 -0
- package/src/server/types.ts +4 -0
- package/src/server/useServerUnistyles.tsx +22 -0
- package/src/specs/ShadowRegistry/index.ts +12 -9
- package/src/specs/StyleSheet/index.ts +6 -1
- package/src/utils.ts +32 -11
- package/src/web/convert/object/filter.ts +2 -2
- package/src/web/convert/style.ts +8 -7
- package/src/web/create.ts +23 -18
- package/src/web/css/core.ts +58 -0
- package/src/web/css/index.ts +1 -0
- package/src/web/css/state.ts +191 -0
- package/src/web/css/utils.ts +54 -0
- package/src/web/index.ts +18 -5
- package/src/web/listener.ts +8 -8
- package/src/web/registry.ts +47 -152
- package/src/web/runtime.ts +32 -22
- package/src/web/services.ts +28 -0
- package/src/web/shadowRegistry.ts +46 -104
- package/src/web/state.ts +46 -11
- package/src/web/types.ts +13 -0
- package/src/web/utils/common.ts +32 -8
- package/src/web/utils/unistyle.ts +46 -25
- package/src/web/variants.ts +27 -27
- package/cxx/core/HostStyle.cpp +0 -73
- package/cxx/core/HostStyle.h +0 -34
- package/lib/commonjs/components/Variants.js +0 -36
- package/lib/commonjs/components/Variants.js.map +0 -1
- package/lib/commonjs/core/createUnistylesComponent.js +0 -16
- package/lib/commonjs/core/createUnistylesComponent.js.map +0 -1
- package/lib/commonjs/core/withUnistyles/useDependencies.js.map +0 -1
- package/lib/module/components/Variants.js +0 -29
- package/lib/module/components/Variants.js.map +0 -1
- package/lib/module/core/createUnistylesComponent.js +0 -11
- package/lib/module/core/createUnistylesComponent.js.map +0 -1
- package/lib/module/core/withUnistyles/useDependencies.js.map +0 -1
- package/lib/typescript/src/components/Variants.d.ts +0 -7
- package/lib/typescript/src/components/Variants.d.ts.map +0 -1
- package/lib/typescript/src/core/createUnistylesComponent.d.ts +0 -14
- package/lib/typescript/src/core/createUnistylesComponent.d.ts.map +0 -1
- package/lib/typescript/src/core/withUnistyles/useDependencies.d.ts +0 -13
- package/lib/typescript/src/core/withUnistyles/useDependencies.d.ts.map +0 -1
- package/nitrogen/generated/android/unistylesOnLoad.kt +0 -1
- package/nitrogen/generated/ios/swift/HybridNativePlatformSpecCxx.swift +0 -314
- package/plugin/style.js +0 -168
- package/src/components/Variants.tsx +0 -30
- package/src/core/createUnistylesComponent.tsx +0 -14
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"variants.d.ts","sourceRoot":"","sources":["../../../../src/web/variants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
1
|
+
{"version":3,"file":"variants.d.ts","sourceRoot":"","sources":["../../../../src/web/variants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAc/C,eAAO,MAAM,WAAW,WAAY,eAAe,oBAAoB,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,2DA2BzF,CAAA"}
|
@@ -2,7 +2,7 @@
|
|
2
2
|
/// JColorScheme.hpp
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
4
4
|
/// https://github.com/mrousavy/nitro
|
5
|
-
/// Copyright ©
|
5
|
+
/// Copyright © 2025 Marc Rousavy @ Margelo
|
6
6
|
///
|
7
7
|
|
8
8
|
#pragma once
|
@@ -26,6 +26,7 @@ namespace margelo::nitro::unistyles {
|
|
26
26
|
* Convert this Java/Kotlin-based enum to the C++ enum ColorScheme.
|
27
27
|
*/
|
28
28
|
[[maybe_unused]]
|
29
|
+
[[nodiscard]]
|
29
30
|
ColorScheme toCpp() const {
|
30
31
|
static const auto clazz = javaClassStatic();
|
31
32
|
static const auto fieldOrdinal = clazz->getField<int>("_ordinal");
|
@@ -2,7 +2,7 @@
|
|
2
2
|
/// JDimensions.hpp
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
4
4
|
/// https://github.com/mrousavy/nitro
|
5
|
-
/// Copyright ©
|
5
|
+
/// Copyright © 2025 Marc Rousavy @ Margelo
|
6
6
|
///
|
7
7
|
|
8
8
|
#pragma once
|
@@ -28,6 +28,7 @@ namespace margelo::nitro::unistyles {
|
|
28
28
|
* Convert this Java/Kotlin-based struct to the C++ struct Dimensions by copying all values to C++.
|
29
29
|
*/
|
30
30
|
[[maybe_unused]]
|
31
|
+
[[nodiscard]]
|
31
32
|
Dimensions toCpp() const {
|
32
33
|
static const auto clazz = javaClassStatic();
|
33
34
|
static const auto fieldWidth = clazz->getField<double>("width");
|
@@ -2,7 +2,7 @@
|
|
2
2
|
/// JFunc_void_UnistylesNativeMiniRuntime.hpp
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
4
4
|
/// https://github.com/mrousavy/nitro
|
5
|
-
/// Copyright ©
|
5
|
+
/// Copyright © 2025 Marc Rousavy @ Margelo
|
6
6
|
///
|
7
7
|
|
8
8
|
#pragma once
|
@@ -26,28 +26,54 @@ namespace margelo::nitro::unistyles {
|
|
26
26
|
using namespace facebook;
|
27
27
|
|
28
28
|
/**
|
29
|
-
*
|
30
|
-
* This
|
29
|
+
* Represents the Java/Kotlin callback `(miniRuntime: UnistylesNativeMiniRuntime) -> Unit`.
|
30
|
+
* This can be passed around between C++ and Java/Kotlin.
|
31
31
|
*/
|
32
|
-
struct JFunc_void_UnistylesNativeMiniRuntime
|
32
|
+
struct JFunc_void_UnistylesNativeMiniRuntime: public jni::JavaClass<JFunc_void_UnistylesNativeMiniRuntime> {
|
33
|
+
public:
|
34
|
+
static auto constexpr kJavaDescriptor = "Lcom/margelo/nitro/unistyles/Func_void_UnistylesNativeMiniRuntime;";
|
35
|
+
|
36
|
+
public:
|
37
|
+
/**
|
38
|
+
* Invokes the function this `JFunc_void_UnistylesNativeMiniRuntime` instance holds through JNI.
|
39
|
+
*/
|
40
|
+
void invoke(const UnistylesNativeMiniRuntime& miniRuntime) const {
|
41
|
+
static const auto method = getClass()->getMethod<void(jni::alias_ref<JUnistylesNativeMiniRuntime> /* miniRuntime */)>("invoke");
|
42
|
+
method(self(), JUnistylesNativeMiniRuntime::fromCpp(miniRuntime));
|
43
|
+
}
|
44
|
+
};
|
45
|
+
|
46
|
+
/**
|
47
|
+
* An implementation of Func_void_UnistylesNativeMiniRuntime that is backed by a C++ implementation (using `std::function<...>`)
|
48
|
+
*/
|
49
|
+
struct JFunc_void_UnistylesNativeMiniRuntime_cxx final: public jni::HybridClass<JFunc_void_UnistylesNativeMiniRuntime_cxx, JFunc_void_UnistylesNativeMiniRuntime> {
|
33
50
|
public:
|
34
51
|
static jni::local_ref<JFunc_void_UnistylesNativeMiniRuntime::javaobject> fromCpp(const std::function<void(const UnistylesNativeMiniRuntime& /* miniRuntime */)>& func) {
|
35
|
-
return
|
52
|
+
return JFunc_void_UnistylesNativeMiniRuntime_cxx::newObjectCxxArgs(func);
|
36
53
|
}
|
37
54
|
|
38
55
|
public:
|
39
|
-
|
40
|
-
|
56
|
+
/**
|
57
|
+
* Invokes the C++ `std::function<...>` this `JFunc_void_UnistylesNativeMiniRuntime_cxx` instance holds.
|
58
|
+
*/
|
59
|
+
void invoke_cxx(jni::alias_ref<JUnistylesNativeMiniRuntime> miniRuntime) {
|
60
|
+
_func(miniRuntime->toCpp());
|
41
61
|
}
|
42
62
|
|
43
63
|
public:
|
44
|
-
|
64
|
+
[[nodiscard]]
|
65
|
+
inline const std::function<void(const UnistylesNativeMiniRuntime& /* miniRuntime */)>& getFunction() const {
|
66
|
+
return _func;
|
67
|
+
}
|
68
|
+
|
69
|
+
public:
|
70
|
+
static auto constexpr kJavaDescriptor = "Lcom/margelo/nitro/unistyles/Func_void_UnistylesNativeMiniRuntime_cxx;";
|
45
71
|
static void registerNatives() {
|
46
|
-
registerHybrid({makeNativeMethod("
|
72
|
+
registerHybrid({makeNativeMethod("invoke", JFunc_void_UnistylesNativeMiniRuntime_cxx::invoke_cxx)});
|
47
73
|
}
|
48
74
|
|
49
75
|
private:
|
50
|
-
explicit
|
76
|
+
explicit JFunc_void_UnistylesNativeMiniRuntime_cxx(const std::function<void(const UnistylesNativeMiniRuntime& /* miniRuntime */)>& func): _func(func) { }
|
51
77
|
|
52
78
|
private:
|
53
79
|
friend HybridBase;
|
@@ -2,7 +2,7 @@
|
|
2
2
|
/// JFunc_void_std__vector_UnistyleDependency__UnistylesNativeMiniRuntime.hpp
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
4
4
|
/// https://github.com/mrousavy/nitro
|
5
|
-
/// Copyright ©
|
5
|
+
/// Copyright © 2025 Marc Rousavy @ Margelo
|
6
6
|
///
|
7
7
|
|
8
8
|
#pragma once
|
@@ -29,37 +29,71 @@ namespace margelo::nitro::unistyles {
|
|
29
29
|
using namespace facebook;
|
30
30
|
|
31
31
|
/**
|
32
|
-
*
|
33
|
-
* This
|
32
|
+
* Represents the Java/Kotlin callback `(dependencies: Array<UnistyleDependency>, miniRuntime: UnistylesNativeMiniRuntime) -> Unit`.
|
33
|
+
* This can be passed around between C++ and Java/Kotlin.
|
34
34
|
*/
|
35
|
-
struct JFunc_void_std__vector_UnistyleDependency__UnistylesNativeMiniRuntime
|
35
|
+
struct JFunc_void_std__vector_UnistyleDependency__UnistylesNativeMiniRuntime: public jni::JavaClass<JFunc_void_std__vector_UnistyleDependency__UnistylesNativeMiniRuntime> {
|
36
36
|
public:
|
37
|
-
static
|
38
|
-
return JFunc_void_std__vector_UnistyleDependency__UnistylesNativeMiniRuntime::newObjectCxxArgs(func);
|
39
|
-
}
|
37
|
+
static auto constexpr kJavaDescriptor = "Lcom/margelo/nitro/unistyles/Func_void_std__vector_UnistyleDependency__UnistylesNativeMiniRuntime;";
|
40
38
|
|
41
39
|
public:
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
40
|
+
/**
|
41
|
+
* Invokes the function this `JFunc_void_std__vector_UnistyleDependency__UnistylesNativeMiniRuntime` instance holds through JNI.
|
42
|
+
*/
|
43
|
+
void invoke(const std::vector<UnistyleDependency>& dependencies, const UnistylesNativeMiniRuntime& miniRuntime) const {
|
44
|
+
static const auto method = getClass()->getMethod<void(jni::alias_ref<jni::JArrayClass<JUnistyleDependency>> /* dependencies */, jni::alias_ref<JUnistylesNativeMiniRuntime> /* miniRuntime */)>("invoke");
|
45
|
+
method(self(), [&]() {
|
46
|
+
size_t __size = dependencies.size();
|
47
|
+
jni::local_ref<jni::JArrayClass<JUnistyleDependency>> __array = jni::JArrayClass<JUnistyleDependency>::newArray(__size);
|
47
48
|
for (size_t __i = 0; __i < __size; __i++) {
|
48
|
-
auto __element = dependencies
|
49
|
-
|
49
|
+
const auto& __element = dependencies[__i];
|
50
|
+
__array->setElement(__i, *JUnistyleDependency::fromCpp(__element));
|
50
51
|
}
|
51
|
-
return
|
52
|
-
}(), miniRuntime
|
52
|
+
return __array;
|
53
|
+
}(), JUnistylesNativeMiniRuntime::fromCpp(miniRuntime));
|
53
54
|
}
|
55
|
+
};
|
54
56
|
|
57
|
+
/**
|
58
|
+
* An implementation of Func_void_std__vector_UnistyleDependency__UnistylesNativeMiniRuntime that is backed by a C++ implementation (using `std::function<...>`)
|
59
|
+
*/
|
60
|
+
struct JFunc_void_std__vector_UnistyleDependency__UnistylesNativeMiniRuntime_cxx final: public jni::HybridClass<JFunc_void_std__vector_UnistyleDependency__UnistylesNativeMiniRuntime_cxx, JFunc_void_std__vector_UnistyleDependency__UnistylesNativeMiniRuntime> {
|
55
61
|
public:
|
56
|
-
static
|
62
|
+
static jni::local_ref<JFunc_void_std__vector_UnistyleDependency__UnistylesNativeMiniRuntime::javaobject> fromCpp(const std::function<void(const std::vector<UnistyleDependency>& /* dependencies */, const UnistylesNativeMiniRuntime& /* miniRuntime */)>& func) {
|
63
|
+
return JFunc_void_std__vector_UnistyleDependency__UnistylesNativeMiniRuntime_cxx::newObjectCxxArgs(func);
|
64
|
+
}
|
65
|
+
|
66
|
+
public:
|
67
|
+
/**
|
68
|
+
* Invokes the C++ `std::function<...>` this `JFunc_void_std__vector_UnistyleDependency__UnistylesNativeMiniRuntime_cxx` instance holds.
|
69
|
+
*/
|
70
|
+
void invoke_cxx(jni::alias_ref<jni::JArrayClass<JUnistyleDependency>> dependencies, jni::alias_ref<JUnistylesNativeMiniRuntime> miniRuntime) {
|
71
|
+
_func([&]() {
|
72
|
+
size_t __size = dependencies->size();
|
73
|
+
std::vector<UnistyleDependency> __vector;
|
74
|
+
__vector.reserve(__size);
|
75
|
+
for (size_t __i = 0; __i < __size; __i++) {
|
76
|
+
auto __element = dependencies->getElement(__i);
|
77
|
+
__vector.push_back(__element->toCpp());
|
78
|
+
}
|
79
|
+
return __vector;
|
80
|
+
}(), miniRuntime->toCpp());
|
81
|
+
}
|
82
|
+
|
83
|
+
public:
|
84
|
+
[[nodiscard]]
|
85
|
+
inline const std::function<void(const std::vector<UnistyleDependency>& /* dependencies */, const UnistylesNativeMiniRuntime& /* miniRuntime */)>& getFunction() const {
|
86
|
+
return _func;
|
87
|
+
}
|
88
|
+
|
89
|
+
public:
|
90
|
+
static auto constexpr kJavaDescriptor = "Lcom/margelo/nitro/unistyles/Func_void_std__vector_UnistyleDependency__UnistylesNativeMiniRuntime_cxx;";
|
57
91
|
static void registerNatives() {
|
58
|
-
registerHybrid({makeNativeMethod("
|
92
|
+
registerHybrid({makeNativeMethod("invoke", JFunc_void_std__vector_UnistyleDependency__UnistylesNativeMiniRuntime_cxx::invoke_cxx)});
|
59
93
|
}
|
60
94
|
|
61
95
|
private:
|
62
|
-
explicit
|
96
|
+
explicit JFunc_void_std__vector_UnistyleDependency__UnistylesNativeMiniRuntime_cxx(const std::function<void(const std::vector<UnistyleDependency>& /* dependencies */, const UnistylesNativeMiniRuntime& /* miniRuntime */)>& func): _func(func) { }
|
63
97
|
|
64
98
|
private:
|
65
99
|
friend HybridBase;
|
@@ -2,7 +2,7 @@
|
|
2
2
|
/// JHybridNativePlatformSpec.cpp
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
4
4
|
/// https://github.com/mrousavy/nitro
|
5
|
-
/// Copyright ©
|
5
|
+
/// Copyright © 2025 Marc Rousavy @ Margelo
|
6
6
|
///
|
7
7
|
|
8
8
|
#include "JHybridNativePlatformSpec.hpp"
|
@@ -131,12 +131,12 @@ namespace margelo::nitro::unistyles {
|
|
131
131
|
return __result->toCpp();
|
132
132
|
}
|
133
133
|
void JHybridNativePlatformSpec::registerPlatformListener(const std::function<void(const std::vector<UnistyleDependency>& /* dependencies */, const UnistylesNativeMiniRuntime& /* miniRuntime */)>& callback) {
|
134
|
-
static const auto method = _javaPart->getClass()->getMethod<void(jni::alias_ref<JFunc_void_std__vector_UnistyleDependency__UnistylesNativeMiniRuntime::javaobject> /* callback */)>("
|
135
|
-
method(_javaPart,
|
134
|
+
static const auto method = _javaPart->getClass()->getMethod<void(jni::alias_ref<JFunc_void_std__vector_UnistyleDependency__UnistylesNativeMiniRuntime::javaobject> /* callback */)>("registerPlatformListener_cxx");
|
135
|
+
method(_javaPart, JFunc_void_std__vector_UnistyleDependency__UnistylesNativeMiniRuntime_cxx::fromCpp(callback));
|
136
136
|
}
|
137
137
|
void JHybridNativePlatformSpec::registerImeListener(const std::function<void(const UnistylesNativeMiniRuntime& /* miniRuntime */)>& callback) {
|
138
|
-
static const auto method = _javaPart->getClass()->getMethod<void(jni::alias_ref<JFunc_void_UnistylesNativeMiniRuntime::javaobject> /* callback */)>("
|
139
|
-
method(_javaPart,
|
138
|
+
static const auto method = _javaPart->getClass()->getMethod<void(jni::alias_ref<JFunc_void_UnistylesNativeMiniRuntime::javaobject> /* callback */)>("registerImeListener_cxx");
|
139
|
+
method(_javaPart, JFunc_void_UnistylesNativeMiniRuntime_cxx::fromCpp(callback));
|
140
140
|
}
|
141
141
|
void JHybridNativePlatformSpec::unregisterPlatformListeners() {
|
142
142
|
static const auto method = _javaPart->getClass()->getMethod<void()>("unregisterPlatformListeners");
|
@@ -2,7 +2,7 @@
|
|
2
2
|
/// JInsets.hpp
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
4
4
|
/// https://github.com/mrousavy/nitro
|
5
|
-
/// Copyright ©
|
5
|
+
/// Copyright © 2025 Marc Rousavy @ Margelo
|
6
6
|
///
|
7
7
|
|
8
8
|
#pragma once
|
@@ -28,6 +28,7 @@ namespace margelo::nitro::unistyles {
|
|
28
28
|
* Convert this Java/Kotlin-based struct to the C++ struct Insets by copying all values to C++.
|
29
29
|
*/
|
30
30
|
[[maybe_unused]]
|
31
|
+
[[nodiscard]]
|
31
32
|
Insets toCpp() const {
|
32
33
|
static const auto clazz = javaClassStatic();
|
33
34
|
static const auto fieldTop = clazz->getField<double>("top");
|
@@ -2,7 +2,7 @@
|
|
2
2
|
/// JOrientation.hpp
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
4
4
|
/// https://github.com/mrousavy/nitro
|
5
|
-
/// Copyright ©
|
5
|
+
/// Copyright © 2025 Marc Rousavy @ Margelo
|
6
6
|
///
|
7
7
|
|
8
8
|
#pragma once
|
@@ -26,6 +26,7 @@ namespace margelo::nitro::unistyles {
|
|
26
26
|
* Convert this Java/Kotlin-based enum to the C++ enum Orientation.
|
27
27
|
*/
|
28
28
|
[[maybe_unused]]
|
29
|
+
[[nodiscard]]
|
29
30
|
Orientation toCpp() const {
|
30
31
|
static const auto clazz = javaClassStatic();
|
31
32
|
static const auto fieldOrdinal = clazz->getField<int>("_ordinal");
|
@@ -2,7 +2,7 @@
|
|
2
2
|
/// JUnistyleDependency.hpp
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
4
4
|
/// https://github.com/mrousavy/nitro
|
5
|
-
/// Copyright ©
|
5
|
+
/// Copyright © 2025 Marc Rousavy @ Margelo
|
6
6
|
///
|
7
7
|
|
8
8
|
#pragma once
|
@@ -26,6 +26,7 @@ namespace margelo::nitro::unistyles {
|
|
26
26
|
* Convert this Java/Kotlin-based enum to the C++ enum UnistyleDependency.
|
27
27
|
*/
|
28
28
|
[[maybe_unused]]
|
29
|
+
[[nodiscard]]
|
29
30
|
UnistyleDependency toCpp() const {
|
30
31
|
static const auto clazz = javaClassStatic();
|
31
32
|
static const auto fieldOrdinal = clazz->getField<int>("_ordinal");
|
@@ -2,7 +2,7 @@
|
|
2
2
|
/// JUnistylesNativeMiniRuntime.hpp
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
4
4
|
/// https://github.com/mrousavy/nitro
|
5
|
-
/// Copyright ©
|
5
|
+
/// Copyright © 2025 Marc Rousavy @ Margelo
|
6
6
|
///
|
7
7
|
|
8
8
|
#pragma once
|
@@ -34,6 +34,7 @@ namespace margelo::nitro::unistyles {
|
|
34
34
|
* Convert this Java/Kotlin-based struct to the C++ struct UnistylesNativeMiniRuntime by copying all values to C++.
|
35
35
|
*/
|
36
36
|
[[maybe_unused]]
|
37
|
+
[[nodiscard]]
|
37
38
|
UnistylesNativeMiniRuntime toCpp() const {
|
38
39
|
static const auto clazz = javaClassStatic();
|
39
40
|
static const auto fieldColorScheme = clazz->getField<JColorScheme>("colorScheme");
|
@@ -2,7 +2,7 @@
|
|
2
2
|
/// Dimensions.kt
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
4
4
|
/// https://github.com/mrousavy/nitro
|
5
|
-
/// Copyright ©
|
5
|
+
/// Copyright © 2025 Marc Rousavy @ Margelo
|
6
6
|
///
|
7
7
|
|
8
8
|
package com.margelo.nitro.unistyles
|
@@ -16,7 +16,12 @@ import com.margelo.nitro.core.*
|
|
16
16
|
*/
|
17
17
|
@DoNotStrip
|
18
18
|
@Keep
|
19
|
-
data class Dimensions
|
20
|
-
|
21
|
-
|
22
|
-
|
19
|
+
data class Dimensions
|
20
|
+
@DoNotStrip
|
21
|
+
@Keep
|
22
|
+
constructor(
|
23
|
+
val width: Double,
|
24
|
+
val height: Double
|
25
|
+
) {
|
26
|
+
/* main constructor */
|
27
|
+
}
|
@@ -2,7 +2,7 @@
|
|
2
2
|
/// Func_void_UnistylesNativeMiniRuntime.kt
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
4
4
|
/// https://github.com/mrousavy/nitro
|
5
|
-
/// Copyright ©
|
5
|
+
/// Copyright © 2025 Marc Rousavy @ Margelo
|
6
6
|
///
|
7
7
|
|
8
8
|
package com.margelo.nitro.unistyles
|
@@ -13,14 +13,37 @@ import com.facebook.proguard.annotations.DoNotStrip
|
|
13
13
|
import com.margelo.nitro.core.*
|
14
14
|
import dalvik.annotation.optimization.FastNative
|
15
15
|
|
16
|
+
/**
|
17
|
+
* Represents the JavaScript callback `(miniRuntime: struct) => void`.
|
18
|
+
* This can be either implemented in C++ (in which case it might be a callback coming from JS),
|
19
|
+
* or in Kotlin/Java (in which case it is a native callback).
|
20
|
+
*/
|
21
|
+
@DoNotStrip
|
22
|
+
@Keep
|
23
|
+
@Suppress("ClassName", "RedundantUnitReturnType")
|
24
|
+
fun interface Func_void_UnistylesNativeMiniRuntime: (UnistylesNativeMiniRuntime) -> Unit {
|
25
|
+
/**
|
26
|
+
* Call the given JS callback.
|
27
|
+
* @throws Throwable if the JS function itself throws an error, or if the JS function/runtime has already been deleted.
|
28
|
+
*/
|
29
|
+
@DoNotStrip
|
30
|
+
@Keep
|
31
|
+
override fun invoke(miniRuntime: UnistylesNativeMiniRuntime): Unit
|
32
|
+
}
|
33
|
+
|
16
34
|
/**
|
17
35
|
* Represents the JavaScript callback `(miniRuntime: struct) => void`.
|
18
36
|
* This is implemented in C++, via a `std::function<...>`.
|
37
|
+
* The callback might be coming from JS.
|
19
38
|
*/
|
20
39
|
@DoNotStrip
|
21
40
|
@Keep
|
22
|
-
@Suppress(
|
23
|
-
|
41
|
+
@Suppress(
|
42
|
+
"KotlinJniMissingFunction", "unused",
|
43
|
+
"RedundantSuppression", "RedundantUnitReturnType",
|
44
|
+
"ConvertSecondaryConstructorToPrimary", "ClassName", "LocalVariableName",
|
45
|
+
)
|
46
|
+
class Func_void_UnistylesNativeMiniRuntime_cxx: Func_void_UnistylesNativeMiniRuntime {
|
24
47
|
@DoNotStrip
|
25
48
|
@Keep
|
26
49
|
private val mHybridData: HybridData
|
@@ -31,16 +54,22 @@ class Func_void_UnistylesNativeMiniRuntime {
|
|
31
54
|
mHybridData = hybridData
|
32
55
|
}
|
33
56
|
|
34
|
-
/**
|
35
|
-
* Converts this function to a Kotlin Lambda.
|
36
|
-
* This exists purely as syntactic sugar, and has minimal runtime overhead.
|
37
|
-
*/
|
38
|
-
fun toLambda(): (miniRuntime: UnistylesNativeMiniRuntime) -> Unit = this::call
|
39
|
-
|
40
|
-
/**
|
41
|
-
* Call the given JS callback.
|
42
|
-
* @throws Throwable if the JS function itself throws an error, or if the JS function/runtime has already been deleted.
|
43
|
-
*/
|
44
57
|
@FastNative
|
45
|
-
external fun
|
58
|
+
external override fun invoke(miniRuntime: UnistylesNativeMiniRuntime): Unit
|
59
|
+
}
|
60
|
+
|
61
|
+
/**
|
62
|
+
* Represents the JavaScript callback `(miniRuntime: struct) => void`.
|
63
|
+
* This is implemented in Java/Kotlin, via a `(UnistylesNativeMiniRuntime) -> Unit`.
|
64
|
+
* The callback is always coming from native.
|
65
|
+
*/
|
66
|
+
@DoNotStrip
|
67
|
+
@Keep
|
68
|
+
@Suppress("ClassName", "RedundantUnitReturnType", "unused")
|
69
|
+
class Func_void_UnistylesNativeMiniRuntime_java(private val function: (UnistylesNativeMiniRuntime) -> Unit): Func_void_UnistylesNativeMiniRuntime {
|
70
|
+
@DoNotStrip
|
71
|
+
@Keep
|
72
|
+
override fun invoke(miniRuntime: UnistylesNativeMiniRuntime): Unit {
|
73
|
+
return this.function(miniRuntime)
|
74
|
+
}
|
46
75
|
}
|
@@ -2,7 +2,7 @@
|
|
2
2
|
/// Func_void_std__vector_UnistyleDependency__UnistylesNativeMiniRuntime.kt
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
4
4
|
/// https://github.com/mrousavy/nitro
|
5
|
-
/// Copyright ©
|
5
|
+
/// Copyright © 2025 Marc Rousavy @ Margelo
|
6
6
|
///
|
7
7
|
|
8
8
|
package com.margelo.nitro.unistyles
|
@@ -13,14 +13,37 @@ import com.facebook.proguard.annotations.DoNotStrip
|
|
13
13
|
import com.margelo.nitro.core.*
|
14
14
|
import dalvik.annotation.optimization.FastNative
|
15
15
|
|
16
|
+
/**
|
17
|
+
* Represents the JavaScript callback `(dependencies: array, miniRuntime: struct) => void`.
|
18
|
+
* This can be either implemented in C++ (in which case it might be a callback coming from JS),
|
19
|
+
* or in Kotlin/Java (in which case it is a native callback).
|
20
|
+
*/
|
21
|
+
@DoNotStrip
|
22
|
+
@Keep
|
23
|
+
@Suppress("ClassName", "RedundantUnitReturnType")
|
24
|
+
fun interface Func_void_std__vector_UnistyleDependency__UnistylesNativeMiniRuntime: (Array<UnistyleDependency>, UnistylesNativeMiniRuntime) -> Unit {
|
25
|
+
/**
|
26
|
+
* Call the given JS callback.
|
27
|
+
* @throws Throwable if the JS function itself throws an error, or if the JS function/runtime has already been deleted.
|
28
|
+
*/
|
29
|
+
@DoNotStrip
|
30
|
+
@Keep
|
31
|
+
override fun invoke(dependencies: Array<UnistyleDependency>, miniRuntime: UnistylesNativeMiniRuntime): Unit
|
32
|
+
}
|
33
|
+
|
16
34
|
/**
|
17
35
|
* Represents the JavaScript callback `(dependencies: array, miniRuntime: struct) => void`.
|
18
36
|
* This is implemented in C++, via a `std::function<...>`.
|
37
|
+
* The callback might be coming from JS.
|
19
38
|
*/
|
20
39
|
@DoNotStrip
|
21
40
|
@Keep
|
22
|
-
@Suppress(
|
23
|
-
|
41
|
+
@Suppress(
|
42
|
+
"KotlinJniMissingFunction", "unused",
|
43
|
+
"RedundantSuppression", "RedundantUnitReturnType",
|
44
|
+
"ConvertSecondaryConstructorToPrimary", "ClassName", "LocalVariableName",
|
45
|
+
)
|
46
|
+
class Func_void_std__vector_UnistyleDependency__UnistylesNativeMiniRuntime_cxx: Func_void_std__vector_UnistyleDependency__UnistylesNativeMiniRuntime {
|
24
47
|
@DoNotStrip
|
25
48
|
@Keep
|
26
49
|
private val mHybridData: HybridData
|
@@ -31,16 +54,22 @@ class Func_void_std__vector_UnistyleDependency__UnistylesNativeMiniRuntime {
|
|
31
54
|
mHybridData = hybridData
|
32
55
|
}
|
33
56
|
|
34
|
-
/**
|
35
|
-
* Converts this function to a Kotlin Lambda.
|
36
|
-
* This exists purely as syntactic sugar, and has minimal runtime overhead.
|
37
|
-
*/
|
38
|
-
fun toLambda(): (dependencies: Array<UnistyleDependency>, miniRuntime: UnistylesNativeMiniRuntime) -> Unit = this::call
|
39
|
-
|
40
|
-
/**
|
41
|
-
* Call the given JS callback.
|
42
|
-
* @throws Throwable if the JS function itself throws an error, or if the JS function/runtime has already been deleted.
|
43
|
-
*/
|
44
57
|
@FastNative
|
45
|
-
external fun
|
58
|
+
external override fun invoke(dependencies: Array<UnistyleDependency>, miniRuntime: UnistylesNativeMiniRuntime): Unit
|
59
|
+
}
|
60
|
+
|
61
|
+
/**
|
62
|
+
* Represents the JavaScript callback `(dependencies: array, miniRuntime: struct) => void`.
|
63
|
+
* This is implemented in Java/Kotlin, via a `(Array<UnistyleDependency>, UnistylesNativeMiniRuntime) -> Unit`.
|
64
|
+
* The callback is always coming from native.
|
65
|
+
*/
|
66
|
+
@DoNotStrip
|
67
|
+
@Keep
|
68
|
+
@Suppress("ClassName", "RedundantUnitReturnType", "unused")
|
69
|
+
class Func_void_std__vector_UnistyleDependency__UnistylesNativeMiniRuntime_java(private val function: (Array<UnistyleDependency>, UnistylesNativeMiniRuntime) -> Unit): Func_void_std__vector_UnistyleDependency__UnistylesNativeMiniRuntime {
|
70
|
+
@DoNotStrip
|
71
|
+
@Keep
|
72
|
+
override fun invoke(dependencies: Array<UnistyleDependency>, miniRuntime: UnistylesNativeMiniRuntime): Unit {
|
73
|
+
return this.function(dependencies, miniRuntime)
|
74
|
+
}
|
46
75
|
}
|
package/nitrogen/generated/android/kotlin/com/margelo/nitro/unistyles/HybridNativePlatformSpec.kt
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
/// HybridNativePlatformSpec.kt
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
4
4
|
/// https://github.com/mrousavy/nitro
|
5
|
-
/// Copyright ©
|
5
|
+
/// Copyright © 2025 Marc Rousavy @ Margelo
|
6
6
|
///
|
7
7
|
|
8
8
|
package com.margelo.nitro.unistyles
|
@@ -19,7 +19,11 @@ import com.margelo.nitro.core.*
|
|
19
19
|
*/
|
20
20
|
@DoNotStrip
|
21
21
|
@Keep
|
22
|
-
@Suppress(
|
22
|
+
@Suppress(
|
23
|
+
"KotlinJniMissingFunction", "unused",
|
24
|
+
"RedundantSuppression", "RedundantUnitReturnType", "SimpleRedundantLet",
|
25
|
+
"LocalVariableName", "PropertyName", "PrivatePropertyName", "FunctionName"
|
26
|
+
)
|
23
27
|
abstract class HybridNativePlatformSpec: HybridObject() {
|
24
28
|
@DoNotStrip
|
25
29
|
private var mHybridData: HybridData = initHybrid()
|
@@ -101,25 +105,21 @@ abstract class HybridNativePlatformSpec: HybridObject() {
|
|
101
105
|
@Keep
|
102
106
|
abstract fun getMiniRuntime(): UnistylesNativeMiniRuntime
|
103
107
|
|
104
|
-
@DoNotStrip
|
105
|
-
@Keep
|
106
108
|
abstract fun registerPlatformListener(callback: (dependencies: Array<UnistyleDependency>, miniRuntime: UnistylesNativeMiniRuntime) -> Unit): Unit
|
107
109
|
|
108
110
|
@DoNotStrip
|
109
111
|
@Keep
|
110
|
-
private fun
|
111
|
-
val __result = registerPlatformListener(callback
|
112
|
+
private fun registerPlatformListener_cxx(callback: Func_void_std__vector_UnistyleDependency__UnistylesNativeMiniRuntime): Unit {
|
113
|
+
val __result = registerPlatformListener(callback)
|
112
114
|
return __result
|
113
115
|
}
|
114
116
|
|
115
|
-
@DoNotStrip
|
116
|
-
@Keep
|
117
117
|
abstract fun registerImeListener(callback: (miniRuntime: UnistylesNativeMiniRuntime) -> Unit): Unit
|
118
118
|
|
119
119
|
@DoNotStrip
|
120
120
|
@Keep
|
121
|
-
private fun
|
122
|
-
val __result = registerImeListener(callback
|
121
|
+
private fun registerImeListener_cxx(callback: Func_void_UnistylesNativeMiniRuntime): Unit {
|
122
|
+
val __result = registerImeListener(callback)
|
123
123
|
return __result
|
124
124
|
}
|
125
125
|
|
@@ -2,7 +2,7 @@
|
|
2
2
|
/// Insets.kt
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
4
4
|
/// https://github.com/mrousavy/nitro
|
5
|
-
/// Copyright ©
|
5
|
+
/// Copyright © 2025 Marc Rousavy @ Margelo
|
6
6
|
///
|
7
7
|
|
8
8
|
package com.margelo.nitro.unistyles
|
@@ -16,10 +16,15 @@ import com.margelo.nitro.core.*
|
|
16
16
|
*/
|
17
17
|
@DoNotStrip
|
18
18
|
@Keep
|
19
|
-
data class Insets
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
19
|
+
data class Insets
|
20
|
+
@DoNotStrip
|
21
|
+
@Keep
|
22
|
+
constructor(
|
23
|
+
val top: Double,
|
24
|
+
val bottom: Double,
|
25
|
+
val left: Double,
|
26
|
+
val right: Double,
|
27
|
+
val ime: Double
|
28
|
+
) {
|
29
|
+
/* main constructor */
|
30
|
+
}
|
@@ -2,7 +2,7 @@
|
|
2
2
|
/// UnistyleDependency.kt
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
4
4
|
/// https://github.com/mrousavy/nitro
|
5
|
-
/// Copyright ©
|
5
|
+
/// Copyright © 2025 Marc Rousavy @ Margelo
|
6
6
|
///
|
7
7
|
|
8
8
|
package com.margelo.nitro.unistyles
|