@salesql/sql_components_vue3 3.30.0 → 3.31.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.
@@ -0,0 +1,94 @@
1
+ export declare const DS_MAILBOX_PROVIDERS: {
2
+ readonly GOOGLE: "google";
3
+ readonly MICROSOFT: "microsoft";
4
+ };
5
+ export type DsMailboxProvider = (typeof DS_MAILBOX_PROVIDERS)[keyof typeof DS_MAILBOX_PROVIDERS];
6
+ export interface DsAccountMenuUser {
7
+ name: string;
8
+ email: string;
9
+ /** Avatar letters. Empty = the first letters of the first two words of `name`. */
10
+ initials?: string;
11
+ /** Plan chip («Premium», «Free»). Empty = no chip. */
12
+ plan?: string;
13
+ }
14
+ export interface DsAccountMenuCredits {
15
+ /** Used this period. Only read with a `total`. Omitted = `total - available` (not below 0), else 0. */
16
+ used?: number | null;
17
+ /** The period's allowance. `null`, `0` or omitted = unknown: no bar and no «X of Y used». */
18
+ total?: number | null;
19
+ /** «N available». Omitted = `total - used` (not below 0). Given, it wins, even above `total`. */
20
+ available?: number | null;
21
+ /** Reset date, already formatted by the app («Dec 1»). Empty = no reset text. */
22
+ resetsOn?: string;
23
+ }
24
+ export interface DsAccountMenuMailbox {
25
+ /** Stable key. */
26
+ id: string | number;
27
+ email: string;
28
+ provider: DsMailboxProvider;
29
+ /** Not sending (disconnected, disabled, error…): shows the «Reconnect» pill. The app maps statuses. */
30
+ needsReconnect?: boolean;
31
+ }
32
+ /** «Get started · n of total». */
33
+ export interface DsAccountMenuProgress {
34
+ done: number;
35
+ total: number;
36
+ }
37
+ /** Every string of the menu. Pass a partial: it overrides only its keys. */
38
+ export interface DsAccountMenuCopy {
39
+ /** The trigger's and the menu's accessible name. */
40
+ menu: string;
41
+ /** The trigger's tooltip. Empty = none. */
42
+ triggerTooltip: string;
43
+ credits: string;
44
+ creditsAvailable: (available: number) => string;
45
+ creditsUsed: (used: number, total: number) => string;
46
+ /** Never «Renews»: the credits reset. */
47
+ creditsResets: (date: string) => string;
48
+ /** The progress bar's accessible name. */
49
+ creditsProgress: string;
50
+ mailboxes: string;
51
+ mailboxesConnected: (connected: number) => string;
52
+ /** A connected mailbox row's accessible name. */
53
+ mailboxConnectedLabel: (email: string) => string;
54
+ connectMailbox: string;
55
+ connectAnother: string;
56
+ reconnect: string;
57
+ /** The «Reconnect» pill's accessible name. */
58
+ reconnectLabel: (email: string) => string;
59
+ reconnectTooltip: string;
60
+ getStarted: string;
61
+ getStartedProgress: (done: number, total: number) => string;
62
+ bulkSave: string;
63
+ linkedinAccounts: string;
64
+ language: string;
65
+ help: string;
66
+ whatsNew: string;
67
+ /** Accessible name of the unread dot. */
68
+ whatsNewUnread: (unread: number) => string;
69
+ logout: string;
70
+ }
71
+ export declare const DS_ACCOUNT_MENU_COPY: DsAccountMenuCopy;
72
+ export interface DsAccountMenuProps {
73
+ /** Visibility. Omit it and the menu manages itself; bind `v-model:open` to control it. */
74
+ open?: boolean;
75
+ user: DsAccountMenuUser;
76
+ /** The credits block. `null` = hidden. */
77
+ credits?: DsAccountMenuCredits | null;
78
+ /**
79
+ * The mailboxes. `null` = the account has no campaigns access: the whole block is hidden.
80
+ * `[]` = «Mailboxes» + «Connect a mailbox».
81
+ */
82
+ mailboxes?: DsAccountMenuMailbox[] | null;
83
+ /** «Get started · n of total», while the onboarding checklist is hidden. `null` = no row. */
84
+ getStarted?: DsAccountMenuProgress | null;
85
+ showBulkSave?: boolean;
86
+ showLinkedinAccounts?: boolean;
87
+ /** The current language's name («English»). Empty = no Language row. */
88
+ language?: string;
89
+ showHelp?: boolean;
90
+ showWhatsNew?: boolean;
91
+ /** Unseen updates: an unread dot on «What's new» while above 0. */
92
+ whatsNewUnread?: number;
93
+ copy?: Partial<DsAccountMenuCopy>;
94
+ }
@@ -0,0 +1,136 @@
1
+ import { type PropType } from 'vue';
2
+ import { type DsAccountMenuCopy, type DsAccountMenuCredits, type DsAccountMenuMailbox, type DsAccountMenuProgress, type DsAccountMenuUser } from './DsAccountMenu.types';
3
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
+ open: {
5
+ type: BooleanConstructor;
6
+ default: undefined;
7
+ };
8
+ user: {
9
+ type: PropType<DsAccountMenuUser>;
10
+ required: true;
11
+ };
12
+ credits: {
13
+ type: PropType<DsAccountMenuCredits | null>;
14
+ default: null;
15
+ };
16
+ mailboxes: {
17
+ type: PropType<DsAccountMenuMailbox[] | null>;
18
+ default: null;
19
+ };
20
+ getStarted: {
21
+ type: PropType<DsAccountMenuProgress | null>;
22
+ default: null;
23
+ };
24
+ showBulkSave: {
25
+ type: BooleanConstructor;
26
+ default: boolean;
27
+ };
28
+ showLinkedinAccounts: {
29
+ type: BooleanConstructor;
30
+ default: boolean;
31
+ };
32
+ language: {
33
+ type: StringConstructor;
34
+ default: string;
35
+ };
36
+ showHelp: {
37
+ type: BooleanConstructor;
38
+ default: boolean;
39
+ };
40
+ showWhatsNew: {
41
+ type: BooleanConstructor;
42
+ default: boolean;
43
+ };
44
+ whatsNewUnread: {
45
+ type: NumberConstructor;
46
+ default: number;
47
+ };
48
+ copy: {
49
+ type: PropType<Partial<DsAccountMenuCopy>>;
50
+ default: undefined;
51
+ };
52
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
53
+ "update:open": (...args: any[]) => void;
54
+ connect: (...args: any[]) => void;
55
+ reconnect: (...args: any[]) => void;
56
+ "get-started": (...args: any[]) => void;
57
+ "bulk-save": (...args: any[]) => void;
58
+ "linkedin-accounts": (...args: any[]) => void;
59
+ language: (...args: any[]) => void;
60
+ help: (...args: any[]) => void;
61
+ "whats-new": (...args: any[]) => void;
62
+ logout: (...args: any[]) => void;
63
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
64
+ open: {
65
+ type: BooleanConstructor;
66
+ default: undefined;
67
+ };
68
+ user: {
69
+ type: PropType<DsAccountMenuUser>;
70
+ required: true;
71
+ };
72
+ credits: {
73
+ type: PropType<DsAccountMenuCredits | null>;
74
+ default: null;
75
+ };
76
+ mailboxes: {
77
+ type: PropType<DsAccountMenuMailbox[] | null>;
78
+ default: null;
79
+ };
80
+ getStarted: {
81
+ type: PropType<DsAccountMenuProgress | null>;
82
+ default: null;
83
+ };
84
+ showBulkSave: {
85
+ type: BooleanConstructor;
86
+ default: boolean;
87
+ };
88
+ showLinkedinAccounts: {
89
+ type: BooleanConstructor;
90
+ default: boolean;
91
+ };
92
+ language: {
93
+ type: StringConstructor;
94
+ default: string;
95
+ };
96
+ showHelp: {
97
+ type: BooleanConstructor;
98
+ default: boolean;
99
+ };
100
+ showWhatsNew: {
101
+ type: BooleanConstructor;
102
+ default: boolean;
103
+ };
104
+ whatsNewUnread: {
105
+ type: NumberConstructor;
106
+ default: number;
107
+ };
108
+ copy: {
109
+ type: PropType<Partial<DsAccountMenuCopy>>;
110
+ default: undefined;
111
+ };
112
+ }>> & Readonly<{
113
+ "onUpdate:open"?: ((...args: any[]) => any) | undefined;
114
+ onConnect?: ((...args: any[]) => any) | undefined;
115
+ onReconnect?: ((...args: any[]) => any) | undefined;
116
+ "onGet-started"?: ((...args: any[]) => any) | undefined;
117
+ "onBulk-save"?: ((...args: any[]) => any) | undefined;
118
+ "onLinkedin-accounts"?: ((...args: any[]) => any) | undefined;
119
+ onLanguage?: ((...args: any[]) => any) | undefined;
120
+ onHelp?: ((...args: any[]) => any) | undefined;
121
+ "onWhats-new"?: ((...args: any[]) => any) | undefined;
122
+ onLogout?: ((...args: any[]) => any) | undefined;
123
+ }>, {
124
+ copy: Partial<DsAccountMenuCopy>;
125
+ open: boolean;
126
+ language: string;
127
+ credits: DsAccountMenuCredits | null;
128
+ mailboxes: DsAccountMenuMailbox[] | null;
129
+ getStarted: DsAccountMenuProgress | null;
130
+ showBulkSave: boolean;
131
+ showLinkedinAccounts: boolean;
132
+ showHelp: boolean;
133
+ showWhatsNew: boolean;
134
+ whatsNewUnread: number;
135
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
136
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as DsAccountMenu } from './DsAccountMenu.vue';
2
+ export * from './DsAccountMenu.types';
@@ -0,0 +1,10 @@
1
+ import { type DsMailboxProvider } from './DsAccountMenu.types';
2
+ interface ProviderLogo {
3
+ viewBox: string;
4
+ paths: ReadonlyArray<{
5
+ d: string;
6
+ fill: string;
7
+ }>;
8
+ }
9
+ export declare const PROVIDER_LOGOS: Record<DsMailboxProvider, ProviderLogo>;
10
+ export {};
@@ -1,8 +1,8 @@
1
1
  export interface DsPanelHeaderProps {
2
2
  /** Accessible name of the logo (e.g. «SalesQL»). Empty = decorative. App copy. */
3
3
  logoLabel?: string;
4
- /** «Open dashboard»: the button's tooltip and its aria-label. App copy. */
4
+ /** «Open SalesQL dashboard»: the icon-only button's aria-label (and tooltip by default). */
5
5
  openLabel: string;
6
- /** «Minimize»: the button's tooltip and its aria-label. App copy. */
7
- minimizeLabel: string;
6
+ /** «Open SalesQL»: a shorter tooltip than the aria-label. Empty = `openLabel`. */
7
+ openTooltip?: string;
8
8
  }
