@salesql/sql_components_vue3 3.7.0 → 3.8.1

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,30 @@
1
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
+ icon: {
3
+ type: StringConstructor;
4
+ required: true;
5
+ };
6
+ title: {
7
+ type: StringConstructor;
8
+ required: true;
9
+ };
10
+ hint: {
11
+ type: StringConstructor;
12
+ default: string;
13
+ };
14
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
15
+ icon: {
16
+ type: StringConstructor;
17
+ required: true;
18
+ };
19
+ title: {
20
+ type: StringConstructor;
21
+ required: true;
22
+ };
23
+ hint: {
24
+ type: StringConstructor;
25
+ default: string;
26
+ };
27
+ }>> & Readonly<{}>, {
28
+ hint: string;
29
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
30
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as DsProfileLockedCard } from './DsProfileLockedCard.vue';
2
+ export * from './DsProfileLockedCard.types';
@@ -0,0 +1,10 @@
1
+ export interface DsProfileTimelineRowProps {
2
+ /** Logo URL. Empty, or failing to load, falls back to a placeholder box. */
3
+ logo?: string;
4
+ /** Job title / degree. */
5
+ title: string;
6
+ /** Company / school name. Empty → not rendered. */
7
+ subtitle?: string;
8
+ /** Date range, already formatted by the app. Empty → not rendered. */
9
+ dates?: string;
10
+ }
@@ -0,0 +1,40 @@
1
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
+ logo: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ title: {
7
+ type: StringConstructor;
8
+ required: true;
9
+ };
10
+ subtitle: {
11
+ type: StringConstructor;
12
+ default: string;
13
+ };
14
+ dates: {
15
+ type: StringConstructor;
16
+ default: string;
17
+ };
18
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
19
+ logo: {
20
+ type: StringConstructor;
21
+ default: string;
22
+ };
23
+ title: {
24
+ type: StringConstructor;
25
+ required: true;
26
+ };
27
+ subtitle: {
28
+ type: StringConstructor;
29
+ default: string;
30
+ };
31
+ dates: {
32
+ type: StringConstructor;
33
+ default: string;
34
+ };
35
+ }>> & Readonly<{}>, {
36
+ subtitle: string;
37
+ logo: string;
38
+ dates: string;
39
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
40
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as DsProfileTimelineRow } from './DsProfileTimelineRow.vue';
2
+ export * from './DsProfileTimelineRow.types';
package/llms-full.txt CHANGED
@@ -1,4 +1,4 @@
1
- # @salesql/sql_components_vue3 — SalesQL Design System (v3.7.0)
1
+ # @salesql/sql_components_vue3 — SalesQL Design System (v3.8.1)
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
 
@@ -37,7 +37,7 @@ Components that draw an icon emit `<i class="material-symbols-filled">{ligature}
37
37
 
38
38
  Components size their own glyphs (their scoped rules outrank the 20px default), so the class only has to supply the family and fill. Consumers with a `#leading`/`#trailing` slot may pass any element they like instead.
39
39
 
40
- ## Components (46)
40
+ ## Components (50)
41
41
 
42
42
  - **DsCompanyCard** (Company) — The card the prospector opens from its company cell — the design export's `CompanyDetails`
43
43
  - **DsCompanyLogo** (Company) — A company's logo in the DS hairline box: white, 1px `slate-tint` ring, 4px radius, the image
@@ -85,6 +85,10 @@ Components size their own glyphs (their scoped rules outrank the 20px default),
85
85
  - **DsWizardStepper** (Navigation) — Numbered multi-step flow: a row of step chips (completed / active / incomplete / neutral)
86
86
  - **DsDrawer** (Overlays) — Side panel over a backdrop. Built **native** — no `element-plus` — so the Vue 2 twin
87
87
  - **DsPopover** (Overlays) — Click-triggered card panel anchored to a trigger. Built **native** — no `element-plus`,
88
+ - **DsProfileHero** (Profile) — The full-profile drawer's header: photo, name, a headline and a LinkedIn badge. Source: the
89
+ - **DsProfileKvRow** (Profile) — One label / value row of the full-profile drawer — the design export's `ProfileKvRow`
90
+ - **DsProfileLockedCard** (Profile) — The "locked" stub shown instead of Metadata / About / Experience / Education before a
91
+ - **DsProfileTimelineRow** (Profile) — One entry of an Experience / Education list — the design export's `ProfileTimelineRow`
88
92
 
