@krizaka/ui 3.81.0 → 3.82.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-header.d.ts +3 -3
- package/dist/{chunk-BHAWCN4I.js → chunk-LZK4IRVW.js} +7 -4
- package/dist/{chunk-BHAWCN4I.js.map → chunk-LZK4IRVW.js.map} +1 -1
- package/dist/date-picker.d.ts +15 -15
- package/dist/filter-bar.d.ts +3 -3
- 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/app-frame.json +2 -2
- 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/index.json +8 -8
- package/registry/map.json +1 -1
- package/registry/nav-bar.json +2 -2
- package/registry/rail-nav.json +2 -2
- package/registry/shop.json +1 -1
- package/registry/site-footer.json +52 -6
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);
|