@tamagui/web 3.0.0-beta.807.1 → 3.0.0-beta.831.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/config.cjs +1 -1
- package/dist/cjs/config.native.cjs +1 -1
- package/dist/cjs/config.native.js +1 -1
- package/dist/cjs/config.native.js.map +1 -1
- package/dist/cjs/createComponent.cjs +28 -18
- package/dist/cjs/createComponent.native.cjs +30 -20
- package/dist/cjs/createComponent.native.js +30 -20
- package/dist/cjs/createComponent.native.js.map +1 -1
- package/dist/cjs/createStyledHOC.cjs +54 -4
- package/dist/cjs/createStyledHOC.native.cjs +55 -4
- package/dist/cjs/createStyledHOC.native.js +55 -4
- package/dist/cjs/createStyledHOC.native.js.map +1 -1
- package/dist/cjs/createTokens.cjs +1 -1
- package/dist/cjs/createTokens.native.cjs +1 -1
- package/dist/cjs/createTokens.native.js +1 -1
- package/dist/cjs/createTokens.native.js.map +1 -1
- package/dist/cjs/dom/html.cjs +147 -99
- package/dist/cjs/dom/htmlRuntime.native.cjs +6 -2
- package/dist/cjs/dom/htmlRuntime.native.js +6 -2
- package/dist/cjs/dom/htmlRuntime.native.js.map +1 -1
- package/dist/cjs/dom/primitives.native.cjs +16 -13
- package/dist/cjs/dom/primitives.native.js +16 -13
- package/dist/cjs/dom/primitives.native.js.map +1 -1
- package/dist/cjs/helpers/componentDisplayName.cjs +1 -11
- package/dist/cjs/helpers/componentDisplayName.native.cjs +1 -11
- package/dist/cjs/helpers/componentDisplayName.native.js +1 -11
- package/dist/cjs/helpers/componentDisplayName.native.js.map +1 -1
- package/dist/cjs/helpers/directStyleCSS.cjs +101 -104
- package/dist/cjs/helpers/formatDiagnostic.cjs +2 -4
- package/dist/cjs/helpers/formatDiagnostic.native.cjs +2 -4
- package/dist/cjs/helpers/formatDiagnostic.native.js +2 -4
- package/dist/cjs/helpers/formatDiagnostic.native.js.map +1 -1
- package/dist/cjs/helpers/getCSSStylesAtomic.cjs +10 -10
- package/dist/cjs/helpers/getSplitStyles.cjs +168 -600
- package/dist/cjs/helpers/getSplitStyles.native.cjs +168 -762
- package/dist/cjs/helpers/getSplitStyles.native.js +168 -762
- package/dist/cjs/helpers/getSplitStyles.native.js.map +1 -1
- package/dist/cjs/helpers/splitStyleProps.cjs +46 -0
- package/dist/cjs/helpers/splitStyleProps.native.cjs +49 -0
- package/dist/cjs/helpers/splitStyleProps.native.js +51 -0
- package/dist/cjs/helpers/splitStyleProps.native.js.map +1 -0
- package/dist/cjs/helpers/styleStaticConfig.cjs +76 -0
- package/dist/cjs/helpers/styleStaticConfig.native.cjs +79 -0
- package/dist/cjs/helpers/styleStaticConfig.native.js +81 -0
- package/dist/cjs/helpers/styleStaticConfig.native.js.map +1 -0
- package/dist/cjs/helpers/tokenCategories.cjs +32 -71
- package/dist/cjs/helpers/tokenCategories.native.cjs +34 -73
- package/dist/cjs/helpers/tokenCategories.native.js +34 -73
- package/dist/cjs/helpers/tokenCategories.native.js.map +1 -1
- package/dist/cjs/helpers/variantResolvers.cjs +87 -0
- package/dist/cjs/helpers/variantResolvers.native.cjs +140 -0
- package/dist/cjs/helpers/variantResolvers.native.js +142 -0
- package/dist/cjs/helpers/variantResolvers.native.js.map +1 -0
- package/dist/cjs/hooks/useSplitStyles.cjs +2 -2
- package/dist/cjs/hooks/useSplitStyles.native.cjs +2 -2
- package/dist/cjs/hooks/useSplitStyles.native.js +2 -2
- package/dist/cjs/hooks/useSplitStyles.native.js.map +1 -1
- package/dist/cjs/index.cjs +3 -9
- package/dist/cjs/index.native.cjs +3 -9
- package/dist/cjs/index.native.js +3 -9
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/internal-runtime.cjs +8 -7
- package/dist/cjs/internal-runtime.native.cjs +8 -7
- package/dist/cjs/internal-runtime.native.js +8 -7
- package/dist/cjs/internal-runtime.native.js.map +1 -1
- package/dist/cjs/static-resolve.cjs +6 -5
- package/dist/cjs/static-resolve.native.cjs +6 -5
- package/dist/cjs/static-resolve.native.js +6 -5
- package/dist/cjs/static-resolve.native.js.map +1 -1
- package/dist/cjs/styled.cjs +4 -56
- package/dist/cjs/styled.native.cjs +4 -58
- package/dist/cjs/styled.native.js +4 -58
- package/dist/cjs/styled.native.js.map +1 -1
- package/dist/cjs/types.cjs +1 -21
- package/dist/cjs/types.native.cjs +1 -21
- package/dist/cjs/types.native.js +1 -21
- package/dist/cjs/types.native.js.map +1 -1
- package/dist/cjs/views/Text.cjs +4 -2
- package/dist/cjs/views/Text.native.cjs +4 -2
- package/dist/cjs/views/Text.native.js +4 -2
- package/dist/cjs/views/Text.native.js.map +1 -1
- package/dist/cjs/views/View.cjs +4 -2
- package/dist/cjs/views/View.native.cjs +4 -2
- package/dist/cjs/views/View.native.js +4 -2
- package/dist/cjs/views/View.native.js.map +1 -1
- package/dist/esm/config.mjs +1 -1
- package/dist/esm/config.mjs.map +1 -1
- package/dist/esm/config.native.js +1 -1
- package/dist/esm/config.native.js.map +1 -1
- package/dist/esm/createComponent.mjs +29 -19
- package/dist/esm/createComponent.mjs.map +1 -1
- package/dist/esm/createComponent.native.js +31 -21
- package/dist/esm/createComponent.native.js.map +1 -1
- package/dist/esm/createStyledHOC.mjs +55 -5
- package/dist/esm/createStyledHOC.mjs.map +1 -1
- package/dist/esm/createStyledHOC.native.js +56 -5
- package/dist/esm/createStyledHOC.native.js.map +1 -1
- package/dist/esm/createTokens.mjs +1 -1
- package/dist/esm/createTokens.mjs.map +1 -1
- package/dist/esm/createTokens.native.js +1 -1
- package/dist/esm/createTokens.native.js.map +1 -1
- package/dist/esm/dom/html.mjs +147 -99
- package/dist/esm/dom/html.mjs.map +1 -1
- package/dist/esm/dom/htmlRuntime.native.js +7 -3
- package/dist/esm/dom/htmlRuntime.native.js.map +1 -1
- package/dist/esm/dom/primitives.native.js +16 -13
- package/dist/esm/dom/primitives.native.js.map +1 -1
- package/dist/esm/helpers/componentDisplayName.mjs +1 -8
- package/dist/esm/helpers/componentDisplayName.mjs.map +1 -1
- package/dist/esm/helpers/componentDisplayName.native.js +1 -8
- package/dist/esm/helpers/componentDisplayName.native.js.map +1 -1
- package/dist/esm/helpers/directStyleCSS.mjs +101 -104
- package/dist/esm/helpers/directStyleCSS.mjs.map +1 -1
- package/dist/esm/helpers/formatDiagnostic.mjs +2 -4
- package/dist/esm/helpers/formatDiagnostic.mjs.map +1 -1
- package/dist/esm/helpers/formatDiagnostic.native.js +2 -4
- package/dist/esm/helpers/formatDiagnostic.native.js.map +1 -1
- package/dist/esm/helpers/getCSSStylesAtomic.mjs +10 -10
- package/dist/esm/helpers/getCSSStylesAtomic.mjs.map +1 -1
- package/dist/esm/helpers/getSplitStyles.mjs +166 -594
- package/dist/esm/helpers/getSplitStyles.mjs.map +1 -1
- package/dist/esm/helpers/getSplitStyles.native.js +166 -757
- package/dist/esm/helpers/getSplitStyles.native.js.map +1 -1
- package/dist/esm/helpers/splitStyleProps.mjs +27 -0
- package/dist/esm/helpers/splitStyleProps.mjs.map +1 -0
- package/dist/esm/helpers/splitStyleProps.native.js +28 -0
- package/dist/esm/helpers/splitStyleProps.native.js.map +1 -0
- package/dist/esm/helpers/styleStaticConfig.mjs +57 -0
- package/dist/esm/helpers/styleStaticConfig.mjs.map +1 -0
- package/dist/esm/helpers/styleStaticConfig.native.js +58 -0
- package/dist/esm/helpers/styleStaticConfig.native.js.map +1 -0
- package/dist/esm/helpers/tokenCategories.mjs +33 -72
- package/dist/esm/helpers/tokenCategories.mjs.map +1 -1
- package/dist/esm/helpers/tokenCategories.native.js +35 -74
- package/dist/esm/helpers/tokenCategories.native.js.map +1 -1
- package/dist/esm/helpers/variantResolvers.mjs +65 -0
- package/dist/esm/helpers/variantResolvers.mjs.map +1 -0
- package/dist/esm/helpers/variantResolvers.native.js +116 -0
- package/dist/esm/helpers/variantResolvers.native.js.map +1 -0
- package/dist/esm/hooks/useSplitStyles.mjs +2 -2
- package/dist/esm/hooks/useSplitStyles.mjs.map +1 -1
- package/dist/esm/hooks/useSplitStyles.native.js +2 -2
- package/dist/esm/hooks/useSplitStyles.native.js.map +1 -1
- package/dist/esm/index.js +3 -5
- package/dist/esm/index.mjs +3 -5
- package/dist/esm/index.native.js +3 -5
- package/dist/esm/internal-runtime.mjs +8 -7
- package/dist/esm/internal-runtime.mjs.map +1 -1
- package/dist/esm/internal-runtime.native.js +8 -7
- package/dist/esm/internal-runtime.native.js.map +1 -1
- package/dist/esm/static-resolve.mjs +8 -6
- package/dist/esm/static-resolve.mjs.map +1 -1
- package/dist/esm/static-resolve.native.js +8 -6
- package/dist/esm/static-resolve.native.js.map +1 -1
- package/dist/esm/styled.mjs +6 -57
- package/dist/esm/styled.mjs.map +1 -1
- package/dist/esm/styled.native.js +6 -59
- package/dist/esm/styled.native.js.map +1 -1
- package/dist/esm/types.mjs +1 -18
- package/dist/esm/types.mjs.map +1 -1
- package/dist/esm/types.native.js +1 -18
- package/dist/esm/types.native.js.map +1 -1
- package/dist/esm/views/Text.mjs +4 -2
- package/dist/esm/views/Text.mjs.map +1 -1
- package/dist/esm/views/Text.native.js +4 -2
- package/dist/esm/views/Text.native.js.map +1 -1
- package/dist/esm/views/View.mjs +4 -2
- package/dist/esm/views/View.mjs.map +1 -1
- package/dist/esm/views/View.native.js +4 -2
- package/dist/esm/views/View.native.js.map +1 -1
- package/package.json +15 -15
- package/src/config.ts +1 -1
- package/src/createComponent.tsx +41 -30
- package/src/createStyledHOC.tsx +56 -9
- package/src/createTokens.ts +1 -1
- package/src/dom/html.tsx +778 -877
- package/src/dom/htmlRuntime.native.tsx +7 -3
- package/src/dom/primitives.native.tsx +30 -39
- package/src/helpers/componentDisplayName.ts +0 -11
- package/src/helpers/directStyleCSS.ts +91 -112
- package/src/helpers/formatDiagnostic.ts +2 -4
- package/src/helpers/getCSSStylesAtomic.ts +32 -26
- package/src/helpers/getSplitStyles.tsx +315 -1119
- package/src/helpers/getVariantExtras.tsx +3 -3
- package/src/helpers/splitStyleProps.ts +166 -0
- package/src/helpers/styleFrontend.ts +8 -4
- package/src/helpers/styleStaticConfig.ts +88 -0
- package/src/helpers/tokenCategories.ts +62 -93
- package/src/helpers/variantResolvers.ts +121 -0
- package/src/hooks/useSplitStyles.tsx +17 -2
- package/src/hooks/useTheme.tsx +1 -1
- package/src/index.ts +8 -4
- package/src/internal-runtime.ts +10 -9
- package/src/static-resolve.ts +18 -14
- package/src/styled.tsx +7 -264
- package/src/types.tsx +19 -40
- package/src/views/Text.tsx +6 -7
- package/src/views/View.tsx +6 -7
- package/types/createComponent.d.ts.map +1 -1
- package/types/createStyledHOC.d.ts.map +1 -1
- package/types/dom/html.d.ts.map +1 -1
- package/types/dom/htmlRuntime.native.d.ts.map +1 -1
- package/types/dom/primitives.native.d.ts.map +1 -1
- package/types/helpers/componentDisplayName.d.ts +0 -3
- package/types/helpers/componentDisplayName.d.ts.map +1 -1
- package/types/helpers/directStyleCSS.d.ts.map +1 -1
- package/types/helpers/formatDiagnostic.d.ts.map +1 -1
- package/types/helpers/getCSSStylesAtomic.d.ts +17 -15
- package/types/helpers/getCSSStylesAtomic.d.ts.map +1 -1
- package/types/helpers/getSplitStyles.d.ts +6 -6
- package/types/helpers/getSplitStyles.d.ts.map +1 -1
- package/types/helpers/splitStyleProps.d.ts +44 -0
- package/types/helpers/splitStyleProps.d.ts.map +1 -0
- package/types/helpers/styleFrontend.d.ts +4 -4
- package/types/helpers/styleFrontend.d.ts.map +1 -1
- package/types/helpers/styleStaticConfig.d.ts +19 -0
- package/types/helpers/styleStaticConfig.d.ts.map +1 -0
- package/types/helpers/tokenCategories.d.ts +1 -1
- package/types/helpers/tokenCategories.d.ts.map +1 -1
- package/types/helpers/variantResolvers.d.ts +9 -0
- package/types/helpers/variantResolvers.d.ts.map +1 -0
- package/types/hooks/useSplitStyles.d.ts.map +1 -1
- package/types/index.d.ts +2 -4
- package/types/index.d.ts.map +1 -1
- package/types/internal-runtime.d.ts.map +1 -1
- package/types/static-resolve.d.ts +2 -2
- package/types/static-resolve.d.ts.map +1 -1
- package/types/styled.d.ts +3 -39
- package/types/styled.d.ts.map +1 -1
- package/types/types.d.ts +2 -12
- package/types/types.d.ts.map +1 -1
- package/types/views/Text.d.ts.map +1 -1
- package/types/views/View.d.ts.map +1 -1
- package/dist/cjs/helpers/getDefaultProps.cjs +0 -24
- package/dist/cjs/helpers/getDefaultProps.native.cjs +0 -28
- package/dist/cjs/helpers/getDefaultProps.native.js +0 -30
- package/dist/cjs/helpers/getDefaultProps.native.js.map +0 -1
- package/dist/cjs/helpers/themeable.cjs +0 -92
- package/dist/cjs/helpers/themeable.native.cjs +0 -95
- package/dist/cjs/helpers/themeable.native.js +0 -97
- package/dist/cjs/helpers/themeable.native.js.map +0 -1
- package/dist/cjs/hooks/useProps.cjs +0 -129
- package/dist/cjs/hooks/useProps.native.cjs +0 -135
- package/dist/cjs/hooks/useProps.native.js +0 -137
- package/dist/cjs/hooks/useProps.native.js.map +0 -1
- package/dist/esm/helpers/getDefaultProps.mjs +0 -4
- package/dist/esm/helpers/getDefaultProps.mjs.map +0 -1
- package/dist/esm/helpers/getDefaultProps.native.js +0 -6
- package/dist/esm/helpers/getDefaultProps.native.js.map +0 -1
- package/dist/esm/helpers/themeable.mjs +0 -67
- package/dist/esm/helpers/themeable.mjs.map +0 -1
- package/dist/esm/helpers/themeable.native.js +0 -68
- package/dist/esm/helpers/themeable.native.js.map +0 -1
- package/dist/esm/hooks/useProps.mjs +0 -100
- package/dist/esm/hooks/useProps.mjs.map +0 -1
- package/dist/esm/hooks/useProps.native.js +0 -104
- package/dist/esm/hooks/useProps.native.js.map +0 -1
- package/src/helpers/getDefaultProps.ts +0 -3
- package/src/helpers/themeable.tsx +0 -96
- package/src/hooks/useProps.tsx +0 -186
- package/types/helpers/getDefaultProps.d.ts +0 -3
- package/types/helpers/getDefaultProps.d.ts.map +0 -1
- package/types/helpers/themeable.d.ts +0 -3
- package/types/helpers/themeable.d.ts.map +0 -1
- package/types/hooks/useProps.d.ts +0 -39
- package/types/hooks/useProps.d.ts.map +0 -1
|
@@ -28,53 +28,50 @@ __export(getSplitStyles_exports, {
|
|
|
28
28
|
contributeStyleString: () => contributeStyleString,
|
|
29
29
|
directStyleSignature: () => import_directStyleCSS2.directStyleSignature,
|
|
30
30
|
flushDirectStyles: () => import_directStyleCSS2.flushDirectStyles,
|
|
31
|
-
getContextPropSet: () => getContextPropSet,
|
|
32
31
|
getDirectDynamicThemeAccess: () => getDirectDynamicThemeAccess,
|
|
33
32
|
getFontFamilyFromNameOrVariable: () => getFontFamilyFromNameOrVariable,
|
|
34
33
|
getSplitStyles: () => getSplitStyles,
|
|
34
|
+
getStyleStaticConfig: () => import_styleStaticConfig.getStyleStaticConfig,
|
|
35
35
|
getStyleTokenProvenance: () => import_styleProvenance2.getStyleTokenProvenance,
|
|
36
36
|
isValidStyleKey: () => isValidStyleKey,
|
|
37
|
-
prepareStyleStaticConfig: () => prepareStyleStaticConfig,
|
|
38
37
|
styleOriginalValues: () => import_styleOriginalValues.styleOriginalValues
|
|
39
38
|
});
|
|
40
39
|
module.exports = __toCommonJS(getSplitStyles_exports);
|
|
41
40
|
var import_constants = require("@tamagui/constants");
|
|
42
41
|
var import_helpers = require("@tamagui/helpers");
|
|
42
|
+
var import_runtime = require("@tamagui/style-grammar/runtime");
|
|
43
43
|
var import_config = require("../config.native.js");
|
|
44
|
-
var import_createVariable = require("../createVariable.native.js");
|
|
45
44
|
var import_isDevTools = require("../constants/isDevTools.native.js");
|
|
46
|
-
var
|
|
47
|
-
var
|
|
48
|
-
var import_runtime = require("@tamagui/style-grammar/runtime");
|
|
49
|
-
var import_mediaState2 = require("./mediaState.native.js");
|
|
50
|
-
var import_warnOnce = require("./warnOnce.native.js");
|
|
45
|
+
var import_createVariable = require("../createVariable.native.js");
|
|
46
|
+
var import_directStyleCSS = require("./directStyleCSS.native.js");
|
|
51
47
|
var import_expandStyle = require("./expandStyle.native.js");
|
|
52
48
|
var import_expandStyles = require("./expandStyles.native.js");
|
|
49
|
+
var import_grammarConfig = require("./grammarConfig.native.js");
|
|
50
|
+
var import_mediaState = require("./mediaState.native.js");
|
|
51
|
+
var import_styleStaticConfig = require("./styleStaticConfig.native.js");
|
|
53
52
|
require("./styleToCSS.native.js");
|
|
54
|
-
var
|
|
53
|
+
var import_variantResolvers = require("./variantResolvers.native.js");
|
|
54
|
+
var import_warnOnce = require("./warnOnce.native.js");
|
|
55
55
|
var import_directStyleCSS2 = require("./directStyleCSS.native.js");
|
|
56
|
-
var import_grammarConfig = require("./grammarConfig.native.js");
|
|
57
56
|
var import_getDynamicVal = require("./getDynamicVal.native.js");
|
|
58
|
-
var
|
|
57
|
+
var import_getVariantExtras = require("./getVariantExtras.native.js");
|
|
59
58
|
require("./insertStyleRule.native.js");
|
|
60
59
|
var import_isObj = require("./isObj.native.js");
|
|
61
|
-
var import_isObj2 = require("./isObj.native.js");
|
|
62
60
|
var import_log = require("./log.native.js");
|
|
63
|
-
var import_normalizeStyle = require("./normalizeStyle.native.js");
|
|
64
61
|
var import_normalizeColor = require("./normalizeColor.native.js");
|
|
62
|
+
var import_normalizeStyle = require("./normalizeStyle.native.js");
|
|
65
63
|
var import_normalizeValueWithProperty = require("./normalizeValueWithProperty.native.js");
|
|
66
64
|
var import_parseNativeStyle = require("./parseNativeStyle.native.js");
|
|
67
65
|
var import_parseNativeTransform = require("./parseNativeTransform.native.js");
|
|
68
|
-
var import_getVariantExtras = require("./getVariantExtras.native.js");
|
|
69
66
|
var import_resolveRem = require("./resolveRem.native.js");
|
|
70
67
|
var import_resolveSafeArea = require("./resolveSafeArea.native.js");
|
|
71
68
|
var import_resolveSafeAreaVariable = require("./resolveSafeAreaVariable.native.js");
|
|
72
69
|
var import_resolveVariableValue = require("./resolveVariableValue.native.js");
|
|
73
|
-
var import_themeRef = require("./themeRef.native.js");
|
|
74
|
-
var import_tokenCategories = require("./tokenCategories.native.js");
|
|
75
70
|
var import_skipProps = require("./skipProps.native.js");
|
|
76
71
|
var import_styleOriginalValues = require("./styleOriginalValues.native.js");
|
|
77
72
|
var import_styleProvenance = require("./styleProvenance.native.js");
|
|
73
|
+
var import_themeRef = require("./themeRef.native.js");
|
|
74
|
+
var import_tokenCategories = require("./tokenCategories.native.js");
|
|
78
75
|
var import_transformsToString = require("./transformsToString.native.js");
|
|
79
76
|
var import_styleProvenance2 = require("./styleProvenance.native.js");
|
|
80
77
|
__reExport(getSplitStyles_exports, require("./tokenCategories.native.js"), module.exports);
|
|
@@ -84,47 +81,6 @@ function _type_of(obj) {
|
|
|
84
81
|
}
|
|
85
82
|
var TAMAGUI_CLASS_PROPS = "$$tamaguiClassProps";
|
|
86
83
|
var shouldTrackStyleTokenProvenance = process.env.NODE_ENV === "development" && process.env.TAMAGUI_ENABLE_STYLE_TOKEN_PROVENANCE === "1";
|
|
87
|
-
function compoundMatcherMatches(expected, actual) {
|
|
88
|
-
if (Array.isArray(expected)) {
|
|
89
|
-
for (var index = 0; index < expected.length; index++) if (expected[index] === actual) return true;
|
|
90
|
-
return false;
|
|
91
|
-
}
|
|
92
|
-
return expected === actual;
|
|
93
|
-
}
|
|
94
|
-
function compoundMatcherMatchesPayload(expected, source, start, end) {
|
|
95
|
-
if (Array.isArray(expected)) {
|
|
96
|
-
for (var index = 0; index < expected.length; index++) if (compoundMatcherMatchesPayload(expected[index], source, start, end)) return true;
|
|
97
|
-
return false;
|
|
98
|
-
}
|
|
99
|
-
var expectedValue = typeof expected === "string" ? expected : String(expected);
|
|
100
|
-
if (expectedValue.length !== end - start) return false;
|
|
101
|
-
for (var index1 = 0; index1 < expectedValue.length; index1++) if (expectedValue.charCodeAt(index1) !== source.charCodeAt(start + index1)) return false;
|
|
102
|
-
return true;
|
|
103
|
-
}
|
|
104
|
-
var preparedCompoundsKey = /* @__PURE__ */ Symbol();
|
|
105
|
-
function prepareStaticConfigCompounds(staticConfig) {
|
|
106
|
-
var compoundVariants = staticConfig.compoundVariants;
|
|
107
|
-
var preparedConfig = staticConfig;
|
|
108
|
-
if (!(compoundVariants === null || compoundVariants === void 0 ? void 0 : compoundVariants.length)) {
|
|
109
|
-
preparedConfig[preparedCompoundsKey] = null;
|
|
110
|
-
return;
|
|
111
|
-
}
|
|
112
|
-
var selectorCounts = [];
|
|
113
|
-
var indexesByKey = /* @__PURE__ */ Object.create(null);
|
|
114
|
-
indexesByKey[preparedCompoundsKey] = selectorCounts;
|
|
115
|
-
for (var index = 0; index < compoundVariants.length; index++) {
|
|
116
|
-
var compoundVariant = compoundVariants[index];
|
|
117
|
-
var selectorCount = 0;
|
|
118
|
-
for (var key in compoundVariant) {
|
|
119
|
-
var _indexesByKey, _key;
|
|
120
|
-
if (key === "style") continue;
|
|
121
|
-
selectorCount++;
|
|
122
|
-
((_indexesByKey = indexesByKey)[_key = key] || (_indexesByKey[_key] = [])).push(index);
|
|
123
|
-
}
|
|
124
|
-
selectorCounts[index] = selectorCount;
|
|
125
|
-
}
|
|
126
|
-
preparedConfig[preparedCompoundsKey] = indexesByKey;
|
|
127
|
-
}
|
|
128
84
|
var conditionWidth = 4;
|
|
129
85
|
var conditionValueOffset = 0;
|
|
130
86
|
var conditionFlagsOffset = 1;
|
|
@@ -162,15 +118,6 @@ function reserveConditionCursor(cursor) {
|
|
|
162
118
|
conditionNumbers = new Float64Array(length);
|
|
163
119
|
conditionNumbers.set(previous1);
|
|
164
120
|
}
|
|
165
|
-
function conditionWrapperCopy(cursor) {
|
|
166
|
-
var wrapper = conditionNumbers[cursor + conditionWrapperOffset];
|
|
167
|
-
var count = wrapper & 7;
|
|
168
|
-
if (!count) return void 0;
|
|
169
|
-
var start = wrapper >> 3;
|
|
170
|
-
var wrappers = new Array(count);
|
|
171
|
-
for (var index = 0; index < count; index++) wrappers[index] = conditionWrappers[start + index];
|
|
172
|
-
return wrappers;
|
|
173
|
-
}
|
|
174
121
|
function setConditionUnresolved(cursor) {
|
|
175
122
|
var name = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
|
|
176
123
|
conditionNumbers[cursor + conditionFlagsOffset] &= ~conditionResolvedFlag;
|
|
@@ -313,7 +260,7 @@ function accumulateConditionAtom(state, cursor, kind, rank, name) {
|
|
|
313
260
|
var context1 = (_state_flatGroupContext1 = state.flatGroupContext) === null || _state_flatGroupContext1 === void 0 ? void 0 : _state_flatGroupContext1[groupKey];
|
|
314
261
|
if (process.env.NODE_ENV === "development" && containerName && !component1 && !context1 && ((_state_flatGroupContext2 = state.flatGroupContext) === null || _state_flatGroupContext2 === void 0 ? void 0 : _state_flatGroupContext2[containerName])) (0, import_warnOnce.warnOnce)(`group-container:${containerName}`, `@${containerSize}/${containerName}: targets group="${containerName}", but groups no longer establish query containers. Add container="${containerName}" to that group.`);
|
|
315
262
|
var match = component1 === null || component1 === void 0 ? void 0 : (_component_media = component1.media) === null || _component_media === void 0 ? void 0 : _component_media[containerSize];
|
|
316
|
-
if (!(match === void 0 ? (context1 === null || context1 === void 0 ? void 0 : context1.state.layout) && (0,
|
|
263
|
+
if (!(match === void 0 ? (context1 === null || context1 === void 0 ? void 0 : context1.state.layout) && (0, import_mediaState.mediaKeyMatch)(containerSize, context1.state.layout) : match)) conditionNumbers[cursor + conditionFlagsOffset] &= ~conditionActiveFlag;
|
|
317
264
|
((_state2 = state).flatGroupKeys || (_state2.flatGroupKeys = /* @__PURE__ */ new Set())).add(groupKey);
|
|
318
265
|
((_state3 = state).flatGroupMedia || (_state3.flatGroupMedia = /* @__PURE__ */ new Set())).add(containerSize);
|
|
319
266
|
} else {
|
|
@@ -409,170 +356,8 @@ function acquireConditionKeyCursor(state, key) {
|
|
|
409
356
|
}
|
|
410
357
|
return cursor;
|
|
411
358
|
}
|
|
412
|
-
function combineConditionKeys(state, first, second) {
|
|
413
|
-
if (!first) return second;
|
|
414
|
-
if (!second || first === second) return first;
|
|
415
|
-
var watermark = conditionCursorTop;
|
|
416
|
-
var target2 = acquireConditionKeyCursor(state, first);
|
|
417
|
-
resolveConditionText(state, target2, second);
|
|
418
|
-
commitConditionCursor(state, target2);
|
|
419
|
-
var key = conditionTexts[target2 + conditionKeyOffset] || "";
|
|
420
|
-
releaseConditionCursors(watermark);
|
|
421
|
-
return key;
|
|
422
|
-
}
|
|
423
|
-
function freshCompoundState() {
|
|
424
|
-
return {
|
|
425
|
-
seen: 0,
|
|
426
|
-
failed: false,
|
|
427
|
-
matchedBase: false,
|
|
428
|
-
scanned: false,
|
|
429
|
-
pending: null,
|
|
430
|
-
combinations: null
|
|
431
|
-
};
|
|
432
|
-
}
|
|
433
|
-
function beginCompoundEdges(indexes, states) {
|
|
434
|
-
if (!indexes) return;
|
|
435
|
-
for (var index = 0; index < indexes.length; index++) {
|
|
436
|
-
var _states, _indexes_index;
|
|
437
|
-
var state = (_states = states)[_indexes_index = indexes[index]] || (_states[_indexes_index] = freshCompoundState());
|
|
438
|
-
state.pending = null;
|
|
439
|
-
state.matchedBase = false;
|
|
440
|
-
state.scanned = false;
|
|
441
|
-
}
|
|
442
|
-
}
|
|
443
|
-
function feedCompoundSegment(state, source, start, end, isBase, valid, conditionKey) {
|
|
444
|
-
if (state.flatCompoundOutputDepth) return;
|
|
445
|
-
var pass = state.flatPass;
|
|
446
|
-
var indexes = pass[passCompoundIndexes];
|
|
447
|
-
var states = pass[passCompoundStates];
|
|
448
|
-
var key = pass[passCompoundKey];
|
|
449
|
-
if (!indexes || !states || !key) return;
|
|
450
|
-
var compoundVariants = state.staticConfig.compoundVariants;
|
|
451
|
-
for (var index = 0; index < indexes.length; index++) {
|
|
452
|
-
var _states, _compoundIndex;
|
|
453
|
-
var compoundIndex = indexes[index];
|
|
454
|
-
var compoundState = (_states = states)[_compoundIndex = compoundIndex] || (_states[_compoundIndex] = freshCompoundState());
|
|
455
|
-
compoundState.scanned = true;
|
|
456
|
-
if (!valid || start === end || !compoundMatcherMatchesPayload(compoundVariants[compoundIndex][key], source, start, end)) continue;
|
|
457
|
-
if (isBase) compoundState.matchedBase = true;
|
|
458
|
-
else if (!compoundState.matchedBase) {
|
|
459
|
-
var _compoundState;
|
|
460
|
-
((_compoundState = compoundState).pending || (_compoundState.pending = [])).push(conditionKey);
|
|
461
|
-
}
|
|
462
|
-
}
|
|
463
|
-
}
|
|
464
|
-
var compoundOnlyHandler = {
|
|
465
|
-
segment(state, start, end, isBase, valid, source, chainStart, chainEnd, chainValid) {
|
|
466
|
-
if (isBase) {
|
|
467
|
-
feedCompoundSegment(state, source, start, end, true, valid, "");
|
|
468
|
-
return;
|
|
469
|
-
}
|
|
470
|
-
var cursor = state.flatScanCursor;
|
|
471
|
-
if (!chainValid || !cursor || !(conditionNumbers[cursor + conditionFlagsOffset] & conditionResolvedFlag) || !conditionNumbers[cursor + conditionValueOffset]) {
|
|
472
|
-
feedCompoundSegment(state, source, start, end, false, false, "");
|
|
473
|
-
return;
|
|
474
|
-
}
|
|
475
|
-
feedCompoundSegment(state, source, start, end, false, valid, conditionTexts[cursor + conditionKeyOffset] || "");
|
|
476
|
-
},
|
|
477
|
-
modifier(state, start, end, valid, first, source) {
|
|
478
|
-
var cursor = state.flatScanCursor;
|
|
479
|
-
if (!cursor) cursor = state.flatScanCursor = acquireConditionCursor();
|
|
480
|
-
else if (first) resetConditionCursor(cursor, 0);
|
|
481
|
-
if (!valid) {
|
|
482
|
-
setConditionUnresolved(cursor);
|
|
483
|
-
return;
|
|
484
|
-
}
|
|
485
|
-
if (conditionNumbers[cursor + conditionFlagsOffset] & conditionResolvedFlag) resolveConditionModifier(state, cursor, source.slice(start, end));
|
|
486
|
-
},
|
|
487
|
-
chain(state, _start, _end, valid) {
|
|
488
|
-
var cursor = state.flatScanCursor;
|
|
489
|
-
if (cursor) {
|
|
490
|
-
if (!valid) setConditionUnresolved(cursor);
|
|
491
|
-
if (conditionNumbers[cursor + conditionFlagsOffset] & conditionResolvedFlag) commitConditionCursor(state, cursor);
|
|
492
|
-
}
|
|
493
|
-
return true;
|
|
494
|
-
}
|
|
495
|
-
};
|
|
496
|
-
function finishCompoundEdges(pass, key, value, indexes, states) {
|
|
497
|
-
if (!indexes) return;
|
|
498
|
-
var state = pass[passStyleState];
|
|
499
|
-
pass[passCompoundIndexes] = indexes;
|
|
500
|
-
pass[passCompoundKey] = key;
|
|
501
|
-
pass[passCompoundStates] = states;
|
|
502
|
-
var needsScan = false;
|
|
503
|
-
for (var index = 0; index < indexes.length; index++) {
|
|
504
|
-
var _states, _indexes_index;
|
|
505
|
-
if (!((_states = states)[_indexes_index = indexes[index]] || (_states[_indexes_index] = freshCompoundState())).scanned) {
|
|
506
|
-
needsScan = true;
|
|
507
|
-
break;
|
|
508
|
-
}
|
|
509
|
-
}
|
|
510
|
-
if (needsScan) if (typeof value === "string") {
|
|
511
|
-
var watermark = conditionCursorTop;
|
|
512
|
-
var previousCursor = state.flatScanCursor;
|
|
513
|
-
state.flatScanCursor = null;
|
|
514
|
-
try {
|
|
515
|
-
(0, import_runtime.scanFlatValue)(value, compoundOnlyHandler, state);
|
|
516
|
-
} finally {
|
|
517
|
-
state.flatScanCursor = previousCursor;
|
|
518
|
-
releaseConditionCursors(watermark);
|
|
519
|
-
}
|
|
520
|
-
} else if (value && (typeof value === "undefined" ? "undefined" : _type_of(value)) === "object" && !Array.isArray(value) && !(0, import_createVariable.isVariable)(value) && Object.prototype.hasOwnProperty.call(value, "default")) for (var conditionKey in value) {
|
|
521
|
-
var payload = value[conditionKey];
|
|
522
|
-
if (conditionKey === "default") {
|
|
523
|
-
var payloadString = String(payload);
|
|
524
|
-
feedCompoundSegment(state, payloadString, 0, payloadString.length, true, true, "");
|
|
525
|
-
} else {
|
|
526
|
-
var watermark1 = conditionCursorTop;
|
|
527
|
-
var cursor = acquireConditionCursor();
|
|
528
|
-
resolveConditionText(state, cursor, conditionKey);
|
|
529
|
-
var condition = commitConditionCursor(state, cursor);
|
|
530
|
-
var payloadString1 = String(payload);
|
|
531
|
-
feedCompoundSegment(state, payloadString1, 0, payloadString1.length, false, Boolean(condition), condition ? conditionTexts[cursor + conditionKeyOffset] || "" : "");
|
|
532
|
-
releaseConditionCursors(watermark1);
|
|
533
|
-
}
|
|
534
|
-
}
|
|
535
|
-
else {
|
|
536
|
-
var variants = state.staticConfig.compoundVariants;
|
|
537
|
-
for (var index1 = 0; index1 < indexes.length; index1++) {
|
|
538
|
-
var _states1, _compoundIndex;
|
|
539
|
-
var compoundIndex = indexes[index1];
|
|
540
|
-
var compoundState1 = (_states1 = states)[_compoundIndex = compoundIndex] || (_states1[_compoundIndex] = freshCompoundState());
|
|
541
|
-
compoundState1.scanned = true;
|
|
542
|
-
if (compoundMatcherMatches(variants[compoundIndex][key], value)) compoundState1.matchedBase = true;
|
|
543
|
-
}
|
|
544
|
-
}
|
|
545
|
-
var variants1 = state.staticConfig.compoundVariants;
|
|
546
|
-
var selectorCounts = state.staticConfig[preparedCompoundsKey][preparedCompoundsKey];
|
|
547
|
-
for (var index2 = 0; index2 < indexes.length; index2++) {
|
|
548
|
-
var compoundIndex1 = indexes[index2];
|
|
549
|
-
var compoundState2 = states[compoundIndex1];
|
|
550
|
-
if (compoundState2.failed) continue;
|
|
551
|
-
var branches = compoundState2.matchedBase ? [""] : compoundState2.pending;
|
|
552
|
-
if (!branches || !branches.length) {
|
|
553
|
-
compoundState2.failed = true;
|
|
554
|
-
continue;
|
|
555
|
-
}
|
|
556
|
-
if (!compoundState2.seen) compoundState2.combinations = branches;
|
|
557
|
-
else {
|
|
558
|
-
var previous = compoundState2.combinations;
|
|
559
|
-
var next = [];
|
|
560
|
-
for (var left = 0; left < previous.length; left++) for (var right = 0; right < branches.length; right++) {
|
|
561
|
-
var conditionKey1 = combineConditionKeys(state, previous[left], branches[right]);
|
|
562
|
-
if (!next.includes(conditionKey1)) next.push(conditionKey1);
|
|
563
|
-
}
|
|
564
|
-
compoundState2.combinations = next;
|
|
565
|
-
}
|
|
566
|
-
compoundState2.seen++;
|
|
567
|
-
if (compoundState2.seen !== selectorCounts[compoundIndex1]) continue;
|
|
568
|
-
var style = variants1[compoundIndex1].style;
|
|
569
|
-
if (!(0, import_isObj.isPlainObject)(style)) continue;
|
|
570
|
-
var combinations = compoundState2.combinations;
|
|
571
|
-
for (var combination = 0; combination < combinations.length; combination++) for (var styleKey in style) contributeProp(pass, styleKey, style[styleKey], void 0, states, combinations[combination]);
|
|
572
|
-
}
|
|
573
|
-
}
|
|
574
359
|
function classifyConditionalObject(value, state, isChain, firstCursor) {
|
|
575
|
-
if (
|
|
360
|
+
if ("default" in value) return -1;
|
|
576
361
|
for (var key in value) {
|
|
577
362
|
if (!key.length) return 0;
|
|
578
363
|
if (!state) return (isChain === null || isChain === void 0 ? void 0 : isChain(key)) ? 1 : 0;
|
|
@@ -595,9 +380,6 @@ var passFrontendContainer = 27;
|
|
|
595
380
|
var passFrontendContainerType = 28;
|
|
596
381
|
var passHocMappedProperties = 29;
|
|
597
382
|
var passHocMappedClasses = 30;
|
|
598
|
-
var passCompoundIndexes = 31;
|
|
599
|
-
var passCompoundKey = 32;
|
|
600
|
-
var passCompoundStates = 33;
|
|
601
383
|
var passParentCursor = 35;
|
|
602
384
|
var passMapSourceKey = 36;
|
|
603
385
|
var passMapFlags = 37;
|
|
@@ -609,96 +391,23 @@ var passHocFlag = 16;
|
|
|
609
391
|
var passTextFlag = 32;
|
|
610
392
|
var passInputFlag = 64;
|
|
611
393
|
var passAsChildStyleFlag = 128;
|
|
612
|
-
var styledDefaultsCache = /* @__PURE__ */ new WeakMap();
|
|
613
|
-
function getStyledDefaults(staticConfig, shorthands) {
|
|
614
|
-
var prepared = styledDefaultsCache.get(staticConfig);
|
|
615
|
-
if (prepared === void 0) {
|
|
616
|
-
var entries = null;
|
|
617
|
-
var defaults = staticConfig.defaultProps;
|
|
618
|
-
if (defaults) for (var key in defaults) {
|
|
619
|
-
if (!(key in import_helpers.stylePropsAll || key in shorthands)) continue;
|
|
620
|
-
var value = defaults[key];
|
|
621
|
-
if (maybeStyleProgram(value)) (entries || (entries = [])).push(key, value);
|
|
622
|
-
}
|
|
623
|
-
prepared = entries;
|
|
624
|
-
styledDefaultsCache.set(staticConfig, prepared);
|
|
625
|
-
}
|
|
626
|
-
return prepared;
|
|
627
|
-
}
|
|
628
|
-
var maybeStyleProgram = function(value) {
|
|
629
|
-
return typeof value === "string" ? value.indexOf(":") !== -1 : !!value && (typeof value === "undefined" ? "undefined" : _type_of(value)) === "object" && !Array.isArray(value) && !(0, import_createVariable.isVariable)(value);
|
|
630
|
-
};
|
|
631
|
-
function contributeDisplacedStyledDefaults(styledDefaults, processedProps, pass) {
|
|
632
|
-
if (!styledDefaults) return;
|
|
633
|
-
for (var offset = 0; offset < styledDefaults.length; offset += 2) {
|
|
634
|
-
var key = styledDefaults[offset];
|
|
635
|
-
var value = styledDefaults[offset + 1];
|
|
636
|
-
var propValue = processedProps[key];
|
|
637
|
-
if (propValue !== void 0 && propValue !== value) contributeProp(pass, key, value);
|
|
638
|
-
}
|
|
639
|
-
}
|
|
640
|
-
function injectDisplacedStyledDefault(pass, key, value) {
|
|
641
|
-
var _pass__defaultProps;
|
|
642
|
-
var defaultValue = (_pass__defaultProps = pass[4].defaultProps) === null || _pass__defaultProps === void 0 ? void 0 : _pass__defaultProps[key];
|
|
643
|
-
if (defaultValue === void 0 || value === void 0 || value === defaultValue || maybeStyleProgram(defaultValue)) return;
|
|
644
|
-
var state = pass[passStyleState];
|
|
645
|
-
state.flatWeakContribution = true;
|
|
646
|
-
try {
|
|
647
|
-
contributeProp(pass, key, defaultValue);
|
|
648
|
-
} finally {
|
|
649
|
-
state.flatWeakContribution = false;
|
|
650
|
-
}
|
|
651
|
-
}
|
|
652
394
|
function forEachPropInForwardOrder(pass) {
|
|
653
|
-
var _staticConfig_compoundVariants;
|
|
654
395
|
var styleState = pass[passStyleState];
|
|
655
|
-
var staticConfig = styleState.staticConfig;
|
|
656
396
|
var processedProps = styleState.props;
|
|
657
|
-
var
|
|
658
|
-
var
|
|
659
|
-
var
|
|
660
|
-
var directState = styleState;
|
|
661
|
-
var preparedCompounds = staticConfig[preparedCompoundsKey];
|
|
662
|
-
if (preparedCompounds === void 0 && ((_staticConfig_compoundVariants = staticConfig.compoundVariants) === null || _staticConfig_compoundVariants === void 0 ? void 0 : _staticConfig_compoundVariants.length)) throw new Error("A component with compoundVariants reached style resolution before its static config was prepared.");
|
|
397
|
+
var styleStaticConfig = styleState.flatStyleStaticConfig;
|
|
398
|
+
var baseStyle = styleStaticConfig.baseStyle;
|
|
399
|
+
var baseVariantProps = styleStaticConfig.baseVariantProps;
|
|
663
400
|
var conditionWrapperBase = conditionWrapperTop;
|
|
664
|
-
if (!preparedCompounds) {
|
|
665
|
-
try {
|
|
666
|
-
if (processedBaseStyle) for (var key in processedBaseStyle) contributeProp(pass, key, processedBaseStyle[key]);
|
|
667
|
-
contributeDisplacedStyledDefaults(styledDefaults, processedProps, pass);
|
|
668
|
-
for (var key1 in processedProps) {
|
|
669
|
-
var value = processedProps[key1];
|
|
670
|
-
directState.flatPropSawCondition = false;
|
|
671
|
-
contributeProp(pass, key1, value);
|
|
672
|
-
if (directState.flatPropSawCondition) injectDisplacedStyledDefault(pass, key1, value);
|
|
673
|
-
}
|
|
674
|
-
} finally {
|
|
675
|
-
releaseConditionPayloads(conditionWrapperBase);
|
|
676
|
-
}
|
|
677
|
-
return;
|
|
678
|
-
}
|
|
679
|
-
var compoundVariants = staticConfig.compoundVariants;
|
|
680
|
-
var compoundStates = new Array(compoundVariants.length);
|
|
681
401
|
try {
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
var
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
var style = compoundVariants[compoundIndex].style;
|
|
688
|
-
if (!(0, import_isObj.isPlainObject)(style)) continue;
|
|
689
|
-
for (var key3 in style) contributeProp(pass, key3, style[key3]);
|
|
690
|
-
}
|
|
691
|
-
for (var key4 in processedProps) {
|
|
692
|
-
var compoundIndexes = preparedCompounds[key4];
|
|
693
|
-
var value1 = processedProps[key4];
|
|
694
|
-
beginCompoundEdges(compoundIndexes, compoundStates);
|
|
695
|
-
directState.flatPropSawCondition = false;
|
|
696
|
-
contributeProp(pass, key4, value1, compoundIndexes, compoundStates);
|
|
697
|
-
if (directState.flatPropSawCondition) injectDisplacedStyledDefault(pass, key4, value1);
|
|
698
|
-
finishCompoundEdges(pass, key4, value1, compoundIndexes, compoundStates);
|
|
402
|
+
var appliesBaseStyle = baseStyle && !processedProps.asChild;
|
|
403
|
+
if (appliesBaseStyle) for (var key in baseStyle) contributeProp(pass, key, baseVariantProps && Object.hasOwn(baseVariantProps, key) && Object.hasOwn(processedProps, key) ? processedProps[key] : baseStyle[key]);
|
|
404
|
+
for (var key1 in processedProps) {
|
|
405
|
+
if (appliesBaseStyle && baseVariantProps && Object.hasOwn(baseVariantProps, key1)) continue;
|
|
406
|
+
contributeProp(pass, key1, processedProps[key1]);
|
|
699
407
|
}
|
|
700
|
-
}
|
|
408
|
+
} catch (error) {
|
|
701
409
|
releaseConditionPayloads(conditionWrapperBase);
|
|
410
|
+
throw error;
|
|
702
411
|
}
|
|
703
412
|
}
|
|
704
413
|
function isValidStyleKey(key, validStyles, accept) {
|
|
@@ -801,13 +510,8 @@ function mapContributedProp(styleState, key, val, originalVal, condition) {
|
|
|
801
510
|
viewProps[key] = val;
|
|
802
511
|
}
|
|
803
512
|
}
|
|
804
|
-
function contributeProp(pass, keyOg, valOg,
|
|
513
|
+
function contributeProp(pass, keyOg, valOg, parentConditionKey) {
|
|
805
514
|
var parentWatermark = conditionCursorTop;
|
|
806
|
-
if (compoundIndexes) {
|
|
807
|
-
pass[passCompoundIndexes] = compoundIndexes;
|
|
808
|
-
pass[passCompoundKey] = keyOg;
|
|
809
|
-
pass[passCompoundStates] = compoundStates;
|
|
810
|
-
} else if (pass[passCompoundIndexes]) pass[passCompoundIndexes] = void 0;
|
|
811
515
|
if (parentConditionKey) pass[passParentCursor] = acquireConditionKeyCursor(pass[passStyleState], parentConditionKey);
|
|
812
516
|
try {
|
|
813
517
|
var [styleState, conf, props, viewProps, staticConfig, validStyles, accept, neverSkipProps, variants, inlineProps, parentVariants, styleFrontend, styledContext, styledContextKeys, flags, debug, parentStaticConfig, defaultProps, driverAnimations, driverOutputStyle, elementType] = pass;
|
|
@@ -1036,10 +740,10 @@ function contributeProp(pass, keyOg, valOg, compoundIndexes, compoundStates, par
|
|
|
1036
740
|
releaseConditionCursors(parentWatermark);
|
|
1037
741
|
}
|
|
1038
742
|
}
|
|
1039
|
-
var getSplitStyles = function(props, staticConfig, theme, themeName, componentState, styleProps, parentSplitStyles, componentContext, groupContext, elementType, startedUnhydrated, debug, animationDriver) {
|
|
1040
|
-
var
|
|
743
|
+
var getSplitStyles = function(props, staticConfig, theme, themeName, componentState, styleProps, parentSplitStyles, componentContext, groupContext, elementType, startedUnhydrated, debug, animationDriver, styleStaticConfig) {
|
|
744
|
+
var _styleState_style;
|
|
1041
745
|
var conf = (0, import_config.getConfig)();
|
|
1042
|
-
|
|
746
|
+
styleStaticConfig || (styleStaticConfig = (0, import_styleStaticConfig.getStyleStaticConfig)(staticConfig, conf));
|
|
1043
747
|
var driver = animationDriver || (componentContext === null || componentContext === void 0 ? void 0 : componentContext.animationDriver) || conf.animations;
|
|
1044
748
|
var driverAnimations = driver === null || driver === void 0 ? void 0 : driver.animations;
|
|
1045
749
|
driver === null || driver === void 0 || driver.inputStyle;
|
|
@@ -1047,7 +751,8 @@ var getSplitStyles = function(props, staticConfig, theme, themeName, componentSt
|
|
|
1047
751
|
var resolvedDriver = (driver === null || driver === void 0 ? void 0 : driver.isStub) ? null : driver;
|
|
1048
752
|
if (props.passThrough) return null;
|
|
1049
753
|
var { shorthands } = conf;
|
|
1050
|
-
var { isHOC, isText, isInput,
|
|
754
|
+
var { isHOC, isText, isInput, inlineProps, parentStaticConfig, acceptsClassName } = staticConfig;
|
|
755
|
+
var variants = styleStaticConfig.variants;
|
|
1051
756
|
var viewProps = {};
|
|
1052
757
|
var mediaState = styleProps.mediaState || import_mediaState.mediaState;
|
|
1053
758
|
var shouldDoClasses = !process.env.TAMAGUI_DID_OUTPUT_CSS && acceptsClassName && false;
|
|
@@ -1080,6 +785,7 @@ var getSplitStyles = function(props, staticConfig, theme, themeName, componentSt
|
|
|
1080
785
|
flatGroupContext: groupContext,
|
|
1081
786
|
animationDriver: resolvedDriver
|
|
1082
787
|
};
|
|
788
|
+
styleState.flatStyleStaticConfig = styleStaticConfig;
|
|
1083
789
|
if (import_directStyleCSS.canGenerateCSS && shouldDoClasses && styleProps.canPlatformPseudo) styleState.flatDeferCSS = true;
|
|
1084
790
|
if (process.env.NODE_ENV === "development" && (debug === "profile" || globalThis.time)) time`style-state`;
|
|
1085
791
|
if (process.env.NODE_ENV === "development" && debug === "verbose" && import_constants.isClient) {
|
|
@@ -1099,20 +805,20 @@ var getSplitStyles = function(props, staticConfig, theme, themeName, componentSt
|
|
|
1099
805
|
}
|
|
1100
806
|
var { asChild } = props;
|
|
1101
807
|
var { accept, neverSkipProps } = staticConfig;
|
|
1102
|
-
var { noSkip, disableExpandShorthands, noExpand, noClass, noMergeStyle, noNormalize, isAnimated, styledContext
|
|
808
|
+
var { noSkip, disableExpandShorthands, noExpand, noClass, noMergeStyle, noNormalize, isAnimated, styledContext } = styleProps;
|
|
809
|
+
var styledContextKeys = styleStaticConfig.styledContextKeys;
|
|
1103
810
|
var styleFrontend = staticConfig.styleFrontend;
|
|
1104
811
|
var frontendGroup;
|
|
1105
812
|
var frontendContainer;
|
|
1106
813
|
var frontendContainerType;
|
|
1107
|
-
var parentVariants = parentStaticConfig
|
|
1108
|
-
var defaultProps = asChild ?
|
|
814
|
+
var parentVariants = parentStaticConfig ? (0, import_styleStaticConfig.getStyleStaticConfig)(parentStaticConfig, conf).variants : void 0;
|
|
815
|
+
var defaultProps = asChild ? styleStaticConfig.defaultProps : void 0;
|
|
1109
816
|
var asChildExceptStyleLike = asChild === "except-style" || asChild === "except-style-web";
|
|
1110
817
|
var containerValue;
|
|
1111
818
|
var containerName;
|
|
1112
819
|
var containerType;
|
|
1113
820
|
var hocMappedClassProperties;
|
|
1114
821
|
var hocMappedClasses;
|
|
1115
|
-
var stylePassFlags = (noSkip ? passNoSkipFlag : 0) | (disableExpandShorthands ? passDisableShorthandsFlag : 0) | (noExpand ? passNoExpandFlag : 0) | (noMergeStyle ? passNoMergeFlag : 0) | (isHOC ? passHocFlag : 0) | (isText ? passTextFlag : 0) | (isInput ? passInputFlag : 0) | (asChildExceptStyleLike ? passAsChildStyleFlag : 0);
|
|
1116
822
|
var pass = [
|
|
1117
823
|
styleState,
|
|
1118
824
|
conf,
|
|
@@ -1128,7 +834,7 @@ var getSplitStyles = function(props, staticConfig, theme, themeName, componentSt
|
|
|
1128
834
|
styleFrontend,
|
|
1129
835
|
styledContext,
|
|
1130
836
|
styledContextKeys,
|
|
1131
|
-
|
|
837
|
+
(noSkip ? passNoSkipFlag : 0) | (disableExpandShorthands ? passDisableShorthandsFlag : 0) | (noExpand ? passNoExpandFlag : 0) | (noMergeStyle ? passNoMergeFlag : 0) | (isHOC ? passHocFlag : 0) | (isText ? passTextFlag : 0) | (isInput ? passInputFlag : 0) | (asChildExceptStyleLike ? passAsChildStyleFlag : 0),
|
|
1132
838
|
debug,
|
|
1133
839
|
parentStaticConfig,
|
|
1134
840
|
defaultProps,
|
|
@@ -1147,80 +853,32 @@ var getSplitStyles = function(props, staticConfig, theme, themeName, componentSt
|
|
|
1147
853
|
hocMappedClasses
|
|
1148
854
|
];
|
|
1149
855
|
styleState.flatPass = pass;
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
if (
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
if (!_iteratorNormalCompletion2 && _iterator2.return != null) _iterator2.return();
|
|
1170
|
-
} finally {
|
|
1171
|
-
if (_didIteratorError2) throw _iteratorError2;
|
|
1172
|
-
}
|
|
1173
|
-
}
|
|
1174
|
-
}
|
|
1175
|
-
}
|
|
1176
|
-
if ((_styleState_flatGroupKeys = styleState.flatGroupKeys) === null || _styleState_flatGroupKeys === void 0 ? void 0 : _styleState_flatGroupKeys.size) {
|
|
1177
|
-
pseudoGroups || (pseudoGroups = /* @__PURE__ */ new Set());
|
|
1178
|
-
var _iteratorNormalCompletion12 = true, _didIteratorError12 = false, _iteratorError12 = void 0;
|
|
1179
|
-
try {
|
|
1180
|
-
for (var _iterator12 = styleState.flatGroupKeys[Symbol.iterator](), _step12; !(_iteratorNormalCompletion12 = (_step12 = _iterator12.next()).done); _iteratorNormalCompletion12 = true) {
|
|
1181
|
-
var key1 = _step12.value;
|
|
1182
|
-
pseudoGroups.add(key1);
|
|
1183
|
-
}
|
|
1184
|
-
} catch (err) {
|
|
1185
|
-
_didIteratorError12 = true;
|
|
1186
|
-
_iteratorError12 = err;
|
|
1187
|
-
} finally {
|
|
1188
|
-
try {
|
|
1189
|
-
if (!_iteratorNormalCompletion12 && _iterator12.return != null) _iterator12.return();
|
|
1190
|
-
} finally {
|
|
1191
|
-
if (_didIteratorError12) throw _iteratorError12;
|
|
1192
|
-
}
|
|
1193
|
-
}
|
|
1194
|
-
}
|
|
1195
|
-
if ((_styleState_flatGroupMedia = styleState.flatGroupMedia) === null || _styleState_flatGroupMedia === void 0 ? void 0 : _styleState_flatGroupMedia.size) {
|
|
1196
|
-
mediaGroups || (mediaGroups = /* @__PURE__ */ new Set());
|
|
1197
|
-
var _iteratorNormalCompletion22 = true, _didIteratorError22 = false, _iteratorError22 = void 0;
|
|
1198
|
-
try {
|
|
1199
|
-
for (var _iterator22 = styleState.flatGroupMedia[Symbol.iterator](), _step22; !(_iteratorNormalCompletion22 = (_step22 = _iterator22.next()).done); _iteratorNormalCompletion22 = true) {
|
|
1200
|
-
var key2 = _step22.value;
|
|
1201
|
-
mediaGroups.add(key2);
|
|
1202
|
-
}
|
|
1203
|
-
} catch (err) {
|
|
1204
|
-
_didIteratorError22 = true;
|
|
1205
|
-
_iteratorError22 = err;
|
|
1206
|
-
} finally {
|
|
1207
|
-
try {
|
|
1208
|
-
if (!_iteratorNormalCompletion22 && _iterator22.return != null) _iterator22.return();
|
|
1209
|
-
} finally {
|
|
1210
|
-
if (_didIteratorError22) throw _iteratorError22;
|
|
856
|
+
var conditionalStates = null;
|
|
857
|
+
var usesSafeArea = false;
|
|
858
|
+
var conditionWrapperBase = conditionWrapperTop;
|
|
859
|
+
try {
|
|
860
|
+
var _styleState_flatMediaKeys, _styleState_flatGroupKeys, _styleState_flatGroupMedia;
|
|
861
|
+
forEachPropInForwardOrder(pass);
|
|
862
|
+
[, , , , , , , , , , , , , , , , , , , , , className, shouldDoClasses, containerValue, containerName, containerType, frontendGroup, frontendContainer, frontendContainerType, hocMappedClassProperties, hocMappedClasses] = pass;
|
|
863
|
+
if (process.env.NODE_ENV === "development" && (debug === "profile" || globalThis.time)) time`split-styles-propsend`;
|
|
864
|
+
conditionalStates = styleState.flatStateKeys || null;
|
|
865
|
+
usesSafeArea = !!styleState.flatUsesSafeArea;
|
|
866
|
+
hasMedia = ((_styleState_flatMediaKeys = styleState.flatMediaKeys) === null || _styleState_flatMediaKeys === void 0 ? void 0 : _styleState_flatMediaKeys.size) ? styleState.flatMediaKeys : false;
|
|
867
|
+
pseudoGroups = ((_styleState_flatGroupKeys = styleState.flatGroupKeys) === null || _styleState_flatGroupKeys === void 0 ? void 0 : _styleState_flatGroupKeys.size) ? styleState.flatGroupKeys : void 0;
|
|
868
|
+
mediaGroups = ((_styleState_flatGroupMedia = styleState.flatGroupMedia) === null || _styleState_flatGroupMedia === void 0 ? void 0 : _styleState_flatGroupMedia.size) ? styleState.flatGroupMedia : void 0;
|
|
869
|
+
if (styleProps.canPlatformPseudo && styleState.flatHasPlatformPseudo) {
|
|
870
|
+
shouldDoClasses = false;
|
|
871
|
+
styleState.flatShouldDoClasses = false;
|
|
872
|
+
if (styleState.transformAccumulator) {
|
|
873
|
+
mergeStyle(styleState, "transform", (0, import_runtime.finalizeTransformAccumulator)(styleState.transformAccumulator), true);
|
|
874
|
+
styleState.transformAccumulator = void 0;
|
|
1211
875
|
}
|
|
876
|
+
convertDeferredInline(styleState, mergeStyle);
|
|
1212
877
|
}
|
|
878
|
+
completeStreaming(styleState, mergeStyle);
|
|
879
|
+
} finally {
|
|
880
|
+
releaseConditionPayloads(conditionWrapperBase);
|
|
1213
881
|
}
|
|
1214
|
-
if (styleProps.canPlatformPseudo && styleState.flatHasPlatformPseudo) {
|
|
1215
|
-
shouldDoClasses = false;
|
|
1216
|
-
styleState.flatShouldDoClasses = false;
|
|
1217
|
-
if (styleState.transformAccumulator) {
|
|
1218
|
-
mergeStyle(styleState, "transform", (0, import_runtime.finalizeTransformAccumulator)(styleState.transformAccumulator), 1, true);
|
|
1219
|
-
styleState.transformAccumulator = void 0;
|
|
1220
|
-
}
|
|
1221
|
-
convertDeferredInline(styleState, mergeStyle);
|
|
1222
|
-
}
|
|
1223
|
-
completeStreaming(styleState, mergeStyle);
|
|
1224
882
|
var effectiveTransition = (_styleState_style = styleState.style) === null || _styleState_style === void 0 ? void 0 : _styleState_style.transition;
|
|
1225
883
|
if (effectiveTransition != null && styleState.style && true) delete styleState.style.transition;
|
|
1226
884
|
if (styleState.style) {
|
|
@@ -1238,11 +896,11 @@ var getSplitStyles = function(props, staticConfig, theme, themeName, componentSt
|
|
|
1238
896
|
styleState.style.transform = (0, import_runtime.finalizeTransformAccumulator)(styleState.transformAccumulator);
|
|
1239
897
|
}
|
|
1240
898
|
if (parentSplitStyles) {
|
|
1241
|
-
if (!shouldDoClasses) for (var
|
|
899
|
+
if (!shouldDoClasses) for (var key1 in parentSplitStyles.style) {
|
|
1242
900
|
var _styleState1;
|
|
1243
|
-
if (
|
|
901
|
+
if (key1 in classNames || styleState.style && key1 in styleState.style) continue;
|
|
1244
902
|
(_styleState1 = styleState).style || (_styleState1.style = {});
|
|
1245
|
-
styleState.style[
|
|
903
|
+
styleState.style[key1] = parentSplitStyles.style[key1];
|
|
1246
904
|
}
|
|
1247
905
|
}
|
|
1248
906
|
}
|
|
@@ -1271,9 +929,9 @@ var getSplitStyles = function(props, staticConfig, theme, themeName, componentSt
|
|
|
1271
929
|
if (shouldTrackStyleTokenProvenance && styleState.style && styleState.tokenProvenance) {
|
|
1272
930
|
var provenance = {};
|
|
1273
931
|
var hasProvenance = false;
|
|
1274
|
-
for (var
|
|
1275
|
-
provenance[
|
|
1276
|
-
token: styleState.tokenProvenance[
|
|
932
|
+
for (var key2 in styleState.tokenProvenance) {
|
|
933
|
+
provenance[key2] = {
|
|
934
|
+
token: styleState.tokenProvenance[key2],
|
|
1277
935
|
theme: themeName
|
|
1278
936
|
};
|
|
1279
937
|
hasProvenance = true;
|
|
@@ -1324,7 +982,7 @@ var getSplitStyles = function(props, staticConfig, theme, themeName, componentSt
|
|
|
1324
982
|
rulesToInsert,
|
|
1325
983
|
parentSplitStyles
|
|
1326
984
|
};
|
|
1327
|
-
for (var
|
|
985
|
+
for (var key4 in logs) (0, import_log.log)(key4, logs[key4]);
|
|
1328
986
|
} catch (e) {}
|
|
1329
987
|
console.groupEnd();
|
|
1330
988
|
}
|
|
@@ -1332,11 +990,11 @@ var getSplitStyles = function(props, staticConfig, theme, themeName, componentSt
|
|
|
1332
990
|
if (process.env.NODE_ENV === "development" && (debug === "profile" || globalThis.time)) time`split-styles-done`;
|
|
1333
991
|
return result;
|
|
1334
992
|
};
|
|
1335
|
-
function mergeStyle(styleState, key, val
|
|
1336
|
-
arguments.length >
|
|
1337
|
-
var originalVal = arguments.length >
|
|
993
|
+
function mergeStyle(styleState, key, val) {
|
|
994
|
+
arguments.length > 3 && arguments[3] !== void 0 && arguments[3];
|
|
995
|
+
var originalVal = arguments.length > 4 ? arguments[4] : void 0;
|
|
1338
996
|
var { viewProps, styleProps, staticConfig } = styleState;
|
|
1339
|
-
var contextPropSet =
|
|
997
|
+
var contextPropSet = styleState.flatStyleStaticConfig.styledContextKeys;
|
|
1340
998
|
if (contextPropSet === null || contextPropSet === void 0 ? void 0 : contextPropSet.has(key)) {
|
|
1341
999
|
var _styleState_originalContextPropValues;
|
|
1342
1000
|
var _styleState;
|
|
@@ -1368,8 +1026,8 @@ function recordStyleTokenProvenance(styleState, key, originalVal) {
|
|
|
1368
1026
|
var opacity = slash === -1 ? NaN : Number(tokenName.slice(slash + 1));
|
|
1369
1027
|
if (Number.isInteger(opacity) && opacity >= 0 && opacity <= 100) tokenName = tokenName.slice(0, slash);
|
|
1370
1028
|
}
|
|
1371
|
-
if (tokenName !== "" && (
|
|
1372
|
-
return
|
|
1029
|
+
if (tokenName !== "" && (tokenName in styleState.theme || tokenName in (((_styleState_conf_themes = styleState.conf.themes) === null || _styleState_conf_themes === void 0 ? void 0 : _styleState_conf_themes[styleState.flatThemeName || ""]) || {}) || Object.values(styleState.conf.tokensParsed).some(function(category) {
|
|
1030
|
+
return tokenName in category;
|
|
1373
1031
|
}))) {
|
|
1374
1032
|
var _styleState;
|
|
1375
1033
|
((_styleState = styleState).tokenProvenance || (_styleState.tokenProvenance = {}))[key] = originalVal;
|
|
@@ -1394,7 +1052,7 @@ var resolveAcceptedStyle = function(styleState, styleIn) {
|
|
|
1394
1052
|
childState.flatSingleEntries = void 0;
|
|
1395
1053
|
childState.flatSlots = void 0;
|
|
1396
1054
|
childState.flatBorderDefaultRequests = void 0;
|
|
1397
|
-
var mergeAccepted = function(_state, key2, value2,
|
|
1055
|
+
var mergeAccepted = function(_state, key2, value2, disableNormalize, originalValue) {
|
|
1398
1056
|
styleOut[key2] = disableNormalize || styleProps.noNormalize ? value2 : (0, import_normalizeValueWithProperty.normalizeValueWithProperty)(value2, key2);
|
|
1399
1057
|
var _styleInOriginalValues_key;
|
|
1400
1058
|
var trackedOriginal = (_styleInOriginalValues_key = styleInOriginalValues === null || styleInOriginalValues === void 0 ? void 0 : styleInOriginalValues[key2]) !== null && _styleInOriginalValues_key !== void 0 ? _styleInOriginalValues_key : originalValue;
|
|
@@ -1425,22 +1083,24 @@ function streamWriteCSS(state, property, value, cursor, original) {
|
|
|
1425
1083
|
if (property.charCodeAt(0) === 116 && property.startsWith("transition")) {
|
|
1426
1084
|
var _direct;
|
|
1427
1085
|
var transitions = (_direct = direct).flatTransitions || (_direct.flatTransitions = []);
|
|
1428
|
-
for (var index = 0; index < transitions.length; index++) if (transitions[index]
|
|
1429
|
-
transitions[index]
|
|
1430
|
-
transitions[index]
|
|
1086
|
+
for (var index = 0; index < transitions.length; index++) if (transitions[index][0] === property && transitions[index][3] === identity) {
|
|
1087
|
+
transitions[index][1] = value;
|
|
1088
|
+
transitions[index][2] = condition;
|
|
1431
1089
|
return;
|
|
1432
1090
|
}
|
|
1433
|
-
transitions.push(
|
|
1091
|
+
transitions.push([
|
|
1434
1092
|
property,
|
|
1435
1093
|
value,
|
|
1436
1094
|
condition,
|
|
1437
1095
|
identity,
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1096
|
+
cursor ? conditionTexts[cursor + conditionSelectorOffset] || "" : "",
|
|
1097
|
+
cursor ? conditionWrappers : void 0,
|
|
1098
|
+
cursor ? conditionNumbers[cursor + conditionWrapperOffset] >> 3 : 0,
|
|
1099
|
+
cursor ? conditionNumbers[cursor + conditionWrapperOffset] & 7 : 0
|
|
1100
|
+
]);
|
|
1441
1101
|
return;
|
|
1442
1102
|
}
|
|
1443
|
-
(0, import_directStyleCSS.streamAtomic)(state, property, value, condition, identity, cursor ? conditionTexts[cursor + conditionSelectorOffset] || "" : "", cursor ? conditionWrappers : void 0, cursor ? conditionNumbers[cursor + conditionWrapperOffset] >> 3 : 0, cursor ? conditionNumbers[cursor + conditionWrapperOffset] & 7 : 0,
|
|
1103
|
+
(0, import_directStyleCSS.streamAtomic)(state, property, value, condition, identity, cursor ? conditionTexts[cursor + conditionSelectorOffset] || "" : "", cursor ? conditionWrappers : void 0, cursor ? conditionNumbers[cursor + conditionWrapperOffset] >> 3 : 0, cursor ? conditionNumbers[cursor + conditionWrapperOffset] & 7 : 0, false, original);
|
|
1444
1104
|
}
|
|
1445
1105
|
function streamWriteInline(state, property, value, cursor, merge, original) {
|
|
1446
1106
|
var normalize = arguments.length > 6 && arguments[6] !== void 0 ? arguments[6] : false, conditionOverride = arguments.length > 7 && arguments[7] !== void 0 ? arguments[7] : -1;
|
|
@@ -1450,12 +1110,9 @@ function streamWriteInline(state, property, value, cursor, merge, original) {
|
|
|
1450
1110
|
var importance = condition ? Math.floor(condition / 256) + 1 : 0;
|
|
1451
1111
|
var used = (_direct = direct).flatUsed || (_direct.flatUsed = {});
|
|
1452
1112
|
var previous = used[property];
|
|
1453
|
-
if (previous !== void 0)
|
|
1454
|
-
if (previous > importance) return;
|
|
1455
|
-
if (direct.flatWeakContribution === true) return;
|
|
1456
|
-
}
|
|
1113
|
+
if (previous !== void 0 && previous > importance) return;
|
|
1457
1114
|
used[property] = importance;
|
|
1458
|
-
merge(state, property, value,
|
|
1115
|
+
merge(state, property, value, !normalize, original);
|
|
1459
1116
|
}
|
|
1460
1117
|
function streamRetractInline(state, property, cursor) {
|
|
1461
1118
|
var _direct;
|
|
@@ -1469,19 +1126,13 @@ function streamRetractInline(state, property, cursor) {
|
|
|
1469
1126
|
if (state.style) delete state.style[property];
|
|
1470
1127
|
}
|
|
1471
1128
|
function convertDeferredInline(state, merge) {
|
|
1472
|
-
var _direct;
|
|
1473
1129
|
var direct = state;
|
|
1474
|
-
var used = (_direct = direct).flatUsed || (_direct.flatUsed = {});
|
|
1475
1130
|
var consume = function(entries) {
|
|
1476
1131
|
for (var index = 0; index < entries.length; index++) {
|
|
1477
1132
|
var entry = entries[index];
|
|
1478
|
-
var condition = entry
|
|
1133
|
+
var condition = entry[2];
|
|
1479
1134
|
if (condition && !(condition & 1)) continue;
|
|
1480
|
-
|
|
1481
|
-
var previous = used[entry.property];
|
|
1482
|
-
if (previous !== void 0 && previous > importance) continue;
|
|
1483
|
-
used[entry.property] = importance;
|
|
1484
|
-
merge(state, entry.property, entry.value, 1, true, entry.original !== void 0 ? entry.original : entry.value);
|
|
1135
|
+
streamWriteInline(state, entry[0], entry[1], null, merge, entry[8] !== void 0 ? entry[8] : entry[1], false, condition);
|
|
1485
1136
|
}
|
|
1486
1137
|
};
|
|
1487
1138
|
var slots = direct.flatSlots;
|
|
@@ -1519,7 +1170,6 @@ function emitAtParentCondition(state, property, value, merge, originalValue, con
|
|
|
1519
1170
|
}
|
|
1520
1171
|
function emitUnderCondition(state, property, value, cursor, merge, originalValue, contextOnly, warnMode, warnSource) {
|
|
1521
1172
|
var condition = conditionNumbers[cursor + conditionValueOffset];
|
|
1522
|
-
if (merge && property && condition) state.flatPropSawCondition = true;
|
|
1523
1173
|
if (!(conditionNumbers[cursor + conditionFlagsOffset] & conditionResolvedFlag)) {
|
|
1524
1174
|
if (warnMode && process.env.NODE_ENV === "development") (0, import_warnOnce.warnRefusedValue)(property, warnSource, `unknown modifier "${conditionTexts[cursor + conditionUnresolvedNameOffset] || ""}"`);
|
|
1525
1175
|
return 0;
|
|
@@ -1540,10 +1190,8 @@ function emitUnderCondition(state, property, value, cursor, merge, originalValue
|
|
|
1540
1190
|
}
|
|
1541
1191
|
var directStyleHandler = {
|
|
1542
1192
|
segment(state, start, end, isBase, valid, source, chainStart, chainEnd, chainValid, chainCount, _result, failure, failureIndex, property, merge, originalValue, contextOnly) {
|
|
1543
|
-
var _directState_flatPass;
|
|
1544
1193
|
if (isBase) {
|
|
1545
1194
|
if (start === end) return;
|
|
1546
|
-
feedCompoundSegment(state, source, start, end, true, valid || failure === "invalid-character" || failure === "stray-comment-close", "");
|
|
1547
1195
|
if (!valid) {
|
|
1548
1196
|
if (failure === "invalid-character" || failure === "stray-comment-close") return 16;
|
|
1549
1197
|
if (process.env.NODE_ENV === "development") (0, import_warnOnce.warnRefusedValue)(property, source, failure === "unterminated-string" ? "an unterminated string" : failure === "unterminated-comment" ? "an unterminated \"/*\" comment" : "an unterminated \"(\"");
|
|
@@ -1566,10 +1214,8 @@ var directStyleHandler = {
|
|
|
1566
1214
|
var right = Number(source.slice(start, end));
|
|
1567
1215
|
if (chainStart < chainEnd && Number.isFinite(left) && left > 0 && Number.isFinite(right) && right > 0) return 12;
|
|
1568
1216
|
}
|
|
1569
|
-
var
|
|
1570
|
-
var cursor = directState.flatScanCursor;
|
|
1217
|
+
var cursor = state.flatScanCursor;
|
|
1571
1218
|
var condition = valid ? emitUnderCondition(state, property, source.slice(start, end), cursor, merge, void 0, contextOnly, 1, source) : conditionNumbers[cursor + conditionFlagsOffset] & conditionResolvedFlag ? conditionNumbers[cursor + conditionValueOffset] : 0;
|
|
1572
|
-
feedCompoundSegment(directState, source, start, end, false, valid && Boolean(condition), condition && ((_directState_flatPass = directState.flatPass) === null || _directState_flatPass === void 0 ? void 0 : _directState_flatPass[passCompoundIndexes]) ? conditionTexts[cursor + conditionKeyOffset] || "" : "");
|
|
1573
1219
|
if (!condition) return;
|
|
1574
1220
|
if (!valid) {
|
|
1575
1221
|
if (process.env.NODE_ENV === "development") (0, import_warnOnce.warnRefusedValue)(property, source, failure === "invalid-character" ? `"${source[failureIndex]}" would end the declaration or rule` : failure === "unterminated-string" ? "an unterminated string" : failure === "unterminated-comment" ? "an unterminated \"/*\" comment" : failure === "stray-comment-close" ? "a stray \"*/\"" : "an unterminated \"(\"");
|
|
@@ -1613,7 +1259,7 @@ var directStyleHandler = {
|
|
|
1613
1259
|
emitAtParentCondition(state, property, source, merge, originalValue !== null && originalValue !== void 0 ? originalValue : source, contextOnly);
|
|
1614
1260
|
hasBase = true;
|
|
1615
1261
|
}
|
|
1616
|
-
if (process.env.NODE_ENV === "development" && !hasBase && result & 4 &&
|
|
1262
|
+
if (process.env.NODE_ENV === "development" && !hasBase && result & 4 && property in import_helpers.propToTokenCategoryCode && splitComponents(source.slice(lastPayloadStart)).length > 1) (0, import_warnOnce.warnOnce)(`${property}="${source}" has multiple values after its first conditional. Write the base value before the first conditional.`);
|
|
1617
1263
|
if ((!import_directStyleCSS.canGenerateCSS || !state.flatShouldDoClasses) && result & 2 && !hasBase) {
|
|
1618
1264
|
var value = implicitLifecycleBase(property);
|
|
1619
1265
|
if (value !== null) emitAtParentCondition(state, property, value, merge, value, contextOnly);
|
|
@@ -1749,17 +1395,6 @@ function tokenVariable(state, property, name) {
|
|
|
1749
1395
|
var _state_conf_tokensParsed_category;
|
|
1750
1396
|
var own = (_state_conf_tokensParsed_category = state.conf.tokensParsed[category]) === null || _state_conf_tokensParsed_category === void 0 ? void 0 : _state_conf_tokensParsed_category[lookupName];
|
|
1751
1397
|
if (own) return fillTokenLookup(own, false, lookupName);
|
|
1752
|
-
for (var _i = 0, _iter = [
|
|
1753
|
-
"color",
|
|
1754
|
-
"space",
|
|
1755
|
-
"size",
|
|
1756
|
-
"radius",
|
|
1757
|
-
"zIndex"
|
|
1758
|
-
]; _i < _iter.length; _i++) {
|
|
1759
|
-
var sibling = _iter[_i];
|
|
1760
|
-
var _state_conf_tokensParsed_sibling;
|
|
1761
|
-
if (sibling !== category && ((_state_conf_tokensParsed_sibling = state.conf.tokensParsed[sibling]) === null || _state_conf_tokensParsed_sibling === void 0 ? void 0 : _state_conf_tokensParsed_sibling[lookupName])) return;
|
|
1762
|
-
}
|
|
1763
1398
|
} else {
|
|
1764
1399
|
var first = lookupName.charCodeAt(0);
|
|
1765
1400
|
if (first >= 48 && first <= 57 || first === 43 || first === 45 || first === 46) return;
|
|
@@ -1816,11 +1451,14 @@ function configuredValue(state, property, raw) {
|
|
|
1816
1451
|
missKey = `${state.flatThemeName || ""}${property}${name}`;
|
|
1817
1452
|
if (misses.has(missKey)) return raw;
|
|
1818
1453
|
}
|
|
1454
|
+
if (process.env.NODE_ENV === "development") {
|
|
1455
|
+
var _state_conf_tokensParsed_color;
|
|
1456
|
+
var category = (0, import_tokenCategories.getTokenCategoryForProperty)(property);
|
|
1457
|
+
if (category && category !== "color" && ((_state_conf_tokensParsed_color = state.conf.tokensParsed.color) === null || _state_conf_tokensParsed_color === void 0 ? void 0 : _state_conf_tokensParsed_color[name])) (0, import_warnOnce.warnOnce)(`"${name}" contributes to "color", not "${property}"`);
|
|
1458
|
+
}
|
|
1819
1459
|
var lookup = tokenVariable(state, property, name);
|
|
1820
1460
|
if (!lookup || !(0, import_createVariable.isVariable)(lookup.value)) {
|
|
1821
|
-
var _state_conf_tokensParsed_color;
|
|
1822
1461
|
if (misses) misses.add(missKey);
|
|
1823
|
-
if (process.env.NODE_ENV === "development" && import_tokenCategories.tokenCategoryByProperty[property] && ((_state_conf_tokensParsed_color = state.conf.tokensParsed.color) === null || _state_conf_tokensParsed_color === void 0 ? void 0 : _state_conf_tokensParsed_color[name])) (0, import_warnOnce.warnOnce)(`"${name}" contributes to "color", not "${property}"; keeping it literal`);
|
|
1824
1462
|
return raw;
|
|
1825
1463
|
}
|
|
1826
1464
|
var resolveValues = state.styleProps.resolveValues;
|
|
@@ -1957,13 +1595,13 @@ function emitProperty(state, property, value, cursor, merge, originalValue, cont
|
|
|
1957
1595
|
}
|
|
1958
1596
|
if (contextOnly) {
|
|
1959
1597
|
if (!condition || condition & 1) {
|
|
1960
|
-
var
|
|
1961
|
-
((
|
|
1598
|
+
var _state3;
|
|
1599
|
+
((_state3 = state).overriddenContextProps || (_state3.overriddenContextProps = {}))[property] = originalValue;
|
|
1962
1600
|
}
|
|
1963
1601
|
return;
|
|
1964
1602
|
}
|
|
1965
1603
|
if (import_directStyleCSS.canGenerateCSS && state.flatShouldDoClasses && !condition && property === "transform") {
|
|
1966
|
-
var
|
|
1604
|
+
var _state4;
|
|
1967
1605
|
if (process.env.NODE_ENV === "development" && state.transformAccumulator) {
|
|
1968
1606
|
var _iteratorNormalCompletion2 = true, _didIteratorError2 = false, _iteratorError2 = void 0;
|
|
1969
1607
|
try {
|
|
@@ -1982,13 +1620,13 @@ function emitProperty(state, property, value, cursor, merge, originalValue, cont
|
|
|
1982
1620
|
}
|
|
1983
1621
|
}
|
|
1984
1622
|
}
|
|
1985
|
-
(
|
|
1623
|
+
(_state4 = state).transformAccumulator || (_state4.transformAccumulator = (0, import_runtime.createTransformAccumulator)());
|
|
1986
1624
|
(0, import_runtime.addTransformValue)(state.transformAccumulator, property, value);
|
|
1987
1625
|
return;
|
|
1988
1626
|
}
|
|
1989
1627
|
var shouldPromoteAnimatedStyle = import_directStyleCSS.canGenerateCSS && !condition && !state.flatShouldDoClasses && !state.styleProps.noMergeStyle && state.styleProps.isAnimated && ((_state_animationDriver = state.animationDriver) === null || _state_animationDriver === void 0 ? void 0 : _state_animationDriver.inputStyle) === "css" && property in import_helpers.nonAnimatableStyleProps;
|
|
1990
1628
|
if (import_directStyleCSS.canGenerateCSS && (state.flatShouldDoClasses || shouldPromoteAnimatedStyle)) {
|
|
1991
|
-
if (!condition && state.style &&
|
|
1629
|
+
if (!condition && state.style && !(direct.flatUsed && direct.flatUsed[property])) delete state.style[property];
|
|
1992
1630
|
streamWriteCSS(state, property, value, cursor, originalValue);
|
|
1993
1631
|
return;
|
|
1994
1632
|
}
|
|
@@ -2449,14 +2087,11 @@ function contributeStyleObject(state, property, value, merge, contextOnly) {
|
|
|
2449
2087
|
}
|
|
2450
2088
|
function contributeStyleObjectInner(state, property, value, merge, contextOnly) {
|
|
2451
2089
|
var _directState_flatPass;
|
|
2452
|
-
var
|
|
2453
|
-
var
|
|
2454
|
-
var hasDefault = Object.prototype.hasOwnProperty.call(value, "default");
|
|
2090
|
+
var parent = ((_directState_flatPass = state.flatPass) === null || _directState_flatPass === void 0 ? void 0 : _directState_flatPass[passParentCursor]) || null;
|
|
2091
|
+
var hasDefault = "default" in value;
|
|
2455
2092
|
var hasBase = false;
|
|
2456
2093
|
var base = hasDefault ? value.default : void 0;
|
|
2457
2094
|
if (base != null) {
|
|
2458
|
-
var baseString = String(base);
|
|
2459
|
-
feedCompoundSegment(directState, baseString, 0, baseString.length, true, true, "");
|
|
2460
2095
|
emitAtParentCondition(state, property, base, merge, base, contextOnly);
|
|
2461
2096
|
hasBase = true;
|
|
2462
2097
|
}
|
|
@@ -2476,12 +2111,7 @@ function contributeStyleObjectInner(state, property, value, merge, contextOnly)
|
|
|
2476
2111
|
return false;
|
|
2477
2112
|
}
|
|
2478
2113
|
}
|
|
2479
|
-
if (payload != null)
|
|
2480
|
-
var _directState_flatPass1;
|
|
2481
|
-
conditions |= emitUnderCondition(state, property, payload, cursor, merge, payload, contextOnly, 1, payload);
|
|
2482
|
-
var payloadString = String(payload);
|
|
2483
|
-
feedCompoundSegment(directState, payloadString, 0, payloadString.length, false, Boolean(condition), condition && ((_directState_flatPass1 = directState.flatPass) === null || _directState_flatPass1 === void 0 ? void 0 : _directState_flatPass1[passCompoundIndexes]) ? conditionTexts[cursor + conditionKeyOffset] || "" : "");
|
|
2484
|
-
}
|
|
2114
|
+
if (payload != null) conditions |= emitUnderCondition(state, property, payload, cursor, merge, payload, contextOnly, 1, payload);
|
|
2485
2115
|
releaseConditionCursors(watermark);
|
|
2486
2116
|
}
|
|
2487
2117
|
if (!hasDefault && firstCondition) return false;
|
|
@@ -2494,13 +2124,16 @@ function contributeStyleObjectInner(state, property, value, merge, contextOnly)
|
|
|
2494
2124
|
function contributeValue(state, property, value, merge, originalValue) {
|
|
2495
2125
|
var contextOnly = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : false, condition = arguments.length > 6 ? arguments[6] : void 0;
|
|
2496
2126
|
if (isConditionTransport(value)) {
|
|
2497
|
-
if (value
|
|
2498
|
-
|
|
2499
|
-
|
|
2127
|
+
if (value[transportHasBase]) {
|
|
2128
|
+
var base = value[transportBase];
|
|
2129
|
+
contributeValue(state, property, base, merge, base, contextOnly);
|
|
2130
|
+
}
|
|
2131
|
+
for (var offset = transportEntries; offset < value.length;) {
|
|
2132
|
+
var entryValue = value[offset];
|
|
2500
2133
|
var watermark = conditionCursorTop;
|
|
2501
2134
|
try {
|
|
2502
2135
|
var _state_flatPass;
|
|
2503
|
-
emitUnderCondition(state, property, entryValue, acquireTransportCursor(state, value
|
|
2136
|
+
emitUnderCondition(state, property, entryValue, acquireTransportCursor(state, value, offset, ((_state_flatPass = state.flatPass) === null || _state_flatPass === void 0 ? void 0 : _state_flatPass[passParentCursor]) || null), merge, entryValue, contextOnly, 2, entryValue);
|
|
2504
2137
|
} finally {
|
|
2505
2138
|
releaseConditionCursors(watermark);
|
|
2506
2139
|
}
|
|
@@ -2526,7 +2159,7 @@ function contributeValue(state, property, value, merge, originalValue) {
|
|
|
2526
2159
|
commitConditionCursor(state, effective);
|
|
2527
2160
|
} else effective = condition;
|
|
2528
2161
|
var isObjectValue = value && (typeof value === "undefined" ? "undefined" : _type_of(value)) === "object" && !Array.isArray(value) && !(0, import_createVariable.isVariable)(value);
|
|
2529
|
-
var objectHasDefault = isObjectValue &&
|
|
2162
|
+
var objectHasDefault = isObjectValue && "default" in value;
|
|
2530
2163
|
var firstChild = isObjectValue && !objectHasDefault ? acquireConditionCursor(effective) : null;
|
|
2531
2164
|
if (isObjectValue && classifyConditionalObject(value, state, void 0, firstChild || void 0)) {
|
|
2532
2165
|
var useFirstChild = firstChild !== null;
|
|
@@ -2595,17 +2228,20 @@ function clearDirectStyle(state, property) {
|
|
|
2595
2228
|
if (state.style) delete state.style[atomicKey];
|
|
2596
2229
|
delete state.classNames[atomicKey];
|
|
2597
2230
|
}
|
|
2598
|
-
var
|
|
2231
|
+
var conditionTransportTag = /* @__PURE__ */ Symbol();
|
|
2232
|
+
var transportHasBase = 1;
|
|
2233
|
+
var transportBase = 2;
|
|
2234
|
+
var transportEntries = 3;
|
|
2235
|
+
var transportEntryWidth = 2;
|
|
2599
2236
|
function isConditionTransport(value) {
|
|
2600
|
-
return (
|
|
2237
|
+
return Array.isArray(value) && value[0] === conditionTransportTag;
|
|
2601
2238
|
}
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
entries.push(value, conditionTexts[cursor + conditionKeyOffset] || "");
|
|
2239
|
+
function appendConditionEntry(transport, cursor, value) {
|
|
2240
|
+
transport.push(value, conditionTexts[cursor + conditionKeyOffset] || "");
|
|
2605
2241
|
}
|
|
2606
|
-
function acquireTransportCursor(state,
|
|
2242
|
+
function acquireTransportCursor(state, transport, offset, parent) {
|
|
2607
2243
|
var cursor = acquireConditionCursor(parent);
|
|
2608
|
-
var key =
|
|
2244
|
+
var key = transport[offset + 1];
|
|
2609
2245
|
if (key) resolveConditionText(state, cursor, key);
|
|
2610
2246
|
commitConditionCursor(state, cursor);
|
|
2611
2247
|
return cursor;
|
|
@@ -2614,15 +2250,14 @@ function mergeConditionTransport(state, prev, cursor, value) {
|
|
|
2614
2250
|
var transport;
|
|
2615
2251
|
if (isConditionTransport(prev)) transport = prev;
|
|
2616
2252
|
else {
|
|
2617
|
-
transport =
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
conditionTransports.add(transport);
|
|
2253
|
+
transport = [
|
|
2254
|
+
conditionTransportTag,
|
|
2255
|
+
false,
|
|
2256
|
+
void 0
|
|
2257
|
+
];
|
|
2623
2258
|
if (prev != null) {
|
|
2624
2259
|
var isObjectValue = (typeof prev === "undefined" ? "undefined" : _type_of(prev)) === "object" && !Array.isArray(prev) && !(0, import_createVariable.isVariable)(prev);
|
|
2625
|
-
var objectHasDefault = isObjectValue &&
|
|
2260
|
+
var objectHasDefault = isObjectValue && "default" in prev;
|
|
2626
2261
|
var authoredWatermark = conditionCursorTop;
|
|
2627
2262
|
try {
|
|
2628
2263
|
var firstCursor = isObjectValue && !objectHasDefault ? acquireConditionCursor() : null;
|
|
@@ -2632,8 +2267,8 @@ function mergeConditionTransport(state, prev, cursor, value) {
|
|
|
2632
2267
|
var payload = prev[key];
|
|
2633
2268
|
if (payload == null) continue;
|
|
2634
2269
|
if (key === "default") {
|
|
2635
|
-
transport
|
|
2636
|
-
transport
|
|
2270
|
+
transport[transportHasBase] = true;
|
|
2271
|
+
transport[transportBase] = payload;
|
|
2637
2272
|
continue;
|
|
2638
2273
|
}
|
|
2639
2274
|
var watermark = conditionCursorTop;
|
|
@@ -2643,12 +2278,12 @@ function mergeConditionTransport(state, prev, cursor, value) {
|
|
|
2643
2278
|
resolveConditionText(state, keyCursor, key);
|
|
2644
2279
|
commitConditionCursor(state, keyCursor);
|
|
2645
2280
|
}
|
|
2646
|
-
appendConditionEntry(transport
|
|
2281
|
+
appendConditionEntry(transport, keyCursor, payload);
|
|
2647
2282
|
if (keyCursor !== firstCursor) releaseConditionCursors(watermark);
|
|
2648
2283
|
}
|
|
2649
2284
|
} else {
|
|
2650
|
-
transport
|
|
2651
|
-
transport
|
|
2285
|
+
transport[transportHasBase] = true;
|
|
2286
|
+
transport[transportBase] = prev;
|
|
2652
2287
|
}
|
|
2653
2288
|
} finally {
|
|
2654
2289
|
releaseConditionCursors(authoredWatermark);
|
|
@@ -2656,30 +2291,25 @@ function mergeConditionTransport(state, prev, cursor, value) {
|
|
|
2656
2291
|
}
|
|
2657
2292
|
}
|
|
2658
2293
|
var cursorKey = conditionTexts[cursor + conditionKeyOffset] || "";
|
|
2659
|
-
for (var offset =
|
|
2660
|
-
transport.
|
|
2294
|
+
for (var offset = transportEntries; offset < transport.length; offset += transportEntryWidth) if (transport[offset + 1] === cursorKey) {
|
|
2295
|
+
transport.splice(offset, transportEntryWidth);
|
|
2661
2296
|
break;
|
|
2662
2297
|
}
|
|
2663
|
-
appendConditionEntry(transport
|
|
2298
|
+
appendConditionEntry(transport, cursor, value);
|
|
2664
2299
|
return transport;
|
|
2665
2300
|
}
|
|
2666
2301
|
var variantValueHandler = {
|
|
2667
2302
|
segment(ctx, start, end, isBase, valid, source, chainStart, chainEnd, chainValid) {
|
|
2668
|
-
var _directState_flatPass;
|
|
2669
2303
|
var state = ctx[0];
|
|
2670
|
-
var directState = state;
|
|
2671
2304
|
if (start === end) return;
|
|
2672
2305
|
if (isBase) {
|
|
2673
|
-
feedCompoundSegment(directState, source, start, end, true, valid, "");
|
|
2674
2306
|
if (!valid) return;
|
|
2675
2307
|
emitResolvedVariant(ctx[1], source.slice(start, end), state, ctx[2], null);
|
|
2676
2308
|
return;
|
|
2677
2309
|
}
|
|
2678
2310
|
if (!valid || !chainValid) return;
|
|
2679
|
-
var cursor =
|
|
2680
|
-
|
|
2681
|
-
feedCompoundSegment(directState, source, start, end, false, Boolean(condition), condition && ((_directState_flatPass = directState.flatPass) === null || _directState_flatPass === void 0 ? void 0 : _directState_flatPass[passCompoundIndexes]) ? conditionTexts[cursor + conditionKeyOffset] || "" : "");
|
|
2682
|
-
if (!condition) return;
|
|
2311
|
+
var cursor = state.flatScanCursor;
|
|
2312
|
+
if (!(cursor && conditionNumbers[cursor + conditionFlagsOffset] & conditionResolvedFlag ? conditionNumbers[cursor + conditionValueOffset] : 0)) return;
|
|
2683
2313
|
emitResolvedVariant(ctx[1], source.slice(start, end), state, ctx[2], cursor);
|
|
2684
2314
|
},
|
|
2685
2315
|
modifier(ctx, start, end, valid, first, source) {
|
|
@@ -2702,80 +2332,6 @@ var variantValueHandler = {
|
|
|
2702
2332
|
return true;
|
|
2703
2333
|
}
|
|
2704
2334
|
};
|
|
2705
|
-
var contextPropSets = /* @__PURE__ */ new WeakMap();
|
|
2706
|
-
function getContextPropSet(staticConfig) {
|
|
2707
|
-
var _staticConfig_parentStaticConfig, _staticConfig_parentStaticConfig1, _staticConfig_parentStaticConfig2, _staticConfig_parentStaticConfig_context, _staticConfig_parentStaticConfig3;
|
|
2708
|
-
var cached = contextPropSets.get(staticConfig);
|
|
2709
|
-
if (cached !== void 0) return cached;
|
|
2710
|
-
var contextConfig = staticConfig.context || ((_staticConfig_parentStaticConfig = staticConfig.parentStaticConfig) === null || _staticConfig_parentStaticConfig === void 0 ? void 0 : _staticConfig_parentStaticConfig.context);
|
|
2711
|
-
var inheritedContextPropKeys = !staticConfig.context || staticConfig.context === ((_staticConfig_parentStaticConfig1 = staticConfig.parentStaticConfig) === null || _staticConfig_parentStaticConfig1 === void 0 ? void 0 : _staticConfig_parentStaticConfig1.context) ? (_staticConfig_parentStaticConfig2 = staticConfig.parentStaticConfig) === null || _staticConfig_parentStaticConfig2 === void 0 ? void 0 : _staticConfig_parentStaticConfig2.contextProps : void 0;
|
|
2712
|
-
var contextPropKeys = staticConfig.contextProps || inheritedContextPropKeys;
|
|
2713
|
-
var set = null;
|
|
2714
|
-
if (contextConfig === null || contextConfig === void 0 ? void 0 : contextConfig.props) {
|
|
2715
|
-
set || (set = /* @__PURE__ */ new Set());
|
|
2716
|
-
for (var key in contextConfig.props) set.add(key);
|
|
2717
|
-
}
|
|
2718
|
-
if (contextPropKeys) {
|
|
2719
|
-
set || (set = /* @__PURE__ */ new Set());
|
|
2720
|
-
var _iteratorNormalCompletion2 = true, _didIteratorError2 = false, _iteratorError2 = void 0;
|
|
2721
|
-
try {
|
|
2722
|
-
for (var _iterator2 = contextPropKeys[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
|
|
2723
|
-
var key1 = _step2.value;
|
|
2724
|
-
set.add(key1);
|
|
2725
|
-
}
|
|
2726
|
-
} catch (err) {
|
|
2727
|
-
_didIteratorError2 = true;
|
|
2728
|
-
_iteratorError2 = err;
|
|
2729
|
-
} finally {
|
|
2730
|
-
try {
|
|
2731
|
-
if (!_iteratorNormalCompletion2 && _iterator2.return != null) _iterator2.return();
|
|
2732
|
-
} finally {
|
|
2733
|
-
if (_didIteratorError2) throw _iteratorError2;
|
|
2734
|
-
}
|
|
2735
|
-
}
|
|
2736
|
-
}
|
|
2737
|
-
if (contextConfig === null || contextConfig === void 0 ? void 0 : contextConfig.propKeys) {
|
|
2738
|
-
set || (set = /* @__PURE__ */ new Set());
|
|
2739
|
-
var _iteratorNormalCompletion12 = true, _didIteratorError12 = false, _iteratorError12 = void 0;
|
|
2740
|
-
try {
|
|
2741
|
-
for (var _iterator12 = contextConfig.propKeys[Symbol.iterator](), _step12; !(_iteratorNormalCompletion12 = (_step12 = _iterator12.next()).done); _iteratorNormalCompletion12 = true) {
|
|
2742
|
-
var key2 = _step12.value;
|
|
2743
|
-
set.add(key2);
|
|
2744
|
-
}
|
|
2745
|
-
} catch (err) {
|
|
2746
|
-
_didIteratorError12 = true;
|
|
2747
|
-
_iteratorError12 = err;
|
|
2748
|
-
} finally {
|
|
2749
|
-
try {
|
|
2750
|
-
if (!_iteratorNormalCompletion12 && _iterator12.return != null) _iterator12.return();
|
|
2751
|
-
} finally {
|
|
2752
|
-
if (_didIteratorError12) throw _iteratorError12;
|
|
2753
|
-
}
|
|
2754
|
-
}
|
|
2755
|
-
}
|
|
2756
|
-
var parentPropKeys = (_staticConfig_parentStaticConfig3 = staticConfig.parentStaticConfig) === null || _staticConfig_parentStaticConfig3 === void 0 ? void 0 : (_staticConfig_parentStaticConfig_context = _staticConfig_parentStaticConfig3.context) === null || _staticConfig_parentStaticConfig_context === void 0 ? void 0 : _staticConfig_parentStaticConfig_context.propKeys;
|
|
2757
|
-
if (parentPropKeys) {
|
|
2758
|
-
set || (set = /* @__PURE__ */ new Set());
|
|
2759
|
-
var _iteratorNormalCompletion22 = true, _didIteratorError22 = false, _iteratorError22 = void 0;
|
|
2760
|
-
try {
|
|
2761
|
-
for (var _iterator22 = parentPropKeys[Symbol.iterator](), _step22; !(_iteratorNormalCompletion22 = (_step22 = _iterator22.next()).done); _iteratorNormalCompletion22 = true) {
|
|
2762
|
-
var key3 = _step22.value;
|
|
2763
|
-
set.add(key3);
|
|
2764
|
-
}
|
|
2765
|
-
} catch (err) {
|
|
2766
|
-
_didIteratorError22 = true;
|
|
2767
|
-
_iteratorError22 = err;
|
|
2768
|
-
} finally {
|
|
2769
|
-
try {
|
|
2770
|
-
if (!_iteratorNormalCompletion22 && _iterator22.return != null) _iterator22.return();
|
|
2771
|
-
} finally {
|
|
2772
|
-
if (_didIteratorError22) throw _iteratorError22;
|
|
2773
|
-
}
|
|
2774
|
-
}
|
|
2775
|
-
}
|
|
2776
|
-
contextPropSets.set(staticConfig, set);
|
|
2777
|
-
return set;
|
|
2778
|
-
}
|
|
2779
2335
|
function emitMappedValue(styleState, key, value, originalValue, nestedCondition, parentCondition, fallbackOriginal) {
|
|
2780
2336
|
var nested = nestedCondition;
|
|
2781
2337
|
var parent = parentCondition;
|
|
@@ -2796,8 +2352,8 @@ function emitMappedValue(styleState, key, value, originalValue, nestedCondition,
|
|
|
2796
2352
|
}
|
|
2797
2353
|
var contributeMappedValue = function(key, value, styleState, disabled, parentCondition, fallbackOriginal) {
|
|
2798
2354
|
if (disabled) return emitMappedValue(styleState, key, value, void 0, void 0, parentCondition, fallbackOriginal);
|
|
2799
|
-
var { conf, styleProps
|
|
2800
|
-
var
|
|
2355
|
+
var { conf, styleProps } = styleState;
|
|
2356
|
+
var variants = styleState.flatStyleStaticConfig.variants;
|
|
2801
2357
|
var { disableExpandShorthands, noExpand, resolveValues } = styleProps;
|
|
2802
2358
|
var shorthands = conf.shorthands;
|
|
2803
2359
|
if (value === "unset") {
|
|
@@ -2868,15 +2424,15 @@ var contributeMappedValue = function(key, value, styleState, disabled, parentCon
|
|
|
2868
2424
|
}
|
|
2869
2425
|
};
|
|
2870
2426
|
function resolveVariants(key, value, styleProps, styleState, parentVariantKey) {
|
|
2871
|
-
var
|
|
2872
|
-
var variantDefinition = (
|
|
2427
|
+
var _styleState_flatStyleStaticConfig_variants;
|
|
2428
|
+
var variantDefinition = (_styleState_flatStyleStaticConfig_variants = styleState.flatStyleStaticConfig.variants) === null || _styleState_flatStyleStaticConfig_variants === void 0 ? void 0 : _styleState_flatStyleStaticConfig_variants[key];
|
|
2873
2429
|
if (isConditionTransport(value)) {
|
|
2874
|
-
if (value
|
|
2875
|
-
for (var offset =
|
|
2876
|
-
var entryValue = value
|
|
2430
|
+
if (value[transportHasBase]) emitResolvedVariant(key, value[transportBase], styleState, parentVariantKey, null);
|
|
2431
|
+
for (var offset = transportEntries; offset < value.length;) {
|
|
2432
|
+
var entryValue = value[offset];
|
|
2877
2433
|
var watermark = conditionCursorTop;
|
|
2878
2434
|
try {
|
|
2879
|
-
emitResolvedVariant(key, entryValue, styleState, parentVariantKey, acquireTransportCursor(styleState, value
|
|
2435
|
+
emitResolvedVariant(key, entryValue, styleState, parentVariantKey, acquireTransportCursor(styleState, value, offset, null));
|
|
2880
2436
|
} finally {
|
|
2881
2437
|
releaseConditionCursors(watermark);
|
|
2882
2438
|
}
|
|
@@ -2902,32 +2458,27 @@ function resolveVariants(key, value, styleProps, styleState, parentVariantKey) {
|
|
|
2902
2458
|
return;
|
|
2903
2459
|
}
|
|
2904
2460
|
var isObjectValue = value && (typeof value === "undefined" ? "undefined" : _type_of(value)) === "object" && !Array.isArray(value) && !(0, import_createVariable.isVariable)(value);
|
|
2905
|
-
var objectHasDefault = isObjectValue &&
|
|
2461
|
+
var objectHasDefault = isObjectValue && "default" in value;
|
|
2906
2462
|
var objectWatermark = conditionCursorTop;
|
|
2907
2463
|
try {
|
|
2908
2464
|
var firstCursor = isObjectValue && !objectHasDefault ? acquireConditionCursor() : null;
|
|
2909
2465
|
if (isObjectValue && classifyConditionalObject(value, styleState, void 0, firstCursor || void 0)) {
|
|
2910
2466
|
var useFirstCursor = firstCursor !== null;
|
|
2911
2467
|
for (var objKey in value) {
|
|
2912
|
-
var _directState_flatPass;
|
|
2913
2468
|
var payload = value[objKey];
|
|
2914
2469
|
if (payload == null) continue;
|
|
2915
|
-
var directState1 = styleState;
|
|
2916
|
-
var payloadString = String(payload);
|
|
2917
2470
|
if (objKey === "default") {
|
|
2918
|
-
feedCompoundSegment(directState1, payloadString, 0, payloadString.length, true, true, "");
|
|
2919
2471
|
emitResolvedVariant(key, payload, styleState, parentVariantKey, null);
|
|
2920
2472
|
continue;
|
|
2921
2473
|
}
|
|
2922
2474
|
var watermark2 = conditionCursorTop;
|
|
2923
2475
|
var cursor1 = useFirstCursor ? firstCursor : acquireConditionCursor();
|
|
2924
|
-
|
|
2476
|
+
conditionNumbers[cursor1 + conditionValueOffset];
|
|
2925
2477
|
if (useFirstCursor) useFirstCursor = false;
|
|
2926
2478
|
else {
|
|
2927
2479
|
resolveConditionText(styleState, cursor1, objKey);
|
|
2928
|
-
|
|
2480
|
+
commitConditionCursor(styleState, cursor1);
|
|
2929
2481
|
}
|
|
2930
|
-
if ((_directState_flatPass = directState1.flatPass) === null || _directState_flatPass === void 0 ? void 0 : _directState_flatPass[passCompoundIndexes]) feedCompoundSegment(directState1, payloadString, 0, payloadString.length, false, Boolean(condition), condition ? conditionTexts[cursor1 + conditionKeyOffset] || "" : "");
|
|
2931
2482
|
emitResolvedVariant(key, payload, styleState, parentVariantKey, cursor1);
|
|
2932
2483
|
if (cursor1 !== firstCursor) releaseConditionCursors(watermark2);
|
|
2933
2484
|
}
|
|
@@ -2939,60 +2490,36 @@ function resolveVariants(key, value, styleProps, styleState, parentVariantKey) {
|
|
|
2939
2490
|
emitResolvedVariant(key, value, styleState, parentVariantKey, null);
|
|
2940
2491
|
}
|
|
2941
2492
|
function emitResolvedVariant(key, value, styleState, parentVariantKey, conditionCursor) {
|
|
2942
|
-
var {
|
|
2493
|
+
var { conf, debug } = styleState;
|
|
2943
2494
|
var styleProps = styleState.styleProps;
|
|
2944
|
-
var
|
|
2495
|
+
var variants = styleState.flatStyleStaticConfig.variants;
|
|
2945
2496
|
if (!variants) return;
|
|
2946
2497
|
var variant = variants[key];
|
|
2947
|
-
var variantValue = getVariantDefinition(variant, value, conf, styleState);
|
|
2948
|
-
if (
|
|
2949
|
-
console.groupCollapsed(`\u2666\uFE0F\u2666\uFE0F\u2666\uFE0F resolve variant ${key}`);
|
|
2950
|
-
console.info({
|
|
2951
|
-
key,
|
|
2952
|
-
value,
|
|
2953
|
-
variantValue,
|
|
2954
|
-
variants
|
|
2955
|
-
});
|
|
2956
|
-
console.groupEnd();
|
|
2957
|
-
}
|
|
2958
|
-
if (!variantValue) {
|
|
2959
|
-
if (process.env.TAMAGUI_WARN_ON_MISSING_VARIANT === "1") {
|
|
2960
|
-
if (typeof value !== "boolean") {
|
|
2961
|
-
var name = styleState.styleProps.displayName || "[UnnamedComponent]";
|
|
2962
|
-
console.warn(`No variant found: ${name} has variant "${key}", but no matching value "${value}"`);
|
|
2963
|
-
}
|
|
2964
|
-
}
|
|
2965
|
-
return;
|
|
2966
|
-
}
|
|
2498
|
+
var variantValue = (0, import_variantResolvers.getVariantDefinition)(variant, value, conf, styleState);
|
|
2499
|
+
if (!variantValue) return;
|
|
2967
2500
|
if (typeof variantValue === "function") {
|
|
2968
2501
|
variantValue = variantValue(value, (0, import_getVariantExtras.getVariantExtras)(styleState));
|
|
2969
2502
|
if (process.env.NODE_ENV === "development" && debug === "verbose" && false);
|
|
2970
2503
|
}
|
|
2971
|
-
if (!(0,
|
|
2504
|
+
if (!(0, import_isObj.isObj)(variantValue)) return;
|
|
2972
2505
|
if (process.env.NODE_ENV === "development" && debug === "verbose") console.info(` expanding styles from `, variantValue);
|
|
2973
2506
|
var { noSkip } = styleProps;
|
|
2974
2507
|
var originals = import_styleOriginalValues.styleOriginalValues.get(variantValue);
|
|
2975
|
-
var
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
var
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
styleState.originalContextPropValues[outputKey] = originalValue;
|
|
2991
|
-
}
|
|
2992
|
-
contributeMappedValue(outputKey, outputValue, styleState, parentVariantKey === key && outputKey === key, conditionCursor || void 0, originalValue);
|
|
2993
|
-
}
|
|
2994
|
-
} finally {
|
|
2995
|
-
directState.flatCompoundOutputDepth--;
|
|
2508
|
+
for (var outputKey in variantValue) {
|
|
2509
|
+
if (!noSkip && outputKey in import_skipProps.skipProps) continue;
|
|
2510
|
+
var rawOutputValue = variantValue[outputKey];
|
|
2511
|
+
var outputValue = styleProps.noNormalize ? rawOutputValue : (0, import_normalizeValueWithProperty.normalizeValueWithProperty)(rawOutputValue, conf.shorthands[outputKey] || outputKey);
|
|
2512
|
+
var _originals_outputKey;
|
|
2513
|
+
var originalValue = (_originals_outputKey = originals === null || originals === void 0 ? void 0 : originals[outputKey]) !== null && _originals_outputKey !== void 0 ? _originals_outputKey : rawOutputValue;
|
|
2514
|
+
var contextPropSet = styleState.flatStyleStaticConfig.styledContextKeys;
|
|
2515
|
+
if (contextPropSet === null || contextPropSet === void 0 ? void 0 : contextPropSet.has(outputKey)) {
|
|
2516
|
+
var _styleState, _styleState1;
|
|
2517
|
+
(_styleState = styleState).overriddenContextProps || (_styleState.overriddenContextProps = {});
|
|
2518
|
+
styleState.overriddenContextProps[outputKey] = originalValue;
|
|
2519
|
+
(_styleState1 = styleState).originalContextPropValues || (_styleState1.originalContextPropValues = {});
|
|
2520
|
+
styleState.originalContextPropValues[outputKey] = originalValue;
|
|
2521
|
+
}
|
|
2522
|
+
contributeMappedValue(outputKey, outputValue, styleState, parentVariantKey === key && outputKey === key, conditionCursor || void 0, originalValue);
|
|
2996
2523
|
}
|
|
2997
2524
|
}
|
|
2998
2525
|
function getFontFamilyFromNameOrVariable(input, conf) {
|
|
@@ -3009,126 +2536,5 @@ function getFontFamilyFromNameOrVariable(input, conf) {
|
|
|
3009
2536
|
} else if (typeof input === "string" && input in conf.fontsParsed) return input;
|
|
3010
2537
|
}
|
|
3011
2538
|
var variableToFontNameCache = /* @__PURE__ */ new WeakMap();
|
|
3012
|
-
function getVariantDefinition(variant, value, conf, param) {
|
|
3013
|
-
var { theme } = param;
|
|
3014
|
-
if (!variant) return;
|
|
3015
|
-
if (value === void 0) return;
|
|
3016
|
-
if (typeof variant === "function") return variant;
|
|
3017
|
-
if (Object.prototype.hasOwnProperty.call(variant, value)) return variant[value];
|
|
3018
|
-
var _iteratorNormalCompletion2 = true, _didIteratorError2 = false, _iteratorError2 = void 0;
|
|
3019
|
-
try {
|
|
3020
|
-
for (var _iterator2 = getCompiledVariantResolvers(variant)[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
|
|
3021
|
-
var { key, parts } = _step2.value;
|
|
3022
|
-
var _iteratorNormalCompletion12 = true, _didIteratorError12 = false, _iteratorError12 = void 0;
|
|
3023
|
-
try {
|
|
3024
|
-
for (var _iterator12 = parts[Symbol.iterator](), _step12; !(_iteratorNormalCompletion12 = (_step12 = _iterator12.next()).done); _iteratorNormalCompletion12 = true) {
|
|
3025
|
-
var part3 = _step12.value;
|
|
3026
|
-
if (matchesVariantResolver(part3, value, conf, theme)) return variant[key];
|
|
3027
|
-
}
|
|
3028
|
-
} catch (err) {
|
|
3029
|
-
_didIteratorError12 = true;
|
|
3030
|
-
_iteratorError12 = err;
|
|
3031
|
-
} finally {
|
|
3032
|
-
try {
|
|
3033
|
-
if (!_iteratorNormalCompletion12 && _iterator12.return != null) _iterator12.return();
|
|
3034
|
-
} finally {
|
|
3035
|
-
if (_didIteratorError12) throw _iteratorError12;
|
|
3036
|
-
}
|
|
3037
|
-
}
|
|
3038
|
-
}
|
|
3039
|
-
} catch (err) {
|
|
3040
|
-
_didIteratorError2 = true;
|
|
3041
|
-
_iteratorError2 = err;
|
|
3042
|
-
} finally {
|
|
3043
|
-
try {
|
|
3044
|
-
if (!_iteratorNormalCompletion2 && _iterator2.return != null) _iterator2.return();
|
|
3045
|
-
} finally {
|
|
3046
|
-
if (_didIteratorError2) throw _iteratorError2;
|
|
3047
|
-
}
|
|
3048
|
-
}
|
|
3049
|
-
}
|
|
3050
|
-
var variantResolverNameSet = new Set(import_types.variantResolverNames);
|
|
3051
|
-
var variantResolverCache = /* @__PURE__ */ new WeakMap();
|
|
3052
|
-
var preparedStyleStaticConfigs = /* @__PURE__ */ new WeakSet();
|
|
3053
|
-
function prepareStyleStaticConfig(staticConfig) {
|
|
3054
|
-
if (preparedStyleStaticConfigs.has(staticConfig)) return staticConfig;
|
|
3055
|
-
preparedStyleStaticConfigs.add(staticConfig);
|
|
3056
|
-
getContextPropSet(staticConfig);
|
|
3057
|
-
prepareStaticConfigCompounds(staticConfig);
|
|
3058
|
-
var variants = staticConfig.variants;
|
|
3059
|
-
if (variants) for (var key in variants) {
|
|
3060
|
-
var variant = variants[key];
|
|
3061
|
-
if (variant && (typeof variant === "undefined" ? "undefined" : _type_of(variant)) === "object") getCompiledVariantResolvers(variant);
|
|
3062
|
-
}
|
|
3063
|
-
return staticConfig;
|
|
3064
|
-
}
|
|
3065
|
-
function getCompiledVariantResolvers(variant) {
|
|
3066
|
-
var cached = variantResolverCache.get(variant);
|
|
3067
|
-
if (cached) return cached;
|
|
3068
|
-
var compiled = [];
|
|
3069
|
-
for (var key in variant) {
|
|
3070
|
-
var parts = parseVariantResolverKey(key);
|
|
3071
|
-
if (parts) compiled.push({
|
|
3072
|
-
key,
|
|
3073
|
-
parts
|
|
3074
|
-
});
|
|
3075
|
-
}
|
|
3076
|
-
variantResolverCache.set(variant, compiled);
|
|
3077
|
-
return compiled;
|
|
3078
|
-
}
|
|
3079
|
-
function parseVariantResolverKey(key) {
|
|
3080
|
-
if (!key) return null;
|
|
3081
|
-
var parts = [];
|
|
3082
|
-
var start = 0;
|
|
3083
|
-
for (var index = 0; index <= key.length; index++) {
|
|
3084
|
-
if (index !== key.length && key.charCodeAt(index) !== 124) continue;
|
|
3085
|
-
var partStart = start;
|
|
3086
|
-
var partEnd = index;
|
|
3087
|
-
while (partStart < partEnd && key.charCodeAt(partStart) <= 32) partStart++;
|
|
3088
|
-
while (partEnd > partStart && key.charCodeAt(partEnd - 1) <= 32) partEnd--;
|
|
3089
|
-
if (partStart === partEnd) return null;
|
|
3090
|
-
var part3 = key.slice(partStart, partEnd);
|
|
3091
|
-
if (!variantResolverNameSet.has(part3)) return null;
|
|
3092
|
-
parts.push(part3);
|
|
3093
|
-
start = index + 1;
|
|
3094
|
-
}
|
|
3095
|
-
return parts;
|
|
3096
|
-
}
|
|
3097
|
-
function hasNumericPrefix(value, suffixLength) {
|
|
3098
|
-
if (value.length <= suffixLength) return false;
|
|
3099
|
-
return Number.isFinite(Number(value.slice(0, value.length - suffixLength)));
|
|
3100
|
-
}
|
|
3101
|
-
function matchesVariantResolver(resolverName, value, conf, theme) {
|
|
3102
|
-
var string = typeof value === "string";
|
|
3103
|
-
var number = typeof value === "number";
|
|
3104
|
-
var rem = string && value.endsWith("rem") && hasNumericPrefix(value, 3);
|
|
3105
|
-
switch (resolverName) {
|
|
3106
|
-
case "Size":
|
|
3107
|
-
case "Space":
|
|
3108
|
-
case "Radius":
|
|
3109
|
-
case "ZIndex": return value === true || number || string || resolverName !== "Size" && (0, import_createVariable.isVariable)(value);
|
|
3110
|
-
case "Color": return value != null && value in conf.tokensParsed.color || string;
|
|
3111
|
-
case "Theme": return string && !!theme && value in theme;
|
|
3112
|
-
case "FontSize":
|
|
3113
|
-
var _conf_fontsParsed_body_size, _conf_fontsParsed_body;
|
|
3114
|
-
return value === true || !!((_conf_fontsParsed_body = conf.fontsParsed.body) === null || _conf_fontsParsed_body === void 0 ? void 0 : (_conf_fontsParsed_body_size = _conf_fontsParsed_body.size) === null || _conf_fontsParsed_body_size === void 0 ? void 0 : _conf_fontsParsed_body_size[value]) || number || rem;
|
|
3115
|
-
case "FontStyle":
|
|
3116
|
-
var _conf_fontsParsed_body_style, _conf_fontsParsed_body1;
|
|
3117
|
-
return !!((_conf_fontsParsed_body1 = conf.fontsParsed.body) === null || _conf_fontsParsed_body1 === void 0 ? void 0 : (_conf_fontsParsed_body_style = _conf_fontsParsed_body1.style) === null || _conf_fontsParsed_body_style === void 0 ? void 0 : _conf_fontsParsed_body_style[value]) || value === "normal" || value === "italic";
|
|
3118
|
-
case "FontTransform":
|
|
3119
|
-
var _conf_fontsParsed_body_transform, _conf_fontsParsed_body2;
|
|
3120
|
-
return !!((_conf_fontsParsed_body2 = conf.fontsParsed.body) === null || _conf_fontsParsed_body2 === void 0 ? void 0 : (_conf_fontsParsed_body_transform = _conf_fontsParsed_body2.transform) === null || _conf_fontsParsed_body_transform === void 0 ? void 0 : _conf_fontsParsed_body_transform[value]) || value === "none" || value === "capitalize" || value === "uppercase" || value === "lowercase";
|
|
3121
|
-
case "FontLineHeight":
|
|
3122
|
-
var _conf_fontsParsed_body_lineHeight, _conf_fontsParsed_body3;
|
|
3123
|
-
return !!((_conf_fontsParsed_body3 = conf.fontsParsed.body) === null || _conf_fontsParsed_body3 === void 0 ? void 0 : (_conf_fontsParsed_body_lineHeight = _conf_fontsParsed_body3.lineHeight) === null || _conf_fontsParsed_body_lineHeight === void 0 ? void 0 : _conf_fontsParsed_body_lineHeight[value]) || number || rem;
|
|
3124
|
-
case "FontLetterSpacing":
|
|
3125
|
-
var _conf_fontsParsed_body_letterSpacing, _conf_fontsParsed_body4;
|
|
3126
|
-
return !!((_conf_fontsParsed_body4 = conf.fontsParsed.body) === null || _conf_fontsParsed_body4 === void 0 ? void 0 : (_conf_fontsParsed_body_letterSpacing = _conf_fontsParsed_body4.letterSpacing) === null || _conf_fontsParsed_body_letterSpacing === void 0 ? void 0 : _conf_fontsParsed_body_letterSpacing[value]) || number || rem;
|
|
3127
|
-
case "number":
|
|
3128
|
-
case "string":
|
|
3129
|
-
case "boolean": return (typeof value === "undefined" ? "undefined" : _type_of(value)) === resolverName;
|
|
3130
|
-
case "any": return true;
|
|
3131
|
-
}
|
|
3132
|
-
}
|
|
3133
2539
|
|
|
3134
2540
|
//# sourceMappingURL=getSplitStyles.native.js.map
|