@salesql/sql_components_vue3 3.31.0 → 3.32.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.
Files changed (32) hide show
  1. package/dist/index.cjs +1 -1
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.d.ts +14 -0
  4. package/dist/index.es.js +3767 -3431
  5. package/dist/index.es.js.map +1 -1
  6. package/dist/sql_components_vue3.css +1 -1
  7. package/dist/ui/DsFilterChip/DsFilterChip.types.d.ts +11 -0
  8. package/dist/ui/DsFilterChip/DsFilterChip.vue.d.ts +43 -0
  9. package/dist/ui/DsFilterChip/index.d.ts +2 -0
  10. package/dist/ui/DsInput/DsInput.types.d.ts +2 -0
  11. package/dist/ui/DsInput/DsInput.vue.d.ts +15 -0
  12. package/dist/ui/DsMenuBackRow/DsMenuBackRow.types.d.ts +6 -0
  13. package/dist/ui/DsMenuBackRow/DsMenuBackRow.vue.d.ts +26 -0
  14. package/dist/ui/DsMenuBackRow/index.d.ts +2 -0
  15. package/dist/ui/DsMenuDrillRow/DsMenuDrillRow.types.d.ts +8 -0
  16. package/dist/ui/DsMenuDrillRow/DsMenuDrillRow.vue.d.ts +35 -0
  17. package/dist/ui/DsMenuDrillRow/index.d.ts +2 -0
  18. package/dist/ui/DsMenuEmpty/DsMenuEmpty.types.d.ts +4 -0
  19. package/dist/ui/DsMenuEmpty/DsMenuEmpty.vue.d.ts +24 -0
  20. package/dist/ui/DsMenuEmpty/index.d.ts +2 -0
  21. package/dist/ui/DsMenuOption/DsMenuOption.types.d.ts +20 -0
  22. package/dist/ui/DsMenuOption/DsMenuOption.vue.d.ts +77 -0
  23. package/dist/ui/DsMenuOption/index.d.ts +2 -0
  24. package/dist/ui/DsMenuSectionLabel/DsMenuSectionLabel.types.d.ts +6 -0
  25. package/dist/ui/DsMenuSectionLabel/DsMenuSectionLabel.vue.d.ts +26 -0
  26. package/dist/ui/DsMenuSectionLabel/index.d.ts +2 -0
  27. package/dist/ui/DsToolbarButton/DsToolbarButton.types.d.ts +37 -0
  28. package/dist/ui/DsToolbarButton/DsToolbarButton.vue.d.ts +117 -0
  29. package/dist/ui/DsToolbarButton/index.d.ts +2 -0
  30. package/llms-full.txt +274 -23
  31. package/llms.txt +7 -0
  32. package/package.json +1 -1
package/llms-full.txt CHANGED
@@ -1,4 +1,4 @@
1
- # @salesql/sql_components_vue3 — SalesQL Design System (v3.31.0)
1
+ # @salesql/sql_components_vue3 — SalesQL Design System (v3.32.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 (76)
51
+ ## Components (83)
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
@@ -126,6 +126,13 @@ Browsers ignore `@font-face` declared inside a shadow root: register the fonts o
126
126
  - **DsProfileRichSections** (Profile) — The sections of a full profile that come from the person's own record: **Details**
127
127
  - **DsProfileTimelineRow** (Profile) — One entry of an Experience / Education list — the design export's `ProfileTimelineRow`
128
128
  - **DsUpgradeNotice** (Profile) — The box that tells the user what their plan does not allow and links to the upgrade: «To
129
+ - **DsFilterChip** (Toolbar) — A filter of the contact list toolbar (Folder, Tags, Added, Added by). Idle it is a 40px button with a grey caret that opens a menu;…
130
+ - **DsMenuBackRow** (Toolbar) — The «‹ Label» header of a drilled-in menu view (the Filters popover): a button that goes back to the list it came from. **Presentational**:…
131
+ - **DsMenuDrillRow** (Toolbar) — A row of a menu's root list that drills into a sub-view (the Filters popover): the name, what it is set to and a chevron.…
132
+ - **DsMenuEmpty** (Toolbar) — The line a menu list shows when a search matches nothing («Nothing found»). **Presentational**; it is a `role="status"` paragraph, so a…
133
+ - **DsMenuOption** (Toolbar) — A selectable row of a menu panel: a checkbox or a radio, an optional left adornment (colour dot, folder icon, avatar), the label with an…
134
+ - **DsMenuSectionLabel** (Toolbar) — The uppercase micro label above a group of rows in a menu panel (the chip menus and the Filters popover of the contact list toolbar), with…
135
+ - **DsToolbarButton** (Toolbar) — A 40px control of the contact list toolbar: **Sort**, **Columns**, **Filters (n)**, the phone list selector and, as the `primary` variant,…
129
136
 
