repoweaver
Version:
A GitHub App that skillfully weaves multiple templates together to create and update repositories with intelligent merge strategies
1 lines • 4.83 kB
JSON
{"ast":null,"code":"import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nconst _excluded = [\"children\", \"title\", \"titleStyle\", \"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 View from \"react-native-web/dist/exports/View\";\nimport ListSubheader from \"./ListSubheader\";\nimport { useInternalTheme } from \"../../core/theming\";\nconst ListSection = _ref => {\n let {\n children,\n title,\n titleStyle,\n style,\n theme: themeOverrides\n } = _ref,\n rest = _objectWithoutPropertiesLoose(_ref, _excluded);\n const theme = useInternalTheme(themeOverrides);\n const viewProps = Object.assign({}, rest, {\n theme\n });\n return React.createElement(View, _extends({}, viewProps, {\n style: [styles.container, style]\n }), title ? React.createElement(ListSubheader, {\n style: titleStyle,\n theme: theme\n }, title) : null, children);\n};\nListSection.displayName = 'List.Section';\nconst styles = StyleSheet.create({\n container: {\n marginVertical: 8\n }\n});\nexport default ListSection;","map":{"version":3,"names":["React","StyleSheet","View","ListSubheader","useInternalTheme","ListSection","_ref","children","title","titleStyle","style","theme","themeOverrides","rest","_objectWithoutPropertiesLoose","_excluded","viewProps","Object","assign","createElement","_extends","styles","container","displayName","create","marginVertical"],"sources":["/Users/pmouli/Documents/GitHub.nosync/boots-strapper/mobile/node_modules/react-native-paper/src/components/List/ListSection.tsx"],"sourcesContent":["import * as React from 'react';\nimport {\n StyleProp,\n StyleSheet,\n TextStyle,\n View,\n ViewStyle,\n} from 'react-native';\n\nimport ListSubheader from './ListSubheader';\nimport { useInternalTheme } from '../../core/theming';\nimport type { ThemeProp } from '../../types';\n\nexport type Props = React.ComponentPropsWithRef<typeof View> & {\n /**\n * Title text for the section.\n */\n title?: string;\n /**\n * Content of the section.\n */\n children: React.ReactNode;\n /**\n * @optional\n */\n theme?: ThemeProp;\n /**\n * Style that is passed to Title element.\n */\n titleStyle?: StyleProp<TextStyle>;\n style?: StyleProp<ViewStyle>;\n};\n\n/**\n * A component used to group list items.\n *\n * ## Usage\n * ```js\n * import * as React from 'react';\n * import { List, MD3Colors } from 'react-native-paper';\n *\n * const MyComponent = () => (\n * <List.Section>\n * <List.Subheader>Some title</List.Subheader>\n * <List.Item title=\"First Item\" left={() => <List.Icon icon=\"folder\" />} />\n * <List.Item\n * title=\"Second Item\"\n * left={() => <List.Icon color={MD3Colors.tertiary70} icon=\"folder\" />}\n * />\n * </List.Section>\n * );\n *\n * export default MyComponent;\n * ```\n */\nconst ListSection = ({\n children,\n title,\n titleStyle,\n style,\n theme: themeOverrides,\n ...rest\n}: Props) => {\n const theme = useInternalTheme(themeOverrides);\n const viewProps = { ...rest, theme };\n\n return (\n <View {...viewProps} style={[styles.container, style]}>\n {title ? (\n <ListSubheader style={titleStyle} theme={theme}>\n {title}\n </ListSubheader>\n ) : null}\n {children}\n </View>\n );\n};\n\nListSection.displayName = 'List.Section';\n\nconst styles = StyleSheet.create({\n container: {\n marginVertical: 8,\n },\n});\n\nexport default ListSection;\n"],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAAA,OAAAC,UAAA;AAAA,OAAAC,IAAA;AAS9B,OAAOC,aAAa;AACpB,SAASC,gBAAgB;AA6CzB,MAAMC,WAAW,GAAGC,IAAA,IAOP;EAAA,IAPQ;MACnBC,QAAQ;MACRC,KAAK;MACLC,UAAU;MACVC,KAAK;MACLC,KAAK,EAAEC;IAEF,CAAC,GAAAN,IAAA;IADHO,IAAA,GAAAC,6BAAA,CAAAR,IAAA,EAAAS,SAAA;EAEH,MAAMJ,KAAK,GAAGP,gBAAgB,CAACQ,cAAc,CAAC;EAC9C,MAAMI,SAAS,GAAAC,MAAA,CAAAC,MAAA,KAAQL,IAAI;IAAEF;EAAA,EAAO;EAEpC,OACEX,KAAA,CAAAmB,aAAA,CAACjB,IAAI,EAAAkB,QAAA,KAAKJ,SAAS;IAAEN,KAAK,EAAE,CAACW,MAAM,CAACC,SAAS,EAAEZ,KAAK;EAAE,IACnDF,KAAK,GACJR,KAAA,CAAAmB,aAAA,CAAChB,aAAa;IAACO,KAAK,EAAED,UAAW;IAACE,KAAK,EAAEA;EAAM,GAC5CH,KACY,CAAC,GACd,IAAI,EACPD,QACG,CAAC;AAEX,CAAC;AAEDF,WAAW,CAACkB,WAAW,GAAG,cAAc;AAExC,MAAMF,MAAM,GAAGpB,UAAU,CAACuB,MAAM,CAAC;EAC/BF,SAAS,EAAE;IACTG,cAAc,EAAE;EAClB;AACF,CAAC,CAAC;AAEF,eAAepB,WAAW","ignoreList":[]},"metadata":{"hasCjsExports":false},"sourceType":"module","externalDependencies":[]}