Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
54fe70d
commit 6827ccb
Showing
17 changed files
with
26 additions
and
30 deletions.
There are no files selected for viewing
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
Binary file modified
BIN
+597 Bytes
(140%)
...ts/src/Coupon/Coupon.ct.tsx-snapshots/visual-Coupon-Coupon-1-Desktop-darwin.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+645 Bytes
(140%)
...nts/src/Coupon/Coupon.ct.tsx-snapshots/visual-Coupon-Coupon-1-Desktop-linux.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+666 Bytes
(140%)
.../Coupon/Coupon.ct.tsx-snapshots/visual-Coupon-Coupon-1-Large-Desktop-darwin.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+719 Bytes
(140%)
...c/Coupon/Coupon.ct.tsx-snapshots/visual-Coupon-Coupon-1-Large-Desktop-linux.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.09 KB
(160%)
...c/Coupon/Coupon.ct.tsx-snapshots/visual-Coupon-Coupon-1-Large-Mobile-darwin.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+517 Bytes
(130%)
...rc/Coupon/Coupon.ct.tsx-snapshots/visual-Coupon-Coupon-1-Large-Mobile-linux.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+928 Bytes
(150%)
.../Coupon/Coupon.ct.tsx-snapshots/visual-Coupon-Coupon-1-Medium-Mobile-darwin.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+424 Bytes
(130%)
...c/Coupon/Coupon.ct.tsx-snapshots/visual-Coupon-Coupon-1-Medium-Mobile-linux.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+721 Bytes
(140%)
...c/Coupon/Coupon.ct.tsx-snapshots/visual-Coupon-Coupon-1-Small-Mobile-darwin.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+370 Bytes
(120%)
...rc/Coupon/Coupon.ct.tsx-snapshots/visual-Coupon-Coupon-1-Small-Mobile-linux.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.29 KB
(170%)
...nts/src/Coupon/Coupon.ct.tsx-snapshots/visual-Coupon-Coupon-1-Tablet-darwin.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+583 Bytes
(140%)
...ents/src/Coupon/Coupon.ct.tsx-snapshots/visual-Coupon-Coupon-1-Tablet-linux.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,17 @@ | ||
"use client"; | ||
|
||
import * as React from "react"; | ||
import styled, { css } from "styled-components"; | ||
|
||
import defaultTheme from "../defaultTheme"; | ||
import type { Props } from "./types"; | ||
|
||
const StyledCoupon = styled.mark` | ||
${({ theme }) => css` | ||
display: inline; | ||
background: none; | ||
font-size: ${theme.orbit.fontSizeTextSmall}; | ||
letter-spacing: 0.75px; | ||
text-transform: uppercase; | ||
border: 1px dashed ${theme.orbit.paletteCloudDark}; | ||
padding: 2px ${theme.orbit.spaceXXSmall}; | ||
line-height: inherit; | ||
font-weight: ${theme.orbit.fontWeightMedium}; | ||
border-radius: ${theme.orbit.borderRadiusNormal}; | ||
color: ${theme.orbit.paletteInkDark}; | ||
`} | ||
`; | ||
|
||
StyledCoupon.defaultProps = { | ||
theme: defaultTheme, | ||
}; | ||
|
||
const Coupon = ({ children, dataTest, id }: Props) => ( | ||
<StyledCoupon data-test={dataTest} id={id}> | ||
<mark | ||
className="orbit-coupon text-small border-cloud-dark py-xxxs px-xxs rounded-normal text-ink-dark inline border border-dashed bg-transparent font-medium uppercase tracking-[0.75px]" | ||
data-test={dataTest} | ||
id={id} | ||
> | ||
{children} | ||
</StyledCoupon> | ||
</mark> | ||
); | ||
|
||
export default Coupon; |