@yahoo/uds-v5-wip 1.61.0 → 1.62.0
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/config/dist/AssetGroup.d.ts +75 -0
- package/dist/config/dist/AssetGroup.js +114 -0
- package/dist/config/dist/Component.d.ts +309 -0
- package/dist/config/dist/Component.js +897 -0
- package/dist/config/dist/ComponentGroup.d.ts +21 -0
- package/dist/config/dist/ComponentGroup.js +46 -0
- package/dist/config/dist/CompositeStyle.d.ts +28 -0
- package/dist/config/dist/CompositeStyle.js +52 -0
- package/dist/config/dist/Config.d.ts +422 -0
- package/dist/config/dist/Config.js +1426 -0
- package/dist/config/dist/Mode.d.ts +42 -0
- package/dist/config/dist/Mode.js +81 -0
- package/dist/config/dist/Modifier.d.ts +52 -0
- package/dist/config/dist/Modifier.js +97 -0
- package/dist/config/dist/MotionDef.d.ts +50 -0
- package/dist/config/dist/MotionDef.js +97 -0
- package/dist/config/dist/Props.d.ts +235 -126
- package/dist/config/dist/Provider.d.ts +21 -0
- package/dist/config/dist/Provider.js +14 -0
- package/dist/config/dist/StyleProp.d.ts +113 -0
- package/dist/config/dist/StyleProp.js +197 -0
- package/dist/config/dist/Token.d.ts +56 -0
- package/dist/config/dist/Token.js +112 -0
- package/dist/config/dist/TokenGroup.d.ts +33 -0
- package/dist/config/dist/TokenGroup.js +68 -0
- package/dist/config/dist/asset-kind.d.ts +56 -0
- package/dist/config/dist/asset-kind.js +29 -0
- package/dist/config/dist/brands.d.ts +31 -0
- package/dist/config/dist/brands.js +20 -0
- package/dist/config/dist/captureCallerPath.d.ts +49 -0
- package/dist/config/dist/captureCallerPath.js +95 -0
- package/dist/config/dist/colorExpressions.d.ts +132 -0
- package/dist/config/dist/colorExpressions.js +148 -0
- package/dist/config/dist/defineAssetGroup.d.ts +158 -0
- package/dist/config/dist/defineAssetGroup.js +263 -0
- package/dist/config/dist/defineProvider.d.ts +30 -0
- package/dist/config/dist/defineProvider.js +60 -0
- package/dist/config/dist/element-marker.d.ts +55 -0
- package/dist/config/dist/element-marker.js +113 -0
- package/dist/config/dist/entity-utils.d.ts +27 -0
- package/dist/config/dist/entity-utils.js +105 -0
- package/dist/config/dist/factories.d.ts +707 -0
- package/dist/config/dist/factories.js +393 -0
- package/dist/config/dist/foreign-component-name.js +42 -0
- package/dist/config/dist/index.d.ts +30 -21
- package/dist/config/dist/index.js +26 -14
- package/dist/config/dist/interpolate.d.ts +21 -0
- package/dist/config/dist/interpolate.js +10 -0
- package/dist/config/dist/markers.d.ts +218 -0
- package/dist/config/dist/markers.js +67 -0
- package/dist/config/dist/refs.d.ts +143 -69
- package/dist/config/dist/refs.js +95 -113
- package/dist/config/dist/token-override-rows.d.ts +67 -0
- package/dist/config/dist/token-override-rows.js +223 -0
- package/dist/config/dist/tokenValueType.js +138 -0
- package/dist/config/dist/types/css-properties.d.ts +132 -122
- package/dist/config/dist/types/css-property-keywords.d.ts +157 -0
- package/dist/config/dist/types/css-property-keywords.js +616 -0
- package/dist/config/dist/types/css-values.d.ts +18 -16
- package/dist/config/dist/types.d.ts +688 -66
- package/dist/config/dist/units.d.ts +15 -0
- package/dist/config/dist/units.js +16 -0
- package/dist/config.d.ts +31 -22
- package/dist/config.js +28 -16
- package/dist/loader/dist/loader/artifacts.js +26 -9
- package/dist/loader/dist/loader.d.ts +11 -23
- package/dist/loader/dist/loader.js +54 -99
- package/dist/loader/dist/next.js +3 -3
- package/dist/loader/dist/transform-runner.js +1 -8
- package/dist/loader/dist/unplugin.d.ts +2 -2
- package/dist/loader/dist/unplugin.js +2 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/utils/dist/index.js +1 -0
- package/dist/utils/dist/motion-utils/resolveMotionState.d.ts +35 -0
- package/dist/utils/dist/motion-utils/resolveMotionState.js +33 -0
- package/dist/utils/dist/string-utils/componentClassName.d.ts +41 -8
- package/dist/utils/dist/string-utils/componentClassName.js +48 -11
- package/dist/utils.d.ts +3 -2
- package/dist/utils.js +3 -2
- package/package.json +3 -3
- package/dist/codegen/dist/loader/getLoaderArtifacts.js +0 -2
- package/dist/config/dist/bindRender.d.ts +0 -16
- package/dist/config/dist/bindRender.js +0 -310
- package/dist/config/dist/className.d.ts +0 -54
- package/dist/config/dist/className.js +0 -77
- package/dist/config/dist/component-config.d.ts +0 -862
- package/dist/config/dist/component-config.js +0 -163
- package/dist/config/dist/component-refs.d.ts +0 -121
- package/dist/config/dist/createConfig.d.ts +0 -456
- package/dist/config/dist/createConfig.js +0 -503
- package/dist/config/dist/createStyler.d.ts +0 -35
- package/dist/config/dist/createStyler.js +0 -93
- package/dist/config/dist/defineComponent.d.ts +0 -317
- package/dist/config/dist/defineComponent.js +0 -264
- package/dist/config/dist/defineCompositeStyle.d.ts +0 -93
- package/dist/config/dist/defineCompositeStyle.js +0 -18
- package/dist/config/dist/defineMotionConfig.d.ts +0 -152
- package/dist/config/dist/definePreview.d.ts +0 -45
- package/dist/config/dist/definePreview.js +0 -35
- package/dist/config/dist/defineStyleProp.d.ts +0 -289
- package/dist/config/dist/defineStyleProp.js +0 -61
- package/dist/config/dist/merge-utils.js +0 -51
- package/dist/config/dist/propertyAcceptedTypes.d.ts +0 -19
- package/dist/config/dist/propertyAcceptedTypes.js +0 -220
- package/dist/config/dist/resolveCompoundProps.d.ts +0 -65
- package/dist/config/dist/resolveCompoundProps.js +0 -120
- package/dist/config/dist/resolveStyleProp.d.ts +0 -157
- package/dist/config/dist/resolveStyleProp.js +0 -260
- package/dist/config/dist/runtime-registry.js +0 -37
- package/dist/config/dist/serialize.d.ts +0 -47
- package/dist/config/dist/serialize.js +0 -111
- package/dist/config/dist/sniffTokenType.d.ts +0 -7
- package/dist/config/dist/sniffTokenType.js +0 -67
- package/dist/config/dist/style-prop-runtime.d.ts +0 -75
- package/dist/config/dist/style-prop-runtime.js +0 -390
- package/dist/loader/dist/loader/internal-meta.js +0 -59
- package/dist/loader/dist/loader/lower-new-api-primitive.js +0 -252
|
@@ -1,252 +0,0 @@
|
|
|
1
|
-
//#region ../loader/dist/loader/lower-new-api-primitive.js
|
|
2
|
-
/**
|
|
3
|
-
* Convert a token name to its class-name-safe form. Mirrors
|
|
4
|
-
* `safeTokenName` from `@uds/utils`: `.` → `_`, `/` → `-`. Inlined
|
|
5
|
-
* here so the loader stays free of cross-package runtime imports for
|
|
6
|
-
* a one-line transform.
|
|
7
|
-
*
|
|
8
|
-
* toSafeTokenName('1.5') // → '1_5'
|
|
9
|
-
* toSafeTokenName('always/black') // → 'always-black'
|
|
10
|
-
* toSafeTokenName('brand') // → 'brand'
|
|
11
|
-
*/
|
|
12
|
-
function toSafeTokenName(value) {
|
|
13
|
-
return value.replace(/\./g, "_").replace(/\//g, "-");
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Build the className a binding emits for a given value. Mirrors the
|
|
17
|
-
* codegen convention in `packages/codegen/src/css/prepareCss.ts`:
|
|
18
|
-
*
|
|
19
|
-
* - `classPrefix === ''` → value IS the class.
|
|
20
|
-
* - Bracketed arbitrary values (`'[#abc]'`) → preserved verbatim
|
|
21
|
-
* (`bg-[#abc]`).
|
|
22
|
-
* - Boolean `true` (passed in as the string `'true'`) → bare
|
|
23
|
-
* `classPrefix` (`<Box border>` / `<Box border={true}>` →
|
|
24
|
-
* `'border'`, not `'border-true'`).
|
|
25
|
-
* - Blessed token / literal / alias (in `binding.blessedValues`) →
|
|
26
|
-
* `${classPrefix}-${value}`.
|
|
27
|
-
* - Otherwise, if the prop accepts arbitrary values
|
|
28
|
-
* (`binding.acceptsArbitrary`) → `${classPrefix}-[value]`
|
|
29
|
-
* (auto-bracket so the consumer can write `fontSize="0.8125rem"`
|
|
30
|
-
* instead of `fontSize="[0.8125rem]"`).
|
|
31
|
-
* - Otherwise (when blessed/arbitrary metadata is absent — test
|
|
32
|
-
* fixtures) fall back to `${classPrefix}-${value}`.
|
|
33
|
-
*
|
|
34
|
-
* Returns `undefined` when no class should be emitted — caller drops
|
|
35
|
-
* the contribution. Boolean `false` lands here.
|
|
36
|
-
*/
|
|
37
|
-
function buildClassName(binding, value) {
|
|
38
|
-
if (value === "false") return void 0;
|
|
39
|
-
if (value === "true") return binding.classPrefix || void 0;
|
|
40
|
-
const isNoPrefix = binding.classPrefix === "";
|
|
41
|
-
if (value.startsWith("[") && value.endsWith("]")) {
|
|
42
|
-
if (isNoPrefix) return value.slice(1, -1);
|
|
43
|
-
return `${binding.classPrefix}-${value}`;
|
|
44
|
-
}
|
|
45
|
-
if (isNoPrefix) return value;
|
|
46
|
-
if (!(binding.blessedValues !== void 0 || binding.acceptsArbitrary !== void 0)) return `${binding.classPrefix}-${toSafeTokenName(value)}`;
|
|
47
|
-
if (binding.blessedValues?.includes(value)) return `${binding.classPrefix}-${toSafeTokenName(value)}`;
|
|
48
|
-
if (binding.acceptsArbitrary) return `${binding.classPrefix}-[${value}]`;
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* Read a JS expression node as a literal string when statically
|
|
52
|
-
* resolvable. Mirrors `readStaticString` but operates on a bare
|
|
53
|
-
* expression (used by the branch-compiler below to drill into
|
|
54
|
-
* ternary / `&&` branches that aren't wrapped in JSX containers).
|
|
55
|
-
*
|
|
56
|
-
* Returns `undefined` for any non-literal form.
|
|
57
|
-
*/
|
|
58
|
-
function readStaticStringFromExpression(expr) {
|
|
59
|
-
if (!expr) return void 0;
|
|
60
|
-
if (expr.type === "StringLiteral") return expr.value;
|
|
61
|
-
if (expr.type === "NumericLiteral") return String(expr.value);
|
|
62
|
-
if (expr.type === "BooleanLiteral") return String(expr.value);
|
|
63
|
-
if (expr.type === "TemplateLiteral" && expr.expressions.length === 0 && expr.quasis.length === 1) return expr.quasis[0].value.cooked ?? expr.quasis[0].value.raw;
|
|
64
|
-
if (expr.type === "Identifier" && expr.name === "undefined") return "";
|
|
65
|
-
if (expr.type === "NullLiteral") return "";
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* Try to compile a dynamic JSX expression into a className expression
|
|
69
|
-
* with pre-resolved per-branch class names. Mirrors the legacy
|
|
70
|
-
* `tryCompileStaticBranchExpression` in `style-transform.ts` so the
|
|
71
|
-
* new-API lowering matches existing behavior for the common ternary /
|
|
72
|
-
* `&&` patterns:
|
|
73
|
-
*
|
|
74
|
-
* bg={isActive ? 'primary' : undefined}
|
|
75
|
-
* → isActive ? 'bg-primary' : ''
|
|
76
|
-
*
|
|
77
|
-
* color={isActive && 'on-primary'}
|
|
78
|
-
* → isActive && 'color-on-primary'
|
|
79
|
-
*
|
|
80
|
-
* Returns `null` when the expression isn't a statically-resolvable
|
|
81
|
-
* branch shape — caller bails on lowering for that prop. (Variables,
|
|
82
|
-
* function calls, member access of dynamic values: those need runtime
|
|
83
|
-
* resolution.)
|
|
84
|
-
*/
|
|
85
|
-
function tryCompileBranchClassExpression(expr, binding, t) {
|
|
86
|
-
if (expr.type === "ConditionalExpression") {
|
|
87
|
-
const consequentValue = readStaticStringFromExpression(expr.consequent);
|
|
88
|
-
const alternateValue = readStaticStringFromExpression(expr.alternate);
|
|
89
|
-
const compileLeafValue = (value) => value === "" ? "" : buildClassName(binding, value) ?? "";
|
|
90
|
-
const compiledConsequent = consequentValue !== void 0 ? t.stringLiteral(compileLeafValue(consequentValue)) : tryCompileBranchClassExpression(expr.consequent, binding, t);
|
|
91
|
-
const compiledAlternate = alternateValue !== void 0 ? t.stringLiteral(compileLeafValue(alternateValue)) : tryCompileBranchClassExpression(expr.alternate, binding, t);
|
|
92
|
-
if (compiledConsequent && compiledAlternate) return t.conditionalExpression(t.cloneNode(expr.test), compiledConsequent, compiledAlternate);
|
|
93
|
-
return null;
|
|
94
|
-
}
|
|
95
|
-
if (expr.type === "LogicalExpression" && expr.operator === "&&") {
|
|
96
|
-
const rightValue = readStaticStringFromExpression(expr.right);
|
|
97
|
-
if (rightValue !== void 0) {
|
|
98
|
-
const className = buildClassName(binding, rightValue) ?? "";
|
|
99
|
-
return t.logicalExpression("&&", t.cloneNode(expr.left), t.stringLiteral(className));
|
|
100
|
-
}
|
|
101
|
-
return null;
|
|
102
|
-
}
|
|
103
|
-
return null;
|
|
104
|
-
}
|
|
105
|
-
/**
|
|
106
|
-
* Read a JSX attribute value as a literal string when statically
|
|
107
|
-
* resolvable. Handles:
|
|
108
|
-
*
|
|
109
|
-
* - `attr="x"` → `"x"`
|
|
110
|
-
* - `attr={"x"}` / `attr={\`x\`}` (no interpolations) → `"x"`
|
|
111
|
-
* - `attr={2}` (numeric literal) → `"2"`
|
|
112
|
-
* - `attr={true}` / `attr={false}` (boolean literal) → `"true"` / `"false"`
|
|
113
|
-
* - `attr` with no value (boolean prop shorthand) → `"true"`
|
|
114
|
-
*
|
|
115
|
-
* Returns `undefined` for any dynamic form so the caller can bail.
|
|
116
|
-
*/
|
|
117
|
-
function readStaticString(value) {
|
|
118
|
-
if (!value) return "true";
|
|
119
|
-
if (value.type === "StringLiteral") return value.value;
|
|
120
|
-
if (value.type === "JSXExpressionContainer") {
|
|
121
|
-
const expr = value.expression;
|
|
122
|
-
if (expr.type === "StringLiteral") return expr.value;
|
|
123
|
-
if (expr.type === "NumericLiteral") return String(expr.value);
|
|
124
|
-
if (expr.type === "BooleanLiteral") return String(expr.value);
|
|
125
|
-
if (expr.type === "TemplateLiteral" && expr.expressions.length === 0 && expr.quasis.length === 1) return expr.quasis[0].value.cooked ?? expr.quasis[0].value.raw;
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
/**
|
|
129
|
-
* Lower a JSX element of a new-API primitive component. Returns `true`
|
|
130
|
-
* when the AST was mutated (lowered); `false` when the call site can't
|
|
131
|
-
* be statically lowered and the runtime path should take over.
|
|
132
|
-
*
|
|
133
|
-
* `t` is the `@babel/types` namespace — passed in so the helper stays
|
|
134
|
-
* free of direct import dependencies on Babel internals (the loader
|
|
135
|
-
* already imports them and threads them through).
|
|
136
|
-
*
|
|
137
|
-
* `openingElement` and (optional) `closingElement` are mutated in
|
|
138
|
-
* place on success.
|
|
139
|
-
*/
|
|
140
|
-
function lowerNewApiPrimitiveJsx(openingElement, closingElement, entry, t) {
|
|
141
|
-
let tag = entry.tag;
|
|
142
|
-
const classNames = [...entry.defaultClassNames];
|
|
143
|
-
const dynamicClassExprs = [];
|
|
144
|
-
const passthroughAttrs = [];
|
|
145
|
-
let existingClassName = null;
|
|
146
|
-
for (const attr of openingElement.attributes ?? []) {
|
|
147
|
-
if (attr.type === "JSXSpreadAttribute") return false;
|
|
148
|
-
const attrName = attr.name?.type === "JSXIdentifier" ? attr.name.name : void 0;
|
|
149
|
-
if (!attrName) return false;
|
|
150
|
-
if (attrName === "as") {
|
|
151
|
-
const tagValue = readStaticString(attr.value);
|
|
152
|
-
if (tagValue === void 0) return false;
|
|
153
|
-
tag = tagValue;
|
|
154
|
-
continue;
|
|
155
|
-
}
|
|
156
|
-
if (attrName === "className") {
|
|
157
|
-
existingClassName = attr.value;
|
|
158
|
-
continue;
|
|
159
|
-
}
|
|
160
|
-
const binding = entry.propBindings[attrName];
|
|
161
|
-
if (binding) {
|
|
162
|
-
const staticValue = readStaticString(attr.value);
|
|
163
|
-
if (staticValue !== void 0) {
|
|
164
|
-
const className = buildClassName(binding, staticValue);
|
|
165
|
-
if (className !== void 0) classNames.push(className);
|
|
166
|
-
continue;
|
|
167
|
-
}
|
|
168
|
-
if (attr.value?.type === "JSXExpressionContainer") {
|
|
169
|
-
const compiled = tryCompileBranchClassExpression(attr.value.expression, binding, t);
|
|
170
|
-
if (compiled) {
|
|
171
|
-
dynamicClassExprs.push(compiled);
|
|
172
|
-
continue;
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
return false;
|
|
176
|
-
}
|
|
177
|
-
if (attrName.startsWith("_")) {
|
|
178
|
-
const variantPrefix = entry.modifiersTwMap?.[attrName];
|
|
179
|
-
if (!variantPrefix) continue;
|
|
180
|
-
const objectExpr = attr.value?.type === "JSXExpressionContainer" ? attr.value.expression : void 0;
|
|
181
|
-
if (!objectExpr || objectExpr.type !== "ObjectExpression") return false;
|
|
182
|
-
let bailed = false;
|
|
183
|
-
for (const property of objectExpr.properties) {
|
|
184
|
-
if (property.type !== "ObjectProperty" || property.computed) {
|
|
185
|
-
bailed = true;
|
|
186
|
-
break;
|
|
187
|
-
}
|
|
188
|
-
const key = property.key?.type === "Identifier" ? property.key.name : property.key?.type === "StringLiteral" ? property.key.value : void 0;
|
|
189
|
-
if (!key) {
|
|
190
|
-
bailed = true;
|
|
191
|
-
break;
|
|
192
|
-
}
|
|
193
|
-
const value = readStaticString(property.value);
|
|
194
|
-
if (value === void 0) {
|
|
195
|
-
bailed = true;
|
|
196
|
-
break;
|
|
197
|
-
}
|
|
198
|
-
const innerBinding = entry.propBindings[key];
|
|
199
|
-
if (!innerBinding) {
|
|
200
|
-
bailed = true;
|
|
201
|
-
break;
|
|
202
|
-
}
|
|
203
|
-
const innerClass = buildClassName(innerBinding, value);
|
|
204
|
-
if (innerClass !== void 0) classNames.push(`${variantPrefix}${innerClass}`);
|
|
205
|
-
}
|
|
206
|
-
if (bailed) return false;
|
|
207
|
-
continue;
|
|
208
|
-
}
|
|
209
|
-
passthroughAttrs.push(attr);
|
|
210
|
-
}
|
|
211
|
-
const boundClassName = classNames.join(" ");
|
|
212
|
-
let classNameAttr = null;
|
|
213
|
-
if (dynamicClassExprs.length > 0) {
|
|
214
|
-
const parts = [];
|
|
215
|
-
if (boundClassName.length > 0) parts.push(t.stringLiteral(boundClassName));
|
|
216
|
-
for (const expr of dynamicClassExprs) parts.push(expr);
|
|
217
|
-
if (existingClassName !== null) {
|
|
218
|
-
if (existingClassName.type === "StringLiteral") parts.push(t.stringLiteral(existingClassName.value));
|
|
219
|
-
else if (existingClassName.type === "JSXExpressionContainer") parts.push(t.cloneNode(existingClassName.expression));
|
|
220
|
-
}
|
|
221
|
-
const joinExpr = t.callExpression(t.memberExpression(t.callExpression(t.memberExpression(t.arrayExpression(parts), t.identifier("filter")), [t.identifier("Boolean")]), t.identifier("join")), [t.stringLiteral(" ")]);
|
|
222
|
-
classNameAttr = t.jsxAttribute(t.jsxIdentifier("className"), t.jsxExpressionContainer(joinExpr));
|
|
223
|
-
} else if (existingClassName === null && boundClassName.length > 0) classNameAttr = t.jsxAttribute(t.jsxIdentifier("className"), t.stringLiteral(boundClassName));
|
|
224
|
-
else if (existingClassName !== null) if (existingClassName.type === "StringLiteral") {
|
|
225
|
-
const merged = boundClassName ? `${existingClassName.value} ${boundClassName}` : existingClassName.value;
|
|
226
|
-
classNameAttr = t.jsxAttribute(t.jsxIdentifier("className"), t.stringLiteral(merged));
|
|
227
|
-
} else if (existingClassName.type === "JSXExpressionContainer" && existingClassName.expression.type === "StringLiteral") {
|
|
228
|
-
const merged = boundClassName ? `${existingClassName.expression.value} ${boundClassName}` : existingClassName.expression.value;
|
|
229
|
-
classNameAttr = t.jsxAttribute(t.jsxIdentifier("className"), t.stringLiteral(merged));
|
|
230
|
-
} else if (existingClassName.type === "JSXExpressionContainer") {
|
|
231
|
-
const expr = existingClassName.expression;
|
|
232
|
-
const finalExpr = boundClassName ? t.binaryExpression("+", t.binaryExpression("+", expr, t.stringLiteral(" ")), t.stringLiteral(boundClassName)) : expr;
|
|
233
|
-
classNameAttr = t.jsxAttribute(t.jsxIdentifier("className"), t.jsxExpressionContainer(finalExpr));
|
|
234
|
-
} else return false;
|
|
235
|
-
const anatomyAttrs = [];
|
|
236
|
-
if (entry.componentName) {
|
|
237
|
-
const alreadyHasSlot = passthroughAttrs.some((a) => a.type === "JSXAttribute" && a.name?.name === "data-uds-slot");
|
|
238
|
-
const alreadyHasComponent = passthroughAttrs.some((a) => a.type === "JSXAttribute" && a.name?.name === "data-uds-component");
|
|
239
|
-
if (!alreadyHasSlot) anatomyAttrs.push(t.jsxAttribute(t.jsxIdentifier("data-uds-slot"), t.stringLiteral("root")));
|
|
240
|
-
if (!alreadyHasComponent) anatomyAttrs.push(t.jsxAttribute(t.jsxIdentifier("data-uds-component"), t.stringLiteral(entry.componentName)));
|
|
241
|
-
}
|
|
242
|
-
openingElement.name = t.jsxIdentifier(tag);
|
|
243
|
-
openingElement.attributes = [
|
|
244
|
-
...classNameAttr ? [classNameAttr] : [],
|
|
245
|
-
...passthroughAttrs,
|
|
246
|
-
...anatomyAttrs
|
|
247
|
-
];
|
|
248
|
-
if (closingElement) closingElement.name = t.jsxIdentifier(tag);
|
|
249
|
-
return true;
|
|
250
|
-
}
|
|
251
|
-
//#endregion
|
|
252
|
-
export { lowerNewApiPrimitiveJsx };
|