@cobre-npm/ds-v3 0.150.0 → 0.151.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,8 @@ 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
+ * Pass `idPrefix` to expose E2E ids: `${idPrefix}-picker` on the trigger button and
13
+ * `${idPrefix}-badge` on the badge wrapper.
12
14
  */
13
15
  interface Props {
14
16
  label: string;
@@ -17,6 +19,7 @@ interface Props {
17
19
  selectedAccount?: CobreSelectableItem | null;
18
20
  chevronIcon?: string;
19
21
  isLoading?: boolean;
22
+ idPrefix?: string;
20
23
  }
21
24
  declare var __VLS_1: {
22
25
  squareBottomCorners: boolean;
@@ -33,6 +36,7 @@ declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {},
33
36
  placeholderIcon: string;
34
37
  selectedAccount: CobreSelectableItem | null;
35
38
  chevronIcon: string;
39
+ idPrefix: string;
36
40
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
37
41
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
38
42
  export default _default;
@@ -8,6 +8,9 @@ type AccountItem = CobreSelectableItem;
8
8
  * visibility toggle. Use when the user must pick one account from a list.
9
9
  * Open/close it via the exposed `toggleModal()`; emits `select` on choice.
10
10
  * Provides a `custom-actions` slot for extra controls below the filters.
11
+ * `idPrefix` names every E2E id: `${idPrefix}-modal` (content wrapper), `-search`,
12
+ * `-loading`, `-account-${index}` (one per row, in list order), `-empty`, plus the
13
+ * `-${param}-filter` and `-balance-filter` controls.
11
14
  */
12
15
  interface Props {
13
16
  title: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cobre-npm/ds-v3",
3
- "version": "0.150.0",
3
+ "version": "0.151.0",
4
4
  "type": "module",
5
5
  "packageManager": "pnpm@11.0.4",
6
6
  "engines": {