@krizaka/ui 3.81.0 → 3.83.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 (221) hide show
  1. package/dist/app-frame.d.ts +8 -1
  2. package/dist/app-frame.js +16 -4
  3. package/dist/app-frame.js.map +1 -1
  4. package/dist/app-header.d.ts +3 -1
  5. package/dist/app-header.js +2 -2
  6. package/dist/app-header.js.map +1 -1
  7. package/dist/{chunk-BHAWCN4I.js → chunk-LZK4IRVW.js} +7 -4
  8. package/dist/{chunk-BHAWCN4I.js.map → chunk-LZK4IRVW.js.map} +1 -1
  9. package/dist/index.js +9 -6
  10. package/dist/index.js.map +1 -1
  11. package/dist/nav-bar.d.ts +1 -1
  12. package/dist/nav-bar.js +1 -1
  13. package/dist/{schema-DgjBz7-8.d.ts → schema-CL7t7xqb.d.ts} +1 -1
  14. package/dist/shop.d.ts +2 -2
  15. package/dist/site-cahier.d.ts +47 -0
  16. package/dist/site-cahier.js +78 -9
  17. package/dist/site-cahier.js.map +1 -1
  18. package/dist/site-footer.d.ts +122 -4
  19. package/dist/site-footer.js +135 -7
  20. package/dist/site-footer.js.map +1 -1
  21. package/dist/{sites-Dxb1tecd.d.ts → sites-CSBwUnbJ.d.ts} +1 -1
  22. package/package.json +3 -3
  23. package/registry/account-menu.json +1 -1
  24. package/registry/account-settings.json +1 -1
  25. package/registry/achievement.json +1 -1
  26. package/registry/action-bar.json +1 -1
  27. package/registry/activity-feed.json +1 -1
  28. package/registry/agenda.json +1 -1
  29. package/registry/alert.json +1 -1
  30. package/registry/analysis-report.json +1 -1
  31. package/registry/anatomy-plate.json +1 -1
  32. package/registry/app-frame.json +28 -5
  33. package/registry/app-header.json +18 -4
  34. package/registry/app-shell.json +1 -1
  35. package/registry/argument-card.json +1 -1
  36. package/registry/auth-layout.json +1 -1
  37. package/registry/avatar.json +1 -1
  38. package/registry/badge.json +1 -1
  39. package/registry/bird-plate.json +1 -1
  40. package/registry/button.json +1 -1
  41. package/registry/captcha.json +3 -3
  42. package/registry/card-grid.json +1 -1
  43. package/registry/card.json +1 -1
  44. package/registry/catalogue-page.json +1 -1
  45. package/registry/changelog-page.json +1 -1
  46. package/registry/chapter.json +1 -1
  47. package/registry/chat.json +1 -1
  48. package/registry/checkbox.json +1 -1
  49. package/registry/chip-link.json +1 -1
  50. package/registry/chip-row.json +1 -1
  51. package/registry/chip.json +1 -1
  52. package/registry/choice-grid.json +1 -1
  53. package/registry/code-block.json +1 -1
  54. package/registry/collection-switcher.json +1 -1
  55. package/registry/combobox.json +1 -1
  56. package/registry/command.json +1 -1
  57. package/registry/comparison-table.json +1 -1
  58. package/registry/component-page.json +1 -1
  59. package/registry/confirm-button.json +1 -1
  60. package/registry/contact-page.json +1 -1
  61. package/registry/continue-prompt.json +1 -1
  62. package/registry/copy-button.json +1 -1
  63. package/registry/countdown.json +1 -1
  64. package/registry/cover-hero.json +1 -1
  65. package/registry/cta-panel.json +1 -1
  66. package/registry/dashboard-layout.json +1 -1
  67. package/registry/data-table.json +1 -1
  68. package/registry/date-picker.json +1 -1
  69. package/registry/decision-list.json +1 -1
  70. package/registry/description-list.json +1 -1
  71. package/registry/desktop-window.json +1 -1
  72. package/registry/detail-layout.json +1 -1
  73. package/registry/dialog.json +1 -1
  74. package/registry/docs-article-page.json +1 -1
  75. package/registry/docs-hub-page.json +1 -1
  76. package/registry/docs-layout.json +1 -1
  77. package/registry/docs-nav.json +1 -1
  78. package/registry/document-viewer.json +1 -1
  79. package/registry/doodle.json +1 -1
  80. package/registry/drop-overlay.json +1 -1
  81. package/registry/dropdown-menu.json +1 -1
  82. package/registry/elephant.json +1 -1
  83. package/registry/embed-facade.json +1 -1
  84. package/registry/empty-state.json +1 -1
  85. package/registry/engine-flow.json +1 -1
  86. package/registry/entity-header.json +1 -1
  87. package/registry/environment-notice.json +1 -1
  88. package/registry/error-page.json +1 -1
  89. package/registry/examples/app-frame/touch.d.ts +4 -0
  90. package/registry/examples/app-frame/touch.js +38 -0
  91. package/registry/examples/app-frame/touch.tsx +38 -0
  92. package/registry/examples/site-footer/configured.d.ts +4 -0
  93. package/registry/examples/site-footer/configured.js +39 -0
  94. package/registry/examples/site-footer/configured.tsx +37 -0
  95. package/registry/field.json +1 -1
  96. package/registry/file-upload.json +1 -1
  97. package/registry/filter-bar.json +1 -1
  98. package/registry/flock.json +1 -1
  99. package/registry/footnote.json +1 -1
  100. package/registry/force-update-screen.json +1 -1
  101. package/registry/form.json +1 -1
  102. package/registry/gallery-page.json +1 -1
  103. package/registry/genui.json +1 -1
  104. package/registry/glossary-term.json +1 -1
  105. package/registry/glossary.json +1 -1
  106. package/registry/glow-card.json +1 -1
  107. package/registry/goal-gauge.json +1 -1
  108. package/registry/grade-stamp.json +1 -1
  109. package/registry/identity-card.json +1 -1
  110. package/registry/image-cropper.json +1 -1
  111. package/registry/index.json +9 -9
  112. package/registry/kanban.json +1 -1
  113. package/registry/kbd.json +1 -1
  114. package/registry/kind-config-editor.json +1 -1
  115. package/registry/kpi-explained.json +1 -1
  116. package/registry/landing-page.json +1 -1
  117. package/registry/landscape.json +1 -1
  118. package/registry/language-switch.json +1 -1
  119. package/registry/legal-page.json +1 -1
  120. package/registry/link-card.json +1 -1
  121. package/registry/list.json +1 -1
  122. package/registry/loader.json +1 -1
  123. package/registry/longform-page.json +1 -1
  124. package/registry/maintenance-screen.json +1 -1
  125. package/registry/map.json +2 -2
  126. package/registry/margin-layout.json +1 -1
  127. package/registry/markdown.json +1 -1
  128. package/registry/marketing-layout.json +1 -1
  129. package/registry/mascot-quote.json +1 -1
  130. package/registry/mascot-state.json +1 -1
  131. package/registry/mascots.json +1 -1
  132. package/registry/match-dialog.json +1 -1
  133. package/registry/media-capture.json +1 -1
  134. package/registry/media-gallery.json +1 -1
  135. package/registry/meter.json +1 -1
  136. package/registry/money-input.json +1 -1
  137. package/registry/nav-bar.json +3 -3
  138. package/registry/next-actions.json +1 -1
  139. package/registry/notification-preferences.json +1 -1
  140. package/registry/number-ticker.json +1 -1
  141. package/registry/opening-hours.json +1 -1
  142. package/registry/page-header.json +1 -1
  143. package/registry/page-hero.json +1 -1
  144. package/registry/page-index.json +1 -1
  145. package/registry/page.json +1 -1
  146. package/registry/pagination.json +1 -1
  147. package/registry/pointer-light.json +1 -1
  148. package/registry/popover.json +1 -1
  149. package/registry/price-catalogue-editor.json +1 -1
  150. package/registry/pricing-page.json +1 -1
  151. package/registry/product-page.json +1 -1
  152. package/registry/profile-card.json +1 -1
  153. package/registry/progress.json +1 -1
  154. package/registry/promise-card.json +1 -1
  155. package/registry/promo-code-field.json +1 -1
  156. package/registry/proposal.json +1 -1
  157. package/registry/qr-code.json +1 -1
  158. package/registry/quota-meter.json +1 -1
  159. package/registry/radio-group.json +1 -1
  160. package/registry/rail-nav.json +3 -3
  161. package/registry/recipes.json +1 -1
  162. package/registry/retro-tv.json +1 -1
  163. package/registry/reviews.json +1 -1
  164. package/registry/router.json +1 -1
  165. package/registry/schema-form.json +1 -1
  166. package/registry/scroll-stage.json +1 -1
  167. package/registry/search-field.json +1 -1
  168. package/registry/section-backdrop.json +1 -1
  169. package/registry/separator.json +1 -1
  170. package/registry/service-card.json +1 -1
  171. package/registry/settings-layout.json +1 -1
  172. package/registry/shop-composer.json +1 -1
  173. package/registry/shop-gallery.json +1 -1
  174. package/registry/shop.json +2 -2
  175. package/registry/showcase.json +1 -1
  176. package/registry/signature.json +1 -1
  177. package/registry/site-cahier.json +1 -1
  178. package/registry/site-footer.json +53 -7
  179. package/registry/sites.json +1 -1
  180. package/registry/skeleton.json +1 -1
  181. package/registry/skip-link.json +1 -1
  182. package/registry/slider.json +1 -1
  183. package/registry/slot-picker.json +1 -1
  184. package/registry/slot.json +1 -1
  185. package/registry/specimen-tag.json +1 -1
  186. package/registry/speed-lines.json +1 -1
  187. package/registry/spinner.json +1 -1
  188. package/registry/split-view.json +1 -1
  189. package/registry/stage-banner.json +1 -1
  190. package/registry/stat.json +1 -1
  191. package/registry/status-chip.json +1 -1
  192. package/registry/status-page.json +1 -1
  193. package/registry/step-progress.json +1 -1
  194. package/registry/step-showcase.json +1 -1
  195. package/registry/stepper.json +1 -1
  196. package/registry/sticky-action.json +1 -1
  197. package/registry/stuck.json +1 -1
  198. package/registry/swipe-deck.json +1 -1
  199. package/registry/switch.json +1 -1
  200. package/registry/tabs.json +1 -1
  201. package/registry/tag-input.json +1 -1
  202. package/registry/tag-selector.json +1 -1
  203. package/registry/taped-photo.json +1 -1
  204. package/registry/terminal-replay.json +1 -1
  205. package/registry/text-style.json +1 -1
  206. package/registry/theme.json +1 -1
  207. package/registry/toast.json +1 -1
  208. package/registry/toc.json +1 -1
  209. package/registry/tooltip.json +1 -1
  210. package/registry/tree-view.json +1 -1
  211. package/registry/update-prompt.json +1 -1
  212. package/registry/upload-queue.json +1 -1
  213. package/registry/usage.json +1 -1
  214. package/registry/verified-badge.json +1 -1
  215. package/registry/versus-card.json +1 -1
  216. package/registry/vertical-video.json +1 -1
  217. package/registry/video-player.json +1 -1
  218. package/registry/video-trimmer.json +1 -1
  219. package/registry/virtual.json +1 -1
  220. package/registry/wall.json +1 -1
  221. package/registry/waveform.json +1 -1
