react-native-unistyles 2.10.0 → 3.0.0-alpha.10
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +1 -1
- package/{react-native-unistyles.podspec → Unistyles.podspec} +13 -5
- package/android/CMakeLists.txt +35 -17
- package/android/build.gradle +4 -2
- package/android/src/main/cxx/cpp-adapter.cpp +82 -65
- package/android/src/main/java/com/unistyles/UnistylesPackage.kt +19 -9
- package/cxx/common/Breakpoints.h +43 -0
- package/cxx/common/Constants.h +11 -0
- package/cxx/common/Helpers.h +185 -0
- package/cxx/core/HostStyle.cpp +63 -0
- package/cxx/core/HostStyle.h +28 -0
- package/cxx/core/MediaQueries.cpp +87 -0
- package/cxx/core/MediaQueries.h +47 -0
- package/cxx/core/StyleSheet.h +31 -0
- package/cxx/core/StyleSheetRegistry.cpp +42 -0
- package/cxx/core/StyleSheetRegistry.h +26 -0
- package/cxx/core/Unistyle.h +75 -0
- package/cxx/core/UnistyleData.h +23 -0
- package/cxx/core/UnistyleWrapper.cpp +5 -0
- package/cxx/core/UnistyleWrapper.h +50 -0
- package/cxx/core/UnistylesCommitHook.cpp +54 -0
- package/cxx/core/UnistylesCommitHook.h +32 -0
- package/cxx/core/UnistylesCommitShadowNode.h +39 -0
- package/cxx/core/UnistylesMountHook.cpp +40 -0
- package/cxx/core/UnistylesMountHook.h +30 -0
- package/cxx/core/UnistylesRegistry.cpp +162 -0
- package/cxx/core/UnistylesRegistry.h +61 -0
- package/cxx/core/UnistylesState.cpp +95 -0
- package/cxx/core/UnistylesState.h +50 -0
- package/cxx/hybridObjects/HybridNavigationBar.cpp +17 -0
- package/cxx/hybridObjects/HybridNavigationBar.h +19 -0
- package/cxx/hybridObjects/HybridShadowRegistry.cpp +33 -0
- package/cxx/hybridObjects/HybridShadowRegistry.h +33 -0
- package/cxx/hybridObjects/HybridStatusBar.cpp +17 -0
- package/cxx/hybridObjects/HybridStatusBar.h +19 -0
- package/cxx/hybridObjects/HybridStyleSheet.cpp +241 -0
- package/cxx/hybridObjects/HybridStyleSheet.h +64 -0
- package/cxx/hybridObjects/HybridUnistylesRuntime.cpp +218 -0
- package/cxx/hybridObjects/HybridUnistylesRuntime.h +72 -0
- package/cxx/parser/Parser.cpp +642 -0
- package/cxx/parser/Parser.h +49 -0
- package/cxx/shadowTree/ShadowLeafUpdate.h +13 -0
- package/cxx/shadowTree/ShadowTreeManager.cpp +124 -0
- package/cxx/shadowTree/ShadowTreeManager.h +23 -0
- package/ios/Equatable.swift +64 -0
- package/ios/Extensions.swift +11 -0
- package/ios/NativePlatform+ios.swift +291 -0
- package/ios/NativePlatform.swift +17 -0
- package/ios/NativePlatformListener+ios.swift +41 -0
- package/ios/Unistyles.h +3 -0
- package/ios/UnistylesModuleOnLoad.h +13 -0
- package/ios/UnistylesModuleOnLoad.mm +58 -0
- package/lib/commonjs/common.js +1 -58
- package/lib/commonjs/common.js.map +1 -1
- package/lib/commonjs/index.js +27 -66
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/{utils/mq.js → mq.js} +12 -2
- package/lib/commonjs/mq.js.map +1 -0
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/specs/NativePlatform/NativePlatform.nitro.js +25 -0
- package/lib/commonjs/specs/NativePlatform/NativePlatform.nitro.js.map +1 -0
- package/lib/commonjs/specs/NativePlatform/index.js +13 -0
- package/lib/commonjs/specs/NativePlatform/index.js.map +1 -0
- package/lib/commonjs/specs/NavigtionBar/UnistylesNavigationBar.nitro.js +6 -0
- package/lib/commonjs/specs/NavigtionBar/UnistylesNavigationBar.nitro.js.map +1 -0
- package/lib/commonjs/specs/NavigtionBar/index.js +17 -0
- package/lib/commonjs/specs/NavigtionBar/index.js.map +1 -0
- package/lib/commonjs/{types/plugin.js → specs/ShadowRegistry/ShadowRegistry.nitro.js} +1 -1
- package/lib/commonjs/specs/ShadowRegistry/ShadowRegistry.nitro.js.map +1 -0
- package/lib/commonjs/specs/ShadowRegistry/index.js +30 -0
- package/lib/commonjs/specs/ShadowRegistry/index.js.map +1 -0
- package/lib/commonjs/specs/ShadowRegistry/types.js +2 -0
- package/lib/commonjs/specs/ShadowRegistry/types.js.map +1 -0
- package/lib/commonjs/{types/normalizer.js → specs/StatusBar/UnistylesStatusBar.nitro.js} +1 -1
- package/lib/commonjs/specs/StatusBar/UnistylesStatusBar.nitro.js.map +1 -0
- package/lib/commonjs/specs/StatusBar/index.js +33 -0
- package/lib/commonjs/specs/StatusBar/index.js.map +1 -0
- package/lib/commonjs/specs/StyleSheet/UnistylesStyleSheet.nitro.js +6 -0
- package/lib/commonjs/specs/StyleSheet/UnistylesStyleSheet.nitro.js.map +1 -0
- package/lib/commonjs/specs/StyleSheet/index.js +18 -0
- package/lib/commonjs/specs/StyleSheet/index.js.map +1 -0
- package/lib/commonjs/specs/TurboUnistyles/NativeTurboUnistyles.js +8 -0
- package/lib/commonjs/specs/TurboUnistyles/NativeTurboUnistyles.js.map +1 -0
- package/lib/commonjs/specs/TurboUnistyles/index.js +4 -0
- package/lib/commonjs/specs/TurboUnistyles/index.js.map +1 -0
- package/lib/commonjs/{types/unistyles.js → specs/UnistylesRuntime/UnistylesRuntime.nitro.js} +1 -1
- package/lib/commonjs/specs/UnistylesRuntime/UnistylesRuntime.nitro.js.map +1 -0
- package/lib/commonjs/specs/UnistylesRuntime/index.js +26 -0
- package/lib/commonjs/specs/UnistylesRuntime/index.js.map +1 -0
- package/lib/commonjs/specs/index.js +47 -0
- package/lib/commonjs/specs/index.js.map +1 -0
- package/lib/commonjs/specs/index.web.js +24 -0
- package/lib/commonjs/specs/index.web.js.map +1 -0
- package/lib/commonjs/specs/types.js +24 -0
- package/lib/commonjs/specs/types.js.map +1 -0
- package/lib/commonjs/types/accessibility.js +37 -0
- package/lib/commonjs/types/accessibility.js.map +1 -0
- package/lib/commonjs/types/index.js +16 -30
- package/lib/commonjs/types/index.js.map +1 -1
- package/lib/commonjs/types/stylesheet.js +3 -0
- package/lib/commonjs/types/stylesheet.js.map +1 -1
- package/lib/commonjs/types/variants.js +4 -0
- package/lib/commonjs/web/convert/boxShadow.js +77 -0
- package/lib/commonjs/web/convert/boxShadow.js.map +1 -0
- package/lib/commonjs/web/convert/breakpoint.js +25 -0
- package/lib/commonjs/web/convert/breakpoint.js.map +1 -0
- package/lib/commonjs/web/convert/index.js +76 -0
- package/lib/commonjs/web/convert/index.js.map +1 -0
- package/lib/commonjs/web/convert/module.d.js.map +1 -0
- package/lib/commonjs/web/convert/shadow.js +68 -0
- package/lib/commonjs/web/convert/shadow.js.map +1 -0
- package/lib/commonjs/web/convert/style.js +89 -0
- package/lib/commonjs/web/convert/style.js.map +1 -0
- package/lib/commonjs/web/convert/textShadow.js +73 -0
- package/lib/commonjs/web/convert/textShadow.js.map +1 -0
- package/lib/commonjs/web/convert/transform.js +72 -0
- package/lib/commonjs/web/convert/transform.js.map +1 -0
- package/lib/commonjs/web/convert/types.js +9 -0
- package/lib/commonjs/web/convert/types.js.map +1 -0
- package/lib/commonjs/web/convert/utils.js +55 -0
- package/lib/commonjs/web/convert/utils.js.map +1 -0
- package/lib/commonjs/web/create.js +89 -0
- package/lib/commonjs/web/create.js.map +1 -0
- package/lib/commonjs/web/index.js +51 -0
- package/lib/commonjs/web/index.js.map +1 -0
- package/lib/commonjs/web/listener/index.js +13 -0
- package/lib/commonjs/web/listener/index.js.map +1 -0
- package/lib/commonjs/web/listener/listener.js +36 -0
- package/lib/commonjs/web/listener/listener.js.map +1 -0
- package/lib/commonjs/web/mock.js +37 -0
- package/lib/commonjs/web/mock.js.map +1 -0
- package/lib/commonjs/web/mq.js +23 -0
- package/lib/commonjs/web/mq.js.map +1 -0
- package/lib/commonjs/web/pseudo.js +11 -0
- package/lib/commonjs/web/pseudo.js.map +1 -0
- package/lib/commonjs/web/registry.js +37 -0
- package/lib/commonjs/web/registry.js.map +1 -0
- package/lib/commonjs/web/runtime.js +164 -0
- package/lib/commonjs/web/runtime.js.map +1 -0
- package/lib/commonjs/web/state.js +121 -0
- package/lib/commonjs/web/state.js.map +1 -0
- package/lib/commonjs/web/utils.js +78 -0
- package/lib/commonjs/web/utils.js.map +1 -0
- package/lib/commonjs/web/variants/getVariants.js +39 -0
- package/lib/commonjs/web/variants/getVariants.js.map +1 -0
- package/lib/commonjs/web/variants/index.js +28 -0
- package/lib/commonjs/web/variants/index.js.map +1 -0
- package/lib/commonjs/web/variants/useVariants.js +75 -0
- package/lib/commonjs/web/variants/useVariants.js.map +1 -0
- package/lib/module/common.js +2 -56
- package/lib/module/common.js.map +1 -1
- package/lib/module/global.js +1 -1
- package/lib/module/index.js +12 -29
- package/lib/module/index.js.map +1 -1
- package/lib/module/{utils/mq.js → mq.js} +14 -2
- package/lib/module/mq.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/module/specs/NativePlatform/NativePlatform.nitro.js +23 -0
- package/lib/module/specs/NativePlatform/NativePlatform.nitro.js.map +1 -0
- package/lib/module/specs/NativePlatform/index.js +4 -0
- package/lib/module/specs/NativePlatform/index.js.map +1 -0
- package/lib/module/specs/NavigtionBar/UnistylesNavigationBar.nitro.js +4 -0
- package/lib/module/specs/NavigtionBar/UnistylesNavigationBar.nitro.js.map +1 -0
- package/lib/module/specs/NavigtionBar/index.js +12 -0
- package/lib/module/specs/NavigtionBar/index.js.map +1 -0
- package/lib/module/specs/ShadowRegistry/ShadowRegistry.nitro.js +4 -0
- package/lib/module/specs/ShadowRegistry/ShadowRegistry.nitro.js.map +1 -0
- package/lib/module/specs/ShadowRegistry/index.js +26 -0
- package/lib/module/specs/ShadowRegistry/index.js.map +1 -0
- package/lib/module/specs/ShadowRegistry/types.js +2 -0
- package/lib/module/specs/ShadowRegistry/types.js.map +1 -0
- package/lib/module/specs/StatusBar/UnistylesStatusBar.nitro.js +4 -0
- package/lib/module/specs/StatusBar/UnistylesStatusBar.nitro.js.map +1 -0
- package/lib/module/specs/StatusBar/index.js +28 -0
- package/lib/module/specs/StatusBar/index.js.map +1 -0
- package/lib/module/specs/StyleSheet/UnistylesStyleSheet.nitro.js +4 -0
- package/lib/module/specs/StyleSheet/UnistylesStyleSheet.nitro.js.map +1 -0
- package/lib/module/specs/StyleSheet/index.js +14 -0
- package/lib/module/specs/StyleSheet/index.js.map +1 -0
- package/lib/module/specs/TurboUnistyles/NativeTurboUnistyles.js +9 -0
- package/lib/module/specs/TurboUnistyles/NativeTurboUnistyles.js.map +1 -0
- package/lib/module/specs/TurboUnistyles/index.js +4 -0
- package/lib/module/specs/TurboUnistyles/index.js.map +1 -0
- package/lib/module/specs/UnistylesRuntime/UnistylesRuntime.nitro.js +4 -0
- package/lib/module/specs/UnistylesRuntime/UnistylesRuntime.nitro.js.map +1 -0
- package/lib/module/specs/UnistylesRuntime/index.js +22 -0
- package/lib/module/specs/UnistylesRuntime/index.js.map +1 -0
- package/lib/module/specs/index.js +10 -0
- package/lib/module/specs/index.js.map +1 -0
- package/lib/module/specs/index.web.js +5 -0
- package/lib/module/specs/index.web.js.map +1 -0
- package/lib/module/specs/types.js +20 -0
- package/lib/module/specs/types.js.map +1 -0
- package/lib/module/types/accessibility.js +33 -0
- package/lib/module/types/accessibility.js.map +1 -0
- package/lib/module/types/breakpoints.js +2 -0
- package/lib/module/types/common.js +1 -1
- package/lib/module/types/core.js +2 -0
- package/lib/module/types/index.js +3 -3
- package/lib/module/types/index.js.map +1 -1
- package/lib/module/types/stylesheet.js +5 -0
- package/lib/module/types/stylesheet.js.map +1 -1
- package/lib/module/types/variants.js +2 -0
- package/lib/module/web/convert/boxShadow.js +72 -0
- package/lib/module/web/convert/boxShadow.js.map +1 -0
- package/lib/module/web/convert/breakpoint.js +20 -0
- package/lib/module/web/convert/breakpoint.js.map +1 -0
- package/lib/module/web/convert/index.js +71 -0
- package/lib/module/web/convert/index.js.map +1 -0
- package/lib/module/web/convert/module.d.js +2 -0
- package/lib/module/web/convert/module.d.js.map +1 -0
- package/lib/module/web/convert/shadow.js +63 -0
- package/lib/module/web/convert/shadow.js.map +1 -0
- package/lib/module/web/convert/style.js +84 -0
- package/lib/module/web/convert/style.js.map +1 -0
- package/lib/module/web/convert/textShadow.js +68 -0
- package/lib/module/web/convert/textShadow.js.map +1 -0
- package/lib/module/web/convert/transform.js +67 -0
- package/lib/module/web/convert/transform.js.map +1 -0
- package/lib/module/web/convert/types.js +5 -0
- package/lib/module/web/convert/types.js.map +1 -0
- package/lib/module/web/convert/utils.js +43 -0
- package/lib/module/web/convert/utils.js.map +1 -0
- package/lib/module/web/create.js +84 -0
- package/lib/module/web/create.js.map +1 -0
- package/lib/module/web/index.js +24 -0
- package/lib/module/web/index.js.map +1 -0
- package/lib/module/web/listener/index.js +4 -0
- package/lib/module/web/listener/index.js.map +1 -0
- package/lib/module/web/listener/listener.js +31 -0
- package/lib/module/web/listener/listener.js.map +1 -0
- package/lib/module/web/mock.js +33 -0
- package/lib/module/web/mock.js.map +1 -0
- package/lib/module/web/mq.js +17 -0
- package/lib/module/web/mq.js.map +1 -0
- package/lib/module/web/pseudo.js +6 -0
- package/lib/module/web/pseudo.js.map +1 -0
- package/lib/module/web/registry.js +33 -0
- package/lib/module/web/registry.js.map +1 -0
- package/lib/module/web/runtime.js +160 -0
- package/lib/module/web/runtime.js.map +1 -0
- package/lib/module/web/state.js +117 -0
- package/lib/module/web/state.js.map +1 -0
- package/lib/module/web/utils.js +65 -0
- package/lib/module/web/utils.js.map +1 -0
- package/lib/module/web/variants/getVariants.js +34 -0
- package/lib/module/web/variants/getVariants.js.map +1 -0
- package/lib/module/web/variants/index.js +5 -0
- package/lib/module/web/variants/index.js.map +1 -0
- package/lib/module/web/variants/useVariants.js +70 -0
- package/lib/module/web/variants/useVariants.js.map +1 -0
- package/lib/typescript/example/App.d.ts +4 -0
- package/lib/typescript/example/App.d.ts.map +1 -0
- package/lib/typescript/example/Typography.d.ts +12 -0
- package/lib/typescript/example/Typography.d.ts.map +1 -0
- package/lib/typescript/example/unistyles.d.ts +63 -0
- package/lib/typescript/example/unistyles.d.ts.map +1 -0
- package/lib/typescript/expo-example/App.d.ts +4 -0
- package/lib/typescript/expo-example/App.d.ts.map +1 -0
- package/lib/typescript/expo-example/unistyles.d.ts +63 -0
- package/lib/typescript/expo-example/unistyles.d.ts.map +1 -0
- package/lib/typescript/src/common.d.ts +0 -50
- package/lib/typescript/src/common.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +3 -76
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/{utils/mq.d.ts → mq.d.ts} +2 -2
- package/lib/typescript/src/mq.d.ts.map +1 -0
- package/lib/typescript/src/specs/NativePlatform/NativePlatform.nitro.d.ts +57 -0
- package/lib/typescript/src/specs/NativePlatform/NativePlatform.nitro.d.ts.map +1 -0
- package/lib/typescript/src/specs/NativePlatform/index.d.ts +3 -0
- package/lib/typescript/src/specs/NativePlatform/index.d.ts.map +1 -0
- package/lib/typescript/src/specs/NavigtionBar/UnistylesNavigationBar.nitro.d.ts +11 -0
- package/lib/typescript/src/specs/NavigtionBar/UnistylesNavigationBar.nitro.d.ts.map +1 -0
- package/lib/typescript/src/specs/NavigtionBar/index.d.ts +11 -0
- package/lib/typescript/src/specs/NavigtionBar/index.d.ts.map +1 -0
- package/lib/typescript/src/specs/ShadowRegistry/ShadowRegistry.nitro.d.ts +7 -0
- package/lib/typescript/src/specs/ShadowRegistry/ShadowRegistry.nitro.d.ts.map +1 -0
- package/lib/typescript/src/specs/ShadowRegistry/index.d.ts +12 -0
- package/lib/typescript/src/specs/ShadowRegistry/index.d.ts.map +1 -0
- package/lib/typescript/src/specs/ShadowRegistry/types.d.ts +27 -0
- package/lib/typescript/src/specs/ShadowRegistry/types.d.ts.map +1 -0
- package/lib/typescript/src/specs/StatusBar/UnistylesStatusBar.nitro.d.ts +11 -0
- package/lib/typescript/src/specs/StatusBar/UnistylesStatusBar.nitro.d.ts.map +1 -0
- package/lib/typescript/src/specs/StatusBar/index.d.ts +15 -0
- package/lib/typescript/src/specs/StatusBar/index.d.ts.map +1 -0
- package/lib/typescript/src/specs/StyleSheet/UnistylesStyleSheet.nitro.d.ts +9 -0
- package/lib/typescript/src/specs/StyleSheet/UnistylesStyleSheet.nitro.d.ts.map +1 -0
- package/lib/typescript/src/specs/StyleSheet/index.d.ts +29 -0
- package/lib/typescript/src/specs/StyleSheet/index.d.ts.map +1 -0
- package/lib/typescript/src/specs/TurboUnistyles/NativeTurboUnistyles.d.ts +2 -0
- package/lib/typescript/src/specs/TurboUnistyles/NativeTurboUnistyles.d.ts.map +1 -0
- package/lib/typescript/src/specs/TurboUnistyles/index.d.ts +2 -0
- package/lib/typescript/src/specs/TurboUnistyles/index.d.ts.map +1 -0
- package/lib/typescript/src/specs/UnistylesRuntime/UnistylesRuntime.nitro.d.ts +41 -0
- package/lib/typescript/src/specs/UnistylesRuntime/UnistylesRuntime.nitro.d.ts.map +1 -0
- package/lib/typescript/src/specs/UnistylesRuntime/index.d.ts +25 -0
- package/lib/typescript/src/specs/UnistylesRuntime/index.d.ts.map +1 -0
- package/lib/typescript/src/specs/index.d.ts +10 -0
- package/lib/typescript/src/specs/index.d.ts.map +1 -0
- package/lib/typescript/src/specs/index.web.d.ts +4 -0
- package/lib/typescript/src/specs/index.web.d.ts.map +1 -0
- package/lib/typescript/src/specs/types.d.ts +32 -0
- package/lib/typescript/src/specs/types.d.ts.map +1 -0
- package/lib/typescript/src/types/accessibility.d.ts +28 -0
- package/lib/typescript/src/types/accessibility.d.ts.map +1 -0
- package/lib/typescript/src/types/breakpoints.d.ts +12 -5
- package/lib/typescript/src/types/breakpoints.d.ts.map +1 -1
- package/lib/typescript/src/types/common.d.ts +1 -0
- package/lib/typescript/src/types/common.d.ts.map +1 -1
- package/lib/typescript/src/types/index.d.ts +2 -5
- package/lib/typescript/src/types/index.d.ts.map +1 -1
- package/lib/typescript/src/types/stylesheet.d.ts +31 -9
- package/lib/typescript/src/types/stylesheet.d.ts.map +1 -1
- package/lib/typescript/src/types/variants.d.ts +5 -8
- package/lib/typescript/src/types/variants.d.ts.map +1 -1
- package/lib/typescript/src/web/convert/boxShadow.d.ts +3 -0
- package/lib/typescript/src/web/convert/boxShadow.d.ts.map +1 -0
- package/lib/typescript/src/web/convert/breakpoint.d.ts +3 -0
- package/lib/typescript/src/web/convert/breakpoint.d.ts.map +1 -0
- package/lib/typescript/src/web/convert/index.d.ts +4 -0
- package/lib/typescript/src/web/convert/index.d.ts.map +1 -0
- package/lib/typescript/src/web/convert/shadow.d.ts +2 -0
- package/lib/typescript/src/web/convert/shadow.d.ts.map +1 -0
- package/lib/typescript/src/web/convert/style.d.ts +3 -0
- package/lib/typescript/src/web/convert/style.d.ts.map +1 -0
- package/lib/typescript/src/web/convert/textShadow.d.ts +3 -0
- package/lib/typescript/src/web/convert/textShadow.d.ts.map +1 -0
- package/lib/typescript/src/web/convert/transform.d.ts +5 -0
- package/lib/typescript/src/web/convert/transform.d.ts.map +1 -0
- package/lib/typescript/src/web/convert/types.d.ts +13 -0
- package/lib/typescript/src/web/convert/types.d.ts.map +1 -0
- package/lib/typescript/src/web/convert/utils.d.ts +8 -0
- package/lib/typescript/src/web/convert/utils.d.ts.map +1 -0
- package/lib/typescript/src/web/create.d.ts +2449 -0
- package/lib/typescript/src/web/create.d.ts.map +1 -0
- package/lib/typescript/src/web/index.d.ts +2464 -0
- package/lib/typescript/src/web/index.d.ts.map +1 -0
- package/lib/typescript/src/web/listener/index.d.ts +2 -0
- package/lib/typescript/src/web/listener/index.d.ts.map +1 -0
- package/lib/typescript/src/web/listener/listener.d.ts +10 -0
- package/lib/typescript/src/web/listener/listener.d.ts.map +1 -0
- package/lib/typescript/src/web/mock.d.ts +14 -0
- package/lib/typescript/src/web/mock.d.ts.map +1 -0
- package/lib/typescript/src/web/mq.d.ts +4 -0
- package/lib/typescript/src/web/mq.d.ts.map +1 -0
- package/lib/typescript/src/web/pseudo.d.ts +4 -0
- package/lib/typescript/src/web/pseudo.d.ts.map +1 -0
- package/lib/typescript/src/web/registry.d.ts +12 -0
- package/lib/typescript/src/web/registry.d.ts.map +1 -0
- package/lib/typescript/src/web/runtime.d.ts +42 -0
- package/lib/typescript/src/web/runtime.d.ts.map +1 -0
- package/lib/typescript/src/web/state.d.ts +24 -0
- package/lib/typescript/src/web/state.d.ts.map +1 -0
- package/lib/typescript/src/web/utils.d.ts +20 -0
- package/lib/typescript/src/web/utils.d.ts.map +1 -0
- package/lib/typescript/src/web/variants/getVariants.d.ts +3 -0
- package/lib/typescript/src/web/variants/getVariants.d.ts.map +1 -0
- package/lib/typescript/src/web/variants/index.d.ts +3 -0
- package/lib/typescript/src/web/variants/index.d.ts.map +1 -0
- package/lib/typescript/src/web/variants/useVariants.d.ts +3 -0
- package/lib/typescript/src/web/variants/useVariants.d.ts.map +1 -0
- package/nitrogen/generated/android/UnistylesOnLoad.cpp +34 -0
- package/nitrogen/generated/android/UnistylesOnLoad.hpp +25 -0
- package/nitrogen/generated/android/UnistylesOnLoad.kt +1 -0
- package/nitrogen/generated/android/c++/JColorScheme.hpp +61 -0
- package/nitrogen/generated/android/c++/JDimensions.hpp +56 -0
- package/nitrogen/generated/android/c++/JFunc_void_std__vector_UnistyleDependency_.hpp +60 -0
- package/nitrogen/generated/android/c++/JHybridNativePlatformSpec.cpp +145 -0
- package/nitrogen/generated/android/c++/JHybridNativePlatformSpec.hpp +70 -0
- package/nitrogen/generated/android/c++/JInsets.hpp +68 -0
- package/nitrogen/generated/android/c++/JOrientation.hpp +58 -0
- package/nitrogen/generated/android/c++/JUnistyleDependency.hpp +94 -0
- package/nitrogen/generated/android/c++/JUnistylesNativeMiniRuntime.hpp +96 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/unistyles/ColorScheme.kt +22 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/unistyles/Dimensions.kt +21 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/unistyles/Func_void_std__vector_UnistyleDependency_.kt +45 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/unistyles/HybridNativePlatformSpec.kt +134 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/unistyles/Insets.kt +24 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/unistyles/Orientation.kt +21 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/unistyles/UnistyleDependency.kt +33 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/unistyles/UnistylesNativeMiniRuntime.kt +29 -0
- package/nitrogen/generated/android/unistyles+autolinking.cmake +52 -0
- package/nitrogen/generated/android/unistyles+autolinking.gradle +25 -0
- package/nitrogen/generated/ios/Unistyles+autolinking.rb +56 -0
- package/nitrogen/generated/ios/Unistyles-Swift-Cxx-Bridge.cpp +8 -0
- package/nitrogen/generated/ios/Unistyles-Swift-Cxx-Bridge.hpp +86 -0
- package/nitrogen/generated/ios/Unistyles-Swift-Cxx-Umbrella.hpp +88 -0
- package/nitrogen/generated/ios/c++/HybridNativePlatformSpecSwift.cpp +11 -0
- package/nitrogen/generated/ios/c++/HybridNativePlatformSpecSwift.hpp +151 -0
- package/nitrogen/generated/ios/swift/ColorScheme.swift +44 -0
- package/nitrogen/generated/ios/swift/Dimensions.swift +46 -0
- package/nitrogen/generated/ios/swift/HybridNativePlatformSpec.swift +65 -0
- package/nitrogen/generated/ios/swift/HybridNativePlatformSpecCxx.swift +273 -0
- package/nitrogen/generated/ios/swift/Insets.swift +79 -0
- package/nitrogen/generated/ios/swift/Orientation.swift +40 -0
- package/nitrogen/generated/ios/swift/UnistyleDependency.swift +88 -0
- package/nitrogen/generated/ios/swift/UnistylesNativeMiniRuntime.swift +134 -0
- package/nitrogen/generated/shared/c++/ColorScheme.hpp +82 -0
- package/nitrogen/generated/shared/c++/Dimensions.hpp +72 -0
- package/nitrogen/generated/shared/c++/HybridNativePlatformSpec.cpp +38 -0
- package/nitrogen/generated/shared/c++/HybridNativePlatformSpec.hpp +95 -0
- package/nitrogen/generated/shared/c++/HybridUnistylesNavigationBarSpec.cpp +24 -0
- package/nitrogen/generated/shared/c++/HybridUnistylesNavigationBarSpec.hpp +61 -0
- package/nitrogen/generated/shared/c++/HybridUnistylesRuntimeSpec.cpp +36 -0
- package/nitrogen/generated/shared/c++/HybridUnistylesRuntimeSpec.hpp +88 -0
- package/nitrogen/generated/shared/c++/HybridUnistylesShadowRegistrySpec.cpp +21 -0
- package/nitrogen/generated/shared/c++/HybridUnistylesShadowRegistrySpec.hpp +59 -0
- package/nitrogen/generated/shared/c++/HybridUnistylesStatusBarSpec.cpp +24 -0
- package/nitrogen/generated/shared/c++/HybridUnistylesStatusBarSpec.hpp +61 -0
- package/nitrogen/generated/shared/c++/HybridUnistylesStyleSheetSpec.cpp +22 -0
- package/nitrogen/generated/shared/c++/HybridUnistylesStyleSheetSpec.hpp +60 -0
- package/nitrogen/generated/shared/c++/Insets.hpp +84 -0
- package/nitrogen/generated/shared/c++/Orientation.hpp +78 -0
- package/nitrogen/generated/shared/c++/UnistyleDependency.hpp +76 -0
- package/nitrogen/generated/shared/c++/UnistylesCxxMiniRuntime.hpp +128 -0
- package/nitrogen/generated/shared/c++/UnistylesNativeMiniRuntime.hpp +115 -0
- package/package.json +34 -59
- package/plugin/__tests__/dependencies.spec.js +438 -0
- package/plugin/__tests__/ref.spec.js +1170 -0
- package/plugin/__tests__/stylesheet.spec.js +489 -0
- package/plugin/common.js +119 -0
- package/plugin/import.js +8 -0
- package/plugin/index.js +132 -0
- package/plugin/ref.js +211 -0
- package/plugin/style.js +47 -0
- package/plugin/stylesheet.js +190 -0
- package/plugin/variants.js +33 -0
- package/src/common.ts +0 -58
- package/src/index.ts +11 -52
- package/src/{utils/mq.ts → mq.ts} +13 -4
- package/src/specs/NativePlatform/NativePlatform.nitro.ts +61 -0
- package/src/specs/NativePlatform/index.ts +2 -0
- package/src/specs/NavigtionBar/UnistylesNavigationBar.nitro.ts +10 -0
- package/src/specs/NavigtionBar/index.ts +25 -0
- package/src/specs/ShadowRegistry/ShadowRegistry.nitro.ts +3 -0
- package/src/specs/ShadowRegistry/index.ts +51 -0
- package/src/specs/ShadowRegistry/types.ts +29 -0
- package/src/specs/StatusBar/UnistylesStatusBar.nitro.ts +10 -0
- package/src/specs/StatusBar/index.ts +48 -0
- package/src/specs/StyleSheet/UnistylesStyleSheet.nitro.ts +6 -0
- package/src/specs/StyleSheet/index.ts +46 -0
- package/src/specs/TurboUnistyles/NativeTurboUnistyles.ts +8 -0
- package/src/specs/TurboUnistyles/index.ts +1 -0
- package/src/specs/UnistylesRuntime/UnistylesRuntime.nitro.ts +47 -0
- package/src/specs/UnistylesRuntime/index.ts +64 -0
- package/src/specs/index.ts +23 -0
- package/src/specs/index.web.ts +5 -0
- package/src/specs/types.ts +38 -0
- package/src/types/accessibility.ts +29 -0
- package/src/types/breakpoints.ts +21 -14
- package/src/types/common.ts +1 -0
- package/src/types/index.ts +2 -5
- package/src/types/stylesheet.ts +41 -9
- package/src/types/variants.ts +7 -11
- package/src/web/convert/boxShadow.ts +72 -0
- package/src/web/convert/breakpoint.ts +21 -0
- package/src/web/convert/index.ts +78 -0
- package/src/web/convert/shadow.ts +68 -0
- package/src/web/convert/style.ts +94 -0
- package/src/web/convert/textShadow.ts +69 -0
- package/src/web/convert/transform.ts +89 -0
- package/src/web/convert/types.ts +16 -0
- package/src/web/convert/utils.ts +54 -0
- package/src/web/create.ts +105 -0
- package/src/web/index.ts +24 -0
- package/src/web/listener/index.ts +1 -0
- package/src/web/listener/listener.ts +33 -0
- package/src/web/mock.ts +35 -0
- package/src/web/mq.ts +19 -0
- package/src/web/pseudo.ts +11 -0
- package/src/web/registry.ts +41 -0
- package/src/web/runtime.ts +198 -0
- package/src/web/state.ts +148 -0
- package/src/web/utils.ts +95 -0
- package/src/web/variants/getVariants.ts +42 -0
- package/src/web/variants/index.ts +2 -0
- package/src/web/variants/useVariants.ts +79 -0
- package/android/src/main/java/com/unistyles/Models.kt +0 -27
- package/android/src/main/java/com/unistyles/Platform.kt +0 -324
- package/android/src/main/java/com/unistyles/UnistylesModule.kt +0 -217
- package/cxx/Macros.h +0 -11
- package/cxx/UnistylesImpl.cpp +0 -310
- package/cxx/UnistylesModel.cpp +0 -230
- package/cxx/UnistylesModel.h +0 -143
- package/cxx/UnistylesRuntime.cpp +0 -36
- package/cxx/UnistylesRuntime.h +0 -81
- package/ios/UnistylesModule.h +0 -28
- package/ios/UnistylesModule.mm +0 -77
- package/ios/platform/Platform_Shared.h +0 -8
- package/ios/platform/Platform_Shared.mm +0 -160
- package/ios/platform/Platform_iOS.h +0 -20
- package/ios/platform/Platform_iOS.mm +0 -193
- package/ios/platform/Platform_macOS.h +0 -19
- package/ios/platform/Platform_macOS.mm +0 -117
- package/ios/platform/Platform_tvOS.h +0 -16
- package/ios/platform/Platform_tvOS.mm +0 -92
- package/ios/platform/Platform_visionOS.h +0 -19
- package/ios/platform/Platform_visionOS.mm +0 -116
- package/lib/commonjs/core/UnistyleRegistry.js +0 -110
- package/lib/commonjs/core/UnistyleRegistry.js.map +0 -1
- package/lib/commonjs/core/Unistyles.js +0 -39
- package/lib/commonjs/core/Unistyles.js.map +0 -1
- package/lib/commonjs/core/UnistylesModule.js +0 -268
- package/lib/commonjs/core/UnistylesModule.js.map +0 -1
- package/lib/commonjs/core/UnistylesModule.native.js +0 -9
- package/lib/commonjs/core/UnistylesModule.native.js.map +0 -1
- package/lib/commonjs/core/UnistylesModule.windows.js +0 -11
- package/lib/commonjs/core/UnistylesModule.windows.js.map +0 -1
- package/lib/commonjs/core/UnistylesRuntime.js +0 -284
- package/lib/commonjs/core/UnistylesRuntime.js.map +0 -1
- package/lib/commonjs/core/index.js +0 -13
- package/lib/commonjs/core/index.js.map +0 -1
- package/lib/commonjs/core/mocks/UnistylesMockedBridge.js +0 -36
- package/lib/commonjs/core/mocks/UnistylesMockedBridge.js.map +0 -1
- package/lib/commonjs/core/mocks/UnistylesMockedRegistry.js +0 -46
- package/lib/commonjs/core/mocks/UnistylesMockedRegistry.js.map +0 -1
- package/lib/commonjs/core/mocks/UnistylesMockedRuntime.js +0 -122
- package/lib/commonjs/core/mocks/UnistylesMockedRuntime.js.map +0 -1
- package/lib/commonjs/core/mocks/index.js +0 -27
- package/lib/commonjs/core/mocks/index.js.map +0 -1
- package/lib/commonjs/createStyleSheet.js +0 -14
- package/lib/commonjs/createStyleSheet.js.map +0 -1
- package/lib/commonjs/hooks/index.js +0 -34
- package/lib/commonjs/hooks/index.js.map +0 -1
- package/lib/commonjs/hooks/useCSS.js +0 -44
- package/lib/commonjs/hooks/useCSS.js.map +0 -1
- package/lib/commonjs/hooks/useCSS.native.js +0 -9
- package/lib/commonjs/hooks/useCSS.native.js.map +0 -1
- package/lib/commonjs/hooks/useInitialTheme.js +0 -17
- package/lib/commonjs/hooks/useInitialTheme.js.map +0 -1
- package/lib/commonjs/hooks/useUnistyles.js +0 -74
- package/lib/commonjs/hooks/useUnistyles.js.map +0 -1
- package/lib/commonjs/hooks/useVariants.js +0 -14
- package/lib/commonjs/hooks/useVariants.js.map +0 -1
- package/lib/commonjs/normalizer/index.js +0 -32
- package/lib/commonjs/normalizer/index.js.map +0 -1
- package/lib/commonjs/normalizer/module.d.js.map +0 -1
- package/lib/commonjs/normalizer/normalizeStyle.js +0 -59
- package/lib/commonjs/normalizer/normalizeStyle.js.map +0 -1
- package/lib/commonjs/normalizer/normalizer.js +0 -88
- package/lib/commonjs/normalizer/normalizer.js.map +0 -1
- package/lib/commonjs/normalizer/normalizer.macos.js +0 -3
- package/lib/commonjs/normalizer/normalizer.macos.js.map +0 -1
- package/lib/commonjs/plugins/cssMediaQueriesPlugin.js +0 -14
- package/lib/commonjs/plugins/cssMediaQueriesPlugin.js.map +0 -1
- package/lib/commonjs/plugins/index.js +0 -20
- package/lib/commonjs/plugins/index.js.map +0 -1
- package/lib/commonjs/plugins/normalizeWebStylesPlugin.js +0 -12
- package/lib/commonjs/plugins/normalizeWebStylesPlugin.js.map +0 -1
- package/lib/commonjs/types/color.js +0 -2
- package/lib/commonjs/types/color.js.map +0 -1
- package/lib/commonjs/types/normalizer.js.map +0 -1
- package/lib/commonjs/types/plugin.js.map +0 -1
- package/lib/commonjs/types/unistyles.js.map +0 -1
- package/lib/commonjs/useStyles.js +0 -47
- package/lib/commonjs/useStyles.js.map +0 -1
- package/lib/commonjs/utils/breakpoints.js +0 -33
- package/lib/commonjs/utils/breakpoints.js.map +0 -1
- package/lib/commonjs/utils/cssMediaQuery.js +0 -244
- package/lib/commonjs/utils/cssMediaQuery.js.map +0 -1
- package/lib/commonjs/utils/generateId.js +0 -15
- package/lib/commonjs/utils/generateId.js.map +0 -1
- package/lib/commonjs/utils/hash32.js +0 -43
- package/lib/commonjs/utils/hash32.js.map +0 -1
- package/lib/commonjs/utils/index.js +0 -91
- package/lib/commonjs/utils/index.js.map +0 -1
- package/lib/commonjs/utils/mq.js.map +0 -1
- package/lib/commonjs/utils/mqParser.js +0 -89
- package/lib/commonjs/utils/mqParser.js.map +0 -1
- package/lib/commonjs/utils/parseColor.js +0 -35
- package/lib/commonjs/utils/parseColor.js.map +0 -1
- package/lib/commonjs/utils/styles.js +0 -73
- package/lib/commonjs/utils/styles.js.map +0 -1
- package/lib/commonjs/utils/withPlugins.js +0 -15
- package/lib/commonjs/utils/withPlugins.js.map +0 -1
- package/lib/module/core/UnistyleRegistry.js +0 -103
- package/lib/module/core/UnistyleRegistry.js.map +0 -1
- package/lib/module/core/Unistyles.js +0 -33
- package/lib/module/core/Unistyles.js.map +0 -1
- package/lib/module/core/UnistylesModule.js +0 -261
- package/lib/module/core/UnistylesModule.js.map +0 -1
- package/lib/module/core/UnistylesModule.native.js +0 -3
- package/lib/module/core/UnistylesModule.native.js.map +0 -1
- package/lib/module/core/UnistylesModule.windows.js +0 -5
- package/lib/module/core/UnistylesModule.windows.js.map +0 -1
- package/lib/module/core/UnistylesRuntime.js +0 -278
- package/lib/module/core/UnistylesRuntime.js.map +0 -1
- package/lib/module/core/index.js +0 -3
- package/lib/module/core/index.js.map +0 -1
- package/lib/module/core/mocks/UnistylesMockedBridge.js +0 -29
- package/lib/module/core/mocks/UnistylesMockedBridge.js.map +0 -1
- package/lib/module/core/mocks/UnistylesMockedRegistry.js +0 -39
- package/lib/module/core/mocks/UnistylesMockedRegistry.js.map +0 -1
- package/lib/module/core/mocks/UnistylesMockedRuntime.js +0 -114
- package/lib/module/core/mocks/UnistylesMockedRuntime.js.map +0 -1
- package/lib/module/core/mocks/index.js +0 -4
- package/lib/module/core/mocks/index.js.map +0 -1
- package/lib/module/createStyleSheet.js +0 -7
- package/lib/module/createStyleSheet.js.map +0 -1
- package/lib/module/hooks/index.js +0 -5
- package/lib/module/hooks/index.js.map +0 -1
- package/lib/module/hooks/useCSS.js +0 -37
- package/lib/module/hooks/useCSS.js.map +0 -1
- package/lib/module/hooks/useCSS.native.js +0 -2
- package/lib/module/hooks/useCSS.native.js.map +0 -1
- package/lib/module/hooks/useInitialTheme.js +0 -10
- package/lib/module/hooks/useInitialTheme.js.map +0 -1
- package/lib/module/hooks/useUnistyles.js +0 -67
- package/lib/module/hooks/useUnistyles.js.map +0 -1
- package/lib/module/hooks/useVariants.js +0 -7
- package/lib/module/hooks/useVariants.js.map +0 -1
- package/lib/module/normalizer/index.js +0 -3
- package/lib/module/normalizer/index.js.map +0 -1
- package/lib/module/normalizer/module.d.js +0 -2
- package/lib/module/normalizer/module.d.js.map +0 -1
- package/lib/module/normalizer/normalizeStyle.js +0 -52
- package/lib/module/normalizer/normalizeStyle.js.map +0 -1
- package/lib/module/normalizer/normalizer.js +0 -78
- package/lib/module/normalizer/normalizer.js.map +0 -1
- package/lib/module/normalizer/normalizer.macos.js +0 -2
- package/lib/module/normalizer/normalizer.macos.js.map +0 -1
- package/lib/module/plugins/cssMediaQueriesPlugin.js +0 -7
- package/lib/module/plugins/cssMediaQueriesPlugin.js.map +0 -1
- package/lib/module/plugins/index.js +0 -3
- package/lib/module/plugins/index.js.map +0 -1
- package/lib/module/plugins/normalizeWebStylesPlugin.js +0 -6
- package/lib/module/plugins/normalizeWebStylesPlugin.js.map +0 -1
- package/lib/module/types/color.js +0 -2
- package/lib/module/types/color.js.map +0 -1
- package/lib/module/types/normalizer.js +0 -2
- package/lib/module/types/normalizer.js.map +0 -1
- package/lib/module/types/plugin.js +0 -2
- package/lib/module/types/plugin.js.map +0 -1
- package/lib/module/types/unistyles.js +0 -2
- package/lib/module/types/unistyles.js.map +0 -1
- package/lib/module/useStyles.js +0 -40
- package/lib/module/useStyles.js.map +0 -1
- package/lib/module/utils/breakpoints.js +0 -26
- package/lib/module/utils/breakpoints.js.map +0 -1
- package/lib/module/utils/cssMediaQuery.js +0 -237
- package/lib/module/utils/cssMediaQuery.js.map +0 -1
- package/lib/module/utils/generateId.js +0 -7
- package/lib/module/utils/generateId.js.map +0 -1
- package/lib/module/utils/hash32.js +0 -36
- package/lib/module/utils/hash32.js.map +0 -1
- package/lib/module/utils/index.js +0 -8
- package/lib/module/utils/index.js.map +0 -1
- package/lib/module/utils/mq.js.map +0 -1
- package/lib/module/utils/mqParser.js +0 -78
- package/lib/module/utils/mqParser.js.map +0 -1
- package/lib/module/utils/parseColor.js +0 -28
- package/lib/module/utils/parseColor.js.map +0 -1
- package/lib/module/utils/styles.js +0 -64
- package/lib/module/utils/styles.js.map +0 -1
- package/lib/module/utils/withPlugins.js +0 -8
- package/lib/module/utils/withPlugins.js.map +0 -1
- package/lib/typescript/src/core/UnistyleRegistry.d.ts +0 -57
- package/lib/typescript/src/core/UnistyleRegistry.d.ts.map +0 -1
- package/lib/typescript/src/core/Unistyles.d.ts +0 -13
- package/lib/typescript/src/core/Unistyles.d.ts.map +0 -1
- package/lib/typescript/src/core/UnistylesModule.d.ts +0 -21
- package/lib/typescript/src/core/UnistylesModule.d.ts.map +0 -1
- package/lib/typescript/src/core/UnistylesModule.native.d.ts +0 -6
- package/lib/typescript/src/core/UnistylesModule.native.d.ts.map +0 -1
- package/lib/typescript/src/core/UnistylesModule.windows.d.ts +0 -6
- package/lib/typescript/src/core/UnistylesModule.windows.d.ts.map +0 -1
- package/lib/typescript/src/core/UnistylesRuntime.d.ts +0 -179
- package/lib/typescript/src/core/UnistylesRuntime.d.ts.map +0 -1
- package/lib/typescript/src/core/index.d.ts +0 -5
- package/lib/typescript/src/core/index.d.ts.map +0 -1
- package/lib/typescript/src/core/mocks/UnistylesMockedBridge.d.ts +0 -28
- package/lib/typescript/src/core/mocks/UnistylesMockedBridge.d.ts.map +0 -1
- package/lib/typescript/src/core/mocks/UnistylesMockedRegistry.d.ts +0 -21
- package/lib/typescript/src/core/mocks/UnistylesMockedRegistry.d.ts.map +0 -1
- package/lib/typescript/src/core/mocks/UnistylesMockedRuntime.d.ts +0 -79
- package/lib/typescript/src/core/mocks/UnistylesMockedRuntime.d.ts.map +0 -1
- package/lib/typescript/src/core/mocks/index.d.ts +0 -4
- package/lib/typescript/src/core/mocks/index.d.ts.map +0 -1
- package/lib/typescript/src/createStyleSheet.d.ts +0 -8
- package/lib/typescript/src/createStyleSheet.d.ts.map +0 -1
- package/lib/typescript/src/hooks/index.d.ts +0 -5
- package/lib/typescript/src/hooks/index.d.ts.map +0 -1
- package/lib/typescript/src/hooks/useCSS.d.ts +0 -3
- package/lib/typescript/src/hooks/useCSS.d.ts.map +0 -1
- package/lib/typescript/src/hooks/useCSS.native.d.ts +0 -3
- package/lib/typescript/src/hooks/useCSS.native.d.ts.map +0 -1
- package/lib/typescript/src/hooks/useInitialTheme.d.ts +0 -3
- package/lib/typescript/src/hooks/useInitialTheme.d.ts.map +0 -1
- package/lib/typescript/src/hooks/useUnistyles.d.ts +0 -27
- package/lib/typescript/src/hooks/useUnistyles.d.ts.map +0 -1
- package/lib/typescript/src/hooks/useVariants.d.ts +0 -3
- package/lib/typescript/src/hooks/useVariants.d.ts.map +0 -1
- package/lib/typescript/src/normalizer/index.d.ts +0 -3
- package/lib/typescript/src/normalizer/index.d.ts.map +0 -1
- package/lib/typescript/src/normalizer/normalizeStyle.d.ts +0 -3
- package/lib/typescript/src/normalizer/normalizeStyle.d.ts.map +0 -1
- package/lib/typescript/src/normalizer/normalizer.d.ts +0 -11
- package/lib/typescript/src/normalizer/normalizer.d.ts.map +0 -1
- package/lib/typescript/src/normalizer/normalizer.macos.d.ts +0 -1
- package/lib/typescript/src/normalizer/normalizer.macos.d.ts.map +0 -1
- package/lib/typescript/src/plugins/cssMediaQueriesPlugin.d.ts +0 -3
- package/lib/typescript/src/plugins/cssMediaQueriesPlugin.d.ts.map +0 -1
- package/lib/typescript/src/plugins/index.d.ts +0 -3
- package/lib/typescript/src/plugins/index.d.ts.map +0 -1
- package/lib/typescript/src/plugins/normalizeWebStylesPlugin.d.ts +0 -3
- package/lib/typescript/src/plugins/normalizeWebStylesPlugin.d.ts.map +0 -1
- package/lib/typescript/src/types/color.d.ts +0 -4
- package/lib/typescript/src/types/color.d.ts.map +0 -1
- package/lib/typescript/src/types/normalizer.d.ts +0 -20
- package/lib/typescript/src/types/normalizer.d.ts.map +0 -1
- package/lib/typescript/src/types/plugin.d.ts +0 -7
- package/lib/typescript/src/types/plugin.d.ts.map +0 -1
- package/lib/typescript/src/types/unistyles.d.ts +0 -81
- package/lib/typescript/src/types/unistyles.d.ts.map +0 -1
- package/lib/typescript/src/useStyles.d.ts +0 -16
- package/lib/typescript/src/useStyles.d.ts.map +0 -1
- package/lib/typescript/src/utils/breakpoints.d.ts +0 -3
- package/lib/typescript/src/utils/breakpoints.d.ts.map +0 -1
- package/lib/typescript/src/utils/cssMediaQuery.d.ts +0 -4
- package/lib/typescript/src/utils/cssMediaQuery.d.ts.map +0 -1
- package/lib/typescript/src/utils/generateId.d.ts +0 -2
- package/lib/typescript/src/utils/generateId.d.ts.map +0 -1
- package/lib/typescript/src/utils/hash32.d.ts +0 -2
- package/lib/typescript/src/utils/hash32.d.ts.map +0 -1
- package/lib/typescript/src/utils/index.d.ts +0 -9
- package/lib/typescript/src/utils/index.d.ts.map +0 -1
- package/lib/typescript/src/utils/mq.d.ts.map +0 -1
- package/lib/typescript/src/utils/mqParser.d.ts +0 -16
- package/lib/typescript/src/utils/mqParser.d.ts.map +0 -1
- package/lib/typescript/src/utils/parseColor.d.ts +0 -3
- package/lib/typescript/src/utils/parseColor.d.ts.map +0 -1
- package/lib/typescript/src/utils/styles.d.ts +0 -5
- package/lib/typescript/src/utils/styles.d.ts.map +0 -1
- package/lib/typescript/src/utils/withPlugins.d.ts +0 -3
- package/lib/typescript/src/utils/withPlugins.d.ts.map +0 -1
- package/react-native.config.js +0 -11
- package/src/__tests__/mocks.ts +0 -24
- package/src/core/UnistyleRegistry.ts +0 -130
- package/src/core/Unistyles.ts +0 -44
- package/src/core/UnistylesModule.native.ts +0 -7
- package/src/core/UnistylesModule.ts +0 -305
- package/src/core/UnistylesModule.windows.ts +0 -9
- package/src/core/UnistylesRuntime.ts +0 -284
- package/src/core/index.ts +0 -8
- package/src/core/mocks/UnistylesMockedBridge.ts +0 -30
- package/src/core/mocks/UnistylesMockedRegistry.ts +0 -47
- package/src/core/mocks/UnistylesMockedRuntime.ts +0 -144
- package/src/core/mocks/index.ts +0 -3
- package/src/createStyleSheet.ts +0 -8
- package/src/hooks/index.ts +0 -4
- package/src/hooks/useCSS.native.ts +0 -3
- package/src/hooks/useCSS.ts +0 -51
- package/src/hooks/useInitialTheme.ts +0 -11
- package/src/hooks/useUnistyles.ts +0 -74
- package/src/hooks/useVariants.ts +0 -10
- package/src/normalizer/index.ts +0 -2
- package/src/normalizer/normalizeStyle.ts +0 -82
- package/src/normalizer/normalizer.macos.ts +0 -1
- package/src/normalizer/normalizer.ts +0 -100
- package/src/plugins/cssMediaQueriesPlugin.ts +0 -8
- package/src/plugins/index.ts +0 -2
- package/src/plugins/normalizeWebStylesPlugin.ts +0 -7
- package/src/types/color.ts +0 -26
- package/src/types/normalizer.ts +0 -29
- package/src/types/plugin.ts +0 -7
- package/src/types/unistyles.ts +0 -98
- package/src/useStyles.ts +0 -60
- package/src/utils/breakpoints.ts +0 -44
- package/src/utils/cssMediaQuery.ts +0 -268
- package/src/utils/generateId.ts +0 -10
- package/src/utils/hash32.ts +0 -53
- package/src/utils/index.ts +0 -8
- package/src/utils/mqParser.ts +0 -99
- package/src/utils/parseColor.ts +0 -33
- package/src/utils/styles.ts +0 -90
- package/src/utils/withPlugins.ts +0 -13
- package/windows/ExperimentalFeatures.props +0 -40
- package/windows/NuGet.Config +0 -13
- package/windows/ReactNativeUnistyles/PropertySheet.props +0 -16
- package/windows/ReactNativeUnistyles/ReactNativeUnistyles.def +0 -3
- package/windows/ReactNativeUnistyles/ReactNativeUnistyles.h +0 -149
- package/windows/ReactNativeUnistyles/ReactNativeUnistyles.vcxproj +0 -162
- package/windows/ReactNativeUnistyles/ReactNativeUnistyles.vcxproj.filters +0 -25
- package/windows/ReactNativeUnistyles/ReactPackageProvider.cpp +0 -19
- package/windows/ReactNativeUnistyles/ReactPackageProvider.h +0 -21
- package/windows/ReactNativeUnistyles/ReactPackageProvider.idl +0 -9
- package/windows/ReactNativeUnistyles/packages.lock.json +0 -133
- package/windows/ReactNativeUnistyles/pch.cpp +0 -1
- package/windows/ReactNativeUnistyles/pch.h +0 -21
- package/windows/ReactNativeUnistyles.sln +0 -156
- /package/lib/commonjs/{normalizer → web/convert}/module.d.js +0 -0
- /package/src/{normalizer → web/convert}/module.d.ts +0 -0
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"names":["normalizeColor","isUnistylesMq","isValidMq","parseMq","generateReactNativeWebId","createMediaQueryForStyles","styles","runtime","withMediaQueries","Object","entries","filter","value","reduce","acc","prop","objectKeys","keys","mediaQueries","key","breakpoints","length","className","breakpointsStyles","getBreakpointsStyles","mediaQueriesStyles","getMediaQueriesFromMQ","trim","getMaxWidthMediaQuery","width","to","Infinity","getMaxHeightMediaQuery","height","result","from","normalizePropName","normalizeWebValue","breakpoint","undefined","replace","toLowerCase"],"sourceRoot":"../../../src","sources":["utils/cssMediaQuery.ts"],"mappings":"AAAA,SAASA,cAAc,QAAQ,eAAe;AAC9C,SAASC,aAAa,EAAEC,SAAS,EAAEC,OAAO,QAAgC,YAAY;AAEtF,SAASC,wBAAwB,QAAQ,cAAc;AAGvD,OAAO,MAAMC,yBAAyB,GAAGA,CAACC,MAAe,EAAEC,OAAyB,KAAc;EAC9F,MAAMC,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7 +0,0 @@
|
|
1
|
-
// eslint-disable-next-line camelcase
|
2
|
-
import { murmurhash2_32_gc } from './hash32';
|
3
|
-
export const generateReactNativeWebId = (key, value) => {
|
4
|
-
const hashedString = murmurhash2_32_gc(key + value, 1).toString(36);
|
5
|
-
return process.env.NODE_ENV !== 'production' ? `r-${key}-${hashedString}` : `r-${hashedString}`;
|
6
|
-
};
|
7
|
-
//# sourceMappingURL=generateId.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"names":["murmurhash2_32_gc","generateReactNativeWebId","key","value","hashedString","toString","process","env","NODE_ENV"],"sourceRoot":"../../../src","sources":["utils/generateId.ts"],"mappings":"AAAA;AACA,SAASA,iBAAiB,QAAQ,UAAU;AAE5C,OAAO,MAAMC,wBAAwB,GAAGA,CAACC,GAAW,EAAEC,KAAa,KAAa;EAC5E,MAAMC,YAAY,GAAGJ,iBAAiB,CAACE,GAAG,GAAGC,KAAK,EAAE,CAAC,CAAC,CAACE,QAAQ,CAAC,EAAE,CAAC;EAEnE,OAAOC,OAAO,CAACC,GAAG,CAACC,QAAQ,KAAK,YAAY,GACtC,KAAKN,GAAG,IAAIE,YAAY,EAAE,GAC1B,KAAKA,YAAY,EAAE;AAC7B,CAAC","ignoreList":[]}
|
@@ -1,36 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
Authors: Gary Court and Austin Appleby
|
3
|
-
Compatible with React Native Web
|
4
|
-
https://github.com/necolas/react-native-web/blob/master/packages/react-native-web/src/exports/StyleSheet/compiler/hash.js#L65
|
5
|
-
*/
|
6
|
-
export const murmurhash2_32_gc = (str, seed) => {
|
7
|
-
let l = str.length;
|
8
|
-
let h = seed ^ l;
|
9
|
-
let i = 0;
|
10
|
-
let k;
|
11
|
-
while (l >= 4) {
|
12
|
-
k = str.charCodeAt(i) & 0xff | (str.charCodeAt(++i) & 0xff) << 8 | (str.charCodeAt(++i) & 0xff) << 16 | (str.charCodeAt(++i) & 0xff) << 24;
|
13
|
-
k = (k & 0xffff) * 0x5bd1e995 + (((k >>> 16) * 0x5bd1e995 & 0xffff) << 16);
|
14
|
-
k ^= k >>> 24;
|
15
|
-
k = (k & 0xffff) * 0x5bd1e995 + (((k >>> 16) * 0x5bd1e995 & 0xffff) << 16);
|
16
|
-
h = (h & 0xffff) * 0x5bd1e995 + (((h >>> 16) * 0x5bd1e995 & 0xffff) << 16) ^ k;
|
17
|
-
l -= 4;
|
18
|
-
++i;
|
19
|
-
}
|
20
|
-
switch (l) {
|
21
|
-
// @ts-ignore
|
22
|
-
case 3:
|
23
|
-
h ^= (str.charCodeAt(i + 2) & 0xff) << 16;
|
24
|
-
// @ts-ignore
|
25
|
-
case 2:
|
26
|
-
h ^= (str.charCodeAt(i + 1) & 0xff) << 8;
|
27
|
-
case 1:
|
28
|
-
h ^= str.charCodeAt(i) & 0xff;
|
29
|
-
h = (h & 0xffff) * 0x5bd1e995 + (((h >>> 16) * 0x5bd1e995 & 0xffff) << 16);
|
30
|
-
}
|
31
|
-
h ^= h >>> 13;
|
32
|
-
h = (h & 0xffff) * 0x5bd1e995 + (((h >>> 16) * 0x5bd1e995 & 0xffff) << 16);
|
33
|
-
h ^= h >>> 15;
|
34
|
-
return h >>> 0;
|
35
|
-
};
|
36
|
-
//# sourceMappingURL=hash32.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"names":["murmurhash2_32_gc","str","seed","l","length","h","i","k","charCodeAt"],"sourceRoot":"../../../src","sources":["utils/hash32.ts"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMA,iBAAiB,GAAGA,CAACC,GAAW,EAAEC,IAAY,KAAK;EAC5D,IAAIC,CAAC,GAAGF,GAAG,CAACG,MAAM;EAClB,IAAIC,CAAC,GAAGH,IAAI,GAAGC,CAAC;EAChB,IAAIG,CAAC,GAAG,CAAC;EACT,IAAIC,CAAC;EAEL,OAAOJ,CAAC,IAAI,CAAC,EAAE;IACXI,CAAC,GACAN,GAAG,CAACO,UAAU,CAACF,C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AE,CAAC;EAClD;EAEAA,CAAC,IAAIA,CAAC,KAAK,EAAE;EACbA,CAAC,GAAG,CAACA,CAAC,GAAG,MAAM,IAAI,UAAU,IAAI,CAAE,CAACA,CAAC,KAAK,EAAE,IAAI,UAAU,GAAI,MAAM,KAAK,EAAE,CAAC;EAC5EA,CAAC,IAAIA,CAAC,KAAK,EAAE;EAEb,OAAOA,CAAC,KAAK,CAAC;AAClB,CAAC","ignoreList":[]}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
export { mq } from './mq';
|
2
|
-
export { getKeyForUnistylesMediaQuery, isWithinTheWidthAndHeight, isValidMq, parseMq, isUnistylesMq } from './mqParser';
|
3
|
-
export { getValueForBreakpoint } from './breakpoints';
|
4
|
-
export { proxifyFunction, parseStyle, isPlatformColor } from './styles';
|
5
|
-
export { withPlugins } from './withPlugins';
|
6
|
-
export { generateReactNativeWebId } from './generateId';
|
7
|
-
export { parseColor } from './parseColor';
|
8
|
-
//# sourceMappingURL=index.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"names":["mq","getKeyForUnistylesMediaQuery","isWithinTheWidthAndHeight","isValidMq","parseMq","isUnistylesMq","getValueForBreakpoint","proxifyFunction","parseStyle","isPlatformColor","withPlugins","generateReactNativeWebId","parseColor"],"sourceRoot":"../../../src","sources":["utils/index.ts"],"mappings":"AAAA,SAASA,EAAE,QAAQ,MAAM;AAEzB,SAASC,4BAA4B,EAAEC,yBAAyB,EAAEC,SAAS,EAAEC,OAAO,EAAEC,aAAa,QAAQ,YAAY;AACvH,SAASC,qBAAqB,QAAQ,eAAe;AACrD,SAASC,eAAe,EAAEC,UAAU,EAAEC,eAAe,QAAQ,UAAU;AACvE,SAASC,WAAW,QAAQ,eAAe;AAC3C,SAASC,wBAAwB,QAAQ,cAAc;AACvD,SAASC,UAAU,QAAQ,cAAc","ignoreList":[]}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"names":["unistyles","getMQValue","value","registry","breakpoints","mq","only","width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AQ,KACxD,MAAMT,UAAU,CAACO,IAAI,CAAC,KAAKP,UAAU,CAACQ,IAAI,CAAC,OAAOR,UAAU,CAACW,IAAI,CAAC,KAAKX,UAAU,CAACY,IAAI,CAAC;IAChG;EACJ,CAAC;AACL,CAAC","ignoreList":[]}
|
@@ -1,78 +0,0 @@
|
|
1
|
-
const IS_UNISTYLES_REGEX = /:([hw])\[(\d+)(?:,\s*(\d+|Infinity))?]/;
|
2
|
-
const UNISTYLES_WIDTH_REGEX = /:(w)\[(\d+)(?:,\s*(\d+|Infinity))?]/;
|
3
|
-
const UNISTYLES_HEIGHT_REGEX = /:(h)\[(\d+)(?:,\s*(\d+|Infinity))?]/;
|
4
|
-
export const parseMq = mq => {
|
5
|
-
const [, width, fromW, toW] = UNISTYLES_WIDTH_REGEX.exec(mq) || [];
|
6
|
-
const [, height, fromH, toH] = UNISTYLES_HEIGHT_REGEX.exec(mq) || [];
|
7
|
-
return {
|
8
|
-
width: width ? {
|
9
|
-
from: Number(fromW),
|
10
|
-
to: Number(toW)
|
11
|
-
} : undefined,
|
12
|
-
height: height ? {
|
13
|
-
from: Number(fromH),
|
14
|
-
to: Number(toH)
|
15
|
-
} : undefined
|
16
|
-
};
|
17
|
-
};
|
18
|
-
export const isUnistylesMq = mq => IS_UNISTYLES_REGEX.test(mq);
|
19
|
-
export const isValidMq = parsedMq => {
|
20
|
-
const {
|
21
|
-
width,
|
22
|
-
height
|
23
|
-
} = parsedMq;
|
24
|
-
if (width && height) {
|
25
|
-
return width.from <= width.to && height.from <= height.to;
|
26
|
-
}
|
27
|
-
if (width) {
|
28
|
-
return width.from <= width.to;
|
29
|
-
}
|
30
|
-
if (height) {
|
31
|
-
return height.from <= height.to;
|
32
|
-
}
|
33
|
-
return false;
|
34
|
-
};
|
35
|
-
export const isWithinTheWidthAndHeight = (parsedMq, screenSize) => {
|
36
|
-
const {
|
37
|
-
width,
|
38
|
-
height
|
39
|
-
} = parsedMq;
|
40
|
-
if (width && height) {
|
41
|
-
return isWithinTheWidth(width, screenSize.width) && isWithinTheHeight(height, screenSize.height);
|
42
|
-
}
|
43
|
-
if (width) {
|
44
|
-
return isWithinTheWidth(width, screenSize.width);
|
45
|
-
}
|
46
|
-
if (height) {
|
47
|
-
return isWithinTheHeight(height, screenSize.height);
|
48
|
-
}
|
49
|
-
return false;
|
50
|
-
};
|
51
|
-
const isWithinTheWidth = (width, screenWidth) => {
|
52
|
-
const {
|
53
|
-
from,
|
54
|
-
to
|
55
|
-
} = width;
|
56
|
-
return screenWidth >= from && screenWidth <= to;
|
57
|
-
};
|
58
|
-
const isWithinTheHeight = (height, screenHeight) => {
|
59
|
-
const {
|
60
|
-
from,
|
61
|
-
to
|
62
|
-
} = height;
|
63
|
-
return screenHeight >= from && screenHeight <= to;
|
64
|
-
};
|
65
|
-
export const getKeyForUnistylesMediaQuery = (mediaQueries, screenSize) => {
|
66
|
-
const mq = mediaQueries.find(([key]) => {
|
67
|
-
if (!isUnistylesMq(key)) {
|
68
|
-
return false;
|
69
|
-
}
|
70
|
-
const parsedMq = parseMq(key);
|
71
|
-
if (!isValidMq(parsedMq)) {
|
72
|
-
return false;
|
73
|
-
}
|
74
|
-
return isWithinTheWidthAndHeight(parsedMq, screenSize);
|
75
|
-
});
|
76
|
-
return mq?.at(0);
|
77
|
-
};
|
78
|
-
//# sourceMappingURL=mqParser.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"names":["IS_UNISTYLES_REGEX","UNISTYLES_WIDTH_REGEX","UNISTYLES_HEIGHT_REGEX","parseMq","mq","width","fromW","toW","exec","height","fromH","toH","from","Number","to","undefined","isUnistylesMq","test","isValidMq","parsedMq","isWithinTheWidthAndHeight","screenSize","isWithinTheWidth","isWithinTheHeight","screenWidth","screenHeight","getKeyForUnistylesMediaQuery","mediaQueries","find","key","at"],"sourceRoot":"../../../src","sources":["utils/mqParser.ts"],"mappings":"AAEA,MAAMA,kBAAkB,GAAG,wCAAwC;AACnE,MAAMC,qBAAqB,GAA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AAOC,yBAAyB,CAACD,QAAQ,EAAEE,UAAU,CAAC;EAC1D,CAAC,CAAC;EAEF,OAAOjB,EAAE,EAAE0B,EAAE,CAAC,CAAC,CAAC;AACpB,CAAC","ignoreList":[]}
|
@@ -1,28 +0,0 @@
|
|
1
|
-
import { isIOS } from '../common';
|
2
|
-
const parseAlpha = alpha => {
|
3
|
-
if (alpha > 1 || alpha < 0) {
|
4
|
-
return 1;
|
5
|
-
}
|
6
|
-
return alpha;
|
7
|
-
};
|
8
|
-
export const parseColor = (color, alpha = 1) => {
|
9
|
-
if (!color) {
|
10
|
-
return ['', 1];
|
11
|
-
}
|
12
|
-
|
13
|
-
// ignore alpha for 8 digit hex colors
|
14
|
-
if (color.startsWith('#') && color.length === 9) {
|
15
|
-
return [color, 1];
|
16
|
-
}
|
17
|
-
if (color.startsWith('#') && color.length === 7) {
|
18
|
-
return [color, parseAlpha(alpha)];
|
19
|
-
}
|
20
|
-
if (isIOS && color === 'transparent') {
|
21
|
-
return ['#000000', 0];
|
22
|
-
}
|
23
|
-
|
24
|
-
// todo remove this with Unistyles 3.0
|
25
|
-
// named colors
|
26
|
-
return [color, 1];
|
27
|
-
};
|
28
|
-
//# sourceMappingURL=parseColor.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"names":["isIOS","parseAlpha","alpha","parseColor","color","startsWith","length"],"sourceRoot":"../../../src","sources":["utils/parseColor.ts"],"mappings":"AACA,SAASA,KAAK,QAAQ,WAAW;AAEjC,MAAMC,UAAU,GAAIC,KAAa,IAAK;EAClC,IAAIA,KAAK,GAAG,CAAC,IAAIA,KAAK,GAAG,CAAC,EAAE;IACxB,OAAO,CAAC;EACZ;EAEA,OAAOA,KAAK;AAChB,CAAC;AAED,OAAO,MAAMC,UAAU,GAAGA,CAACC,KAAa,EAAEF,KAAa,GAAG,CAAC,KAAuB;EAC9E,IAAI,CAACE,KAAK,EAAE;IACR,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC;EAClB;;EAEA;EACA,IAAIA,KAAK,CAACC,UAAU,CAAC,GAAG,CAAC,IAAID,KAAK,CAACE,MAAM,KAAK,CAAC,EAAE;IAC7C,OAAO,CAACF,KAAK,EAAE,CAAC,CAAC;EACrB;EAEA,IAAIA,KAAK,CAACC,UAAU,CAAC,GAAG,CAAC,IAAID,KAAK,CAACE,MAAM,KAAK,CAAC,EAAE;IAC7C,OAAO,CAACF,KAAK,EAAEH,UAAU,CAACC,KAAK,CAAC,CAAC;EACrC;EAEA,IAAIF,KAAK,IAAII,KAAK,KAAK,aAAa,EAAE;IAClC,OAAO,CAAC,SAAS,EAAE,CAAC,CAAC;EACzB;;EAEA;EACA;EACA,OAAO,CAACA,KAAK,EAAE,CAAC,CAAC;AACrB,CAAC","ignoreList":[]}
|
@@ -1,64 +0,0 @@
|
|
1
|
-
import { getValueForBreakpoint } from './breakpoints';
|
2
|
-
import { isAndroid, isIOS } from '../common';
|
3
|
-
import { withPlugins } from './withPlugins';
|
4
|
-
export const proxifyFunction = (key, fn, variant) => new Proxy(fn, {
|
5
|
-
apply: (target, thisArg, argumentsList) => withPlugins(key, parseStyle(target.apply(thisArg, argumentsList), variant))
|
6
|
-
});
|
7
|
-
export const isPlatformColor = value => {
|
8
|
-
if (isIOS) {
|
9
|
-
return 'semantic' in value && typeof value.semantic === 'object';
|
10
|
-
}
|
11
|
-
return isAndroid && 'resource_paths' in value && typeof value.resource_paths === 'object';
|
12
|
-
};
|
13
|
-
export const parseStyle = (style, variant = {}, parseMediaQueries = true) => Object.entries(style || {}).reduce((acc, [key, value]) => {
|
14
|
-
// nested objects
|
15
|
-
if (key === 'shadowOffset' || key === 'textShadowOffset') {
|
16
|
-
acc[key] = parseStyle(value, variant);
|
17
|
-
return acc;
|
18
|
-
}
|
19
|
-
|
20
|
-
// transforms
|
21
|
-
if (key === 'transform' && Array.isArray(value)) {
|
22
|
-
acc[key] = value.map(value => parseStyle(value, variant)).filter(value => {
|
23
|
-
// remove undefined values
|
24
|
-
if (typeof value === 'object') {
|
25
|
-
return Object.values(value).at(0) !== undefined;
|
26
|
-
}
|
27
|
-
return true;
|
28
|
-
});
|
29
|
-
return acc;
|
30
|
-
}
|
31
|
-
if (key === 'fontVariant' && Array.isArray(value)) {
|
32
|
-
acc[key] = value;
|
33
|
-
return acc;
|
34
|
-
}
|
35
|
-
|
36
|
-
// values or platform colors
|
37
|
-
if (typeof value !== 'object' || isPlatformColor(value)) {
|
38
|
-
acc[key] = value;
|
39
|
-
return acc;
|
40
|
-
}
|
41
|
-
if (key === 'variants') {
|
42
|
-
return {
|
43
|
-
...acc,
|
44
|
-
...Object.keys(value).reduce((acc, key) => ({
|
45
|
-
...acc,
|
46
|
-
// this will parse the styles of the selected variant (or default if it is undefined), if selected variant has no styles then it will fallback to default styles
|
47
|
-
...parseStyle(value[key][variant[key]?.toString() || 'default'] ?? value[key].default ?? {})
|
48
|
-
}), {})
|
49
|
-
};
|
50
|
-
}
|
51
|
-
|
52
|
-
// don't parse media queries and breakpoints
|
53
|
-
if (!parseMediaQueries) {
|
54
|
-
return {
|
55
|
-
...acc,
|
56
|
-
[key]: value
|
57
|
-
};
|
58
|
-
}
|
59
|
-
return {
|
60
|
-
...acc,
|
61
|
-
[key]: getValueForBreakpoint(value)
|
62
|
-
};
|
63
|
-
}, {});
|
64
|
-
//# sourceMappingURL=styles.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"names":["getValueForBreakpoint","isAndroid","isIOS","withPlugins","proxifyFunction","key","fn","variant","Proxy","apply","target","thisArg","argumentsList","parseStyle","isPlatformColor","value","semantic","resource_paths","style","parseMediaQueries","Object","entries","reduce","acc","Array","isArray","map","filter","values","at","undefined","keys","toString","default"],"sourceRoot":"../../../src","sources":["utils/styles.ts"],"mappings":"AACA,SAASA,qBAAqB,QAAQ,eAAe;AACrD,SAASC,SAAS,EAAEC,KAAK,QAAQ,WAAW;AAC5C,SAASC,WAAW,QAAQ,eAAe;AAE3C,OAAO,MAAMC,eAAe,GAAGA,CAC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style) => unistyles.registry.plugins.reduce((acc, plugin) => {
|
3
|
-
if (plugin.onParsedStyle) {
|
4
|
-
return plugin.onParsedStyle(key, acc, unistyles.runtime);
|
5
|
-
}
|
6
|
-
return acc;
|
7
|
-
}, style);
|
8
|
-
//# sourceMappingURL=withPlugins.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"names":["unistyles","withPlugins","key","style","registry","plugins","reduce","acc","plugin","onParsedStyle","runtime"],"sourceRoot":"../../../src","sources":["utils/withPlugins.ts"],"mappings":"AACA,SAASA,SAAS,QAAQ,SAAS;AAEnC,OAAO,MAAMC,WAAW,GAAGA,CACvBC,GAAW,EACXC,KAAc,KACbH,SAAS,CAACI,QAAQ,CAACC,OAAO,CAACC,MAAM,CAAC,CAACC,GAAG,EAAEC,MAAM,KAAK;EACpD,IAAIA,MAAM,CAACC,aAAa,EAAE;IACtB,OAAOD,MAAM,CAACC,aAAa,CAACP,GAAG,EAAEK,GAAG,EAAEP,SAAS,CAACU,OAAO,CAAC;EAC5D;EAEA,OAAOH,GAAG;AACd,CAAC,EAAEJ,KAAK,CAAC","ignoreList":[]}
|
@@ -1,57 +0,0 @@
|
|
1
|
-
import type { UnistylesBridge, UnistylesConfig, UnistylesPlugin } from '../types';
|
2
|
-
import type { UnistylesBreakpoints, UnistylesThemes } from '../global';
|
3
|
-
export declare class UnistyleRegistry {
|
4
|
-
private unistylesBridge;
|
5
|
-
config: UnistylesConfig;
|
6
|
-
plugins: Array<UnistylesPlugin>;
|
7
|
-
themeNames: Array<keyof UnistylesThemes>;
|
8
|
-
themes: UnistylesThemes;
|
9
|
-
breakpoints: UnistylesBreakpoints;
|
10
|
-
sortedBreakpointPairs: Array<[keyof UnistylesBreakpoints, UnistylesBreakpoints[keyof UnistylesBreakpoints]]>;
|
11
|
-
constructor(unistylesBridge: UnistylesBridge);
|
12
|
-
addThemes: (themes: UnistylesThemes) => {
|
13
|
-
addBreakpoints: (breakpoints: UnistylesBreakpoints) => {
|
14
|
-
addThemes: any;
|
15
|
-
addConfig: (config: UnistylesConfig) => {
|
16
|
-
addBreakpoints: any;
|
17
|
-
addThemes: any;
|
18
|
-
};
|
19
|
-
};
|
20
|
-
addConfig: (config: UnistylesConfig) => {
|
21
|
-
addBreakpoints: any;
|
22
|
-
addThemes: any;
|
23
|
-
};
|
24
|
-
};
|
25
|
-
addBreakpoints: (breakpoints: UnistylesBreakpoints) => {
|
26
|
-
addThemes: (themes: UnistylesThemes) => {
|
27
|
-
addBreakpoints: any;
|
28
|
-
addConfig: (config: UnistylesConfig) => {
|
29
|
-
addBreakpoints: any;
|
30
|
-
addThemes: any;
|
31
|
-
};
|
32
|
-
};
|
33
|
-
addConfig: (config: UnistylesConfig) => {
|
34
|
-
addBreakpoints: any;
|
35
|
-
addThemes: any;
|
36
|
-
};
|
37
|
-
};
|
38
|
-
addConfig: (config: UnistylesConfig) => {
|
39
|
-
addBreakpoints: (breakpoints: UnistylesBreakpoints) => {
|
40
|
-
addThemes: (themes: UnistylesThemes) => {
|
41
|
-
addBreakpoints: any;
|
42
|
-
addConfig: any;
|
43
|
-
};
|
44
|
-
addConfig: any;
|
45
|
-
};
|
46
|
-
addThemes: (themes: UnistylesThemes) => {
|
47
|
-
addBreakpoints: any;
|
48
|
-
addConfig: any;
|
49
|
-
};
|
50
|
-
};
|
51
|
-
getTheme: (forName: keyof UnistylesThemes) => never;
|
52
|
-
addPlugin: (plugin: UnistylesPlugin, notify?: boolean) => void;
|
53
|
-
removePlugin: (plugin: UnistylesPlugin) => void;
|
54
|
-
updateTheme: (name: keyof UnistylesThemes, theme: UnistylesThemes[keyof UnistylesThemes]) => void;
|
55
|
-
hasTheme: (name: keyof UnistylesThemes) => boolean;
|
56
|
-
}
|
57
|
-
//# sourceMappingURL=UnistyleRegistry.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"UnistyleRegistry.d.ts","sourceRoot":"","sources":["../../../../src/core/UnistyleRegistry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AACjF,OAAO,KAAK,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,WAAW,CAAA;AAItE,qBAAa,gBAAgB;IAUb,OAAO,CAAC,eAAe;IAT5B,MAAM,EAAE,eAAe,CAAK;IAC5B,OAAO,EAAE,KAAK,CAAC,eAAe,CAAC,CAE9B;IACD,UAAU,EAAE,KAAK,CAAC,MAAM,eAAe,CAAC,CAAK;IAC7C,MAAM,EAAE,eAAe,CAAwB;IAC/C,WAAW,EAAE,oBAAoB,CAA6B;IAC9D,qBAAqB,EAAE,KAAK,CAAC,CAAC,MAAM,oBAAoB,EAAE,oBAAoB,CAAC,MAAM,oBAAoB,CAAC,CAAC,CAAC,CAAK;gBAEpG,eAAe,EAAE,eAAe;IAE7C,SAAS,WAAY,eAAe;sCAcL,oBAAoB;;gCAW9B,eAAe;;;;;4BAAf,eAAe;;;;MAb1C;IAEM,cAAc,gBAAiB,oBAAoB;4BAd9B,eAAe;;gCAyBf,eAAe;;;;;4BAAf,eAAe;;;;MAF1C;IAEM,SAAS,WAAY,eAAe;sCAXL,oBAAoB;gCAd9B,eAAe;;;;;;4BAAf,eAAe;;;;MAyD1C;IAEM,QAAQ,YAAa,MAAM,eAAe,WAchD;IAEM,SAAS,WAAY,eAAe,WAAU,OAAO,UAiB3D;IAEM,YAAY,WAAY,eAAe,UAO7C;IAEM,WAAW,SAAU,MAAM,eAAe,SAAS,eAAe,CAAC,MAAM,eAAe,CAAC,UAM/F;IAEM,QAAQ,SAAU,MAAM,eAAe,aAAwB;CACzE"}
|
@@ -1,13 +0,0 @@
|
|
1
|
-
import { UnistylesRuntime } from './UnistylesRuntime';
|
2
|
-
import { UnistyleRegistry } from './UnistyleRegistry';
|
3
|
-
declare class Unistyles {
|
4
|
-
private _runtime;
|
5
|
-
private _registry;
|
6
|
-
private _bridge;
|
7
|
-
constructor();
|
8
|
-
get registry(): UnistyleRegistry;
|
9
|
-
get runtime(): UnistylesRuntime;
|
10
|
-
}
|
11
|
-
export declare const unistyles: Unistyles;
|
12
|
-
export {};
|
13
|
-
//# sourceMappingURL=Unistyles.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Unistyles.d.ts","sourceRoot":"","sources":["../../../../src/core/Unistyles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAKrD,cAAM,SAAS;IACX,OAAO,CAAC,QAAQ,CAAkB;IAClC,OAAO,CAAC,SAAS,CAAkB;IACnC,OAAO,CAAC,OAAO,CAAiB;;IAwBhC,IAAW,QAAQ,qBAElB;IAED,IAAW,OAAO,qBAEjB;CACJ;AAED,eAAO,MAAM,SAAS,WAAkB,CAAA"}
|
@@ -1,21 +0,0 @@
|
|
1
|
-
export declare class UnistylesBridgeWeb {
|
2
|
-
#private;
|
3
|
-
constructor();
|
4
|
-
install(): boolean;
|
5
|
-
private useTheme;
|
6
|
-
private updateTheme;
|
7
|
-
private useBreakpoints;
|
8
|
-
private useAdaptiveThemes;
|
9
|
-
private addPlugin;
|
10
|
-
private removePlugin;
|
11
|
-
private getTheme;
|
12
|
-
private setupListeners;
|
13
|
-
private getBreakpointFromScreenWidth;
|
14
|
-
private getPreferredColorScheme;
|
15
|
-
private setRootViewBackgroundColor;
|
16
|
-
private emitPluginChange;
|
17
|
-
private emitThemeChange;
|
18
|
-
private emitLayoutChange;
|
19
|
-
}
|
20
|
-
export declare const UnistylesModule: UnistylesBridgeWeb;
|
21
|
-
//# sourceMappingURL=UnistylesModule.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"UnistylesModule.d.ts","sourceRoot":"","sources":["../../../../src/core/UnistylesModule.ts"],"names":[],"mappings":"AAMA,qBAAa,kBAAkB;;;IAgDpB,OAAO;IAyFd,OAAO,CAAC,QAAQ;IAKhB,OAAO,CAAC,WAAW;IAUnB,OAAO,CAAC,cAAc;IAWtB,OAAO,CAAC,iBAAiB;IAazB,OAAO,CAAC,SAAS;IAQjB,OAAO,CAAC,YAAY;IAKpB,OAAO,CAAC,QAAQ;IAQhB,OAAO,CAAC,cAAc;IAyCtB,OAAO,CAAC,4BAA4B;IAgBpC,OAAO,CAAC,uBAAuB;IAQ/B,OAAO,CAAC,0BAA0B;IAIlC,OAAO,CAAC,gBAAgB;IAMxB,OAAO,CAAC,eAAe;IASvB,OAAO,CAAC,gBAAgB;CAe3B;AAED,eAAO,MAAM,eAAe,oBAA2B,CAAA"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"UnistylesModule.native.d.ts","sourceRoot":"","sources":["../../../../src/core/UnistylesModule.native.ts"],"names":[],"mappings":"AAEA,KAAK,qBAAqB,GAAG;IACzB,OAAO,IAAI,OAAO,CAAA;CACrB,CAAA;AAED,eAAO,MAAM,eAAe,uBAAoD,CAAA"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"UnistylesModule.windows.d.ts","sourceRoot":"","sources":["../../../../src/core/UnistylesModule.windows.ts"],"names":[],"mappings":"AAEA,KAAK,qBAAqB,GAAG;IACzB,OAAO,IAAI,OAAO,CAAA;CACrB,CAAA;AAID,eAAO,MAAM,eAAe,uBAAuG,CAAA"}
|
@@ -1,179 +0,0 @@
|
|
1
|
-
import type { Color, UnistylesBridge, UnistylesPlugin } from '../types';
|
2
|
-
import type { UnistylesThemes } from '../global';
|
3
|
-
import type { UnistyleRegistry } from './UnistyleRegistry';
|
4
|
-
/**
|
5
|
-
* Utility to interact with the Unistyles during runtime
|
6
|
-
*/
|
7
|
-
export declare class UnistylesRuntime {
|
8
|
-
private unistylesBridge;
|
9
|
-
private unistylesRegistry;
|
10
|
-
constructor(unistylesBridge: UnistylesBridge, unistylesRegistry: UnistyleRegistry);
|
11
|
-
/**
|
12
|
-
* Get the mini runtime injected to creteStyleSheet
|
13
|
-
* @returns - The mini runtime
|
14
|
-
*/
|
15
|
-
get miniRuntime(): {
|
16
|
-
contentSizeCategory: import("../common").IOSContentSizeCategory | import("../common").AndroidContentSizeCategory;
|
17
|
-
breakpoint: keyof import("../global").UnistylesBreakpoints;
|
18
|
-
screen: {
|
19
|
-
width: number;
|
20
|
-
height: number;
|
21
|
-
};
|
22
|
-
insets: import("../types").ScreenInsets;
|
23
|
-
statusBar: {
|
24
|
-
width: number;
|
25
|
-
height: number;
|
26
|
-
};
|
27
|
-
navigationBar: {
|
28
|
-
width: number;
|
29
|
-
height: number;
|
30
|
-
};
|
31
|
-
orientation: "landscape" | "portrait";
|
32
|
-
pixelRatio: number;
|
33
|
-
fontScale: number;
|
34
|
-
hairlineWidth: number;
|
35
|
-
rtl: boolean;
|
36
|
-
};
|
37
|
-
/**
|
38
|
-
* Get the current color scheme
|
39
|
-
* @returns - The current color scheme
|
40
|
-
*/
|
41
|
-
get colorScheme(): import("../types").ColorSchemeName;
|
42
|
-
/**
|
43
|
-
* Get the layout direction
|
44
|
-
* @returns - Boolean indicating if the layout direction is RTL
|
45
|
-
*/
|
46
|
-
get rtl(): boolean;
|
47
|
-
/**
|
48
|
-
* Get info about adaptive themes
|
49
|
-
* @returns - boolean indicating if the adaptive themes are enabled
|
50
|
-
*/
|
51
|
-
get hasAdaptiveThemes(): boolean;
|
52
|
-
/**
|
53
|
-
* Get the current theme name
|
54
|
-
* @returns - The current theme name
|
55
|
-
*/
|
56
|
-
get themeName(): never;
|
57
|
-
/**
|
58
|
-
* Get the current content size category
|
59
|
-
* @returns - The current content size category
|
60
|
-
*/
|
61
|
-
get contentSizeCategory(): import("../common").IOSContentSizeCategory | import("../common").AndroidContentSizeCategory;
|
62
|
-
/**
|
63
|
-
* Get the current breakpoint based on device size
|
64
|
-
* @returns - The current breakpoint
|
65
|
-
*/
|
66
|
-
get breakpoint(): keyof import("../global").UnistylesBreakpoints;
|
67
|
-
/**
|
68
|
-
* Get registered breakpoints with UnitylesRegistry
|
69
|
-
* @returns - The registered breakpoints
|
70
|
-
*/
|
71
|
-
get breakpoints(): import("../global").UnistylesBreakpoints;
|
72
|
-
/**
|
73
|
-
* Get the names of currently enabled plugins
|
74
|
-
* @deprecated - Plugins will be removed in the next major release
|
75
|
-
* @returns - The names of currently enabled plugins
|
76
|
-
*/
|
77
|
-
get enabledPlugins(): string[];
|
78
|
-
/**
|
79
|
-
* Get the screen size
|
80
|
-
* @returns - The screen size { width, height }
|
81
|
-
*/
|
82
|
-
get screen(): {
|
83
|
-
width: number;
|
84
|
-
height: number;
|
85
|
-
};
|
86
|
-
/**
|
87
|
-
* Get the safe area insets
|
88
|
-
* @returns - The safe area insets { top, bottom, left, right }
|
89
|
-
*/
|
90
|
-
get insets(): import("../types").ScreenInsets;
|
91
|
-
/**
|
92
|
-
* Get the status bar info
|
93
|
-
* @returns - The status bar api { width, height, setColor, setHidden }
|
94
|
-
*/
|
95
|
-
get statusBar(): {
|
96
|
-
width: number;
|
97
|
-
height: number;
|
98
|
-
setColor: (color?: Color, alpha?: number) => void;
|
99
|
-
setHidden: (hidden: boolean) => void;
|
100
|
-
};
|
101
|
-
/**
|
102
|
-
* Get the navigation bar info (Android)
|
103
|
-
* @returns - The navigation bar api { width, height, setColor, setHidden }
|
104
|
-
*/
|
105
|
-
get navigationBar(): {
|
106
|
-
width: number;
|
107
|
-
height: number;
|
108
|
-
setColor: (color?: Color, alpha?: number) => void;
|
109
|
-
setHidden: (hidden: boolean) => void;
|
110
|
-
};
|
111
|
-
/**
|
112
|
-
* Get the screen orientation
|
113
|
-
* @returns - The screen orientation
|
114
|
-
*/
|
115
|
-
get orientation(): "landscape" | "portrait";
|
116
|
-
/**
|
117
|
-
* Get the pixel ratio
|
118
|
-
* @returns - The pixel ratio
|
119
|
-
*/
|
120
|
-
get pixelRatio(): number;
|
121
|
-
/**
|
122
|
-
* Get the font scale
|
123
|
-
* @returns - The font scale
|
124
|
-
*/
|
125
|
-
get fontScale(): number;
|
126
|
-
/**
|
127
|
-
* Get the hairline width
|
128
|
-
* @returns - The thinnest width of the platform
|
129
|
-
*/
|
130
|
-
get hairlineWidth(): number;
|
131
|
-
/**
|
132
|
-
* Get theme by name
|
133
|
-
* @param themeName - The name of the theme to get or current theme if not specified
|
134
|
-
* @returns - The theme
|
135
|
-
*/
|
136
|
-
getTheme(themeName?: keyof UnistylesThemes): never;
|
137
|
-
/**
|
138
|
-
* Get the immersive mode (both status bar and navigation bar hidden (Android))
|
139
|
-
* @param isEnabled
|
140
|
-
*/
|
141
|
-
setImmersiveMode(isEnabled: boolean): void;
|
142
|
-
/**
|
143
|
-
* Set the root view background color
|
144
|
-
* @param color - The color to set
|
145
|
-
* @param alpha - Color alpha - default is 1
|
146
|
-
*/
|
147
|
-
setRootViewBackgroundColor: (color?: Color, alpha?: number) => void;
|
148
|
-
/**
|
149
|
-
* Switch to a different theme
|
150
|
-
* @param name - The name of the theme to switch to
|
151
|
-
* @returns - boolean indicating if the theme was switched
|
152
|
-
*/
|
153
|
-
setTheme: (name: keyof UnistylesThemes) => true | undefined;
|
154
|
-
/**
|
155
|
-
* Update the theme at runtime
|
156
|
-
* If current theme is updated, the changes will be applied immediately
|
157
|
-
* @param name - The name of the theme to update
|
158
|
-
* @param updater - Function that receives the current theme and expect modified theme to be returned
|
159
|
-
*/
|
160
|
-
updateTheme: (name: keyof UnistylesThemes, updater: (theme: UnistylesThemes[keyof UnistylesThemes]) => UnistylesThemes[keyof UnistylesThemes]) => void;
|
161
|
-
/**
|
162
|
-
* Enable or disable adaptive themes
|
163
|
-
* @param enable - boolean indicating if adaptive themes should be enabled
|
164
|
-
*/
|
165
|
-
setAdaptiveThemes: (enable: boolean) => void;
|
166
|
-
/**
|
167
|
-
* Enable a plugin
|
168
|
-
* @deprecated - Plugins will be removed in the next major release
|
169
|
-
* @param plugin - Plugin that conforms to UnistylesPlugin interface
|
170
|
-
*/
|
171
|
-
addPlugin: (plugin: UnistylesPlugin) => void;
|
172
|
-
/**
|
173
|
-
* Disable a plugin
|
174
|
-
* @deprecated - Plugins will be removed in the next major release
|
175
|
-
* @param plugin - Plugin that conforms to UnistylesPlugin interface
|
176
|
-
*/
|
177
|
-
removePlugin: (plugin: UnistylesPlugin) => void;
|
178
|
-
}
|
179
|
-
//# sourceMappingURL=UnistylesRuntime.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"UnistylesRuntime.d.ts","sourceRoot":"","sources":["../../../../src/core/UnistylesRuntime.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AACvE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAA;AAChD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAG1D;;GAEG;AACH,qBAAa,gBAAgB;IACb,OAAO,CAAC,eAAe;IAAmB,OAAO,CAAC,iBAAiB;gBAA3D,eAAe,EAAE,eAAe,EAAU,iBAAiB,EAAE,gBAAgB;IAEjG;;;OAGG;IACH,IAAW,WAAW;;;;;;;;;;;;;;;;;;;;;MAoBrB;IAED;;;OAGG;IACH,IAAW,WAAW,uCAErB;IAED;;;OAGG;IACH,IAAW,GAAG,YAEb;IAED;;;OAGG;IACH,IAAW,iBAAiB,YAE3B;IAED;;;OAGG;IACH,IAAW,SAAS,UAEnB;IAED;;;OAGG;IACH,IAAW,mBAAmB,gGAE7B;IAED;;;OAGG;IACH,IAAW,UAAU,mDAEpB;IAED;;;OAGG;IACH,IAAW,WAAW,6CAErB;IAED;;;;OAIG;IACH,IAAW,cAAc,aAExB;IAED;;;OAGG;IACH,IAAW,MAAM;;;MAKhB;IAED;;;OAGG;IACH,IAAW,MAAM,oCAEhB;IAED;;;OAGG;IACH,IAAW,SAAS;;;2BAIO,KAAK,UAAU,MAAM;4BAKpB,OAAO;MAElC;IAED;;;OAGG;IACH,IAAW,aAAa;;;2BAIG,KAAK,UAAU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