repoweaver
Version:
A GitHub App that skillfully weaves multiple templates together to create and update repositories with intelligent merge strategies
1 lines • 23.7 kB
JSON
{"ast":null,"code":"import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nconst _excluded = [\"elevation\", \"delayLongPress\", \"onPress\", \"onLongPress\", \"onPressOut\", \"onPressIn\", \"mode\", \"children\", \"style\", \"contentStyle\", \"theme\", \"testID\", \"accessible\", \"disabled\"];\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 Animated from \"react-native-web/dist/exports/Animated\";\nimport StyleSheet from \"react-native-web/dist/exports/StyleSheet\";\nimport Pressable from \"react-native-web/dist/exports/Pressable\";\nimport View from \"react-native-web/dist/exports/View\";\nimport useLatestCallback from 'use-latest-callback';\nimport CardActions from \"./CardActions\";\nimport CardContent from \"./CardContent\";\nimport CardCover from \"./CardCover\";\nimport CardTitle from \"./CardTitle\";\nimport { getCardColors } from \"./utils\";\nimport { useInternalTheme } from \"../../core/theming\";\nimport { forwardRef } from \"../../utils/forwardRef\";\nimport hasTouchHandler from \"../../utils/hasTouchHandler\";\nimport { splitStyles } from \"../../utils/splitStyles\";\nimport Surface from \"../Surface\";\nconst Card = (_ref, ref) => {\n let {\n elevation: cardElevation = 1,\n delayLongPress,\n onPress,\n onLongPress,\n onPressOut,\n onPressIn,\n mode: cardMode = 'elevated',\n children,\n style,\n contentStyle,\n theme: themeOverrides,\n testID = 'card',\n accessible,\n disabled\n } = _ref,\n rest = _objectWithoutPropertiesLoose(_ref, _excluded);\n const theme = useInternalTheme(themeOverrides);\n const isMode = React.useCallback(modeToCompare => {\n return cardMode === modeToCompare;\n }, [cardMode]);\n const hasPassedTouchHandler = hasTouchHandler({\n onPress,\n onLongPress,\n onPressIn,\n onPressOut\n });\n const {\n current: elevation\n } = React.useRef(new Animated.Value(cardElevation));\n const {\n current: elevationDarkAdaptive\n } = React.useRef(new Animated.Value(cardElevation));\n const {\n animation,\n dark,\n mode,\n roundness,\n isV3\n } = theme;\n const prevDarkRef = React.useRef(dark);\n React.useEffect(() => {\n prevDarkRef.current = dark;\n });\n const prevDark = prevDarkRef.current;\n const isAdaptiveMode = mode === 'adaptive';\n const animationDuration = 150 * animation.scale;\n React.useEffect(() => {\n if (dark && isAdaptiveMode && !prevDark) {\n elevation.setValue(cardElevation);\n elevationDarkAdaptive.setValue(cardElevation);\n }\n }, [prevDark, dark, isAdaptiveMode, cardElevation, elevation, elevationDarkAdaptive]);\n const runElevationAnimation = pressType => {\n if (isV3 && isMode('contained')) {\n return;\n }\n const isPressTypeIn = pressType === 'in';\n if (dark && isAdaptiveMode) {\n Animated.timing(elevationDarkAdaptive, {\n toValue: isPressTypeIn ? isV3 ? 2 : 8 : cardElevation,\n duration: animationDuration,\n useNativeDriver: false\n }).start();\n } else {\n Animated.timing(elevation, {\n toValue: isPressTypeIn ? isV3 ? 2 : 8 : cardElevation,\n duration: animationDuration,\n useNativeDriver: false\n }).start();\n }\n };\n const handlePressIn = useLatestCallback(e => {\n onPressIn === null || onPressIn === void 0 || onPressIn(e);\n runElevationAnimation('in');\n });\n const handlePressOut = useLatestCallback(e => {\n onPressOut === null || onPressOut === void 0 || onPressOut(e);\n runElevationAnimation('out');\n });\n const total = React.Children.count(children);\n const siblings = React.Children.map(children, child => React.isValidElement(child) && child.type ? child.type.displayName : null);\n const computedElevation = dark && isAdaptiveMode ? elevationDarkAdaptive : elevation;\n const {\n backgroundColor,\n borderColor: themedBorderColor\n } = getCardColors({\n theme,\n mode: cardMode\n });\n const flattenedStyles = StyleSheet.flatten(style) || {};\n const {\n borderColor = themedBorderColor\n } = flattenedStyles;\n const [, borderRadiusStyles] = splitStyles(flattenedStyles, style => style.startsWith('border') && style.endsWith('Radius'));\n const borderRadiusCombinedStyles = Object.assign({\n borderRadius: (isV3 ? 3 : 1) * roundness\n }, borderRadiusStyles);\n const content = React.createElement(View, {\n style: [styles.innerContainer, contentStyle],\n testID: testID\n }, React.Children.map(children, (child, index) => React.isValidElement(child) ? React.cloneElement(child, {\n index,\n total,\n siblings,\n borderRadiusStyles\n }) : child));\n return React.createElement(Surface, _extends({\n ref: ref,\n style: [isV3 && !isMode('elevated') && {\n backgroundColor\n }, !isV3 && (isMode('outlined') ? styles.resetElevation : {\n elevation: computedElevation\n }), borderRadiusCombinedStyles, style],\n theme: theme\n }, isV3 && {\n elevation: isMode('elevated') ? computedElevation : 0\n }, {\n testID: `${testID}-container`,\n container: true\n }, rest), isMode('outlined') && React.createElement(View, {\n pointerEvents: \"none\",\n testID: `${testID}-outline`,\n style: [{\n borderColor\n }, styles.outline, borderRadiusCombinedStyles]\n }), hasPassedTouchHandler ? React.createElement(Pressable, {\n accessible: accessible,\n unstable_pressDelay: 0,\n disabled: disabled,\n delayLongPress: delayLongPress,\n onLongPress: onLongPress,\n onPress: onPress,\n onPressIn: handlePressIn,\n onPressOut: handlePressOut\n }, content) : content);\n};\nCard.displayName = 'Card';\nconst Component = forwardRef(Card);\nconst CardComponent = Component;\nCardComponent.Content = CardContent;\nCardComponent.Actions = CardActions;\nCardComponent.Cover = CardCover;\nCardComponent.Title = CardTitle;\nconst styles = StyleSheet.create({\n innerContainer: {\n flexShrink: 1\n },\n outline: {\n borderWidth: 1,\n position: 'absolute',\n width: '100%',\n height: '100%',\n zIndex: 2\n },\n resetElevation: {\n elevation: 0\n }\n});\nexport default CardComponent;","map":{"version":3,"names":["React","Animated","StyleSheet","Pressable","View","useLatestCallback","CardActions","CardContent","CardCover","CardTitle","getCardColors","useInternalTheme","forwardRef","hasTouchHandler","splitStyles","Surface","Card","_ref","ref","elevation","cardElevation","delayLongPress","onPress","onLongPress","onPressOut","onPressIn","mode","cardMode","children","style","contentStyle","theme","themeOverrides","testID","accessible","disabled","rest","_objectWithoutPropertiesLoose","_excluded","isMode","useCallback","modeToCompare","hasPassedTouchHandler","current","useRef","Value","elevationDarkAdaptive","animation","dark","roundness","isV3","prevDarkRef","useEffect","prevDark","isAdaptiveMode","animationDuration","scale","setValue","runElevationAnimation","pressType","isPressTypeIn","timing","toValue","duration","useNativeDriver","start","handlePressIn","e","handlePressOut","total","Children","count","siblings","map","child","isValidElement","type","displayName","computedElevation","backgroundColor","borderColor","themedBorderColor","flattenedStyles","flatten","borderRadiusStyles","startsWith","endsWith","borderRadiusCombinedStyles","Object","assign","borderRadius","content","createElement","styles","innerContainer","index","cloneElement","_extends","resetElevation","container","pointerEvents","outline","unstable_pressDelay","Component","CardComponent","Content","Actions","Cover","Title","create","flexShrink","borderWidth","position","width","height","zIndex"],"sources":["/Users/pmouli/Documents/GitHub.nosync/boots-strapper/mobile/node_modules/react-native-paper/src/components/Card/Card.tsx"],"sourcesContent":["import * as React from 'react';\nimport {\n Animated,\n GestureResponderEvent,\n StyleProp,\n StyleSheet,\n Pressable,\n View,\n ViewStyle,\n} from 'react-native';\n\nimport useLatestCallback from 'use-latest-callback';\n\nimport CardActions from './CardActions';\nimport CardContent from './CardContent';\nimport CardCover from './CardCover';\nimport CardTitle from './CardTitle';\nimport { getCardColors } from './utils';\nimport { useInternalTheme } from '../../core/theming';\nimport type { $Omit, ThemeProp } from '../../types';\nimport { forwardRef } from '../../utils/forwardRef';\nimport hasTouchHandler from '../../utils/hasTouchHandler';\nimport { splitStyles } from '../../utils/splitStyles';\nimport Surface from '../Surface';\n\ntype CardComposition = {\n Content: typeof CardContent;\n Actions: typeof CardActions;\n Cover: typeof CardCover;\n Title: typeof CardTitle;\n};\n\ntype OutlinedCardProps = {\n mode: 'outlined';\n elevation?: never;\n};\n\ntype ElevatedCardProps = {\n mode?: 'elevated';\n elevation?: number;\n};\n\ntype ContainedCardProps = {\n mode?: 'contained';\n elevation?: never;\n};\n\ntype HandlePressType = 'in' | 'out';\n\ntype Mode = 'elevated' | 'outlined' | 'contained';\n\nexport type Props = $Omit<React.ComponentProps<typeof Surface>, 'mode'> & {\n /**\n * Mode of the Card.\n * - `elevated` - Card with elevation.\n * - `contained` - Card without outline and elevation @supported Available in v5.x with theme version 3\n * - `outlined` - Card with an outline.\n */\n mode?: Mode;\n /**\n * Content of the `Card`.\n */\n children: React.ReactNode;\n /**\n * Function to execute on long press.\n */\n onLongPress?: () => void;\n /**\n * Function to execute on press.\n */\n onPress?: (e: GestureResponderEvent) => void;\n /**\n * Function to execute as soon as the touchable element is pressed and invoked even before onPress.\n */\n onPressIn?: (e: GestureResponderEvent) => void;\n /**\n * Function to execute as soon as the touch is released even before onPress.\n */\n onPressOut?: (e: GestureResponderEvent) => void;\n /**\n * The number of milliseconds a user must touch the element before executing `onLongPress`.\n */\n delayLongPress?: number;\n /**\n * If true, disable all interactions for this component.\n */\n disabled?: boolean;\n /**\n * Changes Card shadow and background on iOS and Android.\n */\n elevation?: 0 | 1 | 2 | 3 | 4 | 5 | Animated.Value;\n /**\n * Style of card's inner content.\n */\n contentStyle?: StyleProp<ViewStyle>;\n style?: Animated.WithAnimatedValue<StyleProp<ViewStyle>>;\n /**\n * @optional\n */\n theme?: ThemeProp;\n /**\n * Pass down testID from card props to touchable\n */\n testID?: string;\n /**\n * Pass down accessible from card props to touchable\n */\n accessible?: boolean;\n};\n\n/**\n * A card is a sheet of material that serves as an entry point to more detailed information.\n *\n * ## Usage\n * ```js\n * import * as React from 'react';\n * import { Avatar, Button, Card, Text } from 'react-native-paper';\n *\n * const LeftContent = props => <Avatar.Icon {...props} icon=\"folder\" />\n *\n * const MyComponent = () => (\n * <Card>\n * <Card.Title title=\"Card Title\" subtitle=\"Card Subtitle\" left={LeftContent} />\n * <Card.Content>\n * <Text variant=\"titleLarge\">Card title</Text>\n * <Text variant=\"bodyMedium\">Card content</Text>\n * </Card.Content>\n * <Card.Cover source={{ uri: 'https://picsum.photos/700' }} />\n * <Card.Actions>\n * <Button>Cancel</Button>\n * <Button>Ok</Button>\n * </Card.Actions>\n * </Card>\n * );\n *\n * export default MyComponent;\n * ```\n */\n\nconst Card = (\n {\n elevation: cardElevation = 1,\n delayLongPress,\n onPress,\n onLongPress,\n onPressOut,\n onPressIn,\n mode: cardMode = 'elevated',\n children,\n style,\n contentStyle,\n theme: themeOverrides,\n testID = 'card',\n accessible,\n disabled,\n ...rest\n }: (OutlinedCardProps | ElevatedCardProps | ContainedCardProps) & Props,\n ref: React.ForwardedRef<View>\n) => {\n const theme = useInternalTheme(themeOverrides);\n const isMode = React.useCallback(\n (modeToCompare: Mode) => {\n return cardMode === modeToCompare;\n },\n [cardMode]\n );\n\n const hasPassedTouchHandler = hasTouchHandler({\n onPress,\n onLongPress,\n onPressIn,\n onPressOut,\n });\n\n // Default animated value\n const { current: elevation } = React.useRef<Animated.Value>(\n new Animated.Value(cardElevation)\n );\n // Dark adaptive animated value, used in case of toggling the theme,\n // it prevents animating the background with native drivers inside Surface\n const { current: elevationDarkAdaptive } = React.useRef<Animated.Value>(\n new Animated.Value(cardElevation)\n );\n const { animation, dark, mode, roundness, isV3 } = theme;\n\n const prevDarkRef = React.useRef<boolean>(dark);\n React.useEffect(() => {\n prevDarkRef.current = dark;\n });\n\n const prevDark = prevDarkRef.current;\n const isAdaptiveMode = mode === 'adaptive';\n const animationDuration = 150 * animation.scale;\n\n React.useEffect(() => {\n /**\n * Resets animations values if updating to dark adaptive mode,\n * otherwise, any card that is in the middle of animation while\n * toggling the theme will stay at that animated value until\n * the next press-in\n */\n if (dark && isAdaptiveMode && !prevDark) {\n elevation.setValue(cardElevation);\n elevationDarkAdaptive.setValue(cardElevation);\n }\n }, [\n prevDark,\n dark,\n isAdaptiveMode,\n cardElevation,\n elevation,\n elevationDarkAdaptive,\n ]);\n\n const runElevationAnimation = (pressType: HandlePressType) => {\n if (isV3 && isMode('contained')) {\n return;\n }\n\n const isPressTypeIn = pressType === 'in';\n if (dark && isAdaptiveMode) {\n Animated.timing(elevationDarkAdaptive, {\n toValue: isPressTypeIn ? (isV3 ? 2 : 8) : cardElevation,\n duration: animationDuration,\n useNativeDriver: false,\n }).start();\n } else {\n Animated.timing(elevation, {\n toValue: isPressTypeIn ? (isV3 ? 2 : 8) : cardElevation,\n duration: animationDuration,\n useNativeDriver: false,\n }).start();\n }\n };\n\n const handlePressIn = useLatestCallback((e: GestureResponderEvent) => {\n onPressIn?.(e);\n runElevationAnimation('in');\n });\n\n const handlePressOut = useLatestCallback((e: GestureResponderEvent) => {\n onPressOut?.(e);\n runElevationAnimation('out');\n });\n\n const total = React.Children.count(children);\n const siblings = React.Children.map(children, (child) =>\n React.isValidElement(child) && child.type\n ? (child.type as any).displayName\n : null\n );\n const computedElevation =\n dark && isAdaptiveMode ? elevationDarkAdaptive : elevation;\n\n const { backgroundColor, borderColor: themedBorderColor } = getCardColors({\n theme,\n mode: cardMode,\n });\n\n const flattenedStyles = (StyleSheet.flatten(style) || {}) as ViewStyle;\n\n const { borderColor = themedBorderColor } = flattenedStyles;\n\n const [, borderRadiusStyles] = splitStyles(\n flattenedStyles,\n (style) => style.startsWith('border') && style.endsWith('Radius')\n );\n\n const borderRadiusCombinedStyles = {\n borderRadius: (isV3 ? 3 : 1) * roundness,\n ...borderRadiusStyles,\n };\n\n const content = (\n <View style={[styles.innerContainer, contentStyle]} testID={testID}>\n {React.Children.map(children, (child, index) =>\n React.isValidElement(child)\n ? React.cloneElement(child as React.ReactElement<any>, {\n index,\n total,\n siblings,\n borderRadiusStyles,\n })\n : child\n )}\n </View>\n );\n\n return (\n <Surface\n ref={ref}\n style={[\n isV3 && !isMode('elevated') && { backgroundColor },\n !isV3 &&\n (isMode('outlined')\n ? styles.resetElevation\n : {\n elevation: computedElevation as unknown as number,\n }),\n borderRadiusCombinedStyles,\n style,\n ]}\n theme={theme}\n {...(isV3 && {\n elevation: isMode('elevated') ? computedElevation : 0,\n })}\n testID={`${testID}-container`}\n container\n {...rest}\n >\n {isMode('outlined') && (\n <View\n pointerEvents=\"none\"\n testID={`${testID}-outline`}\n style={[\n {\n borderColor,\n },\n styles.outline,\n borderRadiusCombinedStyles,\n ]}\n />\n )}\n\n {hasPassedTouchHandler ? (\n <Pressable\n accessible={accessible}\n unstable_pressDelay={0}\n disabled={disabled}\n delayLongPress={delayLongPress}\n onLongPress={onLongPress}\n onPress={onPress}\n onPressIn={handlePressIn}\n onPressOut={handlePressOut}\n >\n {content}\n </Pressable>\n ) : (\n content\n )}\n </Surface>\n );\n};\n\nCard.displayName = 'Card';\nconst Component = forwardRef(Card);\n\nconst CardComponent = Component as typeof Component & CardComposition;\n\n// @component ./CardContent.tsx\nCardComponent.Content = CardContent;\n// @component ./CardActions.tsx\nCardComponent.Actions = CardActions;\n// @component ./CardCover.tsx\nCardComponent.Cover = CardCover;\n// @component ./CardTitle.tsx\nCardComponent.Title = CardTitle;\n\nconst styles = StyleSheet.create({\n innerContainer: {\n flexShrink: 1,\n },\n outline: {\n borderWidth: 1,\n position: 'absolute',\n width: '100%',\n height: '100%',\n zIndex: 2,\n },\n resetElevation: {\n elevation: 0,\n },\n});\n\nexport default CardComponent;\n"],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAAA,OAAAC,QAAA;AAAA,OAAAC,UAAA;AAAA,OAAAC,SAAA;AAAA,OAAAC,IAAA;AAW9B,OAAOC,iBAAiB,MAAM,qBAAqB;AAEnD,OAAOC,WAAW;AAClB,OAAOC,WAAW;AAClB,OAAOC,SAAS;AAChB,OAAOC,SAAS;AAChB,SAASC,aAAa;AACtB,SAASC,gBAAgB;AAEzB,SAASC,UAAU;AACnB,OAAOC,eAAe;AACtB,SAASC,WAAW;AACpB,OAAOC,OAAO;AAoHd,MAAMC,IAAI,GAAGA,CAAAC,IAAA,EAkBXC,GAA6B,KAC1B;EAAA,IAlBH;MACEC,SAAS,EAAEC,aAAa,GAAG,CAAC;MAC5BC,cAAc;MACdC,OAAO;MACPC,WAAW;MACXC,UAAU;MACVC,SAAS;MACTC,IAAI,EAAEC,QAAQ,GAAG,UAAU;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