From d699087895d756285fc825850875aa61fba7a6c2 Mon Sep 17 00:00:00 2001 From: JC Franco Date: Thu, 6 Feb 2025 22:06:55 -0800 Subject: [PATCH] make user-facing options partial --- packages/calcite-components/src/components/dialog/dialog.tsx | 2 +- packages/calcite-components/src/components/modal/modal.tsx | 2 +- packages/calcite-components/src/components/popover/popover.tsx | 2 +- packages/calcite-components/src/components/sheet/sheet.tsx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/calcite-components/src/components/dialog/dialog.tsx b/packages/calcite-components/src/components/dialog/dialog.tsx index b03b74b2fc9..8e3e427e31f 100644 --- a/packages/calcite-components/src/components/dialog/dialog.tsx +++ b/packages/calcite-components/src/components/dialog/dialog.tsx @@ -169,7 +169,7 @@ export class Dialog extends LitElement implements OpenCloseComponent, LoadableCo * `"returnFocusOnDeactivate"` returns focus when not active, and * `"extraContainers"` specifies additional focusable elements external to the trap (e.g., 3rd-party components appending elements to the document body). */ - @property() focusTrapOptions: FocusTrapOptions; + @property() focusTrapOptions: Partial; /** The component header text. */ @property() heading: string; diff --git a/packages/calcite-components/src/components/modal/modal.tsx b/packages/calcite-components/src/components/modal/modal.tsx index 1a05162d46f..66f7102265c 100644 --- a/packages/calcite-components/src/components/modal/modal.tsx +++ b/packages/calcite-components/src/components/modal/modal.tsx @@ -164,7 +164,7 @@ export class Modal extends LitElement implements OpenCloseComponent, LoadableCom * `"returnFocusOnDeactivate"` returns focus when not active, and * `"extraContainers"` specifies additional focusable elements external to the trap (e.g., 3rd-party components appending elements to the document body). */ - @property() focusTrapOptions: FocusTrapOptions; + @property() focusTrapOptions: Partial; /** Sets the component to always be fullscreen. Overrides `widthScale` and `--calcite-modal-width` / `--calcite-modal-height`. */ @property({ reflect: true }) fullscreen: boolean; diff --git a/packages/calcite-components/src/components/popover/popover.tsx b/packages/calcite-components/src/components/popover/popover.tsx index 0639e6bd5dc..14b836c1398 100644 --- a/packages/calcite-components/src/components/popover/popover.tsx +++ b/packages/calcite-components/src/components/popover/popover.tsx @@ -139,7 +139,7 @@ export class Popover * `"returnFocusOnDeactivate"` returns focus when not active, and * `"extraContainers"` specifies additional focusable elements external to the trap (e.g., 3rd-party components appending elements to the document body). */ - @property() focusTrapOptions: FocusTrapOptions; + @property() focusTrapOptions: Partial; /** The component header text. */ @property() heading: string; diff --git a/packages/calcite-components/src/components/sheet/sheet.tsx b/packages/calcite-components/src/components/sheet/sheet.tsx index 8130f71b8d5..8d2a7979a6a 100644 --- a/packages/calcite-components/src/components/sheet/sheet.tsx +++ b/packages/calcite-components/src/components/sheet/sheet.tsx @@ -150,7 +150,7 @@ export class Sheet extends LitElement implements OpenCloseComponent, LoadableCom * `"returnFocusOnDeactivate"` returns focus when not active, and * `"extraContainers"` specifies additional focusable elements external to the trap (e.g., 3rd-party components appending elements to the document body). */ - @property() focusTrapOptions: FocusTrapOptions; + @property() focusTrapOptions: Partial; /** * When `position` is `"block-start"` or `"block-end"`, specifies the height of the component.