@vjdesigns/vjdesigns-ui 3.8.1 → 3.8.3

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 (45) hide show
  1. package/CHANGELOG.md +228 -208
  2. package/README.md +2 -0
  3. package/dist/ai/llms-full.txt +1 -1
  4. package/dist/ai/registry.json +1 -1
  5. package/dist/components/data-display/Accordion/Accordion.cjs.js +1 -1
  6. package/dist/components/data-display/Accordion/Accordion.mjs +13 -9
  7. package/dist/components/data-display/List/List.cjs.js +1 -1
  8. package/dist/components/data-display/List/List.mjs +1 -0
  9. package/dist/components/data-display/Poll/Poll.cjs.js +1 -1
  10. package/dist/components/data-display/Poll/Poll.mjs +11 -7
  11. package/dist/components/feedback/Progress/Progress.cjs.js +1 -1
  12. package/dist/components/feedback/Progress/Progress.mjs +2 -0
  13. package/dist/components/forms/CheckBox/CheckBox.cjs.js +1 -1
  14. package/dist/components/forms/CheckBox/CheckBox.mjs +111 -99
  15. package/dist/components/forms/CheckBox/CheckBox.module.css.cjs.js +1 -1
  16. package/dist/components/forms/CheckBox/CheckBox.module.css.mjs +17 -16
  17. package/dist/components/forms/Combobox/ComboboxPopup.cjs.js +1 -1
  18. package/dist/components/forms/Combobox/ComboboxPopup.mjs +13 -9
  19. package/dist/components/forms/Radio/Radio.cjs.js +1 -1
  20. package/dist/components/forms/Radio/Radio.mjs +28 -20
  21. package/dist/components/forms/Rating/Rating.cjs.js +1 -1
  22. package/dist/components/forms/Rating/Rating.mjs +2 -2
  23. package/dist/components/forms/RatingScale/RatingScale.cjs.js +1 -1
  24. package/dist/components/forms/RatingScale/RatingScale.mjs +2 -2
  25. package/dist/components/forms/SegmentedControl/SegmentedControl.cjs.js +1 -1
  26. package/dist/components/forms/SegmentedControl/SegmentedControl.mjs +82 -80
  27. package/dist/components/forms/SegmentedControl/SegmentedControl.module.css.cjs.js +1 -1
  28. package/dist/components/forms/SegmentedControl/SegmentedControl.module.css.mjs +1 -1
  29. package/dist/components/forms/Switch/Switch.cjs.js +1 -1
  30. package/dist/components/forms/Switch/Switch.mjs +39 -35
  31. package/dist/components/navigation/MobileNav/MobileNav.module.css.cjs.js +1 -1
  32. package/dist/components/navigation/MobileNav/MobileNav.module.css.mjs +14 -14
  33. package/dist/components/navigation/Stepper/Stepper.cjs.js +1 -1
  34. package/dist/components/navigation/Stepper/Stepper.mjs +1 -0
  35. package/dist/components/navigation/Tabs/Tabs.cjs.js +1 -1
  36. package/dist/components/navigation/Tabs/Tabs.mjs +129 -127
  37. package/dist/components/navigation/Tabs/Tabs.module.css.cjs.js +1 -1
  38. package/dist/components/navigation/Tabs/Tabs.module.css.mjs +1 -1
  39. package/dist/components/primitives/Icon/IconSvg.cjs.js +1 -1
  40. package/dist/components/primitives/Icon/IconSvg.mjs +18 -11
  41. package/dist/utils/plainText.cjs.js +1 -0
  42. package/dist/utils/plainText.d.ts +7 -0
  43. package/dist/utils/plainText.mjs +14 -0
  44. package/dist/vjdesigns-ui.css +1 -1
  45. package/package.json +6 -1
