@krizaka/ui 2.9.0 → 2.10.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 (226) hide show
  1. package/README.md +41 -5
  2. package/dist/blocks.css +247 -0
  3. package/dist/catalogue-page.d.ts +34 -0
  4. package/dist/catalogue-page.js +26 -0
  5. package/dist/catalogue-page.js.map +1 -0
  6. package/dist/changelog-page.d.ts +50 -0
  7. package/dist/changelog-page.js +27 -0
  8. package/dist/changelog-page.js.map +1 -0
  9. package/dist/{chunk-NOVUREEC.js → chunk-JZPVUJIX.js} +25 -3
  10. package/dist/chunk-JZPVUJIX.js.map +1 -0
  11. package/dist/chunk-KNBYZGSQ.js +11 -0
  12. package/dist/chunk-KNBYZGSQ.js.map +1 -0
  13. package/dist/component-page.d.ts +41 -0
  14. package/dist/component-page.js +17 -0
  15. package/dist/component-page.js.map +1 -0
  16. package/dist/contact-page.d.ts +31 -0
  17. package/dist/contact-page.js +26 -0
  18. package/dist/contact-page.js.map +1 -0
  19. package/dist/docs-article-page.d.ts +54 -0
  20. package/dist/docs-article-page.js +29 -0
  21. package/dist/docs-article-page.js.map +1 -0
  22. package/dist/docs-hub-page.d.ts +72 -0
  23. package/dist/docs-hub-page.js +45 -0
  24. package/dist/docs-hub-page.js.map +1 -0
  25. package/dist/error-page.d.ts +22 -0
  26. package/dist/error-page.js +23 -0
  27. package/dist/error-page.js.map +1 -0
  28. package/dist/gallery-page.d.ts +50 -0
  29. package/dist/gallery-page.js +30 -0
  30. package/dist/gallery-page.js.map +1 -0
  31. package/dist/{geometry-CXrAW34x.d.ts → geometry-CbOU4rtL.d.ts} +4 -4
  32. package/dist/how-it-works-page.d.ts +48 -0
  33. package/dist/how-it-works-page.js +28 -0
  34. package/dist/how-it-works-page.js.map +1 -0
  35. package/dist/index.d.ts +11 -2
  36. package/dist/index.js +93 -5
  37. package/dist/index.js.map +1 -1
  38. package/dist/landing-page.d.ts +58 -0
  39. package/dist/landing-page.js +42 -0
  40. package/dist/landing-page.js.map +1 -0
  41. package/dist/legal-page.d.ts +34 -0
  42. package/dist/legal-page.js +18 -0
  43. package/dist/legal-page.js.map +1 -0
  44. package/dist/longform-page.d.ts +42 -0
  45. package/dist/longform-page.js +29 -0
  46. package/dist/longform-page.js.map +1 -0
  47. package/dist/mascot-quote.d.ts +4 -4
  48. package/dist/mascot-quote.js +23 -1
  49. package/dist/mascot-quote.js.map +1 -1
  50. package/dist/mascot-state.d.ts +2 -2
  51. package/dist/mascot-state.js +1 -1
  52. package/dist/mascot-state.js.map +1 -1
  53. package/dist/mascots.d.ts +4 -4
  54. package/dist/mascots.js +1 -1
  55. package/dist/native.d.ts +16 -9
  56. package/dist/native.js +183 -74
  57. package/dist/native.js.map +1 -1
  58. package/dist/pricing-page.d.ts +62 -0
  59. package/dist/pricing-page.js +71 -0
  60. package/dist/pricing-page.js.map +1 -0
  61. package/dist/product-page.d.ts +83 -0
  62. package/dist/product-page.js +60 -0
  63. package/dist/product-page.js.map +1 -0
  64. package/dist/status-page.d.ts +42 -0
  65. package/dist/status-page.js +28 -0
  66. package/dist/status-page.js.map +1 -0
  67. package/package.json +233 -7
  68. package/registry/achievement.json +1 -1
  69. package/registry/action-bar.json +1 -1
  70. package/registry/alert.json +1 -1
  71. package/registry/app-shell.json +1 -1
  72. package/registry/argument-card.json +1 -1
  73. package/registry/audio-player.json +1 -1
  74. package/registry/auth-layout.json +1 -1
  75. package/registry/avatar.json +1 -1
  76. package/registry/badge.json +1 -1
  77. package/registry/button.json +1 -1
  78. package/registry/card-grid.json +1 -1
  79. package/registry/card.json +1 -1
  80. package/registry/catalogue-page.json +240 -0
  81. package/registry/changelog-page.json +226 -0
  82. package/registry/checkbox.json +1 -1
  83. package/registry/chip-link.json +1 -1
  84. package/registry/chip.json +1 -1
  85. package/registry/choice-grid.json +1 -1
  86. package/registry/code-block.json +1 -1
  87. package/registry/combobox.json +1 -1
  88. package/registry/command.json +1 -1
  89. package/registry/component-page.json +227 -0
  90. package/registry/confirm-button.json +1 -1
  91. package/registry/contact-page.json +212 -0
  92. package/registry/continue-prompt.json +1 -1
  93. package/registry/countdown.json +1 -1
  94. package/registry/cta-panel.json +1 -1
  95. package/registry/dashboard-layout.json +1 -1
  96. package/registry/data-table.json +1 -1
  97. package/registry/date-picker.json +1 -1
  98. package/registry/decision-list.json +1 -1
  99. package/registry/detail-layout.json +1 -1
  100. package/registry/dialog.json +1 -1
  101. package/registry/docs-article-page.json +242 -0
  102. package/registry/docs-hub-page.json +270 -0
  103. package/registry/docs-layout.json +1 -1
  104. package/registry/dropdown-menu.json +1 -1
  105. package/registry/empty-state.json +1 -1
  106. package/registry/error-page.json +183 -0
  107. package/registry/examples/catalogue-page/components.d.ts +4 -0
  108. package/registry/examples/catalogue-page/components.js +33 -0
  109. package/registry/examples/catalogue-page/components.tsx +36 -0
  110. package/registry/examples/changelog-page/releases.d.ts +4 -0
  111. package/registry/examples/changelog-page/releases.js +44 -0
  112. package/registry/examples/changelog-page/releases.tsx +39 -0
  113. package/registry/examples/component-page/button.d.ts +4 -0
  114. package/registry/examples/component-page/button.js +33 -0
  115. package/registry/examples/component-page/button.tsx +30 -0
  116. package/registry/examples/contact-page/team.d.ts +4 -0
  117. package/registry/examples/contact-page/team.js +39 -0
  118. package/registry/examples/contact-page/team.tsx +38 -0
  119. package/registry/examples/docs-article-page/cli.d.ts +4 -0
  120. package/registry/examples/docs-article-page/cli.js +33 -0
  121. package/registry/examples/docs-article-page/cli.tsx +38 -0
  122. package/registry/examples/docs-hub-page/krizaka.d.ts +4 -0
  123. package/registry/examples/docs-hub-page/krizaka.js +46 -0
  124. package/registry/examples/docs-hub-page/krizaka.tsx +37 -0
  125. package/registry/examples/error-page/not-found.d.ts +4 -0
  126. package/registry/examples/error-page/not-found.js +24 -0
  127. package/registry/examples/error-page/not-found.tsx +19 -0
  128. package/registry/examples/gallery-page/made-here.d.ts +4 -0
  129. package/registry/examples/gallery-page/made-here.js +34 -0
  130. package/registry/examples/gallery-page/made-here.tsx +32 -0
  131. package/registry/examples/how-it-works-page/orazaka.d.ts +4 -0
  132. package/registry/examples/how-it-works-page/orazaka.js +30 -0
  133. package/registry/examples/how-it-works-page/orazaka.tsx +26 -0
  134. package/registry/examples/landing-page/krizaka.d.ts +4 -0
  135. package/registry/examples/landing-page/krizaka.js +44 -0
  136. package/registry/examples/landing-page/krizaka.tsx +44 -0
  137. package/registry/examples/legal-page/privacy.d.ts +4 -0
  138. package/registry/examples/legal-page/privacy.js +24 -0
  139. package/registry/examples/legal-page/privacy.tsx +19 -0
  140. package/registry/examples/longform-page/story.d.ts +4 -0
  141. package/registry/examples/longform-page/story.js +38 -0
  142. package/registry/examples/longform-page/story.tsx +35 -0
  143. package/registry/examples/mascots/crane.d.ts +4 -0
  144. package/registry/examples/mascots/crane.js +19 -0
  145. package/registry/examples/mascots/crane.tsx +18 -0
  146. package/registry/examples/mascots/flock.tsx +2 -1
  147. package/registry/examples/mascots/native/crane.d.ts +4 -0
  148. package/registry/examples/mascots/native/crane.dark.png +0 -0
  149. package/registry/examples/mascots/native/crane.js +21 -0
  150. package/registry/examples/mascots/native/crane.light.png +0 -0
  151. package/registry/examples/mascots/native/crane.tsx +18 -0
  152. package/registry/examples/pricing-page/credits.d.ts +4 -0
  153. package/registry/examples/pricing-page/credits.js +41 -0
  154. package/registry/examples/pricing-page/credits.tsx +33 -0
  155. package/registry/examples/product-page/orazaka.d.ts +4 -0
  156. package/registry/examples/product-page/orazaka.js +44 -0
  157. package/registry/examples/product-page/orazaka.tsx +36 -0
  158. package/registry/examples/status-page/building.d.ts +4 -0
  159. package/registry/examples/status-page/building.js +29 -0
  160. package/registry/examples/status-page/building.tsx +25 -0
  161. package/registry/examples/status-page/operational.d.ts +4 -0
  162. package/registry/examples/status-page/operational.js +26 -0
  163. package/registry/examples/status-page/operational.tsx +20 -0
  164. package/registry/field.json +1 -1
  165. package/registry/file-upload.json +1 -1
  166. package/registry/filter-bar.json +1 -1
  167. package/registry/gallery-page.json +256 -0
  168. package/registry/glow-card.json +1 -1
  169. package/registry/goal-gauge.json +1 -1
  170. package/registry/how-it-works-page.json +242 -0
  171. package/registry/image-cropper.json +1 -1
  172. package/registry/index.json +309 -5
  173. package/registry/iso.json +1 -1
  174. package/registry/kbd.json +1 -1
  175. package/registry/landing-page.json +242 -0
  176. package/registry/landscape.json +1 -1
  177. package/registry/legal-page.json +199 -0
  178. package/registry/link-card.json +1 -1
  179. package/registry/loader.json +1 -1
  180. package/registry/longform-page.json +213 -0
  181. package/registry/marketing-layout.json +1 -1
  182. package/registry/marquee.json +1 -1
  183. package/registry/mascot-quote.json +6 -6
  184. package/registry/mascot-state.json +34 -34
  185. package/registry/mascots.json +41 -21
  186. package/registry/media-capture.json +1 -1
  187. package/registry/meter.json +1 -1
  188. package/registry/nav-bar.json +1 -1
  189. package/registry/number-ticker.json +1 -1
  190. package/registry/page-header.json +1 -1
  191. package/registry/page-hero.json +1 -1
  192. package/registry/page.json +1 -1
  193. package/registry/pagination.json +1 -1
  194. package/registry/pointer-light.json +1 -1
  195. package/registry/popover.json +1 -1
  196. package/registry/pricing-page.json +245 -0
  197. package/registry/product-page.json +319 -0
  198. package/registry/profile-card.json +1 -1
  199. package/registry/progress.json +1 -1
  200. package/registry/promise-card.json +1 -1
  201. package/registry/radio-group.json +1 -1
  202. package/registry/scroll-stage.json +1 -1
  203. package/registry/search-field.json +1 -1
  204. package/registry/section-backdrop.json +1 -1
  205. package/registry/separator.json +1 -1
  206. package/registry/settings-layout.json +1 -1
  207. package/registry/skeleton.json +1 -1
  208. package/registry/slider.json +1 -1
  209. package/registry/slot.json +1 -1
  210. package/registry/spinner.json +1 -1
  211. package/registry/split-view.json +1 -1
  212. package/registry/stage-banner.json +1 -1
  213. package/registry/stat.json +1 -1
  214. package/registry/status-page.json +263 -0
  215. package/registry/stepper.json +1 -1
  216. package/registry/switch.json +1 -1
  217. package/registry/tabs.json +1 -1
  218. package/registry/tag-input.json +1 -1
  219. package/registry/terminal-replay.json +1 -1
  220. package/registry/theme.json +1 -1
  221. package/registry/toast.json +1 -1
  222. package/registry/toc.json +1 -1
  223. package/registry/tooltip.json +1 -1
  224. package/registry/video-player.json +1 -1
  225. package/registry/video-trimmer.json +1 -1
  226. package/dist/chunk-NOVUREEC.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/mascots/geometry.ts","../src/mascots/mascot.tsx"],"sourcesContent":["/**\n * The Krizaka flock — the geometry of the mascots, drawn by the web `Mascot` (`./mascot.tsx`) and the native one\n * (`../native/mascots.tsx`). Five birds that have carried the Krizaka story since the first site (the sentry falcon,\n * the owl that reads, the developer duck, the flamingo that answers, the carrier pigeon), the lovebird that\n * introduces (2026-10, with Yazakia: \"l'inséparable présente\") and the crane that listens (2026-10, with Yororis:\n * \"la grue écoute\"), redrawn on one 120 × 120 grid so that any bird can wear any mood.\n *\n * Colours are roles, never fixed: `brand` (the default) paints a bird in the host's accent (`--kz-accent`,\n * `--kz-accent-2`), so the same falcon is blue on krizaka.com, orange in Orazaka and violet in Orochia; `own` gives\n * each bird the signature palette it has in the Krizaka story (the brand layer's exception, like the marks). Shades\n * and highlights are black and white at a low opacity over the role, so they hold in both themes.\n */\n\nexport const MASCOT_BIRDS = [\"falcon\", \"owl\", \"duck\", \"flamingo\", \"pigeon\", \"lovebird\", \"crane\"] as const;\nexport type MascotBird = (typeof MASCOT_BIRDS)[number];\n\nexport const MASCOT_MOODS = [\"welcome\", \"thinking\", \"success\", \"empty\", \"error\"] as const;\nexport type MascotMood = (typeof MASCOT_MOODS)[number];\n\nexport type MascotTone = \"brand\" | \"own\";\n\ntype Point = readonly [number, number];\n\nexport interface BirdGeometry {\n /** The ground shadow: centre x, y and radii. */\n readonly shadow: readonly [number, number, number, number];\n /** Legs and feet, stroked in the beak colour. */\n readonly legs: readonly string[];\n /** Drawn behind the body (tail, parcel strings). */\n readonly back?: readonly string[];\n readonly body: string;\n readonly belly: string;\n /** Left then right wing, and the point each one turns around. */\n readonly wings: readonly [{ readonly d: string; readonly pivot: Point }, { readonly d: string; readonly pivot: Point }];\n /** A neck, stroked in the body colour with this width (the flamingo). */\n readonly neck?: { readonly d: string; readonly width: number };\n /** The head: a circle. */\n readonly head: { readonly cx: number; readonly cy: number; readonly r: number };\n /** Ear tufts, a crest, a visor's frame: filled with the detail colour. */\n readonly details: readonly string[];\n /** A band behind the eyes (the falcon's visor), in the page's surface. */\n readonly visor?: { readonly x: number; readonly y: number; readonly w: number; readonly h: number };\n /** Glasses (the duck): stroked rings around the eyes. */\n readonly glasses?: boolean;\n readonly beak: string;\n /** The eyes: centres, the radius of the white, the radius of the pupil (no white when `white` is 0). */\n readonly eyes: { readonly at: readonly Point[]; readonly white: number; readonly pupil: number };\n /** The parcel the pigeon carries: its three faces. */\n readonly parcel?: readonly [string, string, string];\n}\n\nconst mirror = (d: string) => d.replace(/(-?\\d+(?:\\.\\d+)?) (-?\\d+(?:\\.\\d+)?)/g, (_, x: string, y: string) => `${120 - Number(x)} ${y}`);\n\nconst falconWing = \"M29 58 C17 68 19 88 37 86 C31 76 31 66 29 58 Z\";\nconst pigeonWing = \"M36 58 C20 50 16 80 38 84 C34 74 34 66 36 58 Z\";\n\nexport const BIRDS: Readonly<Record<MascotBird, BirdGeometry>> = {\n falcon: {\n shadow: [60, 110, 26, 3.5],\n legs: [\"M51 94 L48 108 M44 108 L52 108\", \"M69 94 L72 108 M68 108 L76 108\"],\n body: \"M30 62 C30 42 90 42 90 62 C90 88 78 98 60 98 C42 98 30 88 30 62 Z\",\n belly: \"M41 66 C41 55 79 55 79 66 C79 82 71 90 60 90 C49 90 41 82 41 66 Z\",\n wings: [\n { d: falconWing, pivot: [29, 58] },\n { d: mirror(falconWing), pivot: [91, 58] },\n ],\n head: { cx: 60, cy: 38, r: 22 },\n details: [\"M46 20 L52 10 L56 19 Z\", \"M74 20 L68 10 L64 19 Z\"],\n visor: { x: 41, y: 29, w: 38, h: 13 },\n beak: \"M54 45 L66 45 L60 57 Z\",\n eyes: { at: [[50, 35.5], [70, 35.5]], white: 0, pupil: 3.2 },\n },\n owl: {\n shadow: [60, 110, 24, 3.5],\n legs: [\"M53 100 L51 107 M47 107 L55 107\", \"M67 100 L69 107 M65 107 L73 107\"],\n body: \"M28 52 C28 20 92 20 92 52 C92 86 82 102 60 102 C38 102 28 86 28 52 Z\",\n belly: \"M42 66 C42 52 78 52 78 66 C78 86 72 94 60 94 C48 94 42 86 42 66 Z\",\n wings: [\n { d: \"M29 58 C18 68 20 88 36 90 C32 78 32 68 29 58 Z\", pivot: [29, 58] },\n { d: mirror(\"M29 58 C18 68 20 88 36 90 C32 78 32 68 29 58 Z\"), pivot: [91, 58] },\n ],\n head: { cx: 60, cy: 42, r: 0 },\n details: [\"M31 20 L47 31 L31 41 Z\", \"M89 20 L73 31 L89 41 Z\"],\n beak: \"M55 50 L65 50 L60 59 Z\",\n eyes: { at: [[47, 41], [73, 41]], white: 10, pupil: 4 },\n },\n duck: {\n shadow: [60, 110, 30, 3.5],\n legs: [],\n back: [\"M88 80 C100 76 104 66 96 62 C98 70 94 74 88 74 Z\"],\n body: \"M26 80 C26 62 94 62 94 80 C94 100 82 106 60 106 C38 106 26 100 26 80 Z\",\n belly: \"M38 84 C38 72 82 72 82 84 C82 96 74 101 60 101 C46 101 38 96 38 84 Z\",\n wings: [\n { d: \"M27 74 C14 80 18 98 35 96 C31 88 29 80 27 74 Z\", pivot: [27, 74] },\n { d: mirror(\"M27 74 C14 80 18 98 35 96 C31 88 29 80 27 74 Z\"), pivot: [93, 74] },\n ],\n head: { cx: 60, cy: 42, r: 23 },\n details: [\"M57 20 C54 11 63 8 66 14 C62 13 60 16 61 20 Z\"],\n glasses: true,\n beak: \"M43 51 C43 46 55 45 60 45 C65 45 77 46 77 51 C77 56 66 60 60 60 C54 60 43 56 43 51 Z\",\n eyes: { at: [[51, 37], [69, 37]], white: 0, pupil: 2.6 },\n },\n flamingo: {\n shadow: [60, 110, 20, 3],\n legs: [\"M56 86 L55 97 L58 108 M53 108 L62 108\", \"M65 86 L66 108 M62 108 L71 108\"],\n body: \"M38 70 C38 54 88 54 88 70 C88 86 76 90 62 90 C48 90 38 86 38 70 Z\",\n belly: \"M46 72 C46 63 80 63 80 72 C80 82 72 85 63 85 C54 85 46 82 46 72 Z\",\n wings: [\n { d: \"M42 64 C30 68 32 84 47 84 C43 76 43 70 42 64 Z\", pivot: [42, 64] },\n { d: \"M84 64 C96 68 94 84 79 84 C83 76 83 70 84 64 Z\", pivot: [84, 64] },\n ],\n neck: { d: \"M58 60 C58 42 40 34 46 22\", width: 7 },\n head: { cx: 48, cy: 18, r: 11 },\n details: [],\n beak: \"M38 16 C28 18 29 28 24 33 C33 28 38 23 40 20 Z\",\n eyes: { at: [[46, 15]], white: 3.2, pupil: 1.8 },\n },\n pigeon: {\n shadow: [60, 112, 22, 3],\n legs: [\"M52 94 L51 99 M48 99 L54 99\", \"M68 94 L69 99 M66 99 L72 99\"],\n back: [\"M53 98 L52 103\", \"M67 98 L68 103\", \"M30 68 C16 72 14 62 28 56 C17 57 15 49 32 48 Z\"],\n body: \"M34 64 C34 44 86 44 86 64 C86 86 74 96 60 96 C46 96 34 86 34 64 Z\",\n belly: \"M43 68 C43 57 77 57 77 68 C77 82 70 88 60 88 C50 88 43 82 43 68 Z\",\n wings: [\n { d: pigeonWing, pivot: [36, 58] },\n { d: mirror(pigeonWing), pivot: [84, 58] },\n ],\n head: { cx: 60, cy: 36, r: 19 },\n details: [\"M54 18 C56 12 64 12 66 18 C63 16 57 16 54 18 Z\"],\n beak: \"M55 41 L65 41 L60 50 Z\",\n eyes: { at: [[52, 33], [68, 33]], white: 5, pupil: 2.4 },\n parcel: [\"M60 100 L71 105 L60 110 L49 105 Z\", \"M49 105 L60 110 L60 118 L49 113 Z\", \"M71 105 L60 110 L60 118 L71 113 Z\"],\n },\n /**\n * The lovebird — the inseparable that introduces two people. A plump little parrot: a short tail, a round head\n * with its coloured face (the detail colour), the white eye-rings of the species and a short hooked beak.\n */\n lovebird: {\n shadow: [60, 110, 23, 3.5],\n legs: [\"M53 96 L52 106 M48 106 L56 106\", \"M67 96 L68 106 M64 106 L72 106\"],\n back: [\"M74 90 C82 98 88 104 95 103 C91 98 86 91 82 84 Z\"],\n body: \"M32 66 C32 46 88 46 88 66 C88 90 76 100 60 100 C44 100 32 90 32 66 Z\",\n belly: \"M42 70 C42 59 78 59 78 70 C78 85 70 92 60 92 C50 92 42 85 42 70 Z\",\n wings: [\n { d: \"M33 60 C20 68 22 88 40 90 C35 80 34 70 33 60 Z\", pivot: [33, 60] },\n { d: mirror(\"M33 60 C20 68 22 88 40 90 C35 80 34 70 33 60 Z\"), pivot: [87, 60] },\n ],\n head: { cx: 60, cy: 38, r: 21 },\n details: [\"M43 40 C42 28 51 22 60 22 C69 22 78 28 77 40 C76 50 68 55 60 55 C52 55 44 50 43 40 Z\"],\n beak: \"M55 44 C55 40 65 40 65 44 C65 50 62 54 60 55 C58 54 55 50 55 44 Z\",\n eyes: { at: [[51, 36], [69, 36]], white: 4.6, pupil: 2.4 },\n },\n /**\n * The crane — the one that listens: posed, unhurried, drawn in one line. A tall wader seen in profile, standing still\n * on two straight legs, the neck a single stroke up to a small head with its crown (the detail colour) and a long,\n * straight beak; the folded wings low on its back. The flamingo bends and answers; the crane stands and listens.\n */\n crane: {\n shadow: [62, 110, 20, 3],\n legs: [\"M56 87 L55 108 M51 108 L59 108\", \"M67 87 L68 108 M64 108 L73 108\"],\n body: \"M40 66 C38 54 84 54 86 68 C88 82 76 88 62 88 C48 88 40 80 40 66 Z\",\n belly: \"M48 70 C48 62 78 62 79 70 C80 79 72 84 63 84 C54 84 48 79 48 70 Z\",\n wings: [\n { d: \"M44 62 C33 68 35 82 49 83 C45 76 45 69 44 62 Z\", pivot: [44, 62] },\n { d: \"M82 62 C93 67 96 82 80 84 C83 76 83 69 82 62 Z\", pivot: [82, 62] },\n ],\n neck: { d: \"M52 62 C48 47 52 37 48 26\", width: 6 },\n head: { cx: 47, cy: 21, r: 8.5 },\n details: [\"M41 16.5 C42 11 52 11 53 16.5 C50 14.6 44 14.6 41 16.5 Z\"],\n beak: \"M40.5 18.5 L19 22.5 L40.5 25.5 Z\",\n eyes: { at: [[45.5, 19.5]], white: 2.8, pupil: 1.6 },\n },\n};\n\n/** What a mood adds around the bird: a badge, a thought, an empty tray. */\nexport const MOOD_PARTS = {\n /** The badge of `success` and `error`, top right. */\n badge: { cx: 98, cy: 22, r: 11 },\n check: \"M92.5 22.5 L96.8 26.6 L103.6 18.4\",\n bang: { line: \"M98 15.5 L98 23.5\", dot: [98, 28] as Point },\n /** `thinking`: three dots rising to the right of the head. */\n dots: [\n [88, 26, 2.6],\n [96, 19, 3.2],\n [105, 11, 3.8],\n ] as const,\n /** `empty`: an open tray beside the bird. */\n tray: \"M90 96 L110 96 L107 108 L93 108 Z\",\n /** `success`: two sparkles. */\n sparkles: [\"M16 26 L18 31 L23 33 L18 35 L16 40 L14 35 L9 33 L14 31 Z\", \"M104 52 L105.2 55 L108 56 L105.2 57 L104 60 L102.8 57 L100 56 L102.8 55 Z\"],\n} as const;\n\n/** The happy eye of `success`: an arch. */\nexport const archEye = ([x, y]: Point, r: number) => `M${x - r} ${y + r * 0.45} Q${x} ${y - r * 1.15} ${x + r} ${y + r * 0.45}`;\n/** The lowered lid of `empty`: a line across the eye. */\nexport const lidEye = ([x, y]: Point, r: number) => `M${x - r} ${y + 0.4} L${x + r} ${y + 0.4}`;\n/** The heavy lid of `empty` over an eye with a white: its upper half. */\nexport const upperLid = ([x, y]: Point, r: number) => `M${x - r} ${y} A${r} ${r} 0 0 1 ${x + r} ${y} Z`;\n/** The worried brow of `error`, above one eye (`side` -1 left, 1 right). */\nexport const brow = ([x, y]: Point, r: number, side: number) =>\n `M${x - r * 1.1} ${y - r * 1.25 - (side < 0 ? 0 : r * 0.7)} L${x + r * 1.1} ${y - r * 1.5 - (side < 0 ? r * 0.7 : 0)}`;\n\nexport interface MascotPalette {\n /** Top and bottom of the body gradient. */\n readonly from: string;\n readonly to: string;\n /** Wings and details (tufts, crest). */\n readonly wing: string;\n readonly detail: string;\n /** Beak and feet. */\n readonly beak: string;\n /** The pupils (and the falcon's visor lights). */\n readonly eye: string;\n}\n\n/** The signature palettes of the Krizaka story (`tone=\"own\"`), from the first drawings of each bird. */\nexport const OWN_PALETTES: Readonly<Record<MascotBird, MascotPalette>> = {\n falcon: { from: \"#ff9f00\", to: \"#ff2a00\", wing: \"#d84315\", detail: \"#b4320d\", beak: \"#ffb300\", eye: \"#00c8d4\" },\n owl: { from: \"#a78bfa\", to: \"#6d28d9\", wing: \"#7c3aed\", detail: \"#5b21b6\", beak: \"#fbbf24\", eye: \"#1f2937\" },\n duck: { from: \"#f43f5e\", to: \"#be123c\", wing: \"#db2777\", detail: \"#9f1239\", beak: \"#fbbf24\", eye: \"#1f2937\" },\n flamingo: { from: \"#f9a8d4\", to: \"#db2777\", wing: \"#ec4899\", detail: \"#be185d\", beak: \"#fbbf24\", eye: \"#1f2937\" },\n pigeon: { from: \"#22d3ee\", to: \"#6366f1\", wing: \"#a855f7\", detail: \"#4338ca\", beak: \"#f59e0b\", eye: \"#1f2937\" },\n lovebird: { from: \"#6ee7b7\", to: \"#059669\", wing: \"#047857\", detail: \"#fb7185\", beak: \"#f97316\", eye: \"#1f2937\" },\n // The sandhill crane (grue du Canada): sand-grey plumage, its red crown, dark legs and beak.\n crane: { from: \"#ebe3d6\", to: \"#9c8f80\", wing: \"#7d7266\", detail: \"#dc2626\", beak: \"#44403c\", eye: \"#1f2937\" },\n};\n\n/** Fixed light and shade, laid at a low opacity over a role (they read on both themes). */\nexport const LIGHT = \"#ffffff\";\nexport const SHADE = \"#000000\";\n/** The parcel's faces (pigeon). */\nexport const PARCEL = [\"#f59e0b\", \"#d97706\", \"#b45309\"] as const;\n","// The Krizaka flock on the web: one bird, one mood, drawn from ./geometry in the host's brand colours.\nimport type * as React from \"react\";\nimport { useId } from \"react\";\n\nimport { archEye, BIRDS, brow, lidEye, LIGHT, type MascotBird, type MascotMood, type MascotPalette, type MascotTone, MOOD_PARTS, OWN_PALETTES, PARCEL, SHADE, upperLid } from \"./geometry\";\n\nconst CSS = `\n.kzb-bird { transform-box: view-box; transform-origin: 60px 108px; }\n.kzb-eye { transform-box: fill-box; transform-origin: center; }\n.kzb-wing { transform-box: view-box; }\n[data-animated] .kzb-bird { animation: kzb-bob 3.6s ease-in-out infinite; }\n[data-animated] .kzb-blink { animation: kzb-blink 5.2s ease-in-out infinite; }\n[data-animated][data-mood=\"welcome\"] .kzb-wing-r { animation: kzb-wave 1.1s ease-in-out infinite alternate; }\n[data-animated][data-mood=\"thinking\"] .kzb-dot { animation: kzb-dot 1.5s ease-in-out infinite; }\n[data-animated][data-mood=\"thinking\"] .kzb-dot:nth-child(2) { animation-delay: .2s; }\n[data-animated][data-mood=\"thinking\"] .kzb-dot:nth-child(3) { animation-delay: .4s; }\n[data-animated][data-mood=\"success\"] .kzb-bird { animation: kzb-hop 1.6s cubic-bezier(.3,1.6,.5,1) 1, kzb-bob 3.6s ease-in-out 1.6s infinite; }\n[data-animated][data-mood=\"success\"] .kzb-badge { animation: kzb-pop .5s cubic-bezier(.3,1.6,.5,1) .3s both; }\n[data-animated][data-mood=\"success\"] .kzb-sparkle { animation: kzb-twinkle 2.4s ease-in-out infinite; }\n[data-animated][data-mood=\"error\"] .kzb-bird { animation: kzb-shake .5s ease-in-out .2s 2, kzb-bob 3.6s ease-in-out 1.2s infinite; }\n[data-animated][data-mood=\"empty\"] .kzb-bird { animation: kzb-sway 5s ease-in-out infinite; }\n.kzb-badge, .kzb-sparkle, .kzb-dot { transform-box: fill-box; transform-origin: center; }\n@keyframes kzb-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2.5px); } }\n@keyframes kzb-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }\n@keyframes kzb-wave { from { transform: rotate(-8deg); } to { transform: rotate(-38deg); } }\n@keyframes kzb-dot { 0%, 100% { opacity: .35; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-2px); } }\n@keyframes kzb-hop { 0% { transform: translateY(0); } 30% { transform: translateY(-9px); } 60% { transform: translateY(0); } 100% { transform: translateY(0); } }\n@keyframes kzb-pop { from { transform: scale(0); } to { transform: scale(1); } }\n@keyframes kzb-twinkle { 0%, 100% { opacity: .25; transform: scale(.7); } 50% { opacity: 1; transform: scale(1); } }\n@keyframes kzb-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }\n@keyframes kzb-sway { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-2deg); } }\n@media (prefers-reduced-motion: reduce) {\n .kzb-bird, .kzb-blink, .kzb-wing-r, .kzb-dot, .kzb-badge, .kzb-sparkle { animation: none !important; }\n}\n`;\n\n/** The host's roles (`tone=\"brand\"`): the accent paints the bird, so it wears the product it is shown in. */\nconst BRAND: MascotPalette = {\n from: \"var(--kz-accent-2, var(--kz-accent))\",\n to: \"var(--kz-accent)\",\n wing: \"var(--kz-accent)\",\n detail: \"var(--kz-accent-2, var(--kz-accent))\",\n beak: \"var(--kz-warning)\",\n eye: \"var(--kz-text-primary)\",\n};\nconst OUTLINE = \"var(--kz-border-strong, color-mix(in srgb, currentColor 35%, transparent))\";\nconst SURFACE = \"var(--kz-surface-0)\";\n\nexport type MascotProps = Omit<React.ComponentProps<\"svg\">, \"children\"> & {\n /** Which bird of the flock: `falcon` (watch, security), `owl` (reading, documents), `duck` (building, code), `flamingo` (answers, support), `pigeon` (delivery, notifications), `lovebird` (introductions, two people who meet), `crane` (listening, a calm moment). */\n bird?: MascotBird;\n /** What the moment is: `welcome` (onboarding), `thinking` (a long task running), `success` (it is done), `empty` (nothing here yet), `error` (it failed). */\n mood?: MascotMood;\n /** `brand` (default): the host's accent, so the bird wears the product it is in. `own`: the bird's signature colours of the Krizaka story. */\n tone?: MascotTone;\n /** Width and height in pixels. */\n size?: number;\n /** A light idle motion and the mood's gesture. Off with `false`; always off under `prefers-reduced-motion`. */\n animated?: boolean;\n /** An accessible name (the bird becomes an image); without it the mascot is decorative. */\n title?: string;\n};\n\n/**\n * One of the seven Krizaka birds in one mood — for the moments a product speaks to a person: a welcome, a long wait,\n * a success, an empty list, an error. Drawn in the host's brand colours by default (`tone=\"own\"` for the story's).\n */\nexport function Mascot({ bird = \"owl\", mood = \"welcome\", tone = \"brand\", size = 96, animated = true, title, className, ...props }: MascotProps) {\n const uid = useId().replace(/[^a-zA-Z0-9_-]/g, \"\");\n const g = BIRDS[bird];\n const p = tone === \"own\" ? OWN_PALETTES[bird] : BRAND;\n const body = `url(#kzb-${uid})`;\n const line = { stroke: OUTLINE, strokeWidth: 1.4, strokeLinejoin: \"round\" as const };\n const eyeR = g.eyes.white || g.eyes.pupil * 1.2;\n const eyes = g.eyes.at.map((at, i) => {\n const look = mood === \"thinking\" ? 1.4 : 0;\n if (mood === \"success\") return <path key={i} d={archEye(at, eyeR * 0.85)} stroke={g.visor ? p.eye : OUTLINE} strokeWidth={2.2} strokeLinecap=\"round\" fill=\"none\" />;\n if (mood === \"empty\" && g.eyes.white > 0)\n return (\n <g key={i}>\n <circle cx={at[0]} cy={at[1]} r={g.eyes.white} fill={LIGHT} {...line} />\n <circle cx={at[0]} cy={at[1] + g.eyes.pupil * 0.7} r={g.eyes.pupil} fill={SHADE} />\n <path d={upperLid(at, g.eyes.white)} fill={p.detail} {...line} />\n </g>\n );\n if (mood === \"empty\") return <path key={i} d={lidEye(at, eyeR * 0.8)} stroke={g.visor ? p.eye : OUTLINE} strokeWidth={2.2} strokeLinecap=\"round\" fill=\"none\" />;\n return (\n <g key={i} className=\"kzb-eye kzb-blink\">\n {g.eyes.white > 0 && <circle cx={at[0]} cy={at[1]} r={g.eyes.white} fill={LIGHT} {...line} />}\n <circle cx={at[0] + look} cy={at[1] - look} r={g.eyes.pupil} fill={g.visor ? p.eye : SHADE} />\n {g.eyes.white > 0 && <circle cx={at[0] + look - g.eyes.pupil * 0.35} cy={at[1] - look - g.eyes.pupil * 0.35} r={g.eyes.pupil * 0.35} fill={LIGHT} />}\n </g>\n );\n });\n const [wl, wr] = g.wings;\n return (\n <svg\n width={size}\n height={size}\n viewBox=\"0 0 120 120\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n data-bird={bird}\n data-mood={mood}\n data-animated={animated ? \"\" : undefined}\n className={className}\n {...(title ? { role: \"img\", \"aria-label\": title } : { \"aria-hidden\": true })}\n {...props}\n >\n <style>{CSS}</style>\n <defs>\n <linearGradient id={`kzb-${uid}`} x1=\"0\" y1=\"0\" x2=\"0\" y2=\"1\">\n <stop offset=\"0%\" style={{ stopColor: p.from }} />\n <stop offset=\"100%\" style={{ stopColor: p.to }} />\n </linearGradient>\n </defs>\n <ellipse cx={g.shadow[0]} cy={g.shadow[1]} rx={g.shadow[2]} ry={g.shadow[3]} fill={SHADE} opacity={0.14} />\n {mood === \"empty\" && <path d={MOOD_PARTS.tray} stroke={OUTLINE} strokeWidth={1.6} strokeDasharray=\"3 3\" strokeLinejoin=\"round\" />}\n <g className=\"kzb-bird\">\n {g.legs.map((d) => (\n <path key={d} d={d} stroke={p.beak} strokeWidth={2.6} strokeLinecap=\"round\" />\n ))}\n {g.back?.map((d) => (d.endsWith(\"Z\") ? <path key={d} d={d} fill={p.detail} {...line} /> : <path key={d} d={d} stroke={OUTLINE} strokeWidth={1.4} />))}\n {g.parcel && (\n <g {...line}>\n {g.parcel.map((d, i) => (\n <path key={d} d={d} fill={PARCEL[i]} />\n ))}\n </g>\n )}\n <path d={g.body} fill={body} {...line} />\n <path d={g.belly} fill={LIGHT} opacity={0.28} />\n {[wl, wr].map((w, i) => {\n const turn = mood === \"success\" ? (i === 0 ? 28 : -28) : mood === \"welcome\" && i === 1 ? -20 : 0;\n return (\n <g key={i} className={i === 1 ? \"kzb-wing kzb-wing-r\" : \"kzb-wing\"} style={{ transformOrigin: `${w.pivot[0]}px ${w.pivot[1]}px`, transform: turn ? `rotate(${turn}deg)` : undefined }}>\n <path d={w.d} fill={p.wing} {...line} />\n <path d={w.d} fill={SHADE} opacity={0.16} />\n </g>\n );\n })}\n {g.neck && <path d={g.neck.d} stroke={body} strokeWidth={g.neck.width} strokeLinecap=\"round\" />}\n {g.head.r > 0 && <circle cx={g.head.cx} cy={g.head.cy} r={g.head.r} fill={body} {...line} />}\n {g.details.map((d) => (\n <path key={d} d={d} fill={p.detail} {...line} />\n ))}\n {g.visor && <rect x={g.visor.x} y={g.visor.y} width={g.visor.w} height={g.visor.h} rx={4} fill={SURFACE} {...line} />}\n {eyes}\n {g.glasses && (\n <g stroke={OUTLINE} strokeWidth={1.3}>\n {g.eyes.at.map(([x, y]) => (\n <circle key={x} cx={x} cy={y} r={6.5} fill={LIGHT} fillOpacity={0.12} />\n ))}\n <path d={`M${g.eyes.at[0][0] + 6.5} ${g.eyes.at[0][1]} L${g.eyes.at[1][0] - 6.5} ${g.eyes.at[1][1]}`} />\n </g>\n )}\n {mood === \"error\" &&\n g.eyes.at.map((at, i) => <path key={i} d={brow(at, eyeR, g.eyes.at.length === 1 ? 1 : i === 0 ? -1 : 1)} stroke={OUTLINE} strokeWidth={2} strokeLinecap=\"round\" />)}\n <path d={g.beak} fill={p.beak} {...line} />\n </g>\n {mood === \"thinking\" && (\n <g>\n {MOOD_PARTS.dots.map(([cx, cy, r]) => (\n <circle key={cx} className=\"kzb-dot\" cx={cx} cy={cy} r={r} fill=\"var(--kz-text-secondary)\" />\n ))}\n </g>\n )}\n {mood === \"success\" && (\n <>\n {MOOD_PARTS.sparkles.map((d) => (\n <path key={d} className=\"kzb-sparkle\" d={d} fill={p.from} />\n ))}\n <g className=\"kzb-badge\">\n <circle cx={MOOD_PARTS.badge.cx} cy={MOOD_PARTS.badge.cy} r={MOOD_PARTS.badge.r} fill=\"var(--kz-success)\" />\n <path d={MOOD_PARTS.check} stroke={SURFACE} strokeWidth={2.6} strokeLinecap=\"round\" strokeLinejoin=\"round\" />\n </g>\n </>\n )}\n {mood === \"error\" && (\n <g className=\"kzb-badge\">\n <circle cx={MOOD_PARTS.badge.cx} cy={MOOD_PARTS.badge.cy} r={MOOD_PARTS.badge.r} fill=\"var(--kz-danger)\" />\n <path d={MOOD_PARTS.bang.line} stroke={SURFACE} strokeWidth={2.8} strokeLinecap=\"round\" />\n <circle cx={MOOD_PARTS.bang.dot[0]} cy={MOOD_PARTS.bang.dot[1]} r={1.6} fill={SURFACE} />\n </g>\n )}\n </svg>\n );\n}\n"],"mappings":";;;AAaO,IAAM,eAAe,CAAC,UAAU,OAAO,QAAQ,YAAY,UAAU,YAAY,OAAO;AAGxF,IAAM,eAAe,CAAC,WAAW,YAAY,WAAW,SAAS,OAAO;AAmC/E,IAAM,SAAS,CAAC,MAAc,EAAE,QAAQ,wCAAwC,CAAC,GAAG,GAAW,MAAc,GAAG,MAAM,OAAO,CAAC,CAAC,IAAI,CAAC,EAAE;AAEtI,IAAM,aAAa;AACnB,IAAM,aAAa;AAEZ,IAAM,QAAoD;AAAA,EAC/D,QAAQ;AAAA,IACN,QAAQ,CAAC,IAAI,KAAK,IAAI,GAAG;AAAA,IACzB,MAAM,CAAC,kCAAkC,gCAAgC;AAAA,IACzE,MAAM;AAAA,IACN,OAAO;AAAA,IACP,OAAO;AAAA,MACL,EAAE,GAAG,YAAY,OAAO,CAAC,IAAI,EAAE,EAAE;AAAA,MACjC,EAAE,GAAG,OAAO,UAAU,GAAG,OAAO,CAAC,IAAI,EAAE,EAAE;AAAA,IAC3C;AAAA,IACA,MAAM,EAAE,IAAI,IAAI,IAAI,IAAI,GAAG,GAAG;AAAA,IAC9B,SAAS,CAAC,0BAA0B,wBAAwB;AAAA,IAC5D,OAAO,EAAE,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,GAAG;AAAA,IACpC,MAAM;AAAA,IACN,MAAM,EAAE,IAAI,CAAC,CAAC,IAAI,IAAI,GAAG,CAAC,IAAI,IAAI,CAAC,GAAG,OAAO,GAAG,OAAO,IAAI;AAAA,EAC7D;AAAA,EACA,KAAK;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AQ,GAAM,MAAK,8BAAnD,EAA8E,CAC5F,GACH;AAAA,QAED,SAAS,aACR,iCACG;AAAA,qBAAW,SAAS,IAAI,CAAC,MACxB,oBAAC,UAAa,WAAU,eAAc,GAAM,MAAM,EAAE,QAAzC,CAA+C,CAC3D;AAAA,UACD,qBAAC,OAAE,WAAU,aACX;AAAA,gCAAC,YAAO,IAAI,WAAW,MAAM,IAAI,IAAI,WAAW,MAAM,IAAI,GAAG,WAAW,MAAM,GAAG,MAAK,qBAAoB;AAAA,YAC1G,oBAAC,UAAK,GAAG,WAAW,OAAO,QAAQ,SAAS,aAAa,KAAK,eAAc,SAAQ,gBAAe,SAAQ;AAAA,aAC7G;AAAA,WACF;AAAA,QAED,SAAS,WACR,qBAAC,OAAE,WAAU,aACX;AAAA,8BAAC,YAAO,IAAI,WAAW,MAAM,IAAI,IAAI,WAAW,MAAM,IAAI,GAAG,WAAW,MAAM,GAAG,MAAK,oBAAmB;AAAA,UACzG,oBAAC,UAAK,GAAG,WAAW,KAAK,MAAM,QAAQ,SAAS,aAAa,KAAK,eAAc,SAAQ;AAAA,UACxF,oBAAC,YAAO,IAAI,WAAW,KAAK,IAAI,CAAC,GAAG,IAAI,WAAW,KAAK,IAAI,CAAC,GAAG,GAAG,KAAK,MAAM,SAAS;AAAA,WACzF;AAAA;AAAA;AAAA,EAEJ;AAEJ;","names":[]}
