decord/beta/source/design/visual-identities/ai/AIGlyphText.native.tsx
github-actions 84d017ff78 chore: update source for beta 348.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5021.js (118.4 MB)
2026-09-28 16:18:32 +00:00

47 lines
1.7 KiB
TypeScript

// Module ID: 13937
// Function ID: 13938
// Name: AIGlyphText
// Dependencies: [19, 17, 21, 4566, 4836, 13938, 4531, 2]
// Exports: AIGlyphText
// Module 13937 (AIGlyphText)
import useToken from "useToken" /* 4531 */;
import AIGlyphFont from "AIGlyphFont" /* 13938 */;
import noop from "module_19" /* 19 */;
import ReanimatedRexport from "ReanimatedRexport" /* 4566 */;
require = fn;
const Text = fn(17).Text;
const jsx = fn(21).jsx;
let closure_4 = ReanimatedRexport.createAnimatedComponent(Text);
const createStyles = fn(4836);
let closure_5 = createStyles.createStyles((fontSize, color) => {
const obj = { glyph: { color, fontFamily: AIGlyphFont.AI_GLYPH_FONT_FAMILY_NATIVE, fontSize, lineHeight: fontSize, textAlign: "center", includeFontPadding: false } };
return obj;
});
const size = fn(2);
const result = size.fileFinishedImporting("design/visual-identities/ai/AIGlyphText.native.tsx");
export const AIGlyphText = function AIGlyphText(color) {
let str = color.color;
if (str === undefined) {
str = "text-default";
}
({ animated, allowFontScaling } = color);
if (animated === undefined) {
animated = false;
}
({ numberOfLines, ellipsizeMode, style, children } = color);
let tmp;
if ("none" !== str) {
tmp = str;
}
const obj2 = { style: null, allowFontScaling: null, numberOfLines: null, ellipsizeMode: null, children: null };
const items = [closure_5(color.size, useToken.useToken(tmp)).glyph, style];
obj2.style = items;
obj2.allowFontScaling = allowFontScaling;
obj2.numberOfLines = numberOfLines;
obj2.ellipsizeMode = ellipsizeMode;
obj2.children = children;
return jsx(animated ? closure_4 : Text, { style: null, allowFontScaling: null, numberOfLines: null, ellipsizeMode: null, children: null });
};