@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/registry.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vjdesigns/vjdesigns-ui",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.8.1",
|
|
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",
|
|
@@ -3492,6 +3492,486 @@
|
|
|
3492
3492
|
}
|
|
3493
3493
|
]
|
|
3494
3494
|
},
|
|
3495
|
+
{
|
|
3496
|
+
"name": "Poll",
|
|
3497
|
+
"category": "data-display",
|
|
3498
|
+
"folder": "Poll",
|
|
3499
|
+
"import": "import { Poll } from \"@vjdesigns/vjdesigns-ui\";",
|
|
3500
|
+
"description": "A poll with two phases: voting (a question with choices) and results\r\n(each choice's share, printed as a percentage, with bars). Four layouts:\r\n`bars`, `cards`, `compact`, and `versus` for two choices head to head.\r\nThe poll is UI only: it reports votes through `onVote` and shows the\r\ncounts you pass in `options`; storing votes and enforcing one vote per\r\nperson is up to your server.",
|
|
3501
|
+
"nativeElement": "div",
|
|
3502
|
+
"props": [
|
|
3503
|
+
{
|
|
3504
|
+
"name": "question",
|
|
3505
|
+
"type": "ReactNode",
|
|
3506
|
+
"required": true,
|
|
3507
|
+
"description": "The question, rendered as a heading (see `headingLevel`)."
|
|
3508
|
+
},
|
|
3509
|
+
{
|
|
3510
|
+
"name": "options",
|
|
3511
|
+
"type": "PollOption[]",
|
|
3512
|
+
"required": true,
|
|
3513
|
+
"description": "The choices, with their vote counts. Update `votes` after `onVote`, including the new vote."
|
|
3514
|
+
},
|
|
3515
|
+
{
|
|
3516
|
+
"name": "layout",
|
|
3517
|
+
"type": "PollLayout",
|
|
3518
|
+
"required": false,
|
|
3519
|
+
"default": "\"bars\"",
|
|
3520
|
+
"description": "Layout of both phases. `versus` needs exactly two options."
|
|
3521
|
+
},
|
|
3522
|
+
{
|
|
3523
|
+
"name": "multiple",
|
|
3524
|
+
"type": "boolean",
|
|
3525
|
+
"required": false,
|
|
3526
|
+
"default": "false",
|
|
3527
|
+
"description": "Allow more than one choice (checkboxes)."
|
|
3528
|
+
},
|
|
3529
|
+
{
|
|
3530
|
+
"name": "maxChoices",
|
|
3531
|
+
"type": "number",
|
|
3532
|
+
"required": false,
|
|
3533
|
+
"description": "With `multiple`: the most choices one voter can pick."
|
|
3534
|
+
},
|
|
3535
|
+
{
|
|
3536
|
+
"name": "value",
|
|
3537
|
+
"type": "string[]",
|
|
3538
|
+
"required": false,
|
|
3539
|
+
"description": "The viewer's choice (controlled). After voting, it marks \"Your vote\" in the results."
|
|
3540
|
+
},
|
|
3541
|
+
{
|
|
3542
|
+
"name": "defaultValue",
|
|
3543
|
+
"type": "string[]",
|
|
3544
|
+
"required": false,
|
|
3545
|
+
"default": "[]",
|
|
3546
|
+
"description": "Initial choice (uncontrolled)."
|
|
3547
|
+
},
|
|
3548
|
+
{
|
|
3549
|
+
"name": "onValueChange",
|
|
3550
|
+
"type": "(value: string[]) => void",
|
|
3551
|
+
"required": false,
|
|
3552
|
+
"description": "Called when the viewer's choice changes, before or as they vote."
|
|
3553
|
+
},
|
|
3554
|
+
{
|
|
3555
|
+
"name": "voted",
|
|
3556
|
+
"type": "boolean",
|
|
3557
|
+
"required": false,
|
|
3558
|
+
"description": "Whether the viewer has voted (controlled). Use with `onVotedChange`."
|
|
3559
|
+
},
|
|
3560
|
+
{
|
|
3561
|
+
"name": "defaultVoted",
|
|
3562
|
+
"type": "boolean",
|
|
3563
|
+
"required": false,
|
|
3564
|
+
"default": "false",
|
|
3565
|
+
"description": "Initial voted state (uncontrolled), e.g. `true` when the server says they already voted."
|
|
3566
|
+
},
|
|
3567
|
+
{
|
|
3568
|
+
"name": "onVotedChange",
|
|
3569
|
+
"type": "(voted: boolean) => void",
|
|
3570
|
+
"required": false,
|
|
3571
|
+
"description": "Called when the voted state changes (after a vote, or on \"Change vote\")."
|
|
3572
|
+
},
|
|
3573
|
+
{
|
|
3574
|
+
"name": "onVote",
|
|
3575
|
+
"type": "(values: string[]) => void | Promise<void>",
|
|
3576
|
+
"required": false,
|
|
3577
|
+
"description": "Called with the chosen values when the viewer votes. Return a promise to\r\nshow a loading state; if it rejects, the poll stays in the voting phase\r\n(show your own error message)."
|
|
3578
|
+
},
|
|
3579
|
+
{
|
|
3580
|
+
"name": "submitMode",
|
|
3581
|
+
"type": "PollSubmitMode",
|
|
3582
|
+
"required": false,
|
|
3583
|
+
"default": "\"instant\" for a single choice, \"button\" with `multiple",
|
|
3584
|
+
"description": "`button`: choose, then press Vote. `instant`: clicking a choice votes\r\n(single choice only; each choice is a button)."
|
|
3585
|
+
},
|
|
3586
|
+
{
|
|
3587
|
+
"name": "showResults",
|
|
3588
|
+
"type": "PollShowResults",
|
|
3589
|
+
"required": false,
|
|
3590
|
+
"default": "\"after-vote\"",
|
|
3591
|
+
"description": "When results show: `after-vote`, `always` (results only, no voting), or\r\n`never` (only once the poll is closed, which avoids bandwagon voting)."
|
|
3592
|
+
},
|
|
3593
|
+
{
|
|
3594
|
+
"name": "closed",
|
|
3595
|
+
"type": "boolean",
|
|
3596
|
+
"required": false,
|
|
3597
|
+
"default": "false",
|
|
3598
|
+
"description": "The poll is over: voting is off and the final results show. Also true once `endsAt` passes."
|
|
3599
|
+
},
|
|
3600
|
+
{
|
|
3601
|
+
"name": "endsAt",
|
|
3602
|
+
"type": "string",
|
|
3603
|
+
"required": false,
|
|
3604
|
+
"description": "When voting ends: an ISO date (\"2026-12-01\", the end of that day) or date-time. Shown as \"Ends in 3 days\"."
|
|
3605
|
+
},
|
|
3606
|
+
{
|
|
3607
|
+
"name": "totalVotes",
|
|
3608
|
+
"type": "number",
|
|
3609
|
+
"required": false,
|
|
3610
|
+
"description": "Total votes, when it differs from the sum of `votes` (e.g. multiple choice counts voters)."
|
|
3611
|
+
},
|
|
3612
|
+
{
|
|
3613
|
+
"name": "allowChangeVote",
|
|
3614
|
+
"type": "boolean",
|
|
3615
|
+
"required": false,
|
|
3616
|
+
"default": "false",
|
|
3617
|
+
"description": "Show a \"Change vote\" button in the results while the poll is open."
|
|
3618
|
+
},
|
|
3619
|
+
{
|
|
3620
|
+
"name": "highlightWinner",
|
|
3621
|
+
"type": "boolean",
|
|
3622
|
+
"required": false,
|
|
3623
|
+
"default": "true",
|
|
3624
|
+
"description": "Mark the sole leader with a \"Leading\" (or \"Winner\") tag and bold label."
|
|
3625
|
+
},
|
|
3626
|
+
{
|
|
3627
|
+
"name": "headingLevel",
|
|
3628
|
+
"type": "2 | 3 | 4 | 5 | 6",
|
|
3629
|
+
"required": false,
|
|
3630
|
+
"default": "3",
|
|
3631
|
+
"description": "Heading level of the question."
|
|
3632
|
+
},
|
|
3633
|
+
{
|
|
3634
|
+
"name": "size",
|
|
3635
|
+
"type": "Size",
|
|
3636
|
+
"required": false,
|
|
3637
|
+
"default": "\"md\"",
|
|
3638
|
+
"description": "Text and control size."
|
|
3639
|
+
},
|
|
3640
|
+
{
|
|
3641
|
+
"name": "labels",
|
|
3642
|
+
"type": "Partial<{ vote: string; changeVote: string; yourVote: string; leading: string; winner: string; finalResults: string; versus: string; }>",
|
|
3643
|
+
"required": false,
|
|
3644
|
+
"description": "Overrides the built-in text (vote button, tags, footer, announcements). Localize it here."
|
|
3645
|
+
}
|
|
3646
|
+
],
|
|
3647
|
+
"subcomponents": [],
|
|
3648
|
+
"storybook": "Data Display/Poll",
|
|
3649
|
+
"stories": [
|
|
3650
|
+
{
|
|
3651
|
+
"name": "Playground",
|
|
3652
|
+
"description": ""
|
|
3653
|
+
},
|
|
3654
|
+
{
|
|
3655
|
+
"name": "Bars",
|
|
3656
|
+
"description": ""
|
|
3657
|
+
},
|
|
3658
|
+
{
|
|
3659
|
+
"name": "Cards",
|
|
3660
|
+
"description": ""
|
|
3661
|
+
},
|
|
3662
|
+
{
|
|
3663
|
+
"name": "Compact",
|
|
3664
|
+
"description": ""
|
|
3665
|
+
},
|
|
3666
|
+
{
|
|
3667
|
+
"name": "Versus",
|
|
3668
|
+
"description": ""
|
|
3669
|
+
},
|
|
3670
|
+
{
|
|
3671
|
+
"name": "All Layouts",
|
|
3672
|
+
"description": ""
|
|
3673
|
+
},
|
|
3674
|
+
{
|
|
3675
|
+
"name": "Sizes",
|
|
3676
|
+
"description": ""
|
|
3677
|
+
},
|
|
3678
|
+
{
|
|
3679
|
+
"name": "Multiple Choice",
|
|
3680
|
+
"description": ""
|
|
3681
|
+
},
|
|
3682
|
+
{
|
|
3683
|
+
"name": "Async vote (loading and failure)",
|
|
3684
|
+
"description": ""
|
|
3685
|
+
},
|
|
3686
|
+
{
|
|
3687
|
+
"name": "Hidden Until Closed",
|
|
3688
|
+
"description": ""
|
|
3689
|
+
},
|
|
3690
|
+
{
|
|
3691
|
+
"name": "Closed",
|
|
3692
|
+
"description": ""
|
|
3693
|
+
},
|
|
3694
|
+
{
|
|
3695
|
+
"name": "Ended By Date",
|
|
3696
|
+
"description": ""
|
|
3697
|
+
},
|
|
3698
|
+
{
|
|
3699
|
+
"name": "Tie",
|
|
3700
|
+
"description": ""
|
|
3701
|
+
},
|
|
3702
|
+
{
|
|
3703
|
+
"name": "No Votes Yet",
|
|
3704
|
+
"description": ""
|
|
3705
|
+
},
|
|
3706
|
+
{
|
|
3707
|
+
"name": "Long Content",
|
|
3708
|
+
"description": ""
|
|
3709
|
+
},
|
|
3710
|
+
{
|
|
3711
|
+
"name": "computePollResults()",
|
|
3712
|
+
"description": ""
|
|
3713
|
+
}
|
|
3714
|
+
]
|
|
3715
|
+
},
|
|
3716
|
+
{
|
|
3717
|
+
"name": "RatingBreakdown",
|
|
3718
|
+
"category": "data-display",
|
|
3719
|
+
"folder": "RatingBreakdown",
|
|
3720
|
+
"import": "import { RatingBreakdown } from \"@vjdesigns/vjdesigns-ui\";",
|
|
3721
|
+
"description": "The summary above a review list: the average rating as a big number with\r\nstars, the review count, and one bar per level showing its share. Each\r\nrow reads \"5 stars: 920 reviews, 72%\"; with `onLevelSelect` the rows are\r\ntoggle buttons for filtering by level.",
|
|
3722
|
+
"nativeElement": "div",
|
|
3723
|
+
"props": [
|
|
3724
|
+
{
|
|
3725
|
+
"name": "counts",
|
|
3726
|
+
"type": "Record<number, number>",
|
|
3727
|
+
"required": true,
|
|
3728
|
+
"description": "Reviews per level, e.g. `{ 5: 920, 4: 210, 3: 80, 2: 40, 1: 34 }`. Missing levels count as 0."
|
|
3729
|
+
},
|
|
3730
|
+
{
|
|
3731
|
+
"name": "average",
|
|
3732
|
+
"type": "number",
|
|
3733
|
+
"required": false,
|
|
3734
|
+
"description": "The average rating. Computed from `counts` when omitted."
|
|
3735
|
+
},
|
|
3736
|
+
{
|
|
3737
|
+
"name": "total",
|
|
3738
|
+
"type": "number",
|
|
3739
|
+
"required": false,
|
|
3740
|
+
"description": "Total reviews. The sum of `counts` when omitted."
|
|
3741
|
+
},
|
|
3742
|
+
{
|
|
3743
|
+
"name": "max",
|
|
3744
|
+
"type": "number",
|
|
3745
|
+
"required": false,
|
|
3746
|
+
"default": "5",
|
|
3747
|
+
"description": "The highest level (number of stars)."
|
|
3748
|
+
},
|
|
3749
|
+
{
|
|
3750
|
+
"name": "onLevelSelect",
|
|
3751
|
+
"type": "(level: number | null) => void",
|
|
3752
|
+
"required": false,
|
|
3753
|
+
"description": "Called when a level row is pressed, with that level, or `null` when the\r\npressed row is pressed again. Turns each row into a toggle button for\r\nfiltering a review list."
|
|
3754
|
+
},
|
|
3755
|
+
{
|
|
3756
|
+
"name": "selectedLevel",
|
|
3757
|
+
"type": "number | null",
|
|
3758
|
+
"required": false,
|
|
3759
|
+
"description": "The level currently filtered on (shown pressed). Use with `onLevelSelect`."
|
|
3760
|
+
},
|
|
3761
|
+
{
|
|
3762
|
+
"name": "recommendPercent",
|
|
3763
|
+
"type": "number",
|
|
3764
|
+
"required": false,
|
|
3765
|
+
"description": "Share of reviewers who would recommend, 0 to 100. Shown as \"92% would recommend\"."
|
|
3766
|
+
},
|
|
3767
|
+
{
|
|
3768
|
+
"name": "layout",
|
|
3769
|
+
"type": "RatingBreakdownLayout",
|
|
3770
|
+
"required": false,
|
|
3771
|
+
"default": "\"stacked\"",
|
|
3772
|
+
"description": "`stacked`: the average above the bars. `inline`: beside them (wraps on narrow screens)."
|
|
3773
|
+
},
|
|
3774
|
+
{
|
|
3775
|
+
"name": "size",
|
|
3776
|
+
"type": "Size",
|
|
3777
|
+
"required": false,
|
|
3778
|
+
"default": "\"md\"",
|
|
3779
|
+
"description": "Text size."
|
|
3780
|
+
}
|
|
3781
|
+
],
|
|
3782
|
+
"subcomponents": [],
|
|
3783
|
+
"storybook": "Data Display/RatingBreakdown",
|
|
3784
|
+
"stories": [
|
|
3785
|
+
{
|
|
3786
|
+
"name": "Playground",
|
|
3787
|
+
"description": ""
|
|
3788
|
+
},
|
|
3789
|
+
{
|
|
3790
|
+
"name": "Stacked",
|
|
3791
|
+
"description": ""
|
|
3792
|
+
},
|
|
3793
|
+
{
|
|
3794
|
+
"name": "Inline",
|
|
3795
|
+
"description": ""
|
|
3796
|
+
},
|
|
3797
|
+
{
|
|
3798
|
+
"name": "Filterable",
|
|
3799
|
+
"description": ""
|
|
3800
|
+
},
|
|
3801
|
+
{
|
|
3802
|
+
"name": "Sizes",
|
|
3803
|
+
"description": ""
|
|
3804
|
+
},
|
|
3805
|
+
{
|
|
3806
|
+
"name": "No Reviews",
|
|
3807
|
+
"description": ""
|
|
3808
|
+
},
|
|
3809
|
+
{
|
|
3810
|
+
"name": "Ten Point Scale",
|
|
3811
|
+
"description": ""
|
|
3812
|
+
}
|
|
3813
|
+
]
|
|
3814
|
+
},
|
|
3815
|
+
{
|
|
3816
|
+
"name": "ReviewCard",
|
|
3817
|
+
"category": "data-display",
|
|
3818
|
+
"folder": "ReviewCard",
|
|
3819
|
+
"import": "import { ReviewCard } from \"@vjdesigns/vjdesigns-ui\";",
|
|
3820
|
+
"description": "One customer review: the reviewer with avatar, star rating, date,\r\nverified badge, headline, body (clamped with \"Read more\"), a would-\r\nrecommend indicator, photos, helpful votes, and an owner reply. Rendered\r\nas an `<article>` named by its headline (or the reviewer).",
|
|
3821
|
+
"nativeElement": "article",
|
|
3822
|
+
"props": [
|
|
3823
|
+
{
|
|
3824
|
+
"name": "author",
|
|
3825
|
+
"type": "ReviewAuthor",
|
|
3826
|
+
"required": true,
|
|
3827
|
+
"description": "The reviewer."
|
|
3828
|
+
},
|
|
3829
|
+
{
|
|
3830
|
+
"name": "rating",
|
|
3831
|
+
"type": "number",
|
|
3832
|
+
"required": false,
|
|
3833
|
+
"description": "Star rating, shown with `RatingDisplay`. Omit for a text-only review."
|
|
3834
|
+
},
|
|
3835
|
+
{
|
|
3836
|
+
"name": "max",
|
|
3837
|
+
"type": "number",
|
|
3838
|
+
"required": false,
|
|
3839
|
+
"default": "5",
|
|
3840
|
+
"description": "Highest rating."
|
|
3841
|
+
},
|
|
3842
|
+
{
|
|
3843
|
+
"name": "title",
|
|
3844
|
+
"type": "ReactNode",
|
|
3845
|
+
"required": false,
|
|
3846
|
+
"description": "Review headline, rendered as a heading (see `headingLevel`)."
|
|
3847
|
+
},
|
|
3848
|
+
{
|
|
3849
|
+
"name": "headingLevel",
|
|
3850
|
+
"type": "2 | 3 | 4 | 5 | 6",
|
|
3851
|
+
"required": false,
|
|
3852
|
+
"default": "3",
|
|
3853
|
+
"description": "Heading level of `title`."
|
|
3854
|
+
},
|
|
3855
|
+
{
|
|
3856
|
+
"name": "date",
|
|
3857
|
+
"type": "string",
|
|
3858
|
+
"required": false,
|
|
3859
|
+
"description": "ISO date (\"YYYY-MM-DD\") the review was written. Formatted for the locale in a `<time>`."
|
|
3860
|
+
},
|
|
3861
|
+
{
|
|
3862
|
+
"name": "verified",
|
|
3863
|
+
"type": "boolean",
|
|
3864
|
+
"required": false,
|
|
3865
|
+
"default": "false",
|
|
3866
|
+
"description": "Show a \"Verified purchase\" badge."
|
|
3867
|
+
},
|
|
3868
|
+
{
|
|
3869
|
+
"name": "verifiedLabel",
|
|
3870
|
+
"type": "string",
|
|
3871
|
+
"required": false,
|
|
3872
|
+
"default": "\"Verified purchase\"",
|
|
3873
|
+
"description": "Text of the verified badge, e.g. \"Verified attendee\"."
|
|
3874
|
+
},
|
|
3875
|
+
{
|
|
3876
|
+
"name": "recommend",
|
|
3877
|
+
"type": "boolean",
|
|
3878
|
+
"required": false,
|
|
3879
|
+
"description": "`true`: thumbs up \"Recommends\". `false`: thumbs down \"Doesn't recommend\". Omit to show neither."
|
|
3880
|
+
},
|
|
3881
|
+
{
|
|
3882
|
+
"name": "children",
|
|
3883
|
+
"type": "ReactNode",
|
|
3884
|
+
"required": false,
|
|
3885
|
+
"description": "The review body. Long text is clamped to `maxLines` with a \"Read more\" button."
|
|
3886
|
+
},
|
|
3887
|
+
{
|
|
3888
|
+
"name": "maxLines",
|
|
3889
|
+
"type": "number",
|
|
3890
|
+
"required": false,
|
|
3891
|
+
"default": "5",
|
|
3892
|
+
"description": "Lines shown before \"Read more\". `0` never clamps."
|
|
3893
|
+
},
|
|
3894
|
+
{
|
|
3895
|
+
"name": "media",
|
|
3896
|
+
"type": "ReactNode",
|
|
3897
|
+
"required": false,
|
|
3898
|
+
"description": "Photos or other media, shown under the body."
|
|
3899
|
+
},
|
|
3900
|
+
{
|
|
3901
|
+
"name": "helpfulCount",
|
|
3902
|
+
"type": "number",
|
|
3903
|
+
"required": false,
|
|
3904
|
+
"description": "How many people found the review helpful. Shown as \"12 people found this helpful\"."
|
|
3905
|
+
},
|
|
3906
|
+
{
|
|
3907
|
+
"name": "helpful",
|
|
3908
|
+
"type": "boolean | null",
|
|
3909
|
+
"required": false,
|
|
3910
|
+
"description": "The viewer's helpful vote (controlled): `true` yes, `false` no, `null` none."
|
|
3911
|
+
},
|
|
3912
|
+
{
|
|
3913
|
+
"name": "defaultHelpful",
|
|
3914
|
+
"type": "boolean | null",
|
|
3915
|
+
"required": false,
|
|
3916
|
+
"default": "null",
|
|
3917
|
+
"description": "Initial helpful vote (uncontrolled)."
|
|
3918
|
+
},
|
|
3919
|
+
{
|
|
3920
|
+
"name": "onHelpfulChange",
|
|
3921
|
+
"type": "(helpful: boolean | null) => void",
|
|
3922
|
+
"required": false,
|
|
3923
|
+
"description": "Called with the viewer's helpful vote. Setting it shows \"Helpful? Yes / No\"\r\ntoggle buttons; pressing the pressed one again clears it (`null`)."
|
|
3924
|
+
},
|
|
3925
|
+
{
|
|
3926
|
+
"name": "response",
|
|
3927
|
+
"type": "ReviewResponse",
|
|
3928
|
+
"required": false,
|
|
3929
|
+
"description": "An owner or seller reply, shown indented under the review."
|
|
3930
|
+
},
|
|
3931
|
+
{
|
|
3932
|
+
"name": "actions",
|
|
3933
|
+
"type": "ReactNode",
|
|
3934
|
+
"required": false,
|
|
3935
|
+
"description": "Extra actions in the footer, e.g. Report or Share buttons."
|
|
3936
|
+
}
|
|
3937
|
+
],
|
|
3938
|
+
"subcomponents": [],
|
|
3939
|
+
"storybook": "Data Display/ReviewCard",
|
|
3940
|
+
"stories": [
|
|
3941
|
+
{
|
|
3942
|
+
"name": "Playground",
|
|
3943
|
+
"description": ""
|
|
3944
|
+
},
|
|
3945
|
+
{
|
|
3946
|
+
"name": "Complete",
|
|
3947
|
+
"description": ""
|
|
3948
|
+
},
|
|
3949
|
+
{
|
|
3950
|
+
"name": "Long Review Read More",
|
|
3951
|
+
"description": ""
|
|
3952
|
+
},
|
|
3953
|
+
{
|
|
3954
|
+
"name": "Short Review No Clamp",
|
|
3955
|
+
"description": ""
|
|
3956
|
+
},
|
|
3957
|
+
{
|
|
3958
|
+
"name": "Does Not Recommend",
|
|
3959
|
+
"description": ""
|
|
3960
|
+
},
|
|
3961
|
+
{
|
|
3962
|
+
"name": "Text Only",
|
|
3963
|
+
"description": ""
|
|
3964
|
+
},
|
|
3965
|
+
{
|
|
3966
|
+
"name": "With Photos",
|
|
3967
|
+
"description": ""
|
|
3968
|
+
},
|
|
3969
|
+
{
|
|
3970
|
+
"name": "Composition: reviews page",
|
|
3971
|
+
"description": ""
|
|
3972
|
+
}
|
|
3973
|
+
]
|
|
3974
|
+
},
|
|
3495
3975
|
{
|
|
3496
3976
|
"name": "Stat",
|
|
3497
3977
|
"category": "data-display",
|
|
@@ -10592,6 +11072,236 @@
|
|
|
10592
11072
|
}
|
|
10593
11073
|
]
|
|
10594
11074
|
},
|
|
11075
|
+
{
|
|
11076
|
+
"name": "RatingScale",
|
|
11077
|
+
"category": "forms",
|
|
11078
|
+
"folder": "RatingScale",
|
|
11079
|
+
"import": "import { RatingScale } from \"@vjdesigns/vjdesigns-ui\";",
|
|
11080
|
+
"description": "A labeled, single-choice rating scale: faces, numbers (such as a 0 to 10\r\nlikelihood scale), or thumbs up and down. Unlike `Rating`, each option is\r\nits own choice with its own name, so choosing one never fills the others.\r\nBuilt on native radios in a `role=\"radiogroup\"`: Tab lands on the selected\r\noption, arrow keys move and select, and the value submits with a form.",
|
|
11081
|
+
"nativeElement": "div",
|
|
11082
|
+
"props": [
|
|
11083
|
+
{
|
|
11084
|
+
"name": "variant",
|
|
11085
|
+
"type": "RatingScaleVariant",
|
|
11086
|
+
"required": false,
|
|
11087
|
+
"default": "\"numbers\"",
|
|
11088
|
+
"description": "Look and built-in options: five `faces` (very unhappy to very happy),\r\n`numbers` from `min` to `max` (e.g. a 0 to 10 likelihood scale), or\r\n`thumbs` up (`1`) and down (`0`)."
|
|
11089
|
+
},
|
|
11090
|
+
{
|
|
11091
|
+
"name": "value",
|
|
11092
|
+
"type": "number | null",
|
|
11093
|
+
"required": false,
|
|
11094
|
+
"description": "Selected value (controlled). `null` means nothing is selected. Use with `onValueChange`."
|
|
11095
|
+
},
|
|
11096
|
+
{
|
|
11097
|
+
"name": "defaultValue",
|
|
11098
|
+
"type": "number | null",
|
|
11099
|
+
"required": false,
|
|
11100
|
+
"default": "null",
|
|
11101
|
+
"description": "Initial value (uncontrolled)."
|
|
11102
|
+
},
|
|
11103
|
+
{
|
|
11104
|
+
"name": "onValueChange",
|
|
11105
|
+
"type": "(value: number | null) => void",
|
|
11106
|
+
"required": false,
|
|
11107
|
+
"description": "Called with the selected value, or `null` when cleared."
|
|
11108
|
+
},
|
|
11109
|
+
{
|
|
11110
|
+
"name": "min",
|
|
11111
|
+
"type": "number",
|
|
11112
|
+
"required": false,
|
|
11113
|
+
"default": "1",
|
|
11114
|
+
"description": "`numbers` only: the lowest value."
|
|
11115
|
+
},
|
|
11116
|
+
{
|
|
11117
|
+
"name": "max",
|
|
11118
|
+
"type": "number",
|
|
11119
|
+
"required": false,
|
|
11120
|
+
"default": "5",
|
|
11121
|
+
"description": "`numbers` only: the highest value."
|
|
11122
|
+
},
|
|
11123
|
+
{
|
|
11124
|
+
"name": "options",
|
|
11125
|
+
"type": "RatingScaleOption[]",
|
|
11126
|
+
"required": false,
|
|
11127
|
+
"description": "Custom options, replacing the variant's built-in set (and `min` / `max`).\r\nThe variant still sets the look."
|
|
11128
|
+
},
|
|
11129
|
+
{
|
|
11130
|
+
"name": "startLabel",
|
|
11131
|
+
"type": "ReactNode",
|
|
11132
|
+
"required": false,
|
|
11133
|
+
"description": "Caption under the first option, e.g. \"Not likely\". Also read as part of the description."
|
|
11134
|
+
},
|
|
11135
|
+
{
|
|
11136
|
+
"name": "endLabel",
|
|
11137
|
+
"type": "ReactNode",
|
|
11138
|
+
"required": false,
|
|
11139
|
+
"description": "Caption under the last option, e.g. \"Very likely\". Also read as part of the description."
|
|
11140
|
+
},
|
|
11141
|
+
{
|
|
11142
|
+
"name": "showLabels",
|
|
11143
|
+
"type": "boolean",
|
|
11144
|
+
"required": false,
|
|
11145
|
+
"default": "false",
|
|
11146
|
+
"description": "Show each option's label under it (faces and thumbs)."
|
|
11147
|
+
},
|
|
11148
|
+
{
|
|
11149
|
+
"name": "sentiment",
|
|
11150
|
+
"type": "boolean",
|
|
11151
|
+
"required": false,
|
|
11152
|
+
"default": "false",
|
|
11153
|
+
"description": "`faces` only: tint the faces from danger (lowest) to success (highest).\r\nThe face shapes already carry the meaning; the tint is extra."
|
|
11154
|
+
},
|
|
11155
|
+
{
|
|
11156
|
+
"name": "size",
|
|
11157
|
+
"type": "Size",
|
|
11158
|
+
"required": false,
|
|
11159
|
+
"default": "\"md\"",
|
|
11160
|
+
"description": "Option size. Falls back to a surrounding Field's size."
|
|
11161
|
+
},
|
|
11162
|
+
{
|
|
11163
|
+
"name": "allowClear",
|
|
11164
|
+
"type": "boolean",
|
|
11165
|
+
"required": false,
|
|
11166
|
+
"description": "Let the user remove their choice: clicking (or pressing Space on) the\r\nselected option again, or pressing Delete / Backspace, resets it to `null`."
|
|
11167
|
+
},
|
|
11168
|
+
{
|
|
11169
|
+
"name": "clearHint",
|
|
11170
|
+
"type": "string",
|
|
11171
|
+
"required": false,
|
|
11172
|
+
"default": "\"Press Space on the selected rating, or Delete, to clear it.\"",
|
|
11173
|
+
"description": "Instructions announced with each option when `allowClear` is on. Localize it here."
|
|
11174
|
+
},
|
|
11175
|
+
{
|
|
11176
|
+
"name": "disabled",
|
|
11177
|
+
"type": "boolean",
|
|
11178
|
+
"required": false,
|
|
11179
|
+
"description": "Disables every option. Falls back to a surrounding Field's state."
|
|
11180
|
+
},
|
|
11181
|
+
{
|
|
11182
|
+
"name": "readOnly",
|
|
11183
|
+
"type": "boolean",
|
|
11184
|
+
"required": false,
|
|
11185
|
+
"description": "Show the value without allowing changes: a single `role=\"img\"` named\r\n\"Rated: Happy\", plus a hidden input so the value still submits when `name` is set."
|
|
11186
|
+
},
|
|
11187
|
+
{
|
|
11188
|
+
"name": "invalid",
|
|
11189
|
+
"type": "boolean",
|
|
11190
|
+
"required": false,
|
|
11191
|
+
"description": "Marks the scale invalid: danger outlines and `aria-invalid`. Falls back to a surrounding Field's state."
|
|
11192
|
+
},
|
|
11193
|
+
{
|
|
11194
|
+
"name": "required",
|
|
11195
|
+
"type": "boolean",
|
|
11196
|
+
"required": false,
|
|
11197
|
+
"description": "A choice is required: sets native `required` on the radios. Falls back to a surrounding Field's state."
|
|
11198
|
+
},
|
|
11199
|
+
{
|
|
11200
|
+
"name": "name",
|
|
11201
|
+
"type": "string",
|
|
11202
|
+
"required": false,
|
|
11203
|
+
"description": "Shared `name` for the native radios (used in form submission). Generated with `useId` when omitted."
|
|
11204
|
+
},
|
|
11205
|
+
{
|
|
11206
|
+
"name": "getReadOnlyLabel",
|
|
11207
|
+
"type": "(option: RatingScaleOption) => string",
|
|
11208
|
+
"required": false,
|
|
11209
|
+
"default": "\"Rated: Happy\"",
|
|
11210
|
+
"description": "Read-only: accessible name. Localize it here."
|
|
11211
|
+
},
|
|
11212
|
+
{
|
|
11213
|
+
"name": "unratedLabel",
|
|
11214
|
+
"type": "string",
|
|
11215
|
+
"required": false,
|
|
11216
|
+
"default": "\"Not rated\"",
|
|
11217
|
+
"description": "Read-only with no value: accessible name."
|
|
11218
|
+
},
|
|
11219
|
+
{
|
|
11220
|
+
"name": "label",
|
|
11221
|
+
"type": "ReactNode",
|
|
11222
|
+
"required": false,
|
|
11223
|
+
"description": "Visible label, used when the scale stands alone. Ignored inside a\r\n`Field`/`Fieldset`, whose label or legend names it. Without a label,\r\npass `aria-label` or `aria-labelledby`."
|
|
11224
|
+
},
|
|
11225
|
+
{
|
|
11226
|
+
"name": "description",
|
|
11227
|
+
"type": "ReactNode",
|
|
11228
|
+
"required": false,
|
|
11229
|
+
"description": "Help text under the label, linked with `aria-describedby`."
|
|
11230
|
+
}
|
|
11231
|
+
],
|
|
11232
|
+
"subcomponents": [],
|
|
11233
|
+
"storybook": "Forms/RatingScale",
|
|
11234
|
+
"stories": [
|
|
11235
|
+
{
|
|
11236
|
+
"name": "Playground",
|
|
11237
|
+
"description": ""
|
|
11238
|
+
},
|
|
11239
|
+
{
|
|
11240
|
+
"name": "Faces",
|
|
11241
|
+
"description": ""
|
|
11242
|
+
},
|
|
11243
|
+
{
|
|
11244
|
+
"name": "Faces With Sentiment",
|
|
11245
|
+
"description": ""
|
|
11246
|
+
},
|
|
11247
|
+
{
|
|
11248
|
+
"name": "Numbers (0 to 10)",
|
|
11249
|
+
"description": ""
|
|
11250
|
+
},
|
|
11251
|
+
{
|
|
11252
|
+
"name": "One To Five",
|
|
11253
|
+
"description": ""
|
|
11254
|
+
},
|
|
11255
|
+
{
|
|
11256
|
+
"name": "Thumbs",
|
|
11257
|
+
"description": ""
|
|
11258
|
+
},
|
|
11259
|
+
{
|
|
11260
|
+
"name": "All Variants",
|
|
11261
|
+
"description": ""
|
|
11262
|
+
},
|
|
11263
|
+
{
|
|
11264
|
+
"name": "Sizes",
|
|
11265
|
+
"description": ""
|
|
11266
|
+
},
|
|
11267
|
+
{
|
|
11268
|
+
"name": "Allow Clear",
|
|
11269
|
+
"description": ""
|
|
11270
|
+
},
|
|
11271
|
+
{
|
|
11272
|
+
"name": "Read Only",
|
|
11273
|
+
"description": ""
|
|
11274
|
+
},
|
|
11275
|
+
{
|
|
11276
|
+
"name": "Read Only Unrated",
|
|
11277
|
+
"description": ""
|
|
11278
|
+
},
|
|
11279
|
+
{
|
|
11280
|
+
"name": "Disabled",
|
|
11281
|
+
"description": ""
|
|
11282
|
+
},
|
|
11283
|
+
{
|
|
11284
|
+
"name": "Invalid",
|
|
11285
|
+
"description": ""
|
|
11286
|
+
},
|
|
11287
|
+
{
|
|
11288
|
+
"name": "Custom Options",
|
|
11289
|
+
"description": ""
|
|
11290
|
+
},
|
|
11291
|
+
{
|
|
11292
|
+
"name": "In Field",
|
|
11293
|
+
"description": ""
|
|
11294
|
+
},
|
|
11295
|
+
{
|
|
11296
|
+
"name": "Controlled",
|
|
11297
|
+
"description": ""
|
|
11298
|
+
},
|
|
11299
|
+
{
|
|
11300
|
+
"name": "Survey Form",
|
|
11301
|
+
"description": ""
|
|
11302
|
+
}
|
|
11303
|
+
]
|
|
11304
|
+
},
|
|
10595
11305
|
{
|
|
10596
11306
|
"name": "SearchForm",
|
|
10597
11307
|
"category": "forms",
|
|
@@ -15730,7 +16440,7 @@
|
|
|
15730
16440
|
"category": "navigation",
|
|
15731
16441
|
"folder": "MobileNav",
|
|
15732
16442
|
"import": "import { MobileNav } from \"@vjdesigns/vjdesigns-ui\";",
|
|
15733
|
-
"description": "A mobile navigation bar: a bottom tab bar, a top bar, or a side rail of\nicon-and-label links. A bubble slides to the current item, with an\nanimated `effect` (floating bubbles by default; also sparkle, confetti,\nglow, jelly, orbit, splash, or none). With reduced motion, the bubble simply\nmoves without the effects.\n\nRenders a `<nav>` landmark with a list of links. The current item has\n`aria-current=\"page\"` and is marked by the bubble's shape and an indicator\nbar, never by color alone. Every item keeps its label as its accessible\nname, even when labels are hidden.",
|
|
16443
|
+
"description": "A mobile navigation bar: a bottom tab bar, a top bar, or a side rail of\r\nicon-and-label links. A bubble slides to the current item, with an\r\nanimated `effect` (floating bubbles by default; also sparkle, confetti,\r\nglow, jelly, orbit, splash, or none). With reduced motion, the bubble simply\r\nmoves without the effects.\r\n\r\nRenders a `<nav>` landmark with a list of links. The current item has\r\n`aria-current=\"page\"` and is marked by the bubble's shape and an indicator\r\nbar, never by color alone. Every item keeps its label as its accessible\r\nname, even when labels are hidden.",
|
|
15734
16444
|
"nativeElement": "nav",
|
|
15735
16445
|
"props": [
|
|
15736
16446
|
{
|
|
@@ -15772,7 +16482,7 @@
|
|
|
15772
16482
|
"type": "MobileNavPosition",
|
|
15773
16483
|
"required": false,
|
|
15774
16484
|
"default": "\"fixed\"",
|
|
15775
|
-
"description": "`fixed` stays on its edge of the viewport; `sticky` sticks to its edge of\nthe scroll container; `static` stays in the flow."
|
|
16485
|
+
"description": "`fixed` stays on its edge of the viewport; `sticky` sticks to its edge of\r\nthe scroll container; `static` stays in the flow."
|
|
15776
16486
|
},
|
|
15777
16487
|
{
|
|
15778
16488
|
"name": "size",
|
|
@@ -15786,7 +16496,7 @@
|
|
|
15786
16496
|
"type": "MobileNavEffect",
|
|
15787
16497
|
"required": false,
|
|
15788
16498
|
"default": "\"bubbles\"",
|
|
15789
|
-
"description": "The animated effect when the current item changes: `bubbles`,\n`sparkle`, `confetti`, `glow`, `jelly`, `orbit`, `splash`, or `none` to\nturn it off. See `MobileNavEffect`."
|
|
16499
|
+
"description": "The animated effect when the current item changes: `bubbles`,\r\n`sparkle`, `confetti`, `glow`, `jelly`, `orbit`, `splash`, or `none` to\r\nturn it off. See `MobileNavEffect`."
|
|
15790
16500
|
},
|
|
15791
16501
|
{
|
|
15792
16502
|
"name": "activeTone",
|
|
@@ -15813,7 +16523,7 @@
|
|
|
15813
16523
|
"type": "boolean",
|
|
15814
16524
|
"required": false,
|
|
15815
16525
|
"default": "true",
|
|
15816
|
-
"description": "With `position=\"fixed\"`, keeps focused and scrolled-to content clear of\nthe bar (WCAG 2.4.11): while mounted, sets the matching `scroll-padding`\non `<html>` to the space the bar covers, and `--mobile-nav-offset` on\n`<html>` to the same length, so the page can reserve room for it\n(`body { padding-block-end: var(--mobile-nav-offset, 0px) }` under a\nbottom bar). Both are restored on unmount, and are 0 while hidden by\n`hideAbove`."
|
|
16526
|
+
"description": "With `position=\"fixed\"`, keeps focused and scrolled-to content clear of\r\nthe bar (WCAG 2.4.11): while mounted, sets the matching `scroll-padding`\r\non `<html>` to the space the bar covers, and `--mobile-nav-offset` on\r\n`<html>` to the same length, so the page can reserve room for it\r\n(`body { padding-block-end: var(--mobile-nav-offset, 0px) }` under a\r\nbottom bar). Both are restored on unmount, and are 0 while hidden by\r\n`hideAbove`."
|
|
15817
16527
|
},
|
|
15818
16528
|
{
|
|
15819
16529
|
"name": "value",
|
|
@@ -15845,14 +16555,14 @@
|
|
|
15845
16555
|
{
|
|
15846
16556
|
"name": "MobileNav.Item",
|
|
15847
16557
|
"exportedAs": "MobileNavItem",
|
|
15848
|
-
"description": "One destination in a `MobileNav`: an icon over a label, in its own `<li>`.\nSelecting it makes it current when the root is uncontrolled (and calls\n`onValueChange`), even if a client-side router prevents the default\nnavigation.",
|
|
16558
|
+
"description": "One destination in a `MobileNav`: an icon over a label, in its own `<li>`.\r\nSelecting it makes it current when the root is uncontrolled (and calls\r\n`onValueChange`), even if a client-side router prevents the default\r\nnavigation.",
|
|
15849
16559
|
"props": [
|
|
15850
16560
|
{
|
|
15851
16561
|
"name": "as",
|
|
15852
16562
|
"type": "C",
|
|
15853
16563
|
"required": false,
|
|
15854
16564
|
"default": "\"a\"",
|
|
15855
|
-
"description": "The element or component to render, e.g. your router's `Link`. Use a\nlink for navigation; `\"button\"` suits an action such as opening a sheet."
|
|
16565
|
+
"description": "The element or component to render, e.g. your router's `Link`. Use a\r\nlink for navigation; `\"button\"` suits an action such as opening a sheet."
|
|
15856
16566
|
},
|
|
15857
16567
|
{
|
|
15858
16568
|
"name": "value",
|
|
@@ -15864,7 +16574,7 @@
|
|
|
15864
16574
|
"name": "active",
|
|
15865
16575
|
"type": "boolean",
|
|
15866
16576
|
"required": false,
|
|
15867
|
-
"description": "Marks the item as the current page (`aria-current=\"page\"`), whatever\nthe root's `value`. Use it when your router knows the current page."
|
|
16577
|
+
"description": "Marks the item as the current page (`aria-current=\"page\"`), whatever\r\nthe root's `value`. Use it when your router knows the current page."
|
|
15868
16578
|
},
|
|
15869
16579
|
{
|
|
15870
16580
|
"name": "icon",
|
|
@@ -15882,7 +16592,7 @@
|
|
|
15882
16592
|
"name": "badge",
|
|
15883
16593
|
"type": "MobileNavBadgeValue",
|
|
15884
16594
|
"required": false,
|
|
15885
|
-
"description": "A count (shown with `Badge` `count`, capped at 99+, hidden at 0) or a\nshort text such as \"New\", on the icon's corner. It's read after the\nlabel (\"Messages 3\")."
|
|
16595
|
+
"description": "A count (shown with `Badge` `count`, capped at 99+, hidden at 0) or a\r\nshort text such as \"New\", on the icon's corner. It's read after the\r\nlabel (\"Messages 3\")."
|
|
15886
16596
|
},
|
|
15887
16597
|
{
|
|
15888
16598
|
"name": "badgeLabel",
|
|
@@ -15913,7 +16623,7 @@
|
|
|
15913
16623
|
},
|
|
15914
16624
|
{
|
|
15915
16625
|
"name": "Effects",
|
|
15916
|
-
"description": "Every `effect`. Tap the items to play each one. `effect=\"none\"` turns the\neffect off; the bubble still slides. With reduced motion, none play."
|
|
16626
|
+
"description": "Every `effect`. Tap the items to play each one. `effect=\"none\"` turns the\r\neffect off; the bubble still slides. With reduced motion, none play."
|
|
15917
16627
|
},
|
|
15918
16628
|
{
|
|
15919
16629
|
"name": "Placements",
|
|
@@ -15953,7 +16663,7 @@
|
|
|
15953
16663
|
},
|
|
15954
16664
|
{
|
|
15955
16665
|
"name": "Fixed",
|
|
15956
|
-
"description": "`position=\"fixed\"` (the default in apps): the bar stays on the viewport's\nbottom edge, and `<html>` gets scroll padding and `--mobile-nav-offset`\nso focused content isn't hidden behind it."
|
|
16666
|
+
"description": "`position=\"fixed\"` (the default in apps): the bar stays on the viewport's\r\nbottom edge, and `<html>` gets scroll padding and `--mobile-nav-offset`\r\nso focused content isn't hidden behind it."
|
|
15957
16667
|
}
|
|
15958
16668
|
]
|
|
15959
16669
|
},
|
|
@@ -21117,7 +21827,21 @@
|
|
|
21117
21827
|
"FolderIcon",
|
|
21118
21828
|
"FolderOpenIcon",
|
|
21119
21829
|
"ImageIcon",
|
|
21120
|
-
"LoaderIcon"
|
|
21830
|
+
"LoaderIcon",
|
|
21831
|
+
"FaceVerySadIcon",
|
|
21832
|
+
"FaceSadIcon",
|
|
21833
|
+
"FaceNeutralIcon",
|
|
21834
|
+
"FaceHappyIcon",
|
|
21835
|
+
"FaceVeryHappyIcon",
|
|
21836
|
+
"ThumbsUpIcon",
|
|
21837
|
+
"ThumbsDownIcon",
|
|
21838
|
+
"VerifiedIcon",
|
|
21839
|
+
"VolumeIcon",
|
|
21840
|
+
"VolumeOffIcon",
|
|
21841
|
+
"FullscreenIcon",
|
|
21842
|
+
"FullscreenExitIcon",
|
|
21843
|
+
"CaptionsIcon",
|
|
21844
|
+
"PipIcon"
|
|
21121
21845
|
],
|
|
21122
21846
|
"hooks": [
|
|
21123
21847
|
{
|