@cobre-npm/ds-v3 0.168.0 → 0.169.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.
@@ -9,6 +9,9 @@ import { type CobreSelectableItem } from '../../molecules/CobreAccountOptionSele
9
9
  * `squareBottomCorners` for the badge to match.
10
10
  * Set `isLoading` while resolving the selection asynchronously (e.g. an auto-select
11
11
  * fetch) — the trigger disables and swaps its chevron for a spinner.
12
+ * Set `isDisabled` to lock the trigger: no `click` is emitted, the chevron is hidden,
13
+ * `aria-disabled="true"` is set and the selected account stays visible in the DS disabled
14
+ * colours. If `isLoading` is also true, the loading look wins.
12
15
  * Pass `idPrefix` to expose E2E ids: `${idPrefix}-picker` on the trigger button and
13
16
  * `${idPrefix}-badge` on the badge wrapper.
14
17
  */
@@ -19,6 +22,7 @@ interface Props {
19
22
  selectedAccount?: CobreSelectableItem | null;
20
23
  chevronIcon?: string;
21
24
  isLoading?: boolean;
25
+ isDisabled?: boolean;
22
26
  idPrefix?: string;
23
27
  }
24
28
  declare var __VLS_1: {
@@ -33,6 +37,7 @@ declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {},
33
37
  onClick?: (() => any) | undefined;
34
38
  }>, {
35
39
  isLoading: boolean;
40
+ isDisabled: boolean;
36
41
  idPrefix: string;
37
42
  placeholderIcon: string;
38
43
  selectedAccount: CobreSelectableItem | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cobre-npm/ds-v3",
3
- "version": "0.168.0",
3
+ "version": "0.169.0",
4
4
  "type": "module",
5
5
  "packageManager": "pnpm@11.0.4",
6
6
  "engines": {