-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin' into feat/add-corner-and-arrow-…
…icons
- Loading branch information
Showing
19 changed files
with
859 additions
and
562 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
65 changes: 65 additions & 0 deletions
65
packages/blade/src/components/Card/InternalCardExample.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
// Hidden example. It is used in motion stories | ||
import React from 'react'; | ||
import { | ||
CardBody, | ||
Card, | ||
CardFooter, | ||
CardFooterTrailing, | ||
CardHeader, | ||
CardHeaderLeading, | ||
CardHeaderTrailing, | ||
CardHeaderIcon, | ||
CardHeaderCounter, | ||
CardHeaderBadge, | ||
} from '.'; | ||
import { Text } from '~components/Typography'; | ||
import { CheckCircleIcon } from '~components/Icons'; | ||
|
||
export const InternalCardExample = React.forwardRef((_, ref) => { | ||
return ( | ||
<Card | ||
ref={ref as never} | ||
backgroundColor="surface.background.gray.intense" | ||
borderRadius="medium" | ||
elevation="lowRaised" | ||
padding="spacing.7" | ||
width="300px" | ||
marginRight="spacing.6" | ||
href="https://razorpay.com" | ||
> | ||
<CardHeader marginBottom="spacing.4" paddingBottom="spacing.4"> | ||
<CardHeaderLeading | ||
prefix={<CardHeaderIcon icon={CheckCircleIcon} />} | ||
subtitle="Share payment link via an email, SMS, messenger, chatbot etc." | ||
suffix={<CardHeaderCounter value={12} />} | ||
title="Payment Links" | ||
/> | ||
<CardHeaderTrailing visual={<CardHeaderBadge color="positive">NEW</CardHeaderBadge>} /> | ||
</CardHeader> | ||
<CardBody> | ||
<Text position="relative" zIndex={1}> | ||
Create Razorpay Payments Links and share them with your customers from the Razorpay | ||
Dashboard or using APIs and start accepting payments. Check the advantages, payment | ||
methods, international currency support and more. | ||
</Text> | ||
</CardBody> | ||
<CardFooter marginTop="spacing.4" paddingTop="spacing.4"> | ||
<CardFooterTrailing | ||
actions={{ | ||
primary: { | ||
accessibilityLabel: undefined, | ||
icon: undefined, | ||
iconPosition: undefined, | ||
isDisabled: false, | ||
isLoading: false, | ||
// eslint-disable-next-line @typescript-eslint/no-empty-function | ||
onClick: () => {}, | ||
text: 'Learn More', | ||
type: undefined, | ||
}, | ||
}} | ||
/> | ||
</CardFooter> | ||
</Card> | ||
); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.