@krizaka/ui 3.78.1 → 3.79.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 (232) hide show
  1. package/README.md +1 -0
  2. package/dist/chunk-BCD2CRFG.js +349 -0
  3. package/dist/chunk-BCD2CRFG.js.map +1 -0
  4. package/dist/{chunk-SG3QJJXE.js → chunk-ENFXJUDN.js} +3 -16
  5. package/dist/chunk-ENFXJUDN.js.map +1 -0
  6. package/dist/filter-bar.d.ts +3 -3
  7. package/dist/identity-card.d.ts +39 -0
  8. package/dist/identity-card.js +34 -0
  9. package/dist/identity-card.js.map +1 -0
  10. package/dist/nav-bar.d.ts +1 -1
  11. package/dist/nav-bar.js +63 -53
  12. package/dist/nav-bar.js.map +1 -1
  13. package/dist/qr-code.d.ts +25 -2
  14. package/dist/qr-code.js +29 -339
  15. package/dist/qr-code.js.map +1 -1
  16. package/dist/{schema-CL7t7xqb.d.ts → schema-DgjBz7-8.d.ts} +1 -1
  17. package/dist/shop.d.ts +2 -2
  18. package/dist/site-cahier.d.ts +32 -19
  19. package/dist/site-cahier.js +106 -95
  20. package/dist/site-cahier.js.map +1 -1
  21. package/dist/site-footer.d.ts +59 -39
  22. package/dist/site-footer.js +93 -67
  23. package/dist/site-footer.js.map +1 -1
  24. package/dist/{sites-CVNSirrg.d.ts → sites-BLqbwmng.d.ts} +14 -0
  25. package/dist/sites.d.ts +28 -2
  26. package/dist/sites.js +10 -0
  27. package/dist/sites.js.map +1 -1
  28. package/package.json +17 -3
  29. package/registry/account-menu.json +1 -1
  30. package/registry/account-settings.json +1 -1
  31. package/registry/achievement.json +1 -1
  32. package/registry/action-bar.json +1 -1
  33. package/registry/activity-feed.json +1 -1
  34. package/registry/agenda.json +1 -1
  35. package/registry/alert.json +1 -1
  36. package/registry/analysis-report.json +1 -1
  37. package/registry/anatomy-plate.json +1 -1
  38. package/registry/app-frame.json +2 -2
  39. package/registry/app-header.json +1 -1
  40. package/registry/app-shell.json +1 -1
  41. package/registry/argument-card.json +1 -1
  42. package/registry/auth-layout.json +1 -1
  43. package/registry/avatar.json +1 -1
  44. package/registry/badge.json +1 -1
  45. package/registry/bird-plate.json +1 -1
  46. package/registry/button.json +1 -1
  47. package/registry/captcha.json +1 -1
  48. package/registry/card-grid.json +1 -1
  49. package/registry/card.json +1 -1
  50. package/registry/catalogue-page.json +1 -1
  51. package/registry/changelog-page.json +1 -1
  52. package/registry/chapter.json +1 -1
  53. package/registry/chat.json +1 -1
  54. package/registry/checkbox.json +1 -1
  55. package/registry/chip-link.json +1 -1
  56. package/registry/chip-row.json +1 -1
  57. package/registry/chip.json +1 -1
  58. package/registry/choice-grid.json +1 -1
  59. package/registry/code-block.json +1 -1
  60. package/registry/collection-switcher.json +1 -1
  61. package/registry/combobox.json +1 -1
  62. package/registry/command.json +1 -1
  63. package/registry/comparison-table.json +1 -1
  64. package/registry/component-page.json +1 -1
  65. package/registry/confirm-button.json +1 -1
  66. package/registry/contact-page.json +1 -1
  67. package/registry/continue-prompt.json +1 -1
  68. package/registry/copy-button.json +1 -1
  69. package/registry/countdown.json +1 -1
  70. package/registry/cover-hero.json +1 -1
  71. package/registry/cta-panel.json +1 -1
  72. package/registry/dashboard-layout.json +1 -1
  73. package/registry/data-table.json +1 -1
  74. package/registry/date-picker.json +1 -1
  75. package/registry/decision-list.json +1 -1
  76. package/registry/description-list.json +1 -1
  77. package/registry/desktop-window.json +1 -1
  78. package/registry/detail-layout.json +1 -1
  79. package/registry/dialog.json +1 -1
  80. package/registry/docs-article-page.json +1 -1
  81. package/registry/docs-hub-page.json +1 -1
  82. package/registry/docs-layout.json +1 -1
  83. package/registry/docs-nav.json +1 -1
  84. package/registry/document-viewer.json +1 -1
  85. package/registry/doodle.json +1 -1
  86. package/registry/drop-overlay.json +1 -1
  87. package/registry/dropdown-menu.json +1 -1
  88. package/registry/elephant.json +1 -1
  89. package/registry/embed-facade.json +1 -1
  90. package/registry/empty-state.json +1 -1
  91. package/registry/engine-flow.json +1 -1
  92. package/registry/entity-header.json +1 -1
  93. package/registry/environment-notice.json +1 -1
  94. package/registry/error-page.json +1 -1
  95. package/registry/examples/identity-card/basic.d.ts +4 -0
  96. package/registry/examples/identity-card/basic.js +33 -0
  97. package/registry/examples/identity-card/basic.tsx +29 -0
  98. package/registry/examples/site-footer/company.js +1 -0
  99. package/registry/examples/site-footer/company.tsx +3 -2
  100. package/registry/examples/site-footer/docs.tsx +1 -1
  101. package/registry/examples/site-footer/open-source-fr.js +1 -1
  102. package/registry/examples/site-footer/open-source-fr.tsx +1 -1
  103. package/registry/examples/site-footer/product.js +9 -14
  104. package/registry/examples/site-footer/product.tsx +14 -12
  105. package/registry/field.json +1 -1
  106. package/registry/file-upload.json +1 -1
  107. package/registry/filter-bar.json +1 -1
  108. package/registry/flock.json +1 -1
  109. package/registry/footnote.json +1 -1
  110. package/registry/force-update-screen.json +1 -1
  111. package/registry/form.json +1 -1
  112. package/registry/gallery-page.json +1 -1
  113. package/registry/genui.json +1 -1
  114. package/registry/glossary-term.json +1 -1
  115. package/registry/glossary.json +1 -1
  116. package/registry/glow-card.json +1 -1
  117. package/registry/goal-gauge.json +1 -1
  118. package/registry/grade-stamp.json +1 -1
  119. package/registry/identity-card.json +218 -0
  120. package/registry/image-cropper.json +1 -1
  121. package/registry/index.json +40 -9
  122. package/registry/kanban.json +1 -1
  123. package/registry/kbd.json +1 -1
  124. package/registry/kind-config-editor.json +1 -1
  125. package/registry/kpi-explained.json +1 -1
  126. package/registry/landing-page.json +1 -1
  127. package/registry/landscape.json +1 -1
  128. package/registry/language-switch.json +1 -1
  129. package/registry/legal-page.json +1 -1
  130. package/registry/link-card.json +1 -1
  131. package/registry/list.json +1 -1
  132. package/registry/loader.json +1 -1
  133. package/registry/longform-page.json +1 -1
  134. package/registry/maintenance-screen.json +1 -1
  135. package/registry/map.json +2 -2
  136. package/registry/margin-layout.json +1 -1
  137. package/registry/markdown.json +1 -1
  138. package/registry/marketing-layout.json +1 -1
  139. package/registry/mascot-quote.json +1 -1
  140. package/registry/mascot-state.json +1 -1
  141. package/registry/mascots.json +1 -1
  142. package/registry/match-dialog.json +1 -1
  143. package/registry/media-capture.json +1 -1
  144. package/registry/media-gallery.json +1 -1
  145. package/registry/meter.json +1 -1
  146. package/registry/money-input.json +1 -1
  147. package/registry/nav-bar.json +2 -2
  148. package/registry/next-actions.json +1 -1
  149. package/registry/notification-preferences.json +1 -1
  150. package/registry/number-ticker.json +1 -1
  151. package/registry/opening-hours.json +1 -1
  152. package/registry/page-header.json +1 -1
  153. package/registry/page-hero.json +1 -1
  154. package/registry/page-index.json +1 -1
  155. package/registry/page.json +1 -1
  156. package/registry/pagination.json +1 -1
  157. package/registry/pointer-light.json +1 -1
  158. package/registry/popover.json +1 -1
  159. package/registry/price-catalogue-editor.json +1 -1
  160. package/registry/pricing-page.json +1 -1
  161. package/registry/product-page.json +1 -1
  162. package/registry/profile-card.json +1 -1
  163. package/registry/progress.json +1 -1
  164. package/registry/promise-card.json +1 -1
  165. package/registry/promo-code-field.json +1 -1
  166. package/registry/proposal.json +1 -1
  167. package/registry/qr-code.json +6 -2
  168. package/registry/quota-meter.json +1 -1
  169. package/registry/radio-group.json +1 -1
  170. package/registry/rail-nav.json +2 -2
  171. package/registry/recipes.json +1 -1
  172. package/registry/retro-tv.json +1 -1
  173. package/registry/reviews.json +1 -1
  174. package/registry/router.json +1 -1
  175. package/registry/schema-form.json +1 -1
  176. package/registry/scroll-stage.json +1 -1
  177. package/registry/search-field.json +1 -1
  178. package/registry/section-backdrop.json +1 -1
  179. package/registry/separator.json +1 -1
  180. package/registry/service-card.json +1 -1
  181. package/registry/settings-layout.json +1 -1
  182. package/registry/shop-composer.json +1 -1
  183. package/registry/shop-gallery.json +1 -1
  184. package/registry/shop.json +2 -2
  185. package/registry/showcase.json +1 -1
  186. package/registry/signature.json +1 -1
  187. package/registry/site-cahier.json +1 -1
  188. package/registry/site-footer.json +81 -58
  189. package/registry/sites.json +7 -3
  190. package/registry/skeleton.json +1 -1
  191. package/registry/skip-link.json +1 -1
  192. package/registry/slider.json +1 -1
  193. package/registry/slot-picker.json +1 -1
  194. package/registry/slot.json +1 -1
  195. package/registry/specimen-tag.json +1 -1
  196. package/registry/speed-lines.json +1 -1
  197. package/registry/spinner.json +1 -1
  198. package/registry/split-view.json +1 -1
  199. package/registry/stage-banner.json +1 -1
  200. package/registry/stat.json +1 -1
  201. package/registry/status-chip.json +1 -1
  202. package/registry/status-page.json +1 -1
  203. package/registry/step-progress.json +1 -1
  204. package/registry/step-showcase.json +1 -1
  205. package/registry/stepper.json +1 -1
  206. package/registry/sticky-action.json +1 -1
  207. package/registry/stuck.json +1 -1
  208. package/registry/swipe-deck.json +1 -1
  209. package/registry/switch.json +1 -1
  210. package/registry/tabs.json +1 -1
  211. package/registry/tag-input.json +1 -1
  212. package/registry/tag-selector.json +1 -1
  213. package/registry/taped-photo.json +1 -1
  214. package/registry/terminal-replay.json +1 -1
  215. package/registry/text-style.json +1 -1
  216. package/registry/theme.json +1 -1
  217. package/registry/toast.json +1 -1
  218. package/registry/toc.json +1 -1
  219. package/registry/tooltip.json +1 -1
  220. package/registry/tree-view.json +1 -1
  221. package/registry/update-prompt.json +1 -1
  222. package/registry/upload-queue.json +1 -1
  223. package/registry/usage.json +1 -1
  224. package/registry/verified-badge.json +1 -1
  225. package/registry/versus-card.json +1 -1
  226. package/registry/vertical-video.json +1 -1
  227. package/registry/video-player.json +1 -1
  228. package/registry/video-trimmer.json +1 -1
  229. package/registry/virtual.json +1 -1
  230. package/registry/wall.json +1 -1
  231. package/registry/waveform.json +1 -1
  232. package/dist/chunk-SG3QJJXE.js.map +0 -1
