@salesql/sql_components_vue3 3.12.0 → 3.14.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.
@@ -1,4 +1,5 @@
1
1
  import { type PropType } from 'vue';
2
+ import { type DsTooltipPlacement } from '../../ui/DsTooltip';
2
3
  import { type DsPickerAlign, type DsPickerOption, type DsPickerSize } from '../../constants/pickers';
3
4
  declare function closeForm(): void;
4
5
  declare var __VLS_55: {
@@ -16,6 +17,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
16
17
  type: StringConstructor;
17
18
  default: string;
18
19
  };
20
+ tooltipPlacement: {
21
+ type: PropType<DsTooltipPlacement>;
22
+ default: "bottom";
23
+ };
19
24
  folder: {
20
25
  type: PropType<DsPickerOption | null>;
21
26
  default: null;
@@ -56,6 +61,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
56
61
  type: BooleanConstructor;
57
62
  default: boolean;
58
63
  };
64
+ teleported: {
65
+ type: BooleanConstructor;
66
+ default: boolean;
67
+ };
59
68
  colors: {
60
69
  type: PropType<string[]>;
61
70
  default: () => never[];
@@ -140,6 +149,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
140
149
  type: StringConstructor;
141
150
  default: string;
142
151
  };
152
+ tooltipPlacement: {
153
+ type: PropType<DsTooltipPlacement>;
154
+ default: "bottom";
155
+ };
143
156
  folder: {
144
157
  type: PropType<DsPickerOption | null>;
145
158
  default: null;
@@ -180,6 +193,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
180
193
  type: BooleanConstructor;
181
194
  default: boolean;
182
195
  };
