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

124 lines
5.9 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 13554
// Function ID: 13555
2026-07-20 16:05:17 +00:00
// Name: OverflowSquircle
2026-08-25 06:04:03 +00:00
// Dependencies: [19, 17, 21, 4380, 712, 4376, 2]
2026-07-20 16:05:17 +00:00
// Exports: OverflowCircle, OverflowText, OverflowTextSmall, default
2026-08-25 06:04:03 +00:00
// Module 13554 (OverflowSquircle)
2026-08-24 06:08:38 +00:00
import noopAll from "noop" /* 19 */;
import ThemesDefault from "Themes" /* 712 */;
2026-08-25 06:04:03 +00:00
import Text from "Text" /* 4376 */;
2026-08-24 06:08:38 +00:00
import { View } from "get ActivityIndicator" /* 17 */;
import { jsx } from "jsxProd" /* 21 */;
2026-08-25 06:04:03 +00:00
import createCacheKey from "createCacheKey" /* 4380 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
2026-07-20 16:05:17 +00:00
function OverflowSquircle(arg0) {
({ overflow, style } = arg0);
2026-08-24 06:08:38 +00:00
const tmp = callback();
2026-07-29 08:29:29 +00:00
let obj = { style: items, children: null };
2026-07-23 10:11:24 +00:00
items = [tmp.overflowSquircleWrap, style];
2026-07-29 08:29:29 +00:00
obj = { style: tmp.overflowSquircle, children: null };
2026-08-24 06:08:38 +00:00
obj = { variant: "text-xs/medium", children: "+" + overflow };
obj[1] = jsx(Text.Text, { variant: "text-xs/medium", children: "+" + overflow });
obj[1] = <View variant="text-xs/medium">{"+" + overflow}</View>;
return <View variant="text-xs/medium">{"+" + overflow}</View>;
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
noopAll;
2026-07-29 08:29:29 +00:00
createCacheKey = { container: { flexDirection: "row", alignItems: "center" }, iconWrapper: { alignItems: "center", justifyContent: "center" }, overflowSquircleWrap: null, overflowSquircle: null, overflowTextOnly: null, overflowCircleWrap: null, overflowCircle: null };
2026-08-24 06:08:38 +00:00
createCacheKey = { backgroundColor: ThemesDefault.colors.BACKGROUND_BASE_LOW, borderRadius: ThemesDefault.radii.md };
2026-07-29 08:29:29 +00:00
createCacheKey[2] = createCacheKey;
2026-08-24 06:08:38 +00:00
createCacheKey[3] = { backgroundColor: ThemesDefault.colors.BACKGROUND_BASE_LOWEST, margin: 3, paddingHorizontal: 8, height: 30, alignItems: "center", justifyContent: "center", borderRadius: 10 };
let obj1 = { backgroundColor: ThemesDefault.colors.BACKGROUND_BASE_LOWEST, margin: 3, paddingHorizontal: 8, height: 30, alignItems: "center", justifyContent: "center", borderRadius: 10 };
createCacheKey[4] = { margin: 2, paddingHorizontal: 8, height: 32, alignItems: "center", justifyContent: "center", borderRadius: ThemesDefault.radii.lg, backgroundColor: ThemesDefault.colors.BACKGROUND_BASE_LOWEST };
let obj2 = { margin: 2, paddingHorizontal: 8, height: 32, alignItems: "center", justifyContent: "center", borderRadius: ThemesDefault.radii.lg, backgroundColor: ThemesDefault.colors.BACKGROUND_BASE_LOWEST };
createCacheKey[5] = { backgroundColor: ThemesDefault.colors.BACKGROUND_BASE_LOW, borderRadius: 17 };
const obj3 = { backgroundColor: ThemesDefault.colors.BACKGROUND_BASE_LOW, borderRadius: 17 };
createCacheKey[6] = { backgroundColor: ThemesDefault.colors.BACKGROUND_BASE_LOWEST, margin: 2, paddingHorizontal: 8, height: 30, alignItems: "center", justifyContent: "center", borderRadius: 15 };
let closure_4 = createCacheKey.createStyles(createCacheKey);
const obj4 = { backgroundColor: ThemesDefault.colors.BACKGROUND_BASE_LOWEST, margin: 2, paddingHorizontal: 8, height: 30, alignItems: "center", justifyContent: "center", borderRadius: 15 };
const result = require("set").fileFinishedImporting("design/void/SummarizedIconRow/native/SummarizedIconRow.tsx");
2026-07-20 16:05:17 +00:00
export default function SummarizedIconRow(items) {
items = items.items;
let num = items.max;
if (num === undefined) {
num = 8;
}
2026-08-24 06:08:38 +00:00
({ renderItem: View, offsetAmount: jsx, iconWrapperStyle: closure_4, overflowStyle: OverflowSquircle, overflowComponent, style } = items);
2026-07-20 16:05:17 +00:00
if (overflowComponent === undefined) {
overflowComponent = OverflowSquircle;
}
2026-08-24 06:08:38 +00:00
closure_7 = undefined;
closure_8 = undefined;
const tmp = callback();
closure_7 = tmp;
2026-07-20 16:05:17 +00:00
closure_8 = Math.max(items.length - num, 0);
2026-07-23 10:11:24 +00:00
let items1 = [tmp.container, style];
2026-07-20 16:05:17 +00:00
return <View style={items1}>{items.map((arg0, arg1) => {
if (arg1 < num) {
if (arg1 === num - 1) {
if (closure_8 > 0) {
2026-07-29 08:29:29 +00:00
let obj = { style: null, overflow: null };
obj = { marginLeft: null };
obj[0] = closure_3;
2026-08-24 06:08:38 +00:00
items = [obj, closure_5];
2026-07-29 08:29:29 +00:00
obj[0] = items;
obj[1] = tmp2 + 1;
2026-08-24 06:08:38 +00:00
let tmp7 = closure_1_3(overflowComponent, obj, arg1);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return tmp7;
2026-07-20 16:05:17 +00:00
}
const _Math = Math;
2026-07-29 08:29:29 +00:00
tmp7 = null;
2026-07-20 16:05:17 +00:00
if (arg0) {
2026-08-24 06:08:38 +00:00
let items1 = [iconWrapper.iconWrapper, closure_4, ];
2026-07-20 16:05:17 +00:00
if (0 !== arg1) {
2026-08-24 06:08:38 +00:00
obj1 = { marginLeft: null };
2026-07-29 08:29:29 +00:00
obj1[0] = closure_3;
obj = obj1;
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
obj = {};
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const obj2 = { style: null, children: null };
items1[2] = obj;
obj2[0] = items1;
items1 = callback(arg0, arg1 === tmp6);
obj2[1] = items1;
2026-08-24 06:08:38 +00:00
closure_1_3(closure_1_2, obj2, arg1);
const tmp8 = closure_1_3;
const tmp9 = closure_1_2;
2026-07-20 16:05:17 +00:00
}
}
})}</View>;
};
export const OverflowText = function OverflowText(arg0) {
({ overflow, style } = arg0);
2026-07-29 08:29:29 +00:00
let obj = { style: null, children: null };
2026-08-24 06:08:38 +00:00
const items = [callback().overflowTextOnly, style];
2026-07-29 08:29:29 +00:00
obj[0] = items;
2026-08-24 06:08:38 +00:00
obj = { variant: "text-xs/medium", children: "+" + overflow };
obj[1] = jsx(Text.Text, { variant: "text-xs/medium", children: "+" + overflow });
return <View variant="text-xs/medium">{"+" + overflow}</View>;
2026-07-20 16:05:17 +00:00
};
export const OverflowTextSmall = function OverflowTextSmall(arg0) {
({ overflow, style } = arg0);
2026-07-29 08:29:29 +00:00
let obj = { style: null, children: null };
2026-08-24 06:08:38 +00:00
const items = [callback().overflowTextOnly, style];
2026-07-29 08:29:29 +00:00
obj[0] = items;
2026-08-24 06:08:38 +00:00
obj = { variant: "text-xxs/medium", children: "+" + overflow };
obj[1] = jsx(Text.Text, { variant: "text-xxs/medium", children: "+" + overflow });
return <View variant="text-xxs/medium">{"+" + overflow}</View>;
2026-07-20 16:05:17 +00:00
};
export const OverflowCircle = function OverflowCircle(arg0) {
({ overflow, style } = arg0);
2026-08-24 06:08:38 +00:00
const tmp = callback();
2026-07-29 08:29:29 +00:00
let obj = { style: items, children: null };
2026-07-23 10:11:24 +00:00
items = [tmp.overflowCircleWrap, style];
2026-07-29 08:29:29 +00:00
obj = { style: tmp.overflowCircle, children: null };
2026-08-24 06:08:38 +00:00
obj = { variant: "text-xs/medium", children: "+" + overflow };
obj[1] = jsx(Text.Text, { variant: "text-xs/medium", children: "+" + overflow });
obj[1] = <View variant="text-xs/medium">{"+" + overflow}</View>;
return <View variant="text-xs/medium">{"+" + overflow}</View>;
2026-07-20 16:05:17 +00:00
};