89
93
  ---
90
94
  <!-- DsCompanyCard · Company -->
@@ -817,20 +821,21 @@ only**: no events, no interaction.
817
821
 
818
822
  ### Props
819
823
 
820
- | Prop | Type | Default | Description |
821
- | ------------ | ------------------ | ----------- | ---------------------------------------------------------------------------------------------------- |
822
- | `image` | `string` | `''` | Image URL. When set, renders an `<img>` (highest priority over initials/placeholder). |
823
- | `firstName` | `string` | `''` | Used with `lastName` to compute initials and seed the color hash. |
824
- | `lastName` | `string` | `''` | See `firstName`. |
825
- | `letters` | `string` | `''` | Explicit initials — overrides the computed `firstName`+`lastName` initials when non-empty. |
826
- | `uid` | `string` | `''` | Seed for the deterministic background color hash (falls back to the name, then `letters`). |
827
- | `size` | `number` | `40` | Square box size in px (used for both width and height unless overridden). |
828
- | `width` | `number` | `undefined` | Explicit width in px — overrides `size` on that axis. |
829
- | `height` | `number` | `undefined` | Explicit height in px — overrides `size` on that axis. |
830
- | `textSize` | `number` | `undefined` | Initials font-size in px — overrides the computed ~40%-of-box value. |
831
- | `fontWeight` | `number \| string` | `undefined` | Initials font-weight — overrides the default token weight (900). |
832
- | `circular` | `boolean` | `false` | Fully round avatar (vs the default rounded-square). Per the DS, reserve this for the logged-in user. |
833
- | `alt` | `string` | `undefined` | Accessible label for the image variant; falls back to the derived name/letters when omitted. |
824
+ | Prop | Type | Default | Description |
825
+ | ------------ | ------------------ | ----------- | -------------------------------------------------------------------------------------------------------------------------- |
826
+ | `image` | `string` | `''` | Image URL. When set, renders an `<img>` (highest priority over initials/placeholder). |
827
+ | `firstName` | `string` | `''` | Used with `lastName` to compute initials and seed the color hash. |
828
+ | `lastName` | `string` | `''` | See `firstName`. |
829
+ | `letters` | `string` | `''` | Explicit initials — overrides the computed `firstName`+`lastName` initials when non-empty. |
830
+ | `uid` | `string` | `''` | Seed for the deterministic background color hash (falls back to the name, then `letters`). |
831
+ | `size` | `number` | `40` | Square box size in px (used for both width and height unless overridden). |
832
+ | `width` | `number` | `undefined` | Explicit width in px — overrides `size` on that axis. |
833
+ | `height` | `number` | `undefined` | Explicit height in px — overrides `size` on that axis. |
834
+ | `textSize` | `number` | `undefined` | Initials font-size in px — overrides the computed ~40%-of-box value. |
835
+ | `fontWeight` | `number \| string` | `undefined` | Initials font-weight — overrides the default token weight (900). |
836
+ | `circular` | `boolean` | `false` | Fully round avatar (vs the default rounded-square). Per the DS, reserve this for the logged-in user. |
837
+ | `accent` | `boolean` | `false` | Initials use the fixed accent tone (`colors.$accent-bg` / `colors.$accent-shadow`) instead of the per-person hashed color. |
838
+ | `alt` | `string` | `undefined` | Accessible label for the image variant; falls back to the derived name/letters when omitted. |
834
839
 
835
840
  ### Accessibility
836
841
 
@@ -842,12 +847,21 @@ only**: no events, no interaction.
842
847
  - Placeholder variant (no image and no initials): `aria-hidden="true"`, since there is
843
848
  nothing meaningful to announce.
844
849
 
850
+ ### Broken images
851
+
852
+ The `<img>` listens for its own `error` event: when the URL fails to load, the avatar
853
+ falls back to the initials variant (or the placeholder, if there are no initials either)
854
+ instead of showing the browser's broken-image icon. The error state resets whenever
855
+ `image` changes, so a later successful URL renders normally again.
856
+
845
857
  ### When to use
846
858
 
847
859
  - Contact/user avatars in lists, headers, and cards — pass `uid` so the color hash stays
848
860
  stable per person across renders.
849
861
  - Reserve `circular` for the current/logged-in user per the design system convention;
850
862
  other contacts use the default rounded-square shape.
863
+ - Reserve `accent` for contexts that want a consistent, on-brand tone regardless of the
864
+ person (e.g. `DsProfileHero`), instead of the per-person hashed color.
851
865
 
