react-native-unistyles 2.8.3 → 2.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. package/README.md +4 -1
  2. package/android/src/main/cxx/platform.cpp +16 -0
  3. package/android/src/main/cxx/platform.h +1 -0
  4. package/android/src/main/java/com/unistyles/Platform.kt +62 -9
  5. package/android/src/main/java/com/unistyles/UnistylesModule.kt +53 -1
  6. package/cxx/UnistylesImpl.cpp +4 -0
  7. package/cxx/UnistylesModel.cpp +0 -8
  8. package/cxx/UnistylesModel.h +1 -1
  9. package/cxx/UnistylesRuntime.h +3 -1
  10. package/ios/platform/Platform_iOS.mm +10 -0
  11. package/lib/commonjs/common.js +0 -1
  12. package/lib/commonjs/common.js.map +1 -1
  13. package/lib/commonjs/core/UnistylesModule.js +7 -0
  14. package/lib/commonjs/core/UnistylesModule.js.map +1 -1
  15. package/lib/commonjs/core/UnistylesRuntime.js +28 -5
  16. package/lib/commonjs/core/UnistylesRuntime.js.map +1 -1
  17. package/lib/commonjs/core/mocks/UnistylesMockedRuntime.js +9 -1
  18. package/lib/commonjs/core/mocks/UnistylesMockedRuntime.js.map +1 -1
  19. package/lib/commonjs/hooks/useUnistyles.js +1 -8
  20. package/lib/commonjs/hooks/useUnistyles.js.map +1 -1
  21. package/lib/module/common.js +0 -1
  22. package/lib/module/common.js.map +1 -1
  23. package/lib/module/core/UnistylesModule.js +7 -0
  24. package/lib/module/core/UnistylesModule.js.map +1 -1
  25. package/lib/module/core/UnistylesRuntime.js +25 -2
  26. package/lib/module/core/UnistylesRuntime.js.map +1 -1
  27. package/lib/module/core/mocks/UnistylesMockedRuntime.js +9 -1
  28. package/lib/module/core/mocks/UnistylesMockedRuntime.js.map +1 -1
  29. package/lib/module/hooks/useUnistyles.js +1 -8
  30. package/lib/module/hooks/useUnistyles.js.map +1 -1
  31. package/lib/typescript/src/common.d.ts +1 -2
  32. package/lib/typescript/src/common.d.ts.map +1 -1
  33. package/lib/typescript/src/core/UnistylesModule.d.ts.map +1 -1
  34. package/lib/typescript/src/core/UnistylesRuntime.d.ts +15 -0
  35. package/lib/typescript/src/core/UnistylesRuntime.d.ts.map +1 -1
  36. package/lib/typescript/src/core/mocks/UnistylesMockedRuntime.d.ts +4 -0
  37. package/lib/typescript/src/core/mocks/UnistylesMockedRuntime.d.ts.map +1 -1
  38. package/lib/typescript/src/hooks/useUnistyles.d.ts +0 -1
  39. package/lib/typescript/src/hooks/useUnistyles.d.ts.map +1 -1
  40. package/lib/typescript/src/index.d.ts +2 -2
  41. package/lib/typescript/src/index.d.ts.map +1 -1
  42. package/lib/typescript/src/types/index.d.ts +1 -1
  43. package/lib/typescript/src/types/index.d.ts.map +1 -1
  44. package/lib/typescript/src/types/stylesheet.d.ts +3 -3
  45. package/lib/typescript/src/types/stylesheet.d.ts.map +1 -1
  46. package/lib/typescript/src/types/unistyles.d.ts +2 -7
  47. package/lib/typescript/src/types/unistyles.d.ts.map +1 -1
  48. package/package.json +1 -1
  49. package/src/common.ts +1 -2
  50. package/src/core/UnistylesModule.ts +7 -0
  51. package/src/core/UnistylesRuntime.ts +26 -2
  52. package/src/core/mocks/UnistylesMockedRuntime.ts +11 -1
  53. package/src/hooks/useUnistyles.ts +2 -9
  54. package/src/index.ts +4 -1
  55. package/src/types/index.ts +4 -1
  56. package/src/types/stylesheet.ts +3 -3
  57. package/src/types/unistyles.ts +3 -9
