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

70 lines
2.4 KiB
TypeScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 7595
2026-07-27 11:26:19 +00:00
// Function ID: 60777
2026-07-20 16:05:17 +00:00
// Name: TableRadioRow
2026-07-25 08:10:48 +00:00
// Dependencies: [31, 33, 7596, 3837, 3849, 5164, 7597, 2]
2026-07-20 16:05:17 +00:00
// Exports: TableRadioRow
2026-07-25 08:10:48 +00:00
// Module 7595 (TableRadioRow)
2026-07-23 10:11:24 +00:00
import result from "result";
import { jsx } from "jsxProd";
let require = arg1;
const result = require("context").fileFinishedImporting("design/components/TableRow/native/TableRadioRow.native.tsx");
2026-07-20 16:05:17 +00:00
export const TableRadioRow = function TableRadioRow(value) {
let accessibilityRole;
let accessibilityState;
2026-07-23 10:11:24 +00:00
let dependencyMap;
2026-07-20 16:05:17 +00:00
let disabled;
let label;
let legacyCompat_selected;
let subLabel;
value = value.value;
2026-07-23 10:11:24 +00:00
const require = value;
2026-07-20 16:05:17 +00:00
({ label, subLabel, disabled } = value);
if (disabled === undefined) {
disabled = false;
}
2026-07-23 10:11:24 +00:00
({ legacyCompat_selected, legacyCompat_onPress: dependencyMap } = value);
let obj = { value: 0, label: 0, subLabel: 0, disabled: 0, accessibilityHint: 0, legacyCompat_selected: 0, legacyCompat_onPress: 0 };
2026-07-20 16:05:17 +00:00
Object.setPrototypeOf(null);
const merged = Object.assign(value, obj);
2026-07-23 10:11:24 +00:00
let onSelect;
2026-07-25 08:10:48 +00:00
const context = onSelect.useContext(require(7596) /* context */.TableRadioGroupContext);
2026-07-23 10:11:24 +00:00
onSelect = context.onSelect;
2026-07-20 16:05:17 +00:00
if (null == legacyCompat_selected) {
legacyCompat_selected = context.selectedValue === value;
}
2026-07-25 08:10:48 +00:00
let obj1 = require(3837) /* getNodeText */;
2026-07-20 16:05:17 +00:00
const nodeText = obj1.getNodeText(label);
2026-07-25 08:10:48 +00:00
const nodeText1 = require(3837) /* getNodeText */.getNodeText(subLabel);
const obj3 = require(3837) /* getNodeText */;
2026-07-20 16:05:17 +00:00
obj = { selected: legacyCompat_selected, disabled };
2026-07-25 08:10:48 +00:00
const radioA11yNative = require(3849) /* useCheckboxA11yNative */.useRadioA11yNative(obj);
2026-07-20 16:05:17 +00:00
({ accessibilityRole, accessibilityState } = radioA11yNative);
obj = {};
const merged1 = Object.assign(merged);
obj["arrow"] = false;
obj["label"] = label;
obj["subLabel"] = subLabel;
obj["disabled"] = disabled;
obj["accessibilityState"] = accessibilityState;
obj["accessible"] = true;
obj["accessibilityRole"] = accessibilityRole;
let str = "";
if (null != nodeText1) {
str = nodeText1;
}
obj["accessibilityLabel"] = "" + nodeText + ", " + str;
obj["accessibilityHint"] = value.accessibilityHint;
obj["onPress"] = function onPress(arg0) {
if (null != callback) {
callback(arg0);
}
2026-07-23 10:11:24 +00:00
onSelect(closure_0);
2026-07-20 16:05:17 +00:00
};
obj1 = { selected: legacyCompat_selected };
2026-07-25 08:10:48 +00:00
obj["trailing"] = jsx(require(7597) /* FormRadio */.FormRadio, { selected: legacyCompat_selected });
return jsx(require(5164) /* TableRowInner */.TableRow, {});
2026-07-20 16:05:17 +00:00
};