852
866
  ---
853
867
 
@@ -1374,14 +1388,15 @@ is a field of `DsProfileCompanyCard` (contract §3.1).
1374
1388
 
1375
1389
  ### Props
1376
1390
 
1377
- | Prop | Type | Default | Description |
1378
- | ------------- | ---------------- | ------- | ---------------------------------------------------------------------- |
1379
- | `icon` | `string` | — | Material Symbols glyph before the title (required). |
1380
- | `title` | `string` | — | The card's name, translated by the app; rendered uppercase (required). |
1381
- | `count` | `number \| null` | `null` | Shown after the title (`0` included). `null` → none. |
1382
- | `padded` | `boolean` | `true` | Pads the body `10px 14px 12px`. Off for rows that run edge to edge. |
1383
- | `collapsible` | `boolean` | `false` | The header becomes a button that folds the body, with a caret. |
1384
- | `open` | `boolean` | `true` | Body shown, when collapsible (`v-model:open`). Ignored otherwise. |
1391
+ | Prop | Type | Default | Description |
1392
+ | ------------- | ---------------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------- |
1393
+ | `icon` | `string` | — | Material Symbols glyph before the title (required). |
1394
+ | `title` | `string` | — | The card's name, translated by the app; rendered uppercase (required). |
1395
+ | `count` | `number \| null` | `null` | Shown after the title (`0` included). `null` → none. |
1396
+ | `padded` | `boolean` | `true` | Pads the body `10px 14px 12px`. Off for rows that run edge to edge. |
1397
+ | `collapsible` | `boolean` | `false` | The header becomes a button that folds the body, with a caret. |
1398
+ | `open` | `boolean` | `true` | Body shown, when collapsible (`v-model:open`). Ignored otherwise. |
1399
+ | `countHint` | `string` | `''` | Explains a count that may be approximate. Non-empty → the count becomes a focusable tooltip trigger. Empty → renders exactly as before. |
1385
1400
 
1386
1401
  ### Events
1387
1402
 
@@ -1402,6 +1417,11 @@ is a field of `DsProfileCompanyCard` (contract §3.1).
1402
1417
  - Collapsible: the heading is a real `<button>` with `aria-expanded` / `aria-controls`; the
1403
1418
  actions sit **outside** it (a control inside a button is invalid markup), after the caret.
1404
1419
  The export never combines the two: its collapsible cards have no actions.
1420
+ - A count with `countHint`: the tooltip's content is the hint, and the count itself gets
1421
+ `tabindex="0"` so keyboard users reach it too (mirrors `DsProfileLockedCard`). Without a
1422
+ hint the count stays exactly as before — no tooltip, not focusable. Same caveat as
1423
+ actions: combining `collapsible` with a `countHint` nests a focusable element inside the
1424
+ toggle `<button>`, which the export never does either — avoid pairing the two.
1405
1425
 
1406
1426
  ### Design parity (export `ProfileCard`)
1407
1427
 
@@ -1410,6 +1430,10 @@ Ring 1px `slate-tint`, radius 6, white; header `10px 14px`, gap 8; glyph 17px an
1410
1430
  `#b6bbc0`; caret 17px grey. Off-scale values (11px, 17px) follow the export, as DsCompanyCard's
1411
1431
  (Diego, 2026-09-23). No deltas.
1412
1432
 
1433
+ `countHint` is not in the design export — it's a library-only addition for a product
1434
+ concern (backend counters that can be one off from what's actually revealed), layered on
1435
+ top of the export's chrome without changing the count's own look.
1436
+
1413
1437
  ---
1414
1438
 
1415
1439
  <!-- DsRow · Data -->
@@ -1768,13 +1792,28 @@ events.
1768
1792
 
1769
1793
  ### Accessibility
1770
1794
 
1771
- - The bubble has `role="tooltip"`; the focused/hovered trigger gets `aria-describedby`
1795
+ - The bubble has `role="tooltip"`; the keyboard-focused trigger gets `aria-describedby`
1772
1796
  pointing at it (any pre-existing `aria-describedby` value is preserved and restored on hide).
1797
+ - Focus opens it only when the focus comes from the **keyboard**: Tab, or a script moving
1798
+ focus right after a key press — the same heuristic browsers use for `:focus-visible`. Focus
1799
+ after a click or tap, or a script's `el.focus()` after one (e.g. `DsDrawer`'s focus trap
1800
+ autofocusing its first control on open), is left to hover: the bubble shows after `delay`
1801
+ and hides on mouse leave, even while the trigger keeps focus.
1773
1802
  - Hover and keyboard focus are tracked independently — the tooltip stays open as long as