130
137
  ---
131
138
  <!-- DsCompanyCard · Company -->
@@ -3425,27 +3432,30 @@ via `v-model` (its `modelValue` is the current string value).
3425
3432
 
3426
3433
  ### Props
3427
3434
 
3428
- | Prop | Type | Default | Description |
3429
- | --------------- | --------------------------------------------------------------------------- | ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
3430
- | `modelValue` | `string` | `''` | v-model — current text value. |
3431
- | `type` | `'text' \| 'email' \| 'password' \| 'tel' \| 'number' \| 'search' \| 'url'` | `'text'` | Native input type. `password` renders a reveal toggle when `toggleLabel` is set; `search` always renders as a styled text input with a left search icon. |
3432
- | `size` | `'xs' \| 'sm' \| 'md'` | `'sm'` | Control height (32px / 36px / 48px). Padding, type scale and borders are the same for all; the suffix glyph is 16 / 18 / 24. |
3433
- | `placeholder` | `string` | `''` | Native placeholder text. |
3434
- | `disabled` | `boolean` | `false` | Disables the control. |
3435
- | `error` | `boolean` | `false` | Error visual state (`aria-invalid`, coral border). |
3436
- | `errorMessage` | `string` | `''` | Message shown under the field when `error` is true. |
3437
- | `showErrorIcon` | `boolean` | `false` | Shows a warning icon in the suffix when `error` is true. |
3438
- | `name` | `string` | `''` | Native `name` attribute. |
3439
- | `id` | `string` | `''` | Native `id`; also links the error message via `aria-describedby`. |
3440
- | `autocomplete` | `string` | `''` | Native `autocomplete` attribute. |
3441
- | `toggleLabel` | `string` | `''` | Accessible name for the password-reveal toggle button (`type="password"` only). No label → no toggle. |
3442
- | `min` | `number \| string` | `undefined` | Native `min` (relevant for `type="number"`). |
3443
- | `max` | `number \| string` | `undefined` | Native `max` (relevant for `type="number"`). |
3444
- | `step` | `number \| string` | `undefined` | Native `step` (relevant for `type="number"`). |
3445
- | `maxlength` | `number \| string` | `undefined` | Native `maxlength` of the real `<input>`. |
3446
- | `describedby` | `string` | `''` | `aria-describedby` of the native input, for a hint or error you render yourself. The link to its own `errorMessage` wins when both apply. |
3447
- | `clearable` | `boolean` | `false` | Text button at the right end that empties the field while it has a value. Needs `clearLabel`. Works with every `type`, `search` included. |
3448
- | `clearLabel` | `string` | `''` | The clear button's text (it is text-only, so the app owns the copy). No label → no button. |
3435
+ | Prop | Type | Default | Description |
3436
+ | --------------- | ------------------------------------------------------------------------------------- | ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
3437
+ | `modelValue` | `string` | `''` | v-model — current text value. |
3438
+ | `type` | `'text' \| 'email' \| 'password' \| 'tel' \| 'number' \| 'search' \| 'url' \| 'date'` | `'text'` | Native input type. `password` renders a reveal toggle when `toggleLabel` is set; `search` always renders as a styled text input with a left search icon; `date` is the native picker (the value is an ISO `YYYY-MM-DD` string, bounded with `min` / `max`). |
3439
+ | `size` | `'xs' \| 'sm' \| 'toolbar' \| 'md'` | `'sm'` | Control height (32px / 36px / 40px / 48px). Padding, type scale and borders are the same for all; the suffix glyph is 16 / 18 / 20 / 24. `toolbar` is the contact list toolbar height. |
3440
+ | `placeholder` | `string` | `''` | Native placeholder text. |
3441
+ | `disabled` | `boolean` | `false` | Disables the control. |
3442
+ | `error` | `boolean` | `false` | Error visual state (`aria-invalid`, coral border). |
3443
+ | `errorMessage` | `string` | `''` | Message shown under the field when `error` is true. |
3444
+ | `showErrorIcon` | `boolean` | `false` | Shows a warning icon in the suffix when `error` is true. |
3445
+ | `name` | `string` | `''` | Native `name` attribute. |
3446
+ | `id` | `string` | `''` | Native `id`; also links the error message via `aria-describedby`. |
3447
+ | `autocomplete` | `string` | `''` | Native `autocomplete` attribute. |
3448
+ | `toggleLabel` | `string` | `''` | Accessible name for the password-reveal toggle button (`type="password"` only). No label → no toggle. |
3449
+ | `min` | `number \| string` | `undefined` | Native `min` (relevant for `type="number"`). |
3450
+ | `max` | `number \| string` | `undefined` | Native `max` (relevant for `type="number"`). |
3451
+ | `step` | `number \| string` | `undefined` | Native `step` (relevant for `type="number"`). |
3452
+ | `maxlength` | `number \| string` | `undefined` | Native `maxlength` of the real `<input>`. |
3453
+ | `describedby` | `string` | `''` | `aria-describedby` of the native input, for a hint or error you render yourself. The link to its own `errorMessage` wins when both apply. |
3454
+ | `clearable` | `boolean` | `false` | Text button at the right end that empties the field while it has a value. Needs `clearLabel`. Works with every `type`, `search` included. |
3455
+ | `clearLabel` | `string` | `''` | The clear button's text (it is text-only, so the app owns the copy); with `clearIcon` it is the button's `aria-label`. No label → no button. |
3456
+ | `clearIcon` | `boolean` | `false` | With `clearable`: a × glyph (18px) instead of the text button. Same behaviour; the input reserves 34px on the right instead of 72px. |
3457
+ | `applied` | `boolean` | `false` | The value is in effect (the toolbar search once Enter applied it): `accent-bg` fill and `accent-mid` border at rest. The focus border (dark grey), `error` and `disabled` still win over it. |
3458
+ | `hint` | `string` | `''` | A line under the field, shown only while the input has the focus (`role="status"`). Empty = nothing. The app owns the text and when it changes. |
3449
3459
 
