-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SearchNav
feat: add new CTA and text (#742)
## π Changes - adds `PrimaryCTAItem` - original `CTAItem` renamed to `SecondaryCTAItem` - adds `EmphasizedText` to handle rendering of text in `LogoGroup` ## β Checklist - [x] Visuals are complete and match Figma - [x] Code is complete and in accordance with our style guide - [x] Design and theme tokens are audited for any relevant changes - [x] Unit tests are written and passing - [x] TSDoc is written or updated for any component API surface area - [x] Stories in Storybook accompany any relevant component changes - [x] Ensure no accessibility violations are reported in Storybook - [x] Specs and documentation are up-to-date - [x] Cross-browser check is performed (Chrome, Safari, Firefox) - [x] Changeset is added
- Loading branch information
1 parent
5ecd325
commit 0cfafc2
Showing
19 changed files
with
569 additions
and
181 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@easypost/easy-ui": minor | ||
--- | ||
|
||
feat(SearchNav): support PrimaryCTAItem and Title components |
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
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,24 @@ | ||
import React from "react"; | ||
import { AriaButtonProps } from "react-aria"; | ||
import { Button } from "../Button"; | ||
|
||
export type CTAItemProps = AriaButtonProps<"button"> & { | ||
/** | ||
* Text content to display. | ||
*/ | ||
label: string; | ||
}; | ||
|
||
export type PrimaryCTAItemProps = CTAItemProps; | ||
|
||
export function PrimaryCTAItem(props: PrimaryCTAItemProps) { | ||
const { label, ...restProps } = props; | ||
|
||
return ( | ||
<Button {...restProps} variant="outlined" size="sm" color="support"> | ||
{label} | ||
</Button> | ||
); | ||
} | ||
|
||
PrimaryCTAItem.displayName = "SearchNav.PrimaryCTAItem"; |
Oops, something went wrong.