@wirecore/wirelayer-vue 0.12.2 → 0.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.
Files changed (57) hide show
  1. package/dist/{Button-BpMOPs8b.js → Button-WA6BonwF.js} +1 -1
  2. package/dist/{Checkbox-DS2qfQK1.js → Checkbox-DILwucBG.js} +1 -1
  3. package/dist/{CopyButton-Cv9QfFfS.js → CopyButton-BVRwSCRj.js} +2 -2
  4. package/dist/{Field-Cqe2BG_x.js → Field-DuZfFNFT.js} +3 -3
  5. package/dist/{Highlight-uwptdaUw.js → Highlight-BM-J3Jj0.js} +1 -1
  6. package/dist/{Input-C5dyvZfJ.js → Input-CH-ntEjv.js} +10 -10
  7. package/dist/RecipesProvider-DDJst6Pj.js +2448 -0
  8. package/dist/{Select-q8FUIWLi.js → Select-B5c6Y3mf.js} +4 -4
  9. package/dist/{Slider-Cpv7Vj3B.js → Slider-Z-rsNeI1.js} +2 -2
  10. package/dist/Tree-C8vsEA6K.js +852 -0
  11. package/dist/chart.js +31 -31
  12. package/dist/code.js +7 -7
  13. package/dist/components/Confirm/ConfirmDialog.vue.d.ts.map +1 -1
  14. package/dist/components/Confirm/confirm.d.ts +5 -0
  15. package/dist/components/Confirm/confirm.d.ts.map +1 -1
  16. package/dist/components/Dialog/DialogContent.vue.d.ts +12 -2
  17. package/dist/components/Dialog/DialogContent.vue.d.ts.map +1 -1
  18. package/dist/components/DialogService/DialogHost.vue.d.ts.map +1 -1
  19. package/dist/components/DialogService/dialogs.d.ts +5 -0
  20. package/dist/components/DialogService/dialogs.d.ts.map +1 -1
  21. package/dist/components/Drawer/DrawerContent.vue.d.ts +10 -1
  22. package/dist/components/Drawer/DrawerContent.vue.d.ts.map +1 -1
  23. package/dist/components/LocaleProvider/LocaleProvider.vue.d.ts +1 -0
  24. package/dist/components/LocaleProvider/LocaleProvider.vue.d.ts.map +1 -1
  25. package/dist/components/NotificationCenter/NotificationCenter.vue.d.ts +8 -1
  26. package/dist/components/NotificationCenter/NotificationCenter.vue.d.ts.map +1 -1
  27. package/dist/data-table/DataTable.vue.d.ts +25 -6
  28. package/dist/data-table/DataTable.vue.d.ts.map +1 -1
  29. package/dist/data-table/FilterMenu.vue.d.ts.map +1 -1
  30. package/dist/data-table/ValueInput.vue.d.ts +4 -0
  31. package/dist/data-table/ValueInput.vue.d.ts.map +1 -1
  32. package/dist/data-table/features.d.ts +10 -0
  33. package/dist/data-table/features.d.ts.map +1 -1
  34. package/dist/data-table/index.d.ts +1 -1
  35. package/dist/data-table/index.d.ts.map +1 -1
  36. package/dist/data-table/inputs.d.ts +5 -0
  37. package/dist/data-table/inputs.d.ts.map +1 -1
  38. package/dist/data-table/types.d.ts +2 -0
  39. package/dist/data-table/types.d.ts.map +1 -1
  40. package/dist/data-table.js +1697 -1575
  41. package/dist/editor.js +4 -4
  42. package/dist/form.js +35 -35
  43. package/dist/index.d.ts +1 -1
  44. package/dist/index.d.ts.map +1 -1
  45. package/dist/index.js +4204 -4275
  46. package/dist/pdf.js +6 -6
  47. package/dist/{recipes-BlM9aKyt.js → recipes-CD2Ibsv9.js} +8 -1
  48. package/dist/recipes.d.ts +6 -0
  49. package/dist/recipes.d.ts.map +1 -1
  50. package/dist/sources/dateRangeInput.css +3 -0
  51. package/dist/{useTree-UhG1TMeM.js → useTree-DjkjHeoy.js} +114 -114
  52. package/dist/virtual.js +6 -6
  53. package/llms-full.txt +76 -15
  54. package/llms.txt +1 -0
  55. package/package.json +3 -3
  56. package/dist/ContextMenu-DC--vmIf.js +0 -2321
  57. package/dist/Tree-3o3OJASC.js +0 -840
