forked from shoelace-style/shoelace
-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/mf header #16
Closed
Closed
Feat/mf header #16
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
7d81fff
feat: figma button
carlos-verdes f7e9688
update twitter username
claviska 9919e43
wait longer for CI
claviska bf6aa33
adding NavItem component
abu-seini-maf 5099c7d
adding NavSelect event
abu-seini-maf 60c1958
export nav select event
abu-seini-maf ab17156
added new sub nav controller
abu-seini-maf 4c7e1a4
modify nav item and nav components documentation
abu-seini-maf 1e1f9db
updated navigation components
abu-seini-maf 7bde33f
added comment to be fixed later
abu-seini-maf f555cb7
export mf nav item component
abu-seini-maf a3cbf90
update autoloader to include MF components
abu-seini-maf 2f1e12a
Merge pull request #1 from abu-seini-maf/feat/navigation-item-component
abu-seini-maf 48c984c
Merge branch 'shoelace-style:next' into next
abu-seini-maf 3a0f7f2
Merge branch 'next' into next
abu-seini-maf 7ae4f81
Update mf-nav-item.styles.ts
abu-seini-maf 6a5a62c
Merge pull request #2 from abu-seini-maf/abu-seini-maf-patch-1
abu-seini-maf 6e07199
header components and adjustments
abu-seini-maf bc428b3
updated based on PR comments
abu-seini-maf 02697d2
updated based on PR comments
abu-seini-maf 43b672e
updated based on PR comments
abu-seini-maf File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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,52 @@ | ||
--- | ||
meta: | ||
title: Mf Action Item | ||
description: | ||
layout: component | ||
--- | ||
|
||
```html:preview | ||
<mf-actions> | ||
<mf-action-item href="/">Option 1</mf-action-item> | ||
<mf-action-item disabled>Disabled</mf-action-item> | ||
<mf-action-item loading>Loading</mf-action-item> | ||
<mf-action-item> | ||
<sl-icon slot="icon" name="person"></sl-icon> | ||
</mf-action-item> | ||
<mf-action-item> | ||
Suffix Icon | ||
<sl-icon slot="suffix" name="heart"></sl-icon> | ||
</mf-action-item> | ||
</mf-actions> | ||
``` | ||
|
||
## Examples | ||
|
||
### Language Selector | ||
|
||
```html:preview | ||
<mf-action-item> | ||
<sl-icon slot="prefix" name="flag-fill"></sl-icon> | ||
AR | ||
</mf-action-item> | ||
``` | ||
|
||
### Notification | ||
|
||
```html:preview | ||
<mf-action-item style="width: 60px;"> | ||
<sl-icon slot="prefix" name="bag"></sl-icon> | ||
|
||
<sl-badge slot="suffix" variant="primary" pill> | ||
12 | ||
</sl-badge> | ||
</mf-action-item> | ||
``` | ||
|
||
### Notification | ||
|
||
```html:preview | ||
|
||
``` | ||
|
||
[component-metadata:mf-action-item] |
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,98 @@ | ||
--- | ||
meta: | ||
title: Mf Nav Actions | ||
description: | ||
layout: component | ||
--- | ||
|
||
```html:preview | ||
<mf-actions> | ||
<mf-action-item href="/">Download Brochure</mf-action-item> | ||
<mf-action-item > | ||
<sl-icon slot="prefix" name="flag-fill"></sl-icon> | ||
AR | ||
<mf-actions slot="submenu"> | ||
<mf-action-item > | ||
<sl-icon slot="prefix" name="flag-fill"></sl-icon> | ||
AR | ||
</mf-action-item> | ||
<mf-action-item > | ||
<sl-icon slot="prefix" name="flag-fill"></sl-icon> | ||
EN | ||
</mf-action-item> | ||
</mf-actions> | ||
</mf-action-item> | ||
<mf-action-item> | ||
<sl-icon slot="icon" name="person"></sl-icon> | ||
</mf-action-item> | ||
</mf-actions> | ||
``` | ||
|
||
## Examples | ||
|
||
### Simple Actions | ||
|
||
```html:preview | ||
<div style="width: 260px;"> | ||
<mf-actions> | ||
<mf-action-item href="/">Download Brochure</mf-action-item> | ||
<mf-action-item> | ||
AR | ||
</mf-action-item> | ||
</mf-actions> | ||
</div> | ||
``` | ||
|
||
### Second Example | ||
|
||
```html:preview | ||
<div style="width: 300px;"> | ||
<mf-actions> | ||
<mf-action-item > | ||
<sl-icon slot="prefix" name="flag-fill"></sl-icon> | ||
AR | ||
<mf-actions slot="submenu" style="width: 200px;"> | ||
<mf-action-item > | ||
<sl-icon slot="prefix" name="flag-fill"></sl-icon> | ||
UAE | ||
</mf-action-item> | ||
<mf-action-item > | ||
<sl-icon slot="prefix" name="flag-fill"></sl-icon> | ||
KSA | ||
</mf-action-item> | ||
<sl-divider></sl-divider> | ||
<mf-action-item > | ||
AR | ||
</mf-action-item> | ||
<mf-action-item > | ||
EN | ||
</mf-action-item> | ||
</mf-actions> | ||
</mf-action-item> | ||
<mf-action-item hideChevron="true"> | ||
<sl-icon slot="icon" name="person"></sl-icon> | ||
<mf-actions slot="submenu" style="width: 450px;height: 500px;align-items: center;"> | ||
<mf-logo src="https://www.dev.mallgiftcard.ae/assets/maf-logo-header.svg" alt="MAF" ></mf-logo> | ||
<p style="max-width: 400px;text-wrap: auto;"> | ||
LOG IN OR REGISTER NOW | ||
<br /> | ||
One account for all Majid Al Futtaim brands | ||
<br /> | ||
Log in with your existing Majid Al Futtaim account or register now for a seamless experience and to redeem SHARE points. | ||
</p> | ||
<sl-button variant="primary" >Login</sl-button> | ||
<sl-button variant="neutral">Registration</sl-button> | ||
<mf-logo src="https://api-prod.thatconceptstore.com/medias/maf-en.png?context=bWFzdGVyfGltYWdlc3w1OTcyfGltYWdlL3BuZ3xhR1EwTDJneE1pOHhNVFF3TlRVM05ERXhNVEkyTWk5dFlXWmZaVzR1Y0c1bnwyY2IzZmU0MmI1M2NkOTg3MmY1NjBhNTA5ODhlZjFkMTMxYjVmZmJiYmNjMjlhZmIxODI5MTU4YjQ1MzVkYjVj" alt="MAF" style="width: 100px;"></mf-logo> | ||
</mf-actions> | ||
</mf-action-item> | ||
<mf-action-item> | ||
<sl-icon slot="icon" name="heart"></sl-icon> | ||
</mf-action-item> | ||
<mf-action-item> | ||
<sl-icon slot="icon" name="bag"></sl-icon> | ||
</mf-action-item> | ||
</mf-actions> | ||
</div> | ||
``` | ||
|
||
[component-metadata:mf-nav-actions] |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the difference between this and a menu component?
I feel we don't need this component