1774
1803
  either is active, so moving the mouse away while still focused (or vice versa) doesn't hide it.
1775
1804
  - Escape hides an open tooltip.
1776
1805
  - Respects `prefers-reduced-motion` (the fade transition is skipped).
1777
1806
 
1807
+ ### Testing in a consumer (jsdom / happy-dom)
1808
+
1809
+ - The focus modality comes from one shared `keydown` / `pointerdown` / `mousedown` listener on
1810
+ `document`, attached while any `DsTooltip` is mounted. To test keyboard focus, dispatch a
1811
+ `keydown` on `document` before focusing. To test a click followed by a scripted focus,
1812
+ dispatch a `pointerdown` (or `mousedown`) on `document` after the tooltip has mounted and
1813
+ before the focus runs.
1814
+ - With no such event seen yet, it falls back to `el.matches(':focus-visible')`, which jsdom and
1815
+ happy-dom treat like `:focus`: a real `el.focus()` then counts as keyboard focus.
1816
+
1778
1817
  ### When to use
1779
1818
 
1780
1819
  - Short, supplementary hints on icon-only controls or truncated text — icon-only triggers
@@ -2216,11 +2255,12 @@ consumer's job (frontend-app's `usePersistedWidth`).
2216
2255
 
2217
2256
  ### Slots
2218
2257
 
2219
- | Slot | Description |
2220
- | -------- | -------------------------------------------------------- |
2221
- | default | Panel body. |
2222
- | `header` | Replaces the default title element (the × button stays). |
2223
- | `footer` | Optional action row; omitted entirely when not provided. |
2258
+ | Slot | Description |
2259
+ | --------- | -------------------------------------------------------------------------------------------- |
2260
+ | default | Panel body. |
2261
+ | `header` | Replaces the default title element (the × button stays). |
2262
+ | `actions` | Consumer actions (share, open-in-new…), before the × close, in the softer `slate-soft` grey. |
2263
+ | `footer` | Optional action row; omitted entirely when not provided. |
2224
2264
 
2225
2265
  ### Events
2226
2266
 
@@ -2401,3 +2441,208 @@ viewport-only check would miss a row hidden by a scroller that is itself on scre
2401
2441
  **1px grey ring** (`slate-tint`), `spacing(1)` (8px) padding, card radius and the dropdown
2402
2442
  shadow — the values carried over from the `.el-popper.card-popover` override. Grey, never
2403
2443
  the accent.
