@umber-style/react-native 0.2.0-alpha.0 → 0.3.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2 @@
1
+ import "./conditions.cjs";
2
+ import "./nativeTheme.cjs";
@@ -0,0 +1,3 @@
1
+ import "react";
2
+ import "@umber-style/core";
3
+ import "./conditions.mjs";
@@ -0,0 +1 @@
1
+ export {}
@@ -0,0 +1 @@
1
+ import "@umber-style/core";
@@ -1,3 +1,4 @@
1
+ import "./ThemeValue.cjs";
1
2
  import { NativeStyle, StyleOptions } from "./types.cjs";
2
3
  import "./nativeTheme.cjs";
3
4
  /**
@@ -1,4 +1,5 @@
1
1
  import "react";
2
+ import "./ThemeValue.mjs";
2
3
  import { NativeStyle, StyleOptions } from "./types.mjs";
3
4
  /**
4
5
  * Makes the styling of one theme shape for React Native, apart from the default one. The options are
@@ -38,7 +38,7 @@ function subscribeToWindow(listener) {
38
38
  listeners.add(listener);
39
39
  if (listeners.size === 1) {
40
40
  subscriptions.push(react_native.Dimensions.addEventListener("change", notify), react_native.Appearance.addChangeListener(notify), react_native.AccessibilityInfo.addEventListener("reduceMotionChanged", setReducedMotion));
41
- react_native.AccessibilityInfo.isReduceMotionEnabled().then(setReducedMotion);
41
+ react_native.AccessibilityInfo.isReduceMotionEnabled().then(setReducedMotion, () => void 0);
42
42
  }
43
43
  return () => {
44
44
  listeners.delete(listener);
@@ -38,7 +38,7 @@ function subscribeToWindow(listener) {
38
38
  listeners.add(listener);
39
39
  if (listeners.size === 1) {
40
40
  subscriptions.push(platformDimensions.addEventListener("change", notify), platformAppearance.addChangeListener(notify), platformAccessibility.addEventListener("reduceMotionChanged", setReducedMotion));
41
- platformAccessibility.isReduceMotionEnabled().then(setReducedMotion);
41
+ platformAccessibility.isReduceMotionEnabled().then(setReducedMotion, () => void 0);
42
42
  }
43
43
  return () => {
44
44
  listeners.delete(listener);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umber-style/react-native",
3
- "version": "0.2.0-alpha.0",
3
+ "version": "0.3.0-alpha.0",
4
4
  "description": "UmberStyle for React Native: the same names as the React binding, over the real theme values.",
5
5
  "keywords": [
6
6
  "styling",
@@ -41,7 +41,7 @@
41
41
  "access": "public"
42
42
  },
43
43
  "dependencies": {
44
- "@umber-style/core": "^0.2.0-alpha.1"
44
+ "@umber-style/core": "^0.3.0-alpha.0"
45
45
  },
46
46
  "peerDependencies": {
47
47
  "react": "^19.2.8",
@@ -68,8 +68,8 @@
68
68
  "tsdown": "^0.23.7",
69
69
  "typescript": "~7.0.2",
70
70
  "vitest": "^5.1.0",
71
- "@umber-style/is-prop-valid": "0.2.0-alpha.0",
72
- "@umber-style/eslint-config": "0.0.0"
71
+ "@umber-style/eslint-config": "0.0.0",
72
+ "@umber-style/is-prop-valid": "0.3.0-alpha.0"
73
73
  },
74
74
  "scripts": {
75
75
  "build": "tsdown",