-
-
Notifications
You must be signed in to change notification settings - Fork 262
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(accordion): add unit tests (#2079)
- Loading branch information
Showing
7 changed files
with
239 additions
and
219 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,27 @@ | ||
<script lang="ts"> | ||
import { Accordion, AccordionItem } from "carbon-components-svelte"; | ||
</script> | ||
|
||
<Accordion disabled> | ||
<AccordionItem title="Natural Language Classifier"> | ||
<p> | ||
Natural Language Classifier uses advanced natural language processing and | ||
machine learning techniques to create custom classification models. Users | ||
train their data and the service predicts the appropriate category for the | ||
inputted text. | ||
</p> | ||
</AccordionItem> | ||
<AccordionItem title="Natural Language Understanding"> | ||
<p> | ||
Analyze text to extract meta-data from content such as concepts, entities, | ||
emotion, relations, sentiment and more. | ||
</p> | ||
</AccordionItem> | ||
<AccordionItem title="Language Translator"> | ||
<p> | ||
Translate text, documents, and websites from one language to another. | ||
Create industry or region-specific translations via the service's | ||
customization capability. | ||
</p> | ||
</AccordionItem> | ||
</Accordion> |
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,36 @@ | ||
<script lang="ts"> | ||
import { Accordion, AccordionItem, Button } from "carbon-components-svelte"; | ||
const items = [ | ||
{ | ||
title: "Natural Language Classifier", | ||
description: | ||
"Natural Language Classifier uses advanced natural language processing and machine learning techniques to create custom classification models. Users train their data and the service predicts the appropriate category for the inputted text.", | ||
}, | ||
{ | ||
title: "Natural Language Understanding", | ||
description: | ||
"Analyze text to extract meta-data from content such as concepts, entities, emotion, relations, sentiment and more.", | ||
}, | ||
{ | ||
title: "Language Translator", | ||
description: | ||
"Translate text, documents, and websites from one language to another. Create industry or region-specific translations via the service's customization capability.", | ||
}, | ||
]; | ||
let open = false; | ||
</script> | ||
|
||
<Button kind="ghost" size="field" on:click={() => (open = !open)}> | ||
{open ? "Collapse" : "Expand"} | ||
all | ||
</Button> | ||
|
||
<Accordion> | ||
{#each items as item} | ||
<AccordionItem title={item.title} {open}> | ||
<p>{item.description}</p> | ||
</AccordionItem> | ||
{/each} | ||
</Accordion> |
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,5 @@ | ||
<script lang="ts"> | ||
import { Accordion } from "carbon-components-svelte"; | ||
</script> | ||
|
||
<Accordion skeleton /> |
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,27 @@ | ||
<script lang="ts"> | ||
import { Accordion, AccordionItem } from "carbon-components-svelte"; | ||
</script> | ||
|
||
<Accordion> | ||
<AccordionItem title="Natural Language Classifier"> | ||
<p> | ||
Natural Language Classifier uses advanced natural language processing and | ||
machine learning techniques to create custom classification models. Users | ||
train their data and the service predicts the appropriate category for the | ||
inputted text. | ||
</p> | ||
</AccordionItem> | ||
<AccordionItem title="Natural Language Understanding" disabled> | ||
<p> | ||
Analyze text to extract meta-data from content such as concepts, entities, | ||
emotion, relations, sentiment and more. | ||
</p> | ||
</AccordionItem> | ||
<AccordionItem title="Language Translator"> | ||
<p> | ||
Translate text, documents, and websites from one language to another. | ||
Create industry or region-specific translations via the service's | ||
customization capability. | ||
</p> | ||
</AccordionItem> | ||
</Accordion> |
Oops, something went wrong.