diff --git a/COMPONENT_INDEX.md b/COMPONENT_INDEX.md
index dc437397..3bf77ceb 100644
--- a/COMPONENT_INDEX.md
+++ b/COMPONENT_INDEX.md
@@ -177,12 +177,12 @@
### Props
-| Prop name | Required | Kind | Reactive | Type | Default value | Description |
-| :-------- | :------- | :--------------- | :------- | --------------------------------- | ---------------------- | ------------------------------------------------ |
-| align | No | let
| No | "start" | "end"
| "end"
| Specify alignment of accordion item chevron icon |
-| size | No | let
| No | "sm" | "lg"
| undefined
| Specify the size of the accordion |
-| disabled | No | let
| No | boolean
| false
| Set to `true` to disable the accordion |
-| skeleton | No | let
| No | boolean
| false
| Set to `true` to display the skeleton state |
+| Prop name | Required | Kind | Reactive | Type | Default value | Description |
+| :-------- | :------- | :--------------- | :------- | ----------------------------------------- | ------------------ | ----------------------------------------------------------------------------------------------------------- |
+| align | No | let
| No | "start" | "end"
| "end"
| Specify the alignment of the accordion item chevron icon. |
+| flush | No | let
| No | boolean
| false
| Set to `true` to flush the accordion content text.
**Note**: does not work with `align="start"`. |
+| size | No | let
| No | "sm" | "md" | "lg"
| "md"
| Specify the size of the accordion. |
+| disabled | No | let
| No | boolean
| false
| Set to `true` to disable all accordion items. |
### Slots
@@ -192,23 +192,18 @@
### Events
-| Event name | Type | Detail |
-| :--------- | :-------- | :----- |
-| click | forwarded | -- |
-| mouseover | forwarded | -- |
-| mouseenter | forwarded | -- |
-| mouseleave | forwarded | -- |
+None.
## `AccordionItem`
### Props
-| Prop name | Required | Kind | Reactive | Type | Default value | Description |
-| :-------------- | :------- | :--------------- | :------- | -------------------- | ------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------- |
-| disabled | No | let
| Yes | boolean
| false
| Set to `true` to disable the accordion item |
-| open | No | let
| Yes | boolean
| false
| Set to `true` to open the first accordion item |
-| title | No | let
| No | string
| "title"
| Specify the title of the accordion item heading.
Alternatively, use the "title" slot (e.g., `<div slot="title">...</div>`) |
-| iconDescription | No | let
| No | string
| "Expand/Collapse"
| Specify the ARIA label for the accordion item chevron icon |
+| Prop name | Required | Kind | Reactive | Type | Default value | Description |
+| :-------------- | :------- | :--------------- | :------- | -------------------- | ------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| disabled | No | let
| Yes | boolean
| false
| Set to `true` to disable the accordion item. |
+| open | No | let
| Yes | boolean
| false
| Set to `true` to open the first accordion item. |
+| title | No | let
| No | string
| "title"
| Specify the title of the accordion item heading.
Use the "title" slot for custom elements.
@example <svelte:fragment slot="title">...</svelte:fragment> |
+| iconDescription | No | let
| No | string
| "Expand/Collapse"
| Specify the ARIA label for the accordion item chevron icon. |
### Slots
@@ -232,12 +227,13 @@
### Props
-| Prop name | Required | Kind | Reactive | Type | Default value | Description |
-| :-------- | :------- | :--------------- | :------- | --------------------------------- | ---------------------- | ------------------------------------------------ |
-| count | No | let
| No | number
| 4
| Specify the number of accordion items to render |
-| align | No | let
| No | "start" | "end"
| "end"
| Specify alignment of accordion item chevron icon |
-| size | No | let
| No | "sm" | "xl"
| undefined
| Specify the size of the accordion |
-| open | No | let
| No | boolean
| true
| Set to `false` to close the first accordion item |
+| Prop name | Required | Kind | Reactive | Type | Default value | Description |
+| :-------- | :------- | :--------------- | :------- | ----------------------------------------- | ------------------ | ----------------------------------------------------------------------------------------------------------- |
+| count | No | let
| No | number
| 4
| Specify the number of accordion items. |
+| align | No | let
| No | "start" | "end"
| "end"
| Specify the alignment of the accordion item chevron icon. |
+| flush | No | let
| No | boolean
| false
| Set to `true` to flush the accordion content text.
**Note**: does not work with `align="start"`. |
+| size | No | let
| No | "sm" | "md" | "lg"
| "md"
| Specify the size of the accordion. |
+| open | No | let
| No | boolean
| false
| Set to `true` to expand the first accordion item |
### Slots
@@ -245,12 +241,7 @@ None.
### Events
-| Event name | Type | Detail |
-| :--------- | :-------- | :----- |
-| click | forwarded | -- |
-| mouseover | forwarded | -- |
-| mouseenter | forwarded | -- |
-| mouseleave | forwarded | -- |
+None.
## `AspectRatio`
diff --git a/docs/src/COMPONENT_API.json b/docs/src/COMPONENT_API.json
index 60018cc2..38a34b07 100644
--- a/docs/src/COMPONENT_API.json
+++ b/docs/src/COMPONENT_API.json
@@ -8,7 +8,7 @@
{
"name": "align",
"kind": "let",
- "description": "Specify alignment of accordion item chevron icon",
+ "description": "Specify the alignment of the accordion item chevron icon.",
"type": "\"start\" | \"end\"",
"value": "\"end\"",
"isFunction": false,
@@ -18,20 +18,9 @@
"reactive": false
},
{
- "name": "size",
+ "name": "flush",
"kind": "let",
- "description": "Specify the size of the accordion",
- "type": "\"sm\" | \"lg\"",
- "isFunction": false,
- "isFunctionDeclaration": false,
- "isRequired": false,
- "constant": false,
- "reactive": false
- },
- {
- "name": "disabled",
- "kind": "let",
- "description": "Set to `true` to disable the accordion",
+ "description": "Set to `true` to flush the accordion content text.\n\n**Note**: does not work with `align=\"start\"`.",
"type": "boolean",
"value": "false",
"isFunction": false,
@@ -41,9 +30,21 @@
"reactive": false
},
{
- "name": "skeleton",
+ "name": "size",
"kind": "let",
- "description": "Set to `true` to display the skeleton state",
+ "description": "Specify the size of the accordion.",
+ "type": "\"sm\" | \"md\" | \"lg\"",
+ "value": "\"md\"",
+ "isFunction": false,
+ "isFunctionDeclaration": false,
+ "isRequired": false,
+ "constant": false,
+ "reactive": false
+ },
+ {
+ "name": "disabled",
+ "kind": "let",
+ "description": "Set to `true` to disable all accordion items.",
"type": "boolean",
"value": "false",
"isFunction": false,
@@ -55,34 +56,8 @@
],
"moduleExports": [],
"slots": [{ "name": "__default__", "default": true, "slot_props": "{}" }],
- "events": [
- {
- "type": "forwarded",
- "name": "click",
- "element": "AccordionSkeleton"
- },
- {
- "type": "forwarded",
- "name": "mouseover",
- "element": "AccordionSkeleton"
- },
- {
- "type": "forwarded",
- "name": "mouseenter",
- "element": "AccordionSkeleton"
- },
- {
- "type": "forwarded",
- "name": "mouseleave",
- "element": "AccordionSkeleton"
- }
- ],
- "typedefs": [],
- "rest_props": { "type": "InlineComponent", "name": "AccordionSkeleton" },
- "extends": {
- "interface": "AccordionSkeletonProps",
- "import": "\"./AccordionSkeleton.svelte\""
- }
+ "events": [],
+ "typedefs": []
},
{
"moduleName": "AccordionItem",
@@ -91,7 +66,7 @@
{
"name": "title",
"kind": "let",
- "description": "Specify the title of the accordion item heading.\nAlternatively, use the \"title\" slot (e.g., `
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. @@ -25,8 +28,61 @@ components: ["Accordion", "AccordionItem", "AccordionSkeleton"]
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. +
+Analyze text to extract meta-data from content such as concepts, entities, emotion, relations, sentiment and more.
+Translate text, documents, and websites from one language to another. Create industry or region-specific translations via the service's customization capability.
+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. +
+Analyze text to extract meta-data from content such as concepts, entities, emotion, relations, sentiment and more.
+Translate text, documents, and websites from one language to another. Create industry or region-specific translations via the service's customization capability.
+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. +
+Analyze text to extract meta-data from content such as concepts, entities, emotion, relations, sentiment and more.
+Translate text, documents, and websites from one language to another. Create industry or region-specific translations via the service's customization capability.
+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.
@@ -42,10 +98,10 @@ components: ["Accordion", "AccordionItem", "AccordionSkeleton"]
## Custom title slot
- 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.
@@ -53,14 +109,14 @@ components: ["Accordion", "AccordionItem", "AccordionSkeleton"]
Analyze text to extract meta-data from content such as concepts, entities, emotion, relations, sentiment and more. Translate text, documents, and websites from one language to another. Create industry or region-specific translations via the service's customization capability. 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.
- Analyze text to extract meta-data from content such as concepts, entities, emotion, relations, sentiment and more. Translate text, documents, and websites from one language to another. Create industry or region-specific translations via the service's customization capability. 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.
- Analyze text to extract meta-data from content such as concepts, entities, emotion, relations, sentiment and more. Translate text, documents, and websites from one language to another. Create industry or region-specific translations via the service's customization capability. 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.
@@ -135,6 +165,8 @@ This example demonstrates how a list of items can be programmatically expanded a
## Disabled (item)
+To disable individual accordion items, set the `disabled` prop to `true` on the `AccordionItem`.
+
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.
@@ -150,25 +182,34 @@ This example demonstrates how a list of items can be programmatically expanded a
## Skeleton
-
- 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.
-
- Analyze text to extract meta-data from content such as concepts, entities,
- emotion, relations, sentiment and more.
-
- Translate text, documents, and websites from one language to another.
- Create industry or region-specific translations via the service's
- customization capability.
-
- 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.
-
- Analyze text to extract meta-data from content such as concepts, entities,
- emotion, relations, sentiment and more.
-
- Translate text, documents, and websites from one language to another.
- Create industry or region-specific translations via the service's
- customization capability.
-
- 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.
-
- Analyze text to extract meta-data from content such as concepts, entities,
- emotion, relations, sentiment and more.
-
- Translate text, documents, and websites from one language to another.
- Create industry or region-specific translations via the service's
- customization capability.
-
- 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.
-
- Analyze text to extract meta-data from content such as concepts, entities,
- emotion, relations, sentiment and more.
-
- Translate text, documents, and websites from one language to another.
- Create industry or region-specific translations via the service's
- customization capability.
-
- 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.
-
- Analyze text to extract meta-data from content such as concepts, entities,
- emotion, relations, sentiment and more.
-
- Translate text, documents, and websites from one language to another.
- Create industry or region-specific translations via the service's
- customization capability.
-
- 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.
-
- Analyze text to extract meta-data from content such as concepts, entities,
- emotion, relations, sentiment and more.
-
- Translate text, documents, and websites from one language to another.
- Create industry or region-specific translations via the service's
- customization capability.
-
- 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.
-
- Analyze text to extract meta-data from content such as concepts, entities,
- emotion, relations, sentiment and more.
-
- Translate text, documents, and websites from one language to another.
- Create industry or region-specific translations via the service's
- customization capability.
-
Natural Language Classifier uses advanced natural language processing and
@@ -192,10 +12,10 @@
- Analyze text to extract meta-data from content such as concepts, entities,
- emotion, relations, sentiment and more.
-
@@ -206,14 +26,6 @@
Natural Language Classifier
+ Natural Language Classifier
Natural Language Understanding
+ Natural Language Understanding
Language Translator
+ Language Translator
-
-{/if}
+
+
diff --git a/src/Accordion/AccordionItem.svelte b/src/Accordion/AccordionItem.svelte
index a8034f75..9f512dfb 100644
--- a/src/Accordion/AccordionItem.svelte
+++ b/src/Accordion/AccordionItem.svelte
@@ -1,47 +1,44 @@
{#if open}
Natural Language Classifier
- Natural Language Understanding
- Language Translator
- Natural Language Understanding
+