@cobre-npm/ds-v3 0.145.1 → 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.
@@ -11,6 +11,7 @@ interface Props {
11
11
  hasCloseButton?: boolean;
12
12
  filterLabelColor?: string;
13
13
  ellipsisSize?: number;
14
+ squareBottomCorners?: boolean;
14
15
  }
15
16
  declare var __VLS_8: {}, __VLS_10: {}, __VLS_12: {};
16
17
  type __VLS_Slots = {} & {
@@ -29,6 +30,7 @@ declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {},
29
30
  type: string;
30
31
  hasCloseButton: boolean;
31
32
  isSelected: boolean;
33
+ squareBottomCorners: boolean;
32
34
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
33
35
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
34
36
  export default _default;
@@ -4,6 +4,11 @@ import { type CobreSelectableItem } from '../../molecules/CobreAccountOptionSele
4
4
  * selected account/counterparty (or a placeholder) and emits `click` to open a
5
5
  * picker dialog. Use as the entry point for choosing a source/destination
6
6
  * account in a flow; pair it with your own list/modal to perform the selection.
7
+ * Provide a `badge` slot (e.g. a CobreBadge) to flag the trigger — it's positioned
8
+ * flush against the top-right corner, which squares automatically; the slot exposes
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.
7
12
  */
8
13
  interface Props {
9
14
  label: string;
@@ -11,14 +16,28 @@ interface Props {
11
16
  placeholderIcon?: string;
12
17
  selectedAccount?: CobreSelectableItem | null;
13
18
  chevronIcon?: string;
19
+ isLoading?: boolean;
14
20
  }
15
- declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
21
+ declare var __VLS_1: {
22
+ squareBottomCorners: boolean;
23
+ };
24
+ type __VLS_Slots = {} & {
25
+ badge?: (props: typeof __VLS_1) => any;
26
+ };
27
+ declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
16
28
  click: () => any;
17
29
  }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
18
30
  onClick?: (() => any) | undefined;
19
31
  }>, {
32
+ isLoading: boolean;
20
33
  placeholderIcon: string;
21
34
  selectedAccount: CobreSelectableItem | null;
22
35
  chevronIcon: string;
23
36
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
37
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
24
38
  export default _default;
39
+ type __VLS_WithSlots<T, S> = T & {
40
+ new (): {
41
+ $slots: S;
42
+ };
43
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cobre-npm/ds-v3",
3
- "version": "0.145.1",
3
+ "version": "0.146.0",
4
4
  "type": "module",
5
5
  "packageManager": "pnpm@11.0.4",
6
6
  "engines": {