@krizaka/ui 4.0.0 → 4.2.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/analysis-report.d.ts +44 -2
- package/dist/analysis-report.js +34 -13
- package/dist/analysis-report.js.map +1 -1
- package/dist/{chunk-54WTUZWE.js → chunk-6GTZVF77.js} +1 -1
- package/dist/chunk-6GTZVF77.js.map +1 -0
- package/dist/filter-bar.d.ts +3 -3
- package/dist/media-gallery.d.ts +3 -3
- package/dist/media-player.d.ts +3 -3
- package/dist/native.d.ts +8 -0
- package/dist/native.js +8 -0
- package/dist/native.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 +52 -39
- package/dist/site-cahier.js +18 -2
- package/dist/site-cahier.js.map +1 -1
- package/dist/site-footer.d.ts +10 -92
- package/dist/site-footer.js +19 -3
- package/dist/site-footer.js.map +1 -1
- package/dist/sites-iJkCPeiH.d.ts +170 -0
- package/dist/sites.d.ts +14 -0
- package/dist/sites.js.map +1 -1
- package/package.json +6 -5
- package/registry/account-settings.json +1 -1
- package/registry/analysis-report.json +51 -5
- package/registry/app-frame.json +1 -1
- package/registry/examples/account-settings/patterns.js +1 -1
- package/registry/examples/account-settings/patterns.tsx +1 -1
- package/registry/examples/analysis-report/authenticity.d.ts +4 -0
- package/registry/examples/analysis-report/authenticity.js +50 -0
- package/registry/examples/analysis-report/authenticity.tsx +33 -0
- package/registry/examples/analysis-report/lease-review.d.ts +4 -0
- package/registry/examples/analysis-report/lease-review.js +51 -0
- package/registry/examples/analysis-report/lease-review.tsx +33 -0
- package/registry/examples/markdown/wide-table.js +1 -1
- package/registry/examples/markdown/wide-table.tsx +1 -1
- package/registry/examples/site-footer/configured.js +2 -2
- package/registry/examples/site-footer/configured.tsx +2 -2
- package/registry/examples/site-footer/socials.d.ts +4 -0
- package/registry/examples/site-footer/socials.js +25 -0
- package/registry/examples/site-footer/socials.tsx +22 -0
- package/registry/index.json +13 -10
- package/registry/map.json +1 -1
- package/registry/markdown.json +1 -1
- package/registry/nav-bar.json +1 -1
- package/registry/rail-nav.json +1 -1
- package/registry/shop.json +1 -1
- package/registry/site-footer.json +15 -4
- package/registry/sites.json +4 -2
- package/dist/chunk-54WTUZWE.js.map +0 -1
- package/dist/sites-A5cNWG2Z.d.ts +0 -73
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, S as SiteId, F as FamilyLabels } from './sites-iJkCPeiH.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-CmDztC_y.js';
|
|
4
4
|
import 'zod/mini';
|
|
5
5
|
import 'react';
|
package/dist/site-cahier.d.ts
CHANGED
|
@@ -39,6 +39,51 @@ type PageHeroProps = Omit<React.HTMLAttributes<HTMLElement>, "title"> & {
|
|
|
39
39
|
children?: React.ReactNode;
|
|
40
40
|
};
|
|
41
41
|
|
|
42
|
+
/** A status said once, on a column's heading (never on each link). */
|
|
43
|
+
type FooterStatus = Exclude<SiteStatus, "released">;
|
|
44
|
+
/** A link, its words resolved. `external`: it leaves this site (a plain `<a>`, never the router). */
|
|
45
|
+
type FooterLink = {
|
|
46
|
+
label: string;
|
|
47
|
+
href: string;
|
|
48
|
+
external?: boolean;
|
|
49
|
+
};
|
|
50
|
+
/** A column, its words resolved. */
|
|
51
|
+
type FooterColumn = {
|
|
52
|
+
id: string;
|
|
53
|
+
title: string;
|
|
54
|
+
status?: FooterStatus;
|
|
55
|
+
links: readonly FooterLink[];
|
|
56
|
+
};
|
|
57
|
+
/** The legal line: who publishes the site, once — `legalName · NEQ … · city`, then the version and the legal links. */
|
|
58
|
+
type FooterLegal = {
|
|
59
|
+
legalName: string;
|
|
60
|
+
/** The Québec enterprise number, shown as the publisher's legal identity (`NEQ 1182652231`). */
|
|
61
|
+
neq?: string;
|
|
62
|
+
city: string;
|
|
63
|
+
showVersion: boolean;
|
|
64
|
+
/** Where the version leads (the release's page), when it is a link. */
|
|
65
|
+
versionHref?: string;
|
|
66
|
+
links: readonly FooterLink[];
|
|
67
|
+
};
|
|
68
|
+
/** What `SiteFooter` draws from `config`: the columns, then the legal line and the socials. */
|
|
69
|
+
type SiteFooterConfig = {
|
|
70
|
+
/** The name of the columns' navigation (« Pied de page » / « Footer »). */
|
|
71
|
+
label: string;
|
|
72
|
+
columns: readonly FooterColumn[];
|
|
73
|
+
legal: FooterLegal;
|
|
74
|
+
social?: readonly {
|
|
75
|
+
id: string;
|
|
76
|
+
label: string;
|
|
77
|
+
href: string;
|
|
78
|
+
}[];
|
|
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
|
+
|
|
42
87
|
/** A site of the family. */
|
|
43
88
|
type SiteId = "krizaka" | "sovkora" | "verikora" | "folioviv" | "ui" | "java" | "ts" | "motion" | "github";
|
|
44
89
|
/** What a site is: the company, a product, or an open-source project. It chooses the footer's signature line. */
|
|
@@ -86,6 +131,13 @@ interface OrgFacts {
|
|
|
86
131
|
brand: {
|
|
87
132
|
name: string;
|
|
88
133
|
};
|
|
134
|
+
/**
|
|
135
|
+
* The company's own accounts elsewhere (`org.links.social` of `@krizaka/org` ≥ 1.1.0): the footer draws each one as its
|
|
136
|
+
* icon, linked to the address given here — never typed in a site. Optional so an older `org` still fits.
|
|
137
|
+
*/
|
|
138
|
+
links?: {
|
|
139
|
+
social: readonly OrgSocialLink[];
|
|
140
|
+
};
|
|
89
141
|
/**
|
|
90
142
|
* Every name of the family (`org.family` of `@krizaka/org`, krizaka/krizaka-internal#754): when given, the footer reads
|
|
91
143
|
* the names and addresses here, never from this package's registry — the company « Krizaka », products by their own
|
|
@@ -111,45 +163,6 @@ interface OrgFamilyEntry {
|
|
|
111
163
|
url: string;
|
|
112
164
|
}
|
|
113
165
|
|
|
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
|
-
|
|
153
166
|
type Tone = "product" | "cahier";
|
|
154
167
|
type SiteFooterProps = Omit<React.ComponentProps<"footer">, "children"> & {
|
|
155
168
|
/** The site this footer belongs to (`@krizaka/ui/sites`): marked in the family, its address for `path`. */
|
package/dist/site-cahier.js
CHANGED
|
@@ -42,6 +42,7 @@ function PageHero({ title, eyebrow, lead, back, linkAs, aside, backdrop = "grid"
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
// src/site-footer/site-footer.tsx
|
|
45
|
+
import { InstagramIcon, YoutubeIcon } from "@krizaka/icons";
|
|
45
46
|
import { Slot } from "radix-ui";
|
|
46
47
|
import * as React from "react";
|
|
47
48
|
import { tv } from "tailwind-variants";
|
|
@@ -457,7 +458,10 @@ var siteFooter = tv({
|
|
|
457
458
|
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",
|
|
458
459
|
stack: "flex min-w-0 flex-col gap-2",
|
|
459
460
|
stackList: "flex min-w-0 flex-col gap-1",
|
|
460
|
-
identity: "text-fg-secondary"
|
|
461
|
+
identity: "text-fg-secondary",
|
|
462
|
+
// The accounts drawn as their icon (the name stays for screen readers): colour change only on hover, never movement.
|
|
463
|
+
socials: "flex flex-wrap items-center gap-x-3 gap-y-2",
|
|
464
|
+
social: "inline-flex min-h-6 min-w-6 items-center justify-center rounded-md text-fg-secondary no-underline transition-colors hover:text-fg focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring"
|
|
461
465
|
},
|
|
462
466
|
variants: {
|
|
463
467
|
// `site`: the three lines. `docs`: the same on the documentation's width. `app`: line 3 only, inside a signed-in product.
|
|
@@ -597,6 +601,7 @@ function SiteFooter({
|
|
|
597
601
|
tag
|
|
598
602
|
] }),
|
|
599
603
|
legal && /* @__PURE__ */ jsx9("div", { className: s.legal(), children: legal }),
|
|
604
|
+
/* @__PURE__ */ jsx9(FooterSocials, { s, links: (org?.links?.social ?? []).map((x) => ({ id: x.id, label: x.label, href: x.url })) }),
|
|
600
605
|
controls && /* @__PURE__ */ jsx9("div", { className: s.controls(), children: controls })
|
|
601
606
|
] })
|
|
602
607
|
] }) }) });
|
|
@@ -630,10 +635,21 @@ function ConfigBottom({
|
|
|
630
635
|
/* @__PURE__ */ jsx9("span", { className: s.identity(), children: identity }),
|
|
631
636
|
shown && (legal.showVersion && legal.versionHref ? /* @__PURE__ */ jsx9("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__ */ jsx9("span", { className: s.version(), children: versionText })),
|
|
632
637
|
legal.links.length > 0 && /* @__PURE__ */ jsx9("div", { className: s.legal(), children: legal.links.map(configured) }),
|
|
633
|
-
|
|
638
|
+
/* @__PURE__ */ jsx9(FooterSocials, { s, links: social ?? [] }),
|
|
634
639
|
controls && /* @__PURE__ */ jsx9("div", { className: s.controls(), children: controls })
|
|
635
640
|
] });
|
|
636
641
|
}
|
|
642
|
+
var SOCIAL_ICONS = { instagram: InstagramIcon, youtube: YoutubeIcon };
|
|
643
|
+
function FooterSocials({ s, links }) {
|
|
644
|
+
if (links.length === 0) return null;
|
|
645
|
+
return /* @__PURE__ */ jsx9("div", { className: s.socials(), children: links.map((x) => {
|
|
646
|
+
const Icon = SOCIAL_ICONS[x.id];
|
|
647
|
+
return /* @__PURE__ */ jsxs7("a", { href: x.href, target: "_blank", rel: "noopener noreferrer", className: Icon ? s.social() : s.link(), children: [
|
|
648
|
+
Icon && /* @__PURE__ */ jsx9(Icon, { size: 20 }),
|
|
649
|
+
Icon ? /* @__PURE__ */ jsx9("span", { className: "sr-only", children: x.label }) : x.label
|
|
650
|
+
] }, x.id);
|
|
651
|
+
}) });
|
|
652
|
+
}
|
|
637
653
|
function ConfigColumns({
|
|
638
654
|
s,
|
|
639
655
|
config,
|