@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.
- package/dist/app-frame.d.ts +8 -1
- package/dist/app-frame.js +16 -4
- package/dist/app-frame.js.map +1 -1
- package/dist/app-header.d.ts +3 -1
- package/dist/app-header.js +2 -2
- package/dist/app-header.js.map +1 -1
- package/dist/{chunk-BHAWCN4I.js → chunk-LZK4IRVW.js} +7 -4
- package/dist/{chunk-BHAWCN4I.js.map → chunk-LZK4IRVW.js.map} +1 -1
- package/dist/index.js +9 -6
- package/dist/index.js.map +1 -1
- package/dist/nav-bar.d.ts +1 -1
- package/dist/nav-bar.js +1 -1
- package/dist/{schema-DgjBz7-8.d.ts → schema-CL7t7xqb.d.ts} +1 -1
- package/dist/shop.d.ts +2 -2
- package/dist/site-cahier.d.ts +47 -0
- package/dist/site-cahier.js +78 -9
- package/dist/site-cahier.js.map +1 -1
- package/dist/site-footer.d.ts +122 -4
- package/dist/site-footer.js +135 -7
- package/dist/site-footer.js.map +1 -1
- package/dist/{sites-Dxb1tecd.d.ts → sites-CSBwUnbJ.d.ts} +1 -1
- package/package.json +3 -3
- 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 +28 -5
- package/registry/app-header.json +18 -4
- 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 +3 -3
- 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 +1 -1
- 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/app-frame/touch.d.ts +4 -0
- package/registry/examples/app-frame/touch.js +38 -0
- package/registry/examples/app-frame/touch.tsx +38 -0
- package/registry/examples/site-footer/configured.d.ts +4 -0
- package/registry/examples/site-footer/configured.js +39 -0
- package/registry/examples/site-footer/configured.tsx +37 -0
- package/registry/field.json +1 -1
- package/registry/file-upload.json +1 -1
- 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 +1 -1
- package/registry/image-cropper.json +1 -1
- package/registry/index.json +9 -9
- 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 +3 -3
- 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 +1 -1
- package/registry/quota-meter.json +1 -1
- package/registry/radio-group.json +1 -1
- package/registry/rail-nav.json +3 -3
- 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 +1 -1
- 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 +53 -7
- package/registry/sites.json +1 -1
- 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/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/marks/kridoc-geometry.ts","../src/marks/KridocLogo.tsx","../src/marks/ProductLockup.tsx","../src/marks/wu-sama-geometry.ts","../src/marks/WuSamaMark.tsx"],"sourcesContent":["import { KRIZAKA } from \"./krizaka-geometry\";\n\n/**\n * The Kridoc mark's geometry (the managed storage, code name kachizaka; krizaka-internal#2035). Same grammar as the family\n * (a 360×360 artwork at (20, 20), one stroke of 22, an open figure whose end breaks out as a node, a core, a dashed orbit\n * and a ring). Kridoc is a service of the company, so it wears the **Krizaka** colours — ink figure, blue node and core.\n * The figure is a page with its corner folded: the stroke stays open at the fold, where the node — the share link — sits;\n * the core is the seal on the page (kept, audited).\n */\nexport const KRIDOC = {\n viewBox: KRIZAKA.viewBox,\n croppedViewBox: KRIZAKA.croppedViewBox,\n offset: KRIZAKA.offset,\n /** The page: from the fold, down the right edge, along the bottom, up the left edge and across the top, stopping short of the fold. */\n page: \"M248,140 L248,268 L112,268 L112,92 L190,92\",\n /** The folded corner: the crease from the top edge to the right edge. */\n fold: \"M214,92 L214,124 L248,124\",\n /** Two lines of text on the page. */\n lines: [\"M140,170 L214,170\", \"M140,206 L196,206\"],\n stroke: KRIZAKA.stroke,\n ink: KRIZAKA.ink,\n blue: KRIZAKA.blue,\n node: { cx: 248, cy: 92, r: 19, inner: 6 },\n core: { cx: 196, cy: 240, r: 20, inner: 7 },\n highlight: KRIZAKA.highlight,\n glow: KRIZAKA.glow,\n orbit: KRIZAKA.orbit,\n ring: KRIZAKA.ring,\n} as const;\n","import { InkMark } from \"./InkMark\";\nimport { KRIDOC as G } from \"./kridoc-geometry\";\nimport type { MarkProps } from \"./shared\";\n\nconst CSS = `\n.kdm-spin { transform-origin: 200px 200px; animation: kdm-spin 30s linear infinite; }\n.kdm-pulse { transform-box: fill-box; transform-origin: center; animation: kdm-pulse 3.2s ease-in-out infinite; }\n@keyframes kdm-spin { to { transform: rotate(360deg); } }\n@keyframes kdm-pulse { 0%, 100% { opacity: .9; } 50% { opacity: 1; } }\n@media (prefers-reduced-motion: reduce) { .kdm-spin, .kdm-pulse { animation: none; } }\n`;\n\n/**\n * The Kridoc mark (the managed storage, sold as « Kridoc by Krizaka »): an ink page with its corner folded, open at the\n * fold where a blue node — the share link — breaks out, and a blue seal on the page. Krizaka's colours: a service of the\n * company. The orbit turns, the node and the seal breathe. Below 48 px it crops to the emblem.\n */\nexport function KridocLogo(props: Readonly<MarkProps>) {\n return (\n <InkMark\n {...props}\n prefix=\"kdm\"\n css={CSS}\n geometry={G}\n figure={(ink) => (\n <>\n <path d={G.page} stroke={ink} strokeWidth={G.stroke} strokeLinecap=\"round\" strokeLinejoin=\"round\" />\n <path d={G.fold} stroke={ink} strokeWidth={G.stroke} strokeLinecap=\"round\" strokeLinejoin=\"round\" />\n {G.lines.map((d) => (\n <path key={d} d={d} stroke={ink} strokeWidth={G.stroke * 0.6} strokeLinecap=\"round\" />\n ))}\n </>\n )}\n />\n );\n}\n","import { cx } from \"../cx\";\nimport { KridocLogo } from \"./KridocLogo\";\nimport { type MarkId, ProductLogo } from \"./ProductLogo\";\n\nexport interface ProductLockupProps {\n /** The brand by its code name (`yomizaka`): it picks the mark only, never the words. */\n id: MarkId;\n /** The name shown — `displayName(codeName, setting)` of `@krizaka/org`, so the administrator's choice wins (« Verikora »). */\n name: string;\n /** The endorsement under it — `brandOf(codeName).endorsement[locale]` of `@krizaka/org` (« by Krizaka » / « par Krizaka »). */\n endorsement: string;\n /**\n * The mark's size in px; the words follow it (`sm` under 40 px, `md` from 40, `lg` from 64).\n * @default 32\n */\n size?: number;\n /** @default true */\n animated?: boolean;\n /** `inline` puts the endorsement beside the name (a footer line); `stacked` under it (a bar, a hero, an email header). @default \"stacked\" */\n layout?: \"stacked\" | \"inline\";\n className?: string;\n}\n\n/**\n * The « Verikora by Krizaka » lockup (krizaka-internal#2035): the product's mark, its name, and the company that endorses\n * it — for heroes, bars, footers, emails and store art. The words are data passed in (from `@krizaka/org` and the app's\n * `brand.displayName` setting), never typed here; the mark is decorative, the name is the text a screen reader reads.\n */\nfunction textSize(size: number): string {\n if (size >= 64) return \"text-2xl\";\n if (size >= 40) return \"text-lg\";\n return \"text-base\";\n}\n\nexport function ProductLockup({ id, name, endorsement, size = 32, animated = true, layout = \"stacked\", className }: Readonly<ProductLockupProps>) {\n const text = textSize(size);\n return (\n <span className={cx(\"inline-flex items-center gap-2.5\", className)} data-brand={id}>\n {id === \"kachizaka\" ? <KridocLogo size={size} animated={animated} /> : <ProductLogo id={id} size={size} animated={animated} />}\n <span className={cx(\"flex leading-tight\", layout === \"stacked\" ? \"flex-col\" : \"items-baseline gap-1.5\")}>\n <span className={cx(\"font-semibold tracking-tight text-fg\", text)}>{name}</span>\n <span className=\"text-xs text-fg-secondary\">{endorsement}</span>\n </span>\n </span>\n );\n}\n","import { marks } from \"@krizaka/tokens/native\";\n\n/**\n * The Wu-sama mark's geometry — the founder's byline mark.\n * It shares the Krizaka shield contour (pointy-top hexagonal shield with open vertex and lit node)\n * and brand colors, holding a W of five straight legs in Krizaka blue at its center.\n */\nexport const WU_SAMA = {\n viewBox: \"0 0 400 400\",\n croppedViewBox: \"86 82 228 228\",\n offset: 20,\n /** The shield: the Krizaka pointy-top hexagon (r 92 around 180,180), open at its upper-right edge. */\n shield: \"M259.7,134 L259.7,226 L180,272 L100.3,226 L100.3,134 L180,88 L212,106.5\",\n stroke: 22,\n ink: { x1: 70, y1: 290, x2: 290, y2: 70 },\n blue: { x1: 180, y1: 180, x2: 300, y2: 60, stops: marks.krizaka },\n /** The vertex where the shield opens: a lit node in Krizaka blue. */\n node: { cx: 259.7, cy: 134, r: 19, inner: 6 },\n /** The W: five straight legs in Krizaka blue. */\n w: \"M132,142 L154,216 L180,166 L206,216 L228,142\",\n wStroke: 18,\n highlight: \"#ddeaf4\",\n glow: { color: marks.krizaka[0]![1], opacity: 0.16 },\n orbit: { r: 160, dash: \"8 8\", width: 1.5 },\n ring: { r: 134, width: 1 },\n} as const;\n","import { InkDefs } from \"./InkMark\";\nimport { a11y, type MarkProps, neutral, useIds } from \"./shared\";\nimport { WU_SAMA as G } from \"./wu-sama-geometry\";\n\n/**\n * The Wu-sama mark — the founder's byline mark, for the person and not the company (the company keeps `KrizakaLogo`).\n * Oussama's nickname is Wu-sama: it shares Krizaka's hexagonal shield contour and color palette (ink shield, open\n * vertex with lit blue node), with the W rendered in Krizaka blue at the center. Below 48 px it crops to the emblem.\n */\nexport function WuSamaMark({ size = 32, title, className }: Omit<MarkProps, \"animated\"> & { animated?: boolean }) {\n const id = useIds(\"wsm\", [\"ink\", \"blue\", \"glow\"] as const);\n return (\n <svg width={size} height={size} viewBox={size < 48 ? G.croppedViewBox : G.viewBox} fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" className={className} {...a11y(title)}>\n <InkDefs ids={id} geometry={G} />\n {size >= 48 ? <circle cx=\"200\" cy=\"200\" r=\"190\" fill={`url(#${id.glow})`} /> : null}\n {size >= 48 ? (\n <>\n <circle cx=\"200\" cy=\"200\" r={G.orbit.r} stroke={neutral(\"--kz-border-strong\", 40)} strokeWidth={G.orbit.width} strokeDasharray={G.orbit.dash} opacity=\".6\" />\n <circle cx=\"200\" cy=\"200\" r={G.ring.r} stroke={neutral(\"--kz-border-default\", 30)} strokeWidth={G.ring.width} opacity=\".35\" />\n </>\n ) : null}\n <g transform={`translate(${G.offset} ${G.offset})`}>\n <path d={G.shield} stroke={`url(#${id.ink})`} strokeWidth={G.stroke} strokeLinecap=\"round\" strokeLinejoin=\"round\" />\n <circle cx={G.node.cx} cy={G.node.cy} r={G.node.r} fill={`url(#${id.blue})`} />\n <circle cx={G.node.cx} cy={G.node.cy} r={G.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,MAClH,gBAAAA,KAAC,YAAO,IAAI,QAAE,KAAK,IAAI,IAAI,QAAE,KAAK,IAAI,GAAG,QAAE,KAAK,GAAG,MAAM,QAAQ,GAAG,IAAI,KAAK;AAAA,MAC7E,gBAAAA,KAAC,YAAO,IAAI,QAAE,KAAK,IAAI,IAAI,QAAE,KAAK,IAAI,GAAG,QAAE,KAAK,OAAO,MAAM,QAAE,WAAW;AAAA,MAC1E,gBAAAA,KAAC,UAAK,GAAG,QAAE,GAAG,QAAQ,QAAQ,GAAG,IAAI,KAAK,aAAa,QAAE,SAAS,eAAc,SAAQ,gBAAe,SAAQ;AAAA,OACjH;AAAA,KACF;AAEJ;","names":["jsx","jsxs","Fragment","jsx","jsxs"]}
|
|
1
|
+
{"version":3,"sources":["../src/marks/kridoc-geometry.ts","../src/marks/KridocLogo.tsx","../src/marks/ProductLockup.tsx","../src/marks/wu-sama-geometry.ts","../src/marks/WuSamaMark.tsx"],"sourcesContent":["import { KRIZAKA } from \"./krizaka-geometry\";\n\n/**\n * The Kridoc mark's geometry (the managed storage, code name kachizaka; krizaka-internal#2035). Same grammar as the family\n * (a 360×360 artwork at (20, 20), one stroke of 22, an open figure whose end breaks out as a node, a core, a dashed orbit\n * and a ring). Kridoc is a service of the company, so it wears the **Krizaka** colours — ink figure, blue node and core.\n * The figure is a page with its corner folded: the stroke stays open at the fold, where the node — the share link — sits;\n * the core is the seal on the page (kept, audited).\n */\nexport const KRIDOC = {\n viewBox: KRIZAKA.viewBox,\n croppedViewBox: KRIZAKA.croppedViewBox,\n offset: KRIZAKA.offset,\n /** The page: from the fold, down the right edge, along the bottom, up the left edge and across the top, stopping short of the fold. */\n page: \"M248,140 L248,268 L112,268 L112,92 L190,92\",\n /** The folded corner: the crease from the top edge to the right edge. */\n fold: \"M214,92 L214,124 L248,124\",\n /** Two lines of text on the page. */\n lines: [\"M140,170 L214,170\", \"M140,206 L196,206\"],\n stroke: KRIZAKA.stroke,\n ink: KRIZAKA.ink,\n blue: KRIZAKA.blue,\n node: { cx: 248, cy: 92, r: 19, inner: 6 },\n core: { cx: 196, cy: 240, r: 20, inner: 7 },\n highlight: KRIZAKA.highlight,\n glow: KRIZAKA.glow,\n orbit: KRIZAKA.orbit,\n ring: KRIZAKA.ring,\n} as const;\n","import { InkMark } from \"./InkMark\";\nimport { KRIDOC as G } from \"./kridoc-geometry\";\nimport type { MarkProps } from \"./shared\";\n\nconst CSS = `\n.kdm-spin { transform-origin: 200px 200px; animation: kdm-spin 30s linear infinite; }\n.kdm-pulse { transform-box: fill-box; transform-origin: center; animation: kdm-pulse 3.2s ease-in-out infinite; }\n@keyframes kdm-spin { to { transform: rotate(360deg); } }\n@keyframes kdm-pulse { 0%, 100% { opacity: .9; } 50% { opacity: 1; } }\n@media (prefers-reduced-motion: reduce) { .kdm-spin, .kdm-pulse { animation: none; } }\n`;\n\nfunction figure(ink: string) {\n return (\n <>\n <path d={G.page} stroke={ink} strokeWidth={G.stroke} strokeLinecap=\"round\" strokeLinejoin=\"round\" />\n <path d={G.fold} stroke={ink} strokeWidth={G.stroke} strokeLinecap=\"round\" strokeLinejoin=\"round\" />\n {G.lines.map((d) => (\n <path key={d} d={d} stroke={ink} strokeWidth={G.stroke * 0.6} strokeLinecap=\"round\" />\n ))}\n </>\n );\n}\n\n/**\n * The Kridoc mark (the managed storage, sold as « Kridoc by Krizaka »): an ink page with its corner folded, open at the\n * fold where a blue node — the share link — breaks out, and a blue seal on the page. Krizaka's colours: a service of the\n * company. The orbit turns, the node and the seal breathe. Below 48 px it crops to the emblem.\n */\nexport function KridocLogo(props: Readonly<MarkProps>) {\n return (\n <InkMark\n {...props}\n prefix=\"kdm\"\n css={CSS}\n geometry={G}\n figure={figure}\n />\n );\n}\n","import { cx } from \"../cx\";\nimport { KridocLogo } from \"./KridocLogo\";\nimport { type MarkId, ProductLogo } from \"./ProductLogo\";\n\nexport interface ProductLockupProps {\n /** The brand by its code name (`yomizaka`): it picks the mark only, never the words. */\n id: MarkId;\n /** The name shown — `displayName(codeName, setting)` of `@krizaka/org`, so the administrator's choice wins (« Verikora »). */\n name: string;\n /** The endorsement under it — `brandOf(codeName).endorsement[locale]` of `@krizaka/org` (« by Krizaka » / « par Krizaka »). */\n endorsement: string;\n /**\n * The mark's size in px; the words follow it (`sm` under 40 px, `md` from 40, `lg` from 64).\n * @default 32\n */\n size?: number;\n /** @default true */\n animated?: boolean;\n /** `inline` puts the endorsement beside the name (a footer line); `stacked` under it (a bar, a hero, an email header). @default \"stacked\" */\n layout?: \"stacked\" | \"inline\";\n className?: string;\n}\n\n/**\n * The « Verikora by Krizaka » lockup (krizaka-internal#2035): the product's mark, its name, and the company that endorses\n * it — for heroes, bars, footers, emails and store art. The words are data passed in (from `@krizaka/org` and the app's\n * `brand.displayName` setting), never typed here; the mark is decorative, the name is the text a screen reader reads.\n */\nfunction textSize(size: number): string {\n if (size >= 64) return \"text-2xl\";\n if (size >= 40) return \"text-lg\";\n return \"text-base\";\n}\n\nexport function ProductLockup({ id, name, endorsement, size = 32, animated = true, layout = \"stacked\", className }: Readonly<ProductLockupProps>) {\n const text = textSize(size);\n return (\n <span className={cx(\"inline-flex items-center gap-2.5\", className)} data-brand={id}>\n {id === \"kachizaka\" ? <KridocLogo size={size} animated={animated} /> : <ProductLogo id={id} size={size} animated={animated} />}\n <span className={cx(\"flex leading-tight\", layout === \"stacked\" ? \"flex-col\" : \"items-baseline gap-1.5\")}>\n <span className={cx(\"font-semibold tracking-tight text-fg\", text)}>{name}</span>\n <span className=\"text-xs text-fg-secondary\">{endorsement}</span>\n </span>\n </span>\n );\n}\n","import { marks } from \"@krizaka/tokens/native\";\n\n/**\n * The Wu-sama mark's geometry — the founder's byline mark.\n * It shares the Krizaka shield contour (pointy-top hexagonal shield with open vertex and lit node)\n * and brand colors, holding a W of five straight legs in Krizaka blue at its center.\n */\nexport const WU_SAMA = {\n viewBox: \"0 0 400 400\",\n croppedViewBox: \"86 82 228 228\",\n offset: 20,\n /** The shield: the Krizaka pointy-top hexagon (r 92 around 180,180), open at its upper-right edge. */\n shield: \"M259.7,134 L259.7,226 L180,272 L100.3,226 L100.3,134 L180,88 L212,106.5\",\n stroke: 22,\n ink: { x1: 70, y1: 290, x2: 290, y2: 70 },\n blue: { x1: 180, y1: 180, x2: 300, y2: 60, stops: marks.krizaka },\n /** The vertex where the shield opens: a lit node in Krizaka blue. */\n node: { cx: 259.7, cy: 134, r: 19, inner: 6 },\n /** The W: five straight legs in Krizaka blue. */\n w: \"M132,142 L154,216 L180,166 L206,216 L228,142\",\n wStroke: 18,\n highlight: \"#ddeaf4\",\n glow: { color: marks.krizaka[0]![1], opacity: 0.16 },\n orbit: { r: 160, dash: \"8 8\", width: 1.5 },\n ring: { r: 134, width: 1 },\n} as const;\n","import { InkDefs } from \"./InkMark\";\nimport { a11y, type MarkProps, neutral, useIds } from \"./shared\";\nimport { WU_SAMA as G } from \"./wu-sama-geometry\";\n\n/**\n * The Wu-sama mark — the founder's byline mark, for the person and not the company (the company keeps `KrizakaLogo`).\n * Oussama's nickname is Wu-sama: it shares Krizaka's hexagonal shield contour and color palette (ink shield, open\n * vertex with lit blue node), with the W rendered in Krizaka blue at the center. Below 48 px it crops to the emblem.\n */\nexport function WuSamaMark({ size = 32, title, className }: Omit<MarkProps, \"animated\"> & { animated?: boolean }) {\n const id = useIds(\"wsm\", [\"ink\", \"blue\", \"glow\"] as const);\n return (\n <svg width={size} height={size} viewBox={size < 48 ? G.croppedViewBox : G.viewBox} fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" className={className} {...a11y(title)}>\n <InkDefs ids={id} geometry={G} />\n {size >= 48 ? <circle cx=\"200\" cy=\"200\" r=\"190\" fill={`url(#${id.glow})`} /> : null}\n {size >= 48 ? (\n <>\n <circle cx=\"200\" cy=\"200\" r={G.orbit.r} stroke={neutral(\"--kz-border-strong\", 40)} strokeWidth={G.orbit.width} strokeDasharray={G.orbit.dash} opacity=\".6\" />\n <circle cx=\"200\" cy=\"200\" r={G.ring.r} stroke={neutral(\"--kz-border-default\", 30)} strokeWidth={G.ring.width} opacity=\".35\" />\n </>\n ) : null}\n <g transform={`translate(${G.offset} ${G.offset})`}>\n <path d={G.shield} stroke={`url(#${id.ink})`} strokeWidth={G.stroke} strokeLinecap=\"round\" strokeLinejoin=\"round\" />\n <circle cx={G.node.cx} cy={G.node.cy} r={G.node.r} fill={`url(#${id.blue})`} />\n <circle cx={G.node.cx} cy={G.node.cy} r={G.node.inner} fill={G.highlight} />\n <path d={G.w} stroke={`url(#${id.blue})`} strokeWidth={G.wStroke} strokeLinecap=\"round\" strokeLinejoin=\"round\" />\n </g>\n </svg>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AASO,IAAM,SAAS;AAAA,EACpB,SAAS,QAAQ;AAAA,EACjB,gBAAgB,QAAQ;AAAA,EACxB,QAAQ,QAAQ;AAAA;AAAA,EAEhB,MAAM;AAAA;AAAA,EAEN,MAAM;AAAA;AAAA,EAEN,OAAO,CAAC,qBAAqB,mBAAmB;AAAA,EAChD,QAAQ,QAAQ;AAAA,EAChB,KAAK,QAAQ;AAAA,EACb,MAAM,QAAQ;AAAA,EACd,MAAM,EAAE,IAAI,KAAK,IAAI,IAAI,GAAG,IAAI,OAAO,EAAE;AAAA,EACzC,MAAM,EAAE,IAAI,KAAK,IAAI,KAAK,GAAG,IAAI,OAAO,EAAE;AAAA,EAC1C,WAAW,QAAQ;AAAA,EACnB,MAAM,QAAQ;AAAA,EACd,OAAO,QAAQ;AAAA,EACf,MAAM,QAAQ;AAChB;;;ACdI,mBACE,KADF;AAVJ,IAAM,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQZ,SAAS,OAAO,KAAa;AAC3B,SACE,iCACE;AAAA,wBAAC,UAAK,GAAG,OAAE,MAAM,QAAQ,KAAK,aAAa,OAAE,QAAQ,eAAc,SAAQ,gBAAe,SAAQ;AAAA,IAClG,oBAAC,UAAK,GAAG,OAAE,MAAM,QAAQ,KAAK,aAAa,OAAE,QAAQ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Q,uBAAuB,EAAE,GAAG,aAAa,QAAE,KAAK,OAAO,SAAQ,OAAM;AAAA,OAC9H,IACE;AAAA,IACJ,gBAAAC,MAAC,OAAE,WAAW,aAAa,QAAE,MAAM,IAAI,QAAE,MAAM,KAC7C;AAAA,sBAAAD,KAAC,UAAK,GAAG,QAAE,QAAQ,QAAQ,QAAQ,GAAG,GAAG,KAAK,aAAa,QAAE,QAAQ,eAAc,SAAQ,gBAAe,SAAQ;AAAA,MAClH,gBAAAA,KAAC,YAAO,IAAI,QAAE,KAAK,IAAI,IAAI,QAAE,KAAK,IAAI,GAAG,QAAE,KAAK,GAAG,MAAM,QAAQ,GAAG,IAAI,KAAK;AAAA,MAC7E,gBAAAA,KAAC,YAAO,IAAI,QAAE,KAAK,IAAI,IAAI,QAAE,KAAK,IAAI,GAAG,QAAE,KAAK,OAAO,MAAM,QAAE,WAAW;AAAA,MAC1E,gBAAAA,KAAC,UAAK,GAAG,QAAE,GAAG,QAAQ,QAAQ,GAAG,IAAI,KAAK,aAAa,QAAE,SAAS,eAAc,SAAQ,gBAAe,SAAQ;AAAA,OACjH;AAAA,KACF;AAEJ;","names":["jsx","jsxs","Fragment","jsx","jsxs"]}
|
package/dist/nav-bar.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as tailwind_variants from 'tailwind-variants';
|
|
|
2
2
|
import { NavigationMenu } from 'radix-ui';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { LanguageSwitchProps } from './language-switch.js';
|
|
5
|
-
import { O as OrgFacts,
|
|
5
|
+
import { O as OrgFacts, a as SiteId, F as FamilyLabels } from './sites-CSBwUnbJ.js';
|
|
6
6
|
|
|
7
7
|
/** The body of `GET /api/me`. `account` is the product's own shape, present only when `signedIn`. */
|
|
8
8
|
interface MeResponse<TAccount = unknown> {
|
package/dist/nav-bar.js
CHANGED
|
@@ -88,7 +88,7 @@ declare const SECTION_DEFINITIONS: readonly [SectionDefinitionOf<"hero", readonl
|
|
|
88
88
|
}, z.core.$strip>;
|
|
89
89
|
}>, SectionDefinitionOf<"booking", readonly ["strip", "panel", "closing", "sticky"], z.ZodMiniObject<{
|
|
90
90
|
serviceId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
91
|
-
count: z.ZodMiniUnion<[z.ZodMiniLiteral<
|
|
91
|
+
count: z.ZodMiniUnion<[z.ZodMiniLiteral<6 | 3 | 4>, z.ZodMiniLiteral<6 | 3 | 4>]>;
|
|
92
92
|
}, z.core.$strip>, Record<never, never>>, SectionDefinitionOf<"gallery", readonly ["mosaic", "filmstrip", "wall", "grid"], z.ZodMiniObject<{
|
|
93
93
|
source: z.ZodMiniEnum<{
|
|
94
94
|
all: "all";
|
package/dist/shop.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { S as ShopPage } from './schema-
|
|
2
|
-
export { L as LocalizedText, P as ParsedSection, b as SECTION_DEFINITIONS, c as SECTION_TYPES, d as SHOP_SCHEMA_VERSION, a as Section, e as SectionDefinition, f as SectionOf, g as SectionSpec, h as SectionType, i as ShopPageIssue, j as ShopPageResult, k as defineSection, p as parseShopPage, s as sectionDefinition, l as shopPageSchema } from './schema-
|
|
1
|
+
import { S as ShopPage } from './schema-CL7t7xqb.js';
|
|
2
|
+
export { L as LocalizedText, P as ParsedSection, b as SECTION_DEFINITIONS, c as SECTION_TYPES, d as SHOP_SCHEMA_VERSION, a as Section, e as SectionDefinition, f as SectionOf, g as SectionSpec, h as SectionType, i as ShopPageIssue, j as ShopPageResult, k as defineSection, p as parseShopPage, s as sectionDefinition, l as shopPageSchema } from './schema-CL7t7xqb.js';
|
|
3
3
|
export { b as ShopFrame, c as ShopFrameProps, a as ShopPhoto, d as ShopSection, S as ShopSectionProps } from './frame-CNZ5VgDD.js';
|
|
4
4
|
import 'zod/mini';
|
|
5
5
|
import 'react';
|
package/dist/site-cahier.d.ts
CHANGED
|
@@ -111,6 +111,45 @@ interface OrgFamilyEntry {
|
|
|
111
111
|
url: string;
|
|
112
112
|
}
|
|
113
113
|
|
|
114
|
+
/** A status said once, on a column's heading (never on each link). */
|
|
115
|
+
type FooterStatus = Exclude<SiteStatus, "released">;
|
|
116
|
+
/** A link, its words resolved. `external`: it leaves this site (a plain `<a>`, never the router). */
|
|
117
|
+
type FooterLink = {
|
|
118
|
+
label: string;
|
|
119
|
+
href: string;
|
|
120
|
+
external?: boolean;
|
|
121
|
+
};
|
|
122
|
+
/** A column, its words resolved. */
|
|
123
|
+
type FooterColumn = {
|
|
124
|
+
id: string;
|
|
125
|
+
title: string;
|
|
126
|
+
status?: FooterStatus;
|
|
127
|
+
links: readonly FooterLink[];
|
|
128
|
+
};
|
|
129
|
+
/** The legal line: who publishes the site, once — `legalName · NEQ … · city`, then the version and the legal links. */
|
|
130
|
+
type FooterLegal = {
|
|
131
|
+
legalName: string;
|
|
132
|
+
/** The Québec enterprise number, shown as the publisher's legal identity (`NEQ 1182652231`). */
|
|
133
|
+
neq?: string;
|
|
134
|
+
city: string;
|
|
135
|
+
showVersion: boolean;
|
|
136
|
+
/** Where the version leads (the release's page), when it is a link. */
|
|
137
|
+
versionHref?: string;
|
|
138
|
+
links: readonly FooterLink[];
|
|
139
|
+
};
|
|
140
|
+
/** What `SiteFooter` draws from `config`: the columns, then the legal line and the socials. */
|
|
141
|
+
type SiteFooterConfig = {
|
|
142
|
+
/** The name of the columns' navigation (« Pied de page » / « Footer »). */
|
|
143
|
+
label: string;
|
|
144
|
+
columns: readonly FooterColumn[];
|
|
145
|
+
legal: FooterLegal;
|
|
146
|
+
social?: readonly {
|
|
147
|
+
id: string;
|
|
148
|
+
label: string;
|
|
149
|
+
href: string;
|
|
150
|
+
}[];
|
|
151
|
+
};
|
|
152
|
+
|
|
114
153
|
type Tone = "product" | "cahier";
|
|
115
154
|
type SiteFooterProps = Omit<React.ComponentProps<"footer">, "children"> & {
|
|
116
155
|
/** The site this footer belongs to (`@krizaka/ui/sites`): marked in the family, its address for `path`. */
|
|
@@ -157,6 +196,14 @@ type SiteFooterProps = Omit<React.ComponentProps<"footer">, "children"> & {
|
|
|
157
196
|
variant?: "site" | "docs" | "app";
|
|
158
197
|
/** `cahier` on the Cahier sites (www, blog, ui., java., ts., lab.), `product` in the products. @default "product" */
|
|
159
198
|
tone?: Tone;
|
|
199
|
+
/**
|
|
200
|
+
* The footer as the admin configured it (`resolveFooterSettings` of the app's settings): its columns, then one legal
|
|
201
|
+
* line — `legalName · NEQ … · city`, the version when `showVersion`, the legal links, the socials. With it the family
|
|
202
|
+
* is not drawn (the columns hold what the site wants) and the org's signature gives way to the legal identity.
|
|
203
|
+
*/
|
|
204
|
+
config?: SiteFooterConfig;
|
|
205
|
+
/** The app's router link for the config's internal links (Next's `Link`). @default "a" */
|
|
206
|
+
linkAs?: LinkComponent;
|
|
160
207
|
};
|
|
161
208
|
|
|
162
209
|
interface SiteCahierNavItem {
|
package/dist/site-cahier.js
CHANGED
|
@@ -136,7 +136,7 @@ function InkDefs({ ids: id, geometry: G }) {
|
|
|
136
136
|
] })
|
|
137
137
|
] });
|
|
138
138
|
}
|
|
139
|
-
function InkMark({ size = 32, animated = true, title, className, prefix, css, geometry: G, figure }) {
|
|
139
|
+
function InkMark({ size = 32, animated = true, title, className, prefix, css, geometry: G, figure: figure2 }) {
|
|
140
140
|
const id = useIds(prefix, ["ink", "blue", "glow"]);
|
|
141
141
|
const m = (cls) => animated ? `${prefix}-${cls}` : void 0;
|
|
142
142
|
const dots = [G.node, G.core];
|
|
@@ -147,7 +147,7 @@ function InkMark({ size = 32, animated = true, title, className, prefix, css, ge
|
|
|
147
147
|
/* @__PURE__ */ jsx3("circle", { className: m("spin"), cx: "200", cy: "200", r: G.orbit.r, stroke: neutral("--kz-border-strong", 40), strokeWidth: G.orbit.width, strokeDasharray: G.orbit.dash, opacity: ".6" }),
|
|
148
148
|
/* @__PURE__ */ jsx3("circle", { cx: "200", cy: "200", r: G.ring.r, stroke: neutral("--kz-border-default", 30), strokeWidth: G.ring.width, opacity: ".35" }),
|
|
149
149
|
/* @__PURE__ */ jsxs3("g", { transform: `translate(${G.offset} ${G.offset})`, children: [
|
|
150
|
-
|
|
150
|
+
figure2(`url(#${id.ink})`),
|
|
151
151
|
dots.map((d) => /* @__PURE__ */ jsxs3("g", { className: m("pulse"), children: [
|
|
152
152
|
/* @__PURE__ */ jsx3("circle", { cx: d.cx, cy: d.cy, r: d.r, fill: `url(#${id.blue})` }),
|
|
153
153
|
/* @__PURE__ */ jsx3("circle", { cx: d.cx, cy: d.cy, r: d.inner, fill: G.highlight })
|
|
@@ -188,6 +188,9 @@ var CSS2 = `
|
|
|
188
188
|
}
|
|
189
189
|
@media (prefers-reduced-motion: reduce) { .kzm-spin, .kzm-pulse { animation: none; } }
|
|
190
190
|
`;
|
|
191
|
+
function figure(ink) {
|
|
192
|
+
return /* @__PURE__ */ jsx4("path", { d: KRIZAKA.shield, stroke: ink, strokeWidth: KRIZAKA.stroke, strokeLinecap: "round", strokeLinejoin: "round" });
|
|
193
|
+
}
|
|
191
194
|
function KrizakaLogo(props) {
|
|
192
195
|
return /* @__PURE__ */ jsx4(
|
|
193
196
|
InkMark,
|
|
@@ -196,7 +199,7 @@ function KrizakaLogo(props) {
|
|
|
196
199
|
prefix: "kzm",
|
|
197
200
|
css: CSS2,
|
|
198
201
|
geometry: KRIZAKA,
|
|
199
|
-
figure
|
|
202
|
+
figure
|
|
200
203
|
}
|
|
201
204
|
);
|
|
202
205
|
}
|
|
@@ -442,7 +445,12 @@ var siteFooter = tv({
|
|
|
442
445
|
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",
|
|
443
446
|
version: "rounded-sm border border-border-subtle bg-surface-2 px-2 py-0.5 font-mono text-[11px] text-fg-secondary",
|
|
444
447
|
legal: "flex flex-wrap items-center gap-x-4 gap-y-2",
|
|
445
|
-
controls: "flex flex-wrap items-center gap-2 sm:ml-auto"
|
|
448
|
+
controls: "flex flex-wrap items-center gap-2 sm:ml-auto",
|
|
449
|
+
// `config`: real columns — two on a phone, side by side from `sm`, each a heading over a stacked list.
|
|
450
|
+
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",
|
|
451
|
+
stack: "flex min-w-0 flex-col gap-2",
|
|
452
|
+
stackList: "flex min-w-0 flex-col gap-1",
|
|
453
|
+
identity: "text-fg-secondary"
|
|
446
454
|
},
|
|
447
455
|
variants: {
|
|
448
456
|
// `site`: the three lines. `docs`: the same on the documentation's width. `app`: line 3 only, inside a signed-in product.
|
|
@@ -498,13 +506,15 @@ function SiteFooter({
|
|
|
498
506
|
products,
|
|
499
507
|
variant = "site",
|
|
500
508
|
tone = "product",
|
|
509
|
+
config,
|
|
510
|
+
linkAs,
|
|
501
511
|
className,
|
|
502
512
|
...props
|
|
503
513
|
}) {
|
|
504
514
|
const id = React.useId();
|
|
505
515
|
const s = siteFooter({ variant, tone });
|
|
506
516
|
const slim = variant === "app";
|
|
507
|
-
const family = !slim && (familyProp ?? current === "krizaka");
|
|
517
|
+
const family = !slim && (familyProp ?? (current === "krizaka" && !config));
|
|
508
518
|
const site2 = siteById(current);
|
|
509
519
|
const krizaka = siteById("krizaka");
|
|
510
520
|
const currentId = orgIdOf(current);
|
|
@@ -523,6 +533,7 @@ function SiteFooter({
|
|
|
523
533
|
const companyEntries = companyLinks.map((l) => ({ id: l.id, name: company[l.id], url: l.url[lang] }));
|
|
524
534
|
return /* @__PURE__ */ jsx8(ToneContext.Provider, { value: tone, children: /* @__PURE__ */ jsx8("footer", { className: s.root({ className }), ...props, children: /* @__PURE__ */ jsxs6("div", { className: s.inner(), children: [
|
|
525
535
|
own && /* @__PURE__ */ jsx8("div", { className: s.row(), children }),
|
|
536
|
+
config && !slim && /* @__PURE__ */ jsx8(ConfigColumns, { s, config, id, labels, linkAs, path }),
|
|
526
537
|
family && /* @__PURE__ */ jsx8("nav", { "aria-label": labels.family, className: s.family(), children: [
|
|
527
538
|
...columns.map((c) => ({ key: c.group, title: labels.groups[c.group], entries: c.entries, ...columnStatus(c.entries) })),
|
|
528
539
|
{ key: "krizaka", title: labels.groups.krizaka, entries: companyEntries, ...NO_STATUS }
|
|
@@ -541,12 +552,12 @@ function SiteFooter({
|
|
|
541
552
|
const isCompany = c.key === "krizaka";
|
|
542
553
|
const atHome = isCompany && here(e.url);
|
|
543
554
|
const exception = c.exceptions.get(e.id);
|
|
544
|
-
const
|
|
555
|
+
const isCurrent2 = !isCompany && e.id === currentId;
|
|
545
556
|
return /* @__PURE__ */ jsx8("li", { children: /* @__PURE__ */ jsxs6(
|
|
546
557
|
"a",
|
|
547
558
|
{
|
|
548
559
|
href: e.url,
|
|
549
|
-
"aria-current": atHome ? "page" :
|
|
560
|
+
"aria-current": atHome ? "page" : isCurrent2 ? "true" : void 0,
|
|
550
561
|
onClick: atHome ? backToTop : void 0,
|
|
551
562
|
className: s.link(),
|
|
552
563
|
children: [
|
|
@@ -556,7 +567,7 @@ function SiteFooter({
|
|
|
556
567
|
labels.status[exception],
|
|
557
568
|
")"
|
|
558
569
|
] }),
|
|
559
|
-
|
|
570
|
+
isCurrent2 && /* @__PURE__ */ jsxs6("span", { className: "sr-only", children: [
|
|
560
571
|
" (",
|
|
561
572
|
labels.current,
|
|
562
573
|
")"
|
|
@@ -566,7 +577,7 @@ function SiteFooter({
|
|
|
566
577
|
) }, e.id);
|
|
567
578
|
}) })
|
|
568
579
|
] }, c.key)) }),
|
|
569
|
-
/* @__PURE__ */ jsxs6("div", { className: s.bottom(), children: [
|
|
580
|
+
config ? /* @__PURE__ */ jsx8(ConfigBottom, { s, config, krizaka: krizaka.url, brand: org?.brand.name ?? "Krizaka", tag, env, versionLabel: labels.version, linkAs, path, controls }) : /* @__PURE__ */ jsxs6("div", { className: s.bottom(), children: [
|
|
570
581
|
/* @__PURE__ */ jsxs6("a", { href: krizaka.url, className: s.signature(), children: [
|
|
571
582
|
/* @__PURE__ */ jsx8(ProductLogo, { id: "krizaka", size: 18, animated: false }),
|
|
572
583
|
org ? org.footer.line[lang] : `${labels.signature[site2.kind]} \xB7 ${labels.place}`
|
|
@@ -583,6 +594,64 @@ function SiteFooter({
|
|
|
583
594
|
] })
|
|
584
595
|
] }) }) });
|
|
585
596
|
}
|
|
597
|
+
var isCurrent = (l, path) => path !== void 0 && !l.external && bare(l.href.split(/[?#]/)[0]) === bare(path.split(/[?#]/)[0]);
|
|
598
|
+
function ConfigBottom({
|
|
599
|
+
s,
|
|
600
|
+
config,
|
|
601
|
+
krizaka,
|
|
602
|
+
brand,
|
|
603
|
+
tag,
|
|
604
|
+
env,
|
|
605
|
+
versionLabel,
|
|
606
|
+
linkAs,
|
|
607
|
+
path,
|
|
608
|
+
controls
|
|
609
|
+
}) {
|
|
610
|
+
const { legal, social } = config;
|
|
611
|
+
const configured = (l) => /* @__PURE__ */ jsx8(ConfigLink, { link: l, linkAs, current: isCurrent(l, path) }, l.href);
|
|
612
|
+
const shown = legal.showVersion ? tag : env;
|
|
613
|
+
const identity = [legal.legalName, legal.neq && `NEQ ${legal.neq}`, legal.city].filter(Boolean).join(" \xB7 ");
|
|
614
|
+
const versionText = /* @__PURE__ */ jsxs6(Fragment, { children: [
|
|
615
|
+
/* @__PURE__ */ jsxs6("span", { className: "sr-only", children: [
|
|
616
|
+
versionLabel,
|
|
617
|
+
" "
|
|
618
|
+
] }),
|
|
619
|
+
shown
|
|
620
|
+
] });
|
|
621
|
+
return /* @__PURE__ */ jsxs6("div", { className: s.bottom(), children: [
|
|
622
|
+
/* @__PURE__ */ jsx8("a", { href: krizaka, className: s.signature(), "aria-label": brand, children: /* @__PURE__ */ jsx8(ProductLogo, { id: "krizaka", size: 18, animated: false }) }),
|
|
623
|
+
/* @__PURE__ */ jsx8("span", { className: s.identity(), children: identity }),
|
|
624
|
+
shown && (legal.showVersion && legal.versionHref ? /* @__PURE__ */ jsx8("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__ */ jsx8("span", { className: s.version(), children: versionText })),
|
|
625
|
+
legal.links.length > 0 && /* @__PURE__ */ jsx8("div", { className: s.legal(), children: legal.links.map(configured) }),
|
|
626
|
+
social && social.length > 0 && /* @__PURE__ */ jsx8("div", { className: s.legal(), children: social.map((x) => configured({ label: x.label, href: x.href, external: true })) }),
|
|
627
|
+
controls && /* @__PURE__ */ jsx8("div", { className: s.controls(), children: controls })
|
|
628
|
+
] });
|
|
629
|
+
}
|
|
630
|
+
function ConfigColumns({
|
|
631
|
+
s,
|
|
632
|
+
config,
|
|
633
|
+
id,
|
|
634
|
+
labels,
|
|
635
|
+
linkAs,
|
|
636
|
+
path
|
|
637
|
+
}) {
|
|
638
|
+
if (config.columns.length === 0) return null;
|
|
639
|
+
return /* @__PURE__ */ jsx8("nav", { "aria-label": config.label, className: s.columns(), children: config.columns.map((c) => /* @__PURE__ */ jsxs6("div", { className: s.stack(), children: [
|
|
640
|
+
/* @__PURE__ */ jsxs6("p", { id: `${id}-c-${c.id}`, className: s.title(), children: [
|
|
641
|
+
c.title,
|
|
642
|
+
c.status && /* @__PURE__ */ jsxs6("span", { className: s.note(), children: [
|
|
643
|
+
/* @__PURE__ */ jsx8("span", { "aria-hidden": "true", children: " \xB7 " }),
|
|
644
|
+
labels.status[c.status]
|
|
645
|
+
] })
|
|
646
|
+
] }),
|
|
647
|
+
/* @__PURE__ */ jsx8("ul", { "aria-labelledby": `${id}-c-${c.id}`, className: s.stackList(), children: c.links.map((l) => /* @__PURE__ */ jsx8("li", { children: /* @__PURE__ */ jsx8(ConfigLink, { link: l, linkAs, current: isCurrent(l, path) }) }, l.href)) })
|
|
648
|
+
] }, c.id)) });
|
|
649
|
+
}
|
|
650
|
+
function ConfigLink({ link, linkAs, current }) {
|
|
651
|
+
const s = siteFooter();
|
|
652
|
+
const Comp = link.external || !linkAs ? "a" : linkAs;
|
|
653
|
+
return /* @__PURE__ */ jsx8(Comp, { href: link.href, className: s.link(), "aria-current": current ? "page" : void 0, children: link.label });
|
|
654
|
+
}
|
|
586
655
|
function SiteFooterColumn({ title, children, className, ...props }) {
|
|
587
656
|
const id = React.useId();
|
|
588
657
|
const tone = React.useContext(ToneContext);
|