-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
26 changed files
with
346 additions
and
45 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
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,32 @@ | ||
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html | ||
|
||
exports[`collapse > destroy 1`] = ` | ||
"<!DOCTYPE html><html lang="en"><head> | ||
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🍯</text></svg>"> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Collapse</title> | ||
<script type="module" crossorigin="" src="/assets/collapse-DFX_hf7s.js"></script> | ||
<link rel="modulepreload" crossorigin="" href="/assets/_parent-CjRBGSFb.js"> | ||
<link rel="modulepreload" crossorigin="" href="/assets/animation-CH8HhKvA.js"> | ||
<link rel="stylesheet" crossorigin="" href="/assets/marquee-CjakcbCe.css"> | ||
</head> | ||
<body> | ||
<div> | ||
<button class="c-collapse-trigger" aria-controls="accordion-1"> | ||
Accordion 2 | ||
</button> | ||
<div class="c-collapse" id="accordion-1" style="transition: height .2s;"> | ||
<p> | ||
Lorem ipsum dolor sit amet consectetur, adipisicing elit. Mollitia facere possimus impedit facilis culpa illo earum deserunt consequuntur minus. Ad et qui labore reprehenderit magnam exercitationem placeat magni nesciunt suscipit. | ||
</p> | ||
</div> | ||
</div> | ||
<button class="js-destroy"> | ||
Destroy | ||
</button> | ||
</body></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,24 @@ | ||
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html | ||
|
||
exports[`drag > destroy 1`] = ` | ||
"<!DOCTYPE html><html lang="en"><head> | ||
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🍯</text></svg>"> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Drag</title> | ||
<script type="module" crossorigin="" src="/assets/drag-BLets3Yo.js"></script> | ||
<link rel="modulepreload" crossorigin="" href="/assets/_parent-CjRBGSFb.js"> | ||
<link rel="stylesheet" crossorigin="" href="/assets/marquee-CjakcbCe.css"> | ||
</head> | ||
<body> | ||
<div class="c-drag" style="width: 200px; height: 200px;"> | ||
<p>Lorem ipsum <a href="#">dolor sit amet</a> consectetur adipisicing elit. Consequatur, id? Dolorum cum est ipsum praesentium mollitia quod saepe nemo doloribus, aliquid dolore laudantium consequuntur alias facere veritatis magni, adipisci fugit.</p> | ||
<p>Lorem ipsum dolor sit, amet consectetur adipisicing elit. Pariatur, est dolore. Vel ducimus incidunt labore, ipsum necessitatibus omnis qui! Consectetur molestiae ipsam repellendus illum hic veritatis. <a href="#">Consequuntur impedit</a> animi voluptatum.</p> | ||
</div> | ||
<button class="js-destroy"> | ||
Destroy | ||
</button> | ||
</body></html>" | ||
`; |
105 changes: 105 additions & 0 deletions
105
packages/core/test/__snapshots__/drilldown.test.ts.snap
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,105 @@ | ||
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html | ||
|
||
exports[`drilldown > destroy 1`] = ` | ||
"<!DOCTYPE html><html lang="en"><head> | ||
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🍯</text></svg>"> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Drilldown</title> | ||
<script type="module" crossorigin="" src="/assets/drilldown-Dlc9odJQ.js"></script> | ||
<link rel="modulepreload" crossorigin="" href="/assets/_parent-CjRBGSFb.js"> | ||
<link rel="modulepreload" crossorigin="" href="/assets/index.esm-CjV0_wFH.js"> | ||
<link rel="modulepreload" crossorigin="" href="/assets/accessibility-DQSUv1PD.js"> | ||
<link rel="modulepreload" crossorigin="" href="/assets/animation-CH8HhKvA.js"> | ||
<link rel="stylesheet" crossorigin="" href="/assets/marquee-CjakcbCe.css"> | ||
</head> | ||
<body> | ||
<nav class="c-drilldown" style="height: 102px;"> | ||
<ul class="c-drilldown-menu" style="transform: translateX(0%);"> | ||
<li> | ||
<button class="c-drilldown-next"> | ||
Go to section 1 | ||
</button> | ||
<ul class="c-drilldown-menu" id="section-1"> | ||
<li> | ||
<button class="c-drilldown-back"> | ||
Go Back | ||
</button> | ||
</li> | ||
<li> | ||
<button class="c-drilldown-next"> | ||
Go to section 1 1 | ||
</button> | ||
<ul class="c-drilldown-menu"> | ||
<li> | ||
<button class="c-drilldown-back"> | ||
Go Back | ||
</button> | ||
</li> | ||
<li> | ||
Item Section 1 1 | ||
</li> | ||
<li> | ||
Item Section 1 1 | ||
</li> | ||
</ul> | ||
</li> | ||
<li> | ||
Item Section 1 | ||
</li> | ||
</ul> | ||
</li> | ||
<li> | ||
Hello | ||
</li> | ||
<li> | ||
<button class="c-drilldown-next"> | ||
Go to section 2 | ||
</button> | ||
<ul class="c-drilldown-menu" id="section-2"> | ||
<li> | ||
<button class="c-drilldown-back"> | ||
Go Back | ||
</button> | ||
</li> | ||
<li> | ||
Item Section 2 | ||
</li> | ||
<li> | ||
Item Section 2 | ||
</li> | ||
</ul> | ||
</li> | ||
<li> | ||
<button class="c-drilldown-next"> | ||
Go to section 3 | ||
</button> | ||
<ul class="c-drilldown-menu" id="section-3"> | ||
<li> | ||
<button class="c-drilldown-back"> | ||
Go Back | ||
</button> | ||
</li> | ||
<li> | ||
Item Section 3 | ||
</li> | ||
<li> | ||
Item Section 3 | ||
</li> | ||
</ul> | ||
</li> | ||
<li> | ||
Item | ||
</li> | ||
</ul> | ||
</nav> | ||
<button class="js-drilldown-reset">Reset</button> | ||
<button class="js-destroy"> | ||
Destroy | ||
</button> | ||
</body></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,30 @@ | ||
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html | ||
|
||
exports[`dropdown > destroy 1`] = ` | ||
"<!DOCTYPE html><html lang="en"><head> | ||
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🍯</text></svg>"> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Dropdown</title> | ||
<script type="module" crossorigin="" src="/assets/dropdown-BC_eHRB5.js"></script> | ||
<link rel="modulepreload" crossorigin="" href="/assets/_parent-CjRBGSFb.js"> | ||
<link rel="modulepreload" crossorigin="" href="/assets/index.esm-CjV0_wFH.js"> | ||
<link rel="modulepreload" crossorigin="" href="/assets/accessibility-DQSUv1PD.js"> | ||
<link rel="stylesheet" crossorigin="" href="/assets/marquee-CjakcbCe.css"> | ||
</head> | ||
<body> | ||
<div class="c-dropdown" style="margin-top: 2rem;"> | ||
<button class="c-dropdown-trigger" aria-expanded="false" aria-haspopup="true"> | ||
Basic Dropdown | ||
</button> | ||
<div class="c-dropdown-container" id="dropdown-container"> | ||
Hello World | ||
</div> | ||
</div> | ||
<button class="js-destroy"> | ||
Destroy | ||
</button> | ||
</body></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,33 @@ | ||
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html | ||
|
||
exports[`marquee > destroy 1`] = ` | ||
"<!DOCTYPE html><html lang="en"><head> | ||
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🍯</text></svg>"> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Marquee</title> | ||
<script type="module" crossorigin="" src="/assets/marquee-D13K01fB.js"></script> | ||
<link rel="modulepreload" crossorigin="" href="/assets/_parent-CjRBGSFb.js"> | ||
<link rel="modulepreload" crossorigin="" href="/assets/index.esm-CjV0_wFH.js"> | ||
<link rel="stylesheet" crossorigin="" href="/assets/marquee-CjakcbCe.css"> | ||
</head> | ||
<body> | ||
<div class="c-marquee" style="width: 200px;"> | ||
<ul class="c-marquee-container"> | ||
<li>Marquee Left Direction</li> | ||
<li><img width="25" height="25" src="https://vitejs.dev/logo.svg"></li> | ||
</ul> | ||
</div> | ||
<button class="js-marquee-play"> | ||
Play | ||
</button> | ||
<button class="js-marquee-pause"> | ||
Pause | ||
</button> | ||
<button class="js-destroy"> | ||
Destroy | ||
</button> | ||
</body></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
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
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
Oops, something went wrong.