2444
+
2445
+ ---
2446
+
2447
+ <!-- DsProfileHero · Profile -->
2448
+
2449
+ ## DsProfileHero
2450
+
2451
+ The full-profile drawer's header: photo, name, a headline and a LinkedIn badge. Source: the
2452
+ design export's `ProfileHero` (`shared/ContactData.jsx`), SALESQL-3298 — used in the
2453
+ prospector, full-profile and contact-list drawers, and in the extension.
2454
+
2455
+ ### Props
2456
+
2457
+ | Prop | Type | Default | Description |
2458
+ | --------------- | -------- | ----------- | ------------------------------------------------------------------------ |
2459
+ | `image` | `string` | `''` | Photo URL. Empty, or failing to load, falls back to DsAvatar's initials. |
2460
+ | `firstName` | `string` | `''` | Used for the name and, without a photo, the avatar's initials. |
2461
+ | `lastName` | `string` | `''` | See `firstName`. |
2462
+ | `headline` | `string` | `''` | Job title / one-line summary. Empty → the headline row is not rendered. |
2463
+ | `linkedinUrl` | `string` | `''` | Header LinkedIn badge target. Empty → no badge, no links row. |
2464
+ | `linkedinLabel` | `string` | `''` | Accessible name and tooltip content of the LinkedIn badge. |
2465
+ | `alt` | `string` | `undefined` | Passthrough to DsAvatar's `alt` (accessible label for the photo). |
2466
+
2467
+ ### Slots
2468
+
2469
+ | Slot | Where | Use |
2470
+ | --------- | -------------------------------------------- | -------------------------------------------------------------------------------------------------------------- |
2471
+ | `actions` | Absolutely positioned, top-right (8px inset) | The extension's `open_in_new` "open in contact list" icon, or none. No built-in open button — the app decides. |
2472
+
2473
+ ### Composition
2474
+
2475
+ - **Avatar:** `DsAvatar` at 64px, rounded-square (not circular), `accent` tone (fixed
2476
+ background/text, not the per-person hash — a photo header wants a calmer, on-brand
2477
+ look), 20px / 800 initials. The radius is overridden to `r.$radius-card` (6px) here,
2478
+ since DsAvatar's own default is the smaller `r.$radius-control` (4px).
2479
+ - **Name:** `{firstName} {lastName}`, trimmed — a lone first or last name renders without
2480
+ a stray leading/trailing space. Gains `padding-right: 24px` when `#actions` is present,
2481
+ so a long name never runs under the icon.
2482
+ - **Headline:** single line, ellipsized. Hidden entirely when empty (no empty row, no
2483
+ empty tooltip wrapper).
2484
+
2485
+ ### Tooltip: only when actually truncated
2486
+
2487
+ The headline is wrapped in a `DsTooltip`, but **a tooltip that repeats the fully visible
2488
+ text is noise** (Diego's rule) — so it only activates when the text is genuinely cut off.
2489
+ On `mouseenter` / `focus` the component compares the headline `<span>`'s `scrollWidth` to
2490
+ its `clientWidth`; DsTooltip's own `disabled` prop is driven by that result (mirroring
2491
+ how `DsSavedButton` gates its tooltip with `:disabled="!tooltip || open"`), so the
2492
+ `content` prop stays the full headline throughout — only `disabled` changes. It's also
2493
+ re-measured on mount and whenever `headline` changes, so the very first hover isn't the
2494
+ only path to a correct state.
2495
+
2496
+ ### Accessibility
2497
+
2498
+ - The LinkedIn badge is a real `<a>` (`target="_blank"`, `rel="noopener noreferrer"`) with
2499
+ `aria-label` — it stays keyboard-reachable, and "in" is LinkedIn's mark, not
2500
+ translatable copy.
2501
+ - `#actions` content is entirely the app's responsibility, including its own
2502
+ `aria-label`s (see the icon-only example above).
2503
+
2504
+ ### Design parity (export `ProfileHero`)
2505
+
2506
+ Root: flex row, gap 14, padding 14, white, 1px `slate-tint` border, radius 6. Avatar 64,
2507
+ radius 6, accent `colors.$accent-bg` / `colors.$accent-shadow`, initials 20px / 800,
2508
+ letter-spacing .5px. Name 18px / 700, ink `#1f2933`, line-height 1.2. Headline 12.5px
2509
+ (off-scale, follows the export), `slate-main`, line-height 1.4. Links row: gap 8,
2510
+ margin-top 4. LinkedIn badge 22 × 22, radius 4 (`DsProfileCompanyCard`'s value, not
2511
+ `DsCompanyCard`'s off-scale 5), 11px / 800.
2512
+
2513
+ **Logged delta:** the export's `onOpen` is a hardcoded icon action baked into
2514
+ `ProfileHero` itself; here it is the generic `#actions` slot instead, so the library
2515
+ ships no opinion on what icon or behavior the open action has — the story above
2516
+ reproduces it with a plain button.
2517
+
2518
+ ---
2519
+
2520
+ <!-- DsProfileKvRow · Profile -->
2521
+
2522
+ ## DsProfileKvRow
2523
+
2524
+ One label / value row of the full-profile drawer — the design export's `ProfileKvRow`
2525
+ (`shared/ContactData.jsx` L1407), SALESQL-3298. Used by `DsProfileCompanyCard`'s own field
2526
+ rows today, and standalone for any full-profile card that needs a plain "LABEL — value"
2527
+ list (e.g. an unlocked Metadata card: Industry, Location, Folder).
2528
+
2529
+ ### Props
2530
+
2531
+ | Prop | Type | Default | Description |
2532
+ | ------- | -------- | ------- | ----------------------------------------------------------------------------- |
2533
+ | `label` | `string` | — | Row label, already translated by the app. Rendered uppercase (required). |
2534
+ | `value` | `string` | `''` | Row value. Empty → the row renders nothing (the export returns `null`). |
2535
+ | `href` | `string` | `''` | Turns the value into a real link (accent color, new tab). Empty → plain text. |
2536
+
2537
+ ### The top rule: no `first` prop
2538
+
2539
+ A row only draws its 1px top rule when it's **not** the first row among its own kind —
2540
+ implemented with `&:not(:first-child)` in scoped CSS, not a boolean prop the consumer has
2541
+ to compute. Render a list of `DsProfileKvRow`s in sequence (as the variants above do,
2542
+ including one with an empty `value` in the middle) and the rule places itself correctly.
2543
+
2544
+ ### Design parity (export `ProfileKvRow`)
2545
+
2546
+ Row: `gap: 12px`, `align-items: baseline`, `padding: 7px 0`. Label: `width: 92px`, `10.5px
2547
+ / 700`, letter-spacing `.5px`, uppercase, grey. Value: `13.5px / 600`, slate, `line-height:
2548
+ 1.45`, `word-break: break-word`; the accent color and pointer cursor kick in only with
2549
+ `href`.
2550
+
2551
+ **Logged delta:** the export's `ProfileKvRow` takes a `link` **boolean** and only ever
2552
+ recolors the `<span>` — it never renders a real `<a>`, so nothing is actually clickable or
2553
+ keyboard-reachable in the design. This component takes the URL directly (`href`) and
2554
+ renders a genuine link instead, the same upgrade `DsCompanyCard` and
2555
+ `DsProfileCompanyCard` already made for their own links.
2556
+
2557
+ ### Not refactored into `DsProfileCompanyCard`
2558
+
2559
+ `DsProfileCompanyCard`'s field rows predate this component and were **not** refactored to
2560
+ render it, because their border logic isn't reproducible with a pure `:not(:first-child)`
2561
+ rule: when its `about` block is present, its _first_ field row still draws a top rule (the
2562
+ About block already drew its own, so the field section needs its own separating line
2563
+ too) — a case that depends on a sibling OUTSIDE this component's own element type, which
2564
+ `&:not(:first-child)` on `DsProfileKvRow` alone cannot see. See `DsProfileCompanyCard`'s
2565
+ own tests (`'sin About no hay bloque...'` / `'con About, ninguna fila es la primera...'`)
2566
+ for the exact behavior this would have broken.
2567
+
2568
+ ---
2569
+
2570
+ <!-- DsProfileLockedCard · Profile -->
2571
+
2572
+ ## DsProfileLockedCard
2573
+
2574
+ The "locked" stub shown instead of Metadata / About / Experience / Education before a
2575
+ contact is unlocked — the design export's `ProfileLockedCard` (`shared/ContactData.jsx`
2576
+ L1395), SALESQL-3298.
2577
+
2578
+ ### Props
2579
+
2580
+ | Prop | Type | Default | Description |
2581
+ | ------- | -------- | ------- | ----------------------------------------------------------------------------------- |
2582
+ | `icon` | `string` | — | Material Symbols glyph (filled family), e.g. `work` (required). |
2583
+ | `title` | `string` | — | The section's name, already translated. Rendered uppercase (required). |
2584
+ | `hint` | `string` | `''` | Tooltip explaining how to unlock. Empty → no tooltip, and the card isn't focusable. |
2585
+
2586
+ ### Accessibility
2587
+
2588
+ The whole card is the tooltip's trigger. `DsTooltip` opens on hover **and on focus**
2589
+ (`focusin`), so with a `hint` the card itself gets `tabindex="0"` — a keyboard user can Tab
2590
+ to it and read the hint, same as hovering it. Without a `hint` the tooltip is `disabled`
2591
+ and the card is left out of the tab order entirely: a focusable stop with nothing to
2592
+ announce would be a trap, not an affordance.
2593
+
2594
+ ### Lines up with `DsProfileCard`'s header — mostly
2595
+
2596
+ Same padding (`10px 14px`), gap (`8px`), border and radius (`6px`, `r.$radius-card`) as
2597
+ `DsProfileCard`'s header, so a locked card sits flush where an unlocked `DsProfileCard`
2598
+ would. **One intentional difference:** `DsProfileCard`'s icon and title read in the
2599
+ header-ink tone (`cd.$contact-data-header-ink`, `#5c6670`); here every glyph and the title
2600
+ read in the more muted mask ink (`cd.$contact-data-mask-ink`, `#b6bbc0`) throughout — the
2601
+ export draws it that way to read as **disabled**, not merely quiet.
2602
+
2603
+ ### Design parity (export `ProfileLockedCard`)
2604
+
2605
+ Leading icon `17px`, muted. Title `11px / 700`, letter-spacing `.6px`, uppercase, muted.
2606
+ Trailing `lock` glyph `15px`, muted. Tooltip: `hint`, placement left, block. All values
2607
+ match the export exactly — no reconciliation needed here.
2608
+
2609
+ ---
2610
+
2611
+ <!-- DsProfileTimelineRow · Profile -->
2612
+
2613
+ ## DsProfileTimelineRow
2614
+
2615
+ One entry of an Experience / Education list — the design export's `ProfileTimelineRow`
2616
+ (`shared/ContactData.jsx`), SALESQL-3298: a company/school logo, a title, and an optional
2617
+ subtitle and dates.
2618
+
2619
+ ### Props
2620
+
2621
+ | Prop | Type | Default | Description |
2622
+ | ---------- | -------- | ------- | --------------------------------------------------------------------- |
2623
+ | `logo` | `string` | `''` | Logo URL. Empty, or failing to load, falls back to a placeholder box. |
2624
+ | `title` | `string` | — | Job title / degree (required). |
2625
+ | `subtitle` | `string` | `''` | Company / school name. Empty → not rendered. |
2626
+ | `dates` | `string` | `''` | Date range, already formatted by the app. Empty → not rendered. |
2627
+
2628
+ ### Broken logos
2629
+
2630
+ The `<img>` listens for its own `error` event: a URL that fails to load falls back to the
2631
+ placeholder box (same surface as an empty `logo`) instead of the browser's broken-image
2632
+ icon. The error state resets whenever `logo` changes, mirroring `DsAvatar` and
2633
+ `DsCompanyLogo`'s own image-fallback behavior.
2634
+
2635
+ ### The top rule: no `first` prop
2636
+
2637
+ Same technique as `DsProfileKvRow`: `&:not(:first-child)` draws the divider, so a list of
2638
+ rows in sequence never needs the consumer to flag the first one.
2639
+
2640
+ ### Design parity
2641
+
2642
+ Export: `ProfileTimelineRow`, `shared/ContactData.jsx`. Every value here matches it
2643
+ exactly — row `gap: 10px` / `padding: 9px 0`; logo 30 × 30, radius 4 (`r.$radius-control`),
2644
+ `object-fit: contain`, 1px tint border, white background, `padding: 3px`, `box-sizing:
2645
+ border-box`; placeholder on the surface token (`colors.$slate-bg`, `#f6f6f6`) with the same
2646
+ 1px tint border; title `13px / 700` in ink (`colors.$grey-10`), `line-height: 1.3`;
2647
+ subtitle `12.5px`, `colors.$slate-main`, `line-height: 1.35`; dates `11.5px`, grey
2648
+ (`cd.$contact-data-ink-muted`), `margin-top: 1px`.
package/llms.txt CHANGED
@@ -50,6 +50,10 @@
50
50
  - DsWizardStepper (Navigation): Numbered multi-step flow: a row of step chips (completed / active / incomplete / neutral)