3450
3460
  ### Events
3451
3461
 
@@ -3458,6 +3468,14 @@ via `v-model` (its `modelValue` is the current string value).
3458
3468
  | `field-blur` | `FocusEvent` | Focus left the **whole** component (not just moved to the internal toggle) — the "real field exit" signal. |
3459
3469
  | `clear` | — | The clear button was used; `update:modelValue` has already carried `''`. The focus stays in the input. |
3460
3470
 
3471
+ ### Toolbar search
3472
+
3473
+ `type="search" size="toolbar" applied hint clearable clearIcon` is the contact list toolbar search: 40px, the DS filled field, a × glyph while there is text. The component only draws; the draft / applied logic is the app's (the story «Toolbar search» shows it: Enter applies unless the text is 1 character, Esc clears, the hint is «Press Enter to search» or «Type at least 2 characters»). `applied` is driven by the **applied** value, not by the draft.
3474
+
3475
+ The hint floats 4px under the field (`z-index: 60`, `nowrap`, hairline, 12/600) and takes no room in the layout. It is linked to the input with `aria-describedby` (`{id}-hint`) only when the field has an `id`, together with any `describedby` you pass; the `errorMessage` link still wins.
3476
+
3477
+ Deliberate deviations from the prototype, both DS rules that win: the search keeps the DS filled look (not white with a hairline) and the focus border is the dark grey token, not «no restyle».
3478
+
3461
3479
  ### Accessibility
3462
3480
 
3463
3481
  - `aria-invalid` is set when `error` is true; `aria-describedby` links to the error message (`{id}-error`) when both `id` and `errorMessage` are present.
@@ -4812,3 +4830,236 @@ Built on the DS accent family, as `DsAlert`'s tinted look (tint fill, mid ring),
4812
4830
  `DsAlert` itself: that one is a `role="alert"` banner that is announced on mount and has no
4813
4831
  place for a link under the text. The link reads in the accent shadow, underlined: the main
4814
4832
  accent is too faint for 14px text on the tint.