@@ -1,101 +1,123 @@
1
1
  import * as tailwind_variants from 'tailwind-variants';
2
2
  import * as React from 'react';
3
- import { S as SiteId, F as FamilyLabels, O as OrgFacts } from './sites-CVNSirrg.js';
3
+ import { S as SiteId, F as FamilyLabels, O as OrgFacts } from './sites-BLqbwmng.js';
4
4
 
5
5
  declare const siteFooter: tailwind_variants.TVReturnType<{
6
6
  variant: {
7
7
  site: {};
8
8
  docs: {
9
9
  inner: string;
10
- own: string;
11
10
  };
12
11
  app: {
13
12
  root: string;
14
13
  inner: string;
15
14
  };
16
15
  };
16
+ tone: {
17
+ product: {};
18
+ cahier: {
19
+ title: string;
20
+ summary: string;
21
+ };
22
+ };
17
23
  }, {
18
24
  root: string;
19
25
  inner: string;
20
- band: string;
21
- own: string;
26
+ row: string;
22
27
  family: string;
28
+ group: string;
29
+ summary: string;
30
+ chevron: string;
23
31
  column: string;
24
32
  title: string;
25
33
  list: string;
26
34
  link: string;
27
- mark: string;
28
- tag: string;
29
35
  bottom: string;
30
36
  signature: string;
31
37
  version: string;
32
38
  legal: string;
39
+ controls: string;
33
40
  }, undefined, {
34
41
  variant: {
35
42
  site: {};
36
43
  docs: {
37
44
  inner: string;
38
- own: string;
39
45
  };
40
46
  app: {
41
47
  root: string;
42
48
  inner: string;
43
49
  };
44
50
  };
51
+ tone: {
52
+ product: {};
53
+ cahier: {
54
+ title: string;
55
+ summary: string;
56
+ };
57
+ };
45
58
  }, {
46
59
  root: string;
47
60
  inner: string;
48
- band: string;
49
- own: string;
61
+ row: string;
50
62
  family: string;
63
+ group: string;
64
+ summary: string;
65
+ chevron: string;
51
66
  column: string;
52
67
  title: string;
53
68
  list: string;
54
69
  link: string;
55
- mark: string;
56
- tag: string;
57
70
  bottom: string;
58
71
  signature: string;
59
72
  version: string;
60
73
  legal: string;
74
+ controls: string;
61
75
  }, tailwind_variants.TVReturnTypeLike<{
62
76
  variant: {
63
77
  site: {};
64
78
  docs: {
65
79
  inner: string;
66
- own: string;
67
80
  };
68
81
  app: {
69
82
  root: string;
70
83
  inner: string;
71
84
  };
72
85
  };
86
+ tone: {
87
+ product: {};
88
+ cahier: {
89
+ title: string;
90
+ summary: string;
91
+ };
92
+ };
73
93
  }, {
74
94
  root: string;
75
95
  inner: string;
76
- band: string;
77
- own: string;
96
+ row: string;
78
97
  family: string;
98
+ group: string;
99
+ summary: string;
100
+ chevron: string;
79
101
  column: string;
80
102
  title: string;
81
103
  list: string;
82
104
  link: string;
83
- mark: string;
84
- tag: string;
85
105
  bottom: string;
86
106
  signature: string;
87
107
  version: string;
88
108
  legal: string;
109
+ controls: string;
89
110
  }>>;