@@ -1 +1 @@
1
- {"version":3,"names":["_common","require","UnistylesMockedRuntime","constructor","unistylesBridge","unistylesRegistry","miniRuntime","contentSizeCategory","breakpoint","screen","insets","statusBar","width","height","navigationBar","orientation","pixelRatio","fontScale","colorScheme","hasAdaptiveThemes","themeName","themeNames","length","at","undefined","sortedBreakpointPairs","firstBreakpoint","breakpoints","enabledPlugins","plugins","top","right","bottom","left","setColor","setHidden","ScreenOrientation","Portrait","setTheme","name","updateTheme","theme","setAdaptiveThemes","enabled","addPlugin","plugin","removePlugin","setRootViewBackgroundColor","color","setImmersiveMode","isEnabled","exports"],"sourceRoot":"../../../../src","sources":["core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A,IAAWpB,WAAWA,CAAA,EAAG;IACrB,OAAOqB,yBAAiB,CAACC,QAAQ;EACrC;EAEOC,QAAQ,GAAIC,IAA2B,IAAK,IAAI;EAChDC,WAAW,GAAGA,CAACD,IAA2B,EAAEE,KAA6C,KAAK,CAAC,CAAC;EAChGC,iBAAiB,GAAIC,OAAgB,IAAK,CAAC,CAAC;EAC5CC,SAAS,GAAIC,MAAuB,IAAK,CAAC,CAAC;EAC3CC,YAAY,GAAID,MAAuB,IAAK,CAAC,CAAC;EAC9CE,0BAA0B,GAAIC,KAAsB,IAAK,CAAC,CAAC;EAC3DC,gBAAgB,GAAIC,SAAkB,IAAK,CAAC,CAAC;AACxD;AAACC,OAAA,CAAAjD,sBAAA,GAAAA,sBAAA","ignoreList":[]}
1
+ {"version":3,"names":["_common","require","UnistylesMockedRuntime","constructor","unistylesBridge","unistylesRegistry","miniRuntime","contentSizeCategory","breakpoint","screen","insets","statusBar","width","height","navigationBar","orientation","pixelRatio","fontScale","hairlineWidth","rtl","colorScheme","hasAdaptiveThemes","themeName","themeNames","length","at","undefined","sortedBreakpointPairs","firstBreakpoint","breakpoints","enabledPlugins","plugins","top","right","bottom","left","setColor","setHidden","ScreenOrientation","Portrait","setTheme","name","updateTheme","theme","setAdaptiveThemes","enabled","addPlugin","plugin","removePlugin","setRootViewBackgroundColor","color","setImmersiveMode","isEnabled","exports"],"sourceRoot":"../../../../src","sources":["core/mocks/UnistylesMockedRuntime.ts"],"mappings":";;;;;;AACA,IAAAA,OAAA,GAAAC,OAAA;AADA;;AAOO,MAAMC,sBAAsB,CAAC;EAGhCC,WAAWA,CAASC,eAAgC,EAAUC,iBAAmC,EAAE;IAAA,KAA/ED,eAAgC,GAAhCA,eAAgC;IAAA,KAAUC,iBAAmC,GAAnCA,iBAAmC;IAC7F,IAAI,CAACA,iBAAiB,GAAGA,iBAAuD;EACpF;EAEA,IAAWC,WAAWA,CAAA,EAAG;IACrB,OAAO;MACHC,mBAAmB,EAAE,IAAI,CA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K,CAAC,CAAC;EAChGC,iBAAiB,GAAIC,OAAgB,IAAK,CAAC,CAAC;EAC5CC,SAAS,GAAIC,MAAuB,IAAK,CAAC,CAAC;EAC3CC,YAAY,GAAID,MAAuB,IAAK,CAAC,CAAC;EAC9CE,0BAA0B,GAAIC,KAAsB,IAAK,CAAC,CAAC;EAC3DC,gBAAgB,GAAIC,SAAkB,IAAK,CAAC,CAAC;AACxD;AAACC,OAAA,CAAAnD,sBAAA,GAAAA,sBAAA","ignoreList":[]}
@@ -12,7 +12,6 @@ const unistylesEvents = new _reactNative.NativeEventEmitter(_reactNative.NativeM
12
12
  const useUnistyles = () => {
13
13
  const [plugins, setPlugins] = (0, _react.useState)(_core.unistyles.runtime.enabledPlugins);
14
14
  const [theme, setTheme] = (0, _react.useState)(_core.unistyles.registry.getTheme(_core.unistyles.runtime.themeName));
15
- const [contentSizeCategory, setContentSizeCategory] = (0, _react.useState)(_core.unistyles.runtime.contentSizeCategory);
16
15
  const [layout, setLayout] = (0, _react.useState)({
17
16
  breakpoint: _core.unistyles.runtime.breakpoint,
18
17
  orientation: _core.unistyles.runtime.orientation,
@@ -59,11 +58,6 @@ const useUnistyles = () => {
59
58
  {
60
59
  return setPlugins(_core.unistyles.runtime.enabledPlugins);
61
60
  }
62
- case _common.UnistylesEventType.DynamicTypeSize:
63
- {
64
- const dynamicTypeSizeEvent = event;
65
- return setContentSizeCategory(dynamicTypeSizeEvent.payload.contentSizeCategory);
66
- }
67
61
  default:
68
62
  return;
69
63
  }
@@ -73,8 +67,7 @@ const useUnistyles = () => {
73
67
  return {
74
68
  plugins,
75
69
  theme,
76
- layout,
77
- contentSizeCategory
70
+ layout
78
71
  };
79
72
  };
80
73
  exports.useUnistyles = useUnistyles;
@@ -1 +1 @@
1
- {"version":3,"names":["_reactNative","require","_react","_core","_common","unistylesEvents","NativeEventEmitter","NativeModules","Unistyles","useUnistyles","plugins","setPlugins","useState","unistyles","runtime","enabledPlugins","theme","setTheme","registry","getTheme","themeName","contentSizeCategory","setContentSizeCategory","layout","setLayout","breakpoint","orientation","screen","width","height","statusBar","navigationBar","insets","top","bottom","left","right","useEffect","subscription","addListener","event","type","UnistylesEventType","Theme","themeEvent","payload","Layout","layoutEvent","Plugin","DynamicTypeSize","dynamicTypeSizeEvent","remove","exports"],"sourceRoot":"../../../src","sources":["hooks/useUnistyles.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AAGA,MAAMI,eAAe,GAAG,IAAIC,+BAAkB,CAACC,0BAAa,CAACC,SAAS,CAAC;AAEhE,MAAMC,YAAY,GAAGA,CAAA,KAAM;EAC9B,MAAM,CAACC,OAAO,EAAEC,UAAU,CAAC,GAAG,IAAAC,eAAQ,EAACC,eAAS,CAACC,OAAO,CAACC,cAAc,CAAC;EACxE,MAAM,CAACC,KAAK,EAAEC,QAAQ,CAAC,GAAG,IAAAL,eAAQ,EAACC,eAAS,CAACK,QAAQ,CAACC,QAAQ,CAACN,eAAS,CAACC,OAAO,CAACM,SAAS,CAAC,CAAC;EAC5F,MAAM,CAACC,mBAAmB,EAAEC,sBAAsB,CAAC,GAAG,IAAAV,eAAQ,EAACC,eAAS,CAACC,OAAO,CAACO,mBAAmB,CAAC;EACrG,MAAM,CAACE,MAAM,EAAEC,SAAS,CAAC,GAAG,IAAAZ,eAAQ,EAAC;IACjCa,UAAU,EAAEZ,eAAS,CAACC,OAAO,CAACW,UAAU;IACxCC,WAAW,EAAEb,eAAS,CAACC,OAAO,CAACY,WAAW;IAC1CC,MAAM,EAAE;MACJC,KAAK,EAAEf,eAAS,CAACC,OAAO,CAACa,MAAM,CAACC,KAAK;MACrCC,MAAM,EAAEhB,eAAS,CAACC,OAAO,CAACa,MAAM,CAACE;IACrC,CAAC;IACDC,SAAS,EAAE;MACPF,KAAK,EAAEf,eAAS,CAACC,OAAO,CAAC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O,CAACb,MAAM;cAClCD,aAAa,EAAEgB,WAAW,CAACF,OAAO,CAACd;YACvC,CAAC,CAAC;UACN;QACA,KAAKW,0BAAkB,CAACM,MAAM;UAAE;YAC5B,OAAOrC,UAAU,CAACE,eAAS,CAACC,OAAO,CAACC,cAAc,CAAC;UACvD;QACA,KAAK2B,0BAAkB,CAACO,eAAe;UAAE;YACrC,MAAMC,oBAAoB,GAAGV,KAAsC;YAEnE,OAAOlB,sBAAsB,CAAC4B,oBAAoB,CAACL,OAAO,CAACxB,mBAAmB,CAAC;UACnF;QACA;UACI;MACR;IACJ,CACJ,CAAC;IAED,OAAOiB,YAAY,CAACa,MAAM;EAC9B,CAAC,EAAE,EAAE,CAAC;EAEN,OAAO;IACHzC,OAAO;IACPM,KAAK;IACLO,MAAM;IACNF;EACJ,CAAC;AACL,CAAC;AAAA+B,OAAA,CAAA3C,YAAA,GAAAA,YAAA","ignoreList":[]}
1
+ {"version":3,"names":["_reactNative","require","_react","_core","_common","unistylesEvents","NativeEventEmitter","NativeModules","Unistyles","useUnistyles","plugins","setPlugins","useState","unistyles","runtime","enabledPlugins","theme","setTheme","registry","getTheme","themeName","layout","setLayout","breakpoint","orientation","screen","width","height","statusBar","navigationBar","insets","top","bottom","left","right","useEffect","subscription","addListener","event","type","UnistylesEventType","Theme","themeEvent","payload","Layout","layoutEvent","Plugin","remove","exports"],"sourceRoot":"../../../src","sources":["hooks/useUnistyles.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AAGA,MAAMI,eAAe,GAAG,IAAIC,+BAAkB,CAACC,0BAAa,CAACC,SAAS,CAAC;AAEhE,MAAMC,YAAY,GAAGA,CAAA,KAAM;EAC9B,MAAM,CAACC,OAAO,EAAEC,UAAU,CAAC,GAAG,IAAAC,eAAQ,EAACC,eAAS,CAACC,OAAO,C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,KAAKC,0BAAkB,CAACC,KAAK;UAAE;YAC3B,MAAMC,UAAU,GAAGJ,KAA4B;YAE/C,OAAOrB,QAAQ,CAACJ,eAAS,CAACK,QAAQ,CAACC,QAAQ,CAACuB,UAAU,CAACC,OAAO,CAACvB,SAAS,CAAC,CAAC;UAC9E;QACA,KAAKoB,0BAAkB,CAACI,MAAM;UAAE;YAC5B,MAAMC,WAAW,GAAGP,KAAmC;YAEvD,OAAOhB,SAAS,CAAC;cACbC,UAAU,EAAEsB,WAAW,CAACF,OAAO,CAACpB,UAAU;cAC1CC,WAAW,EAAEqB,WAAW,CAACF,OAAO,CAACnB,WAAW;cAC5CC,MAAM,EAAEoB,WAAW,CAACF,OAAO,CAAClB,MAAM;cAClCG,SAAS,EAAEiB,WAAW,CAACF,OAAO,CAACf,SAAS;cACxCE,MAAM,EAAEe,WAAW,CAACF,OAAO,CAACb,MAAM;cAClCD,aAAa,EAAEgB,WAAW,CAACF,OAAO,CAACd;YACvC,CAAC,CAAC;UACN;QACA,KAAKW,0BAAkB,CAACM,MAAM;UAAE;YAC5B,OAAOnC,UAAU,CAACE,eAAS,CAACC,OAAO,CAACC,cAAc,CAAC;UACvD;QACA;UACI;MACR;IACJ,CACJ,CAAC;IAED,OAAOqB,YAAY,CAACW,MAAM;EAC9B,CAAC,EAAE,EAAE,CAAC;EAEN,OAAO;IACHrC,OAAO;IACPM,KAAK;IACLK;EACJ,CAAC;AACL,CAAC;AAAA2B,OAAA,CAAAvC,YAAA,GAAAA,YAAA","ignoreList":[]}
@@ -43,7 +43,6 @@ export let UnistylesEventType = /*#__PURE__*/function (UnistylesEventType) {
43
43
  UnistylesEventType["Theme"] = "theme";
44
44
  UnistylesEventType["Layout"] = "layout";
45
45
  UnistylesEventType["Plugin"] = "plugin";
46
- UnistylesEventType["DynamicTypeSize"] = "dynamicTypeSize";
47
46
  return UnistylesEventType;
48
47
  }({});
49
48
  export let UnistylesError = /*#__PURE__*/function (UnistylesError) {
@@ -1 +1 @@
1
- {"version":3,"names":["Platform","warn","message","console","isWeb","OS","isIOS","isAndroid","isMobile","isServer","window","isDev","process","env","NODE_ENV","isTest","JEST_WORKER_ID","undefined","jest","ScreenOrientation","Landscape","Portrait","IOSContentSizeCategory","AndroidContentSizeCategory","UnistylesEventType","UnistylesError"],"sourceRoot":"../../src","sources":["common.ts"],"mappings":"AAAA,SAASA,QAAQ,QAAQ,cAAc;AAEvC,OAAO,MAAMC,IAAI,GAAIC,OAAe,IAAK;EACrCC,OAAO,CAACF,IAAI,CAAC,gCAAgCC,OAAO,EAAE,CAAC;AAC3D,CAAC;AAED,OAAO,MAAME,KAAK,GAAGJ,QAAQ,CAACK,EAAE,KAAK,KAAK;AAC1C,OAAO,MAAMC,KAAK,GAAGN,QAAQ,CAACK,EAAE,KAAK,KAAK;AAC1C,OAAO,MAAME,SAAS,GAAGP,QAAQ,CAACK,EAAE,KAAK,SAAS;AAClD,OAAO,MAAMG,QAAQ,GAAGF,KAAK,IAAIC,SAAS;AAC1C,OAAO,MAAME,QAAQ,GAAG,OAAOC,MAAM,KAAK,WAAW;AACrD,OAAO,MAAMC,KAAK,GAAGC,OAAO,CAACC,GAAG,CAACC,QAAQ,KAAK,YAAY;AAC1D,OAAO,MAAMC,MAAM,GAAGH,OAAO,CAACC,GAAG,CAACC,QAAQ,KAAK,MAAM,IAAIF,OAAO,CAACC,GAAG,CAACG,cAAc,KAAKC,SAAS,IAAI,OAAOC,IAAI,KAAK,WAAW;AAEhI,OAAO,MAAMC,iBAAiB,GAAG;EAC7BC,SAAS,EAAE,WAAW;EACtBC,QAAQ,EAAE;AACd,CAAU;AAEV,WAAYC,sBAAsB,0BAAtBA,sBAAsB;EAAtBA,sBAAsB;EAAtBA,sBAAsB;EAAtBA,sBAAsB;EAAtBA,sBAAsB;EAAtBA,sBAAsB;EAAtBA,sBAAsB;EAAtBA,sBAAsB;EAAtBA,sBAAsB;EAAtBA,sBAAsB;EAAtBA,sBAAsB;EAAtBA,sBAAsB;EAAtBA,sBAAsB;EAAtBA,sBAAsB;EAAA,OAAtBA,sBAAsB;AAAA;AAgBlC,WAAYC,0BAA0B,0BAA1BA,0BAA0B;EAA1BA,0BAA0B;EAA1BA,0BAA0B;EAA1BA,0BAA0B;EAA1BA,0BAA0B;EAA1BA,0BAA0B;EAA1BA,0BAA0B;EAA1BA,0BAA0B;EAAA,OAA1BA,0BAA0B;AAAA;AAUtC,WAAYC,kBAAkB,0BAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAlBA,kBAAkB;EAAA,OAAlBA,kBAAkB;AAAA;AAO9B,WAAYC,cAAc,0BAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAA,OAAdA,cAAc;AAAA","ignoreList":[]}
1
+ {"version":3,"names":["Platform","warn","message","console","isWeb","OS","isIOS","isAndroid","isMobile","isServer","window","isDev","process","env","NODE_ENV","isTest","JEST_WORKER_ID","undefined","jest","ScreenOrientation","Landscape","Portrait","IOSContentSizeCategory","AndroidContentSizeCategory","UnistylesEventType","UnistylesError"],"sourceRoot":"../../src","sources":["common.ts"],"mappings":"AAAA,SAASA,QAAQ,QAAQ,cAAc;AAEvC,OAAO,MAAMC,IAAI,GAAIC,OAAe,IAAK;EACrCC,OAAO,CAACF,IAAI,CAAC,gCAAgCC,OAAO,EAAE,CAAC;AAC3D,CAAC;AAED,OAAO,MAAME,KAAK,GAAGJ,QAAQ,CAACK,EAAE,KAAK,KAAK;AAC1C,OAAO,MAAMC,KAAK,GAAGN,QAAQ,CAACK,EAAE,KAAK,KAAK;AAC1C,OAAO,MAAME,SAAS,GAAGP,QAAQ,CAACK,EAAE,KAAK,SAAS;AAClD,OAAO,MAAMG,QAAQ,GAAGF,KAAK,IAAIC,SAAS;AAC1C,OAAO,MAAME,QAAQ,GAAG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fontScale = 1.0;
40
+ #hairlineWidth = 1;
41
+ #rtl = false;
40
42
  constructor() {
41
43
  if (!isServer) {
42
44
  this.setupListeners();
43
45
  this.#screenWidth = window.innerWidth;
44
46
  this.#screenHeight = window.innerHeight;
47
+ this.#rtl = window.getComputedStyle(document.documentElement).direction === 'rtl';
45
48
  }
46
49
  }
47
50
  install() {
@@ -80,6 +83,10 @@ export class UnistylesBridgeWeb {
80
83
  return this.#pixelRatio;
81
84
  case 'fontScale':
82
85
  return this.#fontScale;
86
+ case 'hairlineWidth':
87
+ return this.#hairlineWidth;
88
+ case 'rtl':
89
+ return this.#rtl;
83
90
  case 'useTheme':
84
91
  return themeName => this.useTheme(themeName);
85
92
  case 'updateTheme':
@@ -1 +1 @@
1
- {"version":3,"names":["NativeEventEmitter","NativeModules","normalizeWebStylesPlugin","isServer","UnistylesBridgeWeb","timerRef","undefined","windowResizeDebounceTimeMs","hasAdaptiveThemes","supportsAutomaticColorScheme","screenWidth","window","innerWidth","screenHeight","innerHeight","themes","breakpoints","colorScheme","getPreferredColorScheme","themeName","enabledPlugins","name","unistylesEvents","Unistyles","sortedBreakpointPairs","breakpoint","contentSizeCategory","insets","top","right","bottom","left","statusBar","height","width","setColor","setHidden","navigationBar","pixelRatio","fontScale","constructor","setupListeners","install","globalThis","__UNISTYLES__","Proxy","get","_target","prop","getTheme","useTheme","updateTheme","useBreakpoints","enable","useAdaptiveThemes","pluginName","notify","addPlugin","removePlugin","color","setRootViewBackgroundColor","timeMs","Reflect","set","target","newValue","receiver","includes","emitThemeChange","Object","entries","sort","a","b","getBreakpointFromScreenWidth","concat","emitPluginChange","filter","length","at","onResize","emitLayoutChange","addEventListener","clearTimeout","setTimeout","matchMedia","event","matches","find","value","index","otherBreakpoints","minVal","maxVal","document","body","style","backgroundColor","emit","type","payload","orientation","screen","UnistylesModule"],"sourceRoot":"../../../src","sources":["core/UnistylesModule.ts"],"mappings":"AAAA,SAASA,kBAAkB,EAAEC,aAAa,QAAQ,cAAc;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,CAAC,CAAC;EACN;AACJ;AAEA,OAAO,MAAM0F,eAAe,GAAG,IAAInG,kBAAkB,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["NativeEventEmitter","NativeModules","normalizeWebStylesPlugin","isServer","UnistylesBridgeWeb","timerRef","undefined","windowResizeDebounceTimeMs","hasAdaptiveThemes","supportsAutomaticColorScheme","screenWidth","window","innerWidth","screenHeight","innerHeight","themes","breakpoints","colorScheme","getPreferredColorScheme","themeName","enabledPlugins","name","unistylesEvents","Unistyles","sortedBreakpointPairs","breakpoint","contentSizeCategory","insets","top","right","bottom","left","statusBar","height","width","setColor","setHidden","navigationBar","pixelRatio","fontScale","hairlineWidth","rtl","constructor","setupListeners","getComputedStyle","document","documentElement","direction","install","globalThis","__UNISTYLES__","Proxy","get","_target","prop","getTheme","useTheme","updateTheme","useBreakpoints","enable","useAdaptiveThemes","pluginName","notify","addPlugin","removePlugin","color","setRootViewBackgroundColor","timeMs","Reflect","set","target","newValue","receiver","includes","emitThemeChange","Object","entries","sort","a","b","getBreakpointFromScreenWidth","concat","emitPluginChange","filter","length","at","onResize","emitLayoutChange","addEventListener","clearTimeout","setTimeout","matchMedia","event","matches","find","value","index","otherBreakpoints","minVal","maxVal","body","style","backgroundColor","emit","type","payload","orientation","screen","UnistylesModule"],"sourceRoot":"../../../src","sources":["core/UnistylesModule.ts"],"mappings":"AAAA,SAASA,kBAAkB,EAAEC,aAAa,QAAQ,cAAc;AAGhE,SAASC,wBAAwB,QAAQ,YAAY;AACrD,SAASC,QAAQ,QAAQ,WAAW;AAEpC,OAAO,MAAMC,kBAAkB,CAAC;EAC5B,CAACC,QAAQ,GAAmCC,SAAS;EACrD,CAACC,0BAA0B,GAAW,GAAG;EACzC,CAACC,iBAAiB,GAAY,KAAK;EACnC,CAACC,4BAA4B,GAAG,KAAK;EACrC,CAACC,WAAW,GAAGP,QAAQ,GAAGG,SAAS,GAAGK,MAAM,CAACC,UAAU;EACvD,CAACC,YAAY,GAAGV,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AG,IAAIxG,kBAAkB,CAAC,CAAC","ignoreList":[]}
@@ -1,5 +1,5 @@
1
1
  import { ScreenOrientation, UnistylesError } from '../common';
2
- import { parseColor } from '../utils';
2
+ import { parseColor } from '../utils/parseColor';
3
3
 
4
4
  /**
5
5
  * Utility to interact with the Unistyles during runtime
@@ -30,7 +30,9 @@ export class UnistylesRuntime {
30
30
  },
31
31
  orientation: this.orientation,
32
32
  pixelRatio: this.pixelRatio,
33
- fontScale: this.fontScale
33
+ fontScale: this.fontScale,
34
+ hairlineWidth: this.hairlineWidth,
35
+ rtl: this.rtl
34
36
  };
35
37
  }
36
38
 
@@ -42,6 +44,14 @@ export class UnistylesRuntime {
42
44
  return this.unistylesBridge.colorScheme;
43
45
  }
44
46
 
47
+ /**
48
+ * Get the layout direction
49
+ * @returns - Boolean indicating if the layout direction is RTL
50
+ */
51
+ get rtl() {
52
+ return this.unistylesBridge.rtl;
53
+ }
54
+
45
55
  /**
46
56
  * Get info about adaptive themes
47
57
  * @returns - boolean indicating if the adaptive themes are enabled
@@ -84,6 +94,7 @@ export class UnistylesRuntime {
84
94
 
85
95
  /**
86
96
  * Get the names of currently enabled plugins
97
+ * @deprecated - Plugins will be removed in the next major release
87
98
  * @returns - The names of currently enabled plugins
88
99
  */
89
100
  get enabledPlugins() {
@@ -172,6 +183,16 @@ export class UnistylesRuntime {
172
183
  return parseFloat(this.unistylesBridge.fontScale.toFixed(2));
173
184
  }
174
185
 
186
+ /**
187
+ * Get the hairline width
188
+ * @returns - The thinnest width of the platform
189
+ */
190
+ get hairlineWidth() {
191
+ const pixelRatio = this.pixelRatio;
192
+ const nearestPixel = Math.trunc(pixelRatio * 0.4) || 1;
193
+ return nearestPixel / pixelRatio;
194
+ }
195
+
175
196
  /**
176
197
  * Get the immersive mode (both status bar and navigation bar hidden (Android))
177
198
  * @param isEnabled
@@ -226,6 +247,7 @@ export class UnistylesRuntime {
226
247
 
227
248
  /**
228
249
  * Enable a plugin
250
+ * @deprecated - Plugins will be removed in the next major release
229
251
  * @param plugin - Plugin that conforms to UnistylesPlugin interface
230
252
  */
231
253
  addPlugin = plugin => {
@@ -234,6 +256,7 @@ export class UnistylesRuntime {
234
256
 
235
257
  /**
236
258
  * Disable a plugin
259
+ * @deprecated - Plugins will be removed in the next major release
237
260
  * @param plugin - Plugin that conforms to UnistylesPlugin interface
238
261
  */
239
262
  removePlugin = plugin => {
@@ -1 +1 @@
1
- {"version":3,"names":["ScreenOrientation","UnistylesError","parseColor","UnistylesRuntime","constructor","unistylesBridge","unistylesRegistry","miniRuntime","contentSizeCategory","breakpoint","screen","insets","statusBar","width","height","navigationBar","orientation","pixelRatio","fontScale","colorScheme","hasAdaptiveThemes","themeName","breakpoints","enabledPlugins","screenWidth","screenHeight","setColor","color","alpha","parsedColor","parsedAlpha","setHidden","hidden","Landscape","Portrait","parseFloat","toFixed","setImmersiveMode","isEnabled","setRootViewBackgroundColor","setTheme","name","hasTheme","useTheme","Error","ThemeNotRegistered","updateTheme","updater","getTheme","setAdaptiveThemes","enable","useAdaptiveThemes","addPlugin","plugin","removePlugin"],"sourceRoot":"../../../src","sources":["core/UnistylesRuntime.ts"],"mappings":"AAAA,SAASA,iBAAiB,EAAEC,cAAc,QAAQ,WAAW;AAI7D,SAASC,UAAU,QAAQ,UAAU;;AAErC;AACA;AACA;AACA,OAAO,MAAMC,gBAAgB,CAAC;EAC1BC,WAAWA,CAASC,eAAgC,EAAUC,iBAAmC,EAAE;IAAA,KAA/ED,eAAgC,GAAhCA,eAAgC;IAAA,KAAUC,iBAAmC,GAAnCA,iBAAmC;EAAG;;EAEpG;AACJ;AACA;AACA;EACI,IAAWC,WAAWA,CAAA,EAAG;IACrB,OAAO;MACHC,mBAAmB,EAAE,IAAI,CAACA,mBAAmB;MAC7CC,UAAU,EAAE,IAAI,CAACA,UAAU;MAC3BC,MAAM,EAAE,IAAI,CAACA,MAAM;MACnBC,MAAM,EAAE,IAAI,CAACA,MAAM;MACnBC,SAAS,EAAE;QACPC,KAA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A;AACA;AACA;AACA;EACWC,WAAW,GAAGA,CAACL,IAA2B,EAAEM,OAAkG,KAAK;IACtJ,IAAI,CAACzC,iBAAiB,CAACwC,WAAW,CAACL,IAAI,EAAEM,OAAO,CAAC,IAAI,CAACzC,iBAAiB,CAAC0C,QAAQ,CAACP,IAAI,CAAC,CAAC,CAAC;EAC5F,CAAC;;EAED;AACJ;AACA;AACA;EACWQ,iBAAiB,GAAIC,MAAe,IAAK;IAC5C,IAAI,CAAC7C,eAAe,CAAC8C,iBAAiB,CAACD,MAAM,CAAC;EAClD,CAAC;;EAED;AACJ;AACA;AACA;EACWE,SAAS,GAAIC,MAAuB,IAAK;IAC5C,IAAI,CAAC/C,iBAAiB,CAAC8C,SAAS,CAACC,MAAM,CAAC;EAC5C,CAAC;;EAED;AACJ;AACA;AACA;EACWC,YAAY,GAAID,MAAuB,IAAK;IAC/C,IAAI,CAAC/C,iBAAiB,CAACgD,YAAY,CAACD,MAAM,CAAC;EAC/C,CAAC;AACL","ignoreList":[]}
1
+ {"version":3,"names":["ScreenOrientation","UnistylesError","parseColor","UnistylesRuntime","constructor","unistylesBridge","unistylesRegistry","miniRuntime","contentSizeCategory","breakpoint","screen","insets","statusBar","width","height","navigationBar","orientation","pixelRatio","fontScale","hairlineWidth","rtl","colorScheme","hasAdaptiveThemes","themeName","breakpoints","enabledPlugins","screenWidth","screenHeight","setColor","color","alpha","parsedColor","parsedAlpha","setHidden","hidden","Landscape","Portrait","parseFloat","toFixed","nearestPixel","Math","trunc","setImmersiveMode","isEnabled","setRootViewBackgroundColor","setTheme","name","hasTheme","useTheme","Error","ThemeNotRegistered","updateTheme","updater","getTheme","setAdaptiveThemes","enable","useAdaptiveThemes","addPlugin","plugin","removePlugin"],"sourceRoot":"../../../src","sources":["core/UnistylesRuntime.ts"],"mappings":"AAAA,SAASA,iBAAiB,EAAEC,cAAc,QAAQ,WAAW;AAI7D,SAASC,UAAU,QAAQ,qBAAqB;;AAEhD;AACA;AACA;AACA,OAAO,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uB,IAAK;IAC5C,IAAI,CAACpD,iBAAiB,CAACmD,SAAS,CAACC,MAAM,CAAC;EAC5C,CAAC;;EAED;AACJ;AACA;AACA;AACA;EACWC,YAAY,GAAID,MAAuB,IAAK;IAC/C,IAAI,CAACpD,iBAAiB,CAACqD,YAAY,CAACD,MAAM,CAAC;EAC/C,CAAC;AACL","ignoreList":[]}
@@ -22,7 +22,9 @@ export class UnistylesMockedRuntime {
22
22
  },
23
23
  orientation: this.orientation,
24
24
  pixelRatio: this.pixelRatio,
25
- fontScale: this.fontScale
25
+ fontScale: this.fontScale,
26
+ hairlineWidth: this.hairlineWidth,
27
+ rtl: this.rtl
26
28
  };
27
29
  }
28
30
  get colorScheme() {
@@ -44,6 +46,9 @@ export class UnistylesMockedRuntime {
44
46
  const firstBreakpoint = this.unistylesRegistry.sortedBreakpointPairs.at(0);
45
47
  return firstBreakpoint ? firstBreakpoint.at(0) : undefined;
46
48
  }
49
+ get rtl() {
50
+ return false;
51
+ }
47
52
  get breakpoints() {
48
53
  return this.unistylesRegistry.breakpoints;
49
54
  }
@@ -67,6 +72,9 @@ export class UnistylesMockedRuntime {
67
72
  get pixelRatio() {
68
73
  return 1.0;
69
74
  }
75
+ get hairlineWidth() {
76
+ return 0.333333;
77
+ }
70
78
  get fontScale() {
71
79
  return 1.0;
72
80
  }
@@ -1 +1 @@
1
- {"version":3,"names":["ScreenOrientation","UnistylesMockedRuntime","constructor","unistylesBridge","unistylesRegistry","miniRuntime","contentSizeCategory","breakpoint","screen","insets","statusBar","width","height","navigationBar","orientation","pixelRatio","fontScale","colorScheme","hasAdaptiveThemes","themeName","themeNames","length","at","undefined","sortedBreakpointPairs","firstBreakpoint","breakpoints","enabledPlugins","plugins","top","right","bottom","left","setColor","setHidden","Portrait","setTheme","name","updateTheme","theme","setAdaptiveThemes","enabled","addPlugin","plugin","removePlugin","setRootViewBackgroundColor","color","setImmersiveMode","isEnabled"],"sourceRoot":"../../../../src","sources":["core/mocks/UnistylesMockedRuntime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CAAA,EAAG;IACrB,OAAOd,iBAAiB,CAACmC,QAAQ;EACrC;EAEOC,QAAQ,GAAIC,IAA2B,IAAK,IAAI;EAChDC,WAAW,GAAGA,CAACD,IAA2B,EAAEE,KAA6C,KAAK,CAAC,CAAC;EAChGC,iBAAiB,GAAIC,OAAgB,IAAK,CAAC,CAAC;EAC5CC,SAAS,GAAIC,MAAuB,IAAK,CAAC,CAAC;EAC3CC,YAAY,GAAID,MAAuB,IAAK,CAAC,CAAC;EAC9CE,0BAA0B,GAAIC,KAAsB,IAAK,CAAC,CAAC;EAC3DC,gBAAgB,GAAIC,SAAkB,IAAK,CAAC,CAAC;AACxD","ignoreList":[]}
1
+ {"version":3,"names":["ScreenOrientation","UnistylesMockedRuntime","constructor","unistylesBridge","unistylesRegistry","miniRuntime","contentSizeCategory","breakpoint","screen","insets","statusBar","width","height","navigationBar","orientation","pixelRatio","fontScale","hairlineWidth","rtl","colorScheme","hasAdaptiveThemes","themeName","themeNames","length","at","undefined","sortedBreakpointPairs","firstBreakpoint","breakpoints","enabledPlugins","plugins","top","right","bottom","left","setColor","setHidden","Portrait","setTheme","name","updateTheme","theme","setAdaptiveThemes","enabled","addPlugin","plugin","removePlugin","setRootViewBackgroundColor","color","setImmersiveMode","isEnabled"],"sourceRoot":"../../../../src","sources":["core/mocks/UnistylesMockedRuntime.ts"],"mappings":"AAAA;AACA,SAASA,iBAAiB,QAAQ,cAAc;AAMhD,OAAO,MAAMC,sBAAsB,CAAC;EAGhCC,WAAWA,CAASC,eAAgC,EAAUC,iBAAmC,EAAE;IAAA,KAA/ED,eAAgC,GAAhCA,eAAgC;IAAA,KAAUC,iBAAmC,GAAnCA,iBAAmC;IAC7F,IAAI,CAACA,iBAAiB,GAAGA,iBAAuD;EACpF;EAEA,IAAWC,WAAWA,CAAA,EAAG;IACrB,OAAO;MACHC,mBAAmB,EAAE,IAAI,CAACA,mBAAmB;MAC7CC,UAAU,EAAE,IAAI,CAACA,UAAU;MAC3BC,MAAM,EA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CC,SAAS,GAAIC,MAAuB,IAAK,CAAC,CAAC;EAC3CC,YAAY,GAAID,MAAuB,IAAK,CAAC,CAAC;EAC9CE,0BAA0B,GAAIC,KAAsB,IAAK,CAAC,CAAC;EAC3DC,gBAAgB,GAAIC,SAAkB,IAAK,CAAC,CAAC;AACxD","ignoreList":[]}
@@ -6,7 +6,6 @@ const unistylesEvents = new NativeEventEmitter(NativeModules.Unistyles);
6
6
  export const useUnistyles = () => {
7
7
  const [plugins, setPlugins] = useState(unistyles.runtime.enabledPlugins);
8
8
  const [theme, setTheme] = useState(unistyles.registry.getTheme(unistyles.runtime.themeName));
9
- const [contentSizeCategory, setContentSizeCategory] = useState(unistyles.runtime.contentSizeCategory);
10
9
  const [layout, setLayout] = useState({
11
10
  breakpoint: unistyles.runtime.breakpoint,
12
11
  orientation: unistyles.runtime.orientation,
@@ -53,11 +52,6 @@ export const useUnistyles = () => {
53
52
  {
54
53
  return setPlugins(unistyles.runtime.enabledPlugins);
55
54
  }
56
- case UnistylesEventType.DynamicTypeSize:
57
- {
58
- const dynamicTypeSizeEvent = event;
59
- return setContentSizeCategory(dynamicTypeSizeEvent.payload.contentSizeCategory);
60
- }
61
55
  default:
62
56
  return;
63
57
  }
@@ -67,8 +61,7 @@ export const useUnistyles = () => {
67
61
  return {
68
62
  plugins,
69
63
  theme,
70
- layout,
71
- contentSizeCategory
64
+ layout
72
65
  };
73
66
  };
74
67
  //# sourceMappingURL=useUnistyles.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["NativeEventEmitter","NativeModules","useEffect","useState","unistyles","UnistylesEventType","unistylesEvents","Unistyles","useUnistyles","plugins","setPlugins","runtime","enabledPlugins","theme","setTheme","registry","getTheme","themeName","contentSizeCategory","setContentSizeCategory","layout","setLayout","breakpoint","orientation","screen","width","height","statusBar","navigationBar","insets","top","bottom","left","right","subscription","addListener","event","type","Theme","themeEvent","payload","Layout","layoutEvent","Plugin","DynamicTypeSize","dynamicTypeSizeEvent","remove"],"sourceRoot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AC;UACvD;QACA,KAAKP,kBAAkB,CAACuC,eAAe;UAAE;YACrC,MAAMC,oBAAoB,GAAGT,KAAsC;YAEnE,OAAOjB,sBAAsB,CAAC0B,oBAAoB,CAACL,OAAO,CAACtB,mBAAmB,CAAC;UACnF;QACA;UACI;MACR;IACJ,CACJ,CAAC;IAED,OAAOgB,YAAY,CAACY,MAAM;EAC9B,CAAC,EAAE,EAAE,CAAC;EAEN,OAAO;IACHrC,OAAO;IACPI,KAAK;IACLO,MAAM;IACNF;EACJ,CAAC;AACL,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["NativeEventEmitter","NativeModules","useEffect","useState","unistyles","UnistylesEventType","unistylesEvents","Unistyles","useUnistyles","plugins","setPlugins","runtime","enabledPlugins","theme","setTheme","registry","getTheme","themeName","layout","setLayout","breakpoint","orientation","screen","width","height","statusBar","navigationBar","insets","top","bottom","left","right","subscription","addListener","event","type","Theme","themeEvent","payload","Layout","layoutEvent","Plugin","remove"],"sourceRoot":"../../../src","sources":["hooks/useUnistyles.ts"],"mappings":"AAAA,SAASA,kBAAkB,EAAEC,aAAa,QAAQ,cAAc;AAChE,SAASC,SAAS,EAAEC,QAAQ,QAAQ,OAAO;AAC3C,SAASC,SAAS,QAAQ,SAAS;AACnC,SAASC,kBAAkB,QAAQ,WAAW;AAG9C,MAAMC,eAAe,GAAG,IAAIN,kBAAkB,CAACC,aAAa,CAACM,SAAS,CAAC;AAEvE,OAAO,MAAMC,YAAY,GAAGA,CAAA,KAAM;EAC9B,MAAM,CAACC,OAAO,EAAEC,UAAU,CAAC,GAAGP,QAAQ,CAACC,SAAS,CAACO,OAAO,CAACC,cAAc,CAAC;EACxE,MAAM,CAACC,KAAK,EAAEC,QAAQ,CAAC,GAAGX,QAAQ,CAACC,SAAS,CAACW,QAAQ,CAACC,QAAQ,CAACZ,SAAS,CAACO,OAAO,CAACM,SAAS,CAAC,CAAC;EAC5F,MAAM,CAACC,MAAM,EAAEC,SAAS,CAAC,GAAGhB,QAAQ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AAM;UAAE;YAC5B,MAAMC,WAAW,GAAGN,KAAmC;YAEvD,OAAOf,SAAS,CAAC;cACbC,UAAU,EAAEoB,WAAW,CAACF,OAAO,CAAClB,UAAU;cAC1CC,WAAW,EAAEmB,WAAW,CAACF,OAAO,CAACjB,WAAW;cAC5CC,MAAM,EAAEkB,WAAW,CAACF,OAAO,CAAChB,MAAM;cAClCG,SAAS,EAAEe,WAAW,CAACF,OAAO,CAACb,SAAS;cACxCE,MAAM,EAAEa,WAAW,CAACF,OAAO,CAACX,MAAM;cAClCD,aAAa,EAAEc,WAAW,CAACF,OAAO,CAACZ;YACvC,CAAC,CAAC;UACN;QACA,KAAKrB,kBAAkB,CAACoC,MAAM;UAAE;YAC5B,OAAO/B,UAAU,CAACN,SAAS,CAACO,OAAO,CAACC,cAAc,CAAC;UACvD;QACA;UACI;MACR;IACJ,CACJ,CAAC;IAED,OAAOoB,YAAY,CAACU,MAAM;EAC9B,CAAC,EAAE,EAAE,CAAC;EAEN,OAAO;IACHjC,OAAO;IACPI,KAAK;IACLK;EACJ,CAAC;AACL,CAAC","ignoreList":[]}
@@ -37,8 +37,7 @@ export declare enum AndroidContentSizeCategory {
37
37
  export declare enum UnistylesEventType {
38
38
  Theme = "theme",
39
39
  Layout = "layout",
40
- Plugin = "plugin",
41
- DynamicTypeSize = "dynamicTypeSize"
40
+ Plugin = "plugin"
42
41
  }
43
42
  export declare enum UnistylesError {
44
43
  RuntimeUnavailable = "Unistyles runtime is not available. Make sure you followed the installation instructions",
@@ -1 +1 @@
1
- {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/common.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,YAAa,MAAM,SAEnC,CAAA;AAED,eAAO,MAAM,KAAK,SAAwB,CAAA;AAC1C,eAAO,MAAM,KAAK,SAAwB,CAAA;AAC1C,eAAO,MAAM,SAAS,SAA4B,CAAA;AAClD,eAAO,MAAM,QAAQ,SAAqB,CAAA;AAC1C,eAAO,MAA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C,QAAQ;IAQhB,OAAO,CAAC,cAAc;IAkCtB,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
+ {"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;IAkCtB,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"}
@@ -31,12 +31,19 @@ export declare class UnistylesRuntime {
31
31
  orientation: "landscape" | "portrait";
32
32
  pixelRatio: number;
33
33
  fontScale: number;
34
+ hairlineWidth: number;
35
+ rtl: boolean;
34
36
  };
35
37
  /**
36
38
  * Get the current color scheme
37
39
  * @returns - The current color scheme
38
40
  */
39
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;
40
47
  /**
41
48
  * Get info about adaptive themes
42
49
  * @returns - boolean indicating if the adaptive themes are enabled
@@ -64,6 +71,7 @@ export declare class UnistylesRuntime {
64
71
  get breakpoints(): import("../global").UnistylesBreakpoints;
65
72
  /**
66
73
  * Get the names of currently enabled plugins
74
+ * @deprecated - Plugins will be removed in the next major release
67
75
  * @returns - The names of currently enabled plugins
68
76
  */
69
77
  get enabledPlugins(): string[];
@@ -115,6 +123,11 @@ export declare class UnistylesRuntime {
115
123
  * @returns - The font scale
116
124
  */
117
125
  get fontScale(): number;
126
+ /**
127
+ * Get the hairline width
128
+ * @returns - The thinnest width of the platform
129
+ */
130
+ get hairlineWidth(): number;
118
131
  /**
119
132
  * Get the immersive mode (both status bar and navigation bar hidden (Android))
120
133
  * @param isEnabled
@@ -146,11 +159,13 @@ export declare class UnistylesRuntime {
146
159
  setAdaptiveThemes: (enable: boolean) => void;
147
160
  /**
148
161
  * Enable a plugin
162
+ * @deprecated - Plugins will be removed in the next major release
149
163
  * @param plugin - Plugin that conforms to UnistylesPlugin interface
150
164
  */
151
165
  addPlugin: (plugin: UnistylesPlugin) => void;
152
166
  /**
153
167
  * Disable a plugin
168
+ * @deprecated - Plugins will be removed in the next major release
154
169
  * @param plugin - Plugin that conforms to UnistylesPlugin interface
155
170
  */
156
171
  removePlugin: (plugin: UnistylesPlugin) => void;
@@ -1 +1 @@
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;;;;;;;;;;;;;;;;;;;MAkBrB;IAED;;;OAGG;IACH,IAAW,WAAW,uCAErB;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;;;OAGG;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,MAAM;4BAKpB,OAAO;MAElC;IAED;;;OAGG;IACH,IAAW,WAAW,6BAQrB;IAED;;;OAGG;IACH,IAAW,UAAU,WAEpB;IAED;;;OAGG;IACH,IAAW,SAAS,WAEnB;IAED;;;OAGG;IACI,gBAAgB,CAAC,SAAS,EAAE,OAAO;IAI1C;;;;OAIG;IACI,0BAA0B,WAAY,KAAK,UAAU,MAAM,UAIjE;IAED;;;;OAIG;IACI,QAAQ,SAAU,MAAM,eAAe,sBAY7C;IAED;;;;;OAKG;IACI,WAAW,SAAU,MAAM,eAAe,mBAAmB,eAAe,CAAC,MAAM,eAAe,CAAC,KAAK,eAAe,CAAC,MAAM,eAAe,CAAC,UAEpJ;IAED;;;OAGG;IACI,iBAAiB,WAAY,OAAO,UAE1C;IAED;;;OAGG;IACI,SAAS,WAAY,eAAe,UAE1C;IAED;;;OAGG;IACI,YAAY,WAAY,eAAe,UAE7C;CACJ"}
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,WAA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M,eAAe,CAAC,UAEpJ;IAED;;;OAGG;IACI,iBAAiB,WAAY,OAAO,UAE1C;IAED;;;;OAIG;IACI,SAAS,WAAY,eAAe,UAE1C;IAED;;;;OAIG;IACI,YAAY,WAAY,eAAe,UAE7C;CACJ"}
@@ -30,12 +30,15 @@ export declare class UnistylesMockedRuntime {
30
30
  orientation: "portrait";
31
31
  pixelRatio: number;
32
32
  fontScale: number;
33
+ hairlineWidth: number;
34
+ rtl: boolean;
33
35
  };
34
36
  get colorScheme(): string;
35
37
  get hasAdaptiveThemes(): boolean;
36
38
  get themeName(): undefined;
37
39
  get contentSizeCategory(): string;
38
40
  get breakpoint(): number | keyof import("../../global").UnistylesBreakpoints | undefined;
41
+ get rtl(): boolean;
39
42
  get breakpoints(): import("../../global").UnistylesBreakpoints;
40
43
  get enabledPlugins(): UnistylesPlugin[];
41
44
  get screen(): {
@@ -49,6 +52,7 @@ export declare class UnistylesMockedRuntime {
49
52
  left: number;
50
53
  };
51
54
  get pixelRatio(): number;
55
+ get hairlineWidth(): number;
52
56
  get fontScale(): number;
53
57
  get statusBar(): {
54
58
  height: number;
@@ -1 +1 @@
1
- {"version":3,"file":"UnistylesMockedRuntime.d.ts","sourceRoot":"","sources":["../../../../../src/core/mocks/UnistylesMockedRuntime.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAC1E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAEnD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAE3D,qBAAa,sBAAsB;IAGnB,OAAO,CAAC,eAAe;IAAmB,OAAO,CAAC,iBAAiB;IAF/E,OAAO,CAAC,iBAAiB,CAAyB;gBAE9B,eAAe,EAAE,eAAe,EAAU,iBAAiB,EAAE,gBAAgB;IAIjG,IAAW,WAAW;;;;;;;;;;;;;;;;;;;;;;;;MAkBrB;IAED,IA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B;IAED,IAAW,mBAAmB,WAE7B;IAED,IAAW,UAAU,2EAUpB;IAED,IAAW,GAAG,YAEb;IAED,IAAW,WAAW,gDAErB;IAED,IAAW,cAAc,sBAExB;IAED,IAAW,MAAM;;;MAKhB;IAED,IAAW,MAAM;;;;;MAOhB;IAED,IAAW,UAAU,WAEpB;IAED,IAAW,aAAa,WAEvB;IAED,IAAW,SAAS,WAEnB;IAED,IAAW,SAAS;;;;;MAOnB;IAED,IAAW,aAAa;;;;;MAOvB;IAED,IAAW,WAAW,eAErB;IAEM,QAAQ,SAAU,MAAM,eAAe,aAAS;IAChD,WAAW,SAAU,MAAM,eAAe,SAAS,eAAe,CAAC,MAAM,eAAe,CAAC,UAAO;IAChG,iBAAiB,YAAa,OAAO,UAAO;IAC5C,SAAS,WAAY,eAAe,UAAO;IAC3C,YAAY,WAAY,eAAe,UAAO;IAC9C,0BAA0B,WAAY,KAAK,GAAG,MAAM,UAAO;IAC3D,gBAAgB,cAAe,OAAO,UAAO;CACvD"}
@@ -23,6 +23,5 @@ export declare const useUnistyles: () => {
23
23
  right: number;
24
24
  };
25
25
  };
26
- contentSizeCategory: import("../common").IOSContentSizeCategory | import("../common").AndroidContentSizeCategory;
27
26
  };
28
27
  //# sourceMappingURL=useUnistyles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useUnistyles.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useUnistyles.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;CAwExB,CAAA"}
1
+ {"version":3,"file":"useUnistyles.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useUnistyles.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;CAiExB,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import { mq } from './utils';
2
2
  import { useInitialTheme } from './hooks';
3
- import type { UnistylesPlugin, UnistylesValues, ExtractVariantNames } from './types';
3
+ import type { UnistylesPlugin, UnistylesValues, UnistyleText, UnistyleView, UnistyleImage, ExtractVariantNames } from './types';
4
4
  import type { UnistylesThemes, UnistylesBreakpoints } from './global';
5
5
  import { ScreenOrientation, AndroidContentSizeCategory, IOSContentSizeCategory } from './common';
6
6
  import { useStyles } from './useStyles';
@@ -73,5 +73,5 @@ declare const UnistylesRegistry: {
73
73
  };
74
74
  declare const UnistylesRuntime: import("./core").UnistylesRuntime;
75
75
  export { mq, useStyles, useInitialTheme, createStyleSheet, ScreenOrientation, AndroidContentSizeCategory, IOSContentSizeCategory, UnistylesRegistry, UnistylesRuntime };
76
- export type { UnistylesThemes, UnistylesBreakpoints, UnistylesPlugin, UnistylesValues, ExtractVariantNames as UnistylesVariants };
76
+ export type { UnistylesThemes, UnistylesBreakpoints, UnistylesPlugin, UnistylesValues, UnistyleText, UnistyleView, UnistyleImage, ExtractVariantNames as UnistylesVariants };
77
77
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAA;AAC5B,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AACzC,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AACpF,OAAO,KAAK,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAA;AACrE,OAAO,EAAE,iBAAiB,EAAE,0BAA0B,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAA;AAChG,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAErD;;;GAGG;AACH,QAAA,MAAM,iBAAiB;IACnB;;;OAGG;;;;;;;;;;;;;;;;;IAEH;;;OAGG;;;;;;;;;;;;;;;;;IAEH;;;OAGG;;;;;;;;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,EACf,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,mBAAmB,IAAI,iBAAiB,EAC3C,CAAA"}
@@ -3,7 +3,7 @@ export * from './unistyles';
3
3
  export * from './color';
4
4
  export type { Optional, Nullable } from './common';
5
5
  export type { NestedStylePairs, UnistylesTheme, ScreenSize, NestedStyle, RNValue, RNStyle } from './core';
6
- export type { StyleSheetWithSuperPowers, StyleSheet, AllAvailableKeys, UnistylesValues } from './stylesheet';
6
+ export type { StyleSheetWithSuperPowers, StyleSheet, AllAvailableKeys, UnistylesValues, UnistyleText, UnistyleView, UnistyleImage } from './stylesheet';
7
7
  export type { ReactNativeStyleSheet } from './breakpoints';
8
8
  export type { ExtractVariantNames } from './variants';
9
9
  export type { UnistylesPlugin } from './plugin';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA;AAC3B,cAAc,SAAS,CAAA;AACvB,YAAY,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AAClD,YAAY,EACR,gBAAgB,EAChB,cAAc,EACd,UAAU,EACV,WAAW,EACX,OAAO,EACP,OAAO,EACV,MAAM,QAAQ,CAAA;AACf,YAAY,EACR,yBAAyB,EACzB,UAAU,EACV,gBAAgB,EAChB,eAAe,EAClB,MAAM,cAAc,CAAA;AACrB,YAAY,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAA;AAC1D,YAAY,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AACrD,YAAY,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA;AAC3B,cAAc,SAAS,CAAA;AACvB,YAAY,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AAClD,YAAY,EACR,gBAAgB,EAChB,cAAc,EACd,UAAU,EACV,WAAW,EACX,OAAO,EACP,OAAO,EACV,MAAM,QAAQ,CAAA;AACf,YAAY,EACR,yBAAyB,EACzB,UAAU,EACV,gBAAgB,EAChB,eAAe,EACf,YAAY,EACZ,YAAY,EACZ,aAAa,EAChB,MAAM,cAAc,CAAA;AACrB,YAAY,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAA;AAC1D,YAAY,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AACrD,YAAY,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA"}
@@ -3,9 +3,9 @@ import type { ShadowOffset, TransformStyles, UnistylesTheme } from './core';
3
3
  import type { UnistylesBreakpoints } from '../global';
4
4
  import type { UnistylesMiniRuntime } from '../core';
5
5
  type NestedKeys = 'shadowOffset' | 'transform' | 'textShadowOffset';
6
- type UnistyleView = Omit<ViewStyle, NestedKeys>;
7
- type UnistyleText = Omit<TextStyle, NestedKeys>;
8
- type UnistyleImage = Omit<ImageStyle, NestedKeys>;
6
+ export type UnistyleView = Omit<ViewStyle, NestedKeys>;
7
+ export type UnistyleText = Omit<TextStyle, NestedKeys>;
8
+ export type UnistyleImage = Omit<ImageStyle, NestedKeys>;
9
9
  type UnistyleNestedStyles = {
10
10
  shadowOffset?: ToDeepUnistyles<ShadowOffset>;
11
11
  textShadowOffset?: ToDeepUnistyles<ShadowOffset>;
@@ -1 +1 @@
1
- {"version":3,"file":"stylesheet.d.ts","sourceRoot":"","sources":["../../../../src/types/stylesheet.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AACpE,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAA;AAC3E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAA;AACrD,OAAO,KAAK,EAAE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yB,GAAG,CAAC,CAAC,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,oBAAoB,KAAK,UAAU,CAAC,GAAG,UAAU,CAAA"}
@@ -43,6 +43,7 @@ export type UnistylesBridge = {
43
43
  navigationBar: NavigationBar;
44
44
  pixelRatio: number;
45
45
  fontScale: number;
46
+ rtl: boolean;
46
47
  themes: Array<keyof UnistylesThemes>;
47
48
  useBreakpoints(breakpoints: UnistylesBreakpoints): void;
48
49
  useTheme(name: keyof UnistylesThemes): void;
@@ -74,11 +75,5 @@ export type UnistylesMobileLayoutEvent = {
74
75
  export type UnistylesPluginEvent = {
75
76
  type: UnistylesEventType.Plugin;
76
77
  };
77
- export type UnistylesDynamicTypeSizeEvent = {
78
- type: UnistylesEventType.DynamicTypeSize;
79
- payload: {
80
- contentSizeCategory: IOSContentSizeCategory | AndroidContentSizeCategory;
81
- };
82
- };
83
- export type UnistylesEvents = UnistylesThemeEvent | UnistylesMobileLayoutEvent | UnistylesPluginEvent | UnistylesDynamicTypeSizeEvent;
78
+ export type UnistylesEvents = UnistylesThemeEvent | UnistylesMobileLayoutEvent | UnistylesPluginEvent;
84
79
  //# sourceMappingURL=unistyles.d.ts.map