@krizaka/ui 3.78.0 → 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.
- package/README.md +1 -0
- package/dist/chunk-BCD2CRFG.js +349 -0
- package/dist/chunk-BCD2CRFG.js.map +1 -0
- package/dist/{chunk-SG3QJJXE.js → chunk-ENFXJUDN.js} +3 -16
- package/dist/chunk-ENFXJUDN.js.map +1 -0
- package/dist/filter-bar.d.ts +3 -3
- package/dist/identity-card.d.ts +39 -0
- package/dist/identity-card.js +34 -0
- package/dist/identity-card.js.map +1 -0
- package/dist/nav-bar.d.ts +1 -1
- package/dist/nav-bar.js +63 -53
- package/dist/nav-bar.js.map +1 -1
- package/dist/qr-code.d.ts +25 -2
- package/dist/qr-code.js +29 -339
- package/dist/qr-code.js.map +1 -1
- package/dist/site-cahier.d.ts +32 -19
- package/dist/site-cahier.js +106 -95
- package/dist/site-cahier.js.map +1 -1
- package/dist/site-footer.d.ts +59 -39
- package/dist/site-footer.js +93 -67
- package/dist/site-footer.js.map +1 -1
- package/dist/{sites-CVNSirrg.d.ts → sites-BLqbwmng.d.ts} +14 -0
- package/dist/sites.d.ts +28 -2
- package/dist/sites.js +10 -0
- package/dist/sites.js.map +1 -1
- package/dist/virtual.d.ts +3 -3
- package/package.json +18 -4
- package/registry/account-menu.json +1 -1
- package/registry/account-settings.json +1 -1
- package/registry/achievement.json +1 -1
- package/registry/action-bar.json +1 -1
- package/registry/activity-feed.json +1 -1
- package/registry/agenda.json +1 -1
- package/registry/alert.json +1 -1
- package/registry/analysis-report.json +1 -1
- package/registry/anatomy-plate.json +1 -1
- package/registry/app-frame.json +2 -2
- package/registry/app-header.json +1 -1
- package/registry/app-shell.json +1 -1
- package/registry/argument-card.json +1 -1
- package/registry/auth-layout.json +1 -1
- package/registry/avatar.json +1 -1
- package/registry/badge.json +1 -1
- package/registry/bird-plate.json +1 -1
- package/registry/button.json +1 -1
- package/registry/captcha.json +1 -1
- package/registry/card-grid.json +1 -1
- package/registry/card.json +1 -1
- package/registry/catalogue-page.json +1 -1
- package/registry/changelog-page.json +1 -1
- package/registry/chapter.json +1 -1
- package/registry/chat.json +1 -1
- package/registry/checkbox.json +1 -1
- package/registry/chip-link.json +1 -1
- package/registry/chip-row.json +1 -1
- package/registry/chip.json +1 -1
- package/registry/choice-grid.json +1 -1
- package/registry/code-block.json +1 -1
- package/registry/collection-switcher.json +1 -1
- package/registry/combobox.json +2 -2
- package/registry/command.json +1 -1
- package/registry/comparison-table.json +1 -1
- package/registry/component-page.json +1 -1
- package/registry/confirm-button.json +1 -1
- package/registry/contact-page.json +1 -1
- package/registry/continue-prompt.json +1 -1
- package/registry/copy-button.json +1 -1
- package/registry/countdown.json +1 -1
- package/registry/cover-hero.json +1 -1
- package/registry/cta-panel.json +1 -1
- package/registry/dashboard-layout.json +1 -1
- package/registry/data-table.json +1 -1
- package/registry/date-picker.json +1 -1
- package/registry/decision-list.json +1 -1
- package/registry/description-list.json +1 -1
- package/registry/desktop-window.json +1 -1
- package/registry/detail-layout.json +1 -1
- package/registry/dialog.json +1 -1
- package/registry/docs-article-page.json +1 -1
- package/registry/docs-hub-page.json +1 -1
- package/registry/docs-layout.json +1 -1
- package/registry/docs-nav.json +1 -1
- package/registry/document-viewer.json +1 -1
- package/registry/doodle.json +1 -1
- package/registry/drop-overlay.json +1 -1
- package/registry/dropdown-menu.json +1 -1
- package/registry/elephant.json +1 -1
- package/registry/embed-facade.json +1 -1
- package/registry/empty-state.json +1 -1
- package/registry/engine-flow.json +1 -1
- package/registry/entity-header.json +1 -1
- package/registry/environment-notice.json +1 -1
- package/registry/error-page.json +1 -1
- package/registry/examples/identity-card/basic.d.ts +4 -0
- package/registry/examples/identity-card/basic.js +33 -0
- package/registry/examples/identity-card/basic.tsx +29 -0
- package/registry/examples/site-footer/company.js +1 -0
- package/registry/examples/site-footer/company.tsx +3 -2
- package/registry/examples/site-footer/docs.tsx +1 -1
- package/registry/examples/site-footer/open-source-fr.js +1 -1
- package/registry/examples/site-footer/open-source-fr.tsx +1 -1
- package/registry/examples/site-footer/product.js +9 -14
- package/registry/examples/site-footer/product.tsx +14 -12
- package/registry/field.json +1 -1
- package/registry/file-upload.json +2 -2
- package/registry/filter-bar.json +1 -1
- package/registry/flock.json +1 -1
- package/registry/footnote.json +1 -1
- package/registry/force-update-screen.json +1 -1
- package/registry/form.json +1 -1
- package/registry/gallery-page.json +1 -1
- package/registry/genui.json +1 -1
- package/registry/glossary-term.json +1 -1
- package/registry/glossary.json +1 -1
- package/registry/glow-card.json +1 -1
- package/registry/goal-gauge.json +1 -1
- package/registry/grade-stamp.json +1 -1
- package/registry/identity-card.json +218 -0
- package/registry/image-cropper.json +1 -1
- package/registry/index.json +43 -12
- package/registry/kanban.json +1 -1
- package/registry/kbd.json +1 -1
- package/registry/kind-config-editor.json +1 -1
- package/registry/kpi-explained.json +1 -1
- package/registry/landing-page.json +1 -1
- package/registry/landscape.json +1 -1
- package/registry/language-switch.json +1 -1
- package/registry/legal-page.json +1 -1
- package/registry/link-card.json +1 -1
- package/registry/list.json +1 -1
- package/registry/loader.json +1 -1
- package/registry/longform-page.json +1 -1
- package/registry/maintenance-screen.json +1 -1
- package/registry/map.json +2 -2
- package/registry/margin-layout.json +1 -1
- package/registry/markdown.json +1 -1
- package/registry/marketing-layout.json +1 -1
- package/registry/mascot-quote.json +1 -1
- package/registry/mascot-state.json +1 -1
- package/registry/mascots.json +1 -1
- package/registry/match-dialog.json +1 -1
- package/registry/media-capture.json +1 -1
- package/registry/media-gallery.json +1 -1
- package/registry/meter.json +1 -1
- package/registry/money-input.json +1 -1
- package/registry/nav-bar.json +2 -2
- package/registry/next-actions.json +1 -1
- package/registry/notification-preferences.json +1 -1
- package/registry/number-ticker.json +1 -1
- package/registry/opening-hours.json +1 -1
- package/registry/page-header.json +1 -1
- package/registry/page-hero.json +1 -1
- package/registry/page-index.json +1 -1
- package/registry/page.json +1 -1
- package/registry/pagination.json +1 -1
- package/registry/pointer-light.json +1 -1
- package/registry/popover.json +1 -1
- package/registry/price-catalogue-editor.json +1 -1
- package/registry/pricing-page.json +1 -1
- package/registry/product-page.json +1 -1
- package/registry/profile-card.json +1 -1
- package/registry/progress.json +1 -1
- package/registry/promise-card.json +1 -1
- package/registry/promo-code-field.json +1 -1
- package/registry/proposal.json +1 -1
- package/registry/qr-code.json +6 -2
- package/registry/quota-meter.json +1 -1
- package/registry/radio-group.json +1 -1
- package/registry/rail-nav.json +2 -2
- package/registry/recipes.json +1 -1
- package/registry/retro-tv.json +1 -1
- package/registry/reviews.json +1 -1
- package/registry/router.json +1 -1
- package/registry/schema-form.json +1 -1
- package/registry/scroll-stage.json +1 -1
- package/registry/search-field.json +2 -2
- package/registry/section-backdrop.json +1 -1
- package/registry/separator.json +1 -1
- package/registry/service-card.json +1 -1
- package/registry/settings-layout.json +1 -1
- package/registry/shop-composer.json +1 -1
- package/registry/shop-gallery.json +1 -1
- package/registry/shop.json +2 -2
- package/registry/showcase.json +1 -1
- package/registry/signature.json +1 -1
- package/registry/site-cahier.json +1 -1
- package/registry/site-footer.json +81 -58
- package/registry/sites.json +7 -3
- package/registry/skeleton.json +1 -1
- package/registry/skip-link.json +1 -1
- package/registry/slider.json +1 -1
- package/registry/slot-picker.json +1 -1
- package/registry/slot.json +1 -1
- package/registry/specimen-tag.json +1 -1
- package/registry/speed-lines.json +1 -1
- package/registry/spinner.json +1 -1
- package/registry/split-view.json +1 -1
- package/registry/stage-banner.json +1 -1
- package/registry/stat.json +1 -1
- package/registry/status-chip.json +1 -1
- package/registry/status-page.json +1 -1
- package/registry/step-progress.json +1 -1
- package/registry/step-showcase.json +1 -1
- package/registry/stepper.json +1 -1
- package/registry/sticky-action.json +1 -1
- package/registry/stuck.json +1 -1
- package/registry/swipe-deck.json +1 -1
- package/registry/switch.json +1 -1
- package/registry/tabs.json +1 -1
- package/registry/tag-input.json +1 -1
- package/registry/tag-selector.json +1 -1
- package/registry/taped-photo.json +1 -1
- package/registry/terminal-replay.json +1 -1
- package/registry/text-style.json +1 -1
- package/registry/theme.json +1 -1
- package/registry/toast.json +1 -1
- package/registry/toc.json +1 -1
- package/registry/tooltip.json +1 -1
- package/registry/tree-view.json +1 -1
- package/registry/update-prompt.json +1 -1
- package/registry/upload-queue.json +1 -1
- package/registry/usage.json +1 -1
- package/registry/verified-badge.json +1 -1
- package/registry/versus-card.json +1 -1
- package/registry/vertical-video.json +1 -1
- package/registry/video-player.json +1 -1
- package/registry/video-trimmer.json +1 -1
- package/registry/virtual.json +1 -1
- package/registry/wall.json +1 -1
- package/registry/waveform.json +1 -1
- package/dist/chunk-SG3QJJXE.js.map +0 -1
package/dist/site-cahier.js
CHANGED
|
@@ -319,16 +319,6 @@ function ProductLogo({ id, ...props }) {
|
|
|
319
319
|
return /* @__PURE__ */ jsx6(AkinazaLogo, { ...props });
|
|
320
320
|
}
|
|
321
321
|
|
|
322
|
-
// src/family-mark.tsx
|
|
323
|
-
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
324
|
-
function GitHubGlyph({ size = 16, className }) {
|
|
325
|
-
return /* @__PURE__ */ jsx7("svg", { viewBox: "0 0 16 16", width: size, height: size, fill: "currentColor", "aria-hidden": true, className, children: /* @__PURE__ */ jsx7("path", { d: "M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8Z" }) });
|
|
326
|
-
}
|
|
327
|
-
function FamilyMark({ mark, size }) {
|
|
328
|
-
if (mark === "github") return /* @__PURE__ */ jsx7(GitHubGlyph, { size: Math.round(size * 0.8) });
|
|
329
|
-
return /* @__PURE__ */ jsx7(ProductLogo, { id: mark, size, animated: false });
|
|
330
|
-
}
|
|
331
|
-
|
|
332
322
|
// src/sites/sites.ts
|
|
333
323
|
var site = (s) => ({ ...s, host: s.url.replace(/^https?:\/\//, "").replace(/\/$/, "") });
|
|
334
324
|
var sites = [
|
|
@@ -349,9 +339,6 @@ function siteById(id) {
|
|
|
349
339
|
if (!found) throw new Error(`Unknown Krizaka site "${id}".`);
|
|
350
340
|
return found;
|
|
351
341
|
}
|
|
352
|
-
function sitesByGroup() {
|
|
353
|
-
return siteGroups.map((group) => ({ group, sites: sites.filter((s) => s.group === group) })).filter((g) => g.sites.length > 0);
|
|
354
|
-
}
|
|
355
342
|
var companyLinks = [
|
|
356
343
|
{ id: "story", url: { en: "https://www.krizaka.com/story", fr: "https://www.krizaka.com/fr/story" } },
|
|
357
344
|
{ id: "blog", url: { en: "https://blog.krizaka.com", fr: "https://blog.krizaka.com" } },
|
|
@@ -404,42 +391,58 @@ var familyLabels = {
|
|
|
404
391
|
}
|
|
405
392
|
};
|
|
406
393
|
|
|
394
|
+
// src/sites/family-groups.ts
|
|
395
|
+
var ORG_ID = { motion: "lab" };
|
|
396
|
+
function familyGroups(org) {
|
|
397
|
+
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 }));
|
|
398
|
+
return siteGroups.map((group) => ({ group, entries: entries.filter((e) => e.group === group) })).filter((g) => g.entries.length > 0);
|
|
399
|
+
}
|
|
400
|
+
var orgIdOf = (id) => ORG_ID[id] ?? id;
|
|
401
|
+
|
|
407
402
|
// src/site-footer/site-footer.tsx
|
|
408
|
-
import { Fragment, jsx as
|
|
403
|
+
import { Fragment, jsx as jsx7, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
409
404
|
var siteFooter = tv({
|
|
410
405
|
slots: {
|
|
411
406
|
root: "w-full border-t border-border-subtle bg-surface-0 text-fg",
|
|
412
|
-
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-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
bottom: "flex flex-wrap items-center gap-x-
|
|
407
|
+
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",
|
|
408
|
+
row: "flex min-w-0 flex-wrap items-baseline gap-x-6 gap-y-2",
|
|
409
|
+
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",
|
|
410
|
+
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",
|
|
411
|
+
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",
|
|
412
|
+
chevron: "size-4 shrink-0 transition-transform group-open/fold:rotate-180 motion-reduce:transition-none lg:hidden",
|
|
413
|
+
column: "inline-flex min-w-0 flex-wrap items-baseline gap-x-2 gap-y-1",
|
|
414
|
+
title: "text-xs font-semibold text-fg-secondary",
|
|
415
|
+
list: "flex min-w-0 flex-wrap items-baseline gap-x-3 gap-y-1 pb-2 lg:pb-0",
|
|
416
|
+
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",
|
|
417
|
+
bottom: "flex flex-wrap items-center gap-x-4 gap-y-2 text-xs text-fg-secondary",
|
|
423
418
|
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",
|
|
424
419
|
version: "rounded-sm border border-border-subtle bg-surface-2 px-2 py-0.5 font-mono text-[11px] text-fg-secondary",
|
|
425
|
-
legal: "flex flex-wrap items-center gap-x-4 gap-y-2
|
|
420
|
+
legal: "flex flex-wrap items-center gap-x-4 gap-y-2",
|
|
421
|
+
controls: "flex flex-wrap items-center gap-2 sm:ml-auto"
|
|
426
422
|
},
|
|
427
423
|
variants: {
|
|
428
|
-
// `site`: the
|
|
429
|
-
// slim line inside a signed-in product — signature, version, legal links.
|
|
424
|
+
// `site`: the three lines. `docs`: the same on the documentation's width. `app`: line 3 only, inside a signed-in product.
|
|
430
425
|
variant: {
|
|
431
426
|
site: {},
|
|
432
427
|
docs: {
|
|
433
|
-
inner: "max-w-[calc(var(--kz-page-max-docs,88rem)_+_2*var(--kz-page-gutter,clamp(16px,3.2vw,32px)))]
|
|
434
|
-
own: "sm:grid-cols-4"
|
|
428
|
+
inner: "max-w-[calc(var(--kz-page-max-docs,88rem)_+_2*var(--kz-page-gutter,clamp(16px,3.2vw,32px)))]"
|
|
435
429
|
},
|
|
436
430
|
app: {
|
|
437
431
|
root: "bg-transparent",
|
|
438
|
-
inner: "
|
|
432
|
+
inner: "py-3"
|
|
433
|
+
}
|
|
434
|
+
},
|
|
435
|
+
// `product`: the products' plain Krizaka UI. `cahier`: the Cahier sites (www, blog, ui., java., ts., lab.) — the
|
|
436
|
+
// headings in the Cahier's hand; the structure is the same.
|
|
437
|
+
tone: {
|
|
438
|
+
product: {},
|
|
439
|
+
cahier: {
|
|
440
|
+
title: "font-[family-name:var(--kz-font-display,inherit)] italic",
|
|
441
|
+
summary: "font-[family-name:var(--kz-font-display,inherit)] italic"
|
|
439
442
|
}
|
|
440
443
|
}
|
|
441
444
|
},
|
|
442
|
-
defaultVariants: { variant: "site" }
|
|
445
|
+
defaultVariants: { variant: "site", tone: "product" }
|
|
443
446
|
});
|
|
444
447
|
var bare = (p) => p.replace(/^\/(en|fr)(?=\/|$)/, "").replace(/\/+$/, "") || "/";
|
|
445
448
|
function isThisPage(href, siteUrl, path) {
|
|
@@ -455,6 +458,7 @@ function backToTop(event) {
|
|
|
455
458
|
event.preventDefault();
|
|
456
459
|
window.scrollTo({ top: 0, behavior: "auto" });
|
|
457
460
|
}
|
|
461
|
+
var ToneContext = React.createContext("product");
|
|
458
462
|
function SiteFooter({
|
|
459
463
|
current,
|
|
460
464
|
labels = familyLabels.en,
|
|
@@ -463,66 +467,72 @@ function SiteFooter({
|
|
|
463
467
|
env,
|
|
464
468
|
path,
|
|
465
469
|
legal: legalProp,
|
|
470
|
+
controls,
|
|
466
471
|
org,
|
|
467
472
|
family: familyProp,
|
|
468
473
|
products,
|
|
469
474
|
variant = "site",
|
|
475
|
+
tone = "product",
|
|
470
476
|
className,
|
|
471
477
|
...props
|
|
472
478
|
}) {
|
|
473
479
|
const id = React.useId();
|
|
474
|
-
const s = siteFooter({ variant });
|
|
475
|
-
const family = variant === "site" && (familyProp ?? current === "krizaka");
|
|
480
|
+
const s = siteFooter({ variant, tone });
|
|
476
481
|
const slim = variant === "app";
|
|
482
|
+
const family = !slim && (familyProp ?? current === "krizaka");
|
|
477
483
|
const site2 = siteById(current);
|
|
478
484
|
const krizaka = siteById("krizaka");
|
|
485
|
+
const currentId = orgIdOf(current);
|
|
479
486
|
const tag = [env, version && `v${version.replace(/^v/, "")}`].filter(Boolean).join(" \xB7 ");
|
|
480
|
-
const own = React.Children.toArray(children).length > 0;
|
|
487
|
+
const own = !slim && React.Children.toArray(children).length > 0;
|
|
481
488
|
const lang = labels.lang ?? "en";
|
|
482
489
|
const company = labels.company ?? familyLabels.en.company;
|
|
483
|
-
const legal = legalProp ?? (org && /* @__PURE__ */
|
|
490
|
+
const legal = legalProp ?? (org && /* @__PURE__ */ jsx7(Fragment, { children: org.footer.legal.map((l) => /* @__PURE__ */ jsx7(SiteFooterLink, { href: l.url[lang], children: l.label[lang] }, l.id)) }));
|
|
484
491
|
const here = (href) => path !== void 0 && isThisPage(href, site2.url, path);
|
|
485
|
-
const
|
|
492
|
+
const productIds = products?.map(orgIdOf);
|
|
493
|
+
const groups = familyGroups(org);
|
|
486
494
|
const columns = [
|
|
487
|
-
...groups.filter((g) => g.group === "products").map((g) =>
|
|
488
|
-
{ group: "open-source",
|
|
495
|
+
...groups.filter((g) => g.group === "products").map((g) => ({ ...g, entries: productIds ? g.entries.filter((e) => productIds.includes(e.id) || e.id === currentId) : g.entries })),
|
|
496
|
+
{ group: "open-source", entries: groups.filter((g) => g.group === "open-source" || g.group === "github").flatMap((g) => g.entries) }
|
|
489
497
|
];
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
498
|
+
const companyEntries = companyLinks.map((l) => ({ id: l.id, name: company[l.id], url: l.url[lang] }));
|
|
499
|
+
return /* @__PURE__ */ jsx7(ToneContext.Provider, { value: tone, children: /* @__PURE__ */ jsx7("footer", { className: s.root({ className }), ...props, children: /* @__PURE__ */ jsxs6("div", { className: s.inner(), children: [
|
|
500
|
+
own && /* @__PURE__ */ jsx7("div", { className: s.row(), children }),
|
|
501
|
+
family && /* @__PURE__ */ jsx7("nav", { "aria-label": labels.family, className: s.family(), children: [
|
|
502
|
+
...columns.map((c) => ({ key: c.group, title: labels.groups[c.group], entries: c.entries })),
|
|
503
|
+
{ key: "krizaka", title: labels.groups.krizaka, entries: companyEntries }
|
|
504
|
+
].filter((c) => c.entries.length > 0).map((c) => /* @__PURE__ */ jsxs6("details", { className: s.group(), children: [
|
|
505
|
+
/* @__PURE__ */ jsxs6("summary", { id: `${id}-${c.key}`, className: s.summary(), children: [
|
|
506
|
+
c.title,
|
|
507
|
+
/* @__PURE__ */ jsx7("svg", { "aria-hidden": "true", viewBox: "0 0 16 16", fill: "none", stroke: "currentColor", strokeWidth: "1.5", className: s.chevron(), children: /* @__PURE__ */ jsx7("path", { d: "M4 6l4 4 4-4", strokeLinecap: "round", strokeLinejoin: "round" }) })
|
|
508
|
+
] }),
|
|
509
|
+
/* @__PURE__ */ jsx7("ul", { "aria-labelledby": `${id}-${c.key}`, className: s.list(), children: c.entries.map((e) => {
|
|
510
|
+
const isCompany = c.key === "krizaka";
|
|
511
|
+
const atHome = isCompany && here(e.url);
|
|
512
|
+
const isCurrent = !isCompany && e.id === currentId;
|
|
513
|
+
return /* @__PURE__ */ jsx7("li", { children: /* @__PURE__ */ jsxs6(
|
|
514
|
+
"a",
|
|
515
|
+
{
|
|
516
|
+
href: e.url,
|
|
517
|
+
"aria-current": atHome ? "page" : isCurrent ? "true" : void 0,
|
|
518
|
+
onClick: atHome ? backToTop : void 0,
|
|
519
|
+
className: s.link(),
|
|
520
|
+
children: [
|
|
521
|
+
e.name,
|
|
522
|
+
isCurrent && /* @__PURE__ */ jsxs6("span", { className: "sr-only", children: [
|
|
523
|
+
" (",
|
|
524
|
+
labels.current,
|
|
525
|
+
")"
|
|
526
|
+
] })
|
|
527
|
+
]
|
|
528
|
+
}
|
|
529
|
+
) }, e.id);
|
|
530
|
+
}) })
|
|
531
|
+
] }, c.key)) }),
|
|
522
532
|
/* @__PURE__ */ jsxs6("div", { className: s.bottom(), children: [
|
|
523
533
|
/* @__PURE__ */ jsxs6("a", { href: krizaka.url, className: s.signature(), children: [
|
|
524
|
-
/* @__PURE__ */
|
|
525
|
-
org ? org.footer.line[lang] : labels.signature[site2.kind]
|
|
534
|
+
/* @__PURE__ */ jsx7(ProductLogo, { id: "krizaka", size: 18, animated: false }),
|
|
535
|
+
org ? org.footer.line[lang] : `${labels.signature[site2.kind]} \xB7 ${labels.place}`
|
|
526
536
|
] }),
|
|
527
537
|
tag && /* @__PURE__ */ jsxs6("span", { className: s.version(), children: [
|
|
528
538
|
/* @__PURE__ */ jsxs6("span", { className: "sr-only", children: [
|
|
@@ -531,30 +541,31 @@ function SiteFooter({
|
|
|
531
541
|
] }),
|
|
532
542
|
tag
|
|
533
543
|
] }),
|
|
534
|
-
|
|
535
|
-
|
|
544
|
+
legal && /* @__PURE__ */ jsx7("div", { className: s.legal(), children: legal }),
|
|
545
|
+
controls && /* @__PURE__ */ jsx7("div", { className: s.controls(), children: controls })
|
|
536
546
|
] })
|
|
537
|
-
] }) });
|
|
547
|
+
] }) }) });
|
|
538
548
|
}
|
|
539
549
|
function SiteFooterColumn({ title, children, className, ...props }) {
|
|
540
550
|
const id = React.useId();
|
|
551
|
+
const tone = React.useContext(ToneContext);
|
|
541
552
|
if (React.Children.toArray(children).length === 0) return null;
|
|
542
|
-
const s = siteFooter();
|
|
553
|
+
const s = siteFooter({ tone });
|
|
543
554
|
return /* @__PURE__ */ jsxs6("div", { className: s.column({ className }), ...props, children: [
|
|
544
|
-
/* @__PURE__ */
|
|
545
|
-
/* @__PURE__ */
|
|
555
|
+
/* @__PURE__ */ jsx7("p", { id, className: s.title(), children: title }),
|
|
556
|
+
/* @__PURE__ */ jsx7("ul", { "aria-labelledby": id, className: s.list({ className: "pb-0" }), children: React.Children.toArray(children).map((child, i) => /* @__PURE__ */ jsx7("li", { children: child }, i)) })
|
|
546
557
|
] });
|
|
547
558
|
}
|
|
548
559
|
function SiteFooterLink({ active, asChild, className, ...props }) {
|
|
549
560
|
const s = siteFooter();
|
|
550
561
|
const Comp = asChild ? Slot.Root : "a";
|
|
551
|
-
return /* @__PURE__ */
|
|
562
|
+
return /* @__PURE__ */ jsx7(Comp, { "aria-current": active ? "page" : void 0, className: s.link({ className }), ...props });
|
|
552
563
|
}
|
|
553
564
|
SiteFooter.Column = SiteFooterColumn;
|
|
554
565
|
SiteFooter.Link = SiteFooterLink;
|
|
555
566
|
|
|
556
567
|
// src/site-cahier/site-cahier.tsx
|
|
557
|
-
import { jsx as
|
|
568
|
+
import { jsx as jsx8, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
558
569
|
function SiteCahier({ site: site2, name, bird, hue, nav, navLabel = "Main", homeHref = "/", linkAs, bar, footer, className, style, children, ...props }) {
|
|
559
570
|
const h = hue === void 0 || !Number.isFinite(hue) ? void 0 : (Math.round(hue) % 360 + 360) % 360;
|
|
560
571
|
const tint = h === void 0 ? void 0 : {
|
|
@@ -563,32 +574,32 @@ function SiteCahier({ site: site2, name, bird, hue, nav, navLabel = "Main", home
|
|
|
563
574
|
"--kz-hue-text": "var(--kz-text-primary)"
|
|
564
575
|
};
|
|
565
576
|
return /* @__PURE__ */ jsxs7("div", { className: cn("kz-cahier", className), "data-site": site2, style: { ...tint, ...style }, ...props, children: [
|
|
566
|
-
bar ?? /* @__PURE__ */
|
|
577
|
+
bar ?? /* @__PURE__ */ jsx8("header", { className: "kz-cahier-bar", children: /* @__PURE__ */ jsx8(Page, { children: /* @__PURE__ */ jsxs7("div", { className: "kz-cahier-bar-row", children: [
|
|
567
578
|
/* @__PURE__ */ jsxs7(BlockLink, { href: homeHref, linkAs, className: "kz-cahier-brand", children: [
|
|
568
|
-
/* @__PURE__ */
|
|
569
|
-
/* @__PURE__ */
|
|
579
|
+
/* @__PURE__ */ jsx8(Mascot, { bird, tone: "own", size: 30, animated: false }),
|
|
580
|
+
/* @__PURE__ */ jsx8("span", { children: name })
|
|
570
581
|
] }),
|
|
571
|
-
/* @__PURE__ */
|
|
582
|
+
/* @__PURE__ */ jsx8("nav", { "aria-label": navLabel, children: /* @__PURE__ */ jsx8("ul", { className: "kz-cahier-nav", children: nav.map((item, i) => /* @__PURE__ */ jsx8("li", { children: /* @__PURE__ */ jsx8(BlockLink, { href: item.href, linkAs, "aria-current": item.current ? "page" : void 0, children: item.label }) }, i)) }) })
|
|
572
583
|
] }) }) }),
|
|
573
|
-
/* @__PURE__ */
|
|
574
|
-
footer === false ? null : /* @__PURE__ */
|
|
584
|
+
/* @__PURE__ */ jsx8("main", { className: "kz-cahier-main", children }),
|
|
585
|
+
footer === false ? null : /* @__PURE__ */ jsx8(SiteFooter, { current: site2, ...footer })
|
|
575
586
|
] });
|
|
576
587
|
}
|
|
577
588
|
function SiteCahierHero({ bird, birdCaption, aside, doodle, children, ...props }) {
|
|
578
|
-
const print = aside ?? (bird ? /* @__PURE__ */
|
|
589
|
+
const print = aside ?? (bird ? /* @__PURE__ */ jsx8(TapedPhoto, { tape: "top", tilt: 2, caption: birdCaption, children: /* @__PURE__ */ jsx8("div", { className: "kz-cahier-print", children: /* @__PURE__ */ jsx8(Mascot, { bird, tone: "own", size: 150, animated: false }) }) }) : void 0);
|
|
579
590
|
return /* @__PURE__ */ jsxs7("div", { className: "kz-cahier-hero", children: [
|
|
580
|
-
/* @__PURE__ */
|
|
581
|
-
doodle && /* @__PURE__ */
|
|
591
|
+
/* @__PURE__ */ jsx8(PageHero, { backdrop: "plain", aside: print, ...props, children }),
|
|
592
|
+
doodle && /* @__PURE__ */ jsx8("div", { className: "kz-cahier-doodle", children: doodle })
|
|
582
593
|
] });
|
|
583
594
|
}
|
|
584
595
|
function SiteCahierDoc({ title, eyebrow, aside, asideLabel = "On this page", className, children, ...props }) {
|
|
585
|
-
return /* @__PURE__ */
|
|
596
|
+
return /* @__PURE__ */ jsx8(Page, { size: "wide", paper: "lines", margin: true, children: /* @__PURE__ */ jsxs7("div", { className: "kz-cahier-doc", "data-aside": aside ? "" : void 0, children: [
|
|
586
597
|
/* @__PURE__ */ jsxs7("article", { className: cn("kz-cahier-article", className), ...props, children: [
|
|
587
|
-
eyebrow && /* @__PURE__ */
|
|
588
|
-
/* @__PURE__ */
|
|
589
|
-
/* @__PURE__ */
|
|
598
|
+
eyebrow && /* @__PURE__ */ jsx8("p", { className: "kz-eyebrow", children: eyebrow }),
|
|
599
|
+
/* @__PURE__ */ jsx8("h1", { className: "kz-hero-title", children: title }),
|
|
600
|
+
/* @__PURE__ */ jsx8("div", { className: "kz-tpl-prose", children })
|
|
590
601
|
] }),
|
|
591
|
-
aside && /* @__PURE__ */
|
|
602
|
+
aside && /* @__PURE__ */ jsx8("aside", { className: "kz-cahier-aside", "aria-label": asideLabel, children: aside })
|
|
592
603
|
] }) });
|
|
593
604
|
}
|
|
594
605
|
export {
|