@krizaka/ui 2.5.0 → 2.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (267) hide show
  1. package/README.md +49 -5
  2. package/dist/action-bar.d.ts +38 -0
  3. package/dist/action-bar.js +52 -0
  4. package/dist/action-bar.js.map +1 -0
  5. package/dist/argument-card.d.ts +67 -0
  6. package/dist/argument-card.js +69 -0
  7. package/dist/argument-card.js.map +1 -0
  8. package/dist/audio-player.js +1 -1
  9. package/dist/block-link-BAg4eoZk.d.ts +12 -0
  10. package/dist/blocks.css +529 -0
  11. package/dist/button.js +5 -94
  12. package/dist/button.js.map +1 -1
  13. package/dist/card-grid.d.ts +42 -0
  14. package/dist/card-grid.js +47 -0
  15. package/dist/card-grid.js.map +1 -0
  16. package/dist/chunk-2AGSO3WH.js +20 -0
  17. package/dist/chunk-2AGSO3WH.js.map +1 -0
  18. package/dist/chunk-AB5D3KBG.js +37 -0
  19. package/dist/chunk-AB5D3KBG.js.map +1 -0
  20. package/dist/{chunk-YX6CNVJA.js → chunk-CPA5CF35.js} +1 -1
  21. package/dist/chunk-CPA5CF35.js.map +1 -0
  22. package/dist/chunk-K3SWZXYT.js +92 -0
  23. package/dist/chunk-K3SWZXYT.js.map +1 -0
  24. package/dist/chunk-NOVUREEC.js +274 -0
  25. package/dist/chunk-NOVUREEC.js.map +1 -0
  26. package/dist/{chunk-XUMJA5ZI.js → chunk-X6TW3X6Y.js} +2 -2
  27. package/dist/chunk-XCBVFMNV.js +41 -0
  28. package/dist/{chunk-YX6CNVJA.js.map → chunk-XCBVFMNV.js.map} +1 -1
  29. package/dist/chunk-XVLWVTQA.js +28 -0
  30. package/dist/chunk-XVLWVTQA.js.map +1 -0
  31. package/dist/chunk-Z6FUPB3Q.js +102 -0
  32. package/dist/chunk-Z6FUPB3Q.js.map +1 -0
  33. package/dist/code-block.d.ts +42 -0
  34. package/dist/code-block.js +202 -0
  35. package/dist/code-block.js.map +1 -0
  36. package/dist/combobox.js +2 -2
  37. package/dist/cta-panel.d.ts +23 -0
  38. package/dist/cta-panel.js +20 -0
  39. package/dist/cta-panel.js.map +1 -0
  40. package/dist/data-table.js +1 -1
  41. package/dist/date-picker.js +1 -1
  42. package/dist/decision-list.d.ts +34 -0
  43. package/dist/decision-list.js +67 -0
  44. package/dist/decision-list.js.map +1 -0
  45. package/dist/file-upload.js +1 -1
  46. package/dist/filter-bar.js +1 -1
  47. package/dist/geometry-CXrAW34x.d.ts +19 -0
  48. package/dist/index.d.ts +10 -2
  49. package/dist/index.js +86 -4
  50. package/dist/index.js.map +1 -1
  51. package/dist/link-card.d.ts +35 -0
  52. package/dist/link-card.js +46 -0
  53. package/dist/link-card.js.map +1 -0
  54. package/dist/mascot-quote.d.ts +43 -0
  55. package/dist/mascot-quote.js +287 -0
  56. package/dist/mascot-quote.js.map +1 -0
  57. package/dist/mascot-state.d.ts +128 -0
  58. package/dist/mascot-state.js +95 -0
  59. package/dist/mascot-state.js.map +1 -0
  60. package/dist/mascots.d.ts +5 -20
  61. package/dist/mascots.js +5 -246
  62. package/dist/mascots.js.map +1 -1
  63. package/dist/media-capture.js +1 -1
  64. package/dist/motion.css +25 -1
  65. package/dist/native.d.ts +54 -7
  66. package/dist/native.js +334 -166
  67. package/dist/native.js.map +1 -1
  68. package/dist/page-hero.d.ts +44 -0
  69. package/dist/page-hero.js +41 -0
  70. package/dist/page-hero.js.map +1 -0
  71. package/dist/page.d.ts +116 -0
  72. package/dist/page.js +17 -0
  73. package/dist/page.js.map +1 -0
  74. package/dist/pagination.js +25 -44
  75. package/dist/pagination.js.map +1 -1
  76. package/dist/pointer-light.d.ts +20 -0
  77. package/dist/pointer-light.js +12 -0
  78. package/dist/pointer-light.js.map +1 -0
  79. package/dist/search-field.js +1 -1
  80. package/dist/section-backdrop.js +4 -22
  81. package/dist/section-backdrop.js.map +1 -1
  82. package/dist/tag-input.js +2 -2
  83. package/dist/terminal-replay.d.ts +68 -0
  84. package/dist/terminal-replay.js +231 -0
  85. package/dist/terminal-replay.js.map +1 -0
  86. package/dist/toc.d.ts +23 -0
  87. package/dist/toc.js +39 -0
  88. package/dist/toc.js.map +1 -0
  89. package/dist/video-player.js +1 -1
  90. package/package.json +208 -8
  91. package/registry/action-bar.json +205 -0
  92. package/registry/alert.json +1 -1
  93. package/registry/argument-card.json +327 -0
  94. package/registry/audio-player.json +2 -2
  95. package/registry/avatar.json +1 -1
  96. package/registry/badge.json +1 -1
  97. package/registry/button.json +5 -5
  98. package/registry/card-grid.json +221 -0
  99. package/registry/card.json +3 -3
  100. package/registry/checkbox.json +1 -1
  101. package/registry/chip-link.json +1 -1
  102. package/registry/chip.json +1 -1
  103. package/registry/code-block.json +262 -0
  104. package/registry/combobox.json +2 -2
  105. package/registry/command.json +1 -1
  106. package/registry/confirm-button.json +3 -3
  107. package/registry/countdown.json +1 -1
  108. package/registry/cta-panel.json +154 -0
  109. package/registry/data-table.json +2 -2
  110. package/registry/date-picker.json +2 -2
  111. package/registry/decision-list.json +144 -0
  112. package/registry/dialog.json +1 -1
  113. package/registry/dropdown-menu.json +1 -1
  114. package/registry/empty-state.json +1 -1
  115. package/registry/examples/action-bar/buttons.d.ts +4 -0
  116. package/registry/examples/action-bar/buttons.js +22 -0
  117. package/registry/examples/action-bar/buttons.tsx +17 -0
  118. package/registry/examples/action-bar/icons.d.ts +4 -0
  119. package/registry/examples/action-bar/icons.js +24 -0
  120. package/registry/examples/action-bar/icons.tsx +23 -0
  121. package/registry/examples/argument-card/building-block.d.ts +4 -0
  122. package/registry/examples/argument-card/building-block.js +29 -0
  123. package/registry/examples/argument-card/building-block.tsx +29 -0
  124. package/registry/examples/argument-card/grid.d.ts +4 -0
  125. package/registry/examples/argument-card/grid.js +17 -0
  126. package/registry/examples/argument-card/grid.tsx +19 -0
  127. package/registry/examples/argument-card/unfold.d.ts +4 -0
  128. package/registry/examples/argument-card/unfold.js +26 -0
  129. package/registry/examples/argument-card/unfold.tsx +21 -0
  130. package/registry/examples/card-grid/products.d.ts +4 -0
  131. package/registry/examples/card-grid/products.js +16 -0
  132. package/registry/examples/card-grid/products.tsx +13 -0
  133. package/registry/examples/card-grid/reveal.d.ts +4 -0
  134. package/registry/examples/card-grid/reveal.js +13 -0
  135. package/registry/examples/card-grid/reveal.tsx +16 -0
  136. package/registry/examples/code-block/build-tools.d.ts +4 -0
  137. package/registry/examples/code-block/build-tools.js +30 -0
  138. package/registry/examples/code-block/build-tools.tsx +25 -0
  139. package/registry/examples/code-block/file.d.ts +4 -0
  140. package/registry/examples/code-block/file.js +17 -0
  141. package/registry/examples/code-block/file.tsx +13 -0
  142. package/registry/examples/cta-panel/discuss.d.ts +4 -0
  143. package/registry/examples/cta-panel/discuss.js +31 -0
  144. package/registry/examples/cta-panel/discuss.tsx +23 -0
  145. package/registry/examples/decision-list/product.d.ts +4 -0
  146. package/registry/examples/decision-list/product.js +35 -0
  147. package/registry/examples/decision-list/product.tsx +30 -0
  148. package/registry/examples/link-card/docs-hub.d.ts +4 -0
  149. package/registry/examples/link-card/docs-hub.js +18 -0
  150. package/registry/examples/link-card/docs-hub.tsx +20 -0
  151. package/registry/examples/link-card/external.d.ts +4 -0
  152. package/registry/examples/link-card/external.js +22 -0
  153. package/registry/examples/link-card/external.tsx +16 -0
  154. package/registry/examples/link-card/stack.d.ts +4 -0
  155. package/registry/examples/link-card/stack.js +26 -0
  156. package/registry/examples/link-card/stack.tsx +21 -0
  157. package/registry/examples/mascot-quote/callout.d.ts +4 -0
  158. package/registry/examples/mascot-quote/callout.js +11 -0
  159. package/registry/examples/mascot-quote/callout.tsx +10 -0
  160. package/registry/examples/mascot-quote/inline.d.ts +4 -0
  161. package/registry/examples/mascot-quote/inline.js +11 -0
  162. package/registry/examples/mascot-quote/inline.tsx +10 -0
  163. package/registry/examples/mascot-state/empty.d.ts +4 -0
  164. package/registry/examples/mascot-state/empty.js +22 -0
  165. package/registry/examples/mascot-state/empty.tsx +20 -0
  166. package/registry/examples/mascot-state/error.d.ts +4 -0
  167. package/registry/examples/mascot-state/error.js +23 -0
  168. package/registry/examples/mascot-state/error.tsx +21 -0
  169. package/registry/examples/mascot-state/loading.d.ts +4 -0
  170. package/registry/examples/mascot-state/loading.js +22 -0
  171. package/registry/examples/mascot-state/loading.tsx +16 -0
  172. package/registry/examples/mascot-state/native/default.d.ts +4 -0
  173. package/registry/examples/mascot-state/native/default.dark.png +0 -0
  174. package/registry/examples/mascot-state/native/default.js +25 -0
  175. package/registry/examples/mascot-state/native/default.light.png +0 -0
  176. package/registry/examples/mascot-state/native/default.tsx +19 -0
  177. package/registry/examples/mascot-state/success.d.ts +4 -0
  178. package/registry/examples/mascot-state/success.js +21 -0
  179. package/registry/examples/mascot-state/success.tsx +19 -0
  180. package/registry/examples/mascot-state/welcome.d.ts +4 -0
  181. package/registry/examples/mascot-state/welcome.js +21 -0
  182. package/registry/examples/mascot-state/welcome.tsx +19 -0
  183. package/registry/examples/mascots/flock.tsx +1 -1
  184. package/registry/examples/mascots/lovebird.d.ts +4 -0
  185. package/registry/examples/mascots/lovebird.js +19 -0
  186. package/registry/examples/mascots/lovebird.tsx +18 -0
  187. package/registry/examples/mascots/native/lovebird.d.ts +4 -0
  188. package/registry/examples/mascots/native/lovebird.dark.png +0 -0
  189. package/registry/examples/mascots/native/lovebird.js +21 -0
  190. package/registry/examples/mascots/native/lovebird.light.png +0 -0
  191. package/registry/examples/mascots/native/lovebird.tsx +18 -0
  192. package/registry/examples/page/backdrop.d.ts +4 -0
  193. package/registry/examples/page/backdrop.js +23 -0
  194. package/registry/examples/page/backdrop.tsx +18 -0
  195. package/registry/examples/page/facts.d.ts +4 -0
  196. package/registry/examples/page/facts.js +24 -0
  197. package/registry/examples/page/facts.tsx +21 -0
  198. package/registry/examples/page/frame.d.ts +4 -0
  199. package/registry/examples/page/frame.js +15 -0
  200. package/registry/examples/page/frame.tsx +17 -0
  201. package/registry/examples/page/sections.d.ts +4 -0
  202. package/registry/examples/page/sections.js +14 -0
  203. package/registry/examples/page/sections.tsx +15 -0
  204. package/registry/examples/page-hero/building-block.d.ts +4 -0
  205. package/registry/examples/page-hero/building-block.js +24 -0
  206. package/registry/examples/page-hero/building-block.tsx +20 -0
  207. package/registry/examples/page-hero/hub.d.ts +4 -0
  208. package/registry/examples/page-hero/hub.js +21 -0
  209. package/registry/examples/page-hero/hub.tsx +15 -0
  210. package/registry/examples/pointer-light/list.d.ts +4 -0
  211. package/registry/examples/pointer-light/list.js +16 -0
  212. package/registry/examples/pointer-light/list.tsx +14 -0
  213. package/registry/examples/terminal-replay/at-rest.d.ts +4 -0
  214. package/registry/examples/terminal-replay/at-rest.js +32 -0
  215. package/registry/examples/terminal-replay/at-rest.tsx +26 -0
  216. package/registry/examples/terminal-replay/session.d.ts +4 -0
  217. package/registry/examples/terminal-replay/session.js +34 -0
  218. package/registry/examples/terminal-replay/session.tsx +28 -0
  219. package/registry/examples/toc/reading-page.d.ts +4 -0
  220. package/registry/examples/toc/reading-page.js +21 -0
  221. package/registry/examples/toc/reading-page.tsx +21 -0
  222. package/registry/field.json +1 -1
  223. package/registry/file-upload.json +2 -2
  224. package/registry/filter-bar.json +2 -2
  225. package/registry/glow-card.json +1 -1
  226. package/registry/image-cropper.json +1 -1
  227. package/registry/index.json +265 -5
  228. package/registry/iso.json +1 -1
  229. package/registry/kbd.json +1 -1
  230. package/registry/link-card.json +279 -0
  231. package/registry/loader.json +1 -1
  232. package/registry/marquee.json +1 -1
  233. package/registry/mascot-quote.json +191 -0
  234. package/registry/mascot-state.json +1249 -0
  235. package/registry/mascots.json +41 -21
  236. package/registry/media-capture.json +4 -4
  237. package/registry/meter.json +1 -1
  238. package/registry/nav-bar.json +1 -1
  239. package/registry/number-ticker.json +1 -1
  240. package/registry/page-header.json +1 -1
  241. package/registry/page-hero.json +254 -0
  242. package/registry/page.json +497 -0
  243. package/registry/pagination.json +2 -2
  244. package/registry/pointer-light.json +119 -0
  245. package/registry/popover.json +1 -1
  246. package/registry/progress.json +1 -1
  247. package/registry/radio-group.json +1 -1
  248. package/registry/search-field.json +2 -2
  249. package/registry/section-backdrop.json +1 -1
  250. package/registry/separator.json +1 -1
  251. package/registry/skeleton.json +3 -3
  252. package/registry/slider.json +1 -1
  253. package/registry/slot.json +1 -1
  254. package/registry/spinner.json +1 -1
  255. package/registry/stat.json +1 -1
  256. package/registry/stepper.json +1 -1
  257. package/registry/switch.json +1 -1
  258. package/registry/tabs.json +1 -1
  259. package/registry/tag-input.json +1 -1
  260. package/registry/terminal-replay.json +317 -0
  261. package/registry/theme.json +1 -1
  262. package/registry/toast.json +1 -1
  263. package/registry/toc.json +157 -0
  264. package/registry/tooltip.json +1 -1
  265. package/registry/video-player.json +4 -4
  266. package/registry/video-trimmer.json +3 -3
  267. /package/dist/{chunk-XUMJA5ZI.js.map → chunk-X6TW3X6Y.js.map} +0 -0
