@krizaka/ui 2.8.0 → 2.9.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.
- package/README.md +33 -1
- package/dist/achievement.d.ts +54 -0
- package/dist/achievement.js +73 -0
- package/dist/achievement.js.map +1 -0
- package/dist/app-shell.d.ts +203 -0
- package/dist/app-shell.js +137 -0
- package/dist/app-shell.js.map +1 -0
- package/dist/auth-layout.d.ts +136 -0
- package/dist/auth-layout.js +75 -0
- package/dist/auth-layout.js.map +1 -0
- package/dist/choice-grid.d.ts +84 -0
- package/dist/choice-grid.js +141 -0
- package/dist/choice-grid.js.map +1 -0
- package/dist/chunk-555LWYIN.js +11 -0
- package/dist/chunk-555LWYIN.js.map +1 -0
- package/dist/chunk-AZPKXP3O.js +36 -0
- package/dist/chunk-AZPKXP3O.js.map +1 -0
- package/dist/chunk-VCAAHCHL.js +17 -0
- package/dist/chunk-VCAAHCHL.js.map +1 -0
- package/dist/code-block.js +23 -44
- package/dist/code-block.js.map +1 -1
- package/dist/continue-prompt.d.ts +48 -0
- package/dist/continue-prompt.js +200 -0
- package/dist/continue-prompt.js.map +1 -0
- package/dist/dashboard-layout.d.ts +139 -0
- package/dist/dashboard-layout.js +68 -0
- package/dist/dashboard-layout.js.map +1 -0
- package/dist/detail-layout.d.ts +126 -0
- package/dist/detail-layout.js +48 -0
- package/dist/detail-layout.js.map +1 -0
- package/dist/docs-layout.d.ts +78 -0
- package/dist/docs-layout.js +60 -0
- package/dist/docs-layout.js.map +1 -0
- package/dist/goal-gauge.d.ts +38 -0
- package/dist/goal-gauge.js +53 -0
- package/dist/goal-gauge.js.map +1 -0
- package/dist/index.d.ts +5 -4
- package/dist/index.js +22 -19
- package/dist/index.js.map +1 -1
- package/dist/landscape.d.ts +41 -0
- package/dist/landscape.js +836 -0
- package/dist/landscape.js.map +1 -0
- package/dist/marketing-layout.d.ts +60 -0
- package/dist/marketing-layout.js +25 -0
- package/dist/marketing-layout.js.map +1 -0
- package/dist/mascots.d.ts +14 -1
- package/dist/mascots.js +86 -1
- package/dist/mascots.js.map +1 -1
- package/dist/native.d.ts +73 -3
- package/dist/native.js +530 -296
- package/dist/native.js.map +1 -1
- package/dist/profile-card.d.ts +85 -0
- package/dist/profile-card.js +87 -0
- package/dist/profile-card.js.map +1 -0
- package/dist/promise-card.d.ts +28 -0
- package/dist/promise-card.js +29 -0
- package/dist/promise-card.js.map +1 -0
- package/dist/scroll-stage.d.ts +603 -0
- package/dist/scroll-stage.js +59 -0
- package/dist/scroll-stage.js.map +1 -0
- package/dist/settings-layout.d.ts +154 -0
- package/dist/settings-layout.js +57 -0
- package/dist/settings-layout.js.map +1 -0
- package/dist/split-view.d.ts +106 -0
- package/dist/split-view.js +41 -0
- package/dist/split-view.js.map +1 -0
- package/dist/stage-banner.d.ts +34 -0
- package/dist/stage-banner.js +26 -0
- package/dist/stage-banner.js.map +1 -0
- package/dist/story-variant-CLn4H5Nt.d.ts +4 -0
- package/dist/story.css +432 -0
- package/package.json +250 -8
- package/registry/achievement.json +322 -0
- package/registry/action-bar.json +1 -1
- package/registry/alert.json +1 -1
- package/registry/app-shell.json +451 -0
- package/registry/argument-card.json +1 -1
- package/registry/audio-player.json +1 -1
- package/registry/auth-layout.json +230 -0
- package/registry/avatar.json +1 -1
- package/registry/badge.json +1 -1
- package/registry/button.json +5 -5
- package/registry/card-grid.json +5 -5
- package/registry/card.json +3 -3
- package/registry/checkbox.json +1 -1
- package/registry/chip-link.json +1 -1
- package/registry/chip.json +1 -1
- package/registry/choice-grid.json +318 -0
- package/registry/code-block.json +1 -1
- package/registry/combobox.json +1 -1
- package/registry/command.json +1 -1
- package/registry/confirm-button.json +3 -3
- package/registry/continue-prompt.json +312 -0
- package/registry/countdown.json +1 -1
- package/registry/cta-panel.json +1 -1
- package/registry/dashboard-layout.json +273 -0
- package/registry/data-table.json +1 -1
- package/registry/date-picker.json +1 -1
- package/registry/decision-list.json +1 -1
- package/registry/detail-layout.json +233 -0
- package/registry/dialog.json +1 -1
- package/registry/docs-layout.json +148 -0
- package/registry/dropdown-menu.json +3 -3
- package/registry/empty-state.json +1 -1
- package/registry/examples/achievement/arcade.d.ts +4 -0
- package/registry/examples/achievement/arcade.js +15 -0
- package/registry/examples/achievement/arcade.tsx +12 -0
- package/registry/examples/achievement/milestones.d.ts +4 -0
- package/registry/examples/achievement/milestones.js +15 -0
- package/registry/examples/achievement/milestones.tsx +12 -0
- package/registry/examples/app-shell/admin-console.d.ts +4 -0
- package/registry/examples/app-shell/admin-console.js +52 -0
- package/registry/examples/app-shell/admin-console.tsx +64 -0
- package/registry/examples/app-shell/basic.d.ts +4 -0
- package/registry/examples/app-shell/basic.js +37 -0
- package/registry/examples/app-shell/basic.tsx +31 -0
- package/registry/examples/app-shell/orochia-studio.d.ts +4 -0
- package/registry/examples/app-shell/orochia-studio.js +89 -0
- package/registry/examples/app-shell/orochia-studio.tsx +101 -0
- package/registry/examples/auth-layout/onboarding.d.ts +4 -0
- package/registry/examples/auth-layout/onboarding.js +56 -0
- package/registry/examples/auth-layout/onboarding.tsx +47 -0
- package/registry/examples/auth-layout/sign-in.d.ts +4 -0
- package/registry/examples/auth-layout/sign-in.js +55 -0
- package/registry/examples/auth-layout/sign-in.tsx +47 -0
- package/registry/examples/auth-layout/verify.d.ts +4 -0
- package/registry/examples/auth-layout/verify.js +23 -0
- package/registry/examples/auth-layout/verify.tsx +19 -0
- package/registry/examples/choice-grid/line-up.d.ts +4 -0
- package/registry/examples/choice-grid/line-up.js +37 -0
- package/registry/examples/choice-grid/line-up.tsx +32 -0
- package/registry/examples/choice-grid/plans.d.ts +4 -0
- package/registry/examples/choice-grid/plans.js +28 -0
- package/registry/examples/choice-grid/plans.tsx +24 -0
- package/registry/examples/continue-prompt/arcade.d.ts +4 -0
- package/registry/examples/continue-prompt/arcade.js +28 -0
- package/registry/examples/continue-prompt/arcade.tsx +25 -0
- package/registry/examples/continue-prompt/offer.d.ts +4 -0
- package/registry/examples/continue-prompt/offer.js +24 -0
- package/registry/examples/continue-prompt/offer.tsx +19 -0
- package/registry/examples/dashboard-layout/orazaka-eric.d.ts +4 -0
- package/registry/examples/dashboard-layout/orazaka-eric.js +58 -0
- package/registry/examples/dashboard-layout/orazaka-eric.tsx +80 -0
- package/registry/examples/dashboard-layout/widgets.d.ts +4 -0
- package/registry/examples/dashboard-layout/widgets.js +17 -0
- package/registry/examples/dashboard-layout/widgets.tsx +22 -0
- package/registry/examples/detail-layout/job.d.ts +4 -0
- package/registry/examples/detail-layout/job.js +25 -0
- package/registry/examples/detail-layout/job.tsx +20 -0
- package/registry/examples/detail-layout/video.d.ts +4 -0
- package/registry/examples/detail-layout/video.js +44 -0
- package/registry/examples/detail-layout/video.tsx +53 -0
- package/registry/examples/docs-layout/page.d.ts +4 -0
- package/registry/examples/docs-layout/page.js +26 -0
- package/registry/examples/docs-layout/page.tsx +30 -0
- package/registry/examples/goal-gauge/arcade.d.ts +4 -0
- package/registry/examples/goal-gauge/arcade.js +11 -0
- package/registry/examples/goal-gauge/arcade.tsx +10 -0
- package/registry/examples/goal-gauge/challenge.d.ts +4 -0
- package/registry/examples/goal-gauge/challenge.js +11 -0
- package/registry/examples/goal-gauge/challenge.tsx +10 -0
- package/registry/examples/goal-gauge/drain.d.ts +4 -0
- package/registry/examples/goal-gauge/drain.js +11 -0
- package/registry/examples/goal-gauge/drain.tsx +10 -0
- package/registry/examples/goal-gauge/native/default.d.ts +4 -0
- package/registry/examples/goal-gauge/native/default.dark.png +0 -0
- package/registry/examples/goal-gauge/native/default.js +15 -0
- package/registry/examples/goal-gauge/native/default.light.png +0 -0
- package/registry/examples/goal-gauge/native/default.tsx +12 -0
- package/registry/examples/landscape/backdrop.d.ts +4 -0
- package/registry/examples/landscape/backdrop.js +14 -0
- package/registry/examples/landscape/backdrop.tsx +11 -0
- package/registry/examples/landscape/brand.d.ts +4 -0
- package/registry/examples/landscape/brand.js +11 -0
- package/registry/examples/landscape/brand.tsx +10 -0
- package/registry/examples/marketing-layout/basic.d.ts +4 -0
- package/registry/examples/marketing-layout/basic.js +31 -0
- package/registry/examples/marketing-layout/basic.tsx +28 -0
- package/registry/examples/marketing-layout/docs-hub.d.ts +4 -0
- package/registry/examples/marketing-layout/docs-hub.js +37 -0
- package/registry/examples/marketing-layout/docs-hub.tsx +44 -0
- package/registry/examples/marketing-layout/pricing.d.ts +4 -0
- package/registry/examples/marketing-layout/pricing.js +45 -0
- package/registry/examples/marketing-layout/pricing.tsx +55 -0
- package/registry/examples/marketing-layout/product-page.d.ts +4 -0
- package/registry/examples/marketing-layout/product-page.js +79 -0
- package/registry/examples/marketing-layout/product-page.tsx +83 -0
- package/registry/examples/mascots/native/phoenix.d.ts +4 -0
- package/registry/examples/mascots/native/phoenix.dark.png +0 -0
- package/registry/examples/mascots/native/phoenix.js +21 -0
- package/registry/examples/mascots/native/phoenix.light.png +0 -0
- package/registry/examples/mascots/native/phoenix.tsx +18 -0
- package/registry/examples/mascots/phoenix.d.ts +4 -0
- package/registry/examples/mascots/phoenix.js +14 -0
- package/registry/examples/mascots/phoenix.tsx +11 -0
- package/registry/examples/profile-card/arcade.d.ts +4 -0
- package/registry/examples/profile-card/arcade.js +25 -0
- package/registry/examples/profile-card/arcade.tsx +19 -0
- package/registry/examples/profile-card/creator.d.ts +4 -0
- package/registry/examples/profile-card/creator.js +31 -0
- package/registry/examples/profile-card/creator.tsx +26 -0
- package/registry/examples/profile-card/match.d.ts +4 -0
- package/registry/examples/profile-card/match.js +25 -0
- package/registry/examples/profile-card/match.tsx +19 -0
- package/registry/examples/profile-card/native/default.d.ts +4 -0
- package/registry/examples/profile-card/native/default.dark.png +0 -0
- package/registry/examples/profile-card/native/default.js +27 -0
- package/registry/examples/profile-card/native/default.light.png +0 -0
- package/registry/examples/profile-card/native/default.tsx +22 -0
- package/registry/examples/promise-card/arcade.d.ts +4 -0
- package/registry/examples/promise-card/arcade.js +25 -0
- package/registry/examples/promise-card/arcade.tsx +19 -0
- package/registry/examples/promise-card/guarantee.d.ts +4 -0
- package/registry/examples/promise-card/guarantee.js +23 -0
- package/registry/examples/promise-card/guarantee.tsx +17 -0
- package/registry/examples/scroll-stage/arcade.d.ts +4 -0
- package/registry/examples/scroll-stage/arcade.js +16 -0
- package/registry/examples/scroll-stage/arcade.tsx +15 -0
- package/registry/examples/scroll-stage/chapters.d.ts +4 -0
- package/registry/examples/scroll-stage/chapters.js +25 -0
- package/registry/examples/scroll-stage/chapters.tsx +22 -0
- package/registry/examples/settings-layout/account.d.ts +4 -0
- package/registry/examples/settings-layout/account.js +51 -0
- package/registry/examples/settings-layout/account.tsx +50 -0
- package/registry/examples/settings-layout/sections.d.ts +4 -0
- package/registry/examples/settings-layout/sections.js +27 -0
- package/registry/examples/settings-layout/sections.tsx +24 -0
- package/registry/examples/split-view/empty.d.ts +4 -0
- package/registry/examples/split-view/empty.js +19 -0
- package/registry/examples/split-view/empty.tsx +13 -0
- package/registry/examples/split-view/messages.d.ts +4 -0
- package/registry/examples/split-view/messages.js +49 -0
- package/registry/examples/split-view/messages.tsx +52 -0
- package/registry/examples/stage-banner/round.d.ts +4 -0
- package/registry/examples/stage-banner/round.js +14 -0
- package/registry/examples/stage-banner/round.tsx +11 -0
- package/registry/examples/stage-banner/steps.d.ts +4 -0
- package/registry/examples/stage-banner/steps.js +14 -0
- package/registry/examples/stage-banner/steps.tsx +11 -0
- package/registry/field.json +1 -1
- package/registry/file-upload.json +1 -1
- package/registry/filter-bar.json +1 -1
- package/registry/glow-card.json +1 -1
- package/registry/goal-gauge.json +322 -0
- package/registry/image-cropper.json +1 -1
- package/registry/index.json +317 -5
- package/registry/iso.json +1 -1
- package/registry/kbd.json +1 -1
- package/registry/landscape.json +189 -0
- package/registry/link-card.json +1 -1
- package/registry/loader.json +1 -1
- package/registry/marketing-layout.json +172 -0
- package/registry/marquee.json +1 -1
- package/registry/mascot-quote.json +1 -1
- package/registry/mascot-state.json +1 -1
- package/registry/mascots.json +104 -7
- package/registry/media-capture.json +1 -1
- package/registry/meter.json +1 -1
- package/registry/nav-bar.json +1 -1
- package/registry/number-ticker.json +1 -1
- package/registry/page-header.json +1 -1
- package/registry/page-hero.json +3 -3
- package/registry/page.json +5 -5
- package/registry/pagination.json +1 -1
- package/registry/pointer-light.json +1 -1
- package/registry/popover.json +1 -1
- package/registry/profile-card.json +501 -0
- package/registry/progress.json +1 -1
- package/registry/promise-card.json +228 -0
- package/registry/radio-group.json +1 -1
- package/registry/scroll-stage.json +197 -0
- package/registry/search-field.json +1 -1
- package/registry/section-backdrop.json +1 -1
- package/registry/separator.json +1 -1
- package/registry/settings-layout.json +231 -0
- package/registry/skeleton.json +1 -1
- package/registry/slider.json +1 -1
- package/registry/slot.json +1 -1
- package/registry/spinner.json +1 -1
- package/registry/split-view.json +233 -0
- package/registry/stage-banner.json +221 -0
- package/registry/stat.json +1 -1
- package/registry/stepper.json +1 -1
- package/registry/switch.json +1 -1
- package/registry/tabs.json +1 -1
- package/registry/tag-input.json +1 -1
- package/registry/terminal-replay.json +1 -1
- package/registry/theme.json +1 -1
- package/registry/toast.json +1 -1
- package/registry/toc.json +1 -1
- package/registry/tooltip.json +1 -1
- package/registry/video-player.json +1 -1
- package/registry/video-trimmer.json +1 -1
|
@@ -0,0 +1,501 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "profile-card",
|
|
3
|
+
"type": "primitive",
|
|
4
|
+
"title": "Profile card",
|
|
5
|
+
"summary": "A profile at a glance — a portrait, a name, a headline gauge, a few stats with their values in words, a line and actions: a creator, a match, a member, a plan.",
|
|
6
|
+
"description": "A profile at a glance — a portrait, a name, a headline gauge, a few stats with their values in words, a line and actions: a creator, a match, a member, a plan.",
|
|
7
|
+
"status": "beta",
|
|
8
|
+
"category": "data-display",
|
|
9
|
+
"platforms": "both",
|
|
10
|
+
"whenToUse": [
|
|
11
|
+
"A creator's card in a directory or beside their content (profile completeness, challenges met, response time).",
|
|
12
|
+
"A match in a dating app: what two people share, said in words.",
|
|
13
|
+
"A team member, a product, a plan presented with a few measured strengths — and, on a told page, a character (`variant=\"arcade\"`)."
|
|
14
|
+
],
|
|
15
|
+
"whenNotToUse": [
|
|
16
|
+
{
|
|
17
|
+
"when": "A single figure with its trend.",
|
|
18
|
+
"use": "stat"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"when": "A usage against a limit with thresholds.",
|
|
22
|
+
"use": "meter"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"when": "A plain avatar and a name in a list row.",
|
|
26
|
+
"use": "avatar"
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"bestPractices": [
|
|
30
|
+
"Two to four stats, each with `valueText` in the person's words (“12 of 15”, “replies within a day”): a bar alone says nothing.",
|
|
31
|
+
"Never reduce a person to a score: in a dating or social product, show what is shared, not a ranking.",
|
|
32
|
+
"One or two actions under the card, the main one first.",
|
|
33
|
+
"`nameAs` follows the page's outline: `h3` in a list under an `h2`, `p` when a heading follows the card."
|
|
34
|
+
],
|
|
35
|
+
"accessibility": {
|
|
36
|
+
"keyboard": [],
|
|
37
|
+
"notes": [
|
|
38
|
+
"An `article` headed by the name; each gauge is a `meter` named by its label, with `aria-valuetext`.",
|
|
39
|
+
"The portrait is decorative: the name carries the meaning.",
|
|
40
|
+
"In a stage, the card arrives and its gauges fill once; under `prefers-reduced-motion` they are drawn full at once."
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
"related": [
|
|
44
|
+
"avatar",
|
|
45
|
+
"meter",
|
|
46
|
+
"stat",
|
|
47
|
+
"goal-gauge"
|
|
48
|
+
],
|
|
49
|
+
"web": {
|
|
50
|
+
"entry": "@krizaka/ui/profile-card",
|
|
51
|
+
"import": "import { ProfileCard, StatGauge } from \"@krizaka/ui/profile-card\";",
|
|
52
|
+
"props": [
|
|
53
|
+
{
|
|
54
|
+
"component": "ProfileCard",
|
|
55
|
+
"description": "A profile at a glance: portrait, name, a headline gauge, stats with their values in words, a line and actions.",
|
|
56
|
+
"props": [
|
|
57
|
+
{
|
|
58
|
+
"name": "name",
|
|
59
|
+
"type": "ReactNode",
|
|
60
|
+
"default": null,
|
|
61
|
+
"description": "The name (the card's heading).",
|
|
62
|
+
"required": true
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"name": "visual",
|
|
66
|
+
"type": "ReactNode",
|
|
67
|
+
"default": null,
|
|
68
|
+
"description": "The portrait: an image, an avatar, a mark. Decorative — the name carries the meaning.",
|
|
69
|
+
"required": true
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"name": "brand",
|
|
73
|
+
"type": "string",
|
|
74
|
+
"default": null,
|
|
75
|
+
"description": "A brand scope (`orochia` → `.brand-orochia`): the accent and gradient become that brand's.",
|
|
76
|
+
"required": false
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"name": "caption",
|
|
80
|
+
"type": "ReactNode",
|
|
81
|
+
"default": null,
|
|
82
|
+
"description": "One line under the gauges: where they come from, what they do.",
|
|
83
|
+
"required": false
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"name": "figure",
|
|
87
|
+
"type": "ReactNode",
|
|
88
|
+
"default": null,
|
|
89
|
+
"description": "What shows as the headline figure instead of `valueText`: a `NumberTicker` that climbs. Decorative.",
|
|
90
|
+
"required": false
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"name": "icon",
|
|
94
|
+
"type": "ReactNode",
|
|
95
|
+
"default": null,
|
|
96
|
+
"description": "A small glyph before the name (decorative): a verified mark, an emblem.",
|
|
97
|
+
"required": false
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"name": "nameAs",
|
|
101
|
+
"type": "\"h2\" | \"h3\" | \"h4\" | \"p\"",
|
|
102
|
+
"default": "h3",
|
|
103
|
+
"description": "The level of the name.",
|
|
104
|
+
"required": false
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"name": "statLabel",
|
|
108
|
+
"type": "string",
|
|
109
|
+
"default": null,
|
|
110
|
+
"description": "The headline gauge's label (“Profile complete”, arcade “Power”); without it, no headline gauge.",
|
|
111
|
+
"required": false
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"name": "stats",
|
|
115
|
+
"type": "readonly ProfileStat[]",
|
|
116
|
+
"default": null,
|
|
117
|
+
"description": "More gauges under the headline one: two to four, each with its value in words.",
|
|
118
|
+
"required": false
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"name": "value",
|
|
122
|
+
"type": "number",
|
|
123
|
+
"default": "100",
|
|
124
|
+
"description": "The headline gauge's value, 0–100.",
|
|
125
|
+
"required": false
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"name": "valueText",
|
|
129
|
+
"type": "string",
|
|
130
|
+
"default": null,
|
|
131
|
+
"description": "The headline value in words; default: the percentage.",
|
|
132
|
+
"required": false
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"name": "variant",
|
|
136
|
+
"type": "StoryVariant",
|
|
137
|
+
"default": "default",
|
|
138
|
+
"description": "`default`: a sober card. `arcade`: the fighter card — the brand's light, a ring and a breathing aura, a skewed gauge.",
|
|
139
|
+
"required": false
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"name": "visualSize",
|
|
143
|
+
"type": "number",
|
|
144
|
+
"default": "132 (arcade 196)",
|
|
145
|
+
"description": "The diameter of the portrait, in pixels.",
|
|
146
|
+
"required": false
|
|
147
|
+
}
|
|
148
|
+
]
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"component": "StatGauge",
|
|
152
|
+
"description": "A measured strength: label, figure and bar; `role=\"meter\"` with `aria-valuetext`.",
|
|
153
|
+
"props": [
|
|
154
|
+
{
|
|
155
|
+
"name": "label",
|
|
156
|
+
"type": "string",
|
|
157
|
+
"default": null,
|
|
158
|
+
"description": "What it measures (“Profile complete”, “Creator share”) — passed translated; the meter's accessible name.",
|
|
159
|
+
"required": true
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"name": "figure",
|
|
163
|
+
"type": "ReactNode",
|
|
164
|
+
"default": null,
|
|
165
|
+
"description": "What shows as the figure instead of `valueText`: a `NumberTicker` that climbs, a formatted amount. Decorative.",
|
|
166
|
+
"required": false
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"name": "hideLabel",
|
|
170
|
+
"type": "boolean",
|
|
171
|
+
"default": "false",
|
|
172
|
+
"description": "Hides the label and the figure (the bar alone, named for assistive technology).",
|
|
173
|
+
"required": false
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"name": "max",
|
|
177
|
+
"type": "number",
|
|
178
|
+
"default": "100",
|
|
179
|
+
"description": "The top of the range.",
|
|
180
|
+
"required": false
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"name": "value",
|
|
184
|
+
"type": "number",
|
|
185
|
+
"default": "100",
|
|
186
|
+
"description": "The value, between 0 and `max`.",
|
|
187
|
+
"required": false
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"name": "valueText",
|
|
191
|
+
"type": "string",
|
|
192
|
+
"default": null,
|
|
193
|
+
"description": "The value in words (“12 of 15”); default: the percentage. Read by assistive technology, shown without `figure`.",
|
|
194
|
+
"required": false
|
|
195
|
+
}
|
|
196
|
+
]
|
|
197
|
+
}
|
|
198
|
+
],
|
|
199
|
+
"examples": [
|
|
200
|
+
{
|
|
201
|
+
"name": "creator",
|
|
202
|
+
"title": "A creator",
|
|
203
|
+
"description": "A creator's card: profile completeness, two stats in words, follow and message.",
|
|
204
|
+
"path": "examples/profile-card/creator.tsx",
|
|
205
|
+
"module": "@krizaka/ui/registry/examples/profile-card/creator",
|
|
206
|
+
"code": "import { Avatar } from \"@krizaka/ui/avatar\";\nimport { Button } from \"@krizaka/ui/button\";\nimport { ProfileCard } from \"@krizaka/ui/profile-card\";\n\n// A creator at a glance: the headline gauge, the stats with their values in words, the actions under them.\nexport default function ProfileCardCreator() {\n return (\n <ProfileCard\n visual={<Avatar fallback=\"EM\" size=\"xl\" />}\n visualSize={96}\n name=\"Elena Marchetti\"\n statLabel=\"Profile complete\"\n value={80}\n stats={[\n { label: \"Challenges met\", value: 12, max: 15, valueText: \"12 of 15\" },\n { label: \"Replies within a day\", value: 94 },\n ]}\n caption=\"Dance and street fashion · Montréal\"\n >\n <Button variant=\"primary\" size=\"sm\">\n Follow\n </Button>\n <Button size=\"sm\">Message</Button>\n </ProfileCard>\n );\n}\n"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"name": "match",
|
|
210
|
+
"title": "A match",
|
|
211
|
+
"description": "In a dating app's brand: what two people share, never a score alone.",
|
|
212
|
+
"path": "examples/profile-card/match.tsx",
|
|
213
|
+
"module": "@krizaka/ui/registry/examples/profile-card/match",
|
|
214
|
+
"code": "import { Avatar } from \"@krizaka/ui/avatar\";\nimport { ProfileCard } from \"@krizaka/ui/profile-card\";\n\n// A match in a dating app: what you share, in words — never a score alone.\nexport default function ProfileCardMatch() {\n return (\n <ProfileCard\n brand=\"yazakia\"\n visual={<Avatar fallback=\"AR\" size=\"xl\" />}\n visualSize={88}\n name=\"Alex, 29\"\n stats={[\n { label: \"Interests in common\", value: 4, max: 6, valueText: \"4 of 6\" },\n { label: \"Answers that match\", value: 7, max: 10, valueText: \"7 of 10\" },\n ]}\n caption=\"You both answered “a slow Sunday market” first.\"\n />\n );\n}\n"
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"name": "arcade",
|
|
218
|
+
"title": "Arcade flavour",
|
|
219
|
+
"description": "The fighter card of a told page: the brand's gradient, a breathing aura, a skewed gauge.",
|
|
220
|
+
"path": "examples/profile-card/arcade.tsx",
|
|
221
|
+
"module": "@krizaka/ui/registry/examples/profile-card/arcade",
|
|
222
|
+
"code": "import { ProductLogo } from \"@krizaka/ui\";\nimport { Emblem } from \"@krizaka/ui/achievement\";\nimport { ProfileCard } from \"@krizaka/ui/profile-card\";\n\n// The arcade flavour: the brand's light, a ring and a breathing aura, a skewed gauge — for a told page, not a dashboard.\nexport default function ProfileCardArcade() {\n return (\n <ProfileCard\n variant=\"arcade\"\n brand=\"orazaka\"\n nameAs=\"p\"\n visual={<ProductLogo id=\"orazaka\" size={120} animated={false} />}\n icon={<Emblem kind=\"mirror\" size={16} />}\n name=\"Mirror clan\"\n statLabel=\"Data kept at home\"\n caption=\"ōrāre + zaka\"\n />\n );\n}\n"
|
|
223
|
+
}
|
|
224
|
+
]
|
|
225
|
+
},
|
|
226
|
+
"native": {
|
|
227
|
+
"entry": "@krizaka/ui/native",
|
|
228
|
+
"import": "import { ProfileCard } from \"@krizaka/ui/native\";",
|
|
229
|
+
"differences": [
|
|
230
|
+
"`name` and `caption` are strings; no `nameAs`, no `icon`.",
|
|
231
|
+
"One look: no arcade flavour on mobile.",
|
|
232
|
+
"The gauges fill once on mount (`animated`), not on scroll."
|
|
233
|
+
],
|
|
234
|
+
"props": [
|
|
235
|
+
{
|
|
236
|
+
"component": "ProfileCard",
|
|
237
|
+
"description": "A profile at a glance for React Native: portrait, name, a headline gauge, stats in words, a line, actions.",
|
|
238
|
+
"props": [
|
|
239
|
+
{
|
|
240
|
+
"name": "name",
|
|
241
|
+
"type": "string",
|
|
242
|
+
"default": null,
|
|
243
|
+
"description": "The name (the card's heading).",
|
|
244
|
+
"required": true
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"name": "visual",
|
|
248
|
+
"type": "ReactNode",
|
|
249
|
+
"default": null,
|
|
250
|
+
"description": "The portrait: an `Avatar`, an image, a mark. Decorative — the name carries the meaning.",
|
|
251
|
+
"required": true
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
"name": "animated",
|
|
255
|
+
"type": "boolean",
|
|
256
|
+
"default": "true",
|
|
257
|
+
"description": "The gauges fill once on mount; still when the system reduces motion.",
|
|
258
|
+
"required": false
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"name": "caption",
|
|
262
|
+
"type": "string",
|
|
263
|
+
"default": null,
|
|
264
|
+
"description": "One line under the gauges.",
|
|
265
|
+
"required": false
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
"name": "children",
|
|
269
|
+
"type": "ReactNode",
|
|
270
|
+
"default": null,
|
|
271
|
+
"description": "Under everything: actions (a `Button`), chips.",
|
|
272
|
+
"required": false
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"name": "statLabel",
|
|
276
|
+
"type": "string",
|
|
277
|
+
"default": null,
|
|
278
|
+
"description": "The headline gauge's label (“Profile complete”); without it, no headline gauge.",
|
|
279
|
+
"required": false
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
"name": "stats",
|
|
283
|
+
"type": "readonly ProfileStat[]",
|
|
284
|
+
"default": null,
|
|
285
|
+
"description": "More gauges under the headline one, each with its value in words.",
|
|
286
|
+
"required": false
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
"name": "value",
|
|
290
|
+
"type": "number",
|
|
291
|
+
"default": "100",
|
|
292
|
+
"description": "The headline gauge's value, 0–100 (default 100).",
|
|
293
|
+
"required": false
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
"name": "valueText",
|
|
297
|
+
"type": "string",
|
|
298
|
+
"default": null,
|
|
299
|
+
"description": "The headline value in words; default: the percentage.",
|
|
300
|
+
"required": false
|
|
301
|
+
}
|
|
302
|
+
]
|
|
303
|
+
}
|
|
304
|
+
],
|
|
305
|
+
"examples": [
|
|
306
|
+
{
|
|
307
|
+
"name": "default",
|
|
308
|
+
"title": "Default",
|
|
309
|
+
"description": "A creator's card on mobile: the headline gauge, two stats in words, one action.",
|
|
310
|
+
"path": "examples/profile-card/native/default.tsx",
|
|
311
|
+
"module": "@krizaka/ui/registry/examples/profile-card/native/default",
|
|
312
|
+
"code": "import { Avatar, Button, ProfileCard } from \"@krizaka/ui/native\";\n\n// A creator at a glance on mobile: the headline gauge, two stats in words, one action.\nexport default function NativeProfileCardDefault() {\n return (\n <ProfileCard\n visual={<Avatar fallback=\"EM\" size=\"xl\" />}\n name=\"Elena Marchetti\"\n statLabel=\"Profile complete\"\n value={80}\n stats={[\n { label: \"Challenges met\", value: 12, max: 15, valueText: \"12 of 15\" },\n { label: \"Replies within a day\", value: 94 },\n ]}\n caption=\"Dance and street fashion · Montréal\"\n animated={false}\n style={{ width: 300 }}\n >\n <Button variant=\"primary\" size=\"sm\" label=\"Follow\" />\n </ProfileCard>\n );\n}\n",
|
|
313
|
+
"screenshots": {
|
|
314
|
+
"dark": "examples/profile-card/native/default.dark.png",
|
|
315
|
+
"light": "examples/profile-card/native/default.light.png"
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
]
|
|
319
|
+
},
|
|
320
|
+
"files": [
|
|
321
|
+
{
|
|
322
|
+
"path": "meta.ts",
|
|
323
|
+
"content": "// The documentation of a component, carried by its code: each primitive has a `meta.ts` beside its source\n// (`src/<name>/meta.ts`; a component that exists only in React Native: `src/native/meta/<name>.ts`). Never built into\n// the package: `scripts/build-registry.mjs` reads them into `registry/<name>.json`, which krizaka.com renders as\n// /docs/ui/<name>, and `scripts/registry.test.mjs` fails when one is missing or incomplete.\n//\n// Why a typed module and not JSDoc tags: the fields are lists and links (`related`, `whenNotToUse[].use`, examples),\n// which a type checks and a comment does not; the file is plain data (erasable TypeScript), so Node reads it without a\n// compiler, and an editor completes it.\n\n/** Every documented component: the web primitives (one entry of the package each) and the native-only ones. */\nexport type ComponentName =\n | \"achievement\"\n | \"action-bar\"\n | \"alert\"\n | \"app-shell\"\n | \"argument-card\"\n | \"audio-player\"\n | \"auth-layout\"\n | \"avatar\"\n | \"badge\"\n | \"button\"\n | \"card\"\n | \"card-grid\"\n | \"checkbox\"\n | \"chip\"\n | \"chip-link\"\n | \"choice-grid\"\n | \"cn\"\n | \"code-block\"\n | \"combobox\"\n | \"command\"\n | \"confirm-button\"\n | \"continue-prompt\"\n | \"countdown\"\n | \"cta-panel\"\n | \"dashboard-layout\"\n | \"data-table\"\n | \"date-picker\"\n | \"decision-list\"\n | \"detail-layout\"\n | \"dialog\"\n | \"docs-layout\"\n | \"dropdown-menu\"\n | \"empty-state\"\n | \"field\"\n | \"file-upload\"\n | \"filter-bar\"\n | \"glow-card\"\n | \"goal-gauge\"\n | \"image-cropper\"\n | \"iso\"\n | \"kbd\"\n | \"landscape\"\n | \"link-card\"\n | \"loader\"\n | \"marketing-layout\"\n | \"marquee\"\n | \"mascot-quote\"\n | \"mascot-state\"\n | \"mascots\"\n | \"media-capture\"\n | \"meter\"\n | \"nav-bar\"\n | \"number-ticker\"\n | \"page\"\n | \"page-header\"\n | \"page-hero\"\n | \"pagination\"\n | \"pointer-light\"\n | \"popover\"\n | \"profile-card\"\n | \"progress\"\n | \"promise-card\"\n | \"radio-group\"\n | \"scroll-stage\"\n | \"search-field\"\n | \"section-backdrop\"\n | \"segmented\"\n | \"separator\"\n | \"settings-layout\"\n | \"skeleton\"\n | \"slider\"\n | \"slot\"\n | \"spinner\"\n | \"split-view\"\n | \"stage-banner\"\n | \"stat\"\n | \"stepper\"\n | \"switch\"\n | \"tabs\"\n | \"tag-input\"\n | \"terminal-replay\"\n | \"theme\"\n | \"toast\"\n | \"toc\"\n | \"tooltip\"\n | \"txt\"\n | \"video-player\"\n | \"video-trimmer\";\n\n/** Where a component exists: `@krizaka/ui/<name>` (web), `@krizaka/ui/native` (React Native), or both. */\nexport type Platform = \"web\" | \"native\" | \"both\";\n\n/** `stable`: its API only changes in a major. `beta`: it may still change in a minor. */\nexport type Status = \"stable\" | \"beta\";\n\n/**\n * The group of the catalogue. `media`: video, sound, camera, files, cropping. `blocks`: the page blocks — the frame,\n * the hero, sections, cards that lead or argue, decisions, code, calls to act — that every page of a site is made of.\n * `layouts`: the shells of whole screens — an application, a dashboard, settings, sign-in, an object, a list and its\n * item, a site's page, a documentation page — each with its templates.\n */\nexport type Category = \"actions\" | \"forms\" | \"navigation\" | \"overlays\" | \"feedback\" | \"data-display\" | \"media\" | \"blocks\" | \"layouts\" | \"layout\" | \"foundations\";\n\n/**\n * A named example: the file `registry/examples/<component>/<name>.tsx` (web) or\n * `registry/examples/<component>/native/<name>.tsx` (React Native) — at most 40 lines, imported by the stories and\n * shown (live, with its code) by the documentation.\n */\nexport interface Example {\n /** The file name, kebab-case (`primary`, `icon-button`). */\n readonly name: string;\n /** A short title (`Primary`, `Icon button`). */\n readonly title: string;\n /** One or two sentences: when this variant is the right one. */\n readonly description: string;\n /**\n * A template: a whole screen of a product composed from the platform (a layout and its blocks, real words, its phone\n * version thought out), copied as a starting point — at most 160 lines, listed on krizaka.com/docs/ui/templates.\n */\n readonly template?: boolean;\n}\n\n/** One platform's side of a component. */\nexport interface PlatformDocs {\n /** The names to import (`[\"Button\", \"IconButton\"]`): from `@krizaka/ui/<name>` on the web, `@krizaka/ui/native` in React Native. */\n readonly imports: readonly string[];\n /** The examples, in reading order; the first one is the component's preview. */\n readonly examples: readonly Example[];\n}\n\n/** The React Native side: the same concept, and what differs from the web API. */\nexport interface NativeDocs extends PlatformDocs {\n /**\n * The entry to import from when it is not `@krizaka/ui/native`: a component that needs an Expo module (an optional\n * peer) has its own, `@krizaka/ui/native/<name>`, so an app that does not use it never installs the module.\n */\n readonly entry?: string;\n /** What differs from the web API (`label` instead of children…); empty for a native-only component. */\n readonly differences: readonly string[];\n}\n\nexport interface KeyboardInteraction {\n /** The keys, as written on a keyboard: `Space`, `Enter`, `Arrow keys`, `Esc`, `Tab`. */\n readonly keys: string;\n /** What they do. */\n readonly action: string;\n}\n\nexport interface ComponentMeta {\n /** The display name: `Button`, `Dropdown menu`. */\n readonly title: string;\n /** One sentence: what it is. */\n readonly summary: string;\n readonly status: Status;\n readonly category: Category;\n /** Must match the sides below: `both` ⇔ `web` and `native`. */\n readonly platforms: Platform;\n /** When to reach for it: concrete situations, one per item. */\n readonly whenToUse: readonly string[];\n /** When not to — and what to use instead (`use`), when another component is the answer. */\n readonly whenNotToUse: readonly { readonly when: string; readonly use?: ComponentName }[];\n /** How to use it well: wording, placement, composition. */\n readonly bestPractices: readonly string[];\n readonly accessibility: {\n /** The keyboard, when it does more than Tab and Enter. */\n readonly keyboard: readonly KeyboardInteraction[];\n /** Roles, names and announcements: what the component does, what the app must provide. */\n readonly notes: readonly string[];\n };\n /** The components a reader of this page should know about. */\n readonly related: readonly ComponentName[];\n readonly web?: PlatformDocs;\n readonly native?: NativeDocs;\n}\n"
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"path": "profile-card/index.ts",
|
|
327
|
+
"content": "/** @krizaka/ui/profile-card — `ProfileCard`, a profile at a glance, and `StatGauge`, one measured strength. Server-safe. Styles: story.css. */\nexport { ProfileCard, type ProfileCardProps, type ProfileStat } from \"./profile-card\";\nexport { StatGauge, type StatGaugeProps } from \"./stat-gauge\";\n"
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
"path": "profile-card/meta.ts",
|
|
331
|
+
"content": "import type { ComponentMeta } from \"../meta\";\n\nexport const meta = {\n title: \"Profile card\",\n summary:\n \"A profile at a glance — a portrait, a name, a headline gauge, a few stats with their values in words, a line and actions: a creator, a match, a member, a plan.\",\n status: \"beta\",\n category: \"data-display\",\n platforms: \"both\",\n whenToUse: [\n \"A creator's card in a directory or beside their content (profile completeness, challenges met, response time).\",\n \"A match in a dating app: what two people share, said in words.\",\n \"A team member, a product, a plan presented with a few measured strengths — and, on a told page, a character (`variant=\\\"arcade\\\"`).\",\n ],\n whenNotToUse: [\n { when: \"A single figure with its trend.\", use: \"stat\" },\n { when: \"A usage against a limit with thresholds.\", use: \"meter\" },\n { when: \"A plain avatar and a name in a list row.\", use: \"avatar\" },\n ],\n bestPractices: [\n \"Two to four stats, each with `valueText` in the person's words (“12 of 15”, “replies within a day”): a bar alone says nothing.\",\n \"Never reduce a person to a score: in a dating or social product, show what is shared, not a ranking.\",\n \"One or two actions under the card, the main one first.\",\n \"`nameAs` follows the page's outline: `h3` in a list under an `h2`, `p` when a heading follows the card.\",\n ],\n accessibility: {\n keyboard: [],\n notes: [\n \"An `article` headed by the name; each gauge is a `meter` named by its label, with `aria-valuetext`.\",\n \"The portrait is decorative: the name carries the meaning.\",\n \"In a stage, the card arrives and its gauges fill once; under `prefers-reduced-motion` they are drawn full at once.\",\n ],\n },\n related: [\"avatar\", \"meter\", \"stat\", \"goal-gauge\"],\n web: {\n imports: [\"ProfileCard\", \"StatGauge\"],\n examples: [\n { name: \"creator\", title: \"A creator\", description: \"A creator's card: profile completeness, two stats in words, follow and message.\" },\n { name: \"match\", title: \"A match\", description: \"In a dating app's brand: what two people share, never a score alone.\" },\n { name: \"arcade\", title: \"Arcade flavour\", description: \"The fighter card of a told page: the brand's gradient, a breathing aura, a skewed gauge.\" },\n ],\n },\n native: {\n imports: [\"ProfileCard\"],\n differences: [\"`name` and `caption` are strings; no `nameAs`, no `icon`.\", \"One look: no arcade flavour on mobile.\", \"The gauges fill once on mount (`animated`), not on scroll.\"],\n examples: [{ name: \"default\", title: \"Default\", description: \"A creator's card on mobile: the headline gauge, two stats in words, one action.\" }],\n },\n} satisfies ComponentMeta;\n"
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
"path": "profile-card/profile-card.tsx",
|
|
335
|
+
"content": "// Server-safe. A profile at a glance (story.css): a portrait, a name, one headline gauge, a few stats, a line — a creator,\n// a match, a plan, a team member. In a `Scene` of a `ScrollStage` the card arrives and its gauges fill, once.\nimport type * as React from \"react\";\n\nimport { cn } from \"../cn\";\nimport { brandClass, type StoryVariant, storyVariantClass } from \"../story-variant\";\nimport { StatGauge } from \"./stat-gauge\";\n\nexport interface ProfileStat {\n /** What it measures (“Response rate”) — passed translated. */\n label: string;\n /** The value, between 0 and `max`. */\n value: number;\n /** The top of the range (default 100). */\n max?: number;\n /** The value in words (“92 %”, “4.8 / 5”); default: the percentage. */\n valueText?: string;\n}\n\nexport type ProfileCardProps = Omit<React.HTMLAttributes<HTMLElement>, \"title\"> & {\n /** The portrait: an image, an avatar, a mark. Decorative — the name carries the meaning. */\n visual: React.ReactNode;\n /** The name (the card's heading). */\n name: React.ReactNode;\n /**\n * The level of the name.\n * @default \"h3\"\n */\n nameAs?: \"h2\" | \"h3\" | \"h4\" | \"p\";\n /** A small glyph before the name (decorative): a verified mark, an emblem. */\n icon?: React.ReactNode;\n /** The headline gauge's label (“Profile complete”, arcade “Power”); without it, no headline gauge. */\n statLabel?: string;\n /**\n * The headline gauge's value, 0–100.\n * @default 100\n */\n value?: number;\n /** The headline value in words; default: the percentage. */\n valueText?: string;\n /** What shows as the headline figure instead of `valueText`: a `NumberTicker` that climbs. Decorative. */\n figure?: React.ReactNode;\n /** More gauges under the headline one: two to four, each with its value in words. */\n stats?: readonly ProfileStat[];\n /** One line under the gauges: where they come from, what they do. */\n caption?: React.ReactNode;\n /** Under everything: actions (follow, message), chips. */\n children?: React.ReactNode;\n /**\n * The diameter of the portrait, in pixels.\n * @default 132 (arcade 196)\n */\n visualSize?: number;\n /**\n * `default`: a sober card. `arcade`: the fighter card — the brand's light, a ring and a breathing aura, a skewed gauge.\n * @default \"default\"\n */\n variant?: StoryVariant;\n /** A brand scope (`orochia` → `.brand-orochia`): the accent and gradient become that brand's. */\n brand?: string;\n};\n\n/** A profile at a glance: portrait, name, a headline gauge, stats with their values in words, a line and actions. */\nexport function ProfileCard({\n visual,\n name,\n nameAs: Name = \"h3\",\n icon,\n statLabel,\n value = 100,\n valueText,\n figure,\n stats,\n caption,\n children,\n visualSize,\n variant,\n brand,\n className,\n style,\n ...props\n}: ProfileCardProps) {\n return (\n <article\n className={cn(\"kzs-profile\", storyVariantClass(variant), brandClass(brand), className)}\n style={visualSize ? ({ \"--kzs-disc\": `${visualSize}px`, ...style } as React.CSSProperties) : style}\n {...props}\n >\n <span className=\"kzs-texture\" aria-hidden />\n <div className=\"kzs-profile-disc\" aria-hidden>\n <span className=\"kzs-profile-ring\" />\n <span className=\"kzs-profile-aura kzs-loop\" />\n <span className=\"kzs-profile-flash\" />\n <span className=\"kzs-profile-visual\">{visual}</span>\n </div>\n <Name className=\"kzs-profile-name\">\n {icon && <span aria-hidden>{icon}</span>}\n {name}\n </Name>\n {statLabel && <StatGauge label={statLabel} value={value} valueText={valueText} figure={figure} />}\n {stats && stats.length > 0 && (\n <ul className=\"kzs-profile-stats\">\n {stats.map((s) => (\n <li key={s.label}>\n <StatGauge label={s.label} value={s.value} max={s.max} valueText={s.valueText} />\n </li>\n ))}\n </ul>\n )}\n {caption && <p className=\"kzs-profile-caption\">{caption}</p>}\n {children && <div className=\"kzs-profile-extra\">{children}</div>}\n </article>\n );\n}\n"
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
"path": "profile-card/stat-gauge.tsx",
|
|
339
|
+
"content": "// Server-safe. One measured strength: a label, its figure, a bar (story.css) — the gauge of a ProfileCard, also usable\n// alone (in a ChoiceGrid tile, a list). A `meter` with its value in words.\nimport type * as React from \"react\";\n\nimport { cn } from \"../cn\";\n\nexport type StatGaugeProps = Omit<React.HTMLAttributes<HTMLDivElement>, \"children\"> & {\n /** What it measures (“Profile complete”, “Creator share”) — passed translated; the meter's accessible name. */\n label: string;\n /**\n * The value, between 0 and `max`.\n * @default 100\n */\n value?: number;\n /**\n * The top of the range.\n * @default 100\n */\n max?: number;\n /** The value in words (“12 of 15”); default: the percentage. Read by assistive technology, shown without `figure`. */\n valueText?: string;\n /** What shows as the figure instead of `valueText`: a `NumberTicker` that climbs, a formatted amount. Decorative. */\n figure?: React.ReactNode;\n /**\n * Hides the label and the figure (the bar alone, named for assistive technology).\n * @default false\n */\n hideLabel?: boolean;\n};\n\nconst clamp = (n: number) => Math.min(1, Math.max(0, n));\n\n/** A measured strength: label, figure and bar; `role=\"meter\"` with `aria-valuetext`. */\nexport function StatGauge({ label, value = 100, max = 100, valueText, figure, hideLabel, className, style, ...props }: StatGaugeProps) {\n const ratio = clamp(value / (max || 1));\n const words = valueText ?? `${Math.round(ratio * 100)} %`;\n return (\n <div\n role=\"meter\"\n aria-label={label}\n aria-valuemin={0}\n aria-valuemax={100}\n aria-valuenow={Math.round(ratio * 100)}\n aria-valuetext={words}\n className={cn(\"kzs-stat\", className)}\n style={{ \"--kzs-ratio\": ratio, ...style } as React.CSSProperties}\n {...props}\n >\n {!hideLabel && (\n <span className=\"kzs-stat-head\" aria-hidden>\n <span className=\"kzs-stat-label\">{label}</span>\n <span className=\"kzs-stat-value\">{figure ?? words}</span>\n </span>\n )}\n <span className=\"kzs-bar\" aria-hidden>\n <span className=\"kzs-bar-fill\" />\n </span>\n </div>\n );\n}\n"
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
"path": "story-variant.ts",
|
|
343
|
+
"content": "// The two looks of the storytelling kit (story.css), shared by its entries. Server-safe.\n\n/** The look of the storytelling kit: `default` (sober, for any app) or `arcade` (the opt-in cabinet flavour). */\nexport type StoryVariant = \"default\" | \"arcade\";\n\n/** The class a storytelling component adds for its look (`kzs-arcade` for the arcade flavour). */\nexport const storyVariantClass = (variant: StoryVariant | undefined) => (variant === \"arcade\" ? \"kzs-arcade\" : undefined);\n\n/** The class of a brand scope (`brand-orochia`): the accent and the gradient become that brand's. */\nexport const brandClass = (brand: string | undefined) => (brand ? `brand-${brand}` : undefined);\n"
|
|
344
|
+
}
|
|
345
|
+
],
|
|
346
|
+
"dependencies": [],
|
|
347
|
+
"registryDependencies": [
|
|
348
|
+
"cn"
|
|
349
|
+
],
|
|
350
|
+
"demo": {
|
|
351
|
+
"path": "examples/profile-card/creator.tsx",
|
|
352
|
+
"content": "import { Avatar } from \"@krizaka/ui/avatar\";\nimport { Button } from \"@krizaka/ui/button\";\nimport { ProfileCard } from \"@krizaka/ui/profile-card\";\n\n// A creator at a glance: the headline gauge, the stats with their values in words, the actions under them.\nexport default function ProfileCardCreator() {\n return (\n <ProfileCard\n visual={<Avatar fallback=\"EM\" size=\"xl\" />}\n visualSize={96}\n name=\"Elena Marchetti\"\n statLabel=\"Profile complete\"\n value={80}\n stats={[\n { label: \"Challenges met\", value: 12, max: 15, valueText: \"12 of 15\" },\n { label: \"Replies within a day\", value: 94 },\n ]}\n caption=\"Dance and street fashion · Montréal\"\n >\n <Button variant=\"primary\" size=\"sm\">\n Follow\n </Button>\n <Button size=\"sm\">Message</Button>\n </ProfileCard>\n );\n}\n"
|
|
353
|
+
},
|
|
354
|
+
"props": [
|
|
355
|
+
{
|
|
356
|
+
"component": "ProfileCard",
|
|
357
|
+
"description": "A profile at a glance: portrait, name, a headline gauge, stats with their values in words, a line and actions.",
|
|
358
|
+
"props": [
|
|
359
|
+
{
|
|
360
|
+
"name": "name",
|
|
361
|
+
"type": "ReactNode",
|
|
362
|
+
"default": null,
|
|
363
|
+
"description": "The name (the card's heading).",
|
|
364
|
+
"required": true
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
"name": "visual",
|
|
368
|
+
"type": "ReactNode",
|
|
369
|
+
"default": null,
|
|
370
|
+
"description": "The portrait: an image, an avatar, a mark. Decorative — the name carries the meaning.",
|
|
371
|
+
"required": true
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
"name": "brand",
|
|
375
|
+
"type": "string",
|
|
376
|
+
"default": null,
|
|
377
|
+
"description": "A brand scope (`orochia` → `.brand-orochia`): the accent and gradient become that brand's.",
|
|
378
|
+
"required": false
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
"name": "caption",
|
|
382
|
+
"type": "ReactNode",
|
|
383
|
+
"default": null,
|
|
384
|
+
"description": "One line under the gauges: where they come from, what they do.",
|
|
385
|
+
"required": false
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
"name": "figure",
|
|
389
|
+
"type": "ReactNode",
|
|
390
|
+
"default": null,
|
|
391
|
+
"description": "What shows as the headline figure instead of `valueText`: a `NumberTicker` that climbs. Decorative.",
|
|
392
|
+
"required": false
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
"name": "icon",
|
|
396
|
+
"type": "ReactNode",
|
|
397
|
+
"default": null,
|
|
398
|
+
"description": "A small glyph before the name (decorative): a verified mark, an emblem.",
|
|
399
|
+
"required": false
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
"name": "nameAs",
|
|
403
|
+
"type": "\"h2\" | \"h3\" | \"h4\" | \"p\"",
|
|
404
|
+
"default": "h3",
|
|
405
|
+
"description": "The level of the name.",
|
|
406
|
+
"required": false
|
|
407
|
+
},
|
|
408
|
+
{
|
|
409
|
+
"name": "statLabel",
|
|
410
|
+
"type": "string",
|
|
411
|
+
"default": null,
|
|
412
|
+
"description": "The headline gauge's label (“Profile complete”, arcade “Power”); without it, no headline gauge.",
|
|
413
|
+
"required": false
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
"name": "stats",
|
|
417
|
+
"type": "readonly ProfileStat[]",
|
|
418
|
+
"default": null,
|
|
419
|
+
"description": "More gauges under the headline one: two to four, each with its value in words.",
|
|
420
|
+
"required": false
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
"name": "value",
|
|
424
|
+
"type": "number",
|
|
425
|
+
"default": "100",
|
|
426
|
+
"description": "The headline gauge's value, 0–100.",
|
|
427
|
+
"required": false
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
"name": "valueText",
|
|
431
|
+
"type": "string",
|
|
432
|
+
"default": null,
|
|
433
|
+
"description": "The headline value in words; default: the percentage.",
|
|
434
|
+
"required": false
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
"name": "variant",
|
|
438
|
+
"type": "StoryVariant",
|
|
439
|
+
"default": "default",
|
|
440
|
+
"description": "`default`: a sober card. `arcade`: the fighter card — the brand's light, a ring and a breathing aura, a skewed gauge.",
|
|
441
|
+
"required": false
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
"name": "visualSize",
|
|
445
|
+
"type": "number",
|
|
446
|
+
"default": "132 (arcade 196)",
|
|
447
|
+
"description": "The diameter of the portrait, in pixels.",
|
|
448
|
+
"required": false
|
|
449
|
+
}
|
|
450
|
+
]
|
|
451
|
+
},
|
|
452
|
+
{
|
|
453
|
+
"component": "StatGauge",
|
|
454
|
+
"description": "A measured strength: label, figure and bar; `role=\"meter\"` with `aria-valuetext`.",
|
|
455
|
+
"props": [
|
|
456
|
+
{
|
|
457
|
+
"name": "label",
|
|
458
|
+
"type": "string",
|
|
459
|
+
"default": null,
|
|
460
|
+
"description": "What it measures (“Profile complete”, “Creator share”) — passed translated; the meter's accessible name.",
|
|
461
|
+
"required": true
|
|
462
|
+
},
|
|
463
|
+
{
|
|
464
|
+
"name": "figure",
|
|
465
|
+
"type": "ReactNode",
|
|
466
|
+
"default": null,
|
|
467
|
+
"description": "What shows as the figure instead of `valueText`: a `NumberTicker` that climbs, a formatted amount. Decorative.",
|
|
468
|
+
"required": false
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
"name": "hideLabel",
|
|
472
|
+
"type": "boolean",
|
|
473
|
+
"default": "false",
|
|
474
|
+
"description": "Hides the label and the figure (the bar alone, named for assistive technology).",
|
|
475
|
+
"required": false
|
|
476
|
+
},
|
|
477
|
+
{
|
|
478
|
+
"name": "max",
|
|
479
|
+
"type": "number",
|
|
480
|
+
"default": "100",
|
|
481
|
+
"description": "The top of the range.",
|
|
482
|
+
"required": false
|
|
483
|
+
},
|
|
484
|
+
{
|
|
485
|
+
"name": "value",
|
|
486
|
+
"type": "number",
|
|
487
|
+
"default": "100",
|
|
488
|
+
"description": "The value, between 0 and `max`.",
|
|
489
|
+
"required": false
|
|
490
|
+
},
|
|
491
|
+
{
|
|
492
|
+
"name": "valueText",
|
|
493
|
+
"type": "string",
|
|
494
|
+
"default": null,
|
|
495
|
+
"description": "The value in words (“12 of 15”); default: the percentage. Read by assistive technology, shown without `figure`.",
|
|
496
|
+
"required": false
|
|
497
|
+
}
|
|
498
|
+
]
|
|
499
|
+
}
|
|
500
|
+
]
|
|
501
|
+
}
|
package/registry/progress.json
CHANGED
|
@@ -329,7 +329,7 @@
|
|
|
329
329
|
"files": [
|
|
330
330
|
{
|
|
331
331
|
"path": "meta.ts",
|
|
332
|
-
"content": "// The documentation of a component, carried by its code: each primitive has a `meta.ts` beside its source\n// (`src/<name>/meta.ts`; a component that exists only in React Native: `src/native/meta/<name>.ts`). Never built into\n// the package: `scripts/build-registry.mjs` reads them into `registry/<name>.json`, which krizaka.com renders as\n// /docs/ui/<name>, and `scripts/registry.test.mjs` fails when one is missing or incomplete.\n//\n// Why a typed module and not JSDoc tags: the fields are lists and links (`related`, `whenNotToUse[].use`, examples),\n// which a type checks and a comment does not; the file is plain data (erasable TypeScript), so Node reads it without a\n// compiler, and an editor completes it.\n\n/** Every documented component: the web primitives (one entry of the package each) and the native-only ones. */\nexport type ComponentName =\n | \"action-bar\"\n | \"alert\"\n | \"argument-card\"\n | \"audio-player\"\n | \"avatar\"\n | \"badge\"\n | \"button\"\n | \"card\"\n | \"card-grid\"\n | \"checkbox\"\n | \"chip\"\n | \"chip-link\"\n | \"cn\"\n | \"code-block\"\n | \"combobox\"\n | \"command\"\n | \"confirm-button\"\n | \"countdown\"\n | \"cta-panel\"\n | \"data-table\"\n | \"date-picker\"\n | \"decision-list\"\n | \"dialog\"\n | \"dropdown-menu\"\n | \"empty-state\"\n | \"field\"\n | \"file-upload\"\n | \"filter-bar\"\n | \"glow-card\"\n | \"image-cropper\"\n | \"iso\"\n | \"kbd\"\n | \"link-card\"\n | \"loader\"\n | \"marquee\"\n | \"mascot-quote\"\n | \"mascot-state\"\n | \"mascots\"\n | \"media-capture\"\n | \"meter\"\n | \"nav-bar\"\n | \"number-ticker\"\n | \"page\"\n | \"page-header\"\n | \"page-hero\"\n | \"pagination\"\n | \"pointer-light\"\n | \"popover\"\n | \"progress\"\n | \"radio-group\"\n | \"search-field\"\n | \"section-backdrop\"\n | \"segmented\"\n | \"separator\"\n | \"skeleton\"\n | \"slider\"\n | \"slot\"\n | \"spinner\"\n | \"stat\"\n | \"stepper\"\n | \"switch\"\n | \"tabs\"\n | \"tag-input\"\n | \"terminal-replay\"\n | \"theme\"\n | \"toast\"\n | \"toc\"\n | \"tooltip\"\n | \"txt\"\n | \"video-player\"\n | \"video-trimmer\";\n\n/** Where a component exists: `@krizaka/ui/<name>` (web), `@krizaka/ui/native` (React Native), or both. */\nexport type Platform = \"web\" | \"native\" | \"both\";\n\n/** `stable`: its API only changes in a major. `beta`: it may still change in a minor. */\nexport type Status = \"stable\" | \"beta\";\n\n/**\n * The group of the catalogue. `media`: video, sound, camera, files, cropping. `blocks`: the page blocks — the frame,\n * the hero, sections, cards that lead or argue, decisions, code, calls to act — that every page of a site is made of.\n */\nexport type Category = \"actions\" | \"forms\" | \"navigation\" | \"overlays\" | \"feedback\" | \"data-display\" | \"media\" | \"blocks\" | \"layout\" | \"foundations\";\n\n/**\n * A named example: the file `registry/examples/<component>/<name>.tsx` (web) or\n * `registry/examples/<component>/native/<name>.tsx` (React Native) — at most 40 lines, imported by the stories and\n * shown (live, with its code) by the documentation.\n */\nexport interface Example {\n /** The file name, kebab-case (`primary`, `icon-button`). */\n readonly name: string;\n /** A short title (`Primary`, `Icon button`). */\n readonly title: string;\n /** One or two sentences: when this variant is the right one. */\n readonly description: string;\n}\n\n/** One platform's side of a component. */\nexport interface PlatformDocs {\n /** The names to import (`[\"Button\", \"IconButton\"]`): from `@krizaka/ui/<name>` on the web, `@krizaka/ui/native` in React Native. */\n readonly imports: readonly string[];\n /** The examples, in reading order; the first one is the component's preview. */\n readonly examples: readonly Example[];\n}\n\n/** The React Native side: the same concept, and what differs from the web API. */\nexport interface NativeDocs extends PlatformDocs {\n /**\n * The entry to import from when it is not `@krizaka/ui/native`: a component that needs an Expo module (an optional\n * peer) has its own, `@krizaka/ui/native/<name>`, so an app that does not use it never installs the module.\n */\n readonly entry?: string;\n /** What differs from the web API (`label` instead of children…); empty for a native-only component. */\n readonly differences: readonly string[];\n}\n\nexport interface KeyboardInteraction {\n /** The keys, as written on a keyboard: `Space`, `Enter`, `Arrow keys`, `Esc`, `Tab`. */\n readonly keys: string;\n /** What they do. */\n readonly action: string;\n}\n\nexport interface ComponentMeta {\n /** The display name: `Button`, `Dropdown menu`. */\n readonly title: string;\n /** One sentence: what it is. */\n readonly summary: string;\n readonly status: Status;\n readonly category: Category;\n /** Must match the sides below: `both` ⇔ `web` and `native`. */\n readonly platforms: Platform;\n /** When to reach for it: concrete situations, one per item. */\n readonly whenToUse: readonly string[];\n /** When not to — and what to use instead (`use`), when another component is the answer. */\n readonly whenNotToUse: readonly { readonly when: string; readonly use?: ComponentName }[];\n /** How to use it well: wording, placement, composition. */\n readonly bestPractices: readonly string[];\n readonly accessibility: {\n /** The keyboard, when it does more than Tab and Enter. */\n readonly keyboard: readonly KeyboardInteraction[];\n /** Roles, names and announcements: what the component does, what the app must provide. */\n readonly notes: readonly string[];\n };\n /** The components a reader of this page should know about. */\n readonly related: readonly ComponentName[];\n readonly web?: PlatformDocs;\n readonly native?: NativeDocs;\n}\n"
|
|
332
|
+
"content": "// The documentation of a component, carried by its code: each primitive has a `meta.ts` beside its source\n// (`src/<name>/meta.ts`; a component that exists only in React Native: `src/native/meta/<name>.ts`). Never built into\n// the package: `scripts/build-registry.mjs` reads them into `registry/<name>.json`, which krizaka.com renders as\n// /docs/ui/<name>, and `scripts/registry.test.mjs` fails when one is missing or incomplete.\n//\n// Why a typed module and not JSDoc tags: the fields are lists and links (`related`, `whenNotToUse[].use`, examples),\n// which a type checks and a comment does not; the file is plain data (erasable TypeScript), so Node reads it without a\n// compiler, and an editor completes it.\n\n/** Every documented component: the web primitives (one entry of the package each) and the native-only ones. */\nexport type ComponentName =\n | \"achievement\"\n | \"action-bar\"\n | \"alert\"\n | \"app-shell\"\n | \"argument-card\"\n | \"audio-player\"\n | \"auth-layout\"\n | \"avatar\"\n | \"badge\"\n | \"button\"\n | \"card\"\n | \"card-grid\"\n | \"checkbox\"\n | \"chip\"\n | \"chip-link\"\n | \"choice-grid\"\n | \"cn\"\n | \"code-block\"\n | \"combobox\"\n | \"command\"\n | \"confirm-button\"\n | \"continue-prompt\"\n | \"countdown\"\n | \"cta-panel\"\n | \"dashboard-layout\"\n | \"data-table\"\n | \"date-picker\"\n | \"decision-list\"\n | \"detail-layout\"\n | \"dialog\"\n | \"docs-layout\"\n | \"dropdown-menu\"\n | \"empty-state\"\n | \"field\"\n | \"file-upload\"\n | \"filter-bar\"\n | \"glow-card\"\n | \"goal-gauge\"\n | \"image-cropper\"\n | \"iso\"\n | \"kbd\"\n | \"landscape\"\n | \"link-card\"\n | \"loader\"\n | \"marketing-layout\"\n | \"marquee\"\n | \"mascot-quote\"\n | \"mascot-state\"\n | \"mascots\"\n | \"media-capture\"\n | \"meter\"\n | \"nav-bar\"\n | \"number-ticker\"\n | \"page\"\n | \"page-header\"\n | \"page-hero\"\n | \"pagination\"\n | \"pointer-light\"\n | \"popover\"\n | \"profile-card\"\n | \"progress\"\n | \"promise-card\"\n | \"radio-group\"\n | \"scroll-stage\"\n | \"search-field\"\n | \"section-backdrop\"\n | \"segmented\"\n | \"separator\"\n | \"settings-layout\"\n | \"skeleton\"\n | \"slider\"\n | \"slot\"\n | \"spinner\"\n | \"split-view\"\n | \"stage-banner\"\n | \"stat\"\n | \"stepper\"\n | \"switch\"\n | \"tabs\"\n | \"tag-input\"\n | \"terminal-replay\"\n | \"theme\"\n | \"toast\"\n | \"toc\"\n | \"tooltip\"\n | \"txt\"\n | \"video-player\"\n | \"video-trimmer\";\n\n/** Where a component exists: `@krizaka/ui/<name>` (web), `@krizaka/ui/native` (React Native), or both. */\nexport type Platform = \"web\" | \"native\" | \"both\";\n\n/** `stable`: its API only changes in a major. `beta`: it may still change in a minor. */\nexport type Status = \"stable\" | \"beta\";\n\n/**\n * The group of the catalogue. `media`: video, sound, camera, files, cropping. `blocks`: the page blocks — the frame,\n * the hero, sections, cards that lead or argue, decisions, code, calls to act — that every page of a site is made of.\n * `layouts`: the shells of whole screens — an application, a dashboard, settings, sign-in, an object, a list and its\n * item, a site's page, a documentation page — each with its templates.\n */\nexport type Category = \"actions\" | \"forms\" | \"navigation\" | \"overlays\" | \"feedback\" | \"data-display\" | \"media\" | \"blocks\" | \"layouts\" | \"layout\" | \"foundations\";\n\n/**\n * A named example: the file `registry/examples/<component>/<name>.tsx` (web) or\n * `registry/examples/<component>/native/<name>.tsx` (React Native) — at most 40 lines, imported by the stories and\n * shown (live, with its code) by the documentation.\n */\nexport interface Example {\n /** The file name, kebab-case (`primary`, `icon-button`). */\n readonly name: string;\n /** A short title (`Primary`, `Icon button`). */\n readonly title: string;\n /** One or two sentences: when this variant is the right one. */\n readonly description: string;\n /**\n * A template: a whole screen of a product composed from the platform (a layout and its blocks, real words, its phone\n * version thought out), copied as a starting point — at most 160 lines, listed on krizaka.com/docs/ui/templates.\n */\n readonly template?: boolean;\n}\n\n/** One platform's side of a component. */\nexport interface PlatformDocs {\n /** The names to import (`[\"Button\", \"IconButton\"]`): from `@krizaka/ui/<name>` on the web, `@krizaka/ui/native` in React Native. */\n readonly imports: readonly string[];\n /** The examples, in reading order; the first one is the component's preview. */\n readonly examples: readonly Example[];\n}\n\n/** The React Native side: the same concept, and what differs from the web API. */\nexport interface NativeDocs extends PlatformDocs {\n /**\n * The entry to import from when it is not `@krizaka/ui/native`: a component that needs an Expo module (an optional\n * peer) has its own, `@krizaka/ui/native/<name>`, so an app that does not use it never installs the module.\n */\n readonly entry?: string;\n /** What differs from the web API (`label` instead of children…); empty for a native-only component. */\n readonly differences: readonly string[];\n}\n\nexport interface KeyboardInteraction {\n /** The keys, as written on a keyboard: `Space`, `Enter`, `Arrow keys`, `Esc`, `Tab`. */\n readonly keys: string;\n /** What they do. */\n readonly action: string;\n}\n\nexport interface ComponentMeta {\n /** The display name: `Button`, `Dropdown menu`. */\n readonly title: string;\n /** One sentence: what it is. */\n readonly summary: string;\n readonly status: Status;\n readonly category: Category;\n /** Must match the sides below: `both` ⇔ `web` and `native`. */\n readonly platforms: Platform;\n /** When to reach for it: concrete situations, one per item. */\n readonly whenToUse: readonly string[];\n /** When not to — and what to use instead (`use`), when another component is the answer. */\n readonly whenNotToUse: readonly { readonly when: string; readonly use?: ComponentName }[];\n /** How to use it well: wording, placement, composition. */\n readonly bestPractices: readonly string[];\n readonly accessibility: {\n /** The keyboard, when it does more than Tab and Enter. */\n readonly keyboard: readonly KeyboardInteraction[];\n /** Roles, names and announcements: what the component does, what the app must provide. */\n readonly notes: readonly string[];\n };\n /** The components a reader of this page should know about. */\n readonly related: readonly ComponentName[];\n readonly web?: PlatformDocs;\n readonly native?: NativeDocs;\n}\n"
|
|
333
333
|
},
|
|
334
334
|
{
|
|
335
335
|
"path": "progress/index.ts",
|