react-native-unistyles 3.0.0-alpha.26 → 3.0.0-alpha.28

Sign up to get free protection for your applications and to get access to all the features.
Files changed (196) hide show
  1. package/cxx/core/UnistylesRegistry.cpp +4 -8
  2. package/cxx/core/UnistylesRegistry.h +1 -1
  3. package/cxx/core/UnistylesState.cpp +6 -10
  4. package/cxx/core/UnistylesState.h +2 -1
  5. package/cxx/hybridObjects/HybridStyleSheet.cpp +5 -2
  6. package/cxx/parser/Parser.cpp +73 -4
  7. package/cxx/parser/Parser.h +2 -0
  8. package/lib/commonjs/core/index.js.map +1 -1
  9. package/lib/commonjs/core/useTheme.js.map +1 -1
  10. package/lib/commonjs/core/useTheme.native.js.map +1 -1
  11. package/lib/commonjs/index.js.map +1 -1
  12. package/lib/commonjs/mq.js +1 -4
  13. package/lib/commonjs/mq.js.map +2 -1
  14. package/lib/commonjs/specs/NativePlatform/NativePlatform.nitro.js.map +1 -0
  15. package/lib/commonjs/specs/NavigtionBar/UnistylesNavigationBar.nitro.js.map +1 -1
  16. package/lib/commonjs/specs/NavigtionBar/index.js.map +2 -1
  17. package/lib/commonjs/specs/ShadowRegistry/ShadowRegistry.nitro.js.map +1 -1
  18. package/lib/commonjs/specs/ShadowRegistry/types.js +3 -0
  19. package/lib/commonjs/specs/ShadowRegistry/types.js.map +1 -1
  20. package/lib/commonjs/specs/StatusBar/UnistylesStatusBar.nitro.js.map +1 -1
  21. package/lib/commonjs/specs/StatusBar/index.js.map +2 -1
  22. package/lib/commonjs/specs/StyleSheet/UnistylesStyleSheet.nitro.js +2 -4
  23. package/lib/commonjs/specs/StyleSheet/UnistylesStyleSheet.nitro.js.map +1 -1
  24. package/lib/commonjs/specs/index.js.map +1 -1
  25. package/lib/commonjs/specs/types.js +10 -10
  26. package/lib/commonjs/specs/types.js.map +1 -1
  27. package/lib/commonjs/types/stylesheet.js.map +1 -1
  28. package/lib/commonjs/web/convert/index.js +1 -7
  29. package/lib/commonjs/web/convert/shadow.js +1 -5
  30. package/lib/commonjs/web/convert/shadow.js.map +2 -1
  31. package/lib/commonjs/web/convert/textShadow.js +1 -4
  32. package/lib/commonjs/web/convert/textShadow.js.map +2 -1
  33. package/lib/commonjs/web/convert/transform.js.map +2 -1
  34. package/lib/commonjs/web/create.js +1 -5
  35. package/lib/commonjs/web/create.js.map +2 -1
  36. package/lib/commonjs/web/mock.js.map +2 -1
  37. package/lib/commonjs/web/runtime.js.map +2 -1
  38. package/lib/commonjs/web/state.js.map +1 -1
  39. package/lib/commonjs/web/utils/common.js +1 -3
  40. package/lib/commonjs/web/utils/common.js.map +2 -1
  41. package/lib/commonjs/web/utils/unistyle.js.map +1 -1
  42. package/lib/commonjs/web/variants/index.js.map +1 -1
  43. package/lib/module/common.js.map +1 -1
  44. package/lib/module/core/useBreakpoint.js.map +1 -1
  45. package/lib/module/core/useBreakpoint.native.js.map +2 -1
  46. package/lib/module/core/useTheme.js.map +2 -1
  47. package/lib/module/core/useTheme.native.js.map +2 -1
  48. package/lib/module/index.js.map +1 -1
  49. package/lib/module/mq.js +1 -4
  50. package/lib/module/mq.js.map +2 -1
  51. package/lib/module/specs/NativePlatform/NativePlatform.nitro.js +5 -6
  52. package/lib/module/specs/NativePlatform/NativePlatform.nitro.js.map +1 -1
  53. package/lib/module/specs/NavigtionBar/UnistylesNavigationBar.nitro.js.map +1 -1
  54. package/lib/module/specs/NavigtionBar/index.js.map +2 -1
  55. package/lib/module/specs/ShadowRegistry/ShadowRegistry.nitro.js.map +1 -0
  56. package/lib/module/specs/ShadowRegistry/index.js.map +2 -1
  57. package/lib/module/specs/ShadowRegistry/types.js +2 -0
  58. package/lib/module/specs/ShadowRegistry/types.js.map +1 -1
  59. package/lib/module/specs/StatusBar/UnistylesStatusBar.nitro.js.map +1 -1
  60. package/lib/module/specs/StyleSheet/UnistylesStyleSheet.nitro.js +1 -1
  61. package/lib/module/specs/StyleSheet/UnistylesStyleSheet.nitro.js.map +1 -0
  62. package/lib/module/specs/TurboUnistyles/NativeTurboUnistyles.js +2 -3
  63. package/lib/module/specs/TurboUnistyles/NativeTurboUnistyles.js.map +2 -1
  64. package/lib/module/specs/UnistylesRuntime/UnistylesRuntime.nitro.js.map +1 -1
  65. package/lib/module/specs/index.web.js.map +2 -1
  66. package/lib/module/specs/types.js.map +1 -1
  67. package/lib/module/types/stylesheet.js.map +1 -1
  68. package/lib/module/web/convert/boxShadow.js +1 -4
  69. package/lib/module/web/convert/boxShadow.js.map +2 -1
  70. package/lib/module/web/convert/pseudo.js.map +2 -1
  71. package/lib/module/web/convert/shadow.js +1 -5
  72. package/lib/module/web/convert/shadow.js.map +2 -1
  73. package/lib/module/web/convert/style.js.map +2 -1
  74. package/lib/module/web/convert/textShadow.js +1 -4
  75. package/lib/module/web/convert/textShadow.js.map +2 -1
  76. package/lib/module/web/convert/transform.js.map +2 -1
  77. package/lib/module/web/convert/utils.js.map +2 -1
  78. package/lib/module/web/index.js +1 -2
  79. package/lib/module/web/index.js.map +2 -1
  80. package/lib/module/web/listener.js.map +2 -1
  81. package/lib/module/web/mock.js.map +2 -1
  82. package/lib/module/web/registry.js +1 -3
  83. package/lib/module/web/registry.js.map +2 -1
  84. package/lib/module/web/runtime.js.map +2 -1
  85. package/lib/module/web/shadowRegistry.js +1 -9
  86. package/lib/module/web/shadowRegistry.js.map +2 -1
  87. package/lib/module/web/state.js.map +1 -1
  88. package/lib/module/web/utils/index.js.map +1 -1
  89. package/lib/module/web/utils/unistyle.js.map +2 -1
  90. package/lib/module/web/variants/index.js.map +1 -1
  91. package/lib/module/web/variants/useVariants.js +1 -2
  92. package/lib/module/web/variants/useVariants.js.map +2 -1
  93. package/lib/typescript/src/core/useBreakpoint.d.ts +1 -1
  94. package/lib/typescript/src/core/useBreakpoint.d.ts.map +1 -1
  95. package/lib/typescript/src/core/useBreakpoint.native.d.ts +1 -1
  96. package/lib/typescript/src/core/useBreakpoint.native.d.ts.map +1 -1
  97. package/lib/typescript/src/core/useTheme.d.ts +2 -40
  98. package/lib/typescript/src/core/useTheme.d.ts.map +1 -1
  99. package/lib/typescript/src/core/useTheme.native.d.ts +2 -40
  100. package/lib/typescript/src/core/useTheme.native.d.ts.map +1 -1
  101. package/lib/typescript/src/types/stylesheet.d.ts +4 -2
  102. package/lib/typescript/src/types/stylesheet.d.ts.map +1 -1
  103. package/lib/typescript/src/types/variants.d.ts +1 -1
  104. package/lib/typescript/src/types/variants.d.ts.map +1 -1
  105. package/lib/typescript/src/web/create.d.ts +214 -1220
  106. package/lib/typescript/src/web/create.d.ts.map +1 -1
  107. package/lib/typescript/src/web/index.d.ts +214 -1220
  108. package/lib/typescript/src/web/index.d.ts.map +1 -1
  109. package/lib/typescript/src/web/runtime.d.ts +4 -4
  110. package/lib/typescript/src/web/runtime.d.ts.map +1 -1
  111. package/lib/typescript/src/web/state.d.ts +1 -2
  112. package/lib/typescript/src/web/state.d.ts.map +1 -1
  113. package/lib/typescript/src/web/utils/unistyle.d.ts +2 -2
  114. package/lib/typescript/src/web/utils/unistyle.d.ts.map +1 -1
  115. package/package.json +15 -16
  116. package/src/common.js +4 -0
  117. package/src/core/index.js +2 -0
  118. package/src/core/useBreakpoint.js +14 -0
  119. package/src/core/useBreakpoint.native.js +16 -0
  120. package/src/core/useTheme.js +14 -0
  121. package/src/core/useTheme.native.js +16 -0
  122. package/src/core/useTheme.native.ts +2 -1
  123. package/src/core/useTheme.ts +2 -1
  124. package/src/index.js +3 -0
  125. package/src/mq.js +38 -0
  126. package/src/specs/NativePlatform/NativePlatform.nitro.js +18 -0
  127. package/src/specs/NativePlatform/index.js +1 -0
  128. package/src/specs/NavigtionBar/UnistylesNavigationBar.nitro.js +1 -0
  129. package/src/specs/NavigtionBar/index.js +9 -0
  130. package/src/specs/ShadowRegistry/ShadowRegistry.nitro.js +1 -0
  131. package/src/specs/ShadowRegistry/index.js +26 -0
  132. package/src/specs/ShadowRegistry/types.js +1 -0
  133. package/src/specs/StatusBar/UnistylesStatusBar.nitro.js +1 -0
  134. package/src/specs/StatusBar/index.js +25 -0
  135. package/src/specs/StyleSheet/UnistylesStyleSheet.nitro.js +1 -0
  136. package/src/specs/StyleSheet/index.js +13 -0
  137. package/src/specs/TurboUnistyles/NativeTurboUnistyles.js +2 -0
  138. package/src/specs/TurboUnistyles/index.js +1 -0
  139. package/src/specs/UnistylesRuntime/UnistylesRuntime.nitro.js +1 -0
  140. package/src/specs/UnistylesRuntime/index.js +20 -0
  141. package/src/specs/index.js +8 -0
  142. package/src/specs/index.web.js +2 -0
  143. package/src/specs/types.js +17 -0
  144. package/src/types/stylesheet.ts +5 -3
  145. package/src/types/variants.ts +1 -1
  146. package/src/web/convert/boxShadow.js +59 -0
  147. package/src/web/convert/index.js +56 -0
  148. package/src/web/convert/pseudo.js +131 -0
  149. package/src/web/convert/shadow.js +50 -0
  150. package/src/web/convert/style.js +137 -0
  151. package/src/web/convert/textShadow.js +56 -0
  152. package/src/web/convert/transform.js +65 -0
  153. package/src/web/convert/types.js +2 -0
  154. package/src/web/convert/utils.js +39 -0
  155. package/src/web/create.js +39 -0
  156. package/src/web/index.js +22 -0
  157. package/src/web/listener.js +26 -0
  158. package/src/web/mock.js +21 -0
  159. package/src/web/mq.js +14 -0
  160. package/src/web/registry.js +168 -0
  161. package/src/web/runtime.js +160 -0
  162. package/src/web/runtime.ts +1 -1
  163. package/src/web/shadowRegistry.js +99 -0
  164. package/src/web/state.ts +3 -3
  165. package/src/web/utils/common.js +79 -0
  166. package/src/web/utils/index.js +2 -0
  167. package/src/web/utils/unistyle.js +72 -0
  168. package/src/web/utils/unistyle.ts +2 -2
  169. package/src/web/variants/getVariants.js +26 -0
  170. package/src/web/variants/index.js +2 -0
  171. package/src/web/variants/useVariants.js +50 -0
  172. package/lib/typescript/example/App.d.ts +0 -4
  173. package/lib/typescript/example/App.d.ts.map +0 -1
  174. package/lib/typescript/example/Typography.d.ts +0 -35
  175. package/lib/typescript/example/Typography.d.ts.map +0 -1
  176. package/lib/typescript/example/unistyles.d.ts +0 -63
  177. package/lib/typescript/example/unistyles.d.ts.map +0 -1
  178. package/lib/typescript/expo-example/App.d.ts +0 -4
  179. package/lib/typescript/expo-example/App.d.ts.map +0 -1
  180. package/lib/typescript/expo-example/app/(tabs)/_layout.d.ts +0 -3
  181. package/lib/typescript/expo-example/app/(tabs)/_layout.d.ts.map +0 -1
  182. package/lib/typescript/expo-example/app/(tabs)/explore.d.ts +0 -3
  183. package/lib/typescript/expo-example/app/(tabs)/explore.d.ts.map +0 -1
  184. package/lib/typescript/expo-example/app/(tabs)/index.d.ts +0 -3
  185. package/lib/typescript/expo-example/app/(tabs)/index.d.ts.map +0 -1
  186. package/lib/typescript/expo-example/app/+html.d.ts +0 -4
  187. package/lib/typescript/expo-example/app/+html.d.ts.map +0 -1
  188. package/lib/typescript/expo-example/app/+not-found.d.ts +0 -3
  189. package/lib/typescript/expo-example/app/+not-found.d.ts.map +0 -1
  190. package/lib/typescript/expo-example/app/_layout.d.ts +0 -3
  191. package/lib/typescript/expo-example/app/_layout.d.ts.map +0 -1
  192. package/lib/typescript/expo-example/unistyles.d.ts +0 -63
  193. package/lib/typescript/expo-example/unistyles.d.ts.map +0 -1
  194. package/plugin/__tests__/dependencies.spec.js +0 -448
  195. package/plugin/__tests__/ref.spec.js +0 -1427
  196. package/plugin/__tests__/stylesheet.spec.js +0 -507
