UNPKG

wix-style-react

Version:
287 lines (271 loc) 7.55 kB
export const _closeButton = ` <Layout> <Cell> <ModalMobileLayout title={<Text weight="bold">Enter VAT ID</Text>} content={ <Text weight="thin" secondary> Enter a valid European Union VAT identification number for the ‘Reverse Charge’ mechanism in order to apply. </Text> } footer={ <Box align="right"> <Box marginRight="12px"> <Button priority="secondary">Cancel</Button> </Box> <Button>Save</Button> </Box>} onCloseButtonClick={() => {}} /> </Cell> <Cell> <ModalMobileLayout title={<Text weight="bold">Enter VAT ID</Text>} content={ <Text weight="thin" secondary> Enter a valid European Union VAT identification number for the ‘Reverse Charge’ mechanism in order to apply. </Text> } footer={ <Box align="right"> <Box marginRight="12px"> <Button priority="secondary">Cancel</Button> </Box> <Button>Save</Button> </Box>} /> </Cell> </Layout> `; export const _title = ` <Layout> <Cell> <ModalMobileLayout title={<Text weight="bold">Enter VAT ID</Text>} content={ <Text weight="thin" secondary> Enter a valid European Union VAT identification number for the ‘Reverse Charge’ mechanism in order to apply. </Text> } footer={ <Box align="right"> <Box marginRight="12px"> <Button priority="secondary">Cancel</Button> </Box> <Button>Save</Button> </Box>} onCloseButtonClick={() => {}} /> </Cell> <Cell> <ModalMobileLayout content={ <Text weight="thin" secondary> Enter a valid European Union VAT identification number for the ‘Reverse Charge’ mechanism in order to apply. </Text> } footer={ <Box align="right"> <Box marginRight="12px"> <Button priority="secondary">Cancel</Button> </Box> <Button>Save</Button> </Box>} onCloseButtonClick={() => {}} /> </Cell> </Layout> `; export const _stickyTitle = ` <div> <div style={{height: '185px'}}> <ModalMobileLayout content={ <Text weight="thin" secondary> Enter a valid European Union VAT identification number for the ‘Reverse Charge’ mechanism in order to apply. </Text> } title={<Text weight="bold">Enter VAT ID</Text>} onCloseButtonClick={() => {}} stickyTitle /> </div> <div style={{height: '185px'}}> <ModalMobileLayout content={ <Text weight="thin" secondary> Enter a valid European Union VAT identification number for the ‘Reverse Charge’ mechanism in order to apply. </Text> } title={<Text weight="bold">Enter VAT ID</Text>} onCloseButtonClick={() => {}} /> </div> </div> `; export const _footer = ` <Layout> <Cell> <ModalMobileLayout title={<Text weight="bold">Enter VAT ID</Text>} content={ <Text weight="thin" secondary> Enter a valid European Union VAT identification number for the ‘Reverse Charge’ mechanism in order to apply. </Text> } footer={ <Box align="right"> <Box marginRight="12px"> <Button priority="secondary">Cancel</Button> </Box> <Button>Save</Button> </Box>} onCloseButtonClick={() => {}} /> </Cell> <Cell> <ModalMobileLayout title={<Text weight="bold">Enter VAT ID</Text>} content={ <Text weight="thin" secondary> Enter a valid European Union VAT identification number for the ‘Reverse Charge’ mechanism in order to apply. </Text> } onCloseButtonClick={() => {}} /> </Cell> </Layout> `; export const _stickyFooter = ` <div> <div style={{height: '185px'}}> <ModalMobileLayout content={ <Text weight="thin" secondary> Enter a valid European Union VAT identification number for the ‘Reverse Charge’ mechanism in order to apply. </Text> } footer={ <Box align="right"> <Box marginRight="12px"> <Button priority="secondary">Cancel</Button> </Box> <Button>Save</Button> </Box>} onCloseButtonClick={() => {}} stickyFooter /> </div> <div style={{height: '185px'}}> <ModalMobileLayout content={ <Text weight="thin" secondary> Enter a valid European Union VAT identification number for the ‘Reverse Charge’ mechanism in order to apply. </Text> } footer={ <Box align="right"> <Box marginRight="12px"> <Button priority="secondary">Cancel</Button> </Box> <Button>Save</Button> </Box>} onCloseButtonClick={() => {}} /> </div> </div> `; export const _mobileModal = ` <Box width="375px" height="640px" backgroundColor="rgba(22, 45, 61, 0.66)"> <ModalMobileLayout title={<Text weight="bold">Enter VAT ID</Text>} content={ <Text weight="thin" secondary> Enter a valid European Union VAT identification number for the ‘Reverse Charge’ mechanism in order to apply. </Text> } footer={ <Box align="right"> <Box marginRight="12px"> <Button priority="secondary">Cancel</Button> </Box> <Button>Save</Button> </Box> } onCloseButtonClick={() => {}} /> </Box>; `; export const _fullscreenmodal = ` <Box width="375px" height="640px"> <ModalMobileLayout fullscreen onCloseButtonClick={() => {}} content={ <Box direction="vertical" align="center" textAlign="center"> <Box marginBottom="36px" marginTop="91px"> <Image src="Illustration.svg" /> </Box> <Box marginBottom="12px"> <Heading appearance={'H1'}>Welcome!</Heading> </Box> <Box marginBottom="36px"> <Text weight="thin" secondary> First impressions count. Apps have one chance to grab a new user’s attention. Use it well. </Text> </Box> <Box marginBottom="18px"> <Button size="large">Start Now</Button> </Box> <Box marginBottom="91px"> <TextButton>Learn More</TextButton> </Box> </Box> } /> </Box>; `; export const _plain = ` () => { const [open, setOpen] = React.useState(false); return ( <div> <Button onClick={() => setOpen(!open)}>Open</Button> <Modal isOpen={open} onRequestClose={() => setOpen(false)} contentLabel="Mobile modal example" scrollable={false} scrollableContent > <ModalMobileLayout title={<Text weight="bold">Enter VAT ID</Text>} content={ <Text weight="thin"> Enter a valid European Union VAT identification number for the ‘Reverse Charge’ mechanism in order to apply. </Text> } footer={ <Box align="right"> <Box marginRight="12px"> <Button priority="secondary" onClick={() => setOpen(false)}> Cancel </Button> </Box> <Button onClick={() => setOpen(false)}>OK</Button> </Box> } onOverlayClick={() => setOpen(false)} /> </Modal> </div> ); }; `;