react-native-unistyles 3.0.0-alpha.30 → 3.0.0-alpha.32
Sign up to get free protection for your applications and to get access to all the features.
- package/cxx/core/UnistylesCommitHook.cpp +9 -11
- package/cxx/core/UnistylesCommitHook.h +1 -2
- package/cxx/core/UnistylesMountHook.cpp +5 -3
- package/cxx/core/UnistylesMountHook.h +2 -1
- package/cxx/core/UnistylesRegistry.cpp +23 -4
- package/cxx/core/UnistylesRegistry.h +1 -1
- package/cxx/hybridObjects/HybridStyleSheet.cpp +6 -14
- package/cxx/hybridObjects/HybridStyleSheet.h +0 -1
- package/cxx/parser/Parser.cpp +51 -13
- package/cxx/parser/Parser.h +2 -1
- package/cxx/shadowTree/ShadowLeafUpdate.h +2 -1
- package/cxx/shadowTree/ShadowTrafficController.h +48 -15
- package/cxx/shadowTree/ShadowTreeManager.cpp +5 -6
- package/cxx/shadowTree/ShadowTreeManager.h +1 -1
- package/ios/UnistylesModuleOnLoad.mm +1 -3
- package/lib/commonjs/common.js.map +1 -1
- package/lib/commonjs/core/createUnistylesComponent.native.js.map +1 -2
- package/lib/commonjs/core/useTheme.js.map +1 -2
- package/lib/commonjs/global.js +2 -1
- package/lib/commonjs/global.js.map +1 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/mq.js +4 -1
- package/lib/commonjs/mq.js.map +1 -2
- package/lib/commonjs/specs/NativePlatform/NativePlatform.nitro.js.map +2 -1
- package/lib/commonjs/specs/NativePlatform/index.js.map +1 -1
- package/lib/commonjs/specs/ShadowRegistry/types.js +2 -1
- package/lib/commonjs/specs/ShadowRegistry/types.js.map +1 -1
- package/lib/commonjs/specs/StatusBar/index.js.map +1 -2
- package/lib/commonjs/types/accessibility.js +10 -10
- package/lib/commonjs/types/accessibility.js.map +2 -1
- package/lib/commonjs/types/core.js.map +1 -1
- package/lib/commonjs/types/index.js.map +1 -2
- package/lib/commonjs/web/convert/shadow.js +1 -5
- package/lib/commonjs/web/convert/types.js.map +1 -1
- package/lib/commonjs/web/index.js.map +1 -2
- package/lib/commonjs/web/registry.js +3 -1
- package/lib/commonjs/web/registry.js.map +1 -2
- package/lib/commonjs/web/runtime.js.map +1 -2
- package/lib/commonjs/web/state.js +5 -1
- package/lib/commonjs/web/state.js.map +1 -2
- package/lib/commonjs/web/utils/common.js +3 -1
- package/lib/commonjs/web/utils/common.js.map +1 -2
- package/lib/commonjs/web/utils/index.js.map +1 -1
- package/lib/commonjs/web/utils/unistyle.js.map +1 -2
- package/lib/module/common.js.map +1 -1
- package/lib/module/core/createUnistylesComponent.js +4 -3
- package/lib/module/core/createUnistylesComponent.js.map +1 -2
- package/lib/module/core/useBreakpoint.js.map +1 -1
- package/lib/module/core/useBreakpoint.native.js.map +1 -2
- package/lib/module/core/useTheme.native.js.map +1 -2
- package/lib/module/mq.js +4 -1
- package/lib/module/mq.js.map +1 -2
- package/lib/module/specs/NativePlatform/NativePlatform.nitro.js +5 -6
- package/lib/module/specs/NativePlatform/index.js.map +1 -1
- package/lib/module/specs/NavigtionBar/index.js.map +1 -2
- package/lib/module/specs/ShadowRegistry/ShadowRegistry.nitro.js.map +2 -1
- package/lib/module/specs/ShadowRegistry/index.js.map +1 -2
- package/lib/module/specs/StatusBar/UnistylesStatusBar.nitro.js.map +2 -1
- package/lib/module/specs/StatusBar/index.js.map +1 -1
- package/lib/module/specs/StyleSheet/UnistylesStyleSheet.nitro.js +1 -1
- package/lib/module/specs/StyleSheet/UnistylesStyleSheet.nitro.js.map +1 -0
- package/lib/module/specs/UnistylesRuntime/index.js.map +2 -1
- package/lib/module/specs/index.web.js.map +1 -2
- package/lib/module/specs/types.js +10 -10
- package/lib/module/specs/types.js.map +2 -1
- package/lib/module/types/accessibility.js +10 -10
- package/lib/module/types/accessibility.js.map +1 -2
- package/lib/module/types/common.js +3 -1
- package/lib/module/types/common.js.map +1 -2
- package/lib/module/types/index.js.map +1 -2
- package/lib/module/types/stylesheet.js +2 -2
- package/lib/module/types/variants.js.map +1 -2
- package/lib/module/web/convert/boxShadow.js +1 -4
- package/lib/module/web/convert/boxShadow.js.map +2 -1
- package/lib/module/web/convert/index.js.map +1 -2
- package/lib/module/web/convert/shadow.js +5 -1
- package/lib/module/web/convert/textShadow.js +1 -4
- package/lib/module/web/convert/transform.js.map +2 -1
- package/lib/module/web/convert/types.js.map +1 -1
- package/lib/module/web/index.js +2 -1
- package/lib/module/web/index.js.map +1 -2
- package/lib/module/web/listener.js.map +1 -2
- package/lib/module/web/mock.js.map +1 -2
- package/lib/module/web/registry.js +1 -3
- package/lib/module/web/registry.js.map +2 -1
- package/lib/module/web/runtime.js.map +2 -1
- package/lib/module/web/shadowRegistry.js +1 -9
- package/lib/module/web/state.js +5 -1
- package/lib/module/web/state.js.map +1 -2
- package/lib/module/web/utils/common.js +1 -3
- package/lib/module/web/utils/common.js.map +2 -1
- package/lib/module/web/utils/index.js.map +1 -1
- package/lib/module/web/variants/getVariants.js.map +1 -2
- package/package.json +1 -1
@@ -1,20 +1,20 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
|
-
export
|
4
|
-
(function (ColorScheme) {
|
3
|
+
export let ColorScheme = /*#__PURE__*/function (ColorScheme) {
|
5
4
|
ColorScheme["Light"] = "light";
|
6
5
|
ColorScheme["Dark"] = "dark";
|
7
6
|
ColorScheme["Unspecified"] = "unspecified";
|
8
|
-
|
9
|
-
|
10
|
-
|
7
|
+
return ColorScheme;
|
8
|
+
}({});
|
9
|
+
export let Orientation = /*#__PURE__*/function (Orientation) {
|
11
10
|
Orientation["Portrait"] = "portrait";
|
12
11
|
Orientation["Landscape"] = "landscape";
|
13
|
-
|
14
|
-
|
15
|
-
|
12
|
+
return Orientation;
|
13
|
+
}({});
|
14
|
+
export let StatusBarStyle = /*#__PURE__*/function (StatusBarStyle) {
|
16
15
|
StatusBarStyle["Default"] = "default";
|
17
16
|
StatusBarStyle["Light"] = "light";
|
18
17
|
StatusBarStyle["Dark"] = "dark";
|
19
|
-
|
20
|
-
|
18
|
+
return StatusBarStyle;
|
19
|
+
}({});
|
20
|
+
//# sourceMappingURL=types.js.map
|
@@ -1 +1,2 @@
|
|
1
|
-
{"version":3,"names":["ColorScheme","Orientation","StatusBarStyle"],"sourceRoot":"../../../src","sources":["specs/types.
|
1
|
+
{"version":3,"names":["ColorScheme","Orientation","StatusBarStyle"],"sourceRoot":"../../../src","sources":["specs/types.ts"],"mappings":";;AAGA,WAAYA,WAAW,0BAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAA,OAAXA,WAAW;AAAA;AAMvB,WAAYC,WAAW,0BAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAA,OAAXA,WAAW;AAAA;AAkBvB,WAAYC,cAAc,0BAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAA,OAAdA,cAAc;AAAA","ignoreList":[]}
|
2
|
+
WAAW,EAAE;EACpBA,WAAW,CAAC,UAAU,CAAC,GAAG,UAAU;EACpCA,WAAW,CAAC,WAAW,CAAC,GAAG,WAAW;AAC1C,CAAC,EAAEA,WAAW,KAAKA,WAAW,GAAG,CAAC,CAAC,CAAC,CAAC;AACrC,OAAO,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,KAAKA,cAAc,GAAG,CAAC,CAAC,CAAC,CAAC","ignoreList":[]}
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
|
-
export
|
3
|
+
export var IOSContentSizeCategory;
|
4
|
+
(function (IOSContentSizeCategory) {
|
4
5
|
IOSContentSizeCategory["AccessibilityExtraExtraExtraLarge"] = "accessibilityExtraExtraExtraLarge";
|
5
6
|
IOSContentSizeCategory["AccessibilityExtraExtraLarge"] = "accessibilityExtraExtraLarge";
|
6
7
|
IOSContentSizeCategory["AccessibilityExtraLarge"] = "accessibilityExtraLarge";
|
@@ -14,9 +15,9 @@ export let IOSContentSizeCategory = /*#__PURE__*/function (IOSContentSizeCategor
|
|
14
15
|
IOSContentSizeCategory["Small"] = "Small";
|
15
16
|
IOSContentSizeCategory["ExtraSmall"] = "xSmall";
|
16
17
|
IOSContentSizeCategory["Unspecified"] = "unspecified";
|
17
|
-
|
18
|
-
|
19
|
-
|
18
|
+
})(IOSContentSizeCategory || (IOSContentSizeCategory = {}));
|
19
|
+
export var AndroidContentSizeCategory;
|
20
|
+
(function (AndroidContentSizeCategory) {
|
20
21
|
AndroidContentSizeCategory["Small"] = "Small";
|
21
22
|
AndroidContentSizeCategory["Default"] = "Default";
|
22
23
|
AndroidContentSizeCategory["Large"] = "Large";
|
@@ -24,10 +25,9 @@ export let AndroidContentSizeCategory = /*#__PURE__*/function (AndroidContentSiz
|
|
24
25
|
AndroidContentSizeCategory["Huge"] = "Huge";
|
25
26
|
AndroidContentSizeCategory["ExtraHuge"] = "ExtraHuge";
|
26
27
|
AndroidContentSizeCategory["ExtraExtraHuge"] = "ExtraExtraHuge";
|
27
|
-
|
28
|
-
|
29
|
-
|
28
|
+
})(AndroidContentSizeCategory || (AndroidContentSizeCategory = {}));
|
29
|
+
export var WebContentSizeCategory;
|
30
|
+
(function (WebContentSizeCategory) {
|
30
31
|
WebContentSizeCategory["Unspecified"] = "web-unspecified";
|
31
|
-
|
32
|
-
|
33
|
-
//# sourceMappingURL=accessibility.js.mappingURL=accessibility.js.map
|
32
|
+
})(WebContentSizeCategory || (WebContentSizeCategory = {}));
|
33
|
+
//# sourceMappingURL=accessibility.js.map
|
@@ -1,2 +1 @@
|
|
1
|
-
{"version":3,"names":["IOSContentSizeCategory","AndroidContentSizeCategory","WebContentSizeCategory"],"sourceRoot":"../../../src","sources":["types/accessibility.
|
2
|
-
AAO,CAAC,GAAG,OAAO;EACzCA,sBAAsB,CAAC,YAAY,CAAC,GAAG,QAAQ;EAC/CA,sBAAsB,CAAC,aAAa,CAAC,GAAG,aAAa;AACzD,CAAC,EAAEA,sBAAsB,KAAKA,sBAAsB,GAAG,CAAC,CAAC,CAAC,CAAC;AAC3D,OAAO,IAAIC,0BAA0B;AACrC,CAAC,UAAUA,0BAA0B,EAAE;EACnCA,0BAA0B,CAAC,OAAO,CAAC,GAAG,OAAO;EAC7CA,0BAA0B,CAAC,SAAS,CAAC,GAAG,SAAS;EACjDA,0BAA0B,CAAC,OAAO,CAAC,GAAG,OAAO;EAC7CA,0BAA0B,CAAC,YAAY,CAAC,GAAG,YAAY;EACvDA,0BAA0B,CAAC,MAAM,CAAC,GAAG,MAAM;EAC3CA,0BAA0B,CAAC,WAAW,CAAC,GAAG,WAAW;EACrDA,0BAA0B,CAAC,gBAAgB,CAAC,GAAG,gBAAgB;AACnE,CAAC,EAAEA,0BAA0B,KAAKA,0BAA0B,GAAG,CAAC,CAAC,CAAC,CAAC;AACnE,OAAO,IAAIC,sBAAsB;AACjC,CAAC,UAAUA,sBAAsB,EAAE;EAC/BA,sBAAsB,CAAC,aAAa,CAAC,GAAG,iBAAiB;AAC7D,CAAC,EAAEA,sBAAsB,KAAKA,sBAAsB,GAAG,CAAC,CAAC,CAAC,CAAC","ignoreList":[]}
|
1
|
+
{"version":3,"names":["IOSContentSizeCategory","AndroidContentSizeCategory","WebContentSizeCategory"],"sourceRoot":"../../../src","sources":["types/accessibility.js"],"mappings":";;AAAA,OAAO,IAAIA,sBAAsB;AACjC,CAAC,UAAUA,sBAAsB,EAAE;EAC/BA,sBAAsB,CAAC,mCAAmC,CAAC,GAAG,mCAAmC;EACjGA,sBAAsB,CAAC,8BAA8B,CAAC,GAAG,8BAA8B;EACvFA,sBAAsB,CAAC,yBAAyB,CAAC,GAAG,yBAAyB;EAC7EA,sBAAsB,CAAC,oBAAoB,CAAC,GAAG,oBAAoB;EACnEA,sBAAsB,CAAC,qBAAqB,CAAC,GAAG,qBAAqB;EACrEA,sBAAsB,CAAC,sBAAsB,CAAC,GAAG,UAAU;EAC3DA,sBAAsB,CAAC,iBAAiB,CAAC,GAAG,SAAS;EACrDA,sBAAsB,CAAC,YAAY,CAAC,GAAG,QAAQ;EAC/CA,sBAAsB,CAAC,OAAO,CAAC,GAAG,OAAO;EACzCA,sBAAsB,CAAC,QAAQ,CAAC,GAAG,QAAQ;EAC3CA,sBAAsB,CAAC,OAAO,CAAC,GAAG,OAAO;EACzCA,sBAAsB,CAAC,YAAY,CAAC,GAAG,QAAQ;EAC/CA,sBAAsB,CAAC,aAAa,CAAC,GAAG,aAAa;AACzD,CAAC,EAAEA,sBAAsB,KAAKA,sBAAsB,GAAG,CAAC,CAAC,CAAC,CAAC;AAC3D,OAAO,IAAIC,0BAA0B;AACrC,CAAC,UAAUA,0BAA0B,EAAE;EACnCA,0BAA0B,CAAC,OAAO,CAAC,GAAG,OAAO;EAC7CA,0BAA0B,CAAC,SAAS,CAAC,GAAG,SAAS;EACjDA,0BAA0B,CAAC,OAAO,CAAC,GAAG,OAAO;EAC7CA,0BAA0B,CAAC,YAAY,CAAC,GAAG,YAAY;EACvDA,0BAA0B,CAAC,MAAM,CAAC,GAAG,MAAM;EAC3CA,0BAA0B,CAAC,WAAW,CAAC,GAAG,WAAW;EACrDA,0BAA0B,CAAC,gBAAgB,CAAC,GAAG,gBAAgB;AACnE,CAAC,EAAEA,0BAA0B,KAAKA,0BAA0B,GAAG,CAAC,CAAC,CAAC,CAAC;AACnE,OAAO,IAAIC,sBAAsB;AACjC,CAAC,UAAUA,sBAAsB,EAAE;EAC/BA,sBAAsB,CAAC,aAAa,CAAC,GAAG,iBAAiB;AAC7D,CAAC,EAAEA,sBAAsB,KAAKA,sBAAsB,GAAG,CAAC,CAAC,CAAC,CAAC","ignoreList":[]}
|
@@ -1,2 +1 @@
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/common.
|
2
|
-
":[]}
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/common.js"],"mappings":";;AAAA","ignoreList":[]}
|
@@ -1,2 +1 @@
|
|
1
|
-
{"version":3,"names":["AndroidContentSizeCategory","IOSContentSizeCategory","WebContentSizeCategory"],"sourceRoot":"../../../src","sources":["types/index.
|
2
|
-
|
1
|
+
{"version":3,"names":["AndroidContentSizeCategory","IOSContentSizeCategory","WebContentSizeCategory"],"sourceRoot":"../../../src","sources":["types/index.ts"],"mappings":";;AAoBA,SAASA,0BAA0B,EAAEC,sBAAsB,EAAEC,sBAAsB,QAAQ,iBAAiB","ignoreList":[]}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
|
-
// these props are treated differently to nest breakpoints and media queries
|
4
|
-
|
5
3
|
const create = stylesheet => stylesheet;
|
6
4
|
export {};
|
5
|
+
//# sourceMappingURL=stylesheet.js.map = stylesheet => stylesheet;
|
6
|
+
export {};
|
7
7
|
//# sourceMappingURL=stylesheet.js.map
|
@@ -1,2 +1 @@
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/variants.
|
2
|
-
":[]}
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["types/variants.js"],"mappings":";;AAAA","ignoreList":[]}
|
@@ -34,14 +34,12 @@ export const getBoxShadowStyle = styles => {
|
|
34
34
|
return {};
|
35
35
|
}
|
36
36
|
const breakpoints = Array.from(breakpointsSet);
|
37
|
-
|
38
37
|
// If no breakpoints were used return styles without media queries
|
39
38
|
if (breakpoints.length === 0) {
|
40
39
|
return {
|
41
40
|
boxShadow: createBoxShadowValue(styles)
|
42
41
|
};
|
43
42
|
}
|
44
|
-
|
45
43
|
// Create boxShadow for each breakpoint
|
46
44
|
const breakpointStyles = breakpoints.map(breakpoint => {
|
47
45
|
const color = extractShadowValue('shadowColor', breakpoint, styles);
|
@@ -65,8 +63,7 @@ export const getBoxShadowStyle = styles => {
|
|
65
63
|
}
|
66
64
|
};
|
67
65
|
});
|
68
|
-
|
69
66
|
// Merge all breakpoints styles into one
|
70
67
|
return deepMergeObjects(...breakpointStyles);
|
71
68
|
};
|
72
|
-
//# sourceMappingURL=boxShadow.js.
|
69
|
+
//# sourceMappingURL=boxShadow.js.mapmap
|
@@ -1 +1,2 @@
|
|
1
|
-
{"version":3,"names":["deepMergeObjects","warn","validateShadow","BOX_SHADOW_STYLES","extractShadowValue","normalizeColor","normalizeNumericValue","createBoxShadowValue","style","shadowColor","shadowOffset","shadowOpacity","shadowRadius","offsetX","width","offsetY","height","radius","color","getBoxShadowStyle","styles","missingStyles","filter","key","length","join","breakpointsSet","Set","error","breakpoints","Array","from","boxShadow","breakpointStyles","map","breakpoint","opacity"],"sourceRoot":"../../../../src","sources":["web/convert/boxShadow.
|
1
|
+
{"version":3,"names":["deepMergeObjects","warn","validateShadow","BOX_SHADOW_STYLES","extractShadowValue","normalizeColor","normalizeNumericValue","createBoxShadowValue","style","shadowColor","shadowOffset","shadowOpacity","shadowRadius","offsetX","width","offsetY","height","radius","color","getBoxShadowStyle","styles","missingStyles","filter","key","length","join","breakpointsSet","Set","error","breakpoints","Array","from","boxShadow","breakpointStyles","map","breakpoint","opacity"],"sourceRoot":"../../../../src","sources":["web/convert/boxShadow.js"],"mappings":";;AAAA,SAASA,gBAAgB,EAAEC,IAAI,QAAQ,UAAU;AACjD,SAASC,cAAc,QAAQ,UAAU;AACzC,SAASC,iBAAiB,QAAQ,SAAS;AAC3C,SAASC,kBAAkB,EAAEC,cAAc,EAAEC,qBAAqB,QAAQ,SAAS;AACnF,MAAMC,oBAAoB,GAAIC,KAAK,IAAK;EACpC;EACA,MAAM;IAAEC,WAAW;IAAEC,YAAY;IAAEC,aAAa;IAAEC;EAAa,CAAC,GAAGJ,KAAK;EACxE,MAAMK,OAAO,GAAGP,qBAAqB,CAACI,YAAY,CAACI,KAAK,CAAC;EACzD,MAAMC,OAAO,GAAGT,qBAAqB,CAACI,YAAY,CAACM,MAAM,CAAC;EAC1D,MAAMC,MAAM,GAAGX,qBAAqB,CAACM,YAAY,CAAC;EAClD,MAAMM,KAAK,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MAAMgB,OAAO,GAAGhC,kBAAkB,CAAC,eAAe,EAAE+B,UAAU,EAAEf,MAAM,CAAC;IACvE,OAAO;MACH,CAACe,UAAU,GAAG;QACVH,SAAS,EAAEzB,oBAAoB,CAAC;UAC5BE,WAAW,EAAES,KAAK;UAClBR,YAAY,EAAE;YACVI,KAAK;YACLE;UACJ,CAAC;UACDJ,YAAY,EAAEK,MAAM;UACpBN,aAAa,EAAEyB;QACnB,CAAC;MACL;IACJ,CAAC;EACL,CAAC,CAAC;EACF;EACA,OAAOpC,gBAAgB,CAAC,GAAGiC,gBAAgB,CAAC;AAChD,CAAC","ignoreList":[]}
|
2
|
+
st":[]}
|
@@ -1,2 +1 @@
|
|
1
|
-
{"version":3,"names":["isPseudo","getStyle","deepMergeObjects","getTransformStyle","isBoxShadow","isTextShadow","isTransform","getTextShadowStyle","getBoxShadowStyle","convertUnistyles","value","hasTextShadow","hasBoxShadow","stylesArray","Object","entries","_web","flatMap","unistylesKey","unistylesValue","includes","startsWith","flattenValues","map","breakpointKey","breakpointValue"],"sourceRoot":"../../../../src","sources":["web/convert/index.
|
2
|
-
List":[]}
|
1
|
+
{"version":3,"names":["isPseudo","getStyle","deepMergeObjects","getTransformStyle","isBoxShadow","isTextShadow","isTransform","getTextShadowStyle","getBoxShadowStyle","convertUnistyles","value","hasTextShadow","hasBoxShadow","stylesArray","Object","entries","_web","flatMap","unistylesKey","unistylesValue","includes","startsWith","flattenValues","map","breakpointKey","breakpointValue"],"sourceRoot":"../../../../src","sources":["web/convert/index.ts"],"mappings":";;AACA,SAASA,QAAQ,QAAQ,UAAU;AACnC,SAASC,QAAQ,QAAQ,SAAS;AAClC,SAASC,gBAAgB,QAAQ,UAAU;AAC3C,SAASC,iBAAiB,QAAQ,aAAa;AAC/C,SAASC,WAAW,EAAEC,YAAY,EAAEC,WAAW,QAAQ,SAAS;AAChE,SAASC,kBAAkB,QAAQ,cAAc;AACjD,SAASC,iBAAiB,QAAQ,aAAa;AAE/C,OAAO,M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AC,CAACI,GAAG,CAAC,CAAC,CAACC,aAAa,EAAEC,eAAe,CAAC,KAAK;QAC5E,OAAO;UAAE,CAACD,aAAa,GAAGvB,QAAQ,CAACiB,YAAY,EAAEO,eAAe;QAAE,CAAC;MACvE,CAAC,CAAC;IACN;;IAEA;IACA,OAAOxB,QAAQ,CAACiB,YAAY,EAAEC,cAAc,CAAC;EACjD,CAAC,CAA+B;EAEhC,OAAOjB,gBAAgB,CAAC,GAAGW,WAAW,CAAC;AAC3C,CAAC","ignoreList":[]}
|
@@ -12,19 +12,23 @@ export const validateShadow = (shadowProperties, styles, breakpoints) => {
|
|
12
12
|
width,
|
13
13
|
height
|
14
14
|
} = value;
|
15
|
+
|
15
16
|
// If shadowOffset.width has breakpoints
|
16
17
|
if (typeof width === 'object') {
|
17
18
|
Object.keys(width).forEach(breakpoint => breakpoints.add(breakpoint));
|
18
19
|
}
|
20
|
+
|
19
21
|
// If shadowOffset.height has breakpoints
|
20
22
|
if (typeof height === 'object') {
|
21
23
|
Object.keys(height).forEach(breakpoint => breakpoints.add(breakpoint));
|
22
24
|
}
|
23
25
|
return;
|
24
26
|
}
|
27
|
+
|
25
28
|
// Collect regular breakpoints
|
26
29
|
Object.keys(value).forEach(breakpoint => breakpoints.add(breakpoint));
|
27
30
|
});
|
31
|
+
|
28
32
|
// Validate if all breakpoints are present
|
29
33
|
shadowProperties.forEach(key => {
|
30
34
|
const value = styles[key];
|
@@ -56,4 +60,4 @@ export const validateShadow = (shadowProperties, styles, breakpoints) => {
|
|
56
60
|
}
|
57
61
|
});
|
58
62
|
};
|
59
|
-
//# sourceMappingURL=shadow.js.map
|
63
|
+
//# sourceMappingURL=shadow.js.map
|
@@ -32,14 +32,12 @@ export const getTextShadowStyle = styles => {
|
|
32
32
|
return {};
|
33
33
|
}
|
34
34
|
const breakpoints = Array.from(breakpointsSet);
|
35
|
-
|
36
35
|
// If no breakpoints were used return styles without media queries
|
37
36
|
if (breakpoints.length === 0) {
|
38
37
|
return {
|
39
38
|
textShadow: createTextShadowValue(styles)
|
40
39
|
};
|
41
40
|
}
|
42
|
-
|
43
41
|
// Create textShadow for each breakpoint
|
44
42
|
const breakpointStyles = breakpoints.map(breakpoint => {
|
45
43
|
const color = extractShadowValue('textShadowColor', breakpoint, styles);
|
@@ -61,8 +59,7 @@ export const getTextShadowStyle = styles => {
|
|
61
59
|
}
|
62
60
|
};
|
63
61
|
});
|
64
|
-
|
65
62
|
// Merge all breakpoints styles into one
|
66
63
|
return deepMergeObjects(...breakpointStyles);
|
67
64
|
};
|
68
|
-
//# sourceMappingURL=textShadow.js.
|
65
|
+
//# sourceMappingURL=textShadow.js.mapmap
|
@@ -1 +1,2 @@
|
|
1
|
-
{"version":3,"names":["deepMergeObjects","keyInObject","normalizeNumericValue","normalizeTransform","key","value","includes","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"],"sourceRoot":"../../../../src","sources":["web/convert/transform.
|
1
|
+
{"version":3,"names":["deepMergeObjects","keyInObject","normalizeNumericValue","normalizeTransform","key","value","includes","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"],"sourceRoot":"../../../../src","sources":["web/convert/transform.js"],"mappings":";;AAAA,SAASA,gBAAgB,EAAEC,WAAW,QAAQ,UAAU;AACxD,SAASC,qBAAqB,QAAQ,SAAS;AAC/C,MAAMC,kBAAkB,GAAGA,CAACC,GAAG,EAAEC,KAAK,KAAK;EACvC,IAAID,GAAG,CAACE,QAAQ,CAAC,OAAO,CAAC,EAAE;IACvB,OAAOD,KAAK;EAChB;EACA,IAAI,OAAOA,KAAK,KAAK,QAAQ,EAAE;IAC3B,OAAOH,qBAAqB,CAACG,KAAK,CAAC;EACvC;EACA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AoB,GAAGL,KAAK,CAACM,IAAI,CAACX,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;MACzC,IAAI,CAACY,QAAQ,EAAE;QACX,OAAO,EAAE;MACb;MACA,MAAMjB,KAAK,GAAGK,SAAS,CAACY,QAAQ,CAAC;MACjC,IAAI,OAAOjB,KAAK,KAAK,QAAQ,IAAI,CAACkB,KAAK,CAACC,OAAO,CAACnB,KAAK,CAAC,EAAE;QACpD,OAAOJ,WAAW,CAACI,KAAK,EAAEoB,UAAU,CAAC,GAAG,CAAC;UAAE,CAACH,QAAQ,GAAGjB,KAAK,CAACoB,UAAU;QAAE,CAAC,CAAC,GAAG,EAAE;MACpF;MACA,OAAO,EAAE;IACb,CAAC,CAAC;IACF,OAAO,CAAC;MACA,CAACA,UAAU,GAAG;QACVf,SAAS,EAAEH,oBAAoB,CAACwB,uBAAuB;MAC3D;IACJ,CAAC,CAAC;EACV,CAAC,CAAC;EACF,OAAO/B,gBAAgB,CAAC;IACpBU,SAAS,EAAEH,oBAAoB,CAACa,gBAAgB;EACpD,CAAC,EAAE,GAAGQ,oBAAoB,CAAC;AAC/B,CAAC","ignoreList":[]}
|
2
|
+
]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["TEXT_SHADOW_STYLES","BOX_SHADOW_STYLES"],"sourceRoot":"../../../../src","sources":["web/convert/types.
|
1
|
+
{"version":3,"names":["TEXT_SHADOW_STYLES","BOX_SHADOW_STYLES"],"sourceRoot":"../../../../src","sources":["web/convert/types.js"],"mappings":";;AAAA,OAAO,MAAMA,kBAAkB,GAAG,CAAC,iBAAiB,EAAE,kBAAkB,EAAE,kBAAkB,CAAC;AAC7F,OAAO,MAAMC,iBAAiB,GAAG,CAAC,aAAa,EAAE,cAAc,EAAE,eAAe,EAAE,cAAc,CAAC","ignoreList":[]}
|
package/lib/module/web/index.js
CHANGED
@@ -20,6 +20,7 @@ export const StyleSheet = {
|
|
20
20
|
export { UnistylesRuntime } from './runtime';
|
21
21
|
export { UnistylesShadowRegistry } from './shadowRegistry';
|
22
22
|
export * from './mock';
|
23
|
+
|
23
24
|
// TODO: Work on SSR
|
24
25
|
export const getSSRUnistyles = () => [];
|
25
|
-
//# sourceMappingURL=index.js.
|
26
|
+
//# sourceMappingURL=index.js.map
|
@@ -1,2 +1 @@
|
|
1
|
-
{"version":3,"names":["create","UnistylesState","deepMergeObjects","StyleSheet","configure","init","absoluteFill","position","left","top","right","bottom","compose","a","b","flatten","styles","hairlineWidth","UnistylesRuntime","UnistylesShadowRegistry","getSSRUnistyles"],"sourceRoot":"../../../src","sources":["web/index.
|
2
|
-
}
|
1
|
+
{"version":3,"names":["create","UnistylesState","deepMergeObjects","StyleSheet","configure","init","absoluteFill","position","left","top","right","bottom","compose","a","b","flatten","styles","hairlineWidth","UnistylesRuntime","UnistylesShadowRegistry","getSSRUnistyles"],"sourceRoot":"../../../src","sources":["web/index.ts"],"mappings":";;AAAA,SAASA,MAAM,QAAQ,UAAU;AACjC,SAASC,cAAc,QAAQ,SAAS;AACxC,SAASC,gBAAgB,QAAQ,SAAS;AAE1C,OAAO,MAAMC,UAAU,GAAG;EACtBC,SAAS,EAAEH,cAAc,CAACI,IAAI;EAC9BL,MAAM;EACNM,YAAY,EAAE;IACVC,QAAQ,EAAE,UAAU;IACpBC,IAAI,EAAE,CAAC;IACPC,GAAG,EAAE,CAAC;IACNC,KAAK,EAAE,CAAC;IACRC,MAAM,EAAE;EACZ,CAAC;EACDC,OAAO,EAAEA,CAACC,CAAS,EAAEC,CAAS,KAAKZ,gBAAgB,CAACW,CAAC,EAAEC,CAAC,CAAC;EACzDC,OAAO,EAAEA,CAAC,GAAGC,MAAqB,KAAKd,gBAAgB,CAAC,GAAGc,MAAM,CAAC;EAClEC,aAAa,EAAE;AACnB,CAAC;AAED,SAASC,gBAAgB,QAAQ,WAAW;AAC5C,SAASC,uBAAuB,QAAQ,kBAAkB;AAC1D,cAAc,QAAQ;;AAEtB;AACA,OAAO,MAAMC,eAAe,GAAGA,CAAA,KAAM,EAAE","ignoreList":[]}
|
@@ -1,2 +1 @@
|
|
1
|
-
{"version":3,"names":["UnistyleDependency","UnistylesRuntime","UnistylesListenerBuilder","isInitialized","listeners","Array","from","length","Object","keys","Set","emitChange","dependency","forEach","listener","initListeners","darkMedia","addEventListener","ColorScheme","lightMedia","window","Orientation","Dimensions","addListeners","dependencies","add","delete","UnistylesListener"],"sourceRoot":"../../../src","sources":["web/listener.
|
2
|
-
]}
|
1
|
+
{"version":3,"names":["UnistyleDependency","UnistylesRuntime","UnistylesListenerBuilder","isInitialized","listeners","Array","from","length","Object","keys","Set","emitChange","dependency","forEach","listener","initListeners","darkMedia","addEventListener","ColorScheme","lightMedia","window","Orientation","Dimensions","addListeners","dependencies","add","delete","UnistylesListener"],"sourceRoot":"../../../src","sources":["web/listener.ts"],"mappings":";;AAAA,SAASA,kBAAkB,QAAQ,yBAAyB;AAC5D,SAASC,gBAAgB,QAAQ,WAAW;AAE5C,MAAMC,wBAAwB,CAAC;EACnBC,aAAa,GAAG,KAAK;EACrBC,SAAS,GAAGC,KAAK,CAACC,IAAI,CAAC;IAAEC,MAAM,EAAEC,MAAM,CAACC,IAAI,CAACT,kBAAkB,CAAC,CAACO,MAAM,GAAG;EAAE,CAAC,EAAE,MAAM,IAAIG,GAAG,CAAe,CAAC,CAAC;EAErHC,UAAU,GAAIC,UAA8B,IAAK;IAC7C,IAAI,CAACR,SAAS,CAACQ,UAAU,CAAC,EAAEC,OAAO,CAACC,QAAQ,IAAIA,QAAQ,CAAC,CAAC,CAAC;EAC/D,CAAC;EAEDC,aAAa,GAAGA,CAAA,KAAM;IAClB,IAAI,IAAI,CAACZ,aAAa,EAAE;MACpB;IACJ;IAEA,IAAI,CAACA,aAAa,GAAG,IAAI;IACzBF,gBAAgB,CAACe,SAAS,EAAEC,gBAAgB,CAAC,QAAQ,EAAE,MAAM,IAAI,CAACN,UAAU,CAACX,kBAAkB,CAACkB,WAAW,CAAC,CAAC;IAC7GjB,gBAAgB,CAACkB,UAAU,EAAEF,gBAAgB,CAAC,QAAQ,EAAE,MAAM,IAAI,CAACN,UAAU,CAACX,kBAAkB,CAACkB,WAAW,CAAC,CAAC;IAC9GE,MAAM,CAACH,gBAAgB,CAAC,mBAAmB,EAAE,MAAM,IAAI,CAACN,UAAU,CAACX,kBAAkB,CAACqB,WAAW,CAAC,CAAC;IACnGD,MAAM,CAACH,gBAAgB,CAAC,QAAQ,EAAE,MAAM,IAAI,CAACN,UAAU,CAACX,kBAAkB,CAACsB,UAAU,CAAC,CAAC;EAC3F,CAAC;EAEDC,YAAY,GAAGA,CAACC,YAAuC,EAAEV,QAAsB,KAAK;IAChFU,YAAY,CAACX,OAAO,CAACD,UAAU,IAAI,IAAI,CAACR,SAAS,CAACQ,UAAU,CAAC,EAAEa,GAAG,CAACX,QAAQ,CAAC,CAAC;IAE7E,OAAO,MAAM;MACTU,YAAY,CAACX,OAAO,CAACD,UAAU,IAAI,IAAI,CAACR,SAAS,CAACQ,UAAU,CAAC,EAAEc,MAAM,CAACZ,QAAQ,CAAC,CAAC;IACpF,CAAC;EACL,CAAC;AACL;AAEA,OAAO,MAAMa,iBAAiB,GAAG,IAAIzB,wBAAwB,CAAC,CAAC","ignoreList":[]}
|
@@ -1,2 +1 @@
|
|
1
|
-
{"version":3,"names":["StatusBar","width","height","setStyle","setHidden","setBackgroundColor","equals","toString","__type","name","NavigationBar"],"sourceRoot":"../../../src","sources":["web/mock.
|
2
|
-
}
|
1
|
+
{"version":3,"names":["StatusBar","width","height","setStyle","setHidden","setBackgroundColor","equals","toString","__type","name","NavigationBar"],"sourceRoot":"../../../src","sources":["web/mock.ts"],"mappings":";;AAGA,OAAO,MAAMA,SAAwB,GAAG;EACpCC,KAAK,EAAE,CAAC;EACRC,MAAM,EAAE,CAAC;EACTC,QAAQ,EAAEA,CAAA,KAAM,CAAC,CAAC;EAClBC,SAAS,EAAEA,CAAA,KAAM,CAAC,CAAC;EACnBC,kBAAkB,EAAEA,CAAA,KAAM,CAAC,CAAC;EAC5BC,MAAM,EAAEA,CAAA,KAAM,IAAI;EAClBC,QAAQ,EAAEA,CAAA,KAAM,WAAW;EAC3BC,MAAM,EAAE,KAAK;EACbC,IAAI,EAAE;AACV,CAAC;AAED,OAAO,MAAMC,aAAgC,GAAG;EAC5CT,KAAK,EAAE,CAAC;EACRC,MAAM,EAAE,CAAC;EACTE,SAAS,EAAEA,CAAA,KAAM,CAAC,CAAC;EACnBC,kBAAkB,EAAEA,CAAA,KAAM,CAAC,CAAC;EAC5BC,MAAM,EAAEA,CAAA,KAAM,IAAI;EAClBC,QAAQ,EAAEA,CAAA,KAAM,eAAe;EAC/BC,MAAM,EAAE,KAAK;EACbC,IAAI,EAAE;AACV,CAAC","ignoreList":[]}
|
@@ -121,7 +121,6 @@ class UnistylesRegistryBuilder {
|
|
121
121
|
}
|
122
122
|
return;
|
123
123
|
}
|
124
|
-
|
125
124
|
// Pseudo
|
126
125
|
if (typeof value === 'object') {
|
127
126
|
Object.entries(value).forEach(([pseudoKey, pseudoValue]) => {
|
@@ -152,7 +151,6 @@ class UnistylesRegistryBuilder {
|
|
152
151
|
if (!(rule instanceof CSSStyleRule)) {
|
153
152
|
return false;
|
154
153
|
}
|
155
|
-
|
156
154
|
// In unistyles pseudos are prefixed with ':' but in css some of them are prefixed with '::'
|
157
155
|
return rule.selectorText.replace('::', ':').includes(hash);
|
158
156
|
}) ?? null;
|
@@ -178,4 +176,4 @@ class UnistylesRegistryBuilder {
|
|
178
176
|
};
|
179
177
|
}
|
180
178
|
export const UnistylesRegistry = new UnistylesRegistryBuilder();
|
181
|
-
//# sourceMappingURL=registry.js.
|
179
|
+
//# sourceMappingURL=registry.js.mapap
|
@@ -1 +1,2 @@
|
|
1
|
-
{"version":3,"names":["UnistylesRuntime","extractMediaQueryValue","keyInObject","getMediaQuery","generateHash","extractUnistyleDependencies","deepMergeObjects","UnistylesListener","convertUnistyles","getVariants","UnistylesRegistryBuilder","stylesheets","Map","stylesCounter","styleTag","disposeListenersMap","dependenciesMap","tag","newTag","document","createElement","id","head","appendChild","getComputedStylesheet","stylesheet","computedStylesheet","get","createdStylesheet","theme","miniRuntime","dependencies","Object","values","flatMap","value","addDependenciesToStylesheet","set","Set","forEach","dependency","add","dispose","addListeners","Array","from","newComputedStylesheet","key","args","variants","hash","existingCounter","size","counter","applyStyles","Promise","resolve","newComputedStyleSheet","newValue","result","variantsResult","fromEntries","resultWithVariants","styles","entries","sheet","startsWith","mediaQuery","cssRules","queryRule","find","rule","CSSMediaRule","media","item","includes","mediaQueryValue","ruleIndex","reduce","acc","ruleMediaQueryValue","conditionText","undefined","length","insertRule","mqKey","mqValue","applyRule","pseudoKey","pseudoValue","replace","CSSStyleRule","selectorText","style","remove","existingStyles","delete","findIndex","cssText","deleteRule","UnistylesRegistry"],"sourceRoot":"../../../src","sources":["web/registry.
|
1
|
+
{"version":3,"names":["UnistylesRuntime","extractMediaQueryValue","keyInObject","getMediaQuery","generateHash","extractUnistyleDependencies","deepMergeObjects","UnistylesListener","convertUnistyles","getVariants","UnistylesRegistryBuilder","stylesheets","Map","stylesCounter","styleTag","disposeListenersMap","dependenciesMap","tag","newTag","document","createElement","id","head","appendChild","getComputedStylesheet","stylesheet","computedStylesheet","get","createdStylesheet","theme","miniRuntime","dependencies","Object","values","flatMap","value","addDependenciesToStylesheet","set","Set","forEach","dependency","add","dispose","addListeners","Array","from","newComputedStylesheet","key","args","variants","hash","existingCounter","size","counter","applyStyles","Promise","resolve","newComputedStyleSheet","newValue","result","variantsResult","fromEntries","resultWithVariants","styles","entries","sheet","startsWith","mediaQuery","cssRules","queryRule","find","rule","CSSMediaRule","media","item","includes","mediaQueryValue","ruleIndex","reduce","acc","ruleMediaQueryValue","conditionText","undefined","length","insertRule","mqKey","mqValue","applyRule","pseudoKey","pseudoValue","replace","CSSStyleRule","selectorText","style","remove","existingStyles","delete","findIndex","cssText","deleteRule","UnistylesRegistry"],"sourceRoot":"../../../src","sources":["web/registry.js"],"mappings":";;AAAA,SAASA,gBAAgB,QAAQ,WAAW;AAC5C,SAASC,sBAAsB,EAAEC,WAAW,EAAEC,aAAa,EAAEC,YAAY,EAAEC,2BAA2B,EAAEC,gBAAgB,QAAQ,SAAS;AACzI,SAASC,iBAAiB,QAAQ,YAAY;AAC9C,SAASC,gBAAgB,QAAQ,WAAW;AAC5C,SAASC,WAAW,QAAQ,YAAY;AACxC,MAAMC,wBAAwB,CAAC;EAC3BC,WAAW,GAAG,IAAIC,GAAG,CAAC,CAAC;EACvBC,aAAa,GAAG,IAAID,GAAG,CAAC,CAAC;EACzB,CAACE,QAAQ,GAAG,IAAI;EAChBC,mBAAmB,GAAG,IAAIH,GAAG,CAAC,CAAC;EAC/BI,eAAe,GAAG,IAAIJ,GAAG,CAAC,CAAC;EAC3B,IAAIE,QAAQA,CAAA,EAAG;IACX,MAAMG,GAAG,GAAG,IAAI,CAAC,CAACH,QAAQ;IAC1B,IAAI,CAACG,GAAG,EAAE;MACN,MAAMC,MAAM,GAAGC,QAAQ,CAACC,aAAa,CAAC,OAAO,CAAC;MAC9CF,MAAM,CAACG,EAAE,GAAG,eAAe;MAC3B,IAAI,CAAC,CAACP,QAAQ,GAAGI,MAAM;MACvBC,QAAQ,CAACG,IAAI,CAACC,WAAW,CAACL,MAAM,CAAC;MACjC,OAAOA,MAAM;IACjB;IACA,OAAOD,GAAG;EACd;EACAO,qBAAqB,GAAIC,UAAU,IAAK;IACpC,IAAI,OAAOA,UAAU,KAAK,UAAU,EAAE;MAClC,OAAOA,UAAU;IACrB;IACA,MAAMC,kBAAkB,GAAG,IAAI,CAACf,WAAW,CAACgB,GAAG,CAACF,UAAU,CAAC;IAC3D,IAAIC,kBAAkB,EAAE;MACpB,OAAOA,kBAAkB;IAC7B;IACA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C1B,IAAI,IAAIA,IAAI,CAAC2B,OAAO,CAACvB,QAAQ,CAAC,IAAIzB,IAAI,EAAE,CAAC,CAAC;MACtH,IAAI,CAACpC,QAAQ,CAACmD,KAAK,EAAEkC,UAAU,CAACtB,SAAS,CAAC;IAC9C;EACJ,CAAC;AACL;AACA,OAAO,MAAMuB,iBAAiB,GAAG,IAAI1F,wBAAwB,CAAC,CAAC","ignoreList":[]}
|
2
|
+
,"ignoreList":[]}
|
@@ -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.
|
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,IAAI,CAAC,IAAI,CAACG,UAAU,EAAE;MAClB,IAAI,CAACA,UAAU,GAAGI,MAAM,CAACC,UAAU,CAAC,+BAA+B,CAAC;IACxE;IACA,OAAO,IAAI,CAACL,UAAU;EAC1B;EACAG,YAAYA,CAAA,EAAG;IACX,IAAIN,QAAQ,CAAC,CAAC,EAAE;MACZ,OAAO,IAAI;IACf;IACA,IAAI,CAAC,IAAI,CAACK,SAAS,EAAE;MACjB,IAAI,CAACA,SAAS,GAAGE,MAAM,CAACC,UAAU,CAAC,8BAA8B,CAAC;IACtE;IACA,OAAO,IAAI,CAACH,SAAS;EACzB;EACA,IAAII,WAAWA,CAAA,EAAG;IACd,QAAQ,IAAI;MACR,KAAK,IAAI,CAACL,aAAa,CAAC,CAAC,EAAEM,OAAO;QAC9B,OAAOlB,WAAW,CAACmB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,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
|
package/lib/module/web/state.js
CHANGED
@@ -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
|
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.
|
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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AAC,CAAC;IACN,CAAC,CAAC;EACV,CAAC;AACL;AAEA,OAAO,MAAMC,cAAc,GAAG,IAAI7C,qBAAqB,CAAC,CAAC","ignoreList":[]}
|
@@ -3,7 +3,6 @@
|
|
3
3
|
export const reduceObject = (obj, reducer) => Object.fromEntries(Object.entries(obj).map(([key, value]) => [key, reducer(value, key)]));
|
4
4
|
export const keyInObject = (obj, key) => key in obj;
|
5
5
|
export const isServer = () => typeof window === 'undefined';
|
6
|
-
|
7
6
|
/**
|
8
7
|
* Deeply merges properties of passed object
|
9
8
|
*/
|
@@ -18,7 +17,6 @@ export const deepMergeObjects = (...sources) => {
|
|
18
17
|
target[key] = deepMergeObjects(targetValue, sourceValue);
|
19
18
|
return;
|
20
19
|
}
|
21
|
-
|
22
20
|
// @ts-expect-error - can't assign to generic
|
23
21
|
target[key] = sourceValue;
|
24
22
|
});
|
@@ -77,4 +75,4 @@ export const createDoubleMap = () => {
|
|
77
75
|
}
|
78
76
|
};
|
79
77
|
};
|
80
|
-
//# sourceMappingURL=common.js.
|
78
|
+
//# sourceMappingURL=common.js.mapap
|
@@ -1 +1,2 @@
|
|
1
|
-
{"version":3,"names":["reduceObject","obj","reducer","Object","fromEntries","entries","map","key","value","keyInObject","isServer","window","deepMergeObjects","sources","target","forEach","source","keys","sourceValue","targetValue","warn","message","console","equal","a","b","is","keysA","length","every","prototype","hasOwnProperty","call","generateHash","str","JSON","stringify","hasher","charCodeAt","toString","createDoubleMap","Map","get","secondKey","mapForKey","undefined","set","delete","callback"],"sourceRoot":"../../../../src","sources":["web/utils/common.
|
1
|
+
{"version":3,"names":["reduceObject","obj","reducer","Object","fromEntries","entries","map","key","value","keyInObject","isServer","window","deepMergeObjects","sources","target","forEach","source","keys","sourceValue","targetValue","warn","message","console","equal","a","b","is","keysA","length","every","prototype","hasOwnProperty","call","generateHash","str","JSON","stringify","hasher","charCodeAt","toString","createDoubleMap","Map","get","secondKey","mapForKey","undefined","set","delete","callback"],"sourceRoot":"../../../../src","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;MACrB,MAAMC,SAAS,GAAGtC,GAAG,CAACoC,GAAG,CAACnC,GAAG,CAAC;MAC9B,IAAI,CAACqC,SAAS,EAAE;QACZ,OAAOC,SAAS;MACpB;MACA,OAAOD,SAAS,CAACF,GAAG,CAACC,SAAS,CAAC;IACnC,CAAC;IACDG,GAAG,EAAEA,CAACvC,GAAG,EAAEoC,SAAS,EAAEnC,KAAK,KAAK;MAC5B,MAAMoC,SAAS,GAAGtC,GAAG,CAACoC,GAAG,CAACnC,GAAG,CAAC,IAAI,IAAIkC,GAAG,CAAC,CAAC;MAC3CnC,GAAG,CAACwC,GAAG,CAACvC,GAAG,EAAEqC,SAAS,CAAC;MACvBA,SAAS,CAACE,GAAG,CAACH,SAAS,EAAEnC,KAAK,CAAC;IACnC,CAAC;IACDuC,MAAM,EAAEA,CAACxC,GAAG,EAAEoC,SAAS,KAAK;MACxB,MAAMC,SAAS,GAAGtC,GAAG,CAACoC,GAAG,CAACnC,GAAG,CAAC;MAC9B,IAAI,CAACqC,SAAS,EAAE;QACZ;MACJ;MACAA,SAAS,CAACG,MAAM,CAACJ,SAAS,CAAC;IAC/B,CAAC;IACD5B,OAAO,EAAGiC,QAAQ,IAAK;MACnB1C,GAAG,CAACS,OAAO,CAAC,CAAC6B,SAAS,EAAErC,GAAG,KAAK;QAC5BqC,SAAS,CAAC7B,OAAO,CAAC,CAACP,KAAK,EAAEmC,SAAS,KAAK;UACpCK,QAAQ,CAACzC,GAAG,EAAEoC,SAAS,EAAEnC,KAAK,CAAC;QACnC,CAAC,CAAC;MACN,CAAC,CAAC;IACN;EACJ,CAAC;AACL,CAAC","ignoreList":[]}
|
2
|
+
C","ignoreList":[]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["web/utils/index.
|
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":["deepMergeObjects","hasVariants","value","getVariants","styles","selectedVariants","Object","entries","filter","_key","variants","keys","some","variant","map","key","compoundVariants","variantStyles","flatMap","selectedVariant","selectedVariantStyles","compoundVariantStyles","compoundVariant","conditions","String","mergedVariantStyles"],"sourceRoot":"../../../../src","sources":["web/variants/getVariants.
|
2
|
-
[]}
|
1
|
+
{"version":3,"names":["deepMergeObjects","hasVariants","value","getVariants","styles","selectedVariants","Object","entries","filter","_key","variants","keys","some","variant","map","key","compoundVariants","variantStyles","flatMap","selectedVariant","selectedVariantStyles","compoundVariantStyles","compoundVariant","conditions","String","mergedVariantStyles"],"sourceRoot":"../../../../src","sources":["web/variants/getVariants.ts"],"mappings":";;AACA,SAASA,gBAAgB,QAAQ,UAAU;AAQ3C,MAAMC,WAAW,GAAsBC,KAAkB,IAAgD,UAAU,IAAIA,KAAK,CAAC,CAAC,CAAC;AAE/H,OAAO,MAAMC,WAAW,GAAGA,CAACC,MAAyC,EAAEC,gBAAqC,KAAK;EAC7G,OAAOC,MAAM,CAACC,OAAO,CAACH,MAAM,CAAC,CACxBI,MAAM,CAACP,WAAW,CAAC,CACnBO,MAAM,CAAC,CAAC,CAACC,IAAI,EAAE;IAAEC;EAAS,CAAC,CAAC,KAAKJ,MAAM,CAACK,IAAI,CAACD,QAAQ,CAAC,CAACE,IAAI,CAACC,OAAO,IAAIA,OAAO,IAAIH,QAAQ,CAAC,CAAC,CAC5FI,GAAG,CAAC,CAAC,CAACC,GAAG,EAAE;IAAEL,QAAQ;IAAEM,gBAAgB,GAAG;EAAG,CAAC,CAAC,KAAK;IACjD,MAAMC,aAAa,GAAGX,MAAM,CAACC,OAAO,CAACG,QAAQ,CAAC,CAACQ,OAAO,CAAC,CAAC,CAACL,OAAO,EAAET,MAAM,CAAC,KAAK;MAC1E,MAAMe,eAAe,GAAGd,gBAAgB,CAACQ,OAAO,CAAC;MACjD,MAAMO,qBAAqB,GAAGhB,MAAM,C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