@cobre-npm/ds-v3 0.145.2 → 0.146.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -7,6 +7,8 @@ import { type CobreSelectableItem } from '../../molecules/CobreAccountOptionSele
|
|
|
7
7
|
* Provide a `badge` slot (e.g. a CobreBadge) to flag the trigger — it's positioned
|
|
8
8
|
* flush against the top-right corner, which squares automatically; the slot exposes
|
|
9
9
|
* `squareBottomCorners` for the badge to match.
|
|
10
|
+
* Set `isLoading` while resolving the selection asynchronously (e.g. an auto-select
|
|
11
|
+
* fetch) — the trigger disables and swaps its chevron for a spinner.
|
|
10
12
|
*/
|
|
11
13
|
interface Props {
|
|
12
14
|
label: string;
|
|
@@ -14,6 +16,7 @@ interface Props {
|
|
|
14
16
|
placeholderIcon?: string;
|
|
15
17
|
selectedAccount?: CobreSelectableItem | null;
|
|
16
18
|
chevronIcon?: string;
|
|
19
|
+
isLoading?: boolean;
|
|
17
20
|
}
|
|
18
21
|
declare var __VLS_1: {
|
|
19
22
|
squareBottomCorners: boolean;
|
|
@@ -26,6 +29,7 @@ declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {},
|
|
|
26
29
|
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
27
30
|
onClick?: (() => any) | undefined;
|
|
28
31
|
}>, {
|
|
32
|
+
isLoading: boolean;
|
|
29
33
|
placeholderIcon: string;
|
|
30
34
|
selectedAccount: CobreSelectableItem | null;
|
|
31
35
|
chevronIcon: string;
|