51
51
  - DsDrawer (Overlays): Side panel over a backdrop. Built **native** — no `element-plus` — so the Vue 2 twin
52
52
  - DsPopover (Overlays): Click-triggered card panel anchored to a trigger. Built **native** — no `element-plus`,
53
+ - DsProfileHero (Profile): The full-profile drawer's header: photo, name, a headline and a LinkedIn badge. Source: the
54
+ - DsProfileKvRow (Profile): One label / value row of the full-profile drawer — the design export's `ProfileKvRow`
55
+ - DsProfileLockedCard (Profile): The "locked" stub shown instead of Metadata / About / Experience / Education before a
56
+ - DsProfileTimelineRow (Profile): One entry of an Experience / Education list — the design export's `ProfileTimelineRow`
53
57
 
54
58
  ## Full documentation
55
59
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesql/sql_components_vue3",
3
- "version": "3.7.0",
3
+ "version": "3.8.1",
4
4
  "description": "Librería de componentes Vue 3 (SalesQL)",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -64,6 +64,7 @@
64
64
  "scripts": {
65
65
  "build": "pnpm docs:generate && vite build && vue-tsc -p tsconfig.build.json --emitDeclarationOnly",
66
66
  "docs:generate": "node scripts/generate-llms-docs.mjs",
67
+ "dev:link": "vite build --watch",
67
68
  "stories": "histoire dev",
68
69
  "build:stories": "histoire build",
69
70
  "typecheck": "vue-tsc --noEmit",