@@ -0,0 +1,18 @@
1
+ "use client";
2
+
3
+ // registry/examples/link-card/docs-hub.tsx
4
+ import { ProductLogo } from "@krizaka/ui";
5
+ import { CardGrid } from "@krizaka/ui/card-grid";
6
+ import { LinkCard } from "@krizaka/ui/link-card";
7
+ import { jsx } from "react/jsx-runtime";
8
+ var shortcuts = [
9
+ { id: "cli", logo: "orazaka", title: "The CLI", text: "npx orazaka install, start, dev \u2014 then every command and option." },
10
+ { id: "packs", logo: "orazaka", title: "Packs & Studios", text: "The business offers Orazaka installs without code." },
11
+ { id: "admin", logo: "orochia", title: "Orochia admin console", text: "Verification, moderation, payouts \u2014 behind four gates." }
12
+ ];
13
+ function LinkCardDocsHub() {
14
+ return /* @__PURE__ */ jsx(CardGrid, { className: "w-full max-w-4xl", min: 260, reveal: false, children: shortcuts.map((s) => /* @__PURE__ */ jsx(LinkCard, { href: `#${s.id}`, icon: /* @__PURE__ */ jsx(ProductLogo, { id: s.logo, size: 24, animated: false }), title: s.title, description: s.text, cta: "Open" }, s.id)) });
15
+ }
16
+ export {
17
+ LinkCardDocsHub as default
18
+ };
@@ -0,0 +1,20 @@
1
+ import { ProductLogo } from "@krizaka/ui";
2
+ import { CardGrid } from "@krizaka/ui/card-grid";
3
+ import { LinkCard } from "@krizaka/ui/link-card";
4
+
5
+ const shortcuts = [
6
+ { id: "cli", logo: "orazaka", title: "The CLI", text: "npx orazaka install, start, dev — then every command and option." },
7
+ { id: "packs", logo: "orazaka", title: "Packs & Studios", text: "The business offers Orazaka installs without code." },
8
+ { id: "admin", logo: "orochia", title: "Orochia admin console", text: "Verification, moderation, payouts — behind four gates." },
9
+ ] as const;
10
+
11
+ // The entry points of a documentation hub: compact cards, the whole card one link. The pointer lights the card it is on.
12
+ export default function LinkCardDocsHub() {
13
+ return (
14
+ <CardGrid className="w-full max-w-4xl" min={260} reveal={false}>
15
+ {shortcuts.map((s) => (
16
+ <LinkCard key={s.id} href={`#${s.id}`} icon={<ProductLogo id={s.logo} size={24} animated={false} />} title={s.title} description={s.text} cta="Open" />
17
+ ))}
18
+ </CardGrid>
19
+ );
20
+ }
@@ -0,0 +1,4 @@
1
+ import type { ComponentType } from "react";
2
+ /** A named example of the @krizaka/ui registry; `defaultOpen` opens what it opens (a dialog, a menu, toasts) at load. */
3
+ declare const Example: ComponentType<{ defaultOpen?: boolean }>;
4
+ export default Example;
@@ -0,0 +1,22 @@
1
+ "use client";
2
+
3
+ // registry/examples/link-card/external.tsx
4
+ import { ProductLogo } from "@krizaka/ui";
5
+ import { LinkCard } from "@krizaka/ui/link-card";
6
+ import { jsx } from "react/jsx-runtime";
7
+ function LinkCardExternal() {
8
+ return /* @__PURE__ */ jsx(
9
+ LinkCard,
10
+ {
11
+ className: "max-w-sm",
12
+ href: "https://github.com/krizaka/krizaka-ui",
13
+ icon: /* @__PURE__ */ jsx(ProductLogo, { id: "krizaka", size: 24, animated: false }),
14
+ title: "krizaka-ui on GitHub",
15
+ description: "The sources, the issues, the discussions.",
16
+ cta: "Open the repository"
17
+ }
18
+ );
19
+ }
20
+ export {
21
+ LinkCardExternal as default
22
+ };
@@ -0,0 +1,16 @@
1
+ import { ProductLogo } from "@krizaka/ui";
2
+ import { LinkCard } from "@krizaka/ui/link-card";
3
+
4
+ // An absolute address opens in a new tab and wears the external mark instead of the arrow.
5
+ export default function LinkCardExternal() {
6
+ return (
7
+ <LinkCard
8
+ className="max-w-sm"
9
+ href="https://github.com/krizaka/krizaka-ui"
10
+ icon={<ProductLogo id="krizaka" size={24} animated={false} />}
11
+ title="krizaka-ui on GitHub"
12
+ description="The sources, the issues, the discussions."
13
+ cta="Open the repository"
14
+ />
15
+ );
16
+ }
@@ -0,0 +1,4 @@
1
+ import type { ComponentType } from "react";
2
+ /** A named example of the @krizaka/ui registry; `defaultOpen` opens what it opens (a dialog, a menu, toasts) at load. */
3
+ declare const Example: ComponentType<{ defaultOpen?: boolean }>;
4
+ export default Example;
@@ -0,0 +1,26 @@
1
+ "use client";
2
+
3
+ // registry/examples/link-card/stack.tsx
4
+ import { ProductLogo } from "@krizaka/ui";
5
+ import { LinkCard } from "@krizaka/ui/link-card";
6
+ import { Facts } from "@krizaka/ui/page";
7
+ import { jsx } from "react/jsx-runtime";
8
+ function LinkCardStack() {
9
+ return /* @__PURE__ */ jsx(
10
+ LinkCard,
11
+ {
12
+ className: "max-w-sm",
13
+ layout: "stack",
14
+ href: "#orazaka",
15
+ icon: /* @__PURE__ */ jsx(ProductLogo, { id: "orazaka", size: 26, animated: false }),
16
+ meta: "Product",
17
+ title: "Orazaka",
18
+ description: "The sovereign AI engine: chat, image, video and voice on your own servers.",
19
+ extra: /* @__PURE__ */ jsx(Facts, { items: [{ label: "Self-hosted", tone: "ok" }, { label: "Apache-2.0" }] }),
20
+ cta: "Overview"
21
+ }
22
+ );
23
+ }
24
+ export {
25
+ LinkCardStack as default
26
+ };
@@ -0,0 +1,21 @@
1
+ import { ProductLogo } from "@krizaka/ui";
2
+ import { LinkCard } from "@krizaka/ui/link-card";
3
+ import { Facts } from "@krizaka/ui/page";
4
+
5
+ // `layout="stack"`: the icon above the text, for a few large entry points (the products). `meta` names the category,
6
+ // `extra` carries facts — never another link: the card is one.
7
+ export default function LinkCardStack() {
8
+ return (
9
+ <LinkCard
10
+ className="max-w-sm"
11
+ layout="stack"
12
+ href="#orazaka"
13
+ icon={<ProductLogo id="orazaka" size={26} animated={false} />}
14
+ meta="Product"
15
+ title="Orazaka"
16
+ description="The sovereign AI engine: chat, image, video and voice on your own servers."
17
+ extra={<Facts items={[{ label: "Self-hosted", tone: "ok" }, { label: "Apache-2.0" }]} />}
18
+ cta="Overview"
19
+ />
20
+ );
21
+ }
@@ -0,0 +1,4 @@
1
+ import type { ComponentType } from "react";
2
+ /** A named example of the @krizaka/ui registry; `defaultOpen` opens what it opens (a dialog, a menu, toasts) at load. */
3
+ declare const Example: ComponentType<{ defaultOpen?: boolean }>;
4
+ export default Example;
@@ -0,0 +1,11 @@
1
+ "use client";
2
+
3
+ // registry/examples/mascot-quote/callout.tsx
4
+ import { MascotQuote } from "@krizaka/ui/mascot-quote";
5
+ import { jsx } from "react/jsx-runtime";
6
+ function MascotQuoteCallout() {
7
+ return /* @__PURE__ */ jsx(MascotQuote, { className: "max-w-2xl", variant: "callout", bird: "owl", mood: "welcome", label: "The owl's promise", children: "Every personal record stays in Qu\xE9bec, and you can read who touched it \u2014 Law 25, by design." });
8
+ }
9
+ export {
10
+ MascotQuoteCallout as default
11
+ };
@@ -0,0 +1,10 @@
1
+ import { MascotQuote } from "@krizaka/ui/mascot-quote";
2
+
3
+ // `callout`: a promise alone in a section — larger, the bird alive (its loop pauses off screen and under reduced motion).
4
+ export default function MascotQuoteCallout() {
5
+ return (
6
+ <MascotQuote className="max-w-2xl" variant="callout" bird="owl" mood="welcome" label="The owl's promise">
7
+ Every personal record stays in Québec, and you can read who touched it — Law 25, by design.
8
+ </MascotQuote>
9
+ );
10
+ }
@@ -0,0 +1,4 @@
1
+ import type { ComponentType } from "react";
2
+ /** A named example of the @krizaka/ui registry; `defaultOpen` opens what it opens (a dialog, a menu, toasts) at load. */
3
+ declare const Example: ComponentType<{ defaultOpen?: boolean }>;
4
+ export default Example;
@@ -0,0 +1,11 @@
1
+ "use client";
2
+
3
+ // registry/examples/mascot-quote/inline.tsx
4
+ import { MascotQuote } from "@krizaka/ui/mascot-quote";
5
+ import { jsx } from "react/jsx-runtime";
6
+ function MascotQuoteInline() {
7
+ return /* @__PURE__ */ jsx(MascotQuote, { className: "max-w-sm", bird: "falcon", label: "The falcon's rule", children: "Nothing crosses the walls: no prompt, no file, no metric." });
8
+ }
9
+ export {
10
+ MascotQuoteInline as default
11
+ };
@@ -0,0 +1,10 @@
1
+ import { MascotQuote } from "@krizaka/ui/mascot-quote";
2
+
3
+ // `inline`: a rule inside a card or beside a paragraph — small, the bird still (it hops once under the pointer).
4
+ export default function MascotQuoteInline() {
5
+ return (
6
+ <MascotQuote className="max-w-sm" bird="falcon" label="The falcon's rule">
7
+ Nothing crosses the walls: no prompt, no file, no metric.
8
+ </MascotQuote>
9
+ );
10
+ }
@@ -0,0 +1,4 @@
1
+ import type { ComponentType } from "react";
2
+ /** A named example of the @krizaka/ui registry; `defaultOpen` opens what it opens (a dialog, a menu, toasts) at load. */
3
+ declare const Example: ComponentType<{ defaultOpen?: boolean }>;
4
+ export default Example;
@@ -0,0 +1,22 @@
1
+ "use client";
2
+
3
+ // registry/examples/mascot-state/empty.tsx
4
+ import { Button } from "@krizaka/ui/button";
5
+ import { MascotState } from "@krizaka/ui/mascot-state";
6
+ import { jsx } from "react/jsx-runtime";
7
+ function MascotStateEmpty() {
8
+ return /* @__PURE__ */ jsx(
9
+ MascotState,
10
+ {
11
+ bird: "pigeon",
12
+ framed: true,
13
+ className: "w-96",
14
+ title: "No messages yet",
15
+ description: "Answer a challenge or tip a creator to start a conversation.",
16
+ action: /* @__PURE__ */ jsx(Button, { variant: "primary", size: "sm", children: "Find creators" })
17
+ }
18
+ );
19
+ }
20
+ export {
21
+ MascotStateEmpty as default
22
+ };
@@ -0,0 +1,20 @@
1
+ import { Button } from "@krizaka/ui/button";
2
+ import { MascotState } from "@krizaka/ui/mascot-state";
3
+
4
+ // An empty inbox: the pigeon has nothing to deliver yet; the action fills it.
5
+ export default function MascotStateEmpty() {
6
+ return (
7
+ <MascotState
8
+ bird="pigeon"
9
+ framed
10
+ className="w-96"
11
+ title="No messages yet"
12
+ description="Answer a challenge or tip a creator to start a conversation."
13
+ action={
14
+ <Button variant="primary" size="sm">
15
+ Find creators
16
+ </Button>
17
+ }
18
+ />
19
+ );
20
+ }
@@ -0,0 +1,4 @@
1
+ import type { ComponentType } from "react";
2
+ /** A named example of the @krizaka/ui registry; `defaultOpen` opens what it opens (a dialog, a menu, toasts) at load. */
3
+ declare const Example: ComponentType<{ defaultOpen?: boolean }>;
4
+ export default Example;
@@ -0,0 +1,23 @@
1
+ "use client";
2
+
3
+ // registry/examples/mascot-state/error.tsx
4
+ import { Button } from "@krizaka/ui/button";
5
+ import { ErrorState } from "@krizaka/ui/mascot-state";
6
+ import { jsx } from "react/jsx-runtime";
7
+ function MascotStateError() {
8
+ return /* @__PURE__ */ jsx(
9
+ ErrorState,
10
+ {
11
+ bird: "owl",
12
+ size: "lg",
13
+ titleAs: "h1",
14
+ className: "w-96",
15
+ title: "This page does not exist",
16
+ description: "The link may be old, or the page has moved.",
17
+ action: /* @__PURE__ */ jsx(Button, { variant: "secondary", size: "sm", children: "Back to the home page" })
18
+ }
19
+ );
20
+ }
21
+ export {
22
+ MascotStateError as default
23
+ };
@@ -0,0 +1,21 @@
1
+ import { Button } from "@krizaka/ui/button";
2
+ import { ErrorState } from "@krizaka/ui/mascot-state";
3
+
4
+ // A page that does not exist: the owl read everywhere and did not find it; the way back is the action.
5
+ export default function MascotStateError() {
6
+ return (
7
+ <ErrorState
8
+ bird="owl"
9
+ size="lg"
10
+ titleAs="h1"
11
+ className="w-96"
12
+ title="This page does not exist"
13
+ description="The link may be old, or the page has moved."
14
+ action={
15
+ <Button variant="secondary" size="sm">
16
+ Back to the home page
17
+ </Button>
18
+ }
19
+ />
20
+ );
21
+ }
@@ -0,0 +1,4 @@
1
+ import type { ComponentType } from "react";
2
+ /** A named example of the @krizaka/ui registry; `defaultOpen` opens what it opens (a dialog, a menu, toasts) at load. */
3
+ declare const Example: ComponentType<{ defaultOpen?: boolean }>;
4
+ export default Example;
@@ -0,0 +1,22 @@
1
+ "use client";
2
+
3
+ // registry/examples/mascot-state/loading.tsx
4
+ import { LoadingState } from "@krizaka/ui/mascot-state";
5
+ import { jsx } from "react/jsx-runtime";
6
+ function MascotStateLoading() {
7
+ return /* @__PURE__ */ jsx(
8
+ LoadingState,
9
+ {
10
+ bird: "duck",
11
+ size: "sm",
12
+ layout: "inline",
13
+ framed: true,
14
+ className: "w-96",
15
+ title: "Building the preview",
16
+ description: "About two minutes. You can leave this page."
17
+ }
18
+ );
19
+ }
20
+ export {
21
+ MascotStateLoading as default
22
+ };
@@ -0,0 +1,16 @@
1
+ import { LoadingState } from "@krizaka/ui/mascot-state";
2
+
3
+ // A job of a few minutes, in a card: the duck builds; the words say what runs.
4
+ export default function MascotStateLoading() {
5
+ return (
6
+ <LoadingState
7
+ bird="duck"
8
+ size="sm"
9
+ layout="inline"
10
+ framed
11
+ className="w-96"
12
+ title="Building the preview"
13
+ description="About two minutes. You can leave this page."
14
+ />
15
+ );
16
+ }
@@ -0,0 +1,4 @@
1
+ import type { ComponentType } from "react";
2
+ /** A named example of the @krizaka/ui registry; `defaultOpen` opens what it opens (a dialog, a menu, toasts) at load. */
3
+ declare const Example: ComponentType<{ defaultOpen?: boolean }>;
4
+ export default Example;
@@ -0,0 +1,25 @@
1
+ "use client";
2
+
3
+ // registry/examples/mascot-state/native/default.tsx
4
+ import { Button, ErrorState, SuccessState } from "@krizaka/ui/native";
5
+ import { View } from "react-native";
6
+ import { jsx, jsxs } from "react/jsx-runtime";
7
+ function NativeMascotStateDefault() {
8
+ return /* @__PURE__ */ jsxs(View, { style: { width: 320, gap: 8 }, children: [
9
+ /* @__PURE__ */ jsx(SuccessState, { bird: "flamingo", size: "sm", animated: false, title: "Payment received", description: "120 credits are on your balance." }),
10
+ /* @__PURE__ */ jsx(
11
+ ErrorState,
12
+ {
13
+ bird: "falcon",
14
+ size: "sm",
15
+ animated: false,
16
+ title: "We could not verify this code",
17
+ description: "It may have expired. Ask for a new one.",
18
+ action: /* @__PURE__ */ jsx(Button, { variant: "secondary", label: "Send a new code" })
19
+ }
20
+ )
21
+ ] });
22
+ }
23
+ export {
24
+ NativeMascotStateDefault as default
25
+ };
@@ -0,0 +1,19 @@
1
+ import { Button, ErrorState, SuccessState } from "@krizaka/ui/native";
2
+ import { View } from "react-native";
3
+
4
+ // A payment received (the flamingo gets paid) and a verification that failed (the falcon watches).
5
+ export default function NativeMascotStateDefault() {
6
+ return (
7
+ <View style={{ width: 320, gap: 8 }}>
8
+ <SuccessState bird="flamingo" size="sm" animated={false} title="Payment received" description="120 credits are on your balance." />
9
+ <ErrorState
10
+ bird="falcon"
11
+ size="sm"
12
+ animated={false}
13
+ title="We could not verify this code"
14
+ description="It may have expired. Ask for a new one."
15
+ action={<Button variant="secondary" label="Send a new code" />}
16
+ />
17
+ </View>
18
+ );
19
+ }
@@ -0,0 +1,4 @@
1
+ import type { ComponentType } from "react";
2
+ /** A named example of the @krizaka/ui registry; `defaultOpen` opens what it opens (a dialog, a menu, toasts) at load. */
3
+ declare const Example: ComponentType<{ defaultOpen?: boolean }>;
4
+ export default Example;
@@ -0,0 +1,21 @@
1
+ "use client";
2
+
3
+ // registry/examples/mascot-state/success.tsx
4
+ import { Button } from "@krizaka/ui/button";
5
+ import { SuccessState } from "@krizaka/ui/mascot-state";
6
+ import { jsx } from "react/jsx-runtime";
7
+ function MascotStateSuccess() {
8
+ return /* @__PURE__ */ jsx(
9
+ SuccessState,
10
+ {
11
+ bird: "flamingo",
12
+ className: "w-96",
13
+ title: "Payment received",
14
+ description: "120 credits are on your balance. The receipt is in your email.",
15
+ action: /* @__PURE__ */ jsx(Button, { variant: "secondary", size: "sm", children: "See the receipt" })
16
+ }
17
+ );
18
+ }
19
+ export {
20
+ MascotStateSuccess as default
21
+ };
@@ -0,0 +1,19 @@
1
+ import { Button } from "@krizaka/ui/button";
2
+ import { SuccessState } from "@krizaka/ui/mascot-state";
3
+
4
+ // A payment received: the flamingo gets paid and answers; the receipt is the next step.
5
+ export default function MascotStateSuccess() {
6
+ return (
7
+ <SuccessState
8
+ bird="flamingo"
9
+ className="w-96"
10
+ title="Payment received"
11
+ description="120 credits are on your balance. The receipt is in your email."
12
+ action={
13
+ <Button variant="secondary" size="sm">
14
+ See the receipt
15
+ </Button>
16
+ }
17
+ />
18
+ );
19
+ }
@@ -0,0 +1,4 @@
1
+ import type { ComponentType } from "react";
2
+ /** A named example of the @krizaka/ui registry; `defaultOpen` opens what it opens (a dialog, a menu, toasts) at load. */
3
+ declare const Example: ComponentType<{ defaultOpen?: boolean }>;
4
+ export default Example;
@@ -0,0 +1,21 @@
1
+ "use client";
2
+
3
+ // registry/examples/mascot-state/welcome.tsx
4
+ import { Button } from "@krizaka/ui/button";
5
+ import { WelcomeState } from "@krizaka/ui/mascot-state";
6
+ import { jsx } from "react/jsx-runtime";
7
+ function MascotStateWelcome() {
8
+ return /* @__PURE__ */ jsx(
9
+ WelcomeState,
10
+ {
11
+ bird: "falcon",
12
+ className: "w-96",
13
+ title: "Welcome, Eric",
14
+ description: "First, protect your account with a second factor. It takes a minute.",
15
+ action: /* @__PURE__ */ jsx(Button, { variant: "primary", size: "sm", children: "Protect my account" })
16
+ }
17
+ );
18
+ }
19
+ export {
20
+ MascotStateWelcome as default
21
+ };
@@ -0,0 +1,19 @@
1
+ import { Button } from "@krizaka/ui/button";
2
+ import { WelcomeState } from "@krizaka/ui/mascot-state";
3
+
4
+ // The first step of an onboarding: the falcon keeps the account safe — the step is a second factor.
5
+ export default function MascotStateWelcome() {
6
+ return (
7
+ <WelcomeState
8
+ bird="falcon"
9
+ className="w-96"
10
+ title="Welcome, Eric"
11
+ description="First, protect your account with a second factor. It takes a minute."
12
+ action={
13
+ <Button variant="primary" size="sm">
14
+ Protect my account
15
+ </Button>
16
+ }
17
+ />
18
+ );
19
+ }
@@ -1,6 +1,6 @@
1
1
  import { Mascot,MASCOT_BIRDS } from "@krizaka/ui/mascots";