@@ -1,4 +1,10 @@
1
- declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
1
+ declare var __VLS_5: {}, __VLS_23: {};
2
+ type __VLS_Slots = {} & {
3
+ usage?: (props: typeof __VLS_5) => any;
4
+ } & {
5
+ account?: (props: typeof __VLS_23) => any;
6
+ };
7
+ declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
8
  logoLabel: {
3
9
  type: StringConstructor;
4
10
  default: string;
@@ -7,13 +13,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
7
13
  type: StringConstructor;
8
14
  required: true;
9
15
  };
10
- minimizeLabel: {
16
+ openTooltip: {
11
17
  type: StringConstructor;
12
- required: true;
18
+ default: string;
13
19
  };
14
20
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
15
21
  open: (...args: any[]) => void;
16
- minimize: (...args: any[]) => void;
17
22
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
18
23
  logoLabel: {
19
24
  type: StringConstructor;
@@ -23,14 +28,20 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
23
28
  type: StringConstructor;
24
29
  required: true;
25
30
  };
26
- minimizeLabel: {
31
+ openTooltip: {
27
32
  type: StringConstructor;
28
- required: true;
33
+ default: string;
29
34
  };
30
35
  }>> & Readonly<{
31
36
  onOpen?: ((...args: any[]) => any) | undefined;
32
- onMinimize?: ((...args: any[]) => any) | undefined;
33
37
  }>, {
34
38
  logoLabel: string;
39
+ openTooltip: string;
35
40
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
41
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
36
42
  export default _default;
43
+ type __VLS_WithSlots<T, S> = T & {
44
+ new (): {
45
+ $slots: S;
46
+ };
47
+ };
@@ -0,0 +1,5 @@
1
+ import type { InjectionKey } from 'vue';
2
+ export interface PanelHeaderContext {
3
+ rect: () => DOMRect | null;
4
+ }
5
+ export declare const PANEL_HEADER: InjectionKey<PanelHeaderContext>;
package/llms-full.txt CHANGED
@@ -1,4 +1,4 @@
1
- # @salesql/sql_components_vue3 — SalesQL Design System (v3.30.0)
1
+ # @salesql/sql_components_vue3 — SalesQL Design System (v3.31.0)
2
2
 
3
3
  > Librería de componentes Vue 3 (SalesQL) Presentational-only Vue 3 components (props in, events out; the consuming app owns state, i18n and data). This file is auto-generated from the component stories for LLM/agent consumption — do not edit by hand.
4
4
 
@@ -48,7 +48,7 @@ app.provide(DS_TELEPORT_TARGET, overlayLayer); // an element inside the shadow r
48
48
 
49
49
  Browsers ignore `@font-face` declared inside a shadow root: register the fonts on the page document.
50
50
 
51
- ## Components (75)
51
+ ## Components (76)
52
52
 
53
53
  - **DsCompanyCard** (Company) — The card the prospector opens from its company cell — the design export's `CompanyDetails`
54
54
  - **DsCompanyLogo** (Company) — A company's logo in the DS hairline box: white, 1px `slate-tint` ring, 4px radius, the image
@@ -88,11 +88,12 @@ Browsers ignore `@font-face` declared inside a shadow root: register the fonts o
88
88
  - **DsSegmentedProgressBar** (Data) — Horizontal, multi-segment data-viz track (e.g. a verification-quality breakdown), with an
89
89
  - **DsTable** (Data) — Data-dense table with two composition modes: **declarative** (`columns` + `rows`, with
90
90
  - **DsVerificationIcon** (Data) — Status glyph for a contact data point (email/phone): verified, unverified, or newly
91
+ - **DsAccountMenu** (Extension panel) — The avatar at the right end of the side panel header and the account menu it opens. Goes in
91
92
  - **DsAddToBar** (Extension panel) — The «Add to:» bar of the extension's LinkedIn panel (export `AddToRow`), in `DsPanelFrame`'s
92
93
  - **DsBulkBar** (Extension panel) — The selection bar above a list: a **select-all checkbox** with its count text, a flexible
93
94
  - **DsContactRow** (Extension panel) — One row of the extension panel's search-results list: a checkbox, the contact's photo, name and
94
95
  - **DsPanelFrame** (Extension panel) — The floating card that holds the extension's panel: a white column with a hairline border, a
95
- - **DsPanelHeader** (Extension panel) — The top bar of the extension's floating panel: the SalesQL imagotype on the left and two
96
+ - **DsPanelHeader** (Extension panel) — The top bar of the extension's **side panel**: the SalesQL imagotype on the left and, on the
96
97
  - **DsPanelLauncher** (Extension panel) — The minimized panel: a round white button with the SalesQL isotype that brings the panel back.
97
98
  - **DsAlert** (Feedback) — Inline banner for status/confirmation messages (success, info, warning, error). It
98
99
  - **DsModal** (Feedback) — Dialog with an optional header (title + close button) and footer action row, vertically
@@ -2576,6 +2577,111 @@ found. **Presentational only**: no events, its state is derived entirely from th
2576
2577
 
2577
2578
  ---
2578
2579
 
2580
+ <!-- DsAccountMenu · Extension panel -->
2581
+
2582
+ ## DsAccountMenu
2583
+
2584
+ The avatar at the right end of the side panel header and the account menu it opens. Goes in
2585
+ `DsPanelHeader`'s `account` slot. **Presentational only**: every row emits its own event and
2586
+ the app opens the tab, the sheet or the provider's sign-in. Every action closes the menu and
2587
+ returns focus to the avatar.
2588
+
2589
+ Order, as the design: user (36px avatar, name, plan chip, email) · Credits (available, meter,
2590
+ «{used} of {total} used», «Resets {date}», never «Renews»; without a total only the available and
2591
+ the reset) · Get started · Mailboxes · Bulk save
2592
+ from LinkedIn URLs · LinkedIn accounts · Language · Help & support · What's new · Log out.
2593
+ The rows owned by other tickets are **off by default** and render only when their prop is set:
2594
+ no dead buttons.
2595
+
2596
+ ### Props
2597
+
2598
+ | Prop | Type | Default | Description |
2599
+ | ---------------------- | -------------------------------- | ----------- | ---------------------------------------------------------------------------------------------- |
2600
+ | `open` | `boolean` | `undefined` | `v-model:open`. Omitted = the menu manages itself. Bind it to keep one popover open at a time. |
2601
+ | `user` | `DsAccountMenuUser` | — | `{ name, email, initials?, plan? }`. No `initials` = first letters of the name. |
2602
+ | `credits` | `DsAccountMenuCredits \| null` | `null` | `{ used?, total?, available?, resetsOn? }`. See below. `null` = no block. |
2603
+ | `mailboxes` | `DsAccountMenuMailbox[] \| null` | `null` | `null` = no campaigns access (no block). `[]` = «Connect a mailbox». See below. |
2604
+ | `getStarted` | `{ done, total } \| null` | `null` | «Get started · n of total», while the onboarding checklist is hidden. |
2605
+ | `showBulkSave` | `boolean` | `false` | «Bulk save from LinkedIn URLs». |
2606
+ | `showLinkedinAccounts` | `boolean` | `false` | «LinkedIn accounts» (opens in a new tab: trailing `open_in_new`). |
2607
+ | `language` | `string` | `''` | Current language's name; non-empty shows the Language row with it on the right. |
2608
+ | `showHelp` | `boolean` | `false` | «Help & support». |
2609
+ | `showWhatsNew` | `boolean` | `false` | «What's new». |
2610
+ | `whatsNewUnread` | `number` | `0` | Above 0, an unread dot (accessible name from `copy.whatsNewUnread`). |
2611
+ | `copy` | `Partial<DsAccountMenuCopy>` | English | Every string; a partial overrides only its keys (`DS_ACCOUNT_MENU_COPY`). |
2612
+
2613
+ #### Credits
2614
+
2615
+ `{ used?: number; total?: number | null; available?: number; resetsOn?: string }`.
2616
+
2617
+ - «N available» is `available` when given (it wins, even above `total`: 1,200 of a 1,000 plan
2618
+ shows 1,200), else `total − used`, never below 0.
2619
+ - With a `total` (above 0): the meter (`used / total`, clipped to 0–100%) and «{used} of {total}
2620
+ used». `total` `null`, `0` or omitted = unknown: no meter and no «… used», only «N available».
2621
+ - `resetsOn` is already formatted by the app («Dec 1»): «Resets Dec 1». Empty = no reset text.
2622
+
2623
+ #### Mailboxes
2624
+
2625
+ `{ id, email, provider: 'google' | 'microsoft', needsReconnect? }`. The app maps the backend
2626
+ statuses: anything that is not sending (disconnected, disabled, error) is `needsReconnect` and
2627
+ shows the amber «Reconnect» pill (tooltip «Disconnected · campaigns are paused»). The title
2628
+ reads «Mailboxes · N connected», N = mailboxes without `needsReconnect`; with none, only
2629
+ «Mailboxes». The provider logo is the brand mark only, no name; a provider without a logo falls
2630
+ back to the `mail` icon. No per-mailbox Disconnect.
2631
+
2632
+ ### Events
2633
+
2634
+ `update:open` (boolean) · `connect` · `reconnect` (the mailbox) · `get-started` · `bulk-save` ·
2635
+ `linkedin-accounts` · `language` · `help` · `whats-new` · `logout`. All but `update:open` and
2636
+ `reconnect` carry no payload.
2637
+
2638
+ ### Behaviour
2639
+
2640
+ - `DsPopover` `teleported` + `modal`, `bottom-end`, 300px: right-aligned with the avatar, 6px
2641
+ below it, kept 8px inside the viewport and capped to the room below (side panel height − 54).
2642
+ - A click anywhere outside closes it; the click-catching layer covers the header too, so the
2643
+ first click on another header control only closes this menu (one popover at a time).
2644
+ - Inside `DsPanelHeader`, a scrim (`colors.$scrim`, slate-shadow 20%) dims what is below the header.
2645
+
2646
+ ### Accessibility
2647
+
2648
+ - Trigger: `<button>` with `aria-label` (`copy.menu`), `aria-haspopup="menu"`, `aria-expanded`;
2649
+ tooltip `copy.triggerTooltip`, off while open. ArrowDown opens it.
2650
+ - The user and credits blocks sit above the `role="menu"`; the credits meter is a `progressbar`.
2651
+ - Rows are `menuitem`s with roving focus (`useMenuKeyboard`): arrows wrap, Home / End, Escape and
2652
+ Tab close and return focus to the avatar. Opening focuses the first row. The panel itself is
2653
+ focusable (`tabindex="-1"`) and holds the key handler, so a click on the user or credits block
2654
+ keeps arrows and Tab working. A focused row removed while open (a mailbox refresh drops its
2655
+ «Reconnect» pill) hands focus to the row now in its place, or the last one, never `<body>`.
2656
+ - Mailboxes are a `group` named «Mailboxes · N connected». A connected mailbox is an
2657
+ `aria-disabled` `menuitem` named «{email}, connected» (`copy.mailboxConnectedLabel`), so arrows
2658
+ and screen readers reach it; on a disconnected one the `menuitem` is «Reconnect {email}».
2659
+
2660
+ ### Design parity (canvas «Header-menu-uso» L402-494, «Onboarding» L581-612)
2661
+
2662
+ Composition, order and grouping follow the design. Sizes and colours follow the DS:
2663
+
2664
+ - New tokens: `amber-*` (Reconnect pill), `gradient-credits`, `scrim`; avatar ring
2665
+ `border-width-ring` (2px), name/email gap `spacing(0.25)` (2px), plan chip
2666
+ `chip-height('small')` (18px) with `letter-spacing-wide` (0.3px, also the initials), unread dot
2667
+ `dot-size('small')` (7px).
2668
+ - Type snaps to the DS scale: 12.5 → 13 (`small`), 11.5 → 12 (`caption`), 10.5/9.5 → 10
2669
+ (`micro`); weight 800 → 700, initials 900 (DsAvatar).
2670
+ - Secondary text `#888F97` → `slate-soft` (AA); icons keep `slate-muted`.
2671
+ - Gaps 9 → 8px; text inset 24px; meter margins 9/7 → 8px; Reconnect pill 22 → 24px tall.
2672
+ - Plan chip side padding 7 → 6px (`spacing(0.75)`).
2673
+ - Credits track `#E5E7EB` → `grey-2` (`#E4E7EB`); meter fill transition .3s → 0.2s (motion
2674
+ `duration-default`).
2675
+ - Menu chrome is `DsPopover`'s (6px radius, `shadow-dropdown`, fade) instead of 8px, the
2676
+ design's `0 8px 28px` shadow and its slide-in.
2677
+ - Icons are `DsIcon` outlined at 16 (15 and 13 move to 16), unfilled.
2678
+ - «Mailboxes · N connected» counts enabled mailboxes only (Diego, 2026-11-19); the design counts
2679
+ every mailbox.
2680
+ - The LinkedIn «in» square takes the DS radius (`radius-control`, 4px) instead of the design's 3px.
2681
+ - Capped to the room below the header, the menu scrolls with its bar hidden, as the design.
2682
+
2683
+ ---
2684
+
2579
2685
  <!-- DsAddToBar · Extension panel -->
2580
2686
 
2581
2687
  ## DsAddToBar
@@ -2838,64 +2944,55 @@ Logged deltas:
2838
2944
 
2839
2945
  ## DsPanelHeader
2840
2946
 
2841
- The top bar of the extension's floating panel: the SalesQL imagotype on the left and two
2842
- icon-only buttons on the right, «open dashboard» and «minimize». **Presentational only**: it
2843
- reports intent (`open`, `minimize`) and the app decides what happens.
2947
+ The top bar of the extension's **side panel**: the SalesQL imagotype on the left and, on the
2948
+ right, the cluster of the design in its order: the `usage` slot, the built-in «Open SalesQL»
2949
+ icon button and the `account` slot. **Presentational only**: it reports `open` and the app
2950
+ decides what happens.
2844
2951
 
2845
- It composes `DsBrandLogo` and `DsButton` (`square`, `large`, default variant) with a
2846
- `DsTooltip` under each button. The bubbles are `teleported`, so they escape the panel's
2847
- `overflow: clip` and, inside a browser extension, mount in the app's `DS_TELEPORT_TARGET`
2848
- (its shadow root).
2952
+ No minimize button: the side panel is Chrome's and closes from Chrome's own chrome (removed in
2953
+ this version, with the `minimizeLabel` prop and the `minimize` event).
2849
2954
 
2850
2955
  ### Props
2851
2956
 
2852
- | Prop | Type | Default | Description |
2853
- | --------------- | -------- | ------- | ------------------------------------------------------------------------------------- |
2854
- | `logoLabel` | `string` | `''` | Accessible name of the logo (e.g. «SalesQL»). Empty = decorative. App copy. |
2855
- | `openLabel` | `string` | — | «Open dashboard»: the button's tooltip **and** its `aria-label` (required). App copy. |
2856
- | `minimizeLabel` | `string` | — | «Minimize»: the button's tooltip **and** its `aria-label` (required). App copy. |
2957
+ | Prop | Type | Default | Description |
2958
+ | ------------- | -------- | ------- | ------------------------------------------------------------------------- |
2959
+ | `logoLabel` | `string` | `''` | Accessible name of the logo («SalesQL»). Empty = decorative. App copy. |
2960
+ | `openLabel` | `string` | — | «Open SalesQL dashboard»: the button's `aria-label` (required). App copy. |
2961
+ | `openTooltip` | `string` | `''` | «Open SalesQL»: a shorter tooltip than the label. Empty = `openLabel`. |
2857
2962
 
2858
2963
  ### Events
2859
2964
 
2860
- | Event | Payload | When |
2861
- | ---------- | ------- | ------------------------------------------------------------ |
2862
- | `open` | none | «Open dashboard» was clicked or activated from the keyboard. |
2863
- | `minimize` | none | «Minimize» was clicked or activated from the keyboard. |
2965
+ | Event | Payload | When |
2966
+ | ------ | ------- | ---------------------------------------------------------- |
2967
+ | `open` | none | «Open SalesQL» was clicked or activated from the keyboard. |
2864
2968
 
2865
2969
  ### Slots
2866
2970
 
2867
- None. The two actions are fixed by contract; extra actions are a different component.
2971
+ | Slot | What goes there |
2972
+ | --------- | ------------------------------------------------------------------------------------ |
2973
+ | `usage` | Before «Open SalesQL»: the LinkedIn usage ring and the credits chip (their tickets). |
2974
+ | `account` | After it: `DsAccountMenu`. Its scrim dims only what is below this header. |
2975
+
2976
+ Empty slots render nothing (no empty wrappers), also when their content is all `v-if`'d out
2977
+ (e.g. `<DsAccountMenu v-if="user">` while the session loads). The cluster keeps a 4px gap; the account slot
2978
+ adds 2px more, as the design's avatar.
2868
2979
 
2869
2980
  ### Accessibility
2870
2981
 
2871
2982
  - The root is a `<header>`. Inside the frame's `<section>` it is not a `banner` landmark.
2872
- - Both buttons are icon-only: `openLabel` / `minimizeLabel` are their `aria-label`, and the glyphs are `aria-hidden`.
2873
- - Real `<button type="button">`: Tab, Enter and Space work, and they never submit a form of the host page.
2983
+ - «Open SalesQL» is icon-only: `openLabel` is its `aria-label`; the glyph (`DsIcon`) is `aria-hidden`.
2874
2984
  - Keyboard focus shows the tooltip at once and draws a 2px `accent-mid` ring on the button.
2875
- - With `logoLabel` the logo is `role="img"`; without it, `aria-hidden`.
2876
-
2877
- ### When to use
2878
-
2879
- - The top bar of `DsPanelFrame` (`#header` slot) for the extension's LinkedIn panel.
2880
- - Not a page header or a drawer header: those have their own components (`DsDrawer`).
2881
2985
 
2882
- ### Design parity (export `PanelHeader` / `HeadBtn`)
2986
+ ### Design parity (canvas «Header-menu-uso», header L51-65)
2883
2987
 
2884
- Matches the export: 52px tall, white, hairline `0 1px 0 slate-tint` below (the export's `C.tint`,
2885
- `#E7E9EA` = `slate-tint`), `z-index: 3` so the hairline is not painted over, logo 24px high with a
2886
- 20px left inset, actions 14px from the right edge with no gap between them, 36 × 36 buttons with a
2887
- 4px radius, a 20px filled glyph in `slate-main` (the export's `C.slate`, `#414C58`) and a
2888
- `slate-tint` hover.
2988
+ 52px tall (`bar-height('panel')`), white, `0 1px 0 slate-tint` below, padding `0 12px 0 20px`
2989
+ (logo inset `spacing(2.5)`), logo 22px, cluster gap 4px, avatar 2px further (`spacing(0.25)`),
2990
+ «Open SalesQL» 32 × 32 (`DsButton` medium square: 4px radius, `slate-tint` hover) with a 20px
2991
+ `open_in_new` in `slate-soft`.
2889
2992
 
2890
2993
  Logged deltas:
2891
2994
 
2892
- - **Off-scale constants kept as local SCSS variables:** 52px height, 20px and 14px insets. The
2893
- DS spacing scale has no such steps. Candidates for a DS token if another bar needs them.
2894
- - **Hover transition 0.2s**, the DS `motion` default, instead of the export's `.15s`: it comes
2895
- with `DsButton`.
2896
- - **Real `<button>`s** with `aria-label`, instead of the export's click-handling `<span>`s.
2897
- - **Keyboard focus ring** (not in the export). `DsButton` draws no focus ring of its own, so the
2898
- header adds one to its two buttons.
2995
+ - Icon color `#5C6670` → `slate-soft` (`#5E666F`), the closest DS token.
2899
2996
 
2900
2997
  ---
2901
2998
 
package/llms.txt CHANGED
@@ -42,11 +42,12 @@
42
42
  - DsSegmentedProgressBar (Data): Horizontal, multi-segment data-viz track (e.g. a verification-quality breakdown), with an
43
43
  - DsTable (Data): Data-dense table with two composition modes: **declarative** (`columns` + `rows`, with
44
44
  - DsVerificationIcon (Data): Status glyph for a contact data point (email/phone): verified, unverified, or newly
45
+ - DsAccountMenu (Extension panel): The avatar at the right end of the side panel header and the account menu it opens. Goes in
45
46
  - DsAddToBar (Extension panel): The «Add to:» bar of the extension's LinkedIn panel (export `AddToRow`), in `DsPanelFrame`'s
46
47
  - DsBulkBar (Extension panel): The selection bar above a list: a **select-all checkbox** with its count text, a flexible
47
48
  - DsContactRow (Extension panel): One row of the extension panel's search-results list: a checkbox, the contact's photo, name and
48
49
  - DsPanelFrame (Extension panel): The floating card that holds the extension's panel: a white column with a hairline border, a
49
- - DsPanelHeader (Extension panel): The top bar of the extension's floating panel: the SalesQL imagotype on the left and two
50
+ - DsPanelHeader (Extension panel): The top bar of the extension's **side panel**: the SalesQL imagotype on the left and, on the
50
51
  - DsPanelLauncher (Extension panel): The minimized panel: a round white button with the SalesQL isotype that brings the panel back.
51
52
  - DsAlert (Feedback): Inline banner for status/confirmation messages (success, info, warning, error). It
52
53
  - DsModal (Feedback): Dialog with an optional header (title + close button) and footer action row, vertically
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesql/sql_components_vue3",
3
- "version": "3.30.0",
3
+ "version": "3.31.0",
4
4
  "description": "Librería de componentes Vue 3 (SalesQL)",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -83,6 +83,9 @@
83
83
  "group": {
84
84
  "families": ["outlined", "rounded"]
85
85
  },
86
+ "help": {
87
+ "families": ["outlined", "rounded"]
88
+ },
86
89
  "info": {
87
90
  "families": ["outlined", "rounded"]
88
91
  },
@@ -119,6 +122,9 @@
119
122
  "lock": {
120
123
  "families": ["outlined", "rounded"]
121
124
  },
125
+ "logout": {
126
+ "families": ["outlined", "rounded"]
127
+ },
122
128
  "mail": {
123
129
  "families": ["outlined", "rounded"]
124
130
  },
@@ -134,6 +140,9 @@
134
140
  "remove": {
135
141
  "families": ["outlined", "rounded"]
136
142
  },
143
+ "rocket_launch": {
144
+ "families": ["outlined", "rounded"]
145
+ },
137
146
  "school": {
138
147
  "families": ["outlined", "rounded"]
139
148
  },
@@ -152,12 +161,21 @@
152
161
  "swap_vert": {
153
162
  "families": ["outlined", "rounded"]
154
163
  },
164
+ "sync": {
165
+ "families": ["outlined", "rounded"]
166
+ },
155
167
  "thumb_down": {
156
168
  "families": ["outlined", "rounded"]
157
169
  },
158
170
  "thumb_up": {
159
171
  "families": ["outlined", "rounded"]
160
172
  },
173
+ "toll": {
174
+ "families": ["outlined", "rounded"]
175
+ },
176
+ "translate": {
177
+ "families": ["outlined", "rounded"]
178
+ },
161
179
  "verified": {
162
180
  "families": ["outlined", "rounded"]
163
181
  },