From 87b081a06f3848547ebdaf558c9acb2d88e91abb Mon Sep 17 00:00:00 2001 From: Sam Rose Date: Mon, 27 Jan 2025 17:40:51 +0000 Subject: [PATCH] Fix lint. --- packages/bbui/src/Actions/position_dropdown.ts | 12 +++++++----- packages/bbui/src/Form/Core/CheckboxGroup.svelte | 11 +++++++++-- packages/bbui/src/Form/Core/Combobox.svelte | 8 ++++++-- packages/bbui/src/Popover/Popover.svelte | 12 ++++-------- 4 files changed, 26 insertions(+), 17 deletions(-) diff --git a/packages/bbui/src/Actions/position_dropdown.ts b/packages/bbui/src/Actions/position_dropdown.ts index ba27ccc1d4..02cda87710 100644 --- a/packages/bbui/src/Actions/position_dropdown.ts +++ b/packages/bbui/src/Actions/position_dropdown.ts @@ -25,6 +25,12 @@ export interface Styles { top: number } +export type UpdateHandler = ( + anchorBounds: DOMRect, + elementBounds: DOMRect, + styles: Styles +) => Styles + interface Opts { anchor?: HTMLElement align: string @@ -33,11 +39,7 @@ interface Opts { minWidth?: number useAnchorWidth: boolean offset: number - customUpdate?: ( - anchorBounds: DOMRect, - elementBounds: DOMRect, - styles: Styles - ) => Styles + customUpdate?: UpdateHandler resizable: boolean wrap: boolean } diff --git a/packages/bbui/src/Form/Core/CheckboxGroup.svelte b/packages/bbui/src/Form/Core/CheckboxGroup.svelte index c318a3156b..5eac359d26 100644 --- a/packages/bbui/src/Form/Core/CheckboxGroup.svelte +++ b/packages/bbui/src/Form/Core/CheckboxGroup.svelte @@ -1,3 +1,8 @@ + + +import context from "src/context" +
{#if options && Array.isArray(options)} {#each options as option} diff --git a/packages/bbui/src/Form/Core/Combobox.svelte b/packages/bbui/src/Form/Core/Combobox.svelte index 473c053896..e2e2792f54 100644 --- a/packages/bbui/src/Form/Core/Combobox.svelte +++ b/packages/bbui/src/Form/Core/Combobox.svelte @@ -1,3 +1,7 @@ + +