@@ -5,10 +5,10 @@ using namespace margelo::nitro::unistyles;
5
5
  using namespace facebook;
6
6
  using namespace facebook::react;
7
7
 
8
- void core::UnistylesRegistry::registerTheme(jsi::Runtime& rt, std::string name, jsi::Object&& theme) {
8
+ void core::UnistylesRegistry::registerTheme(jsi::Runtime& rt, std::string name, jsi::Value& theme) {
9
9
  auto& state = this->getState(rt);
10
10
 
11
- state._jsThemes.emplace(name, jsi::WeakObject(rt, std::move(theme)));
11
+ state._jsThemes.emplace(name, std::move(theme));
12
12
  state._registeredThemeNames.push_back(name);
13
13
  }
14
14
 
@@ -60,15 +60,11 @@ void core::UnistylesRegistry::updateTheme(jsi::Runtime& rt, std::string& themeNa
60
60
 
61
61
  helpers::assertThat(rt, it != state._jsThemes.end(), "Unistyles: You're trying to update theme '" + themeName + "' but it wasn't registered.");
62
62
 
63
- auto currentThemeValue = it->second.lock(rt);
64
-
65
- helpers::assertThat(rt, currentThemeValue.isObject(), "Unistyles: Unable to update your theme from C++. It was already garbage collected.");
66
-
67
- auto result = callback.call(rt, currentThemeValue.asObject(rt));
63
+ auto result = callback.call(rt, it->second);
68
64
 
69
65
  helpers::assertThat(rt, result.isObject(), "Unistyles: Returned theme is not an object. Please check your updateTheme function.");
70
66
 
71
- it->second = jsi::WeakObject(rt, result.asObject(rt));
67
+ it->second = result.asObject(rt);
72
68
  }
73
69
 
74
70
  void core::UnistylesRegistry::linkShadowNodeWithUnistyle(
@@ -28,7 +28,7 @@ struct UnistylesRegistry: public StyleSheetRegistry {
28
28
  UnistylesRegistry(const UnistylesRegistry&) = delete;
29
29
  UnistylesRegistry(const UnistylesRegistry&&) = delete;
30
30
 
31
- void registerTheme(jsi::Runtime& rt, std::string name, jsi::Object&& theme);
31
+ void registerTheme(jsi::Runtime& rt, std::string name, jsi::Value& theme);
32
32
  void registerBreakpoints(jsi::Runtime& rt, std::vector<std::pair<std::string, double>>& sortedBreakpoints);
33
33
  void setPrefersAdaptiveThemes(jsi::Runtime& rt, bool prefersAdaptiveThemes);
34
34
  void setInitialThemeName(jsi::Runtime& rt, std::string themeName);
@@ -25,6 +25,10 @@ std::optional<std::string>& core::UnistylesState::getCurrentThemeName() {
25
25
 
26
26
  jsi::Object core::UnistylesState::getCurrentJSTheme() {
27
27
  auto hasSomeThemes = _registeredThemeNames.size() > 0;
28
+
29
+ if (!hasSomeThemes && !this->hasUserConfig) {
30
+ helpers::assertThat(*_rt, false, "Unistyles: One of your stylesheets is trying to get the theme, but no theme has been selected yet. Did you forget to call StyleSheet.configure? If you called it, make sure you did so before any StyleSheet.create.");
31
+ }
28
32
 
29
33
  // return empty object, if user didn't register any themes
30
34
  if (!hasSomeThemes) {
@@ -37,11 +41,7 @@ jsi::Object core::UnistylesState::getCurrentJSTheme() {
37
41
 
38
42
  helpers::assertThat(*_rt, it != this->_jsThemes.end(), "Unistyles: You're trying to get theme '" + _currentThemeName.value() + "', but it was not registered. Did you forget to register it with StyleSheet.configure?");
39
43
 
40
- auto maybeTheme = it->second.lock(*_rt);
41
-
42
- helpers::assertThat(*_rt, maybeTheme.isObject(), "Unistyles: Unable to retrieve your theme from C++ as it has already been garbage collected, likely due to multiple hot reloads. Please live reload the app.");
43
-
44
- return maybeTheme.asObject(*_rt);
44
+ return it->second.asObject(*_rt);
45
45
  }
46
46
 
47
47
  jsi::Object core::UnistylesState::getJSThemeByName(std::string& themeName) {
@@ -49,11 +49,7 @@ jsi::Object core::UnistylesState::getJSThemeByName(std::string& themeName) {
49
49
 
50
50
  helpers::assertThat(*_rt, it != this->_jsThemes.end(), "Unistyles: You're trying to get theme '" + themeName + "', but it was not registered. Did you forget to register it with StyleSheet.configure?");
51
51
 
52
- auto maybeTheme = it->second.lock(*_rt);
53
-
54
- helpers::assertThat(*_rt, maybeTheme.isObject(), "Unistyles: Unable to retrieve your theme from C++ as it has already been garbage collected, likely due to multiple hot reloads. Please live reload the app.");
55
-
56
- return maybeTheme.asObject(*_rt);
52
+ return it->second.asObject(*_rt);
57
53
  }
58
54
 
59
55
  void core::UnistylesState::computeCurrentBreakpoint(int screenWidth) {
@@ -17,6 +17,7 @@ struct UnistylesState {
17
17
  UnistylesState(const UnistylesState&) = delete;
18
18
  UnistylesState(const UnistylesState&&) = delete;
19
19
 
20
+ bool hasUserConfig = false;
20
21
  bool hasAdaptiveThemes();
21
22
  bool hasInitialTheme();
22
23
  bool getPrefersAdaptiveThemes();
@@ -36,7 +37,7 @@ struct UnistylesState {
36
37
 
37
38
  private:
38
39
  jsi::Runtime* _rt;
39
- std::unordered_map<std::string, jsi::WeakObject> _jsThemes{};
40
+ std::unordered_map<std::string, jsi::Value> _jsThemes{};
40
41
  std::optional<bool> _prefersAdaptiveThemes = std::nullopt;
41
42
  std::optional<std::string> _initialThemeName = std::nullopt;
42
43
  std::optional<std::string> _currentBreakpointName = std::nullopt;
@@ -67,6 +67,10 @@ jsi::Value HybridStyleSheet::configure(jsi::Runtime &rt, const jsi::Value &thisV
67
67
  });
68
68
 
69
69
  verifyAndSelectTheme(rt);
70
+
71
+ auto& state = core::UnistylesRegistry::get().getState(rt);
72
+
73
+ state.hasUserConfig = true;
70
74
 
71
75
  return jsi::Value::undefined();
72
76
  }
@@ -136,11 +140,10 @@ void HybridStyleSheet::parseThemes(jsi::Runtime &rt, jsi::Object themes) {
136
140
  helpers::enumerateJSIObject(rt, themes, [&](const std::string& propertyName, jsi::Value& propertyValue){
137
141
  helpers::assertThat(rt, propertyValue.isObject(), "StyleSheet.configure's registered theme '" + propertyName + "' must be an object.");
138
142
 
139
- registry.registerTheme(rt, propertyName, propertyValue.asObject(rt));
143
+ registry.registerTheme(rt, propertyName, propertyValue);
140
144
  });
141
145
  }
142
146
 
143
-
144
147
  void HybridStyleSheet::verifyAndSelectTheme(jsi::Runtime &rt) {
145
148
  auto& state = core::UnistylesRegistry::get().getState(rt);
146
149
 
@@ -270,6 +270,18 @@ jsi::Object parser::Parser::parseFirstLevel(jsi::Runtime& rt, Unistyle::Shared u
270
270
 
271
271
  return;
272
272
  }
273
+
274
+ if (propertyName == "boxShadow" && propertyValueObject.isArray(rt)) {
275
+ parsedStyle.setProperty(rt, jsi::PropNameID::forUtf8(rt, propertyName), parseBoxShadow(rt, unistyle, propertyValueObject));
276
+
277
+ return;
278
+ }
279
+
280
+ if (propertyName == "filter" && propertyValueObject.isArray(rt)) {
281
+ parsedStyle.setProperty(rt, jsi::PropNameID::forUtf8(rt, propertyName), parseFilters(rt, unistyle, propertyValueObject));
282
+
283
+ return;
284
+ }
273
285
 
274
286
  if (propertyName == "fontVariant" && propertyValueObject.isArray(rt)) {
275
287
  parsedStyle.setProperty(rt, jsi::PropNameID::forUtf8(rt, propertyName), propertyValue);
@@ -365,10 +377,6 @@ std::vector<UnistyleDependency> parser::Parser::parseDependencies(jsi::Runtime &
365
377
 
366
378
  // eg. [{ scale: 2 }, { translateX: 100 }]
367
379
  jsi::Value parser::Parser::parseTransforms(jsi::Runtime& rt, Unistyle::Shared unistyle, jsi::Object& obj) {
368
- if (!obj.isArray(rt)) {
369
- return jsi::Value::undefined();
370
- }
371
-
372
380
  std::vector<jsi::Value> parsedTransforms{};
373
381
 
374
382
  parsedTransforms.reserve(2);
@@ -398,6 +406,67 @@ jsi::Value parser::Parser::parseTransforms(jsi::Runtime& rt, Unistyle::Shared un
398
406
  return result;
399
407
  }
400
408
 
409
+ // eg [{offsetX: 5, offsetY: 5, blurRadius: 5, spreadDistance: 0, color: ‘rgba(255, 0, 0, 0.5)’}]
410
+ jsi::Value parser::Parser::parseBoxShadow(jsi::Runtime &rt, Unistyle::Shared unistyle, jsi::Object &obj) {
411
+ std::vector<jsi::Value> parsedBoxShadows{};
412
+
413
+ parsedBoxShadows.reserve(2);
414
+
415
+ helpers::iterateJSIArray(rt, obj.asArray(rt), [&](size_t i, jsi::Value& value){
416
+ if (!value.isObject()) {
417
+ return;
418
+ }
419
+
420
+ auto parsedResult = this->parseSecondLevel(rt, unistyle, value);
421
+
422
+ parsedBoxShadows.emplace_back(std::move(parsedResult));
423
+ });
424
+
425
+ // create jsi::Array result with correct box shadows
426
+ jsi::Array result = jsi::Array(rt, parsedBoxShadows.size());
427
+
428
+ for (size_t i = 0; i < parsedBoxShadows.size(); i++) {
429
+ result.setValueAtIndex(rt, i, parsedBoxShadows[i]);
430
+ }
431
+
432
+ return result;
433
+ }
434
+
435
+ // eg. [{ brightness: 0.5 }, { opacity: 0.25 }]
436
+ jsi::Value parser::Parser::parseFilters(jsi::Runtime &rt, Unistyle::Shared unistyle, jsi::Object &obj) {
437
+ std::vector<jsi::Value> parsedFilters{};
438
+
439
+ parsedFilters.reserve(2);
440
+
441
+ helpers::iterateJSIArray(rt, obj.asArray(rt), [&](size_t i, jsi::Value& value){
442
+ if (!value.isObject()) {
443
+ return;
444
+ }
445
+
446
+ auto parsedResult = this->parseSecondLevel(rt, unistyle, value);
447
+
448
+ // take only one filter per object
449
+ jsi::Array propertyNames = parsedResult.asObject(rt).getPropertyNames(rt);
450
+ size_t length = propertyNames.size(rt);
451
+
452
+ // ignore no filters
453
+ if (length == 0) {
454
+ return;
455
+ }
456
+
457
+ parsedFilters.emplace_back(std::move(parsedResult));
458
+ });
459
+
460
+ // create jsi::Array result with correct filters
461
+ jsi::Array result = jsi::Array(rt, parsedFilters.size());
462
+
463
+ for (size_t i = 0; i < parsedFilters.size(); i++) {
464
+ result.setValueAtIndex(rt, i, parsedFilters[i]);
465
+ }
466
+
467
+ return result;
468
+ }
469
+
401
470
  // find value based on breakpoints and mq
402
471
  jsi::Value parser::Parser::getValueFromBreakpoints(jsi::Runtime& rt, Unistyle::Shared unistyle, jsi::Object& obj) {
403
472
  auto& registry = core::UnistylesRegistry::get();
@@ -35,6 +35,8 @@ private:
35
35
  jsi::Function createDynamicFunctionProxy(jsi::Runtime& rt, Unistyle::Shared unistyle);
36
36
  std::vector<UnistyleDependency> parseDependencies(jsi::Runtime &rt, jsi::Object&& dependencies);
37
37
  jsi::Value parseTransforms(jsi::Runtime& rt, Unistyle::Shared unistyle, jsi::Object& obj);
38
+ jsi::Value parseBoxShadow(jsi::Runtime& rt, Unistyle::Shared unistyle, jsi::Object& obj);
39
+ jsi::Value parseFilters(jsi::Runtime& rt, Unistyle::Shared unistyle, jsi::Object& obj);
38
40
  jsi::Value getValueFromBreakpoints(jsi::Runtime& rt, Unistyle::Shared unistyle, jsi::Object& obj);
39
41
  jsi::Object parseVariants(jsi::Runtime& rt, Unistyle::Shared unistyle, jsi::Object& obj, Variants& variants);
40
42
  jsi::Value getStylesForVariant(jsi::Runtime& rt, const std::string groupName, jsi::Object&& groupValue, std::optional<std::string> selectedVariant, Variants& variants);
@@ -1 +1 @@
1
- {"version":3,"names":["_useBreakpoint","require","_useTheme"],"sourceRoot":"../../../src","sources":["core/index.ts"],"mappings":";;;;;;;;;;;;;;;;;AAAA,IAAAA,cAAA,GAAAC,OAAA;AACA,IAAAC,SAAA,GAAAD,OAAA","ignoreList":[]}
1
+ {"version":3,"names":["_useBreakpoint","require","_useTheme"],"sourceRoot":"../../../src","sources":["core/index.js"],"mappings":";;;;;;;;;;;;;;;;;AAAA,IAAAA,cAAA,GAAAC,OAAA;AACA,IAAAC,SAAA,GAAAD,OAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_react","require","_web","_listener","_NativePlatform","useTheme","theme","setTheme","useState","UnistylesRuntime","getTheme","useEffect","removeChangeListener","UnistylesListener","addListeners","UnistyleDependency","Theme","exports"],"sourceRoot":"../../../src","sources":["core/useTheme.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,IAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AACA,IAAAG,eAAA,GAAAH,OAAA;AAEO,MAAMI,QAAQ,GAAGA,CAAA,KAAM;EAC1B,MAAM,CAACC,KAAK,EAAEC,QAAQ,CAAC,GAAG,IAAAC,eAAQ,EAACC,qBAAgB,CAACC,QAAQ,CAAC,CAAC,CAAC;EAE/D,IAAAC,gBAAS,EAAC,MAAM;IACZ,MAAMC,oBAAoB,GAAGC,2BAAiB,CAACC,YAAY,CAAC,CAACC,kCAAkB,CAACC,KAAK,CAAC,EAAE,MAAMT,QAAQ,CAACE,qBAAgB,CAACC,QAAQ,CAAC,CAAC,CAAC,CAAC;IAEpI,OAAO,MAAM;MACTE,oBAAoB,CAAC,CAAC;IAC1B,CAAC;EACL,CAAC,EAAE,EAAE,CAAC;EAEN,OAAON,KAAK;AAChB,CAAC;AAAAW,OAAA,CAAAZ,QAAA,GAAAA,QAAA","ignoreList":[]}
1
+ {"version":3,"names":["_react","require","_web","_listener","_NativePlatform","useTheme","theme","setTheme","useState","UnistylesRuntime","getTheme","useEffect","removeChangeListener","UnistylesListener","addListeners","UnistyleDependency","Theme","exports"],"sourceRoot":"../../../src","sources":["core/useTheme.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,IAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAF,OAAA;AACA,IAAAG,eAAA,GAAAH,OAAA;AAGO,MAAMI,QAAQ,GAAGA,CAAA,KAAsB;EAC1C,MAAM,CAACC,KAAK,EAAEC,QAAQ,CAAC,GAAG,IAAAC,eAAQ,EAACC,qBAAgB,CAACC,QAAQ,CAAC,CAAC,CAAC;EAE/D,IAAAC,gBAAS,EAAC,MAAM;IACZ,MAAMC,oBAAoB,GAAGC,2BAAiB,CAACC,YAAY,CAAC,CAACC,kCAAkB,CAACC,KAAK,CAAC,EAAE,MAAMT,QAAQ,CAACE,qBAAgB,CAACC,QAAQ,CAAC,CAAC,CAAC,CAAC;IAEpI,OAAO,MAAM;MACTE,oBAAoB,CAAC,CAAC;IAC1B,CAAC;EACL,CAAC,EAAE,EAAE,CAAC;EAEN,OAAON,KAAK;AAChB,CAAC;AAAAW,OAAA,CAAAZ,QAAA,GAAAA,QAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_react","require","_specs","useTheme","theme","setTheme","useState","UnistylesRuntime","getTheme","useEffect","removeChangeListener","StyleSheet","addChangeListener","dependencies","includes","UnistyleDependency","Theme","exports"],"sourceRoot":"../../../src","sources":["core/useTheme.native.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAGO,MAAME,QAAQ,GAAGA,CAAA,KAAM;EAC1B,MAAM,CAACC,KAAK,EAAEC,QAAQ,CAAC,GAAG,IAAAC,eAAQ,EAACC,uBAAgB,CAACC,QAAQ,CAAC,CAAC,CAAC;EAE/D,IAAAC,gBAAS,EAAC,MAAM;IACZ,MAAMC,oBAAoB,GAAIC,iBAAU,CAAyBC,iBAAiB,CAACC,YAAY,IAAI;MAC/F,IAAIA,YAAY,CAACC,QAAQ,CAACC,yBAAkB,CAACC,KAAK,CAAC,EAAE;QACjDX,QAAQ,CAACE,uBAAgB,CAACC,QAAQ,CAAC,CAAC,CAAC;MACzC;IACJ,CAAC,CAAC;IAEF,OAAO,MAAM;MACTE,oBAAoB,CAAC,CAAC;IAC1B,CAAC;EACL,CAAC,EAAE,EAAE,CAAC;EAEN,OAAON,KAAK;AAChB,CAAC;AAAAa,OAAA,CAAAd,QAAA,GAAAA,QAAA","ignoreList":[]}
1
+ {"version":3,"names":["_react","require","_specs","useTheme","theme","setTheme","useState","UnistylesRuntime","getTheme","useEffect","removeChangeListener","StyleSheet","addChangeListener","dependencies","includes","UnistyleDependency","Theme","exports"],"sourceRoot":"../../../src","sources":["core/useTheme.native.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAIO,MAAME,QAAQ,GAAGA,CAAA,KAAsB;EAC1C,MAAM,CAACC,KAAK,EAAEC,QAAQ,CAAC,GAAG,IAAAC,eAAQ,EAACC,uBAAgB,CAACC,QAAQ,CAAC,CAAC,CAAC;EAE/D,IAAAC,gBAAS,EAAC,MAAM;IACZ,MAAMC,oBAAoB,GAAIC,iBAAU,CAAyBC,iBAAiB,CAACC,YAAY,IAAI;MAC/F,IAAIA,YAAY,CAACC,QAAQ,CAACC,yBAAkB,CAACC,KAAK,CAAC,EAAE;QACjDX,QAAQ,CAACE,uBAAgB,CAACC,QAAQ,CAAC,CAAC,CAAC;MACzC;IACJ,CAAC,CAAC;IAEF,OAAO,MAAM;MACTE,oBAAoB,CAAC,CAAC;IAC1B,CAAC;EACL,CAAC,EAAE,EAAE,CAAC;EAEN,OAAON,KAAK;AAChB,CAAC;AAAAa,OAAA,CAAAd,QAAA,GAAAA,QAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["_specs","require","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_mq","_core"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,MAAA,EAAAI,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,MAAAL,MAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAb,MAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAS,GAAA,GAAAb,OAAA;AAEA,IAAAc,KAAA,GAAAd,OAAA","ignoreList":[]}
1
+ {"version":3,"names":["_specs","require","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_mq","_core"],"sourceRoot":"../../src","sources":["index.js"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,MAAA,EAAAI,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,MAAAL,MAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAb,MAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAS,GAAA,GAAAb,OAAA;AACA,IAAAc,KAAA,GAAAd,OAAA","ignoreList":[]}
@@ -11,7 +11,6 @@ const getMQValue = value => {
11
11
  if (value === null) {
12
12
  return 0;
13
13
  }
14
-
15
14
  // todo take it from js
16
15
  const breakpoints = {
17
16
  xs: 0,
@@ -20,11 +19,9 @@ const getMQValue = value => {
20
19
  lg: 800,
21
20
  xl: 1200
22
21
  };
23
-
24
22
  // @ts-ignore
25
23
  return breakpoints[value] ?? 0;
26
24
  };
27
-
28
25
  /**
29
26
  * Utility to create cross-platform media queries
30
27
  * @returns - JavaScript symbol to be used in your stylesheet
@@ -45,4 +42,4 @@ const mq = exports.mq = {
45
42
  }
46
43
  })
47
44
  };
48
- //# sourceMappingURL=mq.js.map
45
+ //# sourceMappingURL=mq.js.mapmap
@@ -1 +1,2 @@
1
- {"version":3,"names":["getMQValue","value","breakpoints","xs","sm","md","lg","xl","mq","exports","only","width","wMin","wMax","Infinity","height","hMin","hMax","and"],"sourceRoot":"../../src","sources":["mq.ts"],"mappings":";;;;;;AAsBA,MAAMA,UAAU,GAAIC,KAAwB,IAAK;EAC7C,IAAI,OAAOA,KAAK,KAAK,QAAQ,EAAE;IAC3B,OAAOA,KAAK;EAChB;EAEA,IAAIA,KAAK,KAAK,IAAI,EAAE;IAChB,OAAO,CAAC;EACZ;;EAEA;EACA,MAAMC,WAAW,GAAG;IAChBC,EAAE,EAAE,CAAC;IACLC,EAAE,EAAE,GAAG;IACPC,EAAE,EAAE,GAAG;IACPC,EAAE,EAAE,GAAG;IACPC,EAAE,EAAE;EACR,CAAC;;EAED;EACA,OAAOL,WAAW,CAACD,KAAK,CAAC,IAAI,CAAC;AAClC,CAAC;;AAED;AACA;AACA;AACA;AACO,MAAMO,EAAa,GAAAC,OAAA,CAAAD,EAAA,GAAG;EACzBE,IAAI,EAAE;IACFC,KAAK,EAAEA,CAACC,IAAuB,GAAG,CAAC,EAAEC,IAAa,GAAGC,QAAQ,KAAM,MAAMd,UAAU,CAACY,IAAI,CAAC,KAAKZ,UAAU,CAACa,IAAI,CAAC,GAAyB;IACvIE,MAAM,EAAEA,CAACC,IAAuB,GAAG,CAAC,EAAEC,IAAa,GAAGH,QAAQ,KAAM,MAAMd,UAAU,CAACgB,IAAI,CAAC,KAAKhB,UAAU,CAACiB,IAAI,CAAC;EACnH,CAAC;EACDN,KAAK,EAAEA,CAACC,IAAuB,GAAG,CAAC,EAAEC,IAAa,GAAGC,QAAQ,MAAM;IAC/DI,GAAG,EAAE;MACDH,MAAM,EAAEA,CAACC,IAAuB,GAAG,CAAC,EAAEC,IAAa,GAAGH,QAAQ,KACzD,MAAMd,UAAU,CAACY,IAAI,CAAC,KAAKZ,UAAU,CAACa,IAAI,CAAC,OAAOb,UAAU,CAACgB,IAAI,CAAC,KAAKhB,UAAU,CAACiB,IAAI,CAAC;IAChG;EACJ,CAAC,CAAC;EACFF,MAAM,EAAEA,CAACC,IAAuB,GAAG,CAAC,EAAEC,IAAa,GAAGH,QAAQ,MAAM;IAChEI,GAAG,EAAE;MACDP,KAAK,EAAEA,CAACC,IAAuB,GAAG,CAAC,EAAEC,IAAa,GAAGC,QAAQ,KACxD,MAAMd,UAAU,CAACY,IAAI,CAAC,KAAKZ,UAAU,CAACa,IAAI,CAAC,OAAOb,UAAU,CAACgB,IAAI,CAAC,KAAKhB,UAAU,CAACiB,IAAI,CAAC;IAChG;EACJ,CAAC;AACL,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["getMQValue","value","breakpoints","xs","sm","md","lg","xl","mq","exports","only","width","wMin","wMax","Infinity","height","hMin","hMax","and"],"sourceRoot":"../../src","sources":["mq.js"],"mappings":";;;;;;AAAA,MAAMA,UAAU,GAAIC,KAAK,IAAK;EAC1B,IAAI,OAAOA,KAAK,KAAK,QAAQ,EAAE;IAC3B,OAAOA,KAAK;EAChB;EACA,IAAIA,KAAK,KAAK,IAAI,EAAE;IAChB,OAAO,CAAC;EACZ;EACA;EACA,MAAMC,WAAW,GAAG;IAChBC,EAAE,EAAE,CAAC;IACLC,EAAE,EAAE,GAAG;IACPC,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1
1
  {"version":3,"names":["UnistyleDependency","exports"],"sourceRoot":"../../../../src","sources":["specs/NativePlatform/NativePlatform.nitro.ts"],"mappings":";;;;;;IAMYA,kBAAkB,GAAAC,OAAA,CAAAD,kBAAA,0BAAlBA,kBAAkB;EAAlBA,kBAAkB,CAAlBA,kBAAkB;EAAlBA,kBAAkB,CAAlBA,kBAAkB;EAAlBA,kBAAkB,CAAlBA,kBAAkB;EAAlBA,kBAAkB,CAAlBA,kBAAkB;EAAlBA,kBAAkB,CAAlBA,kBAAkB;EAAlBA,kBAAkB,CAAlBA,kBAAkB;EAAlBA,kBAAkB,CAAlBA,kBAAkB;EAAlBA,kBAAkB,CAAlBA,kBAAkB;EAAlBA,kBAAkB,CAAlBA,kBAAkB;EAAlBA,kBAAkB,CAAlBA,kBAAkB;EAAlBA,kBAAkB,CAAlBA,kBAAkB;EAAlBA,kBAAkB,CAAlBA,kBAAkB;EAAlBA,kBAAkB,CAAlBA,kBAAkB;EAAlBA,kBAAkB,CAAlBA,kBAAkB;EAAA,OAAlBA,kBAAkB;AAAA,OA+B9B;AACA","ignoreList":[]}
2
+ AkB,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,GAAG,YAAY;EACvEA,kBAAkB,CAACA,kBAAkB,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,GAAG,aAAa;EACzEA,kBAAkB,CAACA,kBAAkB,CAAC,qBAAqB,CAAC,GAAG,CAAC,CAAC,GAAG,qBAAqB;EACzFA,kBAAkB,CAACA,kBAAkB,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,GAAG,QAAQ;EAC/DA,kBAAkB,CAACA,kBAAkB,CAAC,YAAY,CAAC,GAAG,EAAE,CAAC,GAAG,YAAY;EACxEA,kBAAkB,CAACA,kBAAkB,CAAC,WAAW,CAAC,GAAG,EAAE,CAAC,GAAG,WAAW;EACtEA,kBAAkB,CAACA,kBAAkB,CAAC,WAAW,CAAC,GAAG,EAAE,CAAC,GAAG,WAAW;EACtEA,kBAAkB,CAACA,kBAAkB,CAAC,eAAe,CAAC,GAAG,EAAE,CAAC,GAAG,eAAe;AAClF,CAAC,EAAEA,kBAAkB,KAAAC,OAAA,CAAAD,kBAAA,GAAKA,kBAAkB,GAAG,CAAC,CAAC,CAAC,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["specs/NavigtionBar/UnistylesNavigationBar.nitro.ts"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["specs/NavigtionBar/UnistylesNavigationBar.nitro.js"],"mappings":"","ignoreList":[]}
@@ -1 +1,2 @@
1
- {"version":3,"names":["_reactNative","require","attachNavigationBarJSMethods","hybridObject","privateHybrid","_setBackgroundColor","setBackgroundColor","color","parsedColor","processColor","exports"],"sourceRoot":"../../../../src","sources":["specs/NavigtionBar/index.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAcO,MAAMC,4BAA4B,GAAIC,YAAoC,IAAK;EAClF,MAAMC,aAAa,GAAGD,YAA6C;EAEnEC,aAAa,CAACC,mBAAmB,GAAGF,YAAY,CAACG,kBAAkB;EACnEH,YAAY,CAACG,kBAAkB,GAAIC,KAAc,IAAK;IAClD,MAAMC,WAAW,GAAG,IAAAC,yBAAY,EAACF,KAAK,CAAC,IAAI,CAAC;IAE5CH,aAAa,CAACC,mBAAmB,CAACG,WAAqB,CAAC;EAC5D,CAAC;AACL,CAAC;AAAAE,OAAA,CAAAR,4BAAA,GAAAA,4BAAA","ignoreList":[]}
1
+ {"version":3,"names":["_reactNative","require","attachNavigationBarJSMethods","hybridObject","privateHybrid","_setBackgroundColor","setBackgroundColor","color","parsedColor","processColor","exports"],"sourceRoot":"../../../../src","sources":["specs/NavigtionBar/index.js"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACO,MAAMC,4BAA4B,GAAIC,YAAY,IAAK;EAC1D,MAAMC,aAAa,GAAGD,YAAY;EAClCC,aAAa,CAACC,mBAAmB,GAAGF,YAAY,CAACG,kBAAkB;EACnEH,YAAY,CAACG,kBAAkB,GAAIC,KAAK,IAAK;IACzC,MAAMC,WAAW,GAAG,IAAAC,yBAAY,EAACF,KAAK,CAAC,IAAI,CAAC;IAC5CH,aAAa,CAACC,mBAAmB,CAACG,WAAW,CAAC;EAClD,CAAC;AACL,CAAC;AAACE,OAAA,CAAAR,4BAAA,GAAAA,4BAAA","ignoreList":[]}
2
+ ]}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["specs/ShadowRegistry/ShadowRegistry.nitro.ts"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["specs/ShadowRegistry/ShadowRegistry.nitro.js"],"mappings":"","ignoreList":[]}
@@ -1,2 +1,5 @@
1
1
  "use strict";
2
+ //# sourceMappingURL=types.js.map__esModule", {
3
+ value: true
4
+ });
2
5
  //# sourceMappingURL=types.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["specs/ShadowRegistry/types.ts"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["specs/ShadowRegistry/types.js"],"mappings":"","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["specs/StatusBar/UnistylesStatusBar.nitro.ts"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["specs/StatusBar/UnistylesStatusBar.nitro.js"],"mappings":"","ignoreList":[]}
@@ -1 +1,2 @@
1
- {"version":3,"names":["_reactNative","require","_types","attachStatusBarJSMethods","hybridObject","setStyle","style","animated","StatusBarStyle","Light","NativeStatusBar","setBarStyle","Dark","Default","privateHybrid","_setHidden","setHidden","isHidden","animation","_setBackgroundColor","setBackgroundColor","color","parsedColor","processColor","exports"],"sourceRoot":"../../../../src","sources":["specs/StatusBar/index.ts"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAEA,IAAAC,MAAA,GAAAD,OAAA;AAiBO,MAAME,wBAAwB,GAAIC,YAAgC,IAAK;EAC1EA,YAAY,CAACC,QAAQ,GAAG,CAACC,KAAqB,EAAEC,QAAkB,KAAK;IACnE,QAAQD,KAAK;MACT,KAAKE,qBAAc,CAACC,KAAK;QACrB,OAAOC,sBAAe,CAACC,WAAW,CAAC,eAAe,EAAEJ,QAAQ,CAAC;MACjE,KAAKC,qBAAc,CAACI,IAAI;QACpB,OAAOF,sBAAe,CAACC,WAAW,CAAC,cAAc,EAAEJ,QAAQ,CAAC;MAChE,KAAKC,qBAAc,CAACK,OAAO;QACvB,OAAOH,sBAAe,CAACC,WAAW,CAAC,SAAS,EAAEJ,QAAQ,CAAC;IAC/D;EACJ,CAAC;EAED,MAAMO,aAAa,GAAGV,YAAyC;EAE/DU,aAAa,CAACC,UAAU,GAAGX,YAAY,CAACY,SAAS;EACjDZ,YAAY,CAACY,SAAS,GAAG,CAACC,QAAiB,EAAEC,SAAoC,KAAK;IAClFR,sBAAe,CAACM,SAAS,CAACC,QAAQ,EAAEC,SAAS,CAAC;IAC9CJ,aAAa,CAACC,UAAU,CAACE,QAAQ,CAAC;EACtC,CAAC;EAEDH,aAAa,CAACK,mBAAmB,GAAGf,YAAY,CAACgB,kBAAkB;EACnEhB,YAAY,CAACgB,kBAAkB,GAAIC,KAAc,IAAK;IAClD,MAAMC,WAAW,GAAG,IAAAC,yBAAY,EAACF,KAAK,CAAC,IAAI,CAAC;IAE5CP,aAAa,CAACK,mBAAmB,CAACG,WAAqB,CAAC;EAC5D,CAAC;AACL,CAAC;AAAAE,OAAA,CAAArB,wBAAA,GAAAA,wBAAA","ignoreList":[]}
1
+ {"version":3,"names":["_reactNative","require","_types","attachStatusBarJSMethods","hybridObject","setStyle","style","animated","StatusBarStyle","Light","NativeStatusBar","setBarStyle","Dark","Default","privateHybrid","_setHidden","setHidden","isHidden","animation","_setBackgroundColor","setBackgroundColor","color","parsedColor","processColor","exports"],"sourceRoot":"../../../../src","sources":["specs/StatusBar/index.js"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AACO,MAAME,wBAAwB,GAAIC,YAAY,IAAK;EACtDA,YAAY,CAACC,QAAQ,GAAG,CAACC,KAAK,EAAEC,QAAQ,KAAK;IACzC,QAAQD,KAAK;MACT,KAAKE,qBAAc,CAACC,KAAK;QACrB,OAAOC,sBAAe,CAACC,WAAW,CAAC,eAAe,EAAEJ,QAAQ,CAAC;MACjE,KAAKC,qBAAc,CAACI,IAAI;QACpB,OAAOF,sBAAe,CAACC,WAAW,CAAC,cAAc,EAAEJ,QAAQ,CAAC;MAChE,KAAKC,qBAAc,CAACK,OAAO;QACvB,OAAOH,sBAAe,CAACC,WAAW,CAAC,SAAS,EAAEJ,QAAQ,CAAC;IAC/D;EACJ,CAAC;EACD,MAAMO,aAAa,GAAGV,YAAY;EAClCU,aAAa,CAACC,UAAU,GAAGX,YAAY,CAACY,SAAS;EACjDZ,YAAY,CAACY,SAAS,GAAG,CAACC,QAAQ,EAAEC,SAAS,KAAK;IAC9CR,sBAAe,CAACM,SAAS,CAACC,QAAQ,EAAEC,SAAS,CAAC;IAC9CJ,aAAa,CAACC,UAAU,CAACE,QAAQ,CAAC;EACtC,CAAC;EACDH,aAAa,CAACK,mBAAmB,GAAGf,YAAY,CAACgB,kBAAkB;EACnEhB,YAAY,CAACgB,kBAAkB,GAAIC,KAAK,IAAK;IACzC,MAAMC,WAAW,GAAG,IAAAC,yBAAY,EAACF,KAAK,CAAC,IAAI,CAAC;IAC5CP,aAAa,CAACK,mBAAmB,CAACG,WAAW,CAAC;EAClD,CAAC;AACL,CAAC;AAACE,OAAA,CAAArB,wBAAA,GAAAA,wBAAA","ignoreList":[]}
2
+ st":[]}
@@ -1,6 +1,4 @@
1
1
  "use strict";
2
2
 
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- //# sourceMappingURL=UnistylesStyleSheet.nitro.js.map
3
+ var _NativePlatform = require("../NativePlatform");
4
+ //# sourceMappingURL=UnistylesStyleSheet.nitro.js.map.nitro.js.map
@@ -1 +1 @@
1
- {"version":3,"names":[],"sourceRoot":"../../../../src","sources":["specs/StyleSheet/UnistylesStyleSheet.nitro.ts"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"names":["_NativePlatform","require"],"sourceRoot":"../../../../src","sources":["specs/StyleSheet/UnistylesStyleSheet.nitro.js"],"mappings":";;AAAA,IAAAA,eAAA,GAAAC,OAAA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["require","_UnistylesRuntime","_StyleSheet","_ShadowRegistry","_types","_NativePlatform"],"sourceRoot":"../../../src","sources":["specs/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAAA,OAAA;AAEA,IAAAC,iBAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AAEA,IAAAG,eAAA,GAAAH,OAAA;AAEA,IAAAI,MAAA,GAAAJ,OAAA;AACA,IAAAK,eAAA,GAAAL,OAAA","ignoreList":[]}
1
+ {"version":3,"names":["require","_UnistylesRuntime","_StyleSheet","_ShadowRegistry","_types","_NativePlatform"],"sourceRoot":"../../../src","sources":["specs/index.js"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAAA,OAAA;AACA,IAAAC,iBAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,eAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AACA,IAAAK,eAAA,GAAAL,OAAA","ignoreList":[]}
@@ -4,21 +4,21 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.StatusBarStyle = exports.Orientation = exports.ColorScheme = void 0;
7
- let ColorScheme = exports.ColorScheme = /*#__PURE__*/function (ColorScheme) {
7
+ var ColorScheme;
8
+ (function (ColorScheme) {
8
9
  ColorScheme["Light"] = "light";
9
10
  ColorScheme["Dark"] = "dark";
10
11
  ColorScheme["Unspecified"] = "unspecified";
11
- return ColorScheme;
12
- }({});
13
- let Orientation = exports.Orientation = /*#__PURE__*/function (Orientation) {
12
+ })(ColorScheme || (exports.ColorScheme = ColorScheme = {}));
13
+ var Orientation;
14
+ (function (Orientation) {
14
15
  Orientation["Portrait"] = "portrait";
15
16
  Orientation["Landscape"] = "landscape";
16
- return Orientation;
17
- }({});
18
- let StatusBarStyle = exports.StatusBarStyle = /*#__PURE__*/function (StatusBarStyle) {
17
+ })(Orientation || (exports.Orientation = Orientation = {}));
18
+ var StatusBarStyle;
19
+ (function (StatusBarStyle) {
19
20
  StatusBarStyle["Default"] = "default";
20
21
  StatusBarStyle["Light"] = "light";
21
22
  StatusBarStyle["Dark"] = "dark";
22
- return StatusBarStyle;
23
- }({});
24
- //# sourceMappingURL=types.js.map
23
+ })(StatusBarStyle || (exports.StatusBarStyle = StatusBarStyle = {}));
24
+ //# sourceMappingURL=types.js.mapjs.map
@@ -1 +1 @@
1
- {"version":3,"names":["ColorScheme","exports","Orientation","StatusBarStyle"],"sourceRoot":"../../../src","sources":["specs/types.ts"],"mappings":";;;;;;IAGYA,WAAW,GAAAC,OAAA,CAAAD,WAAA,0BAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAA,OAAXA,WAAW;AAAA;AAAA,IAMXE,WAAW,GAAAD,OAAA,CAAAC,WAAA,0BAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAA,OAAXA,WAAW;AAAA;AAAA,IAkBXC,cAAc,GAAAF,OAAA,CAAAE,cAAA,0BAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAA,OAAdA,cAAc;AAAA","ignoreList":[]}
1
+ {"version":3,"names":["ColorScheme","exports","Orientation","StatusBarStyle"],"sourceRoot":"../../../src","sources":["specs/types.js"],"mappings":";;;;;;AAAO,IAAIA,WAAW;AACtB,CAAC,UAAUA,WAAW,EAAE;EACpBA,WAAW,CAAC,OAAO,CAAC,GAAG,OAAO;EAC9BA,WAAW,CAAC,MAAM,CAAC,GAAG,MAAM;EAC5BA,WAAW,CAAC,aAAa,CAAC,GAAG,aAAa;AAC9C,CAAC,EAAEA,WAAW,KAAAC,OAAA,CAAAD,WAAA,GAAKA,WAAW,GAAG,CAAC,CAAC,CAAC,CAAC;AAC9B,IAAIE,WAAW;AACtB,CAAC,UAAUA,WAAW,EAAE;EACpBA,WAAW,CAAC,UAAU,CAAC,GAAG,UAAU;EACpCA,WAAW,CAAC,WAAW,CAAC,GAAG,WAAW;AAC1C,CAAC,EAAEA,WAAW,KAAAD,OAAA,CAAAC,WAAA,GAAKA,WAAW,GAAG,CAAC,CAAC,CAAC,CAAC;AAC9B,IAAIC,cAAc;AACzB,CAAC,UAAUA,cAAc,EAAE;EACvBA,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS;EACrCA,cAAc,CAAC,OAAO,CAAC,GAAG,OAAO;EACjCA,cAAc,CAAC,MAAM,CAAC,GAAG,MAAM;AACnC,CAAC,EAAEA,cAAc,KAAAF,OAAA,CAAAE,cAAA,GAAKA,cAAc,GAAG,CAAC,CAAC,CAAC,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["create","stylesheet"],"sourceRoot":"../../../src","sources":["types/stylesheet.ts"],"mappings":";;;;;AASA;;AAsEA,MAAMA,MAAM,GAA0BC,UAAwC,IAAoEA,UAA2E","ignoreList":[]}
1
+ {"version":3,"names":["create","stylesheet"],"sourceRoot":"../../../src","sources":["types/stylesheet.ts"],"mappings":";;;;;AASA;;AAwEA,MAAMA,MAAM,GAA0BC,UAAwC,IAAoEA,UAA2E","ignoreList":[]}
@@ -24,7 +24,6 @@ const convertUnistyles = value => {
24
24
  if (['_classNames', '_web', 'variants', 'compoundVariants', 'uni__dependencies', '__unistyles-secrets__'].includes(unistylesKey) || unistylesKey.startsWith('variant-')) {
25
25
  return [];
26
26
  }
27
-
28
27
  // Pseudo classes :hover, :before etc.
29
28
  if ((0, _pseudo.isPseudo)(unistylesKey)) {
30
29
  const flattenValues = convertUnistyles(unistylesValue);
@@ -32,7 +31,6 @@ const convertUnistyles = value => {
32
31
  [unistylesKey]: flattenValues
33
32
  };
34
33
  }
35
-
36
34
  // Text shadow
37
35
  if ((0, _utils2.isTextShadow)(unistylesKey)) {
38
36
  if (hasTextShadow) {
@@ -41,7 +39,6 @@ const convertUnistyles = value => {
41
39
  hasTextShadow = true;
42
40
  return (0, _textShadow.getTextShadowStyle)(value);
43
41
  }
44
-
45
42
  // Box shadow
46
43
  if ((0, _utils2.isBoxShadow)(unistylesKey)) {
47
44
  if (hasBoxShadow) {
@@ -50,12 +47,10 @@ const convertUnistyles = value => {
50
47
  hasBoxShadow = true;
51
48
  return (0, _boxShadow.getBoxShadowStyle)(value);
52
49
  }
53
-
54
50
  // Transforms
55
51
  if ((0, _utils2.isTransform)(unistylesKey, unistylesValue)) {
56
52
  return (0, _transform.getTransformStyle)(unistylesValue);
57
53
  }
58
-
59
54
  // Breakpoints
60
55
  if (typeof unistylesValue === 'object' && unistylesValue !== null) {
61
56
  return Object.entries(unistylesValue).map(([breakpointKey, breakpointValue]) => {
@@ -64,11 +59,10 @@ const convertUnistyles = value => {
64
59
  };
65
60
  });
66
61
  }
67
-
68
62
  // Regular styles
69
63
  return (0, _style.getStyle)(unistylesKey, unistylesValue);
70
64
  });
71
65
  return (0, _utils.deepMergeObjects)(...stylesArray);
72
66
  };
73
67
  exports.convertUnistyles = convertUnistyles;
74
- //# sourceMappingURL=index.js.map
68
+ //# sourceMappingURL=index.js.mapjs.map
@@ -16,23 +16,19 @@ const validateShadow = (shadowProperties, styles, breakpoints) => {
16
16
  width,
17
17
  height
18
18
  } = value;
19
-
20
19
  // If shadowOffset.width has breakpoints
21
20
  if (typeof width === 'object') {
22
21
  Object.keys(width).forEach(breakpoint => breakpoints.add(breakpoint));
23
22
  }
24
-
25
23
  // If shadowOffset.height has breakpoints
26
24
  if (typeof height === 'object') {
27
25
  Object.keys(height).forEach(breakpoint => breakpoints.add(breakpoint));
28
26
  }
29
27
  return;
30
28
  }
31
-
32
29
  // Collect regular breakpoints
33
30
  Object.keys(value).forEach(breakpoint => breakpoints.add(breakpoint));
34
31
  });
35
-
36
32
  // Validate if all breakpoints are present
37
33
  shadowProperties.forEach(key => {
38
34
  const value = styles[key];
@@ -65,4 +61,4 @@ const validateShadow = (shadowProperties, styles, breakpoints) => {
65
61
  });
66
62
  };
67
63
  exports.validateShadow = validateShadow;
68
- //# sourceMappingURL=shadow.js.map
64
+ //# sourceMappingURL=shadow.js.map.map
@@ -1 +1,2 @@
1
- {"version":3,"names":["validateShadow","shadowProperties","styles","breakpoints","forEach","key","value","width","height","Object","keys","breakpoint","add","missingBreakpoints","Array","from","filter","length","join","exports"],"sourceRoot":"../../../../src","sources":["web/convert/shadow.ts"],"mappings":";;;;;;AAEO,MAAMA,cAAc,GAAGA,CAACC,gBAAuC,EAAEC,MAA2B,EAAEC,WAAwB,KAAK;EAC9H;EACAF,gBAAgB,CAACG,OAAO,CAACC,GAAG,IAAI;IAC5B,MAAMC,KAAK,GAAGJ,MAAM,CAACG,GAAG,CAAC;IAEzB,IAAI,OAAOC,KAAK,KAAK,QAAQ,EAAE;MAC3B;IACJ;IAEA,IAAID,GAAG,KAAK,cAAc,IAAIA,GAAG,KAAK,kBAAkB,EAAE;MACtD,MAAM;QAAEE,KAAK;QAAEC;MAAO,CAAC,GAAGF,KAAqB;;MAE/C;MACA,IAAI,OAAOC,KAAK,KAAK,QAAQ,EAAE;QAC3BE,MAAM,CAACC,IAAI,CAACH,KAAK,CAAC,CAACH,OAAO,CAACO,UAAU,IAAIR,WAAW,CAACS,GAAG,CAACD,UAAU,CAAC,CAAC;MACzE;;MAEA;MACA,IAAI,OAAOH,MAAM,KAAK,QAA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AML,kBAAkB,GAAGC,KAAK,CAACC,IAAI,CAACZ,WAAW,CAAC,CAACa,MAAM,CAACL,UAAU,IAAI,EAAEA,UAAU,IAAIL,KAAK,CAAC,CAAC;IAE/F,IAAIO,kBAAkB,CAACI,MAAM,EAAE;MAC3B,MAAM,0BAA0BZ,GAAG,KAAKQ,kBAAkB,CAACK,IAAI,CAAC,IAAI,CAAC,EAAE;IAC3E;EACJ,CAAC,CAAC;AACN,CAAC;AAAAC,OAAA,CAAAnB,cAAA,GAAAA,cAAA","ignoreList":[]}
1
+ {"version":3,"names":["validateShadow","shadowProperties","styles","breakpoints","forEach","key","value","width","height","Object","keys","breakpoint","add","missingBreakpoints","Array","from","filter","length","join","exports"],"sourceRoot":"../../../../src","sources":["web/convert/shadow.js"],"mappings":";;;;;;AAAO,MAAMA,cAAc,GAAGA,CAACC,gBAAgB,EAAEC,MAAM,EAAEC,WAAW,KAAK;EACrE;EACAF,gBAAgB,CAACG,OAAO,CAACC,GAAG,IAAI;IAC5B,MAAMC,KAAK,GAAGJ,MAAM,CAACG,GAAG,CAAC;IACzB,IAAI,OAAOC,KAAK,KAAK,QAAQ,EAAE;MAC3B;IACJ;IACA,IAAID,GAAG,KAAK,cAAc,IAAIA,GAAG,KAAK,kBAAkB,EAAE;MACtD,MAAM;QAAEE,KAAK;QAAEC;MAAO,CAAC,GAAGF,KAAK;MAC/B;MACA,IAAI,OAAOC,KAAK,KAAK,QAAQ,EAAE;QAC3BE,MAAM,CAACC,IAAI,CAACH,KAAK,CAAC,CAACH,OAAO,CAACO,UAAU,IAAIR,WAAW,CAACS,GAAG,CAACD,UAAU,CAAC,CAAC;MACzE;MACA;MACA,IAAI,OAAOH,MAAM,KAAK,QAAQ,EAAE;QAC5BC,MAAM,CAACC,IAAI,CAACF,MAAM,CAAC,CAACJ,OAAO,CAACO,UAAU,IAAIR,WAAW,CAACS,GAAG,CAACD,UAAU,CAAC,CAAC;MAC1E;MACA;IACJ;IACA;IACAF,MAAM,CAACC,I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BZ,GAAG,KAAKQ,kBAAkB,CAACK,IAAI,CAAC,IAAI,CAAC,EAAE;IAC3E;EACJ,CAAC,CAAC;AACN,CAAC;AAACC,OAAA,CAAAnB,cAAA,GAAAA,cAAA","ignoreList":[]}
2
+ st":[]}
@@ -36,14 +36,12 @@ const getTextShadowStyle = styles => {
36
36
  return {};
37
37
  }
38
38
  const breakpoints = Array.from(breakpointsSet);
39
-
40
39
  // If no breakpoints were used return styles without media queries
41
40
  if (breakpoints.length === 0) {
42
41
  return {
43
42
  textShadow: createTextShadowValue(styles)
44
43
  };
45
44
  }
46
-
47
45
  // Create textShadow for each breakpoint
48
46
  const breakpointStyles = breakpoints.map(breakpoint => {
49
47
  const color = (0, _utils2.extractShadowValue)('textShadowColor', breakpoint, styles);
@@ -65,9 +63,8 @@ const getTextShadowStyle = styles => {
65
63
  }
66
64
  };
67
65
  });
68
-
69
66
  // Merge all breakpoints styles into one
70
67
  return (0, _utils.deepMergeObjects)(...breakpointStyles);
71
68
  };
72
69
  exports.getTextShadowStyle = getTextShadowStyle;
73
- //# sourceMappingURL=textShadow.js.map
70
+ //# sourceMappingURL=textShadow.js.mapmap
@@ -1 +1,2 @@
1
- {"version":3,"names":["_utils","require","_shadow","_types","_utils2","createTextShadowValue","style","textShadowColor","textShadowOffset","textShadowRadius","offsetX","normalizeNumericValue","width","offsetY","height","radius","color","normalizeColor","getTextShadowStyle","styles","missingStyles","TEXT_SHADOW_STYLES","filter","key","length","warn","join","breakpointsSet","Set","validateShadow","error","breakpoints","Array","from","textShadow","breakpointStyles","map","breakpoint","extractShadowValue","deepMergeObjects","exports"],"sourceRoot":"../../../../src","sources":["web/convert/textShadow.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AAEA,MAAMI,qBAAqB,GAAIC,KAAiB,IAAK;EACjD,MAAM;I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,CAACK,GAAG,CAACC,UAAU,IAAI;IACnD,MAAMrB,KAAK,GAAG,IAAAsB,0BAAkB,EAAC,iBAAiB,EAAED,UAAU,EAAElB,MAAM,CAAC;IACvE,MAAM;MAAEP,KAAK;MAAEE;IAAO,CAAC,GAAG,IAAAwB,0BAAkB,EAAC,kBAAkB,EAAED,UAAU,EAAElB,MAAM,CAAC;IACpF,MAAMJ,MAAM,GAAG,IAAAuB,0BAAkB,EAAC,kBAAkB,EAAED,UAAU,EAAElB,MAAM,CAAC;IAEzE,OAAO;MACH,CAACkB,UAAU,GAAG;QACVH,UAAU,EAAE7B,qBAAqB,CAAC;UAC9BE,eAAe,EAAES,KAAK;UACtBR,gBAAgB,EAAE;YACdI,KAAK;YACLE;UACJ,CAAC;UACDL,gBAAgB,EAAEM;QACtB,CAAC;MACL;IACJ,CAAC;EACL,CAAC,CAAC;;EAEF;EACA,OAAO,IAAAwB,uBAAgB,EAAC,GAAGJ,gBAAgB,CAAC;AAChD,CAAC;AAAAK,OAAA,CAAAtB,kBAAA,GAAAA,kBAAA","ignoreList":[]}
1
+ {"version":3,"names":["_utils","require","_shadow","_types","_utils2","createTextShadowValue","style","textShadowColor","textShadowOffset","textShadowRadius","offsetX","normalizeNumericValue","width","offsetY","height","radius","color","normalizeColor","getTextShadowStyle","styles","missingStyles","TEXT_SHADOW_STYLES","filter","key","length","warn","join","breakpointsSet","Set","validateShadow","error","breakpoints","Array","from","textShadow","breakpointStyles","map","breakpoint","extractShadowValue","deepMergeObjects","exports"],"sourceRoot":"../../../../src","sources":["web/convert/textShadow.js"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AACA,MAAMI,qBAAqB,GAAIC,KAAK,IAAK;EACrC,MAAM;IAAEC,eAAe;IAAEC,gBAAgB;IAAEC;EAAiB,CAAC,GAAGH,KAAK;E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C,iBAAiB,EAAED,UAAU,EAAElB,MAAM,CAAC;IACvE,MAAM;MAAEP,KAAK;MAAEE;IAAO,CAAC,GAAG,IAAAwB,0BAAkB,EAAC,kBAAkB,EAAED,UAAU,EAAElB,MAAM,CAAC;IACpF,MAAMJ,MAAM,GAAG,IAAAuB,0BAAkB,EAAC,kBAAkB,EAAED,UAAU,EAAElB,MAAM,CAAC;IACzE,OAAO;MACH,CAACkB,UAAU,GAAG;QACVH,UAAU,EAAE7B,qBAAqB,CAAC;UAC9BE,eAAe,EAAES,KAAK;UACtBR,gBAAgB,EAAE;YACdI,KAAK;YACLE;UACJ,CAAC;UACDL,gBAAgB,EAAEM;QACtB,CAAC;MACL;IACJ,CAAC;EACL,CAAC,CAAC;EACF;EACA,OAAO,IAAAwB,uBAAgB,EAAC,GAAGJ,gBAAgB,CAAC;AAChD,CAAC;AAACK,OAAA,CAAAtB,kBAAA,GAAAA,kBAAA","ignoreList":[]}
2
+ t":[]}
@@ -1 +1,2 @@
1
- {"version":3,"names":["_utils","require","_utils2","normalizeTransform","key","value","includes","normalizeNumericValue","createTransformValue","transforms","map","transform","Object","keys","undefined","join","filter","Boolean","getTransformStyle","breakpoints","Set","normalTransforms","forEach","property","Array","isArray","breakpoint","add","push","breakpointTransforms","from","flatMap","transformsPerBreakpoint","keyInObject","deepMergeObjects","exports"],"sourceRoot":"../../../../src","sources":["web/convert/transform.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AAIA,MAAME,kBAAkB,GAAGA,CAACC,GAAW,EAAEC,KAAU,KAAK;EACpD,IAAID,GAAG,CAACE,QAAQ,CAAC,OAAO,CAAC,EAAE;IACvB,OAAOD,KAAK;EAChB;EAEA,IAAI,OAAOA,KAAK,KAAK,QAAQ,EAAE;IAC3B,OAAO,IAAAE,6BAAqB,EAACF,KAAK,CAAC;EACvC;EAEA,OAAOA,KAAK;AAChB,CAAC;AAED,MAAMG,oBAA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X,WAAW,CAAC,CAACY,OAAO,CAACL,UAAU,IAAI;IACvE,MAAMM,uBAAuB,GAAGvB,UAAU,CAACsB,OAAO,CAACpB,SAAS,IAAI;MAC5D,MAAM,CAACY,QAAQ,CAAC,GAAGX,MAAM,CAACC,IAAI,CAACF,SAAS,CAAC;MAEzC,IAAI,CAACY,QAAQ,EAAE;QACX,OAAO,EAAE;MACb;MAEA,MAAMlB,KAAK,GAAGM,SAAS,CAACY,QAAQ,CAAC;MAEjC,IAAI,OAAOlB,KAAK,KAAK,QAAQ,IAAI,CAACmB,KAAK,CAACC,OAAO,CAACpB,KAAK,CAAC,EAAE;QACpD,OAAO,IAAA4B,kBAAW,EAAC5B,KAAK,EAAEqB,UAAU,CAAC,GAAG,CAAC;UAAE,CAACH,QAAQ,GAAGlB,KAAK,CAACqB,UAAU;QAAE,CAAC,CAAC,GAAG,EAAE;MACpF;MAEA,OAAO,EAAE;IACb,CAAC,CAAC;IAEF,OAAO,CAAC;MACJ,CAACA,UAAU,GAAG;QACVf,SAAS,EAAEH,oBAAoB,CAACwB,uBAAuB;MAC3D;IACJ,CAAC,CAAC;EACN,CAAC,CAAC;EAEF,OAAO,IAAAE,uBAAgB,EAAsB;IACzCvB,SAAS,EAAEH,oBAAoB,CAACa,gBAAgB;EACpD,CAAC,EAAE,GAAGQ,oBAAoB,CAAC;AAC/B,CAAC;AAAAM,OAAA,CAAAjB,iBAAA,GAAAA,iBAAA","ignoreList":[]}
1
+ {"version":3,"names":["_utils","require","_utils2","normalizeTransform","key","value","includes","normalizeNumericValue","createTransformValue","transforms","map","transform","Object","keys","undefined","join","filter","Boolean","getTransformStyle","breakpoints","Set","normalTransforms","forEach","property","Array","isArray","breakpoint","add","push","breakpointTransforms","from","flatMap","transformsPerBreakpoint","keyInObject","deepMergeObjects","exports"],"sourceRoot":"../../../../src","sources":["web/convert/transform.js"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;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32
  };
33
-
34
33
  // Add secrets to result of dynamic styles function
35
34
  return addSecrets((0, _utils.getStyles)(resultWithVariants), key, args);
36
35
  };
37
-
38
36
  // Add secrets to dynamic styles function
39
37
  return addSecrets(dynamicStyle, key);
40
38
  }
41
-
42
39
  // Add secrets to static styles
43
40
  return addSecrets((0, _utils.getStyles)(value), key);
44
41
  });
45
-
46
42
  // Inject useVariants hook to styles
47
43
  (0, _variants.createUseVariants)(styles, newVariants => Object.entries(newVariants).forEach(([key, value]) => selectedVariants.set(key, value)));
48
44
  return styles;
49
45
  };
50
46
  exports.create = create;
51
- //# sourceMappingURL=create.js.map
47
+ //# sourceMappingURL=create.js.map.map