111
+ type Tone = "product" | "cahier";
90
112
  type SiteFooterProps = Omit<React.ComponentProps<"footer">, "children"> & {
91
- /** The site this footer belongs to (`@krizaka/ui/sites`): its mark and line, its signature, marked in the family. */
113
+ /** The site this footer belongs to (`@krizaka/ui/sites`): marked in the family, its address for `path`. */
92
114
  current: SiteId;
93
115
  /**
94
116
  * The family's words, passed translated: `familyLabels.fr` from `@krizaka/ui/sites`, or your own of the same shape.
95
117
  * @default familyLabels.en
96
118
  */
97
119
  labels?: FamilyLabels;
98
- /** The site's own columns (`SiteFooter.Column`), before the family. */
120
+ /** The site's own link groups (`SiteFooter.Column`), on the first line. */
99
121
  children?: React.ReactNode;
100
122
  /** The version the site runs (`1.2.3`, shown `v1.2.3`). */
101
123
  version?: string;
@@ -103,51 +125,49 @@ type SiteFooterProps = Omit<React.ComponentProps<"footer">, "children"> & {
103
125
  env?: string;
104
126
  /**
105
127
  * The path of the page being read on this site (`/en/story`, `/blog/…`): the company link that points to this very
106
- * page says so (`aria-current="page"`, a visible state) and a click on it scrolls to the top instead of reloading.
128
+ * page says so (`aria-current="page"`) and a click on it scrolls to the top instead of reloading.
107
129
  */
108
130
  path?: string;
109
131
  /**
110
- * Shows the family in columns. Only the hub, krizaka.com, lists the family: every other site (ui., java., the blog, the
111
- * products) holds its own columns, the legal links, the version and one quiet publisher line — “A Krizaka project” —
112
- * that links back to www.krizaka.com, the only way back between the sites (2026-10-22).
113
- * @default current === "krizaka"
132
+ * Shows the family on the second line, folded on a phone. The links to the other sites live on krizaka.com only
133
+ * (founder rule, 2026-10-30): every other site and its documentation opts in on purpose, none by default.
134
+ * @default current === "krizaka" (and never in `variant="app"`)
114
135
  */
115
136
  family?: boolean;
116
- /**
117
- * The hub's product list: only these products appear in the Products column (krizaka.com shows its focus products,
118
- * and all of them once the reader asks for the whole notebook). Omit it to list every product.
119
- */
137
+ /** Only these products in the Products group (the current site always kept). Omit it to list every product. */
120
138
  products?: readonly SiteId[];
121
139
  /**
122
- * The organisation's public facts (`org` of `@krizaka/org`). The signature line is then `org.footer.line` — « Une
123
- * entreprise de Technologies Krizaka · Fait à Montréal », the same on every site — and, when `legal` is not given, the
124
- * legal links are `org.footer.legal`, in the language of `labels`. No site writes these lines by hand.
140
+ * The organisation's public facts (`org` of `@krizaka/org`) — pass them on every site. The names and addresses of the
141
+ * family are then `org.family`, the signature is `org.footer.line` (« Une entreprise de Technologies Krizaka · Fait à
142
+ * Montréal », the same everywhere) and, without `legal`, the legal links are `org.footer.legal`.
125
143
  */
126
144
  org?: OrgFacts;
127
- /** The end of the signature line: legal links, a language switch (`SiteFooter.Link`s or any inline content). */
145
+ /** The legal links, when not the org's (`SiteFooter.Link`s). */
128
146
  legal?: React.ReactNode;
147
+ /** The host's controls at the end of the last line: the language switch, the theme toggle. */
148
+ controls?: React.ReactNode;
129
149
  /**
130
- * `site` — the full footer of a marketing or company site. `docs` — a compact one for documentation pages (no site
131
- * block, the columns in a row, the documentation's width; never the family). `app` — one slim line inside a signed-in
132
- * product: the publisher line, the version and the legal links (no columns, no family); render it once, in the
133
- * layout, and not at all where the app shell has a sidebar that holds them.
150
+ * `site` — every public site. `docs` — the same under documentation, on its width. `app` — inside a signed-in product:
151
+ * the last line only; render it once, in the layout.
134
152
  * @default "site"
135
153
  */
136
154
  variant?: "site" | "docs" | "app";
155
+ /** `cahier` on the Cahier sites (www, blog, ui., java., ts., lab.), `product` in the products. @default "product" */
156
+ tone?: Tone;
137
157
  };
138
- /** The footer of a Krizaka site, one band: its own columns and the family's, then one line — signature, version, Montréal, legal. */
139
- declare function SiteFooter({ current, labels, children, version, env, path, legal: legalProp, org, family: familyProp, products, variant, className, ...props }: SiteFooterProps): React.JSX.Element;
158
+ /** The footer of a Krizaka site or app: at most three lines — its links, the family, then signature · version · legal. */
159
+ declare function SiteFooter({ current, labels, children, version, env, path, legal: legalProp, controls, org, family: familyProp, products, variant, tone, className, ...props }: SiteFooterProps): React.JSX.Element;
140
160
  declare namespace SiteFooter {
141
161
  var Column: typeof SiteFooterColumn;
142
162
  var Link: typeof SiteFooterLink;
143
163
  }
144
164
  type SiteFooterColumnProps = Omit<React.ComponentProps<"div">, "title"> & {
145
- /** The column's heading (“Docs”) — passed translated. */
165
+ /** The group's heading (“Docs”) — passed translated. */
146
166
  title: string;
147
167
  /** Its links (`SiteFooter.Link`). */
148
168
  children: React.ReactNode;
149
169
  };
150
- /** One of the site's own columns: a heading and its links. */
170
+ /** One of the site's own link groups, inline on the first line: its heading, then its links. */
151
171
  declare function SiteFooterColumn({ title, children, className, ...props }: SiteFooterColumnProps): React.JSX.Element | null;
152
172
  type SiteFooterLinkProps = React.ComponentProps<"a"> & {
153
173
  /** The current page: `aria-current="page"`. */
@@ -1,54 +1,72 @@
1
1
  "use client";
2
2
  import {
3
- FamilyMark,
4
3
  companyLinks,
5
4
  familyLabels,
6
5
  siteById,
7
- sitesByGroup
8
- } from "./chunk-SG3QJJXE.js";
6
+ siteGroups,
7
+ sites
8
+ } from "./chunk-ENFXJUDN.js";
9
9
  import {
10
- KrizakaLogo
10
+ ProductLogo
11
11
  } from "./chunk-PGPNYYE2.js";
12
12
 
13
13
  // src/site-footer/site-footer.tsx
14
14
  import { Slot } from "radix-ui";
15
15
  import * as React from "react";
16
16
  import { tv } from "tailwind-variants";
17
+
18
+ // src/sites/family-groups.ts
19
+ var ORG_ID = { motion: "lab" };
20
+ function familyGroups(org) {
21
+ const entries = org?.family ? org.family.map((e) => ({ id: e.id, name: e.name, url: e.url, group: e.group })) : sites.map((s) => ({ id: ORG_ID[s.id] ?? s.id, name: s.name, url: s.url, group: s.group }));
22
+ return siteGroups.map((group) => ({ group, entries: entries.filter((e) => e.group === group) })).filter((g) => g.entries.length > 0);
23
+ }
24
+ var orgIdOf = (id) => ORG_ID[id] ?? id;
25
+
26
+ // src/site-footer/site-footer.tsx
17
27
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
18
28
  var siteFooter = tv({
19
29
  slots: {
20
30
  root: "w-full border-t border-border-subtle bg-surface-0 text-fg",
21
- inner: "mx-auto grid w-full max-w-[calc(var(--kz-page-max,72rem)_+_2*var(--kz-page-gutter,clamp(16px,3.2vw,32px)))] grid-cols-[minmax(0,1fr)] gap-10 px-[var(--kz-page-gutter,clamp(16px,3.2vw,32px))] py-12",
22
- band: "grid grid-cols-[minmax(0,1fr)] gap-8 lg:grid-flow-col lg:auto-cols-[minmax(0,1fr)]",
23
- own: "grid grid-cols-[repeat(auto-fit,minmax(9rem,1fr))] gap-8",
24
- family: "grid grid-cols-2 gap-8 sm:grid-cols-3",
25
- column: "grid min-w-0 content-start gap-3",
26
- title: "text-[11px] font-semibold text-fg-secondary",
27
- list: "grid min-w-0 gap-2",
28
- link: "inline-flex min-h-6 min-w-0 flex-wrap items-center gap-x-2 gap-y-0.5 rounded-md text-sm [overflow-wrap:anywhere] text-fg-secondary no-underline transition-colors hover:text-fg focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring aria-[current=page]:text-fg aria-[current=page]:font-semibold aria-[current=true]:text-fg aria-[current=true]:font-semibold",
29
- mark: "flex h-4 w-4 shrink-0 items-center justify-center text-fg",
30
- tag: "rounded-sm bg-surface-3 px-1.5 py-px text-[10px] font-semibold text-fg-secondary",
31
- bottom: "flex flex-wrap items-center gap-x-5 gap-y-3 text-xs text-fg-secondary",
31
+ inner: "mx-auto grid w-full max-w-[calc(var(--kz-page-max,72rem)_+_2*var(--kz-page-gutter,clamp(16px,3.2vw,32px)))] grid-cols-[minmax(0,1fr)] gap-3 px-[var(--kz-page-gutter,clamp(16px,3.2vw,32px))] py-6",
32
+ row: "flex min-w-0 flex-wrap items-baseline gap-x-6 gap-y-2",
33
+ family: "grid min-w-0 grid-cols-[minmax(0,1fr)] gap-1 lg:flex lg:flex-wrap lg:items-baseline lg:gap-x-6 lg:gap-y-2",
34
+ group: "group/fold min-w-0 lg:[&::details-content]:[content-visibility:visible] lg:[&::details-content]:contents lg:[&>summary]:pointer-events-none lg:inline-flex lg:items-baseline lg:gap-2",
35
+ summary: "flex min-h-11 cursor-pointer list-none items-center justify-between rounded-md text-xs font-semibold text-fg-secondary [&::-webkit-details-marker]:hidden focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring lg:inline lg:min-h-0 lg:cursor-default",
36
+ chevron: "size-4 shrink-0 transition-transform group-open/fold:rotate-180 motion-reduce:transition-none lg:hidden",
37
+ column: "inline-flex min-w-0 flex-wrap items-baseline gap-x-2 gap-y-1",
38
+ title: "text-xs font-semibold text-fg-secondary",
39
+ list: "flex min-w-0 flex-wrap items-baseline gap-x-3 gap-y-1 pb-2 lg:pb-0",
40
+ link: "inline-flex min-h-6 min-w-0 items-center rounded-md text-sm [overflow-wrap:anywhere] text-fg-secondary no-underline transition-colors hover:text-fg focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring aria-[current=page]:text-fg aria-[current=page]:font-semibold aria-[current=true]:text-fg aria-[current=true]:font-semibold",
41
+ bottom: "flex flex-wrap items-center gap-x-4 gap-y-2 text-xs text-fg-secondary",
32
42
  signature: "inline-flex items-center gap-2 rounded-md font-medium text-fg no-underline hover:text-fg-accent focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring",
33
43
  version: "rounded-sm border border-border-subtle bg-surface-2 px-2 py-0.5 font-mono text-[11px] text-fg-secondary",
34
- legal: "flex flex-wrap items-center gap-x-4 gap-y-2 sm:ml-auto"
44
+ legal: "flex flex-wrap items-center gap-x-4 gap-y-2",
45
+ controls: "flex flex-wrap items-center gap-2 sm:ml-auto"
35
46
  },
36
47
  variants: {
37
- // `site`: the full footer. `docs`: no site block, the columns in one row, on the documentation's width. `app`: one
38
- // slim line inside a signed-in product — signature, version, legal links.
48
+ // `site`: the three lines. `docs`: the same on the documentation's width. `app`: line 3 only, inside a signed-in product.
39
49
  variant: {
40
50
  site: {},
41
51
  docs: {
42
- inner: "max-w-[calc(var(--kz-page-max-docs,88rem)_+_2*var(--kz-page-gutter,clamp(16px,3.2vw,32px)))] gap-6 py-8",
43
- own: "sm:grid-cols-4"
52
+ inner: "max-w-[calc(var(--kz-page-max-docs,88rem)_+_2*var(--kz-page-gutter,clamp(16px,3.2vw,32px)))]"
44
53
  },
45
54
  app: {
46
55
  root: "bg-transparent",
47
- inner: "gap-0 py-3"
56
+ inner: "py-3"
57
+ }
58
+ },
59
+ // `product`: the products' plain Krizaka UI. `cahier`: the Cahier sites (www, blog, ui., java., ts., lab.) — the
60
+ // headings in the Cahier's hand; the structure is the same.
61
+ tone: {
62
+ product: {},
63
+ cahier: {
64
+ title: "font-[family-name:var(--kz-font-display,inherit)] italic",
65
+ summary: "font-[family-name:var(--kz-font-display,inherit)] italic"
48
66
  }
49
67
  }
50
68
  },
51
- defaultVariants: { variant: "site" }
69
+ defaultVariants: { variant: "site", tone: "product" }
52
70
  });
53
71
  var bare = (p) => p.replace(/^\/(en|fr)(?=\/|$)/, "").replace(/\/+$/, "") || "/";
54
72
  function isThisPage(href, siteUrl, path) {
@@ -64,6 +82,7 @@ function backToTop(event) {
64
82
  event.preventDefault();
65
83
  window.scrollTo({ top: 0, behavior: "auto" });
66
84
  }
85
+ var ToneContext = React.createContext("product");
67
86
  function SiteFooter({
68
87
  current,
69
88
  labels = familyLabels.en,
@@ -72,66 +91,72 @@ function SiteFooter({
72
91
  env,
73
92
  path,
74
93
  legal: legalProp,
94
+ controls,
75
95
  org,
76
96
  family: familyProp,
77
97
  products,
78
98
  variant = "site",
99
+ tone = "product",
79
100
  className,
80
101
  ...props
81
102
  }) {
82
103
  const id = React.useId();
83
- const s = siteFooter({ variant });
84
- const family = variant === "site" && (familyProp ?? current === "krizaka");
104
+ const s = siteFooter({ variant, tone });
85
105
  const slim = variant === "app";
106
+ const family = !slim && (familyProp ?? current === "krizaka");
86
107
  const site = siteById(current);
87
108
  const krizaka = siteById("krizaka");
109
+ const currentId = orgIdOf(current);
88
110
  const tag = [env, version && `v${version.replace(/^v/, "")}`].filter(Boolean).join(" \xB7 ");
89
- const own = React.Children.toArray(children).length > 0;
111
+ const own = !slim && React.Children.toArray(children).length > 0;
90
112
  const lang = labels.lang ?? "en";
91
113
  const company = labels.company ?? familyLabels.en.company;
92
114
  const legal = legalProp ?? (org && /* @__PURE__ */ jsx(Fragment, { children: org.footer.legal.map((l) => /* @__PURE__ */ jsx(SiteFooterLink, { href: l.url[lang], children: l.label[lang] }, l.id)) }));
93
115
  const here = (href) => path !== void 0 && isThisPage(href, site.url, path);
94
- const groups = sitesByGroup();
116
+ const productIds = products?.map(orgIdOf);
117
+ const groups = familyGroups(org);
95
118
  const columns = [
96
- ...groups.filter((g) => g.group === "products").map((g) => products ? { ...g, sites: g.sites.filter((x) => products.includes(x.id) || x.id === current) } : g),
97
- { group: "open-source", sites: groups.filter((g) => g.group === "open-source" || g.group === "github").flatMap((g) => g.sites) }
119
+ ...groups.filter((g) => g.group === "products").map((g) => ({ ...g, entries: productIds ? g.entries.filter((e) => productIds.includes(e.id) || e.id === currentId) : g.entries })),
120
+ { group: "open-source", entries: groups.filter((g) => g.group === "open-source" || g.group === "github").flatMap((g) => g.entries) }
98
121
  ];
99
- return /* @__PURE__ */ jsx("footer", { className: s.root({ className }), ...props, children: /* @__PURE__ */ jsxs("div", { className: s.inner(), children: [
100
- !slim && (own || family) && /* @__PURE__ */ jsxs("div", { className: s.band(), children: [
101
- own && /* @__PURE__ */ jsx("div", { className: s.own(), children }),
102
- family && /* @__PURE__ */ jsxs("nav", { "aria-label": labels.family, className: s.family(), children: [
103
- columns.map(({ group, sites }) => /* @__PURE__ */ jsxs("div", { className: s.column(), children: [
104
- /* @__PURE__ */ jsx("p", { id: `${id}-${group}`, className: s.title(), children: labels.groups[group] }),
105
- /* @__PURE__ */ jsx("ul", { "aria-labelledby": `${id}-${group}`, className: s.list(), children: sites.map((item) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs("a", { href: item.url, "aria-current": item.id === current ? "true" : void 0, className: s.link(), children: [
106
- /* @__PURE__ */ jsx("span", { className: s.mark(), children: /* @__PURE__ */ jsx(FamilyMark, { mark: item.mark, size: 16 }) }),
107
- item.name,
108
- item.status !== "released" && /* @__PURE__ */ jsx("span", { className: s.tag(), children: labels.status[item.status] }),
109
- item.id === current && /* @__PURE__ */ jsxs("span", { className: "sr-only", children: [
110
- "(",
111
- labels.current,
112
- ")"
113
- ] })
114
- ] }) }, item.id)) })
115
- ] }, group)),
116
- /* @__PURE__ */ jsxs("div", { className: s.column(), children: [
117
- /* @__PURE__ */ jsx("p", { id: `${id}-krizaka`, className: s.title(), children: labels.groups.krizaka }),
118
- /* @__PURE__ */ jsx("ul", { "aria-labelledby": `${id}-krizaka`, className: s.list(), children: companyLinks.map((l) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
119
- "a",
120
- {
121
- href: l.url[lang],
122
- "aria-current": here(l.url[lang]) ? "page" : void 0,
123
- onClick: here(l.url[lang]) ? backToTop : void 0,
124
- className: s.link(),
125
- children: company[l.id]
126
- }
127
- ) }, l.id)) })
128
- ] })
129
- ] })
130
- ] }),
122
+ const companyEntries = companyLinks.map((l) => ({ id: l.id, name: company[l.id], url: l.url[lang] }));
123
+ return /* @__PURE__ */ jsx(ToneContext.Provider, { value: tone, children: /* @__PURE__ */ jsx("footer", { className: s.root({ className }), ...props, children: /* @__PURE__ */ jsxs("div", { className: s.inner(), children: [
124
+ own && /* @__PURE__ */ jsx("div", { className: s.row(), children }),
125
+ family && /* @__PURE__ */ jsx("nav", { "aria-label": labels.family, className: s.family(), children: [
126
+ ...columns.map((c) => ({ key: c.group, title: labels.groups[c.group], entries: c.entries })),
127
+ { key: "krizaka", title: labels.groups.krizaka, entries: companyEntries }
128
+ ].filter((c) => c.entries.length > 0).map((c) => /* @__PURE__ */ jsxs("details", { className: s.group(), children: [
129
+ /* @__PURE__ */ jsxs("summary", { id: `${id}-${c.key}`, className: s.summary(), children: [
130
+ c.title,
131
+ /* @__PURE__ */ jsx("svg", { "aria-hidden": "true", viewBox: "0 0 16 16", fill: "none", stroke: "currentColor", strokeWidth: "1.5", className: s.chevron(), children: /* @__PURE__ */ jsx("path", { d: "M4 6l4 4 4-4", strokeLinecap: "round", strokeLinejoin: "round" }) })
132
+ ] }),
133
+ /* @__PURE__ */ jsx("ul", { "aria-labelledby": `${id}-${c.key}`, className: s.list(), children: c.entries.map((e) => {
134
+ const isCompany = c.key === "krizaka";
135
+ const atHome = isCompany && here(e.url);
136
+ const isCurrent = !isCompany && e.id === currentId;
137
+ return /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs(
138
+ "a",
139
+ {
140
+ href: e.url,
141
+ "aria-current": atHome ? "page" : isCurrent ? "true" : void 0,
142
+ onClick: atHome ? backToTop : void 0,
143
+ className: s.link(),
144
+ children: [
145
+ e.name,
146
+ isCurrent && /* @__PURE__ */ jsxs("span", { className: "sr-only", children: [
147
+ " (",
148
+ labels.current,
149
+ ")"
150
+ ] })
151
+ ]
152
+ }
153
+ ) }, e.id);
154
+ }) })
155
+ ] }, c.key)) }),
131
156
  /* @__PURE__ */ jsxs("div", { className: s.bottom(), children: [
132
157
  /* @__PURE__ */ jsxs("a", { href: krizaka.url, className: s.signature(), children: [
133
- /* @__PURE__ */ jsx(KrizakaLogo, { size: 18, animated: false }),
134
- org ? org.footer.line[lang] : labels.signature[site.kind]
158
+ /* @__PURE__ */ jsx(ProductLogo, { id: "krizaka", size: 18, animated: false }),
159
+ org ? org.footer.line[lang] : `${labels.signature[site.kind]} \xB7 ${labels.place}`
135
160
  ] }),
136
161
  tag && /* @__PURE__ */ jsxs("span", { className: s.version(), children: [
137
162
  /* @__PURE__ */ jsxs("span", { className: "sr-only", children: [
@@ -140,18 +165,19 @@ function SiteFooter({
140
165
  ] }),
141
166
  tag
142
167
  ] }),
143
- !slim && !org && /* @__PURE__ */ jsx("span", { children: labels.place }),
144
- legal && /* @__PURE__ */ jsx("div", { className: s.legal(), children: legal })
168
+ legal && /* @__PURE__ */ jsx("div", { className: s.legal(), children: legal }),
169
+ controls && /* @__PURE__ */ jsx("div", { className: s.controls(), children: controls })
145
170
  ] })
146
- ] }) });
171
+ ] }) }) });
147
172
  }
