Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4824.js (118.4 MB)
127 lines
3.8 KiB
TypeScript
127 lines
3.8 KiB
TypeScript
// Module ID: 5061
|
|
// Function ID: 5062
|
|
// Name: Icon
|
|
// Dependencies: [19, 17, 21, 4639, 576, 2]
|
|
// Exports: getIconSize, getIconStyle
|
|
|
|
// Module 5061 (Icon)
|
|
import nativeDefault from "native" /* 576 */;
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
const Image = fn(17).Image;
|
|
const jsx = fn(21).jsx;
|
|
const IconSizes = { EXTRA_SMALL_10: "extraSmall10", EXTRA_SMALL: "extraSmall", SMALL: "small", SMALL_20: "small20", MEDIUM: "medium", LARGE: "large", CUSTOM: "custom", REFRESH_SMALL_16: "refreshSmall16", SMALL_14: "small14" };
|
|
const createStyles = fn(4639);
|
|
let closure_5 = createStyles.createStyles(() => {
|
|
obj = { iconColor: { tintColor: nativeDefault.colors.INTERACTIVE_TEXT_DEFAULT } };
|
|
return obj;
|
|
});
|
|
const memoResult = noop.memo(noop.forwardRef((size, ref) => {
|
|
({ color, disableColor } = size);
|
|
if (disableColor === undefined) {
|
|
disableColor = false;
|
|
}
|
|
let MEDIUM = size.size;
|
|
if (MEDIUM === undefined) {
|
|
MEDIUM = obj.MEDIUM;
|
|
}
|
|
({ resizeMode, style } = size);
|
|
if (resizeMode === undefined) {
|
|
resizeMode = "cover";
|
|
}
|
|
({ accessible, accessibilityLabel } = size);
|
|
if (disableColor) {
|
|
const obj2 = { resizeMode, source: size.source, style: null, accessible: null, accessibilityLabel: null, fadeDuration: 0, ref: null };
|
|
let num = 10;
|
|
if (obj.EXTRA_SMALL_10 !== MEDIUM) {
|
|
num = 12;
|
|
if (tmp7.EXTRA_SMALL !== MEDIUM) {
|
|
num = 18;
|
|
if (tmp7.SMALL !== MEDIUM) {
|
|
num = 14;
|
|
if (tmp7.SMALL_14 !== MEDIUM) {
|
|
num = 20;
|
|
if (tmp7.SMALL_20 !== MEDIUM) {
|
|
num = 24;
|
|
if (tmp7.MEDIUM !== MEDIUM) {
|
|
num = 32;
|
|
if (tmp7.LARGE !== MEDIUM) {
|
|
num = 16;
|
|
if (tmp7.REFRESH_SMALL_16 !== MEDIUM) {
|
|
const CUSTOM = tmp7.CUSTOM;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
size = { width: num, height: num };
|
|
const items = [size, undefined, style];
|
|
obj2.style = items;
|
|
obj2.accessible = accessible;
|
|
obj2.accessibilityLabel = accessibilityLabel;
|
|
obj2.ref = ref;
|
|
return <Image resizeMode={resizeMode} source={arg0.source} style={null} accessible={null} accessibilityLabel={null} fadeDuration={0} ref={null} />;
|
|
} else if (null != color) {
|
|
obj = { tintColor: color };
|
|
let iconColor = obj;
|
|
} else {
|
|
iconColor = tmp2.iconColor;
|
|
}
|
|
}));
|
|
memoResult.displayName = "Icon";
|
|
memoResult.Sizes = IconSizes;
|
|
let size = fn(2);
|
|
const result = size.fileFinishedImporting("design/void/Icon/native/Icon.tsx");
|
|
|
|
export default memoResult;
|
|
export { IconSizes };
|
|
export const getIconSize = function getIconSize(arg0) {
|
|
if (obj.EXTRA_SMALL_10 === arg0) {
|
|
return 10;
|
|
} else if (tmp.EXTRA_SMALL === arg0) {
|
|
return 12;
|
|
} else if (tmp.SMALL === arg0) {
|
|
return 18;
|
|
} else if (tmp.SMALL_14 === arg0) {
|
|
return 14;
|
|
} else if (tmp.SMALL_20 === arg0) {
|
|
return 20;
|
|
} else if (tmp.MEDIUM === arg0) {
|
|
return 24;
|
|
} else if (tmp.LARGE === arg0) {
|
|
return 32;
|
|
} else if (tmp.REFRESH_SMALL_16 === arg0) {
|
|
return 16;
|
|
}
|
|
};
|
|
export const getIconStyle = function getIconStyle(MEDIUM) {
|
|
let width = 10;
|
|
if (obj.EXTRA_SMALL_10 !== MEDIUM) {
|
|
width = 12;
|
|
if (tmp.EXTRA_SMALL !== MEDIUM) {
|
|
width = 18;
|
|
if (tmp.SMALL !== MEDIUM) {
|
|
width = 14;
|
|
if (tmp.SMALL_14 !== MEDIUM) {
|
|
width = 20;
|
|
if (tmp.SMALL_20 !== MEDIUM) {
|
|
width = 24;
|
|
if (tmp.MEDIUM !== MEDIUM) {
|
|
width = 32;
|
|
if (tmp.LARGE !== MEDIUM) {
|
|
width = 16;
|
|
if (tmp.REFRESH_SMALL_16 !== MEDIUM) {
|
|
const CUSTOM = tmp.CUSTOM;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return { width, height: width };
|
|
};
|