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

55 lines
1.9 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 5438
// Function ID: 5439
2026-07-20 16:05:17 +00:00
// Name: TableRowDivider
2026-08-25 06:04:03 +00:00
// Dependencies: [19, 17, 5439, 21, 4380, 712, 5265, 1367, 4101, 2]
2026-07-20 16:05:17 +00:00
// Exports: TableRowDivider
2026-08-25 06:04:03 +00:00
// Module 5438 (TableRowDivider)
2026-08-24 06:08:38 +00:00
import noopAll from "noop" /* 19 */;
import ThemesDefault from "Themes" /* 712 */;
import useIsMobileVisualRefreshExperimentEnabledDefault from "useIsMobileVisualRefreshExperimentEnabled" /* 1367 */;
2026-08-25 06:04:03 +00:00
import map from "map" /* 4101 */;
import result2 from "result" /* 5265 */;
2026-08-24 06:08:38 +00:00
import { View } from "get ActivityIndicator" /* 17 */;
2026-08-25 06:04:03 +00:00
import { getTableDividerWidth } from "TABLE_ROW_HEIGHT" /* 5439 */;
2026-08-24 06:08:38 +00:00
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;
noopAll;
2026-07-29 08:29:29 +00:00
let closure_6 = createCacheKey.createStyles((arg0, arg1, arg2) => {
2026-07-20 16:05:17 +00:00
const tmp = getTableDividerWidth(arg1);
let num = 12;
if (arg0) {
num = arg2;
}
2026-07-25 08:10:48 +00:00
let prop;
2026-07-20 16:05:17 +00:00
if (!arg1) {
2026-08-24 06:08:38 +00:00
prop = ThemesDefault.colors.TABLEROW_BACKGROUND_DEFAULT;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj = { container: obj, divider: null };
obj = { backgroundColor: prop, height: tmp, paddingStart: num, marginTop: -tmp };
obj = { height: tmp, backgroundColor: null };
2026-07-20 16:05:17 +00:00
if (arg1) {
2026-08-24 06:08:38 +00:00
let DIVIDER_BACKGROUND = ThemesDefault.colors.BORDER_SUBTLE;
2026-07-20 16:05:17 +00:00
} else {
2026-08-24 06:08:38 +00:00
DIVIDER_BACKGROUND = result2.DIVIDER_BACKGROUND;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj[1] = DIVIDER_BACKGROUND;
obj[1] = obj;
2026-07-20 16:05:17 +00:00
return obj;
});
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("design/components/TableRow/native/TableRowDivider.native.tsx");
2026-07-20 16:05:17 +00:00
export const TableRowDivider = function TableRowDivider(adjustSpacingForIcon) {
let flag = adjustSpacingForIcon.adjustSpacingForIcon;
if (flag === undefined) {
flag = false;
}
2026-08-24 06:08:38 +00:00
let obj = map;
const tmp2 = callback(flag, useIsMobileVisualRefreshExperimentEnabledDefault("TableRowDivider"), obj.useToken(ThemesDefault.modules.mobile.TABLE_ROW_DIVIDER_PADDING));
2026-07-20 16:05:17 +00:00
obj = { style: tmp2.container, children: <View {...obj} /> };
obj = { style: tmp2.divider };
2026-07-23 10:11:24 +00:00
return <View style={tmp2.divider} />;
2026-07-20 16:05:17 +00:00
};