@salesql/sql_components_vue3 3.11.0 → 3.13.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/useMenuKeyboard.d.ts +7 -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 +2567 -2299
- package/dist/index.es.js.map +1 -1
- package/dist/sql_components_vue3.css +1 -1
- package/dist/ui/DsActionMenu/DsActionMenu.types.d.ts +25 -0
- package/dist/ui/DsActionMenu/DsActionMenu.vue.d.ts +79 -0
- package/dist/ui/DsActionMenu/index.d.ts +2 -0
- package/dist/ui/DsButton/DsButton.types.d.ts +1 -0
- package/dist/ui/DsClampedText/DsClampedText.types.d.ts +18 -0
- package/dist/ui/DsClampedText/DsClampedText.vue.d.ts +58 -0
- package/dist/ui/DsClampedText/index.d.ts +2 -0
- package/dist/ui/DsContactList/DsContactList.vue.d.ts +1 -1
- package/dist/ui/DsPill/DsPill.types.d.ts +9 -1
- package/dist/ui/DsPill/DsPill.vue.d.ts +13 -0
- package/dist/ui/DsPopover/DsPopover.vue.d.ts +1 -1
- package/dist/ui/DsProfileCompanyCard/DsProfileCompanyCard.vue.d.ts +2 -2
- package/dist/ui/DsTextarea/DsTextarea.types.d.ts +12 -0
- package/dist/ui/DsTextarea/DsTextarea.vue.d.ts +45 -2
- package/llms-full.txt +111 -40
- package/llms.txt +2 -1
- package/package.json +1 -1
|
@@ -135,8 +135,8 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
135
135
|
correctLabel: string;
|
|
136
136
|
incorrectLabel: string;
|
|
137
137
|
emptyLabel: string;
|
|
138
|
-
maskedLabel: string;
|
|
139
138
|
items: DsContactItem[];
|
|
139
|
+
maskedLabel: string;
|
|
140
140
|
sections: DsContactSection[];
|
|
141
141
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
142
142
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
@@ -1,9 +1,17 @@
|
|
|
1
|
+
export declare const DS_PILL_TONES: {
|
|
2
|
+
readonly DEFAULT: "default";
|
|
3
|
+
readonly INFO: "info";
|
|
4
|
+
readonly ERROR: "error";
|
|
5
|
+
};
|
|
6
|
+
export type DsPillTone = (typeof DS_PILL_TONES)[keyof typeof DS_PILL_TONES];
|
|
1
7
|
export interface DsPillProps {
|
|
8
|
+
/** Visual tone; `info` and `error` add a 1px border and a tinted background. */
|
|
9
|
+
tone?: DsPillTone;
|
|
2
10
|
/** Material Symbols ligature name; when set, renders a trailing icon button. */
|
|
3
11
|
icon?: string;
|
|
4
12
|
/**
|
|
5
13
|
* Free-form CSS color (e.g. a dynamic tag/folder color chosen by the user);
|
|
6
|
-
* when empty, falls back to the
|
|
14
|
+
* when empty, falls back to the tone background. When set, it wins over it.
|
|
7
15
|
*/
|
|
8
16
|
background?: string;
|
|
9
17
|
/** Accessible name for the trailing icon button (icon-only control). */
|
|
@@ -1,8 +1,15 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
import { type DsPillTone } from './DsPill.types';
|
|
1
3
|
declare var __VLS_1: {};
|
|
2
4
|
type __VLS_Slots = {} & {
|
|
3
5
|
default?: (props: typeof __VLS_1) => any;
|
|
4
6
|
};
|
|
5
7
|
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
8
|
+
tone: {
|
|
9
|
+
type: PropType<DsPillTone>;
|
|
10
|
+
default: "default";
|
|
11
|
+
validator: (value: string) => boolean;
|
|
12
|
+
};
|
|
6
13
|
icon: {
|
|
7
14
|
type: StringConstructor;
|
|
8
15
|
default: string;
|
|
@@ -18,6 +25,11 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
18
25
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
19
26
|
click: (...args: any[]) => void;
|
|
20
27
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
28
|
+
tone: {
|
|
29
|
+
type: PropType<DsPillTone>;
|
|
30
|
+
default: "default";
|
|
31
|
+
validator: (value: string) => boolean;
|
|
32
|
+
};
|
|
21
33
|
icon: {
|
|
22
34
|
type: StringConstructor;
|
|
23
35
|
default: string;
|
|
@@ -33,6 +45,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
33
45
|
}>> & Readonly<{
|
|
34
46
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
35
47
|
}>, {
|
|
48
|
+
tone: DsPillTone;
|
|
36
49
|
background: string;
|
|
37
50
|
icon: string;
|
|
38
51
|
iconLabel: string;
|
|
@@ -98,6 +98,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
98
98
|
"onUpdate:open"?: ((...args: any[]) => any) | undefined;
|
|
99
99
|
}>, {
|
|
100
100
|
width: string;
|
|
101
|
+
flush: boolean;
|
|
101
102
|
open: boolean;
|
|
102
103
|
closeOnEscape: boolean;
|
|
103
104
|
block: boolean;
|
|
@@ -107,7 +108,6 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
107
108
|
growTo: string;
|
|
108
109
|
closeOnOutside: boolean;
|
|
109
110
|
triggerOnClick: boolean;
|
|
110
|
-
flush: boolean;
|
|
111
111
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
112
112
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
113
113
|
export default _default;
|
|
@@ -130,12 +130,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
130
130
|
websiteLabel: string;
|
|
131
131
|
linkedinUrl: string;
|
|
132
132
|
linkedinLabel: string;
|
|
133
|
+
showMoreLabel: string;
|
|
134
|
+
showLessLabel: string;
|
|
133
135
|
industry: string;
|
|
134
136
|
employees: string;
|
|
135
137
|
about: string;
|
|
136
138
|
aboutLabel: string;
|
|
137
|
-
showMoreLabel: string;
|
|
138
|
-
showLessLabel: string;
|
|
139
139
|
fields: DsProfileField[];
|
|
140
140
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
141
141
|
export default _default;
|
|
@@ -5,6 +5,12 @@ export declare const DS_TEXTAREA_RESIZE: {
|
|
|
5
5
|
readonly BOTH: "both";
|
|
6
6
|
};
|
|
7
7
|
export type DsTextareaResize = (typeof DS_TEXTAREA_RESIZE)[keyof typeof DS_TEXTAREA_RESIZE];
|
|
8
|
+
export declare const DS_TEXTAREA_VARIANTS: {
|
|
9
|
+
readonly DEFAULT: "default";
|
|
10
|
+
/** @deprecated — identical to default; will be removed */
|
|
11
|
+
readonly EMPHASIS: "emphasis";
|
|
12
|
+
};
|
|
13
|
+
export type DsTextareaVariant = (typeof DS_TEXTAREA_VARIANTS)[keyof typeof DS_TEXTAREA_VARIANTS];
|
|
8
14
|
export interface DsTextareaProps {
|
|
9
15
|
modelValue?: string;
|
|
10
16
|
placeholder?: string;
|
|
@@ -12,5 +18,11 @@ export interface DsTextareaProps {
|
|
|
12
18
|
error?: boolean;
|
|
13
19
|
errorMessage?: string;
|
|
14
20
|
disabled?: boolean;
|
|
21
|
+
readonly?: boolean;
|
|
22
|
+
autoGrow?: boolean;
|
|
23
|
+
minRows?: number;
|
|
24
|
+
maxRows?: number;
|
|
15
25
|
resize?: DsTextareaResize;
|
|
26
|
+
/** @deprecated — identical to default; will be removed. Leave it unset, `'emphasis'` changes nothing. */
|
|
27
|
+
variant?: DsTextareaVariant;
|
|
16
28
|
}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { type PropType } from 'vue';
|
|
2
|
-
import { type DsTextareaResize } from './DsTextarea.types';
|
|
3
|
-
declare
|
|
2
|
+
import { type DsTextareaResize, type DsTextareaVariant } from './DsTextarea.types';
|
|
3
|
+
declare var __VLS_1: {};
|
|
4
|
+
type __VLS_Slots = {} & {
|
|
5
|
+
leading?: (props: typeof __VLS_1) => any;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
8
|
placeholder: {
|
|
5
9
|
type: StringConstructor;
|
|
6
10
|
default: string;
|
|
@@ -10,6 +14,16 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
10
14
|
default: number;
|
|
11
15
|
};
|
|
12
16
|
disabled: BooleanConstructor;
|
|
17
|
+
readonly: BooleanConstructor;
|
|
18
|
+
autoGrow: BooleanConstructor;
|
|
19
|
+
minRows: {
|
|
20
|
+
type: NumberConstructor;
|
|
21
|
+
default: number;
|
|
22
|
+
};
|
|
23
|
+
maxRows: {
|
|
24
|
+
type: NumberConstructor;
|
|
25
|
+
default: undefined;
|
|
26
|
+
};
|
|
13
27
|
error: BooleanConstructor;
|
|
14
28
|
errorMessage: {
|
|
15
29
|
type: StringConstructor;
|
|
@@ -27,6 +41,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
27
41
|
type: PropType<DsTextareaResize>;
|
|
28
42
|
default: "vertical";
|
|
29
43
|
};
|
|
44
|
+
variant: {
|
|
45
|
+
type: PropType<DsTextareaVariant>;
|
|
46
|
+
default: "default";
|
|
47
|
+
};
|
|
30
48
|
modelValue: {
|
|
31
49
|
type: PropType<string>;
|
|
32
50
|
};
|
|
@@ -44,6 +62,16 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
44
62
|
default: number;
|
|
45
63
|
};
|
|
46
64
|
disabled: BooleanConstructor;
|
|
65
|
+
readonly: BooleanConstructor;
|
|
66
|
+
autoGrow: BooleanConstructor;
|
|
67
|
+
minRows: {
|
|
68
|
+
type: NumberConstructor;
|
|
69
|
+
default: number;
|
|
70
|
+
};
|
|
71
|
+
maxRows: {
|
|
72
|
+
type: NumberConstructor;
|
|
73
|
+
default: undefined;
|
|
74
|
+
};
|
|
47
75
|
error: BooleanConstructor;
|
|
48
76
|
errorMessage: {
|
|
49
77
|
type: StringConstructor;
|
|
@@ -61,6 +89,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
61
89
|
type: PropType<DsTextareaResize>;
|
|
62
90
|
default: "vertical";
|
|
63
91
|
};
|
|
92
|
+
variant: {
|
|
93
|
+
type: PropType<DsTextareaVariant>;
|
|
94
|
+
default: "default";
|
|
95
|
+
};
|
|
64
96
|
modelValue: {
|
|
65
97
|
type: PropType<string>;
|
|
66
98
|
};
|
|
@@ -70,6 +102,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
70
102
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
71
103
|
}>, {
|
|
72
104
|
resize: DsTextareaResize;
|
|
105
|
+
variant: DsTextareaVariant;
|
|
73
106
|
disabled: boolean;
|
|
74
107
|
error: boolean;
|
|
75
108
|
name: string;
|
|
@@ -77,5 +110,15 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
77
110
|
rows: number;
|
|
78
111
|
placeholder: string;
|
|
79
112
|
errorMessage: string;
|
|
113
|
+
readonly: boolean;
|
|
114
|
+
autoGrow: boolean;
|
|
115
|
+
minRows: number;
|
|
116
|
+
maxRows: number;
|
|
80
117
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
118
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
81
119
|
export default _default;
|
|
120
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
121
|
+
new (): {
|
|
122
|
+
$slots: S;
|
|
123
|
+
};
|
|
124
|
+
};
|
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.13.0)
|
|
2
2
|
|
|
3
3
|
> Librería de componentes Vue 3 (SalesQL) Presentational-only Vue 3 components (props in, events out; the consuming app owns state, i18n and data). This file is auto-generated from the component stories for LLM/agent consumption — do not edit by hand.
|
|
4
4
|
|
|
@@ -37,7 +37,7 @@ Components that draw an icon emit `<i class="material-symbols-filled">{ligature}
|
|
|
37
37
|
|
|
38
38
|
Components size their own glyphs (their scoped rules outrank the 20px default), so the class only has to supply the family and fill. Consumers with a `#leading`/`#trailing` slot may pass any element they like instead.
|
|
39
39
|
|
|
40
|
-
## Components (
|
|
40
|
+
## Components (53)
|
|
41
41
|
|
|
42
42
|
- **DsCompanyCard** (Company) — The card the prospector opens from its company cell — the design export's `CompanyDetails`
|
|
43
43
|
- **DsCompanyLogo** (Company) — A company's logo in the DS hairline box: white, 1px `slate-tint` ring, 4px radius, the image
|
|
@@ -59,12 +59,13 @@ Components size their own glyphs (their scoped rules outrank the 20px default),
|
|
|
59
59
|
- **DsSpinner** (Core) — Indeterminate loading indicator — a circular SVG spinner. **Presentational only**: no
|
|
60
60
|
- **DsTag** (Core) — Small bordered chip with an optional × close control. **Presentational only**: `close`
|
|
61
61
|
- **DsCell** (Data) — A single `<td>` cell in the `DsTable` compound API. **Presentational only**: no props
|
|
62
|
+
- **DsClampedText** (Data) — Text clamped to N lines, with a «Show more» / «Show less» toggle. Extracted from the About of
|
|
62
63
|
- **DsContactValue** (Data) — A single email/phone row: a verification glyph, the value itself, and a type badge
|
|
63
64
|
- **DsCustomTag** (Data) — Static status chip (tinted background + matching border/text), non-interactive.
|
|
64
65
|
- **DsDataCard** (Data) — The signature SalesQL emails/phones card: a header (icon, title, sort/edit/collapse/close
|
|
65
66
|
- **DsEmptyState** (Data) — Centered empty-state panel for empty tables, lists, or search results: an optional
|
|
66
67
|
- **DsPaginator** (Data) — Page-window pagination control: prev/next chevrons, numbered page buttons that collapse
|
|
67
|
-
- **DsPill** (Data) — Small
|
|
68
|
+
- **DsPill** (Data) — Small capsule with a free-form background color (e.g. a dynamic tag/folder color) or a
|
|
68
69
|
- **DsPillWithBorder** (Data) — Bordered pill/chip rendered as a real `<button>`, with an optional leading icon slot and
|
|
69
70
|
- **DsProfileCard** (Data) — One card of the full-profile drawer — the design export's `ProfileCard`
|
|
70
71
|
- **DsRow** (Data) — A `<tr>` row for the `DsTable` compound API, with hover and selected treatment;
|
|
@@ -175,7 +176,8 @@ design export's `ProfileCompanyCard` (`fullprofile/_bundle.jsx`), SALESQL-3298.
|
|
|
175
176
|
- **Header:** `DsCompanyLogo` (36px), the name, «industry · employees» under it (whichever
|
|
176
177
|
arrive; no loose separator), a globe link to the website (with a tooltip) and LinkedIn's
|
|
177
178
|
"in" badge.
|
|
178
|
-
- **About:** the description clamped to three lines, with a «Show more» / «Show less» toggle
|
|
179
|
+
- **About:** the description clamped to three lines, with a «Show more» / «Show less» toggle
|
|
180
|
+
that appears only when the text is actually cut (`DsClampedText`).
|
|
179
181
|
- **Fields:** one label / value row per field, in the order received — the export's
|
|
180
182
|
Headquarters, **HQ phone**, **Founded**, Website. A field with an empty value is **not
|
|
181
183
|
rendered**; one with `href` is a link in the accent ink.
|
|
@@ -1091,21 +1093,21 @@ next.
|
|
|
1091
1093
|
|
|
1092
1094
|
### Props
|
|
1093
1095
|
|
|
1094
|
-
| Prop | Type
|
|
1095
|
-
| ------------ |
|
|
1096
|
-
| `variant` | `'default' \| 'primary' \| 'secondary' \| 'tertiary' \| 'quaternary' \| 'quinary' \| 'senary' \| 'dotted' \| 'danger' \| 'warning'` | `'default'` | Visual style. `warning` is a legacy solid-red alias of `danger` — prefer `danger`. |
|
|
1097
|
-
| `size` | `'small' \| 'medium' \| 'large' \| 'xlarge'`
|
|
1098
|
-
| `nativeType` | `'button' \| 'submit' \| 'reset'`
|
|
1099
|
-
| `leftIcon` | `string`
|
|
1100
|
-
| `rightIcon` | `string`
|
|
1101
|
-
| `ariaLabel` | `string`
|
|
1102
|
-
| `disabled` | `boolean`
|
|
1103
|
-
| `loading` | `boolean`
|
|
1104
|
-
| `circle` | `boolean`
|
|
1105
|
-
| `square` | `boolean`
|
|
1106
|
-
| `noPadding` | `boolean`
|
|
1107
|
-
| `selected` | `boolean`
|
|
1108
|
-
| `autofocus` | `boolean`
|
|
1096
|
+
| Prop | Type | Default | Description |
|
|
1097
|
+
| ------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
1098
|
+
| `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`. |
|
|
1099
|
+
| `size` | `'small' \| 'medium' \| 'large' \| 'xlarge'` | `'medium'` | Control height + padding. |
|
|
1100
|
+
| `nativeType` | `'button' \| 'submit' \| 'reset'` | `'button'` | Native `<button type>`. |
|
|
1101
|
+
| `leftIcon` | `string` | `''` | Material Icon name rendered before the label (or use the `#leading` slot). |
|
|
1102
|
+
| `rightIcon` | `string` | `''` | Material Icon name rendered after the label (or use the `#trailing` slot). |
|
|
1103
|
+
| `ariaLabel` | `string` | `''` | Accessible label — required for icon-only (`circle`/`square`) buttons. |
|
|
1104
|
+
| `disabled` | `boolean` | `false` | Disables the button and blocks `click`. |
|
|
1105
|
+
| `loading` | `boolean` | `false` | Shows a spinner overlay, natively disables the button, and blocks `click`. |
|
|
1106
|
+
| `circle` | `boolean` | `false` | Round icon-only button (width === height). |
|
|
1107
|
+
| `square` | `boolean` | `false` | Flat 4px-radius icon-only button (width === height). |
|
|
1108
|
+
| `noPadding` | `boolean` | `false` | Zero the square padding for a tight glyph (only takes effect with `square`). |
|
|
1109
|
+
| `selected` | `boolean` | `false` | Toggle state — accent outline + fill, sets `aria-pressed`. |
|
|
1110
|
+
| `autofocus` | `boolean` | `false` | Native `autofocus`. |
|
|
1109
1111
|
|
|
1110
1112
|
### Events
|
|
1111
1113
|
|
|
@@ -1128,6 +1130,8 @@ next.
|
|
|
1128
1130
|
|
|
1129
1131
|
- `primary` for the page's main call to action; `secondary`/`tertiary` for lower
|
|
1130
1132
|
emphasis; `danger` for destructive actions (prefer it over the legacy `warning`).
|
|
1133
|
+
- `ai` for the main action of an AI feature (e.g. "Search" / "Search again" in AI Search);
|
|
1134
|
+
white label (2.7:1 on the gradient start — below AA, brand colors).
|
|
1131
1135
|
- Always set `ariaLabel` on `circle`/`square` icon-only buttons.
|
|
1132
1136
|
- Use `loading` for in-flight async actions instead of swapping in a separate
|
|
1133
1137
|
`DsSpinner`.
|
|
@@ -1241,6 +1245,50 @@ parent `DsTable`/`DsRow`.
|
|
|
1241
1245
|
|
|
1242
1246
|
---
|
|
1243
1247
|
|
|
1248
|
+
<!-- DsClampedText · Data -->
|
|
1249
|
+
|
|
1250
|
+
## DsClampedText
|
|
1251
|
+
|
|
1252
|
+
Text clamped to N lines, with a «Show more» / «Show less» toggle. Extracted from the About of
|
|
1253
|
+
`DsProfileCompanyCard` (the design export's `ProfileCompanyCard`), which uses it without any
|
|
1254
|
+
visual change; the full profile's «About» of the person uses it too.
|
|
1255
|
+
|
|
1256
|
+
- **Clamp:** `-webkit-line-clamp` driven by the `lines` prop (default 3).
|
|
1257
|
+
- **Toggle placement:** with `label` it sits beside the caption, above the text (the company
|
|
1258
|
+
card's About); without it, below the text.
|
|
1259
|
+
- **Toggle only when clamped:** the component measures the text (scroll vs client height) on
|
|
1260
|
+
mount, when `text` or `lines` change and when its width changes (`ResizeObserver`, skipped
|
|
1261
|
+
where it does not exist). A text that fits renders no toggle. Expanded, the toggle stays so
|
|
1262
|
+
the text can be clamped again.
|
|
1263
|
+
- **Empty text** renders nothing.
|
|
1264
|
+
|
|
1265
|
+
### Props
|
|
1266
|
+
|
|
1267
|
+
| Prop | Type | Default | Description |
|
|
1268
|
+
| -------------------- | --------- | ------- | ---------------------------------------------- |
|
|
1269
|
+
| `text` | `string` | — | The text (required). Empty → nothing rendered. |
|
|
1270
|
+
| `lines` | `number` | `3` | Lines shown while clamped. |
|
|
1271
|
+
| `showMoreLabel` | `string` | `''` | Toggle text while clamped. |
|
|
1272
|
+
| `showLessLabel` | `string` | `''` | Toggle text while expanded. |
|
|
1273
|
+
| `label` | `string` | `''` | Optional caption; moves the toggle beside it. |
|
|
1274
|
+
| `preserveLineBreaks` | `boolean` | `false` | Keep the text's own line breaks (`pre-line`). |
|
|
1275
|
+
|
|
1276
|
+
No events and no slots: the expanded state is internal.
|
|
1277
|
+
|
|
1278
|
+
### Accessibility
|
|
1279
|
+
|
|
1280
|
+
- The toggle is a `<button type="button">` with `aria-expanded` and `aria-controls` pointing
|
|
1281
|
+
at the text.
|
|
1282
|
+
- Labels arrive already translated; the component owns no copy.
|
|
1283
|
+
|
|
1284
|
+
### Design parity (export `ProfileCompanyCard`, About)
|
|
1285
|
+
|
|
1286
|
+
- Label: 10.5px / 700 / .5px uppercase grey. Toggle: 12px / 600 accent, focus ring 2px
|
|
1287
|
+
`accent-mid`. Text: 13px / 1.5 slate, 3px under the head row.
|
|
1288
|
+
- Off-scale 10.5px follows the export (Diego, 2026-09-23).
|
|
1289
|
+
|
|
1290
|
+
---
|
|
1291
|
+
|
|
1244
1292
|
<!-- DsContactValue · Data -->
|
|
1245
1293
|
|
|
1246
1294
|
## DsContactValue
|
|
@@ -1473,17 +1521,24 @@ its events.
|
|
|
1473
1521
|
|
|
1474
1522
|
## DsPill
|
|
1475
1523
|
|
|
1476
|
-
Small
|
|
1477
|
-
|
|
1524
|
+
Small capsule with a free-form background color (e.g. a dynamic tag/folder color) or a
|
|
1525
|
+
bordered `info` / `error` tone, with an optional trailing icon button. **Presentational only**:
|
|
1478
1526
|
label via the default slot, intent out via `click`.
|
|
1479
1527
|
|
|
1480
1528
|
### Props
|
|
1481
1529
|
|
|
1482
|
-
| Prop | Type
|
|
1483
|
-
| ------------ |
|
|
1484
|
-
| `
|
|
1485
|
-
| `
|
|
1486
|
-
| `
|
|
1530
|
+
| Prop | Type | Default | Description |
|
|
1531
|
+
| ------------ | -------------------------------- | ----------- | --------------------------------------------------------------------------------------------------------------------------------- |
|
|
1532
|
+
| `tone` | `'default' \| 'info' \| 'error'` | `'default'` | `default`: solid grey (`$slate-soft`), white text, no border. `info` / `error`: 1px border, tinted background, tone-colored text. |
|
|
1533
|
+
| `icon` | `string` | `''` | Material Symbols ligature name; when set, renders a trailing icon button. |
|
|
1534
|
+
| `background` | `string` | `''` | Free-form CSS color (e.g. a dynamic tag/folder color); when set it wins over the tone background. |
|
|
1535
|
+
| `iconLabel` | `string` | `''` | Accessible name for the trailing icon button (icon-only control). |
|
|
1536
|
+
|
|
1537
|
+
The bordered tones use the DS `shadow` step for border, text and icon (`$info-shadow`,
|
|
1538
|
+
`$error-shadow`) on the matching `tint` background. The box is `border-box`, so the pill stays
|
|
1539
|
+
20px tall. The text is bold by default; slotted markup can set its own weight (e.g. a regular
|
|
1540
|
+
label next to a bold value). A bare `<strong>` renders at 900 (`bolder` than the pill's 700), so
|
|
1541
|
+
keep the value in a plain element and only override the label.
|
|
1487
1542
|
|
|
1488
1543
|
### Events
|
|
1489
1544
|
|
|
@@ -1503,6 +1558,7 @@ label via the default slot, intent out via `click`.
|
|
|
1503
1558
|
|
|
1504
1559
|
- Tags/labels with a dynamic color (folder color, CRM tag color), optionally with a way
|
|
1505
1560
|
to remove/edit them via the icon button.
|
|
1561
|
+
- Removable filter chips: `tone="info"` (or `error` for excluded values) with `icon="close"`.
|
|
1506
1562
|
- For a bordered, button-styled filter chip instead, see `DsPillWithBorder`.
|
|
1507
1563
|
|
|
1508
1564
|
---
|
|
@@ -2091,7 +2147,7 @@ via `v-model` (its `modelValue` is the current string value).
|
|
|
2091
2147
|
|
|
2092
2148
|
- `aria-invalid` is set when `error` is true; `aria-describedby` links to the error message (`{id}-error`) when both `id` and `errorMessage` are present.
|
|
2093
2149
|
- The password-reveal button is icon-only, so it only renders once `toggleLabel` is supplied (its `aria-label`), and exposes `aria-pressed` for its toggled state.
|
|
2094
|
-
-
|
|
2150
|
+
- Focus is shown by the dark grey border alone, for every `type` (search included): the typed text and the placeholder keep their weight.
|
|
2095
2151
|
- Exposes `focus()` and `focusAtEnd()` via `defineExpose` for imperative control (e.g. focusing a field after a panel opens) from the consuming app.
|
|
2096
2152
|
|
|
2097
2153
|
### When to use
|
|
@@ -2131,7 +2187,7 @@ only the current selection it's handed via `item`.
|
|
|
2131
2187
|
- `aria-haspopup="listbox"` signals that activating the button opens a picker.
|
|
2132
2188
|
- The label truncates with ellipsis at ~200px so long names stay legible; the full name is still the button's accessible name via the visible text node.
|
|
2133
2189
|
- Pass `ariaLabel` whenever the empty state has no `emptyTitle` — otherwise the button has no accessible name.
|
|
2134
|
-
- Native `<button>` gets Enter/Space activation
|
|
2190
|
+
- Native `<button>` gets Enter/Space activation for free; keyboard focus (`:focus-visible`) turns the border dark grey, with no ring.
|
|
2135
2191
|
|
|
2136
2192
|
### When to use
|
|
2137
2193
|
|
|
@@ -2288,6 +2344,7 @@ is false, an array of values when `multiple` is true.
|
|
|
2288
2344
|
|
|
2289
2345
|
- Implements the WAI-ARIA APG "Collapsible Dropdown Listbox" (select-only combobox) pattern: `aria-haspopup="listbox"`, `aria-expanded`, `aria-controls`, `role="listbox"`/`role="option"`, `aria-selected`, `aria-activedescendant`.
|
|
2290
2346
|
- Full keyboard support on the trigger: `ArrowUp`/`ArrowDown` open/navigate, `Home`/`End` jump, `Enter`/`Space` select, `Escape` closes (and stops propagation, so an ancestor `DsModal` doesn't also close), `Tab` collapses without stealing focus.
|
|
2347
|
+
- Focus (and the open state) turns the control's border dark grey, the same token as the text fields; there is no ring.
|
|
2291
2348
|
- Grouped options (`option.group`) render as real `role="group"` regions labelled by their header; headers are never focusable/selectable.
|
|
2292
2349
|
- When `filterable`, the search input carries `role="combobox"` and owns `aria-activedescendant` while open (focus moves there instead of staying on the trigger).
|
|
2293
2350
|
- The `filterSummary` clear button is icon-only, so `clearLabel` maps to its `aria-label`.
|
|
@@ -2346,17 +2403,28 @@ is the current string value).
|
|
|
2346
2403
|
|
|
2347
2404
|
### Props
|
|
2348
2405
|
|
|
2349
|
-
| Prop | Type | Default | Description
|
|
2350
|
-
| -------------- | ------------------------------------------------ | ------------ |
|
|
2351
|
-
| `modelValue` | `string` | `''` | v-model — current text value.
|
|
2352
|
-
| `placeholder` | `string` | `''` | Native placeholder text.
|
|
2353
|
-
| `rows` | `number` | `4` | Native `rows` attribute (visible line count).
|
|
2354
|
-
| `disabled` | `boolean` | `false` | Disables the control.
|
|
2355
|
-
| `
|
|
2356
|
-
| `
|
|
2357
|
-
| `
|
|
2358
|
-
| `
|
|
2359
|
-
| `
|
|
2406
|
+
| Prop | Type | Default | Description |
|
|
2407
|
+
| -------------- | ------------------------------------------------ | ------------ | ------------------------------------------------------------------------------------------------ |
|
|
2408
|
+
| `modelValue` | `string` | `''` | v-model — current text value. |
|
|
2409
|
+
| `placeholder` | `string` | `''` | Native placeholder text. |
|
|
2410
|
+
| `rows` | `number` | `4` | Native `rows` attribute (visible line count). |
|
|
2411
|
+
| `disabled` | `boolean` | `false` | Disables the control. |
|
|
2412
|
+
| `readonly` | `boolean` | `false` | Focusable and selectable but not editable; no disabled look, never emits `update:modelValue`. |
|
|
2413
|
+
| `autoGrow` | `boolean` | `false` | Grow with the content between `minRows` and `maxRows`, then scroll. Turns the resize handle off. |
|
|
2414
|
+
| `minRows` | `number` | `1` | Minimum visible rows with `autoGrow` (it replaces `rows` as the native attribute). |
|
|
2415
|
+
| `maxRows` | `number` | `undefined` | Maximum rows with `autoGrow`; beyond it the control scrolls. No cap when omitted. |
|
|
2416
|
+
| `error` | `boolean` | `false` | Error visual state (`aria-invalid`, coral border). |
|
|
2417
|
+
| `errorMessage` | `string` | `''` | Message shown under the field when `error` is true. |
|
|
2418
|
+
| `name` | `string` | `''` | Native `name` attribute. |
|
|
2419
|
+
| `id` | `string` | `''` | Native `id`; also links the error message via `aria-describedby`. |
|
|
2420
|
+
| `variant` | `'default' \| 'emphasis'` | `'default'` | Deprecated: `emphasis` is identical to `default` and will be removed. Leave it unset. |
|
|
2421
|
+
| `resize` | `'none' \| 'vertical' \| 'horizontal' \| 'both'` | `'vertical'` | CSS `resize` behavior of the control. |
|
|
2422
|
+
|
|
2423
|
+
### Slots
|
|
2424
|
+
|
|
2425
|
+
| Slot | Description |
|
|
2426
|
+
| --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
2427
|
+
| `leading` | Icon inside the box, left-aligned with the first line (decorative, `aria-hidden`). Pass a Material glyph, e.g. `<i class="material-symbols-filled">auto_awesome</i>`; the glyph is sized to 20px. |
|
|
2360
2428
|
|
|
2361
2429
|
### Events
|
|
2362
2430
|
|
|
@@ -2370,7 +2438,10 @@ is the current string value).
|
|
|
2370
2438
|
|
|
2371
2439
|
- `aria-invalid` is set when `error` is true; `aria-describedby` links the error message (`{id}-error`) when both `id` and `errorMessage` are present.
|
|
2372
2440
|
- `class`/`style`/`data-*` fall through to the root wrapper; every other attribute (e.g. `maxlength`, `autocomplete`, `spellcheck`, native listeners) forwards straight to the real `<textarea>` (`inheritAttrs: false` plus a manual split) — so ARIA and native control attributes land where assistive tech expects them.
|
|
2373
|
-
-
|
|
2441
|
+
- Focus is shown by the border alone: mid grey (`$border-input`) at rest, darker on hover (`$border-input-hover`), dark grey (`$border-input-focus`) on focus, no outline and no change of the text weight.
|
|
2442
|
+
- `readonly` sets the native attribute: the field stays in the tab order and its text can be selected and copied, unlike `disabled`.
|
|
2443
|
+
- The `leading` icon is decorative (`aria-hidden`); name the field with a `<label>` or `aria-label`, not with the icon.
|
|
2444
|
+
- Border transitions through rest/focus/disabled/error states like `DsInput`; focus changes the border only, never the text weight.
|
|
2374
2445
|
|
|
2375
2446
|
### When to use
|
|
2376
2447
|
|
package/llms.txt
CHANGED
|
@@ -24,12 +24,13 @@
|
|
|
24
24
|
- DsSpinner (Core): Indeterminate loading indicator — a circular SVG spinner. **Presentational only**: no
|
|
25
25
|
- DsTag (Core): Small bordered chip with an optional × close control. **Presentational only**: `close`
|
|
26
26
|
- DsCell (Data): A single `<td>` cell in the `DsTable` compound API. **Presentational only**: no props
|
|
27
|
+
- DsClampedText (Data): Text clamped to N lines, with a «Show more» / «Show less» toggle. Extracted from the About of
|
|
27
28
|
- DsContactValue (Data): A single email/phone row: a verification glyph, the value itself, and a type badge
|
|
28
29
|
- DsCustomTag (Data): Static status chip (tinted background + matching border/text), non-interactive.
|
|
29
30
|
- DsDataCard (Data): The signature SalesQL emails/phones card: a header (icon, title, sort/edit/collapse/close
|
|
30
31
|
- DsEmptyState (Data): Centered empty-state panel for empty tables, lists, or search results: an optional
|
|
31
32
|
- DsPaginator (Data): Page-window pagination control: prev/next chevrons, numbered page buttons that collapse
|
|
32
|
-
- DsPill (Data): Small
|
|
33
|
+
- DsPill (Data): Small capsule with a free-form background color (e.g. a dynamic tag/folder color) or a
|
|
33
34
|
- DsPillWithBorder (Data): Bordered pill/chip rendered as a real `<button>`, with an optional leading icon slot and
|
|
34
35
|
- DsProfileCard (Data): One card of the full-profile drawer — the design export's `ProfileCard`
|
|
35
36
|
- DsRow (Data): A `<tr>` row for the `DsTable` compound API, with hover and selected treatment;
|