@@ -1,6 +1,104 @@
1
+ import { S as SiteStatus, a as SiteId, F as FamilyLabels, O as OrgFacts } from './sites-CSBwUnbJ.js';
1
2
  import * as tailwind_variants from 'tailwind-variants';
2
3
  import * as React from 'react';
3
- import { S as SiteId, F as FamilyLabels, O as OrgFacts } from './sites-Dxb1tecd.js';
4
+
5
+ /** At most four columns of at most six links: past that a footer is a sitemap, and nobody reads it. */
6
+ declare const FOOTER_LIMITS: {
7
+ readonly columns: 4;
8
+ readonly links: 6;
9
+ readonly legalLinks: 4;
10
+ };
11
+ /** A status said once, on a column's heading (never on each link). */
12
+ type FooterStatus = Exclude<SiteStatus, "released">;
13
+ /** A link, its words resolved. `external`: it leaves this site (a plain `<a>`, never the router). */
14
+ type FooterLink = {
15
+ label: string;
16
+ href: string;
17
+ external?: boolean;
18
+ };
19
+ /** A column, its words resolved. */
20
+ type FooterColumn = {
21
+ id: string;
22
+ title: string;
23
+ status?: FooterStatus;
24
+ links: readonly FooterLink[];
25
+ };
26
+ /** The legal line: who publishes the site, once — `legalName · NEQ … · city`, then the version and the legal links. */
27
+ type FooterLegal = {
28
+ legalName: string;
29
+ /** The Québec enterprise number, shown as the publisher's legal identity (`NEQ 1182652231`). */
30
+ neq?: string;
31
+ city: string;
32
+ showVersion: boolean;
33
+ /** Where the version leads (the release's page), when it is a link. */
34
+ versionHref?: string;
35
+ links: readonly FooterLink[];
36
+ };
37
+ /** What `SiteFooter` draws from `config`: the columns, then the legal line and the socials. */
38
+ type SiteFooterConfig = {
39
+ /** The name of the columns' navigation (« Pied de page » / « Footer »). */
40
+ label: string;
41
+ columns: readonly FooterColumn[];
42
+ legal: FooterLegal;
43
+ social?: readonly {
44
+ id: string;
45
+ label: string;
46
+ href: string;
47
+ }[];
48
+ };
49
+ /** A stored link: a message key (`labelKey`) or a proper noun the same in every language (`label`: « Verikora », « GitHub »). */
50
+ type FooterLinkSetting = ({
51
+ labelKey: string;
52
+ label?: never;
53
+ } | {
54
+ label: string;
55
+ labelKey?: never;
56
+ }) & {
57
+ href: string;
58
+ external?: boolean;
59
+ };
60
+ /** The footer as an app stores it in its settings. */
61
+ type FooterSettings = {
62
+ labelKey: string;
63
+ columns: readonly {
64
+ id: string;
65
+ titleKey: string;
66
+ status?: FooterStatus;
67
+ links: readonly FooterLinkSetting[];
68
+ }[];
69
+ legal: {
70
+ legalName: string;
71
+ neq?: string;
72
+ city: string;
73
+ showVersion: boolean;
74
+ versionHref?: string;
75
+ links: readonly FooterLinkSetting[];
76
+ };
77
+ /** The ids of the org's social links (`@krizaka/org`) to show; their addresses are the org's, never typed here. */
78
+ social?: readonly string[];
79
+ };
80
+ /** A social link of the org (`@krizaka/org` `links.social`). */
81
+ type OrgSocialLink = {
82
+ id: string;
83
+ label: string;
84
+ url: string;
85
+ };
86
+ /** The settings, their words read from the app's messages (`t`) and the socials from the org's list. */
87
+ declare function resolveFooterSettings(settings: FooterSettings, t: (key: string) => string, social?: readonly OrgSocialLink[]): SiteFooterConfig;
88
+ /**
89
+ * What is wrong with a footer's settings — the admin's form refuses to save while the list is not empty: too many
90
+ * columns or links, a link twice, an empty column, an `http:` or a development address, a malformed NEQ.
91
+ */
92
+ declare function footerSettingsProblems(settings: FooterSettings): string[];
93
+
94
+ /** The app's link component (Next's `Link`, React Router's `Link`…): receives `href`, `className` and the children. */
95
+ type LinkComponent = React.ElementType<{
96
+ href: string;
97
+ className?: string;
98
+ children?: React.ReactNode;
99
+ "aria-label"?: string;
100
+ "aria-describedby"?: string;
101
+ }>;
4
102
 