2
2
 
3
- // The five birds in the host's brand colours: blue on Krizaka, orange in Orazaka, violet in Orochia.
3
+ // The six birds in the host's brand colours: blue on Krizaka, orange in Orazaka, violet in Orochia, turquoise in Yazakia.
4
4
  export default function MascotFlock() {
5
5
  return (
6
6
  <div className="flex flex-wrap items-end gap-6">
@@ -0,0 +1,4 @@
1
+ import type { ComponentType } from "react";
2
+ /** A named example of the @krizaka/ui registry; `defaultOpen` opens what it opens (a dialog, a menu, toasts) at load. */
3
+ declare const Example: ComponentType<{ defaultOpen?: boolean }>;
4
+ export default Example;
@@ -0,0 +1,19 @@
1
+ "use client";
2
+
3
+ // registry/examples/mascots/lovebird.tsx
4
+ import { Button } from "@krizaka/ui/button";
5
+ import { Mascot } from "@krizaka/ui/mascots";
6
+ import { jsx, jsxs } from "react/jsx-runtime";
7
+ function MascotLovebird() {
8
+ return /* @__PURE__ */ jsxs("div", { className: "flex w-96 items-center gap-4 rounded-xl border border-border-default bg-surface-1 p-4", children: [
9
+ /* @__PURE__ */ jsx(Mascot, { bird: "lovebird", mood: "success", size: 88 }),
10
+ /* @__PURE__ */ jsxs("div", { className: "flex-1", children: [
11
+ /* @__PURE__ */ jsx("p", { className: "text-sm font-medium text-fg", children: "You are both interested" }),
12
+ /* @__PURE__ */ jsx("p", { className: "mt-1 text-sm text-fg-secondary", children: "Your introduction is open for seven days." }),
13
+ /* @__PURE__ */ jsx(Button, { variant: "primary", size: "sm", className: "mt-3", children: "Say hello" })
14
+ ] })
15
+ ] });
16
+ }
17
+ export {
18
+ MascotLovebird as default
19
+ };
@@ -0,0 +1,18 @@
1
+ import { Button } from "@krizaka/ui/button";
2
+ import { Mascot } from "@krizaka/ui/mascots";
3
+
4
+ // The lovebird introduces: two people who chose each other meet — the words and the next step beside it.
5
+ export default function MascotLovebird() {
6
+ return (
7
+ <div className="flex w-96 items-center gap-4 rounded-xl border border-border-default bg-surface-1 p-4">
8
+ <Mascot bird="lovebird" mood="success" size={88} />
9
+ <div className="flex-1">
10
+ <p className="text-sm font-medium text-fg">You are both interested</p>
11
+ <p className="mt-1 text-sm text-fg-secondary">Your introduction is open for seven days.</p>
12
+ <Button variant="primary" size="sm" className="mt-3">
13
+ Say hello
14
+ </Button>
15
+ </div>
16
+ </div>
17
+ );
18
+ }
@@ -0,0 +1,4 @@
1
+ import type { ComponentType } from "react";
2
+ /** A named example of the @krizaka/ui registry; `defaultOpen` opens what it opens (a dialog, a menu, toasts) at load. */
3
+ declare const Example: ComponentType<{ defaultOpen?: boolean }>;
4
+ export default Example;
@@ -0,0 +1,21 @@
1
+ "use client";
2
+
3
+ // registry/examples/mascots/native/lovebird.tsx
4
+ import { Mascot, Txt } from "@krizaka/ui/native";
5
+ import { View } from "react-native";
6
+ import { jsx, jsxs } from "react/jsx-runtime";
7
+ function NativeMascotLovebird() {
8
+ return /* @__PURE__ */ jsxs(View, { style: { flexDirection: "row", gap: 16, alignItems: "flex-end" }, children: [
9
+ /* @__PURE__ */ jsxs(View, { style: { alignItems: "center", gap: 4 }, children: [
10
+ /* @__PURE__ */ jsx(Mascot, { bird: "lovebird", mood: "welcome", size: 80 }),
11
+ /* @__PURE__ */ jsx(Txt, { variant: "caption", children: "welcome" })
12
+ ] }),
13
+ /* @__PURE__ */ jsxs(View, { style: { alignItems: "center", gap: 4 }, children: [
14
+ /* @__PURE__ */ jsx(Mascot, { bird: "lovebird", mood: "success", size: 80 }),
15
+ /* @__PURE__ */ jsx(Txt, { variant: "caption", children: "mutual" })
16
+ ] })
17
+ ] });
18
+ }
19
+ export {
20
+ NativeMascotLovebird as default
21
+ };
@@ -0,0 +1,18 @@
1
+ import { Mascot, Txt } from "@krizaka/ui/native";
2
+ import { View } from "react-native";
3
+
4
+ // The lovebird introduces two people: welcoming, then celebrating a mutual interest.
5
+ export default function NativeMascotLovebird() {
6
+ return (
7
+ <View style={{ flexDirection: "row", gap: 16, alignItems: "flex-end" }}>
8
+ <View style={{ alignItems: "center", gap: 4 }}>
9
+ <Mascot bird="lovebird" mood="welcome" size={80} />
10
+ <Txt variant="caption">welcome</Txt>
11
+ </View>
12
+ <View style={{ alignItems: "center", gap: 4 }}>
13
+ <Mascot bird="lovebird" mood="success" size={80} />
14
+ <Txt variant="caption">mutual</Txt>
15
+ </View>
16
+ </View>
17
+ );
18
+ }
@@ -0,0 +1,4 @@
1
+ import type { ComponentType } from "react";
2
+ /** A named example of the @krizaka/ui registry; `defaultOpen` opens what it opens (a dialog, a menu, toasts) at load. */
3
+ declare const Example: ComponentType<{ defaultOpen?: boolean }>;
4
+ export default Example;