@salesql/sql_components_vue3 3.36.0 → 4.0.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/dist/composables/useFocusHandoff.d.ts +11 -0
- package/dist/constants/events.d.ts +4 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +9 -3
- package/dist/index.es.js +5289 -4691
- package/dist/index.es.js.map +1 -1
- package/dist/sql_components_vue3.css +1 -1
- package/dist/ui/DsButton/DsButton.vue.d.ts +3 -0
- package/dist/ui/DsContactList/DsContactList.types.d.ts +2 -0
- package/dist/ui/DsContactList/DsContactList.vue.d.ts +9 -0
- package/dist/ui/DsHighlightText/DsHighlightText.types.d.ts +10 -0
- package/dist/ui/DsHighlightText/DsHighlightText.vue.d.ts +23 -0
- package/dist/ui/DsHighlightText/index.d.ts +3 -0
- package/dist/ui/DsHighlightText/splitHighlights.d.ts +6 -0
- package/dist/ui/DsInput/DsInput.vue.d.ts +1 -1
- package/dist/ui/DsListSkeleton/DsListSkeleton.types.d.ts +10 -0
- package/dist/ui/DsListSkeleton/DsListSkeleton.vue.d.ts +23 -0
- package/dist/ui/DsListSkeleton/index.d.ts +2 -0
- package/dist/ui/DsOrganizerForm/DsOrganizerForm.vue.d.ts +1 -1
- package/dist/ui/DsProfileActionBar/DsProfileActionBar.defaults.d.ts +2 -0
- package/dist/ui/DsProfileActionBar/DsProfileActionBar.types.d.ts +35 -4
- package/dist/ui/DsProfileActionBar/DsProfileActionBar.vue.d.ts +63 -3
- package/dist/ui/DsProfileContactDataCard/DsProfileContactDataCard.types.d.ts +23 -1
- package/dist/ui/DsProfileContactDataCard/DsProfileContactDataCard.vue.d.ts +19 -8
- package/dist/ui/DsProfileGroupBar/DsProfileGroupBar.types.d.ts +12 -0
- package/dist/ui/DsProfileGroupBar/DsProfileGroupBar.vue.d.ts +61 -2
- package/dist/ui/DsProfileHero/DsProfileHero.types.d.ts +14 -8
- package/dist/ui/DsProfileHero/DsProfileHero.vue.d.ts +49 -3
- package/dist/ui/DsProfileLockedCard/DsProfileLockedCard.types.d.ts +5 -0
- package/dist/ui/DsProfileLockedCard/DsProfileLockedCard.vue.d.ts +20 -0
- package/dist/ui/DsProfileRichSections/DsProfileRichSections.types.d.ts +11 -0
- package/dist/ui/DsProfileRichSections/DsProfileRichSections.vue.d.ts +46 -0
- package/dist/ui/DsProfileSkeleton/DsProfileSkeleton.types.d.ts +6 -0
- package/dist/ui/DsProfileSkeleton/DsProfileSkeleton.vue.d.ts +24 -0
- package/dist/ui/DsProfileSkeleton/index.d.ts +2 -0
- package/dist/ui/DsSavedButton/DsSavedButton.vue.d.ts +1 -1
- package/dist/ui/DsTable/DsTable.vue.d.ts +2 -2
- package/dist/ui/DsTagPicker/DsTagPicker.vue.d.ts +1 -1
- package/dist/ui/DsTextarea/DsTextarea.vue.d.ts +2 -2
- package/llms-full.txt +328 -107
- package/llms.txt +3 -0
- package/package.json +1 -1
package/llms-full.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @salesql/sql_components_vue3 — SalesQL Design System (
|
|
1
|
+
# @salesql/sql_components_vue3 — SalesQL Design System (v4.0.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 (
|
|
51
|
+
## Components (93)
|
|
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
|
|
@@ -97,6 +97,7 @@ Browsers ignore `@font-face` declared inside a shadow root: register the fonts o
|
|
|
97
97
|
- **DsCreditsNotice** (Extension panel) — A short `role="status"` notice inside the credits popover.
|
|
98
98
|
- **DsCreditsPopover** (Extension panel) — The credits chip of the side panel header and the popover it opens. Goes in `DsPanelHeader`'s
|
|
99
99
|
- **DsCreditsSummary** (Extension panel) — The credits block shared by `DsAccountMenu` (row) and `DsCreditsPopover` (`prominent`).
|
|
100
|
+
- **DsListSkeleton** (Extension panel) — The panel's contact list while it reads SalesQL. A selection bar (checkbox and «Select all»),
|
|
100
101
|
- **DsPanelFrame** (Extension panel) — The floating card that holds the extension's panel: a white column with a hairline border, a
|
|
101
102
|
- **DsPanelHeader** (Extension panel) — The top bar of the extension's **side panel**: the SalesQL imagotype on the left and, on the
|
|
102
103
|
- **DsPanelLauncher** (Extension panel) — The minimized panel: a round white button with the SalesQL isotype that brings the panel back.
|
|
@@ -130,8 +131,10 @@ Browsers ignore `@font-face` declared inside a shadow root: register the fonts o
|
|
|
130
131
|
- **DsProfileKvRow** (Profile) — One label / value row of the full-profile drawer — the design export's `ProfileKvRow`
|
|
131
132
|
- **DsProfileLockedCard** (Profile) — The "locked" stub shown instead of Metadata / About / Experience / Education before a
|
|
132
133
|
- **DsProfileRichSections** (Profile) — The sections of a full profile that come from the person's own record: **Details**
|
|
134
|
+
- **DsProfileSkeleton** (Profile) — The full profile while the panel reads SalesQL, in place of a spinner. Grey `DsSkeleton` blocks
|
|
133
135
|
- **DsProfileTimelineRow** (Profile) — One entry of an Experience / Education list — the design export's `ProfileTimelineRow`
|
|
134
136
|
- **DsUpgradeNotice** (Profile) — The box that tells the user what their plan does not allow and links to the upgrade: «To
|
|
137
|
+
- **DsHighlightText** (Text) — A text with every occurrence of some terms wrapped in `<mark>`: the terms a search
|
|
135
138
|
- **DsColumnList** (Toolbar) — The body of a table's «Columns» popover: one checkbox row per column in **table order, hidden ones
|
|
136
139
|
- **DsFilterChip** (Toolbar) — A filter of the contact list toolbar (Folder, Tags, Added, Added by). Idle it is a 40px button with a grey caret that opens a menu;…
|
|
137
140
|
- **DsMenuBackRow** (Toolbar) — The «‹ Label» header of a drilled-in menu view (the Filters popover): a button that goes back to the list it came from. **Presentational**:…
|
|
@@ -226,8 +229,8 @@ design export's `ProfileCompanyCard` (`fullprofile/_bundle.jsx`), SALESQL-3298.
|
|
|
226
229
|
"in" badge.
|
|
227
230
|
- **About:** the description clamped to three lines, with a «Show more» / «Show less» toggle
|
|
228
231
|
that appears only when the text is actually cut (`DsClampedText`).
|
|
229
|
-
- **Fields:** one label / value row per field, in the order received — the
|
|
230
|
-
Headquarters, **HQ phone**, **Founded**, Website. A field with an empty value is **not
|
|
232
|
+
- **Fields:** one label / value row per field, in the order received — the drawer's
|
|
233
|
+
Headquarters, **HQ phone**, **Founded**, **Type**, Website. A field with an empty value is **not
|
|
231
234
|
rendered**; one with `href` is a link in the accent ink.
|
|
232
235
|
- **No company** (`name` empty): the card shows `emptyLabel` with a building glyph.
|
|
233
236
|
|
|
@@ -725,6 +728,7 @@ quiet uppercase band per type («WORK (2)»), its rows under it, and one total i
|
|
|
725
728
|
| `invalidTooltip` | `string` | `''` | The pill's meaning and accessible name. |
|
|
726
729
|
| `showRate` | `boolean` | `false` | Adds thumbs up / down to unmasked rows (except those with `rateable: false`). |
|
|
727
730
|
| `emptyLabel` | `string` | `''` | Shown when `items` is empty. Omit to render nothing. |
|
|
731
|
+
| `listLabelledby` | `string` | `''` | `id` of an outside label (a band) that names the `items` list (`aria-labelledby`). Sections name their own. |
|
|
728
732
|
| `copyLabel` | `string` | `'Copy'` | Accessible label / title of the copy button. |
|
|
729
733
|
| `copiedLabel` | `string` | `'Copied!'` | Shown for ~1.2 s after a copy. |
|
|
730
734
|
| `correctLabel` | `string` | `'Correct'` | Accessible label of thumbs-up. |
|
|
@@ -759,7 +763,7 @@ quiet uppercase band per type («WORK (2)»), its rows under it, and one total i
|
|
|
759
763
|
|
|
760
764
|
### Accessibility
|
|
761
765
|
|
|
762
|
-
- `role="list"` on the rows
|
|
766
|
+
- `role="list"` on the rows, named by the section label, or by `listLabelledby` for `items`; icon-only actions carry `aria-label` + `title`; rating buttons
|
|
763
767
|
expose `aria-pressed` from `item.rating`.
|
|
764
768
|
- The overlay is visible on `:hover` **and** `:focus-within`, so keyboard users reach copy /
|
|
765
769
|
rate too. The type glyph is `aria-hidden` (the header names the type).
|
|
@@ -1261,15 +1265,32 @@ count («WORK (2)»); the profile band shows the name alone, as the export does.
|
|
|
1261
1265
|
|
|
1262
1266
|
### Props
|
|
1263
1267
|
|
|
1264
|
-
| Prop
|
|
1265
|
-
|
|
|
1266
|
-
| `label`
|
|
1268
|
+
| Prop | Type | Default | Description |
|
|
1269
|
+
| --------------- | --------- | ------------ | --------------------------------------------------------------- |
|
|
1270
|
+
| `label` | `string` | — | The type's name, translated by the app; uppercase (required). |
|
|
1271
|
+
| `labelId` | `string` | `''` | `id` on the label, so the list under it can use it as its name. |
|
|
1272
|
+
| `actionLabel` | `string` | `''` | The band's button («Show emails»). Empty → no button. |
|
|
1273
|
+
| `actionTooltip` | `string` | `''` | Its cost («Show emails · 1 credit»). Empty → no tooltip. |
|
|
1274
|
+
| `actionIcon` | `string` | `visibility` | The button's glyph. |
|
|
1275
|
+
| `actionBusy` | `boolean` | `false` | Spinner, `aria-busy`; keeps focus, clicks ignored. |
|
|
1276
|
+
| `compact` | `boolean` | `false` | The unrevealed profile's 24px band (see below). |
|
|
1277
|
+
|
|
1278
|
+
The action is the design's phase-1 per-band reveal: a small primary `DsButton` with the glyph
|
|
1279
|
+
on the left, inside a tooltip (below, teleported). It only emits `action`. With `actionBusy`
|
|
1280
|
+
it shows DsButton's spinner and stays focusable (`focusableWhenDisabled`): `aria-busy` /
|
|
1281
|
+
`aria-disabled`, no native `disabled`, the tooltip off and a click ignored.
|
|
1282
|
+
|
|
1283
|
+
### Events
|
|
1284
|
+
|
|
1285
|
+
| Event | Payload | When |
|
|
1286
|
+
| -------- | ------- | ----------------------- |
|
|
1287
|
+
| `action` | — | The band's button used. |
|
|
1267
1288
|
|
|
1268
1289
|
### Slots
|
|
1269
1290
|
|
|
1270
|
-
| Slot | Where | Use
|
|
1271
|
-
| --------- | --------- |
|
|
1272
|
-
| `actions` | The right |
|
|
1291
|
+
| Slot | Where | Use |
|
|
1292
|
+
| --------- | --------- | ------------------------------------------------- |
|
|
1293
|
+
| `actions` | The right | Any other action; drawn before the `actionLabel`. |
|
|
1273
1294
|
|
|
1274
1295
|
### Design parity (export `ProfileGroupBar`)
|
|
1275
1296
|
|
|
@@ -1277,6 +1298,24 @@ count («WORK (2)»); the profile band shows the name alone, as the export does.
|
|
|
1277
1298
|
padding and rules); label 10px / 700 / .7px uppercase in grey `#888f97`; 1px `slate-tint`
|
|
1278
1299
|
rules above and below.
|
|
1279
1300
|
|
|
1301
|
+
**Compact** (`DsProfileContactDataCard` `banded`, the «Perfil sin revelar» board): 24px
|
|
1302
|
+
border-box (`control-height('small')`), as the board measures (24.5 with its rule). The label
|
|
1303
|
+
takes `$line-height-tight` (1.2 → a 12px line), so every band measures 24 exactly (12 + 2 × 5
|
|
1304
|
+
padding + 2 × 1 rule; `normal` gave 25), the skeleton's band height. A band with a button grows
|
|
1305
|
+
to the button's height. Every other consumer keeps the 36px band.
|
|
1306
|
+
|
|
1307
|
+
**AA colours — they differ from the design on purpose** (Diego, 2026-11-27):
|
|
1308
|
+
|
|
1309
|
+
- Compact only: label in `slate-soft` (`#5e666f`), 5.53:1 on the band (`#f9f9f9`). The
|
|
1310
|
+
design's `#888f97` is 3.11:1 there.
|
|
1311
|
+
- At any height: the built-in action fills `accent-shadow` (`#504fbf`) at rest and on hover:
|
|
1312
|
+
white on it is 6.54:1 (on `accent-main`, DsButton primary's rest, 4.14:1). No darker accent
|
|
1313
|
+
token exists, so hover keeps the fill. Keyboard focus keeps DsButton's 2px `accent-main` ring,
|
|
1314
|
+
3.93:1 on the band. Scoped to this button (`ds-profile-group-bar__action`): buttons passed in
|
|
1315
|
+
the `actions` slot and every other DsButton keep their colours.
|
|
1316
|
+
|
|
1317
|
+
The 36px band's label keeps the export's grey, as frontend-app draws it today.
|
|
1318
|
+
|
|
1280
1319
|
**Logged deltas:**
|
|
1281
1320
|
|
|
1282
1321
|
- Background: the export's `grey1` (`#fafafb`) has no token; the nearest is the contract's
|
|
@@ -1284,6 +1323,8 @@ rules above and below.
|
|
|
1284
1323
|
`DsContactList`'s popover band takes) was measured and rejected: it is the drawer's own
|
|
1285
1324
|
panel colour, so the band merged with it and the card read as loose boxes. `#f9f9f9` stays,
|
|
1286
1325
|
with no new token (Diego, 2026-09-25).
|
|
1326
|
+
- The action button is DsButton `small` (24px, 12px / 400). The design's is 11.5px / 700 with
|
|
1327
|
+
a 13px glyph: the DS button wins.
|
|
1287
1328
|
- First in its card, the band drops its top rule: the card header already rules that edge
|
|
1288
1329
|
(the export draws both, a 2px line). Same rule as `DsContactList`'s first row.
|
|
1289
1330
|
|
|
@@ -1793,22 +1834,23 @@ next.
|
|
|
1793
1834
|
|
|
1794
1835
|
### Props
|
|
1795
1836
|
|
|
1796
|
-
| Prop
|
|
1797
|
-
|
|
|
1798
|
-
| `variant`
|
|
1799
|
-
| `size`
|
|
1800
|
-
| `nativeType`
|
|
1801
|
-
| `leftIcon`
|
|
1802
|
-
| `rightIcon`
|
|
1803
|
-
| `ariaLabel`
|
|
1804
|
-
| `disabled`
|
|
1805
|
-
| `loading`
|
|
1806
|
-
| `circle`
|
|
1807
|
-
| `square`
|
|
1808
|
-
| `noPadding`
|
|
1809
|
-
| `block`
|
|
1810
|
-
| `selected`
|
|
1811
|
-
| `autofocus`
|
|
1837
|
+
| Prop | Type | Default | Description |
|
|
1838
|
+
| ----------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
1839
|
+
| `variant` | `'default' \| 'primary' \| 'secondary' \| 'tertiary' \| 'quaternary' \| 'quinary' \| 'senary' \| 'outline' \| 'ai' \| 'dotted' \| 'danger' \| 'warning'` | `'default'` | Visual style. `ai` is the primary-like action (pink → orange gradient) action of the AI features. `warning` is a legacy solid-red alias of `danger` — prefer `danger`. |
|
|
1840
|
+
| `size` | `'small' \| 'medium' \| 'large' \| 'xlarge'` | `'medium'` | Control height + padding. |
|
|
1841
|
+
| `nativeType` | `'button' \| 'submit' \| 'reset'` | `'button'` | Native `<button type>`. |
|
|
1842
|
+
| `leftIcon` | `string` | `''` | Material Icon name rendered before the label (or use the `#leading` slot). |
|
|
1843
|
+
| `rightIcon` | `string` | `''` | Material Icon name rendered after the label (or use the `#trailing` slot). |
|
|
1844
|
+
| `ariaLabel` | `string` | `''` | Accessible label — required for icon-only (`circle`/`square`) buttons. |
|
|
1845
|
+
| `disabled` | `boolean` | `false` | Disables the button and blocks `click`. |
|
|
1846
|
+
| `loading` | `boolean` | `false` | Shows a spinner overlay, natively disables the button, and blocks `click`. |
|
|
1847
|
+
| `circle` | `boolean` | `false` | Round icon-only button (width === height). |
|
|
1848
|
+
| `square` | `boolean` | `false` | Flat 4px-radius icon-only button (width === height). |
|
|
1849
|
+
| `noPadding` | `boolean` | `false` | Zero the square padding for a tight glyph (only takes effect with `square`). |
|
|
1850
|
+
| `block` | `boolean` | `false` | Full width of its container (the panel's «Show details» CTA). |
|
|
1851
|
+
| `selected` | `boolean` | `false` | Toggle state — accent outline + fill, sets `aria-pressed`. |
|
|
1852
|
+
| `autofocus` | `boolean` | `false` | Native `autofocus`. |
|
|
1853
|
+
| `focusableWhenDisabled` | `boolean` | `false` | `disabled` / `loading` set only `aria-disabled` (no native `disabled`), so the button keeps keyboard focus; `click` is still blocked. |
|
|
1812
1854
|
|
|
1813
1855
|
### Events
|
|
1814
1856
|
|
|
@@ -3149,6 +3191,27 @@ header and to the meter; meter-to-foot 7 → 8px.
|
|
|
3149
3191
|
|
|
3150
3192
|
---
|
|
3151
3193
|
|
|
3194
|
+
<!-- DsListSkeleton · Extension panel -->
|
|
3195
|
+
|
|
3196
|
+
## DsListSkeleton
|
|
3197
|
+
|
|
3198
|
+
The panel's contact list while it reads SalesQL. A selection bar (checkbox and «Select all»),
|
|
3199
|
+
then `rows` rows laid out like `DsContactRow`: checkbox, 40px photo, name and title (widths vary
|
|
3200
|
+
row to row), the medium «Show details», and the email / phone box of two
|
|
3201
|
+
`DsContactPlaceholder` skeleton rows.
|
|
3202
|
+
|
|
3203
|
+
One `DsSkeletonGroup`: announced once, as a status with `label`; every block is decorative.
|
|
3204
|
+
Ported from the extension's hand-made `ListSkeleton` (SALESQL-4681), now on DS tokens only.
|
|
3205
|
+
|
|
3206
|
+
### Props
|
|
3207
|
+
|
|
3208
|
+
| Prop | Type | Default | Description |
|
|
3209
|
+
| ------- | -------- | ------- | ------------------------------------------------------------------------------------------- |
|
|
3210
|
+
| `label` | `string` | `''` | What is loading, for screen readers. |
|
|
3211
|
+
| `rows` | `number` | `6` | Rows to draw: floored, 0 to `DS_LIST_SKELETON_MAX_ROWS` (50). NaN and ±Infinity draw the 6. |
|
|
3212
|
+
|
|
3213
|
+
---
|
|
3214
|
+
|
|
3152
3215
|
<!-- DsPanelFrame · Extension panel -->
|
|
3153
3216
|
|
|
3154
3217
|
## DsPanelFrame
|
|
@@ -4772,24 +4835,52 @@ The action area of a full profile — the design export's `ActionBar`.
|
|
|
4772
4835
|
|
|
4773
4836
|
The default slot is only rendered once `revealed`: before it, the app's actions do not exist.
|
|
4774
4837
|
|
|
4838
|
+
### Phase 1 (`phase="phase-1"`)
|
|
4839
|
+
|
|
4840
|
+
Per-kind reveal, from the design's «Perfil sin revelar» board. Two rows, 10px apart:
|
|
4841
|
+
|
|
4842
|
+
1. **Reveal row** — «Show details» (stretches) plus a square accent button per kind still
|
|
4843
|
+
masked: `mail` («Show emails») and `call` («Show phones»). Each has its cost in its own
|
|
4844
|
+
tooltip (below, teleported). A kind's button leaves once `emailsRevealed` /
|
|
4845
|
+
`phonesRevealed`; the whole row leaves once both are (or `revealed`). While `revealing`
|
|
4846
|
+
(everything) the squares hide; while `revealingEmails` / `revealingPhones` only that
|
|
4847
|
+
square shows the spinner and ignores clicks.
|
|
4848
|
+
2. **Save row** — until `saved`, a full-width outline «Save ▾» that emits `save` (saving is
|
|
4849
|
+
free), even once everything is revealed; once `saved`, the default slot's row.
|
|
4850
|
+
|
|
4851
|
+
Every button is the DS large height (36px), set in one place in the component (`ACTION_SIZE`).
|
|
4852
|
+
The design draws them at 40px, off the DS scale.
|
|
4853
|
+
|
|
4775
4854
|
### Props
|
|
4776
4855
|
|
|
4777
|
-
| Prop
|
|
4778
|
-
|
|
|
4779
|
-
| `
|
|
4780
|
-
| `
|
|
4781
|
-
| `
|
|
4856
|
+
| Prop | Type | Default | Description |
|
|
4857
|
+
| ----------------- | --------------------------------- | ----------- | ---------------------------------------------- |
|
|
4858
|
+
| `phase` | `'phase-0' \| 'phase-1'` | `'phase-0'` | Reveal model (`DS_PROFILE_ACTION_BAR_PHASES`). |
|
|
4859
|
+
| `revealed` | `boolean` | `false` | Everything revealed: no reveal row. |
|
|
4860
|
+
| `revealing` | `boolean` | `false` | «Show details» loading, no `reveal`. |
|
|
4861
|
+
| `emailsRevealed` | `boolean` | `false` | Phase 1: hides the emails square. |
|
|
4862
|
+
| `phonesRevealed` | `boolean` | `false` | Phase 1: hides the phones square. |
|
|
4863
|
+
| `revealingEmails` | `boolean` | `false` | Phase 1: emails square busy, still focusable. |
|
|
4864
|
+
| `revealingPhones` | `boolean` | `false` | Phase 1: phones square busy, still focusable. |
|
|
4865
|
+
| `saved` | `boolean` | `false` | Phase 1: the slot's row replaces «Save». |
|
|
4866
|
+
| `copy` | `Partial<DsProfileActionBarCopy>` | — | Overrides only the keys it names. |
|
|
4782
4867
|
|
|
4783
4868
|
### Copy
|
|
4784
4869
|
|
|
4785
4870
|
`DS_PROFILE_ACTION_BAR_COPY`: `reveal` «Show details», `revealTooltip` (empty: no tooltip, the
|
|
4786
|
-
cost is the app's), `revealing` «Revealing
|
|
4871
|
+
cost is the app's), `revealing` «Revealing…», `emails` «Show emails», `phones` «Show phones»,
|
|
4872
|
+
`save` «Save», and `emailsTooltip` / `phonesTooltip` / `saveTooltip` (empty: the app's prices).
|
|
4873
|
+
The constant is typed `DsProfileActionBarCopy` (phase-1 keys optional), so a three-key phase-0
|
|
4874
|
+
object still fits `typeof DS_PROFILE_ACTION_BAR_COPY`; the bar resolves every key internally.
|
|
4787
4875
|
|
|
4788
4876
|
### Events
|
|
4789
4877
|
|
|
4790
|
-
| Event
|
|
4791
|
-
|
|
|
4792
|
-
| `reveal`
|
|
4878
|
+
| Event | Payload | When |
|
|
4879
|
+
| --------------- | ------- | ----------------------------------------------------- |
|
|
4880
|
+
| `reveal` | — | The button was used, and the bar is not `revealing`. |
|
|
4881
|
+
| `reveal-emails` | — | Phase 1: the emails square, unless `revealingEmails`. |
|
|
4882
|
+
| `reveal-phones` | — | Phase 1: the phones square, unless `revealingPhones`. |
|
|
4883
|
+
| `save` | — | Phase 1: «Save», before `saved`. |
|
|
4793
4884
|
|
|
4794
4885
|
### Slots
|
|
4795
4886
|
|
|
@@ -4802,6 +4893,32 @@ cost is the app's), `revealing` «Revealing…».
|
|
|
4802
4893
|
While `revealing`, the button's text is hidden behind the spinner, so its `aria-label` is
|
|
4803
4894
|
`copy.revealing`. The button is a native `<button>`, reachable by keyboard.
|
|
4804
4895
|
|
|
4896
|
+
**Phase 0 changed too (not opt-in).** While `revealing`, «Show details» is now `aria-disabled` /
|
|
4897
|
+
`aria-busy` instead of natively disabled, so it stays focusable (a click or Enter is still
|
|
4898
|
+
ignored), and the focus handoff below also runs in phase 0: once `revealed`, focus moves from
|
|
4899
|
+
«Show details» to the slot's first focusable control, else the bar. An accessibility
|
|
4900
|
+
improvement, with no prop to switch it off.
|
|
4901
|
+
|
|
4902
|
+
**Keyboard focus through the phase-1 steps.** A revealing square is `aria-disabled` and
|
|
4903
|
+
`aria-busy` but not natively disabled, so it keeps focus while the app spends the credit (a
|
|
4904
|
+
click or Enter on it is ignored). «Show details» does the same while `revealing` or while a kind
|
|
4905
|
+
is busy (DsButton `focusableWhenDisabled`): a browser drops focus from a natively disabled button. When the focused control leaves — a revealed square, «Show
|
|
4906
|
+
details» once everything is revealed, «Save» once `saved` — focus moves to the nearest reveal
|
|
4907
|
+
control still there (the ones after it first), else «Save», else the first focusable control in
|
|
4908
|
+
the default slot, else the bar itself (`tabindex="-1"`). Focus outside the bar is never moved.
|
|
4909
|
+
|
|
4910
|
+
**Where the bar stops.** The bar keeps focus through its own busy states and hands it off only
|
|
4911
|
+
when one of its own controls disappears. After any other change of the app's data (a toast, a
|
|
4912
|
+
drawer, the next contact, a slot control the app swaps), the consuming app decides where focus
|
|
4913
|
+
goes.
|
|
4914
|
+
|
|
4915
|
+
**AA glyph on the phase-1 squares — differs from the design on purpose** (2026-11-27): the
|
|
4916
|
+
`mail` / `call` glyph is `accent-shadow` (`#504fbf`), at rest and on hover: 5.89:1 on the
|
|
4917
|
+
`accent-bg` fill and 4.06:1 on the `accent-mid` hover fill (the design's `accent-main` glyph is
|
|
4918
|
+
3.73:1 and 2.57:1, under the 3:1 for non-text). Scoped to the squares
|
|
4919
|
+
(`ds-profile-action-bar__kind`). «Show details» is DsButton primary as in phase 0 and the
|
|
4920
|
+
Prospector: its white on `accent-main` (4.14:1) is a DS-wide token matter, not this bar's.
|
|
4921
|
+
|
|
4805
4922
|
---
|
|
4806
4923
|
|
|
4807
4924
|
<!-- DsProfileContactDataCard · Profile -->
|
|
@@ -4828,26 +4945,28 @@ incorrect marks. The app toasts, calls its rating endpoint, opens its feedback m
|
|
|
4828
4945
|
|
|
4829
4946
|
### Props
|
|
4830
4947
|
|
|
4831
|
-
| Prop | Type
|
|
4832
|
-
| ------------------------------------- |
|
|
4833
|
-
| `title` | `string`
|
|
4834
|
-
| `groups` | `
|
|
4835
|
-
| `
|
|
4836
|
-
| `
|
|
4837
|
-
| `
|
|
4838
|
-
| `
|
|
4839
|
-
| `
|
|
4840
|
-
| `
|
|
4841
|
-
| `
|
|
4842
|
-
| `
|
|
4948
|
+
| Prop | Type | Default | Description |
|
|
4949
|
+
| ------------------------------------- | ----------------------------- | ------------ | ------------------------------------------------ |
|
|
4950
|
+
| `title` | `string` | — | The card's name (required). |
|
|
4951
|
+
| `groups` | `DsProfileContactDataGroup[]` | — | Emails and phones (required). |
|
|
4952
|
+
| `banded` | `boolean` | `false` | The design's profile bands (see below). |
|
|
4953
|
+
| `count` | `number \| null` | `null` | Total next to the title. |
|
|
4954
|
+
| `badgeLabel` / `badgeTooltip` | `string` | — | The A+ badge on a valid email (required). |
|
|
4955
|
+
| `verifyingLabel` / `verifyingTooltip` | `string` | — | The «Verifying» pill; shown only with its label. |
|
|
4956
|
+
| `invalidLabel` / `invalidTooltip` | `string` | — | The «Invalid» pill; shown only with its label. |
|
|
4957
|
+
| `showRate` | `boolean` | `false` | Thumbs up / down on the rows that can be rated. |
|
|
4958
|
+
| `maskedLabel` | `string` | list default | Spoken once per masked value. |
|
|
4959
|
+
| `copyLabel` / `copiedLabel` | `string` | list default | Accessible names of the copy action. |
|
|
4960
|
+
| `correctLabel` / `incorrectLabel` | `string` | list default | Accessible names of the rating actions. |
|
|
4843
4961
|
|
|
4844
4962
|
### Events
|
|
4845
4963
|
|
|
4846
|
-
| Event | Payload | When
|
|
4847
|
-
| ----------- | --------------- |
|
|
4848
|
-
| `
|
|
4849
|
-
| `
|
|
4850
|
-
| `
|
|
4964
|
+
| Event | Payload | When |
|
|
4965
|
+
| ----------- | --------------- | ------------------------- |
|
|
4966
|
+
| `action` | `string` (key) | A band's button (banded). |
|
|
4967
|
+
| `copy` | `DsContactItem` | A value was copied. |
|
|
4968
|
+
| `correct` | `DsContactItem` | The thumb up was used. |
|
|
4969
|
+
| `incorrect` | `DsContactItem` | The thumb down was used. |
|
|
4851
4970
|
|
|
4852
4971
|
### Slots
|
|
4853
4972
|
|
|
@@ -4857,6 +4976,38 @@ incorrect marks. The app toasts, calls its rating endpoint, opens its feedback m
|
|
|
4857
4976
|
| `editor` | First in the body, no inset | The open email editor. |
|
|
4858
4977
|
| `notice` | After the groups, inset | An upgrade notice, a hint. |
|
|
4859
4978
|
|
|
4979
|
+
### `banded`
|
|
4980
|
+
|
|
4981
|
+
The design's «Perfil sin revelar» card. Each type with rows gets a `DsProfileGroupBar` with its
|
|
4982
|
+
section `label` and no counter, then a `DsContactList` (no title, the type's glyph per row).
|
|
4983
|
+
Sections without rows are not drawn. A group without rows draws its placeholder, with
|
|
4984
|
+
`group.band` above it when set («Mobile» over «No phones found»; none while «Revealing…»).
|
|
4985
|
+
`group.action` (`{ label, tooltip?, icon?, busy? }`) puts the phase-1 button on the group's
|
|
4986
|
+
**first** band, and its click emits `action` with the group's `key`. While `busy`, the button
|
|
4987
|
+
shows a spinner and is `aria-busy` / `aria-disabled` but not natively disabled, so it keeps
|
|
4988
|
+
keyboard focus and a second click or Enter is ignored.
|
|
4989
|
+
Every band is `compact`: 24px as on the board, and a band with the button grows to fit it.
|
|
4990
|
+
Compact bands use AA colours on purpose (`slate-soft` label, `accent-shadow` button), not the
|
|
4991
|
+
design's: see `DsProfileGroupBar`.
|
|
4992
|
+
Each band's label names the list under it (`labelId` → `listLabelledby`, `aria-labelledby` with
|
|
4993
|
+
an id from `useId`), so a screen reader moving by lists hears «Work email» / «Direct email»
|
|
4994
|
+
with no second visible heading.
|
|
4995
|
+
|
|
4996
|
+
### Keyboard focus — where the card stops
|
|
4997
|
+
|
|
4998
|
+
The card keeps focus through **its own** states and hands it off when **its own** control
|
|
4999
|
+
disappears:
|
|
5000
|
+
|
|
5001
|
+
- Mark the action `busy` while you reveal: the focused button stays focused.
|
|
5002
|
+
- When a focused band button leaves — its lead band unmounts (the group turns into the
|
|
5003
|
+
«Revealing…» placeholder) or you clear `action` once revealed — focus moves to the card itself
|
|
5004
|
+
(`tabindex="-1"`, the DS `accent-main` ring; the `<section>` is named by the title), not to
|
|
5005
|
+
`<body>`.
|
|
5006
|
+
- Focus you moved on purpose, or focus that was never on a band button, is never touched.
|
|
5007
|
+
|
|
5008
|
+
Anything else is the app's call: after other data of yours changes (a toast, a drawer, the next
|
|
5009
|
+
contact), **the consuming app decides where focus goes**.
|
|
5010
|
+
|
|
4860
5011
|
### What `DsContactGroups` does and does not do here
|
|
4861
5012
|
|
|
4862
5013
|
- The band over each type is `DsContactList`'s own («Work email (2)»), with the count; a
|
|
@@ -4876,17 +5027,22 @@ prospector, full-profile and contact-list drawers, and in the extension.
|
|
|
4876
5027
|
|
|
4877
5028
|
### Props
|
|
4878
5029
|
|
|
4879
|
-
| Prop
|
|
4880
|
-
|
|
|
4881
|
-
| `image`
|
|
4882
|
-
| `firstName`
|
|
4883
|
-
| `lastName`
|
|
4884
|
-
| `headline`
|
|
4885
|
-
| `
|
|
4886
|
-
| `
|
|
4887
|
-
| `
|
|
4888
|
-
| `
|
|
4889
|
-
| `
|
|
5030
|
+
| Prop | Type | Default | Description |
|
|
5031
|
+
| ---------------------- | ---------- | ----------- | --------------------------------------------------------------------------------------------- |
|
|
5032
|
+
| `image` | `string` | `''` | Photo URL. Empty, or failing to load, falls back to DsAvatar's initials. |
|
|
5033
|
+
| `firstName` | `string` | `''` | Used for the name and, without a photo, the avatar's initials. |
|
|
5034
|
+
| `lastName` | `string` | `''` | See `firstName`. |
|
|
5035
|
+
| `headline` | `string` | `''` | The LinkedIn headline, grey, up to 2 lines. Empty → not rendered. |
|
|
5036
|
+
| `jobTitle` | `string` | `''` | Job title of the primary position, bold, first part of the title line. Empty → no title line. |
|
|
5037
|
+
| `company` | `string` | `''` | Company of the primary position, after `atLabel`. |
|
|
5038
|
+
| `atLabel` | `string` | `''` | The connector («at»), translated by the app. Empty → the company is left out. |
|
|
5039
|
+
| `highlightTerms` | `string[]` | `[]` | Terms marked in the job title and the headline (`DsHighlightText`). |
|
|
5040
|
+
| `headlineMatched` | `boolean` | `false` | The title matched only through the headline → shows the match badge. |
|
|
5041
|
+
| `headlineMatchedLabel` | `string` | `''` | The badge's text («Matched in headline»). Empty → no badge. |
|
|
5042
|
+
| `details` | `string[]` | `[]` | Small line under the headline, joined with « · »; empty items dropped. |
|
|
5043
|
+
| `linkedinUrl` | `string` | `''` | Header LinkedIn badge target. Empty → no badge, no links row. |
|
|
5044
|
+
| `linkedinLabel` | `string` | `''` | Accessible name and tooltip content of the LinkedIn badge. |
|
|
5045
|
+
| `alt` | `string` | `undefined` | Passthrough to DsAvatar's `alt` (accessible label for the photo). |
|
|
4890
5046
|
|
|
4891
5047
|
### Slots
|
|
4892
5048
|
|
|
@@ -4903,35 +5059,26 @@ prospector, full-profile and contact-list drawers, and in the extension.
|
|
|
4903
5059
|
- **Name:** `{firstName} {lastName}`, trimmed — a lone first or last name renders without
|
|
4904
5060
|
a stray leading/trailing space. Gains `padding-right: 24px` when `#actions` is present,
|
|
4905
5061
|
so a long name never runs under the icon.
|
|
4906
|
-
- **
|
|
4907
|
-
|
|
4908
|
-
|
|
4909
|
-
|
|
4910
|
-
|
|
4911
|
-
|
|
4912
|
-
|
|
4913
|
-
|
|
4914
|
-
|
|
4915
|
-
line. Neither → no second column and the hero renders as before (name wraps, no name
|
|
4916
|
-
tooltip).
|
|
4917
|
-
|
|
4918
|
-
In the two-column layout **every text ellipsizes** (name, headline, company, job title).
|
|
4919
|
-
The 14px gutter between the columns lives inside column 1's 60%, so the split is exact.
|
|
4920
|
-
|
|
4921
|
-
**With `#actions`:** the icon sits over column 2's top-right corner, so the 24px
|
|
4922
|
-
`padding-right` that the name carries in the single-column hero moves to column 2's first
|
|
4923
|
-
line (the company, or the job title when there is no company). The name no longer needs it.
|
|
5062
|
+
- **Title line:** `<strong>{jobTitle}</strong> {atLabel} {company}`, one line, ellipsized.
|
|
5063
|
+
Rendered only with a `jobTitle`: without one, the hero shows just the headline (the
|
|
5064
|
+
company is already in the company card).
|
|
5065
|
+
- **Headline:** grey, clamped to 2 lines with an ellipsis. Hidden when empty.
|
|
5066
|
+
- **Match badge:** «Matched in headline» under the headline when `headlineMatched` and its
|
|
5067
|
+
label are set; never without a headline. Accent tint and accent-shadow ink.
|
|
5068
|
+
- **Details:** «In role since 2021 · 12 years of experience», caption size, `slate-soft`.
|
|
5069
|
+
- **Highlight:** `highlightTerms` are marked with `DsHighlightText` in the title and the
|
|
5070
|
+
headline: the same component the prospector's row uses, so both read the same.
|
|
4924
5071
|
|
|
4925
5072
|
### Tooltip: only when actually truncated
|
|
4926
5073
|
|
|
4927
|
-
The
|
|
4928
|
-
text is
|
|
4929
|
-
|
|
4930
|
-
|
|
4931
|
-
|
|
4932
|
-
|
|
4933
|
-
|
|
4934
|
-
|
|
5074
|
+
The title line and the headline are wrapped in a `DsTooltip` that **only activates when
|
|
5075
|
+
the text is genuinely cut off** (a tooltip repeating visible text is noise). The title line
|
|
5076
|
+
compares `scrollWidth` to `clientWidth`; the 2-line headline compares `scrollHeight` to
|
|
5077
|
+
`clientHeight` (1px of slack for fractional line-heights). Measured on mount, on
|
|
5078
|
+
`mouseenter` / `focus`, and whenever the text changes; `content` stays the full text and
|
|
5079
|
+
only `disabled` changes.
|
|
5080
|
+
While cut, the text also gets `tabindex="0"` (and a focus ring), so keyboard users
|
|
5081
|
+
can reach the tooltip; a text that fits stays out of the tab order.
|
|
4935
5082
|
|
|
4936
5083
|
### Accessibility
|
|
4937
5084
|
|
|
@@ -4945,8 +5092,9 @@ only path to a correct state.
|
|
|
4945
5092
|
|
|
4946
5093
|
Root: flex row, gap 14, padding 14, white, 1px `slate-tint` border, radius 6. Avatar 64,
|
|
4947
5094
|
radius 6, accent `colors.$accent-bg` / `colors.$accent-shadow`, initials 20px / 800,
|
|
4948
|
-
letter-spacing .5px. Name 18px / 700, ink `#1f2933`, line-height 1.2.
|
|
4949
|
-
|
|
5095
|
+
letter-spacing .5px. Name 18px / 700, ink `#1f2933`, line-height 1.2. Title line 13px (`small`), `slate-main`,
|
|
5096
|
+
the job title bold in `grey-10`. Headline 12.5px (`label`), `slate-soft`, line-height 1.4,
|
|
5097
|
+
2 lines. Badge 10px (`micro`) / 800, padding 2 × 6. Links row: gap 8,
|
|
4950
5098
|
margin-top 4. LinkedIn badge 22 × 22, radius 4 (`DsProfileCompanyCard`'s value, not
|
|
4951
5099
|
`DsCompanyCard`'s off-scale 5), 11px / 800.
|
|
4952
5100
|
|
|
@@ -5017,11 +5165,13 @@ L1395), SALESQL-3298.
|
|
|
5017
5165
|
|
|
5018
5166
|
### Props
|
|
5019
5167
|
|
|
5020
|
-
| Prop
|
|
5021
|
-
|
|
|
5022
|
-
| `icon`
|
|
5023
|
-
| `title`
|
|
5024
|
-
| `hint`
|
|
5168
|
+
| Prop | Type | Default | Description |
|
|
5169
|
+
| --------------- | -------------------- | -------- | ----------------------------------------------------------------------------------- |
|
|
5170
|
+
| `icon` | `string` | — | Material Symbols glyph (filled family), e.g. `work` (required). |
|
|
5171
|
+
| `title` | `string` | — | The section's name, already translated. Rendered uppercase (required). |
|
|
5172
|
+
| `hint` | `string` | `''` | Tooltip explaining how to unlock. Empty → no tooltip, and the card isn't focusable. |
|
|
5173
|
+
| `hintPlacement` | `DsTooltipPlacement` | `'left'` | Side of the card the hint opens on. A narrow panel passes `bottom`. |
|
|
5174
|
+
| `teleported` | `boolean` | `false` | The hint in the app's teleport target, so no ancestor's `overflow` clips it. |
|
|
5025
5175
|
|
|
5026
5176
|
### Accessibility
|
|
5027
5177
|
|
|
@@ -5043,8 +5193,13 @@ export draws it that way to read as **disabled**, not merely quiet.
|
|
|
5043
5193
|
### Design parity (export `ProfileLockedCard`)
|
|
5044
5194
|
|
|
5045
5195
|
Leading icon `17px`, muted. Title `11px / 700`, letter-spacing `.6px`, uppercase, muted.
|
|
5046
|
-
Trailing `lock` glyph `15px`, muted. Tooltip: `hint`, placement left, block
|
|
5047
|
-
|
|
5196
|
+
Trailing `lock` glyph `15px`, muted. Tooltip: `hint`, placement left, block — the export's
|
|
5197
|
+
default, unchanged.
|
|
5198
|
+
|
|
5199
|
+
**Narrow panel (opt-in, SALESQL-4793):** in the side panel (at the screen's right edge,
|
|
5200
|
+
320–400px wide) a left bubble leaves the panel, so the panel passes `hint-placement="bottom"`
|
|
5201
|
+
and `teleported`: below a full-width card it is centred inside it, no `overflow` clips it, and
|
|
5202
|
+
the viewport clamp flips it above near the bottom of the screen.
|
|
5048
5203
|
|
|
5049
5204
|
---
|
|
5050
5205
|
|
|
@@ -5070,14 +5225,22 @@ The sections of a full profile that come from the person's own record: **Details
|
|
|
5070
5225
|
|
|
5071
5226
|
### Props
|
|
5072
5227
|
|
|
5073
|
-
| Prop
|
|
5074
|
-
|
|
|
5075
|
-
| `unlocked`
|
|
5076
|
-
| `details`
|
|
5077
|
-
| `about`
|
|
5078
|
-
| `experience`
|
|
5079
|
-
| `education`
|
|
5080
|
-
| `copy`
|
|
5228
|
+
| Prop | Type | Default | Description |
|
|
5229
|
+
| ----------------- | ------------------------------------ | -------- | -------------------------------------------------------------------- |
|
|
5230
|
+
| `unlocked` | `boolean` | `false` | Revealed: show the content. Off: locked stubs. |
|
|
5231
|
+
| `details` | `DsProfileField[]` | `[]` | `{ id, label, value, href? }`; empty value dropped. |
|
|
5232
|
+
| `about` | `string` | `''` | The bio; its line breaks are kept. |
|
|
5233
|
+
| `experience` | `DsProfileTimelineItem[]` | `[]` | `{ id, title, subtitle?, dates?, logo? }`. |
|
|
5234
|
+
| `education` | `DsProfileTimelineItem[]` | `[]` | Same shape. |
|
|
5235
|
+
| `copy` | `Partial<DsProfileRichSectionsCopy>` | — | Overrides only the keys it names. |
|
|
5236
|
+
| `showAllLocked` | `boolean` | `false` | Locked: About, Experience and Education even empty. |
|
|
5237
|
+
| `experienceCount` | `number \| null` | `null` | Locked: the page's count; null → `experience.length`, 0 → no number. |
|
|
5238
|
+
| `educationCount` | `number \| null` | `null` | Locked: the page's count; null → `education.length`, 0 → no number. |
|
|
5239
|
+
| `hintPlacement` | `DsTooltipPlacement` | `'left'` | Locked: side each stub's hint opens on; a narrow panel: `bottom`. |
|
|
5240
|
+
| `teleported` | `boolean` | `false` | Locked: the stubs' hints in the app's teleport target. |
|
|
5241
|
+
|
|
5242
|
+
A locked count of `0` or `null` (and no entries) draws the plain title («Experience»), never
|
|
5243
|
+
«Experience · 0».
|
|
5081
5244
|
|
|
5082
5245
|
### Copy
|
|
5083
5246
|
|
|
@@ -5094,6 +5257,39 @@ hint on focus.
|
|
|
5094
5257
|
|
|
5095
5258
|
---
|
|
5096
5259
|
|
|
5260
|
+
<!-- DsProfileSkeleton · Profile -->
|
|
5261
|
+
|
|
5262
|
+
## DsProfileSkeleton
|
|
5263
|
+
|
|
5264
|
+
The full profile while the panel reads SalesQL, in place of a spinner. Grey `DsSkeleton` blocks
|
|
5265
|
+
inside a `DsFullProfile`, laid out like the real pieces so nothing jumps when the profile lands:
|
|
5266
|
+
|
|
5267
|
+
- **Hero** — the 64px photo (card radius), name, headline and the LinkedIn badge.
|
|
5268
|
+
- **Actions** — `actionRows` bars of DsButton large height (36px): 1 for phase 0, 2 for phase 1.
|
|
5269
|
+
- **Contact data** — the card header and the three profile bands («Work email», «Direct email»,
|
|
5270
|
+
«Mobile»), each over a `DsContactPlaceholder` skeleton row.
|
|
5271
|
+
- **Company** — the header, the logo and name, and four data rows.
|
|
5272
|
+
|
|
5273
|
+
It is one `DsSkeletonGroup`: announced once, as a status with `label`; every block is decorative.
|
|
5274
|
+
|
|
5275
|
+
Ported from the extension's hand-made `ProfileSkeleton` (SALESQL-4681), now on DS tokens only.
|
|
5276
|
+
|
|
5277
|
+
### Props
|
|
5278
|
+
|
|
5279
|
+
| Prop | Type | Default | Description |
|
|
5280
|
+
| ------------ | -------- | ------- | --------------------------------------------------------------------------- |
|
|
5281
|
+
| `label` | `string` | `''` | What is loading, for screen readers. |
|
|
5282
|
+
| `actionRows` | `1 \| 2` | `1` | Bars under the hero: 1 (phase 0) or 2 (phase 1). Any other value renders 1. |
|
|
5283
|
+
|
|
5284
|
+
### Design parity
|
|
5285
|
+
|
|
5286
|
+
Paddings and gaps are the DS steps nearest to the real pieces (the hero's 3px text gap is
|
|
5287
|
+
`spacing(1)`, the company rows' 7px is `spacing(1)`): a skeleton line is centred, not a text
|
|
5288
|
+
line box, so a pixel either way does not show. The band is a small control's height (24px),
|
|
5289
|
+
exactly the banded card's compact DsProfileGroupBar, so nothing jumps when the card lands.
|
|
5290
|
+
|
|
5291
|
+
---
|
|
5292
|
+
|
|
5097
5293
|
<!-- DsProfileTimelineRow · Profile -->
|
|
5098
5294
|
|
|
5099
5295
|
## DsProfileTimelineRow
|
|
@@ -5177,6 +5373,31 @@ accent is too faint for 14px text on the tint.
|
|
|
5177
5373
|
|
|
5178
5374
|
---
|
|
5179
5375
|
|
|
5376
|
+
<!-- DsHighlightText · Text -->
|
|
5377
|
+
|
|
5378
|
+
## DsHighlightText
|
|
5379
|
+
|
|
5380
|
+
A text with every occurrence of some terms wrapped in `<mark>`: the terms a search
|
|
5381
|
+
matched, e.g. the prospector's job-title filter on the table row and in `DsProfileHero`.
|
|
5382
|
+
Using the same component in both places keeps the highlight identical.
|
|
5383
|
+
|
|
5384
|
+
### Props
|
|
5385
|
+
|
|
5386
|
+
| Prop | Type | Default | Description |
|
|
5387
|
+
| ------- | ---------- | ------- | --------------------------------------------------------------------------------- |
|
|
5388
|
+
| `text` | `string` | — | The text. Rendered as text nodes, never as HTML. |
|
|
5389
|
+
| `terms` | `string[]` | `[]` | Ignores case and accents; trimmed; blank ones ignored; overlapping matches merge. |
|
|
5390
|
+
|
|
5391
|
+
`splitHighlights(text, terms)` is exported too, for a consumer that needs the runs
|
|
5392
|
+
(`{ text, match }[]`) without the component.
|
|
5393
|
+
|
|
5394
|
+
### Design
|
|
5395
|
+
|
|
5396
|
+
The mark is `amber-tint-strong` with `radius-control`, keeping the text's own colour and
|
|
5397
|
+
weight, so it works inside a bold title and a grey headline alike.
|
|
5398
|
+
|
|
5399
|
+
---
|
|
5400
|
+
|
|
5180
5401
|
<!-- DsColumnList · Toolbar -->
|
|
5181
5402
|
|
|
5182
5403
|
The body of a table's «Columns» popover: one checkbox row per column in **table order, hidden ones
|