@salesql/sql_components_vue3 3.5.0 → 3.7.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.
- package/README.md +18 -0
- package/dist/composables/useViewportClamp.d.ts +13 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +9 -0
- package/dist/index.es.js +1964 -1672
- package/dist/index.es.js.map +1 -1
- package/dist/sql_components_vue3.css +1 -1
- package/dist/ui/DsContactPlaceholder/DsContactPlaceholder.types.d.ts +20 -0
- package/dist/ui/DsContactPlaceholder/DsContactPlaceholder.vue.d.ts +34 -0
- package/dist/ui/DsContactPlaceholder/index.d.ts +2 -0
- package/dist/ui/DsPopover/DsPopover.types.d.ts +11 -2
- package/dist/ui/DsProfileCard/DsProfileCard.types.d.ts +14 -0
- package/dist/ui/DsProfileCard/DsProfileCard.vue.d.ts +74 -0
- package/dist/ui/DsProfileCard/index.d.ts +2 -0
- package/dist/ui/DsProfileCompanyCard/DsProfileCompanyCard.types.d.ts +41 -0
- package/dist/ui/DsProfileCompanyCard/DsProfileCompanyCard.vue.d.ts +141 -0
- package/dist/ui/DsProfileCompanyCard/index.d.ts +2 -0
- package/dist/ui/DsProfileGroupBar/DsProfileGroupBar.types.d.ts +4 -0
- package/dist/ui/DsProfileGroupBar/DsProfileGroupBar.vue.d.ts +22 -0
- package/dist/ui/DsProfileGroupBar/index.d.ts +2 -0
- package/llms-full.txt +244 -5
- package/llms.txt +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
import type { DsProfileField } from './DsProfileCompanyCard.types';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
|
+
title: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
name: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
logo: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
industry: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
employees: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
default: string;
|
|
23
|
+
};
|
|
24
|
+
websiteUrl: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
default: string;
|
|
27
|
+
};
|
|
28
|
+
websiteLabel: {
|
|
29
|
+
type: StringConstructor;
|
|
30
|
+
default: string;
|
|
31
|
+
};
|
|
32
|
+
linkedinUrl: {
|
|
33
|
+
type: StringConstructor;
|
|
34
|
+
default: string;
|
|
35
|
+
};
|
|
36
|
+
linkedinLabel: {
|
|
37
|
+
type: StringConstructor;
|
|
38
|
+
default: string;
|
|
39
|
+
};
|
|
40
|
+
about: {
|
|
41
|
+
type: StringConstructor;
|
|
42
|
+
default: string;
|
|
43
|
+
};
|
|
44
|
+
aboutLabel: {
|
|
45
|
+
type: StringConstructor;
|
|
46
|
+
default: string;
|
|
47
|
+
};
|
|
48
|
+
showMoreLabel: {
|
|
49
|
+
type: StringConstructor;
|
|
50
|
+
default: string;
|
|
51
|
+
};
|
|
52
|
+
showLessLabel: {
|
|
53
|
+
type: StringConstructor;
|
|
54
|
+
default: string;
|
|
55
|
+
};
|
|
56
|
+
fields: {
|
|
57
|
+
type: PropType<DsProfileField[]>;
|
|
58
|
+
default: () => never[];
|
|
59
|
+
};
|
|
60
|
+
emptyLabel: {
|
|
61
|
+
type: StringConstructor;
|
|
62
|
+
default: string;
|
|
63
|
+
};
|
|
64
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
65
|
+
title: {
|
|
66
|
+
type: StringConstructor;
|
|
67
|
+
required: true;
|
|
68
|
+
};
|
|
69
|
+
name: {
|
|
70
|
+
type: StringConstructor;
|
|
71
|
+
default: string;
|
|
72
|
+
};
|
|
73
|
+
logo: {
|
|
74
|
+
type: StringConstructor;
|
|
75
|
+
default: string;
|
|
76
|
+
};
|
|
77
|
+
industry: {
|
|
78
|
+
type: StringConstructor;
|
|
79
|
+
default: string;
|
|
80
|
+
};
|
|
81
|
+
employees: {
|
|
82
|
+
type: StringConstructor;
|
|
83
|
+
default: string;
|
|
84
|
+
};
|
|
85
|
+
websiteUrl: {
|
|
86
|
+
type: StringConstructor;
|
|
87
|
+
default: string;
|
|
88
|
+
};
|
|
89
|
+
websiteLabel: {
|
|
90
|
+
type: StringConstructor;
|
|
91
|
+
default: string;
|
|
92
|
+
};
|
|
93
|
+
linkedinUrl: {
|
|
94
|
+
type: StringConstructor;
|
|
95
|
+
default: string;
|
|
96
|
+
};
|
|
97
|
+
linkedinLabel: {
|
|
98
|
+
type: StringConstructor;
|
|
99
|
+
default: string;
|
|
100
|
+
};
|
|
101
|
+
about: {
|
|
102
|
+
type: StringConstructor;
|
|
103
|
+
default: string;
|
|
104
|
+
};
|
|
105
|
+
aboutLabel: {
|
|
106
|
+
type: StringConstructor;
|
|
107
|
+
default: string;
|
|
108
|
+
};
|
|
109
|
+
showMoreLabel: {
|
|
110
|
+
type: StringConstructor;
|
|
111
|
+
default: string;
|
|
112
|
+
};
|
|
113
|
+
showLessLabel: {
|
|
114
|
+
type: StringConstructor;
|
|
115
|
+
default: string;
|
|
116
|
+
};
|
|
117
|
+
fields: {
|
|
118
|
+
type: PropType<DsProfileField[]>;
|
|
119
|
+
default: () => never[];
|
|
120
|
+
};
|
|
121
|
+
emptyLabel: {
|
|
122
|
+
type: StringConstructor;
|
|
123
|
+
default: string;
|
|
124
|
+
};
|
|
125
|
+
}>> & Readonly<{}>, {
|
|
126
|
+
name: string;
|
|
127
|
+
emptyLabel: string;
|
|
128
|
+
logo: string;
|
|
129
|
+
websiteUrl: string;
|
|
130
|
+
websiteLabel: string;
|
|
131
|
+
linkedinUrl: string;
|
|
132
|
+
linkedinLabel: string;
|
|
133
|
+
industry: string;
|
|
134
|
+
employees: string;
|
|
135
|
+
about: string;
|
|
136
|
+
aboutLabel: string;
|
|
137
|
+
showMoreLabel: string;
|
|
138
|
+
showLessLabel: string;
|
|
139
|
+
fields: DsProfileField[];
|
|
140
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
141
|
+
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
declare var __VLS_1: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
actions?: (props: typeof __VLS_1) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
6
|
+
label: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
11
|
+
label: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
16
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
19
|
+
new (): {
|
|
20
|
+
$slots: S;
|
|
21
|
+
};
|
|
22
|
+
};
|
package/llms-full.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @salesql/sql_components_vue3 — SalesQL Design System (v3.
|
|
1
|
+
# @salesql/sql_components_vue3 — SalesQL Design System (v3.7.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
|
|
|
@@ -37,16 +37,19 @@ 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 (
|
|
40
|
+
## Components (46)
|
|
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
|
|
44
|
+
- **DsProfileCompanyCard** (Company) — The company card of the full-profile drawer, always shown (before and after reveal) — the
|
|
44
45
|
- **DsAddToSequence** (Contact data) — The canonical "Add to sequence" control: a trigger and a panel with the **SEND TO** choice
|
|
45
46
|
- **DsContactCell** (Contact data) — The typed contact-data cell of the contract (§3.5): the group's **primary** value, the `A+`
|
|
46
47
|
- **DsContactList** (Contact data) — The rows of **one** contact-data group — a popover variant (Work emails, Direct emails,
|
|
48
|
+
- **DsContactPlaceholder** (Contact data) — The row a contact-data group shows when it has no rows to show — the non-data rows of the
|
|
47
49
|
- **DsDeliverabilityBadge** (Contact data) — The contract's **single** verification badge (§3.3, «modelo Lusha»): a bare green `A+`
|
|
48
50
|
- **DsMaskedValue** (Contact data) — An email or phone string rendered **verbatim**, with the contract's two-tone treatment when
|
|
49
51
|
- **DsMoreCountChip** (Contact data) — The `+N` overflow chip of a contact-data cell (contract §3.5): always a circular chip,
|
|
52
|
+
- **DsProfileGroupBar** (Contact data) — The band that names one contact-data type inside a profile card — «Work email», «Direct
|
|
50
53
|
- **DsSavedButton** (Contact data) — **The** one canonical "Saved" control (Ari: identical everywhere — rows, drawers, bulk bars).
|
|
51
54
|
- **DsTagPicker** (Contact data) — The canonical "Tag" control («Tagged as X +N», Lusha style). Reads as a **Tag** button until
|
|
52
55
|
- **DsAvatar** (Core) — Contact/user avatar: an image, generated initials with a deterministic color hash, or an
|
|
@@ -62,6 +65,7 @@ Components size their own glyphs (their scoped rules outrank the 20px default),
|
|
|
62
65
|
- **DsPaginator** (Data) — Page-window pagination control: prev/next chevrons, numbered page buttons that collapse
|
|
63
66
|
- **DsPill** (Data) — Small solid capsule with white text and a free-form background color (e.g. a dynamic
|
|
64
67
|
- **DsPillWithBorder** (Data) — Bordered pill/chip rendered as a real `<button>`, with an optional leading icon slot and
|
|
68
|
+
- **DsProfileCard** (Data) — One card of the full-profile drawer — the design export's `ProfileCard`
|
|
65
69
|
- **DsRow** (Data) — A `<tr>` row for the `DsTable` compound API, with hover and selected treatment;
|
|
66
70
|
- **DsSegmentedProgressBar** (Data) — Horizontal, multi-segment data-viz track (e.g. a verification-quality breakdown), with an
|
|
67
71
|
- **DsTable** (Data) — Data-dense table with two composition modes: **declarative** (`columns` + `rows`, with
|
|
@@ -154,6 +158,76 @@ The image is decorative (`alt=""`): the company name is always rendered next to
|
|
|
154
158
|
|
|
155
159
|
---
|
|
156
160
|
|
|
161
|
+
<!-- DsProfileCompanyCard · Company -->
|
|
162
|
+
|
|
163
|
+
## DsProfileCompanyCard
|
|
164
|
+
|
|
165
|
+
The company card of the full-profile drawer, always shown (before and after reveal) — the
|
|
166
|
+
design export's `ProfileCompanyCard` (`fullprofile/_bundle.jsx`), SALESQL-3298. A
|
|
167
|
+
`DsProfileCard` titled by the app («Company») with:
|
|
168
|
+
|
|
169
|
+
- **Header:** `DsCompanyLogo` (36px), the name, «industry · employees» under it (whichever
|
|
170
|
+
arrive; no loose separator), a globe link to the website (with a tooltip) and LinkedIn's
|
|
171
|
+
"in" badge.
|
|
172
|
+
- **About:** the description clamped to three lines, with a «Show more» / «Show less» toggle.
|
|
173
|
+
- **Fields:** one label / value row per field, in the order received — the export's
|
|
174
|
+
Headquarters, **HQ phone**, **Founded**, Website. A field with an empty value is **not
|
|
175
|
+
rendered**; one with `href` is a link in the accent ink.
|
|
176
|
+
- **No company** (`name` empty): the card shows `emptyLabel` with a building glyph.
|
|
177
|
+
|
|
178
|
+
**Not `DsCompanyCard`.** That one is the popover the prospector opens from its company cell
|
|
179
|
+
(the export's `CompanyDetails`): a glyph per row and the value under the label.
|
|
180
|
+
|
|
181
|
+
**HQ phone lives here**, as a company attribute — never as a row of the Contact data card
|
|
182
|
+
(contract §3.1).
|
|
183
|
+
|
|
184
|
+
### Props
|
|
185
|
+
|
|
186
|
+
| Prop | Type | Default | Description |
|
|
187
|
+
| --------------- | ------------------ | ------- | ----------------------------------------- |
|
|
188
|
+
| `title` | `string` | — | The card's name («Company») (required). |
|
|
189
|
+
| `name` | `string` | `''` | Company name. Empty → the empty state. |
|
|
190
|
+
| `logo` | `string` | `''` | Logo URL; empty or failing → the initial. |
|
|
191
|
+
| `industry` | `string` | `''` | First half of the line under the name. |
|
|
192
|
+
| `employees` | `string` | `''` | Second half, joined with « · ». |
|
|
193
|
+
| `websiteUrl` | `string` | `''` | Header globe link. Empty → no globe. |
|
|
194
|
+
| `websiteLabel` | `string` | `''` | Globe tooltip + accessible name. |
|
|
195
|
+
| `linkedinUrl` | `string` | `''` | Header LinkedIn badge. Empty → no badge. |
|
|
196
|
+
| `linkedinLabel` | `string` | `''` | Badge accessible name. |
|
|
197
|
+
| `about` | `string` | `''` | Description. Empty → no About block. |
|
|
198
|
+
| `aboutLabel` | `string` | `''` | The About block's label. |
|
|
199
|
+
| `showMoreLabel` | `string` | `''` | Toggle text while clamped. |
|
|
200
|
+
| `showLessLabel` | `string` | `''` | Toggle text while expanded. |
|
|
201
|
+
| `fields` | `DsProfileField[]` | `[]` | `{ id, label, value, href? }` per row. |
|
|
202
|
+
| `emptyLabel` | `string` | `''` | Shown when there is no company. |
|
|
203
|
+
|
|
204
|
+
### Accessibility
|
|
205
|
+
|
|
206
|
+
- The About toggle is a `<button>` with `aria-expanded` / `aria-controls`.
|
|
207
|
+
- Links open in a new tab with `rel="noopener noreferrer"`; the globe and the badge carry
|
|
208
|
+
their accessible names.
|
|
209
|
+
|
|
210
|
+
### Design parity (export `ProfileCompanyCard` / `ProfileKvRow`)
|
|
211
|
+
|
|
212
|
+
- Header: gap 10, `padding-bottom` 10 only when something follows; logo 36 with the card
|
|
213
|
+
radius 6 and a 13px initial; name 14px / 700 in ink `#1f2933`; line under it 12px grey;
|
|
214
|
+
globe 18px grey; "in" 22 × 22, radius 4, 11px / 800.
|
|
215
|
+
- About: rule above, `8px 0`; label 10.5px / 700 / .5px uppercase grey; toggle 12px / 600
|
|
216
|
+
accent; text 13px / 1.5 slate, clamped to 3 lines.
|
|
217
|
+
- Fields: `7px 0`, gap 12, rule above (not on the first when there is no About); label 92px
|
|
218
|
+
wide, 10.5px / 700 / .5px uppercase grey; value 13.5px / 600 / 1.45 slate.
|
|
219
|
+
|
|
220
|
+
Off-scale values (10.5px, 13.5px, 1.45) follow the export (Diego, 2026-09-23).
|
|
221
|
+
|
|
222
|
+
**Logged deltas:**
|
|
223
|
+
|
|
224
|
+
- The export's globe is a hover-only span; here it is a real link to the website, as in
|
|
225
|
+
`DsCompanyCard`.
|
|
226
|
+
- Inherited from `DsCompanyLogo`: the initial's ink is `slate-soft` (`#5e666f`, the DS value
|
|
227
|
+
since SALESQL-3394), not the export's grey `#888f97` — the same as `DsCompanyCard`'s.
|
|
228
|
+
|
|
229
|
+
---
|
|
230
|
+
|
|
157
231
|
<!-- DsAddToSequence · Contact data -->
|
|
158
232
|
|
|
159
233
|
## DsAddToSequence
|
|
@@ -381,14 +455,56 @@ for the mapping from the app's view model.
|
|
|
381
455
|
### Design parity (export `PopItem` / `DataPopover`)
|
|
382
456
|
|
|
383
457
|
- Row `7px 12px`, 1px tint divider, 16px type glyph, value 13px in `$contact-data-value-ink`
|
|
384
|
-
at `$contact-data-value-weight`
|
|
385
|
-
|
|
386
|
-
`$contact-data-header-ink` → `small` (13px).
|
|
458
|
+
at `$contact-data-value-weight` — the export's 600 / `#1F2933` since contract v3.3
|
|
459
|
+
(SALESQL-3548 c.31111; through v3.2 the contract's 700 / `#414C58` overruled it). Header
|
|
460
|
+
12.5px/600 in `$contact-data-header-ink` → `small` (13px).
|
|
387
461
|
- **Logged deltas:** row hover `#FCFCFD` → `$contact-data-row-hover` (`#F9F9F9`, the only
|
|
388
462
|
frozen hover); action glyph 15px → `icon-size(16)`; header 12.5px → 13px.
|
|
389
463
|
|
|
390
464
|
---
|
|
391
465
|
|
|
466
|
+
<!-- DsContactPlaceholder · Contact data -->
|
|
467
|
+
|
|
468
|
+
## DsContactPlaceholder
|
|
469
|
+
|
|
470
|
+
The row a contact-data group shows when it has no rows to show — the non-data rows of the
|
|
471
|
+
design export's `ProfileContactDataCard` (`fullprofile/_bundle.jsx`), SALESQL-3298:
|
|
472
|
+
|
|
473
|
+
- **`skeleton`** (default) — the value is not known yet: the kind's glyph and a grey bar
|
|
474
|
+
where the value will be. The label, if any, is read to screen readers only.
|
|
475
|
+
- **`empty`** — looked for, none found: the glyph and the label («No emails found»).
|
|
476
|
+
- **`loading`** — being revealed: a spinning glyph and the label («Revealing…»), announced
|
|
477
|
+
as a status.
|
|
478
|
+
|
|
479
|
+
Inside a profile card it goes under the type's `DsProfileGroupBar` (skeleton, empty) or in
|
|
480
|
+
place of the whole block (loading). See `DsProfileCard`.
|
|
481
|
+
|
|
482
|
+
### Props
|
|
483
|
+
|
|
484
|
+
| Prop | Type | Default | Description |
|
|
485
|
+
| ------- | ------------------------------------ | ------------ | -------------------------------------------------------------- |
|
|
486
|
+
| `kind` | `'email' \| 'phone'` | — | Picks the glyph: `mail` / `call` (required). |
|
|
487
|
+
| `state` | `'skeleton' \| 'empty' \| 'loading'` | `'skeleton'` | See above (`DS_CONTACT_PLACEHOLDER_STATES`). |
|
|
488
|
+
| `label` | `string` | `''` | Text of `empty` / `loading`; screen-reader-only on a skeleton. |
|
|
489
|
+
|
|
490
|
+
### Accessibility
|
|
491
|
+
|
|
492
|
+
- `loading` is `role="status"`; the other two do not interrupt the reader.
|
|
493
|
+
- Glyphs and the skeleton bar are `aria-hidden`.
|
|
494
|
+
|
|
495
|
+
### Design parity (export `ProfileContactDataCard`)
|
|
496
|
+
|
|
497
|
+
- Skeleton: `9px 14px`, gap 9, glyph 16px muted `#b6bbc0`, bar up to 130 × 9, radius 4,
|
|
498
|
+
`slate-tint`.
|
|
499
|
+
- Empty: `10px 14px`, gap 9, 13px / 600 grey `#888f97`.
|
|
500
|
+
- Loading: `10px 14px`, gap 8, rule above, `autorenew` 14px accent spinning 1s linear (still
|
|
501
|
+
under reduced motion), 12.5px / 600 grey — 12.5 off the DS scale, as the export.
|
|
502
|
+
|
|
503
|
+
**Logged delta:** first in its card, the loading row drops its top rule (the card header
|
|
504
|
+
already rules that edge), as `DsProfileGroupBar` does.
|
|
505
|
+
|
|
506
|
+
---
|
|
507
|
+
|
|
392
508
|
<!-- DsDeliverabilityBadge · Contact data -->
|
|
393
509
|
|
|
394
510
|
## DsDeliverabilityBadge
|
|
@@ -504,6 +620,51 @@ Only inside `DsContactCell` / `DsContactList` compositions. It is not a generic
|
|
|
504
620
|
|
|
505
621
|
---
|
|
506
622
|
|
|
623
|
+
<!-- DsProfileGroupBar · Contact data -->
|
|
624
|
+
|
|
625
|
+
## DsProfileGroupBar
|
|
626
|
+
|
|
627
|
+
The band that names one contact-data type inside a profile card — «Work email», «Direct
|
|
628
|
+
email», «Mobile» — with room on the right for an action. The design export's
|
|
629
|
+
`ProfileGroupBar` (`fullprofile/_bundle.jsx`), SALESQL-3298.
|
|
630
|
+
|
|
631
|
+
The rows under it are a `DsContactList` with the band's `type` (the row glyph) and no `title`
|
|
632
|
+
(the band already names the type), or a `DsContactPlaceholder` when the type has no rows. See
|
|
633
|
+
`DsProfileCard` for the composed Contact data card.
|
|
634
|
+
|
|
635
|
+
**Not the popover band.** `DsContactList`'s unified variants draw their own band, with the
|
|
636
|
+
count («WORK (2)»); the profile band shows the name alone, as the export does.
|
|
637
|
+
|
|
638
|
+
### Props
|
|
639
|
+
|
|
640
|
+
| Prop | Type | Default | Description |
|
|
641
|
+
| ------- | -------- | ------- | ------------------------------------------------------------- |
|
|
642
|
+
| `label` | `string` | — | The type's name, translated by the app; uppercase (required). |
|
|
643
|
+
|
|
644
|
+
### Slots
|
|
645
|
+
|
|
646
|
+
| Slot | Where | Use |
|
|
647
|
+
| --------- | --------- | --------------------------------------------------------- |
|
|
648
|
+
| `actions` | The right | The type's action (the export's «Show emails» in Fase 1). |
|
|
649
|
+
|
|
650
|
+
### Design parity (export `ProfileGroupBar`)
|
|
651
|
+
|
|
652
|
+
`5px 14px`, gap 6, **36px tall** (measured: the export's `minHeight: 24` is content-box, plus
|
|
653
|
+
padding and rules); label 10px / 700 / .7px uppercase in grey `#888f97`; 1px `slate-tint`
|
|
654
|
+
rules above and below.
|
|
655
|
+
|
|
656
|
+
**Logged deltas:**
|
|
657
|
+
|
|
658
|
+
- Background: the export's `grey1` (`#fafafb`) has no token; the nearest is the contract's
|
|
659
|
+
row hover (`#f9f9f9`, one step per channel). The contact-data surface (`#f6f6f6`, what
|
|
660
|
+
`DsContactList`'s popover band takes) was measured and rejected: it is the drawer's own
|
|
661
|
+
panel colour, so the band merged with it and the card read as loose boxes. `#f9f9f9` stays,
|
|
662
|
+
with no new token (Diego, 2026-09-25).
|
|
663
|
+
- First in its card, the band drops its top rule: the card header already rules that edge
|
|
664
|
+
(the export draws both, a 2px line). Same rule as `DsContactList`'s first row.
|
|
665
|
+
|
|
666
|
+
---
|
|
667
|
+
|
|
507
668
|
<!-- DsSavedButton · Contact data -->
|
|
508
669
|
|
|
509
670
|
## DsSavedButton
|
|
@@ -1184,6 +1345,73 @@ variant/size). Content comes from the default slot (label) and the optional `#ic
|
|
|
1184
1345
|
|
|
1185
1346
|
---
|
|
1186
1347
|
|
|
1348
|
+
<!-- DsProfileCard · Data -->
|
|
1349
|
+
|
|
1350
|
+
## DsProfileCard
|
|
1351
|
+
|
|
1352
|
+
One card of the full-profile drawer — the design export's `ProfileCard`
|
|
1353
|
+
(`fullprofile/_bundle.jsx`), SALESQL-3298: a glyph, the card's name in uppercase, an optional
|
|
1354
|
+
count, actions on the right and, when collapsible, a caret. The body is the default slot.
|
|
1355
|
+
|
|
1356
|
+
It is the chrome every section of the profile shares. The **Contact data** card is composed
|
|
1357
|
+
by the app, one block per contact-data type:
|
|
1358
|
+
|
|
1359
|
+
```vue
|
|
1360
|
+
<DsProfileCard icon="contact_page" :title="t('Contact data')" :count="total" :padded="false">
|
|
1361
|
+
<template v-for="group in groups" :key="group.type">
|
|
1362
|
+
<DsProfileGroupBar :label="group.label" />
|
|
1363
|
+
<DsContactList v-if="group.items.length" :items="group.items" :kind="group.kind"
|
|
1364
|
+
:type="group.type" show-rate :badge-label="A_PLUS_BADGE" :badge-tooltip="A_PLUS_TOOLTIP" />
|
|
1365
|
+
<DsContactPlaceholder v-else :kind="group.kind" :state="group.state" :label="group.stateLabel" />
|
|
1366
|
+
</template>
|
|
1367
|
+
</DsProfileCard>
|
|
1368
|
+
```
|
|
1369
|
+
|
|
1370
|
+
The rows are `DsContactList` **with the band's `type` and no `title`**: the band names the type
|
|
1371
|
+
and each row still carries its glyph — the export's `PopItem` draws `TypeIcon` whatever its
|
|
1372
|
+
`showType` (measured: `business_center` on a Work row). **HQ is not a row of this card** — it
|
|
1373
|
+
is a field of `DsProfileCompanyCard` (contract §3.1).
|
|
1374
|
+
|
|
1375
|
+
### Props
|
|
1376
|
+
|
|
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. |
|
|
1385
|
+
|
|
1386
|
+
### Events
|
|
1387
|
+
|
|
1388
|
+
| Event | Payload | When |
|
|
1389
|
+
| ------------- | --------- | ----------------------------------- |
|
|
1390
|
+
| `update:open` | `boolean` | The collapsible header was toggled. |
|
|
1391
|
+
|
|
1392
|
+
### Slots
|
|
1393
|
+
|
|
1394
|
+
| Slot | Where | Use |
|
|
1395
|
+
| --------- | ------------------------ | ------------------------------------------------- |
|
|
1396
|
+
| `default` | The body | Rows, text or another component. Empty → no body. |
|
|
1397
|
+
| `actions` | Right side of the header | The card's own action (an Edit, a Show). |
|
|
1398
|
+
|
|
1399
|
+
### Accessibility
|
|
1400
|
+
|
|
1401
|
+
- The card is a `<section>` named by its title (`aria-labelledby`).
|
|
1402
|
+
- Collapsible: the heading is a real `<button>` with `aria-expanded` / `aria-controls`; the
|
|
1403
|
+
actions sit **outside** it (a control inside a button is invalid markup), after the caret.
|
|
1404
|
+
The export never combines the two: its collapsible cards have no actions.
|
|
1405
|
+
|
|
1406
|
+
### Design parity (export `ProfileCard`)
|
|
1407
|
+
|
|
1408
|
+
Ring 1px `slate-tint`, radius 6, white; header `10px 14px`, gap 8; glyph 17px and title
|
|
1409
|
+
11px / 700 / .6px uppercase in the label ink `#5c6670`; count 11px / 700 in the muted ink
|
|
1410
|
+
`#b6bbc0`; caret 17px grey. Off-scale values (11px, 17px) follow the export, as DsCompanyCard's
|
|
1411
|
+
(Diego, 2026-09-23). No deltas.
|
|
1412
|
+
|
|
1413
|
+
---
|
|
1414
|
+
|
|
1187
1415
|
<!-- DsRow · Data -->
|
|
1188
1416
|
|
|
1189
1417
|
## DsRow
|
|
@@ -2108,6 +2336,17 @@ The bare sides keep their 3.1.0 meaning (centred), so this is purely additive.
|
|
|
2108
2336
|
> suffixed form — it reads only the side — so adopting it there later is a type change,
|
|
2109
2337
|
> not a rewrite.
|
|
2110
2338
|
|
|
2339
|
+
#### Flip (SALESQL-4056)
|
|
2340
|
+
|
|
2341
|
+
`placement` is a PREFERRED side, not a final one: on the table's last rows the company card
|
|
2342
|
+
doesn't fit below its trigger, and the viewport's bottom edge cut it. The panel now flips to
|
|
2343
|
+
the OPPOSITE side when the preferred one doesn't fit but the other has more room — Element
|
|
2344
|
+
Plus / floating-ui's `flip`, done in the same pure-CSS custom-property mechanism as the
|
|
2345
|
+
cross-axis clamp, no `floating-ui` dependency added. Always on (no opt-in prop), and
|
|
2346
|
+
re-evaluated live on open, scroll and resize — see the **Flip near the bottom edge**
|
|
2347
|
+
variant. `over-start` / `over-end` never flip: they cover the trigger, there is no opposite
|
|
2348
|
+
side. `DsTooltip` is unchanged — it never flips.
|
|
2349
|
+
|
|
2111
2350
|
### Teleported
|
|
2112
2351
|
|
|
2113
2352
|
By default the panel is absolutely positioned **inside** the popover's root, so any
|
package/llms.txt
CHANGED
|
@@ -6,12 +6,15 @@
|
|
|
6
6
|
|
|
7
7
|
- DsCompanyCard (Company): The card the prospector opens from its company cell — the design export's `CompanyDetails`
|
|
8
8
|
- DsCompanyLogo (Company): A company's logo in the DS hairline box: white, 1px `slate-tint` ring, 4px radius, the image
|
|
9
|
+
- DsProfileCompanyCard (Company): The company card of the full-profile drawer, always shown (before and after reveal) — the
|
|
9
10
|
- DsAddToSequence (Contact data): The canonical "Add to sequence" control: a trigger and a panel with the **SEND TO** choice
|
|
10
11
|
- DsContactCell (Contact data): The typed contact-data cell of the contract (§3.5): the group's **primary** value, the `A+`
|
|
11
12
|
- DsContactList (Contact data): The rows of **one** contact-data group — a popover variant (Work emails, Direct emails,
|
|
13
|
+
- DsContactPlaceholder (Contact data): The row a contact-data group shows when it has no rows to show — the non-data rows of the
|
|
12
14
|
- DsDeliverabilityBadge (Contact data): The contract's **single** verification badge (§3.3, «modelo Lusha»): a bare green `A+`
|
|
13
15
|
- DsMaskedValue (Contact data): An email or phone string rendered **verbatim**, with the contract's two-tone treatment when
|
|
14
16
|
- DsMoreCountChip (Contact data): The `+N` overflow chip of a contact-data cell (contract §3.5): always a circular chip,
|
|
17
|
+
- DsProfileGroupBar (Contact data): The band that names one contact-data type inside a profile card — «Work email», «Direct
|
|
15
18
|
- DsSavedButton (Contact data): **The** one canonical "Saved" control (Ari: identical everywhere — rows, drawers, bulk bars).
|
|
16
19
|
- DsTagPicker (Contact data): The canonical "Tag" control («Tagged as X +N», Lusha style). Reads as a **Tag** button until
|
|
17
20
|
- DsAvatar (Core): Contact/user avatar: an image, generated initials with a deterministic color hash, or an
|
|
@@ -27,6 +30,7 @@
|
|
|
27
30
|
- DsPaginator (Data): Page-window pagination control: prev/next chevrons, numbered page buttons that collapse
|
|
28
31
|
- DsPill (Data): Small solid capsule with white text and a free-form background color (e.g. a dynamic
|
|
29
32
|
- DsPillWithBorder (Data): Bordered pill/chip rendered as a real `<button>`, with an optional leading icon slot and
|
|
33
|
+
- DsProfileCard (Data): One card of the full-profile drawer — the design export's `ProfileCard`
|
|
30
34
|
- DsRow (Data): A `<tr>` row for the `DsTable` compound API, with hover and selected treatment;
|
|
31
35
|
- DsSegmentedProgressBar (Data): Horizontal, multi-segment data-viz track (e.g. a verification-quality breakdown), with an
|
|
32
36
|
- DsTable (Data): Data-dense table with two composition modes: **declarative** (`columns` + `rows`, with
|