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

122 lines
4.5 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 5873
// Function ID: 5874
2026-07-20 16:05:17 +00:00
// Name: TableRowGroupTitle
2026-08-25 06:04:03 +00:00
// Dependencies: [19, 17, 21, 4380, 712, 1367, 4376, 4101, 5438, 5481, 2]
2026-07-20 16:05:17 +00:00
// Exports: TableRowGroup
2026-08-25 06:04:03 +00:00
// Module 5873 (TableRowGroupTitle)
2026-08-24 06:08:38 +00:00
import ThemesDefault from "Themes" /* 712 */;
import useIsMobileVisualRefreshExperimentEnabledDefault from "useIsMobileVisualRefreshExperimentEnabled" /* 1367 */;
2026-08-25 06:04:03 +00:00
import map from "map" /* 4101 */;
import Text from "Text" /* 4376 */;
import context from "context" /* 5481 */;
2026-08-24 06:08:38 +00:00
import closure_3 from "noop" /* 19 */;
import { View } from "get ActivityIndicator" /* 17 */;
import jsxProd 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
class TableRowGroupTitle {
constructor(arg0) {
({ title, style, lineClamp } = global);
2026-07-23 10:11:24 +00:00
tmp = require("useIsMobileVisualRefreshExperimentEnabled")("TableRowGroup");
2026-08-24 06:08:38 +00:00
tmp2 = closure_8();
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 };
2026-08-24 06:08:38 +00:00
createCacheKey = { borderRadius: ThemesDefault.modules.mobile.TABLE_ROW_BORDER_RADIUS, overflow: "hidden", flexGrow: 1, flexShrink: 0, padding: 0 };
2026-07-29 08:29:29 +00:00
createCacheKey[1] = createCacheKey;
createCacheKey[2] = { marginBottom: 8 };
createCacheKey[3] = { marginBottom: 8 };
2026-08-24 06:08:38 +00:00
createCacheKey[4] = { borderBottomLeftRadius: ThemesDefault.radii.none, borderBottomRightRadius: ThemesDefault.radii.none };
2026-07-29 08:29:29 +00:00
createCacheKey[5] = { marginTop: 8 };
2026-08-24 06:08:38 +00:00
let closure_8 = createCacheKey.createStyles(createCacheKey);
let obj1 = { borderBottomLeftRadius: ThemesDefault.radii.none, borderBottomRightRadius: ThemesDefault.radii.none };
const result = require("set").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) {
({ 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";
}
2026-08-24 06:08:38 +00:00
importDefault = undefined;
const tmp = callback();
let obj = map;
2026-07-20 16:05:17 +00:00
importDefault = false;
const Children = React.Children;
2026-08-24 06:08:38 +00:00
const token = obj.useToken(ThemesDefault.modules.mobile.TABLE_ROW_GROUP_HELPER_TEXT_STYLE);
2026-07-29 08:29:29 +00:00
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-08-24 06:08:38 +00:00
const items = [closure_1_5(closure_1_0(closure_1_2[8]).TableRowDivider, obj), arg0];
2026-07-29 08:29:29 +00:00
obj[0] = items;
2026-08-24 06:08:38 +00:00
let tmp2 = closure_1_7(closure_1_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) {
2026-08-24 06:08:38 +00:00
obj1 = { variant: "text-sm/normal", color: "text-subtle", style: null, children: null };
2026-07-29 08:29:29 +00:00
obj1[2] = tmp.description;
obj1[3] = description;
2026-08-25 06:04:03 +00:00
tmp6Result = tmp6(tmp2(4376).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;
2026-08-25 06:04:03 +00:00
tmp6Result1 = tmp6(tmp2(4376).Text, obj2);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
items[3] = tmp6Result1;
obj[1] = items;
2026-08-24 06:08:38 +00:00
return closure_5(context.TableRowGroupContext.Provider, { value: true, children: closure_7(View, obj) });
2026-07-20 16:05:17 +00:00
};