docstring_tokens
stringlengths
0
76.5k
code_tokens
stringlengths
75
1.81M
label_window
sequencelengths
4
2.12k
html_url
stringlengths
74
116
file_name
stringlengths
3
311
import { Radio, Stack } from 'native-base';
<mask> import React from 'react'; <mask> import { Center, Heading, Radio } from 'native-base'; <mask> <mask> export const Example = () => { <mask> return ( <mask> <Center> <mask> <Heading mb="10" size="md"> </s> feat: example design changes (#4522) </s> remove import { IconButton, Box, Center, Heading, VStack } from 'native-base'; </s> add import { IconButton, Box, Center, VStack } from 'native-base'; </s> remove import { Slider, Heading, VStack } from 'native-base'; </s> add import { Slider, Box, VStack } from 'native-base'; </s> remove <Center> <Heading mb="10" size="md"> Sizes </Heading> <Radio.Group name="exampleGroup" defaultValue="1" accessibilityLabel="pick a size" </s> add <Radio.Group name="exampleGroup" defaultValue="1" accessibilityLabel="pick a size" > <Stack direction={{ base: 'column', md: 'row' }} alignItems="center" space={4} w="75%" maxW="300px" </s> remove import { Avatar, VStack, Heading, Center } from 'native-base'; </s> add import { Avatar, VStack, Center } from 'native-base'; </s> remove import { Checkbox, VStack, Center, Heading } from 'native-base'; </s> add import { Checkbox, VStack, Center } from 'native-base';
[ "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/primitives/Radio/size.tsx
<Radio.Group name="exampleGroup" defaultValue="1" accessibilityLabel="pick a size" > <Stack direction={{ base: 'column', md: 'row' }} alignItems="center" space={4} w="75%" maxW="300px"
<mask> import { Center, Heading, Radio } from 'native-base'; <mask> <mask> export const Example = () => { <mask> return ( <mask> <Center> <mask> <Heading mb="10" size="md"> <mask> Sizes <mask> </Heading> <mask> <Radio.Group <mask> name="exampleGroup" <mask> defaultValue="1" <mask> accessibilityLabel="pick a size" <mask> > <mask> <Radio value="1" colorScheme="red" size="sm" my={1}> <mask> Small <mask> </Radio> <mask> <Radio value="2" colorScheme="green" size="md" my={1}> </s> feat: example design changes (#4522) </s> remove <Radio value="one" my={1}> </s> add <Radio value="one" my={1} bg="blue.200"> </s> remove <Radio value="two" my={1}> </s> add <Radio value="two" my={1} bg="red.200" ref={ref}> </s> remove import { Center, Heading, Radio } from 'native-base'; </s> add import { Radio, Stack } from 'native-base'; </s> remove <Heading textAlign="center" mb="10"> Sizes </Heading> </s> add </s> remove </Radio.Group> </Center> </s> add </Stack> </Radio.Group>
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/primitives/Radio/size.tsx
</Stack> </Radio.Group>
<mask> </Radio> <mask> <Radio value="3" colorScheme="yellow" size="lg" my={1}> <mask> Large <mask> </Radio> <mask> </Radio.Group> <mask> </Center> <mask> ); <mask> }; </s> feat: example design changes (#4522) </s> remove <Radio value="two" my={1}> </s> add <Radio value="two" my={1} bg="red.200" ref={ref}> </s> remove <Radio value="one" my={1}> </s> add <Radio value="one" my={1} bg="blue.200"> </s> remove <Center> <Heading mb="10" size="md"> Sizes </Heading> <Radio.Group name="exampleGroup" defaultValue="1" accessibilityLabel="pick a size" </s> add <Radio.Group name="exampleGroup" defaultValue="1" accessibilityLabel="pick a size" > <Stack direction={{ base: 'column', md: 'row' }} alignItems="center" space={4} w="75%" maxW="300px" </s> remove <Checkbox colorScheme="purple" value="yellow" size="lg" defaultIsChecked > Devops </s> add <Checkbox value="yellow" size="lg" defaultIsChecked> UX Research </s> remove </VStack> </Box> </s> add </Box> </Center>
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/primitives/Radio/size.tsx
import { Select, Box, CheckIcon, Center } from 'native-base';
<mask> import React from 'react'; <mask> import { Select, VStack, CheckIcon } from 'native-base'; <mask> <mask> export const Example = () => { <mask> let [service, setService] = React.useState(''); <mask> <mask> return ( </s> feat: example design changes (#4522) </s> remove import { Input } from 'native-base'; </s> add import { Input, Box } from 'native-base'; </s> remove Container, </s> add Center, </s> remove import { Button, useToast, VStack } from 'native-base'; </s> add import { Button, useToast, VStack, Center } from 'native-base'; </s> remove import { Button, useToast, VStack } from 'native-base'; </s> add import { Button, useToast, VStack, Center } from 'native-base'; </s> remove import { Skeleton, VStack, HStack } from 'native-base'; </s> add import { Skeleton, VStack, HStack, Center } from 'native-base';
[ "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/primitives/Select/Basic.tsx
<Center> <Box w="3/4" maxW="300"> <Select selectedValue={service} minWidth="200" accessibilityLabel="Choose Service" placeholder="Choose Service" _selectedItem={{ bg: 'teal.600', endIcon: <CheckIcon size="5" />, }} mt={1} onValueChange={(itemValue) => setService(itemValue)} > <Select.Item label="UX Research" value="ux" /> <Select.Item label="Web Development" value="web" /> <Select.Item label="Cross Platform Development" value="cross" /> <Select.Item label="UI Designing" value="ui" /> <Select.Item label="Backend Development" value="backend" /> </Select> </Box> </Center>
<mask> export const Example = () => { <mask> let [service, setService] = React.useState(''); <mask> <mask> return ( <mask> <VStack alignItems="center" space={4}> <mask> <Select <mask> selectedValue={service} <mask> minWidth="200" <mask> accessibilityLabel="Choose Service" <mask> placeholder="Choose Service" <mask> _selectedItem={{ <mask> bg: 'teal.600', <mask> endIcon: <CheckIcon size="5" />, <mask> }} <mask> mt={1} <mask> onValueChange={(itemValue) => setService(itemValue)} <mask> > <mask> <Select.Item label="UX Research" value="ux" /> <mask> <Select.Item label="Web Development" value="web" /> <mask> <Select.Item label="Cross Platform Development" value="cross" /> <mask> <Select.Item label="UI Designing" value="ui" /> <mask> <Select.Item label="Backend Development" value="backend" /> <mask> </Select> <mask> </VStack> <mask> ); <mask> }; </s> feat: example design changes (#4522) </s> remove <Container> <FormControl isRequired isInvalid> </s> add <Center> <FormControl w="3/4" maxW="300" isRequired isInvalid> </s> remove import { Select, VStack, CheckIcon } from 'native-base'; </s> add import { Select, Box, CheckIcon, Center } from 'native-base'; </s> remove <Heading mb="10">Sizes</Heading> </s> add </s> remove <Input value={value} w={{ base: '75%', md: '25%' }} onChangeText={handleChange} placeholder="Value Controlled Input" /> </s> add <Box alignItems="center"> <Input value={value} w="75%" maxW="300px" onChangeText={handleChange} placeholder="Value Controlled Input" /> </Box> </s> remove endColor="warmGray.50" size="20" rounded="full" mt="-70" /> <HStack space="2"> <Skeleton size="5" rounded="full" /> <Skeleton size="5" rounded="full" /> <Skeleton size="5" rounded="full" /> <Skeleton size="5" rounded="full" /> <Skeleton size="5" rounded="full" /> </HStack> <Skeleton.Text lines={3} alignItems="center" px="12" /> <Skeleton mb="3" w="40" rounded="20" /> </VStack> </s> add > <Skeleton h="40" /> <Skeleton borderWidth={1} borderColor="coolGray.200" endColor="warmGray.50" size="20" rounded="full" mt="-70" /> <HStack space="2"> <Skeleton size="5" rounded="full" /> <Skeleton size="5" rounded="full" /> <Skeleton size="5" rounded="full" /> <Skeleton size="5" rounded="full" /> <Skeleton size="5" rounded="full" /> </HStack> <Skeleton.Text lines={3} alignItems="center" px="12" /> <Skeleton mb="3" w="40" rounded="20" /> </VStack> </Center>
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/primitives/Select/Basic.tsx
Center,
<mask> import React from 'react'; <mask> import { <mask> FormControl, <mask> Select, <mask> Container, <mask> CheckIcon, <mask> WarningOutlineIcon, <mask> } from 'native-base'; <mask> <mask> export const Example = () => { </s> feat: example design changes (#4522) </s> remove import { Select, VStack, CheckIcon } from 'native-base'; </s> add import { Select, Box, CheckIcon, Center } from 'native-base'; </s> remove import { FormControl, Slider, VStack, WarningOutlineIcon } from 'native-base'; </s> add import { FormControl, Slider, VStack, WarningOutlineIcon, Box, } from 'native-base'; </s> remove import { Input, FormControl, WarningOutlineIcon } from 'native-base'; </s> add import { Input, FormControl, WarningOutlineIcon, Box } from 'native-base'; </s> remove import { Button, Modal, FormControl, Input } from 'native-base'; </s> add import { Button, Modal, FormControl, Input, Center } from 'native-base';
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/primitives/Select/FormControlled.tsx
<Center> <FormControl w="3/4" maxW="300" isRequired isInvalid>
<mask> } from 'native-base'; <mask> <mask> export const Example = () => { <mask> return ( <mask> <Container> <mask> <FormControl isRequired isInvalid> <mask> <FormControl.Label>Choose service</FormControl.Label> <mask> <Select <mask> minWidth="200" <mask> accessibilityLabel="Choose Service" <mask> placeholder="Choose Service" </s> feat: example design changes (#4522) </s> remove <VStack alignItems="center" space={4}> <Select selectedValue={service} minWidth="200" accessibilityLabel="Choose Service" placeholder="Choose Service" _selectedItem={{ bg: 'teal.600', endIcon: <CheckIcon size="5" />, }} mt={1} onValueChange={(itemValue) => setService(itemValue)} > <Select.Item label="UX Research" value="ux" /> <Select.Item label="Web Development" value="web" /> <Select.Item label="Cross Platform Development" value="cross" /> <Select.Item label="UI Designing" value="ui" /> <Select.Item label="Backend Development" value="backend" /> </Select> </VStack> </s> add <Center> <Box w="3/4" maxW="300"> <Select selectedValue={service} minWidth="200" accessibilityLabel="Choose Service" placeholder="Choose Service" _selectedItem={{ bg: 'teal.600', endIcon: <CheckIcon size="5" />, }} mt={1} onValueChange={(itemValue) => setService(itemValue)} > <Select.Item label="UX Research" value="ux" /> <Select.Item label="Web Development" value="web" /> <Select.Item label="Cross Platform Development" value="cross" /> <Select.Item label="UI Designing" value="ui" /> <Select.Item label="Backend Development" value="backend" /> </Select> </Box> </Center> </s> remove import { FormControl, Slider, VStack, WarningOutlineIcon } from 'native-base'; </s> add import { FormControl, Slider, VStack, WarningOutlineIcon, Box, } from 'native-base'; </s> remove import { Input, FormControl, WarningOutlineIcon } from 'native-base'; </s> add import { Input, FormControl, WarningOutlineIcon, Box } from 'native-base'; </s> remove <VStack space={4} mx="10" width="80%"> <FormControl isInvalid> <FormControl.Label>Set your budget</FormControl.Label> <Slider defaultValue={50}> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> <FormControl.ErrorMessage leftIcon={<WarningOutlineIcon size="xs" />}> Something is wrong. </FormControl.ErrorMessage> </FormControl> </VStack> </s> add <Box alignItems="center"> <VStack space={4} w="75%" maxW="300"> <FormControl isInvalid> <FormControl.Label>Set your budget</FormControl.Label> <Slider defaultValue={50}> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> <FormControl.ErrorMessage leftIcon={<WarningOutlineIcon size="xs" />}> Something is wrong. </FormControl.ErrorMessage> </FormControl> </VStack> </Box> </s> remove import { Input } from 'native-base'; </s> add import { Input, Box } from 'native-base';
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/primitives/Select/FormControlled.tsx
</Center>
<mask> <FormControl.ErrorMessage leftIcon={<WarningOutlineIcon size="xs" />}> <mask> Please make a selection! <mask> </FormControl.ErrorMessage> <mask> </FormControl> <mask> </Container> <mask> ); <mask> }; </s> feat: example design changes (#4522) </s> remove <FormControl isInvalid w={{ base: '75%', md: '25%' }}> <FormControl.Label>Password</FormControl.Label> <Input placeholder="Enter password" /> <FormControl.ErrorMessage leftIcon={<WarningOutlineIcon size="xs" />}> Try different from previous passwords. </FormControl.ErrorMessage> </FormControl> </s> add <Box alignItems="center"> <FormControl isInvalid w="75%" maxW="300px"> <FormControl.Label>Password</FormControl.Label> <Input placeholder="Enter password" /> <FormControl.ErrorMessage leftIcon={<WarningOutlineIcon size="xs" />}> Try different from previous passwords. </FormControl.ErrorMessage> </FormControl> </Box> </s> remove <VStack space={4} mx="10" width="80%"> <FormControl isInvalid> <FormControl.Label>Set your budget</FormControl.Label> <Slider defaultValue={50}> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> <FormControl.ErrorMessage leftIcon={<WarningOutlineIcon size="xs" />}> Something is wrong. </FormControl.ErrorMessage> </FormControl> </VStack> </s> add <Box alignItems="center"> <VStack space={4} w="75%" maxW="300"> <FormControl isInvalid> <FormControl.Label>Set your budget</FormControl.Label> <Slider defaultValue={50}> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> <FormControl.ErrorMessage leftIcon={<WarningOutlineIcon size="xs" />}> Something is wrong. </FormControl.ErrorMessage> </FormControl> </VStack> </Box> </s> remove <Box w={{ base: '90%', md: '25%' }}> <FormControl isRequired> <Stack mx="4"> <FormControl.Label>Password</FormControl.Label> <Input type="password" defaultValue="12345" placeholder="password" /> <FormControl.HelperText> Must be atleast 6 characters. </FormControl.HelperText> <FormControl.ErrorMessage leftIcon={<WarningOutlineIcon size="xs" />}> Atleast 6 characters are required. </FormControl.ErrorMessage> </Stack> </FormControl> </s> add <Box alignItems="center"> <Box w="90%" maxWidth="300px"> <FormControl isRequired> <Stack mx="4"> <FormControl.Label>Password</FormControl.Label> <Input type="password" defaultValue="12345" placeholder="password" /> <FormControl.HelperText> Must be atleast 6 characters. </FormControl.HelperText> <FormControl.ErrorMessage leftIcon={<WarningOutlineIcon size="xs" />} > Atleast 6 characters are required. </FormControl.ErrorMessage> </Stack> </FormControl> </Box> </s> remove <Container> <FormControl isInvalid> <FormControl.Label _text={{ fontSize: 'lg', bold: true }}> Preferred contact method </FormControl.Label> <Text fontSize="md">Selected Values: </Text> <Checkbox.Group mt="2" colorScheme="green" defaultValue={groupValue} accessibilityLabel="choose multiple items" onChange={(values) => { setGroupValue(values || []); }} alignItems="flex-start" > <Checkbox value="Phone" my="1"> Phone </Checkbox> <Checkbox value="Email" my="1"> Email </Checkbox> <Checkbox value="Message" my="1"> Message </Checkbox> <Checkbox value="Fax" my="1"> Fax </Checkbox> </Checkbox.Group> <FormControl.ErrorMessage leftIcon={<WarningOutlineIcon size="xs" />}> You must select at least three methods </FormControl.ErrorMessage> </FormControl> </Container> </s> add <Box alignItems="center"> <Container> <FormControl isInvalid> <FormControl.Label _text={{ fontSize: 'lg', bold: true }}> Preferred contact method </FormControl.Label> <Text fontSize="md">Selected Values: </Text> <Checkbox.Group mt="2" colorScheme="green" defaultValue={groupValue} accessibilityLabel="choose multiple items" onChange={(values) => { setGroupValue(values || []); }} alignItems="flex-start" > <Checkbox value="Phone" my="1"> Phone </Checkbox> <Checkbox value="Email" my="1"> Email </Checkbox> <Checkbox value="Message" my="1"> Message </Checkbox> <Checkbox value="Fax" my="1"> Fax </Checkbox> </Checkbox.Group> <FormControl.ErrorMessage leftIcon={<WarningOutlineIcon size="xs" />}> You must select at least three methods </FormControl.ErrorMessage> </FormControl> </Container> </Box> </s> remove <Container> <Heading> A component library for the <Heading color="emerald.500"> React Ecosystem</Heading> </Heading> <Text mt="3" fontWeight="medium"> NativeBase is a simple, modular and accessible component library that gives you building blocks to build you React applications. </Text> </Container> </s> add <Center> <Container> <Heading> A component library for the <Text color="emerald.500"> React Ecosystem</Text> </Heading> <Text mt="3" fontWeight="medium"> NativeBase is a simple, modular and accessible component library that gives you building blocks to build you React applications. </Text> </Container> </Center>
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/primitives/Select/FormControlled.tsx
<Box alignItems="center"> <Slider defaultValue={70} size="sm" colorScheme="green" w="75%" maxW="300" >
<mask> import { MaterialIcons } from '@expo/vector-icons'; <mask> <mask> export const Example = () => { <mask> return ( <mask> <Box mx="5" width="80%"> <mask> <Slider defaultValue={70} size="sm" colorScheme="green"> <mask> <Slider.Track bg="green.100"> <mask> <Slider.FilledTrack bg="green.600" /> <mask> </Slider.Track> <mask> <Slider.Thumb borderWidth="0" bg="transparent"> <mask> <Icon as={MaterialIcons} name="park" color="green.600" size="sm" /> </s> feat: example design changes (#4522) </s> remove <VStack width="80%" space={4}> <Heading mb="10" textAlign="center"> Color Schemes </Heading> <Slider defaultValue={70} colorScheme="orange"> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> <Slider defaultValue={70} colorScheme="emerald"> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> <Slider defaultValue={70} colorScheme="indigo"> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> </VStack> </s> add <Box alignItems="center"> <VStack w="3/4" maxW="300" space={4}> <Slider defaultValue={70} colorScheme="orange"> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> <Slider defaultValue={70} colorScheme="emerald"> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> <Slider defaultValue={70} colorScheme="indigo"> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> </VStack> </Box> </s> remove <VStack space={4} width="80%"> <Heading mb="10" textAlign="center"> Sizes </Heading> <Slider defaultValue={40} size="sm"> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> <Slider defaultValue={60} size="md"> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> <Slider defaultValue={80} size="lg"> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> </VStack> </s> add <Box alignItems="center"> <VStack space={4} w="75%" maxW="300"> <Slider defaultValue={40} size="sm"> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> <Slider defaultValue={60} size="md"> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> <Slider defaultValue={80} size="lg"> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> </VStack> </Box> </s> remove <Box mx="5" width="80%"> </s> add <Box alignItems="center"> </s> remove <VStack space={4} mx="10" width="80%"> <FormControl isInvalid> <FormControl.Label>Set your budget</FormControl.Label> <Slider defaultValue={50}> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> <FormControl.ErrorMessage leftIcon={<WarningOutlineIcon size="xs" />}> Something is wrong. </FormControl.ErrorMessage> </FormControl> </VStack> </s> add <Box alignItems="center"> <VStack space={4} w="75%" maxW="300"> <FormControl isInvalid> <FormControl.Label>Set your budget</FormControl.Label> <Slider defaultValue={50}> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> <FormControl.ErrorMessage leftIcon={<WarningOutlineIcon size="xs" />}> Something is wrong. </FormControl.ErrorMessage> </FormControl> </VStack> </Box> </s> remove <Stack mx="5" space={4} alignItems="center" w="80%"> <Text textAlign="center">onChangeValue - {onChangeValue}</Text> <Text textAlign="center">onChangeEndValue - {onChangeEndValue}</Text> <Box mx="5" w="80%"> </s> add <Box alignItems="center"> <Stack space={4} alignItems="center" w="75%" maxW="300"> <Text textAlign="center">onChangeValue - {onChangeValue}</Text> <Text textAlign="center">onChangeEndValue - {onChangeEndValue}</Text>
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/primitives/Slider/Customized.tsx
import { FormControl, Slider, VStack, WarningOutlineIcon, Box, } from 'native-base';
<mask> import React from 'react'; <mask> import { FormControl, Slider, VStack, WarningOutlineIcon } from 'native-base'; <mask> <mask> export const Example = () => { <mask> return ( <mask> <VStack space={4} mx="10" width="80%"> <mask> <FormControl isInvalid> </s> feat: example design changes (#4522) </s> remove <VStack space={4} mx="10" width="80%"> <FormControl isInvalid> <FormControl.Label>Set your budget</FormControl.Label> <Slider defaultValue={50}> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> <FormControl.ErrorMessage leftIcon={<WarningOutlineIcon size="xs" />}> Something is wrong. </FormControl.ErrorMessage> </FormControl> </VStack> </s> add <Box alignItems="center"> <VStack space={4} w="75%" maxW="300"> <FormControl isInvalid> <FormControl.Label>Set your budget</FormControl.Label> <Slider defaultValue={50}> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> <FormControl.ErrorMessage leftIcon={<WarningOutlineIcon size="xs" />}> Something is wrong. </FormControl.ErrorMessage> </FormControl> </VStack> </Box> </s> remove import { Slider, VStack, Heading } from 'native-base'; </s> add import { Slider, VStack, Box } from 'native-base'; </s> remove import { Input, FormControl, WarningOutlineIcon } from 'native-base'; </s> add import { Input, FormControl, WarningOutlineIcon, Box } from 'native-base'; </s> remove <Container> <FormControl isRequired isInvalid> </s> add <Center> <FormControl w="3/4" maxW="300" isRequired isInvalid> </s> remove import { Slider, Heading, VStack } from 'native-base'; </s> add import { Slider, Box, VStack } from 'native-base';
[ "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/primitives/Slider/FormControlled.tsx
<Box alignItems="center"> <VStack space={4} w="75%" maxW="300"> <FormControl isInvalid> <FormControl.Label>Set your budget</FormControl.Label> <Slider defaultValue={50}> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> <FormControl.ErrorMessage leftIcon={<WarningOutlineIcon size="xs" />}> Something is wrong. </FormControl.ErrorMessage> </FormControl> </VStack> </Box>
<mask> import { FormControl, Slider, VStack, WarningOutlineIcon } from 'native-base'; <mask> <mask> export const Example = () => { <mask> return ( <mask> <VStack space={4} mx="10" width="80%"> <mask> <FormControl isInvalid> <mask> <FormControl.Label>Set your budget</FormControl.Label> <mask> <Slider defaultValue={50}> <mask> <Slider.Track> <mask> <Slider.FilledTrack /> <mask> </Slider.Track> <mask> <Slider.Thumb /> <mask> </Slider> <mask> <FormControl.ErrorMessage leftIcon={<WarningOutlineIcon size="xs" />}> <mask> Something is wrong. <mask> </FormControl.ErrorMessage> <mask> </FormControl> <mask> </VStack> <mask> ); <mask> }; </s> feat: example design changes (#4522) </s> remove <VStack space={4} width="80%"> <Heading mb="10" textAlign="center"> Sizes </Heading> <Slider defaultValue={40} size="sm"> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> <Slider defaultValue={60} size="md"> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> <Slider defaultValue={80} size="lg"> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> </VStack> </s> add <Box alignItems="center"> <VStack space={4} w="75%" maxW="300"> <Slider defaultValue={40} size="sm"> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> <Slider defaultValue={60} size="md"> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> <Slider defaultValue={80} size="lg"> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> </VStack> </Box> </s> remove <VStack width="80%" space={4}> <Heading mb="10" textAlign="center"> Color Schemes </Heading> <Slider defaultValue={70} colorScheme="orange"> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> <Slider defaultValue={70} colorScheme="emerald"> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> <Slider defaultValue={70} colorScheme="indigo"> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> </VStack> </s> add <Box alignItems="center"> <VStack w="3/4" maxW="300" space={4}> <Slider defaultValue={70} colorScheme="orange"> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> <Slider defaultValue={70} colorScheme="emerald"> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> <Slider defaultValue={70} colorScheme="indigo"> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> </VStack> </Box> </s> remove import { FormControl, Slider, VStack, WarningOutlineIcon } from 'native-base'; </s> add import { FormControl, Slider, VStack, WarningOutlineIcon, Box, } from 'native-base'; </s> remove <FormControl isInvalid w={{ base: '75%', md: '25%' }}> <FormControl.Label>Password</FormControl.Label> <Input placeholder="Enter password" /> <FormControl.ErrorMessage leftIcon={<WarningOutlineIcon size="xs" />}> Try different from previous passwords. </FormControl.ErrorMessage> </FormControl> </s> add <Box alignItems="center"> <FormControl isInvalid w="75%" maxW="300px"> <FormControl.Label>Password</FormControl.Label> <Input placeholder="Enter password" /> <FormControl.ErrorMessage leftIcon={<WarningOutlineIcon size="xs" />}> Try different from previous passwords. </FormControl.ErrorMessage> </FormControl> </Box> </s> remove <Box w={{ base: '90%', md: '25%' }}> <FormControl isRequired> <Stack mx="4"> <FormControl.Label>Password</FormControl.Label> <Input type="password" defaultValue="12345" placeholder="password" /> <FormControl.HelperText> Must be atleast 6 characters. </FormControl.HelperText> <FormControl.ErrorMessage leftIcon={<WarningOutlineIcon size="xs" />}> Atleast 6 characters are required. </FormControl.ErrorMessage> </Stack> </FormControl> </s> add <Box alignItems="center"> <Box w="90%" maxWidth="300px"> <FormControl isRequired> <Stack mx="4"> <FormControl.Label>Password</FormControl.Label> <Input type="password" defaultValue="12345" placeholder="password" /> <FormControl.HelperText> Must be atleast 6 characters. </FormControl.HelperText> <FormControl.ErrorMessage leftIcon={<WarningOutlineIcon size="xs" />} > Atleast 6 characters are required. </FormControl.ErrorMessage> </Stack> </FormControl> </Box>
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/primitives/Slider/FormControlled.tsx
import { Slider, VStack, Box } from 'native-base';
<mask> import React from 'react'; <mask> import { Slider, VStack, Heading } from 'native-base'; <mask> <mask> export const Example = () => { <mask> return ( <mask> <VStack space={4} width="80%"> <mask> <Heading mb="10" textAlign="center"> </s> feat: example design changes (#4522) </s> remove import { Slider, Heading, VStack } from 'native-base'; </s> add import { Slider, Box, VStack } from 'native-base'; </s> remove import { FormControl, Slider, VStack, WarningOutlineIcon } from 'native-base'; </s> add import { FormControl, Slider, VStack, WarningOutlineIcon, Box, } from 'native-base'; </s> remove import { Switch, VStack, Heading } from 'native-base'; </s> add import { Switch, VStack } from 'native-base'; </s> remove import { Switch, VStack, Heading } from 'native-base'; </s> add import { Switch, VStack } from 'native-base'; </s> remove import { Switch, VStack, Heading } from 'native-base'; </s> add import { Switch, VStack } from 'native-base';
[ "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/primitives/Slider/Size.tsx
<Box alignItems="center"> <VStack space={4} w="75%" maxW="300"> <Slider defaultValue={40} size="sm"> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> <Slider defaultValue={60} size="md"> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> <Slider defaultValue={80} size="lg"> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> </VStack> </Box>
<mask> import { Slider, VStack, Heading } from 'native-base'; <mask> <mask> export const Example = () => { <mask> return ( <mask> <VStack space={4} width="80%"> <mask> <Heading mb="10" textAlign="center"> <mask> Sizes <mask> </Heading> <mask> <Slider defaultValue={40} size="sm"> <mask> <Slider.Track> <mask> <Slider.FilledTrack /> <mask> </Slider.Track> <mask> <Slider.Thumb /> <mask> </Slider> <mask> <Slider defaultValue={60} size="md"> <mask> <Slider.Track> <mask> <Slider.FilledTrack /> <mask> </Slider.Track> <mask> <Slider.Thumb /> <mask> </Slider> <mask> <Slider defaultValue={80} size="lg"> <mask> <Slider.Track> <mask> <Slider.FilledTrack /> <mask> </Slider.Track> <mask> <Slider.Thumb /> <mask> </Slider> <mask> </VStack> <mask> ); <mask> }; </s> feat: example design changes (#4522) </s> remove <VStack width="80%" space={4}> <Heading mb="10" textAlign="center"> Color Schemes </Heading> <Slider defaultValue={70} colorScheme="orange"> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> <Slider defaultValue={70} colorScheme="emerald"> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> <Slider defaultValue={70} colorScheme="indigo"> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> </VStack> </s> add <Box alignItems="center"> <VStack w="3/4" maxW="300" space={4}> <Slider defaultValue={70} colorScheme="orange"> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> <Slider defaultValue={70} colorScheme="emerald"> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> <Slider defaultValue={70} colorScheme="indigo"> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> </VStack> </Box> </s> remove <VStack space={4} mx="10" width="80%"> <FormControl isInvalid> <FormControl.Label>Set your budget</FormControl.Label> <Slider defaultValue={50}> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> <FormControl.ErrorMessage leftIcon={<WarningOutlineIcon size="xs" />}> Something is wrong. </FormControl.ErrorMessage> </FormControl> </VStack> </s> add <Box alignItems="center"> <VStack space={4} w="75%" maxW="300"> <FormControl isInvalid> <FormControl.Label>Set your budget</FormControl.Label> <Slider defaultValue={50}> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> <FormControl.ErrorMessage leftIcon={<WarningOutlineIcon size="xs" />}> Something is wrong. </FormControl.ErrorMessage> </FormControl> </VStack> </Box> </s> remove </Box> </Stack> </s> add </Stack> </Box> </s> remove <Box mx="5" width="80%"> <Slider defaultValue={70} size="sm" colorScheme="green"> </s> add <Box alignItems="center"> <Slider defaultValue={70} size="sm" colorScheme="green" w="75%" maxW="300" > </s> remove import { Slider, VStack, Heading } from 'native-base'; </s> add import { Slider, VStack, Box } from 'native-base';
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/primitives/Slider/Size.tsx
<Box alignItems="center"> <Stack space={4} alignItems="center" w="75%" maxW="300"> <Text textAlign="center">onChangeValue - {onChangeValue}</Text> <Text textAlign="center">onChangeEndValue - {onChangeEndValue}</Text>
<mask> export const Example = () => { <mask> const [onChangeValue, setOnChangeValue] = React.useState(70); <mask> const [onChangeEndValue, setOnChangeEndValue] = React.useState(70); <mask> return ( <mask> <Stack mx="5" space={4} alignItems="center" w="80%"> <mask> <Text textAlign="center">onChangeValue - {onChangeValue}</Text> <mask> <Text textAlign="center">onChangeEndValue - {onChangeEndValue}</Text> <mask> <mask> <Box mx="5" w="80%"> <mask> <Slider <mask> defaultValue={70} <mask> colorScheme="cyan" <mask> onChange={(v) => { <mask> setOnChangeValue(Math.floor(v)); </s> feat: example design changes (#4522) </s> remove <Box mx="5" width="80%"> </s> add <Box alignItems="center"> </s> remove <Box mx="5" width="80%"> <Slider defaultValue={70} size="sm" colorScheme="green"> </s> add <Box alignItems="center"> <Slider defaultValue={70} size="sm" colorScheme="green" w="75%" maxW="300" > </s> remove <VStack space={1} alignItems="center" mt={3}> <Heading textAlign="center" mb="10"> Sizes </Heading> </s> add <VStack space={1} alignItems="center"> </s> remove const [show, setShow] = React.useState(false); </s> add
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/primitives/Slider/Value.tsx
</Stack> </Box>
<mask> <Slider.FilledTrack /> <mask> </Slider.Track> <mask> <Slider.Thumb /> <mask> </Slider> <mask> </Box> <mask> </Stack> <mask> ); <mask> }; </s> feat: example design changes (#4522) </s> remove <VStack space={4} width="80%"> <Heading mb="10" textAlign="center"> Sizes </Heading> <Slider defaultValue={40} size="sm"> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> <Slider defaultValue={60} size="md"> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> <Slider defaultValue={80} size="lg"> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> </VStack> </s> add <Box alignItems="center"> <VStack space={4} w="75%" maxW="300"> <Slider defaultValue={40} size="sm"> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> <Slider defaultValue={60} size="md"> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> <Slider defaultValue={80} size="lg"> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> </VStack> </Box> </s> remove <VStack width="80%" space={4}> <Heading mb="10" textAlign="center"> Color Schemes </Heading> <Slider defaultValue={70} colorScheme="orange"> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> <Slider defaultValue={70} colorScheme="emerald"> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> <Slider defaultValue={70} colorScheme="indigo"> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> </VStack> </s> add <Box alignItems="center"> <VStack w="3/4" maxW="300" space={4}> <Slider defaultValue={70} colorScheme="orange"> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> <Slider defaultValue={70} colorScheme="emerald"> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> <Slider defaultValue={70} colorScheme="indigo"> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> </VStack> </Box> </s> remove <VStack space={4} mx="10" width="80%"> <FormControl isInvalid> <FormControl.Label>Set your budget</FormControl.Label> <Slider defaultValue={50}> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> <FormControl.ErrorMessage leftIcon={<WarningOutlineIcon size="xs" />}> Something is wrong. </FormControl.ErrorMessage> </FormControl> </VStack> </s> add <Box alignItems="center"> <VStack space={4} w="75%" maxW="300"> <FormControl isInvalid> <FormControl.Label>Set your budget</FormControl.Label> <Slider defaultValue={50}> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> <FormControl.ErrorMessage leftIcon={<WarningOutlineIcon size="xs" />}> Something is wrong. </FormControl.ErrorMessage> </FormControl> </VStack> </Box> </s> remove <Box mx="5" width="80%"> <Slider defaultValue={70} size="sm" colorScheme="green"> </s> add <Box alignItems="center"> <Slider defaultValue={70} size="sm" colorScheme="green" w="75%" maxW="300" > </s> remove <TextArea aria-label="t1Disabled" placeholder="Disabled TextArea" isDisabled /> </Box> </Stack> </s> add <TextArea aria-label="t1Disabled" placeholder="Disabled TextArea" isDisabled /> </Box> </Stack> </Box>
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/primitives/Slider/Value.tsx
import { Slider, Box, VStack } from 'native-base';
<mask> import React from 'react'; <mask> import { Slider, Heading, VStack } from 'native-base'; <mask> <mask> export const Example = () => { <mask> return ( <mask> <VStack width="80%" space={4}> <mask> <Heading mb="10" textAlign="center"> </s> feat: example design changes (#4522) </s> remove import { Slider, VStack, Heading } from 'native-base'; </s> add import { Slider, VStack, Box } from 'native-base'; </s> remove import { Heading, Text, VStack } from 'native-base'; </s> add import { Text, VStack } from 'native-base'; </s> remove import { Button, Box, Heading, VStack } from 'native-base'; </s> add import { Button, Box, VStack } from 'native-base'; </s> remove import { Center, Heading, Radio } from 'native-base'; </s> add import { Radio, Stack } from 'native-base'; </s> remove <VStack width="80%" space={4}> <Heading mb="10" textAlign="center"> Color Schemes </Heading> <Slider defaultValue={70} colorScheme="orange"> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> <Slider defaultValue={70} colorScheme="emerald"> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> <Slider defaultValue={70} colorScheme="indigo"> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> </VStack> </s> add <Box alignItems="center"> <VStack w="3/4" maxW="300" space={4}> <Slider defaultValue={70} colorScheme="orange"> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> <Slider defaultValue={70} colorScheme="emerald"> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> <Slider defaultValue={70} colorScheme="indigo"> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> </VStack> </Box>
[ "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/primitives/Slider/color.tsx
<Box alignItems="center"> <VStack w="3/4" maxW="300" space={4}> <Slider defaultValue={70} colorScheme="orange"> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> <Slider defaultValue={70} colorScheme="emerald"> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> <Slider defaultValue={70} colorScheme="indigo"> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> </VStack> </Box>
<mask> import { Slider, Heading, VStack } from 'native-base'; <mask> <mask> export const Example = () => { <mask> return ( <mask> <VStack width="80%" space={4}> <mask> <Heading mb="10" textAlign="center"> <mask> Color Schemes <mask> </Heading> <mask> <Slider defaultValue={70} colorScheme="orange"> <mask> <Slider.Track> <mask> <Slider.FilledTrack /> <mask> </Slider.Track> <mask> <Slider.Thumb /> <mask> </Slider> <mask> <Slider defaultValue={70} colorScheme="emerald"> <mask> <Slider.Track> <mask> <Slider.FilledTrack /> <mask> </Slider.Track> <mask> <Slider.Thumb /> <mask> </Slider> <mask> <Slider defaultValue={70} colorScheme="indigo"> <mask> <Slider.Track> <mask> <Slider.FilledTrack /> <mask> </Slider.Track> <mask> <Slider.Thumb /> <mask> </Slider> <mask> </VStack> <mask> ); <mask> }; </s> feat: example design changes (#4522) </s> remove <VStack space={4} width="80%"> <Heading mb="10" textAlign="center"> Sizes </Heading> <Slider defaultValue={40} size="sm"> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> <Slider defaultValue={60} size="md"> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> <Slider defaultValue={80} size="lg"> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> </VStack> </s> add <Box alignItems="center"> <VStack space={4} w="75%" maxW="300"> <Slider defaultValue={40} size="sm"> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> <Slider defaultValue={60} size="md"> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> <Slider defaultValue={80} size="lg"> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> </VStack> </Box> </s> remove <VStack space={4} mx="10" width="80%"> <FormControl isInvalid> <FormControl.Label>Set your budget</FormControl.Label> <Slider defaultValue={50}> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> <FormControl.ErrorMessage leftIcon={<WarningOutlineIcon size="xs" />}> Something is wrong. </FormControl.ErrorMessage> </FormControl> </VStack> </s> add <Box alignItems="center"> <VStack space={4} w="75%" maxW="300"> <FormControl isInvalid> <FormControl.Label>Set your budget</FormControl.Label> <Slider defaultValue={50}> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> <FormControl.ErrorMessage leftIcon={<WarningOutlineIcon size="xs" />}> Something is wrong. </FormControl.ErrorMessage> </FormControl> </VStack> </Box> </s> remove <Box mx="5" width="80%"> <Slider defaultValue={70} size="sm" colorScheme="green"> </s> add <Box alignItems="center"> <Slider defaultValue={70} size="sm" colorScheme="green" w="75%" maxW="300" > </s> remove </Box> </Stack> </s> add </Stack> </Box> </s> remove import { Slider, Heading, VStack } from 'native-base'; </s> add import { Slider, Box, VStack } from 'native-base';
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/primitives/Slider/color.tsx
<Box alignItems="center">
<mask> import { Slider, Box } from 'native-base'; <mask> <mask> export const Example = () => { <mask> return ( <mask> <Box mx="5" width="80%"> <mask> <Slider <mask> defaultValue={70} <mask> minValue={0} <mask> maxValue={100} <mask> accessibilityLabel="hello world" </s> feat: example design changes (#4522) </s> remove <Box mx="5" width="80%"> <Slider defaultValue={70} size="sm" colorScheme="green"> </s> add <Box alignItems="center"> <Slider defaultValue={70} size="sm" colorScheme="green" w="75%" maxW="300" > </s> remove import { Slider, VStack, Heading } from 'native-base'; </s> add import { Slider, VStack, Box } from 'native-base'; </s> remove <Stack mx="5" space={4} alignItems="center" w="80%"> <Text textAlign="center">onChangeValue - {onChangeValue}</Text> <Text textAlign="center">onChangeEndValue - {onChangeEndValue}</Text> <Box mx="5" w="80%"> </s> add <Box alignItems="center"> <Stack space={4} alignItems="center" w="75%" maxW="300"> <Text textAlign="center">onChangeValue - {onChangeValue}</Text> <Text textAlign="center">onChangeEndValue - {onChangeEndValue}</Text> </s> remove import { FormControl, Slider, VStack, WarningOutlineIcon } from 'native-base'; </s> add import { FormControl, Slider, VStack, WarningOutlineIcon, Box, } from 'native-base';
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/primitives/Slider/usage.tsx
w="3/4" maxW="300"
<mask> export const Example = () => { <mask> return ( <mask> <Box alignItems="center"> <mask> <Slider <mask> defaultValue={70} <mask> minValue={0} <mask> maxValue={100} <mask> accessibilityLabel="hello world" <mask> step={10} </s> feat: example design changes (#4522) </s> remove <Box mx="5" width="80%"> </s> add <Box alignItems="center"> </s> remove <Box mx="5" width="80%"> <Slider defaultValue={70} size="sm" colorScheme="green"> </s> add <Box alignItems="center"> <Slider defaultValue={70} size="sm" colorScheme="green" w="75%" maxW="300" > </s> remove <VStack width="80%" space={4}> <Heading mb="10" textAlign="center"> Color Schemes </Heading> <Slider defaultValue={70} colorScheme="orange"> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> <Slider defaultValue={70} colorScheme="emerald"> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> <Slider defaultValue={70} colorScheme="indigo"> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> </VStack> </s> add <Box alignItems="center"> <VStack w="3/4" maxW="300" space={4}> <Slider defaultValue={70} colorScheme="orange"> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> <Slider defaultValue={70} colorScheme="emerald"> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> <Slider defaultValue={70} colorScheme="indigo"> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> </VStack> </Box> </s> remove <Stack mx="5" space={4} alignItems="center" w="80%"> <Text textAlign="center">onChangeValue - {onChangeValue}</Text> <Text textAlign="center">onChangeEndValue - {onChangeEndValue}</Text> <Box mx="5" w="80%"> </s> add <Box alignItems="center"> <Stack space={4} alignItems="center" w="75%" maxW="300"> <Text textAlign="center">onChangeValue - {onChangeValue}</Text> <Text textAlign="center">onChangeEndValue - {onChangeEndValue}</Text> </s> remove <VStack space={4} width="80%"> <Heading mb="10" textAlign="center"> Sizes </Heading> <Slider defaultValue={40} size="sm"> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> <Slider defaultValue={60} size="md"> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> <Slider defaultValue={80} size="lg"> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> </VStack> </s> add <Box alignItems="center"> <VStack space={4} w="75%" maxW="300"> <Slider defaultValue={40} size="sm"> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> <Slider defaultValue={60} size="md"> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> <Slider defaultValue={80} size="lg"> <Slider.Track> <Slider.FilledTrack /> </Slider.Track> <Slider.Thumb /> </Slider> </VStack> </Box>
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/primitives/Slider/usage.tsx
import { Spinner, HStack } from 'native-base';
<mask> import React from 'react'; <mask> import { Spinner, VStack, Heading } from 'native-base'; <mask> <mask> export const Example = () => { <mask> return ( <mask> <VStack space={4} alignItems="center"> <mask> <Heading textAlign="center" mb="10"> </s> feat: example design changes (#4522) </s> remove import { Spinner, VStack, Heading } from 'native-base'; </s> add import { Spinner, HStack } from 'native-base'; </s> remove import { Switch, VStack, Heading } from 'native-base'; </s> add import { Switch, VStack } from 'native-base'; </s> remove import { Switch, VStack, Heading } from 'native-base'; </s> add import { Switch, VStack } from 'native-base'; </s> remove <VStack space={4} alignItems="center"> <Heading textAlign="center" mb="10"> Sizes </Heading> </s> add <HStack space={8} justifyContent="center" alignItems="center"> </s> remove import { VStack, Center, Heading } from 'native-base'; </s> add import { VStack, Center } from 'native-base';
[ "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/primitives/Spinner/color.tsx
<HStack space={8} justifyContent="center">
<mask> import { Spinner, VStack, Heading } from 'native-base'; <mask> <mask> export const Example = () => { <mask> return ( <mask> <VStack space={4} alignItems="center"> <mask> <Heading textAlign="center" mb="10"> <mask> Color Scheme <mask> </Heading> <mask> <Spinner color="emerald.500" /> <mask> <Spinner color="warning.500" /> <mask> <Spinner color="indigo.500" /> <mask> <Spinner color="cyan.500" /> <mask> </VStack> </s> feat: example design changes (#4522) </s> remove </VStack> </s> add </HStack> </s> remove <VStack space={4} alignItems="center"> <Heading textAlign="center" mb="10"> Sizes </Heading> </s> add <HStack space={8} justifyContent="center" alignItems="center"> </s> remove <HStack space={2} alignItems="center"> </s> add <HStack space={2} justifyContent="center"> </s> remove <Heading textAlign="center" mb="10"> Color Scheme </Heading> </s> add </s> remove </VStack> </s> add </HStack>
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/primitives/Spinner/color.tsx
</HStack>
<mask> <Spinner color="emerald.500" /> <mask> <Spinner color="warning.500" /> <mask> <Spinner color="indigo.500" /> <mask> <Spinner color="cyan.500" /> <mask> </VStack> <mask> ); <mask> }; </s> feat: example design changes (#4522) </s> remove <VStack space={4} alignItems="center"> <Heading textAlign="center" mb="10"> Color Scheme </Heading> </s> add <HStack space={8} justifyContent="center"> </s> remove </VStack> </s> add </HStack> </s> remove <VStack space={4} alignItems="center"> <Heading textAlign="center" mb="10"> Sizes </Heading> </s> add <HStack space={8} justifyContent="center" alignItems="center"> </s> remove <HStack space={2} alignItems="center"> </s> add <HStack space={2} justifyContent="center"> </s> remove </VStack> </Box> </s> add </Box> </Center>
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/primitives/Spinner/color.tsx
import { Spinner, HStack } from 'native-base';
<mask> import React from 'react'; <mask> import { Spinner, VStack, Heading } from 'native-base'; <mask> <mask> export const Example = () => { <mask> return ( <mask> <VStack space={4} alignItems="center"> <mask> <Heading textAlign="center" mb="10"> </s> feat: example design changes (#4522)
[ "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/primitives/Spinner/size.tsx
<HStack space={8} justifyContent="center" alignItems="center">
<mask> import { Spinner, VStack, Heading } from 'native-base'; <mask> <mask> export const Example = () => { <mask> return ( <mask> <VStack space={4} alignItems="center"> <mask> <Heading textAlign="center" mb="10"> <mask> Sizes <mask> </Heading> <mask> <Spinner size="sm" /> <mask> <Spinner size="lg" /> <mask> </VStack> <mask> ); <mask> }; </s> feat: example design changes (#4522) </s> remove <VStack space={4} alignItems="center"> <Heading textAlign="center" mb="10"> Color Scheme </Heading> </s> add <HStack space={8} justifyContent="center"> </s> remove </VStack> </s> add </HStack> </s> remove import { Spinner, VStack, Heading } from 'native-base'; </s> add import { Spinner, HStack } from 'native-base'; </s> remove import { Spinner, VStack, Heading } from 'native-base'; </s> add import { Spinner, HStack } from 'native-base'; </s> remove <HStack space={2} alignItems="center"> </s> add <HStack space={2} justifyContent="center">
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/primitives/Spinner/size.tsx
</HStack>
<mask> Sizes <mask> </Heading> <mask> <Spinner size="sm" /> <mask> <Spinner size="lg" /> <mask> </VStack> <mask> ); <mask> }; </s> feat: example design changes (#4522) </s> remove <VStack space={4} alignItems="center"> <Heading textAlign="center" mb="10"> Sizes </Heading> </s> add <HStack space={8} justifyContent="center" alignItems="center"> </s> remove </VStack> </s> add </HStack> </s> remove <VStack space={4} alignItems="center"> <Heading textAlign="center" mb="10"> Color Scheme </Heading> </s> add <HStack space={8} justifyContent="center"> </s> remove <Box w="90%"> <VStack space="md"> <Heading textAlign="center" size="md" mb="10"> Progress Sizes </Heading> <VStack mx="4" space="md"> <Progress size="xs" mb={4} value={25} /> <Progress size="sm" mb={4} value={35} /> <Progress size="md" mb={4} value={45} /> <Progress size="lg" mb={4} value={55} /> <Progress size="xl" mb={4} value={65} /> <Progress size="2xl" mb={4} value={75} /> </s> add <Center> <Box w="90%" maxW="400"> <VStack space="md"> <VStack mx="4" space="md"> <Progress size="xs" mb={4} value={25} /> <Progress size="sm" mb={4} value={35} /> <Progress size="md" mb={4} value={45} /> <Progress size="lg" mb={4} value={55} /> <Progress size="xl" mb={4} value={65} /> <Progress size="2xl" mb={4} value={75} /> </VStack> </s> remove <Heading mb="10">Sizes</Heading> </s> add
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/primitives/Spinner/size.tsx
<HStack space={2} justifyContent="center">
<mask> import { Spinner, HStack, Heading } from 'native-base'; <mask> <mask> export const Example = () => { <mask> return ( <mask> <HStack space={2} alignItems="center"> <mask> <Spinner accessibilityLabel="Loading posts" /> <mask> <Heading color="primary.500" fontSize="md"> <mask> Loading <mask> </Heading> <mask> </HStack> </s> feat: example design changes (#4522) </s> remove <VStack space={4} alignItems="center"> <Heading textAlign="center" mb="10"> Color Scheme </Heading> </s> add <HStack space={8} justifyContent="center"> </s> remove <VStack space={4} alignItems="center"> <Heading textAlign="center" mb="10"> Sizes </Heading> </s> add <HStack space={8} justifyContent="center" alignItems="center"> </s> remove import { Spinner, VStack, Heading } from 'native-base'; </s> add import { Spinner, HStack } from 'native-base'; </s> remove import { Spinner, VStack, Heading } from 'native-base'; </s> add import { Spinner, HStack } from 'native-base'; </s> remove <Alert w="100%" colorScheme="info"> <VStack space={1} flexShrink={1} w="100%"> <HStack flexShrink={1} space={2} alignItems="center" justifyContent="space-between" > <HStack space={2} flexShrink={1} alignItems="center"> <Alert.Icon /> <Heading fontSize="md" fontWeight="medium" color="coolGray.800"> We are going live in July! </Heading> </s> add <Center> <Alert w="90%" maxW="400" colorScheme="info"> <VStack space={1} flexShrink={1} w="100%"> <HStack flexShrink={1} space={2} alignItems="center" justifyContent="space-between" > <HStack space={2} flexShrink={1} alignItems="center"> <Alert.Icon /> <Heading fontSize="md" fontWeight="medium" color="coolGray.800"> We are going live in July! </Heading> </HStack> <IconButton variant="unstyled" icon={<CloseIcon size="3" color="coolGray.600" />} />
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/primitives/Spinner/usage.tsx
<VStack space="2.5" mt="4" px="8">
<mask> <mask> export function Example() { <mask> return ( <mask> <ScrollView> <mask> <VStack space="2.5" mt="4"> <mask> <Heading size="md">row</Heading> <mask> <Stack direction="row" mb="2.5" mt="1.5" space={3}> <mask> <Center <mask> size="16" <mask> bg="primary.500" </s> feat: example design changes (#4522) </s> remove bg="primary.500" </s> add bg="primary.400" </s> remove bg="primary.500" </s> add bg="primary.400" </s> remove bg="primary.500" </s> add bg="primary.400" </s> remove bg="primary.500" </s> add bg="primary.400" </s> remove <Stack space={[20, 40, 80]} direction={['row', 'column', 'row-reverse']} alignItems="center" > <Heading textAlign="center">HStack</Heading> <Heading textAlign="center">HStack1</Heading> {/* <HStack space={3} alignItems="center"> <Center h="40" w="20" bg="primary.500" rounded="md" shadow={3} /> <Center h="40" w="20" bg="secondary.500" rounded="md" shadow={3} /> <Center h="40" w="20" bg="emerald.500" rounded="md" shadow={3} /> </HStack> */} </Stack> </s> add <HStack space={3} justifyContent="center"> <Center h="40" w="20" bg="primary.300" rounded="md" shadow={3} /> <Center h="40" w="20" bg="primary.500" rounded="md" shadow={3} /> <Center h="40" w="20" bg="primary.700" rounded="md" shadow={3} /> </HStack>
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/primitives/Stack/basic.tsx
bg="primary.400"
<mask> <Heading size="md">row</Heading> <mask> <Stack direction="row" mb="2.5" mt="1.5" space={3}> <mask> <Center <mask> size="16" <mask> bg="primary.500" <mask> rounded="sm" <mask> _text={{ <mask> color: 'warmGray.50', <mask> fontWeight: 'medium', <mask> }} </s> feat: example design changes (#4522) </s> remove bg="primary.500" </s> add bg="primary.400" </s> remove bg="primary.500" </s> add bg="primary.400" </s> remove bg="primary.500" </s> add bg="primary.400" </s> remove <VStack space="2.5" mt="4"> </s> add <VStack space="2.5" mt="4" px="8"> </s> remove bg="secondary.500" </s> add bg="primary.500"
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/primitives/Stack/basic.tsx
bg="primary.500"
<mask> > <mask> Box 1 <mask> </Center> <mask> <Center <mask> bg="secondary.500" <mask> size="16" <mask> rounded="sm" <mask> _text={{ <mask> color: 'warmGray.50', <mask> fontWeight: 'medium', </s> feat: example design changes (#4522) </s> remove bg="secondary.500" </s> add bg="primary.500" </s> remove bg="secondary.500" </s> add bg="primary.500" </s> remove bg="secondary.500" </s> add bg="primary.500" </s> remove bg="emerald.500" </s> add bg="primary.700" </s> remove bg="emerald.500" </s> add bg="primary.700"
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/primitives/Stack/basic.tsx
bg="primary.700"
<mask> Box 2 <mask> </Center> <mask> <Center <mask> size="16" <mask> bg="emerald.500" <mask> rounded="sm" <mask> _text={{ <mask> color: 'warmGray.50', <mask> fontWeight: 'medium', <mask> }} </s> feat: example design changes (#4522) </s> remove bg="emerald.500" </s> add bg="primary.700" </s> remove bg="emerald.500" </s> add bg="primary.700" </s> remove bg="emerald.500" </s> add bg="primary.700" </s> remove bg="secondary.500" </s> add bg="primary.500" </s> remove bg="secondary.500" </s> add bg="primary.500"
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/primitives/Stack/basic.tsx
bg="primary.400"
<mask> <Heading size="md">column</Heading> <mask> <Stack mb="2.5" mt="1.5" direction="column" space={3}> <mask> <Center <mask> size="16" <mask> bg="primary.500" <mask> rounded="sm" <mask> _text={{ <mask> color: 'warmGray.50', <mask> fontWeight: 'medium', <mask> }} </s> feat: example design changes (#4522) </s> remove bg="primary.500" </s> add bg="primary.400" </s> remove bg="primary.500" </s> add bg="primary.400" </s> remove bg="primary.500" </s> add bg="primary.400" </s> remove bg="secondary.500" </s> add bg="primary.500" </s> remove bg="secondary.500" </s> add bg="primary.500"
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/primitives/Stack/basic.tsx
bg="primary.500"
<mask> > <mask> Box 1 <mask> </Center> <mask> <Center <mask> bg="secondary.500" <mask> size="16" <mask> rounded="sm" <mask> _text={{ <mask> color: 'warmGray.50', <mask> fontWeight: 'medium', </s> feat: example design changes (#4522)
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/primitives/Stack/basic.tsx
bg="primary.700"
<mask> Box 2 <mask> </Center> <mask> <Center <mask> size="16" <mask> bg="emerald.500" <mask> rounded="sm" <mask> _text={{ <mask> color: 'warmGray.50', <mask> fontWeight: 'medium', <mask> }} </s> feat: example design changes (#4522)
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/primitives/Stack/basic.tsx
bg="primary.400"
<mask> <Heading size="md">row-reverse</Heading> <mask> <Stack mb="2.5" mt="1.5" direction="row" reversed space={3}> <mask> <Center <mask> size="16" <mask> bg="primary.500" <mask> rounded="sm" <mask> _text={{ <mask> color: 'warmGray.50', <mask> fontWeight: 'medium', <mask> }} </s> feat: example design changes (#4522) </s> remove bg="primary.500" </s> add bg="primary.400" </s> remove bg="primary.500" </s> add bg="primary.400" </s> remove bg="primary.500" </s> add bg="primary.400" </s> remove bg="secondary.500" </s> add bg="primary.500" </s> remove bg="secondary.500" </s> add bg="primary.500"
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/primitives/Stack/basic.tsx
bg="primary.500"
<mask> > <mask> Box 1 <mask> </Center> <mask> <Center <mask> bg="secondary.500" <mask> size="16" <mask> rounded="sm" <mask> _text={{ <mask> color: 'warmGray.50', <mask> fontWeight: 'medium', </s> feat: example design changes (#4522)
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/primitives/Stack/basic.tsx
bg="primary.700"
<mask> Box 2 <mask> </Center> <mask> <Center <mask> size="16" <mask> bg="emerald.500" <mask> rounded="sm" <mask> _text={{ <mask> color: 'warmGray.50', <mask> fontWeight: 'medium', <mask> }} </s> feat: example design changes (#4522)
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/primitives/Stack/basic.tsx
bg="primary.400"
<mask> <Heading size="md">column-reverse</Heading> <mask> <Stack mb="2.5" mt="1.5" direction="column-reverse" space={3}> <mask> <Center <mask> size="16" <mask> bg="primary.500" <mask> rounded="sm" <mask> _text={{ <mask> color: 'warmGray.50', <mask> fontWeight: 'medium', <mask> }} </s> feat: example design changes (#4522) </s> remove bg="primary.500" </s> add bg="primary.400" </s> remove bg="primary.500" </s> add bg="primary.400" </s> remove bg="primary.500" </s> add bg="primary.400" </s> remove bg="secondary.500" </s> add bg="primary.500" </s> remove bg="secondary.500" </s> add bg="primary.500"
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/primitives/Stack/basic.tsx
bg="primary.500"
<mask> > <mask> Box 1 <mask> </Center> <mask> <Center <mask> bg="secondary.500" <mask> size="16" <mask> rounded="sm" <mask> _text={{ <mask> color: 'warmGray.50', <mask> fontWeight: 'medium', </s> feat: example design changes (#4522)
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/primitives/Stack/basic.tsx
bg="primary.700"
<mask> Box 2 <mask> </Center> <mask> <Center <mask> size="16" <mask> bg="emerald.500" <mask> rounded="sm" <mask> _text={{ <mask> color: 'warmGray.50', <mask> fontWeight: 'medium', <mask> }} </s> feat: example design changes (#4522)
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/primitives/Stack/basic.tsx
import { Switch, VStack } from 'native-base';
<mask> import React from 'react'; <mask> import { Switch, VStack, Heading } from 'native-base'; <mask> <mask> export const Example = () => { <mask> return ( <mask> <VStack space={4} alignItems="center"> <mask> <Heading textAlign="center" mb="10"> </s> feat: example design changes (#4522) </s> remove import { Switch, VStack, Heading } from 'native-base'; </s> add import { Switch, VStack } from 'native-base'; </s> remove import { Switch, VStack, Heading } from 'native-base'; </s> add import { Switch, VStack } from 'native-base'; </s> remove import { Spinner, VStack, Heading } from 'native-base'; </s> add import { Spinner, HStack } from 'native-base'; </s> remove import { Spinner, VStack, Heading } from 'native-base'; </s> add import { Spinner, HStack } from 'native-base'; </s> remove import { VStack, Center, Heading } from 'native-base'; </s> add import { VStack, Center } from 'native-base';
[ "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/primitives/Switch/ColorSchemes.tsx
<mask> <mask> export const Example = () => { <mask> return ( <mask> <VStack space={4} alignItems="center"> <mask> <Heading textAlign="center" mb="10"> <mask> Color Scheme <mask> </Heading> <mask> <Switch defaultIsChecked colorScheme="primary" /> <mask> <Switch defaultIsChecked colorScheme="secondary" /> <mask> <Switch defaultIsChecked colorScheme="emerald" /> <mask> </VStack> <mask> ); </s> feat: example design changes (#4522) </s> remove <Heading textAlign="center" mb="10"> Track & Thumb color </Heading> </s> add </s> remove <Heading mb="10">Sizes</Heading> </s> add </s> remove <Box w="90%"> <VStack space="md"> <Heading textAlign="center" mb="10" size="md"> Progress Color Scheme </Heading> <VStack mx="4" space="md"> <Progress colorScheme="primary" value={35} /> <Progress colorScheme="secondary" value={45} /> <Progress colorScheme="emerald" value={55} /> <Progress colorScheme="warning" value={65} /> <Progress colorScheme="light" value={75} /> </s> add <Center> <Box w="90%" maxW="400"> <VStack space="md"> <VStack mx="4" space="md"> <Progress colorScheme="primary" value={35} /> <Progress colorScheme="secondary" value={45} /> <Progress colorScheme="emerald" value={55} /> <Progress colorScheme="warning" value={65} /> <Progress colorScheme="light" value={75} /> </VStack> </s> remove <VStack space={4} alignItems="center"> <Heading textAlign="center" mb="10"> Color Scheme </Heading> </s> add <HStack space={8} justifyContent="center"> </s> remove <Heading textAlign="center" mb="10"> Sizes </Heading> </s> add
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/primitives/Switch/ColorSchemes.tsx
import { Switch, VStack } from 'native-base';
<mask> import React from 'react'; <mask> import { Switch, VStack, Heading } from 'native-base'; <mask> <mask> export const Example = () => { <mask> return ( <mask> <VStack space={4} alignItems="center"> <mask> <Heading mb="10">Sizes</Heading> </s> feat: example design changes (#4522) </s> remove import { Switch, VStack, Heading } from 'native-base'; </s> add import { Switch, VStack } from 'native-base'; </s> remove import { Switch, VStack, Heading } from 'native-base'; </s> add import { Switch, VStack } from 'native-base'; </s> remove import { Spinner, VStack, Heading } from 'native-base'; </s> add import { Spinner, HStack } from 'native-base'; </s> remove import { Spinner, VStack, Heading } from 'native-base'; </s> add import { Spinner, HStack } from 'native-base'; </s> remove import { Button, Box, Heading, VStack } from 'native-base'; </s> add import { Button, Box, VStack } from 'native-base';
[ "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/primitives/Switch/Sizes.tsx
<mask> <mask> export const Example = () => { <mask> return ( <mask> <VStack space={4} alignItems="center"> <mask> <Heading mb="10">Sizes</Heading> <mask> <Switch size="sm" /> <mask> <Switch size="md" /> <mask> <Switch size="lg" /> <mask> </VStack> <mask> ); </s> feat: example design changes (#4522) </s> remove <Heading textAlign="center" mb="10"> Color Scheme </Heading> </s> add </s> remove <Heading textAlign="center" mb="10"> Track & Thumb color </Heading> </s> add </s> remove <VStack space={4} alignItems="center"> <Heading textAlign="center" mb="10"> Sizes </Heading> </s> add <HStack space={8} justifyContent="center" alignItems="center"> </s> remove <Box w="90%"> <VStack space="md"> <Heading textAlign="center" size="md" mb="10"> Progress Sizes </Heading> <VStack mx="4" space="md"> <Progress size="xs" mb={4} value={25} /> <Progress size="sm" mb={4} value={35} /> <Progress size="md" mb={4} value={45} /> <Progress size="lg" mb={4} value={55} /> <Progress size="xl" mb={4} value={65} /> <Progress size="2xl" mb={4} value={75} /> </s> add <Center> <Box w="90%" maxW="400"> <VStack space="md"> <VStack mx="4" space="md"> <Progress size="xs" mb={4} value={25} /> <Progress size="sm" mb={4} value={35} /> <Progress size="md" mb={4} value={45} /> <Progress size="lg" mb={4} value={55} /> <Progress size="xl" mb={4} value={65} /> <Progress size="2xl" mb={4} value={75} /> </VStack> </s> remove <Stack mt={3} space={4} w={{ base: '75%', md: '25%' }}> <Center> <Heading textAlign="center" mb="10"> Input sizes </Heading> </Center> <Input size="xs" placeholder="xs Input" /> <Input size="sm" placeholder="sm Input" /> <Input size="md" placeholder="md Input" /> <Input size="lg" placeholder="lg Input" /> <Input size="xl" placeholder="xl Input" /> <Input size="2xl" placeholder="2xl Input" /> </Stack> </s> add <Center> <Stack mt={3} space={4} w="75%" maxW="300px"> <Input size="xs" placeholder="xs Input" /> <Input size="sm" placeholder="sm Input" /> <Input size="md" placeholder="md Input" /> <Input size="lg" placeholder="lg Input" /> <Input size="xl" placeholder="xl Input" /> <Input size="2xl" placeholder="2xl Input" /> </Stack> </Center>
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/primitives/Switch/Sizes.tsx
import { Switch, VStack } from 'native-base';
<mask> import React from 'react'; <mask> import { Switch, VStack, Heading } from 'native-base'; <mask> <mask> export const Example = () => { <mask> return ( <mask> <VStack space={4} alignItems="center"> <mask> <Heading textAlign="center" mb="10"> </s> feat: example design changes (#4522)
[ "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/primitives/Switch/SwitchBgColor.tsx
<mask> <mask> export const Example = () => { <mask> return ( <mask> <VStack space={4} alignItems="center"> <mask> <Heading textAlign="center" mb="10"> <mask> Track & Thumb color <mask> </Heading> <mask> <Switch /> <mask> <Switch <mask> offTrackColor="orange.100" <mask> onTrackColor="orange.200" <mask> onThumbColor="orange.500" </s> feat: example design changes (#4522) </s> remove <Heading textAlign="center" mb="10"> Color Scheme </Heading> </s> add </s> remove <Heading mb="10">Sizes</Heading> </s> add </s> remove <VStack space={4} alignItems="center"> <Heading textAlign="center" mb="10"> Sizes </Heading> </s> add <HStack space={8} justifyContent="center" alignItems="center"> </s> remove <VStack space={4} alignItems="center"> <Heading textAlign="center" mb="10"> Color Scheme </Heading> </s> add <HStack space={8} justifyContent="center"> </s> remove import { Switch, VStack, Heading } from 'native-base'; </s> add import { Switch, VStack } from 'native-base';
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/primitives/Switch/SwitchBgColor.tsx
import { Text, VStack } from 'native-base';
<mask> import React from 'react'; <mask> import { Heading, Text, VStack } from 'native-base'; <mask> <mask> export const Example = () => { <mask> return ( <mask> <VStack space={1} alignItems="center" mt={3}> <mask> <Heading textAlign="center" mb="10"> </s> feat: example design changes (#4522) </s> remove <VStack space={1} alignItems="center" mt={3}> <Heading textAlign="center" mb="10"> Sizes </Heading> </s> add <VStack space={1} alignItems="center"> </s> remove import { Switch, VStack, Heading } from 'native-base'; </s> add import { Switch, VStack } from 'native-base'; </s> remove import { Switch, VStack, Heading } from 'native-base'; </s> add import { Switch, VStack } from 'native-base'; </s> remove import { Button, Box, Heading, VStack } from 'native-base'; </s> add import { Button, Box, VStack } from 'native-base'; </s> remove import { Slider, Heading, VStack } from 'native-base'; </s> add import { Slider, Box, VStack } from 'native-base';
[ "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/primitives/Text/ChangingFontSize.tsx
<VStack space={1} alignItems="center">
<mask> import { Heading, Text, VStack } from 'native-base'; <mask> <mask> export const Example = () => { <mask> return ( <mask> <VStack space={1} alignItems="center" mt={3}> <mask> <Heading textAlign="center" mb="10"> <mask> Sizes <mask> </Heading> <mask> <Text fontSize="xs">xs</Text> <mask> <Text fontSize="sm">sm</Text> <mask> <Text fontSize="md">md</Text> <mask> <Text fontSize="lg">lg</Text> <mask> <Text fontSize="xl">xl</Text> </s> feat: example design changes (#4522) </s> remove import { Heading, Text, VStack } from 'native-base'; </s> add import { Text, VStack } from 'native-base'; </s> remove <Stack mx="5" space={4} alignItems="center" w="80%"> <Text textAlign="center">onChangeValue - {onChangeValue}</Text> <Text textAlign="center">onChangeEndValue - {onChangeEndValue}</Text> <Box mx="5" w="80%"> </s> add <Box alignItems="center"> <Stack space={4} alignItems="center" w="75%" maxW="300"> <Text textAlign="center">onChangeValue - {onChangeValue}</Text> <Text textAlign="center">onChangeEndValue - {onChangeEndValue}</Text> </s> remove <Heading textAlign="center" mb="10"> Sizes </Heading> </s> add </s> remove import { Link, Text } from 'native-base'; </s> add import { Link, Text, Box } from 'native-base'; </s> remove <VStack space={4} alignItems="center"> <Heading textAlign="center" mb="10"> Sizes </Heading> </s> add <HStack space={8} justifyContent="center" alignItems="center">
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/primitives/Text/ChangingFontSize.tsx
import { TextArea, Box } from 'native-base';
<mask> import React from 'react'; <mask> import { TextArea } from 'native-base'; <mask> <mask> export const Example = () => { <mask> return ( <mask> <TextArea <mask> h={20} </s> feat: example design changes (#4522) </s> remove <TextArea h={20} placeholder="Text Area Placeholder" w={{ base: '70%', md: '25%' }} /> </s> add <Box alignItems="center"> <TextArea h={20} placeholder="Text Area Placeholder" w="75%" maxW="300" /> </Box> </s> remove import { TextArea } from 'native-base'; </s> add import { TextArea, Box } from 'native-base'; </s> remove import { Button, useToast } from 'native-base'; </s> add import { Button, useToast, Center } from 'native-base'; </s> remove import { Input } from 'native-base'; </s> add import { Input, Box } from 'native-base'; </s> remove import { Button, Toast } from 'native-base'; </s> add import { Button, Toast, Center } from 'native-base';
[ "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/primitives/TextArea/basic.tsx
<Box alignItems="center"> <TextArea h={20} placeholder="Text Area Placeholder" w="75%" maxW="300" /> </Box>
<mask> import { TextArea } from 'native-base'; <mask> <mask> export const Example = () => { <mask> return ( <mask> <TextArea <mask> h={20} <mask> placeholder="Text Area Placeholder" <mask> w={{ base: '70%', md: '25%' }} <mask> /> <mask> ); <mask> }; </s> feat: example design changes (#4522) </s> remove <TextArea value={textAreaValue} onChange={demoValueControlledTextArea} w={{ base: '70%', md: '25%' }} /> </s> add <Box alignItems="center"> <TextArea value={textAreaValue} onChange={demoValueControlledTextArea} w="75%" maxW="300" /> </Box> </s> remove import { TextArea } from 'native-base'; </s> add import { TextArea, Box } from 'native-base'; </s> remove <Stack space={2.5} w={{ base: '70%', md: '25%' }}> <Box w="100%"> <Text mb="4" bold fontSize="lg"> Invalid TextArea </Text> <TextArea aria-label="t1" numberOfLines={4} placeholder="Invalid TextArea" isInvalid _dark={{ placeholderTextColor: 'gray.300' }} mb="5" /> <Divider /> </Box> <Box> <Text bold fontSize="lg" mb="4"> Disabled TextArea </Text> </s> add <Box alignItems="center"> <Stack space={2.5} w="75%" maxW="300"> <Box> <Text mb="4" bold fontSize="lg"> Invalid TextArea </Text> <TextArea aria-label="t1" numberOfLines={4} placeholder="Invalid TextArea" isInvalid _dark={{ placeholderTextColor: 'gray.300' }} mb="5" /> <Divider /> </Box> <Box> <Text bold fontSize="lg" mb="4"> Disabled TextArea </Text> </s> remove return <Input mx="3" placeholder="Input" w={{ base: '75%', md: '25%' }} />; </s> add return ( <Box alignItems="center"> <Input mx="3" placeholder="Input" w="75%" maxWidth="300px" /> </Box> ); </s> remove import { Input } from 'native-base'; </s> add import { Input, Box } from 'native-base';
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/primitives/TextArea/basic.tsx
<Box alignItems="center"> <Stack space={2.5} w="75%" maxW="300"> <Box> <Text mb="4" bold fontSize="lg"> Invalid TextArea </Text> <TextArea aria-label="t1" numberOfLines={4} placeholder="Invalid TextArea" isInvalid _dark={{ placeholderTextColor: 'gray.300' }} mb="5" /> <Divider /> </Box> <Box> <Text bold fontSize="lg" mb="4"> Disabled TextArea </Text>
<mask> import { Box, TextArea, Text, Stack, Divider } from 'native-base'; <mask> <mask> export const Example = () => { <mask> return ( <mask> <Stack space={2.5} w={{ base: '70%', md: '25%' }}> <mask> <Box w="100%"> <mask> <Text mb="4" bold fontSize="lg"> <mask> Invalid TextArea <mask> </Text> <mask> <TextArea <mask> aria-label="t1" <mask> numberOfLines={4} <mask> placeholder="Invalid TextArea" <mask> isInvalid <mask> _dark={{ placeholderTextColor: 'gray.300' }} <mask> mb="5" <mask> /> <mask> <Divider /> <mask> </Box> <mask> <Box> <mask> <Text bold fontSize="lg" mb="4"> <mask> Disabled TextArea <mask> </Text> <mask> <mask> <TextArea <mask> aria-label="t1Disabled" <mask> placeholder="Disabled TextArea" <mask> isDisabled </s> feat: example design changes (#4522) </s> remove <TextArea aria-label="t1Disabled" placeholder="Disabled TextArea" isDisabled /> </Box> </Stack> </s> add <TextArea aria-label="t1Disabled" placeholder="Disabled TextArea" isDisabled /> </Box> </Stack> </Box> </s> remove <TextArea h={20} placeholder="Text Area Placeholder" w={{ base: '70%', md: '25%' }} /> </s> add <Box alignItems="center"> <TextArea h={20} placeholder="Text Area Placeholder" w="75%" maxW="300" /> </Box> </s> remove <TextArea value={textAreaValue} onChange={demoValueControlledTextArea} w={{ base: '70%', md: '25%' }} /> </s> add <Box alignItems="center"> <TextArea value={textAreaValue} onChange={demoValueControlledTextArea} w="75%" maxW="300" /> </Box> </s> remove import { TextArea } from 'native-base'; </s> add import { TextArea, Box } from 'native-base'; </s> remove import { Input, Stack, Center, Heading } from 'native-base'; </s> add import { Input, Stack, Center } from 'native-base';
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/primitives/TextArea/invalid.tsx
<TextArea aria-label="t1Disabled" placeholder="Disabled TextArea" isDisabled /> </Box> </Stack> </Box>
<mask> <Text bold fontSize="lg" mb="4"> <mask> Disabled TextArea <mask> </Text> <mask> <mask> <TextArea <mask> aria-label="t1Disabled" <mask> placeholder="Disabled TextArea" <mask> isDisabled <mask> /> <mask> </Box> <mask> </Stack> <mask> ); <mask> }; </s> feat: example design changes (#4522) </s> remove <Stack space={2.5} w={{ base: '70%', md: '25%' }}> <Box w="100%"> <Text mb="4" bold fontSize="lg"> Invalid TextArea </Text> <TextArea aria-label="t1" numberOfLines={4} placeholder="Invalid TextArea" isInvalid _dark={{ placeholderTextColor: 'gray.300' }} mb="5" /> <Divider /> </Box> <Box> <Text bold fontSize="lg" mb="4"> Disabled TextArea </Text> </s> add <Box alignItems="center"> <Stack space={2.5} w="75%" maxW="300"> <Box> <Text mb="4" bold fontSize="lg"> Invalid TextArea </Text> <TextArea aria-label="t1" numberOfLines={4} placeholder="Invalid TextArea" isInvalid _dark={{ placeholderTextColor: 'gray.300' }} mb="5" /> <Divider /> </Box> <Box> <Text bold fontSize="lg" mb="4"> Disabled TextArea </Text> </s> remove <TextArea h={20} placeholder="Text Area Placeholder" w={{ base: '70%', md: '25%' }} /> </s> add <Box alignItems="center"> <TextArea h={20} placeholder="Text Area Placeholder" w="75%" maxW="300" /> </Box> </s> remove <IconButton variant="unstyled" icon={<CloseIcon size="3" color="coolGray.600" />} /> </HStack> </VStack> </Alert> ); })} </Stack> </s> add </VStack> </Alert> ); })} </Stack> </Center> </s> remove </Box> </Stack> </s> add </Stack> </Box> </s> remove </HStack> <Heading color="cyan.50" mt="2" fontWeight="medium" fontSize="lg"> NativeBase </Heading> <Text mt="1" fontSize="sm" color="white"> NativeBase is a component library that enables devs to build universal design systems. </Text> <Flex> <Text mt="2" fontSize="xs" fontWeight="medium" color="cyan.400"> Read More </Text> </Flex> </Box> </Link> </s> add <Flex> <Text mt="2" fontSize={12} fontWeight="medium" color="darkBlue.600"> Read More </Text> </Flex> </Box> </Link> </Box>
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/primitives/TextArea/invalid.tsx
import { TextArea, Box } from 'native-base';
<mask> import React, { useState } from 'react'; <mask> import { TextArea } from 'native-base'; <mask> <mask> export const Example = () => { <mask> const [textAreaValue, setTextAreaValue] = useState('Value Controlled'); <mask> const demoValueControlledTextArea = (e: any) => { <mask> setTextAreaValue(e.currentTarget.value); </s> feat: example design changes (#4522) </s> remove import { Skeleton, Text, Avatar, Box } from 'native-base'; </s> add import { Skeleton, Text, Button, Box, Image, VStack, Center, } from 'native-base'; </s> remove import { Button, Modal } from 'native-base'; </s> add import { Button, Modal, Center } from 'native-base'; </s> remove <TextArea value={textAreaValue} onChange={demoValueControlledTextArea} w={{ base: '70%', md: '25%' }} /> </s> add <Box alignItems="center"> <TextArea value={textAreaValue} onChange={demoValueControlledTextArea} w="75%" maxW="300" /> </Box> </s> remove import { Button, Modal, FormControl, Input } from 'native-base'; </s> add import { Button, Modal, FormControl, Input, Center } from 'native-base'; </s> remove import { Button, Modal, VStack, HStack, Text, Radio } from 'native-base'; </s> add import { Button, Modal, VStack, HStack, Text, Radio, Center, } from 'native-base';
[ "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/primitives/TextArea/value.tsx
<Box alignItems="center"> <TextArea value={textAreaValue} onChange={demoValueControlledTextArea} w="75%" maxW="300" /> </Box>
<mask> const demoValueControlledTextArea = (e: any) => { <mask> setTextAreaValue(e.currentTarget.value); <mask> }; <mask> return ( <mask> <TextArea <mask> value={textAreaValue} <mask> onChange={demoValueControlledTextArea} <mask> w={{ base: '70%', md: '25%' }} <mask> /> <mask> ); <mask> }; </s> feat: example design changes (#4522) </s> remove <TextArea h={20} placeholder="Text Area Placeholder" w={{ base: '70%', md: '25%' }} /> </s> add <Box alignItems="center"> <TextArea h={20} placeholder="Text Area Placeholder" w="75%" maxW="300" /> </Box> </s> remove import { TextArea } from 'native-base'; </s> add import { TextArea, Box } from 'native-base'; </s> remove return <Input mx="3" placeholder="Input" w={{ base: '75%', md: '25%' }} />; </s> add return ( <Box alignItems="center"> <Input mx="3" placeholder="Input" w="75%" maxWidth="300px" /> </Box> ); </s> remove <Input value={value} w={{ base: '75%', md: '25%' }} onChangeText={handleChange} placeholder="Value Controlled Input" /> </s> add <Box alignItems="center"> <Input value={value} w="75%" maxW="300px" onChangeText={handleChange} placeholder="Value Controlled Input" /> </Box> </s> remove import { Input } from 'native-base'; </s> add import { Input, Box } from 'native-base';
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/primitives/TextArea/value.tsx
import { VStack, Center } from 'native-base';
<mask> import React from 'react'; <mask> import { VStack, Center, Heading } from 'native-base'; <mask> <mask> export function Example() { <mask> return ( <mask> <VStack space={4} alignItems="center"> <mask> <Heading textAlign="center" mb="10"> </s> feat: example design changes (#4522) </s> remove import { Switch, VStack, Heading } from 'native-base'; </s> add import { Switch, VStack } from 'native-base'; </s> remove import { Spinner, VStack, Heading } from 'native-base'; </s> add import { Spinner, HStack } from 'native-base'; </s> remove import { Switch, VStack, Heading } from 'native-base'; </s> add import { Switch, VStack } from 'native-base'; </s> remove import { Spinner, VStack, Heading } from 'native-base'; </s> add import { Spinner, HStack } from 'native-base'; </s> remove import { Checkbox, VStack, Center, Heading } from 'native-base'; </s> add import { Checkbox, VStack, Center } from 'native-base';
[ "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/primitives/VStack/basic.tsx
<Center w="64" h="20" bg="indigo.300" rounded="md" shadow={3} /> <Center w="64" h="20" bg="indigo.500" rounded="md" shadow={3} /> <Center w="64" h="20" bg="indigo.700" rounded="md" shadow={3} />
<mask> <mask> export function Example() { <mask> return ( <mask> <VStack space={4} alignItems="center"> <mask> <Heading textAlign="center" mb="10"> <mask> VStack <mask> </Heading> <mask> <Center w="64" h="20" bg="primary.500" rounded="md" shadow={3} /> <mask> <Center w="64" h="20" bg="secondary.500" rounded="md" shadow={3} /> <mask> <Center w="64" h="20" bg="emerald.500" rounded="md" shadow={3} /> <mask> </VStack> <mask> ); <mask> } </s> feat: example design changes (#4522) </s> remove <Stack space={[20, 40, 80]} direction={['row', 'column', 'row-reverse']} alignItems="center" > <Heading textAlign="center">HStack</Heading> <Heading textAlign="center">HStack1</Heading> {/* <HStack space={3} alignItems="center"> <Center h="40" w="20" bg="primary.500" rounded="md" shadow={3} /> <Center h="40" w="20" bg="secondary.500" rounded="md" shadow={3} /> <Center h="40" w="20" bg="emerald.500" rounded="md" shadow={3} /> </HStack> */} </Stack> </s> add <HStack space={3} justifyContent="center"> <Center h="40" w="20" bg="primary.300" rounded="md" shadow={3} /> <Center h="40" w="20" bg="primary.500" rounded="md" shadow={3} /> <Center h="40" w="20" bg="primary.700" rounded="md" shadow={3} /> </HStack> </s> remove <> <Heading mb="10">ZStack</Heading> <Box h="40"> </s> add <Center h="40"> <Box mt="-32"> </s> remove <VStack w="400" borderWidth="1" space={8} overflow="hidden" rounded="md" borderColor="coolGray.200" > <Skeleton h="40" /> <Skeleton.Text px="4" /> <Skeleton m="4" rounded="md" startColor="primary.100" /> </VStack> </s> add <Center> <VStack w="90%" maxW="400" borderWidth="1" space={8} overflow="hidden" rounded="md" borderColor="coolGray.200" > <Skeleton h="40" /> <Skeleton.Text px="4" /> <Skeleton px="4" my="4" rounded="md" startColor="primary.100" /> </VStack> </Center> </s> remove <Box bg="primary.500" size="20" rounded="lg" shadow={3} /> </s> add <Box bg="primary.700" size="20" rounded="lg" shadow={3} /> </s> remove <HStack w="80%" borderWidth="1" space={8} rounded="md" borderColor="coolGray.200" p="4" > <Skeleton flex="1" h="100%" rounded="md" /> <VStack flex="3" space="4"> <Skeleton /> <Skeleton.Text /> <HStack space="2" alignItems="center"> <Skeleton size="5" rounded="full" /> <Skeleton h="3" flex="2" rounded="full" /> <Skeleton h="3" flex="1" rounded="full" /> </HStack> </VStack> </HStack> </s> add <Center> <HStack w="90%" maxW="400" borderWidth="1" space={8} rounded="md" borderColor="coolGray.400" p="4" > <Skeleton flex="1" h="150" rounded="md" startColor="coolGray.100" /> <VStack flex="3" space="4"> <Skeleton startColor="amber.300" /> <Skeleton.Text /> <HStack space="2" alignItems="center"> <Skeleton size="5" rounded="full" /> <Skeleton h="3" flex="2" rounded="full" /> <Skeleton h="3" flex="1" rounded="full" startColor="indigo.300" /> </HStack> </VStack> </HStack> </Center>
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/primitives/VStack/basic.tsx
import { Center, ZStack, Box } from 'native-base';
<mask> import React from 'react'; <mask> import { ZStack, Box } from 'native-base'; <mask> <mask> export const Example = () => { <mask> return ( <mask> <ZStack alignItems="center" justifyContent="center"> <mask> <Box bg="primary.500" size="64" rounded="lg" /> </s> feat: example design changes (#4522) </s> remove <ZStack alignItems="center" justifyContent="center"> <Box bg="primary.500" size="64" rounded="lg" /> <Box bg="secondary.500" size="48" rounded="lg" shadow={8} /> <Box bg="emerald.500" size="32" rounded="lg" shadow={8} /> </ZStack> </s> add <Center h="96"> <ZStack alignItems="center" justifyContent="center"> <Box bg="indigo.700" size="64" rounded="lg" /> <Box bg="indigo.500" size="48" rounded="lg" shadow={8} /> <Box bg="indigo.300" size="32" rounded="lg" shadow={8} /> </ZStack> </Center> </s> remove <> <Heading mb="10">ZStack</Heading> <Box h="40"> </s> add <Center h="40"> <Box mt="-32"> </s> remove import { ZStack, Box, Heading } from 'native-base'; </s> add import { Center, ZStack, Box } from 'native-base'; </s> remove <> </s> add <Box> </s> remove import { TextArea } from 'native-base'; </s> add import { TextArea, Box } from 'native-base';
[ "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/primitives/ZStack/CenterStack.tsx
<Center h="96"> <ZStack alignItems="center" justifyContent="center"> <Box bg="indigo.700" size="64" rounded="lg" /> <Box bg="indigo.500" size="48" rounded="lg" shadow={8} /> <Box bg="indigo.300" size="32" rounded="lg" shadow={8} /> </ZStack> </Center>
<mask> import { ZStack, Box } from 'native-base'; <mask> <mask> export const Example = () => { <mask> return ( <mask> <ZStack alignItems="center" justifyContent="center"> <mask> <Box bg="primary.500" size="64" rounded="lg" /> <mask> <Box bg="secondary.500" size="48" rounded="lg" shadow={8} /> <mask> <Box bg="emerald.500" size="32" rounded="lg" shadow={8} /> <mask> </ZStack> <mask> ); <mask> }; </s> feat: example design changes (#4522) </s> remove import { ZStack, Box } from 'native-base'; </s> add import { Center, ZStack, Box } from 'native-base'; </s> remove <> <Heading mb="10">ZStack</Heading> <Box h="40"> </s> add <Center h="40"> <Box mt="-32"> </s> remove bg="secondary.500" </s> add bg="primary.500" </s> remove <Box bg="primary.500" size="20" rounded="lg" shadow={3} /> </s> add <Box bg="primary.700" size="20" rounded="lg" shadow={3} /> </s> remove bg="emerald.500" </s> add bg="primary.300"
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/primitives/ZStack/CenterStack.tsx
import { Center, ZStack, Box } from 'native-base';
<mask> import React from 'react'; <mask> import { ZStack, Box, Heading } from 'native-base'; <mask> <mask> export const Example = () => { <mask> return ( <mask> <> <mask> <Heading mb="10">ZStack</Heading> </s> feat: example design changes (#4522) </s> remove <> <Heading mb="10">ZStack</Heading> <Box h="40"> </s> add <Center h="40"> <Box mt="-32"> </s> remove import { ZStack, Box } from 'native-base'; </s> add import { Center, ZStack, Box } from 'native-base'; </s> remove import { Box, Progress, Center, Heading } from 'native-base'; </s> add import { Box, Progress, Center } from 'native-base'; </s> remove import { Box, Progress, Center, Heading } from 'native-base'; </s> add import { Box, Progress, Center } from 'native-base'; </s> remove import { Box, Progress, VStack, Heading } from 'native-base'; </s> add import { Box, Progress, VStack, Center } from 'native-base';
[ "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/primitives/ZStack/example.tsx
<Center h="40"> <Box mt="-32">
<mask> import { ZStack, Box, Heading } from 'native-base'; <mask> <mask> export const Example = () => { <mask> return ( <mask> <> <mask> <Heading mb="10">ZStack</Heading> <mask> <Box h="40"> <mask> <ZStack mt="3" ml={-50}> <mask> <Box bg="primary.500" size="20" rounded="lg" shadow={3} /> <mask> <Box <mask> bg="secondary.500" <mask> mt="5" </s> feat: example design changes (#4522) </s> remove <Box bg="primary.500" size="20" rounded="lg" shadow={3} /> </s> add <Box bg="primary.700" size="20" rounded="lg" shadow={3} /> </s> remove bg="secondary.500" </s> add bg="primary.500" </s> remove <ZStack alignItems="center" justifyContent="center"> <Box bg="primary.500" size="64" rounded="lg" /> <Box bg="secondary.500" size="48" rounded="lg" shadow={8} /> <Box bg="emerald.500" size="32" rounded="lg" shadow={8} /> </ZStack> </s> add <Center h="96"> <ZStack alignItems="center" justifyContent="center"> <Box bg="indigo.700" size="64" rounded="lg" /> <Box bg="indigo.500" size="48" rounded="lg" shadow={8} /> <Box bg="indigo.300" size="32" rounded="lg" shadow={8} /> </ZStack> </Center> </s> remove import { ZStack, Box } from 'native-base'; </s> add import { Center, ZStack, Box } from 'native-base'; </s> remove import { ZStack, Box, Heading } from 'native-base'; </s> add import { Center, ZStack, Box } from 'native-base';
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/primitives/ZStack/example.tsx
<Box bg="primary.700" size="20" rounded="lg" shadow={3} />
<mask> <> <mask> <Heading mb="10">ZStack</Heading> <mask> <Box h="40"> <mask> <ZStack mt="3" ml={-50}> <mask> <Box bg="primary.500" size="20" rounded="lg" shadow={3} /> <mask> <Box <mask> bg="secondary.500" <mask> mt="5" <mask> ml="5" <mask> size="20" </s> feat: example design changes (#4522) </s> remove bg="secondary.500" </s> add bg="primary.500" </s> remove <> <Heading mb="10">ZStack</Heading> <Box h="40"> </s> add <Center h="40"> <Box mt="-32"> </s> remove bg="emerald.500" </s> add bg="primary.300" </s> remove <ZStack alignItems="center" justifyContent="center"> <Box bg="primary.500" size="64" rounded="lg" /> <Box bg="secondary.500" size="48" rounded="lg" shadow={8} /> <Box bg="emerald.500" size="32" rounded="lg" shadow={8} /> </ZStack> </s> add <Center h="96"> <ZStack alignItems="center" justifyContent="center"> <Box bg="indigo.700" size="64" rounded="lg" /> <Box bg="indigo.500" size="48" rounded="lg" shadow={8} /> <Box bg="indigo.300" size="32" rounded="lg" shadow={8} /> </ZStack> </Center> </s> remove import { ZStack, Box } from 'native-base'; </s> add import { Center, ZStack, Box } from 'native-base';
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/primitives/ZStack/example.tsx
bg="primary.500"
<mask> <Box h="40"> <mask> <ZStack mt="3" ml={-50}> <mask> <Box bg="primary.500" size="20" rounded="lg" shadow={3} /> <mask> <Box <mask> bg="secondary.500" <mask> mt="5" <mask> ml="5" <mask> size="20" <mask> rounded="lg" <mask> shadow={5} </s> feat: example design changes (#4522) </s> remove <Box bg="primary.500" size="20" rounded="lg" shadow={3} /> </s> add <Box bg="primary.700" size="20" rounded="lg" shadow={3} /> </s> remove <> <Heading mb="10">ZStack</Heading> <Box h="40"> </s> add <Center h="40"> <Box mt="-32"> </s> remove bg="emerald.500" </s> add bg="primary.300" </s> remove <ZStack alignItems="center" justifyContent="center"> <Box bg="primary.500" size="64" rounded="lg" /> <Box bg="secondary.500" size="48" rounded="lg" shadow={8} /> <Box bg="emerald.500" size="32" rounded="lg" shadow={8} /> </ZStack> </s> add <Center h="96"> <ZStack alignItems="center" justifyContent="center"> <Box bg="indigo.700" size="64" rounded="lg" /> <Box bg="indigo.500" size="48" rounded="lg" shadow={8} /> <Box bg="indigo.300" size="32" rounded="lg" shadow={8} /> </ZStack> </Center> </s> remove import { ZStack, Box } from 'native-base'; </s> add import { Center, ZStack, Box } from 'native-base';
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/primitives/ZStack/example.tsx
bg="primary.300"
<mask> rounded="lg" <mask> shadow={5} <mask> /> <mask> <Box <mask> bg="emerald.500" <mask> mt="10" <mask> ml="10" <mask> size="20" <mask> rounded="lg" <mask> shadow={7} </s> feat: example design changes (#4522) </s> remove bg="secondary.500" </s> add bg="primary.500" </s> remove <Box bg="primary.500" size="20" rounded="lg" shadow={3} /> </s> add <Box bg="primary.700" size="20" rounded="lg" shadow={3} /> </s> remove <ZStack alignItems="center" justifyContent="center"> <Box bg="primary.500" size="64" rounded="lg" /> <Box bg="secondary.500" size="48" rounded="lg" shadow={8} /> <Box bg="emerald.500" size="32" rounded="lg" shadow={8} /> </ZStack> </s> add <Center h="96"> <ZStack alignItems="center" justifyContent="center"> <Box bg="indigo.700" size="64" rounded="lg" /> <Box bg="indigo.500" size="48" rounded="lg" shadow={8} /> <Box bg="indigo.300" size="32" rounded="lg" shadow={8} /> </ZStack> </Center> </s> remove <> <Heading mb="10">ZStack</Heading> <Box h="40"> </s> add <Center h="40"> <Box mt="-32"> </s> remove import { ZStack, Box } from 'native-base'; </s> add import { Center, ZStack, Box } from 'native-base';
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/primitives/ZStack/example.tsx
</Center>
<mask> shadow={7} <mask> /> <mask> </ZStack> <mask> </Box> <mask> </> <mask> ); <mask> }; </s> feat: example design changes (#4522) </s> remove </> </s> add </Box> </s> remove </> </s> add </Box> </s> remove <ZStack alignItems="center" justifyContent="center"> <Box bg="primary.500" size="64" rounded="lg" /> <Box bg="secondary.500" size="48" rounded="lg" shadow={8} /> <Box bg="emerald.500" size="32" rounded="lg" shadow={8} /> </ZStack> </s> add <Center h="96"> <ZStack alignItems="center" justifyContent="center"> <Box bg="indigo.700" size="64" rounded="lg" /> <Box bg="indigo.500" size="48" rounded="lg" shadow={8} /> <Box bg="indigo.300" size="32" rounded="lg" shadow={8} /> </ZStack> </Center> </s> remove bg="emerald.500" </s> add bg="primary.300" </s> remove </> </s> add </Box>
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a10e1f16aa8be6de5b7eaa7e5db53f6968ca9cef
example/storybook/stories/components/primitives/ZStack/example.tsx
<VStack space={4}> <Heading textAlign="center">Progress ColorScheme</Heading> <VStack mx={4} space={4}>
<mask> <mask> export const Example = () => { <mask> return ( <mask> <Box w="90%"> <mask> <VStack space="md"> <mask> <Heading textAlign="center" mb={8}> <mask> Progress ColorScheme <mask> </Heading> <mask> <VStack mx={4} space="md"> <mask> <Progress colorScheme="primary" value={35} /> <mask> <Progress colorScheme="secondary" value={45} /> <mask> <Progress colorScheme="emerald" value={55} /> <mask> <Progress colorScheme="warning" value={65} /> <mask> <Progress colorScheme="light" value={75} /> </s> feat: new prop resolution changes in progress </s> remove <VStack space="md"> <Heading textAlign="center" mb={8}> Progress Sizes </Heading> <VStack mx={4} space="md"> <Progress size="xs" mb={4} value={25} /> <Progress size="sm" mb={4} value={35} /> <Progress size="md" mb={4} value={45} /> <Progress size="lg" mb={4} value={55} /> <Progress size="xl" mb={4} value={65} /> <Progress size="2xl" mb={4} value={75} /> </s> add <VStack space={4}> <Heading textAlign="center">Progress Sizes</Heading> <VStack mx={4} space={4}> <Progress size="xs" value={25} /> <Progress size="sm" value={35} /> <Progress size="md" value={45} /> <Progress size="lg" value={55} /> <Progress size="xl" value={65} /> <Progress size="2xl" value={75} /> </s> remove <Text color="white" bold> 45% </Text> </s> add 45% </s> remove {isIndeterminate ? ( // <Animated.View // style={[ // { // transform: [ // { // translateX: width, // }, // ], // }, // ]} // > // </Animated.View> <Box {...innerProps} children={resolvedProps.children} /> ) : ( <Box {...innerProps} children={resolvedProps.children} /> )} </s> add <Box // {...resolvedProps} {..._filledTrack} w={ value < max && value > min ? ((value - min) / (max - min)) * 100 + '%' : value > min ? '100%' : '0%' } > {children} </Box> </s> remove // const width = new Animated.Value(0); // useEffect(() => { // Animated.loop( // Animated.timing(width, { // toValue: 270, // duration: 1000, // useNativeDriver: true, // }) // ).start(); // }); </s> add </s> remove const { innerBg } = resolvedProps; const innerProps = { bg: innerBg, shadow: 0, rounded: resolvedProps.rounded, height: '100%', w: value < max && value > min ? ((value - min) / (max - min)) * 100 + '%' : value > min ? '100%' : '0%', display: 'flex', alignItems: 'center', justifyContent: 'center', color: 'white', }; </s> add
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a150aff7a9409a152fff327f243aff75bf579857
example/storybook/stories/components/composites/Progress/ColorScheme.tsx
45%
<mask> <Heading>Progress Composition</Heading> <mask> </Center> <mask> <Text mb={2}>Add Label inside Progress</Text> <mask> <Progress size="xl" mb={4} value={45}> <mask> <Text color="white" bold> <mask> 45% <mask> </Text> <mask> </Progress> <mask> <Text mb={2}>Add Label outside Progress</Text> <mask> <Flex direction="row"> <mask> <Progress size="xl" flex={1} mb={4} value={75} /> <mask> <Text bold ml={2}> </s> feat: new prop resolution changes in progress </s> remove <VStack space="md"> <Heading textAlign="center" mb={8}> Progress Sizes </Heading> <VStack mx={4} space="md"> <Progress size="xs" mb={4} value={25} /> <Progress size="sm" mb={4} value={35} /> <Progress size="md" mb={4} value={45} /> <Progress size="lg" mb={4} value={55} /> <Progress size="xl" mb={4} value={65} /> <Progress size="2xl" mb={4} value={75} /> </s> add <VStack space={4}> <Heading textAlign="center">Progress Sizes</Heading> <VStack mx={4} space={4}> <Progress size="xs" value={25} /> <Progress size="sm" value={35} /> <Progress size="md" value={45} /> <Progress size="lg" value={55} /> <Progress size="xl" value={65} /> <Progress size="2xl" value={75} /> </s> remove <VStack space="md"> <Heading textAlign="center" mb={8}> Progress ColorScheme </Heading> <VStack mx={4} space="md"> </s> add <VStack space={4}> <Heading textAlign="center">Progress ColorScheme</Heading> <VStack mx={4} space={4}> </s> remove {isIndeterminate ? ( // <Animated.View // style={[ // { // transform: [ // { // translateX: width, // }, // ], // }, // ]} // > // </Animated.View> <Box {...innerProps} children={resolvedProps.children} /> ) : ( <Box {...innerProps} children={resolvedProps.children} /> )} </s> add <Box // {...resolvedProps} {..._filledTrack} w={ value < max && value > min ? ((value - min) / (max - min)) * 100 + '%' : value > min ? '100%' : '0%' } > {children} </Box> </s> remove innerBg: mode(`${colorScheme}.600`, `${colorScheme}.500`)(props), </s> add
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a150aff7a9409a152fff327f243aff75bf579857
example/storybook/stories/components/composites/Progress/Composition.tsx
<VStack space={4}> <Heading textAlign="center">Progress Sizes</Heading> <VStack mx={4} space={4}> <Progress size="xs" value={25} /> <Progress size="sm" value={35} /> <Progress size="md" value={45} /> <Progress size="lg" value={55} /> <Progress size="xl" value={65} /> <Progress size="2xl" value={75} />
<mask> <mask> export const Example = () => { <mask> return ( <mask> <Box w="90%"> <mask> <VStack space="md"> <mask> <Heading textAlign="center" mb={8}> <mask> Progress Sizes <mask> </Heading> <mask> <VStack mx={4} space="md"> <mask> <Progress size="xs" mb={4} value={25} /> <mask> <Progress size="sm" mb={4} value={35} /> <mask> <Progress size="md" mb={4} value={45} /> <mask> <Progress size="lg" mb={4} value={55} /> <mask> <Progress size="xl" mb={4} value={65} /> <mask> <Progress size="2xl" mb={4} value={75} /> <mask> </VStack> <mask> </VStack> <mask> </Box> <mask> ); <mask> }; </s> feat: new prop resolution changes in progress </s> remove <VStack space="md"> <Heading textAlign="center" mb={8}> Progress ColorScheme </Heading> <VStack mx={4} space="md"> </s> add <VStack space={4}> <Heading textAlign="center">Progress ColorScheme</Heading> <VStack mx={4} space={4}> </s> remove <Text color="white" bold> 45% </Text> </s> add 45% </s> remove {isIndeterminate ? ( // <Animated.View // style={[ // { // transform: [ // { // translateX: width, // }, // ], // }, // ]} // > // </Animated.View> <Box {...innerProps} children={resolvedProps.children} /> ) : ( <Box {...innerProps} children={resolvedProps.children} /> )} </s> add <Box // {...resolvedProps} {..._filledTrack} w={ value < max && value > min ? ((value - min) / (max - min)) * 100 + '%' : value > min ? '100%' : '0%' } > {children} </Box> </s> remove // const width = new Animated.Value(0); // useEffect(() => { // Animated.loop( // Animated.timing(width, { // toValue: 270, // duration: 1000, // useNativeDriver: true, // }) // ).start(); // }); </s> add </s> remove innerBg: mode(`${colorScheme}.600`, `${colorScheme}.500`)(props), </s> add
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a150aff7a9409a152fff327f243aff75bf579857
example/storybook/stories/components/composites/Progress/Sizes.tsx
// /** // * Whether progress is indeterminate // * @default false // */ // isIndeterminate?: boolean;
<mask> * @default primary <mask> */ <mask> colorScheme?: string; <mask> /** <mask> * Pseudo prop to give Prop to filled track <mask> */ <mask> _filledTrack?: IBoxProps; </s> feat: new prop resolution changes in progress </s> remove * Whether progress is indeterminate * @default false </s> add * Pseudo prop to give Prop to filled track </s> remove isIndeterminate?: boolean; </s> add _filledTrack?: IBoxProps; </s> remove const { innerBg } = resolvedProps; const innerProps = { bg: innerBg, shadow: 0, rounded: resolvedProps.rounded, height: '100%', w: value < max && value > min ? ((value - min) / (max - min)) * 100 + '%' : value > min ? '100%' : '0%', display: 'flex', alignItems: 'center', justifyContent: 'center', color: 'white', }; </s> add </s> remove {isIndeterminate ? ( // <Animated.View // style={[ // { // transform: [ // { // translateX: width, // }, // ], // }, // ]} // > // </Animated.View> <Box {...innerProps} children={resolvedProps.children} /> ) : ( <Box {...innerProps} children={resolvedProps.children} /> )} </s> add <Box // {...resolvedProps} {..._filledTrack} w={ value < max && value > min ? ((value - min) / (max - min)) * 100 + '%' : value > min ? '100%' : '0%' } > {children} </Box>
[ "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a150aff7a9409a152fff327f243aff75bf579857
src/components/composites/Progress/index.tsx
* Pseudo prop to give Prop to filled track
<mask> * @default primary <mask> */ <mask> colorScheme?: string; <mask> /** <mask> * Whether progress is indeterminate <mask> * @default false <mask> */ <mask> isIndeterminate?: boolean; <mask> /** <mask> * Min progress value <mask> * @default 0 </s> feat: new prop resolution changes in progress </s> remove isIndeterminate?: boolean; </s> add _filledTrack?: IBoxProps; </s> remove const { innerBg } = resolvedProps; const innerProps = { bg: innerBg, shadow: 0, rounded: resolvedProps.rounded, height: '100%', w: value < max && value > min ? ((value - min) / (max - min)) * 100 + '%' : value > min ? '100%' : '0%', display: 'flex', alignItems: 'center', justifyContent: 'center', color: 'white', }; </s> add </s> remove {isIndeterminate ? ( // <Animated.View // style={[ // { // transform: [ // { // translateX: width, // }, // ], // }, // ]} // > // </Animated.View> <Box {...innerProps} children={resolvedProps.children} /> ) : ( <Box {...innerProps} children={resolvedProps.children} /> )} </s> add <Box // {...resolvedProps} {..._filledTrack} w={ value < max && value > min ? ((value - min) / (max - min)) * 100 + '%' : value > min ? '100%' : '0%' } > {children} </Box>
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a150aff7a9409a152fff327f243aff75bf579857
src/components/composites/Progress/index.tsx
_filledTrack?: IBoxProps;
<mask> /** <mask> * Whether progress is indeterminate <mask> * @default false <mask> */ <mask> isIndeterminate?: boolean; <mask> /** <mask> * Min progress value <mask> * @default 0 <mask> */ <mask> min?: number; </s> feat: new prop resolution changes in progress </s> remove * Whether progress is indeterminate * @default false </s> add * Pseudo prop to give Prop to filled track </s> remove const { innerBg } = resolvedProps; const innerProps = { bg: innerBg, shadow: 0, rounded: resolvedProps.rounded, height: '100%', w: value < max && value > min ? ((value - min) / (max - min)) * 100 + '%' : value > min ? '100%' : '0%', display: 'flex', alignItems: 'center', justifyContent: 'center', color: 'white', }; </s> add </s> remove {isIndeterminate ? ( // <Animated.View // style={[ // { // transform: [ // { // translateX: width, // }, // ], // }, // ]} // > // </Animated.View> <Box {...innerProps} children={resolvedProps.children} /> ) : ( <Box {...innerProps} children={resolvedProps.children} /> )} </s> add <Box // {...resolvedProps} {..._filledTrack} w={ value < max && value > min ? ((value - min) / (max - min)) * 100 + '%' : value > min ? '100%' : '0%' } > {children} </Box> </s> remove // const width = new Animated.Value(0); // useEffect(() => { // Animated.loop( // Animated.timing(width, { // toValue: 270, // duration: 1000, // useNativeDriver: true, // }) // ).start(); // }); </s> add
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a150aff7a9409a152fff327f243aff75bf579857
src/components/composites/Progress/index.tsx
<mask> max?: number; <mask> } <mask> <mask> const Progress = (props: IProgressProps, ref?: any) => { <mask> // const width = new Animated.Value(0); <mask> // useEffect(() => { <mask> // Animated.loop( <mask> // Animated.timing(width, { <mask> // toValue: 270, <mask> // duration: 1000, <mask> // useNativeDriver: true, <mask> // }) <mask> // ).start(); <mask> // }); <mask> <mask> const { <mask> min, <mask> max, <mask> value, <mask> isIndeterminate, </s> feat: new prop resolution changes in progress </s> remove {isIndeterminate ? ( // <Animated.View // style={[ // { // transform: [ // { // translateX: width, // }, // ], // }, // ]} // > // </Animated.View> <Box {...innerProps} children={resolvedProps.children} /> ) : ( <Box {...innerProps} children={resolvedProps.children} /> )} </s> add <Box // {...resolvedProps} {..._filledTrack} w={ value < max && value > min ? ((value - min) / (max - min)) * 100 + '%' : value > min ? '100%' : '0%' } > {children} </Box> </s> remove isIndeterminate, </s> add _filledTrack, children, </s> remove innerBg: mode(`${colorScheme}.600`, `${colorScheme}.500`)(props), </s> add </s> remove const { innerBg } = resolvedProps; const innerProps = { bg: innerBg, shadow: 0, rounded: resolvedProps.rounded, height: '100%', w: value < max && value > min ? ((value - min) / (max - min)) * 100 + '%' : value > min ? '100%' : '0%', display: 'flex', alignItems: 'center', justifyContent: 'center', color: 'white', }; </s> add
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a150aff7a9409a152fff327f243aff75bf579857
src/components/composites/Progress/index.tsx
_filledTrack, children,
<mask> const { <mask> min, <mask> max, <mask> value, <mask> isIndeterminate, <mask> ...resolvedProps <mask> } = usePropsResolution('Progress', props); <mask> const { innerBg } = resolvedProps; <mask> <mask> const innerProps = { </s> feat: new prop resolution changes in progress </s> remove const { innerBg } = resolvedProps; const innerProps = { bg: innerBg, shadow: 0, rounded: resolvedProps.rounded, height: '100%', w: value < max && value > min ? ((value - min) / (max - min)) * 100 + '%' : value > min ? '100%' : '0%', display: 'flex', alignItems: 'center', justifyContent: 'center', color: 'white', }; </s> add </s> remove // const width = new Animated.Value(0); // useEffect(() => { // Animated.loop( // Animated.timing(width, { // toValue: 270, // duration: 1000, // useNativeDriver: true, // }) // ).start(); // }); </s> add </s> remove innerBg: mode(`${colorScheme}.600`, `${colorScheme}.500`)(props), </s> add </s> remove <VStack space="md"> <Heading textAlign="center" mb={8}> Progress ColorScheme </Heading> <VStack mx={4} space="md"> </s> add <VStack space={4}> <Heading textAlign="center">Progress ColorScheme</Heading> <VStack mx={4} space={4}>
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a150aff7a9409a152fff327f243aff75bf579857
src/components/composites/Progress/index.tsx
<mask> value, <mask> isIndeterminate, <mask> ...resolvedProps <mask> } = usePropsResolution('Progress', props); <mask> const { innerBg } = resolvedProps; <mask> <mask> const innerProps = { <mask> bg: innerBg, <mask> shadow: 0, <mask> rounded: resolvedProps.rounded, <mask> height: '100%', <mask> w: <mask> value < max && value > min <mask> ? ((value - min) / (max - min)) * 100 + '%' <mask> : value > min <mask> ? '100%' <mask> : '0%', <mask> display: 'flex', <mask> alignItems: 'center', <mask> justifyContent: 'center', <mask> color: 'white', <mask> }; <mask> <mask> return ( <mask> <Box <mask> {...resolvedProps} <mask> style={resolvedProps.style} </s> feat: new prop resolution changes in progress </s> remove {isIndeterminate ? ( // <Animated.View // style={[ // { // transform: [ // { // translateX: width, // }, // ], // }, // ]} // > // </Animated.View> <Box {...innerProps} children={resolvedProps.children} /> ) : ( <Box {...innerProps} children={resolvedProps.children} /> )} </s> add <Box // {...resolvedProps} {..._filledTrack} w={ value < max && value > min ? ((value - min) / (max - min)) * 100 + '%' : value > min ? '100%' : '0%' } > {children} </Box> </s> remove isIndeterminate, </s> add _filledTrack, children, </s> remove innerBg: mode(`${colorScheme}.600`, `${colorScheme}.500`)(props), </s> add </s> remove // const width = new Animated.Value(0); // useEffect(() => { // Animated.loop( // Animated.timing(width, { // toValue: 270, // duration: 1000, // useNativeDriver: true, // }) // ).start(); // }); </s> add
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a150aff7a9409a152fff327f243aff75bf579857
src/components/composites/Progress/index.tsx
<mask> <mask> return ( <mask> <Box <mask> {...resolvedProps} <mask> style={resolvedProps.style} <mask> ref={ref} <mask> accessible <mask> accessibilityRole="progressbar" <mask> accessibilityValue={{ <mask> min: min, </s> feat: new prop resolution changes in progress </s> remove const { innerBg } = resolvedProps; const innerProps = { bg: innerBg, shadow: 0, rounded: resolvedProps.rounded, height: '100%', w: value < max && value > min ? ((value - min) / (max - min)) * 100 + '%' : value > min ? '100%' : '0%', display: 'flex', alignItems: 'center', justifyContent: 'center', color: 'white', }; </s> add </s> remove {isIndeterminate ? ( // <Animated.View // style={[ // { // transform: [ // { // translateX: width, // }, // ], // }, // ]} // > // </Animated.View> <Box {...innerProps} children={resolvedProps.children} /> ) : ( <Box {...innerProps} children={resolvedProps.children} /> )} </s> add <Box // {...resolvedProps} {..._filledTrack} w={ value < max && value > min ? ((value - min) / (max - min)) * 100 + '%' : value > min ? '100%' : '0%' } > {children} </Box> </s> remove isIndeterminate, </s> add _filledTrack, children, </s> remove // const width = new Animated.Value(0); // useEffect(() => { // Animated.loop( // Animated.timing(width, { // toValue: 270, // duration: 1000, // useNativeDriver: true, // }) // ).start(); // }); </s> add </s> remove <VStack space="md"> <Heading textAlign="center" mb={8}> Progress ColorScheme </Heading> <VStack mx={4} space="md"> </s> add <VStack space={4}> <Heading textAlign="center">Progress ColorScheme</Heading> <VStack mx={4} space={4}>
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a150aff7a9409a152fff327f243aff75bf579857
src/components/composites/Progress/index.tsx
<Box // {...resolvedProps} {..._filledTrack} w={ value < max && value > min ? ((value - min) / (max - min)) * 100 + '%' : value > min ? '100%' : '0%' } > {children} </Box>
<mask> ? 100 <mask> : 0, <mask> }} <mask> > <mask> {isIndeterminate ? ( <mask> // <Animated.View <mask> // style={[ <mask> // { <mask> // transform: [ <mask> // { <mask> // translateX: width, <mask> // }, <mask> // ], <mask> // }, <mask> // ]} <mask> // > <mask> // </Animated.View> <mask> <Box {...innerProps} children={resolvedProps.children} /> <mask> ) : ( <mask> <Box {...innerProps} children={resolvedProps.children} /> <mask> )} <mask> </Box> <mask> ); <mask> }; <mask> <mask> export default memo(forwardRef(Progress)); </s> feat: new prop resolution changes in progress </s> remove // const width = new Animated.Value(0); // useEffect(() => { // Animated.loop( // Animated.timing(width, { // toValue: 270, // duration: 1000, // useNativeDriver: true, // }) // ).start(); // }); </s> add </s> remove const { innerBg } = resolvedProps; const innerProps = { bg: innerBg, shadow: 0, rounded: resolvedProps.rounded, height: '100%', w: value < max && value > min ? ((value - min) / (max - min)) * 100 + '%' : value > min ? '100%' : '0%', display: 'flex', alignItems: 'center', justifyContent: 'center', color: 'white', }; </s> add </s> remove <VStack space="md"> <Heading textAlign="center" mb={8}> Progress Sizes </Heading> <VStack mx={4} space="md"> <Progress size="xs" mb={4} value={25} /> <Progress size="sm" mb={4} value={35} /> <Progress size="md" mb={4} value={45} /> <Progress size="lg" mb={4} value={55} /> <Progress size="xl" mb={4} value={65} /> <Progress size="2xl" mb={4} value={75} /> </s> add <VStack space={4}> <Heading textAlign="center">Progress Sizes</Heading> <VStack mx={4} space={4}> <Progress size="xs" value={25} /> <Progress size="sm" value={35} /> <Progress size="md" value={45} /> <Progress size="lg" value={55} /> <Progress size="xl" value={65} /> <Progress size="2xl" value={75} />
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a150aff7a9409a152fff327f243aff75bf579857
src/components/composites/Progress/index.tsx
<mask> <mask> function baseStyle(props: Record<string, any>) { <mask> const colorScheme = getColorScheme(props); <mask> return { <mask> innerBg: mode(`${colorScheme}.600`, `${colorScheme}.500`)(props), <mask> bg: mode(`${colorScheme}.200`, `${colorScheme}.800`)(props), <mask> }; <mask> } <mask> <mask> const sizes = { </s> feat: new prop resolution changes in progress </s> remove isIndeterminate, </s> add _filledTrack, children, </s> remove const { innerBg } = resolvedProps; const innerProps = { bg: innerBg, shadow: 0, rounded: resolvedProps.rounded, height: '100%', w: value < max && value > min ? ((value - min) / (max - min)) * 100 + '%' : value > min ? '100%' : '0%', display: 'flex', alignItems: 'center', justifyContent: 'center', color: 'white', }; </s> add </s> remove // const width = new Animated.Value(0); // useEffect(() => { // Animated.loop( // Animated.timing(width, { // toValue: 270, // duration: 1000, // useNativeDriver: true, // }) // ).start(); // }); </s> add </s> remove <VStack space="md"> <Heading textAlign="center" mb={8}> Progress ColorScheme </Heading> <VStack mx={4} space="md"> </s> add <VStack space={4}> <Heading textAlign="center">Progress ColorScheme</Heading> <VStack mx={4} space={4}>
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a150aff7a9409a152fff327f243aff75bf579857
src/theme/components/progress.ts
overflow: 'hidden', _filledTrack: { bg: mode(`${colorScheme}.600`, `${colorScheme}.500`)(props), shadow: 0, height: '100%', display: 'flex', alignItems: 'center', justifyContent: 'center', _text: { color: 'white', fontWeight: 'bold', }, },
<mask> const colorScheme = getColorScheme(props); <mask> <mask> return { <mask> bg: mode(`${colorScheme}.200`, `${colorScheme}.800`)(props), <mask> }; <mask> } <mask> <mask> const sizes = { </s> feat: new prop resolution changes in progress </s> remove innerBg: mode(`${colorScheme}.600`, `${colorScheme}.500`)(props), </s> add </s> remove isIndeterminate, </s> add _filledTrack, children, </s> remove const { innerBg } = resolvedProps; const innerProps = { bg: innerBg, shadow: 0, rounded: resolvedProps.rounded, height: '100%', w: value < max && value > min ? ((value - min) / (max - min)) * 100 + '%' : value > min ? '100%' : '0%', display: 'flex', alignItems: 'center', justifyContent: 'center', color: 'white', }; </s> add </s> remove // const width = new Animated.Value(0); // useEffect(() => { // Animated.loop( // Animated.timing(width, { // toValue: 270, // duration: 1000, // useNativeDriver: true, // }) // ).start(); // }); </s> add </s> remove <VStack space="md"> <Heading textAlign="center" mb={8}> Progress ColorScheme </Heading> <VStack mx={4} space="md"> </s> add <VStack space={4}> <Heading textAlign="center">Progress ColorScheme</Heading> <VStack mx={4} space={4}>
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a150aff7a9409a152fff327f243aff75bf579857
src/theme/components/progress.ts
* The alt text that describes the image. This will be added as accessibilityLabel in android/iOS and alt on web.
<mask> * specify a source for image. <mask> */ <mask> source?: ImageSourcePropType; <mask> /** <mask> * The alt text that describes the image. This will be added as accessibilityLabel in android/iOS and alt on web <mask> */ <mask> alt?: string; <mask> /** <mask> * In event there was an error loading the src, specify a fallback source. <mask> */ </s> fix: content changes in image types </s> remove * Opt out of the fallbackSource logic and show alternative text </s> add * Opt out of the fallbackSource logic and show alternative text. </s> remove * In event there was an error loading the src, specify a fallback JSX Element. </s> add * In the event of an error loading the src, specify a fallback JSX Element. </s> remove * In event there was an error loading the src, specify a fallback source. </s> add * In the event of an error loading the src, specify a fallback source.
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a197d6c1c089c42400178f6a07c1914284e72b29
src/components/primitives/Image/types.ts
* In the event of an error loading the src, specify a fallback source.
<mask> * The alt text that describes the image. This will be added as accessibilityLabel in android/iOS and alt on web <mask> */ <mask> alt?: string; <mask> /** <mask> * In event there was an error loading the src, specify a fallback source. <mask> */ <mask> fallbackSource?: ImageSourcePropType; <mask> /** <mask> * Opt out of the fallbackSource logic and show alternative text <mask> */ </s> fix: content changes in image types </s> remove * In event there was an error loading the src, specify a fallback JSX Element. </s> add * In the event of an error loading the src, specify a fallback JSX Element. </s> remove * The alt text that describes the image. This will be added as accessibilityLabel in android/iOS and alt on web </s> add * The alt text that describes the image. This will be added as accessibilityLabel in android/iOS and alt on web. </s> remove * Opt out of the fallbackSource logic and show alternative text </s> add * Opt out of the fallbackSource logic and show alternative text.
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a197d6c1c089c42400178f6a07c1914284e72b29
src/components/primitives/Image/types.ts
* Opt out of the fallbackSource logic and show alternative text.
<mask> * In event there was an error loading the src, specify a fallback source. <mask> */ <mask> fallbackSource?: ImageSourcePropType; <mask> /** <mask> * Opt out of the fallbackSource logic and show alternative text <mask> */ <mask> ignoreFallback?: boolean; <mask> /** <mask> * Text styling for alt. <mask> */ </s> fix: content changes in image types </s> remove * The alt text that describes the image. This will be added as accessibilityLabel in android/iOS and alt on web </s> add * The alt text that describes the image. This will be added as accessibilityLabel in android/iOS and alt on web. </s> remove * In event there was an error loading the src, specify a fallback JSX Element. </s> add * In the event of an error loading the src, specify a fallback JSX Element. </s> remove * In event there was an error loading the src, specify a fallback source. </s> add * In the event of an error loading the src, specify a fallback source.
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a197d6c1c089c42400178f6a07c1914284e72b29
src/components/primitives/Image/types.ts
* In the event of an error loading the src, specify a fallback JSX Element.
<mask> * Text styling for alt. <mask> */ <mask> _alt?: Partial<ITextProps>; <mask> /** <mask> * In event there was an error loading the src, specify a fallback JSX Element. <mask> */ <mask> fallbackElement?: JSX.Element | JSX.Element[]; <mask> /** <mask> * specify a source for image. <mask> */ </s> fix: content changes in image types </s> remove * The alt text that describes the image. This will be added as accessibilityLabel in android/iOS and alt on web </s> add * The alt text that describes the image. This will be added as accessibilityLabel in android/iOS and alt on web. </s> remove * Opt out of the fallbackSource logic and show alternative text </s> add * Opt out of the fallbackSource logic and show alternative text. </s> remove * In event there was an error loading the src, specify a fallback source. </s> add * In the event of an error loading the src, specify a fallback source.
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a197d6c1c089c42400178f6a07c1914284e72b29
src/components/primitives/Image/types.ts
import { Button, useToast, Wrap } from 'native-base';
<mask> import React from 'react'; <mask> import { Button, useToast, VStack } from 'native-base'; <mask> <mask> export const Example = () => { <mask> const toast = useToast(); <mask> <mask> return ( </s> fix: add more toast examples </s> remove <VStack space={2}> <Button onPress={() => toast.show({ title: 'Account verified', status: 'success', description: 'Thanks for signing up with us.', }) } > Success </Button> <Button onPress={() => toast.show({ title: 'Something went wrong', status: 'error', description: 'Please create a support ticket from the support page', }) } > Error </Button> <Button onPress={() => toast.show({ title: 'Network connection restored', status: 'info', description: 'This is to inform you that your network connectivity is restored', }) } > Info </Button> <Button onPress={() => toast.show({ title: 'Invalid email address', status: 'warning', description: 'Please enter a valid email address', }) } > Warning </Button> </VStack> </s> add <Wrap> {variants.map((variant) => ( <Button key={variant} onPress={() => toast.show({ title: `${variant} toast`, variant: variant, isClosable: true, }) } mr={2} > Show {variant} toast </Button> ))} </Wrap> </s> remove status = 'none', </s> add status, </s> remove } else if (status === 'none') { </s> add } else if (!status && !variant) {
[ "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a1ec251926464fcd99f40420d5cd1a7426c3e112
example/storybook/stories/components/composites/Toast/ToastVariants.tsx
const variants = ['solid', 'subtle', 'left-accent', 'top-accent'];
<mask> <mask> export const Example = () => { <mask> const toast = useToast(); <mask> <mask> return ( <mask> <Wrap> <mask> {variants.map((variant) => ( <mask> <Button <mask> key={variant} </s> fix: add more toast examples </s> remove <VStack space={2}> <Button onPress={() => toast.show({ title: 'Account verified', status: 'success', description: 'Thanks for signing up with us.', }) } > Success </Button> <Button onPress={() => toast.show({ title: 'Something went wrong', status: 'error', description: 'Please create a support ticket from the support page', }) } > Error </Button> <Button onPress={() => toast.show({ title: 'Network connection restored', status: 'info', description: 'This is to inform you that your network connectivity is restored', }) } > Info </Button> <Button onPress={() => toast.show({ title: 'Invalid email address', status: 'warning', description: 'Please enter a valid email address', }) } > Warning </Button> </VStack> </s> add <Wrap> {variants.map((variant) => ( <Button key={variant} onPress={() => toast.show({ title: `${variant} toast`, variant: variant, isClosable: true, }) } mr={2} > Show {variant} toast </Button> ))} </Wrap> </s> remove import { Button, useToast, VStack } from 'native-base'; </s> add import { Button, useToast, Wrap } from 'native-base'; </s> remove status = 'none', </s> add status, </s> remove } else if (status === 'none') { </s> add } else if (!status && !variant) {
[ "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a1ec251926464fcd99f40420d5cd1a7426c3e112
example/storybook/stories/components/composites/Toast/ToastVariants.tsx
<Wrap> {variants.map((variant) => ( <Button key={variant} onPress={() => toast.show({ title: `${variant} toast`, variant: variant, isClosable: true, }) } mr={2} > Show {variant} toast </Button> ))} </Wrap>
<mask> export const Example = () => { <mask> const toast = useToast(); <mask> <mask> return ( <mask> <VStack space={2}> <mask> <Button <mask> onPress={() => <mask> toast.show({ <mask> title: 'Account verified', <mask> status: 'success', <mask> description: 'Thanks for signing up with us.', <mask> }) <mask> } <mask> > <mask> Success <mask> </Button> <mask> <mask> <Button <mask> onPress={() => <mask> toast.show({ <mask> title: 'Something went wrong', <mask> status: 'error', <mask> description: 'Please create a support ticket from the support page', <mask> }) <mask> } <mask> > <mask> Error <mask> </Button> <mask> <mask> <Button <mask> onPress={() => <mask> toast.show({ <mask> title: 'Network connection restored', <mask> status: 'info', <mask> description: <mask> 'This is to inform you that your network connectivity is restored', <mask> }) <mask> } <mask> > <mask> Info <mask> </Button> <mask> <mask> <Button <mask> onPress={() => <mask> toast.show({ <mask> title: 'Invalid email address', <mask> status: 'warning', <mask> description: 'Please enter a valid email address', <mask> }) <mask> } <mask> > <mask> Warning <mask> </Button> <mask> </VStack> <mask> ); <mask> }; </s> fix: add more toast examples </s> remove import { Button, useToast, VStack } from 'native-base'; </s> add import { Button, useToast, Wrap } from 'native-base'; </s> remove } else if (typeof status === 'string') { </s> add } else if (status || variant) { </s> remove } else if (status === 'none') { </s> add } else if (!status && !variant) {
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a1ec251926464fcd99f40420d5cd1a7426c3e112
example/storybook/stories/components/composites/Toast/ToastVariants.tsx
import { Example as ToastStatus } from './ToastStatus';
<mask> import { Example as Basic } from './Basic'; <mask> import { Example as CloseToast } from './CloseToast'; <mask> import { Example as CustomComponent } from './CustomComponent'; <mask> import { Example as PreventDuplicate } from './PreventDuplicate'; <mask> <mask> storiesOf('Toast', module) <mask> .addDecorator(withKnobs) <mask> .addDecorator((getStory: any) => <Wrapper>{getStory()}</Wrapper>) <mask> .add('Basic', () => <Basic />) </s> fix: add more toast examples </s> remove import { Button, useToast, VStack } from 'native-base'; </s> add import { Button, useToast, Wrap } from 'native-base'; </s> remove .add('Toast Variants', () => <ToastVariants />) </s> add </s> remove } else if (typeof status === 'string') { </s> add } else if (status || variant) { </s> remove <VStack space={2}> <Button onPress={() => toast.show({ title: 'Account verified', status: 'success', description: 'Thanks for signing up with us.', }) } > Success </Button> <Button onPress={() => toast.show({ title: 'Something went wrong', status: 'error', description: 'Please create a support ticket from the support page', }) } > Error </Button> <Button onPress={() => toast.show({ title: 'Network connection restored', status: 'info', description: 'This is to inform you that your network connectivity is restored', }) } > Info </Button> <Button onPress={() => toast.show({ title: 'Invalid email address', status: 'warning', description: 'Please enter a valid email address', }) } > Warning </Button> </VStack> </s> add <Wrap> {variants.map((variant) => ( <Button key={variant} onPress={() => toast.show({ title: `${variant} toast`, variant: variant, isClosable: true, }) } mr={2} > Show {variant} toast </Button> ))} </Wrap>
[ "keep", "keep", "keep", "add", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a1ec251926464fcd99f40420d5cd1a7426c3e112
example/storybook/stories/components/composites/Toast/index.tsx
<mask> <mask> storiesOf('Toast', module) <mask> .addDecorator(withKnobs) <mask> .addDecorator((getStory: any) => <Wrapper>{getStory()}</Wrapper>) <mask> .add('Toast Variants', () => <ToastVariants />) <mask> .add('Basic', () => <Basic />) <mask> .add('Toast Positions', () => <ToastPositions />) <mask> .add('Custom Component', () => <CustomComponent />) <mask> .add('CloseToast', () => <CloseToast />) <mask> .add('Prevent Duplicate', () => <PreventDuplicate />); </s> fix: add more toast examples </s> remove .add('Prevent Duplicate', () => <PreventDuplicate />); </s> add .add('Prevent Duplicate', () => <PreventDuplicate />) .add('Status', () => <ToastStatus />) .add('Toast Variants', () => <ToastVariants />); </s> remove <VStack space={2}> <Button onPress={() => toast.show({ title: 'Account verified', status: 'success', description: 'Thanks for signing up with us.', }) } > Success </Button> <Button onPress={() => toast.show({ title: 'Something went wrong', status: 'error', description: 'Please create a support ticket from the support page', }) } > Error </Button> <Button onPress={() => toast.show({ title: 'Network connection restored', status: 'info', description: 'This is to inform you that your network connectivity is restored', }) } > Info </Button> <Button onPress={() => toast.show({ title: 'Invalid email address', status: 'warning', description: 'Please enter a valid email address', }) } > Warning </Button> </VStack> </s> add <Wrap> {variants.map((variant) => ( <Button key={variant} onPress={() => toast.show({ title: `${variant} toast`, variant: variant, isClosable: true, }) } mr={2} > Show {variant} toast </Button> ))} </Wrap> </s> remove import { Button, useToast, VStack } from 'native-base'; </s> add import { Button, useToast, Wrap } from 'native-base';
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a1ec251926464fcd99f40420d5cd1a7426c3e112
example/storybook/stories/components/composites/Toast/index.tsx
.add('Prevent Duplicate', () => <PreventDuplicate />) .add('Status', () => <ToastStatus />) .add('Toast Variants', () => <ToastVariants />);
<mask> .add('Basic', () => <Basic />) <mask> .add('Toast Positions', () => <ToastPositions />) <mask> .add('Custom Component', () => <CustomComponent />) <mask> .add('CloseToast', () => <CloseToast />) <mask> .add('Prevent Duplicate', () => <PreventDuplicate />); </s> fix: add more toast examples </s> remove .add('Toast Variants', () => <ToastVariants />) </s> add </s> remove <VStack space={2}> <Button onPress={() => toast.show({ title: 'Account verified', status: 'success', description: 'Thanks for signing up with us.', }) } > Success </Button> <Button onPress={() => toast.show({ title: 'Something went wrong', status: 'error', description: 'Please create a support ticket from the support page', }) } > Error </Button> <Button onPress={() => toast.show({ title: 'Network connection restored', status: 'info', description: 'This is to inform you that your network connectivity is restored', }) } > Info </Button> <Button onPress={() => toast.show({ title: 'Invalid email address', status: 'warning', description: 'Please enter a valid email address', }) } > Warning </Button> </VStack> </s> add <Wrap> {variants.map((variant) => ( <Button key={variant} onPress={() => toast.show({ title: `${variant} toast`, variant: variant, isClosable: true, }) } mr={2} > Show {variant} toast </Button> ))} </Wrap> </s> remove import { Button, useToast, VStack } from 'native-base'; </s> add import { Button, useToast, Wrap } from 'native-base';
[ "keep", "keep", "keep", "keep", "replace" ]
https://github.com/GeekyAnts/NativeBase/commit/a1ec251926464fcd99f40420d5cd1a7426c3e112
example/storybook/stories/components/composites/Toast/index.tsx
status,
<mask> const { <mask> placement = 'bottom', <mask> title, <mask> render, <mask> status = 'none', <mask> id = toastIndex.current++, <mask> description, <mask> isClosable = true, <mask> duration = 5000, <mask> variant, </s> fix: add more toast examples </s> remove <VStack space={2}> <Button onPress={() => toast.show({ title: 'Account verified', status: 'success', description: 'Thanks for signing up with us.', }) } > Success </Button> <Button onPress={() => toast.show({ title: 'Something went wrong', status: 'error', description: 'Please create a support ticket from the support page', }) } > Error </Button> <Button onPress={() => toast.show({ title: 'Network connection restored', status: 'info', description: 'This is to inform you that your network connectivity is restored', }) } > Info </Button> <Button onPress={() => toast.show({ title: 'Invalid email address', status: 'warning', description: 'Please enter a valid email address', }) } > Warning </Button> </VStack> </s> add <Wrap> {variants.map((variant) => ( <Button key={variant} onPress={() => toast.show({ title: `${variant} toast`, variant: variant, isClosable: true, }) } mr={2} > Show {variant} toast </Button> ))} </Wrap> </s> remove import { Button, useToast, VStack } from 'native-base'; </s> add import { Button, useToast, Wrap } from 'native-base'; </s> remove } else if (status === 'none') { </s> add } else if (!status && !variant) { </s> remove } else if (typeof status === 'string') { </s> add } else if (status || variant) {
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a1ec251926464fcd99f40420d5cd1a7426c3e112
src/components/composites/Toast/Toast.tsx
} else if (!status && !variant) {
<mask> let component = null; <mask> <mask> if (render) { <mask> component = render({ id: toastIndex.current }); <mask> } else if (status === 'none') { <mask> component = ( <mask> <VStack space={1} {...themeProps} {...rest}> <mask> <Box _text={themeProps._title}>{title}</Box> <mask> {description && ( <mask> <Box _text={themeProps._description}>{description}</Box> </s> fix: add more toast examples </s> remove } else if (typeof status === 'string') { </s> add } else if (status || variant) { </s> remove import { Button, useToast, VStack } from 'native-base'; </s> add import { Button, useToast, Wrap } from 'native-base'; </s> remove * The status of the toast. Any values apart from `none` will render an [Alert](alert.md) component inside the `Toast` * @default none </s> add * The status of the toast. Adding status will render an [Alert](alert.md) component inside the `Toast` </s> remove <VStack space={2}> <Button onPress={() => toast.show({ title: 'Account verified', status: 'success', description: 'Thanks for signing up with us.', }) } > Success </Button> <Button onPress={() => toast.show({ title: 'Something went wrong', status: 'error', description: 'Please create a support ticket from the support page', }) } > Error </Button> <Button onPress={() => toast.show({ title: 'Network connection restored', status: 'info', description: 'This is to inform you that your network connectivity is restored', }) } > Info </Button> <Button onPress={() => toast.show({ title: 'Invalid email address', status: 'warning', description: 'Please enter a valid email address', }) } > Warning </Button> </VStack> </s> add <Wrap> {variants.map((variant) => ( <Button key={variant} onPress={() => toast.show({ title: `${variant} toast`, variant: variant, isClosable: true, }) } mr={2} > Show {variant} toast </Button> ))} </Wrap>
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a1ec251926464fcd99f40420d5cd1a7426c3e112
src/components/composites/Toast/Toast.tsx
} else if (status || variant) {
<mask> <Box _text={themeProps._description}>{description}</Box> <mask> )} <mask> </VStack> <mask> ); <mask> } else if (typeof status === 'string') { <mask> component = ( <mask> <Alert <mask> status={status ?? 'info'} <mask> variant={variant as any} <mask> accessibilityLiveRegion={accessibilityLiveRegion} </s> fix: add more toast examples </s> remove } else if (status === 'none') { </s> add } else if (!status && !variant) { </s> remove <VStack space={2}> <Button onPress={() => toast.show({ title: 'Account verified', status: 'success', description: 'Thanks for signing up with us.', }) } > Success </Button> <Button onPress={() => toast.show({ title: 'Something went wrong', status: 'error', description: 'Please create a support ticket from the support page', }) } > Error </Button> <Button onPress={() => toast.show({ title: 'Network connection restored', status: 'info', description: 'This is to inform you that your network connectivity is restored', }) } > Info </Button> <Button onPress={() => toast.show({ title: 'Invalid email address', status: 'warning', description: 'Please enter a valid email address', }) } > Warning </Button> </VStack> </s> add <Wrap> {variants.map((variant) => ( <Button key={variant} onPress={() => toast.show({ title: `${variant} toast`, variant: variant, isClosable: true, }) } mr={2} > Show {variant} toast </Button> ))} </Wrap> </s> remove import { Button, useToast, VStack } from 'native-base'; </s> add import { Button, useToast, Wrap } from 'native-base';
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a1ec251926464fcd99f40420d5cd1a7426c3e112
src/components/composites/Toast/Toast.tsx
* The status of the toast. Adding status will render an [Alert](alert.md) component inside the `Toast`
<mask> * Render a component toast component. Any component passed will receive 2 props: `id` and `onClose`. <mask> */ <mask> render?: (props: any) => ReactNode; <mask> /** <mask> * The status of the toast. Any values apart from `none` will render an [Alert](alert.md) component inside the `Toast` <mask> * @default none <mask> */ <mask> status?: 'none' | 'info' | 'warning' | 'error' | 'success'; <mask> /** <mask> * The title to be rendered in the Toast <mask> */ </s> fix: add more toast examples </s> remove status?: 'none' | 'info' | 'warning' | 'error' | 'success'; </s> add status?: 'info' | 'warning' | 'error' | 'success'; </s> remove variant?: string; </s> add variant?: | 'subtle' | 'solid' | 'left-accent' | 'top-accent' | 'outline' | 'outline-light'; </s> remove /** The variants of the [Alert](alert.md) component. This will be only applied when the status is not `none` * @default subtle </s> add /** The variants of the [Alert](alert.md) component. </s> remove } else if (status === 'none') { </s> add } else if (!status && !variant) { </s> remove <VStack space={2}> <Button onPress={() => toast.show({ title: 'Account verified', status: 'success', description: 'Thanks for signing up with us.', }) } > Success </Button> <Button onPress={() => toast.show({ title: 'Something went wrong', status: 'error', description: 'Please create a support ticket from the support page', }) } > Error </Button> <Button onPress={() => toast.show({ title: 'Network connection restored', status: 'info', description: 'This is to inform you that your network connectivity is restored', }) } > Info </Button> <Button onPress={() => toast.show({ title: 'Invalid email address', status: 'warning', description: 'Please enter a valid email address', }) } > Warning </Button> </VStack> </s> add <Wrap> {variants.map((variant) => ( <Button key={variant} onPress={() => toast.show({ title: `${variant} toast`, variant: variant, isClosable: true, }) } mr={2} > Show {variant} toast </Button> ))} </Wrap>
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a1ec251926464fcd99f40420d5cd1a7426c3e112
src/components/composites/Toast/types.ts
status?: 'info' | 'warning' | 'error' | 'success';
<mask> /** <mask> * The status of the toast. Any values apart from `none` will render an [Alert](alert.md) component inside the `Toast` <mask> * @default none <mask> */ <mask> status?: 'none' | 'info' | 'warning' | 'error' | 'success'; <mask> /** <mask> * The title to be rendered in the Toast <mask> */ <mask> title?: ReactNode; <mask> /** The variants of the [Alert](alert.md) component. This will be only applied when the status is not `none` </s> fix: add more toast examples </s> remove * The status of the toast. Any values apart from `none` will render an [Alert](alert.md) component inside the `Toast` * @default none </s> add * The status of the toast. Adding status will render an [Alert](alert.md) component inside the `Toast` </s> remove variant?: string; </s> add variant?: | 'subtle' | 'solid' | 'left-accent' | 'top-accent' | 'outline' | 'outline-light'; </s> remove /** The variants of the [Alert](alert.md) component. This will be only applied when the status is not `none` * @default subtle </s> add /** The variants of the [Alert](alert.md) component. </s> remove <VStack space={2}> <Button onPress={() => toast.show({ title: 'Account verified', status: 'success', description: 'Thanks for signing up with us.', }) } > Success </Button> <Button onPress={() => toast.show({ title: 'Something went wrong', status: 'error', description: 'Please create a support ticket from the support page', }) } > Error </Button> <Button onPress={() => toast.show({ title: 'Network connection restored', status: 'info', description: 'This is to inform you that your network connectivity is restored', }) } > Info </Button> <Button onPress={() => toast.show({ title: 'Invalid email address', status: 'warning', description: 'Please enter a valid email address', }) } > Warning </Button> </VStack> </s> add <Wrap> {variants.map((variant) => ( <Button key={variant} onPress={() => toast.show({ title: `${variant} toast`, variant: variant, isClosable: true, }) } mr={2} > Show {variant} toast </Button> ))} </Wrap> </s> remove } else if (status === 'none') { </s> add } else if (!status && !variant) {
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a1ec251926464fcd99f40420d5cd1a7426c3e112
src/components/composites/Toast/types.ts
/** The variants of the [Alert](alert.md) component.
<mask> /** <mask> * The title to be rendered in the Toast <mask> */ <mask> title?: ReactNode; <mask> /** The variants of the [Alert](alert.md) component. This will be only applied when the status is not `none` <mask> * @default subtle <mask> */ <mask> variant?: string; <mask> /** <mask> * The text to be announced by a screen reader when the Toast opens. <mask> */ </s> fix: add more toast examples </s> remove variant?: string; </s> add variant?: | 'subtle' | 'solid' | 'left-accent' | 'top-accent' | 'outline' | 'outline-light'; </s> remove status?: 'none' | 'info' | 'warning' | 'error' | 'success'; </s> add status?: 'info' | 'warning' | 'error' | 'success'; </s> remove * The status of the toast. Any values apart from `none` will render an [Alert](alert.md) component inside the `Toast` * @default none </s> add * The status of the toast. Adding status will render an [Alert](alert.md) component inside the `Toast` </s> remove <VStack space={2}> <Button onPress={() => toast.show({ title: 'Account verified', status: 'success', description: 'Thanks for signing up with us.', }) } > Success </Button> <Button onPress={() => toast.show({ title: 'Something went wrong', status: 'error', description: 'Please create a support ticket from the support page', }) } > Error </Button> <Button onPress={() => toast.show({ title: 'Network connection restored', status: 'info', description: 'This is to inform you that your network connectivity is restored', }) } > Info </Button> <Button onPress={() => toast.show({ title: 'Invalid email address', status: 'warning', description: 'Please enter a valid email address', }) } > Warning </Button> </VStack> </s> add <Wrap> {variants.map((variant) => ( <Button key={variant} onPress={() => toast.show({ title: `${variant} toast`, variant: variant, isClosable: true, }) } mr={2} > Show {variant} toast </Button> ))} </Wrap>
[ "keep", "keep", "keep", "keep", "replace", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a1ec251926464fcd99f40420d5cd1a7426c3e112
src/components/composites/Toast/types.ts
variant?: | 'subtle' | 'solid' | 'left-accent' | 'top-accent' | 'outline' | 'outline-light';
<mask> title?: ReactNode; <mask> /** The variants of the [Alert](alert.md) component. This will be only applied when the status is not `none` <mask> * @default subtle <mask> */ <mask> variant?: string; <mask> /** <mask> * The text to be announced by a screen reader when the Toast opens. <mask> */ <mask> accessibilityAnnouncement?: string; <mask> /** </s> fix: add more toast examples </s> remove /** The variants of the [Alert](alert.md) component. This will be only applied when the status is not `none` * @default subtle </s> add /** The variants of the [Alert](alert.md) component. </s> remove status?: 'none' | 'info' | 'warning' | 'error' | 'success'; </s> add status?: 'info' | 'warning' | 'error' | 'success'; </s> remove * The status of the toast. Any values apart from `none` will render an [Alert](alert.md) component inside the `Toast` * @default none </s> add * The status of the toast. Adding status will render an [Alert](alert.md) component inside the `Toast` </s> remove <VStack space={2}> <Button onPress={() => toast.show({ title: 'Account verified', status: 'success', description: 'Thanks for signing up with us.', }) } > Success </Button> <Button onPress={() => toast.show({ title: 'Something went wrong', status: 'error', description: 'Please create a support ticket from the support page', }) } > Error </Button> <Button onPress={() => toast.show({ title: 'Network connection restored', status: 'info', description: 'This is to inform you that your network connectivity is restored', }) } > Info </Button> <Button onPress={() => toast.show({ title: 'Invalid email address', status: 'warning', description: 'Please enter a valid email address', }) } > Warning </Button> </VStack> </s> add <Wrap> {variants.map((variant) => ( <Button key={variant} onPress={() => toast.show({ title: `${variant} toast`, variant: variant, isClosable: true, }) } mr={2} > Show {variant} toast </Button> ))} </Wrap>
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a1ec251926464fcd99f40420d5cd1a7426c3e112
src/components/composites/Toast/types.ts
<Box width="100%" bg="orange.300" p={4} shadow={4}>
<mask> import React from 'react'; <mask> import { Box } from 'native-base'; <mask> export const Basic = () => { <mask> return ( <mask> <Box <mask> width="100%" <mask> bg="orange.300" <mask> p={4} <mask> shadow={4} <mask> _text={{ fontSize: 'lg' }} <mask> > <mask> This is a Box <mask> </Box> <mask> ); <mask> }; </s> Revert "Merge branch 'feat/api-review' into v3-dev" This reverts commit 564618bc754b4e406078cd09689c62972a2e95f7, reversing changes made to 61a2744d5e5d51e939a68a37c318867c5b3e96cb. </s> remove {React.Children.map(children, (child) => typeof child === 'string' ? <Text {..._text}>{child}</Text> : child )} </s> add {addTextAndPropsToStrings(children, textProps)} </s> remove import { border, color, flexbox, layout, position, space } from 'styled-system'; import { customBackground, customBorder, customExtra, customLayout, customOutline, customPosition, customShadow, } from '../../../utils/customProps'; </s> add import { border, color, flexbox, layout, space } from 'styled-system'; </s> remove const AppBar = ({ children, ...props }: IAppBarProps) => { </s> add const AppBar = React.memo(({ children, ...props }: IAppBarProps) => { </s> remove const Box = ({ children, _text, ...props }: IBoxProps, ref: any) => { const boxProps = useThemeProps('Box', props); </s> add const Box = ({ children, ...props }: IBoxProps, ref: any) => { // TextProps that contain all the props related to text and gets added to child text components using addTextAndPropsToStrings() method let [textProps, remainingProps] = themeTools.extractInObject(props, [ 'fontWeight', 'fontFamily', 'fontSize', 'color', 'textDecoration', 'txtDecor', 'wordBreak', 'textOverflow', 'textTransform', 'whiteSpace', 'overflowWrap', ]); const boxProps = useThemeProps('Box', remainingProps); </s> remove import { useThemeProps } from '../../../hooks/useThemeProps'; </s> add import { useThemeProps } from '../../../hooks';
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "replace", "replace", "replace", "replace", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a2906f66381d5f8a0fc0fe3ffc56699c9e4b8d90
example/storybook/stories/components/primitives/Box/basic.tsx
import { useThemeProps } from '../../../hooks';
<mask> import React from 'react'; <mask> import { useThemeProps } from '../../../hooks/useThemeProps'; <mask> import AppBarLeft from './AppBarLeft'; <mask> import AppBarRight from './AppBarRight'; <mask> import AppBarContent from './AppBarContent'; <mask> import { HStack, IBoxProps } from '../../primitives'; <mask> import { APPROX_STATUSBAR_HEIGHT } from './utils'; </s> Revert "Merge branch 'feat/api-review' into v3-dev" This reverts commit 564618bc754b4e406078cd09689c62972a2e95f7, reversing changes made to 61a2744d5e5d51e939a68a37c318867c5b3e96cb. </s> remove import { border, color, flexbox, layout, position, space } from 'styled-system'; import { customBackground, customBorder, customExtra, customLayout, customOutline, customPosition, customShadow, } from '../../../utils/customProps'; </s> add import { border, color, flexbox, layout, space } from 'styled-system'; </s> remove import Text from './../Text'; </s> add </s> remove <Box width="100%" bg="orange.300" p={4} shadow={4} _text={{ fontSize: 'lg' }} > </s> add <Box width="100%" bg="orange.300" p={4} shadow={4}> </s> remove import type { ITextProps } from './../Text/types'; </s> add
[ "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a2906f66381d5f8a0fc0fe3ffc56699c9e4b8d90
src/components/composites/AppBar/AppBar.tsx
const AppBar = React.memo(({ children, ...props }: IAppBarProps) => {
<mask> statusBarHeight?: number; <mask> space?: number; <mask> }; <mask> <mask> const AppBar = ({ children, ...props }: IAppBarProps) => { <mask> const { <mask> statusBarHeight = APPROX_STATUSBAR_HEIGHT, <mask> ...newProps <mask> } = useThemeProps('AppBar', props); <mask> return ( </s> Revert "Merge branch 'feat/api-review' into v3-dev" This reverts commit 564618bc754b4e406078cd09689c62972a2e95f7, reversing changes made to 61a2744d5e5d51e939a68a37c318867c5b3e96cb. </s> remove {React.Children.map(children, (child) => typeof child === 'string' ? <Text {..._text}>{child}</Text> : child )} </s> add {addTextAndPropsToStrings(children, textProps)} </s> remove const Box = ({ children, _text, ...props }: IBoxProps, ref: any) => { const boxProps = useThemeProps('Box', props); </s> add const Box = ({ children, ...props }: IBoxProps, ref: any) => { // TextProps that contain all the props related to text and gets added to child text components using addTextAndPropsToStrings() method let [textProps, remainingProps] = themeTools.extractInObject(props, [ 'fontWeight', 'fontFamily', 'fontSize', 'color', 'textDecoration', 'txtDecor', 'wordBreak', 'textOverflow', 'textTransform', 'whiteSpace', 'overflowWrap', ]); const boxProps = useThemeProps('Box', remainingProps); </s> remove position, customPosition, customBorder, customBackground, customOutline, customShadow, customExtra, customLayout, </s> add </s> remove <Box width="100%" bg="orange.300" p={4} shadow={4} _text={{ fontSize: 'lg' }} > </s> add <Box width="100%" bg="orange.300" p={4} shadow={4}> </s> remove _text?: ITextProps; </s> add
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a2906f66381d5f8a0fc0fe3ffc56699c9e4b8d90
src/components/composites/AppBar/AppBar.tsx
});
<mask> > <mask> {children} <mask> </HStack> <mask> ); <mask> }; <mask> <mask> AppBar.Left = React.memo(AppBarLeft); <mask> AppBar.Right = React.memo(AppBarRight); <mask> AppBar.Content = React.memo(AppBarContent); <mask> </s> Revert "Merge branch 'feat/api-review' into v3-dev" This reverts commit 564618bc754b4e406078cd09689c62972a2e95f7, reversing changes made to 61a2744d5e5d51e939a68a37c318867c5b3e96cb. </s> remove AppBar.Left = React.memo(AppBarLeft); AppBar.Right = React.memo(AppBarRight); AppBar.Content = React.memo(AppBarContent); </s> add (AppBar as any).Left = React.memo(AppBarLeft); (AppBar as any).Right = React.memo(AppBarRight); (AppBar as any).Content = React.memo(AppBarContent); </s> remove <Box width="100%" bg="orange.300" p={4} shadow={4} _text={{ fontSize: 'lg' }} > </s> add <Box width="100%" bg="orange.300" p={4} shadow={4}> </s> remove const AppBar = ({ children, ...props }: IAppBarProps) => { </s> add const AppBar = React.memo(({ children, ...props }: IAppBarProps) => { </s> remove const Box = ({ children, _text, ...props }: IBoxProps, ref: any) => { const boxProps = useThemeProps('Box', props); </s> add const Box = ({ children, ...props }: IBoxProps, ref: any) => { // TextProps that contain all the props related to text and gets added to child text components using addTextAndPropsToStrings() method let [textProps, remainingProps] = themeTools.extractInObject(props, [ 'fontWeight', 'fontFamily', 'fontSize', 'color', 'textDecoration', 'txtDecor', 'wordBreak', 'textOverflow', 'textTransform', 'whiteSpace', 'overflowWrap', ]); const boxProps = useThemeProps('Box', remainingProps); </s> remove {React.Children.map(children, (child) => typeof child === 'string' ? <Text {..._text}>{child}</Text> : child )} </s> add {addTextAndPropsToStrings(children, textProps)}
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a2906f66381d5f8a0fc0fe3ffc56699c9e4b8d90
src/components/composites/AppBar/AppBar.tsx
(AppBar as any).Left = React.memo(AppBarLeft); (AppBar as any).Right = React.memo(AppBarRight); (AppBar as any).Content = React.memo(AppBarContent);
<mask> </HStack> <mask> ); <mask> }; <mask> <mask> AppBar.Left = React.memo(AppBarLeft); <mask> AppBar.Right = React.memo(AppBarRight); <mask> AppBar.Content = React.memo(AppBarContent); <mask> <mask> export default AppBar; </s> Revert "Merge branch 'feat/api-review' into v3-dev" This reverts commit 564618bc754b4e406078cd09689c62972a2e95f7, reversing changes made to 61a2744d5e5d51e939a68a37c318867c5b3e96cb. </s> remove }; </s> add }); </s> remove {React.Children.map(children, (child) => typeof child === 'string' ? <Text {..._text}>{child}</Text> : child )} </s> add {addTextAndPropsToStrings(children, textProps)} </s> remove const AppBar = ({ children, ...props }: IAppBarProps) => { </s> add const AppBar = React.memo(({ children, ...props }: IAppBarProps) => { </s> remove position, customPosition, customBorder, customBackground, customOutline, customShadow, customExtra, customLayout, </s> add </s> remove <Box width="100%" bg="orange.300" p={4} shadow={4} _text={{ fontSize: 'lg' }} > </s> add <Box width="100%" bg="orange.300" p={4} shadow={4}>
[ "keep", "keep", "keep", "keep", "replace", "replace", "replace", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a2906f66381d5f8a0fc0fe3ffc56699c9e4b8d90
src/components/composites/AppBar/AppBar.tsx
import { themeTools } from '../../../theme'; import { addTextAndPropsToStrings } from '../../../utils/addTextAndPropsToStrings';
<mask> } from 'styled-system'; <mask> import { useThemeProps } from '../../../hooks/useThemeProps'; <mask> import { <mask> customBackground, <mask> customBorder, <mask> customExtra, </s> Revert "Merge branch 'feat/api-review' into v3-dev" This reverts commit 564618bc754b4e406078cd09689c62972a2e95f7, reversing changes made to 61a2744d5e5d51e939a68a37c318867c5b3e96cb. </s> remove import { border, color, flexbox, layout, position, space } from 'styled-system'; import { customBackground, customBorder, customExtra, customLayout, customOutline, customPosition, customShadow, } from '../../../utils/customProps'; </s> add import { border, color, flexbox, layout, space } from 'styled-system'; </s> remove import { useThemeProps } from '../../../hooks/useThemeProps'; </s> add import { useThemeProps } from '../../../hooks'; </s> remove position, customPosition, customBorder, customBackground, customOutline, customShadow, customExtra, customLayout, </s> add </s> remove import type { ITextProps } from './../Text/types'; </s> add </s> remove import Text from './../Text'; </s> add
[ "keep", "add", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a2906f66381d5f8a0fc0fe3ffc56699c9e4b8d90
src/components/primitives/Box/index.tsx
<mask> customShadow, <mask> customTypography, <mask> } from '../../../utils/customProps'; <mask> import type { IBoxProps } from './types'; <mask> import Text from './../Text'; <mask> <mask> const StyledBox = styled(View)<IBoxProps>( <mask> color, <mask> space, <mask> layout, </s> Revert "Merge branch 'feat/api-review' into v3-dev" This reverts commit 564618bc754b4e406078cd09689c62972a2e95f7, reversing changes made to 61a2744d5e5d51e939a68a37c318867c5b3e96cb. </s> remove import { border, color, flexbox, layout, position, space } from 'styled-system'; import { customBackground, customBorder, customExtra, customLayout, customOutline, customPosition, customShadow, } from '../../../utils/customProps'; </s> add import { border, color, flexbox, layout, space } from 'styled-system'; </s> remove position, customPosition, customBorder, customBackground, customOutline, customShadow, customExtra, customLayout, </s> add </s> remove import { useThemeProps } from '../../../hooks/useThemeProps'; </s> add import { useThemeProps } from '../../../hooks'; </s> remove import type { ITextProps } from './../Text/types'; </s> add
[ "keep", "keep", "keep", "keep", "replace", "keep", "keep", "keep", "keep", "keep" ]
https://github.com/GeekyAnts/NativeBase/commit/a2906f66381d5f8a0fc0fe3ffc56699c9e4b8d90
src/components/primitives/Box/index.tsx