-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into 135-popup-upgrades
- Loading branch information
Showing
104 changed files
with
2,331 additions
and
23,724 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
import { props } from '../../src/ids-base/ids-constants'; //eslint-disable-line | ||
import { attributes } from '../../src/ids-base/ids-attributes'; //eslint-disable-line |
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,16 @@ | ||
<ids-layout-grid> | ||
<ids-text font-size="12" type="h1">Cards Auto Size</ids-text> | ||
</ids-layout-grid> | ||
<ids-layout-grid cols="2" gap="md"> | ||
<ids-layout-grid-cell> | ||
<ids-card auto-height="true"> | ||
<div slot="card-content"> | ||
<ids-text font-size="20" type="h2">Card Contents</ids-text> | ||
<ids-text font-size="20" type="h2">Card Contents</ids-text> | ||
<ids-text font-size="20" type="h2">Card Contents</ids-text> | ||
<ids-text font-size="20" type="h2">Card Contents</ids-text> | ||
<ids-text font-size="20" type="h2">Card Contents</ids-text> | ||
</div> | ||
</ids-card> | ||
</ids-layout-grid-cell> | ||
</ids-layout-grid> |
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 @@ | ||
import IdsCard from '../../src/ids-card/ids-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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,129 @@ | ||
<ids-layout-grid> | ||
<ids-text font-size="12" type="h1">Swipe Action (Reveal)</ids-text> | ||
</ids-layout-grid> | ||
<ids-layout-grid cols="2" gap="none"> | ||
<ids-layout-grid-cell> | ||
<ids-card auto-height="true"> | ||
<div slot="card-content"> | ||
<ids-swipe-action> | ||
<ids-button slot="action-left" id="action-left-reveal" type="swipe-action-left"> | ||
<ids-icon slot="icon" icon="reply" size="small"></ids-icon> | ||
<span slot="text">Left Action</span> | ||
</ids-button> | ||
<div slot="contents"> | ||
<ids-layout-grid cols="2" no-margins="true"> | ||
<ids-layout-grid-cell> | ||
<ids-text font-size="16">Tuesday, 22nd September</ids-text> | ||
<ids-text font-size="14">8:40AM-2:00PM</ids-text> | ||
</ids-layout-grid-cell> | ||
<ids-layout-grid-cell justify="end"> | ||
<ids-menu-button id="actions-reveal" menu="actions-reveal-menu"> | ||
<ids-icon slot="icon" icon="more"></ids-icon> | ||
<span class="audible">Actions</span> | ||
</ids-menu-button> | ||
<ids-popup-menu id="actions-reveal-menu" target="actions-reveal" trigger="click"> | ||
<ids-menu-group> | ||
<ids-menu-item>Right Action</ids-menu-item> | ||
<ids-menu-item>Left Action</ids-menu-item> | ||
<ids-menu-item>Other Action</ids-menu-item> | ||
</ids-menu-group> | ||
</ids-popup-menu> | ||
</ids-layout-grid-cell> | ||
</ids-layout-grid> | ||
</div> | ||
<ids-button slot="action-right" id="action-right-reveal" type="swipe-action-right"> | ||
<ids-icon slot="icon" icon="tack" size="small"></ids-icon> | ||
<span slot="text">Right Action</span> | ||
</ids-button> | ||
</ids-swipe-action> | ||
</div> | ||
</ids-card> | ||
</ids-layout-grid-cell> | ||
</ids-layout-grid> | ||
|
||
<ids-layout-grid> | ||
<ids-text font-size="12" type="h1">Swipe Action (Reveal / One Action)</ids-text> | ||
</ids-layout-grid> | ||
<ids-layout-grid cols="2" gap="none"> | ||
<ids-layout-grid-cell> | ||
<ids-card auto-height="true"> | ||
<div slot="card-content"> | ||
<ids-swipe-action> | ||
<div slot="contents"> | ||
<ids-layout-grid cols="2" no-margins="true"> | ||
<ids-layout-grid-cell> | ||
<ids-text font-size="16">Tuesday, 23nd September</ids-text> | ||
<ids-text font-size="14">8:10AM-2:20PM</ids-text> | ||
</ids-layout-grid-cell> | ||
<ids-layout-grid-cell justify="end"> | ||
<ids-menu-button id="actions-reveal-one" menu="actions-reveal-one-menu"> | ||
<ids-icon slot="icon" icon="more"></ids-icon> | ||
<span class="audible">Actions</span> | ||
</ids-menu-button> | ||
<ids-popup-menu id="actions-reveal-one-menu" target="actions-reveal-one" trigger="click"> | ||
<ids-menu-group> | ||
<ids-menu-item>Right Action</ids-menu-item> | ||
<ids-menu-item>Left Action</ids-menu-item> | ||
<ids-menu-item>Other Action</ids-menu-item> | ||
</ids-menu-group> | ||
</ids-popup-menu> | ||
</ids-layout-grid-cell> | ||
</ids-layout-grid> | ||
</div> | ||
<ids-button slot="action-right" id="action-right-reveal-one" type="swipe-action-right"> | ||
<ids-icon slot="icon" icon="tack" size="small"></ids-icon> | ||
<span slot="text">Right Action</span> | ||
</ids-button> | ||
</ids-swipe-action> | ||
</div> | ||
</ids-card> | ||
</ids-layout-grid-cell> | ||
</ids-layout-grid> | ||
|
||
<ids-layout-grid> | ||
<ids-text font-size="12" type="h1">Swipe Action (Continuous)</ids-text> | ||
</ids-layout-grid> | ||
<ids-layout-grid cols="2" gap="none"> | ||
<ids-layout-grid-cell> | ||
<ids-card auto-height="true"> | ||
<div slot="card-content"> | ||
<ids-swipe-action swipe-type="continuous"> | ||
<ids-button slot="action-left" id="action-left-continuous" type="swipe-action-left"> | ||
<ids-icon slot="icon" icon="reply" size="small"></ids-icon> | ||
<span slot="text">Left Action</span> | ||
</ids-button> | ||
<div slot="contents"> | ||
<ids-layout-grid cols="2" no-margins="true"> | ||
<ids-layout-grid-cell> | ||
<ids-text font-size="16">Tuesday, 22nd September</ids-text> | ||
<ids-text font-size="14">8:40AM-2:00PM</ids-text> | ||
</ids-layout-grid-cell> | ||
<ids-layout-grid-cell justify="end"> | ||
<ids-menu-button id="actions-continuous" menu="actions-continuous-menu"> | ||
<ids-icon slot="icon" icon="more"></ids-icon> | ||
<span class="audible">Actions</span> | ||
</ids-menu-button> | ||
<ids-popup-menu id="actions-continuous-menu" target="actions-continuous" trigger="click"> | ||
<ids-menu-group> | ||
<ids-menu-item>Right Action</ids-menu-item> | ||
<ids-menu-item>Left Action</ids-menu-item> | ||
<ids-menu-item>Other Action</ids-menu-item> | ||
</ids-menu-group> | ||
</ids-popup-menu> | ||
</ids-layout-grid-cell> | ||
</ids-layout-grid> | ||
</div> | ||
<ids-button slot="action-right" id="action-right-continuous" type="swipe-action-right"> | ||
<ids-icon slot="icon" icon="tack" size="small"></ids-icon> | ||
<span slot="text">Right Action</span> | ||
</ids-button> | ||
</ids-swipe-action> | ||
</div> | ||
</ids-card> | ||
</ids-layout-grid-cell> | ||
</ids-layout-grid> | ||
|
||
<ids-layout-grid> | ||
<ids-text font-size="12" id="output"></ids-text> | ||
</ids-layout-grid> | ||
|
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,20 @@ | ||
import IdsCard from '../../src/ids-card/ids-card'; | ||
|
||
// Setup normal click events on the actions | ||
document.addEventListener('DOMContentLoaded', () => { | ||
document.querySelector('#action-left-reveal').addEventListener('click', () => { | ||
document.querySelector('#output').textContent = 'Left Action (Reveal Mode) was chosen'; | ||
}); | ||
document.querySelector('#action-right-reveal').addEventListener('click', () => { | ||
document.querySelector('#output').textContent = 'Right Action (Reveal Mode) was chosen'; | ||
}); | ||
document.querySelector('#action-right-reveal-one').addEventListener('click', () => { | ||
document.querySelector('#output').textContent = 'Right Action (Reveal / One Action Mode) was chosen'; | ||
}); | ||
document.querySelector('#action-left-continuous').addEventListener('click', () => { | ||
document.querySelector('#output').textContent = 'Left Action (Continuous Mode) was chosen'; | ||
}); | ||
document.querySelector('#action-right-continuous').addEventListener('click', () => { | ||
document.querySelector('#output').textContent = 'Right Action (Continuous Mode) was chosen'; | ||
}); | ||
}); |
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,3 @@ | ||
{{> ../layouts/head.html }} | ||
{{> example.html }} | ||
{{> ../layouts/footer.html }} |
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 @@ | ||
import IdsSwipeAction from '../../src/ids-swipe-action/ids-swipe-action'; |
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.