react-native-unistyles 3.0.0-alpha.31 → 3.0.0-alpha.32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (86) hide show
  1. package/cxx/core/UnistylesRegistry.cpp +3 -2
  2. package/cxx/parser/Parser.cpp +3 -3
  3. package/cxx/shadowTree/ShadowTrafficController.h +11 -1
  4. package/lib/commonjs/core/createUnistylesComponent.native.js +2 -3
  5. package/lib/commonjs/core/useBreakpoint.js.map +1 -1
  6. package/lib/commonjs/core/useBreakpoint.native.js.map +2 -1
  7. package/lib/commonjs/core/useTheme.native.js.map +2 -1
  8. package/lib/commonjs/global.js +2 -1
  9. package/lib/commonjs/global.js.map +1 -1
  10. package/lib/commonjs/mq.js +4 -1
  11. package/lib/commonjs/mq.js.map +1 -2
  12. package/lib/commonjs/specs/NativePlatform/NativePlatform.nitro.js +5 -4
  13. package/lib/commonjs/specs/NativePlatform/index.js.map +1 -1
  14. package/lib/commonjs/specs/ShadowRegistry/ShadowRegistry.nitro.js.map +1 -1
  15. package/lib/commonjs/specs/ShadowRegistry/types.js +2 -1
  16. package/lib/commonjs/specs/ShadowRegistry/types.js.map +1 -1
  17. package/lib/commonjs/specs/StatusBar/UnistylesStatusBar.nitro.js.map +1 -1
  18. package/lib/commonjs/specs/StyleSheet/index.js.map +1 -2
  19. package/lib/commonjs/specs/TurboUnistyles/NativeTurboUnistyles.js +1 -3
  20. package/lib/commonjs/specs/TurboUnistyles/NativeTurboUnistyles.js.map +2 -1
  21. package/lib/commonjs/specs/index.web.js.map +1 -2
  22. package/lib/commonjs/specs/types.js +10 -10
  23. package/lib/commonjs/types/stylesheet.js +1 -2
  24. package/lib/commonjs/types/variants.js.map +1 -1
  25. package/lib/commonjs/web/convert/boxShadow.js +4 -1
  26. package/lib/commonjs/web/convert/boxShadow.js.map +1 -2
  27. package/lib/commonjs/web/convert/shadow.js.map +2 -1
  28. package/lib/commonjs/web/convert/textShadow.js +1 -4
  29. package/lib/commonjs/web/convert/textShadow.js.map +2 -1
  30. package/lib/commonjs/web/convert/types.js.map +1 -1
  31. package/lib/commonjs/web/listener.js.map +2 -1
  32. package/lib/commonjs/web/mock.js.map +2 -1
  33. package/lib/commonjs/web/mq.js.map +1 -1
  34. package/lib/commonjs/web/registry.js +3 -1
  35. package/lib/commonjs/web/registry.js.map +1 -2
  36. package/lib/commonjs/web/runtime.js.map +1 -2
  37. package/lib/commonjs/web/state.js +5 -1
  38. package/lib/commonjs/web/state.js.map +1 -2
  39. package/lib/commonjs/web/utils/index.js.map +1 -1
  40. package/lib/commonjs/web/utils/unistyle.js.map +1 -2
  41. package/lib/commonjs/web/variants/getVariants.js.map +1 -2
  42. package/lib/commonjs/web/variants/index.js.map +1 -1
  43. package/lib/module/core/index.js.map +1 -1
  44. package/lib/module/core/useBreakpoint.js.map +1 -1
  45. package/lib/module/core/useBreakpoint.native.js.map +1 -2
  46. package/lib/module/core/useTheme.js.map +2 -1
  47. package/lib/module/mq.js +4 -1
  48. package/lib/module/mq.js.map +1 -2
  49. package/lib/module/specs/NativePlatform/NativePlatform.nitro.js +5 -6
  50. package/lib/module/specs/ShadowRegistry/types.js.map +2 -1
  51. package/lib/module/specs/StyleSheet/UnistylesStyleSheet.nitro.js +2 -2
  52. package/lib/module/specs/StyleSheet/UnistylesStyleSheet.nitro.js.map +2 -1
  53. package/lib/module/specs/TurboUnistyles/NativeTurboUnistyles.js.map +2 -1
  54. package/lib/module/specs/UnistylesRuntime/UnistylesRuntime.nitro.js.map +2 -1
  55. package/lib/module/specs/index.web.js.map +1 -2
  56. package/lib/module/types/accessibility.js +10 -10
  57. package/lib/module/types/accessibility.js.map +1 -2
  58. package/lib/module/types/breakpoints.js.map +2 -1
  59. package/lib/module/types/common.js +3 -1
  60. package/lib/module/types/common.js.map +1 -2
  61. package/lib/module/types/core.js.map +1 -2
  62. package/lib/module/types/index.js.map +1 -2
  63. package/lib/module/types/stylesheet.js +2 -2
  64. package/lib/module/types/variants.js.map +1 -2
  65. package/lib/module/web/convert/boxShadow.js +1 -4
  66. package/lib/module/web/convert/boxShadow.js.map +2 -1
  67. package/lib/module/web/convert/pseudo.js.map +2 -1
  68. package/lib/module/web/convert/textShadow.js.map +1 -2
  69. package/lib/module/web/convert/transform.js.map +2 -1
  70. package/lib/module/web/convert/types.js.map +1 -1
  71. package/lib/module/web/convert/utils.js.map +1 -2
  72. package/lib/module/web/create.js +5 -1
  73. package/lib/module/web/create.js.map +1 -2
  74. package/lib/module/web/index.js +2 -1
  75. package/lib/module/web/listener.js.map +1 -2
  76. package/lib/module/web/mq.js.map +1 -1
  77. package/lib/module/web/registry.js.map +2 -1
  78. package/lib/module/web/runtime.js.map +2 -1
  79. package/lib/module/web/shadowRegistry.js +1 -9
  80. package/lib/module/web/state.js +5 -1
  81. package/lib/module/web/state.js.map +1 -2
  82. package/lib/module/web/utils/index.js.map +1 -1
  83. package/lib/module/web/utils/unistyle.js.map +1 -2
  84. package/lib/module/web/variants/index.js.map +1 -1
  85. package/lib/module/web/variants/useVariants.js.map +2 -1
  86. package/package.json +1 -1
