@salesql/sql_components_vue3 3.26.0 → 3.28.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/usePickerOrganizer.d.ts +12 -0
- package/dist/constants/events.d.ts +2 -0
- package/dist/constants/pickers.d.ts +18 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.es.js +3142 -2963
- package/dist/index.es.js.map +1 -1
- package/dist/sql_components_vue3.css +1 -1
- package/dist/stories/ExtensionPanelStage.vue.d.ts +12 -0
- package/dist/ui/DsPickerRowActions/DsPickerRowActions.types.d.ts +5 -1
- package/dist/ui/DsPickerRowActions/DsPickerRowActions.vue.d.ts +20 -0
- package/dist/ui/DsSavedButton/DsSavedButton.story-state.d.ts +20 -0
- package/dist/ui/DsSavedButton/DsSavedButton.types.d.ts +2 -0
- package/dist/ui/DsSavedButton/DsSavedButton.vue.d.ts +13 -2
- package/dist/ui/DsSkeleton/DsSkeleton.types.d.ts +28 -0
- package/dist/ui/DsSkeleton/DsSkeleton.vue.d.ts +53 -0
- package/dist/ui/DsSkeleton/index.d.ts +2 -0
- package/dist/ui/DsSkeletonGroup/DsSkeletonGroup.types.d.ts +4 -0
- package/dist/ui/DsSkeletonGroup/DsSkeletonGroup.vue.d.ts +24 -0
- package/dist/ui/DsSkeletonGroup/index.d.ts +2 -0
- package/dist/ui/DsTagPicker/DsTagPicker.types.d.ts +3 -1
- package/dist/ui/DsTagPicker/DsTagPicker.vue.d.ts +13 -1
- package/llms-full.txt +155 -47
- package/llms.txt +2 -0
- package/package.json +1 -1
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.28.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 (70)
|
|
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
|
|
@@ -96,6 +96,8 @@ Browsers ignore `@font-face` declared inside a shadow root: register the fonts o
|
|
|
96
96
|
- **DsAlert** (Feedback) — Inline banner for status/confirmation messages (success, info, warning, error). It
|
|
97
97
|
- **DsModal** (Feedback) — Dialog with an optional header (title + close button) and footer action row, vertically
|
|
98
98
|
- **DsNotification** (Feedback) — Fixed-position toast card for transient feedback (saved, updated, failed…). It renders
|
|
99
|
+
- **DsSkeleton** (Feedback) — One grey block that stands in for content that is still loading: a text line, a box or a
|
|
100
|
+
- **DsSkeletonGroup** (Feedback) — Wraps a loading layout built from `DsSkeleton` blocks so it is announced **once**: the
|
|
99
101
|
- **DsTooltip** (Feedback) — Dark bubble that describes a wrapped trigger on hover or keyboard focus, with 4-way
|
|
100
102
|
- **DsCheckbox** (Forms) — Checked / unchecked / indeterminate selection control. **Presentational only**.
|
|
101
103
|
- **DsInput** (Forms) — Single-line text field — the DS "Input". **Presentational only**: it drives its own
|
|
@@ -1230,6 +1232,7 @@ The component never persists anything and never guesses that a save worked: it e
|
|
|
1230
1232
|
| `create` | `'none' \| 'event' \| 'form'` | `'none'` | What the footer does. `DS_PICKER_CREATE_MODES`. |
|
|
1231
1233
|
| `rowActions` | `'none' \| 'event' \| 'form'` | `'none'` | The ⋮ menu on each row. `DS_PICKER_ROW_ACTIONS`. |
|
|
1232
1234
|
| `colors` | `string[]` | `[]` | Swatches (hex) of the form. Only the palette; required by the `'form'` modes. |
|
|
1235
|
+
| `defaultColor` | `string` | `''` | Swatch the create form (and Edit of a folder without colour) starts at. Empty = the first of `colors`. |
|
|
1233
1236
|
| `formLoading` | `boolean` | `false` | The app is saving: the form's submit shows the spinner and is blocked. |
|
|
1234
1237
|
| `formError` | `string` | `''` | A failed save, shown under the name field. Clear it on `form-close`: an error left over from a dismissed form is not shown when it reopens. |
|
|
1235
1238
|
| `copy` | `Partial<DsSavedButtonCopy>` | `{}` | Every string, merged over `DS_SAVED_BUTTON_COPY`. See below. |
|
|
@@ -1237,12 +1240,14 @@ The component never persists anything and never guesses that a save worked: it e
|
|
|
1237
1240
|
`DsSavedButtonCopy` keys (English defaults): `searchPlaceholder` (`'Search folders'`), `empty`
|
|
1238
1241
|
(`'No folders found'`, empty string = nothing), `create` (`'New Folder'`, the footer button),
|
|
1239
1242
|
`actions` (`'Actions'`, the ⋮ `aria-label`), `edit` (`'Edit'`), `delete` (`'Delete'`),
|
|
1243
|
+
`deleteConfirm` (`'Are you sure?'`) and `deleteConfirmAction` (`'Yes, delete'`), the row after the
|
|
1244
|
+
first click on Delete,
|
|
1240
1245
|
`createFormTitle` (`'New Folder'`), `editFormTitle` (`'Edit Folder'`), `createSubmit`
|
|
1241
1246
|
(`'Create & Select'`), `editSubmit` (`'Save'`), `namePlaceholder` (`'Folder name'`), `setColor`
|
|
1242
1247
|
(`'Set Color'`), `back` (`'Back'`), `errorMissingName` / `errorTooLongName` (the form's own
|
|
1243
1248
|
defaults when unset).
|
|
1244
1249
|
|
|
1245
|
-
`DsPickerOption` is `{ id, name, color? }` — map frontend-app's `Folder` with
|
|
1250
|
+
`DsPickerOption` is `{ id, name, color?, deleteDisabled?, deleting? }` — map frontend-app's `Folder` with
|
|
1246
1251
|
`{ id: f.uuid, name: f.name, color: f.color }`.
|
|
1247
1252
|
|
|
1248
1253
|
#### Deprecated props (removed in 4.0)
|
|
@@ -1261,17 +1266,18 @@ or a `footer` slot) with `colors` = `'form'`, without = `'event'`, no footer = `
|
|
|
1261
1266
|
|
|
1262
1267
|
### Events
|
|
1263
1268
|
|
|
1264
|
-
| Event
|
|
1265
|
-
|
|
|
1266
|
-
| `pick`
|
|
1267
|
-
| `create`
|
|
1268
|
-
| `edit`
|
|
1269
|
-
| `delete`
|
|
1270
|
-
| `create-option`
|
|
1271
|
-
| `update-option`
|
|
1272
|
-
| `form-close`
|
|
1273
|
-
| `
|
|
1274
|
-
| `
|
|
1269
|
+
| Event | Payload | When |
|
|
1270
|
+
| ------------------ | --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
1271
|
+
| `pick` | `DsPickerOption` | A folder was chosen. The panel closes. PATCH `folder_ids` here. |
|
|
1272
|
+
| `create` | `string` | The footer was clicked with `create="event"`; payload is the search text typed so far. The panel closes. |
|
|
1273
|
+
| `edit` | `DsPickerOption` | Edit chosen in a row's ⋮ menu (with `rowActions="form"` the form opens too). |
|
|
1274
|
+
| `delete` | `DsPickerOption` | Delete confirmed in a row's ⋮ («Are you sure? · Yes, delete»). Set `deleting: true` on that folder in the handler: the ⋮ and the panel stay open with the row in loading until the app removes the folder (success) or clears `deleting` (error, the row is back to Delete). Without `deleting` the ⋮ closes. |
|
|
1275
|
+
| `create-option` | `{ name, color }` | The create form was submitted (name trimmed). The form stays open until `closeForm()`. |
|
|
1276
|
+
| `update-option` | `{ id, name, color }` | The edit form was submitted. Same: stays open until `closeForm()`. |
|
|
1277
|
+
| `form-close` | — | The form was dismissed (back, `closeForm()` or the panel closing). Clear `formError` here. |
|
|
1278
|
+
| `row-actions-open` | `DsPickerOption` | A row's ⋮ menu opened. Update that option's `deleteDisabled` if Delete should be blocked (`{ hint, tooltip? }`: the item stays focusable, `aria-disabled`, with the hint after its label). |
|
|
1279
|
+
| `search` | `string` | The search text changed (filtering is local). |
|
|
1280
|
+
| `update:open` | `boolean` | The panel opened or closed. |
|
|
1275
1281
|
|
|
1276
1282
|
### Exposed
|
|
1277
1283
|
|
|
@@ -1324,6 +1330,11 @@ or a `footer` slot) with `colors` = `'form'`, without = `'event'`, no footer = `
|
|
|
1324
1330
|
hover — the DS has no `#FFF7F7`, so the hover is `error-tint` (a touch stronger); the shadow
|
|
1325
1331
|
is the DS `shadow-dropdown`, not the export's `0 8px 28px`. Each item also carries its glyph
|
|
1326
1332
|
(`edit` / `delete`), as in production.
|
|
1333
|
+
- Delete confirms in place, as the Contact List prototype's `FolderRowMenu`: the first click turns
|
|
1334
|
+
the row into «Are you sure? · Yes, delete» (700, `error-shadow` on `error-tint`) and the menu
|
|
1335
|
+
grows to fit it on one line; the second emits `delete`. While the app deletes, the glyph is a
|
|
1336
|
+
16px `DsSpinner` (the prototype has no loading state). Escape, a click outside or another ⋮
|
|
1337
|
+
cancel the confirmation, never the loading.
|
|
1327
1338
|
|
|
1328
1339
|
---
|
|
1329
1340
|
|
|
@@ -1356,8 +1367,14 @@ supplies the palette.
|
|
|
1356
1367
|
The component never persists anything and never guesses that a save worked: it emits intent
|
|
1357
1368
|
(`create-option`, `update-option`, `delete`), and the app saves, then calls the exposed
|
|
1358
1369
|
`closeForm()` (or sets `formError`). While it saves, `formLoading` blocks the submit. Going to the
|
|
1359
|
-
form and back keeps the search and the working-copy selection
|
|
1360
|
-
|
|
1370
|
+
form and back keeps the search and the working-copy selection. A tag the app just created is
|
|
1371
|
+
checked only if the app says so: `closeForm(created)` adds it to the working copy, and Apply keeps
|
|
1372
|
+
it even when `options` does not carry it yet.
|
|
1373
|
+
|
|
1374
|
+
A row's Delete can be blocked with its reason: set `deleteDisabled: { hint, tooltip? }` on the
|
|
1375
|
+
option. The item stays focusable (`aria-disabled`), shows the `hint` after its label and the
|
|
1376
|
+
`tooltip` on hover / focus. `row-actions-open` fires each time a ⋮ menu opens, so the app can check
|
|
1377
|
+
what Delete needs and update the option while the menu is open.
|
|
1361
1378
|
|
|
1362
1379
|
### Rules
|
|
1363
1380
|
|
|
@@ -1373,28 +1390,31 @@ created — the app decides.
|
|
|
1373
1390
|
|
|
1374
1391
|
### Props
|
|
1375
1392
|
|
|
1376
|
-
| Prop
|
|
1377
|
-
|
|
|
1378
|
-
| `label`
|
|
1379
|
-
| `tags`
|
|
1380
|
-
| `options`
|
|
1381
|
-
| `size`
|
|
1382
|
-
| `pill`
|
|
1383
|
-
| `align`
|
|
1384
|
-
| `disabled`
|
|
1385
|
-
| `selection`
|
|
1386
|
-
| `teleported`
|
|
1387
|
-
| `create`
|
|
1388
|
-
| `rowActions`
|
|
1389
|
-
| `colors`
|
|
1390
|
-
| `
|
|
1391
|
-
| `
|
|
1392
|
-
| `
|
|
1393
|
+
| Prop | Type | Default | Description |
|
|
1394
|
+
| -------------- | ----------------------------- | ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
1395
|
+
| `label` | `string` | — | Trigger label while untagged ("Tag") (required). |
|
|
1396
|
+
| `tags` | `DsPickerOption[]` | `[]` | The tags applied to the contact. |
|
|
1397
|
+
| `options` | `DsPickerOption[]` | — | Every tag the user can pick (required). |
|
|
1398
|
+
| `size` | `'medium' \| 'large'` | `'medium'` | |
|
|
1399
|
+
| `pill` | `boolean` | `false` | Fully round trigger (`DsButton pill`) for the bulk bar beside `DsItemSelectorButton` («Tag»). Off = the design's row / profile trigger. |
|
|
1400
|
+
| `align` | `'start' \| 'end'` | `'start'` | Which trigger edge the 240px panel hangs from. |
|
|
1401
|
+
| `disabled` | `boolean` | `false` | |
|
|
1402
|
+
| `selection` | `'multiple' \| 'single'` | `'multiple'` | `single`: at most one tag (the extension's header). Radio rows; picking applies at once and closes (so does the `create="event"` row); «Remove tag» (`copy.removeTag`) applies `[]`. No Apply. A pick emits `[option]` alone: other applied tags are not kept. `DS_TAG_PICKER_SELECTIONS`. |
|
|
1403
|
+
| `teleported` | `boolean` | `false` | Render the picker panel in `<body>` (or the app's `DS_TELEPORT_TARGET`), so a scroll container doesn't clip it. |
|
|
1404
|
+
| `create` | `'none' \| 'event' \| 'form'` | `'none'` | What the create affordance does. `DS_PICKER_CREATE_MODES`. |
|
|
1405
|
+
| `rowActions` | `'none' \| 'event' \| 'form'` | `'none'` | The ⋮ menu on each row. `DS_PICKER_ROW_ACTIONS`. |
|
|
1406
|
+
| `colors` | `string[]` | `[]` | Swatches (hex) of the form. Only the palette; required by the `'form'` modes. |
|
|
1407
|
+
| `defaultColor` | `string` | `''` | Swatch the create form (and Edit of a tag without colour) starts at. Empty = the first of `colors`. |
|
|
1408
|
+
| `formLoading` | `boolean` | `false` | The app is saving: the form's submit shows the spinner and is blocked. |
|
|
1409
|
+
| `formError` | `string` | `''` | A failed save, shown under the name field. Clear it on `form-close`: an error left over from a dismissed form is not shown on reopen. |
|
|
1410
|
+
| `copy` | `Partial<DsTagPickerCopy>` | `{}` | Every string, merged over `DS_TAG_PICKER_COPY`. See below. |
|
|
1393
1411
|
|
|
1394
1412
|
`DsTagPickerCopy` keys (English defaults): `taggedAs` (`'Tagged as'`), `apply` (`'Apply'`),
|
|
1395
1413
|
`searchPlaceholder` (`'Search tags'`), `empty` (`'No tags found'`, empty string = nothing), `more`
|
|
1396
1414
|
(`''`, the `+N` chip's accessible name), `createRow` (`'Create'`), `newButton` (`'New Tag'`),
|
|
1397
1415
|
`actions` (`'Actions'`, the ⋮ `aria-label`), `edit` (`'Edit'`), `delete` (`'Delete'`),
|
|
1416
|
+
`deleteConfirm` (`'Are you sure?'`) and `deleteConfirmAction` (`'Yes, delete'`), the row after the
|
|
1417
|
+
first click on Delete,
|
|
1398
1418
|
`createFormTitle` (`'New Tag'`), `editFormTitle` (`'Edit Tag'`), `createSubmit` (`'Create'`),
|
|
1399
1419
|
`editSubmit` (`'Save'`), `namePlaceholder` (`'Tag name'`), `setColor` (`'Set Color'`), `back`
|
|
1400
1420
|
(`'Back'`), `removeTag` (`'Remove tag'`, only with `selection="single"`), `errorMissingName` /
|
|
@@ -1421,23 +1441,24 @@ always wins over its alias. When `create` is not set it is inferred as before: `
|
|
|
1421
1441
|
|
|
1422
1442
|
### Events
|
|
1423
1443
|
|
|
1424
|
-
| Event
|
|
1425
|
-
|
|
|
1426
|
-
| `apply`
|
|
1427
|
-
| `create`
|
|
1428
|
-
| `edit`
|
|
1429
|
-
| `delete`
|
|
1430
|
-
| `create-option`
|
|
1431
|
-
| `update-option`
|
|
1432
|
-
| `form-close`
|
|
1433
|
-
| `
|
|
1434
|
-
| `
|
|
1444
|
+
| Event | Payload | When |
|
|
1445
|
+
| ------------------ | --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
1446
|
+
| `apply` | `DsPickerOption[]` | Apply clicked: the full new selection, in `options` order. Panel closes. With `selection="single"`: `[picked]` on pick, `[]` on «Remove tag». |
|
|
1447
|
+
| `create` | `string` | The create row was clicked with `create="event"`; payload is the typed text. |
|
|
1448
|
+
| `edit` | `DsPickerOption` | Edit chosen in a row's ⋮ menu (with `rowActions="form"` the form opens too). |
|
|
1449
|
+
| `delete` | `DsPickerOption` | Delete confirmed in a row's ⋮ («Are you sure? · Yes, delete»). Set `deleting: true` on that tag in the handler: the ⋮ and the panel stay open with the row in loading until the app removes the tag (success) or clears `deleting` (error, the row is back to Delete). Without `deleting` the ⋮ closes. |
|
|
1450
|
+
| `create-option` | `{ name, color }` | The create form was submitted (name trimmed). The form stays open until `closeForm()`. |
|
|
1451
|
+
| `update-option` | `{ id, name, color }` | The edit form was submitted. Same: stays open until `closeForm()`. |
|
|
1452
|
+
| `form-close` | — | The form was dismissed (back, `closeForm()` or the panel closing). Clear `formError` here. |
|
|
1453
|
+
| `row-actions-open` | `DsPickerOption` | A row's ⋮ menu opened. Update that option's `deleteDisabled` if Delete should be blocked. |
|
|
1454
|
+
| `search` | `string` | The search text changed (filtering is local). |
|
|
1455
|
+
| `update:open` | `boolean` | The panel opened or closed. |
|
|
1435
1456
|
|
|
1436
1457
|
### Exposed
|
|
1437
1458
|
|
|
1438
|
-
| Member
|
|
1439
|
-
|
|
|
1440
|
-
| `closeForm()` | Returns the panel to the list. Call it once the save succeeded. Closing the panel also resets it to the list. |
|
|
1459
|
+
| Member | Description |
|
|
1460
|
+
| --------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
1461
|
+
| `closeForm(created?)` | Returns the panel to the list. Call it once the save succeeded. With the tag just created (create form, `selection="multiple"`) that tag enters the selection checked. Closing the panel also resets it to the list. |
|
|
1441
1462
|
|
|
1442
1463
|
### Slots
|
|
1443
1464
|
|
|
@@ -1479,6 +1500,11 @@ aria-expanded>`), so it never toggles the tag. It appears on row hover, on keybo
|
|
|
1479
1500
|
hover — the DS has no `#FFF7F7`, so the hover is `error-tint` (a touch stronger); the shadow
|
|
1480
1501
|
is the DS `shadow-dropdown`, not the export's `0 8px 28px`. Each item also carries its glyph
|
|
1481
1502
|
(`edit` / `delete`), as in production.
|
|
1503
|
+
- Delete confirms in place, as the Contact List prototype's `FolderRowMenu`: the first click turns
|
|
1504
|
+
the row into «Are you sure? · Yes, delete» (700, `error-shadow` on `error-tint`) and the menu
|
|
1505
|
+
grows to fit it on one line; the second emits `delete`. While the app deletes, the glyph is a
|
|
1506
|
+
16px `DsSpinner` (the prototype has no loading state). Escape, a click outside or another ⋮
|
|
1507
|
+
cancel the confirmation, never the loading.
|
|
1482
1508
|
- Footer with `create="form"`: «+ New …» is a `DsButton` tertiary (text) with the `add` glyph on the left,
|
|
1483
1509
|
Apply on the right; the panel stays 240px in the form view, which drops its padding to bring
|
|
1484
1510
|
its own rows.
|
|
@@ -3042,6 +3068,88 @@ their behaviour (one toast per corner, teleported straight to `<body>`).
|
|
|
3042
3068
|
|
|
3043
3069
|
---
|
|
3044
3070
|
|
|
3071
|
+
<!-- DsSkeleton · Feedback -->
|
|
3072
|
+
|
|
3073
|
+
## DsSkeleton
|
|
3074
|
+
|
|
3075
|
+
One grey block that stands in for content that is still loading: a text line, a box or a
|
|
3076
|
+
circle. **A primitive**: the app composes the blocks into its own layout (the profile, a list
|
|
3077
|
+
row…) and wraps the layout in `DsSkeletonGroup` so it is announced once. The examples at the
|
|
3078
|
+
end of this story are compositions an app would write; the library ships none.
|
|
3079
|
+
|
|
3080
|
+
- **Example · extension profile panel**: the extension's panel chrome, no folder picked yet,
|
|
3081
|
+
around the skeleton of a found profile before the reveal: the hero, the actions, the contact
|
|
3082
|
+
data card (one band and one masked row per type: work email, direct email, mobile phone) and the
|
|
3083
|
+
company card with its four rows. Each block is sized from the component it stands in for.
|
|
3084
|
+
- **Example · extension list panel**: the same chrome around the bulk bar and six contact rows
|
|
3085
|
+
of people SalesQL has no contact data for.
|
|
3086
|
+
- **Example · loaded vs loading**: the real pages next to their skeletons, to compare position
|
|
3087
|
+
and size at a glance.
|
|
3088
|
+
|
|
3089
|
+
In the extension these skeletons would replace the spinner the panel shows while the search
|
|
3090
|
+
runs; an unrevealed profile renders no rich sections, so neither does its skeleton.
|
|
3091
|
+
|
|
3092
|
+
### Props
|
|
3093
|
+
|
|
3094
|
+
| Prop | Type | Default | Description |
|
|
3095
|
+
| ---------- | -------------------------------------------- | --------------- | ------------------------------------------------------------ |
|
|
3096
|
+
| `shape` | `'text' \| 'rect' \| 'circle'` | `'text'` | `DS_SKELETON_SHAPES`. |
|
|
3097
|
+
| `width` | `number \| string` | see below | Number = px; string = any CSS length (`'45%'`). |
|
|
3098
|
+
| `height` | `number \| string` | see below | Same. A circle with only one side uses it for both. |
|
|
3099
|
+
| `radius` | `'control' \| 'card' \| 'card-lg' \| 'full'` | shape's default | `DS_SKELETON_RADII` (DS radius tokens). Ignored on a circle. |
|
|
3100
|
+
| `animated` | `boolean` | `true` | Pulses while mounted. Never under `prefers-reduced-motion`. |
|
|
3101
|
+
|
|
3102
|
+
| Shape | Width | Height | Radius |
|
|
3103
|
+
| -------- | ------ | ------- | --------------- |
|
|
3104
|
+
| `text` | `100%` | 10px | `full` |
|
|
3105
|
+
| `rect` | `100%` | 40px | `control` |
|
|
3106
|
+
| `circle` | 40px | = width | `full` (always) |
|
|
3107
|
+
|
|
3108
|
+
### Accessibility
|
|
3109
|
+
|
|
3110
|
+
- Every block is `aria-hidden`: it has nothing to say.
|
|
3111
|
+
- Wrap the layout in `DsSkeletonGroup` with the app's `label` («Loading profile»): it is
|
|
3112
|
+
`role="status"` and reads the label to screen readers only.
|
|
3113
|
+
|
|
3114
|
+
### Design parity
|
|
3115
|
+
|
|
3116
|
+
The extension export has no page-level skeleton. The look comes from the table skeleton of the
|
|
3117
|
+
Prospector AI Search export and from `DsContactPlaceholder`'s bar:
|
|
3118
|
+
|
|
3119
|
+
- Fill `slate-tint` (export `--primary-tint` `#e7e9ea`), lines 10px fully rounded (export
|
|
3120
|
+
10px / radius 5), boxes radius 4 (`control`), avatar box 40.
|
|
3121
|
+
- Motion: the export's `cd-pulse`, opacity 1 → 0.45 → 1, 1.4s ease-in-out, looped
|
|
3122
|
+
(`motion.$duration-pulse`, `motion.$easing-pulse`). Off under reduced motion.
|
|
3123
|
+
|
|
3124
|
+
**Logged delta:** the export draws the secondary line in `--grey-2` (`#e4e7eb`); every block
|
|
3125
|
+
here uses `slate-tint`, the two differ by a hair and one fill keeps the primitive simple.
|
|
3126
|
+
|
|
3127
|
+
---
|
|
3128
|
+
|
|
3129
|
+
<!-- DsSkeletonGroup · Feedback -->
|
|
3130
|
+
|
|
3131
|
+
## DsSkeletonGroup
|
|
3132
|
+
|
|
3133
|
+
Wraps a loading layout built from `DsSkeleton` blocks so it is announced **once**: the
|
|
3134
|
+
wrapper is `role="status"` and reads the app's `label` to screen readers only, while every
|
|
3135
|
+
block stays `aria-hidden`. The label lands 100ms after the wrapper mounts: screen readers skip a
|
|
3136
|
+
live region that is born with its text, so `v-if` on the group is safe. It draws nothing of its own (no layout, no spacing): the app lays
|
|
3137
|
+
out the blocks inside it. See `DsSkeleton` for composed examples (profile, list row).
|
|
3138
|
+
|
|
3139
|
+
### Props
|
|
3140
|
+
|
|
3141
|
+
| Prop | Type | Default | Description |
|
|
3142
|
+
| ------- | -------- | ------- | ------------------------------------------------------------------- |
|
|
3143
|
+
| `label` | `string` | `''` | What is loading («Loading profile»), already translated by the app. |
|
|
3144
|
+
|
|
3145
|
+
### Slots
|
|
3146
|
+
|
|
3147
|
+
| Slot | Description |
|
|
3148
|
+
| --------- | --------------------------------- |
|
|
3149
|
+
| `default` | The app's layout of `DsSkeleton`. |
|
|
3150
|
+
|
|
3151
|
+
---
|
|
3152
|
+
|
|
3045
3153
|
<!-- DsTooltip · Feedback -->
|
|
3046
3154
|
|
|
3047
3155
|
## DsTooltip
|
package/llms.txt
CHANGED
|
@@ -50,6 +50,8 @@
|
|
|
50
50
|
- DsAlert (Feedback): Inline banner for status/confirmation messages (success, info, warning, error). It
|
|
51
51
|
- DsModal (Feedback): Dialog with an optional header (title + close button) and footer action row, vertically
|
|
52
52
|
- DsNotification (Feedback): Fixed-position toast card for transient feedback (saved, updated, failed…). It renders
|
|
53
|
+
- DsSkeleton (Feedback): One grey block that stands in for content that is still loading: a text line, a box or a
|
|
54
|
+
- DsSkeletonGroup (Feedback): Wraps a loading layout built from `DsSkeleton` blocks so it is announced **once**: the
|
|
53
55
|
- DsTooltip (Feedback): Dark bubble that describes a wrapped trigger on hover or keyboard focus, with 4-way
|
|
54
56
|
- DsCheckbox (Forms): Checked / unchecked / indeterminate selection control. **Presentational only**.
|
|
55
57
|
- DsInput (Forms): Single-line text field — the DS "Input". **Presentational only**: it drives its own
|