From a2c40aa6c3cf7766a8c24e74925105123b9509e5 Mon Sep 17 00:00:00 2001 From: Eric Liu Date: Sat, 19 Mar 2022 08:36:33 -0700 Subject: [PATCH] Run "yarn build:docs" --- COMPONENT_INDEX.md | 4 +++- docs/src/COMPONENT_API.json | 9 ++++++++- types/ComboBox/ComboBox.svelte.d.ts | 2 +- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/COMPONENT_INDEX.md b/COMPONENT_INDEX.md index 052c625c..53cd8425 100644 --- a/COMPONENT_INDEX.md +++ b/COMPONENT_INDEX.md @@ -686,7 +686,9 @@ export interface ComboBoxItem { ### Slots -None. +| Slot name | Default | Props | Fallback | +| :-------- | :------ | :-------------------------------------------------- | :-------------------------------- | +| -- | Yes | { item: ComboBoxItem; index: number } | {itemToString(item)} | ### Events diff --git a/docs/src/COMPONENT_API.json b/docs/src/COMPONENT_API.json index f7698d84..33067a10 100644 --- a/docs/src/COMPONENT_API.json +++ b/docs/src/COMPONENT_API.json @@ -1639,7 +1639,14 @@ } ], "moduleExports": [], - "slots": [], + "slots": [ + { + "name": "__default__", + "default": true, + "fallback": "{itemToString(item)}", + "slot_props": "{ item: ComboBoxItem; index: number }" + } + ], "events": [ { "type": "dispatched", diff --git a/types/ComboBox/ComboBox.svelte.d.ts b/types/ComboBox/ComboBox.svelte.d.ts index 9054c618..10ebbfd9 100644 --- a/types/ComboBox/ComboBox.svelte.d.ts +++ b/types/ComboBox/ComboBox.svelte.d.ts @@ -157,7 +157,7 @@ export default class ComboBox extends SvelteComponentTyped< clear: WindowEventMap["clear"]; scroll: WindowEventMap["scroll"]; }, - {} + { default: { item: ComboBoxItem; index: number } } > { /** * Clear the combo box programmatically