@salesql/sql_components_vue3 3.10.3 → 3.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -14
- 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 -2
- package/dist/index.es.js +2562 -2239
- 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/DsPopover/DsPopover.vue.d.ts +1 -1
- package/dist/ui/DsProfileCompanyCard/DsProfileCompanyCard.vue.d.ts +2 -2
- package/dist/ui/DsRadioCard/DsRadioCard.types.d.ts +9 -0
- package/dist/ui/DsRadioCard/DsRadioCard.vue.d.ts +68 -0
- package/dist/ui/DsRadioCard/index.d.ts +2 -0
- package/dist/ui/DsTextarea/DsTextarea.types.d.ts +12 -0
- package/dist/ui/DsTextarea/DsTextarea.vue.d.ts +45 -2
- package/llms-full.txt +155 -32
- package/llms.txt +2 -0
- 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>;
|
|
@@ -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;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
import type { DsRadioCardValue } from './DsRadioCard.types';
|
|
3
|
+
declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {};
|
|
4
|
+
type __VLS_Slots = {} & {
|
|
5
|
+
title?: (props: typeof __VLS_1) => any;
|
|
6
|
+
} & {
|
|
7
|
+
description?: (props: typeof __VLS_3) => any;
|
|
8
|
+
} & {
|
|
9
|
+
default?: (props: typeof __VLS_5) => any;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
12
|
+
value: {
|
|
13
|
+
type: PropType<DsRadioCardValue>;
|
|
14
|
+
required: true;
|
|
15
|
+
};
|
|
16
|
+
title: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
required: true;
|
|
19
|
+
};
|
|
20
|
+
description: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
default: string;
|
|
23
|
+
};
|
|
24
|
+
name: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
default: string;
|
|
27
|
+
};
|
|
28
|
+
disabled: BooleanConstructor;
|
|
29
|
+
modelValue: {
|
|
30
|
+
type: PropType<DsRadioCardValue | null>;
|
|
31
|
+
};
|
|
32
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
33
|
+
"update:modelValue": (value: DsRadioCardValue | null) => any;
|
|
34
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
35
|
+
value: {
|
|
36
|
+
type: PropType<DsRadioCardValue>;
|
|
37
|
+
required: true;
|
|
38
|
+
};
|
|
39
|
+
title: {
|
|
40
|
+
type: StringConstructor;
|
|
41
|
+
required: true;
|
|
42
|
+
};
|
|
43
|
+
description: {
|
|
44
|
+
type: StringConstructor;
|
|
45
|
+
default: string;
|
|
46
|
+
};
|
|
47
|
+
name: {
|
|
48
|
+
type: StringConstructor;
|
|
49
|
+
default: string;
|
|
50
|
+
};
|
|
51
|
+
disabled: BooleanConstructor;
|
|
52
|
+
modelValue: {
|
|
53
|
+
type: PropType<DsRadioCardValue | null>;
|
|
54
|
+
};
|
|
55
|
+
}>> & Readonly<{
|
|
56
|
+
"onUpdate:modelValue"?: ((value: DsRadioCardValue | null) => any) | undefined;
|
|
57
|
+
}>, {
|
|
58
|
+
disabled: boolean;
|
|
59
|
+
name: string;
|
|
60
|
+
description: string;
|
|
61
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
62
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
63
|
+
export default _default;
|
|
64
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
65
|
+
new (): {
|
|
66
|
+
$slots: S;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
@@ -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.12.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,6 +59,7 @@ 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
|
|
@@ -79,6 +80,7 @@ Components size their own glyphs (their scoped rules outrank the 20px default),
|
|
|
79
80
|
- **DsInput** (Forms) — Single-line text field — the DS "Input". **Presentational only**: it drives its own
|
|
80
81
|
- **DsItemSelectorButton** (Forms) — Pill-shaped trigger that shows the currently assigned item (folder, tag, owner…)
|
|
81
82
|
- **DsRadio** (Forms) — A single radio control (accent-ring dot when checked). **Presentational only**.
|
|
83
|
+
- **DsRadioCard** (Forms) — A selectable **card** with a radio indicator: a title, an optional description and a free
|
|
82
84
|
- **DsSelect** (Forms) — Dropdown select — a native-`<select>`-like single/multi picker with a real
|
|
83
85
|
- **DsSwitch** (Forms) — On/off toggle (accent track when on). **Presentational only**: it reflects the
|
|
84
86
|
- **DsTextarea** (Forms) — Multi-line text field — the DS "Textarea", sibling of `DsInput` with the same
|
|
@@ -174,7 +176,8 @@ design export's `ProfileCompanyCard` (`fullprofile/_bundle.jsx`), SALESQL-3298.
|
|
|
174
176
|
- **Header:** `DsCompanyLogo` (36px), the name, «industry · employees» under it (whichever
|
|
175
177
|
arrive; no loose separator), a globe link to the website (with a tooltip) and LinkedIn's
|
|
176
178
|
"in" badge.
|
|
177
|
-
- **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`).
|
|
178
181
|
- **Fields:** one label / value row per field, in the order received — the export's
|
|
179
182
|
Headquarters, **HQ phone**, **Founded**, Website. A field with an empty value is **not
|
|
180
183
|
rendered**; one with `href` is a link in the accent ink.
|
|
@@ -1090,21 +1093,21 @@ next.
|
|
|
1090
1093
|
|
|
1091
1094
|
### Props
|
|
1092
1095
|
|
|
1093
|
-
| Prop | Type
|
|
1094
|
-
| ------------ |
|
|
1095
|
-
| `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`. |
|
|
1096
|
-
| `size` | `'small' \| 'medium' \| 'large' \| 'xlarge'`
|
|
1097
|
-
| `nativeType` | `'button' \| 'submit' \| 'reset'`
|
|
1098
|
-
| `leftIcon` | `string`
|
|
1099
|
-
| `rightIcon` | `string`
|
|
1100
|
-
| `ariaLabel` | `string`
|
|
1101
|
-
| `disabled` | `boolean`
|
|
1102
|
-
| `loading` | `boolean`
|
|
1103
|
-
| `circle` | `boolean`
|
|
1104
|
-
| `square` | `boolean`
|
|
1105
|
-
| `noPadding` | `boolean`
|
|
1106
|
-
| `selected` | `boolean`
|
|
1107
|
-
| `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`. |
|
|
1108
1111
|
|
|
1109
1112
|
### Events
|
|
1110
1113
|
|
|
@@ -1127,6 +1130,8 @@ next.
|
|
|
1127
1130
|
|
|
1128
1131
|
- `primary` for the page's main call to action; `secondary`/`tertiary` for lower
|
|
1129
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).
|
|
1130
1135
|
- Always set `ariaLabel` on `circle`/`square` icon-only buttons.
|
|
1131
1136
|
- Use `loading` for in-flight async actions instead of swapping in a separate
|
|
1132
1137
|
`DsSpinner`.
|
|
@@ -1240,6 +1245,50 @@ parent `DsTable`/`DsRow`.
|
|
|
1240
1245
|
|
|
1241
1246
|
---
|
|
1242
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
|
+
|
|
1243
1292
|
<!-- DsContactValue · Data -->
|
|
1244
1293
|
|
|
1245
1294
|
## DsContactValue
|
|
@@ -2090,7 +2139,7 @@ via `v-model` (its `modelValue` is the current string value).
|
|
|
2090
2139
|
|
|
2091
2140
|
- `aria-invalid` is set when `error` is true; `aria-describedby` links to the error message (`{id}-error`) when both `id` and `errorMessage` are present.
|
|
2092
2141
|
- 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.
|
|
2093
|
-
-
|
|
2142
|
+
- Focus is shown by the dark grey border alone, for every `type` (search included): the typed text and the placeholder keep their weight.
|
|
2094
2143
|
- Exposes `focus()` and `focusAtEnd()` via `defineExpose` for imperative control (e.g. focusing a field after a panel opens) from the consuming app.
|
|
2095
2144
|
|
|
2096
2145
|
### When to use
|
|
@@ -2130,7 +2179,7 @@ only the current selection it's handed via `item`.
|
|
|
2130
2179
|
- `aria-haspopup="listbox"` signals that activating the button opens a picker.
|
|
2131
2180
|
- 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.
|
|
2132
2181
|
- Pass `ariaLabel` whenever the empty state has no `emptyTitle` — otherwise the button has no accessible name.
|
|
2133
|
-
- Native `<button>` gets Enter/Space activation
|
|
2182
|
+
- Native `<button>` gets Enter/Space activation for free; keyboard focus (`:focus-visible`) turns the border dark grey, with no ring.
|
|
2134
2183
|
|
|
2135
2184
|
### When to use
|
|
2136
2185
|
|
|
@@ -2177,6 +2226,65 @@ not a shared group value).
|
|
|
2177
2226
|
|
|
2178
2227
|
---
|
|
2179
2228
|
|
|
2229
|
+
<!-- DsRadioCard · Forms -->
|
|
2230
|
+
|
|
2231
|
+
## DsRadioCard
|
|
2232
|
+
|
|
2233
|
+
A selectable **card** with a radio indicator: a title, an optional description and a free
|
|
2234
|
+
**preview** area (default slot) — for choices that need to be seen to be understood
|
|
2235
|
+
(column layouts, plans, view modes). **Presentational only.** The indicator is the same 16px
|
|
2236
|
+
dot as `DsRadio`.
|
|
2237
|
+
|
|
2238
|
+
Unlike `DsRadio`, `v-model` is the **selected value of the whole group**, not a boolean:
|
|
2239
|
+
give every card of the group the same `v-model` and `name`, and its own `value`.
|
|
2240
|
+
|
|
2241
|
+
```vue
|
|
2242
|
+
<DsRadioCard v-model="layout" name="layout" value="separate" title="Separate columns">
|
|
2243
|
+
<MiniTable />
|
|
2244
|
+
</DsRadioCard>
|
|
2245
|
+
<DsRadioCard v-model="layout" name="layout" value="combined" title="One column" />
|
|
2246
|
+
```
|
|
2247
|
+
|
|
2248
|
+
### Props
|
|
2249
|
+
|
|
2250
|
+
| Prop | Type | Default | Description |
|
|
2251
|
+
| ------------- | -------------------------- | ------- | ---------------------------------------------------------------------------------------------------- |
|
|
2252
|
+
| `modelValue` | `string \| number \| null` | `null` | v-model — the selected value of the group. The card is selected when it equals `value`. |
|
|
2253
|
+
| `value` | `string \| number` | — | **Required.** This card's value; it is what `update:modelValue` emits when chosen. |
|
|
2254
|
+
| `title` | `string` | — | **Required.** Card title and the radio's accessible name; the `title` slot overrides how it renders. |
|
|
2255
|
+
| `description` | `string` | `''` | Optional supporting text; the `description` slot overrides it. |
|
|
2256
|
+
| `name` | `string` | `''` | Share it across the group for native arrow-key navigation. |
|
|
2257
|
+
| `disabled` | `boolean` | `false` | Disables the card (opacity 0.6, no events). |
|
|
2258
|
+
|
|
2259
|
+
### Slots
|
|
2260
|
+
|
|
2261
|
+
| Slot | Description |
|
|
2262
|
+
| ------------- | -------------------------------------------------------------------------- |
|
|
2263
|
+
| `default` | Preview area under the header (a mini table, an illustration…). Optional. |
|
|
2264
|
+
| `title` | Rich title content (replaces how the `title` prop renders; keep the prop). |
|
|
2265
|
+
| `description` | Rich description content (replaces the `description` prop). |
|
|
2266
|
+
|
|
2267
|
+
### Events
|
|
2268
|
+
|
|
2269
|
+
| Event | Payload | When |
|
|
2270
|
+
| ------------------- | ------------------ | ------------------------------------------------------------------------------------------------------------------------------------ |
|
|
2271
|
+
| `update:modelValue` | `string \| number` | The card becomes the selected one (click anywhere on it, Space, or arrow keys inside the `name` group). Never emitted when disabled. |
|
|
2272
|
+
|
|
2273
|
+
### Accessibility
|
|
2274
|
+
|
|
2275
|
+
- The root is a `<div>` holding a real `<input type="radio">` (visually hidden) and a `<label for>` that wraps **only the title**, so the preview can hold flow content such as a `<table>` (valid HTML). The label is stretched over the whole card (`::after { inset: 0 }`), so the whole card is the click target; a group sharing `name` gets native radio semantics and arrow-key navigation (one tab stop per group).
|
|
2276
|
+
- The accessible name is the **title** (the `<label>`) and the description is its accessible description (`aria-describedby`); the preview does not leak into the name.
|
|
2277
|
+
- The checked state is the native one — no extra `aria-checked`, which ARIA in HTML discourages on a native radio. The dot is decorative (`aria-hidden`).
|
|
2278
|
+
- A `:focus-visible` ring (2px `accent-mid`) is drawn around the whole card.
|
|
2279
|
+
- The preview is decorative: it ignores pointer events (clicks fall through to the stretched label) and **interactive content inside it is not supported**. Mark it `aria-hidden` in the consumer if it should not be read.
|
|
2280
|
+
|
|
2281
|
+
### When to use
|
|
2282
|
+
|
|
2283
|
+
- A small set of mutually exclusive options where each one benefits from a visual preview.
|
|
2284
|
+
- For plain text options use `DsRadio`; for long lists use `DsSelect`.
|
|
2285
|
+
|
|
2286
|
+
---
|
|
2287
|
+
|
|
2180
2288
|
<!-- DsSelect · Forms -->
|
|
2181
2289
|
|
|
2182
2290
|
## DsSelect
|
|
@@ -2228,6 +2336,7 @@ is false, an array of values when `multiple` is true.
|
|
|
2228
2336
|
|
|
2229
2337
|
- 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`.
|
|
2230
2338
|
- 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.
|
|
2339
|
+
- Focus (and the open state) turns the control's border dark grey, the same token as the text fields; there is no ring.
|
|
2231
2340
|
- Grouped options (`option.group`) render as real `role="group"` regions labelled by their header; headers are never focusable/selectable.
|
|
2232
2341
|
- When `filterable`, the search input carries `role="combobox"` and owns `aria-activedescendant` while open (focus moves there instead of staying on the trigger).
|
|
2233
2342
|
- The `filterSummary` clear button is icon-only, so `clearLabel` maps to its `aria-label`.
|
|
@@ -2286,17 +2395,28 @@ is the current string value).
|
|
|
2286
2395
|
|
|
2287
2396
|
### Props
|
|
2288
2397
|
|
|
2289
|
-
| Prop | Type | Default | Description
|
|
2290
|
-
| -------------- | ------------------------------------------------ | ------------ |
|
|
2291
|
-
| `modelValue` | `string` | `''` | v-model — current text value.
|
|
2292
|
-
| `placeholder` | `string` | `''` | Native placeholder text.
|
|
2293
|
-
| `rows` | `number` | `4` | Native `rows` attribute (visible line count).
|
|
2294
|
-
| `disabled` | `boolean` | `false` | Disables the control.
|
|
2295
|
-
| `
|
|
2296
|
-
| `
|
|
2297
|
-
| `
|
|
2298
|
-
| `
|
|
2299
|
-
| `
|
|
2398
|
+
| Prop | Type | Default | Description |
|
|
2399
|
+
| -------------- | ------------------------------------------------ | ------------ | ------------------------------------------------------------------------------------------------ |
|
|
2400
|
+
| `modelValue` | `string` | `''` | v-model — current text value. |
|
|
2401
|
+
| `placeholder` | `string` | `''` | Native placeholder text. |
|
|
2402
|
+
| `rows` | `number` | `4` | Native `rows` attribute (visible line count). |
|
|
2403
|
+
| `disabled` | `boolean` | `false` | Disables the control. |
|
|
2404
|
+
| `readonly` | `boolean` | `false` | Focusable and selectable but not editable; no disabled look, never emits `update:modelValue`. |
|
|
2405
|
+
| `autoGrow` | `boolean` | `false` | Grow with the content between `minRows` and `maxRows`, then scroll. Turns the resize handle off. |
|
|
2406
|
+
| `minRows` | `number` | `1` | Minimum visible rows with `autoGrow` (it replaces `rows` as the native attribute). |
|
|
2407
|
+
| `maxRows` | `number` | `undefined` | Maximum rows with `autoGrow`; beyond it the control scrolls. No cap when omitted. |
|
|
2408
|
+
| `error` | `boolean` | `false` | Error visual state (`aria-invalid`, coral border). |
|
|
2409
|
+
| `errorMessage` | `string` | `''` | Message shown under the field when `error` is true. |
|
|
2410
|
+
| `name` | `string` | `''` | Native `name` attribute. |
|
|
2411
|
+
| `id` | `string` | `''` | Native `id`; also links the error message via `aria-describedby`. |
|
|
2412
|
+
| `variant` | `'default' \| 'emphasis'` | `'default'` | Deprecated: `emphasis` is identical to `default` and will be removed. Leave it unset. |
|
|
2413
|
+
| `resize` | `'none' \| 'vertical' \| 'horizontal' \| 'both'` | `'vertical'` | CSS `resize` behavior of the control. |
|
|
2414
|
+
|
|
2415
|
+
### Slots
|
|
2416
|
+
|
|
2417
|
+
| Slot | Description |
|
|
2418
|
+
| --------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
2419
|
+
| `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. |
|
|
2300
2420
|
|
|
2301
2421
|
### Events
|
|
2302
2422
|
|
|
@@ -2310,7 +2430,10 @@ is the current string value).
|
|
|
2310
2430
|
|
|
2311
2431
|
- `aria-invalid` is set when `error` is true; `aria-describedby` links the error message (`{id}-error`) when both `id` and `errorMessage` are present.
|
|
2312
2432
|
- `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.
|
|
2313
|
-
-
|
|
2433
|
+
- 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.
|
|
2434
|
+
- `readonly` sets the native attribute: the field stays in the tab order and its text can be selected and copied, unlike `disabled`.
|
|
2435
|
+
- The `leading` icon is decorative (`aria-hidden`); name the field with a `<label>` or `aria-label`, not with the icon.
|
|
2436
|
+
- Border transitions through rest/focus/disabled/error states like `DsInput`; focus changes the border only, never the text weight.
|
|
2314
2437
|
|
|
2315
2438
|
### When to use
|
|
2316
2439
|
|
package/llms.txt
CHANGED
|
@@ -24,6 +24,7 @@
|
|
|
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
|
|
@@ -44,6 +45,7 @@
|
|
|
44
45
|
- DsInput (Forms): Single-line text field — the DS "Input". **Presentational only**: it drives its own
|
|
45
46
|
- DsItemSelectorButton (Forms): Pill-shaped trigger that shows the currently assigned item (folder, tag, owner…)
|
|
46
47
|
- DsRadio (Forms): A single radio control (accent-ring dot when checked). **Presentational only**.
|
|
48
|
+
- DsRadioCard (Forms): A selectable **card** with a radio indicator: a title, an optional description and a free
|
|
47
49
|
- DsSelect (Forms): Dropdown select — a native-`<select>`-like single/multi picker with a real
|
|
48
50
|
- DsSwitch (Forms): On/off toggle (accent track when on). **Presentational only**: it reflects the
|
|
49
51
|
- DsTextarea (Forms): Multi-line text field — the DS "Textarea", sibling of `DsInput` with the same
|