@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
|
@@ -43,20 +43,17 @@ function requestBorderStyleDefault(state, property, condition, identity, selecto
|
|
|
43
43
|
const target = borderStyleDefaults[property];
|
|
44
44
|
if (!target) return;
|
|
45
45
|
const requests = state.flatBorderDefaultRequests ||= [];
|
|
46
|
-
for (let index = 0; index < requests.length; index++) if (requests[index]
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
for (let index = 0; index < wrapperCount; index++) wrappers[index] = wrapperSource[wrapperStart + index];
|
|
51
|
-
}
|
|
52
|
-
requests.push({
|
|
53
|
-
property: target,
|
|
54
|
-
value: "solid",
|
|
46
|
+
for (let index = 0; index < requests.length; index++) if (requests[index][0] === target && requests[index][3] === identity) return;
|
|
47
|
+
requests.push([
|
|
48
|
+
target,
|
|
49
|
+
"solid",
|
|
55
50
|
condition,
|
|
56
51
|
identity,
|
|
57
52
|
selector,
|
|
58
|
-
|
|
59
|
-
|
|
53
|
+
wrapperSource,
|
|
54
|
+
wrapperStart,
|
|
55
|
+
wrapperCount
|
|
56
|
+
]);
|
|
60
57
|
}
|
|
61
58
|
function directStyleSignature(property, value, conditionKey = "") {
|
|
62
59
|
return `${property}${conditionKey}${String(value)}`;
|
|
@@ -72,14 +69,14 @@ function registerSlot(state, atomicKey, entries) {
|
|
|
72
69
|
const ordered = [];
|
|
73
70
|
for (let index = 0; index < entries.length; index++) {
|
|
74
71
|
const entry = entries[index];
|
|
75
|
-
let value = entry
|
|
76
|
-
if (entry
|
|
77
|
-
entry
|
|
78
|
-
const precedence = entry
|
|
72
|
+
let value = entry[1];
|
|
73
|
+
if (entry[0] === "transform" && Array.isArray(value)) value = (0, import_transformsToString.transformsToString)(value);
|
|
74
|
+
entry[1] = (0, import_normalizeValueWithProperty.normalizeValueWithProperty)(value, entry[0]);
|
|
75
|
+
const precedence = entry[2] ? Math.floor(entry[2] / 256) : -1;
|
|
79
76
|
let insertAt = ordered.length;
|
|
80
77
|
while (insertAt > 0) {
|
|
81
78
|
const before = ordered[insertAt - 1];
|
|
82
|
-
if ((before
|
|
79
|
+
if ((before[2] ? Math.floor(before[2] / 256) : -1) <= precedence) break;
|
|
83
80
|
insertAt--;
|
|
84
81
|
}
|
|
85
82
|
ordered.splice(insertAt, 0, entry);
|
|
@@ -87,51 +84,50 @@ function registerSlot(state, atomicKey, entries) {
|
|
|
87
84
|
let signature = "";
|
|
88
85
|
for (let index = 0; index < ordered.length; index++) {
|
|
89
86
|
const entry = ordered[index];
|
|
90
|
-
signature += directStyleSignature(entry
|
|
87
|
+
signature += directStyleSignature(entry[0], entry[1], entry[3]);
|
|
91
88
|
}
|
|
92
89
|
const built = (0, import_getCSSStylesAtomic.buildAtomicSlotCSS)(atomicKey, ordered, signature);
|
|
93
90
|
if (!built) return;
|
|
94
|
-
const styleObject = built
|
|
91
|
+
const styleObject = built[3] ||= [
|
|
95
92
|
atomicKey,
|
|
96
|
-
built
|
|
97
|
-
built
|
|
93
|
+
built[2],
|
|
94
|
+
built[0],
|
|
98
95
|
void 0,
|
|
99
|
-
built
|
|
96
|
+
built[1]
|
|
100
97
|
];
|
|
101
98
|
(state.flatAtomics ||= {})[atomicKey] = styleObject;
|
|
102
|
-
state.classNames[atomicKey] = built
|
|
99
|
+
state.classNames[atomicKey] = built[0];
|
|
103
100
|
}
|
|
104
|
-
const
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
101
|
+
const scratchEntry = [
|
|
102
|
+
"",
|
|
103
|
+
"",
|
|
104
|
+
0,
|
|
105
|
+
"",
|
|
106
|
+
"",
|
|
107
|
+
void 0,
|
|
108
|
+
0,
|
|
109
|
+
0
|
|
110
|
+
];
|
|
111
|
+
const singleSlot = [scratchEntry];
|
|
113
112
|
function appendSlotEntry(list, property, value, condition, identity, selector, wrapperSource, wrapperStart, wrapperCount, weak, original) {
|
|
114
|
-
for (let index = 0; index < list.length; index++) if (list[index]
|
|
113
|
+
for (let index = 0; index < list.length; index++) if (list[index][3] === identity) {
|
|
115
114
|
if (weak) return;
|
|
116
|
-
list[index]
|
|
117
|
-
list[index]
|
|
118
|
-
list[index]
|
|
115
|
+
list[index][1] = value;
|
|
116
|
+
list[index][2] = condition;
|
|
117
|
+
list[index][8] = original;
|
|
119
118
|
return;
|
|
120
119
|
}
|
|
121
|
-
|
|
122
|
-
if (wrapperSource && wrapperCount) {
|
|
123
|
-
wrappers = new Array(wrapperCount);
|
|
124
|
-
for (let index = 0; index < wrapperCount; index++) wrappers[index] = wrapperSource[wrapperStart + index];
|
|
125
|
-
}
|
|
126
|
-
list.push({
|
|
120
|
+
list.push([
|
|
127
121
|
property,
|
|
128
122
|
value,
|
|
129
123
|
condition,
|
|
130
124
|
identity,
|
|
131
125
|
selector,
|
|
132
|
-
|
|
126
|
+
wrapperSource,
|
|
127
|
+
wrapperStart,
|
|
128
|
+
wrapperCount,
|
|
133
129
|
original
|
|
134
|
-
|
|
130
|
+
]);
|
|
135
131
|
}
|
|
136
132
|
function streamAtomic(state, property, value, condition, identity, selector, wrapperSource, wrapperStart, wrapperCount, weak, original) {
|
|
137
133
|
if (!canGenerateCSS) return;
|
|
@@ -149,7 +145,7 @@ function streamAtomic(state, property, value, condition, identity, selector, wra
|
|
|
149
145
|
const atomics = direct.flatAtomics;
|
|
150
146
|
const streamed = atomics ? atomics[property] : void 0;
|
|
151
147
|
if (singleEntry) {
|
|
152
|
-
if (singleEntry
|
|
148
|
+
if (singleEntry[3] !== identity) {
|
|
153
149
|
delete singleEntries[property];
|
|
154
150
|
appendSlotEntry((direct.flatSlots ||= {})[property] = [singleEntry], property, value, condition, identity, selector, wrapperSource, wrapperStart, wrapperCount, weak, original);
|
|
155
151
|
return;
|
|
@@ -157,14 +153,16 @@ function streamAtomic(state, property, value, condition, identity, selector, wra
|
|
|
157
153
|
if (weak) return;
|
|
158
154
|
} else if (streamed !== void 0) {
|
|
159
155
|
if (identity) {
|
|
160
|
-
appendSlotEntry((direct.flatSlots ||= {})[property] = [
|
|
156
|
+
appendSlotEntry((direct.flatSlots ||= {})[property] = [[
|
|
161
157
|
property,
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
158
|
+
streamed[1],
|
|
159
|
+
0,
|
|
160
|
+
"",
|
|
161
|
+
"",
|
|
162
|
+
void 0,
|
|
163
|
+
0,
|
|
164
|
+
0
|
|
165
|
+
]], property, value, condition, identity, selector, wrapperSource, wrapperStart, wrapperCount, weak, original);
|
|
168
166
|
return;
|
|
169
167
|
}
|
|
170
168
|
if (weak) return;
|
|
@@ -176,54 +174,53 @@ function streamAtomic(state, property, value, condition, identity, selector, wra
|
|
|
176
174
|
if (!identity) {
|
|
177
175
|
const memo = (0, import_getCSSStylesAtomic.probeRawSlotIdentity)(property, value);
|
|
178
176
|
if (memo) {
|
|
179
|
-
const styleObject2 = memo
|
|
177
|
+
const styleObject2 = memo[3] ||= [
|
|
180
178
|
property,
|
|
181
|
-
memo
|
|
182
|
-
memo
|
|
179
|
+
memo[2],
|
|
180
|
+
memo[0],
|
|
183
181
|
void 0,
|
|
184
|
-
memo
|
|
182
|
+
memo[1]
|
|
185
183
|
];
|
|
186
184
|
(direct.flatAtomics ||= {})[property] = styleObject2;
|
|
187
|
-
state.classNames[property] = memo
|
|
185
|
+
state.classNames[property] = memo[0];
|
|
188
186
|
return;
|
|
189
187
|
}
|
|
190
188
|
}
|
|
191
189
|
const rawValue = value;
|
|
192
190
|
if (property === "transform" && Array.isArray(value)) value = (0, import_transformsToString.transformsToString)(value);
|
|
193
191
|
const normalized = (0, import_normalizeValueWithProperty.normalizeValueWithProperty)(value, property);
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
const built = (0, import_getCSSStylesAtomic.buildAtomicSlotCSS)(property, streamSlot, directStyleSignature(property, normalized, identity));
|
|
206
|
-
streamEntry.wrappers = void 0;
|
|
207
|
-
streamEntry.value = "";
|
|
192
|
+
scratchEntry[0] = property;
|
|
193
|
+
scratchEntry[1] = normalized;
|
|
194
|
+
scratchEntry[2] = condition;
|
|
195
|
+
scratchEntry[3] = identity;
|
|
196
|
+
scratchEntry[4] = selector;
|
|
197
|
+
scratchEntry[5] = wrapperSource;
|
|
198
|
+
scratchEntry[6] = wrapperStart;
|
|
199
|
+
scratchEntry[7] = wrapperCount;
|
|
200
|
+
const built = (0, import_getCSSStylesAtomic.buildAtomicSlotCSS)(property, singleSlot, directStyleSignature(property, normalized, identity));
|
|
201
|
+
scratchEntry[5] = void 0;
|
|
202
|
+
scratchEntry[1] = "";
|
|
208
203
|
if (!built) return;
|
|
209
204
|
if (!identity) (0, import_getCSSStylesAtomic.storeRawSlotIdentity)(property, rawValue, built);
|
|
210
|
-
if (identity) (direct.flatSingleEntries ||= {})[property] =
|
|
205
|
+
if (identity) (direct.flatSingleEntries ||= {})[property] = [
|
|
211
206
|
property,
|
|
212
|
-
|
|
207
|
+
normalized,
|
|
213
208
|
condition,
|
|
214
209
|
identity,
|
|
215
210
|
selector,
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
211
|
+
wrapperSource,
|
|
212
|
+
wrapperStart,
|
|
213
|
+
wrapperCount
|
|
214
|
+
];
|
|
215
|
+
const styleObject = built[3] ||= [
|
|
219
216
|
property,
|
|
220
|
-
built
|
|
221
|
-
built
|
|
217
|
+
built[2],
|
|
218
|
+
built[0],
|
|
222
219
|
void 0,
|
|
223
|
-
built
|
|
220
|
+
built[1]
|
|
224
221
|
];
|
|
225
222
|
(direct.flatAtomics ||= {})[property] = styleObject;
|
|
226
|
-
state.classNames[property] = built
|
|
223
|
+
state.classNames[property] = built[0];
|
|
227
224
|
}
|
|
228
225
|
function completeStreamingCSS(state) {
|
|
229
226
|
if (!canGenerateCSS) return;
|
|
@@ -235,10 +232,10 @@ function completeStreamingCSS(state) {
|
|
|
235
232
|
direct.flatBorderDefaultRequests = void 0;
|
|
236
233
|
for (let index = 0; index < requests.length; index++) {
|
|
237
234
|
const request = requests[index];
|
|
238
|
-
const target = request
|
|
235
|
+
const target = request[0];
|
|
239
236
|
const targetSingle = singleEntries ? singleEntries[target] : void 0;
|
|
240
237
|
if (targetSingle) {
|
|
241
|
-
if (targetSingle
|
|
238
|
+
if (targetSingle[3] === request[3]) continue;
|
|
242
239
|
delete singleEntries[target];
|
|
243
240
|
((direct.flatSlots ||= {})[target] = [targetSingle]).push(request);
|
|
244
241
|
continue;
|
|
@@ -246,7 +243,7 @@ function completeStreamingCSS(state) {
|
|
|
246
243
|
const slot = direct.flatSlots ? direct.flatSlots[target] : void 0;
|
|
247
244
|
if (slot) {
|
|
248
245
|
let covered = false;
|
|
249
|
-
for (let t = 0; t < slot.length; t++) if (!slot[t]
|
|
246
|
+
for (let t = 0; t < slot.length; t++) if (!slot[t][2] || slot[t][3] === request[3]) {
|
|
250
247
|
covered = true;
|
|
251
248
|
break;
|
|
252
249
|
}
|
|
@@ -261,14 +258,16 @@ function completeStreamingCSS(state) {
|
|
|
261
258
|
if (cssMode && state.transformAccumulator) {
|
|
262
259
|
const transform = (0, import_runtime.finalizeTransformAccumulator)(state.transformAccumulator);
|
|
263
260
|
state.transformAccumulator = void 0;
|
|
264
|
-
const accumulated =
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
261
|
+
const accumulated = [
|
|
262
|
+
"transform",
|
|
263
|
+
Array.isArray(transform) ? (0, import_transformsToString.transformsToString)(transform) : transform,
|
|
264
|
+
0,
|
|
265
|
+
"",
|
|
266
|
+
"",
|
|
267
|
+
void 0,
|
|
268
|
+
0,
|
|
269
|
+
0
|
|
270
|
+
];
|
|
272
271
|
const slot = direct.flatSlots ? direct.flatSlots.transform : void 0;
|
|
273
272
|
const transformSingle = singleEntries ? singleEntries.transform : void 0;
|
|
274
273
|
if (slot) slot.unshift(accumulated);
|
|
@@ -308,30 +307,28 @@ function flushDirectStyles(state, clear = false) {
|
|
|
308
307
|
}
|
|
309
308
|
if (clear) direct.flatAtomics = void 0;
|
|
310
309
|
}
|
|
311
|
-
const compositionEntry = {
|
|
312
|
-
property: "",
|
|
313
|
-
value: "",
|
|
314
|
-
condition: 0,
|
|
315
|
-
identity: "",
|
|
316
|
-
selector: "",
|
|
317
|
-
wrappers: void 0
|
|
318
|
-
};
|
|
319
310
|
function addComposition(state, property) {
|
|
320
311
|
if (!canGenerateCSS || state.classNames[property]) return;
|
|
321
312
|
const value = property === "translate" ? "var(--t-x, 0px) var(--t-y, 0px)" : "var(--t-scale-x, 1) var(--t-scale-y, 1)";
|
|
322
313
|
const defaults = property === "translate" ? "--t-x:0px;--t-y:0px" : "--t-scale-x:1;--t-scale-y:1";
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
314
|
+
scratchEntry[0] = property;
|
|
315
|
+
scratchEntry[1] = value;
|
|
316
|
+
scratchEntry[2] = 0;
|
|
317
|
+
scratchEntry[3] = "";
|
|
318
|
+
scratchEntry[4] = "";
|
|
319
|
+
scratchEntry[5] = void 0;
|
|
320
|
+
scratchEntry[6] = 0;
|
|
321
|
+
scratchEntry[7] = 0;
|
|
322
|
+
const built = (0, import_getCSSStylesAtomic.buildAtomicSlotCSS)(property, singleSlot, directStyleSignature(property, value, ""));
|
|
326
323
|
if (!built) return;
|
|
327
|
-
const identifier = built
|
|
328
|
-
const rules = built.
|
|
324
|
+
const identifier = built[0];
|
|
325
|
+
const rules = built[1].slice();
|
|
329
326
|
rules.unshift(`:where(.${identifier}){${defaults}}`);
|
|
330
327
|
if ((0, import_insertStyleRule.shouldInsertStyleRules)(identifier)) {
|
|
331
328
|
(0, import_insertStyleRule.updateRules)(identifier, rules);
|
|
332
329
|
state.flatRulesToInsert[identifier] = [
|
|
333
330
|
property,
|
|
334
|
-
built
|
|
331
|
+
built[2],
|
|
335
332
|
identifier,
|
|
336
333
|
void 0,
|
|
337
334
|
rules
|
|
@@ -43,10 +43,8 @@ function formatDiagnosticValue(value, depth = 0, seen = /* @__PURE__ */ new Weak
|
|
|
43
43
|
}
|
|
44
44
|
const keys = [];
|
|
45
45
|
for (const key in value) {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
if (keys.length === 6) break;
|
|
49
|
-
}
|
|
46
|
+
keys.push(key);
|
|
47
|
+
if (keys.length === 6) break;
|
|
50
48
|
}
|
|
51
49
|
const hasMore = keys.length === 6;
|
|
52
50
|
if (hasMore) keys.pop();
|
|
@@ -52,10 +52,8 @@ function formatDiagnosticValue(value) {
|
|
|
52
52
|
}
|
|
53
53
|
var keys = [];
|
|
54
54
|
for (var key in value) {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
if (keys.length === 6) break;
|
|
58
|
-
}
|
|
55
|
+
keys.push(key);
|
|
56
|
+
if (keys.length === 6) break;
|
|
59
57
|
}
|
|
60
58
|
var hasMore = keys.length === 6;
|
|
61
59
|
if (hasMore) keys.pop();
|
|
@@ -52,10 +52,8 @@ function formatDiagnosticValue(value) {
|
|
|
52
52
|
}
|
|
53
53
|
var keys = [];
|
|
54
54
|
for (var key in value) {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
if (keys.length === 6) break;
|
|
58
|
-
}
|
|
55
|
+
keys.push(key);
|
|
56
|
+
if (keys.length === 6) break;
|
|
59
57
|
}
|
|
60
58
|
var hasMore = keys.length === 6;
|
|
61
59
|
if (hasMore) keys.pop();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formatDiagnostic.native.js","names":[],"sources":["cjs/helpers/formatDiagnostic.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar formatDiagnostic_exports = {};\n__export(formatDiagnostic_exports, {\n formatDiagnostic: () => formatDiagnostic\n});\nmodule.exports = __toCommonJS(formatDiagnostic_exports);\nfunction _type_of(obj) {\n \"@swc/helpers - typeof\";\n return obj && typeof Symbol !== \"undefined\" && obj.constructor === Symbol ? \"symbol\" : typeof obj;\n}\nvar maxDiagnosticValueLength = 160;\nfunction formatDiagnosticValue(value) {\n var depth = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, seen = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : /* @__PURE__ */ new WeakSet();\n if (typeof value === \"string\") {\n var output = value.length > maxDiagnosticValueLength ? `${value.slice(0, maxDiagnosticValueLength - 1)}\\u2026` : value;\n return JSON.stringify(output);\n }\n if (value == null || typeof value === \"number\" || typeof value === \"boolean\") {\n return String(value);\n }\n if ((typeof value === \"undefined\" ? \"undefined\" : _type_of(value)) === \"bigint\") return `${value}n`;\n if (typeof value === \"function\") return `[Function ${value.name || \"anonymous\"}]`;\n if ((typeof value === \"undefined\" ? \"undefined\" : _type_of(value)) !== \"object\") return String(value);\n if (seen.has(value)) return \"[Circular]\";\n if (depth === 2) return Array.isArray(value) ? \"[Array]\" : \"[Object]\";\n seen.add(value);\n if (Array.isArray(value)) {\n var items = value.slice(0, 5).map(function(item) {\n return formatDiagnosticValue(item, depth + 1, seen);\n });\n if (value.length > 5) items.push(`\\u2026 ${value.length - 5} more`);\n return `[${items.join(\", \")}]`;\n }\n var keys = [];\n for (var key in value) {\n
|
|
1
|
+
{"version":3,"file":"formatDiagnostic.native.js","names":[],"sources":["cjs/helpers/formatDiagnostic.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar formatDiagnostic_exports = {};\n__export(formatDiagnostic_exports, {\n formatDiagnostic: () => formatDiagnostic\n});\nmodule.exports = __toCommonJS(formatDiagnostic_exports);\nfunction _type_of(obj) {\n \"@swc/helpers - typeof\";\n return obj && typeof Symbol !== \"undefined\" && obj.constructor === Symbol ? \"symbol\" : typeof obj;\n}\nvar maxDiagnosticValueLength = 160;\nfunction formatDiagnosticValue(value) {\n var depth = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, seen = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : /* @__PURE__ */ new WeakSet();\n if (typeof value === \"string\") {\n var output = value.length > maxDiagnosticValueLength ? `${value.slice(0, maxDiagnosticValueLength - 1)}\\u2026` : value;\n return JSON.stringify(output);\n }\n if (value == null || typeof value === \"number\" || typeof value === \"boolean\") {\n return String(value);\n }\n if ((typeof value === \"undefined\" ? \"undefined\" : _type_of(value)) === \"bigint\") return `${value}n`;\n if (typeof value === \"function\") return `[Function ${value.name || \"anonymous\"}]`;\n if ((typeof value === \"undefined\" ? \"undefined\" : _type_of(value)) !== \"object\") return String(value);\n if (seen.has(value)) return \"[Circular]\";\n if (depth === 2) return Array.isArray(value) ? \"[Array]\" : \"[Object]\";\n seen.add(value);\n if (Array.isArray(value)) {\n var items = value.slice(0, 5).map(function(item) {\n return formatDiagnosticValue(item, depth + 1, seen);\n });\n if (value.length > 5) items.push(`\\u2026 ${value.length - 5} more`);\n return `[${items.join(\", \")}]`;\n }\n var keys = [];\n for (var key in value) {\n keys.push(key);\n if (keys.length === 6) break;\n }\n var hasMore = keys.length === 6;\n if (hasMore) keys.pop();\n var items1 = keys.map(function(key2) {\n try {\n return `${key2}: ${formatDiagnosticValue(value[key2], depth + 1, seen)}`;\n } catch (e) {\n return `${key2}: [Unavailable]`;\n }\n });\n if (hasMore) items1.push(\"\\u2026 more\");\n return `{ ${items1.join(\", \")} }`;\n}\nfunction formatDiagnostic(code, component, message, action, prop, received) {\n if (process.env.NODE_ENV === \"production\") {\n return `${code}: ${message}`;\n }\n var formattedValue = prop ? formatDiagnosticValue(received) : \"\";\n var boundedValue = formattedValue.length > maxDiagnosticValueLength ? `${formattedValue.slice(0, maxDiagnosticValueLength - 1)}\\u2026` : formattedValue;\n var value = prop ? ` Received ${prop}=${boundedValue}.` : \"\";\n return `${code} ${component}: ${message}.${value} ${action}`;\n}\n//# sourceMappingURL=formatDiagnostic.js.map\n"],"mappings":"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"}
|
|
@@ -145,24 +145,24 @@ function buildAtomicSlotCSS(atomicKey, entries, signature) {
|
|
|
145
145
|
}
|
|
146
146
|
shortProp ||= "x";
|
|
147
147
|
let identifier = `_${shortProp}-${hash}`;
|
|
148
|
-
if (atomicKey === "pointerEvents" && entries.length === 1 && !entries[0]
|
|
149
|
-
const value = entries[0]
|
|
148
|
+
if (atomicKey === "pointerEvents" && entries.length === 1 && !entries[0][2]) {
|
|
149
|
+
const value = entries[0][1];
|
|
150
150
|
if (value === "box-none") identifier = "_pe-boxnone";
|
|
151
151
|
else if (value === "box-only") identifier = "_pe-boxonly";
|
|
152
152
|
}
|
|
153
153
|
const rules = [];
|
|
154
154
|
let lastValue;
|
|
155
155
|
for (const entry of entries) {
|
|
156
|
-
const value = entry
|
|
156
|
+
const value = entry[1];
|
|
157
157
|
lastValue = value;
|
|
158
|
-
const entryRules = createAtomicRules(identifier, entry
|
|
158
|
+
const entryRules = createAtomicRules(identifier, entry[0], value, entry[4], entry[5], 2, slotClassRepetitions(atomicKey, entry[2]), entry[6], entry[7]);
|
|
159
159
|
for (const rule of entryRules) rules.push(rule);
|
|
160
160
|
}
|
|
161
|
-
const built =
|
|
161
|
+
const built = [
|
|
162
162
|
identifier,
|
|
163
163
|
rules,
|
|
164
|
-
|
|
165
|
-
|
|
164
|
+
lastValue
|
|
165
|
+
];
|
|
166
166
|
if (slotIdentitiesSize > 1e4) {
|
|
167
167
|
slotIdentities.clear();
|
|
168
168
|
slotIdentitiesSize = 0;
|
|
@@ -192,7 +192,7 @@ const hyphenateStyleName = (key) => {
|
|
|
192
192
|
hcache[key] = val;
|
|
193
193
|
return val;
|
|
194
194
|
};
|
|
195
|
-
function createAtomicRules(identifier, property, value, condition = "", wrappers, direct = false, classRepetitions = 1) {
|
|
195
|
+
function createAtomicRules(identifier, property, value, condition = "", wrappers, direct = false, classRepetitions = 1, wrapperStart = 0, wrapperCount = wrappers?.length || 0) {
|
|
196
196
|
const repetitions = direct && classRepetitions > 1 ? classRepetitions : !direct && property in import_helpers.cssShorthandLonghands ? 2 : 1;
|
|
197
197
|
const cls = `.${identifier}`.repeat(repetitions);
|
|
198
198
|
const selector = `${cls}${condition}`;
|
|
@@ -234,10 +234,10 @@ function createAtomicRules(identifier, property, value, condition = "", wrappers
|
|
|
234
234
|
break;
|
|
235
235
|
}
|
|
236
236
|
}
|
|
237
|
-
if (wrappers
|
|
237
|
+
if (wrappers && wrapperCount) {
|
|
238
238
|
for (let ruleIndex = 0; ruleIndex < rules.length; ruleIndex++) {
|
|
239
239
|
let rule = rules[ruleIndex];
|
|
240
|
-
for (let index =
|
|
240
|
+
for (let index = wrapperStart + wrapperCount - 1; index >= wrapperStart; index--) {
|
|
241
241
|
rule = `${wrappers[index]} {${rule}}`;
|
|
242
242
|
}
|
|
243
243
|
rules[ruleIndex] = rule;
|