-
Notifications
You must be signed in to change notification settings - Fork 144
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: move tabs cypress test to playwright * test(tabs): skip tabs inside of tabs * chore: remove cypress * removed cypress e2e --------- Co-authored-by: Shai Reznik <[email protected]> Co-authored-by: Jack Shelton <[email protected]>
- Loading branch information
1 parent
f1ea4f3
commit a3b55c6
Showing
44 changed files
with
788 additions
and
2,708 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
37 changes: 19 additions & 18 deletions
37
apps/website/src/routes/docs/headless/tabs/examples/disabled.tsx
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
39 changes: 39 additions & 0 deletions
39
apps/website/src/routes/docs/headless/tabs/examples/programmatic.tsx
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,39 @@ | ||
import { component$, useSignal, useStyles$ } from '@builder.io/qwik'; | ||
import { Tabs } from '@qwik-ui/headless'; | ||
import styles from '.././index.css?inline'; | ||
|
||
export default component$(() => { | ||
useStyles$(styles); | ||
|
||
const selectedIndex = useSignal(0); | ||
|
||
return ( | ||
<> | ||
<div class="tabs-example"> | ||
<h3>Danish Composers</h3> | ||
<Tabs.Root behavior="automatic" selectedIndex={selectedIndex.value}> | ||
<Tabs.List> | ||
<Tabs.Tab>Maria</Tabs.Tab> | ||
<Tabs.Tab>Carl</Tabs.Tab> | ||
<Tabs.Tab>Ida</Tabs.Tab> | ||
</Tabs.List> | ||
<Tabs.Panel> | ||
<p>Maria Theresia Ahlefeldt (16 January 1755 - 20 December 1810) ...</p> | ||
</Tabs.Panel> | ||
<Tabs.Panel> | ||
<p>Carl Joachim Andersen (29 April 1847 - 7 May 1909) ...</p> | ||
</Tabs.Panel> | ||
<Tabs.Panel> | ||
<p>Ida Henriette da Fonseca (July 27, 1802 - July 6, 1858) ...</p> | ||
</Tabs.Panel> | ||
</Tabs.Root> | ||
<br /> | ||
<button onClick$={() => (selectedIndex.value = 0)}>Select Tab 0</button> | ||
<br /> | ||
<button onClick$={() => (selectedIndex.value = 1)}>Select Tab 1</button> | ||
<br /> | ||
<button onClick$={() => (selectedIndex.value = 2)}>Select Tab 2</button> | ||
</div> | ||
</> | ||
); | ||
}); |
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
45 changes: 45 additions & 0 deletions
45
apps/website/src/routes/docs/headless/tabs/examples/test-tabs-inside-of-tabs.tsx
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,45 @@ | ||
import { component$, useStyles$ } from '@builder.io/qwik'; | ||
import { Tabs } from '@qwik-ui/headless'; | ||
import styles from '.././index.css?inline'; | ||
|
||
export default component$(() => { | ||
useStyles$(styles); | ||
return ( | ||
<> | ||
<div class="tabs-example"> | ||
<h3>Danish Composers</h3> | ||
<Tabs.Root behavior="automatic"> | ||
<Tabs.List> | ||
<Tabs.Tab>Maria</Tabs.Tab> | ||
<Tabs.Tab>Carl</Tabs.Tab> | ||
<Tabs.Tab>Ida</Tabs.Tab> | ||
</Tabs.List> | ||
<Tabs.Panel> | ||
<Tabs.Root behavior="automatic"> | ||
<Tabs.List> | ||
<Tabs.Tab>Maria</Tabs.Tab> | ||
<Tabs.Tab>Carl</Tabs.Tab> | ||
<Tabs.Tab>Ida</Tabs.Tab> | ||
</Tabs.List> | ||
<Tabs.Panel> | ||
<p>Maria Theresia Ahlefeldt (16 January 1755 - 20 December 1810) ...</p> | ||
</Tabs.Panel> | ||
<Tabs.Panel> | ||
<p>Carl Joachim Andersen (29 April 1847 - 7 May 1909) ...</p> | ||
</Tabs.Panel> | ||
<Tabs.Panel> | ||
<p>Ida Henriette da Fonseca (July 27, 1802 - July 6, 1858) ...</p> | ||
</Tabs.Panel> | ||
</Tabs.Root> | ||
</Tabs.Panel> | ||
<Tabs.Panel> | ||
<p>Carl Joachim Andersen (29 April 1847 - 7 May 1909) ...</p> | ||
</Tabs.Panel> | ||
<Tabs.Panel> | ||
<p>Ida Henriette da Fonseca (July 27, 1802 - July 6, 1858) ...</p> | ||
</Tabs.Panel> | ||
</Tabs.Root> | ||
</div> | ||
</> | ||
); | ||
}); |
Oops, something went wrong.