decord/source/design/void/Badges/native/Badges.tsx

57 lines
2.8 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 13604
// Function ID: 13605
2026-07-20 16:05:17 +00:00
// Name: BadgeColors
2026-08-24 06:08:38 +00:00
// Dependencies: [19, 17, 21, 4668, 712, 4739, 2]
2026-07-20 16:05:17 +00:00
// Exports: TextBadge
2026-08-24 06:08:38 +00:00
// Module 13604 (BadgeColors)
import noopAll from "noop" /* 19 */;
import ThemesDefault from "Themes" /* 712 */;
import Text from "Text" /* 4739 */;
import { View } from "get ActivityIndicator" /* 17 */;
import { jsx } from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4668 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
noopAll;
2026-07-31 08:44:05 +00:00
createCacheKey = { base: null, danger: null, info: null, brand: null, expressive: null };
2026-08-24 06:08:38 +00:00
createCacheKey = { borderRadius: ThemesDefault.radii.sm, paddingHorizontal: 4, paddingVertical: 2 };
2026-07-29 08:29:29 +00:00
createCacheKey[0] = createCacheKey;
2026-08-24 06:08:38 +00:00
createCacheKey[1] = { backgroundColor: ThemesDefault.colors.BADGE_NOTIFICATION_BACKGROUND };
const obj1 = { backgroundColor: ThemesDefault.colors.BADGE_NOTIFICATION_BACKGROUND };
createCacheKey[2] = { backgroundColor: ThemesDefault.colors.BACKGROUND_BRAND };
const obj2 = { backgroundColor: ThemesDefault.colors.BACKGROUND_BRAND };
createCacheKey[3] = { backgroundColor: ThemesDefault.unsafe_rawColors.BRAND_260 };
const obj3 = { backgroundColor: ThemesDefault.unsafe_rawColors.BRAND_260 };
createCacheKey[4] = { backgroundColor: ThemesDefault.colors.CONTROL_EXPRESSIVE_BACKGROUND_DEFAULT };
let closure_4 = createCacheKey.createStyles(createCacheKey);
2026-07-31 08:44:05 +00:00
const obj5 = { text: { textAlign: "center", textTransform: "uppercase" }, dangerText: null, infoText: null, brandText: null, expressiveText: null };
2026-08-24 06:08:38 +00:00
const obj4 = { backgroundColor: ThemesDefault.colors.CONTROL_EXPRESSIVE_BACKGROUND_DEFAULT };
obj5[1] = { color: ThemesDefault.colors.WHITE };
createCacheKey = { color: ThemesDefault.colors.WHITE };
2026-07-31 08:44:05 +00:00
obj5[2] = createCacheKey;
2026-08-24 06:08:38 +00:00
const obj6 = { color: ThemesDefault.colors.WHITE };
obj5[3] = { color: ThemesDefault.unsafe_rawColors.BRAND_560 };
const obj8 = { color: ThemesDefault.unsafe_rawColors.BRAND_560 };
obj5[4] = { color: ThemesDefault.colors.CONTROL_EXPRESSIVE_TEXT_DEFAULT };
2026-07-31 08:44:05 +00:00
let closure_5 = createCacheKey.createStyles(obj5);
const obj10 = { DANGER: "danger", INFO: "info", BRAND: "brand", EXPRESSIVE: "expressive", NORMAL: "normal" };
2026-08-24 06:08:38 +00:00
const obj9 = { color: ThemesDefault.colors.CONTROL_EXPRESSIVE_TEXT_DEFAULT };
const result = require("set").fileFinishedImporting("design/void/Badges/native/Badges.tsx");
2026-07-20 16:05:17 +00:00
2026-07-31 08:44:05 +00:00
export const BadgeColors = obj10;
2026-07-20 16:05:17 +00:00
export const TextBadge = function TextBadge(color) {
let DANGER = color.color;
if (DANGER === undefined) {
2026-07-31 08:44:05 +00:00
DANGER = obj10.DANGER;
2026-07-20 16:05:17 +00:00
}
({ style, text, textStyle } = color);
2026-08-24 06:08:38 +00:00
const tmp2 = callback();
const tmp3 = callback2();
2026-07-29 08:29:29 +00:00
const obj = { style: items, children: null };
2026-07-23 10:11:24 +00:00
items = [tmp2.base, tmp2[DANGER], style];
2026-07-20 16:05:17 +00:00
const items1 = [tmp3.text, tmp3["" + DANGER + "Text"], textStyle];
2026-08-24 06:08:38 +00:00
obj[1] = jsx(Text.Text, { variant: "text-xs/bold", style: items1, children: text });
2026-07-29 08:29:29 +00:00
return <View style={items}>{null}</View>;
2026-07-20 16:05:17 +00:00
};