UNPKG

repoweaver

Version:

A GitHub App that skillfully weaves multiple templates together to create and update repositories with intelligent merge strategies

1 lines 4.79 kB
{"ast":null,"code":"import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nconst _excluded = [\"alpha\", \"family\", \"style\", \"theme\"];\nfunction _extends() {\n return _extends = Object.assign ? Object.assign.bind() : function (n) {\n for (var e = 1; e < arguments.length; e++) {\n var t = arguments[e];\n for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);\n }\n return n;\n }, _extends.apply(null, arguments);\n}\nimport * as React from 'react';\nimport I18nManager from \"react-native-web/dist/exports/I18nManager\";\nimport StyleSheet from \"react-native-web/dist/exports/StyleSheet\";\nimport color from 'color';\nimport Text from \"./Text\";\nimport { useInternalTheme } from \"../../../core/theming\";\nconst StyledText = _ref => {\n let {\n alpha = 1,\n family,\n style,\n theme: themeOverrides\n } = _ref,\n rest = _objectWithoutPropertiesLoose(_ref, _excluded);\n var _theme$colors, _theme$fonts;\n const theme = useInternalTheme(themeOverrides);\n const textColor = color(theme.isV3 ? theme.colors.onSurface : (_theme$colors = theme.colors) === null || _theme$colors === void 0 ? void 0 : _theme$colors.text).alpha(alpha).rgb().string();\n const writingDirection = I18nManager.getConstants().isRTL ? 'rtl' : 'ltr';\n return React.createElement(Text, _extends({}, rest, {\n style: [styles.text, Object.assign({\n color: textColor\n }, !theme.isV3 && ((_theme$fonts = theme.fonts) === null || _theme$fonts === void 0 ? void 0 : _theme$fonts[family]), {\n writingDirection\n }), style]\n }));\n};\nconst styles = StyleSheet.create({\n text: {\n textAlign: 'left'\n }\n});\nexport default StyledText;","map":{"version":3,"names":["React","I18nManager","StyleSheet","color","Text","useInternalTheme","StyledText","_ref","alpha","family","style","theme","themeOverrides","rest","_objectWithoutPropertiesLoose","_excluded","_theme$colors","_theme$fonts","textColor","isV3","colors","onSurface","text","rgb","string","writingDirection","getConstants","isRTL","createElement","_extends","styles","Object","assign","fonts","create","textAlign"],"sources":["/Users/pmouli/Documents/GitHub.nosync/boots-strapper/mobile/node_modules/react-native-paper/src/components/Typography/v2/StyledText.tsx"],"sourcesContent":["import * as React from 'react';\nimport { I18nManager, StyleProp, StyleSheet, TextStyle } from 'react-native';\n\nimport color from 'color';\nimport type { ThemeProp } from 'src/types';\n\nimport Text from './Text';\nimport { useInternalTheme } from '../../../core/theming';\n\ntype Props = React.ComponentProps<typeof Text> & {\n alpha?: number;\n family: 'regular' | 'medium' | 'light' | 'thin';\n style?: StyleProp<TextStyle>;\n theme?: ThemeProp;\n};\n\nconst StyledText = ({\n alpha = 1,\n family,\n style,\n theme: themeOverrides,\n ...rest\n}: Props) => {\n const theme = useInternalTheme(themeOverrides);\n\n const textColor = color(\n theme.isV3 ? theme.colors.onSurface : theme.colors?.text\n )\n .alpha(alpha)\n .rgb()\n .string();\n const writingDirection = I18nManager.getConstants().isRTL ? 'rtl' : 'ltr';\n\n return (\n <Text\n {...rest}\n style={[\n styles.text,\n {\n color: textColor,\n ...(!theme.isV3 && theme.fonts?.[family]),\n writingDirection,\n },\n style,\n ]}\n />\n );\n};\n\nconst styles = StyleSheet.create({\n text: {\n textAlign: 'left',\n },\n});\n\nexport default StyledText;\n"],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAAA,OAAAC,WAAA;AAAA,OAAAC,UAAA;AAG9B,OAAOC,KAAK,MAAM,OAAO;AAGzB,OAAOC,IAAI;AACX,SAASC,gBAAgB;AASzB,MAAMC,UAAU,GAAGC,IAAA,IAMN;EAAA,IANO;MAClBC,KAAK,GAAG,CAAC;MACTC,MAAM;MACNC,KAAK;MACLC,KAAK,EAAEC;IAEF,CAAC,GAAAL,IAAA;IADHM,IAAA,GAAAC,6BAAA,CAAAP,IAAA,EAAAQ,SAAA;EACQ,IAAAC,aAAA,EAAAC,YAAA;EACX,MAAMN,KAAK,GAAGN,gBAAgB,CAACO,cAAc,CAAC;EAE9C,MAAMM,SAAS,GAAGf,KA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