Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4823.js (118.4 MB)
63 lines
2.3 KiB
TypeScript
63 lines
2.3 KiB
TypeScript
// Module ID: 5774
|
|
// Function ID: 5775
|
|
// Name: TableRadioRow
|
|
// Dependencies: [19, 21, 5771, 4341, 4356, 5691, 5775, 2]
|
|
// Exports: TableRadioRow
|
|
|
|
// Module 5774 (TableRadioRow)
|
|
import native from "native" /* 4341 */;
|
|
import useA11yRolesNative from "useA11yRolesNative" /* 4356 */;
|
|
import TableRow from "TableRow" /* 5691 */;
|
|
import TableRadioGroup from "TableRadioGroup" /* 5771 */;
|
|
import FormRadio from "FormRadio" /* 5775 */;
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
require = fn;
|
|
const jsx = fn(21).jsx;
|
|
const size = fn(2);
|
|
const result = size.fileFinishedImporting("design/components/TableRow/native/TableRadioRow.native.tsx");
|
|
|
|
export const TableRadioRow = function TableRadioRow(value) {
|
|
value = value.value;
|
|
require = value;
|
|
({ label, subLabel, disabled } = value);
|
|
if (disabled === undefined) {
|
|
disabled = false;
|
|
}
|
|
({ legacyCompat_selected, legacyCompat_onPress: dependencyMap } = value);
|
|
const merged = Object.assign(value, Object.assign({ value: 0, label: 0, subLabel: 0, disabled: 0, accessibilityHint: 0, legacyCompat_selected: 0, legacyCompat_onPress: 0 }));
|
|
const context = noop.useContext(TableRadioGroup.TableRadioGroupContext);
|
|
const onSelect = context.onSelect;
|
|
if (legacyCompat_selected == null) {
|
|
legacyCompat_selected = context.selectedValue === value;
|
|
}
|
|
const nodeText = native.getNodeText(label);
|
|
const tmp2Result = native;
|
|
const nodeText1 = native.getNodeText(subLabel);
|
|
const tmp2Result3 = native;
|
|
const radioA11yNative = useA11yRolesNative.useRadioA11yNative({ selected: legacyCompat_selected, disabled });
|
|
({ accessibilityRole, accessibilityState } = radioA11yNative);
|
|
const 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 = nodeText1;
|
|
if (nodeText1 == null) {
|
|
str = "";
|
|
}
|
|
obj.accessibilityLabel = "" + nodeText + ", " + str;
|
|
obj.accessibilityHint = value.accessibilityHint;
|
|
obj.onPress = function onPress(arg0) {
|
|
if (dependencyMap != null) {
|
|
tmp(arg0);
|
|
}
|
|
onSelect(value);
|
|
};
|
|
obj.trailing = jsx(FormRadio.FormRadio, { selected: legacyCompat_selected });
|
|
return jsx(TableRow.TableRow, {});
|
|
};
|