196
+ teleported: {
197
+ type: BooleanConstructor;
198
+ default: boolean;
199
+ };
183
200
  colors: {
184
201
  type: PropType<string[]>;
185
202
  default: () => never[];
@@ -259,6 +276,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
259
276
  pill: boolean;
260
277
  icon: string;
261
278
  tooltip: string;
279
+ teleported: boolean;
262
280
  editLabel: string;
263
281
  emptyLabel: string;
264
282
  searchPlaceholder: string;
@@ -269,6 +287,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
269
287
  errorTooLongName: string;
270
288
  actionsLabel: string;
271
289
  deleteLabel: string;
290
+ tooltipPlacement: DsTooltipPlacement;
272
291
  folder: DsPickerOption | null;
273
292
  createLabel: string;
274
293
  align: DsPickerAlign;
package/llms-full.txt CHANGED
@@ -1,4 +1,4 @@
1
- # @salesql/sql_components_vue3 — SalesQL Design System (v3.12.0)
1
+ # @salesql/sql_components_vue3 — SalesQL Design System (v3.14.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
 
@@ -65,7 +65,7 @@ Components size their own glyphs (their scoped rules outrank the 20px default),
65
65
  - **DsDataCard** (Data) — The signature SalesQL emails/phones card: a header (icon, title, sort/edit/collapse/close
66
66
  - **DsEmptyState** (Data) — Centered empty-state panel for empty tables, lists, or search results: an optional
67
67
  - **DsPaginator** (Data) — Page-window pagination control: prev/next chevrons, numbered page buttons that collapse
68
- - **DsPill** (Data) — Small solid capsule with white text and a free-form background color (e.g. a dynamic
68
+ - **DsPill** (Data) — Small capsule with a free-form background color (e.g. a dynamic tag/folder color) or a
69
69
  - **DsPillWithBorder** (Data) — Bordered pill/chip rendered as a real `<button>`, with an optional leading icon slot and
70
70
  - **DsProfileCard** (Data) — One card of the full-profile drawer — the design export's `ProfileCard`
71
71
  - **DsRow** (Data) — A `<tr>` row for the `DsTable` compound API, with hover and selected treatment;
@@ -341,6 +341,7 @@ With `type` set it is also the **full-profile row** (type glyph on the left, §3
341
341
  | `popoverWidth` | `string` | `'300px'` | Popover width (export `DataPopover`). |
342
342
  | `teleported` | `boolean` | `false` | Renders the popover in `<body>` so a scroller or clipping cell (the prospector table) cannot cut it. Hover still travels cell → panel. |
343
343
  | `revealLabel` | `string` | `''` | Copy of the «Show details» CTA in the popover header. Rendered only while some item is `masked` **and** this is non-empty (opt-in). |
344
+ | `revealTooltip` | `string` | `''` | What the CTA costs («1 credit»), shown in a `DsTooltip` to the left of the button. Empty = no tooltip. |
344
345
  | `revealing` | `boolean` | `false` | The consumer's reveal is in flight: the CTA spins and ignores clicks. |
345
346
  | `leaveDelay` | `number` | `220` | Grace before an unpinned popover closes after the pointer leaves (ms). |
346
347
  | `copyLabel` … `incorrectLabel` | `string` | English | Accessible labels forwarded to the list's icon-only actions. |
@@ -788,24 +789,26 @@ The component never persists anything and never guesses that a save worked: it e
788
789
 
789
790
  ### Props
790
791
 
791
- | Prop | Type | Default | Description |
792
- | ------------------- | ------------------------ | ---------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
793
- | `label` | `string` | — | Neutral label — "Saved", or "Save" before the first save (required). |
794
- | `tooltip` | `string` | `''` | "Saved in {folder} · change folder". Empty = no tooltip. Hides while the picker is open. |
795
- | `folder` | `DsPickerOption \| null` | `null` | The current folder; tints the glyph. `null` = no glyph. |
796
- | `folders` | `DsPickerOption[]` | — | Every folder the user can pick (required). |
797
- | `searchPlaceholder` | `string` | `''` | |
798
- | `emptyLabel` | `string` | `''` | Shown when the search matches nothing. |
799
- | `createLabel` | `string` | `''` | Footer action ("New Folder"). Empty and no `footer` slot = no footer. |
800
- | `icon` | `string` | `'folder'` | Material Symbols ligature for the folder glyph. |
801
- | `size` | `'medium' \| 'large'` | `'medium'` | 32px for rows / profile, 36px for action and bulk bars. |
802
- | `pill` | `boolean` | `false` | Fully round trigger (`DsButton pill`) for the bulk bar beside `DsItemSelectorButton` («Add contacts to»). Off = the design's table / profile trigger. |
803
- | `align` | `'start' \| 'end'` | `'end'` | Which trigger edge the 300px panel hangs from. |
804
- | `disabled` | `boolean` | `false` | |
805
- | `colors` | `string[]` | `[]` | Swatches (hex) for the form. **Non-empty turns the in-panel form flow on**; empty = the footer emits `create` as before. |
806
- | `rowActions` | `boolean` | `false` | Show the ⋮ menu (Edit / Delete) on every row. |
807
- | `formLoading` | `boolean` | `false` | The app is saving: the form's submit shows the spinner and is blocked. |
808
- | `formError` | `string` | `''` | A failed save, shown under the name field. |
792
+ | Prop | Type | Default | Description |
793
+ | ------------------- | ---------------------------------------- | ---------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
794
+ | `label` | `string` | — | Neutral label — "Saved", or "Save" before the first save (required). |
795
+ | `tooltip` | `string` | `''` | "Saved in {folder} · change folder". Empty = no tooltip. Hides while the picker is open. |
796
+ | `tooltipPlacement` | `'top' \| 'bottom' \| 'left' \| 'right'` | `'bottom'` | Side of the trigger the tooltip opens on (`DsTooltip`'s placements). `left` for a trigger in a right-pinned column. |
797
+ | `folder` | `DsPickerOption \| null` | `null` | The current folder; tints the glyph. `null` = no glyph. |
798
+ | `folders` | `DsPickerOption[]` | — | Every folder the user can pick (required). |
799
+ | `searchPlaceholder` | `string` | `''` | |
800
+ | `emptyLabel` | `string` | `''` | Shown when the search matches nothing. |
801
+ | `createLabel` | `string` | `''` | Footer action ("New Folder"). Empty and no `footer` slot = no footer. |
802
+ | `icon` | `string` | `'folder'` | Material Symbols ligature for the folder glyph. |
803
+ | `size` | `'medium' \| 'large'` | `'medium'` | 32px for rows / profile, 36px for action and bulk bars. |
804
+ | `pill` | `boolean` | `false` | Fully round trigger (`DsButton pill`) for the bulk bar beside `DsItemSelectorButton` («Add contacts to»). Off = the design's table / profile trigger. |
805
+ | `align` | `'start' \| 'end'` | `'end'` | Which trigger edge the 300px panel hangs from. |
806
+ | `disabled` | `boolean` | `false` | |
807
+ | `teleported` | `boolean` | `false` | Render the picker panel in `<body>` (`DsPopover teleported`). Needed in a sticky / pinned table cell: it is its own stacking context, so inline the cells of the rows below paint over the panel, and a scroll container clips it. |
808
+ | `colors` | `string[]` | `[]` | Swatches (hex) for the form. **Non-empty turns the in-panel form flow on**; empty = the footer emits `create` as before. |
809
+ | `rowActions` | `boolean` | `false` | Show the ⋮ menu (Edit / Delete) on every row. |
810
+ | `formLoading` | `boolean` | `false` | The app is saving: the form's submit shows the spinner and is blocked. |
811
+ | `formError` | `string` | `''` | A failed save, shown under the name field. |
809
812
 
810
813
  Labels (all app copy; English defaults): `actionsLabel` (`'Actions'`, the ⋮ `aria-label`),
811
814
  `editLabel` (`'Edit'`), `deleteLabel` (`'Delete'`), `createFormTitle` (`'New Folder'`),
@@ -858,6 +861,9 @@ the form flow has no entry point.
858
861
  is open at a time. It is teleported to `<body>`, so the scrollable list never clips it, and
859
862
  pressing inside it does not close the picker (nested `DsPopover`s register with their parent).
860
863
  - Back from the form (or `closeForm()`) returns focus to the search field.
864
+ - `teleported` keeps all of the above: Esc and outside press are handled by `DsPopover` on the
865
+ body panel, the search still takes focus on open, and the panel closes when the trigger
866
+ scrolls out of view of its scroll container.
861
867
 
862
868
  ### Design parity (export `SavedButton` / `FolderMenu`)
863
869
 
@@ -1521,17 +1527,24 @@ its events.
1521
1527
 
1522
1528
  ## DsPill
1523
1529
 
1524
- Small solid capsule with white text and a free-form background color (e.g. a dynamic
1525
- tag/folder color), with an optional trailing icon button. **Presentational only**:
1530
+ Small capsule with a free-form background color (e.g. a dynamic tag/folder color) or a
1531
+ bordered `info` / `error` tone, with an optional trailing icon button. **Presentational only**:
1526
1532
  label via the default slot, intent out via `click`.
1527
1533
 
1528
1534
  ### Props
1529
1535
 
1530
- | Prop | Type | Default | Description |
1531
- | ------------ | -------- | ------- | ------------------------------------------------------------------------------------------------------------------------------ |
1532
- | `icon` | `string` | `''` | Material Symbols ligature name; when set, renders a trailing icon button. |
1533
- | `background` | `string` | `''` | Free-form CSS color (e.g. a dynamic tag/folder color); when empty, falls back to the default token background (`$slate-soft`). |
1534
- | `iconLabel` | `string` | `''` | Accessible name for the trailing icon button (icon-only control). |
1536
+ | Prop | Type | Default | Description |
1537
+ | ------------ | -------------------------------- | ----------- | --------------------------------------------------------------------------------------------------------------------------------- |
1538
+ | `tone` | `'default' \| 'info' \| 'error'` | `'default'` | `default`: solid grey (`$slate-soft`), white text, no border. `info` / `error`: 1px border, tinted background, tone-colored text. |
1539
+ | `icon` | `string` | `''` | Material Symbols ligature name; when set, renders a trailing icon button. |
1540
+ | `background` | `string` | `''` | Free-form CSS color (e.g. a dynamic tag/folder color); when set it wins over the tone background. |
1541
+ | `iconLabel` | `string` | `''` | Accessible name for the trailing icon button (icon-only control). |
1542
+
1543
+ The bordered tones use the DS `shadow` step for border, text and icon (`$info-shadow`,
1544
+ `$error-shadow`) on the matching `tint` background. The box is `border-box`, so the pill stays
1545
+ 20px tall. The text is bold by default; slotted markup can set its own weight (e.g. a regular
1546
+ label next to a bold value). A bare `<strong>` renders at 900 (`bolder` than the pill's 700), so
1547
+ keep the value in a plain element and only override the label.
1535
1548
 
1536
1549
  ### Events
1537
1550
 
@@ -1551,6 +1564,7 @@ label via the default slot, intent out via `click`.
1551
1564
 
1552
1565
  - Tags/labels with a dynamic color (folder color, CRM tag color), optionally with a way
1553
1566
  to remove/edit them via the icon button.
1567
+ - Removable filter chips: `tone="info"` (or `error` for excluded values) with `icon="close"`.
1554
1568
  - For a bordered, button-styled filter chip instead, see `DsPillWithBorder`.
1555
1569
 
1556
1570
  ---
@@ -1960,24 +1974,24 @@ on `close`.
1960
1974
  ## DsNotification
1961
1975
 
1962
1976
  Fixed-position toast card for transient feedback (saved, updated, failed…). It renders
1963
- itself into one of the four viewport corners, optionally auto-dismisses, and can carry a
1977
+ itself into one of the four viewport corners or the top center, optionally auto-dismisses, and can carry a
1964
1978
  single action link. **Presentational only**: it owns its own visibility timer, but all
1965
1979
  routing/consequences stay with the consuming app via events.
1966
1980
 
1967
1981
  ### Props
1968
1982
 
1969
- | Prop | Type | Default | Description |
1970
- | ------------- | -------------------------------------------------------------- | --------------- | ----------------------------------------------------------------------------- |
1971
- | `type` | `'success' \| 'info' \| 'warning' \| 'error'` | `'info'` | Semantic style + icon. |
1972
- | `position` | `'top-left' \| 'top-right' \| 'bottom-left' \| 'bottom-right'` | `'bottom-left'` | Viewport corner the toast fixes to. |
1973
- | `title` | `string` | — | Bold heading line. |
1974
- | `description` | `string` | — | Body copy under the title. |
1975
- | `link` | `string` | — | `href` for the optional action link. |
1976
- | `linkTitle` | `string` | — | Visible text for the link (required for the link to render). |
1977
- | `linkTarget` | `'_blank' \| '_self' \| '_parent' \| '_top'` | `'_blank'` | `<a target>`. `_blank` adds `rel="noopener noreferrer"`. |
1978
- | `showClose` | `boolean` | `true` | Show the × dismiss button. |
1979
- | `closeLabel` | `string` | `'Close'` | `aria-label` for the × button (icon-only control). |
1980
- | `duration` | `number` | `0` | Auto-dismiss delay in ms. `0` = stays until dismissed. Timer pauses on hover. |
1983
+ | Prop | Type | Default | Description |
1984
+ | ------------- | ------------------------------------------------------------------------------ | --------------- | ----------------------------------------------------------------------------- |
1985
+ | `type` | `'success' \| 'info' \| 'warning' \| 'error'` | `'info'` | Semantic style + icon. |
1986
+ | `position` | `'top-left' \| 'top-center' \| 'top-right' \| 'bottom-left' \| 'bottom-right'` | `'bottom-left'` | Viewport corner (or top center) the toast fixes to. |
1987
+ | `title` | `string` | — | Bold heading line. |
1988
+ | `description` | `string` | — | Body copy under the title. |
1989
+ | `link` | `string` | — | `href` for the optional action link. |
1990
+ | `linkTitle` | `string` | — | Visible text for the link (required for the link to render). |
1991
+ | `linkTarget` | `'_blank' \| '_self' \| '_parent' \| '_top'` | `'_blank'` | `<a target>`. `_blank` adds `rel="noopener noreferrer"`. |
1992
+ | `showClose` | `boolean` | `true` | Show the × dismiss button. |
1993
+ | `closeLabel` | `string` | `'Close'` | `aria-label` for the × button (icon-only control). |
1994
+ | `duration` | `number` | `0` | Auto-dismiss delay in ms. `0` = stays until dismissed. Timer pauses on hover. |
1981
1995
 
1982
1996
  ### Events
1983
1997
 
@@ -1989,6 +2003,15 @@ routing/consequences stay with the consuming app via events.
1989
2003
  > The link is a real `<a href>` (a11y + no-JS fallback). Default behaviour opens it natively;
1990
2004
  > listen to `navigate` and call `event.preventDefault()` to intercept and route inside the SPA.
1991
2005
 
2006
+ ### Top center
2007
+
2008
+ `position="top-center"` is the confirmation toast of an action in the page (a reveal, a save):
2009
+ pass `type="success"`, the app's copy in `title` (e.g. «Contact details revealed · N credits
2010
+ used») and `:duration="3400"`. Toasts at this position share one fixed host and stack in a
2011
+ column, newest below, 8px apart, so several alive at once never overlap. They fade in
2012
+ sliding down (off under `prefers-reduced-motion`) and leave instantly, like the corners, which keep
2013
+ their behaviour (one toast per corner, teleported straight to `<body>`).
2014
+
1992
2015
  ### Accessibility
1993
2016
 
1994
2017
  - The × button is icon-only, so `closeLabel` maps to its `aria-label` — always pass it.
package/llms.txt CHANGED
@@ -30,7 +30,7 @@
30
30
  - DsDataCard (Data): The signature SalesQL emails/phones card: a header (icon, title, sort/edit/collapse/close
31
31
  - DsEmptyState (Data): Centered empty-state panel for empty tables, lists, or search results: an optional
32
32
  - DsPaginator (Data): Page-window pagination control: prev/next chevrons, numbered page buttons that collapse
33
- - DsPill (Data): Small solid capsule with white text and a free-form background color (e.g. a dynamic
33
+ - DsPill (Data): Small capsule with a free-form background color (e.g. a dynamic tag/folder color) or a
34
34
  - DsPillWithBorder (Data): Bordered pill/chip rendered as a real `<button>`, with an optional leading icon slot and
35
35
  - DsProfileCard (Data): One card of the full-profile drawer — the design export's `ProfileCard`
36
36
  - DsRow (Data): A `<tr>` row for the `DsTable` compound API, with hover and selected treatment;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesql/sql_components_vue3",
3
- "version": "3.12.0",
3
+ "version": "3.14.0",
4
4
  "description": "Librería de componentes Vue 3 (SalesQL)",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -30,6 +30,7 @@
30
30
  },
31
31
  "devDependencies": {
32
32
  "@histoire/plugin-vue": "1.0.0-beta.1",
33
+ "@histoire/shared": "1.0.0-beta.1",
33
34
  "@vitejs/plugin-vue": "6.0.1",
34
35
  "@vitest/coverage-v8": "^3.2.0",
35
36
  "@vue/test-utils": "^2.4.6",