UNPKG

repoweaver

Version:

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

1 lines 5.1 kB
{"ast":null,"code":"import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nconst _excluded = [\"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 StyleSheet from \"react-native-web/dist/exports/StyleSheet\";\nimport NativeText from \"react-native-web/dist/exports/Text\";\nimport { useInternalTheme } from \"../../../core/theming\";\nimport { forwardRef } from \"../../../utils/forwardRef\";\nconst Text = (_ref, ref) => {\n let {\n style,\n theme: overrideTheme\n } = _ref,\n rest = _objectWithoutPropertiesLoose(_ref, _excluded);\n var _theme$fonts, _theme$colors;\n const root = React.useRef(null);\n const theme = useInternalTheme(overrideTheme);\n React.useImperativeHandle(ref, () => ({\n setNativeProps: args => {\n var _root$current;\n return (_root$current = root.current) === null || _root$current === void 0 ? void 0 : _root$current.setNativeProps(args);\n }\n }));\n return React.createElement(NativeText, _extends({}, rest, {\n ref: root,\n style: [Object.assign({}, !theme.isV3 && ((_theme$fonts = theme.fonts) === null || _theme$fonts === void 0 ? void 0 : _theme$fonts.regular), {\n color: theme.isV3 ? (_theme$colors = theme.colors) === null || _theme$colors === void 0 ? void 0 : _theme$colors.onSurface : theme.colors.text\n }), styles.text, style]\n }));\n};\nconst styles = StyleSheet.create({\n text: {\n textAlign: 'left'\n }\n});\nexport default forwardRef(Text);","map":{"version":3,"names":["React","StyleSheet","NativeText","useInternalTheme","forwardRef","Text","_ref","ref","style","theme","overrideTheme","rest","_objectWithoutPropertiesLoose","_excluded","_theme$fonts","_theme$colors","root","useRef","useImperativeHandle","setNativeProps","args","_root$current","current","createElement","_extends","Object","assign","isV3","fonts","regular","color","colors","onSurface","text","styles","create","textAlign"],"sources":["/Users/pmouli/Documents/GitHub.nosync/boots-strapper/mobile/node_modules/react-native-paper/src/components/Typography/v2/Text.tsx"],"sourcesContent":["import * as React from 'react';\nimport {\n StyleProp,\n StyleSheet,\n Text as NativeText,\n TextStyle,\n} from 'react-native';\n\nimport type { MD2Theme } from 'src/types';\n\nimport { useInternalTheme } from '../../../core/theming';\nimport { forwardRef } from '../../../utils/forwardRef';\n\ntype Props = React.ComponentProps<typeof NativeText> & {\n style?: StyleProp<TextStyle>;\n /**\n * @optional\n */\n theme?: MD2Theme;\n};\n\n// @component-group Typography\n\n/**\n * Text component which follows styles from the theme.\n *\n * @extends Text props https://reactnative.dev/docs/text#props\n */\nconst Text: React.ForwardRefRenderFunction<{}, Props> = (\n { style, theme: overrideTheme, ...rest }: Props,\n ref\n) => {\n const root = React.useRef<NativeText | null>(null);\n const theme = useInternalTheme(overrideTheme);\n\n React.useImperativeHandle(ref, () => ({\n setNativeProps: (args: Object) => root.current?.setNativeProps(args),\n }));\n\n return (\n <NativeText\n {...rest}\n ref={root}\n style={[\n {\n ...(!theme.isV3 && theme.fonts?.regular),\n color: theme.isV3 ? theme.colors?.onSurface : theme.colors.text,\n },\n styles.text,\n style,\n ]}\n />\n );\n};\n\nconst styles = StyleSheet.create({\n text: {\n textAlign: 'left',\n },\n});\n\nexport default forwardRef(Text);\n"],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAAA,OAAAC,UAAA;AAAA,OAAAC,UAAA;AAU9B,SAASC,gBAAgB;AACzB,SAASC,UAAU;AAiBnB,MAAMC,IAA+C,GAAGA,CAAAC,IAAA,EAEtDC,GAAG,KACA;EAAA,IAFH;MAAEC,KAAK;MAAEC,KAAK,EAAEC;IAA8B,CAAC,GAAAJ,IAAA;IAAbK,IAAA,GAAAC,6BAAA,CAAAN,IAAA,EAAAO,SAAA;EAE/B,IAAAC,YAAA,EAAAC,aAAA;EACH,MAAM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