148
173
  function SiteFooterColumn({ title, children, className, ...props }) {
149
174
  const id = React.useId();
175
+ const tone = React.useContext(ToneContext);
150
176
  if (React.Children.toArray(children).length === 0) return null;
151
- const s = siteFooter();
177
+ const s = siteFooter({ tone });
152
178
  return /* @__PURE__ */ jsxs("div", { className: s.column({ className }), ...props, children: [
153
179
  /* @__PURE__ */ jsx("p", { id, className: s.title(), children: title }),
154
- /* @__PURE__ */ jsx("ul", { "aria-labelledby": id, className: s.list(), children: React.Children.toArray(children).map((child, i) => /* @__PURE__ */ jsx("li", { children: child }, i)) })
180
+ /* @__PURE__ */ jsx("ul", { "aria-labelledby": id, className: s.list({ className: "pb-0" }), children: React.Children.toArray(children).map((child, i) => /* @__PURE__ */ jsx("li", { children: child }, i)) })
155
181
  ] });
156
182
  }
157
183
  function SiteFooterLink({ active, asChild, className, ...props }) {
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/site-footer/site-footer.tsx"],"sourcesContent":["// Client (the marks hold an id). The footer shared by every site of the Krizaka family — one calm band (Cahier, ADR-004;\n// peer review krizaka-ui#434: « too much, a double footer »): the site's own columns and the family's columns side by\n// side — Products · Open source (GitHub with them) · Krizaka (our story, the blog, contact) — then one line, with no\n// rule above it (a bottom bar under the columns read as a second footer, 2026-10-21): the signature (“A Krizaka product”, by the kind of the current site, to www), the version, the place, the legal links.\n// No site block (the bar already names the site), no column that lists only Krizaka, no link twice.\nimport { Slot } from \"radix-ui\";\nimport * as React from \"react\";\nimport { tv } from \"tailwind-variants\";\n\nimport { FamilyMark } from \"../family-mark\";\nimport { KrizakaLogo } from \"../marks/KrizakaLogo\";\nimport { companyLinks, type FamilyLabels, familyLabels, type OrgFacts, siteById, type SiteId, sitesByGroup } from \"../sites/sites\";\n\nexport const siteFooter = tv({\n slots: {\n root: \"w-full border-t border-border-subtle bg-surface-0 text-fg\",\n inner:\n \"mx-auto grid w-full max-w-[calc(var(--kz-page-max,72rem)_+_2*var(--kz-page-gutter,clamp(16px,3.2vw,32px)))] grid-cols-[minmax(0,1fr)] gap-10 px-[var(--kz-page-gutter,clamp(16px,3.2vw,32px))] py-12\",\n band: \"grid grid-cols-[minmax(0,1fr)] gap-8 lg:grid-flow-col lg:auto-cols-[minmax(0,1fr)]\",\n own: \"grid grid-cols-[repeat(auto-fit,minmax(9rem,1fr))] gap-8\",\n family: \"grid grid-cols-2 gap-8 sm:grid-cols-3\",\n column: \"grid min-w-0 content-start gap-3\",\n title: \"text-[11px] font-semibold text-fg-secondary\",\n list: \"grid min-w-0 gap-2\",\n link:\n \"inline-flex min-h-6 min-w-0 flex-wrap items-center gap-x-2 gap-y-0.5 rounded-md text-sm [overflow-wrap:anywhere] text-fg-secondary no-underline transition-colors hover:text-fg \" +\n \"focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring aria-[current=page]:text-fg aria-[current=page]:font-semibold aria-[current=true]:text-fg aria-[current=true]:font-semibold\",\n mark: \"flex h-4 w-4 shrink-0 items-center justify-center text-fg\",\n tag: \"rounded-sm bg-surface-3 px-1.5 py-px text-[10px] font-semibold text-fg-secondary\",\n bottom: \"flex flex-wrap items-center gap-x-5 gap-y-3 text-xs text-fg-secondary\",\n signature:\n \"inline-flex items-center gap-2 rounded-md font-medium text-fg no-underline hover:text-fg-accent focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring\",\n version:\n \"rounded-sm border border-border-subtle bg-surface-2 px-2 py-0.5 font-mono text-[11px] text-fg-secondary\",\n legal: \"flex flex-wrap items-center gap-x-4 gap-y-2 sm:ml-auto\",\n },\n variants: {\n // `site`: the full footer. `docs`: no site block, the columns in one row, on the documentation's width. `app`: one\n // slim line inside a signed-in product — signature, version, legal links.\n variant: {\n site: {},\n docs: {\n inner: \"max-w-[calc(var(--kz-page-max-docs,88rem)_+_2*var(--kz-page-gutter,clamp(16px,3.2vw,32px)))] gap-6 py-8\",\n own: \"sm:grid-cols-4\",\n },\n app: {\n root: \"bg-transparent\",\n inner: \"gap-0 py-3\",\n },\n },\n },\n defaultVariants: { variant: \"site\" },\n});\n\nconst bare = (p: string) => p.replace(/^\\/(en|fr)(?=\\/|$)/, \"\").replace(/\\/+$/, \"\") || \"/\";\n\n/** Is `href` (an absolute family address) the page `path` of the site at `siteUrl`? Locale prefix and trailing slash do not count. */\nfunction isThisPage(href: string, siteUrl: string, path: string): boolean {\n try {\n const target = new URL(href);\n return target.host === new URL(siteUrl).host && bare(target.pathname) === bare(path.split(/[?#]/)[0]!);\n } catch {\n return false;\n }\n}\n\n/** The link to the page you are on: no reload, back to the top (the browser would otherwise keep or restore the scroll). */\nfunction backToTop(event: React.MouseEvent<HTMLAnchorElement>) {\n if (event.metaKey || event.ctrlKey || event.shiftKey || event.button !== 0) return;\n event.preventDefault();\n window.scrollTo({ top: 0, behavior: \"auto\" });\n}\n\nexport type SiteFooterProps = Omit<React.ComponentProps<\"footer\">, \"children\"> & {\n /** The site this footer belongs to (`@krizaka/ui/sites`): its mark and line, its signature, marked in the family. */\n current: SiteId;\n /**\n * The family's words, passed translated: `familyLabels.fr` from `@krizaka/ui/sites`, or your own of the same shape.\n * @default familyLabels.en\n */\n labels?: FamilyLabels;\n /** The site's own columns (`SiteFooter.Column`), before the family. */\n children?: React.ReactNode;\n /** The version the site runs (`1.2.3`, shown `v1.2.3`). */\n version?: string;\n /** The environment, when it is not production (`DEV`). */\n env?: string;\n /**\n * The path of the page being read on this site (`/en/story`, `/blog/…`): the company link that points to this very\n * page says so (`aria-current=\"page\"`, a visible state) and a click on it scrolls to the top instead of reloading.\n */\n path?: string;\n /**\n * Shows the family in columns. Only the hub, krizaka.com, lists the family: every other site (ui., java., the blog, the\n * products) holds its own columns, the legal links, the version and one quiet publisher line — “A Krizaka project” —\n * that links back to www.krizaka.com, the only way back between the sites (2026-10-22).\n * @default current === \"krizaka\"\n */\n family?: boolean;\n /**\n * The hub's product list: only these products appear in the Products column (krizaka.com shows its focus products,\n * and all of them once the reader asks for the whole notebook). Omit it to list every product.\n */\n products?: readonly SiteId[];\n /**\n * The organisation's public facts (`org` of `@krizaka/org`). The signature line is then `org.footer.line` — « Une\n * entreprise de Technologies Krizaka · Fait à Montréal », the same on every site — and, when `legal` is not given, the\n * legal links are `org.footer.legal`, in the language of `labels`. No site writes these lines by hand.\n */\n org?: OrgFacts;\n /** The end of the signature line: legal links, a language switch (`SiteFooter.Link`s or any inline content). */\n legal?: React.ReactNode;\n /**\n * `site` — the full footer of a marketing or company site. `docs` — a compact one for documentation pages (no site\n * block, the columns in a row, the documentation's width; never the family). `app` — one slim line inside a signed-in\n * product: the publisher line, the version and the legal links (no columns, no family); render it once, in the\n * layout, and not at all where the app shell has a sidebar that holds them.\n * @default \"site\"\n */\n variant?: \"site\" | \"docs\" | \"app\";\n};\n\n/** The footer of a Krizaka site, one band: its own columns and the family's, then one line — signature, version, Montréal, legal. */\nexport function SiteFooter({\n current,\n labels = familyLabels.en,\n children,\n version,\n env,\n path,\n legal: legalProp,\n org,\n family: familyProp,\n products,\n variant = \"site\",\n className,\n ...props\n}: SiteFooterProps) {\n const id = React.useId();\n const s = siteFooter({ variant });\n const family = variant === \"site\" && (familyProp ?? current === \"krizaka\");\n const slim = variant === \"app\";\n const site = siteById(current);\n const krizaka = siteById(\"krizaka\");\n const tag = [env, version && `v${version.replace(/^v/, \"\")}`].filter(Boolean).join(\" · \");\n const own = React.Children.toArray(children).length > 0;\n const lang = labels.lang ?? \"en\";\n const company = labels.company ?? familyLabels.en.company!;\n const legal =\n legalProp ??\n (org && (\n <>\n {org.footer.legal.map((l) => (\n <SiteFooterLink key={l.id} href={l.url[lang]}>\n {l.label[lang]}\n </SiteFooterLink>\n ))}\n </>\n ));\n const here = (href: string) => path !== undefined && isThisPage(href, site.url, path);\n // Products · Open source (GitHub, every repository, closes it) · Krizaka (the company's pages): three columns, no\n // column that lists only Krizaka.\n const groups = sitesByGroup();\n const columns = [\n ...groups.filter((g) => g.group === \"products\").map((g) => (products ? { ...g, sites: g.sites.filter((x) => products.includes(x.id) || x.id === current) } : g)),\n { group: \"open-source\" as const, sites: groups.filter((g) => g.group === \"open-source\" || g.group === \"github\").flatMap((g) => g.sites) },\n ];\n return (\n <footer className={s.root({ className })} {...props}>\n <div className={s.inner()}>\n {!slim && (own || family) && (\n <div className={s.band()}>\n {own && <div className={s.own()}>{children}</div>}\n {family && (\n <nav aria-label={labels.family} className={s.family()}>\n {columns.map(({ group, sites }) => (\n <div key={group} className={s.column()}>\n <p id={`${id}-${group}`} className={s.title()}>\n {labels.groups[group]}\n </p>\n <ul aria-labelledby={`${id}-${group}`} className={s.list()}>\n {sites.map((item) => (\n <li key={item.id}>\n <a href={item.url} aria-current={item.id === current ? \"true\" : undefined} className={s.link()}>\n <span className={s.mark()}>\n <FamilyMark mark={item.mark} size={16} />\n </span>\n {item.name}\n {item.status !== \"released\" && <span className={s.tag()}>{labels.status[item.status]}</span>}\n {item.id === current && <span className=\"sr-only\">({labels.current})</span>}\n </a>\n </li>\n ))}\n </ul>\n </div>\n ))}\n <div className={s.column()}>\n <p id={`${id}-krizaka`} className={s.title()}>\n {labels.groups.krizaka}\n </p>\n <ul aria-labelledby={`${id}-krizaka`} className={s.list()}>\n {companyLinks.map((l) => (\n <li key={l.id}>\n <a\n href={l.url[lang]}\n aria-current={here(l.url[lang]) ? \"page\" : undefined}\n onClick={here(l.url[lang]) ? backToTop : undefined}\n className={s.link()}\n >\n {company[l.id]}\n </a>\n </li>\n ))}\n </ul>\n </div>\n </nav>\n )}\n </div>\n )}\n <div className={s.bottom()}>\n <a href={krizaka.url} className={s.signature()}>\n <KrizakaLogo size={18} animated={false} />\n {org ? org.footer.line[lang] : labels.signature[site.kind]}\n </a>\n {tag && (\n <span className={s.version()}>\n <span className=\"sr-only\">{labels.version} </span>\n {tag}\n </span>\n )}\n {!slim && !org && <span>{labels.place}</span>}\n {legal && <div className={s.legal()}>{legal}</div>}\n </div>\n </div>\n </footer>\n );\n}\n\nexport type SiteFooterColumnProps = Omit<React.ComponentProps<\"div\">, \"title\"> & {\n /** The column's heading (“Docs”) — passed translated. */\n title: string;\n /** Its links (`SiteFooter.Link`). */\n children: React.ReactNode;\n};\n\n/** One of the site's own columns: a heading and its links. */\nexport function SiteFooterColumn({ title, children, className, ...props }: SiteFooterColumnProps) {\n const id = React.useId();\n // A group with no link is not a column: only a heading over nothing.\n if (React.Children.toArray(children).length === 0) return null;\n const s = siteFooter();\n return (\n <div className={s.column({ className })} {...props}>\n <p id={id} className={s.title()}>\n {title}\n </p>\n <ul aria-labelledby={id} className={s.list()}>\n {React.Children.toArray(children).map((child, i) => <li key={i}>{child}</li>)}\n </ul>\n </div>\n );\n}\n\nexport type SiteFooterLinkProps = React.ComponentProps<\"a\"> & {\n /** The current page: `aria-current=\"page\"`. */\n active?: boolean;\n /** Renders your router's `<Link>`. */\n asChild?: boolean;\n};\n\n/** A link of the footer. */\nexport function SiteFooterLink({ active, asChild, className, ...props }: SiteFooterLinkProps) {\n const s = siteFooter();\n const Comp = asChild ? Slot.Root : \"a\";\n return <Comp aria-current={active ? \"page\" : undefined} className={s.link({ className })} {...props} />;\n}\n\nSiteFooter.Column = SiteFooterColumn;\nSiteFooter.Link = SiteFooterLink;\n"],"mappings":";;;;;;;;;;;;;AAKA,SAAS,YAAY;AACrB,YAAY,WAAW;AACvB,SAAS,UAAU;AAgJb,mBAEI,KAoC0C,YAtC9C;AA1IC,IAAM,aAAa,GAAG;AAAA,EAC3B,OAAO;AAAA,IACL,MAAM;AAAA,IACN,OACE;AAAA,IACF,MAAM;AAAA,IACN,KAAK;AAAA,IACL,QAAQ;AAAA,IACR,QAAQ;AAAA,IACR,OAAO;AAAA,IACP,MAAM;AAAA,IACN,MACE;AAAA,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,GAAG,MAAM,GAAwB;AAC5F,QAAM,IAAI,WAAW;AACrB,QAAM,OAAO,UAAU,KAAK,OAAO;AACnC,SAAO,oBAAC,QAAK,gBAAc,SAAS,SAAS,QAAW,WAAW,EAAE,KAAK,EAAE,UAAU,CAAC,GAAI,GAAG,OAAO;AACvG;AAEA,WAAW,SAAS;AACpB,WAAW,OAAO;","names":[]}
1
+ {"version":3,"sources":["../src/site-footer/site-footer.tsx","../src/sites/family-groups.ts"],"sourcesContent":["// Client (the mark holds an id). The footer shared by every site and app of the Krizaka family — compact (founder,\n// 2026-10-30, krizaka/krizaka-internal#754: « des footers de 10 lignes »): at most three lines on a desktop —\n// 1. the site's own links, each group inline (`Docs Get started · Components`);\n// 2. the family, grouped inline (Products · Open source · Krizaka), names read from `org.family` of `@krizaka/org`;\n// 3. one line: the mark and the org's signature, the version, the legal links, the host's controls (language, theme).\n// On a phone the family's groups fold (`<details>`), the rest wraps. `variant=\"app\"` keeps line 3 only. Same structure on\n// the Cahier sites and the products (`tone`). No link twice, no site block, no names typed here when `org` is given.\nimport { Slot } from \"radix-ui\";\nimport * as React from \"react\";\nimport { tv } from \"tailwind-variants\";\n\n// ProductLogo, not KrizakaLogo: one import path keeps every mark in one shared chunk (KrizakaLogo alone split it: +871 B gzip on the typical page).\nimport { ProductLogo } from \"../marks/ProductLogo\";\nimport { familyGroups, orgIdOf } from \"../sites/family-groups\";\nimport { companyLinks, type FamilyLabels, familyLabels, type OrgFacts, siteById, type SiteId } from \"../sites/sites\";\n\nexport const siteFooter = tv({\n slots: {\n root: \"w-full border-t border-border-subtle bg-surface-0 text-fg\",\n inner:\n \"mx-auto grid w-full max-w-[calc(var(--kz-page-max,72rem)_+_2*var(--kz-page-gutter,clamp(16px,3.2vw,32px)))] grid-cols-[minmax(0,1fr)] gap-3 px-[var(--kz-page-gutter,clamp(16px,3.2vw,32px))] py-6\",\n row: \"flex min-w-0 flex-wrap items-baseline gap-x-6 gap-y-2\",\n family: \"grid min-w-0 grid-cols-[minmax(0,1fr)] gap-1 lg:flex lg:flex-wrap lg:items-baseline lg:gap-x-6 lg:gap-y-2\",\n group:\n \"group/fold min-w-0 lg:[&::details-content]:[content-visibility:visible] lg:[&::details-content]:contents lg:[&>summary]:pointer-events-none lg:inline-flex lg:items-baseline lg:gap-2\",\n summary:\n \"flex min-h-11 cursor-pointer list-none items-center justify-between rounded-md text-xs font-semibold text-fg-secondary [&::-webkit-details-marker]:hidden \" +\n \"focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring lg:inline lg:min-h-0 lg:cursor-default\",\n chevron: \"size-4 shrink-0 transition-transform group-open/fold:rotate-180 motion-reduce:transition-none lg:hidden\",\n column: \"inline-flex min-w-0 flex-wrap items-baseline gap-x-2 gap-y-1\",\n title: \"text-xs font-semibold text-fg-secondary\",\n list: \"flex min-w-0 flex-wrap items-baseline gap-x-3 gap-y-1 pb-2 lg:pb-0\",\n link:\n \"inline-flex min-h-6 min-w-0 items-center rounded-md text-sm [overflow-wrap:anywhere] text-fg-secondary no-underline transition-colors hover:text-fg \" +\n \"focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring aria-[current=page]:text-fg aria-[current=page]:font-semibold aria-[current=true]:text-fg aria-[current=true]:font-semibold\",\n bottom: \"flex flex-wrap items-center gap-x-4 gap-y-2 text-xs text-fg-secondary\",\n signature:\n \"inline-flex items-center gap-2 rounded-md font-medium text-fg no-underline hover:text-fg-accent focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring\",\n version:\n \"rounded-sm border border-border-subtle bg-surface-2 px-2 py-0.5 font-mono text-[11px] text-fg-secondary\",\n legal: \"flex flex-wrap items-center gap-x-4 gap-y-2\",\n controls: \"flex flex-wrap items-center gap-2 sm:ml-auto\",\n },\n variants: {\n // `site`: the three lines. `docs`: the same on the documentation's width. `app`: line 3 only, inside a signed-in product.\n variant: {\n site: {},\n docs: {\n inner: \"max-w-[calc(var(--kz-page-max-docs,88rem)_+_2*var(--kz-page-gutter,clamp(16px,3.2vw,32px)))]\",\n },\n app: {\n root: \"bg-transparent\",\n inner: \"py-3\",\n },\n },\n // `product`: the products' plain Krizaka UI. `cahier`: the Cahier sites (www, blog, ui., java., ts., lab.) — the\n // headings in the Cahier's hand; the structure is the same.\n tone: {\n product: {},\n cahier: {\n title: \"font-[family-name:var(--kz-font-display,inherit)] italic\",\n summary: \"font-[family-name:var(--kz-font-display,inherit)] italic\",\n },\n },\n },\n defaultVariants: { variant: \"site\", tone: \"product\" },\n});\n\nconst bare = (p: string) => p.replace(/^\\/(en|fr)(?=\\/|$)/, \"\").replace(/\\/+$/, \"\") || \"/\";\n\n/** Is `href` (an absolute family address) the page `path` of the site at `siteUrl`? Locale prefix and trailing slash do not count. */\nfunction isThisPage(href: string, siteUrl: string, path: string): boolean {\n try {\n const target = new URL(href);\n return target.host === new URL(siteUrl).host && bare(target.pathname) === bare(path.split(/[?#]/)[0]!);\n } catch {\n return false;\n }\n}\n\n/** The link to the page you are on: no reload, back to the top (the browser would otherwise keep or restore the scroll). */\nfunction backToTop(event: React.MouseEvent<HTMLAnchorElement>) {\n if (event.metaKey || event.ctrlKey || event.shiftKey || event.button !== 0) return;\n event.preventDefault();\n window.scrollTo({ top: 0, behavior: \"auto\" });\n}\n\ntype Tone = \"product\" | \"cahier\";\nconst ToneContext = React.createContext<Tone>(\"product\");\n\nexport type SiteFooterProps = Omit<React.ComponentProps<\"footer\">, \"children\"> & {\n /** The site this footer belongs to (`@krizaka/ui/sites`): marked in the family, its address for `path`. */\n current: SiteId;\n /**\n * The family's words, passed translated: `familyLabels.fr` from `@krizaka/ui/sites`, or your own of the same shape.\n * @default familyLabels.en\n */\n labels?: FamilyLabels;\n /** The site's own link groups (`SiteFooter.Column`), on the first line. */\n children?: React.ReactNode;\n /** The version the site runs (`1.2.3`, shown `v1.2.3`). */\n version?: string;\n /** The environment, when it is not production (`DEV`). */\n env?: string;\n /**\n * The path of the page being read on this site (`/en/story`, `/blog/…`): the company link that points to this very\n * page says so (`aria-current=\"page\"`) and a click on it scrolls to the top instead of reloading.\n */\n path?: string;\n /**\n * Shows the family on the second line, folded on a phone. The links to the other sites live on krizaka.com only\n * (founder rule, 2026-10-30): every other site and its documentation opts in on purpose, none by default.\n * @default current === \"krizaka\" (and never in `variant=\"app\"`)\n */\n family?: boolean;\n /** Only these products in the Products group (the current site always kept). Omit it to list every product. */\n products?: readonly SiteId[];\n /**\n * The organisation's public facts (`org` of `@krizaka/org`) — pass them on every site. The names and addresses of the\n * family are then `org.family`, the signature is `org.footer.line` (« Une entreprise de Technologies Krizaka · Fait à\n * Montréal », the same everywhere) and, without `legal`, the legal links are `org.footer.legal`.\n */\n org?: OrgFacts;\n /** The legal links, when not the org's (`SiteFooter.Link`s). */\n legal?: React.ReactNode;\n /** The host's controls at the end of the last line: the language switch, the theme toggle. */\n controls?: React.ReactNode;\n /**\n * `site` — every public site. `docs` — the same under documentation, on its width. `app` — inside a signed-in product:\n * the last line only; render it once, in the layout.\n * @default \"site\"\n */\n variant?: \"site\" | \"docs\" | \"app\";\n /** `cahier` on the Cahier sites (www, blog, ui., java., ts., lab.), `product` in the products. @default \"product\" */\n tone?: Tone;\n};\n\n/** The footer of a Krizaka site or app: at most three lines — its links, the family, then signature · version · legal. */\nexport function SiteFooter({\n current,\n labels = familyLabels.en,\n children,\n version,\n env,\n path,\n legal: legalProp,\n controls,\n org,\n family: familyProp,\n products,\n variant = \"site\",\n tone = \"product\",\n className,\n ...props\n}: SiteFooterProps) {\n const id = React.useId();\n const s = siteFooter({ variant, tone });\n const slim = variant === \"app\";\n const family = !slim && (familyProp ?? current === \"krizaka\");\n const site = siteById(current);\n const krizaka = siteById(\"krizaka\");\n const currentId = orgIdOf(current);\n const tag = [env, version && `v${version.replace(/^v/, \"\")}`].filter(Boolean).join(\" · \");\n const own = !slim && React.Children.toArray(children).length > 0;\n const lang = labels.lang ?? \"en\";\n const company = labels.company ?? familyLabels.en.company!;\n const legal =\n legalProp ??\n (org && (\n <>\n {org.footer.legal.map((l) => (\n <SiteFooterLink key={l.id} href={l.url[lang]}>\n {l.label[lang]}\n </SiteFooterLink>\n ))}\n </>\n ));\n const here = (href: string) => path !== undefined && isThisPage(href, site.url, path);\n const productIds = products?.map(orgIdOf);\n // Products · Open source (GitHub closes it) · Krizaka (the company's pages; its home is the signature's link).\n const groups = familyGroups(org);\n const columns = [\n ...groups\n .filter((g) => g.group === \"products\")\n .map((g) => ({ ...g, entries: productIds ? g.entries.filter((e) => productIds.includes(e.id) || e.id === currentId) : g.entries })),\n { group: \"open-source\" as const, entries: groups.filter((g) => g.group === \"open-source\" || g.group === \"github\").flatMap((g) => g.entries) },\n ];\n const companyEntries = companyLinks.map((l) => ({ id: l.id, name: company[l.id], url: l.url[lang] }));\n return (\n <ToneContext.Provider value={tone}>\n <footer className={s.root({ className })} {...props}>\n <div className={s.inner()}>\n {own && <div className={s.row()}>{children}</div>}\n {family && (\n <nav aria-label={labels.family} className={s.family()}>\n {[\n ...columns.map((c) => ({ key: c.group, title: labels.groups[c.group], entries: c.entries })),\n { key: \"krizaka\" as const, title: labels.groups.krizaka, entries: companyEntries },\n ]\n .filter((c) => c.entries.length > 0)\n .map((c) => (\n <details key={c.key} className={s.group()}>\n <summary id={`${id}-${c.key}`} className={s.summary()}>\n {c.title}\n <svg aria-hidden=\"true\" viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.5\" className={s.chevron()}>\n <path d=\"M4 6l4 4 4-4\" strokeLinecap=\"round\" strokeLinejoin=\"round\" />\n </svg>\n </summary>\n <ul aria-labelledby={`${id}-${c.key}`} className={s.list()}>\n {c.entries.map((e) => {\n const isCompany = c.key === \"krizaka\";\n const atHome = isCompany && here(e.url);\n const isCurrent = !isCompany && e.id === currentId;\n return (\n <li key={e.id}>\n <a\n href={e.url}\n aria-current={atHome ? \"page\" : isCurrent ? \"true\" : undefined}\n onClick={atHome ? backToTop : undefined}\n className={s.link()}\n >\n {e.name}\n {isCurrent && <span className=\"sr-only\"> ({labels.current})</span>}\n </a>\n </li>\n );\n })}\n </ul>\n </details>\n ))}\n </nav>\n )}\n <div className={s.bottom()}>\n <a href={krizaka.url} className={s.signature()}>\n <ProductLogo id=\"krizaka\" size={18} animated={false} />\n {org ? org.footer.line[lang] : `${labels.signature[site.kind]} · ${labels.place}`}\n </a>\n {tag && (\n <span className={s.version()}>\n <span className=\"sr-only\">{labels.version} </span>\n {tag}\n </span>\n )}\n {legal && <div className={s.legal()}>{legal}</div>}\n {controls && <div className={s.controls()}>{controls}</div>}\n </div>\n </div>\n </footer>\n </ToneContext.Provider>\n );\n}\n\nexport type SiteFooterColumnProps = Omit<React.ComponentProps<\"div\">, \"title\"> & {\n /** The group's heading (“Docs”) — passed translated. */\n title: string;\n /** Its links (`SiteFooter.Link`). */\n children: React.ReactNode;\n};\n\n/** One of the site's own link groups, inline on the first line: its heading, then its links. */\nexport function SiteFooterColumn({ title, children, className, ...props }: SiteFooterColumnProps) {\n const id = React.useId();\n const tone = React.useContext(ToneContext);\n // A group with no link is not a group: only a heading over nothing.\n if (React.Children.toArray(children).length === 0) return null;\n const s = siteFooter({ tone });\n return (\n <div className={s.column({ className })} {...props}>\n <p id={id} className={s.title()}>\n {title}\n </p>\n <ul aria-labelledby={id} className={s.list({ className: \"pb-0\" })}>\n {React.Children.toArray(children).map((child, i) => <li key={i}>{child}</li>)}\n </ul>\n </div>\n );\n}\n\nexport type SiteFooterLinkProps = React.ComponentProps<\"a\"> & {\n /** The current page: `aria-current=\"page\"`. */\n active?: boolean;\n /** Renders your router's `<Link>`. */\n asChild?: boolean;\n};\n\n/** A link of the footer. */\nexport function SiteFooterLink({ active, asChild, className, ...props }: SiteFooterLinkProps) {\n const s = siteFooter();\n const Comp = asChild ? Slot.Root : \"a\";\n return <Comp aria-current={active ? \"page\" : undefined} className={s.link({ className })} {...props} />;\n}\n\nSiteFooter.Column = SiteFooterColumn;\nSiteFooter.Link = SiteFooterLink;\n","import { type OrgFacts, type SiteGroup, siteGroups, type SiteId, sites } from \"./sites\";\n\n/** The registry's id of Krizaka Lab was `motion`; `@krizaka/org` says `lab`. */\nconst ORG_ID: Partial<Record<SiteId, string>> = { motion: \"lab\" };\n\n/** The family to show, grouped in reading order: `org.family` when the host passes it, this package's registry otherwise. */\nexport function familyGroups(org?: Pick<OrgFacts, \"family\">): { group: SiteGroup; entries: { id: string; name: string; url: string }[] }[] {\n const entries = org?.family\n ? org.family.map((e) => ({ id: e.id, name: e.name, url: e.url, group: e.group }))\n : sites.map((s) => ({ id: ORG_ID[s.id] ?? s.id, name: s.name, url: s.url, group: s.group }));\n return siteGroups.map((group) => ({ group, entries: entries.filter((e) => e.group === group) })).filter((g) => g.entries.length > 0);\n}\n\n/** The id `@krizaka/org` gives a site of this registry. */\nexport const orgIdOf = (id: SiteId): string => ORG_ID[id] ?? id;\n"],"mappings":";;;;;;;;;;;;;AAOA,SAAS,YAAY;AACrB,YAAY,WAAW;AACvB,SAAS,UAAU;;;ACNnB,IAAM,SAA0C,EAAE,QAAQ,MAAM;AAGzD,SAAS,aAAa,KAA8G;AACzI,QAAM,UAAU,KAAK,SACjB,IAAI,OAAO,IAAI,CAAC,OAAO,EAAE,IAAI,EAAE,IAAI,MAAM,EAAE,MAAM,KAAK,EAAE,KAAK,OAAO,EAAE,MAAM,EAAE,IAC9E,MAAM,IAAI,CAAC,OAAO,EAAE,IAAI,OAAO,EAAE,EAAE,KAAK,EAAE,IAAI,MAAM,EAAE,MAAM,KAAK,EAAE,KAAK,OAAO,EAAE,MAAM,EAAE;AAC7F,SAAO,WAAW,IAAI,CAAC,WAAW,EAAE,OAAO,SAAS,QAAQ,OAAO,CAAC,MAAM,EAAE,UAAU,KAAK,EAAE,EAAE,EAAE,OAAO,CAAC,MAAM,EAAE,QAAQ,SAAS,CAAC;AACrI;AAGO,IAAM,UAAU,CAAC,OAAuB,OAAO,EAAE,KAAK;;;AD2JvD,mBAEI,KA+BU,YAjCd;AAzJC,IAAM,aAAa,GAAG;AAAA,EAC3B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UAAU,WAAW,GAAG,MAAM,GAA0B;AAChG,QAAM,KAAW,YAAM;AACvB,QAAM,OAAa,iBAAW,WAAW;AAEzC,MAAU,eAAS,QAAQ,QAAQ,EAAE,WAAW,EAAG,QAAO;AAC1D,QAAM,IAAI,WAAW,EAAE,KAAK,CAAC;AAC7B,SACE,qBAAC,SAAI,WAAW,EAAE,OAAO,EAAE,UAAU,CAAC,GAAI,GAAG,OAC3C;AAAA,wBAAC,OAAE,IAAQ,WAAW,EAAE,MAAM,GAC3B,iBACH;AAAA,IACA,oBAAC,QAAG,mBAAiB,IAAI,WAAW,EAAE,KAAK,EAAE,WAAW,OAAO,CAAC,GAC7D,UAAM,eAAS,QAAQ,QAAQ,EAAE,IAAI,CAAC,OAAO,MAAM,oBAAC,QAAY,mBAAJ,CAAU,CAAK,GAC9E;AAAA,KACF;AAEJ;AAUO,SAAS,eAAe,EAAE,QAAQ,SAAS,WAAW,GAAG,MAAM,GAAwB;AAC5F,QAAM,IAAI,WAAW;AACrB,QAAM,OAAO,UAAU,KAAK,OAAO;AACnC,SAAO,oBAAC,QAAK,gBAAc,SAAS,SAAS,QAAW,WAAW,EAAE,KAAK,EAAE,UAAU,CAAC,GAAI,GAAG,OAAO;AACvG;AAEA,WAAW,SAAS;AACpB,WAAW,OAAO;","names":[]}
@@ -45,6 +45,12 @@ interface OrgFacts {
45
45
  brand: {
46
46
  name: string;
47
47
  };
48
+ /**
49
+ * Every name of the family (`org.family` of `@krizaka/org`, krizaka/krizaka-internal#754): when given, the footer reads
50
+ * the names and addresses here, never from this package's registry — the company « Krizaka », products by their own
51
+ * name, libraries « Krizaka <X> ».
52
+ */
53
+ family?: readonly OrgFamilyEntry[];
48
54
  footer: {
49
55
  /** « Une entreprise de Technologies Krizaka · Fait à Montréal ». */
50
56
  line: Record<SiteLocale, string>;
@@ -55,5 +61,13 @@ interface OrgFacts {
55
61
  }[];
56
62
  };
57
63
  }
64
+ /** One entry of `org.family` (`@krizaka/org`), the part the footer reads. */
65
+ interface OrgFamilyEntry {
66
+ id: string;
67
+ name: string;
68
+ group: SiteGroup;
69
+ status: "released" | "development";
70
+ url: string;
71
+ }
58
72
 
59
73
  export type { FamilyLabels as F, OrgFacts as O, SiteId as S };