@@ -0,0 +1,11 @@
1
+ // src/cn.ts
2
+ import { clsx } from "clsx";
3
+ import { cn as merge } from "tailwind-variants";
4
+ function cn(...inputs) {
5
+ return merge(clsx(inputs)) ?? "";
6
+ }
7
+
8
+ export {
9
+ cn
10
+ };
11
+ //# sourceMappingURL=chunk-KNBYZGSQ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/cn.ts"],"sourcesContent":["import { type ClassValue, clsx } from \"clsx\";\nimport { cn as merge } from \"tailwind-variants\";\n\nexport type { ClassValue };\n\n/**\n * Merges Tailwind classes: the last one wins — a product's `className` overrides the primitive's. The merge engine is\n * tailwind-merge as tailwind-variants ships it (the one `tv` uses), so the platform carries a single copy of it.\n * tailwind-variants bundles that engine since 3.3 (it never imports the `tailwind-merge` package, an optional peer):\n * hence `tailwind-variants ^3.3.1` and no `tailwind-merge` dependency — `scripts/consumer.mjs` checks it on a clean\n * install of the packed package.\n */\nexport function cn(...inputs: ClassValue[]): string {\n return merge(clsx(inputs)) ?? \"\";\n}\n"],"mappings":";AAAA,SAA0B,YAAY;AACtC,SAAS,MAAM,aAAa;AAWrB,SAAS,MAAM,QAA8B;AAClD,SAAO,MAAM,KAAK,MAAM,CAAC,KAAK;AAChC;","names":[]}
@@ -0,0 +1,41 @@
1
+ import { Fact } from '@krizaka/ui/page';
2
+ import * as React from 'react';
3
+
4
+ interface ComponentPageSection {
5
+ /** The section's anchor. */
6
+ id: string;
7
+ /** Its title (`When to use`, `Props`). */
8
+ title: React.ReactNode;
9
+ /** Its content (lists, a props table, examples). */
10
+ children: React.ReactNode;
11
+ }
12
+ type ComponentPageProps = Omit<React.HTMLAttributes<HTMLElement>, "title"> & {
13
+ /** The way back to the catalogue (your router's link). */
14
+ back?: React.ReactNode;
15
+ /** The category (`Blocks`, `Forms`). */
16
+ eyebrow?: React.ReactNode;
17
+ /** The component's name: the `h1`. */
18
+ title: React.ReactNode;
19
+ /** Its summary, in one sentence. */
20
+ summary: React.ReactNode;
21
+ /** Its status and platforms. */
22
+ facts?: readonly Fact[];
23
+ /** The live preview of its first example (a framed stage with its code). */
24
+ preview: React.ReactNode;
25
+ /** The line to install or import it, and the copy words. */
26
+ install?: {
27
+ code: string;
28
+ language?: string;
29
+ copyLabel: string;
30
+ copiedLabel: string;
31
+ file?: React.ReactNode;
32
+ };
33
+ /** The sections, in reading order: when to use / not, examples, props, accessibility. */
34
+ sections: readonly ComponentPageSection[];
35
+ /** The side column: related components, source, the version. */
36
+ aside?: React.ReactNode;
37
+ };
38
+ /** A component's page: name, summary, facts, live preview, install, then its sections; facts and related aside. */
39
+ declare function ComponentPage({ back, eyebrow, title, summary, facts, preview, install, sections, aside, ...props }: ComponentPageProps): React.JSX.Element;
40
+
41
+ export { ComponentPage, type ComponentPageProps, type ComponentPageSection };
@@ -0,0 +1,17 @@
1
+ // src/component-page/component-page.tsx
2
+ import { CodeBlock } from "@krizaka/ui/code-block";
3
+ import { DetailLayout } from "@krizaka/ui/detail-layout";
4
+ import { Facts, Section } from "@krizaka/ui/page";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
+ function ComponentPage({ back, eyebrow, title, summary, facts, preview, install, sections, aside, ...props }) {
7
+ return /* @__PURE__ */ jsxs(DetailLayout, { back, eyebrow, title, meta: /* @__PURE__ */ jsx("span", { children: summary }), aside, ...props, children: [
8
+ facts && facts.length > 0 && /* @__PURE__ */ jsx(Facts, { items: facts }),
9
+ /* @__PURE__ */ jsx("div", { className: "kz-tpl-stage", children: preview }),
10
+ install && /* @__PURE__ */ jsx(CodeBlock, { code: install.code, language: install.language ?? "bash", file: install.file, copyLabel: install.copyLabel, copiedLabel: install.copiedLabel }),
11
+ /* @__PURE__ */ jsx("div", { className: "kz-tpl-flush", children: sections.map((s) => /* @__PURE__ */ jsx(Section, { id: s.id, title: s.title, headingSize: "sm", spacing: "sm", size: "full", divider: true, children: s.children }, s.id)) })
12
+ ] });
13
+ }
14
+ export {
15
+ ComponentPage
16
+ };
17
+ //# sourceMappingURL=component-page.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/component-page/component-page.tsx"],"sourcesContent":["// Server-safe. The page of one component of a design system (what krizaka.com/docs/ui draws from the registry): its\n// name, summary, status and platforms; the live preview with its code; installation; when to use it and when not; its\n// examples; its props; its accessibility — the facts in a side column that goes under the content on a phone.\nimport { CodeBlock } from \"@krizaka/ui/code-block\";\nimport { DetailLayout } from \"@krizaka/ui/detail-layout\";\nimport { type Fact, Facts, Section } from \"@krizaka/ui/page\";\nimport type * as React from \"react\";\n\nexport interface ComponentPageSection {\n /** The section's anchor. */\n id: string;\n /** Its title (`When to use`, `Props`). */\n title: React.ReactNode;\n /** Its content (lists, a props table, examples). */\n children: React.ReactNode;\n}\n\nexport type ComponentPageProps = Omit<React.HTMLAttributes<HTMLElement>, \"title\"> & {\n /** The way back to the catalogue (your router's link). */\n back?: React.ReactNode;\n /** The category (`Blocks`, `Forms`). */\n eyebrow?: React.ReactNode;\n /** The component's name: the `h1`. */\n title: React.ReactNode;\n /** Its summary, in one sentence. */\n summary: React.ReactNode;\n /** Its status and platforms. */\n facts?: readonly Fact[];\n /** The live preview of its first example (a framed stage with its code). */\n preview: React.ReactNode;\n /** The line to install or import it, and the copy words. */\n install?: { code: string; language?: string; copyLabel: string; copiedLabel: string; file?: React.ReactNode };\n /** The sections, in reading order: when to use / not, examples, props, accessibility. */\n sections: readonly ComponentPageSection[];\n /** The side column: related components, source, the version. */\n aside?: React.ReactNode;\n};\n\n/** A component's page: name, summary, facts, live preview, install, then its sections; facts and related aside. */\nexport function ComponentPage({ back, eyebrow, title, summary, facts, preview, install, sections, aside, ...props }: ComponentPageProps) {\n return (\n <DetailLayout back={back} eyebrow={eyebrow} title={title} meta={<span>{summary}</span>} aside={aside} {...props}>\n {facts && facts.length > 0 && <Facts items={facts} />}\n <div className=\"kz-tpl-stage\">{preview}</div>\n {install && <CodeBlock code={install.code} language={install.language ?? \"bash\"} file={install.file} copyLabel={install.copyLabel} copiedLabel={install.copiedLabel} />}\n <div className=\"kz-tpl-flush\">\n {sections.map((s) => (\n <Section key={s.id} id={s.id} title={s.title} headingSize=\"sm\" spacing=\"sm\" size=\"full\" divider>\n {s.children}\n </Section>\n ))}\n </div>\n </DetailLayout>\n );\n}\n"],"mappings":";AAGA,SAAS,iBAAiB;AAC1B,SAAS,oBAAoB;AAC7B,SAAoB,OAAO,eAAe;AAoCtC,SAAgE,KAAhE;AAFG,SAAS,cAAc,EAAE,MAAM,SAAS,OAAO,SAAS,OAAO,SAAS,SAAS,UAAU,OAAO,GAAG,MAAM,GAAuB;AACvI,SACE,qBAAC,gBAAa,MAAY,SAAkB,OAAc,MAAM,oBAAC,UAAM,mBAAQ,GAAS,OAAe,GAAG,OACvG;AAAA,aAAS,MAAM,SAAS,KAAK,oBAAC,SAAM,OAAO,OAAO;AAAA,IACnD,oBAAC,SAAI,WAAU,gBAAgB,mBAAQ;AAAA,IACtC,WAAW,oBAAC,aAAU,MAAM,QAAQ,MAAM,UAAU,QAAQ,YAAY,QAAQ,MAAM,QAAQ,MAAM,WAAW,QAAQ,WAAW,aAAa,QAAQ,aAAa;AAAA,IACrK,oBAAC,SAAI,WAAU,gBACZ,mBAAS,IAAI,CAAC,MACb,oBAAC,WAAmB,IAAI,EAAE,IAAI,OAAO,EAAE,OAAO,aAAY,MAAK,SAAQ,MAAK,MAAK,QAAO,SAAO,MAC5F,YAAE,YADS,EAAE,EAEhB,CACD,GACH;AAAA,KACF;AAEJ;","names":[]}
@@ -0,0 +1,31 @@
1
+ import { LinkComponent } from '@krizaka/ui/page-hero';
2
+ import * as React from 'react';
3
+
4
+ type ContactPageProps = Omit<React.HTMLAttributes<HTMLElement>, "title"> & {
5
+ /** A mono line above the title. */
6
+ eyebrow?: React.ReactNode;
7
+ /** The page's `h1`. */
8
+ title: React.ReactNode;
9
+ /** One or two sentences: who answers, how fast. */
10
+ lead?: React.ReactNode;
11
+ /** Beside the hero: the bird that answers (the flamingo). */
12
+ aside?: React.ReactNode;
13
+ /** The ways to reach us: LinkCards (discussions, issues, email). */
14
+ channels: React.ReactNode;
15
+ /** The form (fields, the cut primary action). */
16
+ form: React.ReactNode;
17
+ /** What happens after sending: steps with a title and a sentence. */
18
+ next?: {
19
+ title: React.ReactNode;
20
+ steps: readonly {
21
+ title: React.ReactNode;
22
+ text: React.ReactNode;
23
+ }[];
24
+ };
25
+ /** The app's link component (Next's `Link`). */
26
+ linkAs?: LinkComponent;
27
+ };
28
+ /** A contact page: hero, the channels beside the form, then what happens next. */
29
+ declare function ContactPage({ eyebrow, title, lead, aside, channels, form, next, linkAs, ...props }: ContactPageProps): React.JSX.Element;
30
+
31
+ export { ContactPage, type ContactPageProps };
@@ -0,0 +1,26 @@
1
+ // src/contact-page/contact-page.tsx
2
+ import { Page } from "@krizaka/ui/page";
3
+ import { PageHero } from "@krizaka/ui/page-hero";
4
+ import { jsx, jsxs } from "react/jsx-runtime";
5
+ function ContactPage({ eyebrow, title, lead, aside, channels, form, next, linkAs, ...props }) {
6
+ return /* @__PURE__ */ jsxs("div", { ...props, children: [
7
+ /* @__PURE__ */ jsx(PageHero, { eyebrow, title, lead, aside, linkAs }),
8
+ /* @__PURE__ */ jsx(Page, { className: "kz-tpl-longform", children: /* @__PURE__ */ jsxs("div", { className: "kz-tpl-contact", children: [
9
+ /* @__PURE__ */ jsxs("div", { className: "kz-tpl-stack", children: [
10
+ channels,
11
+ next && /* @__PURE__ */ jsxs("div", { className: "kz-tpl-stack", children: [
12
+ /* @__PURE__ */ jsx("h2", { className: "kz-heading-title kz-tpl-h2", children: next.title }),
13
+ /* @__PURE__ */ jsx("ol", { className: "kz-tpl-next", children: next.steps.map((s, i) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs("span", { children: [
14
+ /* @__PURE__ */ jsx("strong", { children: s.title }),
15
+ s.text
16
+ ] }) }, i)) })
17
+ ] })
18
+ ] }),
19
+ /* @__PURE__ */ jsx("div", { className: "kz-tpl-form", children: form })
20
+ ] }) })
21
+ ] });
22
+ }
23
+ export {
24
+ ContactPage
25
+ };
26
+ //# sourceMappingURL=contact-page.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/contact-page/contact-page.tsx"],"sourcesContent":["// Server-safe. Reaching the team (blocks.css `.kz-tpl-contact`): the hero, then the ways to reach us as cards beside\n// the form — the form in its own panel — and what happens after sending, as numbered steps. The form is yours.\nimport { Page } from \"@krizaka/ui/page\";\nimport type { LinkComponent } from \"@krizaka/ui/page-hero\";\nimport { PageHero } from \"@krizaka/ui/page-hero\";\nimport type * as React from \"react\";\n\nexport type ContactPageProps = Omit<React.HTMLAttributes<HTMLElement>, \"title\"> & {\n /** A mono line above the title. */\n eyebrow?: React.ReactNode;\n /** The page's `h1`. */\n title: React.ReactNode;\n /** One or two sentences: who answers, how fast. */\n lead?: React.ReactNode;\n /** Beside the hero: the bird that answers (the flamingo). */\n aside?: React.ReactNode;\n /** The ways to reach us: LinkCards (discussions, issues, email). */\n channels: React.ReactNode;\n /** The form (fields, the cut primary action). */\n form: React.ReactNode;\n /** What happens after sending: steps with a title and a sentence. */\n next?: { title: React.ReactNode; steps: readonly { title: React.ReactNode; text: React.ReactNode }[] };\n /** The app's link component (Next's `Link`). */\n linkAs?: LinkComponent;\n};\n\n/** A contact page: hero, the channels beside the form, then what happens next. */\nexport function ContactPage({ eyebrow, title, lead, aside, channels, form, next, linkAs, ...props }: ContactPageProps) {\n return (\n <div {...props}>\n <PageHero eyebrow={eyebrow} title={title} lead={lead} aside={aside} linkAs={linkAs} />\n <Page className=\"kz-tpl-longform\">\n <div className=\"kz-tpl-contact\">\n <div className=\"kz-tpl-stack\">\n {channels}\n {next && (\n <div className=\"kz-tpl-stack\">\n <h2 className=\"kz-heading-title kz-tpl-h2\">{next.title}</h2>\n <ol className=\"kz-tpl-next\">\n {next.steps.map((s, i) => (\n <li key={i}>\n <span>\n <strong>{s.title}</strong>\n {s.text}\n </span>\n </li>\n ))}\n </ol>\n </div>\n )}\n </div>\n <div className=\"kz-tpl-form\">{form}</div>\n </div>\n </Page>\n </div>\n );\n}\n"],"mappings":";AAEA,SAAS,YAAY;AAErB,SAAS,gBAAgB;AA0BnB,cAWgB,YAXhB;AAHC,SAAS,YAAY,EAAE,SAAS,OAAO,MAAM,OAAO,UAAU,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAqB;AACrH,SACE,qBAAC,SAAK,GAAG,OACP;AAAA,wBAAC,YAAS,SAAkB,OAAc,MAAY,OAAc,QAAgB;AAAA,IACpF,oBAAC,QAAK,WAAU,mBACd,+BAAC,SAAI,WAAU,kBACb;AAAA,2BAAC,SAAI,WAAU,gBACZ;AAAA;AAAA,QACA,QACC,qBAAC,SAAI,WAAU,gBACb;AAAA,8BAAC,QAAG,WAAU,8BAA8B,eAAK,OAAM;AAAA,UACvD,oBAAC,QAAG,WAAU,eACX,eAAK,MAAM,IAAI,CAAC,GAAG,MAClB,oBAAC,QACC,+BAAC,UACC;AAAA,gCAAC,YAAQ,YAAE,OAAM;AAAA,YAChB,EAAE;AAAA,aACL,KAJO,CAKT,CACD,GACH;AAAA,WACF;AAAA,SAEJ;AAAA,MACA,oBAAC,SAAI,WAAU,eAAe,gBAAK;AAAA,OACrC,GACF;AAAA,KACF;AAEJ;","names":[]}
@@ -0,0 +1,54 @@
1
+ import { Fact } from '@krizaka/ui/page';
2
+ import { LinkComponent } from '@krizaka/ui/page-hero';
3
+ import * as React from 'react';
4
+
5
+ type DocsArticlePageProps = Omit<React.HTMLAttributes<HTMLElement>, "title"> & {
6
+ /** The documentation's pages (a nav of links). */
7
+ sidebar: React.ReactNode;
8
+ /** On a phone, the words that open the pages. */
9
+ sidebarLabel: string;
10
+ /** Where the page sits: `{ href, label }` from the hub down. */
11
+ breadcrumb?: readonly {
12
+ href: string;
13
+ label: string;
14
+ }[];
15
+ /** The breadcrumb's accessible name (`Breadcrumb`). */
16
+ breadcrumbLabel?: string;
17
+ /** The page's `h1`. */
18
+ title: React.ReactNode;
19
+ /** One or two sentences under it. */
20
+ lead?: React.ReactNode;
21
+ /** Facts under the lead: updated on, reading time, the version it documents. */
22
+ facts?: readonly Fact[];
23
+ /** The contents (its `h2`s): `{ id, label }`, and its label (`On this page`). */
24
+ toc?: {
25
+ label: string;
26
+ items: readonly {
27
+ id: string;
28
+ label: string;
29
+ }[];
30
+ };
31
+ /** The previous and next pages, and their labels. */
32
+ pager?: {
33
+ previous?: {
34
+ href: string;
35
+ title: string;
36
+ };
37
+ next?: {
38
+ href: string;
39
+ title: string;
40
+ };
41
+ labels: {
42
+ previous: string;
43
+ next: string;
44
+ };
45
+ };
46
+ /** The article's body (prose, code blocks, diagrams). */
47
+ children: React.ReactNode;
48
+ /** The app's link component (Next's `Link`). */
49
+ linkAs?: LinkComponent;
50
+ };
51
+ /** A documentation article: pages · breadcrumb, title, lead, facts, the reading column · contents; previous and next. */
52
+ declare function DocsArticlePage({ sidebar, sidebarLabel, breadcrumb, breadcrumbLabel, title, lead, facts, toc, pager, linkAs, children, ...props }: DocsArticlePageProps): React.JSX.Element;
53
+
54
+ export { DocsArticlePage, type DocsArticlePageProps };
@@ -0,0 +1,29 @@
1
+ // src/docs-article-page/docs-article-page.tsx
2
+ import { DocsLayout } from "@krizaka/ui/docs-layout";
3
+ import { Facts } from "@krizaka/ui/page";
4
+ import { Toc } from "@krizaka/ui/toc";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
+ function DocsArticlePage({ sidebar, sidebarLabel, breadcrumb, breadcrumbLabel = "Breadcrumb", title, lead, facts, toc, pager, linkAs, children, ...props }) {
7
+ const L = linkAs ?? "a";
8
+ return /* @__PURE__ */ jsxs(DocsLayout, { sidebar, sidebarLabel, toc: toc && /* @__PURE__ */ jsx(Toc, { label: toc.label, items: toc.items }), ...props, children: [
9
+ breadcrumb && breadcrumb.length > 0 && /* @__PURE__ */ jsx("nav", { "aria-label": breadcrumbLabel, children: /* @__PURE__ */ jsx("ol", { className: "kz-tpl-crumbs", children: breadcrumb.map((c) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(L, { href: c.href, children: c.label }) }, c.href)) }) }),
10
+ /* @__PURE__ */ jsx("h1", { className: "kz-tpl-article-title", children: title }),
11
+ lead && /* @__PURE__ */ jsx("p", { className: "kz-tpl-article-lead", children: lead }),
12
+ facts && facts.length > 0 && /* @__PURE__ */ jsx(Facts, { className: "kz-tpl-article-meta", items: facts }),
13
+ /* @__PURE__ */ jsx("div", { className: "kz-tpl-prose", children }),
14
+ pager && (pager.previous || pager.next) && /* @__PURE__ */ jsxs("nav", { className: "kz-tpl-pager", "aria-label": `${pager.labels.previous} \xB7 ${pager.labels.next}`, children: [
15
+ pager.previous && /* @__PURE__ */ jsxs(L, { href: pager.previous.href, rel: "prev", children: [
16
+ /* @__PURE__ */ jsx("small", { children: pager.labels.previous }),
17
+ pager.previous.title
18
+ ] }),
19
+ pager.next && /* @__PURE__ */ jsxs(L, { href: pager.next.href, rel: "next", children: [
20
+ /* @__PURE__ */ jsx("small", { children: pager.labels.next }),
21
+ pager.next.title
22
+ ] })
23
+ ] })
24
+ ] });
25
+ }
26
+ export {
27
+ DocsArticlePage
28
+ };
29
+ //# sourceMappingURL=docs-article-page.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/docs-article-page/docs-article-page.tsx"],"sourcesContent":["// Server-safe. A documentation article in the docs frame (DocsLayout): the pages on the left, the breadcrumb, the\n// title, its lead and facts (updated, reading time), the reading column, the contents on the right, the previous and\n// next pages at the foot. On a phone the pages fold above the article and the contents become chips.\nimport { DocsLayout } from \"@krizaka/ui/docs-layout\";\nimport { type Fact, Facts } from \"@krizaka/ui/page\";\nimport type { LinkComponent } from \"@krizaka/ui/page-hero\";\nimport { Toc } from \"@krizaka/ui/toc\";\nimport type * as React from \"react\";\n\nexport type DocsArticlePageProps = Omit<React.HTMLAttributes<HTMLElement>, \"title\"> & {\n /** The documentation's pages (a nav of links). */\n sidebar: React.ReactNode;\n /** On a phone, the words that open the pages. */\n sidebarLabel: string;\n /** Where the page sits: `{ href, label }` from the hub down. */\n breadcrumb?: readonly { href: string; label: string }[];\n /** The breadcrumb's accessible name (`Breadcrumb`). */\n breadcrumbLabel?: string;\n /** The page's `h1`. */\n title: React.ReactNode;\n /** One or two sentences under it. */\n lead?: React.ReactNode;\n /** Facts under the lead: updated on, reading time, the version it documents. */\n facts?: readonly Fact[];\n /** The contents (its `h2`s): `{ id, label }`, and its label (`On this page`). */\n toc?: { label: string; items: readonly { id: string; label: string }[] };\n /** The previous and next pages, and their labels. */\n pager?: { previous?: { href: string; title: string }; next?: { href: string; title: string }; labels: { previous: string; next: string } };\n /** The article's body (prose, code blocks, diagrams). */\n children: React.ReactNode;\n /** The app's link component (Next's `Link`). */\n linkAs?: LinkComponent;\n};\n\n/** A documentation article: pages · breadcrumb, title, lead, facts, the reading column · contents; previous and next. */\nexport function DocsArticlePage({ sidebar, sidebarLabel, breadcrumb, breadcrumbLabel = \"Breadcrumb\", title, lead, facts, toc, pager, linkAs, children, ...props }: DocsArticlePageProps) {\n const L = (linkAs ?? \"a\") as React.ElementType;\n return (\n <DocsLayout sidebar={sidebar} sidebarLabel={sidebarLabel} toc={toc && <Toc label={toc.label} items={toc.items} />} {...props}>\n {breadcrumb && breadcrumb.length > 0 && (\n <nav aria-label={breadcrumbLabel}>\n <ol className=\"kz-tpl-crumbs\">\n {breadcrumb.map((c) => (\n <li key={c.href}>\n <L href={c.href}>{c.label}</L>\n </li>\n ))}\n </ol>\n </nav>\n )}\n <h1 className=\"kz-tpl-article-title\">{title}</h1>\n {lead && <p className=\"kz-tpl-article-lead\">{lead}</p>}\n {facts && facts.length > 0 && <Facts className=\"kz-tpl-article-meta\" items={facts} />}\n <div className=\"kz-tpl-prose\">{children}</div>\n {pager && (pager.previous || pager.next) && (\n <nav className=\"kz-tpl-pager\" aria-label={`${pager.labels.previous} · ${pager.labels.next}`}>\n {pager.previous && (\n <L href={pager.previous.href} rel=\"prev\">\n <small>{pager.labels.previous}</small>\n {pager.previous.title}\n </L>\n )}\n {pager.next && (\n <L href={pager.next.href} rel=\"next\">\n <small>{pager.labels.next}</small>\n {pager.next.title}\n </L>\n )}\n </nav>\n )}\n </DocsLayout>\n );\n}\n"],"mappings":";AAGA,SAAS,kBAAkB;AAC3B,SAAoB,aAAa;AAEjC,SAAS,WAAW;AAgCsD,cAmB9D,YAnB8D;AAHnE,SAAS,gBAAgB,EAAE,SAAS,cAAc,YAAY,kBAAkB,cAAc,OAAO,MAAM,OAAO,KAAK,OAAO,QAAQ,UAAU,GAAG,MAAM,GAAyB;AACvL,QAAM,IAAK,UAAU;AACrB,SACE,qBAAC,cAAW,SAAkB,cAA4B,KAAK,OAAO,oBAAC,OAAI,OAAO,IAAI,OAAO,OAAO,IAAI,OAAO,GAAK,GAAG,OACpH;AAAA,kBAAc,WAAW,SAAS,KACjC,oBAAC,SAAI,cAAY,iBACf,8BAAC,QAAG,WAAU,iBACX,qBAAW,IAAI,CAAC,MACf,oBAAC,QACC,8BAAC,KAAE,MAAM,EAAE,MAAO,YAAE,OAAM,KADnB,EAAE,IAEX,CACD,GACH,GACF;AAAA,IAEF,oBAAC,QAAG,WAAU,wBAAwB,iBAAM;AAAA,IAC3C,QAAQ,oBAAC,OAAE,WAAU,uBAAuB,gBAAK;AAAA,IACjD,SAAS,MAAM,SAAS,KAAK,oBAAC,SAAM,WAAU,uBAAsB,OAAO,OAAO;AAAA,IACnF,oBAAC,SAAI,WAAU,gBAAgB,UAAS;AAAA,IACvC,UAAU,MAAM,YAAY,MAAM,SACjC,qBAAC,SAAI,WAAU,gBAAe,cAAY,GAAG,MAAM,OAAO,QAAQ,SAAM,MAAM,OAAO,IAAI,IACtF;AAAA,YAAM,YACL,qBAAC,KAAE,MAAM,MAAM,SAAS,MAAM,KAAI,QAChC;AAAA,4BAAC,WAAO,gBAAM,OAAO,UAAS;AAAA,QAC7B,MAAM,SAAS;AAAA,SAClB;AAAA,MAED,MAAM,QACL,qBAAC,KAAE,MAAM,MAAM,KAAK,MAAM,KAAI,QAC5B;AAAA,4BAAC,WAAO,gBAAM,OAAO,MAAK;AAAA,QACzB,MAAM,KAAK;AAAA,SACd;AAAA,OAEJ;AAAA,KAEJ;AAEJ;","names":[]}
@@ -0,0 +1,72 @@
1
+ import { LinkComponent } from '@krizaka/ui/page-hero';
2
+ import * as React from 'react';
3
+
4
+ interface DocsCollection {
5
+ /** A stable key. */
6
+ id: string;
7
+ /** The product's brand (`orazaka`…): the panel wears `.brand-<id>`. */
8
+ brand?: string;
9
+ /** The product's mark. */
10
+ mark?: React.ReactNode;
11
+ /** The collection's name: a link to its home. */
12
+ title: string;
13
+ /** Where it starts. */
14
+ href: string;
15
+ /** What it covers, in one sentence. */
16
+ description?: React.ReactNode;
17
+ /** Its most useful pages (three or four). */
18
+ links?: readonly {
19
+ href: string;
20
+ label: string;
21
+ }[];
22
+ }
23
+ interface DocsHubLink {
24
+ /** Where it leads. */
25
+ href: string;
26
+ /** The page's title. */
27
+ title: React.ReactNode;
28
+ /** On the right, in mono: a collection, a version, a date. */
29
+ meta?: React.ReactNode;
30
+ }
31
+ type DocsHubPageProps = Omit<React.HTMLAttributes<HTMLElement>, "title"> & {
32
+ /** A mono line above the title. */
33
+ eyebrow?: React.ReactNode;
34
+ /** The page's `h1`. */
35
+ title: React.ReactNode;
36
+ /** One sentence under it. */
37
+ lead?: React.ReactNode;
38
+ /** The search, front and centre (a SearchField, a button that opens the command palette). */
39
+ search?: React.ReactNode;
40
+ /** Under the search: what people look for (a few links or keys). */
41
+ searchHints?: React.ReactNode;
42
+ /** The collections' heading. */
43
+ collectionsTitle: React.ReactNode;
44
+ /** The collections, each in its brand. */
45
+ collections: readonly DocsCollection[];
46
+ /** The quick starts: a title and their samples (CodeBlocks, CodeTabs). */
47
+ quickstarts?: {
48
+ title: React.ReactNode;
49
+ children: React.ReactNode;
50
+ };
51
+ /** The most read pages. */
52
+ popular?: {
53
+ title: React.ReactNode;
54
+ items: readonly DocsHubLink[];
55
+ };
56
+ /** What is new (releases from the registries, published pages). */
57
+ whatsNew?: {
58
+ title: React.ReactNode;
59
+ items: readonly DocsHubLink[];
60
+ };
61
+ /** The owl's promise at the foot: what this documentation guarantees. */
62
+ promise?: {
63
+ label: React.ReactNode;
64
+ text: React.ReactNode;
65
+ };
66
+ /** The app's link component (Next's `Link`) for internal addresses. */
67
+ linkAs?: LinkComponent;
68
+ };
69
+ /** A documentation hub: search first, the collections in their brand, quick starts, popular and new pages. */
70
+ declare function DocsHubPage({ eyebrow, title, lead, search, searchHints, collectionsTitle, collections, quickstarts, popular, whatsNew, promise, linkAs, ...props }: DocsHubPageProps): React.JSX.Element;
71
+
72
+ export { type DocsCollection, type DocsHubLink, DocsHubPage, type DocsHubPageProps };
@@ -0,0 +1,45 @@
1
+ // src/docs-hub-page/docs-hub-page.tsx
2
+ import { MascotQuote } from "@krizaka/ui/mascot-quote";
3
+ import { Section } from "@krizaka/ui/page";
4
+ import { PageHero } from "@krizaka/ui/page-hero";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
+ function List({ items, linkAs: Link = "a" }) {
7
+ const L = Link;
8
+ return /* @__PURE__ */ jsx("ul", { className: "kz-tpl-links", children: items.map((item, i) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs(L, { href: item.href, children: [
9
+ /* @__PURE__ */ jsx("strong", { children: item.title }),
10
+ item.meta && /* @__PURE__ */ jsx("small", { children: item.meta })
11
+ ] }) }, `${i}:${item.href}`)) });
12
+ }
13
+ function DocsHubPage({ eyebrow, title, lead, search, searchHints, collectionsTitle, collections, quickstarts, popular, whatsNew, promise, linkAs, ...props }) {
14
+ const L = linkAs ?? "a";
15
+ return /* @__PURE__ */ jsxs("div", { ...props, children: [
16
+ /* @__PURE__ */ jsx(PageHero, { eyebrow, title, lead, align: "center", backdrop: "grid", children: (search || searchHints) && /* @__PURE__ */ jsxs("div", { className: "kz-tpl-hub-search", children: [
17
+ search,
18
+ searchHints && /* @__PURE__ */ jsx("div", { className: "kz-tpl-hub-hints", children: searchHints })
19
+ ] }) }),
20
+ /* @__PURE__ */ jsx(Section, { id: "collections", title: collectionsTitle, headingSize: "sm", spacing: "sm", children: /* @__PURE__ */ jsx("ul", { className: "kz-tpl-collections", children: collections.map((c) => /* @__PURE__ */ jsx("li", { className: c.brand ? "brand-" + c.brand : void 0, children: /* @__PURE__ */ jsxs("div", { className: "kz-tpl-collection", children: [
21
+ /* @__PURE__ */ jsxs("div", { className: "kz-tpl-collection-head", children: [
22
+ c.mark && /* @__PURE__ */ jsx("span", { "aria-hidden": true, children: c.mark }),
23
+ /* @__PURE__ */ jsx(L, { href: c.href, children: c.title })
24
+ ] }),
25
+ c.description && /* @__PURE__ */ jsx("p", { children: c.description }),
26
+ c.links && c.links.length > 0 && /* @__PURE__ */ jsx("ul", { "aria-label": c.title, children: c.links.map((l) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(L, { href: l.href, children: l.label }) }, l.href)) })
27
+ ] }) }, c.id)) }) }),
28
+ (quickstarts || popular) && /* @__PURE__ */ jsx(Section, { spacing: "sm", divider: true, "aria-label": typeof quickstarts?.title === "string" ? quickstarts.title : void 0, children: /* @__PURE__ */ jsxs("div", { className: "kz-tpl-two", children: [
29
+ quickstarts && /* @__PURE__ */ jsxs("div", { className: "kz-tpl-stack", children: [
30
+ /* @__PURE__ */ jsx("h2", { className: "kz-heading-title kz-tpl-h2", children: quickstarts.title }),
31
+ quickstarts.children
32
+ ] }),
33
+ popular && /* @__PURE__ */ jsxs("div", { className: "kz-tpl-stack", children: [
34
+ /* @__PURE__ */ jsx("h2", { className: "kz-heading-title kz-tpl-h2", children: popular.title }),
35
+ /* @__PURE__ */ jsx(List, { items: popular.items, linkAs })
36
+ ] })
37
+ ] }) }),
38
+ whatsNew && /* @__PURE__ */ jsx(Section, { id: "whats-new", title: whatsNew.title, headingSize: "sm", spacing: "sm", divider: true, children: /* @__PURE__ */ jsx(List, { items: whatsNew.items, linkAs }) }),
39
+ promise && /* @__PURE__ */ jsx(Section, { spacing: "sm", "aria-label": typeof promise.label === "string" ? promise.label : void 0, children: /* @__PURE__ */ jsx(MascotQuote, { variant: "callout", bird: "owl", mood: "welcome", label: promise.label, children: promise.text }) })
40
+ ] });
41
+ }
42
+ export {
43
+ DocsHubPage
44
+ };
45
+ //# sourceMappingURL=docs-hub-page.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/docs-hub-page/docs-hub-page.tsx"],"sourcesContent":["// Server-safe. The entry of a documentation (blocks.css `.kz-tpl-hub-*`, `.kz-tpl-collections`): the search in the\n// middle of the hero, the collections each in its product's brand with its quick links, the quick starts beside the\n// most read pages, what is new from the registries, and the owl's promise. One column on a phone, the search first.\nimport { MascotQuote } from \"@krizaka/ui/mascot-quote\";\nimport { Section } from \"@krizaka/ui/page\";\nimport type { LinkComponent } from \"@krizaka/ui/page-hero\";\nimport { PageHero } from \"@krizaka/ui/page-hero\";\nimport * as React from \"react\";\n\nexport interface DocsCollection {\n /** A stable key. */\n id: string;\n /** The product's brand (`orazaka`…): the panel wears `.brand-<id>`. */\n brand?: string;\n /** The product's mark. */\n mark?: React.ReactNode;\n /** The collection's name: a link to its home. */\n title: string;\n /** Where it starts. */\n href: string;\n /** What it covers, in one sentence. */\n description?: React.ReactNode;\n /** Its most useful pages (three or four). */\n links?: readonly { href: string; label: string }[];\n}\n\nexport interface DocsHubLink {\n /** Where it leads. */\n href: string;\n /** The page's title. */\n title: React.ReactNode;\n /** On the right, in mono: a collection, a version, a date. */\n meta?: React.ReactNode;\n}\n\nexport type DocsHubPageProps = Omit<React.HTMLAttributes<HTMLElement>, \"title\"> & {\n /** A mono line above the title. */\n eyebrow?: React.ReactNode;\n /** The page's `h1`. */\n title: React.ReactNode;\n /** One sentence under it. */\n lead?: React.ReactNode;\n /** The search, front and centre (a SearchField, a button that opens the command palette). */\n search?: React.ReactNode;\n /** Under the search: what people look for (a few links or keys). */\n searchHints?: React.ReactNode;\n /** The collections' heading. */\n collectionsTitle: React.ReactNode;\n /** The collections, each in its brand. */\n collections: readonly DocsCollection[];\n /** The quick starts: a title and their samples (CodeBlocks, CodeTabs). */\n quickstarts?: { title: React.ReactNode; children: React.ReactNode };\n /** The most read pages. */\n popular?: { title: React.ReactNode; items: readonly DocsHubLink[] };\n /** What is new (releases from the registries, published pages). */\n whatsNew?: { title: React.ReactNode; items: readonly DocsHubLink[] };\n /** The owl's promise at the foot: what this documentation guarantees. */\n promise?: { label: React.ReactNode; text: React.ReactNode };\n /** The app's link component (Next's `Link`) for internal addresses. */\n linkAs?: LinkComponent;\n};\n\nfunction List({ items, linkAs: Link = \"a\" }: { items: readonly DocsHubLink[]; linkAs?: LinkComponent }) {\n const L = Link as React.ElementType;\n return (\n <ul className=\"kz-tpl-links\">\n {items.map((item, i) => (\n <li key={`${i}:${item.href}`}>\n <L href={item.href}>\n <strong>{item.title}</strong>\n {item.meta && <small>{item.meta}</small>}\n </L>\n </li>\n ))}\n </ul>\n );\n}\n\n/** A documentation hub: search first, the collections in their brand, quick starts, popular and new pages. */\nexport function DocsHubPage({ eyebrow, title, lead, search, searchHints, collectionsTitle, collections, quickstarts, popular, whatsNew, promise, linkAs, ...props }: DocsHubPageProps) {\n const L = (linkAs ?? \"a\") as React.ElementType;\n return (\n <div {...props}>\n <PageHero eyebrow={eyebrow} title={title} lead={lead} align=\"center\" backdrop=\"grid\">\n {(search || searchHints) && (\n <div className=\"kz-tpl-hub-search\">\n {search}\n {searchHints && <div className=\"kz-tpl-hub-hints\">{searchHints}</div>}\n </div>\n )}\n </PageHero>\n <Section id=\"collections\" title={collectionsTitle} headingSize=\"sm\" spacing=\"sm\">\n <ul className=\"kz-tpl-collections\">\n {collections.map((c) => (\n <li key={c.id} className={c.brand ? \"brand-\" + c.brand : undefined}>\n <div className=\"kz-tpl-collection\">\n <div className=\"kz-tpl-collection-head\">\n {c.mark && <span aria-hidden>{c.mark}</span>}\n <L href={c.href}>{c.title}</L>\n </div>\n {c.description && <p>{c.description}</p>}\n {c.links && c.links.length > 0 && (\n <ul aria-label={c.title}>\n {c.links.map((l) => (\n <li key={l.href}>\n <L href={l.href}>{l.label}</L>\n </li>\n ))}\n </ul>\n )}\n </div>\n </li>\n ))}\n </ul>\n </Section>\n {(quickstarts || popular) && (\n <Section spacing=\"sm\" divider aria-label={typeof quickstarts?.title === \"string\" ? quickstarts.title : undefined}>\n <div className=\"kz-tpl-two\">\n {quickstarts && (\n <div className=\"kz-tpl-stack\">\n <h2 className=\"kz-heading-title kz-tpl-h2\">{quickstarts.title}</h2>\n {quickstarts.children}\n </div>\n )}\n {popular && (\n <div className=\"kz-tpl-stack\">\n <h2 className=\"kz-heading-title kz-tpl-h2\">{popular.title}</h2>\n <List items={popular.items} linkAs={linkAs} />\n </div>\n )}\n </div>\n </Section>\n )}\n {whatsNew && (\n <Section id=\"whats-new\" title={whatsNew.title} headingSize=\"sm\" spacing=\"sm\" divider>\n <List items={whatsNew.items} linkAs={linkAs} />\n </Section>\n )}\n {promise && (\n <Section spacing=\"sm\" aria-label={typeof promise.label === \"string\" ? promise.label : undefined}>\n <MascotQuote variant=\"callout\" bird=\"owl\" mood=\"welcome\" label={promise.label}>\n {promise.text}\n </MascotQuote>\n </Section>\n )}\n </div>\n );\n}\n"],"mappings":";AAGA,SAAS,mBAAmB;AAC5B,SAAS,eAAe;AAExB,SAAS,gBAAgB;AA8Df,SACE,KADF;AANV,SAAS,KAAK,EAAE,OAAO,QAAQ,OAAO,IAAI,GAA8D;AACtG,QAAM,IAAI;AACV,SACE,oBAAC,QAAG,WAAU,gBACX,gBAAM,IAAI,CAAC,MAAM,MAChB,oBAAC,QACC,+BAAC,KAAE,MAAM,KAAK,MACZ;AAAA,wBAAC,YAAQ,eAAK,OAAM;AAAA,IACnB,KAAK,QAAQ,oBAAC,WAAO,eAAK,MAAK;AAAA,KAClC,KAJO,GAAG,CAAC,IAAI,KAAK,IAAI,EAK1B,CACD,GACH;AAEJ;AAGO,SAAS,YAAY,EAAE,SAAS,OAAO,MAAM,QAAQ,aAAa,kBAAkB,aAAa,aAAa,SAAS,UAAU,SAAS,QAAQ,GAAG,MAAM,GAAqB;AACrL,QAAM,IAAK,UAAU;AACrB,SACE,qBAAC,SAAK,GAAG,OACP;AAAA,wBAAC,YAAS,SAAkB,OAAc,MAAY,OAAM,UAAS,UAAS,QAC1E,qBAAU,gBACV,qBAAC,SAAI,WAAU,qBACZ;AAAA;AAAA,MACA,eAAe,oBAAC,SAAI,WAAU,oBAAoB,uBAAY;AAAA,OACjE,GAEJ;AAAA,IACA,oBAAC,WAAQ,IAAG,eAAc,OAAO,kBAAkB,aAAY,MAAK,SAAQ,MAC1E,8BAAC,QAAG,WA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,eAAY,SAAQ,WAAU,MAAK,OAAM,MAAK,WAAU,OAAO,QAAQ,OACrE,kBAAQ,MACX,GACF;AAAA,KAEJ;AAEJ;","names":[]}
@@ -0,0 +1,22 @@
1
+ import * as React from 'react';
2
+
3
+ type ErrorPageProps = Omit<React.HTMLAttributes<HTMLElement>, "title"> & {
4
+ /** The code (`404`, `500`): drawn, not read — the title says it in words. */
5
+ code: string;
6
+ /** The bird beside the code (a Mascot in its `empty` or `error` mood). */
7
+ mascot?: React.ReactNode;
8
+ /** The page's `h1` (`This page took another road`). */
9
+ title: React.ReactNode;
10
+ /** What happened and what to do, in one or two sentences. */
11
+ text?: React.ReactNode;
12
+ /** A search, to find what was meant. */
13
+ search?: React.ReactNode;
14
+ /** The ways back (an ActionBar: home, the docs, contact). */
15
+ actions?: React.ReactNode;
16
+ /** Under the actions: the most visited pages. */
17
+ children?: React.ReactNode;
18
+ };
19
+ /** An error page: the code drawn, the bird, a sentence, a search and the ways back. */
20
+ declare function ErrorPage({ code, mascot, title, text, search, actions, className, children, ...props }: ErrorPageProps): React.JSX.Element;
21
+
22
+ export { ErrorPage, type ErrorPageProps };
@@ -0,0 +1,23 @@
1
+ import {
2
+ cn
3
+ } from "./chunk-KNBYZGSQ.js";
4
+
5
+ // src/error-page/error-page.tsx
6
+ import { jsx, jsxs } from "react/jsx-runtime";
7
+ function ErrorPage({ code, mascot, title, text, search, actions, className, children, ...props }) {
8
+ return /* @__PURE__ */ jsxs("div", { className: cn("kz-frame kz-tpl-error", className), ...props, children: [
9
+ /* @__PURE__ */ jsxs("p", { className: "kz-tpl-error-code", "aria-hidden": true, children: [
10
+ code,
11
+ mascot
12
+ ] }),
13
+ /* @__PURE__ */ jsx("h1", { children: title }),
14
+ text && /* @__PURE__ */ jsx("p", { children: text }),
15
+ search && /* @__PURE__ */ jsx("div", { className: "kz-tpl-error-search", children: search }),
16
+ actions,
17
+ children
18
+ ] });
19
+ }
20
+ export {
21
+ ErrorPage
22
+ };
23
+ //# sourceMappingURL=error-page.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/error-page/error-page.tsx"],"sourcesContent":["// Server-safe. When a page is not there (blocks.css `.kz-tpl-error`): the code drawn huge in outline, the bird that\n// lost its way beside it, one sentence, a search, and the ways back — never a dead end. The same frame as every page.\nimport type * as React from \"react\";\n\nimport { cn } from \"../cn\";\n\nexport type ErrorPageProps = Omit<React.HTMLAttributes<HTMLElement>, \"title\"> & {\n /** The code (`404`, `500`): drawn, not read — the title says it in words. */\n code: string;\n /** The bird beside the code (a Mascot in its `empty` or `error` mood). */\n mascot?: React.ReactNode;\n /** The page's `h1` (`This page took another road`). */\n title: React.ReactNode;\n /** What happened and what to do, in one or two sentences. */\n text?: React.ReactNode;\n /** A search, to find what was meant. */\n search?: React.ReactNode;\n /** The ways back (an ActionBar: home, the docs, contact). */\n actions?: React.ReactNode;\n /** Under the actions: the most visited pages. */\n children?: React.ReactNode;\n};\n\n/** An error page: the code drawn, the bird, a sentence, a search and the ways back. */\nexport function ErrorPage({ code, mascot, title, text, search, actions, className, children, ...props }: ErrorPageProps) {\n return (\n <div className={cn(\"kz-frame kz-tpl-error\", className)} {...props}>\n <p className=\"kz-tpl-error-code\" aria-hidden>\n {code}\n {mascot}\n </p>\n <h1>{title}</h1>\n {text && <p>{text}</p>}\n {search && <div className=\"kz-tpl-error-search\">{search}</div>}\n {actions}\n {children}\n </div>\n );\n}\n"],"mappings":";;;;;AA2BM,SAIA,KAJA;AAHC,SAAS,UAAU,EAAE,MAAM,QAAQ,OAAO,MAAM,QAAQ,SAAS,WAAW,UAAU,GAAG,MAAM,GAAmB;AACvH,SACE,qBAAC,SAAI,WAAW,GAAG,yBAAyB,SAAS,GAAI,GAAG,OAC1D;AAAA,yBAAC,OAAE,WAAU,qBAAoB,eAAW,MACzC;AAAA;AAAA,MACA;AAAA,OACH;AAAA,IACA,oBAAC,QAAI,iBAAM;AAAA,IACV,QAAQ,oBAAC,OAAG,gBAAK;AAAA,IACjB,UAAU,oBAAC,SAAI,WAAU,uBAAuB,kBAAO;AAAA,IACvD;AAAA,IACA;AAAA,KACH;AAEJ;","names":[]}
@@ -0,0 +1,50 @@
1
+ import { LinkComponent } from '@krizaka/ui/page-hero';
2
+ import * as React from 'react';
3
+
4
+ interface GalleryItem {
5
+ /** A stable key. */
6
+ id: string;
7
+ /** The media: an `<img>` with its `alt`, a `<video>` with its label, a VideoPlayer. */
8
+ media: React.ReactNode;
9
+ /** Its title. */
10
+ title: React.ReactNode;
11
+ /** One line: what it shows, how it was made (a prompt, a seed). */
12
+ caption?: React.ReactNode;
13
+ }
14
+ type GalleryPageProps = Omit<React.HTMLAttributes<HTMLElement>, "title"> & {
15
+ /** The brand the page wears (`.brand-<id>`). */
16
+ brand?: string;
17
+ /** The way back. */
18
+ back?: {
19
+ href: string;
20
+ label: string;
21
+ };
22
+ /** A mono line above the title. */
23
+ eyebrow?: React.ReactNode;
24
+ /** The page's `h1`. */
25
+ title: React.ReactNode;
26
+ /** One or two sentences under it. */
27
+ lead?: React.ReactNode;
28
+ /** The hero's actions. */
29
+ actions?: React.ReactNode;
30
+ /** Above the pieces: the filters (ChipLink, a Chip group) — the address says which one is on. */
31
+ filters?: React.ReactNode;
32
+ /** The gallery's accessible name. */
33
+ galleryLabel: string;
34
+ /** The pieces, featured first. */
35
+ items: readonly GalleryItem[];
36
+ /** After the gallery: how it was made, the facts. */
37
+ children?: React.ReactNode;
38
+ /** The closing call. */
39
+ closing?: {
40
+ title: React.ReactNode;
41
+ body?: React.ReactNode;
42
+ actions: React.ReactNode;
43
+ };
44
+ /** The app's link component (Next's `Link`). */
45
+ linkAs?: LinkComponent;
46
+ };
47
+ /** A demo or a gallery: hero, filters, media in staggered columns, closing call. */
48
+ declare function GalleryPage({ brand, back, eyebrow, title, lead, actions, filters, galleryLabel, items, closing, linkAs, className, children, ...props }: GalleryPageProps): React.JSX.Element;
49
+
50
+ export { type GalleryItem, GalleryPage, type GalleryPageProps };