@@ -1 +1,2 @@
1
- {"version":3,"names":["UnistyleDependency","ColorScheme","Orientation","WebContentSizeCategory","UnistylesListener","NavigationBar","StatusBar","UnistylesState","hexToRGBA","isServer","schemeToTheme","UnistylesRuntimeBuilder","lightMedia","getLightMedia","darkMedia","getDarkMedia","window","matchMedia","colorScheme","matches","Light","Dark","Unspecified","themeName","contentSizeCategory","breakpoint","orientation","Portrait","screen","type","includes","Landscape","theme","getTheme","pixelRatio","devicePixelRatio","width","height","innerWidth","innerHeight","fontScale","insets","top","bottom","left","right","ime","statusBar","rtl","document","documentElement","dir","hasAdaptiveThemes","navigationBar","miniRuntime","isLandscape","isPortrait","setTheme","UnistylesRuntime","emitChange","Theme","ThemeName","setAdaptiveThemes","isEnabled","setRootViewBackgroundColor","hex","alpha","style","backgroundColor","setImmersiveMode","updateTheme","updater","oldTheme","themes","get","Error","set"],"sourceRoot":"../../../src","sources":["web/runtime.ts"],"mappings":";;AAAA,SAASA,kBAAkB,QAAQ,y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IAAI,CAACpD,SAAS,sBAAsB,CAAC;IACtE;IAEA,OAAOS,KAAK;EAChB,CAAC;AACL;AAEA,OAAO,MAAM0B,gBAAgB,GAAG,IAAI/C,uBAAuB,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["UnistyleDependency","ColorScheme","Orientation","WebContentSizeCategory","UnistylesListener","NavigationBar","StatusBar","UnistylesState","hexToRGBA","isServer","schemeToTheme","UnistylesRuntimeBuilder","lightMedia","getLightMedia","darkMedia","getDarkMedia","window","matchMedia","colorScheme","matches","Light","Dark","Unspecified","themeName","contentSizeCategory","breakpoint","orientation","Portrait","screen","type","includes","Landscape","theme","getTheme","pixelRatio","devicePixelRatio","width","height","innerWidth","innerHeight","fontScale","insets","top","bottom","left","right","ime","statusBar","rtl","document","documentElement","dir","hasAdaptiveThemes","navigationBar","miniRuntime","isLandscape","isPortrait","setTheme","UnistylesRuntime","emitChange","Theme","ThemeName","setAdaptiveThemes","isEnabled","setRootViewBackgroundColor","hex","alpha","style","backgroundColor","setImmersiveMode","updateTheme","updater","oldTheme","themes","get","Error","set"],"sourceRoot":"../../../src","sources":["web/runtime.js"],"mappings":";;AAAA,SAASA,kBAAkB,QAAQ,yBAAyB;AAC5D,SAASC,WAAW,EAAEC,WAAW,QAAQ,gBAAgB;AACzD,SAASC,sBAAsB,QAAQ,UAAU;AACjD,SAASC,iBAAiB,QAAQ,YAAY;AAC9C,SAASC,aAAa,EAAEC,SAAS,QAAQ,QAAQ;AACjD,SAASC,cAAc,QAAQ,SAAS;AACxC,SAASC,SAAS,EAAEC,QAAQ,EAAEC,aAAa,QAAQ,SAAS;AAC5D,MAAMC,uBAAuB,CAAC;EAC1BC,UAAU,GAAG,IAAI,CAACC,aAAa,CAAC,CAAC;EACjCC,SAAS,GAAG,IAAI,CAACC,YAAY,CAAC,CAAC;EAC/BF,aAAaA,CAAA,EAAG;IACZ,IAAIJ,QAAQ,CAAC,CAAC,EAAE;MACZ,OAAO,IAAI;IACf;IACA,IAA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AG;EACxF,CAAC;EACDI,gBAAgB,GAAGA,CAAA,KAAM,CAAE,CAAC;EAC5BC,WAAW,GAAGA,CAAC/C,SAAS,EAAEgD,OAAO,KAAK;IAClC,MAAMC,QAAQ,GAAGjE,cAAc,CAACkE,MAAM,CAACC,GAAG,CAACnD,SAAS,CAAC;IACrD,IAAI,CAACiD,QAAQ,EAAE;MACX,MAAM,IAAIG,KAAK,CAAC,aAAapD,SAAS,sBAAsB,CAAC;IACjE;IACAhB,cAAc,CAACkE,MAAM,CAACG,GAAG,CAACrD,SAAS,EAAEgD,OAAO,CAACC,QAAQ,CAAC,CAAC;EAC3D,CAAC;EACDvC,QAAQ,GAAGA,CAACV,SAAS,GAAG,IAAI,CAACA,SAAS,KAAK;IACvC,IAAI,CAACA,SAAS,EAAE;MACZ,MAAM,IAAIoD,KAAK,CAAC,uBAAuB,CAAC;IAC5C;IACA,MAAM3C,KAAK,GAAGzB,cAAc,CAACkE,MAAM,CAACC,GAAG,CAACnD,SAAS,CAAC;IAClD,IAAI,CAACS,KAAK,EAAE;MACR,MAAM,IAAI2C,KAAK,CAAC,aAAa,IAAI,CAACpD,SAAS,sBAAsB,CAAC;IACtE;IACA,OAAOS,KAAK;EAChB,CAAC;AACL;AACA,OAAO,MAAM0B,gBAAgB,GAAG,IAAI/C,uBAAuB,CAAC,CAAC","ignoreList":[]}
2
+ reList":[]}
@@ -11,7 +11,6 @@ class UnistylesShadowRegistryBuilder {
11
11
  toString = () => 'UnistylesShadowRegistry';
12
12
  dispose = () => {};
13
13
  // END MOCKS
14
-
15
14
  resultsMap = createDoubleMap();
16
15
  classNamesMap = createDoubleMap();
17
16
  add = (ref, _style, _variants, _args) => {
@@ -19,18 +18,15 @@ class UnistylesShadowRegistryBuilder {
19
18
  if (!_style) {
20
19
  return;
21
20
  }
22
-
23
21
  // Array of styles
24
22
  if (Array.isArray(_style)) {
25
23
  _style.forEach(style => this.add(ref, style, _variants, _args));
26
24
  return;
27
25
  }
28
-
29
26
  // Not a unistyle
30
27
  if (!Object.keys(_style).some(key => key.startsWith('__uni__'))) {
31
28
  return;
32
29
  }
33
-
34
30
  // Ref is unmounted, remove style tags from the document
35
31
  if (ref === null) {
36
32
  const secrets = extractSecrets(_style);
@@ -52,7 +48,6 @@ class UnistylesShadowRegistryBuilder {
52
48
  });
53
49
  return;
54
50
  }
55
-
56
51
  // Ref is not an HTMLElement
57
52
  if (!(ref instanceof HTMLElement)) {
58
53
  return;
@@ -77,18 +72,15 @@ class UnistylesShadowRegistryBuilder {
77
72
  }, variants));
78
73
  const resultWithVariants = deepMergeObjects(result, variantsResult ?? {});
79
74
  const oldResult = this.resultsMap.get(ref, __uni__key);
80
-
81
75
  // If results are the same do nothing
82
76
  if (equal(oldResult, resultWithVariants)) {
83
77
  return;
84
78
  }
85
79
  const oldClassNames = this.classNamesMap.get(ref, __uni__key);
86
-
87
80
  // Remove old styles
88
81
  if (oldResult) {
89
82
  UnistylesRegistry.remove(oldResult);
90
83
  }
91
-
92
84
  // Remove old classnames from the ref
93
85
  oldClassNames?.forEach(className => ref.classList.remove(className));
94
86
  this.resultsMap.set(ref, __uni__key, resultWithVariants);
@@ -115,4 +107,4 @@ class UnistylesShadowRegistryBuilder {
115
107
  remove = () => {};
116
108
  }
117
109
  export const UnistylesShadowRegistry = new UnistylesShadowRegistryBuilder();
118
- //# sourceMappingURL=shadowRegistry.js.map
110
+ //# sourceMappingURL=shadowRegistry.js.mapy.js.map
@@ -29,20 +29,24 @@ class UnistylesStateBuilder {
29
29
  initSettings = settings => {
30
30
  this.hasAdaptiveThemes = settings?.adaptiveThemes ?? false;
31
31
  const themeNames = Array.from(this.themes.keys());
32
+
32
33
  // Single theme + no settings
33
34
  if (!settings?.adaptiveThemes && !settings?.initialTheme && themeNames.length === 1) {
34
35
  this.themeName = themeNames[0];
35
36
  return;
36
37
  }
38
+
37
39
  // No settings
38
40
  if (!settings?.adaptiveThemes && !settings?.initialTheme) {
39
41
  throw new Error('🦄 You need to specify either "initialTheme" or "adaptiveThemes" in your config');
40
42
  }
43
+
41
44
  // Adaptive themes
42
45
  if (settings.adaptiveThemes) {
43
46
  this.themeName = schemeToTheme(UnistylesRuntime.colorScheme);
44
47
  return;
45
48
  }
49
+
46
50
  // Initial theme
47
51
  this.themeName = typeof settings.initialTheme === 'function' ? settings.initialTheme() : settings.initialTheme;
48
52
  };
@@ -62,4 +66,4 @@ class UnistylesStateBuilder {
62
66
  };
63
67
  }
64
68
  export const UnistylesState = new UnistylesStateBuilder();
65
- //# sourceMappingURL=state.js.map.map
69
+ //# sourceMappingURL=state.js.map
@@ -1,2 +1 @@
1
- {"version":3,"names":["UnistylesRuntime","isServer","schemeToTheme","UnistylesListener","UnistyleDependency","UnistylesStateBuilder","themes","Map","matchingBreakpoints","breakpoint","currentBreakpoint","Array","from","reverse","find","_key","value","hasAdaptiveThemes","init","config","initThemes","initBreakpoints","breakpoints","initSettings","settings","initListeners","Object","entries","forEach","themeName","theme","set","adaptiveThemes","themeNames","keys","initialTheme","length","Error","colorScheme","sort","a","b","mediaQuery","window","matchMedia","matches","addEventListener","event","emitChange","Breakpoints","UnistylesState"],"sourceRoot":"../../../src","sources":["web/state.js"],"mappings":";;AAAA,SAASA,gBAAgB,QAAQ,WAAW;AAC5C,SAASC,QAAQ,EAAEC,aAAa,QAAQ,SAAS;AACjD,SAASC,iBAAiB,QAAQ,YAAY;AAC9C,SAASC,kBAAkB,QAAQ,yBAAyB;AAC5D,MAAMC,qBAAqB,CAAC;EACxBC,MAAM,GAAG,IAAIC,GAAG,CAAC,CAAC;EAElBC,mBAAmB,GAAG,IAAID,GAAG,CAAC,CAAC;EAC/B,IAAIE,UAAUA,CAAA,EAAG;IACb,MAAM,CAACC,iBAAiB,CAAC,GAAGC,KAAK,CAACC,IAAI,CAAC,IAAI,CAACJ,mBAAmB,CAAC,CAC3DK,OAAO,CAAC,CAAC,CACTC,IAAI,CAAC,CAAC,CAACC,IAAI,EAAEC,KAAK,CAAC,KAAKA,KAAK,CAAC,IA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AAa,CAACF,gBAAgB,CAACsC,WAAW,CAAC;MAC5D;IACJ;IACA;IACA,IAAI,CAACT,SAAS,GAAG,OAAOL,QAAQ,CAACW,YAAY,KAAK,UAAU,GAAGX,QAAQ,CAACW,YAAY,CAAC,CAAC,GAAGX,QAAQ,CAACW,YAAY;EAClH,CAAC;EACDd,eAAe,GAAGA,CAACC,WAAW,GAAG,CAAC,CAAC,KAAK;IACpC,IAAI,CAACA,WAAW,GAAGA,WAAW;IAC9BI,MAAM,CAACC,OAAO,CAACL,WAAW,CAAC,CACtBiB,IAAI,CAAC,CAAC,GAAGC,CAAC,CAAC,EAAE,GAAGC,CAAC,CAAC,KAAKD,CAAC,GAAGC,CAAC,CAAC,CAC7Bb,OAAO,CAAC,CAAC,CAACnB,UAAU,EAAEO,KAAK,CAAC,KAAK;MAClC,IAAIf,QAAQ,CAAC,CAAC,EAAE;QACZ;MACJ;MACA,MAAMyC,UAAU,GAAGC,MAAM,CAACC,UAAU,CAAC,eAAe5B,KAAK,KAAK,CAAC;MAC/D,IAAI,CAACR,mBAAmB,CAACuB,GAAG,CAACtB,UAAU,EAAEiC,UAAU,CAACG,OAAO,CAAC;MAC5DH,UAAU,CAACI,gBAAgB,CAAC,QAAQ,EAAEC,KAAK,IAAI;QAC3C,IAAI,CAACvC,mBAAmB,CAACuB,GAAG,CAACtB,UAAU,EAAEsC,KAAK,CAACF,OAAO,CAAC;QACvD1C,iBAAiB,CAAC6C,UAAU,CAAC5C,kBAAkB,CAAC6C,WAAW,CAAC;MAChE,CAAC,CAAC;IACN,CAAC,CAAC;EACN,CAAC;AACL;AACA,OAAO,MAAMC,cAAc,GAAG,IAAI7C,qBAAqB,CAAC,CAAC","ignoreList":[]}
2
- noreList":[]}
1
+ {"version":3,"names":["UnistylesRuntime","isServer","schemeToTheme","UnistylesListener","UnistyleDependency","UnistylesStateBuilder","themes","Map","matchingBreakpoints","breakpoint","currentBreakpoint","Array","from","reverse","find","_key","value","hasAdaptiveThemes","init","config","initThemes","initBreakpoints","breakpoints","initSettings","settings","initListeners","Object","entries","forEach","themeName","theme","set","adaptiveThemes","themeNames","keys","initialTheme","length","Error","colorScheme","sort","a","b","mediaQuery","window","matchMedia","matches","addEventListener","event","emitChange","Breakpoints","UnistylesState"],"sourceRoot":"../../../src","sources":["web/state.ts"],"mappings":";;AAIA,SAASA,gBAAgB,QAAQ,WAAW;AAC5C,SAASC,QAAQ,EAAEC,aAAa,QAAQ,SAAS;AACjD,SAASC,iBAAiB,QAAQ,YAAY;AAC9C,SAASC,kBAAkB,QAAQ,yBAAyB;AAE5D,MAAMC,qBAAqB,CAAC;EACxBC,MAAM,GAAG,IAAIC,GAAG,CAAyB,CAAC;EAGlCC,mBAAmB,GAAG,IAAID,GAAG,CAAkB,CAAC;EAExD,IAAIE,UAAUA,CAAA,EAAG;IACb,MAAM,CAACC,iBAAiB,CAAC,GAAGC,KAAK,CAACC,IAAI,CAAC,IAAI,CAACJ,mBAAmB,CAAC,CAC3DK,OAAO,CAAC,CAAC,CACTC,IAAI,CAAC,CAAC,CAACC,IAAI,EAAEC,KAAK,CAAC,KAAKA,KAAK,CAAC,IAAI,EAAE;IAEzC,OAAON,iBAAiB;EAC5B;EAIAO,iBAAiB,GAAG,KAAK;EAEzBC,IAAI,GAAIC,MAAuB,IAAK;IAChC,IAAI,CAACC,UAAU,CAACD,MAAM,CAACb,MAAM,CAAC;IAC9B,IAAI,CAACe,eAAe,CAACF,MAAM,CAACG,WAAW,CAAC;IACxC,IAAI,CAACC,YAAY,CAACJ,MAAM,CAACK,QAAQ,CAAC;IAElC,IAAIvB,QAAQ,CAAC,CAAC,EAAE;MACZ;IACJ;IAEAE,iBAAiB,CAACsB,aAAa,CAAC,CAAC;EACrC,CAAC;EAEOL,UAAU,GAAGA,CAACd,MAAM,GAAG,CAAC,CAAoB,KAAK;IACrDoB,MAAM,CAACC,OAAO,CAACrB,MAAM,CAAC,CAACsB,OAAO,CAAC,CAAC,CAACC,SAAS,EAAEC,KAAK,CAA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K;MAC9B,IAAIf,QAAQ,CAAC,CAAC,EAAE;QACZ;MACJ;MAEA,MAAMyC,UAAU,GAAGC,MAAM,CAACC,UAAU,CAAC,eAAe5B,KAAK,KAAK,CAAC;MAC/D,IAAI,CAACR,mBAAmB,CAACuB,GAAG,CAACtB,UAAU,EAAEiC,UAAU,CAACG,OAAO,CAAC;MAE5DH,UAAU,CAACI,gBAAgB,CAAC,QAAQ,EAAEC,KAAK,IAAI;QAC3C,IAAI,CAACvC,mBAAmB,CAACuB,GAAG,CAACtB,UAAU,EAAEsC,KAAK,CAACF,OAAO,CAAC;QACvD1C,iBAAiB,CAAC6C,UAAU,CAAC5C,kBAAkB,CAAC6C,WAAW,CAAC;MAChE,CAAC,CAAC;IACN,CAAC,CAAC;EACV,CAAC;AACL;AAEA,OAAO,MAAMC,cAAc,GAAG,IAAI7C,qBAAqB,CAAC,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["web/utils/index.ts"],"mappings":";;AAAA,cAAc,UAAU;AACxB,cAAc,YAAY","ignoreList":[]}
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["web/utils/index.js"],"mappings":";;AAAA,cAAc,UAAU;AACxB,cAAc,YAAY","ignoreList":[]}
@@ -1,2 +1 @@
1
- {"version":3,"names":["ColorScheme","Orientation","isUnistylesMq","parseMq","UnistylesState","keyInObject","reduceObject","schemeToTheme","scheme","Dark","Light","hexToRGBA","hex","opacity","replace","split","map","x","parseInt","filter","num","isNaN","reduce","acc","color","concat","assignSecrets","object","secrets","Math","random","toString","slice","extractSecrets","Object","entries","key","value","startsWith","push","getStyles","values","returnValue","defineProperties","enumerable","configurable","isInDocument","element","document","body","contains","extractMediaQueryValue","query","_","px","match","undefined","Number","getMediaQuery","includes","minWidth","maxWidth","minHeight","maxHeight","Boolean","join","breakpoints","extractUnistyleDependencies","dependencies","uni__dependencies"],"sourceRoot":"../../../../src","sources":["web/utils/unistyle.js"],"mapp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O,CACHQ,QAAQ,GAAG,eAAeA,QAAQ,KAAK,GAAGJ,SAAS,EACnDK,QAAQ,GAAG,eAAeA,QAAQ,KAAK,GAAGL,SAAS,EACnDM,SAAS,GAAG,gBAAgBA,SAAS,KAAK,GAAGN,SAAS,EACtDO,SAAS,GAAG,gBAAgBA,SAAS,KAAK,GAAGP,SAAS,CACzD,CAACrC,MAAM,CAAC6C,OAAO,CAAC,CAACC,IAAI,CAAC,OAAO,CAAC;EACnC;EACA,MAAML,QAAQ,GAAGxD,cAAc,CAAC8D,WAAW,IAAI7D,WAAW,CAACD,cAAc,CAAC8D,WAAW,EAAEd,KAAK,CAAC,GAAGhD,cAAc,CAAC8D,WAAW,CAACd,KAAK,CAAC,GAAGI,SAAS;EAC7I,OAAO,eAAeI,QAAQ,IAAI,CAAC,KAAK;AAC5C,CAAC;AACD,OAAO,MAAMO,2BAA2B,GAAI9B,KAAK,IAAK;EAClD,MAAM+B,YAAY,GAAG/D,WAAW,CAACgC,KAAK,EAAE,mBAAmB,CAAC,GAAGA,KAAK,CAACgC,iBAAiB,GAAG,EAAE;EAC3F,OAAOD,YAAY;AACvB,CAAC","ignoreList":[]}
2
- ist":[]}
1
+ {"version":3,"names":["ColorScheme","Orientation","isUnistylesMq","parseMq","UnistylesState","keyInObject","reduceObject","schemeToTheme","scheme","Dark","Light","hexToRGBA","hex","opacity","replace","split","map","x","parseInt","filter","num","isNaN","reduce","acc","color","concat","assignSecrets","object","secrets","Math","random","toString","slice","extractSecrets","Object","entries","key","value","startsWith","push","getStyles","values","returnValue","defineProperties","enumerable","configurable","isInDocument","element","document","body","contains","extractMediaQueryValue","query","_","px","match","undefined","Number","getMediaQuery","includes","minWidth","maxWidth","minHeight","maxHeight","Boolean","join","breakpoints","extractUnistyleDependencies","dependencies","uni__dependencies"],"sourceRoot":"../../../../src","sources":["web/utils/unistyle.ts"],"mappings":";;AACA,SAASA,WAAW,EAAEC,WAAW,QAAQ,mBAAmB;AAE5D,SAASC,aAAa,EA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SAAS,EACnDK,QAAQ,GAAG,eAAeA,QAAQ,KAAK,GAAGL,SAAS,EACnDM,SAAS,GAAG,gBAAgBA,SAAS,KAAK,GAAGN,SAAS,EACtDO,SAAS,GAAG,gBAAgBA,SAAS,KAAK,GAAGP,SAAS,CACzD,CAACrC,MAAM,CAAC6C,OAAO,CAAC,CAACC,IAAI,CAAC,OAAO,CAAC;EACnC;EAEA,MAAML,QAAQ,GAAGxD,cAAc,CAAC8D,WAAW,IAAI7D,WAAW,CAACD,cAAc,CAAC8D,WAAW,EAAEd,KAAK,CAAC,GAAGhD,cAAc,CAAC8D,WAAW,CAACd,KAAK,CAAC,GAAGI,SAAS;EAE7I,OAAO,eAAeI,QAAQ,IAAI,CAAC,KAAK;AAC5C,CAAC;AAED,OAAO,MAAMO,2BAA2B,GAAI9B,KAAU,IAAK;EACvD,MAAM+B,YAAuC,GAAG/D,WAAW,CAACgC,KAAK,EAAE,mBAAmB,CAAC,GAAGA,KAAK,CAACgC,iBAAiB,GAAG,EAAE;EAEtH,OAAOD,YAAY;AACvB,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["web/variants/index.ts"],"mappings":";;AAAA,cAAc,eAAe;AAC7B,cAAc,eAAe","ignoreList":[]}
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["web/variants/index.js"],"mappings":";;AAAA,cAAc,eAAe;AAC7B,cAAc,eAAe","ignoreList":[]}
@@ -1 +1,2 @@
1
- {"version":3,"names":["useMemo","useRef","useState","equal","keyInObject","reduceObject","getVariants","createUseVariants","styles","setSelectedVariants","useVariants","selectedVariants","selectedVariantStylesMap","Map","lastSelectedVariantsRef","variantsChanged","current","combinedVariantStyles","result","forEach","key","value","set","styleEntry","selectedVariantStyles","get","Object","defineProperties","enumerable","configurable","keys","startsWith","secret","undefined","defineProperty"],"sourceRoot":"../../../../src","sources":["web/variants/useVariants.ts"],"mappings":";;AAAA,SAASA,OAAO,EAAEC,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,CAAC,CAAC,EAAEH,KAAK,KAAK;QACpFA,KAAK;QACLO,UAAU,EAAE,KAAK;QACjBC,YAAY,EAAE;MAClB,CAAC,CAAC,CAAC,CAAC;;MAEJ;MACAH,MAAM,CAACI,IAAI,CAACP,UAAU,CAAC,CAACJ,OAAO,CAACC,GAAG,IAAI;QACnC,IAAI,CAACA,GAAG,CAACW,UAAU,CAAC,kBAAkB,CAAC,EAAE;UACrC;QACJ;QAEA,MAAMC,MAAM,GAAG5B,WAAW,CAACmB,UAAU,EAAEH,GAAG,CAAC,GAAGG,UAAU,CAACH,GAAG,CAAC,GAAGa,SAAS;QAEzE,IAAI,CAACD,MAAM,EAAE;UACT;QACJ;QAEAN,MAAM,CAACQ,cAAc,CAACF,MAAM,EAAE,iBAAiB,EAAE;UAC7CX,KAAK,EAAEV;QACX,CAAC,CAAC;MACN,CAAC,CAAC;IACN,CAAC,CAAC;EACN,CAAC;EAEDe,MAAM,CAACQ,cAAc,CAAC1B,MAAM,EAAE,aAAa,EAAE;IACzCa,KAAK,EAAEX;EACX,CAAC,CAAC;AACN,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["useMemo","useRef","useState","equal","keyInObject","reduceObject","getVariants","createUseVariants","styles","setSelectedVariants","useVariants","selectedVariants","selectedVariantStylesMap","Map","lastSelectedVariantsRef","variantsChanged","current","combinedVariantStyles","result","forEach","key","value","set","styleEntry","selectedVariantStyles","get","Object","defineProperties","enumerable","configurable","keys","startsWith","secret","undefined","defineProperty"],"sourceRoot":"../../../../src","sources":["web/variants/useVariants.js"],"mappings":";;AAAA,SAASA,OAAO,EAAEC,MAAM,EAAEC,QAAQ,QAAQ,OAAO;AACjD,SAASC,KAAK,EAAEC,WAAW,EAAEC,YAAY,QAAQ,UAAU;AAC3D,SAASC,WAAW,QAAQ,eAAe;AAC3C,OAAO,MAAMC,iBAAiB,GAAGA,CAACC,MAAM,EAAEC,mBAAmB,KAAK;EAC9D,MAAMC,WAAW,GAAIC,gBAAgB,IAAK;I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CAAC,EAAE;UACrC;QACJ;QACA,MAAMC,MAAM,GAAG5B,WAAW,CAACmB,UAAU,EAAEH,GAAG,CAAC,GAAGG,UAAU,CAACH,GAAG,CAAC,GAAGa,SAAS;QACzE,IAAI,CAACD,MAAM,EAAE;UACT;QACJ;QACAN,MAAM,CAACQ,cAAc,CAACF,MAAM,EAAE,iBAAiB,EAAE;UAC7CX,KAAK,EAAEV;QACX,CAAC,CAAC;MACN,CAAC,CAAC;IACN,CAAC,CAAC;EACN,CAAC;EACDe,MAAM,CAACQ,cAAc,CAAC1B,MAAM,EAAE,aAAa,EAAE;IACzCa,KAAK,EAAEX;EACX,CAAC,CAAC;AACN,CAAC","ignoreList":[]}
2
+ []}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-unistyles",
3
- "version": "3.0.0-alpha.31",
3
+ "version": "3.0.0-alpha.32",
4
4
  "description": "Level up your React Native StyleSheet",
5
5
  "scripts": {
6
6
  "test": "jest",