diff --git a/COMPONENT_INDEX.md b/COMPONENT_INDEX.md
index c2630a84..843fd102 100644
--- a/COMPONENT_INDEX.md
+++ b/COMPONENT_INDEX.md
@@ -1,6 +1,6 @@
# Component Index
-> 163 components exported from carbon-components-svelte@0.80.0.
+> 164 components exported from carbon-components-svelte@0.80.0.
## Components
@@ -95,6 +95,7 @@
- [`PaginationSkeleton`](#paginationskeleton)
- [`PasswordInput`](#passwordinput)
- [`Popover`](#popover)
+- [`PopoverContent`](#popovercontent)
- [`ProgressBar`](#progressbar)
- [`ProgressIndicator`](#progressindicator)
- [`ProgressIndicatorSkeleton`](#progressindicatorskeleton)
@@ -2797,15 +2798,15 @@ None.
### Props
-| Prop name | Required | Kind | Reactive | Type | Default value | Description |
-| :------------------ | :------- | :--------------- | :------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------ | ------------------------------------------------------ |
-| open | No | let
| Yes | boolean
| false
| Set to `true` to display the popover |
-| closeOnOutsideClick | No | let
| No | boolean
| false
| Set to `true` to close the popover on an outside click |
-| caret | No | let
| No | boolean
| false
| Set to `true` render a caret |
-| align | No | let
| No | "top" | "top-left" | "top-right" | "bottom" | "bottom-left" | "bottom-right" | "left" | "left-bottom" | "left-top" | "right" | "right-bottom" | "right-top"
| "top"
| Specify the alignment of the caret |
-| light | No | let
| No | boolean
| false
| Set to `true` to enable the light variant |
-| highContrast | No | let
| No | boolean
| false
| Set to `true` to enable the high contrast variant |
-| relative | No | let
| No | boolean
| false
| Set to `true` to use a relative position |
+| Prop name | Required | Kind | Reactive | Type | Default value | Description |
+| :------------------ | :------- | :--------------- | :------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------- | ------------------------------------------------------ |
+| open | No | let
| Yes | boolean
| false
| Set to `true` to display the popover |
+| closeOnOutsideClick | No | let
| No | boolean
| false
| Set to `true` to close the popover on an outside click |
+| isTabTip | No | let
| No | boolean
| false
| Set to `true` to render the tab tip variant |
+| caret | No | let
| No | boolean
| undefined
| Set to `true` render a caret |
+| align | No | let
| No | "top" | "top-left" | "top-right" | "bottom" | "bottom-left" | "bottom-right" | "left" | "left-bottom" | "left-top" | "right" | "right-bottom" | "right-top"
| undefined
| Specify the alignment of the caret |
+| dropShadow | No | let
| No | boolean
| true
| Set to `false` to omit the drop shadow |
+| highContrast | No | let
| No | boolean
| false
| Set to `true` to enable the high contrast variant |
### Slots
@@ -2819,6 +2820,25 @@ None.
| :------------ | :--------- | :------------------------------------ |
| click:outside | dispatched | { target: HTMLElement; }
|
+## `PopoverContent`
+
+### Props
+
+| Prop name | Required | Kind | Reactive | Type | Default value | Description |
+| :----------- | :------- | :--------------- | :------- | --------------- | ----------------- | ----------- |
+| className | No | let
| No | -- | null
| -- |
+| contentProps | No | let
| No | {}
| {}
| -- |
+
+### Slots
+
+| Slot name | Default | Props | Fallback |
+| :-------- | :------ | :---- | :------- |
+| -- | Yes | -- | -- |
+
+### Events
+
+None.
+
## `ProgressBar`
### Props
diff --git a/docs/src/COMPONENT_API.json b/docs/src/COMPONENT_API.json
index 2337f25a..4bf660c7 100644
--- a/docs/src/COMPONENT_API.json
+++ b/docs/src/COMPONENT_API.json
@@ -1,5 +1,5 @@
{
- "total": 163,
+ "total": 164,
"components": [
{
"moduleName": "Accordion",
@@ -8911,12 +8911,23 @@
"constant": false,
"reactive": false
},
+ {
+ "name": "isTabTip",
+ "kind": "let",
+ "description": "Set to `true` to render the tab tip variant",
+ "type": "boolean",
+ "value": "false",
+ "isFunction": false,
+ "isFunctionDeclaration": false,
+ "isRequired": false,
+ "constant": false,
+ "reactive": false
+ },
{
"name": "caret",
"kind": "let",
"description": "Set to `true` render a caret",
"type": "boolean",
- "value": "false",
"isFunction": false,
"isFunctionDeclaration": false,
"isRequired": false,
@@ -8928,7 +8939,6 @@
"kind": "let",
"description": "Specify the alignment of the caret",
"type": "\"top\" | \"top-left\" | \"top-right\" | \"bottom\" | \"bottom-left\" | \"bottom-right\" | \"left\" | \"left-bottom\" | \"left-top\" | \"right\" | \"right-bottom\" | \"right-top\"",
- "value": "\"top\"",
"isFunction": false,
"isFunctionDeclaration": false,
"isRequired": false,
@@ -8936,11 +8946,11 @@
"reactive": false
},
{
- "name": "light",
+ "name": "dropShadow",
"kind": "let",
- "description": "Set to `true` to enable the light variant",
+ "description": "Set to `false` to omit the drop shadow",
"type": "boolean",
- "value": "false",
+ "value": "true",
"isFunction": false,
"isFunctionDeclaration": false,
"isRequired": false,
@@ -8958,18 +8968,6 @@
"isRequired": false,
"constant": false,
"reactive": false
- },
- {
- "name": "relative",
- "kind": "let",
- "description": "Set to `true` to use a relative position",
- "type": "boolean",
- "value": "false",
- "isFunction": false,
- "isFunctionDeclaration": false,
- "isRequired": false,
- "constant": false,
- "reactive": false
}
],
"moduleExports": [],
@@ -8982,7 +8980,39 @@
}
],
"typedefs": [],
- "rest_props": { "type": "Element", "name": "div" }
+ "rest_props": { "type": "Element", "name": "span" }
+ },
+ {
+ "moduleName": "PopoverContent",
+ "filePath": "src/Popover/PopoverContent.svelte",
+ "props": [
+ {
+ "name": "className",
+ "kind": "let",
+ "value": "null",
+ "isFunction": false,
+ "isFunctionDeclaration": false,
+ "isRequired": false,
+ "constant": false,
+ "reactive": false
+ },
+ {
+ "name": "contentProps",
+ "kind": "let",
+ "type": "{}",
+ "value": "{}",
+ "isFunction": false,
+ "isFunctionDeclaration": false,
+ "isRequired": false,
+ "constant": false,
+ "reactive": false
+ }
+ ],
+ "moduleExports": [],
+ "slots": [{ "name": "__default__", "default": true, "slot_props": "{}" }],
+ "events": [],
+ "typedefs": [],
+ "rest_props": { "type": "Element", "name": "span" }
},
{
"moduleName": "ProgressBar",
diff --git a/docs/src/global.css b/docs/src/global.css
index 1b09a049..e9a590e7 100644
--- a/docs/src/global.css
+++ b/docs/src/global.css
@@ -121,6 +121,10 @@ html[theme="g90"] .code-override {
margin-bottom: var(--bx-spacing-05);
}
+.p-05 {
+ padding: var(--bx-spacing-05);
+}
+
.table {
position: sticky;
max-height: calc(100vh - 3rem);
diff --git a/docs/src/pages/components/Popover.svx b/docs/src/pages/components/Popover.svx
index 40089d01..d2b850f0 100644
--- a/docs/src/pages/components/Popover.svx
+++ b/docs/src/pages/components/Popover.svx
@@ -1,153 +1,128 @@
+---
+components: ["Popover", "PopoverContent"]
+---
+
## Default
-By default, the position of the popover component is absolute.
+By default, the alignment of the popover is at the bottom.
-