5
103
  declare const siteFooter: tailwind_variants.TVReturnType<{
6
104
  variant: {
@@ -38,6 +136,10 @@ declare const siteFooter: tailwind_variants.TVReturnType<{
38
136
  version: string;
39
137
  legal: string;
40
138
  controls: string;
139
+ columns: string;
140
+ stack: string;
141
+ stackList: string;
142
+ identity: string;
41
143
  }, undefined, {
42
144
  variant: {
43
145
  site: {};
@@ -74,6 +176,10 @@ declare const siteFooter: tailwind_variants.TVReturnType<{
74
176
  version: string;
75
177
  legal: string;
76
178
  controls: string;
179
+ columns: string;
180
+ stack: string;
181
+ stackList: string;
182
+ identity: string;
77
183
  }, tailwind_variants.TVReturnTypeLike<{
78
184
  variant: {
79
185
  site: {};
@@ -110,6 +216,10 @@ declare const siteFooter: tailwind_variants.TVReturnType<{
110
216
  version: string;
111
217
  legal: string;
112
218
  controls: string;
219
+ columns: string;
220
+ stack: string;
221
+ stackList: string;
222
+ identity: string;
113
223
  }>>;
114
224
  type Tone = "product" | "cahier";
115
225
  type SiteFooterProps = Omit<React.ComponentProps<"footer">, "children"> & {
@@ -157,9 +267,17 @@ type SiteFooterProps = Omit<React.ComponentProps<"footer">, "children"> & {
157
267
  variant?: "site" | "docs" | "app";
158
268
  /** `cahier` on the Cahier sites (www, blog, ui., java., ts., lab.), `product` in the products. @default "product" */
159
269
  tone?: Tone;
270
+ /**
271
+ * The footer as the admin configured it (`resolveFooterSettings` of the app's settings): its columns, then one legal
272
+ * line — `legalName · NEQ … · city`, the version when `showVersion`, the legal links, the socials. With it the family
273
+ * is not drawn (the columns hold what the site wants) and the org's signature gives way to the legal identity.
274
+ */
275
+ config?: SiteFooterConfig;
276
+ /** The app's router link for the config's internal links (Next's `Link`). @default "a" */
277
+ linkAs?: LinkComponent;
160
278
  };
161
279
  /** The footer of a Krizaka site or app: at most three lines — its links, the family, then signature · version · legal. */
162
- declare function SiteFooter({ current, labels, children, version, env, path, legal: legalProp, controls, org, family: familyProp, products, variant, tone, className, ...props }: SiteFooterProps): React.JSX.Element;
280
+ declare function SiteFooter({ current, labels, children, version, env, path, legal: legalProp, controls, org, family: familyProp, products, variant, tone, config, linkAs, className, ...props }: SiteFooterProps): React.JSX.Element;
163
281
  declare namespace SiteFooter {
164
282
  var Column: typeof SiteFooterColumn;
165
283
  var Link: typeof SiteFooterLink;
@@ -181,5 +299,5 @@ type SiteFooterLinkProps = React.ComponentProps<"a"> & {
181
299
  /** A link of the footer. */
182
300
  declare function SiteFooterLink({ active, asChild, className, ...props }: SiteFooterLinkProps): React.JSX.Element;
183
301
 
184
- export { SiteFooter, SiteFooterColumn, SiteFooterLink, siteFooter };
185
- export type { SiteFooterColumnProps, SiteFooterLinkProps, SiteFooterProps };
302
+ export { FOOTER_LIMITS, SiteFooter, SiteFooterColumn, SiteFooterLink, footerSettingsProblems, resolveFooterSettings, siteFooter };
303
+ export type { FooterColumn, FooterLegal, FooterLink, FooterLinkSetting, FooterSettings, FooterStatus, OrgSocialLink, SiteFooterColumnProps, SiteFooterConfig, SiteFooterLinkProps, SiteFooterProps };
@@ -8,7 +8,66 @@ import {
8
8
  } from "./chunk-6KZDARNX.js";
9
9
  import {
10
10
  ProductLogo
11
- } from "./chunk-BHAWCN4I.js";
11
+ } from "./chunk-LZK4IRVW.js";
12
+
13
+ // src/site-footer/footer-config.ts
14
+ var FOOTER_LIMITS = { columns: 4, links: 6, legalLinks: 4 };
15
+ var link = (l, t) => ({
16
+ label: l.labelKey === void 0 ? l.label : t(l.labelKey),
17
+ href: l.href,
18
+ ...l.external ? { external: true } : {}
19
+ });
20
+ function resolveFooterSettings(settings, t, social = []) {
21
+ const shown = (settings.social ?? []).flatMap((id) => social.filter((s) => s.id === id));
22
+ return {
23
+ label: t(settings.labelKey),
24
+ columns: settings.columns.map((c) => ({
25
+ id: c.id,
26
+ title: t(c.titleKey),
27
+ ...c.status ? { status: c.status } : {},
28
+ links: c.links.map((l) => link(l, t))
29
+ })),
30
+ legal: { ...settings.legal, links: settings.legal.links.map((l) => link(l, t)) },
31
+ ...shown.length > 0 ? { social: shown.map((s) => ({ id: s.id, label: s.label, href: s.url })) } : {}
32
+ };
33
+ }
34
+ function footerSettingsProblems(settings) {
35
+ return [...limitProblems(settings), ...linkProblems(settings), ...legalProblems(settings)];
36
+ }
37
+ function limitProblems(settings) {
38
+ const problems = [];
39
+ if (settings.columns.length > FOOTER_LIMITS.columns) problems.push(`at most ${FOOTER_LIMITS.columns} columns`);
40
+ if (settings.legal.links.length > FOOTER_LIMITS.legalLinks) problems.push(`at most ${FOOTER_LIMITS.legalLinks} legal links`);
41
+ for (const c of settings.columns) {
42
+ if (c.links.length === 0) problems.push(`column ${c.id}: no link`);
43
+ if (c.links.length > FOOTER_LIMITS.links) problems.push(`column ${c.id}: at most ${FOOTER_LIMITS.links} links`);
44
+ }
45
+ return problems;
46
+ }
47
+ function hrefProblems(where, l) {
48
+ const problems = [];
49
+ if (/^http:/i.test(l.href)) problems.push(`${where}: ${l.href} is not https`);
50
+ if (/^https?:\/\/dev\./i.test(l.href)) problems.push(`${where}: ${l.href} is a development host`);
51
+ if (l.external && !/^[a-z][a-z0-9+.-]*:/i.test(l.href)) problems.push(`${where}: ${l.href} is external but relative`);
52
+ return problems;
53
+ }
54
+ function linkProblems(settings) {
55
+ const problems = [];
56
+ const seen = /* @__PURE__ */ new Set();
57
+ const all = [...settings.columns.flatMap((c) => c.links.map((l) => ({ where: c.id, l }))), ...settings.legal.links.map((l) => ({ where: "legal", l }))];
58
+ for (const { where, l } of all) {
59
+ if (seen.has(l.href)) problems.push(`${where}: ${l.href} is already in the footer`);
60
+ seen.add(l.href);
61
+ problems.push(...hrefProblems(where, l));
62
+ }
63
+ return problems;
64
+ }
65
+ function legalProblems(settings) {
66
+ const problems = [];
67
+ if (settings.legal.neq !== void 0 && !/^\d{10}$/.test(settings.legal.neq)) problems.push("legal: the NEQ has ten digits");
68
+ if (settings.legal.legalName.trim() === "") problems.push("legal: the legal name is required");
69
+ return problems;
70
+ }
12
71
 
13
72
  // src/site-footer/site-footer.tsx
14
73
  import { Slot } from "radix-ui";
@@ -51,7 +110,12 @@ var siteFooter = tv({
51
110
  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",
52
111
  version: "rounded-sm border border-border-subtle bg-surface-2 px-2 py-0.5 font-mono text-[11px] text-fg-secondary",
53
112
  legal: "flex flex-wrap items-center gap-x-4 gap-y-2",
54
- controls: "flex flex-wrap items-center gap-2 sm:ml-auto"
113
+ controls: "flex flex-wrap items-center gap-2 sm:ml-auto",
114
+ // `config`: real columns — two on a phone, side by side from `sm`, each a heading over a stacked list.
115
+ columns: "grid min-w-0 grid-cols-2 gap-x-6 gap-y-6 pb-2 sm:grid-flow-col sm:grid-cols-none sm:auto-cols-[minmax(0,13rem)] sm:gap-x-10",
116
+ stack: "flex min-w-0 flex-col gap-2",
117
+ stackList: "flex min-w-0 flex-col gap-1",
118
+ identity: "text-fg-secondary"
55
119
  },
56
120
  variants: {
57
121
  // `site`: the three lines. `docs`: the same on the documentation's width. `app`: line 3 only, inside a signed-in product.
@@ -107,13 +171,15 @@ function SiteFooter({
107
171
  products,
108
172
  variant = "site",
109
173
  tone = "product",
174
+ config,
175
+ linkAs,
110
176
  className,
111
177
  ...props
112
178
  }) {
113
179
  const id = React.useId();
114
180
  const s = siteFooter({ variant, tone });
115
181
  const slim = variant === "app";
116
- const family = !slim && (familyProp ?? current === "krizaka");
182
+ const family = !slim && (familyProp ?? (current === "krizaka" && !config));
117
183
  const site = siteById(current);
118
184
  const krizaka = siteById("krizaka");
119
185
  const currentId = orgIdOf(current);
@@ -132,6 +198,7 @@ function SiteFooter({
132
198
  const companyEntries = companyLinks.map((l) => ({ id: l.id, name: company[l.id], url: l.url[lang] }));
133
199
  return /* @__PURE__ */ jsx(ToneContext.Provider, { value: tone, children: /* @__PURE__ */ jsx("footer", { className: s.root({ className }), ...props, children: /* @__PURE__ */ jsxs("div", { className: s.inner(), children: [
134
200
  own && /* @__PURE__ */ jsx("div", { className: s.row(), children }),
201
+ config && !slim && /* @__PURE__ */ jsx(ConfigColumns, { s, config, id, labels, linkAs, path }),
135
202
  family && /* @__PURE__ */ jsx("nav", { "aria-label": labels.family, className: s.family(), children: [
136
203
  ...columns.map((c) => ({ key: c.group, title: labels.groups[c.group], entries: c.entries, ...columnStatus(c.entries) })),
137
204
  { key: "krizaka", title: labels.groups.krizaka, entries: companyEntries, ...NO_STATUS }
@@ -150,12 +217,12 @@ function SiteFooter({
150
217
  const isCompany = c.key === "krizaka";
151
218
  const atHome = isCompany && here(e.url);
152
219
  const exception = c.exceptions.get(e.id);
153
- const isCurrent = !isCompany && e.id === currentId;
220
+ const isCurrent2 = !isCompany && e.id === currentId;
154
221
  return /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs(
155
222
  "a",
156
223
  {
157
224
  href: e.url,
158
- "aria-current": atHome ? "page" : isCurrent ? "true" : void 0,
225
+ "aria-current": atHome ? "page" : isCurrent2 ? "true" : void 0,
159
226
  onClick: atHome ? backToTop : void 0,
160
227
  className: s.link(),
161
228
  children: [
@@ -165,7 +232,7 @@ function SiteFooter({
165
232
  labels.status[exception],
166
233
  ")"
167
234
  ] }),
168
- isCurrent && /* @__PURE__ */ jsxs("span", { className: "sr-only", children: [
235
+ isCurrent2 && /* @__PURE__ */ jsxs("span", { className: "sr-only", children: [
169
236
  " (",
170
237
  labels.current,
171
238
  ")"
@@ -175,7 +242,7 @@ function SiteFooter({
175
242
  ) }, e.id);
176
243
  }) })
177
244
  ] }, c.key)) }),
178
- /* @__PURE__ */ jsxs("div", { className: s.bottom(), children: [
245
+ config ? /* @__PURE__ */ jsx(ConfigBottom, { s, config, krizaka: krizaka.url, brand: org?.brand.name ?? "Krizaka", tag, env, versionLabel: labels.version, linkAs, path, controls }) : /* @__PURE__ */ jsxs("div", { className: s.bottom(), children: [
179
246
  /* @__PURE__ */ jsxs("a", { href: krizaka.url, className: s.signature(), children: [
180
247
  /* @__PURE__ */ jsx(ProductLogo, { id: "krizaka", size: 18, animated: false }),
181
248
  org ? org.footer.line[lang] : `${labels.signature[site.kind]} \xB7 ${labels.place}`
@@ -192,6 +259,64 @@ function SiteFooter({
192
259
  ] })
193
260
  ] }) }) });
194
261
  }
262
+ var isCurrent = (l, path) => path !== void 0 && !l.external && bare(l.href.split(/[?#]/)[0]) === bare(path.split(/[?#]/)[0]);
263
+ function ConfigBottom({
264
+ s,
265
+ config,
266
+ krizaka,
267
+ brand,
268
+ tag,
269
+ env,
270
+ versionLabel,
271
+ linkAs,
272
+ path,
273
+ controls
274
+ }) {
275
+ const { legal, social } = config;
276
+ const configured = (l) => /* @__PURE__ */ jsx(ConfigLink, { link: l, linkAs, current: isCurrent(l, path) }, l.href);
277
+ const shown = legal.showVersion ? tag : env;
278
+ const identity = [legal.legalName, legal.neq && `NEQ ${legal.neq}`, legal.city].filter(Boolean).join(" \xB7 ");
279
+ const versionText = /* @__PURE__ */ jsxs(Fragment, { children: [
280
+ /* @__PURE__ */ jsxs("span", { className: "sr-only", children: [
281
+ versionLabel,
282
+ " "
283
+ ] }),
284
+ shown
285
+ ] });
286
+ return /* @__PURE__ */ jsxs("div", { className: s.bottom(), children: [
287
+ /* @__PURE__ */ jsx("a", { href: krizaka, className: s.signature(), "aria-label": brand, children: /* @__PURE__ */ jsx(ProductLogo, { id: "krizaka", size: 18, animated: false }) }),
288
+ /* @__PURE__ */ jsx("span", { className: s.identity(), children: identity }),
289
+ shown && (legal.showVersion && legal.versionHref ? /* @__PURE__ */ jsx("a", { href: legal.versionHref, className: s.version({ className: "no-underline hover:text-fg focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring" }), children: versionText }) : /* @__PURE__ */ jsx("span", { className: s.version(), children: versionText })),
290
+ legal.links.length > 0 && /* @__PURE__ */ jsx("div", { className: s.legal(), children: legal.links.map(configured) }),
291
+ social && social.length > 0 && /* @__PURE__ */ jsx("div", { className: s.legal(), children: social.map((x) => configured({ label: x.label, href: x.href, external: true })) }),
292
+ controls && /* @__PURE__ */ jsx("div", { className: s.controls(), children: controls })
293
+ ] });
294
+ }
295
+ function ConfigColumns({
296
+ s,
297
+ config,
298
+ id,
299
+ labels,
300
+ linkAs,
301
+ path
302
+ }) {
303
+ if (config.columns.length === 0) return null;
304
+ return /* @__PURE__ */ jsx("nav", { "aria-label": config.label, className: s.columns(), children: config.columns.map((c) => /* @__PURE__ */ jsxs("div", { className: s.stack(), children: [
305
+ /* @__PURE__ */ jsxs("p", { id: `${id}-c-${c.id}`, className: s.title(), children: [
306
+ c.title,
307
+ c.status && /* @__PURE__ */ jsxs("span", { className: s.note(), children: [
308
+ /* @__PURE__ */ jsx("span", { "aria-hidden": "true", children: " \xB7 " }),
309
+ labels.status[c.status]
310
+ ] })
311
+ ] }),
312
+ /* @__PURE__ */ jsx("ul", { "aria-labelledby": `${id}-c-${c.id}`, className: s.stackList(), children: c.links.map((l) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(ConfigLink, { link: l, linkAs, current: isCurrent(l, path) }) }, l.href)) })
313
+ ] }, c.id)) });
314
+ }
315
+ function ConfigLink({ link: link2, linkAs, current }) {
316
+ const s = siteFooter();
317
+ const Comp = link2.external || !linkAs ? "a" : linkAs;
318
+ return /* @__PURE__ */ jsx(Comp, { href: link2.href, className: s.link(), "aria-current": current ? "page" : void 0, children: link2.label });
319
+ }
195
320
  function SiteFooterColumn({ title, children, className, ...props }) {
196
321
  const id = React.useId();
197
322
  const tone = React.useContext(ToneContext);
@@ -210,9 +335,12 @@ function SiteFooterLink({ active, asChild, className, ...props }) {
210
335
  SiteFooter.Column = SiteFooterColumn;
211
336
  SiteFooter.Link = SiteFooterLink;
212
337
  export {
338
+ FOOTER_LIMITS,
213
339
  SiteFooter,
214
340
  SiteFooterColumn,
215
341
  SiteFooterLink,
342
+ footerSettingsProblems,
343
+ resolveFooterSettings,
216
344
  siteFooter
217
345
  };
218
346
  //# sourceMappingURL=site-footer.js.map
@@ -1 +1 @@
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 { columnStatus, familyGroups, orgIdOf } from \"../sites/family-groups\";\nimport { companyLinks, type FamilyLabels, familyLabels, type OrgFacts, siteById, type SiteId, type SiteStatus } 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 note: \"font-normal\",\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\nconst NO_STATUS = { shared: null, exceptions: new Map<string, Exclude<SiteStatus, \"released\">>() } as const;\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, ...columnStatus(c.entries) })),\n { key: \"krizaka\" as const, title: labels.groups.krizaka, entries: companyEntries, ...NO_STATUS },\n ]\n .filter((c) => c.entries.length > 0)\n .map((c) => (\n <details key={c.key} className={s.group()}>\n <summary className={s.summary()}>\n <span>\n <span id={`${id}-${c.key}`}>{c.title}</span>\n {c.shared && (\n <span className={s.note()}>\n <span aria-hidden=\"true\"> · </span>\n {labels.status[c.shared]}\n </span>\n )}\n </span>\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 exception = c.exceptions.get(e.id);\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 {exception && <span className={s.note()}> ({labels.status[exception]})</span>}\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,type SiteStatus } 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: FamilyItem[] }[] {\n const entries = org?.family\n ? org.family.map((e) => ({ id: e.id, name: e.name, url: e.url, group: e.group, status: e.status }))\n : sites.map((s) => ({ id: ORG_ID[s.id] ?? s.id, name: s.name, url: s.url, group: s.group, status: s.status }));\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\ntype Pending = Exclude<SiteStatus, \"released\">;\ntype FamilyItem = { id: string; name: string; url: string; status: SiteStatus };\n\n/**\n * What a column says about its status, from data: when every entry shares one status other than `released`, it is said once\n * for the column (`shared`); when they differ, the most common one is the column's and only the exceptions wear a badge.\n */\nexport function columnStatus(entries: readonly { id: string; status: SiteStatus }[]): { shared: Pending | null; exceptions: Map<string, Pending> } {\n const counts = new Map<SiteStatus, number>();\n for (const e of entries) counts.set(e.status, (counts.get(e.status) ?? 0) + 1);\n const common = [...counts.entries()].sort((a, b) => b[1] - a[1])[0]?.[0] ?? null;\n const exceptions = new Map<string, Pending>();\n for (const e of entries) if (e.status !== common && e.status !== \"released\") exceptions.set(e.id, e.status);\n return { shared: common === null || common === \"released\" ? null : common, exceptions };\n}\n"],"mappings":";;;;;;;;;;;;;AAOA,SAAS,YAAY;AACrB,YAAY,WAAW;AACvB,SAAS,UAAU;;;ACNnB,IAAM,SAA0C,EAAE,QAAQ,MAAM;AAGzD,SAAS,aAAa,KAA+E;AAC1G,QAAM,UAAU,KAAK,SACjB,IAAI,OAAO,IAAI,CAAC,OAAO,EAAE,IAAI,EAAE,IAAI,MAAM,EAAE,MAAM,KAAK,EAAE,KAAK,OAAO,EAAE,OAAO,QAAQ,EAAE,OAAO,EAAE,IAChG,MAAM,IAAI,CAAC,OAAO,EAAE,IAAI,OAAO,EAAE,EAAE,KAAK,EAAE,IAAI,MAAM,EAAE,MAAM,KAAK,EAAE,KAAK,OAAO,EAAE,OAAO,QAAQ,EAAE,OAAO,EAAE;AAC/G,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;AAStD,SAAS,aAAa,SAAsH;AACjJ,QAAM,SAAS,oBAAI,IAAwB;AAC3C,aAAW,KAAK,QAAS,QAAO,IAAI,EAAE,SAAS,OAAO,IAAI,EAAE,MAAM,KAAK,KAAK,CAAC;AAC7E,QAAM,SAAS,CAAC,GAAG,OAAO,QAAQ,CAAC,EAAE,KAAK,CAAC,GAAG,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK;AAC5E,QAAM,aAAa,o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AAY,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":[]}
1
+ {"version":3,"sources":["../src/site-footer/footer-config.ts","../src/site-footer/site-footer.tsx","../src/sites/family-groups.ts"],"sourcesContent":["// The footer as the admin configures it (krizaka-internal#591): the settings an app stores (`@krizaka/settings`, audited)\n// — words as message keys, so FR and EN come from the app's catalogues — and the resolved config `SiteFooter` draws.\n// Pure: no React, no fetch. The structure is the design rule (founder, 2026-11-01): a few short columns, then one legal\n// line that names the company once.\nimport type { SiteStatus } from \"../sites/sites\";\n\n/** At most four columns of at most six links: past that a footer is a sitemap, and nobody reads it. */\nexport const FOOTER_LIMITS = { columns: 4, links: 6, legalLinks: 4 } as const;\n\n/** A status said once, on a column's heading (never on each link). */\nexport type FooterStatus = Exclude<SiteStatus, \"released\">;\n\n/** A link, its words resolved. `external`: it leaves this site (a plain `<a>`, never the router). */\nexport type FooterLink = { label: string; href: string; external?: boolean };\n\n/** A column, its words resolved. */\nexport type FooterColumn = { id: string; title: string; status?: FooterStatus; links: readonly FooterLink[] };\n\n/** The legal line: who publishes the site, once — `legalName · NEQ … · city`, then the version and the legal links. */\nexport type FooterLegal = {\n legalName: string;\n /** The Québec enterprise number, shown as the publisher's legal identity (`NEQ 1182652231`). */\n neq?: string;\n city: string;\n showVersion: boolean;\n /** Where the version leads (the release's page), when it is a link. */\n versionHref?: string;\n links: readonly FooterLink[];\n};\n\n/** What `SiteFooter` draws from `config`: the columns, then the legal line and the socials. */\nexport type SiteFooterConfig = {\n /** The name of the columns' navigation (« Pied de page » / « Footer »). */\n label: string;\n columns: readonly FooterColumn[];\n legal: FooterLegal;\n social?: readonly { id: string; label: string; href: string }[];\n};\n\n/** A stored link: a message key (`labelKey`) or a proper noun the same in every language (`label`: « Verikora », « GitHub »). */\nexport type FooterLinkSetting = ({ labelKey: string; label?: never } | { label: string; labelKey?: never }) & {\n href: string;\n external?: boolean;\n};\n\n/** The footer as an app stores it in its settings. */\nexport type FooterSettings = {\n labelKey: string;\n columns: readonly { id: string; titleKey: string; status?: FooterStatus; links: readonly FooterLinkSetting[] }[];\n legal: { legalName: string; neq?: string; city: string; showVersion: boolean; versionHref?: string; links: readonly FooterLinkSetting[] };\n /** The ids of the org's social links (`@krizaka/org`) to show; their addresses are the org's, never typed here. */\n social?: readonly string[];\n};\n\n/** A social link of the org (`@krizaka/org` `links.social`). */\nexport type OrgSocialLink = { id: string; label: string; url: string };\n\nconst link = (l: FooterLinkSetting, t: (key: string) => string): FooterLink => ({\n label: l.labelKey === undefined ? l.label! : t(l.labelKey),\n href: l.href,\n ...(l.external ? { external: true } : {}),\n});\n\n/** The settings, their words read from the app's messages (`t`) and the socials from the org's list. */\nexport function resolveFooterSettings(\n settings: FooterSettings,\n t: (key: string) => string,\n social: readonly OrgSocialLink[] = [],\n): SiteFooterConfig {\n const shown = (settings.social ?? []).flatMap((id) => social.filter((s) => s.id === id));\n return {\n label: t(settings.labelKey),\n columns: settings.columns.map((c) => ({\n id: c.id,\n title: t(c.titleKey),\n ...(c.status ? { status: c.status } : {}),\n links: c.links.map((l) => link(l, t)),\n })),\n legal: { ...settings.legal, links: settings.legal.links.map((l) => link(l, t)) },\n ...(shown.length > 0 ? { social: shown.map((s) => ({ id: s.id, label: s.label, href: s.url })) } : {}),\n };\n}\n\n/**\n * What is wrong with a footer's settings — the admin's form refuses to save while the list is not empty: too many\n * columns or links, a link twice, an empty column, an `http:` or a development address, a malformed NEQ.\n */\nexport function footerSettingsProblems(settings: FooterSettings): string[] {\n return [...limitProblems(settings), ...linkProblems(settings), ...legalProblems(settings)];\n}\n\nfunction limitProblems(settings: FooterSettings): string[] {\n const problems: string[] = [];\n if (settings.columns.length > FOOTER_LIMITS.columns) problems.push(`at most ${FOOTER_LIMITS.columns} columns`);\n if (settings.legal.links.length > FOOTER_LIMITS.legalLinks) problems.push(`at most ${FOOTER_LIMITS.legalLinks} legal links`);\n for (const c of settings.columns) {\n if (c.links.length === 0) problems.push(`column ${c.id}: no link`);\n if (c.links.length > FOOTER_LIMITS.links) problems.push(`column ${c.id}: at most ${FOOTER_LIMITS.links} links`);\n }\n return problems;\n}\n\nfunction hrefProblems(where: string, l: { href: string; external?: boolean }): string[] {\n const problems: string[] = [];\n if (/^http:/i.test(l.href)) problems.push(`${where}: ${l.href} is not https`);\n if (/^https?:\\/\\/dev\\./i.test(l.href)) problems.push(`${where}: ${l.href} is a development host`);\n if (l.external && !/^[a-z][a-z0-9+.-]*:/i.test(l.href)) problems.push(`${where}: ${l.href} is external but relative`);\n return problems;\n}\n\nfunction linkProblems(settings: FooterSettings): string[] {\n const problems: string[] = [];\n const seen = new Set<string>();\n const all = [...settings.columns.flatMap((c) => c.links.map((l) => ({ where: c.id, l }))), ...settings.legal.links.map((l) => ({ where: \"legal\", l }))];\n for (const { where, l } of all) {\n if (seen.has(l.href)) problems.push(`${where}: ${l.href} is already in the footer`);\n seen.add(l.href);\n problems.push(...hrefProblems(where, l));\n }\n return problems;\n}\n\nfunction legalProblems(settings: FooterSettings): string[] {\n const problems: string[] = [];\n if (settings.legal.neq !== undefined && !/^\\d{10}$/.test(settings.legal.neq)) problems.push(\"legal: the NEQ has ten digits\");\n if (settings.legal.legalName.trim() === \"\") problems.push(\"legal: the legal name is required\");\n return problems;\n}\n","// 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 type { LinkComponent } from \"../block-link\";\nimport { ProductLogo } from \"../marks/ProductLogo\";\nimport { columnStatus, familyGroups, orgIdOf } from \"../sites/family-groups\";\nimport { companyLinks, type FamilyLabels, familyLabels, type OrgFacts, siteById, type SiteId, type SiteStatus } from \"../sites/sites\";\nimport type { FooterLink, SiteFooterConfig } from \"./footer-config\";\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 note: \"font-normal\",\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 // `config`: real columns — two on a phone, side by side from `sm`, each a heading over a stacked list.\n columns: \"grid min-w-0 grid-cols-2 gap-x-6 gap-y-6 pb-2 sm:grid-flow-col sm:grid-cols-none sm:auto-cols-[minmax(0,13rem)] sm:gap-x-10\",\n stack: \"flex min-w-0 flex-col gap-2\",\n stackList: \"flex min-w-0 flex-col gap-1\",\n identity: \"text-fg-secondary\",\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 * The footer as the admin configured it (`resolveFooterSettings` of the app's settings): its columns, then one legal\n * line — `legalName · NEQ … · city`, the version when `showVersion`, the legal links, the socials. With it the family\n * is not drawn (the columns hold what the site wants) and the org's signature gives way to the legal identity.\n */\n config?: SiteFooterConfig;\n /** The app's router link for the config's internal links (Next's `Link`). @default \"a\" */\n linkAs?: LinkComponent;\n};\n\nconst NO_STATUS = { shared: null, exceptions: new Map<string, Exclude<SiteStatus, \"released\">>() } as const;\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 config,\n linkAs,\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\" && !config));\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 {config && !slim && <ConfigColumns s={s} config={config} id={id} labels={labels} linkAs={linkAs} path={path} />}\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, ...columnStatus(c.entries) })),\n { key: \"krizaka\" as const, title: labels.groups.krizaka, entries: companyEntries, ...NO_STATUS },\n ]\n .filter((c) => c.entries.length > 0)\n .map((c) => (\n <details key={c.key} className={s.group()}>\n <summary className={s.summary()}>\n <span>\n <span id={`${id}-${c.key}`}>{c.title}</span>\n {c.shared && (\n <span className={s.note()}>\n <span aria-hidden=\"true\"> · </span>\n {labels.status[c.shared]}\n </span>\n )}\n </span>\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 exception = c.exceptions.get(e.id);\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 {exception && <span className={s.note()}> ({labels.status[exception]})</span>}\n {isCurrent && <span className=\"sr-only\"> ({labels.current})</span>}\n </a>\n </li>\n );\n })}\n </ul>\n </details>\n ))}\n </nav>\n )}\n {config ? (\n <ConfigBottom s={s} config={config} krizaka={krizaka.url} brand={org?.brand.name ?? \"Krizaka\"} tag={tag} env={env} versionLabel={labels.version} linkAs={linkAs} path={path} controls={controls} />\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 )}\n </div>\n </footer>\n </ToneContext.Provider>\n );\n}\n\nconst isCurrent = (l: FooterLink, path?: string) => path !== undefined && !l.external && bare(l.href.split(/[?#]/)[0]!) === bare(path.split(/[?#]/)[0]!);\n\n/** The configured bottom line: the mark beside the legal identity, the version, the legal links and the socials. */\nfunction ConfigBottom({\n s,\n config,\n krizaka,\n brand,\n tag,\n env,\n versionLabel,\n linkAs,\n path,\n controls,\n}: Readonly<{\n s: ReturnType<typeof siteFooter>;\n config: SiteFooterConfig;\n krizaka: string;\n brand: string;\n tag: string;\n env?: string;\n versionLabel: string;\n linkAs?: LinkComponent;\n path?: string;\n controls?: React.ReactNode;\n}>) {\n const { legal, social } = config;\n const configured = (l: FooterLink) => <ConfigLink key={l.href} link={l} linkAs={linkAs} current={isCurrent(l, path)} />;\n const shown = legal.showVersion ? tag : env;\n const identity = [legal.legalName, legal.neq && `NEQ ${legal.neq}`, legal.city].filter(Boolean).join(\" · \");\n const versionText = (\n <>\n <span className=\"sr-only\">{versionLabel} </span>\n {shown}\n </>\n );\n return (\n <div className={s.bottom()}>\n {/* The company named once: its mark (home) beside its legal identity — never a second « by Technologies Krizaka ». */}\n <a href={krizaka} className={s.signature()} aria-label={brand}>\n <ProductLogo id=\"krizaka\" size={18} animated={false} />\n </a>\n <span className={s.identity()}>{identity}</span>\n {shown &&\n (legal.showVersion && legal.versionHref ? (\n <a href={legal.versionHref} className={s.version({ className: \"no-underline hover:text-fg focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring\" })}>\n {versionText}\n </a>\n ) : (\n <span className={s.version()}>{versionText}</span>\n ))}\n {legal.links.length > 0 && <div className={s.legal()}>{legal.links.map(configured)}</div>}\n {social && social.length > 0 && <div className={s.legal()}>{social.map((x) => configured({ label: x.label, href: x.href, external: true }))}</div>}\n {controls && <div className={s.controls()}>{controls}</div>}\n </div>\n );\n}\n\n/** The admin-configured columns: a title (and status) over a list of links. */\nfunction ConfigColumns({\n s,\n config,\n id,\n labels,\n linkAs,\n path,\n}: Readonly<{ s: ReturnType<typeof siteFooter>; config: SiteFooterConfig; id: string; labels: FamilyLabels; linkAs?: LinkComponent; path?: string }>) {\n if (config.columns.length === 0) return null;\n return (\n <nav aria-label={config.label} className={s.columns()}>\n {config.columns.map((c) => (\n <div key={c.id} className={s.stack()}>\n <p id={`${id}-c-${c.id}`} className={s.title()}>\n {c.title}\n {c.status && (\n <span className={s.note()}>\n <span aria-hidden=\"true\"> · </span>\n {labels.status[c.status]}\n </span>\n )}\n </p>\n <ul aria-labelledby={`${id}-c-${c.id}`} className={s.stackList()}>\n {c.links.map((l) => (\n <li key={l.href}>\n <ConfigLink link={l} linkAs={linkAs} current={isCurrent(l, path)} />\n </li>\n ))}\n </ul>\n </div>\n ))}\n </nav>\n );\n}\n\n/** A configured link: the router's link inside the site, a plain `<a>` when it leaves it. */\nfunction ConfigLink({ link, linkAs, current }: Readonly<{ link: FooterLink; linkAs?: LinkComponent; current: boolean }>) {\n const s = siteFooter();\n const Comp = (link.external || !linkAs ? \"a\" : linkAs) as React.ElementType;\n return (\n <Comp href={link.href} className={s.link()} aria-current={current ? \"page\" : undefined}>\n {link.label}\n </Comp>\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,type SiteStatus } 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: FamilyItem[] }[] {\n const entries = org?.family\n ? org.family.map((e) => ({ id: e.id, name: e.name, url: e.url, group: e.group, status: e.status }))\n : sites.map((s) => ({ id: ORG_ID[s.id] ?? s.id, name: s.name, url: s.url, group: s.group, status: s.status }));\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\ntype Pending = Exclude<SiteStatus, \"released\">;\ntype FamilyItem = { id: string; name: string; url: string; status: SiteStatus };\n\n/**\n * What a column says about its status, from data: when every entry shares one status other than `released`, it is said once\n * for the column (`shared`); when they differ, the most common one is the column's and only the exceptions wear a badge.\n */\nexport function columnStatus(entries: readonly { id: string; status: SiteStatus }[]): { shared: Pending | null; exceptions: Map<string, Pending> } {\n const counts = new Map<SiteStatus, number>();\n for (const e of entries) counts.set(e.status, (counts.get(e.status) ?? 0) + 1);\n const common = [...counts.entries()].sort((a, b) => b[1] - a[1])[0]?.[0] ?? null;\n const exceptions = new Map<string, Pending>();\n for (const e of entries) if (e.status !== common && e.status !== \"released\") exceptions.set(e.id, e.status);\n return { shared: common === null || common === \"released\" ? null : common, exceptions };\n}\n"],"mappings":";;;;;;;;;;;;;AAOO,IAAM,gBAAgB,EAAE,SAAS,GAAG,OAAO,GAAG,YAAY,EAAE;AAkDnE,IAAM,OAAO,CAAC,GAAsB,OAA4C;AAAA,EAC9E,OAAO,EAAE,aAAa,SAAY,EAAE,QAAS,EAAE,EAAE,QAAQ;AAAA,EACzD,MAAM,EAA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,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":["isCurrent","link"]}
@@ -70,4 +70,4 @@ interface OrgFamilyEntry {
70
70
  url: string;
71
71
  }
72
72
 
73
- export type { FamilyLabels as F, OrgFacts as O, SiteId as S };
73
+ export type { FamilyLabels as F, OrgFacts as O, SiteStatus as S, SiteId as a };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@krizaka/ui",
3
- "version": "3.81.0",
3
+ "version": "3.83.0",
4
4
  "description": "The Krizaka front-end platform's components: the primitives (button, card, dialog, toast, menu, field, tabs, chip, switch, slider, command palette, theme, countdown…) on the semantic --kz-* tokens, the animated marks (Krizaka, Orazaka, Yomizaka, Akinaza) and the motion signature — web and /native.",
5
5
  "keywords": [
6
6
  "krizaka",
@@ -993,7 +993,7 @@
993
993
  ],
994
994
  "peerDependencies": {
995
995
  "@krizaka/query": ">=0.3.0",
996
- "@krizaka/tailwind": ">=3.81.0",
996
+ "@krizaka/tailwind": ">=3.83.0",
997
997
  "@maplibre/maplibre-react-native": ">=11",
998
998
  "@shopify/flash-list": ">=2",
999
999
  "expo-camera": ">=16",
@@ -3427,7 +3427,7 @@
3427
3427
  "zod": "^4.6.7",
3428
3428
  "@krizaka/intl": "^0.4.1",
3429
3429
  "@krizaka/pacer": "^0.2.0",
3430
- "@krizaka/tokens": "^3.81.0"
3430
+ "@krizaka/tokens": "^3.83.0"
3431
3431
  },
3432
3432
  "scripts": {
3433
3433
  "build": "node -e \"const fs=require('node:fs');fs.rmSync('dist',{recursive:true,force:true});for(const f of fs.readdirSync('registry/examples',{recursive:true}))if(/\\.(js|d\\.ts)$/.test(f))fs.rmSync('registry/examples/'+f)\" && tsup && node -e \"require('node:fs').copyFileSync('src/motion.css','dist/motion.css');require('node:fs').copyFileSync('src/blocks.css','dist/blocks.css');require('node:fs').copyFileSync('src/story.css','dist/story.css')\" && node scripts/build-registry.mjs",