Added tabs components and refactored stuff to work properly with composed / nested elements etc...
All checks were successful
Build, Test, and Publish (to Private NPM Registry) UI Components Library / publish (push) Successful in 58s
All checks were successful
Build, Test, and Publish (to Private NPM Registry) UI Components Library / publish (push) Successful in 58s
This commit is contained in:
parent
1c2d794a18
commit
d2e99cc280
27 changed files with 1579 additions and 145 deletions
1
test-harness/views/tab-partials/tab-1-filled.partial.ejs
Normal file
1
test-harness/views/tab-partials/tab-1-filled.partial.ejs
Normal file
|
|
@ -0,0 +1 @@
|
|||
<h3>Tab 1 Filled</h3>
|
||||
|
|
@ -0,0 +1 @@
|
|||
<h3>Tab 1 Underline</h3>
|
||||
2
test-harness/views/tab-partials/tab-1.partial.ejs
Normal file
2
test-harness/views/tab-partials/tab-1.partial.ejs
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<h3>Tab 1</h3>
|
||||
<p>This is the content of Tab 1.</p>
|
||||
35
test-harness/views/tab-partials/tab-2.partial.ejs
Normal file
35
test-harness/views/tab-partials/tab-2.partial.ejs
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
<h3>Tab 2 (Filled & Underlined)</h3>
|
||||
<div style="display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 1rem; align-items: start;">
|
||||
<div class="card" style="background-color: light-dark(#013f4f, #f0c0b0);">
|
||||
<div class="card-header" style="color: #ffffff">
|
||||
<h4>Card 1</h4>
|
||||
</div>
|
||||
<div class="card-body" style="padding: 1rem;background-color: light-dark(#f0c0b0, #013f4f);">
|
||||
<p>This is the content of card 1 in Tab 2.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card" style="background-color: light-dark(#4f013f, #f0b0c0);">
|
||||
<div class="card-header" style="color: #ffffff">
|
||||
<h4>Card 2</h4>
|
||||
</div>
|
||||
<div class="card-body" style="padding: 1rem;background-color: light-dark(#f0b0c0, #4f013f);">
|
||||
<p>This is the content of card 2 in Tab 2.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card" style="background-color: light-dark(#013f4f,#b0f0c0);">
|
||||
<div class="card-header" style="color: #ffffff">
|
||||
<h4>Card 3</h4>
|
||||
</div>
|
||||
<div class="card-body" style="padding: 1rem;background-color: light-dark(#b0f0c0, #013f4f);">
|
||||
<p>This is the content of card 3 in Tab 2.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card" style="background-color: light-dark(#4f013f, #c0b0f0);">
|
||||
<div class="card-header" style="color: #ffffff">
|
||||
<h4>Card 4</h4>
|
||||
</div>
|
||||
<div class="card-body" style="padding: 1rem;background-color: light-dark(#c0b0f0, #4f013f);">
|
||||
<p>This is the content of card 4 in Tab 2.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
2
test-harness/views/tab-partials/tab-3-filled.partial.ejs
Normal file
2
test-harness/views/tab-partials/tab-3-filled.partial.ejs
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
<h3>Tab 3 Filled</h3>
|
||||
<%- include('./tab-3.partial.ejs') %>
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
<h3>Tab 3 Underline</h3>
|
||||
<%- include('./tab-3.partial.ejs') %>
|
||||
11
test-harness/views/tab-partials/tab-3.partial.ejs
Normal file
11
test-harness/views/tab-partials/tab-3.partial.ejs
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<article>
|
||||
<header>
|
||||
<h4>Subsection 1</h4>
|
||||
</header>
|
||||
<section>
|
||||
<p>This is the content of Subsection 1 in Tab 3.</p>
|
||||
</section>
|
||||
<footer>
|
||||
<p>Footer content for Tab 3.</p>
|
||||
</footer>
|
||||
</article>
|
||||
5
test-harness/views/tab-partials/tab-4.partial.ejs
Normal file
5
test-harness/views/tab-partials/tab-4.partial.ejs
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
<h3>Tab 4 (Togglable Tab)</h3>
|
||||
<p>
|
||||
This tab is conditionally rendered based on a predicate function.
|
||||
Use the toggle link to show or hide this tab.
|
||||
</p>
|
||||
Loading…
Add table
Add a link
Reference in a new issue