@vjdesigns/vjdesigns-ui 3.7.0 → 3.8.1
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.
- package/CHANGELOG.md +208 -189
- package/LICENSE +1 -1
- package/README.md +1 -1
- package/dist/ai/llms-full.txt +209 -14
- package/dist/ai/llms.txt +4 -0
- package/dist/ai/registry.json +736 -12
- package/dist/components/data-display/Poll/Poll.cjs.js +1 -0
- package/dist/components/data-display/Poll/Poll.d.ts +114 -0
- package/dist/components/data-display/Poll/Poll.mjs +335 -0
- package/dist/components/data-display/Poll/Poll.module.css.cjs.js +1 -0
- package/dist/components/data-display/Poll/Poll.module.css.mjs +46 -0
- package/dist/components/data-display/Poll/index.d.ts +1 -0
- package/dist/components/data-display/RatingBreakdown/RatingBreakdown.cjs.js +1 -0
- package/dist/components/data-display/RatingBreakdown/RatingBreakdown.d.ts +35 -0
- package/dist/components/data-display/RatingBreakdown/RatingBreakdown.mjs +88 -0
- package/dist/components/data-display/RatingBreakdown/RatingBreakdown.module.css.cjs.js +1 -0
- package/dist/components/data-display/RatingBreakdown/RatingBreakdown.module.css.mjs +21 -0
- package/dist/components/data-display/RatingBreakdown/index.d.ts +1 -0
- package/dist/components/data-display/ReviewCard/ReviewCard.cjs.js +1 -0
- package/dist/components/data-display/ReviewCard/ReviewCard.d.ts +67 -0
- package/dist/components/data-display/ReviewCard/ReviewCard.mjs +174 -0
- package/dist/components/data-display/ReviewCard/ReviewCard.module.css.cjs.js +1 -0
- package/dist/components/data-display/ReviewCard/ReviewCard.module.css.mjs +26 -0
- package/dist/components/data-display/ReviewCard/index.d.ts +1 -0
- package/dist/components/forms/RatingScale/RatingScale.cjs.js +1 -0
- package/dist/components/forms/RatingScale/RatingScale.d.ts +106 -0
- package/dist/components/forms/RatingScale/RatingScale.mjs +175 -0
- package/dist/components/forms/RatingScale/RatingScale.module.css.cjs.js +1 -0
- package/dist/components/forms/RatingScale/RatingScale.module.css.mjs +28 -0
- package/dist/components/forms/RatingScale/index.d.ts +1 -0
- package/dist/components/navigation/MobileNav/MobileNav.module.css.cjs.js +1 -1
- package/dist/components/navigation/MobileNav/MobileNav.module.css.mjs +14 -14
- package/dist/components/primitives/Icon/icons.cjs.js +1 -1
- package/dist/components/primitives/Icon/icons.d.ts +70 -0
- package/dist/components/primitives/Icon/icons.mjs +203 -134
- package/dist/components/primitives/Typography/Typography.d.ts +2 -2
- package/dist/i18n/en.cjs.js +1 -1
- package/dist/i18n/en.mjs +161 -0
- package/dist/i18n/types.d.ts +171 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.mjs +111 -107
- package/dist/locales/ar.cjs.js +1 -1
- package/dist/locales/ar.mjs +196 -0
- package/dist/locales/bn.cjs.js +1 -1
- package/dist/locales/bn.mjs +131 -0
- package/dist/locales/cs.cjs.js +1 -1
- package/dist/locales/cs.mjs +181 -0
- package/dist/locales/da.cjs.js +1 -1
- package/dist/locales/da.mjs +161 -0
- package/dist/locales/de.cjs.js +1 -1
- package/dist/locales/de.mjs +161 -0
- package/dist/locales/el.cjs.js +1 -1
- package/dist/locales/el.mjs +161 -0
- package/dist/locales/es.cjs.js +1 -1
- package/dist/locales/es.mjs +161 -0
- package/dist/locales/fa.cjs.js +1 -1
- package/dist/locales/fa.mjs +131 -0
- package/dist/locales/fi.cjs.js +1 -1
- package/dist/locales/fi.mjs +161 -0
- package/dist/locales/fr.cjs.js +1 -1
- package/dist/locales/fr.mjs +166 -0
- package/dist/locales/he.cjs.js +1 -1
- package/dist/locales/he.mjs +171 -0
- package/dist/locales/hi.cjs.js +1 -1
- package/dist/locales/hi.mjs +161 -0
- package/dist/locales/hu.cjs.js +1 -1
- package/dist/locales/hu.mjs +131 -0
- package/dist/locales/id.cjs.js +1 -1
- package/dist/locales/id.mjs +131 -0
- package/dist/locales/it.cjs.js +1 -1
- package/dist/locales/it.mjs +166 -0
- package/dist/locales/ja.cjs.js +1 -1
- package/dist/locales/ja.mjs +131 -0
- package/dist/locales/ko.cjs.js +1 -1
- package/dist/locales/ko.mjs +131 -0
- package/dist/locales/nb.cjs.js +1 -1
- package/dist/locales/nb.mjs +161 -0
- package/dist/locales/nl.cjs.js +1 -1
- package/dist/locales/nl.mjs +161 -0
- package/dist/locales/pl.cjs.js +1 -1
- package/dist/locales/pl.mjs +181 -0
- package/dist/locales/pt-BR.cjs.js +1 -1
- package/dist/locales/pt-BR.mjs +166 -0
- package/dist/locales/ro.cjs.js +1 -1
- package/dist/locales/ro.mjs +171 -0
- package/dist/locales/ru.cjs.js +1 -1
- package/dist/locales/ru.mjs +181 -0
- package/dist/locales/sv.cjs.js +1 -1
- package/dist/locales/sv.mjs +161 -0
- package/dist/locales/th.cjs.js +1 -1
- package/dist/locales/th.mjs +131 -0
- package/dist/locales/tr.cjs.js +1 -1
- package/dist/locales/tr.mjs +131 -0
- package/dist/locales/uk.cjs.js +1 -1
- package/dist/locales/uk.mjs +181 -0
- package/dist/locales/ur.cjs.js +1 -1
- package/dist/locales/ur.mjs +161 -0
- package/dist/locales/vi.cjs.js +1 -1
- package/dist/locales/vi.mjs +131 -0
- package/dist/locales/zh-Hans.cjs.js +1 -1
- package/dist/locales/zh-Hans.mjs +131 -0
- package/dist/locales/zh-Hant.cjs.js +1 -1
- package/dist/locales/zh-Hant.mjs +131 -0
- package/dist/vjdesigns-ui.css +1 -1
- package/package.json +1 -1
package/dist/ai/llms-full.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @vjdesigns/vjdesigns-ui 3.
|
|
1
|
+
# @vjdesigns/vjdesigns-ui 3.8.1: 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";
|
|
@@ -5678,15 +5873,15 @@ import { MobileNav } from "@vjdesigns/vjdesigns-ui";
|
|
|
5678
5873
|
|
|
5679
5874
|
Category: navigation · Storybook: Navigation/MobileNav
|
|
5680
5875
|
|
|
5681
|
-
A mobile navigation bar: a bottom tab bar, a top bar, or a side rail of
|
|
5682
|
-
icon-and-label links. A bubble slides to the current item, with an
|
|
5683
|
-
animated `effect` (floating bubbles by default; also sparkle, confetti,
|
|
5684
|
-
glow, jelly, orbit, splash, or none). With reduced motion, the bubble simply
|
|
5685
|
-
moves without the effects.
|
|
5686
|
-
|
|
5687
|
-
Renders a `<nav>` landmark with a list of links. The current item has
|
|
5688
|
-
`aria-current="page"` and is marked by the bubble's shape and an indicator
|
|
5689
|
-
bar, never by color alone. Every item keeps its label as its accessible
|
|
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
|
|
5690
5885
|
name, even when labels are hidden.
|
|
5691
5886
|
|
|
5692
5887
|
### Props
|
|
@@ -5713,9 +5908,9 @@ name, even when labels are hidden.
|
|
|
5713
5908
|
|
|
5714
5909
|
Also exported as `MobileNavItem`.
|
|
5715
5910
|
|
|
5716
|
-
One destination in a `MobileNav`: an icon over a label, in its own `<li>`.
|
|
5717
|
-
Selecting it makes it current when the root is uncontrolled (and calls
|
|
5718
|
-
`onValueChange`), even if a client-side router prevents the default
|
|
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
|
|
5719
5914
|
navigation.
|
|
5720
5915
|
|
|
5721
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.
|
|
@@ -7608,7 +7803,7 @@ Hides content visually while keeping it available to screen readers.
|
|
|
7608
7803
|
|
|
7609
7804
|
## Icons
|
|
7610
7805
|
|
|
7611
|
-
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.
|
|
7612
7807
|
|
|
7613
7808
|
# Hooks
|
|
7614
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.
|