4833
+
4834
+ ---
4835
+
4836
+ <!-- DsFilterChip · Toolbar -->
4837
+
4838
+ ## DsFilterChip
4839
+
4840
+ A filter of the contact list toolbar (Folder, Tags, Added, Added by). Idle it is a 40px button with a grey caret that opens a menu; **applied** it reads «Label: value» and gets its own × that clears just that filter. **Presentational**: `value` and `open` come in by props, `click` and `clear` go out. The menu is yours (`DsPopover` + the `DsMenu*` rows); the story composes the four menus, the Filters popover and the whole bar.
4841
+
4842
+ The 40px height is the documented `toolbar` step of `control-height()` (shared with `DsToolbarButton` and `DsInput size="toolbar"` through `assets/css/toolbar.scss`).
4843
+
4844
+ ### Props
4845
+
4846
+ | Prop | Type | Default | Description |
4847
+ | ------------ | --------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
4848
+ | `label` | `string` | — | The filter's name (required, app copy). Applied, the component appends the colon: «Tags:». |
4849
+ | `value` | `string` | `''` | What the filter is set to. **Non-empty = applied**: accent look, value text (max 150px, ellipsis, weight 600) and the ×. Empty = idle. |
4850
+ | `open` | `boolean` | `false` | The menu it opens is showing: `slate-tint` fill and `aria-expanded="true"`. An applied chip keeps its look. |
4851
+ | `clearLabel` | `string` | `''` | Accessible name of the × («Clear Tags»). Without it there is **no ×** (it would be unnamed) and the caret stays so the chip still opens. |
4852
+ | `disabled` | `boolean` | `false` | Disables the chip and its ×. |
4853
+
4854
+ Attributes you pass (`class`, `data-*`) land on the root `<span>`.
4855
+
4856
+ ### Events
4857
+
4858
+ | Event | Payload | When |
4859
+ | ------- | ------------ | --------------------------------------------------------------------------------------------------------------------------- |
4860
+ | `click` | `MouseEvent` | The chip was activated: toggle your menu. It also bubbles, so a `DsPopover` `#trigger` slot toggles on its own. |
4861
+ | `clear` | — | The × was activated. It stops the click, so it never emits `click` and never reaches a wrapping `DsPopover`: no menu opens. |
4862
+
4863
+ ### Behaviour
4864
+
4865
+ - Two sibling `<button>`s inside the root (open and ×), never one inside the other: both are reachable with Tab and activate with Enter / Space.
4866
+ - Only the **value** truncates (150px); the chip grows with its label, the value and the ×.
4867
+ - Idle hover and the open menu take `slate-tint`; an applied chip has no hover change, the × hovers to `accent-mid`.
4868
+ - No tooltip on the chip or the ×. The keyboard ring is drawn around the whole chip.
4869
+
4870
+ ### Accessibility
4871
+
4872
+ - The chip is a disclosure of a `dialog` (`aria-haspopup="dialog"`, `aria-expanded` follows `open`): the panel of `DsPopover`.
4873
+ - Its accessible name is its text («Tags: Q3 Outbound»); the × is named by `clearLabel`.
4874
+
4875
+ ---
4876
+
4877
+ <!-- DsMenuBackRow · Toolbar -->
4878
+
4879
+ ## DsMenuBackRow
4880
+
4881
+ The «‹ Label» header of a drilled-in menu view (the Filters popover): a button that goes back to the list it came from. **Presentational**: it emits `back`.
4882
+
4883
+ Measures: `6px 6px 8px` padding, 6px gap, a 20px `keyboard_arrow_left`, label 14/700 with ellipsis, `slate-bg` on hover.
4884
+
4885
+ ### Props
4886
+
4887
+ | Prop | Type | Default | Description |
4888
+ | ----------- | -------- | ------- | -------------------------------------------------------------------------------------------------- |
4889
+ | `label` | `string` | — | The view you are in («Tags»). Required, app copy. |
4890
+ | `ariaLabel` | `string` | `''` | Accessible name when the label alone is ambiguous («Back to filters»). Empty = the label names it. |
4891
+
4892
+ ### Events
4893
+
4894
+ | Event | Payload | When |
4895
+ | ------ | ------- | -------------------------------------------- |
4896
+ | `back` | — | The row was activated (click, Enter, Space). |
4897
+
4898
+ ### Accessibility
4899
+
4900
+ - A real `<button type="button">`; the arrow is `aria-hidden`. Pass `ariaLabel` so a screen reader hears where it goes, not just the name of the view.
4901
+
4902
+ ---
4903
+
4904
+ <!-- DsMenuDrillRow · Toolbar -->
4905
+
4906
+ ## DsMenuDrillRow
4907
+
4908
+ A row of a menu's root list that drills into a sub-view (the Filters popover): the name, what it is set to and a chevron. **Presentational**: it emits `select`; swapping the view is the app's.
4909
+
4910
+ Measures: `10px` padding, 10px gap, 4px radius, `slate-bg` on hover; label 14/700; value right-aligned with ellipsis; `chevron_right` 18px in `slate-mid`. Unset, the value is the muted placeholder (500); applied, it is `accent-shadow` bold, like the chip.
4911
+
4912
+ ### Props
4913
+
4914
+ | Prop | Type | Default | Description |
4915
+ | ------------- | -------- | ------- | -------------------------------------------------------- |
4916
+ | `label` | `string` | — | The name (required, app copy). |
4917
+ | `value` | `string` | `''` | What it is set to. Non-empty = applied. |
4918
+ | `placeholder` | `string` | `''` | Shown, muted, while there is no value («Any»). App copy. |
4919
+
4920
+ ### Events
4921
+
4922
+ | Event | Payload | When |
4923
+ | -------- | ------------ | -------------------------------------------- |
4924
+ | `select` | `MouseEvent` | The row was activated (click, Enter, Space). |
4925
+
4926
+ ### Accessibility
4927
+
4928
+ - A real `<button type="button">`; its name reads the label and the value («Tags 3 tags»). The chevron is `aria-hidden`.
4929
+
4930
+ ---
4931
+
4932
+ <!-- DsMenuEmpty · Toolbar -->
4933
+
4934
+ ## DsMenuEmpty
4935
+
4936
+ The line a menu list shows when a search matches nothing («Nothing found»). **Presentational**; it is a `role="status"` paragraph, so a screen reader hears it appear as the list empties.
4937
+
4938
+ Measures: `10px 8px` padding, 13px `slate-soft` (the `empty` mixin of the picker family).
4939
+
4940
+ ### Props
4941
+
4942
+ | Prop | Type | Default | Description |
4943
+ | ------- | -------- | ------- | ----------------------------------------------------- |
4944
+ | `label` | `string` | `''` | The message (app copy). The default slot replaces it. |
4945
+
4946
+ ---
4947
+
4948
+ <!-- DsMenuOption · Toolbar -->
4949
+
4950
+ ## DsMenuOption
4951
+
4952
+ A selectable row of a menu panel: a checkbox or a radio, an optional left adornment (colour dot, folder icon, avatar), the label with an ellipsis and an optional right hint. It is the check row and the radio row of the contact list toolbar menus. **Presentational**: it wraps `DsCheckbox` / `DsRadio`, so the semantics are native (real `<input>`, Space toggles, arrow keys move between radios of one `name`).
4953
+
4954
+ Measures: 36px minimum height, `0 10px` padding, 10px gap, 4px radius, `slate-bg` on hover; label 14px with ellipsis; hint 13px `slate-soft`.
4955
+
4956
+ ### Props
4957
+
4958
+ | Prop | Type | Default | Description |
4959
+ | ------------ | ----------------------- | ------------ | ------------------------------------------------------------------------------------------------------ |
4960
+ | `modelValue` | `boolean` | `false` | v-model: the option is selected. A radio emits `true` when chosen; the app sets the others to `false`. |
4961
+ | `type` | `'checkbox' \| 'radio'` | `'checkbox'` | Multi-select or single choice. |
4962
+ | `label` | `string` | `''` | The text (app copy). The default slot replaces it. |
4963
+ | `hint` | `string` | `''` | Small text at the right end (a count). Empty = none. |
4964
+ | `disabled` | `boolean` | `false` | Disables the control; the row loses its hover. |
4965
+ | `name` | `string` | `''` | Native `name`. Radios of one group must share it for arrow-key navigation. |
4966
+ | `value` | `string` | `''` | Native `value` of a radio. |
4967
+
4968
+ ### Slots
4969
+
4970
+ | Slot | Description |
4971
+ | --------- | --------------------------------------------------------------------------------------- |
4972
+ | `leading` | Between the control and the label: a 9px dot, a 17-18px folder icon, a 22px `DsAvatar`. |
4973
+ | default | Replaces the label text (keep it one line; the ellipsis applies to its box). |
4974
+
4975
+ ### Events
4976
+
4977
+ | Event | Payload | When |
4978
+ | ------------------- | --------- | -------------------------------------------------- |
4979
+ | `update:modelValue` | `boolean` | The row was toggled (click anywhere on it, Space). |
4980
+
4981
+ ### Accessibility
4982
+
4983
+ - The accessible name is the row's text (label and hint). Wrap a set of rows in `role="group"` with `aria-labelledby` pointing at a `DsMenuSectionLabel` `id`.
4984
+
4985
+ ---
4986
+
4987
+ <!-- DsMenuSectionLabel · Toolbar -->
4988
+
4989
+ ## DsMenuSectionLabel
4990
+
4991
+ The uppercase micro label above a group of rows in a menu panel (the chip menus and the Filters popover of the contact list toolbar), with an optional action at its right end. **Presentational**: it emits `clear`; the menu stays open.
4992
+
4993
+ Measures: `8px 10px 4px` padding, 10/700 uppercase with 0.6px tracking in `slate-soft` (the `section-label` mixin of the picker family); the action is 13/700 `accent-main`, not uppercase.
4994
+
4995
+ ### Props
4996
+
4997
+ | Prop | Type | Default | Description |
4998
+ | ------------ | -------- | ------- | ----------------------------------------------------------------- |
4999
+ | `label` | `string` | — | The section title (required, app copy). Drawn uppercase. |
5000
+ | `clearLabel` | `string` | `''` | Text of the action at the right end. Empty = no action. App copy. |
5001
+
5002
+ ### Events
5003
+
5004
+ | Event | Payload | When |
5005
+ | ------- | ------- | ----------------------------------------------- |
5006
+ | `clear` | — | The action was activated (click, Enter, Space). |
5007
+
5008
+ ### Accessibility
5009
+
5010
+ - The action is a real `<button type="button">` named by its text.
5011
+ - To name a group of options by this label, pass an `id` (it lands on the root) and set `aria-labelledby` on your `role="group"` wrapper.
5012
+
5013
+ ---
5014
+
5015
+ <!-- DsToolbarButton · Toolbar -->
5016
+
5017
+ ## DsToolbarButton
5018
+
5019
+ A 40px control of the contact list toolbar: **Sort**, **Columns**, **Filters (n)**, the phone list selector and, as the `primary` variant, **Export**. **Presentational**: it draws the states it is given (`applied`, `open`, `compact`, `count`) and emits `click`; the menu it opens is yours (`DsPopover`).
5020
+
5021
+ Why not `DsButton`: its sizes stop at 36 and 48, its `selected` look is the accent-main toggle of the Prospector, and a caret + count pill + compact tooltip would turn its 12 variants into a bar-only API. The 40px height is the documented `toolbar` step of `control-height()` (not a DS step yet), shared with `DsFilterChip` and `DsInput size="toolbar"` through `assets/css/toolbar.scss`.
5022
+
5023
+ ### Props
5024
+
5025
+ | Prop | Type | Default | Description |
5026
+ | ------------------ | ---------------------------------------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
5027
+ | `label` | `string` | — | The visible text (required, app copy). In `compact` it is not drawn and becomes the accessible name. |
5028
+ | `icon` | `string` | `''` | Material Symbols name of the leading glyph (18px). The `icon` slot replaces it. Empty and no slot = no icon. |
5029
+ | `variant` | `'outline' \| 'primary'` | `'outline'` | `outline`: white with the hairline ring. `primary`: accent fill, white text, hover `accent-shadow` (Export). |
5030
+ | `caret` | `boolean` | `false` | A trailing `keyboard_arrow_down`, for a button that opens a menu. |
5031
+ | `applied` | `boolean` | `false` | Its filter or sort is in effect: `accent-bg` fill, `accent-mid` border, `accent-shadow` text; hover fills `accent-mid`. Wins over the open tint. |
5032
+ | `open` | `boolean` | `undefined` | Whether the panel it opens is showing. Left out = a plain action (no `aria-expanded`, no `aria-haspopup`). Passed, even `false` = a disclosure of a `dialog`. Open = `slate-tint` fill and no tooltip. |
5033
+ | `compact` | `boolean` | `false` | Icon (+ caret / count) only: the label is not drawn, `aria-label` carries it and a tooltip names the button. |
5034
+ | `count` | `number` | `0` | A 20px accent pill (white 12/700) with the number of filters in effect. Zero draws nothing. |
5035
+ | `tooltip` | `string` | `''` | The tooltip text. In `compact` it falls back to the label. A full button has no tooltip: it would repeat the label. |
5036
+ | `tooltipAlways` | `boolean` | `false` | Keep the tooltip on a full button too, for text that adds information (an export's progress, why it is disabled). |
5037
+ | `tooltipPlacement` | `'top' \| 'bottom' \| 'left' \| 'right'` | `'bottom'` | Side where the tooltip opens. It is teleported, so a clipping toolbar does not cut it. |
5038
+ | `ariaLabel` | `string` | `''` | Accessible name when it must differ from the label («Filters (3)», where the pill is the only trace of the count in compact). |
5039
+ | `labelMaxWidth` | `number \| string` | `null` | Max width of the label before it ellipsizes (a number is px), e.g. 150 for the phone list selector. |
5040
+ | `disabled` | `boolean` | `false` | `disabled` + `aria-disabled`, 55% opacity, no `click`. |
5041
+
5042
+ Attributes you pass (`class`, `style`, `data-*`, `id`) land on the `<button>`, not on the tooltip wrapper.
5043
+
5044
+ ### Events
5045
+
5046
+ | Event | Payload | When |
5047
+ | ------- | ------------ | --------------------------------------------------------------------- |
5048
+ | `click` | `MouseEvent` | The button was activated (mouse, Enter, Space). Not while `disabled`. |
5049
+
5050
+ ### Slots
5051
+
5052
+ | Slot | Description |
5053
+ | ------ | ------------------------------------------------------------------------------------------------------------------------ |
5054
+ | `icon` | Replaces the leading glyph, e.g. the progress ring of a running export. Put it at 18px; `currentColor` follows the text. |
5055
+
5056
+ ### Behaviour
5057
+
5058
+ - Tooltips are hidden while the button's own panel is open, and only exist in `compact` unless `tooltipAlways` is on.
5059
+ - Keyboard focus draws a 2px accent ring 2px off the box.
5060
+ - Inside a `DsPopover` `#trigger` slot the click bubbles to the popover, so no extra wiring is needed; pass `:open` to show the open state.
5061
+
5062
+ ### Accessibility
5063
+
5064
+ - Compact and icon-only buttons are named by `aria-label`; `label` is required for that reason.
5065
+ - `open` maps to `aria-expanded` with `aria-haspopup="dialog"` (the `DsPopover` panel is a dialog).
package/llms.txt CHANGED
@@ -80,6 +80,13 @@
80
80
  - DsProfileRichSections (Profile): The sections of a full profile that come from the person's own record: **Details**
81
81
  - DsProfileTimelineRow (Profile): One entry of an Experience / Education list — the design export's `ProfileTimelineRow`
82
82
  - DsUpgradeNotice (Profile): The box that tells the user what their plan does not allow and links to the upgrade: «To
83
+ - DsFilterChip (Toolbar): A filter of the contact list toolbar (Folder, Tags, Added, Added by). Idle it is a 40px button with a grey caret that opens a menu;…
84
+ - DsMenuBackRow (Toolbar): The «‹ Label» header of a drilled-in menu view (the Filters popover): a button that goes back to the list it came from. **Presentational**:…
85
+ - DsMenuDrillRow (Toolbar): A row of a menu's root list that drills into a sub-view (the Filters popover): the name, what it is set to and a chevron.…
86
+ - DsMenuEmpty (Toolbar): The line a menu list shows when a search matches nothing («Nothing found»). **Presentational**; it is a `role="status"` paragraph, so a…
87
+ - DsMenuOption (Toolbar): A selectable row of a menu panel: a checkbox or a radio, an optional left adornment (colour dot, folder icon, avatar), the label with an…
88
+ - DsMenuSectionLabel (Toolbar): The uppercase micro label above a group of rows in a menu panel (the chip menus and the Filters popover of the contact list toolbar), with…
89
+ - DsToolbarButton (Toolbar): A 40px control of the contact list toolbar: **Sort**, **Columns**, **Filters (n)**, the phone list selector and, as the `primary` variant,…
83
90
 
84
91
  ## Full documentation
85
92
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesql/sql_components_vue3",
3
- "version": "3.31.0",
3
+ "version": "3.32.0",
4
4
  "description": "Librería de componentes Vue 3 (SalesQL)",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",