@vjdesigns/vjdesigns-ui 3.6.0 → 3.8.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 (109) hide show
  1. package/CHANGELOG.md +204 -184
  2. package/README.md +1 -1
  3. package/dist/ai/llms-full.txt +268 -2
  4. package/dist/ai/llms.txt +5 -0
  5. package/dist/ai/registry.json +1010 -54
  6. package/dist/components/data-display/Poll/Poll.cjs.js +1 -0
  7. package/dist/components/data-display/Poll/Poll.d.ts +114 -0
  8. package/dist/components/data-display/Poll/Poll.mjs +335 -0
  9. package/dist/components/data-display/Poll/Poll.module.css.cjs.js +1 -0
  10. package/dist/components/data-display/Poll/Poll.module.css.mjs +46 -0
  11. package/dist/components/data-display/Poll/index.d.ts +1 -0
  12. package/dist/components/data-display/RatingBreakdown/RatingBreakdown.cjs.js +1 -0
  13. package/dist/components/data-display/RatingBreakdown/RatingBreakdown.d.ts +35 -0
  14. package/dist/components/data-display/RatingBreakdown/RatingBreakdown.mjs +88 -0
  15. package/dist/components/data-display/RatingBreakdown/RatingBreakdown.module.css.cjs.js +1 -0
  16. package/dist/components/data-display/RatingBreakdown/RatingBreakdown.module.css.mjs +21 -0
  17. package/dist/components/data-display/RatingBreakdown/index.d.ts +1 -0
  18. package/dist/components/data-display/ReviewCard/ReviewCard.cjs.js +1 -0
  19. package/dist/components/data-display/ReviewCard/ReviewCard.d.ts +67 -0
  20. package/dist/components/data-display/ReviewCard/ReviewCard.mjs +174 -0
  21. package/dist/components/data-display/ReviewCard/ReviewCard.module.css.cjs.js +1 -0
  22. package/dist/components/data-display/ReviewCard/ReviewCard.module.css.mjs +26 -0
  23. package/dist/components/data-display/ReviewCard/index.d.ts +1 -0
  24. package/dist/components/forms/RatingScale/RatingScale.cjs.js +1 -0
  25. package/dist/components/forms/RatingScale/RatingScale.d.ts +106 -0
  26. package/dist/components/forms/RatingScale/RatingScale.mjs +175 -0
  27. package/dist/components/forms/RatingScale/RatingScale.module.css.cjs.js +1 -0
  28. package/dist/components/forms/RatingScale/RatingScale.module.css.mjs +28 -0
  29. package/dist/components/forms/RatingScale/index.d.ts +1 -0
  30. package/dist/components/navigation/MobileNav/MobileNav.cjs.js +1 -0
  31. package/dist/components/navigation/MobileNav/MobileNav.d.ts +170 -0
  32. package/dist/components/navigation/MobileNav/MobileNav.mjs +174 -0
  33. package/dist/components/navigation/MobileNav/MobileNav.module.css.cjs.js +1 -0
  34. package/dist/components/navigation/MobileNav/MobileNav.module.css.mjs +46 -0
  35. package/dist/components/navigation/MobileNav/index.d.ts +1 -0
  36. package/dist/components/primitives/Icon/icons.cjs.js +1 -1
  37. package/dist/components/primitives/Icon/icons.d.ts +70 -0
  38. package/dist/components/primitives/Icon/icons.mjs +203 -134
  39. package/dist/components/primitives/Typography/Typography.d.ts +2 -2
  40. package/dist/i18n/en.cjs.js +1 -1
  41. package/dist/i18n/en.mjs +162 -0
  42. package/dist/i18n/types.d.ts +175 -0
  43. package/dist/index.cjs.js +1 -1
  44. package/dist/index.d.ts +5 -0
  45. package/dist/index.mjs +111 -106
  46. package/dist/locales/ar.cjs.js +1 -1
  47. package/dist/locales/ar.mjs +197 -0
  48. package/dist/locales/bn.cjs.js +1 -1
  49. package/dist/locales/bn.mjs +132 -0
  50. package/dist/locales/cs.cjs.js +1 -1
  51. package/dist/locales/cs.mjs +182 -0
  52. package/dist/locales/da.cjs.js +1 -1
  53. package/dist/locales/da.mjs +162 -0
  54. package/dist/locales/de.cjs.js +1 -1
  55. package/dist/locales/de.mjs +162 -0
  56. package/dist/locales/el.cjs.js +1 -1
  57. package/dist/locales/el.mjs +162 -0
  58. package/dist/locales/es.cjs.js +1 -1
  59. package/dist/locales/es.mjs +162 -0
  60. package/dist/locales/fa.cjs.js +1 -1
  61. package/dist/locales/fa.mjs +132 -0
  62. package/dist/locales/fi.cjs.js +1 -1
  63. package/dist/locales/fi.mjs +162 -0
  64. package/dist/locales/fr.cjs.js +1 -1
  65. package/dist/locales/fr.mjs +167 -0
  66. package/dist/locales/he.cjs.js +1 -1
  67. package/dist/locales/he.mjs +172 -0
  68. package/dist/locales/hi.cjs.js +1 -1
  69. package/dist/locales/hi.mjs +162 -0
  70. package/dist/locales/hu.cjs.js +1 -1
  71. package/dist/locales/hu.mjs +132 -0
  72. package/dist/locales/id.cjs.js +1 -1
  73. package/dist/locales/id.mjs +132 -0
  74. package/dist/locales/it.cjs.js +1 -1
  75. package/dist/locales/it.mjs +167 -0
  76. package/dist/locales/ja.cjs.js +1 -1
  77. package/dist/locales/ja.mjs +132 -0
  78. package/dist/locales/ko.cjs.js +1 -1
  79. package/dist/locales/ko.mjs +132 -0
  80. package/dist/locales/nb.cjs.js +1 -1
  81. package/dist/locales/nb.mjs +162 -0
  82. package/dist/locales/nl.cjs.js +1 -1
  83. package/dist/locales/nl.mjs +162 -0
  84. package/dist/locales/pl.cjs.js +1 -1
  85. package/dist/locales/pl.mjs +182 -0
  86. package/dist/locales/pt-BR.cjs.js +1 -1
  87. package/dist/locales/pt-BR.mjs +167 -0
  88. package/dist/locales/ro.cjs.js +1 -1
  89. package/dist/locales/ro.mjs +172 -0
  90. package/dist/locales/ru.cjs.js +1 -1
  91. package/dist/locales/ru.mjs +182 -0
  92. package/dist/locales/sv.cjs.js +1 -1
  93. package/dist/locales/sv.mjs +162 -0
  94. package/dist/locales/th.cjs.js +1 -1
  95. package/dist/locales/th.mjs +132 -0
  96. package/dist/locales/tr.cjs.js +1 -1
  97. package/dist/locales/tr.mjs +132 -0
  98. package/dist/locales/uk.cjs.js +1 -1
  99. package/dist/locales/uk.mjs +182 -0
  100. package/dist/locales/ur.cjs.js +1 -1
  101. package/dist/locales/ur.mjs +162 -0
  102. package/dist/locales/vi.cjs.js +1 -1
  103. package/dist/locales/vi.mjs +132 -0
  104. package/dist/locales/zh-Hans.cjs.js +1 -1
  105. package/dist/locales/zh-Hans.mjs +132 -0
  106. package/dist/locales/zh-Hant.cjs.js +1 -1
  107. package/dist/locales/zh-Hant.mjs +132 -0
  108. package/dist/vjdesigns-ui.css +1 -1
  109. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- # @vjdesigns/vjdesigns-ui 3.6.0: full reference
