react-native-unistyles 3.0.10 → 3.0.12

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 CHANGED
@@ -21,14 +21,14 @@ yarn add react-native-unistyles
21
21
  Install dependencies:
22
22
 
23
23
  ```shell
24
- yarn add react-native-edge-to-edge react-native-nitro-modules@0.28.0
24
+ yarn add react-native-edge-to-edge react-native-nitro-modules@0.29.4
25
25
  ```
26
26
 
27
27
  > To avoid unexpected behavior, always use a fixed version of `react-native-nitro-modules`
28
28
 
29
29
  | react-native-unistyles | react-native-nitro-modules |
30
30
  |------------------------|----------------------------|
31
- | 3.0.0 | 0.28.0 |
31
+ | 3.0.0 | 0.29.4 |
32
32
 
33
33
  Then follow [installation guides](https://unistyl.es/v3/start/getting-started) for your platform.
34
34
 
@@ -59,12 +59,6 @@ Then follow [installation guides](https://unistyl.es/v3/start/getting-started) f
59
59
  <a href="https://galaxies.dev">
60
60
  <img src="https://avatars.githubusercontent.com/u/118431096?s=200&v=4" height="70px" width="70px" alt="galaxies-dev" />
61
61
  </a>
62
- <a href="https://github.com/mobily">
63
- <img src="https://avatars.githubusercontent.com/u/1467712?v=4" height="70px" width="70px" alt="mobily" />
64
- </a>
65
- <a href="https://github.com/mwarger">
66
- <img src="https://avatars.githubusercontent.com/u/686823?v=4" height="70px" width="70px" alt="mwarger" />
67
- </a>
68
62
  <a href="https://github.com/biw">
69
63
  <img src="https://avatars.githubusercontent.com/u/6139501?v=4" height="70px" width="70px" alt="biw" />
70
64
  </a>
@@ -134,6 +128,12 @@ Then follow [installation guides](https://unistyl.es/v3/start/getting-started) f
134
128
  <a href="https://github.com/loopsware">
135
129
  <img src="https://avatars.githubusercontent.com/u/161434039?s=200&v=4" height="60px" width="60px" alt="loopsware" />
136
130
  </a>
131
+ <a href="https://github.com/mobily">
132
+ <img src="https://avatars.githubusercontent.com/u/1467712?v=4" height="60px" width="60px" alt="mobily" />
133
+ </a>
134
+ <a href="https://github.com/mwarger">
135
+ <img src="https://avatars.githubusercontent.com/u/686823?v=4" height="60px" width="60px" alt="mwarger" />
136
+ </a>
137
137
 
138
138
  ## Sponsor my work
139
139
 
@@ -27,7 +27,7 @@ void shadow::ShadowTreeManager::updateShadowTree(jsi::Runtime& rt) {
27
27
  std::make_unique<folly::dynamic>(props);
28
28
  }
29
29
 
30
- UIManagerBinding::getBinding(rt)->getUIManager().updateShadowTree(tagToProps);
30
+ UIManagerBinding::getBinding(rt)->getUIManager().updateShadowTree(std::move(tagToProps));
31
31
  #else
32
32
  const auto& shadowTreeRegistry = UIManagerBinding::getBinding(rt)->getUIManager().getShadowTreeRegistry();
33
33
 
@@ -9,7 +9,7 @@ var _exportNames = {
9
9
  UnistylesShadowRegistry: true
10
10
  };
11
11
  exports.UnistylesShadowRegistry = exports.UnistylesRuntime = exports.StyleSheet = void 0;
12
- var _utils = require("../utils");
12
+ var _reactNative = require("react-native");
13
13
  var _create = require("./create");
14
14
  var unistyles = _interopRequireWildcard(require("./services"));
15
15
  var _mock = require("./mock");
@@ -42,8 +42,8 @@ const StyleSheet = exports.StyleSheet = {
42
42
  right: 0,
43
43
  bottom: 0
44
44
  },
45
- compose: (a, b) => (0, _utils.deepMergeObjects)(a, b),
46
- flatten: (...styles) => (0, _utils.deepMergeObjects)(...styles),
45
+ compose: (a, b) => _reactNative.StyleSheet.compose(a, b),
46
+ flatten: (...styles) => _reactNative.StyleSheet.flatten(...styles),
47
47
  hairlineWidth: 1
48
48
  };
49
49
  const UnistylesRuntime = exports.UnistylesRuntime = unistyles.services.runtime;
@@ -1 +1 @@
1
- {"version":3,"names":["_utils","require","_create","unistyles","_interopRequireWildcard","_mock","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","set","getOwnPropertyDescriptor","StyleSheet","configure","services","state","init","create","absoluteFill","position","left","top","right","bottom","absoluteFillObject","compose","a","b","deepMergeOb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C+B,QAAQ,CAACqB,cAAiE","ignoreList":[]}
1
+ {"version":3,"names":["_reactNative","require","_create","unistyles","_interopRequireWildcard","_mock","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","set","getOwnPropertyDescriptor","StyleSheet","configure","services","state","init","create","absoluteFill","position","left","top","right","bottom","absoluteFillObject","compose","a","b","RNStyleSheet","flatten","styles","hairlineWidth","UnistylesRuntime","runtime","UnistylesShadowRegistry","shadowRegistry"],"sourceRoot":"../../../src","sources":["web/index.ts"],"mappings":";;;;;;;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAIA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAC,uBAAA,CAAAH,OAAA;AA2BA,IAAAI,KAAA,GAAAJ,OAAA;AAAAK,MAAA,CAAAC,IAAA,CAAAF,KAAA,EAAAG,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAJ,KAAA,CAAAI,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAZ,KAAA,CAAAI,GAAA;IAAA;EAAA;AAAA;AAAsB,SAAAL,wBAAAc,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAhB,uBAAA,YAAAA,CAAAc,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC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EAC7DE,OAAO,EAAEA,CAAC,GAAGC,MAAqB,KAAKF,uBAAY,CAACC,OAAO,CAAC,GAAGC,MAAM,CAAC;EACtEC,aAAa,EAAE;AACnB,CAAuC;AAEhC,MAAMC,gBAAgB,GAAAtC,OAAA,CAAAsC,gBAAA,GAAGjD,SAAS,CAAC+B,QAAQ,CAACmB,OAAmD;AAC/F,MAAMC,uBAAuB,GAAAxC,OAAA,CAAAwC,uBAAA,GAAGnD,SAAS,CAAC+B,QAAQ,CAACqB,cAAiE","ignoreList":[]}
@@ -6,9 +6,9 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.getWebProps = void 0;
7
7
  var _core = require("../core");
8
8
  var _createUnistylesRef = require("../web/utils/createUnistylesRef");
9
- const getWebProps = style => {
9
+ const getWebProps = (style, forwardedRef) => {
10
10
  const styles = (0, _core.getClassName)(style);
11
- const ref = (0, _createUnistylesRef.createUnistylesRef)(styles);
11
+ const ref = (0, _createUnistylesRef.createUnistylesRef)(styles, forwardedRef);
12
12
  const [generatedStyles] = styles ?? [];
13
13
  return {
14
14
  className: [generatedStyles?.hash, generatedStyles?.injectedClassName].filter(Boolean).join(' '),
@@ -1 +1 @@
1
- {"version":3,"names":["_core","require","_createUnistylesRef","getWebProps","style","styles","getClassName","ref","createUnistylesRef","generatedStyles","className","hash","injectedClassName","filter","Boolean","join","exports"],"sourceRoot":"../../../src","sources":["web-only/getWebProps.ts"],"mappings":";;;;;;AACA,IAAAA,KAAA,GAAAC,OAAA;AAEA,IAAAC,mBAAA,GAAAD,OAAA;AAEO,MAAME,WAAW,GAAOC,KAAyB,IAAK;EACzD,MAAMC,MAAM,GAAG,IAAAC,kBAAY,EAACF,KAAwB,CAAC;EACrD,MAAMG,GAAG,GAAG,IAAAC,sCAAkB,EAAIH,MAAM,CAAC;EACzC,MAAM,CAACI,eAAe,CAAC,GAAGJ,MAAM,IAAI,EAAE;EAEtC,OAAO;IACHK,SAAS,EAAE,CACPD,eAAe,EAAEE,IAAI,EACrBF,eAAe,EAAEG,iBAAiB,CACrC,CAACC,MAAM,CAACC,OAAO,CAAC,CAACC,IAAI,CAAC,GAAG,CAAC;IAC3BR;EACJ,CAAC;AACL,CAAC;AAAAS,OAAA,CAAAb,WAAA,GAAAA,WAAA","ignoreList":[]}
1
+ {"version":3,"names":["_core","require","_createUnistylesRef","getWebProps","style","forwardedRef","styles","getClassName","ref","createUnistylesRef","generatedStyles","className","hash","injectedClassName","filter","Boolean","join","exports"],"sourceRoot":"../../../src","sources":["web-only/getWebProps.ts"],"mappings":";;;;;;AACA,IAAAA,KAAA,GAAAC,OAAA;AAEA,IAAAC,mBAAA,GAAAD,OAAA;AAEO,MAAME,WAAW,GAAGA,CAAIC,KAAyB,EAAEC,YAAoC,KAAK;EAC/F,MAAMC,MAAM,GAAG,IAAAC,kBAAY,EAACH,KAAwB,CAAC;EACrD,MAAMI,GAAG,GAAG,IAAAC,sCAAkB,EAAIH,MAAM,EAAED,YAAY,CAAC;EACvD,MAAM,CAACK,eAAe,CAAC,GAAGJ,MAAM,IAAI,EAAE;EAEtC,OAAO;IACHK,SAAS,EAAE,CACPD,eAAe,EAAEE,IAAI,EACrBF,eAAe,EAAEG,iBAAiB,CACrC,CAACC,MAAM,CAACC,OAAO,CAAC,CAACC,IAAI,CAAC,GAAG,CAAC;IAC3BR;EACJ,CAAC;AACL,CAAC;AAAAS,OAAA,CAAAd,WAAA,GAAAA,WAAA","ignoreList":[]}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
 
3
- import { deepMergeObjects } from '../utils';
3
+ import { StyleSheet as RNStyleSheet } from 'react-native';
4
4
  import { create } from './create';
5
5
  import * as unistyles from './services';
6
6
  export const StyleSheet = {
@@ -20,8 +20,8 @@ export const StyleSheet = {
20
20
  right: 0,
21
21
  bottom: 0
22
22
  },
23
- compose: (a, b) => deepMergeObjects(a, b),
24
- flatten: (...styles) => deepMergeObjects(...styles),
23
+ compose: (a, b) => RNStyleSheet.compose(a, b),
24
+ flatten: (...styles) => RNStyleSheet.flatten(...styles),
25
25
  hairlineWidth: 1
26
26
  };
27
27
  export const UnistylesRuntime = unistyles.services.runtime;
@@ -1 +1 @@
1
- {"version":3,"names":["deepMergeObjects","create","unistyles","StyleSheet","configure","services","state","init","absoluteFill","position","left","top","right","bottom","absoluteFillObject","compose","a","b","flatten","styles","hairlineWidth","UnistylesRuntime","runtime","UnistylesShadowRegistry","shadowRegistry"],"sourceRoot":"../../../src","sources":["web/index.ts"],"mappings":";;AAGA,SAASA,gBAAgB,QAAQ,UAAU;AAC3C,SAASC,MAAM,QAAQ,UAAU;AACjC,OAAO,KAAKC,SAAS,MAAM,YAAY;AAEvC,OAAO,MAAMC,UAAU,GAAG;EACtBC,SAAS,EAAEF,SAAS,CAACG,QAAQ,CAACC,KAAK,CAACC,IAAI;EACxCN,MAAM,EAAEA,MAAM;EACdO,YAAY,EAAE;IACVC,QAAQ,EAAE,UAAU;IACpBC,IAAI,EAAE,CAAC;IACPC,GAAG,EAAE,CAAC;IACNC,KAAK,EAAE,CAAC;IACRC,MAAM,EAAE;EACZ,CAAC;EACDC,kBAAkB,EAAE;IAChBL,QAAQ,EAAE,UAAU;IACpBC,IAAI,EAAE,CAAC;IACPC,GAAG,EAAE,CAAC;IACNC,KAAK,EAAE,CAAC;IACRC,MAAM,EAAE;EACZ,CAAC;EACDE,OAAO,EAAEA,CAACC,CAAS,EAAEC,CAAS,KAAKjB,gBAAgB,CAACgB,CAAC,EAAEC,CAAC,CAAC;EACzDC,OAAO,EAAEA,CAAC,GAAGC,MAAqB,KAAKnB,gBAAgB,CAAC,GAAGmB,MAAM,CAAC;EAClEC,aAAa,EAAE;AACnB,CAAuC;AAEvC,OAAO,MAAMC,gBAAgB,GAAGnB,SAAS,CAACG,QAAQ,CAACiB,OAAmD;AACtG,OAAO,MAAMC,uBAAuB,GAAGrB,SAAS,CAACG,QAAQ,CAACmB,cAAiE;AAE3H,cAAc,QAAQ","ignoreList":[]}
1
+ {"version":3,"names":["StyleSheet","RNStyleSheet","create","unistyles","configure","services","state","init","absoluteFill","position","left","top","right","bottom","absoluteFillObject","compose","a","b","flatten","styles","hairlineWidth","UnistylesRuntime","runtime","UnistylesShadowRegistry","shadowRegistry"],"sourceRoot":"../../../src","sources":["web/index.ts"],"mappings":";;AAAA,SAASA,UAAU,IAAIC,YAAY,QAAQ,cAAc;AAIzD,SAASC,MAAM,QAAQ,UAAU;AACjC,OAAO,KAAKC,SAAS,MAAM,YAAY;AAEvC,OAAO,MAAMH,UAAU,GAAG;EACtBI,SAAS,EAAED,SAAS,CAACE,QAAQ,CAACC,KAAK,CAACC,IAAI;EACxCL,MAAM,EAAEA,MAAM;EACdM,YAAY,EAAE;IACVC,QAAQ,EAAE,UAAU;IACpBC,IAAI,EAAE,CAAC;IACPC,GAAG,EAAE,CAAC;IACNC,KAAK,EAAE,CAAC;IACRC,MAAM,EAAE;EACZ,CAAC;EACDC,kBAAkB,EAAE;IAChBL,QAAQ,EAAE,UAAU;IACpBC,IAAI,EAAE,CAAC;IACPC,GAAG,EAAE,CAAC;IACNC,KAAK,EAAE,CAAC;IACRC,MAAM,EAAE;EACZ,CAAC;EACDE,OAAO,EAAEA,CAACC,CAAS,EAAEC,CAAS,KAAKhB,YAAY,CAACc,OAAO,CAACC,CAAC,EAAEC,CAAC,CAAC;EAC7DC,OAAO,EAAEA,CAAC,GAAGC,MAAqB,KAAKlB,YAAY,CAACiB,OAAO,CAAC,GAAGC,MAAM,CAAC;EACtEC,aAAa,EAAE;AACnB,CAAuC;AAEvC,OAAO,MAAMC,gBAAgB,GAAGlB,SAAS,CAACE,QAAQ,CAACiB,OAAmD;AACtG,OAAO,MAAMC,uBAAuB,GAAGpB,SAAS,CAACE,QAAQ,CAACmB,cAAiE;AAE3H,cAAc,QAAQ","ignoreList":[]}
@@ -2,9 +2,9 @@
2
2
 
3
3
  import { getClassName } from '../core';
4
4
  import { createUnistylesRef } from '../web/utils/createUnistylesRef';
5
- export const getWebProps = style => {
5
+ export const getWebProps = (style, forwardedRef) => {
6
6
  const styles = getClassName(style);
7
- const ref = createUnistylesRef(styles);
7
+ const ref = createUnistylesRef(styles, forwardedRef);
8
8
  const [generatedStyles] = styles ?? [];
9
9
  return {
10
10
  className: [generatedStyles?.hash, generatedStyles?.injectedClassName].filter(Boolean).join(' '),
@@ -1 +1 @@
1
- {"version":3,"names":["getClassName","createUnistylesRef","getWebProps","style","styles","ref","generatedStyles","className","hash","injectedClassName","filter","Boolean","join"],"sourceRoot":"../../../src","sources":["web-only/getWebProps.ts"],"mappings":";;AACA,SAASA,YAAY,QAAQ,SAAS;AAEtC,SAASC,kBAAkB,QAAQ,iCAAiC;AAEpE,OAAO,MAAMC,WAAW,GAAOC,KAAyB,IAAK;EACzD,MAAMC,MAAM,GAAGJ,YAAY,CAACG,KAAwB,CAAC;EACrD,MAAME,GAAG,GAAGJ,kBAAkB,CAAIG,MAAM,CAAC;EACzC,MAAM,CAACE,eAAe,CAAC,GAAGF,MAAM,IAAI,EAAE;EAEtC,OAAO;IACHG,SAAS,EAAE,CACPD,eAAe,EAAEE,IAAI,EACrBF,eAAe,EAAEG,iBAAiB,CACrC,CAACC,MAAM,CAACC,OAAO,CAAC,CAACC,IAAI,CAAC,GAAG,CAAC;IAC3BP;EACJ,CAAC;AACL,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["getClassName","createUnistylesRef","getWebProps","style","forwardedRef","styles","ref","generatedStyles","className","hash","injectedClassName","filter","Boolean","join"],"sourceRoot":"../../../src","sources":["web-only/getWebProps.ts"],"mappings":";;AACA,SAASA,YAAY,QAAQ,SAAS;AAEtC,SAASC,kBAAkB,QAAQ,iCAAiC;AAEpE,OAAO,MAAMC,WAAW,GAAGA,CAAIC,KAAyB,EAAEC,YAAoC,KAAK;EAC/F,MAAMC,MAAM,GAAGL,YAAY,CAACG,KAAwB,CAAC;EACrD,MAAMG,GAAG,GAAGL,kBAAkB,CAAII,MAAM,EAAED,YAAY,CAAC;EACvD,MAAM,CAACG,eAAe,CAAC,GAAGF,MAAM,IAAI,EAAE;EAEtC,OAAO;IACHG,SAAS,EAAE,CACPD,eAAe,EAAEE,IAAI,EACrBF,eAAe,EAAEG,iBAAiB,CACrC,CAACC,MAAM,CAACC,OAAO,CAAC,CAACC,IAAI,CAAC,GAAG,CAAC;IAC3BP;EACJ,CAAC;AACL,CAAC","ignoreList":[]}
@@ -2,7 +2,7 @@ export { StyleSheet, UnistylesRuntime, StatusBar, NavigationBar } from './specs'
2
2
  export { mq } from './mq';
3
3
  export type { UnistylesThemes, UnistylesBreakpoints } from './global';
4
4
  export { withUnistyles, useUnistyles, createUnistylesElement } from './core';
5
- export type { UnistylesVariants } from './types';
5
+ export type { UnistylesVariants, IOSContentSizeCategory, AndroidContentSizeCategory } from './types';
6
6
  export { Display, Hide, ScopedTheme } from './components';
7
7
  export { useServerUnistyles, hydrateServerUnistyles, getServerUnistyles, resetServerUnistyles } from './server';
8
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAChF,OAAO,EAAE,EAAE,EAAE,MAAM,MAAM,CAAA;AACzB,YAAY,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAA;AACrE,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,sBAAsB,EAAE,MAAM,QAAQ,CAAA;AAC5E,YAAY,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAChD,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AACzD,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAChF,OAAO,EAAE,EAAE,EAAE,MAAM,MAAM,CAAA;AACzB,YAAY,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAA;AACrE,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,sBAAsB,EAAE,MAAM,QAAQ,CAAA;AAC5E,YAAY,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAA;AACpG,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AACzD,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/web/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,IAAI,6BAA6B,EAAE,MAAM,yBAAyB,CAAA;AACvG,OAAO,KAAK,EAAE,UAAU,IAAI,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACzE,OAAO,KAAK,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,2BAA2B,CAAA;AAKlF,eAAO,MAAM,UAAU,EAoBP,OAAO,gBAAgB,CAAA;AAEvC,eAAO,MAAM,gBAAgB,EAA4C,OAAO,sBAAsB,CAAA;AACtG,eAAO,MAAM,uBAAuB,EAAmD,OAAO,6BAA6B,CAAA;AAE3H,cAAc,QAAQ,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/web/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,uBAAuB,IAAI,6BAA6B,EAAE,MAAM,yBAAyB,CAAA;AACvG,OAAO,KAAK,EAAE,UAAU,IAAI,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AACzE,OAAO,KAAK,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,2BAA2B,CAAA;AAIlF,eAAO,MAAM,UAAU,EAoBP,OAAO,gBAAgB,CAAA;AAEvC,eAAO,MAAM,gBAAgB,EAA4C,OAAO,sBAAsB,CAAA;AACtG,eAAO,MAAM,uBAAuB,EAAmD,OAAO,6BAA6B,CAAA;AAE3H,cAAc,QAAQ,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import type { StyleProp } from 'react-native';
2
2
  import type { RNStyle } from '../types';
3
- export declare const getWebProps: <T>(style: StyleProp<RNStyle>) => {
3
+ export declare const getWebProps: <T>(style: StyleProp<RNStyle>, forwardedRef?: React.ForwardedRef<T>) => {
4
4
  className: string;
5
5
  ref: ((ref: import("../types").Nullable<T>) => void) | undefined;
6
6
  };
@@ -1 +1 @@
1
- {"version":3,"file":"getWebProps.d.ts","sourceRoot":"","sources":["../../../../src/web-only/getWebProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAE7C,OAAO,KAAK,EAAE,OAAO,EAAmB,MAAM,UAAU,CAAA;AAGxD,eAAO,MAAM,WAAW,GAAI,CAAC,EAAE,OAAO,SAAS,CAAC,OAAO,CAAC;;;CAYvD,CAAA"}
1
+ {"version":3,"file":"getWebProps.d.ts","sourceRoot":"","sources":["../../../../src/web-only/getWebProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAE7C,OAAO,KAAK,EAAE,OAAO,EAAmB,MAAM,UAAU,CAAA;AAGxD,eAAO,MAAM,WAAW,GAAI,CAAC,EAAE,OAAO,SAAS,CAAC,OAAO,CAAC,EAAE,eAAe,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC;;;CAY7F,CAAA"}
@@ -14,7 +14,7 @@
14
14
  namespace margelo::nitro::unistyles::bridge::swift {
15
15
 
16
16
  // pragma MARK: std::function<void(const std::vector<UnistyleDependency>& /* dependencies */, const UnistylesNativeMiniRuntime& /* miniRuntime */)>
17
- Func_void_std__vector_UnistyleDependency__UnistylesNativeMiniRuntime create_Func_void_std__vector_UnistyleDependency__UnistylesNativeMiniRuntime(void* _Nonnull swiftClosureWrapper) {
17
+ Func_void_std__vector_UnistyleDependency__UnistylesNativeMiniRuntime create_Func_void_std__vector_UnistyleDependency__UnistylesNativeMiniRuntime(void* _Nonnull swiftClosureWrapper) noexcept {
18
18
  auto swiftClosure = Unistyles::Func_void_std__vector_UnistyleDependency__UnistylesNativeMiniRuntime::fromUnsafe(swiftClosureWrapper);
19
19
  return [swiftClosure = std::move(swiftClosure)](const std::vector<UnistyleDependency>& dependencies, const UnistylesNativeMiniRuntime& miniRuntime) mutable -> void {
20
20
  swiftClosure.call(dependencies, miniRuntime);
@@ -22,7 +22,7 @@ namespace margelo::nitro::unistyles::bridge::swift {
22
22
  }
23
23
 
24
24
  // pragma MARK: std::function<void(const UnistylesNativeMiniRuntime& /* miniRuntime */)>
25
- Func_void_UnistylesNativeMiniRuntime create_Func_void_UnistylesNativeMiniRuntime(void* _Nonnull swiftClosureWrapper) {
25
+ Func_void_UnistylesNativeMiniRuntime create_Func_void_UnistylesNativeMiniRuntime(void* _Nonnull swiftClosureWrapper) noexcept {
26
26
  auto swiftClosure = Unistyles::Func_void_UnistylesNativeMiniRuntime::fromUnsafe(swiftClosureWrapper);
27
27
  return [swiftClosure = std::move(swiftClosure)](const UnistylesNativeMiniRuntime& miniRuntime) mutable -> void {
28
28
  swiftClosure.call(miniRuntime);
@@ -30,11 +30,11 @@ namespace margelo::nitro::unistyles::bridge::swift {
30
30
  }
31
31
 
32
32
  // pragma MARK: std::shared_ptr<HybridNativePlatformSpec>
33
- std::shared_ptr<HybridNativePlatformSpec> create_std__shared_ptr_HybridNativePlatformSpec_(void* _Nonnull swiftUnsafePointer) {
33
+ std::shared_ptr<HybridNativePlatformSpec> create_std__shared_ptr_HybridNativePlatformSpec_(void* _Nonnull swiftUnsafePointer) noexcept {
34
34
  Unistyles::HybridNativePlatformSpec_cxx swiftPart = Unistyles::HybridNativePlatformSpec_cxx::fromUnsafe(swiftUnsafePointer);
35
35
  return std::make_shared<margelo::nitro::unistyles::HybridNativePlatformSpecSwift>(swiftPart);
36
36
  }
37
- void* _Nonnull get_std__shared_ptr_HybridNativePlatformSpec_(std__shared_ptr_HybridNativePlatformSpec_ cppType) {
37
+ void* _Nonnull get_std__shared_ptr_HybridNativePlatformSpec_(std__shared_ptr_HybridNativePlatformSpec_ cppType) noexcept {
38
38
  std::shared_ptr<margelo::nitro::unistyles::HybridNativePlatformSpecSwift> swiftWrapper = std::dynamic_pointer_cast<margelo::nitro::unistyles::HybridNativePlatformSpecSwift>(cppType);
39
39
  #ifdef NITRO_DEBUG
40
40
  if (swiftWrapper == nullptr) [[unlikely]] {
@@ -53,7 +53,7 @@ namespace margelo::nitro::unistyles::bridge::swift {
53
53
  * Specialized version of `std::vector<UnistyleDependency>`.
54
54
  */
55
55
  using std__vector_UnistyleDependency_ = std::vector<UnistyleDependency>;
56
- inline std::vector<UnistyleDependency> create_std__vector_UnistyleDependency_(size_t size) {
56
+ inline std::vector<UnistyleDependency> create_std__vector_UnistyleDependency_(size_t size) noexcept {
57
57
  std::vector<UnistyleDependency> vector;
58
58
  vector.reserve(size);
59
59
  return vector;
@@ -70,14 +70,14 @@ namespace margelo::nitro::unistyles::bridge::swift {
70
70
  class Func_void_std__vector_UnistyleDependency__UnistylesNativeMiniRuntime_Wrapper final {
71
71
  public:
72
72
  explicit Func_void_std__vector_UnistyleDependency__UnistylesNativeMiniRuntime_Wrapper(std::function<void(const std::vector<UnistyleDependency>& /* dependencies */, const UnistylesNativeMiniRuntime& /* miniRuntime */)>&& func): _function(std::make_unique<std::function<void(const std::vector<UnistyleDependency>& /* dependencies */, const UnistylesNativeMiniRuntime& /* miniRuntime */)>>(std::move(func))) {}
73
- inline void call(std::vector<UnistyleDependency> dependencies, UnistylesNativeMiniRuntime miniRuntime) const {
73
+ inline void call(std::vector<UnistyleDependency> dependencies, UnistylesNativeMiniRuntime miniRuntime) const noexcept {
74
74
  _function->operator()(dependencies, miniRuntime);
75
75
  }
76
76
  private:
77
77
  std::unique_ptr<std::function<void(const std::vector<UnistyleDependency>& /* dependencies */, const UnistylesNativeMiniRuntime& /* miniRuntime */)>> _function;
78
78
  } SWIFT_NONCOPYABLE;
79
- Func_void_std__vector_UnistyleDependency__UnistylesNativeMiniRuntime create_Func_void_std__vector_UnistyleDependency__UnistylesNativeMiniRuntime(void* _Nonnull swiftClosureWrapper);
80
- inline Func_void_std__vector_UnistyleDependency__UnistylesNativeMiniRuntime_Wrapper wrap_Func_void_std__vector_UnistyleDependency__UnistylesNativeMiniRuntime(Func_void_std__vector_UnistyleDependency__UnistylesNativeMiniRuntime value) {
79
+ Func_void_std__vector_UnistyleDependency__UnistylesNativeMiniRuntime create_Func_void_std__vector_UnistyleDependency__UnistylesNativeMiniRuntime(void* _Nonnull swiftClosureWrapper) noexcept;
80
+ inline Func_void_std__vector_UnistyleDependency__UnistylesNativeMiniRuntime_Wrapper wrap_Func_void_std__vector_UnistyleDependency__UnistylesNativeMiniRuntime(Func_void_std__vector_UnistyleDependency__UnistylesNativeMiniRuntime value) noexcept {
81
81
  return Func_void_std__vector_UnistyleDependency__UnistylesNativeMiniRuntime_Wrapper(std::move(value));
82
82
  }
83
83
 
@@ -92,14 +92,14 @@ namespace margelo::nitro::unistyles::bridge::swift {
92
92
  class Func_void_UnistylesNativeMiniRuntime_Wrapper final {
93
93
  public:
94
94
  explicit Func_void_UnistylesNativeMiniRuntime_Wrapper(std::function<void(const UnistylesNativeMiniRuntime& /* miniRuntime */)>&& func): _function(std::make_unique<std::function<void(const UnistylesNativeMiniRuntime& /* miniRuntime */)>>(std::move(func))) {}
95
- inline void call(UnistylesNativeMiniRuntime miniRuntime) const {
95
+ inline void call(UnistylesNativeMiniRuntime miniRuntime) const noexcept {
96
96
  _function->operator()(miniRuntime);
97
97
  }
98
98
  private:
99
99
  std::unique_ptr<std::function<void(const UnistylesNativeMiniRuntime& /* miniRuntime */)>> _function;
100
100
  } SWIFT_NONCOPYABLE;
101
- Func_void_UnistylesNativeMiniRuntime create_Func_void_UnistylesNativeMiniRuntime(void* _Nonnull swiftClosureWrapper);
102
- inline Func_void_UnistylesNativeMiniRuntime_Wrapper wrap_Func_void_UnistylesNativeMiniRuntime(Func_void_UnistylesNativeMiniRuntime value) {
101
+ Func_void_UnistylesNativeMiniRuntime create_Func_void_UnistylesNativeMiniRuntime(void* _Nonnull swiftClosureWrapper) noexcept;
102
+ inline Func_void_UnistylesNativeMiniRuntime_Wrapper wrap_Func_void_UnistylesNativeMiniRuntime(Func_void_UnistylesNativeMiniRuntime value) noexcept {
103
103
  return Func_void_UnistylesNativeMiniRuntime_Wrapper(std::move(value));
104
104
  }
105
105
 
@@ -108,91 +108,91 @@ namespace margelo::nitro::unistyles::bridge::swift {
108
108
  * Specialized version of `std::shared_ptr<HybridNativePlatformSpec>`.
109
109
  */
110
110
  using std__shared_ptr_HybridNativePlatformSpec_ = std::shared_ptr<HybridNativePlatformSpec>;
111
- std::shared_ptr<HybridNativePlatformSpec> create_std__shared_ptr_HybridNativePlatformSpec_(void* _Nonnull swiftUnsafePointer);
112
- void* _Nonnull get_std__shared_ptr_HybridNativePlatformSpec_(std__shared_ptr_HybridNativePlatformSpec_ cppType);
111
+ std::shared_ptr<HybridNativePlatformSpec> create_std__shared_ptr_HybridNativePlatformSpec_(void* _Nonnull swiftUnsafePointer) noexcept;
112
+ void* _Nonnull get_std__shared_ptr_HybridNativePlatformSpec_(std__shared_ptr_HybridNativePlatformSpec_ cppType) noexcept;
113
113
 
114
114
  // pragma MARK: std::weak_ptr<HybridNativePlatformSpec>
115
115
  using std__weak_ptr_HybridNativePlatformSpec_ = std::weak_ptr<HybridNativePlatformSpec>;
116
- inline std__weak_ptr_HybridNativePlatformSpec_ weakify_std__shared_ptr_HybridNativePlatformSpec_(const std::shared_ptr<HybridNativePlatformSpec>& strong) { return strong; }
116
+ inline std__weak_ptr_HybridNativePlatformSpec_ weakify_std__shared_ptr_HybridNativePlatformSpec_(const std::shared_ptr<HybridNativePlatformSpec>& strong) noexcept { return strong; }
117
117
 
118
118
  // pragma MARK: Result<Insets>
119
119
  using Result_Insets_ = Result<Insets>;
120
- inline Result_Insets_ create_Result_Insets_(const Insets& value) {
120
+ inline Result_Insets_ create_Result_Insets_(const Insets& value) noexcept {
121
121
  return Result<Insets>::withValue(value);
122
122
  }
123
- inline Result_Insets_ create_Result_Insets_(const std::exception_ptr& error) {
123
+ inline Result_Insets_ create_Result_Insets_(const std::exception_ptr& error) noexcept {
124
124
  return Result<Insets>::withError(error);
125
125
  }
126
126
 
127
127
  // pragma MARK: Result<ColorScheme>
128
128
  using Result_ColorScheme_ = Result<ColorScheme>;
129
- inline Result_ColorScheme_ create_Result_ColorScheme_(ColorScheme value) {
129
+ inline Result_ColorScheme_ create_Result_ColorScheme_(ColorScheme value) noexcept {
130
130
  return Result<ColorScheme>::withValue(std::move(value));
131
131
  }
132
- inline Result_ColorScheme_ create_Result_ColorScheme_(const std::exception_ptr& error) {
132
+ inline Result_ColorScheme_ create_Result_ColorScheme_(const std::exception_ptr& error) noexcept {
133
133
  return Result<ColorScheme>::withError(error);
134
134
  }
135
135
 
136
136
  // pragma MARK: Result<double>
137
137
  using Result_double_ = Result<double>;
138
- inline Result_double_ create_Result_double_(double value) {
138
+ inline Result_double_ create_Result_double_(double value) noexcept {
139
139
  return Result<double>::withValue(std::move(value));
140
140
  }
141
- inline Result_double_ create_Result_double_(const std::exception_ptr& error) {
141
+ inline Result_double_ create_Result_double_(const std::exception_ptr& error) noexcept {
142
142
  return Result<double>::withError(error);
143
143
  }
144
144
 
145
145
  // pragma MARK: Result<Orientation>
146
146
  using Result_Orientation_ = Result<Orientation>;
147
- inline Result_Orientation_ create_Result_Orientation_(Orientation value) {
147
+ inline Result_Orientation_ create_Result_Orientation_(Orientation value) noexcept {
148
148
  return Result<Orientation>::withValue(std::move(value));
149
149
  }
150
- inline Result_Orientation_ create_Result_Orientation_(const std::exception_ptr& error) {
150
+ inline Result_Orientation_ create_Result_Orientation_(const std::exception_ptr& error) noexcept {
151
151
  return Result<Orientation>::withError(error);
152
152
  }
153
153
 
154
154
  // pragma MARK: Result<std::string>
155
155
  using Result_std__string_ = Result<std::string>;
156
- inline Result_std__string_ create_Result_std__string_(const std::string& value) {
156
+ inline Result_std__string_ create_Result_std__string_(const std::string& value) noexcept {
157
157
  return Result<std::string>::withValue(value);
158
158
  }
159
- inline Result_std__string_ create_Result_std__string_(const std::exception_ptr& error) {
159
+ inline Result_std__string_ create_Result_std__string_(const std::exception_ptr& error) noexcept {
160
160
  return Result<std::string>::withError(error);
161
161
  }
162
162
 
163
163
  // pragma MARK: Result<Dimensions>
164
164
  using Result_Dimensions_ = Result<Dimensions>;
165
- inline Result_Dimensions_ create_Result_Dimensions_(const Dimensions& value) {
165
+ inline Result_Dimensions_ create_Result_Dimensions_(const Dimensions& value) noexcept {
166
166
  return Result<Dimensions>::withValue(value);
167
167
  }
168
- inline Result_Dimensions_ create_Result_Dimensions_(const std::exception_ptr& error) {
168
+ inline Result_Dimensions_ create_Result_Dimensions_(const std::exception_ptr& error) noexcept {
169
169
  return Result<Dimensions>::withError(error);
170
170
  }
171
171
 
172
172
  // pragma MARK: Result<bool>
173
173
  using Result_bool_ = Result<bool>;
174
- inline Result_bool_ create_Result_bool_(bool value) {
174
+ inline Result_bool_ create_Result_bool_(bool value) noexcept {
175
175
  return Result<bool>::withValue(std::move(value));
176
176
  }
177
- inline Result_bool_ create_Result_bool_(const std::exception_ptr& error) {
177
+ inline Result_bool_ create_Result_bool_(const std::exception_ptr& error) noexcept {
178
178
  return Result<bool>::withError(error);
179
179
  }
180
180
 
181
181
  // pragma MARK: Result<void>
182
182
  using Result_void_ = Result<void>;
183
- inline Result_void_ create_Result_void_() {
183
+ inline Result_void_ create_Result_void_() noexcept {
184
184
  return Result<void>::withValue();
185
185
  }
186
- inline Result_void_ create_Result_void_(const std::exception_ptr& error) {
186
+ inline Result_void_ create_Result_void_(const std::exception_ptr& error) noexcept {
187
187
  return Result<void>::withError(error);
188
188
  }
189
189
 
190
190
  // pragma MARK: Result<UnistylesNativeMiniRuntime>
191
191
  using Result_UnistylesNativeMiniRuntime_ = Result<UnistylesNativeMiniRuntime>;
192
- inline Result_UnistylesNativeMiniRuntime_ create_Result_UnistylesNativeMiniRuntime_(const UnistylesNativeMiniRuntime& value) {
192
+ inline Result_UnistylesNativeMiniRuntime_ create_Result_UnistylesNativeMiniRuntime_(const UnistylesNativeMiniRuntime& value) noexcept {
193
193
  return Result<UnistylesNativeMiniRuntime>::withValue(value);
194
194
  }
195
- inline Result_UnistylesNativeMiniRuntime_ create_Result_UnistylesNativeMiniRuntime_(const std::exception_ptr& error) {
195
+ inline Result_UnistylesNativeMiniRuntime_ create_Result_UnistylesNativeMiniRuntime_(const std::exception_ptr& error) noexcept {
196
196
  return Result<UnistylesNativeMiniRuntime>::withError(error);
197
197
  }
198
198
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-unistyles",
3
- "version": "3.0.10",
3
+ "version": "3.0.12",
4
4
  "description": "Level up your React Native StyleSheet",
5
5
  "scripts": {
6
6
  "test": "NODE_ENV=babel-test jest ./plugin",
@@ -148,11 +148,11 @@
148
148
  "husky": "9.1.7",
149
149
  "jest": "29.7.0",
150
150
  "metro-react-native-babel-preset": "0.77.0",
151
- "nitro-codegen": "0.28.0",
151
+ "nitrogen": "0.29.4",
152
152
  "react": "19.1.0",
153
153
  "react-native": "0.79.2",
154
154
  "react-native-builder-bob": "0.40.10",
155
- "react-native-nitro-modules": "0.28.0",
155
+ "react-native-nitro-modules": "0.29.4",
156
156
  "react-native-reanimated": "3.17.5",
157
157
  "react-native-web": "0.20.0",
158
158
  "react-test-renderer": "19.1.0",
@@ -213,7 +213,47 @@
213
213
  },
214
214
  "plugins": {
215
215
  "@release-it/conventional-changelog": {
216
- "preset": "angular"
216
+ "writerOpts": {
217
+ "groupBy": "type",
218
+ "commitGroupsSort": [
219
+ "feat",
220
+ "fix",
221
+ "perf",
222
+ "refactor",
223
+ "docs",
224
+ "chore"
225
+ ],
226
+ "commitsSort": [
227
+ "scope",
228
+ "subject"
229
+ ]
230
+ },
231
+ "types": [
232
+ {
233
+ "type": "feat",
234
+ "section": "Features"
235
+ },
236
+ {
237
+ "type": "fix",
238
+ "section": "Bug Fixes"
239
+ },
240
+ {
241
+ "type": "perf",
242
+ "section": "Performance Improvements"
243
+ },
244
+ {
245
+ "type": "refactor",
246
+ "section": "Code Refactoring"
247
+ },
248
+ {
249
+ "type": "docs",
250
+ "section": "Documentation"
251
+ },
252
+ {
253
+ "type": "chore",
254
+ "section": "Maintenance"
255
+ }
256
+ ]
217
257
  }
218
258
  }
219
259
  },
package/src/index.ts CHANGED
@@ -10,6 +10,6 @@ export { StyleSheet, UnistylesRuntime, StatusBar, NavigationBar } from './specs'
10
10
  export { mq } from './mq'
11
11
  export type { UnistylesThemes, UnistylesBreakpoints } from './global'
12
12
  export { withUnistyles, useUnistyles, createUnistylesElement } from './core'
13
- export type { UnistylesVariants } from './types'
13
+ export type { UnistylesVariants, IOSContentSizeCategory, AndroidContentSizeCategory } from './types'
14
14
  export { Display, Hide, ScopedTheme } from './components'
15
15
  export { useServerUnistyles, hydrateServerUnistyles, getServerUnistyles, resetServerUnistyles } from './server'
package/src/web/index.ts CHANGED
@@ -1,7 +1,7 @@
1
+ import { StyleSheet as RNStyleSheet } from 'react-native'
1
2
  import type { UnistylesShadowRegistry as NativeUnistylesShadowRegistry } from '../specs/ShadowRegistry'
2
3
  import type { StyleSheet as NativeStyleSheet } from '../specs/StyleSheet'
3
4
  import type { Runtime as NativeUnistylesRuntime } from '../specs/UnistylesRuntime'
4
- import { deepMergeObjects } from '../utils'
5
5
  import { create } from './create'
6
6
  import * as unistyles from './services'
7
7
 
@@ -22,8 +22,8 @@ export const StyleSheet = {
22
22
  right: 0,
23
23
  bottom: 0
24
24
  },
25
- compose: (a: object, b: object) => deepMergeObjects(a, b),
26
- flatten: (...styles: Array<object>) => deepMergeObjects(...styles),
25
+ compose: (a: object, b: object) => RNStyleSheet.compose(a, b),
26
+ flatten: (...styles: Array<object>) => RNStyleSheet.flatten(...styles),
27
27
  hairlineWidth: 1
28
28
  } as unknown as typeof NativeStyleSheet
29
29
 
@@ -3,9 +3,9 @@ import { getClassName } from '../core'
3
3
  import type { RNStyle, UnistylesValues } from '../types'
4
4
  import { createUnistylesRef } from '../web/utils/createUnistylesRef'
5
5
 
6
- export const getWebProps = <T>(style: StyleProp<RNStyle>) => {
6
+ export const getWebProps = <T>(style: StyleProp<RNStyle>, forwardedRef?: React.ForwardedRef<T>) => {
7
7
  const styles = getClassName(style as UnistylesValues)
8
- const ref = createUnistylesRef<T>(styles)
8
+ const ref = createUnistylesRef<T>(styles, forwardedRef)
9
9
  const [generatedStyles] = styles ?? []
10
10
 
11
11
  return {