-
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.
feat(ForgeLayout): add modeswitcher, breadcrumb navigation, and … (#1550
) ## 📝 Changes - Adds control components for ForgeLayout [x] `ForgeLayout.ModeSwitcher` [x] `ForgeLayout.BreadcrumbsNavigation` [x] `ForgeLayout.BackButton` [x] `ForgeLayout.Breadcrumbs` [x] `ForgeLayout.Breadcrumb` ## ✅ Checklist Easy UI has certain UX standards that must be met. In general, non-trivial changes should meet the following criteria: - [x] Visuals match Design Specs in Figma - [x] Stories accompany any component changes - [x] Code is in accordance with our style guide - [x] Design tokens are utilized - [x] Unit tests accompany any component changes - [x] TSDoc is written for any API surface area - [x] Specs are up-to-date - [x] Console is free from warnings - [x] No accessibility violations are reported - [x] Cross-browser check is performed (Chrome, Safari, Firefox) - [x] Changeset is added ~Strikethrough~ any items that are not applicable to this pull request.
- Loading branch information
1 parent
bf0defe
commit 462b0a4
Showing
9 changed files
with
518 additions
and
87 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(ForgeLayout): add modeswitcher, breadcrumb navigation, and search |
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
75 changes: 75 additions & 0 deletions
75
easy-ui-react/src/ForgeLayout/ForgeLayoutControls.module.scss
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,75 @@ | ||
@use "../styles/common" as *; | ||
@use "../styles/unstyled"; | ||
|
||
.controls { | ||
display: flex; | ||
align-items: center; | ||
gap: design-token("space.2"); | ||
width: 100%; | ||
} | ||
|
||
.breadcrumbNavigationContainer { | ||
border: design-token("shape.border_width.1") solid | ||
theme-token("color.neutral.300"); | ||
margin-right: design-token("space.3"); | ||
display: inline-flex; | ||
z-index: design-token("z-index.nav"); | ||
} | ||
|
||
.backButtonContainer { | ||
background: theme-token("color.neutral.050"); | ||
border-right: design-token("shape.border_width.1") solid | ||
theme-token("color.neutral.300"); | ||
padding: design-token("space.0-5") design-token("space.1.5") | ||
design-token("space.0-5") design-token("space.1"); | ||
display: inline-flex; | ||
align-items: center; | ||
} | ||
|
||
.backButton { | ||
display: inline-flex; | ||
align-items: center; | ||
cursor: pointer; | ||
color: theme-token("color.primary.600"); | ||
} | ||
|
||
.breadcrumbsContainer { | ||
padding: design-token("space.0-5") design-token("space.1"); | ||
} | ||
|
||
.trigger { | ||
@include unstyled.button; | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
gap: design-token("space.1"); | ||
border: design-token("shape.border_width.1") solid | ||
theme-token("color.neutral.300"); | ||
padding: calc( | ||
#{design-token("space.1")} - #{design-token("shape.border_width.1")} | ||
); | ||
border-radius: design-token("shape.border_radius.md"); | ||
cursor: pointer; | ||
width: 100%; | ||
max-width: 133px; | ||
z-index: design-token("z-index.nav"); | ||
} | ||
|
||
.triggerPopoverOpen { | ||
border-color: theme-token("color.neutral.800"); | ||
} | ||
|
||
.popover { | ||
border: design-token("shape.border_width.1") solid | ||
theme-token("color.neutral.300"); | ||
border-radius: design-token("shape.border_radius.md"); | ||
background-color: theme-token("color.neutral.000"); | ||
padding: design-token("space.2"); | ||
box-shadow: design-token("shadow.overlay"); | ||
} | ||
|
||
.searchContainer { | ||
width: 100%; | ||
max-width: 715px; | ||
margin-right: design-token("space.3"); | ||
} |
Oops, something went wrong.