@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,17 @@
|
|
|
1
|
+
import { Mascot } from "@krizaka/ui/mascots";
|
|
2
|
+
import { PromiseCard } from "@krizaka/ui/promise-card";
|
|
3
|
+
|
|
4
|
+
// A product's guarantee with the bird that keeps it — the owl reads your documents and keeps them in the house.
|
|
5
|
+
export default function PromiseCardGuarantee() {
|
|
6
|
+
return (
|
|
7
|
+
<PromiseCard
|
|
8
|
+
className="w-[30rem] max-w-full"
|
|
9
|
+
label="Our promise"
|
|
10
|
+
promise="Your documents never leave your servers."
|
|
11
|
+
keys={["⌘", "K"]}
|
|
12
|
+
bearer={<Mascot bird="owl" mood="success" size={48} animated={false} />}
|
|
13
|
+
bearerLabel="Kept by"
|
|
14
|
+
bearerName="The owl · reads, and keeps it in the house"
|
|
15
|
+
/>
|
|
16
|
+
);
|
|
17
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/scroll-stage/arcade.tsx
|
|
4
|
+
import { GoalGauge } from "@krizaka/ui/goal-gauge";
|
|
5
|
+
import { Scene, ScrollStage } from "@krizaka/ui/scroll-stage";
|
|
6
|
+
import { StageBanner } from "@krizaka/ui/stage-banner";
|
|
7
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
function ScrollStageArcade() {
|
|
9
|
+
return /* @__PURE__ */ jsx(ScrollStage, { variant: "arcade", className: "grid w-full max-w-xl gap-8", children: /* @__PURE__ */ jsxs(Scene, { brand: "orochia", className: "grid justify-items-center gap-4 text-center", children: [
|
|
10
|
+
/* @__PURE__ */ jsx(StageBanner, { size: "lg", stage: "Final round", title: "Eight problems in the way", subtitle: "One by one, they fall." }),
|
|
11
|
+
/* @__PURE__ */ jsx(GoalGauge, { label: "Problems left", segments: 8, value: 0, mode: "drain", valueText: "0 of 8 left" })
|
|
12
|
+
] }) });
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
ScrollStageArcade as default
|
|
16
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { GoalGauge } from "@krizaka/ui/goal-gauge";
|
|
2
|
+
import { Scene, ScrollStage } from "@krizaka/ui/scroll-stage";
|
|
3
|
+
import { StageBanner } from "@krizaka/ui/stage-banner";
|
|
4
|
+
|
|
5
|
+
// `variant="arcade"` once on the stage: every storytelling component inside takes the cabinet flavour.
|
|
6
|
+
export default function ScrollStageArcade() {
|
|
7
|
+
return (
|
|
8
|
+
<ScrollStage variant="arcade" className="grid w-full max-w-xl gap-8">
|
|
9
|
+
<Scene brand="orochia" className="grid justify-items-center gap-4 text-center">
|
|
10
|
+
<StageBanner size="lg" stage="Final round" title="Eight problems in the way" subtitle="One by one, they fall." />
|
|
11
|
+
<GoalGauge label="Problems left" segments={8} value={0} mode="drain" valueText="0 of 8 left" />
|
|
12
|
+
</Scene>
|
|
13
|
+
</ScrollStage>
|
|
14
|
+
);
|
|
15
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/scroll-stage/chapters.tsx
|
|
4
|
+
import { GoalGauge } from "@krizaka/ui/goal-gauge";
|
|
5
|
+
import { Scene, ScrollStage } from "@krizaka/ui/scroll-stage";
|
|
6
|
+
import { StageBanner } from "@krizaka/ui/stage-banner";
|
|
7
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
function ScrollStageChapters() {
|
|
9
|
+
return /* @__PURE__ */ jsxs(ScrollStage, { className: "grid w-full max-w-xl gap-10", children: [
|
|
10
|
+
/* @__PURE__ */ jsxs(Scene, { className: "grid gap-3", children: [
|
|
11
|
+
/* @__PURE__ */ jsx(StageBanner, { stage: "Step 01", name: "Your profile" }),
|
|
12
|
+
/* @__PURE__ */ jsxs("div", { "data-kzs-reveal": true, children: [
|
|
13
|
+
/* @__PURE__ */ jsx("h3", { className: "text-lg font-semibold text-fg", children: "Say who you are, in your words" }),
|
|
14
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm text-fg-secondary", children: "Three questions, two photos. Nothing is public until you say so." })
|
|
15
|
+
] })
|
|
16
|
+
] }),
|
|
17
|
+
/* @__PURE__ */ jsxs(Scene, { className: "grid gap-3", children: [
|
|
18
|
+
/* @__PURE__ */ jsx(StageBanner, { stage: "Step 02", name: "Your first goal" }),
|
|
19
|
+
/* @__PURE__ */ jsx(GoalGauge, { label: "Backers", segments: 10, value: 6, valueText: "6 of 10 backers" })
|
|
20
|
+
] })
|
|
21
|
+
] });
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
ScrollStageChapters as default
|
|
25
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { GoalGauge } from "@krizaka/ui/goal-gauge";
|
|
2
|
+
import { Scene, ScrollStage } from "@krizaka/ui/scroll-stage";
|
|
3
|
+
import { StageBanner } from "@krizaka/ui/stage-banner";
|
|
4
|
+
|
|
5
|
+
// A told page: each chapter plays once as it scrolls in — the banner, then the words (`data-kzs-reveal`), then the gauge.
|
|
6
|
+
export default function ScrollStageChapters() {
|
|
7
|
+
return (
|
|
8
|
+
<ScrollStage className="grid w-full max-w-xl gap-10">
|
|
9
|
+
<Scene className="grid gap-3">
|
|
10
|
+
<StageBanner stage="Step 01" name="Your profile" />
|
|
11
|
+
<div data-kzs-reveal>
|
|
12
|
+
<h3 className="text-lg font-semibold text-fg">Say who you are, in your words</h3>
|
|
13
|
+
<p className="text-sm text-fg-secondary">Three questions, two photos. Nothing is public until you say so.</p>
|
|
14
|
+
</div>
|
|
15
|
+
</Scene>
|
|
16
|
+
<Scene className="grid gap-3">
|
|
17
|
+
<StageBanner stage="Step 02" name="Your first goal" />
|
|
18
|
+
<GoalGauge label="Backers" segments={10} value={6} valueText="6 of 10 backers" />
|
|
19
|
+
</Scene>
|
|
20
|
+
</ScrollStage>
|
|
21
|
+
);
|
|
22
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/settings-layout/account.tsx
|
|
4
|
+
import { Button } from "@krizaka/ui/button";
|
|
5
|
+
import { Field, Input, Select } from "@krizaka/ui/field";
|
|
6
|
+
import { SettingsLayout, SettingsSection } from "@krizaka/ui/settings-layout";
|
|
7
|
+
import { Switch } from "@krizaka/ui/switch";
|
|
8
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
var NAV = [
|
|
10
|
+
{ id: "profile", label: "Profile", href: "#profile", current: true },
|
|
11
|
+
{ id: "notifications", label: "Notifications", href: "#notifications" },
|
|
12
|
+
{ id: "payouts", label: "Payouts", href: "#payouts" },
|
|
13
|
+
{ id: "security", label: "Security", href: "#security" }
|
|
14
|
+
];
|
|
15
|
+
function SettingsLayoutAccount() {
|
|
16
|
+
return /* @__PURE__ */ jsxs(SettingsLayout, { className: "w-full", title: "Settings", description: "Your profile, what we tell you and how you are paid.", nav: NAV, navLabel: "Settings sections", children: [
|
|
17
|
+
/* @__PURE__ */ jsxs(
|
|
18
|
+
SettingsSection,
|
|
19
|
+
{
|
|
20
|
+
id: "profile",
|
|
21
|
+
title: "Profile",
|
|
22
|
+
description: "What your fans see.",
|
|
23
|
+
footer: /* @__PURE__ */ jsx(Button, { size: "sm", variant: "primary", shape: "cut", children: "Save the profile" }),
|
|
24
|
+
children: [
|
|
25
|
+
/* @__PURE__ */ jsxs(Field.Root, { children: [
|
|
26
|
+
/* @__PURE__ */ jsx(Field.Label, { htmlFor: "settings-name", children: "Display name" }),
|
|
27
|
+
/* @__PURE__ */ jsx(Input, { id: "settings-name", defaultValue: "Elena Varga" })
|
|
28
|
+
] }),
|
|
29
|
+
/* @__PURE__ */ jsxs(Field.Root, { children: [
|
|
30
|
+
/* @__PURE__ */ jsx(Field.Label, { htmlFor: "settings-language", children: "Language" }),
|
|
31
|
+
/* @__PURE__ */ jsxs(Select, { id: "settings-language", defaultValue: "fr", children: [
|
|
32
|
+
/* @__PURE__ */ jsx("option", { value: "en", children: "English" }),
|
|
33
|
+
/* @__PURE__ */ jsx("option", { value: "fr", children: "Fran\xE7ais" })
|
|
34
|
+
] })
|
|
35
|
+
] })
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
),
|
|
39
|
+
/* @__PURE__ */ jsx(SettingsSection, { id: "notifications", title: "Notifications", description: "Only what you ask for.", children: [
|
|
40
|
+
{ id: "unlock", label: "A fan unlocks a video", on: true },
|
|
41
|
+
{ id: "auction", label: "An auction ends", on: true },
|
|
42
|
+
{ id: "weekly", label: "Weekly summary by email", on: false }
|
|
43
|
+
].map((n) => /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-4 text-sm text-fg", children: [
|
|
44
|
+
/* @__PURE__ */ jsx("span", { id: `notify-${n.id}`, children: n.label }),
|
|
45
|
+
/* @__PURE__ */ jsx(Switch, { "aria-labelledby": `notify-${n.id}`, defaultChecked: n.on })
|
|
46
|
+
] }, n.id)) })
|
|
47
|
+
] });
|
|
48
|
+
}
|
|
49
|
+
export {
|
|
50
|
+
SettingsLayoutAccount as default
|
|
51
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { Button } from "@krizaka/ui/button";
|
|
2
|
+
import { Field, Input, Select } from "@krizaka/ui/field";
|
|
3
|
+
import { SettingsLayout, SettingsSection } from "@krizaka/ui/settings-layout";
|
|
4
|
+
import { Switch } from "@krizaka/ui/switch";
|
|
5
|
+
|
|
6
|
+
const NAV = [
|
|
7
|
+
{ id: "profile", label: "Profile", href: "#profile", current: true },
|
|
8
|
+
{ id: "notifications", label: "Notifications", href: "#notifications" },
|
|
9
|
+
{ id: "payouts", label: "Payouts", href: "#payouts" },
|
|
10
|
+
{ id: "security", label: "Security", href: "#security" },
|
|
11
|
+
];
|
|
12
|
+
|
|
13
|
+
// TEMPLATE — account settings: the sections on the left (a row of chips that scrolls on a phone), each form a titled
|
|
14
|
+
// card with its own save, so a change in one never waits for another.
|
|
15
|
+
export default function SettingsLayoutAccount() {
|
|
16
|
+
return (
|
|
17
|
+
<SettingsLayout className="w-full" title="Settings" description="Your profile, what we tell you and how you are paid." nav={NAV} navLabel="Settings sections">
|
|
18
|
+
<SettingsSection
|
|
19
|
+
id="profile"
|
|
20
|
+
title="Profile"
|
|
21
|
+
description="What your fans see."
|
|
22
|
+
footer={<Button size="sm" variant="primary" shape="cut">Save the profile</Button>}
|
|
23
|
+
>
|
|
24
|
+
<Field.Root>
|
|
25
|
+
<Field.Label htmlFor="settings-name">Display name</Field.Label>
|
|
26
|
+
<Input id="settings-name" defaultValue="Elena Varga" />
|
|
27
|
+
</Field.Root>
|
|
28
|
+
<Field.Root>
|
|
29
|
+
<Field.Label htmlFor="settings-language">Language</Field.Label>
|
|
30
|
+
<Select id="settings-language" defaultValue="fr">
|
|
31
|
+
<option value="en">English</option>
|
|
32
|
+
<option value="fr">Français</option>
|
|
33
|
+
</Select>
|
|
34
|
+
</Field.Root>
|
|
35
|
+
</SettingsSection>
|
|
36
|
+
<SettingsSection id="notifications" title="Notifications" description="Only what you ask for.">
|
|
37
|
+
{[
|
|
38
|
+
{ id: "unlock", label: "A fan unlocks a video", on: true },
|
|
39
|
+
{ id: "auction", label: "An auction ends", on: true },
|
|
40
|
+
{ id: "weekly", label: "Weekly summary by email", on: false },
|
|
41
|
+
].map((n) => (
|
|
42
|
+
<div key={n.id} className="flex items-center justify-between gap-4 text-sm text-fg">
|
|
43
|
+
<span id={`notify-${n.id}`}>{n.label}</span>
|
|
44
|
+
<Switch aria-labelledby={`notify-${n.id}`} defaultChecked={n.on} />
|
|
45
|
+
</div>
|
|
46
|
+
))}
|
|
47
|
+
</SettingsSection>
|
|
48
|
+
</SettingsLayout>
|
|
49
|
+
);
|
|
50
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/settings-layout/sections.tsx
|
|
4
|
+
import { Button } from "@krizaka/ui/button";
|
|
5
|
+
import { Field, Input } from "@krizaka/ui/field";
|
|
6
|
+
import { SettingsLayout, SettingsSection } from "@krizaka/ui/settings-layout";
|
|
7
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
|
+
function SettingsLayoutSections() {
|
|
9
|
+
return /* @__PURE__ */ jsx(
|
|
10
|
+
SettingsLayout,
|
|
11
|
+
{
|
|
12
|
+
className: "w-full",
|
|
13
|
+
nav: [
|
|
14
|
+
{ id: "workspace", label: "Workspace", href: "#workspace", current: true },
|
|
15
|
+
{ id: "models", label: "Models", href: "#models" }
|
|
16
|
+
],
|
|
17
|
+
navLabel: "Settings sections",
|
|
18
|
+
children: /* @__PURE__ */ jsx(SettingsSection, { title: "Workspace", footer: /* @__PURE__ */ jsx(Button, { size: "sm", variant: "primary", shape: "cut", children: "Save" }), children: /* @__PURE__ */ jsxs(Field.Root, { children: [
|
|
19
|
+
/* @__PURE__ */ jsx(Field.Label, { htmlFor: "sections-name", children: "Name" }),
|
|
20
|
+
/* @__PURE__ */ jsx(Input, { id: "sections-name", defaultValue: "Tremblay & associ\xE9s" })
|
|
21
|
+
] }) })
|
|
22
|
+
}
|
|
23
|
+
);
|
|
24
|
+
}
|
|
25
|
+
export {
|
|
26
|
+
SettingsLayoutSections as default
|
|
27
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Button } from "@krizaka/ui/button";
|
|
2
|
+
import { Field, Input } from "@krizaka/ui/field";
|
|
3
|
+
import { SettingsLayout, SettingsSection } from "@krizaka/ui/settings-layout";
|
|
4
|
+
|
|
5
|
+
// One section per page: the navigation's links are pages, the current one is marked.
|
|
6
|
+
export default function SettingsLayoutSections() {
|
|
7
|
+
return (
|
|
8
|
+
<SettingsLayout
|
|
9
|
+
className="w-full"
|
|
10
|
+
nav={[
|
|
11
|
+
{ id: "workspace", label: "Workspace", href: "#workspace", current: true },
|
|
12
|
+
{ id: "models", label: "Models", href: "#models" },
|
|
13
|
+
]}
|
|
14
|
+
navLabel="Settings sections"
|
|
15
|
+
>
|
|
16
|
+
<SettingsSection title="Workspace" footer={<Button size="sm" variant="primary" shape="cut">Save</Button>}>
|
|
17
|
+
<Field.Root>
|
|
18
|
+
<Field.Label htmlFor="sections-name">Name</Field.Label>
|
|
19
|
+
<Input id="sections-name" defaultValue="Tremblay & associés" />
|
|
20
|
+
</Field.Root>
|
|
21
|
+
</SettingsSection>
|
|
22
|
+
</SettingsLayout>
|
|
23
|
+
);
|
|
24
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/split-view/empty.tsx
|
|
4
|
+
import { SplitView } from "@krizaka/ui/split-view";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
function SplitViewEmpty() {
|
|
7
|
+
return /* @__PURE__ */ jsx(
|
|
8
|
+
SplitView,
|
|
9
|
+
{
|
|
10
|
+
className: "w-full",
|
|
11
|
+
listTitle: "Moderation",
|
|
12
|
+
list: /* @__PURE__ */ jsx("p", { className: "p-4 text-sm text-fg-secondary", children: "5 comments waiting." }),
|
|
13
|
+
empty: "Choose a comment to review it."
|
|
14
|
+
}
|
|
15
|
+
);
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
SplitViewEmpty as default
|
|
19
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { SplitView } from "@krizaka/ui/split-view";
|
|
2
|
+
|
|
3
|
+
// Nothing open yet: the detail pane says what to do (desktop); on a phone only the list shows.
|
|
4
|
+
export default function SplitViewEmpty() {
|
|
5
|
+
return (
|
|
6
|
+
<SplitView
|
|
7
|
+
className="w-full"
|
|
8
|
+
listTitle="Moderation"
|
|
9
|
+
list={<p className="p-4 text-sm text-fg-secondary">5 comments waiting.</p>}
|
|
10
|
+
empty="Choose a comment to review it."
|
|
11
|
+
/>
|
|
12
|
+
);
|
|
13
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/split-view/messages.tsx
|
|
4
|
+
import { Avatar } from "@krizaka/ui/avatar";
|
|
5
|
+
import { Button } from "@krizaka/ui/button";
|
|
6
|
+
import { Field, Textarea } from "@krizaka/ui/field";
|
|
7
|
+
import { SplitView } from "@krizaka/ui/split-view";
|
|
8
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
var THREADS = [
|
|
10
|
+
{ id: "lea", name: "L\xE9a M.", last: "Will part 3 be out before Friday?", time: "09:12", unread: true },
|
|
11
|
+
{ id: "samir", name: "Samir K.", last: "Thanks for the backstage cut!", time: "Yesterday" },
|
|
12
|
+
{ id: "ines", name: "In\xE8s B.", last: "I won the auction \u{1F389}", time: "Mon" }
|
|
13
|
+
];
|
|
14
|
+
function SplitViewMessages() {
|
|
15
|
+
return /* @__PURE__ */ jsx(
|
|
16
|
+
SplitView,
|
|
17
|
+
{
|
|
18
|
+
className: "w-full",
|
|
19
|
+
listTitle: "Messages",
|
|
20
|
+
showDetail: true,
|
|
21
|
+
back: /* @__PURE__ */ jsx("a", { href: "#messages", className: "text-sm font-medium text-fg-secondary", children: "\u2190 Messages" }),
|
|
22
|
+
list: /* @__PURE__ */ jsx("ul", { children: THREADS.map((t, i) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs("a", { href: `#${t.id}`, "aria-current": i === 0 ? "page" : void 0, className: "flex items-center gap-3 border-b border-border-subtle px-4 py-3 text-sm no-underline hover:bg-surface-2 aria-[current=page]:bg-accent-soft", children: [
|
|
23
|
+
/* @__PURE__ */ jsx(Avatar, { fallback: t.name.slice(0, 2), size: "sm" }),
|
|
24
|
+
/* @__PURE__ */ jsxs("span", { className: "min-w-0 flex-1", children: [
|
|
25
|
+
/* @__PURE__ */ jsxs("span", { className: "flex justify-between gap-2", children: [
|
|
26
|
+
/* @__PURE__ */ jsx("span", { className: "font-semibold text-fg", children: t.name }),
|
|
27
|
+
/* @__PURE__ */ jsx("span", { className: "text-xs text-fg-secondary", children: t.time })
|
|
28
|
+
] }),
|
|
29
|
+
/* @__PURE__ */ jsx("span", { className: t.unread ? "block truncate font-medium text-fg" : "block truncate text-fg-secondary", children: t.last })
|
|
30
|
+
] })
|
|
31
|
+
] }) }, t.id)) }),
|
|
32
|
+
detailHead: /* @__PURE__ */ jsx("span", { className: "text-sm font-bold text-fg", children: "L\xE9a M." }),
|
|
33
|
+
detail: /* @__PURE__ */ jsxs("div", { className: "flex h-full flex-col gap-4", children: [
|
|
34
|
+
/* @__PURE__ */ jsx("p", { className: "max-w-[80%] rounded-2xl rounded-bl-md bg-surface-2 px-3.5 py-2 text-sm text-fg", children: "Will part 3 be out before Friday?" }),
|
|
35
|
+
/* @__PURE__ */ jsx("p", { className: "ml-auto max-w-[80%] rounded-2xl rounded-br-md bg-accent-soft px-3.5 py-2 text-sm text-fg", children: "Thursday evening \u2014 you'll be the first to know." }),
|
|
36
|
+
/* @__PURE__ */ jsxs("form", { className: "mt-auto flex items-end gap-2", children: [
|
|
37
|
+
/* @__PURE__ */ jsxs(Field.Root, { className: "flex-1", children: [
|
|
38
|
+
/* @__PURE__ */ jsx(Field.Label, { htmlFor: "reply", className: "sr-only", children: "Reply to L\xE9a" }),
|
|
39
|
+
/* @__PURE__ */ jsx(Textarea, { id: "reply", rows: 2, placeholder: "Write a reply\u2026" })
|
|
40
|
+
] }),
|
|
41
|
+
/* @__PURE__ */ jsx(Button, { type: "submit", variant: "primary", shape: "cut", children: "Send" })
|
|
42
|
+
] })
|
|
43
|
+
] })
|
|
44
|
+
}
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
export {
|
|
48
|
+
SplitViewMessages as default
|
|
49
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { Avatar } from "@krizaka/ui/avatar";
|
|
2
|
+
import { Button } from "@krizaka/ui/button";
|
|
3
|
+
import { Field, Textarea } from "@krizaka/ui/field";
|
|
4
|
+
import { SplitView } from "@krizaka/ui/split-view";
|
|
5
|
+
|
|
6
|
+
const THREADS = [
|
|
7
|
+
{ id: "lea", name: "Léa M.", last: "Will part 3 be out before Friday?", time: "09:12", unread: true },
|
|
8
|
+
{ id: "samir", name: "Samir K.", last: "Thanks for the backstage cut!", time: "Yesterday" },
|
|
9
|
+
{ id: "ines", name: "Inès B.", last: "I won the auction 🎉", time: "Mon" },
|
|
10
|
+
];
|
|
11
|
+
|
|
12
|
+
// TEMPLATE — a creator's messages (Orochia): the threads beside the open one; on a phone the open thread replaces the
|
|
13
|
+
// list (`showDetail`, from the address) with the way back above it. The reply box stays at the foot of the thread.
|
|
14
|
+
export default function SplitViewMessages() {
|
|
15
|
+
return (
|
|
16
|
+
<SplitView
|
|
17
|
+
className="w-full"
|
|
18
|
+
listTitle="Messages"
|
|
19
|
+
showDetail
|
|
20
|
+
back={<a href="#messages" className="text-sm font-medium text-fg-secondary">← Messages</a>}
|
|
21
|
+
list={
|
|
22
|
+
<ul>
|
|
23
|
+
{THREADS.map((t, i) => (
|
|
24
|
+
<li key={t.id}>
|
|
25
|
+
<a href={`#${t.id}`} aria-current={i === 0 ? "page" : undefined} className="flex items-center gap-3 border-b border-border-subtle px-4 py-3 text-sm no-underline hover:bg-surface-2 aria-[current=page]:bg-accent-soft">
|
|
26
|
+
<Avatar fallback={t.name.slice(0, 2)} size="sm" />
|
|
27
|
+
<span className="min-w-0 flex-1">
|
|
28
|
+
<span className="flex justify-between gap-2"><span className="font-semibold text-fg">{t.name}</span><span className="text-xs text-fg-secondary">{t.time}</span></span>
|
|
29
|
+
<span className={t.unread ? "block truncate font-medium text-fg" : "block truncate text-fg-secondary"}>{t.last}</span>
|
|
30
|
+
</span>
|
|
31
|
+
</a>
|
|
32
|
+
</li>
|
|
33
|
+
))}
|
|
34
|
+
</ul>
|
|
35
|
+
}
|
|
36
|
+
detailHead={<span className="text-sm font-bold text-fg">Léa M.</span>}
|
|
37
|
+
detail={
|
|
38
|
+
<div className="flex h-full flex-col gap-4">
|
|
39
|
+
<p className="max-w-[80%] rounded-2xl rounded-bl-md bg-surface-2 px-3.5 py-2 text-sm text-fg">Will part 3 be out before Friday?</p>
|
|
40
|
+
<p className="ml-auto max-w-[80%] rounded-2xl rounded-br-md bg-accent-soft px-3.5 py-2 text-sm text-fg">Thursday evening — you'll be the first to know.</p>
|
|
41
|
+
<form className="mt-auto flex items-end gap-2">
|
|
42
|
+
<Field.Root className="flex-1">
|
|
43
|
+
<Field.Label htmlFor="reply" className="sr-only">Reply to Léa</Field.Label>
|
|
44
|
+
<Textarea id="reply" rows={2} placeholder="Write a reply…" />
|
|
45
|
+
</Field.Root>
|
|
46
|
+
<Button type="submit" variant="primary" shape="cut">Send</Button>
|
|
47
|
+
</form>
|
|
48
|
+
</div>
|
|
49
|
+
}
|
|
50
|
+
/>
|
|
51
|
+
);
|
|
52
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/stage-banner/round.tsx
|
|
4
|
+
import { StageBanner } from "@krizaka/ui/stage-banner";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
function StageBannerRound() {
|
|
7
|
+
return /* @__PURE__ */ jsxs("div", { className: "grid gap-10", children: [
|
|
8
|
+
/* @__PURE__ */ jsx(StageBanner, { size: "lg", titleAs: "h3", stage: "Chapter 3", title: "Get paid on your terms", subtitle: "Tips, challenges and auctions \u2014 90 % to you." }),
|
|
9
|
+
/* @__PURE__ */ jsx(StageBanner, { size: "lg", variant: "arcade", stage: "Final round", title: "The last boss", subtitle: "Eight heads, one by one." })
|
|
10
|
+
] });
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
StageBannerRound as default
|
|
14
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { StageBanner } from "@krizaka/ui/stage-banner";
|
|
2
|
+
|
|
3
|
+
// `size="lg"`: a section's opening — the stage, a title (a heading here) and a line.
|
|
4
|
+
export default function StageBannerRound() {
|
|
5
|
+
return (
|
|
6
|
+
<div className="grid gap-10">
|
|
7
|
+
<StageBanner size="lg" titleAs="h3" stage="Chapter 3" title="Get paid on your terms" subtitle="Tips, challenges and auctions — 90 % to you." />
|
|
8
|
+
<StageBanner size="lg" variant="arcade" stage="Final round" title="The last boss" subtitle="Eight heads, one by one." />
|
|
9
|
+
</div>
|
|
10
|
+
);
|
|
11
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// registry/examples/stage-banner/steps.tsx
|
|
4
|
+
import { StageBanner } from "@krizaka/ui/stage-banner";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
function StageBannerSteps() {
|
|
7
|
+
return /* @__PURE__ */ jsxs("div", { className: "grid justify-items-start gap-4", children: [
|
|
8
|
+
/* @__PURE__ */ jsx(StageBanner, { stage: "Step 02", name: "Payments" }),
|
|
9
|
+
/* @__PURE__ */ jsx(StageBanner, { variant: "arcade", stage: "Stage 02", name: "Orazaka" })
|
|
10
|
+
] });
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
StageBannerSteps as default
|
|
14
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { StageBanner } from "@krizaka/ui/stage-banner";
|
|
2
|
+
|
|
3
|
+
// Before a chapter's heading: where the reader is. Sober by default; `variant="arcade"` for a told page.
|
|
4
|
+
export default function StageBannerSteps() {
|
|
5
|
+
return (
|
|
6
|
+
<div className="grid justify-items-start gap-4">
|
|
7
|
+
<StageBanner stage="Step 02" name="Payments" />
|
|
8
|
+
<StageBanner variant="arcade" stage="Stage 02" name="Orazaka" />
|
|
9
|
+
</div>
|
|
10
|
+
);
|
|
11
|
+
}
|
package/registry/field.json
CHANGED
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
},
|
|
148
148
|
{
|
|
149
149
|
"path": "meta.ts",
|
|
150
|
-
"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"
|
|
150
|
+
"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"
|
|
151
151
|
}
|
|
152
152
|
],
|
|
153
153
|
"dependencies": [
|
|
@@ -279,7 +279,7 @@
|
|
|
279
279
|
},
|
|
280
280
|
{
|
|
281
281
|
"path": "meta.ts",
|
|
282
|
-
"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"
|
|
282
|
+
"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"
|
|
283
283
|
}
|
|
284
284
|
],
|
|
285
285
|
"dependencies": [
|