@salesql/sql_components_vue3 3.27.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 +2 -0
- package/dist/constants/pickers.d.ts +9 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.es.js +2894 -2757
- 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 +18 -0
- package/dist/ui/DsSavedButton/DsSavedButton.story-state.d.ts +4 -0
- 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/llms-full.txt +125 -27
- package/llms.txt +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare const DS_SKELETON_SHAPES: {
|
|
2
|
+
/** A line of text: full width, 10px high, fully rounded. */
|
|
3
|
+
readonly TEXT: "text";
|
|
4
|
+
/** A box (avatar, logo, button, card): full width, 40px high, `control` radius. */
|
|
5
|
+
readonly RECT: "rect";
|
|
6
|
+
/** A round avatar or dot: 40px, always square and fully rounded. */
|
|
7
|
+
readonly CIRCLE: "circle";
|
|
8
|
+
};
|
|
9
|
+
export type DsSkeletonShape = (typeof DS_SKELETON_SHAPES)[keyof typeof DS_SKELETON_SHAPES];
|
|
10
|
+
/** The DS radius tokens a skeleton can take (`radius.scss`). */
|
|
11
|
+
export declare const DS_SKELETON_RADII: {
|
|
12
|
+
readonly CONTROL: "control";
|
|
13
|
+
readonly CARD: "card";
|
|
14
|
+
readonly CARD_LG: "card-lg";
|
|
15
|
+
readonly FULL: "full";
|
|
16
|
+
};
|
|
17
|
+
export type DsSkeletonRadius = (typeof DS_SKELETON_RADII)[keyof typeof DS_SKELETON_RADII];
|
|
18
|
+
export interface DsSkeletonProps {
|
|
19
|
+
shape?: DsSkeletonShape;
|
|
20
|
+
/** A number is px; a string is any CSS length (`'45%'`, `'8rem'`). */
|
|
21
|
+
width?: number | string;
|
|
22
|
+
/** A number is px; a string is any CSS length. A circle with only one side uses it for both. */
|
|
23
|
+
height?: number | string;
|
|
24
|
+
/** Overrides the shape's radius. Ignored on a circle. */
|
|
25
|
+
radius?: DsSkeletonRadius;
|
|
26
|
+
/** Pulses while mounted (never under reduced motion). */
|
|
27
|
+
animated?: boolean;
|
|
28
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
import { type DsSkeletonRadius, type DsSkeletonShape } from './DsSkeleton.types';
|
|
3
|
+
type Length = number | string;
|
|
4
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
5
|
+
shape: {
|
|
6
|
+
type: PropType<DsSkeletonShape>;
|
|
7
|
+
default: "text";
|
|
8
|
+
};
|
|
9
|
+
width: {
|
|
10
|
+
type: PropType<Length>;
|
|
11
|
+
default: undefined;
|
|
12
|
+
};
|
|
13
|
+
height: {
|
|
14
|
+
type: PropType<Length>;
|
|
15
|
+
default: undefined;
|
|
16
|
+
};
|
|
17
|
+
radius: {
|
|
18
|
+
type: PropType<DsSkeletonRadius>;
|
|
19
|
+
default: undefined;
|
|
20
|
+
};
|
|
21
|
+
animated: {
|
|
22
|
+
type: BooleanConstructor;
|
|
23
|
+
default: boolean;
|
|
24
|
+
};
|
|
25
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
26
|
+
shape: {
|
|
27
|
+
type: PropType<DsSkeletonShape>;
|
|
28
|
+
default: "text";
|
|
29
|
+
};
|
|
30
|
+
width: {
|
|
31
|
+
type: PropType<Length>;
|
|
32
|
+
default: undefined;
|
|
33
|
+
};
|
|
34
|
+
height: {
|
|
35
|
+
type: PropType<Length>;
|
|
36
|
+
default: undefined;
|
|
37
|
+
};
|
|
38
|
+
radius: {
|
|
39
|
+
type: PropType<DsSkeletonRadius>;
|
|
40
|
+
default: undefined;
|
|
41
|
+
};
|
|
42
|
+
animated: {
|
|
43
|
+
type: BooleanConstructor;
|
|
44
|
+
default: boolean;
|
|
45
|
+
};
|
|
46
|
+
}>> & Readonly<{}>, {
|
|
47
|
+
width: Length;
|
|
48
|
+
height: Length;
|
|
49
|
+
shape: DsSkeletonShape;
|
|
50
|
+
radius: DsSkeletonRadius;
|
|
51
|
+
animated: boolean;
|
|
52
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
53
|
+
export default _default;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
declare var __VLS_1: {};
|
|
2
|
+
type __VLS_Slots = {} & {
|
|
3
|
+
default?: (props: typeof __VLS_1) => any;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
6
|
+
label: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
11
|
+
label: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
}>> & Readonly<{}>, {
|
|
16
|
+
label: string;
|
|
17
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
18
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
19
|
+
export default _default;
|
|
20
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
21
|
+
new (): {
|
|
22
|
+
$slots: S;
|
|
23
|
+
};
|
|
24
|
+
};
|
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
|
|
@@ -1238,12 +1240,14 @@ The component never persists anything and never guesses that a save worked: it e
|
|
|
1238
1240
|
`DsSavedButtonCopy` keys (English defaults): `searchPlaceholder` (`'Search folders'`), `empty`
|
|
1239
1241
|
(`'No folders found'`, empty string = nothing), `create` (`'New Folder'`, the footer button),
|
|
1240
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,
|
|
1241
1245
|
`createFormTitle` (`'New Folder'`), `editFormTitle` (`'Edit Folder'`), `createSubmit`
|
|
1242
1246
|
(`'Create & Select'`), `editSubmit` (`'Save'`), `namePlaceholder` (`'Folder name'`), `setColor`
|
|
1243
1247
|
(`'Set Color'`), `back` (`'Back'`), `errorMissingName` / `errorTooLongName` (the form's own
|
|
1244
1248
|
defaults when unset).
|
|
1245
1249
|
|
|
1246
|
-
`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
|
|
1247
1251
|
`{ id: f.uuid, name: f.name, color: f.color }`.
|
|
1248
1252
|
|
|
1249
1253
|
#### Deprecated props (removed in 4.0)
|
|
@@ -1262,18 +1266,18 @@ or a `footer` slot) with `colors` = `'form'`, without = `'event'`, no footer = `
|
|
|
1262
1266
|
|
|
1263
1267
|
### Events
|
|
1264
1268
|
|
|
1265
|
-
| Event | Payload | When
|
|
1266
|
-
| ------------------ | --------------------- |
|
|
1267
|
-
| `pick` | `DsPickerOption` | A folder was chosen. The panel closes. PATCH `folder_ids` here.
|
|
1268
|
-
| `create` | `string` | The footer was clicked with `create="event"`; payload is the search text typed so far. The panel closes.
|
|
1269
|
-
| `edit` | `DsPickerOption` | Edit chosen in a row's ⋮ menu (with `rowActions="form"` the form opens too).
|
|
1270
|
-
| `delete` | `DsPickerOption` | Delete
|
|
1271
|
-
| `create-option` | `{ name, color }` | The create form was submitted (name trimmed). The form stays open until `closeForm()`.
|
|
1272
|
-
| `update-option` | `{ id, name, color }` | The edit form was submitted. Same: stays open until `closeForm()`.
|
|
1273
|
-
| `form-close` | — | The form was dismissed (back, `closeForm()` or the panel closing). Clear `formError` here.
|
|
1274
|
-
| `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).
|
|
1275
|
-
| `search` | `string` | The search text changed (filtering is local).
|
|
1276
|
-
| `update:open` | `boolean` | The panel opened or closed.
|
|
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. |
|
|
1277
1281
|
|
|
1278
1282
|
### Exposed
|
|
1279
1283
|
|
|
@@ -1326,6 +1330,11 @@ or a `footer` slot) with `colors` = `'form'`, without = `'event'`, no footer = `
|
|
|
1326
1330
|
hover — the DS has no `#FFF7F7`, so the hover is `error-tint` (a touch stronger); the shadow
|
|
1327
1331
|
is the DS `shadow-dropdown`, not the export's `0 8px 28px`. Each item also carries its glyph
|
|
1328
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.
|
|
1329
1338
|
|
|
1330
1339
|
---
|
|
1331
1340
|
|
|
@@ -1404,6 +1413,8 @@ what Delete needs and update the option while the menu is open.
|
|
|
1404
1413
|
`searchPlaceholder` (`'Search tags'`), `empty` (`'No tags found'`, empty string = nothing), `more`
|
|
1405
1414
|
(`''`, the `+N` chip's accessible name), `createRow` (`'Create'`), `newButton` (`'New Tag'`),
|
|
1406
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,
|
|
1407
1418
|
`createFormTitle` (`'New Tag'`), `editFormTitle` (`'Edit Tag'`), `createSubmit` (`'Create'`),
|
|
1408
1419
|
`editSubmit` (`'Save'`), `namePlaceholder` (`'Tag name'`), `setColor` (`'Set Color'`), `back`
|
|
1409
1420
|
(`'Back'`), `removeTag` (`'Remove tag'`, only with `selection="single"`), `errorMissingName` /
|
|
@@ -1430,18 +1441,18 @@ always wins over its alias. When `create` is not set it is inferred as before: `
|
|
|
1430
1441
|
|
|
1431
1442
|
### Events
|
|
1432
1443
|
|
|
1433
|
-
| Event | Payload | When
|
|
1434
|
-
| ------------------ | --------------------- |
|
|
1435
|
-
| `apply` | `DsPickerOption[]` | Apply clicked: the full new selection, in `options` order. Panel closes. With `selection="single"`: `[picked]` on pick, `[]` on «Remove tag».
|
|
1436
|
-
| `create` | `string` | The create row was clicked with `create="event"`; payload is the typed text.
|
|
1437
|
-
| `edit` | `DsPickerOption` | Edit chosen in a row's ⋮ menu (with `rowActions="form"` the form opens too).
|
|
1438
|
-
| `delete` | `DsPickerOption` | Delete
|
|
1439
|
-
| `create-option` | `{ name, color }` | The create form was submitted (name trimmed). The form stays open until `closeForm()`.
|
|
1440
|
-
| `update-option` | `{ id, name, color }` | The edit form was submitted. Same: stays open until `closeForm()`.
|
|
1441
|
-
| `form-close` | — | The form was dismissed (back, `closeForm()` or the panel closing). Clear `formError` here.
|
|
1442
|
-
| `row-actions-open` | `DsPickerOption` | A row's ⋮ menu opened. Update that option's `deleteDisabled` if Delete should be blocked.
|
|
1443
|
-
| `search` | `string` | The search text changed (filtering is local).
|
|
1444
|
-
| `update:open` | `boolean` | The panel opened or closed.
|
|
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. |
|
|
1445
1456
|
|
|
1446
1457
|
### Exposed
|
|
1447
1458
|
|
|
@@ -1489,6 +1500,11 @@ aria-expanded>`), so it never toggles the tag. It appears on row hover, on keybo
|
|
|
1489
1500
|
hover — the DS has no `#FFF7F7`, so the hover is `error-tint` (a touch stronger); the shadow
|
|
1490
1501
|
is the DS `shadow-dropdown`, not the export's `0 8px 28px`. Each item also carries its glyph
|
|
1491
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.
|
|
1492
1508
|
- Footer with `create="form"`: «+ New …» is a `DsButton` tertiary (text) with the `add` glyph on the left,
|
|
1493
1509
|
Apply on the right; the panel stays 240px in the form view, which drops its padding to bring
|
|
1494
1510
|
its own rows.
|
|
@@ -3052,6 +3068,88 @@ their behaviour (one toast per corner, teleported straight to `<body>`).
|
|
|
3052
3068
|
|
|
3053
3069
|
---
|
|
3054
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
|
+
|
|
3055
3153
|
<!-- DsTooltip · Feedback -->
|
|
3056
3154
|
|
|
3057
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
|