repoweaver
Version:
A GitHub App that skillfully weaves multiple templates together to create and update repositories with intelligent merge strategies
1 lines • 26.4 kB
JSON
{"ast":null,"code":"import _defineProperty from \"@babel/runtime/helpers/defineProperty\";\nimport _slicedToArray from \"@babel/runtime/helpers/slicedToArray\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/objectWithoutProperties\";\nvar _excluded = [\"elevation\", \"delayLongPress\", \"onPress\", \"onLongPress\", \"onPressOut\", \"onPressIn\", \"mode\", \"children\", \"style\", \"contentStyle\", \"theme\", \"testID\", \"accessible\", \"disabled\"];\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\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\";\nvar Card = function Card(_ref, ref) {\n var _ref$elevation = _ref.elevation,\n cardElevation = _ref$elevation === void 0 ? 1 : _ref$elevation,\n delayLongPress = _ref.delayLongPress,\n onPress = _ref.onPress,\n onLongPress = _ref.onLongPress,\n onPressOut = _ref.onPressOut,\n onPressIn = _ref.onPressIn,\n _ref$mode = _ref.mode,\n cardMode = _ref$mode === void 0 ? 'elevated' : _ref$mode,\n children = _ref.children,\n style = _ref.style,\n contentStyle = _ref.contentStyle,\n themeOverrides = _ref.theme,\n _ref$testID = _ref.testID,\n testID = _ref$testID === void 0 ? 'card' : _ref$testID,\n accessible = _ref.accessible,\n disabled = _ref.disabled,\n rest = _objectWithoutProperties(_ref, _excluded);\n var theme = useInternalTheme(themeOverrides);\n var isMode = React.useCallback(function (modeToCompare) {\n return cardMode === modeToCompare;\n }, [cardMode]);\n var hasPassedTouchHandler = hasTouchHandler({\n onPress: onPress,\n onLongPress: onLongPress,\n onPressIn: onPressIn,\n onPressOut: onPressOut\n });\n var _React$useRef = React.useRef(new Animated.Value(cardElevation)),\n elevation = _React$useRef.current;\n var _React$useRef2 = React.useRef(new Animated.Value(cardElevation)),\n elevationDarkAdaptive = _React$useRef2.current;\n var animation = theme.animation,\n dark = theme.dark,\n mode = theme.mode,\n roundness = theme.roundness,\n isV3 = theme.isV3;\n var prevDarkRef = React.useRef(dark);\n React.useEffect(function () {\n prevDarkRef.current = dark;\n });\n var prevDark = prevDarkRef.current;\n var isAdaptiveMode = mode === 'adaptive';\n var animationDuration = 150 * animation.scale;\n React.useEffect(function () {\n if (dark && isAdaptiveMode && !prevDark) {\n elevation.setValue(cardElevation);\n elevationDarkAdaptive.setValue(cardElevation);\n }\n }, [prevDark, dark, isAdaptiveMode, cardElevation, elevation, elevationDarkAdaptive]);\n var runElevationAnimation = function runElevationAnimation(pressType) {\n if (isV3 && isMode('contained')) {\n return;\n }\n var 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 var handlePressIn = useLatestCallback(function (e) {\n onPressIn === null || onPressIn === void 0 || onPressIn(e);\n runElevationAnimation('in');\n });\n var handlePressOut = useLatestCallback(function (e) {\n onPressOut === null || onPressOut === void 0 || onPressOut(e);\n runElevationAnimation('out');\n });\n var total = React.Children.count(children);\n var siblings = React.Children.map(children, function (child) {\n return React.isValidElement(child) && child.type ? child.type.displayName : null;\n });\n var computedElevation = dark && isAdaptiveMode ? elevationDarkAdaptive : elevation;\n var _getCardColors = getCardColors({\n theme: theme,\n mode: cardMode\n }),\n backgroundColor = _getCardColors.backgroundColor,\n themedBorderColor = _getCardColors.borderColor;\n var flattenedStyles = StyleSheet.flatten(style) || {};\n var _flattenedStyles$bord = flattenedStyles.borderColor,\n borderColor = _flattenedStyles$bord === void 0 ? themedBorderColor : _flattenedStyles$bord;\n var _splitStyles = splitStyles(flattenedStyles, function (style) {\n return style.startsWith('border') && style.endsWith('Radius');\n }),\n _splitStyles2 = _slicedToArray(_splitStyles, 2),\n borderRadiusStyles = _splitStyles2[1];\n var borderRadiusCombinedStyles = _objectSpread({\n borderRadius: (isV3 ? 3 : 1) * roundness\n }, borderRadiusStyles);\n var content = React.createElement(View, {\n style: [styles.innerContainer, contentStyle],\n testID: testID\n }, React.Children.map(children, function (child, index) {\n return React.isValidElement(child) ? React.cloneElement(child, {\n index: index,\n total: total,\n siblings: siblings,\n borderRadiusStyles: borderRadiusStyles\n }) : child;\n }));\n return React.createElement(Surface, _extends({\n ref: ref,\n style: [isV3 && !isMode('elevated') && {\n backgroundColor: 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: 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';\nvar Component = forwardRef(Card);\nvar CardComponent = Component;\nCardComponent.Content = CardContent;\nCardComponent.Actions = CardActions;\nCardComponent.Cover = CardCover;\nCardComponent.Title = CardTitle;\nvar 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","_ref$elevation","elevation","cardElevation","delayLongPress","onPress","onLongPress","onPressOut","onPressIn","_ref$mode","mode","cardMode","children","style","contentStyle","themeOverrides","theme","_ref$testID","testID","accessible","disabled","rest","_objectWithoutProperties","_excluded","isMode","useCallback","modeToCompare","hasPassedTouchHandler","_React$useRef","useRef","Value","current","_React$useRef2","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","_getCardColors","backgroundColor","themedBorderColor","borderColor","flattenedStyles","flatten","_flattenedStyles$bord","_splitStyles","startsWith","endsWith","_splitStyles2","_slicedToArray","borderRadiusStyles","borderRadiusCombinedStyles","_objectSpread","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,IAAMC,IAAI,GAAG,SAAPA,IAAIA,CAAAC,IAAA,EAkBRC,GAA6B,EAC1B;EAAA,IAAAC,cAAA,GAAAF,IAAA,CAjBDG,SAAS;IAAEC,aAAa,GAAAF,cAAA,cAAG,CAAC,GAAAA,cAAA;IAC5BG,cAAc,GAAAL,IAAA,CAAdK,cAAc;IACdC,OAAO,GAAAN,IAAA,CAAPM,OAAO;IACPC,WAAW,GAAAP,IAAA,CAAXO,WAAW;IACXC,UAAU,GAAAR,IAAA,CAAVQ,UAAU;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