decord/source/design/components/TableRow/native/TableRowGroup.native.tsx

125 lines
4.4 KiB
TypeScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 5554
// Function ID: 5555
2026-07-20 16:05:17 +00:00
// Name: TableRowGroupTitle
2026-07-29 08:29:29 +00:00
// Dependencies: [19, 17, 21, 4189, 712, 1348, 4185, 3893, 5181, 5221, 2]
2026-07-20 16:05:17 +00:00
// Exports: TableRowGroup
2026-07-29 08:29:29 +00:00
// Module 5554 (TableRowGroupTitle)
import noop from "noop";
2026-07-23 10:11:24 +00:00
import { View } from "get ActivityIndicator";
import jsxProd from "jsxProd";
2026-07-29 08:29:29 +00:00
import createCacheKey from "createCacheKey";
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
let c5;
2026-07-23 10:11:24 +00:00
let closure_6;
2026-07-29 08:29:29 +00:00
let error;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-20 16:05:17 +00:00
class TableRowGroupTitle {
constructor(arg0) {
({ title, style, lineClamp } = global);
2026-07-23 10:11:24 +00:00
tmp = require("useIsMobileVisualRefreshExperimentEnabled")("TableRowGroup");
2026-07-29 08:29:29 +00:00
tmp2 = jsxs();
2026-07-20 16:05:17 +00:00
tmp3 = jsx;
str = "text-sm/semibold";
if (tmp) {
str = "text-md/medium";
}
2026-07-29 08:29:29 +00:00
obj = { accessibilityRole: "header", variant: str, color: null, style: null, lineClamp: null, children: null };
2026-07-20 16:05:17 +00:00
str2 = "text-default";
if (tmp) {
str2 = "text-subtle";
}
2026-07-29 08:29:29 +00:00
obj[2] = str2;
2026-07-20 16:05:17 +00:00
items = [, ];
items[0] = tmp2.title;
items[1] = style;
2026-07-29 08:29:29 +00:00
obj[3] = items;
obj[4] = lineClamp;
obj[5] = title;
2026-07-23 10:11:24 +00:00
return tmp3(require("Text").Text, obj);
2026-07-20 16:05:17 +00:00
}
}
2026-07-29 08:29:29 +00:00
({ jsx: c5, Fragment: closure_6, jsxs: error } = jsxProd);
createCacheKey = { container: { flexShrink: 0 }, content: null, title: null, description: null, hasTrailingText: null, helperText: null };
createCacheKey = { borderRadius: require("Themes").modules.mobile.TABLE_ROW_BORDER_RADIUS, overflow: "hidden", flexGrow: 1, flexShrink: 0, padding: 0 };
createCacheKey[1] = createCacheKey;
createCacheKey[2] = { marginBottom: 8 };
createCacheKey[3] = { marginBottom: 8 };
createCacheKey[4] = { borderBottomLeftRadius: require("Themes").radii.none, borderBottomRightRadius: require("Themes").radii.none };
createCacheKey[5] = { marginTop: 8 };
createCacheKey = createCacheKey.createStyles(createCacheKey);
let obj1 = { borderBottomLeftRadius: require("Themes").radii.none, borderBottomRightRadius: require("Themes").radii.none };
2026-07-23 10:11:24 +00:00
const result = require("jsxProd").fileFinishedImporting("design/components/TableRow/native/TableRowGroup.native.tsx");
2026-07-20 16:05:17 +00:00
export { TableRowGroupTitle };
2026-07-29 08:29:29 +00:00
export const TableRowGroup = function TableRowGroup(accessibilityLabel) {
2026-07-20 16:05:17 +00:00
let description;
let hasTrailingText;
let helperText;
2026-07-23 10:11:24 +00:00
let require;
2026-07-20 16:05:17 +00:00
let title;
2026-07-29 08:29:29 +00:00
({ title, description, helperText, hasIcons: require, hasTrailingText } = accessibilityLabel);
2026-07-20 16:05:17 +00:00
if (hasTrailingText === undefined) {
hasTrailingText = false;
}
2026-07-29 08:29:29 +00:00
let str = accessibilityLabel.accessibilityRole;
2026-07-20 16:05:17 +00:00
if (str === undefined) {
str = "none";
}
let importDefault;
2026-07-29 08:29:29 +00:00
const tmp = createCacheKey();
let obj = require(3893) /* map */;
2026-07-20 16:05:17 +00:00
importDefault = false;
const Children = React.Children;
2026-07-29 08:29:29 +00:00
const token = obj.useToken(importDefault(712).modules.mobile.TABLE_ROW_GROUP_HELPER_TEXT_STYLE);
const mapped = Children.map(accessibilityLabel.children, (arg0) => {
2026-07-20 16:05:17 +00:00
if (null == arg0) {
return null;
2026-07-23 10:11:24 +00:00
} else if (c1) {
2026-07-29 08:29:29 +00:00
let obj = { children: null };
obj = { adjustSpacingForIcon: null };
obj[0] = closure_0;
2026-07-23 10:11:24 +00:00
const items = [outer1_5(outer1_0(outer1_2[8]).TableRowDivider, obj), arg0];
2026-07-29 08:29:29 +00:00
obj[0] = items;
2026-07-23 10:11:24 +00:00
let tmp2 = outer1_7(outer1_6, obj);
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
c1 = true;
2026-07-20 16:05:17 +00:00
tmp2 = arg0;
}
});
2026-07-29 08:29:29 +00:00
obj = { style: tmp.container, children: null };
let tmp6Result = null != title;
if (tmp6Result) {
obj = { title: null };
obj[0] = title;
tmp6Result = tmp6(TableRowGroupTitle, obj);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
let items = [tmp6Result, , , ];
tmp6Result = null != description;
if (tmp6Result) {
const obj1 = { variant: "text-sm/normal", color: "text-subtle", style: null, children: null };
obj1[2] = tmp.description;
obj1[3] = description;
tmp6Result = tmp6(tmp2(4185).Text, obj1);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
items[1] = tmp6Result;
2026-07-20 16:05:17 +00:00
const items1 = [tmp.content, ];
hasTrailingText = null;
if (hasTrailingText) {
hasTrailingText = tmp.hasTrailingText;
}
items1[1] = hasTrailingText;
2026-07-29 08:29:29 +00:00
items[2] = closure_5(View, { style: items1, accessibilityRole: str, accessibilityLabel: accessibilityLabel.accessibilityLabel, children: mapped });
let tmp6Result1 = null != helperText;
if (tmp6Result1) {
const obj2 = { variant: null, color: "text-muted", style: null, children: null };
obj2[0] = token;
obj2[2] = tmp.helperText;
obj2[3] = helperText;
tmp6Result1 = tmp6(tmp2(4185).Text, obj2);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
items[3] = tmp6Result1;
obj[1] = items;
return closure_5(require(5221) /* context */.TableRowGroupContext.Provider, { value: true, children: closure_7(View, obj) });
2026-07-20 16:05:17 +00:00
};