1
+ # @vjdesigns/vjdesigns-ui 3.8.0: 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
 
@@ -1740,6 +1740,142 @@ counted as an item.
1740
1740
  - Disabled
1741
1741
  - Both themes
1742
1742
 
1743
+ ## Poll
1744
+
1745
+ import { Poll } from "@vjdesigns/vjdesigns-ui";
1746
+
1747
+ Category: data-display · Storybook: Data Display/Poll
1748
+
1749
+ A poll with two phases: voting (a question with choices) and results
1750
+ (each choice's share, printed as a percentage, with bars). Four layouts:
1751
+ `bars`, `cards`, `compact`, and `versus` for two choices head to head.
1752
+ The poll is UI only: it reports votes through `onVote` and shows the
1753
+ counts you pass in `options`; storing votes and enforcing one vote per
1754
+ person is up to your server.
1755
+
1756
+ ### Props
1757
+
1758
+ - `question`: `ReactNode` (required). The question, rendered as a heading (see `headingLevel`).
1759
+ - `options`: `PollOption[]` (required). The choices, with their vote counts. Update `votes` after `onVote`, including the new vote.
1760
+ - `layout`: `PollLayout` (default "bars"). Layout of both phases. `versus` needs exactly two options.
1761
+ - `multiple`: `boolean` (default false). Allow more than one choice (checkboxes).
1762
+ - `maxChoices`: `number`. With `multiple`: the most choices one voter can pick.
1763
+ - `value`: `string[]`. The viewer's choice (controlled). After voting, it marks "Your vote" in the results.
1764
+ - `defaultValue`: `string[]` (default []). Initial choice (uncontrolled).
1765
+ - `onValueChange`: `(value: string[]) => void`. Called when the viewer's choice changes, before or as they vote.
1766
+ - `voted`: `boolean`. Whether the viewer has voted (controlled). Use with `onVotedChange`.
1767
+ - `defaultVoted`: `boolean` (default false). Initial voted state (uncontrolled), e.g. `true` when the server says they already voted.
1768
+ - `onVotedChange`: `(voted: boolean) => void`. Called when the voted state changes (after a vote, or on "Change vote").
1769
+ - `onVote`: `(values: string[]) => void | Promise<void>`. Called with the chosen values when the viewer votes. Return a promise to show a loading state; if it rejects, the poll stays in the voting phase (show your own error message).
1770
+ - `submitMode`: `PollSubmitMode` (default "instant" for a single choice, "button" with `multiple). `button`: choose, then press Vote. `instant`: clicking a choice votes (single choice only; each choice is a button).
1771
+ - `showResults`: `PollShowResults` (default "after-vote"). When results show: `after-vote`, `always` (results only, no voting), or `never` (only once the poll is closed, which avoids bandwagon voting).
1772
+ - `closed`: `boolean` (default false). The poll is over: voting is off and the final results show. Also true once `endsAt` passes.
1773
+ - `endsAt`: `string`. When voting ends: an ISO date ("2026-12-01", the end of that day) or date-time. Shown as "Ends in 3 days".
1774
+ - `totalVotes`: `number`. Total votes, when it differs from the sum of `votes` (e.g. multiple choice counts voters).
1775
+ - `allowChangeVote`: `boolean` (default false). Show a "Change vote" button in the results while the poll is open.
1776
+ - `highlightWinner`: `boolean` (default true). Mark the sole leader with a "Leading" (or "Winner") tag and bold label.
1777
+ - `headingLevel`: `2 | 3 | 4 | 5 | 6` (default 3). Heading level of the question.
1778
+ - `size`: `Size` (default "md"). Text and control size.
1779
+ - `labels`: `Partial<{ vote: string; changeVote: string; yourVote: string; leading: string; winner: string; finalResults: string; versus: string; }>`. Overrides the built-in text (vote button, tags, footer, announcements). Localize it here.
1780
+ - Plus every native `<div>` attribute (className, style, id, aria-*, data-*, event handlers), spread onto the root.
1781
+
1782
+ ### Examples (Storybook stories)
1783
+
1784
+ - Playground
1785
+ - Bars
1786
+ - Cards
1787
+ - Compact
1788
+ - Versus
1789
+ - All Layouts
1790
+ - Sizes
1791
+ - Multiple Choice
1792
+ - Async vote (loading and failure)
1793
+ - Hidden Until Closed
1794
+ - Closed
1795
+ - Ended By Date
1796
+ - Tie
1797
+ - No Votes Yet
1798
+ - Long Content
1799
+ - computePollResults()
1800
+
1801
+ ## RatingBreakdown
1802
+
1803
+ import { RatingBreakdown } from "@vjdesigns/vjdesigns-ui";
1804
+
1805
+ Category: data-display · Storybook: Data Display/RatingBreakdown
1806
+
1807
+ The summary above a review list: the average rating as a big number with
1808
+ stars, the review count, and one bar per level showing its share. Each
1809
+ row reads "5 stars: 920 reviews, 72%"; with `onLevelSelect` the rows are
1810
+ toggle buttons for filtering by level.
1811
+
1812
+ ### Props
1813
+
1814
+ - `counts`: `Record<number, number>` (required). Reviews per level, e.g. `{ 5: 920, 4: 210, 3: 80, 2: 40, 1: 34 }`. Missing levels count as 0.
1815
+ - `average`: `number`. The average rating. Computed from `counts` when omitted.
1816
+ - `total`: `number`. Total reviews. The sum of `counts` when omitted.
1817
+ - `max`: `number` (default 5). The highest level (number of stars).
1818
+ - `onLevelSelect`: `(level: number | null) => void`. Called when a level row is pressed, with that level, or `null` when the pressed row is pressed again. Turns each row into a toggle button for filtering a review list.
1819
+ - `selectedLevel`: `number | null`. The level currently filtered on (shown pressed). Use with `onLevelSelect`.
1820
+ - `recommendPercent`: `number`. Share of reviewers who would recommend, 0 to 100. Shown as "92% would recommend".
1821
+ - `layout`: `RatingBreakdownLayout` (default "stacked"). `stacked`: the average above the bars. `inline`: beside them (wraps on narrow screens).
1822
+ - `size`: `Size` (default "md"). Text size.
1823
+ - Plus every native `<div>` attribute (className, style, id, aria-*, data-*, event handlers), spread onto the root.
1824
+
1825
+ ### Examples (Storybook stories)
1826
+
1827
+ - Playground
1828
+ - Stacked
1829
+ - Inline
1830
+ - Filterable
1831
+ - Sizes
1832
+ - No Reviews
1833
+ - Ten Point Scale
1834
+
1835
+ ## ReviewCard
1836
+
1837
+ import { ReviewCard } from "@vjdesigns/vjdesigns-ui";
1838
+
1839
+ Category: data-display · Storybook: Data Display/ReviewCard
1840
+
1841
+ One customer review: the reviewer with avatar, star rating, date,
1842
+ verified badge, headline, body (clamped with "Read more"), a would-
1843
+ recommend indicator, photos, helpful votes, and an owner reply. Rendered
1844
+ as an `<article>` named by its headline (or the reviewer).
1845
+
1846
+ ### Props
1847
+
1848
+ - `author`: `ReviewAuthor` (required). The reviewer.
1849
+ - `rating`: `number`. Star rating, shown with `RatingDisplay`. Omit for a text-only review.
1850
+ - `max`: `number` (default 5). Highest rating.
1851
+ - `title`: `ReactNode`. Review headline, rendered as a heading (see `headingLevel`).
1852
+ - `headingLevel`: `2 | 3 | 4 | 5 | 6` (default 3). Heading level of `title`.
1853
+ - `date`: `string`. ISO date ("YYYY-MM-DD") the review was written. Formatted for the locale in a `<time>`.
1854
+ - `verified`: `boolean` (default false). Show a "Verified purchase" badge.
1855
+ - `verifiedLabel`: `string` (default "Verified purchase"). Text of the verified badge, e.g. "Verified attendee".
1856
+ - `recommend`: `boolean`. `true`: thumbs up "Recommends". `false`: thumbs down "Doesn't recommend". Omit to show neither.
1857
+ - `children`: `ReactNode`. The review body. Long text is clamped to `maxLines` with a "Read more" button.
1858
+ - `maxLines`: `number` (default 5). Lines shown before "Read more". `0` never clamps.
1859
+ - `media`: `ReactNode`. Photos or other media, shown under the body.
1860
+ - `helpfulCount`: `number`. How many people found the review helpful. Shown as "12 people found this helpful".
1861
+ - `helpful`: `boolean | null`. The viewer's helpful vote (controlled): `true` yes, `false` no, `null` none.
1862
+ - `defaultHelpful`: `boolean | null` (default null). Initial helpful vote (uncontrolled).
1863
+ - `onHelpfulChange`: `(helpful: boolean | null) => void`. Called with the viewer's helpful vote. Setting it shows "Helpful? Yes / No" toggle buttons; pressing the pressed one again clears it (`null`).
1864
+ - `response`: `ReviewResponse`. An owner or seller reply, shown indented under the review.
1865
+ - `actions`: `ReactNode`. Extra actions in the footer, e.g. Report or Share buttons.
1866
+ - Plus every native `<article>` attribute (className, style, id, aria-*, data-*, event handlers), spread onto the root.
1867
+
1868
+ ### Examples (Storybook stories)
1869
+
1870
+ - Playground
1871
+ - Complete
1872
+ - Long Review Read More
1873
+ - Short Review No Clamp
1874
+ - Does Not Recommend
1875
+ - Text Only
1876
+ - With Photos
1877
+ - Composition: reviews page
1878
+
1743
1879
  ## Stat
1744
1880
 
1745
1881
  import { Stat } from "@vjdesigns/vjdesigns-ui";
@@ -3985,6 +4121,65 @@ Not focusable. For an editable rating use `Rating`.
3985
4121
  - Rate This Game (Form)
3986
4122
  - Unrated (read-only and zero): A read-only rating with no value says "Not rated" (not "Rated 0"), and a value of 0 means unrated, not one star.
3987
4123
 
4124
+ ## RatingScale
4125
+
4126
+ import { RatingScale } from "@vjdesigns/vjdesigns-ui";
4127
+
4128
+ Category: forms · Storybook: Forms/RatingScale
4129
+
4130
+ A labeled, single-choice rating scale: faces, numbers (such as a 0 to 10
4131
+ likelihood scale), or thumbs up and down. Unlike `Rating`, each option is
4132
+ its own choice with its own name, so choosing one never fills the others.
4133
+ Built on native radios in a `role="radiogroup"`: Tab lands on the selected
4134
+ option, arrow keys move and select, and the value submits with a form.
4135
+
4136
+ ### Props
4137
+
4138
+ - `variant`: `RatingScaleVariant` (default "numbers"). Look and built-in options: five `faces` (very unhappy to very happy), `numbers` from `min` to `max` (e.g. a 0 to 10 likelihood scale), or `thumbs` up (`1`) and down (`0`).
4139
+ - `value`: `number | null`. Selected value (controlled). `null` means nothing is selected. Use with `onValueChange`.
4140
+ - `defaultValue`: `number | null` (default null). Initial value (uncontrolled).
4141
+ - `onValueChange`: `(value: number | null) => void`. Called with the selected value, or `null` when cleared.
4142
+ - `min`: `number` (default 1). `numbers` only: the lowest value.
4143
+ - `max`: `number` (default 5). `numbers` only: the highest value.
4144
+ - `options`: `RatingScaleOption[]`. Custom options, replacing the variant's built-in set (and `min` / `max`). The variant still sets the look.
4145
+ - `startLabel`: `ReactNode`. Caption under the first option, e.g. "Not likely". Also read as part of the description.
4146
+ - `endLabel`: `ReactNode`. Caption under the last option, e.g. "Very likely". Also read as part of the description.
4147
+ - `showLabels`: `boolean` (default false). Show each option's label under it (faces and thumbs).
4148
+ - `sentiment`: `boolean` (default false). `faces` only: tint the faces from danger (lowest) to success (highest). The face shapes already carry the meaning; the tint is extra.
4149
+ - `size`: `Size` (default "md"). Option size. Falls back to a surrounding Field's size.
4150
+ - `allowClear`: `boolean`. Let the user remove their choice: clicking (or pressing Space on) the selected option again, or pressing Delete / Backspace, resets it to `null`.
4151
+ - `clearHint`: `string` (default "Press Space on the selected rating, or Delete, to clear it."). Instructions announced with each option when `allowClear` is on. Localize it here.
4152
+ - `disabled`: `boolean`. Disables every option. Falls back to a surrounding Field's state.
4153
+ - `readOnly`: `boolean`. Show the value without allowing changes: a single `role="img"` named "Rated: Happy", plus a hidden input so the value still submits when `name` is set.
4154
+ - `invalid`: `boolean`. Marks the scale invalid: danger outlines and `aria-invalid`. Falls back to a surrounding Field's state.
4155
+ - `required`: `boolean`. A choice is required: sets native `required` on the radios. Falls back to a surrounding Field's state.
4156
+ - `name`: `string`. Shared `name` for the native radios (used in form submission). Generated with `useId` when omitted.
4157
+ - `getReadOnlyLabel`: `(option: RatingScaleOption) => string` (default "Rated: Happy"). Read-only: accessible name. Localize it here.
4158
+ - `unratedLabel`: `string` (default "Not rated"). Read-only with no value: accessible name.
4159
+ - `label`: `ReactNode`. Visible label, used when the scale stands alone. Ignored inside a `Field`/`Fieldset`, whose label or legend names it. Without a label, pass `aria-label` or `aria-labelledby`.
4160
+ - `description`: `ReactNode`. Help text under the label, linked with `aria-describedby`.
4161
+ - Plus every native `<div>` attribute (className, style, id, aria-*, data-*, event handlers), spread onto the root.
4162
+
4163
+ ### Examples (Storybook stories)
4164
+
4165
+ - Playground
4166
+ - Faces
4167
+ - Faces With Sentiment
4168
+ - Numbers (0 to 10)
4169
+ - One To Five
4170
+ - Thumbs
4171
+ - All Variants
4172
+ - Sizes
4173
+ - Allow Clear
4174
+ - Read Only
4175
+ - Read Only Unrated
4176
+ - Disabled
4177
+ - Invalid
4178
+ - Custom Options
4179
+ - In Field
4180
+ - Controlled
4181
+ - Survey Form
4182
+
3988
4183
  ## SearchForm
3989
4184
 
3990
4185
  import { SearchForm } from "@vjdesigns/vjdesigns-ui";
@@ -5672,6 +5867,77 @@ mounted only while open.
5672
5867
  - Open Light: Open on load in the light theme. Hidden from the docs page because it takes focus.
5673
5868
  - Open Dark: Open on load in the dark theme. Hidden from the docs page because it takes focus.
5674
5869
 
5870
+ ## MobileNav
5871
+
5872
+ import { MobileNav } from "@vjdesigns/vjdesigns-ui";
5873
+
5874
+ Category: navigation · Storybook: Navigation/MobileNav
5875
+
5876
+ A mobile navigation bar: a bottom tab bar, a top bar, or a side rail of
5877
+ icon-and-label links. A bubble slides to the current item, with an
5878
+ animated `effect` (floating bubbles by default; also sparkle, confetti,
5879
+ glow, jelly, orbit, splash, or none). With reduced motion, the bubble simply
5880
+ moves without the effects.
5881
+
5882
+ Renders a `<nav>` landmark with a list of links. The current item has
5883
+ `aria-current="page"` and is marked by the bubble's shape and an indicator
5884
+ bar, never by color alone. Every item keeps its label as its accessible
5885
+ name, even when labels are hidden.
5886
+
5887
+ ### Props
5888
+
5889
+ - `children`: `ReactNode`. `MobileNav.Item`s, usually three to five.
5890
+ - `placement`: `MobileNavPlacement` (default "bottom"). Edge of the screen the bar sits on: `bottom`, `top`, or a `side` rail.
5891
+ - `side`: `MobileNavSide` (default "start"). With `placement="side"`, the edge the rail sits on (logical, so it mirrors in RTL).
5892
+ - `variant`: `MobileNavVariant` (default "surface"). Visual style. See `MobileNavVariant`.
5893
+ - `floating`: `boolean` (default false). Detaches the bar from the edge as a rounded, shadowed island with space around it.
5894
+ - `position`: `MobileNavPosition` (default "fixed"). `fixed` stays on its edge of the viewport; `sticky` sticks to its edge of the scroll container; `static` stays in the flow.
5895
+ - `size`: `Size` (default "md"). Bar height (or rail width) and icon size. Bars: sm 56px, md 64px, lg 72px. Rails: sm 64px, md 80px, lg 96px.
5896
+ - `effect`: `MobileNavEffect` (default "bubbles"). The animated effect when the current item changes: `bubbles`, `sparkle`, `confetti`, `glow`, `jelly`, `orbit`, `splash`, or `none` to turn it off. See `MobileNavEffect`.
5897
+ - `activeTone`: `MobileNavActiveTone` (default "accent"). Color of the bubble and indicator behind the current item.
5898
+ - `labels`: `MobileNavLabels` (default "always"). Which labels are visible: `always`, only the `active` item's, or `never`. Labels are always the items' accessible names.
5899
+ - `hideAbove`: `MobileNavBreakpoint`. Hides the bar at this breakpoint and wider, e.g. `"md"` to show it only on phones.
5900
+ - `reserveSpace`: `boolean` (default true). With `position="fixed"`, keeps focused and scrolled-to content clear of the bar (WCAG 2.4.11): while mounted, sets the matching `scroll-padding` on `<html>` to the space the bar covers, and `--mobile-nav-offset` on `<html>` to the same length, so the page can reserve room for it (`body { padding-block-end: var(--mobile-nav-offset, 0px) }` under a bottom bar). Both are restored on unmount, and are 0 while hidden by `hideAbove`.
5901
+ - `value`: `string`. The current item's `value`, when controlled. An item's own `active` prop wins.
5902
+ - `defaultValue`: `string`. The initially current item's `value`, when uncontrolled. Selecting an item makes it current.
5903
+ - `onValueChange`: `(value: string) => void`. Called with an item's `value` when it's selected.
5904
+ - `aria-label`: `string` (default "Main" (translated)). Accessible name of the navigation landmark.
5905
+ - Plus every native `<nav>` attribute (className, style, id, aria-*, data-*, event handlers), spread onto the root.
5906
+
5907
+ ### MobileNav.Item
5908
+
5909
+ Also exported as `MobileNavItem`.
5910
+
5911
+ One destination in a `MobileNav`: an icon over a label, in its own `<li>`.
5912
+ Selecting it makes it current when the root is uncontrolled (and calls
5913
+ `onValueChange`), even if a client-side router prevents the default
5914
+ navigation.
5915
+
5916
+ - `as`: `C` (default "a"). The element or component to render, e.g. your router's `Link`. Use a link for navigation; `"button"` suits an action such as opening a sheet.
5917
+ - `value`: `string`. Identifies the item for the root's `value` / `defaultValue` / `onValueChange`.
5918
+ - `active`: `boolean`. Marks the item as the current page (`aria-current="page"`), whatever the root's `value`. Use it when your router knows the current page.
5919
+ - `icon`: `ReactNode` (required). The icon. Decorative: the label names the item.
5920
+ - `activeIcon`: `ReactNode`. A different icon for the current item, e.g. a filled version, as an extra cue besides color.
5921
+ - `badge`: `MobileNavBadgeValue`. A count (shown with `Badge` `count`, capped at 99+, hidden at 0) or a short text such as "New", on the icon's corner. It's read after the label ("Messages 3").
5922
+ - `badgeLabel`: `string`. Screen-reader text for the badge, e.g. "3 unread messages". Replaces the badge text in the accessible name.
5923
+ - `badgeTone`: `Tone`. Badge color. By default `accent`, or the bar's colors swapped on the `solid` variant.
5924
+ - `children`: `ReactNode` (required). The label. Always the item's accessible name, even when hidden by `labels`.
5925
+
5926
+ ### Examples (Storybook stories)
5927
+
5928
+ - Playground
5929
+ - Effects: Every `effect`. Tap the items to play each one. `effect="none"` turns the effect off; the bubble still slides. With reduced motion, none play.
5930
+ - Placements: Bottom tab bar, top bar, and a side rail at either edge.
5931
+ - Labels: Labels on every item, only on the current one (it grows into a pill), or icons only.
5932
+ - Variants And Tones: Surface and solid bars in every active tone.
5933
+ - Sizes
5934
+ - Floating: A rounded island with space around it, as a bar and as a rail.
5935
+ - Active Icons: `activeIcon` swaps in a filled icon on the current item, an extra cue besides color.
5936
+ - Router Controlled: With a router: each item's `active` says which page is current, and the root holds no state.
5937
+ - Long Labels: Long labels shorten with an ellipsis instead of pushing other items out.
5938
+ - Right To Left: Right-to-left: items run from the right, and a start rail sits on the right.
5939
+ - Fixed: `position="fixed"` (the default in apps): the bar stays on the viewport's bottom edge, and `<html>` gets scroll padding and `--mobile-nav-offset` so focused content isn't hidden behind it.
5940
+
5675
5941
  ## Navbar
5676
5942
 
5677
5943
  import { Navbar } from "@vjdesigns/vjdesigns-ui";
@@ -7537,7 +7803,7 @@ Hides content visually while keeping it available to screen readers.
7537
7803
 
7538
7804
  ## Icons
7539
7805
 
7540
- Decorative or labelled SVG icons, all with the same props as `Icon`: CheckIcon, CloseIcon, PlusIcon, MinusIcon, ChevronUpIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ArrowUpIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ChevronsLeftIcon, ChevronsRightIcon, SearchIcon, MenuIcon, MoreHorizontalIcon, MoreVerticalIcon, InfoIcon, WarningIcon, ErrorIcon, SuccessIcon, HelpIcon, NoteIcon, OfflineIcon, EyeIcon, EyeOffIcon, CalendarIcon, ClockIcon, UploadIcon, DownloadIcon, TrashIcon, EditIcon, CopyIcon, ExternalLinkIcon, LinkIcon, HomeIcon, UserIcon, UsersIcon, SettingsIcon, BellIcon, StarIcon, StarFilledIcon, HeartIcon, HeartFilledIcon, FilterIcon, SortIcon, RefreshIcon, PauseIcon, PlayIcon, EyeDropperIcon, GripIcon, SunIcon, MoonIcon, LockIcon, MailIcon, FileIcon, FolderIcon, FolderOpenIcon, ImageIcon, LoaderIcon.
7806
+ Decorative or labelled SVG icons, all with the same props as `Icon`: CheckIcon, CloseIcon, PlusIcon, MinusIcon, ChevronUpIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ArrowUpIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ChevronsLeftIcon, ChevronsRightIcon, SearchIcon, MenuIcon, MoreHorizontalIcon, MoreVerticalIcon, InfoIcon, WarningIcon, ErrorIcon, SuccessIcon, HelpIcon, NoteIcon, OfflineIcon, EyeIcon, EyeOffIcon, CalendarIcon, ClockIcon, UploadIcon, DownloadIcon, TrashIcon, EditIcon, CopyIcon, ExternalLinkIcon, LinkIcon, HomeIcon, UserIcon, UsersIcon, SettingsIcon, BellIcon, StarIcon, StarFilledIcon, HeartIcon, HeartFilledIcon, FilterIcon, SortIcon, RefreshIcon, PauseIcon, PlayIcon, EyeDropperIcon, GripIcon, SunIcon, MoonIcon, LockIcon, MailIcon, FileIcon, FolderIcon, FolderOpenIcon, ImageIcon, LoaderIcon, FaceVerySadIcon, FaceSadIcon, FaceNeutralIcon, FaceHappyIcon, FaceVeryHappyIcon, ThumbsUpIcon, ThumbsDownIcon, VerifiedIcon, VolumeIcon, VolumeOffIcon, FullscreenIcon, FullscreenExitIcon, CaptionsIcon, PipIcon.
7541
7807
 
7542
7808
  # Hooks
7543
7809
 
package/dist/ai/llms.txt CHANGED
@@ -36,6 +36,9 @@
36
36
  - [EmptyState](llms-full.txt#emptystate): A friendly, centered block for "no data", "no results", "error", and first-run moments.
37
37
  - [Image](llms-full.txt#image): A native `<img>` in a frame that reserves its aspect ratio, shows a placeholder while loading, fades the picture in, and falls back gracefully on errors (`fallbackSrc`, then a `fallback` box that keeps the `alt` text as its accessible name).
38
38
  - [List](llms-full.txt#list): A semantic list (`<ul>` or `<ol>`) with styled markers and rich items.
39
+ - [Poll](llms-full.txt#poll): A poll with two phases: voting (a question with choices) and results (each choice's share, printed as a percentage, with bars).
40
+ - [RatingBreakdown](llms-full.txt#ratingbreakdown): The summary above a review list: the average rating as a big number with stars, the review count, and one bar per level showing its share.
41
+ - [ReviewCard](llms-full.txt#reviewcard): One customer review: the reviewer with avatar, star rating, date, verified badge, headline, body (clamped with "Read more"), a would- recommend indicator, photos, helpful votes, and an owner reply.
39
42
  - [Stat](llms-full.txt#stat): A big, bold number with a label, for dashboards and box scores: points, revenue, completion rates.
40
43
  - [StatGroup](llms-full.txt#statgroup): A responsive row or grid of `Stat`s, such as a player's box-score line.
41
44
  - [Table](llms-full.txt#table): Semantic data table.
@@ -87,6 +90,7 @@
87
90
  - [RadioGroup](llms-full.txt#radiogroup): A set of mutually exclusive options.
88
91
  - [Rating](llms-full.txt#rating): An editable star (or custom icon) rating, built on real native radios (visually hidden but focusable, sharing one `name`) inside `role="radiogroup"`.
89
92
  - [RatingDisplay](llms-full.txt#ratingdisplay): A read-only rating: a row of icons with fractional fill, exposed to assistive tech as a single `role="img"` named "Rated 4.5 out of 5", optionally followed by the value ("4.5 / 5") and a review count.
93
+ - [RatingScale](llms-full.txt#ratingscale): A labeled, single-choice rating scale: faces, numbers (such as a 0 to 10 likelihood scale), or thumbs up and down.
90
94
  - [SearchForm](llms-full.txt#searchform): A `<form role="search">` landmark around a `SearchInput`, so screen reader users can jump straight to search.
91
95
  - [SearchInput](llms-full.txt#searchinput): A search field built on `Input`: `type="search"`, a search icon, a clear button, and pill rounding by default.
92
96
  - [SegmentedControl](llms-full.txt#segmentedcontrol): Single-choice segmented control.
@@ -118,6 +122,7 @@
118
122
  - [ContextMenu](llms-full.txt#contextmenu): A menu that opens at the pointer on right-click (or a long press on touch screens), for actions on the thing under the pointer.
119
123
  - [Link](llms-full.txt#link): Accessible text link.
120
124
  - [Menu](llms-full.txt#menu): A dropdown menu of actions or options, opened from a button (WAI-ARIA APG "Menu Button" and "Menu" patterns).
125
+ - [MobileNav](llms-full.txt#mobilenav): A mobile navigation bar: a bottom tab bar, a top bar, or a side rail of icon-and-label links.
121
126
  - [Navbar](llms-full.txt#navbar): The top header of an app or site.
122
127
  - [Pagination](llms-full.txt#pagination): Page navigation: a `<nav>` landmark with a list of pill page buttons, Previous/Next arrows, optional First/Last, and gaps for long ranges.
123
128
  - [Sidebar](llms-full.txt#sidebar): App side navigation.