package/CHANGELOG.md CHANGED
@@ -1,208 +1,228 @@
1
- # Changelog
2
-
3
- Notable changes to `@vjdesigns/vjdesigns-ui`. The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and the package uses [Semantic Versioning](https://semver.org/).
4
-
5
- Pro (`@vjdesigns-pro/ui`) has its own release notes, included with the Pro package.
6
-
7
- ## Unreleased
8
-
9
- ### Changed
10
-
11
- - `Poll` (`layout="bars"`): results are now rounded tiles with the label and percentage on top and a thick bar underneath, instead of a fill behind the text. Every label now sits on one plain background, so automated checkers such as axe can measure its contrast instead of reporting "needs review" (the contrast itself already passed).
12
-
13
- ## 3.8.0 - 2026-11-17
14
-
15
- ### Added
16
-
17
- - `RatingScale` component: a labeled, single-choice rating scale with three looks (`variant`): five `faces` (very unhappy to very happy), `numbers` from `min` to `max` (such as a 0 to 10 "how likely" scale, with `startLabel` and `endLabel` captions), or `thumbs` up and down. Built on native radios, so it works in forms, `Field`, and `useFormValidation`, with arrow keys, `allowClear`, `readOnly`, custom `options`, captions under each option (`showLabels`), and an optional red-to-green `sentiment` tint for the faces.
18
- - `Poll` component: a question with choices that switches to results (printed percentages with bars) after a vote. Four layouts: `bars`, `cards` (image or icon choices), `compact`, and `versus` (two choices head to head with one split bar). Single or multiple choice (`maxChoices`), instant or button voting, async `onVote` with a loading state, `allowChangeVote`, `endsAt` ("Ends in 3 days"), `closed` final results, and `showResults="never"` to hide results until the poll closes. Results move focus and are announced to screen readers. The poll is UI only: you store the votes and pass the counts back. Also exports `computePollResults()`, which rounds shares to add up to exactly 100.
19
- - `ReviewCard` component: one customer review with the reviewer's avatar, a star rating, date, a "Verified purchase" badge, headline, body clamped with "Read more", a "Recommends" or "Doesn't recommend" line, photos, "Helpful? Yes / No" toggle buttons with a count, and an owner reply.
20
- - `RatingBreakdown` component: the summary above a review list, with the average rating, review count, an optional "would recommend" share, and one bar per star level. With `onLevelSelect`, each row is a toggle button for filtering reviews by level.
21
- - Icons: `FaceVerySadIcon`, `FaceSadIcon`, `FaceNeutralIcon`, `FaceHappyIcon`, `FaceVeryHappyIcon`, `ThumbsUpIcon`, `ThumbsDownIcon`, and `VerifiedIcon` (also by name, e.g. `<Icon name="face-happy" />`).
22
- - `ratingScale`, `poll`, `reviewCard`, and `ratingBreakdown` messages in every bundled language.
23
- - `reviewForm`, `reviewsSection`, `pollBuilder`, and `pollResultsChart` messages in every bundled language, for Pro's new review and poll components.
24
- - Media icons: `VolumeIcon`, `VolumeOffIcon`, `FullscreenIcon`, `FullscreenExitIcon`, `CaptionsIcon`, and `PipIcon`, and `media` messages in every bundled language, for Pro's new players.
25
-
26
- ## 3.7.0 - 2026-11-17
27
-
28
- ### Added
29
-
30
- - `MobileNav` component: a mobile navigation bar as a bottom tab bar, a top bar, or a side rail (`placement`), with `MobileNav.Item` links (icon, label, optional badge and `activeIcon`). A bubble slides to the current item, with an animated `effect`: `bubbles` (the default; small bubbles float up), `sparkle`, `confetti`, `glow`, `jelly`, `orbit`, `splash`, or `none` to turn it off. With reduced motion, the bubble just moves. `surface` and `solid` variants, accent, primary, or neutral `activeTone`, three sizes, a `floating` style, labels shown `always`, only on the `active` item, or `never` (they stay the items' accessible names), and `hideAbove` to show it only on phones. A fixed bar respects the phone's safe areas and reserves its space as scroll padding and `--mobile-nav-offset`, so focused content isn't hidden behind it. Works with router links through `as` and `active`.
31
- - `mobileNav.nav` message ("Main") in every bundled language.
32
-
33
- ## 3.6.0 - 2026-11-13
34
-
35
- ### Added
36
-
37
- - `chart.patterns` message ("Patterns") in every bundled language, for the Pro charts' new pattern toggle.
38
-
39
- ## 3.5.1 - 2026-11-13
40
-
41
- ### Fixed
42
-
43
- - **3.5.0 was published from an incomplete build.** It had no CommonJS files (so `require()` failed), no root type declarations (so TypeScript found no types for the main import), and no AI docs (`llms.txt`, `registry.json`, and the `vjdesigns-ui-mcp` command). 3.5.1 is the complete build, with no code changes from 3.5.0. If you installed 3.5.0, upgrade to 3.5.1.
44
- - Publishing now rebuilds the package and checks it before uploading, so an incomplete build can't be published again.
45
-
46
- ## 3.5.0 - 2026-11-13
47
-
48
- > Deprecated: published without types, CommonJS, or the AI docs. Use 3.5.1.
49
-
50
- ### Changed
51
-
52
- - **React 19 is now required.** The peer dependency range is now `react` and `react-dom` `^19.0.0` (it was `^18.0.0 || ^19.0.0`). The components already relied on React 19, which passes `ref` as an ordinary prop and supports the `inert` attribute. Under React 18, refs on most components were silently ignored, and Accordion, Carousel, and Banner couldn't hide collapsed content from keyboard and screen-reader users. If you're on React 18, upgrade React before you upgrade this package.
53
- - `ToggleGroup`: inside a `Toolbar`, `rovingFocus` now defaults to off, so the group's buttons join the toolbar's arrow keys. Outside a toolbar nothing changes.
54
-
55
- ### Added
56
-
57
- - `Toolbar` component: a row or column of controls that is one Tab stop, with arrow keys, Home, and End between controls (the WAI-ARIA toolbar pattern). Includes `Toolbar.Separator` and `Toolbar.Group`, `surface` and `plain` variants, wrapping, and right-to-left support. Text fields inside keep their caret keys.
58
- - `Collapsible` component: a single show/hide section (the WAI-ARIA disclosure pattern) with `Collapsible.Trigger` and `Collapsible.Content`. Animates open and closed, hides closed content from everyone, supports `asChild` triggers and find-in-page (`hiddenUntilFound`).
59
- - `CopyButton` component: copies text and confirms it with a check icon, a "Copied" label, and a screen-reader announcement. Shows an error state when the clipboard is unavailable, and works icon-only.
60
-
61
- - `Progress` and `CircularProgress`: `toneSteps` changes the fill color with the value, for example red up to 40%, yellow up to 75%, and green above that. The color fades smoothly from one band to the next.
62
- - `resolveProgressTone` and the `ProgressToneStep` type, for custom indicators that use the same bands.
63
- - `Chat`: guidance in the docs for rendering replies safely with `renderContent` (no raw HTML, safe link protocols, no automatic remote images).
64
- - Supported browsers are now documented in the README (Chrome and Edge 111, Firefox 121, Safari 16.2, and later).
65
- - Every component configuration in Storybook is now tested to render on the server (`renderToString` in Node), in CI on every change.
66
-
67
- ### Fixed
68
-
69
- - `Radio`: an option with a `description` included the description in its accessible name, so screen readers read it twice. The name is now just the label, and the description is read as the description.
70
-
71
- ## 3.4.0 - 2026-11-04
72
-
73
- ### Added
74
-
75
- - `CheckBoxGroup`: `selectAll` adds a parent "select all" box. It checks or clears every enabled option, shows a mixed state when only some are checked, and tells screen readers which options it controls.
76
-
77
- ### Fixed
78
-
79
- - `CheckBox`: an accessibility issue.
80
-
81
- ## 3.3.0 - 2026-11-02
82
-
83
- No changes to this package. Released alongside a Pro update.
84
-
85
- ## 3.2.0 - 2026-11-02
86
-
87
- ### Added
88
-
89
- - Tailwind CSS v4 preset, `@vjdesigns/vjdesigns-ui/tailwind.css`, with utilities for the library's colors, fonts, radii, shadows, and easings.
90
- - `Countdown` component.
91
-
92
- ## 3.1.0 - 2026-11-01
93
-
94
- ### Added
95
-
96
- - Built-in text, in every bundled language, for the new Pro sports components.
97
-
98
- ## 3.0.0 - 2026-11-01
99
-
100
- ### Added
101
-
102
- - Sequential chart color tokens (`--chart-seq-1` to `--chart-seq-7`) and matching label ink colors, for heatmaps and gauges.
103
- - Built-in text, in every bundled language, for the new Pro components.
104
-
105
- ## 2.5.0 - 2026-10-31
106
-
107
- ### Added
108
-
109
- - `"use client"` markers on interactive components, so they work from Server Components in Next.js (App Router) and other React Server Components frameworks.
110
-
111
- ### Changed
112
-
113
- - `DataGrid`, `Combobox`, `VirtualList` (and `useVirtualizer`), and `TimePicker` time parsing: improvements and new options.
114
-
115
- ### Fixed
116
-
117
- - Bug and security fixes across Avatar, List, Table, FileUpload, NumberInput, Rating, SegmentedControl, CommandPalette, and Tooltip.
118
-
119
- ## 2.4.0 - 2026-10-28
120
-
121
- ### Added
122
-
123
- - `Navbar.Group`: dropdown groups of links in the bar. Opening one closes the others.
124
- - `Navbar` items: `badge`, `badgeLabel`, and `badgeTone` for counts like unread messages, with screen-reader text.
125
- - `Badge`: `inverse` variant, for badges on solid backgrounds.
126
-
127
- ## 2.3.0 - 2026-10-28
128
-
129
- ### Added
130
-
131
- - `Avatar`: image support and an optional border.
132
-
133
- ## 2.2.0 - 2026-10-28
134
-
135
- ### Fixed
136
-
137
- - `Toast`: a bug in `ToastProvider`.
138
-
139
- ## 2.1.0 - 2026-10-27
140
-
141
- ### Added
142
-
143
- - `Chat` component, for AI assistants and messaging, with streaming replies.
144
-
145
- ## 2.0.0 - 2026-10-27
146
-
147
- ### Changed
148
-
149
- - **Breaking:** the package was renamed from `@vjdesigns/dhernandez-ui` to `@vjdesigns/vjdesigns-ui`. Uninstall the old package, install the new one, and update your imports, including the stylesheet path (`@vjdesigns/vjdesigns-ui/dist/vjdesigns-ui.css`).
150
-
151
- ## 1.5.0 - 2026-10-22
152
-
153
- ### Added
154
-
155
- - New components: `DataGrid`, `VirtualList`, `DateTimePicker`, `TimePicker`, `ResizablePanels`, `ScrollArea`, `ContextMenu`, and `HoverCard`.
156
- - `useVirtualizer` hook.
157
-
158
- ## 1.4.10 - 2026-10-22
159
-
160
- ### Added
161
-
162
- - Form validation: `useFormValidation`, the `ErrorSummary` component, and format checks (`isEmail`, `isIP`, and more).
163
-
164
- ## 1.4.5 - 2026-10-21
165
-
166
- ### Fixed
167
-
168
- - Accessibility fixes in Progress, ColorPicker, Calendar, Field, PinInput, Textarea, and Link.
169
-
170
- ## 1.4.2 - 2026-10-21
171
-
172
- ### Added
173
-
174
- - Accent colors, set through `Theme accent` or `data-accent`.
175
-
176
- ## 1.4.0 - 2026-10-21
177
-
178
- ### Added
179
-
180
- - `Navbar`: `activeTone` (`accent`, `primary`, or `neutral`) for the current page's indicator.
181
-
182
- ## 1.3.0 - 2026-10-20
183
-
184
- ### Added
185
-
186
- - Built-in text in 31 languages, with `LocaleProvider`, right-to-left support, and per-component overrides.
187
-
188
- ## 1.2.0 - 2026-10-20
189
-
190
- ### Added
191
-
192
- - `Theme`: any hex color as a brand. The library generates an accessible palette for light and dark mode from it.
193
-
194
- ## 1.1.5 - 2026-10-12
195
-
196
- ### Changed
197
-
198
- - `Navbar`: more spacing between items.
199
-
200
- ## 1.1.4 - 2026-10-12
201
-
202
- ### Added
203
-
204
- - Black brand palette.
205
-
206
- ## 1.1.1 - 2026-10-12
207
-
208
- First tagged release.
1
+ # Changelog
2
+
3
+ Notable changes to `@vjdesigns/vjdesigns-ui`. The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and the package uses [Semantic Versioning](https://semver.org/).
4
+
5
+ Pro (`@vjdesigns-pro/ui`) has its own release notes, included with the Pro package.
6
+
7
+ ## Unreleased
8
+
9
+ ## 3.8.3 - 2026-11-25
10
+
11
+ ### Changed
12
+
13
+ - The README on npm now opens with a picture of four components: a data grid, a form with an accessibility check, a poll, and a countdown.
14
+ - Every release is now checked before publishing: the build fails if the package's code makes a network call, loads remote code or styles, imports anything beyond React and React DOM, or adds runtime dependencies or install scripts. No component code changed in this release.
15
+
16
+ ## 3.8.2 - 2026-11-24
17
+
18
+ ### Fixed
19
+
20
+ - `MobileNav` (`position="static"`): no longer sits at the sticky layer, so it scrolls under a sticky `Navbar` instead of over it. `fixed` and `sticky` are unchanged.
21
+ - Without CSS (styles turned off or not loaded):
22
+ - `CheckBox`: only the mark for the current state shows, instead of a check and a dash on every box, and labels no longer run into their descriptions.
23
+ - `Accordion`, `Combobox`, `List`, `Poll`, `Radio`, `RadioCard`, `Rating`, `RatingScale`, `Stepper`, and `Switch`: labels and titles no longer run into their descriptions.
24
+ - `Tabs` and `SegmentedControl`: text labels no longer appear twice. The copy that reserves the selected width is now drawn by CSS, so it isn't in the markup.
25
+ - Icons and the circular `Progress` ring have `width` and `height` attributes, so they keep their size instead of filling the page.
26
+
27
+ ## 3.8.1 - 2026-11-18
28
+
29
+ ### Changed
30
+
31
+ - `Poll` (`layout="bars"`): results are now rounded tiles with the label and percentage on top and a thick bar underneath, instead of a fill behind the text. Every label now sits on one plain background, so automated checkers such as axe can measure its contrast instead of reporting "needs review" (the contrast itself already passed).
32
+
33
+ ## 3.8.0 - 2026-11-17
34
+
35
+ ### Added
36
+
37
+ - `RatingScale` component: a labeled, single-choice rating scale with three looks (`variant`): five `faces` (very unhappy to very happy), `numbers` from `min` to `max` (such as a 0 to 10 "how likely" scale, with `startLabel` and `endLabel` captions), or `thumbs` up and down. Built on native radios, so it works in forms, `Field`, and `useFormValidation`, with arrow keys, `allowClear`, `readOnly`, custom `options`, captions under each option (`showLabels`), and an optional red-to-green `sentiment` tint for the faces.
38
+ - `Poll` component: a question with choices that switches to results (printed percentages with bars) after a vote. Four layouts: `bars`, `cards` (image or icon choices), `compact`, and `versus` (two choices head to head with one split bar). Single or multiple choice (`maxChoices`), instant or button voting, async `onVote` with a loading state, `allowChangeVote`, `endsAt` ("Ends in 3 days"), `closed` final results, and `showResults="never"` to hide results until the poll closes. Results move focus and are announced to screen readers. The poll is UI only: you store the votes and pass the counts back. Also exports `computePollResults()`, which rounds shares to add up to exactly 100.
39
+ - `ReviewCard` component: one customer review with the reviewer's avatar, a star rating, date, a "Verified purchase" badge, headline, body clamped with "Read more", a "Recommends" or "Doesn't recommend" line, photos, "Helpful? Yes / No" toggle buttons with a count, and an owner reply.
40
+ - `RatingBreakdown` component: the summary above a review list, with the average rating, review count, an optional "would recommend" share, and one bar per star level. With `onLevelSelect`, each row is a toggle button for filtering reviews by level.
41
+ - Icons: `FaceVerySadIcon`, `FaceSadIcon`, `FaceNeutralIcon`, `FaceHappyIcon`, `FaceVeryHappyIcon`, `ThumbsUpIcon`, `ThumbsDownIcon`, and `VerifiedIcon` (also by name, e.g. `<Icon name="face-happy" />`).
42
+ - `ratingScale`, `poll`, `reviewCard`, and `ratingBreakdown` messages in every bundled language.
43
+ - `reviewForm`, `reviewsSection`, `pollBuilder`, and `pollResultsChart` messages in every bundled language, for Pro's new review and poll components.
44
+ - Media icons: `VolumeIcon`, `VolumeOffIcon`, `FullscreenIcon`, `FullscreenExitIcon`, `CaptionsIcon`, and `PipIcon`, and `media` messages in every bundled language, for Pro's new players.
45
+
46
+ ## 3.7.0 - 2026-11-17
47
+
48
+ ### Added
49
+
50
+ - `MobileNav` component: a mobile navigation bar as a bottom tab bar, a top bar, or a side rail (`placement`), with `MobileNav.Item` links (icon, label, optional badge and `activeIcon`). A bubble slides to the current item, with an animated `effect`: `bubbles` (the default; small bubbles float up), `sparkle`, `confetti`, `glow`, `jelly`, `orbit`, `splash`, or `none` to turn it off. With reduced motion, the bubble just moves. `surface` and `solid` variants, accent, primary, or neutral `activeTone`, three sizes, a `floating` style, labels shown `always`, only on the `active` item, or `never` (they stay the items' accessible names), and `hideAbove` to show it only on phones. A fixed bar respects the phone's safe areas and reserves its space as scroll padding and `--mobile-nav-offset`, so focused content isn't hidden behind it. Works with router links through `as` and `active`.
51
+ - `mobileNav.nav` message ("Main") in every bundled language.
52
+
53
+ ## 3.6.0 - 2026-11-13
54
+
55
+ ### Added
56
+
57
+ - `chart.patterns` message ("Patterns") in every bundled language, for the Pro charts' new pattern toggle.
58
+
59
+ ## 3.5.1 - 2026-11-13
60
+
61
+ ### Fixed
62
+
63
+ - **3.5.0 was published from an incomplete build.** It had no CommonJS files (so `require()` failed), no root type declarations (so TypeScript found no types for the main import), and no AI docs (`llms.txt`, `registry.json`, and the `vjdesigns-ui-mcp` command). 3.5.1 is the complete build, with no code changes from 3.5.0. If you installed 3.5.0, upgrade to 3.5.1.
64
+ - Publishing now rebuilds the package and checks it before uploading, so an incomplete build can't be published again.
65
+
66
+ ## 3.5.0 - 2026-11-13
67
+
68
+ > Deprecated: published without types, CommonJS, or the AI docs. Use 3.5.1.
69
+
70
+ ### Changed
71
+
72
+ - **React 19 is now required.** The peer dependency range is now `react` and `react-dom` `^19.0.0` (it was `^18.0.0 || ^19.0.0`). The components already relied on React 19, which passes `ref` as an ordinary prop and supports the `inert` attribute. Under React 18, refs on most components were silently ignored, and Accordion, Carousel, and Banner couldn't hide collapsed content from keyboard and screen-reader users. If you're on React 18, upgrade React before you upgrade this package.
73
+ - `ToggleGroup`: inside a `Toolbar`, `rovingFocus` now defaults to off, so the group's buttons join the toolbar's arrow keys. Outside a toolbar nothing changes.
74
+
75
+ ### Added
76
+
77
+ - `Toolbar` component: a row or column of controls that is one Tab stop, with arrow keys, Home, and End between controls (the WAI-ARIA toolbar pattern). Includes `Toolbar.Separator` and `Toolbar.Group`, `surface` and `plain` variants, wrapping, and right-to-left support. Text fields inside keep their caret keys.
78
+ - `Collapsible` component: a single show/hide section (the WAI-ARIA disclosure pattern) with `Collapsible.Trigger` and `Collapsible.Content`. Animates open and closed, hides closed content from everyone, supports `asChild` triggers and find-in-page (`hiddenUntilFound`).
79
+ - `CopyButton` component: copies text and confirms it with a check icon, a "Copied" label, and a screen-reader announcement. Shows an error state when the clipboard is unavailable, and works icon-only.
80
+
81
+ - `Progress` and `CircularProgress`: `toneSteps` changes the fill color with the value, for example red up to 40%, yellow up to 75%, and green above that. The color fades smoothly from one band to the next.
82
+ - `resolveProgressTone` and the `ProgressToneStep` type, for custom indicators that use the same bands.
83
+ - `Chat`: guidance in the docs for rendering replies safely with `renderContent` (no raw HTML, safe link protocols, no automatic remote images).
84
+ - Supported browsers are now documented in the README (Chrome and Edge 111, Firefox 121, Safari 16.2, and later).
85
+ - Every component configuration in Storybook is now tested to render on the server (`renderToString` in Node), in CI on every change.
86
+
87
+ ### Fixed
88
+
89
+ - `Radio`: an option with a `description` included the description in its accessible name, so screen readers read it twice. The name is now just the label, and the description is read as the description.
90
+
91
+ ## 3.4.0 - 2026-11-04
92
+
93
+ ### Added
94
+
95
+ - `CheckBoxGroup`: `selectAll` adds a parent "select all" box. It checks or clears every enabled option, shows a mixed state when only some are checked, and tells screen readers which options it controls.
96
+
97
+ ### Fixed
98
+
99
+ - `CheckBox`: an accessibility issue.
100
+
101
+ ## 3.3.0 - 2026-11-02
102
+
103
+ No changes to this package. Released alongside a Pro update.
104
+
105
+ ## 3.2.0 - 2026-11-02
106
+
107
+ ### Added
108
+
109
+ - Tailwind CSS v4 preset, `@vjdesigns/vjdesigns-ui/tailwind.css`, with utilities for the library's colors, fonts, radii, shadows, and easings.
110
+ - `Countdown` component.
111
+
112
+ ## 3.1.0 - 2026-11-01
113
+
114
+ ### Added
115
+
116
+ - Built-in text, in every bundled language, for the new Pro sports components.
117
+
118
+ ## 3.0.0 - 2026-11-01
119
+
120
+ ### Added
121
+
122
+ - Sequential chart color tokens (`--chart-seq-1` to `--chart-seq-7`) and matching label ink colors, for heatmaps and gauges.
123
+ - Built-in text, in every bundled language, for the new Pro components.
124
+
125
+ ## 2.5.0 - 2026-10-31
126
+
127
+ ### Added
128
+
129
+ - `"use client"` markers on interactive components, so they work from Server Components in Next.js (App Router) and other React Server Components frameworks.
130
+
131
+ ### Changed
132
+
133
+ - `DataGrid`, `Combobox`, `VirtualList` (and `useVirtualizer`), and `TimePicker` time parsing: improvements and new options.
134
+
135
+ ### Fixed
136
+
137
+ - Bug and security fixes across Avatar, List, Table, FileUpload, NumberInput, Rating, SegmentedControl, CommandPalette, and Tooltip.
138
+
139
+ ## 2.4.0 - 2026-10-28
140
+
141
+ ### Added
142
+
143
+ - `Navbar.Group`: dropdown groups of links in the bar. Opening one closes the others.
144
+ - `Navbar` items: `badge`, `badgeLabel`, and `badgeTone` for counts like unread messages, with screen-reader text.
145
+ - `Badge`: `inverse` variant, for badges on solid backgrounds.
146
+
147
+ ## 2.3.0 - 2026-10-28
148
+
149
+ ### Added
150
+
151
+ - `Avatar`: image support and an optional border.
152
+
153
+ ## 2.2.0 - 2026-10-28
154
+
155
+ ### Fixed
156
+
157
+ - `Toast`: a bug in `ToastProvider`.
158
+
159
+ ## 2.1.0 - 2026-10-27
160
+
161
+ ### Added
162
+
163
+ - `Chat` component, for AI assistants and messaging, with streaming replies.
164
+
165
+ ## 2.0.0 - 2026-10-27
166
+
167
+ ### Changed
168
+
169
+ - **Breaking:** the package was renamed from `@vjdesigns/dhernandez-ui` to `@vjdesigns/vjdesigns-ui`. Uninstall the old package, install the new one, and update your imports, including the stylesheet path (`@vjdesigns/vjdesigns-ui/dist/vjdesigns-ui.css`).
170
+
171
+ ## 1.5.0 - 2026-10-22
172
+
173
+ ### Added
174
+
175
+ - New components: `DataGrid`, `VirtualList`, `DateTimePicker`, `TimePicker`, `ResizablePanels`, `ScrollArea`, `ContextMenu`, and `HoverCard`.
176
+ - `useVirtualizer` hook.
177
+
178
+ ## 1.4.10 - 2026-10-22
179
+
180
+ ### Added
181
+
182
+ - Form validation: `useFormValidation`, the `ErrorSummary` component, and format checks (`isEmail`, `isIP`, and more).
183
+
184
+ ## 1.4.5 - 2026-10-21
185
+
186
+ ### Fixed
187
+
188
+ - Accessibility fixes in Progress, ColorPicker, Calendar, Field, PinInput, Textarea, and Link.
189
+
190
+ ## 1.4.2 - 2026-10-21
191
+
192
+ ### Added
193
+
194
+ - Accent colors, set through `Theme accent` or `data-accent`.
195
+
196
+ ## 1.4.0 - 2026-10-21
197
+
198
+ ### Added
199
+
200
+ - `Navbar`: `activeTone` (`accent`, `primary`, or `neutral`) for the current page's indicator.
201
+
202
+ ## 1.3.0 - 2026-10-20
203
+
204
+ ### Added
205
+
206
+ - Built-in text in 31 languages, with `LocaleProvider`, right-to-left support, and per-component overrides.
207
+
208
+ ## 1.2.0 - 2026-10-20
209
+
210
+ ### Added
211
+
212
+ - `Theme`: any hex color as a brand. The library generates an accessible palette for light and dark mode from it.
213
+
214
+ ## 1.1.5 - 2026-10-12
215
+
216
+ ### Changed
217
+
218
+ - `Navbar`: more spacing between items.
219
+
220
+ ## 1.1.4 - 2026-10-12
221
+
222
+ ### Added
223
+
224
+ - Black brand palette.
225
+
226
+ ## 1.1.1 - 2026-10-12
227
+
228
+ First tagged release.
package/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  An accessible React 19 component library from VJ Designs, built to meet WCAG 2.2 AA. It has more than 80 components (buttons, form controls, layout, navigation, overlays, feedback and data display), with light and dark modes, five brand palettes, 31 languages, right-to-left support, and no runtime dependencies. Need data grids, charts, planners, or ready-made pages? See [Pro](#pro).
4
4
 
5
+ ![Four vjdesigns-ui components: a sortable data grid with two rows selected, a form with its Tab order numbered beside a check that found no WCAG 2.2 A or AA violations, a poll showing results, and a countdown timer.](https://vjdesigns-ui.org/readme-components.png)
6
+
5
7
  🌐 **Website and Pro:** [vjdesigns-ui.org](https://vjdesigns-ui.org)
6
8
  📚 **Live docs and Storybook:** [component.vjdesigns.org](https://component.vjdesigns.org)
7
9
  📦 **npm:** [@vjdesigns/vjdesigns-ui](https://www.npmjs.com/package/@vjdesigns/vjdesigns-ui)
@@ -1,4 +1,4 @@
1
- # @vjdesigns/vjdesigns-ui 3.8.1: full reference
1
+ # @vjdesigns/vjdesigns-ui 3.8.3: full reference
2
2
 
3
3
  > Accessible React 19 component library: WCAG 2.2 AA verified (axe on every story, a contrast check on every color pair), 31 languages with right-to-left support, themeable with any brand color (auto-adjusted to stay accessible), tree-shakable, no runtime dependencies besides React.
4
4
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vjdesigns/vjdesigns-ui",
3
- "version": "3.8.1",
3
+ "version": "3.8.3",
4
4
  "summary": "Accessible React 19 component library: WCAG 2.2 AA verified (axe on every story, a contrast check on every color pair), 31 languages with right-to-left support, themeable with any brand color (auto-adjusted to stay accessible), tree-shakable, no runtime dependencies besides React.",
5
5
  "install": "npm install @vjdesigns/vjdesigns-ui",
6
6
  "stylesheet": "@vjdesigns/vjdesigns-ui/dist/vjdesigns-ui.css",
@@ -1 +1 @@
1
- "use client";const e=require("../../../hooks/useCollapsePresence.cjs.js"),t=require("../../../hooks/useMergedRef.cjs.js"),n=require("../../../utils/cx.cjs.js"),r=require("../../../hooks/useControllableState.cjs.js"),i=require("../../primitives/Icon/icons.cjs.js"),a=require("./Accordion.module.css.cjs.js");let o=require("react"),s=require("react/jsx-runtime");var c=6,l={separated:a.default.separated,contained:a.default.contained,flush:a.default.flush},u={sm:a.default.sm,md:a.default.md,lg:a.default.lg},d={start:a.default.iconStart,end:a.default.iconEnd},f={sm:`sm`,md:`md`,lg:`md`},p=(0,o.createContext)(null);function m(e){let t=(0,o.useContext)(p);if(!t)throw Error(`<${e}> must be used inside <Accordion>.`);return t}var h=(0,o.createContext)(null);function g(e){let t=(0,o.useContext)(h);if(!t)throw Error(`<${e}> must be used inside <Accordion.Item>.`);return t}var _=e=>Array.isArray(e)?e:e==null?[]:[e],v=e=>{let{type:i=`single`,collapsible:c=!0,value:f,defaultValue:m,onValueChange:h,variant:g=`separated`,size:v=`md`,headingLevel:y=3,icon:b=`chevron`,iconPosition:x=`end`,keyboardNavigation:S=!0,regionRole:C=`auto`,forceMount:w=!1,hiddenUntilFound:T=!1,disabled:E=!1,className:D,children:O,ref:k,...A}=e,j=i===`multiple`,[M,N]=r.useControllableState({value:f,defaultValue:m??(j?[]:null),onChange:h}),P=(0,o.useMemo)(()=>_(M),[M]),F=(0,o.useCallback)((e,t)=>{N(n=>{let r=_(n);return t===r.includes(e)?n:j?t?[...r,e]:r.filter(t=>t!==e):t?e:c?null:n})},[N,j,c]),I=(0,o.useCallback)(e=>F(e,!P.includes(e)),[F,P]),[L,R]=(0,o.useState)(0),z=(0,o.useCallback)(()=>(R(e=>e+1),()=>R(e=>e-1)),[]),B=C===`auto`?L<=6:C,V=(0,o.useRef)(null),H=t.useMergedRef(k,V),U=(0,o.useMemo)(()=>({rootRef:V,openValues:P,multiple:j,collapsible:j?!0:c,disabled:E,headingLevel:y,size:v,icon:b,iconPosition:x,keyboardNavigation:S,isRegion:B,forceMount:w,hiddenUntilFound:T,toggle:I,setItemOpen:F,registerItem:z}),[P,j,c,E,y,v,b,x,S,B,w,T,I,F,z]);return(0,s.jsx)(p.Provider,{value:U,children:(0,s.jsx)(`div`,{...A,ref:H,"data-accordion-root":``,"data-orientation":`vertical`,className:n.cx(a.default.root,l[g],u[v],d[x],D),children:O})})},y=({value:e,disabled:t=!1,headingLevel:r,className:i,children:c,...l})=>{let u=m(`Accordion.Item`),d=(0,o.useId)(),[f,p]=(0,o.useState)(),[g,_]=(0,o.useState)(),{registerItem:v}=u;(0,o.useLayoutEffect)(()=>v(),[v]);let y=u.openValues.includes(e),b=u.disabled||t,x=(0,o.useMemo)(()=>({value:e,open:y,disabled:b,headingLevel:r??u.headingLevel,triggerId:f??`${d}-trigger`,contentId:g??`${d}-content`,setTriggerId:p,setContentId:_}),[e,y,b,r,u.headingLevel,f,g,d]);return(0,s.jsx)(h.Provider,{value:x,children:(0,s.jsx)(`div`,{...l,"data-state":y?`open`:`closed`,"data-disabled":b?``:void 0,className:n.cx(a.default.item,i),children:c})})},b=({size:e})=>(0,s.jsx)(i.ChevronDownIcon,{size:e,className:a.default.rotating}),x=({size:e})=>(0,s.jsxs)(`span`,{className:a.default.plusMinus,children:[(0,s.jsx)(i.PlusIcon,{size:e,className:a.default.plus}),(0,s.jsx)(i.MinusIcon,{size:e,className:a.default.minus})]}),S=({children:e,description:t,startIcon:r,badge:i,headingClassName:c,className:l,id:u,onClick:d,onKeyDown:p,disabled:h,..._})=>{let v=m(`Accordion.Trigger`),y=g(`Accordion.Trigger`),S=(0,o.useId)(),C=`${S}-title`,w=`${S}-description`,T=`${S}-badge`,{setTriggerId:E}=y;(0,o.useLayoutEffect)(()=>{E(u)},[u,E]);let D=y.disabled||!!h,O=y.open&&!v.collapsible,k=e=>{d?.(e),e.defaultPrevented||D||O||v.toggle(y.value)},A=e=>{if(p?.(e),e.defaultPrevented||!v.keyboardNavigation||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)return;let t=v.rootRef.current;if(!t)return;let n=Array.from(t.querySelectorAll(`[data-accordion-trigger]`)).filter(e=>e.closest(`[data-accordion-root]`)===t&&!e.disabled),r=n.indexOf(e.currentTarget);if(r===-1||n.length===0)return;let i=null;switch(e.key){case`ArrowDown`:i=(r+1)%n.length;break;case`ArrowUp`:i=(r-1+n.length)%n.length;break;case`Home`:i=0;break;case`End`:i=n.length-1;break;default:return}e.preventDefault(),n[i]?.focus()},j=f[v.size],{icon:M}=v,N=null;M===`chevron`?N=(0,s.jsx)(b,{size:j}):M===`plus-minus`?N=(0,s.jsx)(x,{size:j}):typeof M==`function`?N=M({open:y.open,disabled:D}):(0,o.isValidElement)(M)&&(N=(0,s.jsx)(`span`,{className:a.default.rotating,children:M}));let P=M===`none`||N==null?null:(0,s.jsx)(`span`,{className:a.default.indicator,"aria-hidden":`true`,children:N}),F=i!=null&&i!==!1,I=t!=null&&t!==!1&&t!==``,L=`h${y.headingLevel}`;return(0,s.jsx)(L,{className:n.cx(a.default.heading,c),children:(0,s.jsxs)(`button`,{"aria-labelledby":F?`${C} ${T}`:C,"aria-describedby":I?w:void 0,..._,type:`button`,id:y.triggerId,"data-accordion-trigger":``,"data-state":y.open?`open`:`closed`,"data-disabled":D?``:void 0,"aria-expanded":y.open,"aria-controls":y.contentId,"aria-disabled":O&&!D?!0:void 0,disabled:D,className:n.cx(a.default.trigger,O&&a.default.locked,l),onClick:k,onKeyDown:A,children:[v.iconPosition===`start`&&P,r!=null&&(0,s.jsx)(`span`,{className:a.default.startIcon,"aria-hidden":`true`,children:r}),(0,s.jsxs)(`span`,{className:a.default.text,children:[(0,s.jsx)(`span`,{id:C,className:a.default.title,children:e}),I&&(0,s.jsx)(`span`,{id:w,className:a.default.description,children:t})]}),F&&(0,s.jsx)(`span`,{id:T,className:a.default.badge,children:i}),v.iconPosition===`end`&&P]})})},C=({forceMount:r,hiddenUntilFound:i,bodyClassName:c,className:l,children:u,id:d,ref:f,...p})=>{let h=m(`Accordion.Content`),_=g(`Accordion.Content`),v=r??h.forceMount,y=i??h.hiddenUntilFound,{setContentId:b}=_;(0,o.useLayoutEffect)(()=>{b(d)},[d,b]);let{setItemOpen:x}=h,S=_.value,C=e.useCollapsePresence({open:_.open,hiddenUntilFound:y,onFound:_.disabled?void 0:()=>x(S,!0)}),w=t.useMergedRef(f,C.ref),T=v||y||C.visible;return(0,s.jsx)(`div`,{role:h.isRegion?`region`:void 0,"aria-labelledby":_.triggerId,...p,ref:w,id:_.contentId,...C.panelProps,className:n.cx(a.default.content,l),children:(0,s.jsx)(`div`,{className:a.default.clip,children:(0,s.jsx)(`div`,{className:n.cx(a.default.body,c),children:T?u:null})})})},w=v;w.Item=y,w.Trigger=S,w.Content=C,exports.ACCORDION_AUTO_REGION_MAX=c,exports.Accordion=w,exports.AccordionContent=C,exports.AccordionItem=y,exports.AccordionTrigger=S;
1
+ "use client";const e=require("../../../hooks/useCollapsePresence.cjs.js"),t=require("../../../hooks/useMergedRef.cjs.js"),n=require("../../../utils/cx.cjs.js"),r=require("../../../hooks/useControllableState.cjs.js"),i=require("../../primitives/Icon/icons.cjs.js"),a=require("./Accordion.module.css.cjs.js");let o=require("react"),s=require("react/jsx-runtime");var c=6,l={separated:a.default.separated,contained:a.default.contained,flush:a.default.flush},u={sm:a.default.sm,md:a.default.md,lg:a.default.lg},d={start:a.default.iconStart,end:a.default.iconEnd},f={sm:`sm`,md:`md`,lg:`md`},p=(0,o.createContext)(null);function m(e){let t=(0,o.useContext)(p);if(!t)throw Error(`<${e}> must be used inside <Accordion>.`);return t}var h=(0,o.createContext)(null);function g(e){let t=(0,o.useContext)(h);if(!t)throw Error(`<${e}> must be used inside <Accordion.Item>.`);return t}var _=e=>Array.isArray(e)?e:e==null?[]:[e],v=e=>{let{type:i=`single`,collapsible:c=!0,value:f,defaultValue:m,onValueChange:h,variant:g=`separated`,size:v=`md`,headingLevel:y=3,icon:b=`chevron`,iconPosition:x=`end`,keyboardNavigation:S=!0,regionRole:C=`auto`,forceMount:w=!1,hiddenUntilFound:T=!1,disabled:E=!1,className:D,children:O,ref:k,...A}=e,j=i===`multiple`,[M,N]=r.useControllableState({value:f,defaultValue:m??(j?[]:null),onChange:h}),P=(0,o.useMemo)(()=>_(M),[M]),F=(0,o.useCallback)((e,t)=>{N(n=>{let r=_(n);return t===r.includes(e)?n:j?t?[...r,e]:r.filter(t=>t!==e):t?e:c?null:n})},[N,j,c]),I=(0,o.useCallback)(e=>F(e,!P.includes(e)),[F,P]),[L,R]=(0,o.useState)(0),z=(0,o.useCallback)(()=>(R(e=>e+1),()=>R(e=>e-1)),[]),B=C===`auto`?L<=6:C,V=(0,o.useRef)(null),H=t.useMergedRef(k,V),U=(0,o.useMemo)(()=>({rootRef:V,openValues:P,multiple:j,collapsible:j?!0:c,disabled:E,headingLevel:y,size:v,icon:b,iconPosition:x,keyboardNavigation:S,isRegion:B,forceMount:w,hiddenUntilFound:T,toggle:I,setItemOpen:F,registerItem:z}),[P,j,c,E,y,v,b,x,S,B,w,T,I,F,z]);return(0,s.jsx)(p.Provider,{value:U,children:(0,s.jsx)(`div`,{...A,ref:H,"data-accordion-root":``,"data-orientation":`vertical`,className:n.cx(a.default.root,l[g],u[v],d[x],D),children:O})})},y=({value:e,disabled:t=!1,headingLevel:r,className:i,children:c,...l})=>{let u=m(`Accordion.Item`),d=(0,o.useId)(),[f,p]=(0,o.useState)(),[g,_]=(0,o.useState)(),{registerItem:v}=u;(0,o.useLayoutEffect)(()=>v(),[v]);let y=u.openValues.includes(e),b=u.disabled||t,x=(0,o.useMemo)(()=>({value:e,open:y,disabled:b,headingLevel:r??u.headingLevel,triggerId:f??`${d}-trigger`,contentId:g??`${d}-content`,setTriggerId:p,setContentId:_}),[e,y,b,r,u.headingLevel,f,g,d]);return(0,s.jsx)(h.Provider,{value:x,children:(0,s.jsx)(`div`,{...l,"data-state":y?`open`:`closed`,"data-disabled":b?``:void 0,className:n.cx(a.default.item,i),children:c})})},b=({size:e})=>(0,s.jsx)(i.ChevronDownIcon,{size:e,className:a.default.rotating}),x=({size:e})=>(0,s.jsxs)(`span`,{className:a.default.plusMinus,children:[(0,s.jsx)(i.PlusIcon,{size:e,className:a.default.plus}),(0,s.jsx)(i.MinusIcon,{size:e,className:a.default.minus})]}),S=({children:e,description:t,startIcon:r,badge:i,headingClassName:c,className:l,id:u,onClick:d,onKeyDown:p,disabled:h,..._})=>{let v=m(`Accordion.Trigger`),y=g(`Accordion.Trigger`),S=(0,o.useId)(),C=`${S}-title`,w=`${S}-description`,T=`${S}-badge`,{setTriggerId:E}=y;(0,o.useLayoutEffect)(()=>{E(u)},[u,E]);let D=y.disabled||!!h,O=y.open&&!v.collapsible,k=e=>{d?.(e),e.defaultPrevented||D||O||v.toggle(y.value)},A=e=>{if(p?.(e),e.defaultPrevented||!v.keyboardNavigation||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)return;let t=v.rootRef.current;if(!t)return;let n=Array.from(t.querySelectorAll(`[data-accordion-trigger]`)).filter(e=>e.closest(`[data-accordion-root]`)===t&&!e.disabled),r=n.indexOf(e.currentTarget);if(r===-1||n.length===0)return;let i=null;switch(e.key){case`ArrowDown`:i=(r+1)%n.length;break;case`ArrowUp`:i=(r-1+n.length)%n.length;break;case`Home`:i=0;break;case`End`:i=n.length-1;break;default:return}e.preventDefault(),n[i]?.focus()},j=f[v.size],{icon:M}=v,N=null;M===`chevron`?N=(0,s.jsx)(b,{size:j}):M===`plus-minus`?N=(0,s.jsx)(x,{size:j}):typeof M==`function`?N=M({open:y.open,disabled:D}):(0,o.isValidElement)(M)&&(N=(0,s.jsx)(`span`,{className:a.default.rotating,children:M}));let P=M===`none`||N==null?null:(0,s.jsx)(`span`,{className:a.default.indicator,"aria-hidden":`true`,children:N}),F=i!=null&&i!==!1,I=t!=null&&t!==!1&&t!==``,L=`h${y.headingLevel}`;return(0,s.jsx)(L,{className:n.cx(a.default.heading,c),children:(0,s.jsxs)(`button`,{"aria-labelledby":F?`${C} ${T}`:C,"aria-describedby":I?w:void 0,..._,type:`button`,id:y.triggerId,"data-accordion-trigger":``,"data-state":y.open?`open`:`closed`,"data-disabled":D?``:void 0,"aria-expanded":y.open,"aria-controls":y.contentId,"aria-disabled":O&&!D?!0:void 0,disabled:D,className:n.cx(a.default.trigger,O&&a.default.locked,l),onClick:k,onKeyDown:A,children:[v.iconPosition===`start`&&P,r!=null&&(0,s.jsx)(`span`,{className:a.default.startIcon,"aria-hidden":`true`,children:r}),(0,s.jsxs)(`span`,{className:a.default.text,children:[(0,s.jsx)(`span`,{id:C,className:a.default.title,children:e}),I&&` `,I&&(0,s.jsx)(`span`,{id:w,className:a.default.description,children:t})]}),F&&(0,s.jsx)(`span`,{id:T,className:a.default.badge,children:i}),v.iconPosition===`end`&&P]})})},C=({forceMount:r,hiddenUntilFound:i,bodyClassName:c,className:l,children:u,id:d,ref:f,...p})=>{let h=m(`Accordion.Content`),_=g(`Accordion.Content`),v=r??h.forceMount,y=i??h.hiddenUntilFound,{setContentId:b}=_;(0,o.useLayoutEffect)(()=>{b(d)},[d,b]);let{setItemOpen:x}=h,S=_.value,C=e.useCollapsePresence({open:_.open,hiddenUntilFound:y,onFound:_.disabled?void 0:()=>x(S,!0)}),w=t.useMergedRef(f,C.ref),T=v||y||C.visible;return(0,s.jsx)(`div`,{role:h.isRegion?`region`:void 0,"aria-labelledby":_.triggerId,...p,ref:w,id:_.contentId,...C.panelProps,className:n.cx(a.default.content,l),children:(0,s.jsx)(`div`,{className:a.default.clip,children:(0,s.jsx)(`div`,{className:n.cx(a.default.body,c),children:T?u:null})})})},w=v;w.Item=y,w.Trigger=S,w.Content=C,exports.ACCORDION_AUTO_REGION_MAX=c,exports.Accordion=w,exports.AccordionContent=C,exports.AccordionItem=y,exports.AccordionTrigger=S;
@@ -208,15 +208,19 @@ var O = (e) => Array.isArray(e) ? e : e == null ? [] : [e], k = (e) => {
208
208
  }),
209
209
  /* @__PURE__ */ v("span", {
210
210
  className: s.text,
211
- children: [/* @__PURE__ */ _("span", {
212
- id: x,
213
- className: s.title,
214
- children: e
215
- }), z && /* @__PURE__ */ _("span", {
216
- id: S,
217
- className: s.description,
218
- children: t
219
- })]
211
+ children: [
212
+ /* @__PURE__ */ _("span", {
213
+ id: x,
214
+ className: s.title,
215
+ children: e
216
+ }),
217
+ z && " ",
218
+ z && /* @__PURE__ */ _("span", {
219
+ id: S,
220
+ className: s.description,
221
+ children: t
222
+ })
223
+ ]
220
224
  }),
221
225
  R && /* @__PURE__ */ _("span", {
222
226
  id: w,
@@ -1 +1 @@
1
- "use client";const e=require("../../../utils/cx.cjs.js"),t=require("./List.module.css.cjs.js");let n=require("react"),r=require("react/jsx-runtime");var i={plain:t.default.plain,bulleted:t.default.bulleted,numbered:t.default.numbered,divided:t.default.divided,card:t.default.card},a={sm:t.default.sm,md:t.default.md,lg:t.default.lg},o=(0,n.createContext)({variant:`plain`,marker:void 0}),s=({variant:s=`plain`,as:c,ordered:l=!1,size:u=`md`,spacing:d,marker:f,start:p,className:m,style:h,children:g,ref:_,...v})=>{let y=c??(l||s===`numbered`?`ol`:`ul`),b=p===void 0?h:{counterReset:`dh-list-item ${p-1}`,...h},x=(0,n.useMemo)(()=>({variant:s,marker:f}),[s,f]);return(0,r.jsx)(o.Provider,{value:x,children:(0,r.jsx)(y,{role:`list`,...v,ref:_,start:y===`ol`?p:void 0,"data-spacing":d,className:e.cx(t.default.root,i[s],a[u],m),style:b,children:g})})},c=({marker:i})=>{let{variant:a,marker:s}=(0,n.useContext)(o),c=i??s;return c===!1?null:c!=null&&c!==!0?(0,r.jsx)(`span`,{className:e.cx(t.default.marker,t.default.customMarker),"aria-hidden":`true`,children:c}):a===`bulleted`?(0,r.jsx)(`span`,{className:e.cx(t.default.marker,t.default.bulletMarker),"aria-hidden":`true`,children:(0,r.jsx)(`span`,{className:t.default.dot})}):a===`numbered`?(0,r.jsx)(`span`,{className:e.cx(t.default.marker,t.default.numberMarker),"aria-hidden":`true`,children:(0,r.jsx)(`span`,{className:t.default.number})}):null},l=e=>e!=null&&e!==!1&&e!==``,u=(...e)=>e.filter(Boolean).join(` `)||void 0,d=({slots:n,main:i,descriptionId:a,metaId:o,interactive:s,disabled:u,liProps:d,ariaCurrent:f})=>{let{start:p,description:m,meta:h,end:g,marker:_}=n,v=!!(n.selected||n.current),{className:y,...b}=d;return(0,r.jsxs)(`li`,{"aria-current":s?void 0:f,"aria-disabled":u||void 0,...b,className:e.cx(t.default.item,s&&t.default.interactive,v&&t.default.selected,u&&t.default.disabled,y),children:[(0,r.jsx)(c,{marker:_}),l(p)&&(0,r.jsx)(`span`,{className:t.default.start,children:p}),(0,r.jsxs)(`div`,{className:t.default.content,children:[i,l(m)&&(0,r.jsx)(`span`,{id:a,className:t.default.description,children:m}),n.title!==void 0&&l(n.children)&&(0,r.jsx)(`div`,{className:t.default.body,children:n.children})]}),l(h)&&(0,r.jsx)(`span`,{id:o,className:t.default.meta,children:h}),l(g)&&(0,r.jsx)(`div`,{className:t.default.end,children:g})]})};function f(e){let{start:t,title:n,description:r,meta:i,end:a,marker:o,selected:s,current:c,children:l,...u}=e;return{slots:{start:t,title:n,description:r,meta:i,end:a,marker:o,selected:s,current:c,children:l},rest:u}}var p=e=>{let{slots:n,rest:i}=f(e),a=!!(n.selected||n.current),o=n.title===void 0?l(n.children)&&(0,r.jsx)(`div`,{className:t.default.body,children:n.children}):(0,r.jsx)(`span`,{className:t.default.title,children:n.title});return(0,r.jsx)(d,{slots:n,main:o,interactive:!1,liProps:i,ariaCurrent:n.current??(a?`true`:void 0)})};p.displayName=`List.Item`;var m=i=>{let{slots:a,rest:o}=f(i),{disabled:s=!1,className:c,style:p,itemProps:m,type:h=`button`,"aria-describedby":g,"aria-current":_,...v}=o,y=(0,n.useId)(),b=`${y}-description`,x=`${y}-meta`,S=!!(a.selected||a.current),C=(0,r.jsx)(`button`,{...v,type:h,disabled:s,className:t.default.action,"aria-current":_??a.current??(S?`true`:void 0),"aria-describedby":u(g,l(a.description)&&b,l(a.meta)&&x),children:(0,r.jsx)(`span`,{className:t.default.title,children:a.title??a.children})});return(0,r.jsx)(d,{slots:a,main:C,descriptionId:b,metaId:x,interactive:!0,disabled:s,liProps:{...m,className:e.cx(m?.className,c),style:{...m?.style,...p}}})};m.displayName=`List.ItemButton`;var h=i=>{let{slots:a,rest:o}=f(i),{disabled:s=!1,className:c,style:p,itemProps:m,href:h,onClick:g,"aria-describedby":_,"aria-current":v,...y}=o,b=(0,n.useId)(),x=`${b}-description`,S=`${b}-meta`,C=!!(a.selected||a.current),w=(0,r.jsx)(`a`,{...y,href:s?void 0:h,role:s?`link`:void 0,"aria-disabled":s||void 0,onClick:s?e=>e.preventDefault():g,className:t.default.action,"aria-current":v??a.current??(C?`page`:void 0),"aria-describedby":u(_,l(a.description)&&x,l(a.meta)&&S),children:(0,r.jsx)(`span`,{className:t.default.title,children:a.title??a.children})});return(0,r.jsx)(d,{slots:a,main:w,descriptionId:x,metaId:S,interactive:!0,disabled:s,liProps:{...m,className:e.cx(m?.className,c),style:{...m?.style,...p}}})};h.displayName=`List.ItemLink`;var g=({as:n=`h3`,size:i=`md`,className:o,children:s,...c})=>(0,r.jsx)(n,{...c,className:e.cx(t.default.subheader,a[i],o),children:s});g.displayName=`List.Subheader`,s.Item=p,s.ItemButton=m,s.ItemLink=h,s.Subheader=g,exports.List=s,exports.ListItem=p,exports.ListItemButton=m,exports.ListItemLink=h,exports.ListSubheader=g;
1
+ "use client";const e=require("../../../utils/cx.cjs.js"),t=require("./List.module.css.cjs.js");let n=require("react"),r=require("react/jsx-runtime");var i={plain:t.default.plain,bulleted:t.default.bulleted,numbered:t.default.numbered,divided:t.default.divided,card:t.default.card},a={sm:t.default.sm,md:t.default.md,lg:t.default.lg},o=(0,n.createContext)({variant:`plain`,marker:void 0}),s=({variant:s=`plain`,as:c,ordered:l=!1,size:u=`md`,spacing:d,marker:f,start:p,className:m,style:h,children:g,ref:_,...v})=>{let y=c??(l||s===`numbered`?`ol`:`ul`),b=p===void 0?h:{counterReset:`dh-list-item ${p-1}`,...h},x=(0,n.useMemo)(()=>({variant:s,marker:f}),[s,f]);return(0,r.jsx)(o.Provider,{value:x,children:(0,r.jsx)(y,{role:`list`,...v,ref:_,start:y===`ol`?p:void 0,"data-spacing":d,className:e.cx(t.default.root,i[s],a[u],m),style:b,children:g})})},c=({marker:i})=>{let{variant:a,marker:s}=(0,n.useContext)(o),c=i??s;return c===!1?null:c!=null&&c!==!0?(0,r.jsx)(`span`,{className:e.cx(t.default.marker,t.default.customMarker),"aria-hidden":`true`,children:c}):a===`bulleted`?(0,r.jsx)(`span`,{className:e.cx(t.default.marker,t.default.bulletMarker),"aria-hidden":`true`,children:(0,r.jsx)(`span`,{className:t.default.dot})}):a===`numbered`?(0,r.jsx)(`span`,{className:e.cx(t.default.marker,t.default.numberMarker),"aria-hidden":`true`,children:(0,r.jsx)(`span`,{className:t.default.number})}):null},l=e=>e!=null&&e!==!1&&e!==``,u=(...e)=>e.filter(Boolean).join(` `)||void 0,d=({slots:n,main:i,descriptionId:a,metaId:o,interactive:s,disabled:u,liProps:d,ariaCurrent:f})=>{let{start:p,description:m,meta:h,end:g,marker:_}=n,v=!!(n.selected||n.current),{className:y,...b}=d;return(0,r.jsxs)(`li`,{"aria-current":s?void 0:f,"aria-disabled":u||void 0,...b,className:e.cx(t.default.item,s&&t.default.interactive,v&&t.default.selected,u&&t.default.disabled,y),children:[(0,r.jsx)(c,{marker:_}),l(p)&&(0,r.jsx)(`span`,{className:t.default.start,children:p}),(0,r.jsxs)(`div`,{className:t.default.content,children:[i,l(m)&&` `,l(m)&&(0,r.jsx)(`span`,{id:a,className:t.default.description,children:m}),n.title!==void 0&&l(n.children)&&(0,r.jsx)(`div`,{className:t.default.body,children:n.children})]}),l(h)&&(0,r.jsx)(`span`,{id:o,className:t.default.meta,children:h}),l(g)&&(0,r.jsx)(`div`,{className:t.default.end,children:g})]})};function f(e){let{start:t,title:n,description:r,meta:i,end:a,marker:o,selected:s,current:c,children:l,...u}=e;return{slots:{start:t,title:n,description:r,meta:i,end:a,marker:o,selected:s,current:c,children:l},rest:u}}var p=e=>{let{slots:n,rest:i}=f(e),a=!!(n.selected||n.current),o=n.title===void 0?l(n.children)&&(0,r.jsx)(`div`,{className:t.default.body,children:n.children}):(0,r.jsx)(`span`,{className:t.default.title,children:n.title});return(0,r.jsx)(d,{slots:n,main:o,interactive:!1,liProps:i,ariaCurrent:n.current??(a?`true`:void 0)})};p.displayName=`List.Item`;var m=i=>{let{slots:a,rest:o}=f(i),{disabled:s=!1,className:c,style:p,itemProps:m,type:h=`button`,"aria-describedby":g,"aria-current":_,...v}=o,y=(0,n.useId)(),b=`${y}-description`,x=`${y}-meta`,S=!!(a.selected||a.current),C=(0,r.jsx)(`button`,{...v,type:h,disabled:s,className:t.default.action,"aria-current":_??a.current??(S?`true`:void 0),"aria-describedby":u(g,l(a.description)&&b,l(a.meta)&&x),children:(0,r.jsx)(`span`,{className:t.default.title,children:a.title??a.children})});return(0,r.jsx)(d,{slots:a,main:C,descriptionId:b,metaId:x,interactive:!0,disabled:s,liProps:{...m,className:e.cx(m?.className,c),style:{...m?.style,...p}}})};m.displayName=`List.ItemButton`;var h=i=>{let{slots:a,rest:o}=f(i),{disabled:s=!1,className:c,style:p,itemProps:m,href:h,onClick:g,"aria-describedby":_,"aria-current":v,...y}=o,b=(0,n.useId)(),x=`${b}-description`,S=`${b}-meta`,C=!!(a.selected||a.current),w=(0,r.jsx)(`a`,{...y,href:s?void 0:h,role:s?`link`:void 0,"aria-disabled":s||void 0,onClick:s?e=>e.preventDefault():g,className:t.default.action,"aria-current":v??a.current??(C?`page`:void 0),"aria-describedby":u(_,l(a.description)&&x,l(a.meta)&&S),children:(0,r.jsx)(`span`,{className:t.default.title,children:a.title??a.children})});return(0,r.jsx)(d,{slots:a,main:w,descriptionId:x,metaId:S,interactive:!0,disabled:s,liProps:{...m,className:e.cx(m?.className,c),style:{...m?.style,...p}}})};h.displayName=`List.ItemLink`;var g=({as:n=`h3`,size:i=`md`,className:o,children:s,...c})=>(0,r.jsx)(n,{...c,className:e.cx(t.default.subheader,a[i],o),children:s});g.displayName=`List.Subheader`,s.Item=p,s.ItemButton=m,s.ItemLink=h,s.Subheader=g,exports.List=s,exports.ListItem=p,exports.ListItemButton=m,exports.ListItemLink=h,exports.ListSubheader=g;
@@ -70,6 +70,7 @@ var c = {
70
70
  className: t.content,
71
71
  children: [
72
72
  r,
73
+ p(h) && " ",
73
74
  p(h) && /* @__PURE__ */ o("span", {
74
75
  id: i,
75
76
  className: t.description,