package/llms-full.txt CHANGED
@@ -1726,13 +1726,15 @@ Data table on TanStack Table: sorting (also by several columns), search, filter
1726
1726
  | row-expandable? | `(row: T) => boolean` | Whether a row has details (#expansion) – rows without get no expand button (default: all rows) |
1727
1727
  | advanced-filter? | `boolean \| ConditionField[]` | Advanced filter: the rows pass a condition tree (nested and/or rules; v-model:advanced-filter-value). `true` offers every column with a filter type; or pass the fields. A toolbar button opens the editor from the `#advancedFilter` slot above the table – usually `ConditionBuilder` from `@wirecore/wirelayer-blocks-vue`; without it there is no button (the tree still filters). A server filters instead: `dataSource` gets the tree as `condition`, with `manual` the parent applies it |
1728
1728
  | v-model:advanced-filter-value? | `ConditionGroup` | The condition tree of the advanced filter (controlled together with onAdvancedFilterValueChange) |
1729
+ | sortable? | `boolean` | Every column with a value can be sorted, unless the column sets `sortable: false`; columns without a value (only a slot, e.g. actions) stay out. App-wide: `dataTable: { defaultVariants: { sortable: true } }` |
1729
1730
  | search? | `boolean` | Search field above the table: filters over all columns (v-model:global-filter) |
1731
+ | search-align? | `'start' \| 'center'` | Place of the search field: `start` (default) after the controls of the toolbar start, `center` in the middle between them and the controls at the end. App-wide: `dataTable: { defaultVariants: { searchCentered: true } }` |
1730
1732
  | v-model:global-filter? | `string` | |
1731
1733
  | row-keywords? | `(row: T) => string \| readonly string[] \| null \| undefined` | More text the search finds a row by, besides its columns – e.g. fields without a column of their own (not in server mode: there the server searches) |
1732
1734
  | highlight-search? | `boolean` | Marks the search hits in the cells |
1733
1735
  | v-model:filters? | `Record<string, DataTableFilterValue>` | Column filters by column id – use with v-model:filters |
1734
1736
  | filter-display? | `'row' \| 'menu' \| 'none'` | Filters in a row below the headers, as a menu per column with match modes and conditions, or none |
1735
- | v-model:show-filters? | `boolean` | Shows the filter row or menus – use with v-model:show-filters (`filterToggle`); the filters keep working |
1737
+ | v-model:show-filters? | `boolean` | Shows the filter row or menus – use with v-model:show-filters (`filterToggle`); the filters keep working. Default true; app-wide `dataTable: { defaultVariants: { showFilters: false } }`, a saved state (`stateKey`) wins |
1736
1738
  | filter-toggle? | `boolean` | Button in the toolbar that shows and hides the filters |
1737
1739
  | filter-reset? | `boolean` | Button in the toolbar that clears the column filters, the search and the advanced filter (`resetFilters()`) |
1738
1740
  | max-constraints? | `number` | Conditions per column in the filter menu |
@@ -1766,9 +1768,10 @@ Data table on TanStack Table: sorting (also by several columns), search, filter
1766
1768
  | density-toggle? | `boolean` | Menu above the table to change the row height |
1767
1769
  | gridlines? | `boolean` | Lines between the columns |
1768
1770
  | bordered? | `boolean` | A border around the whole table |
1769
- | striped? | `boolean` | Every other row tinted |
1771
+ | striped? | `boolean` | Every other row tinted (app-wide: `dataTable: { defaultVariants: { striped: true } }`) |
1770
1772
  | fullscreen-toggle? | `boolean` | Button above the table to show it on the whole screen |
1771
- | scroll-height? | `string` | Fixed height (CSS length): the table scrolls inside, header and footer stay visible |
1773
+ | scroll-height? | `string` | Height of the scroll area: a CSS length (its maximum – the table scrolls inside, header and footer stay visible) or `fill`: the table takes the rest of a flex column (e.g. a page with `min-h-screen flex flex-col`), the rows scroll in the room left – set `minScrollHeight` so it does not collapse on small screens |
1774
+ | min-scroll-height? | `string` | `scrollHeight="fill"`: minimum height of the scroll area (CSS length, e.g. 60vh) – below it the page scrolls |
1772
1775
  | features? | `readonly DataTableFeature[]` | Feature modules, imported on their own so apps only bundle what they use (fixed for the life of the table): `virtualRows` from `/virtual` for `virtual`, `dateInput` and `numberInput` for date and number filters and editors (without them the browser's inputs) |
1773
1776
  | virtual? | `boolean` | Only the visible rows are rendered (requires `scrollHeight` and the feature `virtualRows`) |
1774
1777
  | row-height? | `number` | Estimated row height in px for `virtual` |
@@ -1818,9 +1821,9 @@ Data table on TanStack Table: sorting (also by several columns), search, filter
1818
1821
  | #option-<id> | `{ item: unknown; selected: boolean; highlighted: boolean; disabled: boolean; }` | An option in the select filter and editor lists of a column, by column id – e.g. a status as a badge |
1819
1822
  | #expansion | `{ row: TData; rowId: string }` | Details below an expanded row – adds the expand column |
1820
1823
  | #advancedFilter | `DataTableAdvancedFilterProps` | The editor of the advanced filter, e.g. ConditionBuilder from `@wirecore/wirelayer-blocks-vue`: `<template #advancedFilter="{ fields, value, setValue, label }">` |
1821
- | #toolbar | – | Own controls in the toolbar, after the search |
1822
- | #toolbarStart | – | Own controls at the start of the toolbar, before the search |
1823
- | #toolbarEnd | – | Own controls at the end of the toolbar, before the built-in buttons |
1824
+ | #toolbar | – | Own controls in the toolbar, after the search – buttons, fields and menus default to the toolbar size (sm) |
1825
+ | #toolbarStart | – | Own controls at the start of the toolbar, before the search (default size sm, like the built-in ones) |
1826
+ | #toolbarEnd | – | Own controls at the end of the toolbar, before the built-in buttons (default size sm, like them) |
1824
1827
  | #empty | – | Shown when there are no rows |
1825
1828
  | #noResults | – | Shown when the filters or the search leave no row (default: `empty`) |
1826
1829
  | #loadingContent | – | Shown while loading without rows (default: spinner and "Loading") |
@@ -2041,8 +2044,8 @@ The modal window of a Dialog: title, description, focus trap, Escape closes
2041
2044
  | Prop | Type | Description |
2042
2045
  | --- | --- | --- |
2043
2046
  | title | `string` | |
2044
- | hide-title? | `boolean` | The title only for screen readers – it still names the dialog (e.g. a video in a dialog) |
2045
- | title-position? | `'body' \| 'header'` | `body` (default): the title below the header row; `header`: in the row of the close button, after a smaller icon, the header separated by a line (as on the Drawer) |
2047
+ | hide-title? | `boolean` | The title only for screen readers – it still names the dialog (e.g. a video in a dialog). With the `#header` slot this is the default; `false` shows the title where `titlePosition` puts it |
2048
+ | title-position? | `'body' \| 'header'` | `body` (default): the title below the header row; `header`: in the row of the close button, after a smaller icon, the header separated by a line (as on the Drawer). App-wide default: `titleInHeader` in the `defaultVariants` of the `dialog` recipe (RecipesProvider/ConfigProvider) |
2046
2049
  | description? | `string` | |
2047
2050
  | icon? | `Component` | Icon component in the coloured box at the top |
2048
2051
  | status? | `DialogStatus` | |
@@ -2068,6 +2071,7 @@ The modal window of a Dialog: title, description, focus trap, Escape closes
2068
2071
 
2069
2072
  | Slot | Slot props | Description |
2070
2073
  | --- | --- | --- |
2074
+ | #header | – | Own content in the header row, after the icon and before the close button – e.g. a logo or a badge; the title then only names the dialog for screen readers (unless `hide-title` is `false`) |
2071
2075
  | #default | – | The content below the title |
2072
2076
  | #footer | – | Buttons at the bottom, e.g. Cancel and Save (right-aligned) |
2073
2077
 
@@ -2186,7 +2190,7 @@ The panel of a Drawer, sliding in from a side; title, focus trap, Escape closes
2186
2190
  | Prop | Type | Description |
2187
2191
  | --- | --- | --- |
2188
2192
  | title | `string` | |
2189
- | hide-title? | `boolean` | The title only for screen readers – it still names the drawer (e.g. a video in a dialog) |
2193
+ | hide-title? | `boolean` | The title only for screen readers – it still names the drawer (e.g. a video in a dialog). With the `#header` slot this is the default; `false` shows the title next to the slot content |
2190
2194
  | description? | `string` | |
2191
2195
  | placement? | `DrawerPlacement` | |
2192
2196
  | size? | `OverlaySize` | Width (left/right: sm 320px, md 420px, lg 560px, xl 720px) or height (top/bottom: 30–85 % of the screen); `full` covers the whole screen. Without it 420px wide or as high as the content |
@@ -2197,6 +2201,7 @@ The panel of a Drawer, sliding in from a side; title, focus trap, Escape closes
2197
2201
 
2198
2202
  | Slot | Slot props | Description |
2199
2203
  | --- | --- | --- |
2204
+ | #header | – | Own content in the header row, before the close button – e.g. the logo of the app; the title then only names the drawer for screen readers (unless `hide-title` is `false`) |
2200
2205
  | #default | – | The content below the title (scrolls) |
2201
2206
  | #footer | – | Buttons at the bottom, e.g. Cancel and Save |
2202
2207
 
@@ -3898,6 +3903,9 @@ Bell with the unread count (part of its name) that opens the notifications in a
3898
3903
  | display? | `'popover' \| 'drawer'` | popover (default) next to the bell, or drawer from the side |
3899
3904
  | v-model:open? | `boolean` | Controlled state – use with v-model:open |
3900
3905
  | label? | `string` | Name of the bell and title of the panel (default "Notifications") |
3906
+ | variant? | `IconButtonVariant` | Look of the bell (IconButton `variant`), e.g. `outline` next to other outlined buttons in a header (default `text`) |
3907
+ | color? | `ButtonColor` | Colour of the bell, combined with the variant (IconButton `color`) |
3908
+ | size? | `ButtonSize` | Size of the bell (IconButton `size`), e.g. `sm` in a compact header |
3901
3909
  | now? | `Date \| string` | Reference time for "Today"/"Yesterday" (default: now) |
3902
3910
  | empty-text? | `string` | Text without notifications (default "No notifications") |
3903
3911
  | classes? | `RecipeClasses<typeof notificationCenterRecipe>` | Extra classes per part of the component, e.g. { base: "…" } (see the recipe) |
@@ -6469,6 +6477,7 @@ Year field ("2026"): type the digits, or pick from the year grid; range: start
6469
6477
  - `createValidator` (`@wirecore/wirelayer-vue/form`): –
6470
6478
  - `dataSourceToRows` (`@wirecore/wirelayer-vue/data-table`): –
6471
6479
  - `dateInput` (`@wirecore/wirelayer-vue/data-table`): DataTable feature: the DatePicker for `date` and `datetime` filters and editors (without: the browser's date input)
6480
+ - `dateRangeInput` (`@wirecore/wirelayer-vue/data-table`): DataTable feature: the DateRangePicker for `between` filters of `date` and `datetime` columns – one field for from and to (without: two fields)
6472
6481
  - `defaultBubbleTools` (`@wirecore/wirelayer-vue/editor`): Tools of the bubble menu (text selected) by default
6473
6482
  - `defaultEmojis` (`@wirecore/wirelayer-vue`): –
6474
6483
  - `defaultFloatingTools` (`@wirecore/wirelayer-vue/editor`): Tools of the floating menu (empty line) by default
@@ -6546,6 +6555,7 @@ Year field ("2026"): type the digits, or pick from the year grid; range: start
6546
6555
  - `useMediaQuery` (`@wirecore/wirelayer-vue`): Whether a media query matches, e.g. `useMediaQuery('(min-width: 768px)')` – updates when it changes
6547
6556
  - `useNetwork` (`@wirecore/wirelayer-vue`): Online state and connection quality (where the browser tells) – online on the server
6548
6557
  - `useRecipe` (`@wirecore/wirelayer-vue`): The recipe with the defaults and classes of the nearest RecipesProvider and the component's `classes` prop. Call it in setup; it reads both on every call, so a computed or render that calls it follows changes.
6558
+ - `useRecipeDefaults` (`@wirecore/wirelayer-vue`): The default variants of a recipe – its own, overridden by the nearest RecipesProvider. For props that change the markup as well as the classes (DialogContent `titlePosition` ↔ `titleInHeader`, DataTable `showFilters` …): the component reads the default here when the prop is not set. Call it in setup; the getter follows changes.
6549
6559
  - `useReducedMotion` (`@wirecore/wirelayer-vue`): Whether the user asked for less motion (prefers-reduced-motion: reduce)
6550
6560
  - `useRegisteredHotkeys` (`@wirecore/wirelayer-vue`): The registered shortcuts (enabled, with a description), updated as components register them
6551
6561
  - `useResizeObserver` (`@wirecore/wirelayer-vue`): The content box of an element as it changes (bind `ref` to it)
@@ -6817,6 +6827,23 @@ const recipes: RecipeConfig = {
6817
6827
  };
6818
6828
  ```
6819
6829
 
6830
+ Some defaults change more than classes – where the title of a dialog sits, for example. They are variants of the recipe
6831
+ as well, so the same `defaultVariants` set them once for the whole app; a prop on the single component still wins:
6832
+
6833
+ | Recipe default | Instead of on every component |
6834
+ | ---------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- |
6835
+ | `dialog: { defaultVariants: { titleInHeader: true } }` | `DialogContent title-position="header"`, also `confirm()`, `prompt()` and `openDialog()` (option `titlePosition`) |
6836
+ | `dataTable: { defaultVariants: { showFilters: false } }` | `DataTable :show-filters="false"` – filters closed at the start (a saved `stateKey` state still wins) |
6837
+ | `dataTable: { defaultVariants: { searchCentered: true } }` | `DataTable search-align="center"` – the search between the actions at the start and the tools at the end |
6838
+ | `dataTable: { defaultVariants: { sortable: true } }` | `DataTable sortable` – every column with a value sorts (not `sortable: false`, not a slot-only column) |
6839
+ | `dataTable: { defaultVariants: { striped: true } }` | `DataTable striped` – the same for `gridlines`, `bordered`, `wrapHeaders`, `verticalHeaders` |
6840
+
6841
+ Own buttons, fields and menus in the toolbar slots of a DataTable (`#toolbar`, `#toolbarStart`, `#toolbarEnd`) default
6842
+ to the size of the built-in toolbar controls (`sm`); a `size` on them still wins. A text filter shows the placeholder
6843
+ “Filter …” (translations `dataTable.filterText`) unless the column's `filterInputProps` has one.
6844
+
6845
+ React Native has no `RecipesProvider`; there the props stay on the single component.
6846
+
6820
6847
  Per part the classes come in this order: `classes`, the matching `variants` and `compoundVariants`, the states of the
6821
6848
  recipe, the overrides of states (`invalid: { true: … }`), and last the class passed to the component. Inner providers
6822
6849
  extend outer ones (classes of the same value are joined, the inner ones win).
@@ -6883,11 +6910,12 @@ import { DataTable } from '@wirecore/wirelayer-react/data-table';
6883
6910
  Parts of the DataTable that bring a lot of code along are imported on their own – an app only bundles the ones it passes
6884
6911
  in `features` (fixed for the life of a table). The DatePicker alone is about 40 KB (gzip).
6885
6912
 
6886
- | Feature | Import | Adds | Without it |
6887
- | ------------- | ---------------------------------------------------------------------- | ---------------------------------------------------- | -------------------------------------------- |
6888
- | `virtualRows` | `@wirecore/wirelayer-react/virtual` (peer dependency TanStack Virtual) | only the visible rows are rendered with `virtual` | all rows are rendered, a hint in development |
6889
- | `dateInput` | `@wirecore/wirelayer-react/data-table` | DatePicker for `date` and `datetime` filters/editors | the browser's date input |
6890
- | `numberInput` | `@wirecore/wirelayer-react/data-table` | NumberInput for `number` filters and editors | the browser's number input |
6913
+ | Feature | Import | Adds | Without it |
6914
+ | ---------------- | ---------------------------------------------------------------------- | ---------------------------------------------------- | -------------------------------------------- |
6915
+ | `virtualRows` | `@wirecore/wirelayer-react/virtual` (peer dependency TanStack Virtual) | only the visible rows are rendered with `virtual` | all rows are rendered, a hint in development |
6916
+ | `dateInput` | `@wirecore/wirelayer-react/data-table` | DatePicker for `date` and `datetime` filters/editors | the browser's date input |
6917
+ | `numberInput` | `@wirecore/wirelayer-react/data-table` | NumberInput for `number` filters and editors | the browser's number input |
6918
+ | `dateRangeInput` | `@wirecore/wirelayer-react/data-table` | one DateRangePicker for `between` filters of dates | two fields (from, to) |
6891
6919
 
6892
6920
  ```tsx
6893
6921
  import { DataTable, dateInput, numberInput } from '@wirecore/wirelayer-react/data-table';
@@ -6905,6 +6933,18 @@ const features = [virtualRows, dateInput, numberInput];
6905
6933
 
6906
6934
  Vue: the same imports from `@wirecore/wirelayer-vue/data-table` and `@wirecore/wirelayer-vue/virtual`.
6907
6935
 
6936
+ `scrollHeight` takes a CSS length – the maximum height, the rows scroll inside – or `fill`: the table takes the rest of a
6937
+ flex column and the rows scroll in the room left down to its bottom, whatever is above it (headings, figures that wrap on
6938
+ narrow screens). `minScrollHeight` keeps it from collapsing; below that the page scrolls.
6939
+
6940
+ ```vue
6941
+ <main class="flex min-h-screen flex-col gap-4 p-6">
6942
+ <PageHeader title="Machines" />
6943
+ <StatsRow />
6944
+ <DataTable :data="rows" :columns="columns" :features="features" scroll-height="fill" min-scroll-height="60vh" virtual />
6945
+ </main>
6946
+ ```
6947
+
6908
6948
  ### AI assistants (MCP, llms.txt)
6909
6949
 
6910
6950
  So that Claude, Cursor and others use the components correctly, the API is available as text and as an MCP server:
@@ -7225,6 +7265,7 @@ as `pdfjs-dist` (Apache-2.0), Chart.js, Tiptap and Shiki are installed by the ap
7225
7265
  | `useToast().add({ severity, summary, detail, life })` | `toast({ type, title, description, duration })`, `<Toaster />` once in the app |
7226
7266
  | `useConfirm().require({ … })` | `await confirm({ title, description, … })`, `<ConfirmDialog />` once in the app |
7227
7267
  | `DataTable` + `Column` | `DataTable :columns` (column objects), `#cell-<id>`, `#expansion`, `v-model:page-size` |
7268
+ | `DataTable scrollHeight="flex"` | `DataTable scroll-height="fill"` (with `min-scroll-height`) in a flex column |
7228
7269
  | `expandedRows` with a row toggler on some rows | `#expansion` + `row-expandable` |
7229
7270
  | `paginatorTemplate` (first/last page) | `paginator-edges`, `paginator-align` |
7230
7271
  | `showGridlines` (with the outer border) | `gridlines` + `bordered` |
@@ -7282,7 +7323,9 @@ as `pdfjs-dist` (Apache-2.0), Chart.js, Tiptap and Shiki are installed by the ap
7282
7323
  - **Typed values:** `RadioGroup`, `SegmentedControl` and `NativeSelect` keep the type of the bound value (unions,
7283
7324
  numbers); `Checkbox` with a boolean model gives booleans.
7284
7325
  - **Compact parts:** `Progress size="xs"` with `hide-label`, `bar-text` and `status`; `Alert #actions`; `mono` on text
7285
- fields; `DialogContent title-position="header"` puts the title next to the close button.
7326
+ fields; `DialogContent title-position="header"` puts the title next to the close button – for all dialogs of the
7327
+ app once centrally instead of on every dialog: `RecipesProvider` with
7328
+ `{ dialog: { defaultVariants: { titleInHeader: true } } }` (also for `confirm()`, `prompt()` and `openDialog()`).
7286
7329
  - **Values that are never empty:** with `required`, `RadioGroup` and `SegmentedControl` give v-model `V` instead of
7287
7330
  `V | null`; `NativeSelect` without `placeholder` gives `V` instead of `V | ''`; `NumberInput empty-fallback="min"` or
7288
7331
  `"previous"` refills an emptied field when it is left (typed `number`). `Select empty-value=""` treats an empty string
@@ -7462,3 +7505,21 @@ Not part of it:
7462
7505
  - Shapes stay round: everything with `rounded-full` (Button and IconButton with the default `shape="pill"` – use
7463
7506
  `shape="rounded"` or `"square"` –, Switch, Badge, Radio, Avatar with `shape="circle"`), the thin bars of Progress, the
7464
7507
  marks of Highlight and the diamond of a Gantt milestone.
7508
+
7509
+ ### Scrollbars
7510
+
7511
+ The page and every scrolling area (DataTable with `scrollHeight`, Dialog and Drawer with long content, lists of Select
7512
+ and Menu, Textarea …) get thin scrollbars in the look of `ScrollPanel`: the thumb in `line-strong` (at least 3:1 against
7513
+ the surfaces, in every theme and mode), the track transparent. They follow the mode and theme of the part they are in.
7514
+ Browsers without `scrollbar-color` (Safari) get the same look through `::-webkit-scrollbar`; with forced colors (Windows
7515
+ contrast themes) the system scrollbars stay.
7516
+
7517
+ | Variable | Default | Applies to |
7518
+ | ---------------------------- | ----------------------- | --------------------------------------------------------------------- |
7519
+ | `--wc-scrollbar-thumb` | `var(--wc-line-strong)` | Thumb |
7520
+ | `--wc-scrollbar-thumb-hover` | `var(--wc-muted)` | Thumb under the pointer (Safari; other browsers darken it themselves) |
7521
+ | `--wc-scrollbar-track` | `transparent` | Track |
7522
+ | `--wc-scrollbar-width` | `thin` | `scrollbar-width` (`auto` for the wide ones) |
7523
+
7524
+ `<html data-scrollbars="native">` keeps the browser's own scrollbars on the whole page. The rules sit in the base layer,
7525
+ so a utility on a single element still wins (e.g. `[scrollbar-width:none]`).
package/llms.txt CHANGED
@@ -315,3 +315,4 @@ Full API (props, events, slots, examples) in llms-full.txt next to this file. MC
315
315
  - Custom theme
316
316
  - Second brand color and hover color
317
317
  - Component sizes and shapes
318
+ - Scrollbars
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wirecore/wirelayer-vue",
3
- "version": "0.12.2",
3
+ "version": "0.13.0",
4
4
  "description": "WireLayer components for Vue 3",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -166,8 +166,8 @@
166
166
  "@ark-ui/vue": "^5.39.3",
167
167
  "@internationalized/date": "^3.12.4",
168
168
  "@lucide/vue": "^1.59.0",
169
- "@wirecore/wirelayer-recipes": "^0.11.0",
170
- "@wirecore/wirelayer-tokens": "^0.7.0"
169
+ "@wirecore/wirelayer-recipes": "^0.12.0",
170
+ "@wirecore/wirelayer-tokens": "^0.8.0"
171
171
  },
172
172
  "devDependencies": {
173
173
  "@storybook/addon-a11y": "^10.6.2",