@krizaka/ui 3.76.0 → 3.77.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/dist/blocks.css +14 -0
  2. package/dist/chunk-NM2DEHFZ.js +25 -0
  3. package/dist/chunk-NM2DEHFZ.js.map +1 -0
  4. package/dist/document-viewer.d.ts +23 -6
  5. package/dist/document-viewer.js +21 -5
  6. package/dist/document-viewer.js.map +1 -1
  7. package/dist/map/cards.d.ts +145 -0
  8. package/dist/map/cards.js +74 -0
  9. package/dist/map/cards.js.map +1 -0
  10. package/dist/map/pin.d.ts +57 -0
  11. package/dist/map/pin.js +53 -0
  12. package/dist/map/pin.js.map +1 -0
  13. package/dist/map/sheet.d.ts +80 -0
  14. package/dist/map/sheet.js +61 -0
  15. package/dist/map/sheet.js.map +1 -0
  16. package/dist/map.d.ts +41 -14
  17. package/dist/map.js +85 -112
  18. package/dist/map.js.map +1 -1
  19. package/dist/native/map.d.ts +29 -10
  20. package/dist/native/map.js +81 -107
  21. package/dist/native/map.js.map +1 -1
  22. package/dist/shop/services.js +1 -1
  23. package/dist/shop/services.js.map +1 -1
  24. package/dist/shop-composer.js +1 -1
  25. package/dist/shop-composer.js.map +1 -1
  26. package/dist/shop-gallery.js +2 -2
  27. package/dist/shop-gallery.js.map +1 -1
  28. package/dist/wall.d.ts +10 -5
  29. package/dist/wall.js +10 -4
  30. package/dist/wall.js.map +1 -1
  31. package/package.json +53 -8
  32. package/registry/app-frame.json +1 -1
  33. package/registry/document-viewer.json +9 -8
  34. package/registry/examples/document-viewer/highlights.js +2 -1
  35. package/registry/examples/document-viewer/highlights.tsx +3 -0
  36. package/registry/examples/map/pins.d.ts +4 -0
  37. package/registry/examples/map/pins.js +20 -0
  38. package/registry/examples/map/pins.tsx +27 -0
  39. package/registry/examples/map/place-sheet.d.ts +4 -0
  40. package/registry/examples/map/place-sheet.js +34 -0
  41. package/registry/examples/map/place-sheet.tsx +35 -0
  42. package/registry/examples/wall/tidy.d.ts +4 -0
  43. package/registry/examples/wall/tidy.js +27 -0
  44. package/registry/examples/wall/tidy.tsx +19 -0
  45. package/registry/index.json +9 -9
  46. package/registry/map.json +81 -13
  47. package/registry/nav-bar.json +1 -1
  48. package/registry/rail-nav.json +1 -1
  49. package/registry/shop-gallery.json +1 -1
  50. package/registry/shop.json +2 -2
  51. package/registry/site-footer.json +1 -1
  52. package/registry/wall.json +24 -2
@@ -52,9 +52,9 @@ var styles = `
52
52
  .kz-sg[data-count="1"] .kz-sg-list{grid-template-columns:1fr}
53
53
  .kz-sg[data-count="1"] .kz-sg-list>li{aspect-ratio:16/9}
54
54
  .kz-sg[data-count="2"] .kz-sg-list>li,.kz-sg[data-count="2"] .kz-sg-list>li:first-child:nth-last-child(odd){aspect-ratio:4/3;grid-column:auto}
55
- .kz-sg:not([data-count="1"]):not([data-count="2"]) .kz-sg-list{grid-template-columns:repeat(4,1fr);grid-template-rows:repeat(2,1fr);aspect-ratio:2/1}
55
+ .kz-sg:not([data-count="1"]):not([data-count="2"]) .kz-sg-list{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));aspect-ratio:2/1}
56
56
  .kz-sg:not([data-count="1"]):not([data-count="2"]) .kz-sg-list>li,.kz-sg[data-strip=true] .kz-sg-list>li{aspect-ratio:auto;flex:none}
57
- .kz-sg:not([data-count="1"]):not([data-count="2"]) .kz-sg-list>li:first-child{grid-column:1/3;grid-row:1/3}
57
+ .kz-sg:not([data-count="1"]):not([data-count="2"]) .kz-sg-list>li:first-child{grid-column:1/3;grid-row:1/3;aspect-ratio:auto}
58
58
  .kz-sg[data-count="3"] .kz-sg-list>li:nth-child(n+2){grid-column:3/5}
59
59
  .kz-sg[data-count="4"] .kz-sg-list>li:nth-child(2){grid-column:3/5}
60
60
  .kz-sg[data-strip=true] .kz-sg-list>li:nth-child(n+6){display:none}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/shop-gallery/labels.ts","../src/shop-gallery/shop-gallery.tsx"],"sourcesContent":["export type ShopGalleryLabels = {\n /** The tile's name: `Open photo 3 of 12: Two chairs by the window`. */\n open: (alt: string, position: number, total: number) => string;\n /** The last tile of the mosaic: `+ 8 photos`. */\n more: (count: number) => string;\n /** The phone strip's counter: `3 / 12`. */\n counter: (position: number, total: number) => string;\n previous: string;\n next: string;\n close: string;\n /** The lightbox's title, read by a screen reader: `Photos of the salon`. */\n title: (label: string) => string;\n /** The lightbox's position: `3 of 12`. */\n position: (position: number, total: number) => string;\n};\n\nexport const shopGalleryLabels: ShopGalleryLabels = {\n open: (alt, position, total) => (alt ? `Open photo ${position} of ${total}: ${alt}` : `Open photo ${position} of ${total}`),\n more: (count) => `+ ${count} photos`,\n counter: (position, total) => `${position} / ${total}`,\n previous: \"Previous photo\",\n next: \"Next photo\",\n close: \"Close\",\n title: (label) => label,\n position: (position, total) => `${position} of ${total}`,\n};\n\nexport const shopGalleryLabelsFr: ShopGalleryLabels = {\n open: (alt, position, total) => (alt ? `Ouvrir la photo ${position} sur ${total} : ${alt}` : `Ouvrir la photo ${position} sur ${total}`),\n more: (count) => `+ ${count} photos`,\n counter: (position, total) => `${position} / ${total}`,\n previous: \"Photo précédente\",\n next: \"Photo suivante\",\n close: \"Fermer\",\n title: (label) => label,\n position: (position, total) => `${position} sur ${total}`,\n};\n","\"use client\";\n\nimport * as React from \"react\";\n\nimport { cn } from \"../cn\";\nimport { type ShopGalleryLabels, shopGalleryLabels } from \"./labels\";\n\n// The lightbox is a lazy chunk: nothing of it is loaded until a photo is opened.\nconst Lightbox = React.lazy(() => import(\"./lightbox\"));\n\nexport type ShopGalleryPhoto = {\n id: string;\n /** The tile's image. */\n src: string;\n /** What it shows, in words: the tile's name and the lightbox's caption. */\n alt: string;\n /** The widths the product holds (`/a-400.avif 400w, /a-800.avif 800w, /a-1200.avif 1200w`). */\n srcSet?: string;\n /** The lightbox's image at full resolution (default: `src`). */\n fullSrc?: string;\n fullSrcSet?: string;\n};\n\nexport type ShopGalleryProps = Omit<React.ComponentProps<\"div\">, \"children\"> & {\n /** The shop's photos, in order, already unique. */\n photos: readonly ShopGalleryPhoto[];\n /** The gallery's accessible name (`Photos of the salon`). */\n label: string;\n /** The tiles' `sizes` (default: the bento's share of a 72 rem page on a desktop, 78 vw on a phone). */\n sizes?: string;\n /** Translated texts; `shopGalleryLabelsFr` for French. */\n labels?: Partial<ShopGalleryLabels>;\n};\n\nconst BENTO = 5;\n\nconst styles = `\n.kz-sg{position:relative}\n.kz-sg-list{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(2,1fr);gap:.5rem}\n.kz-sg-tile{position:relative;display:block;width:100%;height:100%;padding:0;overflow:hidden;cursor:zoom-in;border:1px solid var(--kz-border-subtle);border-radius:var(--kz-shop-photo-radius,.75rem);background:var(--kz-surface-2);color:var(--kz-text-on-media)}\n.kz-sg-tile img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}\n.kz-sg-tile:focus-visible{outline:2px solid var(--kz-ring);outline-offset:2px}\n.kz-sg-list>li{aspect-ratio:1/1;min-width:0}\n.kz-sg-list>li:first-child:nth-last-child(odd){grid-column:span 2;aspect-ratio:16/10}\n.kz-sg-more,.kz-sg-count{display:none}\n.kz-sg[data-strip=true] .kz-sg-list{display:flex;gap:.75rem;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;margin-inline:-1rem;padding-inline:1rem;scroll-padding-inline:1rem;-webkit-mask-image:linear-gradient(to right,transparent,currentcolor 1.25rem,currentcolor calc(100% - 1.25rem),transparent);mask-image:linear-gradient(to right,transparent,currentcolor 1.25rem,currentcolor calc(100% - 1.25rem),transparent)}\n.kz-sg[data-strip=true] .kz-sg-list::-webkit-scrollbar{display:none}\n.kz-sg[data-strip=true] .kz-sg-list>li{flex:0 0 78%;aspect-ratio:4/5;scroll-snap-align:start}\n.kz-sg[data-strip=true] .kz-sg-list>li:first-child:nth-last-child(odd){grid-column:auto;aspect-ratio:4/5}\n.kz-sg[data-strip=true] .kz-sg-count{display:block;margin:.5rem 0 0;text-align:end;font:600 .75rem/1 var(--kz-font-mono,monospace);color:var(--kz-text-secondary)}\n@media (prefers-reduced-motion:no-preference){.kz-sg[data-strip=true] .kz-sg-list{scroll-behavior:smooth}.kz-sg-tile img{transition:transform .35s ease}.kz-sg-tile:hover img{transform:scale(1.03)}}\n@media (min-width:40rem){\n.kz-sg-list{gap:.75rem}\n.kz-sg[data-strip=true] .kz-sg-list{display:grid;overflow:visible;margin-inline:0;padding-inline:0;-webkit-mask-image:none;mask-image:none}\n.kz-sg[data-strip=true] .kz-sg-count{display:none}\n.kz-sg[data-count=\"1\"] .kz-sg-list{grid-template-columns:1fr}\n.kz-sg[data-count=\"1\"] .kz-sg-list>li{aspect-ratio:16/9}\n.kz-sg[data-count=\"2\"] .kz-sg-list>li,.kz-sg[data-count=\"2\"] .kz-sg-list>li:first-child:nth-last-child(odd){aspect-ratio:4/3;grid-column:auto}\n.kz-sg:not([data-count=\"1\"]):not([data-count=\"2\"]) .kz-sg-list{grid-template-columns:repeat(4,1fr);grid-template-rows:repeat(2,1fr);aspect-ratio:2/1}\n.kz-sg:not([data-count=\"1\"]):not([data-count=\"2\"]) .kz-sg-list>li,.kz-sg[data-strip=true] .kz-sg-list>li{aspect-ratio:auto;flex:none}\n.kz-sg:not([data-count=\"1\"]):not([data-count=\"2\"]) .kz-sg-list>li:first-child{grid-column:1/3;grid-row:1/3}\n.kz-sg[data-count=\"3\"] .kz-sg-list>li:nth-child(n+2){grid-column:3/5}\n.kz-sg[data-count=\"4\"] .kz-sg-list>li:nth-child(2){grid-column:3/5}\n.kz-sg[data-strip=true] .kz-sg-list>li:nth-child(n+6){display:none}\n.kz-sg[data-more=true] .kz-sg-list>li:nth-child(5) .kz-sg-more{position:absolute;inset:0;display:grid;place-items:center;background:color-mix(in srgb,var(--kz-scrim-strong) 62%,transparent);font:700 1.125rem/1.2 var(--kz-font-sans,system-ui);text-align:center}\n}\n`;\n\n/** A shop's photos: a bento mosaic (one 2×2 lead and four tiles, the last one « + N photos »), a snap strip on a phone, and a lightbox. */\nexport function ShopGallery({ photos, label, sizes, labels: given, className, ...props }: ShopGalleryProps) {\n const labels = { ...shopGalleryLabels, ...given };\n const total = photos.length;\n const strip = total >= BENTO;\n const [open, setOpen] = React.useState<number | null>(null);\n const [current, setCurrent] = React.useState(1);\n const tiles = React.useRef<(HTMLButtonElement | null)[]>([]);\n const opener = React.useRef<number>(0);\n if (total === 0) return null;\n\n const tileSizes = sizes ?? (strip ? \"(min-width: 40rem) 36rem, 78vw\" : \"(min-width: 40rem) 36rem, 50vw\");\n const onScroll = (event: React.UIEvent<HTMLUListElement>) => {\n const list = event.currentTarget;\n const first = list.children[0] as HTMLElement | undefined;\n const step = first ? first.offsetWidth + 12 : 0;\n if (step > 0) setCurrent(Math.min(total, Math.max(1, Math.round(list.scrollLeft / step) + 1)));\n };\n return (\n <div className={cn(\"kz-sg\", className)} data-count={total} data-strip={strip || undefined} data-more={total > BENTO || undefined} role=\"group\" aria-label={label} {...props}>\n <style>{styles}</style>\n <ul className=\"kz-sg-list\" onScroll={strip ? onScroll : undefined}>\n {photos.map((photo, i) => (\n <li key={photo.id}>\n <button\n type=\"button\"\n ref={(node) => {\n tiles.current[i] = node;\n }}\n className=\"kz-sg-tile\"\n aria-label={i === BENTO - 1 && total > BENTO ? `${labels.more(total - BENTO + 1)}: ${labels.open(photo.alt, i + 1, total)}` : labels.open(photo.alt, i + 1, total)}\n onClick={() => {\n opener.current = i;\n setOpen(i);\n }}\n >\n <img src={photo.src} srcSet={photo.srcSet} sizes={photo.srcSet ? tileSizes : undefined} alt=\"\" loading=\"lazy\" decoding=\"async\" />\n {i === BENTO - 1 && total > BENTO && <span className=\"kz-sg-more\" aria-hidden>{labels.more(total - BENTO + 1)}</span>}\n </button>\n </li>\n ))}\n </ul>\n {strip && <p className=\"kz-sg-count\" aria-hidden>{labels.counter(current, total)}</p>}\n {open !== null && (\n <React.Suspense fallback={null}>\n <Lightbox\n photos={photos}\n index={open}\n onIndexChange={setOpen}\n onClose={() => setOpen(null)}\n label={label}\n labels={labels}\n returnFocus={() => tiles.current[opener.current] ?? null}\n />\n </React.Suspense>\n )}\n </div>\n );\n}\n"],"mappings":";;;;;;AAgBO,IAAM,oBAAuC;AAAA,EAClD,MAAM,CAAC,KAAK,UAAU,UAAW,MAAM,cAAc,QAAQ,OAAO,KAAK,KAAK,GAAG,KAAK,cAAc,QAAQ,OAAO,KAAK;AAAA,EACxH,MAAM,CAAC,UAAU,KAAK,KAAK;AAAA,EAC3B,SAAS,CAAC,UAAU,UAAU,GAAG,QAAQ,MAAM,KAAK;AAAA,EACpD,UAAU;AAAA,EACV,MAAM;AAAA,EACN,OAAO;AAAA,EACP,OAAO,CAAC,UAAU;AAAA,EAClB,UAAU,CAAC,UAAU,UAAU,GAAG,QAAQ,OAAO,KAAK;AACxD;AAEO,IAAM,sBAAyC;AAAA,EACpD,MAAM,CAAC,KAAK,UAAU,UAAW,MAAM,mBAAmB,QAAQ,QAAQ,KAAK,MAAM,GAAG,KAAK,mBAAmB,QAAQ,QAAQ,KAAK;AAAA,EACrI,MAAM,CAAC,UAAU,KAAK,KAAK;AAAA,EAC3B,SAAS,CAAC,UAAU,UAAU,GAAG,QAAQ,MAAM,KAAK;AAAA,EACpD,UAAU;AAAA,EACV,MAAM;AAAA,EACN,OAAO;AAAA,EACP,OAAO,CAAC,UAAU;AAAA,EAClB,UAAU,CAAC,UAAU,UAAU,GAAG,QAAQ,QAAQ,KAAK;AACzD;;;AClCA,YAAY,WAAW;AAsFjB,cAIM,YAJN;AAhFN,IAAM,WAAiB,WAAK,MAAM,OAAO,wBAAY,CAAC;AA0BtD,IAAM,QAAQ;AAEd,IAAM,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA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,KAAK,MAAM,KAAK,IAAI,GAAG,KAAK,CAAC,KAAK,OAAO,KAAK,MAAM,KAAK,IAAI,GAAG,KAAK;AAAA,QACjK,SAAS,MAAM;AACb,iBAAO,UAAU;AACjB,kBAAQ,CAAC;AAAA,QACX;AAAA,QAEA;AAAA,8BAAC,SAAI,KAAK,MAAM,KAAK,QAAQ,MAAM,QAAQ,OAAO,MAAM,SAAS,YAAY,QAAW,KAAI,IAAG,SAAQ,QAAO,UAAS,SAAQ;AAAA,UAC9H,MAAM,QAAQ,KAAK,QAAQ,SAAS,oBAAC,UAAK,WAAU,cAAa,eAAW,MAAE,iBAAO,KAAK,QAAQ,QAAQ,CAAC,GAAE;AAAA;AAAA;AAAA,IAChH,KAfO,MAAM,EAgBf,CACD,GACH;AAAA,IACC,SAAS,oBAAC,OAAE,WAAU,eAAc,eAAW,MAAE,iBAAO,QAAQ,SAAS,KAAK,GAAE;AAAA,IAChF,SAAS,QACR,oBAAO,gBAAN,EAAe,UAAU,MACxB;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,OAAO;AAAA,QACP,eAAe;AAAA,QACf,SAAS,MAAM,QAAQ,IAAI;AAAA,QAC3B;AAAA,QACA;AAAA,QACA,aAAa,MAAM,MAAM,QAAQ,OAAO,OAAO,KAAK;AAAA;AAAA,IACtD,GACF;AAAA,KAEJ;AAEJ;","names":[]}
1
+ {"version":3,"sources":["../src/shop-gallery/labels.ts","../src/shop-gallery/shop-gallery.tsx"],"sourcesContent":["export type ShopGalleryLabels = {\n /** The tile's name: `Open photo 3 of 12: Two chairs by the window`. */\n open: (alt: string, position: number, total: number) => string;\n /** The last tile of the mosaic: `+ 8 photos`. */\n more: (count: number) => string;\n /** The phone strip's counter: `3 / 12`. */\n counter: (position: number, total: number) => string;\n previous: string;\n next: string;\n close: string;\n /** The lightbox's title, read by a screen reader: `Photos of the salon`. */\n title: (label: string) => string;\n /** The lightbox's position: `3 of 12`. */\n position: (position: number, total: number) => string;\n};\n\nexport const shopGalleryLabels: ShopGalleryLabels = {\n open: (alt, position, total) => (alt ? `Open photo ${position} of ${total}: ${alt}` : `Open photo ${position} of ${total}`),\n more: (count) => `+ ${count} photos`,\n counter: (position, total) => `${position} / ${total}`,\n previous: \"Previous photo\",\n next: \"Next photo\",\n close: \"Close\",\n title: (label) => label,\n position: (position, total) => `${position} of ${total}`,\n};\n\nexport const shopGalleryLabelsFr: ShopGalleryLabels = {\n open: (alt, position, total) => (alt ? `Ouvrir la photo ${position} sur ${total} : ${alt}` : `Ouvrir la photo ${position} sur ${total}`),\n more: (count) => `+ ${count} photos`,\n counter: (position, total) => `${position} / ${total}`,\n previous: \"Photo précédente\",\n next: \"Photo suivante\",\n close: \"Fermer\",\n title: (label) => label,\n position: (position, total) => `${position} sur ${total}`,\n};\n","\"use client\";\n\nimport * as React from \"react\";\n\nimport { cn } from \"../cn\";\nimport { type ShopGalleryLabels, shopGalleryLabels } from \"./labels\";\n\n// The lightbox is a lazy chunk: nothing of it is loaded until a photo is opened.\nconst Lightbox = React.lazy(() => import(\"./lightbox\"));\n\nexport type ShopGalleryPhoto = {\n id: string;\n /** The tile's image. */\n src: string;\n /** What it shows, in words: the tile's name and the lightbox's caption. */\n alt: string;\n /** The widths the product holds (`/a-400.avif 400w, /a-800.avif 800w, /a-1200.avif 1200w`). */\n srcSet?: string;\n /** The lightbox's image at full resolution (default: `src`). */\n fullSrc?: string;\n fullSrcSet?: string;\n};\n\nexport type ShopGalleryProps = Omit<React.ComponentProps<\"div\">, \"children\"> & {\n /** The shop's photos, in order, already unique. */\n photos: readonly ShopGalleryPhoto[];\n /** The gallery's accessible name (`Photos of the salon`). */\n label: string;\n /** The tiles' `sizes` (default: the bento's share of a 72 rem page on a desktop, 78 vw on a phone). */\n sizes?: string;\n /** Translated texts; `shopGalleryLabelsFr` for French. */\n labels?: Partial<ShopGalleryLabels>;\n};\n\nconst BENTO = 5;\n\nconst styles = `\n.kz-sg{position:relative}\n.kz-sg-list{margin:0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(2,1fr);gap:.5rem}\n.kz-sg-tile{position:relative;display:block;width:100%;height:100%;padding:0;overflow:hidden;cursor:zoom-in;border:1px solid var(--kz-border-subtle);border-radius:var(--kz-shop-photo-radius,.75rem);background:var(--kz-surface-2);color:var(--kz-text-on-media)}\n.kz-sg-tile img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}\n.kz-sg-tile:focus-visible{outline:2px solid var(--kz-ring);outline-offset:2px}\n.kz-sg-list>li{aspect-ratio:1/1;min-width:0}\n.kz-sg-list>li:first-child:nth-last-child(odd){grid-column:span 2;aspect-ratio:16/10}\n.kz-sg-more,.kz-sg-count{display:none}\n.kz-sg[data-strip=true] .kz-sg-list{display:flex;gap:.75rem;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;margin-inline:-1rem;padding-inline:1rem;scroll-padding-inline:1rem;-webkit-mask-image:linear-gradient(to right,transparent,currentcolor 1.25rem,currentcolor calc(100% - 1.25rem),transparent);mask-image:linear-gradient(to right,transparent,currentcolor 1.25rem,currentcolor calc(100% - 1.25rem),transparent)}\n.kz-sg[data-strip=true] .kz-sg-list::-webkit-scrollbar{display:none}\n.kz-sg[data-strip=true] .kz-sg-list>li{flex:0 0 78%;aspect-ratio:4/5;scroll-snap-align:start}\n.kz-sg[data-strip=true] .kz-sg-list>li:first-child:nth-last-child(odd){grid-column:auto;aspect-ratio:4/5}\n.kz-sg[data-strip=true] .kz-sg-count{display:block;margin:.5rem 0 0;text-align:end;font:600 .75rem/1 var(--kz-font-mono,monospace);color:var(--kz-text-secondary)}\n@media (prefers-reduced-motion:no-preference){.kz-sg[data-strip=true] .kz-sg-list{scroll-behavior:smooth}.kz-sg-tile img{transition:transform .35s ease}.kz-sg-tile:hover img{transform:scale(1.03)}}\n@media (min-width:40rem){\n.kz-sg-list{gap:.75rem}\n.kz-sg[data-strip=true] .kz-sg-list{display:grid;overflow:visible;margin-inline:0;padding-inline:0;-webkit-mask-image:none;mask-image:none}\n.kz-sg[data-strip=true] .kz-sg-count{display:none}\n.kz-sg[data-count=\"1\"] .kz-sg-list{grid-template-columns:1fr}\n.kz-sg[data-count=\"1\"] .kz-sg-list>li{aspect-ratio:16/9}\n.kz-sg[data-count=\"2\"] .kz-sg-list>li,.kz-sg[data-count=\"2\"] .kz-sg-list>li:first-child:nth-last-child(odd){aspect-ratio:4/3;grid-column:auto}\n.kz-sg:not([data-count=\"1\"]):not([data-count=\"2\"]) .kz-sg-list{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));aspect-ratio:2/1}\n.kz-sg:not([data-count=\"1\"]):not([data-count=\"2\"]) .kz-sg-list>li,.kz-sg[data-strip=true] .kz-sg-list>li{aspect-ratio:auto;flex:none}\n.kz-sg:not([data-count=\"1\"]):not([data-count=\"2\"]) .kz-sg-list>li:first-child{grid-column:1/3;grid-row:1/3;aspect-ratio:auto}\n.kz-sg[data-count=\"3\"] .kz-sg-list>li:nth-child(n+2){grid-column:3/5}\n.kz-sg[data-count=\"4\"] .kz-sg-list>li:nth-child(2){grid-column:3/5}\n.kz-sg[data-strip=true] .kz-sg-list>li:nth-child(n+6){display:none}\n.kz-sg[data-more=true] .kz-sg-list>li:nth-child(5) .kz-sg-more{position:absolute;inset:0;display:grid;place-items:center;background:color-mix(in srgb,var(--kz-scrim-strong) 62%,transparent);font:700 1.125rem/1.2 var(--kz-font-sans,system-ui);text-align:center}\n}\n`;\n\n/** A shop's photos: a bento mosaic (one 2×2 lead and four tiles, the last one « + N photos »), a snap strip on a phone, and a lightbox. */\nexport function ShopGallery({ photos, label, sizes, labels: given, className, ...props }: ShopGalleryProps) {\n const labels = { ...shopGalleryLabels, ...given };\n const total = photos.length;\n const strip = total >= BENTO;\n const [open, setOpen] = React.useState<number | null>(null);\n const [current, setCurrent] = React.useState(1);\n const tiles = React.useRef<(HTMLButtonElement | null)[]>([]);\n const opener = React.useRef<number>(0);\n if (total === 0) return null;\n\n const tileSizes = sizes ?? (strip ? \"(min-width: 40rem) 36rem, 78vw\" : \"(min-width: 40rem) 36rem, 50vw\");\n const onScroll = (event: React.UIEvent<HTMLUListElement>) => {\n const list = event.currentTarget;\n const first = list.children[0] as HTMLElement | undefined;\n const step = first ? first.offsetWidth + 12 : 0;\n if (step > 0) setCurrent(Math.min(total, Math.max(1, Math.round(list.scrollLeft / step) + 1)));\n };\n return (\n <div className={cn(\"kz-sg\", className)} data-count={total} data-strip={strip || undefined} data-more={total > BENTO || undefined} role=\"group\" aria-label={label} {...props}>\n <style>{styles}</style>\n <ul className=\"kz-sg-list\" onScroll={strip ? onScroll : undefined}>\n {photos.map((photo, i) => (\n <li key={photo.id}>\n <button\n type=\"button\"\n ref={(node) => {\n tiles.current[i] = node;\n }}\n className=\"kz-sg-tile\"\n aria-label={i === BENTO - 1 && total > BENTO ? `${labels.more(total - BENTO + 1)}: ${labels.open(photo.alt, i + 1, total)}` : labels.open(photo.alt, i + 1, total)}\n onClick={() => {\n opener.current = i;\n setOpen(i);\n }}\n >\n <img src={photo.src} srcSet={photo.srcSet} sizes={photo.srcSet ? tileSizes : undefined} alt=\"\" loading=\"lazy\" decoding=\"async\" />\n {i === BENTO - 1 && total > BENTO && <span className=\"kz-sg-more\" aria-hidden>{labels.more(total - BENTO + 1)}</span>}\n </button>\n </li>\n ))}\n </ul>\n {strip && <p className=\"kz-sg-count\" aria-hidden>{labels.counter(current, total)}</p>}\n {open !== null && (\n <React.Suspense fallback={null}>\n <Lightbox\n photos={photos}\n index={open}\n onIndexChange={setOpen}\n onClose={() => setOpen(null)}\n label={label}\n labels={labels}\n returnFocus={() => tiles.current[opener.current] ?? null}\n />\n </React.Suspense>\n )}\n </div>\n );\n}\n"],"mappings":";;;;;;AAgBO,IAAM,oBAAuC;AAAA,EAClD,MAAM,CAAC,KAAK,UAAU,UAAW,MAAM,cAAc,QAAQ,OAAO,KAAK,KAAK,GAAG,KAAK,cAAc,QAAQ,OAAO,KAAK;AAAA,EACxH,MAAM,CAAC,UAA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AAQ,KAAK,QAAQ,SAAS,oBAAC,UAAK,WAAU,cAAa,eAAW,MAAE,iBAAO,KAAK,QAAQ,QAAQ,CAAC,GAAE;AAAA;AAAA;AAAA,IAChH,KAfO,MAAM,EAgBf,CACD,GACH;AAAA,IACC,SAAS,oBAAC,OAAE,WAAU,eAAc,eAAW,MAAE,iBAAO,QAAQ,SAAS,KAAK,GAAE;AAAA,IAChF,SAAS,QACR,oBAAO,gBAAN,EAAe,UAAU,MACxB;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,OAAO;AAAA,QACP,eAAe;AAAA,QACf,SAAS,MAAM,QAAQ,IAAI;AAAA,QAC3B;AAAA,QACA;AAAA,QACA,aAAa,MAAM,MAAM,QAAQ,OAAO,OAAO,KAAK;AAAA;AAAA,IACtD,GACF;AAAA,KAEJ;AAEJ;","names":[]}
package/dist/wall.d.ts CHANGED
@@ -61,10 +61,10 @@ declare function ShopSign({ children, as: Name, logo, variant, rotation, animate
61
61
  interface WallPosition {
62
62
  /** Stable identity for this object. */
63
63
  id: string;
64
- /** Horizontal placement as a percentage (0–100); clamped to the wall. */
65
- x: number;
66
- /** Vertical placement as a percentage (0–100); clamped to the wall. */
67
- y: number;
64
+ /** Horizontal placement as a percentage (0–100); clamped to the wall. Unused by the tidy layout. */
65
+ x?: number;
66
+ /** Vertical placement as a percentage (0–100); clamped to the wall. Unused by the tidy layout. */
67
+ y?: number;
68
68
  /** Tilt in degrees; defaults to zero. */
69
69
  rotation?: number;
70
70
  /** Stacking and reading order, ascending; ties preserve input order. */
@@ -89,9 +89,14 @@ interface WallProps extends Omit<React.ComponentProps<"ul">, "children" | "style
89
89
  height?: number;
90
90
  /** Desktop object width in pixels (minimum 120); defaults to 240 and never exceeds the surface. */
91
91
  itemWidth?: number;
92
+ /**
93
+ * `pinned` (default): objects placed at x / y on a fixed surface. `tidy`: the Cahier pinboard — a dense CSS grid (3 columns,
94
+ * 2 on a phone, 1 on a very small one), a note may span two, each tilted 1–2° by its id (no random position), no JS layout.
95
+ */
96
+ layout?: "pinned" | "tidy";
92
97
  }
93
98
  /** A decorative textured surface over a real keyboard-reachable list; never an editor. */
94
- declare function Wall({ items, texture, max, height, itemWidth, className, ...props }: WallProps): React.JSX.Element;
99
+ declare function Wall({ items, texture, max, height, itemWidth, layout, className, ...props }: WallProps): React.JSX.Element;
95
100
 
96
101
  export { PinnedNote, Polaroid, ShopSign, Wall };
97
102
  export type { PinnedNoteProps, PolaroidProps, ShopSignProps, WallItem, WallPosition, WallProps };
package/dist/wall.js CHANGED
@@ -149,19 +149,25 @@ function ShopSign({ children, as: Name = "h1", logo, variant = "enamel", rotatio
149
149
  // src/wall/wall.tsx
150
150
  import * as React3 from "react";
151
151
  import { jsx as jsx6, jsxs as jsxs5 } from "react/jsx-runtime";
152
+ function tidyTilt(id) {
153
+ let h = 2166136261;
154
+ for (let i = 0; i < id.length; i += 1) h = Math.imul(h ^ id.charCodeAt(i), 16777619);
155
+ const n = (h >>> 0) % 4;
156
+ return [-2, -1, 1, 2][n];
157
+ }
152
158
  function WallObject({ item }) {
153
159
  if (item.kind === "polaroid") return /* @__PURE__ */ jsx6(Polaroid, { ...item, rotation: 0 });
154
160
  if (item.kind === "note") return /* @__PURE__ */ jsx6(PinnedNote, { ...item, rotation: 0 });
155
161
  return /* @__PURE__ */ jsx6(ShopSign, { ...item, as: item.as ?? "p", rotation: 0 });
156
162
  }
157
- function Wall({ items, texture = "plaster", max = 12, height, itemWidth = 240, className, ...props }) {
163
+ function Wall({ items, texture = "plaster", max = 12, height, itemWidth = 240, layout = "pinned", className, ...props }) {
158
164
  const patternId = React3.useId().replace(/:/g, "");
159
165
  const drawn = Math.max(0, Math.floor(finite(max)));
160
- return /* @__PURE__ */ jsxs5("ul", { ...props, role: "list", className: cn("kz-wall", className), "data-texture": texture, "data-count": Math.min(items.length, drawn), "data-fixed-height": height === void 0 ? void 0 : "", style: { ...height === void 0 ? null : { "--kz-wall-height": `${Math.max(320, finite(height))}px` }, "--kz-wall-item-width": `${Math.max(120, finite(itemWidth))}px` }, children: [
161
- [...items].sort((a, b) => finite(a.z) - finite(b.z)).slice(0, drawn).map(({ id, x, y, rotation = 0, z: _z, ...item }, rank) => /* @__PURE__ */ jsx6("li", { className: "kz-wall-item", tabIndex: 0, style: {
166
+ return /* @__PURE__ */ jsxs5("ul", { ...props, role: "list", className: cn("kz-wall", className), "data-texture": texture, "data-layout": layout === "tidy" ? "tidy" : void 0, "data-count": Math.min(items.length, drawn), "data-fixed-height": height === void 0 ? void 0 : "", style: { ...height === void 0 ? null : { "--kz-wall-height": `${Math.max(320, finite(height))}px` }, "--kz-wall-item-width": `${Math.max(120, finite(itemWidth))}px` }, children: [
167
+ [...items].sort((a, b) => finite(a.z) - finite(b.z)).slice(0, drawn).map(({ id, x = 0, y = 0, rotation, z: _z, ...item }, rank) => /* @__PURE__ */ jsx6("li", { className: "kz-wall-item", tabIndex: 0, "data-span": layout === "tidy" && item.kind === "note" ? "2" : void 0, style: {
162
168
  "--kz-wall-x": `${Math.min(100, Math.max(0, finite(x)))}%`,
163
169
  "--kz-wall-y": `${Math.min(100, Math.max(0, finite(y)))}%`,
164
- "--kz-wall-rotation": `${finite(rotation)}deg`,
170
+ "--kz-wall-rotation": `${layout === "tidy" ? tidyTilt(id) : finite(rotation ?? 0)}deg`,
165
171
  zIndex: rank
166
172
  }, children: /* @__PURE__ */ jsx6(WallObject, { item }) }, id)),
167
173
  texture === "brick" && /* @__PURE__ */ jsx6("li", { className: "kz-wall-decoration", "aria-hidden": "true", role: "presentation", children: /* @__PURE__ */ jsxs5("svg", { width: "100%", height: "100%", "aria-hidden": "true", children: [
package/dist/wall.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/cahier-seed.ts","../src/stuck/stuck.tsx","../src/wall/pinned-note.tsx","../src/wall/polaroid.tsx","../src/wall/attachment.tsx","../src/wall/shop-sign.tsx","../src/wall/wall.tsx"],"sourcesContent":["// The Cahier's small deterministic randomness: a string (an id, a slug, a title) becomes a number in [-1, 1], always the\n// same one, so a tilt or a wobble drawn \"by hand\" is the same on the server, on the client and in every screenshot.\nexport function seedUnit(seed: string): number {\n let h = 2166136261;\n for (let i = 0; i < seed.length; i++) h = Math.imul(h ^ seed.charCodeAt(i), 16777619);\n return ((h >>> 0) % 2001) / 1000 - 1;\n}\n","// Server-safe. A block stuck into the notebook (ADR-004, blocks.css): a figure, a specimen tag, a card, a print — held by\n// tape, a pin, photo corners or a lifted edge, slightly tilted (from data, never random), on the Cahier's hard paper\n// shadow. The tape is TapedPhoto's own (the same rule in blocks.css). The tilt is a transform: nothing shifts.\nimport type * as React from \"react\";\n\nimport { seedUnit } from \"../cahier-seed\";\nimport { cn } from \"../cn\";\n\nexport type StuckHold = \"tape\" | \"tape-corners\" | \"pin\" | \"corner\" | \"glue\";\n\nexport type StuckProps = Omit<React.HTMLAttributes<HTMLElement>, \"children\"> & {\n /** What is stuck: a figure, a `SpecimenTag`, a card, a `TapedPhoto`. */\n children: React.ReactNode;\n /**\n * How it is held: `tape` (one strip), `tape-corners` (two opposite corners), `pin` (a drawing pin), `corner` (photo\n * corners) or `glue` (a slightly lifted edge).\n * @default \"tape\"\n */\n hold?: StuckHold;\n /** The tilt in degrees (negative leans left). Without it, the tilt comes from `seed`. */\n tilt?: number;\n /** Where the tilt comes from when `tilt` is not given: the same string always leans the same way (±2°). @default \"\" */\n seed?: string;\n /** Margin doodles (`Doodle`) drawn beside the block; they leave with the margin on a narrow screen. */\n doodle?: React.ReactNode;\n /** The element of the wrapper. A `figure` goes inside, never here. @default \"div\" */\n as?: \"div\" | \"li\" | \"aside\";\n};\n\n/** The tilt of a stuck block: `tilt` when given, otherwise a steady lean (−2° to 2°) read from `seed`, rounded to a tenth. */\nexport function stuckTilt(seed: string, tilt?: number): number {\n return tilt ?? Math.round(seedUnit(seed) * 20) / 10;\n}\n\n/** A block stuck into the notebook: held by tape, a pin, photo corners or glue; tilted from data; a hard paper shadow. */\nexport function Stuck({ children, hold = \"tape\", tilt, seed = \"\", doodle, as: Tag = \"div\", className, style, ...props }: StuckProps) {\n return (\n <Tag className={cn(\"kz-stuck\", className)} style={style} {...props}>\n <div className=\"kz-stuck-body\" data-hold={hold} style={{ [\"--kz-stuck-tilt\" as string]: `${stuckTilt(seed, tilt)}deg` }}>\n {hold === \"pin\" ? <span className=\"kz-stuck-pin\" aria-hidden /> : null}\n {children}\n </div>\n {doodle}\n </Tag>\n );\n}\n","import type * as React from \"react\";\n\nimport { cn } from \"../cn\";\nimport { Stuck } from \"../stuck\";\nimport type { WallObjectProps } from \"./attachment\";\n\nexport interface PinnedNoteProps extends Omit<React.ComponentProps<\"article\">, \"children\" | \"style\">, WallObjectProps {\n /** The short message; capped at 140 Unicode code points without an ellipsis. */\n text: string;\n /** The optional author's signature, written in the handwriting role. */\n signature?: string;\n /** The ink of the pen: blue ink, the margin's red, or the page's hue. @default \"blue\" */\n ink?: \"blue\" | \"margin\" | \"hue\";\n /** How the note is held, through `Stuck`: a strip of tape or a pin. Takes over `attachment`. @default \"tape\" */\n hold?: \"tape\" | \"pin\";\n /** The colour of the paper: the page's own, or a real post-it (butter, rose, mint, sky), pale in both themes with the pen dark on it. @default \"plain\" */\n paper?: \"plain\" | \"butter\" | \"rose\" | \"mint\" | \"sky\";\n /** A small action under the words (a link, a button) kept inside the note and reachable by keyboard; it is never part of the capped text. */\n action?: React.ReactNode;\n /** How many Unicode code points of `text` are kept (a flyer longer than a word is read whole). @default 140 */\n limit?: number;\n /** The lines of the text box, fixed so a late font never shifts the page (the text is read in full by assistive technology). @default 4 */\n lines?: number;\n}\n\n/** A short word on a cut-corner card, stuck into the notebook. */\nexport function PinnedNote({ text, signature, rotation = 0, attachment, attachmentRotation: _attachmentRotation, ink = \"blue\", paper = \"plain\", action, limit = 140, hold, lines = 4, className, ...props }: PinnedNoteProps) {\n const rows = Math.max(1, Math.round(Number.isFinite(lines) ? lines : 4));\n return (\n <Stuck hold={hold ?? attachment ?? \"tape\"} tilt={Number.isFinite(rotation) ? rotation : 0} className=\"kz-wall-object kz-pinned-stuck\">\n <article {...props} className={cn(\"kz-pinned-note\", className)} data-shape=\"cut\" data-ink={ink} data-paper={paper === \"plain\" ? undefined : paper} style={{ \"--kz-note-lines\": rows } as React.CSSProperties}>\n <div className=\"kz-pinned-note-paper\">\n <p className=\"kz-pinned-note-text\">{Array.from(text).slice(0, Number.isFinite(limit) ? Math.max(0, Math.floor(limit)) : 140).join(\"\")}</p>\n {signature && <p className=\"kz-pinned-note-signature\">{signature}</p>}\n {action && <div className=\"kz-pinned-note-action\">{action}</div>}\n </div>\n </article>\n </Stuck>\n );\n}\n","\"use client\";\n\nimport * as React from \"react\";\n\nimport { cn } from \"../cn\";\nimport { TapedPhoto } from \"../taped-photo\";\nimport { Attachment, finite, type WallObjectProps } from \"./attachment\";\n\nexport interface PolaroidProps extends Omit<React.ComponentProps<\"figure\">, \"children\" | \"style\">, WallObjectProps {\n /** The photo slot: an img or next/image, including fill inside this positioned frame. Supply its alt text. */\n img: React.ReactNode;\n /** A short handwritten caption, using the --kz-font-cahier role. */\n caption?: React.ReactNode;\n /** Enable the first-view develop effect; defaults to true, never runs under reduced motion. */\n develop?: boolean;\n}\n\n/** A photo held to the wall by tape or a pin, with a handwritten caption. */\nexport function Polaroid({ img, caption, rotation = 0, attachment = \"tape\", attachmentRotation = 0, develop = true, className, ...props }: PolaroidProps) {\n const ref = React.useRef<HTMLDivElement>(null);\n const [state, setState] = React.useState<\"waiting\" | \"ready\" | undefined>();\n React.useEffect(() => {\n if (!develop || !ref.current || typeof IntersectionObserver === \"undefined\" || typeof matchMedia === \"undefined\") return;\n const preference = matchMedia(\"(prefers-reduced-motion: reduce)\");\n let seen = false;\n let observer: IntersectionObserver | undefined;\n const sync = () => {\n observer?.disconnect();\n if (preference.matches) {\n seen = true;\n setState(undefined);\n } else if (!seen) {\n setState(\"waiting\");\n observer = new IntersectionObserver((entries) => {\n if (seen || !entries.some((entry) => entry.isIntersecting)) return;\n seen = true;\n setState(\"ready\");\n observer?.disconnect();\n }, { threshold: 0.15 });\n observer.observe(ref.current!);\n }\n };\n sync();\n preference.addEventListener(\"change\", sync);\n return () => { observer?.disconnect(); preference.removeEventListener(\"change\", sync); };\n }, [develop]);\n return (\n <TapedPhoto {...props} className={cn(\"kz-polaroid\", className)} tilt={finite(rotation)} tape={attachment === \"pin\" ? \"none\" : \"top\"} caption={caption}\n style={{ \"--kz-wall-attachment-rotation\": `${finite(attachmentRotation)}deg` } as React.CSSProperties} data-develop={develop ? state : undefined}>\n {attachment === \"pin\" && <Attachment attachment=\"pin\" attachmentRotation={attachmentRotation} />}\n <div ref={ref} className=\"kz-polaroid-photo\">{img}</div>\n </TapedPhoto>\n );\n}\n","import type { CSSProperties } from \"react\";\n\nimport { cn } from \"../cn\";\n\nexport interface WallObjectProps {\n /** Tilt in degrees, deterministic; defaults to zero. */\n rotation?: number;\n /** A tape strip or a pin; defaults to tape. */\n attachment?: \"tape\" | \"pin\";\n /** The tape or pin's tilt in degrees; defaults to zero. */\n attachmentRotation?: number;\n}\n\nexport const finite = (value: number) => Number.isFinite(value) ? value : 0;\nexport const rotationStyle = (rotation: number): CSSProperties =>\n ({ \"--kz-wall-rotation\": `${finite(rotation)}deg` }) as CSSProperties;\n\nexport function Attachment({ attachment = \"tape\", attachmentRotation = 0 }: WallObjectProps) {\n return <span aria-hidden=\"true\" className={cn(\"kz-wall-attachment\", attachment === \"pin\" ? \"kz-wall-pin\" : \"kz-wall-tape\")} style={{ transform: `rotate(${finite(attachmentRotation)}deg)` }} />;\n}\n","\"use client\";\n\nimport * as React from \"react\";\n\nimport { cn } from \"../cn\";\nimport { rotationStyle } from \"./attachment\";\n\nexport interface ShopSignProps extends Omit<React.ComponentProps<\"div\">, \"style\"> {\n /** The shop's name as live text, in the sign's lettering: the page's heading (`as`). Prefer it to an image of the name. */\n children?: React.ReactNode;\n /** The element of the name: the page's `h1` by default, `h2`/`h3` for a second sign, `p` for none. A sign on a `Wall` is a `p` unless told otherwise. */\n as?: \"h1\" | \"h2\" | \"h3\" | \"p\";\n /** The owner's logo or wordmark, optional beside the name. Name an SVG/image accessibly, or use readable text. */\n logo?: React.ReactNode;\n /** Enamel plate and screws, softly glowing neon, a time-worn painted sign, or `none` (the name alone on paper). */\n variant?: \"enamel\" | \"neon\" | \"painted\" | \"none\";\n /** Deterministic tilt in degrees; defaults to zero. */\n rotation?: number;\n /** Allow one soft neon flicker the first time the sign is seen; defaults to true, never loops, respects reduced motion. */\n animated?: boolean;\n}\n\n/** The neon's first view: `waiting` until it is on screen, then `ready` once. Nothing under reduced motion or without observers. */\nfunction useFirstView(enabled: boolean) {\n const ref = React.useRef<HTMLDivElement>(null);\n const [state, setState] = React.useState<\"waiting\" | \"ready\" | undefined>();\n React.useEffect(() => {\n if (!enabled || !ref.current || typeof IntersectionObserver === \"undefined\" || typeof matchMedia === \"undefined\") return;\n const preference = matchMedia(\"(prefers-reduced-motion: reduce)\");\n let seen = false;\n let observer: IntersectionObserver | undefined;\n const sync = () => {\n observer?.disconnect();\n if (preference.matches) {\n setState(undefined);\n } else if (!seen) {\n setState(\"waiting\");\n observer = new IntersectionObserver((entries) => {\n if (seen || !entries.some((entry) => entry.isIntersecting)) return;\n seen = true;\n setState(\"ready\");\n observer?.disconnect();\n }, { threshold: 0.3 });\n observer.observe(ref.current!);\n }\n };\n sync();\n preference.addEventListener(\"change\", sync);\n return () => { observer?.disconnect(); preference.removeEventListener(\"change\", sync); };\n }, [enabled]);\n return [ref, state] as const;\n}\n\n/** A shop's own mark, as a plate, a neon, a painted sign, or the name alone. */\nexport function ShopSign({ children, as: Name = \"h1\", logo, variant = \"enamel\", rotation = 0, animated = true, className, ...props }: ShopSignProps) {\n const [ref, lit] = useFirstView(variant === \"neon\" && animated);\n return (\n <div {...props} ref={ref} className={cn(\"kz-shop-sign kz-wall-object\", className)} style={rotationStyle(rotation)} data-variant={variant} data-animated={animated ? \"\" : undefined} data-lit={lit}>\n {variant === \"enamel\" && [0, 1, 2, 3].map((corner) => <span key={corner} aria-hidden=\"true\" className=\"kz-shop-sign-screw\" data-corner={corner} />)}\n {logo && <div className=\"kz-shop-sign-logo\">{logo}</div>}\n {children && <Name className=\"kz-shop-sign-name\">{children}</Name>}\n </div>\n );\n}\n","\"use client\";\n\nimport * as React from \"react\";\n\nimport { cn } from \"../cn\";\nimport { finite } from \"./attachment\";\nimport { PinnedNote, type PinnedNoteProps } from \"./pinned-note\";\nimport { Polaroid, type PolaroidProps } from \"./polaroid\";\nimport { ShopSign, type ShopSignProps } from \"./shop-sign\";\n\nexport interface WallPosition {\n /** Stable identity for this object. */\n id: string;\n /** Horizontal placement as a percentage (0–100); clamped to the wall. */\n x: number;\n /** Vertical placement as a percentage (0–100); clamped to the wall. */\n y: number;\n /** Tilt in degrees; defaults to zero. */\n rotation?: number;\n /** Stacking and reading order, ascending; ties preserve input order. */\n z: number;\n}\n\n/** The item's kind chooses its component; its remaining fields are that component's props. */\nexport type WallItem = WallPosition & (\n | ({ /** A framed photo. */ kind: \"polaroid\" } & PolaroidProps)\n | ({ /** A short pinned message. */ kind: \"note\" } & PinnedNoteProps)\n | ({ /** The owner's sign. */ kind: \"sign\" } & ShopSignProps)\n);\n\ntype DistributiveOmit<T, K extends PropertyKey> = T extends unknown ? Omit<T, K> : never;\n\nexport interface WallProps extends Omit<React.ComponentProps<\"ul\">, \"children\" | \"style\" | \"role\"> {\n /** The read-only objects; never mutated. Sorted by z for reading, keyboard and phone order. */\n items: readonly WallItem[];\n /** CSS/SVG texture; no image download. Defaults to plaster. */\n texture?: \"brick\" | \"zellige\" | \"ridge\" | \"plaster\";\n /** Draws at most this many items (the first in z order); defaults to 12. The rest belongs to the host's « see the whole wall ». */\n max?: number;\n /** A fixed desktop surface height in pixels (minimum 320). Absent, the surface is a fixed 16:9 box. Phones grow with content. */\n height?: number;\n /** Desktop object width in pixels (minimum 120); defaults to 240 and never exceeds the surface. */\n itemWidth?: number;\n}\n\n/** The object of one item, straight: the wall places and tilts it. A sign on a wall is a paragraph, not a second h1. */\nfunction WallObject({ item }: { readonly item: DistributiveOmit<WallItem, keyof WallPosition> }) {\n if (item.kind === \"polaroid\") return <Polaroid {...item} rotation={0} />;\n if (item.kind === \"note\") return <PinnedNote {...item} rotation={0} />;\n return <ShopSign {...item} as={item.as ?? \"p\"} rotation={0} />;\n}\n\n/** A decorative textured surface over a real keyboard-reachable list; never an editor. */\nexport function Wall({ items, texture = \"plaster\", max = 12, height, itemWidth = 240, className, ...props }: WallProps) {\n const patternId = React.useId().replace(/:/g, \"\");\n const drawn = Math.max(0, Math.floor(finite(max)));\n return (\n <ul {...props} role=\"list\" className={cn(\"kz-wall\", className)} data-texture={texture} data-count={Math.min(items.length, drawn)} data-fixed-height={height === undefined ? undefined : \"\"} style={{ ...(height === undefined ? null : { \"--kz-wall-height\": `${Math.max(320, finite(height))}px` }), \"--kz-wall-item-width\": `${Math.max(120, finite(itemWidth))}px` } as React.CSSProperties}>\n {[...items].sort((a, b) => finite(a.z) - finite(b.z)).slice(0, drawn).map(({ id, x, y, rotation = 0, z: _z, ...item }, rank) => (\n <li key={id} className=\"kz-wall-item\" tabIndex={0} style={{\n \"--kz-wall-x\": `${Math.min(100, Math.max(0, finite(x)))}%`,\n \"--kz-wall-y\": `${Math.min(100, Math.max(0, finite(y)))}%`,\n \"--kz-wall-rotation\": `${finite(rotation)}deg`,\n zIndex: rank,\n } as React.CSSProperties}>\n <WallObject item={item} />\n </li>\n ))}\n {texture === \"brick\" && <li className=\"kz-wall-decoration\" aria-hidden=\"true\" role=\"presentation\"><svg width=\"100%\" height=\"100%\" aria-hidden=\"true\">\n <defs><pattern id={patternId} width=\"96\" height=\"48\" patternUnits=\"userSpaceOnUse\">\n <path d=\"M0 0H96M0 24H96M0 48H96M48 0V24M0 24V48M96 24V48\" fill=\"none\" stroke=\"var(--kz-border-default)\" strokeWidth=\"2\" />\n </pattern></defs><rect width=\"100%\" height=\"100%\" fill={`url(#${patternId})`} />\n </svg></li>}\n {texture === \"zellige\" && <li className=\"kz-wall-decoration\" aria-hidden=\"true\" role=\"presentation\"><svg width=\"100%\" height=\"100%\" aria-hidden=\"true\">\n <defs><pattern id={patternId} width=\"64\" height=\"64\" patternUnits=\"userSpaceOnUse\">\n <path d=\"M32 3 39 15 52 12 49 25 61 32 49 39 52 52 39 49 32 61 25 49 12 52 15 39 3 32 15 25 12 12 25 15Z\" fill=\"var(--kz-accent-soft)\" stroke=\"var(--kz-border-default)\" />\n <path d=\"m32 18 14 14-14 14-14-14Z\" fill=\"var(--kz-surface-2)\" stroke=\"var(--kz-accent-2)\" />\n </pattern></defs><rect width=\"100%\" height=\"100%\" fill={`url(#${patternId})`} />\n </svg></li>}\n {texture === \"ridge\" && <li className=\"kz-wall-decoration\" aria-hidden=\"true\" role=\"presentation\"><svg viewBox=\"0 0 1000 600\" preserveAspectRatio=\"none\" width=\"100%\" height=\"100%\" aria-hidden=\"true\">\n <path d=\"M0 380 170 100 290 300 450 70 620 330 790 120 1000 350V600H0Z\" fill=\"var(--kz-accent-soft)\" />\n <path d=\"M0 470 200 280 370 440 600 190 760 400 920 260 1000 390V600H0Z\" fill=\"var(--kz-surface-2)\" />\n <path d=\"M0 540 180 430 360 520 540 390 760 520 900 410 1000 480V600H0Z\" fill=\"var(--kz-surface-3)\" />\n </svg></li>}\n </ul>\n );\n}\n"],"mappings":";;;;;;;;;;AAEO,SAAS,SAAS,MAAsB;AAC7C,MAAI,IAAI;AACR,WAAS,IAAI,GAAG,IAAI,KAAK,QAAQ,IAAK,KAAI,KAAK,KAAK,IAAI,KAAK,WAAW,CAAC,GAAG,QAAQ;AACpF,UAAS,MAAM,KAAK,OAAQ,MAAO;AACrC;;;ACgCM,SACoB,KADpB;AARC,SAAS,UAAU,MAAc,MAAuB;AAC7D,SAAO,QAAQ,KAAK,MAAM,SAAS,IAAI,IAAI,EAAE,IAAI;AACnD;AAGO,SAAS,MAAM,EAAE,UAAU,OAAO,QAAQ,MAAM,OAAO,IAAI,QAAQ,IAAI,MAAM,OAAO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AE,kEAAiE,MAAK,uBAAsB;AAAA,OACtG,GAAM;AAAA,KACR;AAEJ;","names":["jsx","jsxs","jsx","jsx","jsxs","React","jsx","jsxs","React","jsx","jsxs"]}
1
+ {"version":3,"sources":["../src/cahier-seed.ts","../src/stuck/stuck.tsx","../src/wall/pinned-note.tsx","../src/wall/polaroid.tsx","../src/wall/attachment.tsx","../src/wall/shop-sign.tsx","../src/wall/wall.tsx"],"sourcesContent":["// The Cahier's small deterministic randomness: a string (an id, a slug, a title) becomes a number in [-1, 1], always the\n// same one, so a tilt or a wobble drawn \"by hand\" is the same on the server, on the client and in every screenshot.\nexport function seedUnit(seed: string): number {\n let h = 2166136261;\n for (let i = 0; i < seed.length; i++) h = Math.imul(h ^ seed.charCodeAt(i), 16777619);\n return ((h >>> 0) % 2001) / 1000 - 1;\n}\n","// Server-safe. A block stuck into the notebook (ADR-004, blocks.css): a figure, a specimen tag, a card, a print — held by\n// tape, a pin, photo corners or a lifted edge, slightly tilted (from data, never random), on the Cahier's hard paper\n// shadow. The tape is TapedPhoto's own (the same rule in blocks.css). The tilt is a transform: nothing shifts.\nimport type * as React from \"react\";\n\nimport { seedUnit } from \"../cahier-seed\";\nimport { cn } from \"../cn\";\n\nexport type StuckHold = \"tape\" | \"tape-corners\" | \"pin\" | \"corner\" | \"glue\";\n\nexport type StuckProps = Omit<React.HTMLAttributes<HTMLElement>, \"children\"> & {\n /** What is stuck: a figure, a `SpecimenTag`, a card, a `TapedPhoto`. */\n children: React.ReactNode;\n /**\n * How it is held: `tape` (one strip), `tape-corners` (two opposite corners), `pin` (a drawing pin), `corner` (photo\n * corners) or `glue` (a slightly lifted edge).\n * @default \"tape\"\n */\n hold?: StuckHold;\n /** The tilt in degrees (negative leans left). Without it, the tilt comes from `seed`. */\n tilt?: number;\n /** Where the tilt comes from when `tilt` is not given: the same string always leans the same way (±2°). @default \"\" */\n seed?: string;\n /** Margin doodles (`Doodle`) drawn beside the block; they leave with the margin on a narrow screen. */\n doodle?: React.ReactNode;\n /** The element of the wrapper. A `figure` goes inside, never here. @default \"div\" */\n as?: \"div\" | \"li\" | \"aside\";\n};\n\n/** The tilt of a stuck block: `tilt` when given, otherwise a steady lean (−2° to 2°) read from `seed`, rounded to a tenth. */\nexport function stuckTilt(seed: string, tilt?: number): number {\n return tilt ?? Math.round(seedUnit(seed) * 20) / 10;\n}\n\n/** A block stuck into the notebook: held by tape, a pin, photo corners or glue; tilted from data; a hard paper shadow. */\nexport function Stuck({ children, hold = \"tape\", tilt, seed = \"\", doodle, as: Tag = \"div\", className, style, ...props }: StuckProps) {\n return (\n <Tag className={cn(\"kz-stuck\", className)} style={style} {...props}>\n <div className=\"kz-stuck-body\" data-hold={hold} style={{ [\"--kz-stuck-tilt\" as string]: `${stuckTilt(seed, tilt)}deg` }}>\n {hold === \"pin\" ? <span className=\"kz-stuck-pin\" aria-hidden /> : null}\n {children}\n </div>\n {doodle}\n </Tag>\n );\n}\n","import type * as React from \"react\";\n\nimport { cn } from \"../cn\";\nimport { Stuck } from \"../stuck\";\nimport type { WallObjectProps } from \"./attachment\";\n\nexport interface PinnedNoteProps extends Omit<React.ComponentProps<\"article\">, \"children\" | \"style\">, WallObjectProps {\n /** The short message; capped at 140 Unicode code points without an ellipsis. */\n text: string;\n /** The optional author's signature, written in the handwriting role. */\n signature?: string;\n /** The ink of the pen: blue ink, the margin's red, or the page's hue. @default \"blue\" */\n ink?: \"blue\" | \"margin\" | \"hue\";\n /** How the note is held, through `Stuck`: a strip of tape or a pin. Takes over `attachment`. @default \"tape\" */\n hold?: \"tape\" | \"pin\";\n /** The colour of the paper: the page's own, or a real post-it (butter, rose, mint, sky), pale in both themes with the pen dark on it. @default \"plain\" */\n paper?: \"plain\" | \"butter\" | \"rose\" | \"mint\" | \"sky\";\n /** A small action under the words (a link, a button) kept inside the note and reachable by keyboard; it is never part of the capped text. */\n action?: React.ReactNode;\n /** How many Unicode code points of `text` are kept (a flyer longer than a word is read whole). @default 140 */\n limit?: number;\n /** The lines of the text box, fixed so a late font never shifts the page (the text is read in full by assistive technology). @default 4 */\n lines?: number;\n}\n\n/** A short word on a cut-corner card, stuck into the notebook. */\nexport function PinnedNote({ text, signature, rotation = 0, attachment, attachmentRotation: _attachmentRotation, ink = \"blue\", paper = \"plain\", action, limit = 140, hold, lines = 4, className, ...props }: PinnedNoteProps) {\n const rows = Math.max(1, Math.round(Number.isFinite(lines) ? lines : 4));\n return (\n <Stuck hold={hold ?? attachment ?? \"tape\"} tilt={Number.isFinite(rotation) ? rotation : 0} className=\"kz-wall-object kz-pinned-stuck\">\n <article {...props} className={cn(\"kz-pinned-note\", className)} data-shape=\"cut\" data-ink={ink} data-paper={paper === \"plain\" ? undefined : paper} style={{ \"--kz-note-lines\": rows } as React.CSSProperties}>\n <div className=\"kz-pinned-note-paper\">\n <p className=\"kz-pinned-note-text\">{Array.from(text).slice(0, Number.isFinite(limit) ? Math.max(0, Math.floor(limit)) : 140).join(\"\")}</p>\n {signature && <p className=\"kz-pinned-note-signature\">{signature}</p>}\n {action && <div className=\"kz-pinned-note-action\">{action}</div>}\n </div>\n </article>\n </Stuck>\n );\n}\n","\"use client\";\n\nimport * as React from \"react\";\n\nimport { cn } from \"../cn\";\nimport { TapedPhoto } from \"../taped-photo\";\nimport { Attachment, finite, type WallObjectProps } from \"./attachment\";\n\nexport interface PolaroidProps extends Omit<React.ComponentProps<\"figure\">, \"children\" | \"style\">, WallObjectProps {\n /** The photo slot: an img or next/image, including fill inside this positioned frame. Supply its alt text. */\n img: React.ReactNode;\n /** A short handwritten caption, using the --kz-font-cahier role. */\n caption?: React.ReactNode;\n /** Enable the first-view develop effect; defaults to true, never runs under reduced motion. */\n develop?: boolean;\n}\n\n/** A photo held to the wall by tape or a pin, with a handwritten caption. */\nexport function Polaroid({ img, caption, rotation = 0, attachment = \"tape\", attachmentRotation = 0, develop = true, className, ...props }: PolaroidProps) {\n const ref = React.useRef<HTMLDivElement>(null);\n const [state, setState] = React.useState<\"waiting\" | \"ready\" | undefined>();\n React.useEffect(() => {\n if (!develop || !ref.current || typeof IntersectionObserver === \"undefined\" || typeof matchMedia === \"undefined\") return;\n const preference = matchMedia(\"(prefers-reduced-motion: reduce)\");\n let seen = false;\n let observer: IntersectionObserver | undefined;\n const sync = () => {\n observer?.disconnect();\n if (preference.matches) {\n seen = true;\n setState(undefined);\n } else if (!seen) {\n setState(\"waiting\");\n observer = new IntersectionObserver((entries) => {\n if (seen || !entries.some((entry) => entry.isIntersecting)) return;\n seen = true;\n setState(\"ready\");\n observer?.disconnect();\n }, { threshold: 0.15 });\n observer.observe(ref.current!);\n }\n };\n sync();\n preference.addEventListener(\"change\", sync);\n return () => { observer?.disconnect(); preference.removeEventListener(\"change\", sync); };\n }, [develop]);\n return (\n <TapedPhoto {...props} className={cn(\"kz-polaroid\", className)} tilt={finite(rotation)} tape={attachment === \"pin\" ? \"none\" : \"top\"} caption={caption}\n style={{ \"--kz-wall-attachment-rotation\": `${finite(attachmentRotation)}deg` } as React.CSSProperties} data-develop={develop ? state : undefined}>\n {attachment === \"pin\" && <Attachment attachment=\"pin\" attachmentRotation={attachmentRotation} />}\n <div ref={ref} className=\"kz-polaroid-photo\">{img}</div>\n </TapedPhoto>\n );\n}\n","import type { CSSProperties } from \"react\";\n\nimport { cn } from \"../cn\";\n\nexport interface WallObjectProps {\n /** Tilt in degrees, deterministic; defaults to zero. */\n rotation?: number;\n /** A tape strip or a pin; defaults to tape. */\n attachment?: \"tape\" | \"pin\";\n /** The tape or pin's tilt in degrees; defaults to zero. */\n attachmentRotation?: number;\n}\n\nexport const finite = (value: number) => Number.isFinite(value) ? value : 0;\nexport const rotationStyle = (rotation: number): CSSProperties =>\n ({ \"--kz-wall-rotation\": `${finite(rotation)}deg` }) as CSSProperties;\n\nexport function Attachment({ attachment = \"tape\", attachmentRotation = 0 }: WallObjectProps) {\n return <span aria-hidden=\"true\" className={cn(\"kz-wall-attachment\", attachment === \"pin\" ? \"kz-wall-pin\" : \"kz-wall-tape\")} style={{ transform: `rotate(${finite(attachmentRotation)}deg)` }} />;\n}\n","\"use client\";\n\nimport * as React from \"react\";\n\nimport { cn } from \"../cn\";\nimport { rotationStyle } from \"./attachment\";\n\nexport interface ShopSignProps extends Omit<React.ComponentProps<\"div\">, \"style\"> {\n /** The shop's name as live text, in the sign's lettering: the page's heading (`as`). Prefer it to an image of the name. */\n children?: React.ReactNode;\n /** The element of the name: the page's `h1` by default, `h2`/`h3` for a second sign, `p` for none. A sign on a `Wall` is a `p` unless told otherwise. */\n as?: \"h1\" | \"h2\" | \"h3\" | \"p\";\n /** The owner's logo or wordmark, optional beside the name. Name an SVG/image accessibly, or use readable text. */\n logo?: React.ReactNode;\n /** Enamel plate and screws, softly glowing neon, a time-worn painted sign, or `none` (the name alone on paper). */\n variant?: \"enamel\" | \"neon\" | \"painted\" | \"none\";\n /** Deterministic tilt in degrees; defaults to zero. */\n rotation?: number;\n /** Allow one soft neon flicker the first time the sign is seen; defaults to true, never loops, respects reduced motion. */\n animated?: boolean;\n}\n\n/** The neon's first view: `waiting` until it is on screen, then `ready` once. Nothing under reduced motion or without observers. */\nfunction useFirstView(enabled: boolean) {\n const ref = React.useRef<HTMLDivElement>(null);\n const [state, setState] = React.useState<\"waiting\" | \"ready\" | undefined>();\n React.useEffect(() => {\n if (!enabled || !ref.current || typeof IntersectionObserver === \"undefined\" || typeof matchMedia === \"undefined\") return;\n const preference = matchMedia(\"(prefers-reduced-motion: reduce)\");\n let seen = false;\n let observer: IntersectionObserver | undefined;\n const sync = () => {\n observer?.disconnect();\n if (preference.matches) {\n setState(undefined);\n } else if (!seen) {\n setState(\"waiting\");\n observer = new IntersectionObserver((entries) => {\n if (seen || !entries.some((entry) => entry.isIntersecting)) return;\n seen = true;\n setState(\"ready\");\n observer?.disconnect();\n }, { threshold: 0.3 });\n observer.observe(ref.current!);\n }\n };\n sync();\n preference.addEventListener(\"change\", sync);\n return () => { observer?.disconnect(); preference.removeEventListener(\"change\", sync); };\n }, [enabled]);\n return [ref, state] as const;\n}\n\n/** A shop's own mark, as a plate, a neon, a painted sign, or the name alone. */\nexport function ShopSign({ children, as: Name = \"h1\", logo, variant = \"enamel\", rotation = 0, animated = true, className, ...props }: ShopSignProps) {\n const [ref, lit] = useFirstView(variant === \"neon\" && animated);\n return (\n <div {...props} ref={ref} className={cn(\"kz-shop-sign kz-wall-object\", className)} style={rotationStyle(rotation)} data-variant={variant} data-animated={animated ? \"\" : undefined} data-lit={lit}>\n {variant === \"enamel\" && [0, 1, 2, 3].map((corner) => <span key={corner} aria-hidden=\"true\" className=\"kz-shop-sign-screw\" data-corner={corner} />)}\n {logo && <div className=\"kz-shop-sign-logo\">{logo}</div>}\n {children && <Name className=\"kz-shop-sign-name\">{children}</Name>}\n </div>\n );\n}\n","\"use client\";\n\nimport * as React from \"react\";\n\nimport { cn } from \"../cn\";\nimport { finite } from \"./attachment\";\nimport { PinnedNote, type PinnedNoteProps } from \"./pinned-note\";\nimport { Polaroid, type PolaroidProps } from \"./polaroid\";\nimport { ShopSign, type ShopSignProps } from \"./shop-sign\";\n\nexport interface WallPosition {\n /** Stable identity for this object. */\n id: string;\n /** Horizontal placement as a percentage (0–100); clamped to the wall. Unused by the tidy layout. */\n x?: number;\n /** Vertical placement as a percentage (0–100); clamped to the wall. Unused by the tidy layout. */\n y?: number;\n /** Tilt in degrees; defaults to zero. */\n rotation?: number;\n /** Stacking and reading order, ascending; ties preserve input order. */\n z: number;\n}\n\n/** The item's kind chooses its component; its remaining fields are that component's props. */\nexport type WallItem = WallPosition & (\n | ({ /** A framed photo. */ kind: \"polaroid\" } & PolaroidProps)\n | ({ /** A short pinned message. */ kind: \"note\" } & PinnedNoteProps)\n | ({ /** The owner's sign. */ kind: \"sign\" } & ShopSignProps)\n);\n\ntype DistributiveOmit<T, K extends PropertyKey> = T extends unknown ? Omit<T, K> : never;\n\nexport interface WallProps extends Omit<React.ComponentProps<\"ul\">, \"children\" | \"style\" | \"role\"> {\n /** The read-only objects; never mutated. Sorted by z for reading, keyboard and phone order. */\n items: readonly WallItem[];\n /** CSS/SVG texture; no image download. Defaults to plaster. */\n texture?: \"brick\" | \"zellige\" | \"ridge\" | \"plaster\";\n /** Draws at most this many items (the first in z order); defaults to 12. The rest belongs to the host's « see the whole wall ». */\n max?: number;\n /** A fixed desktop surface height in pixels (minimum 320). Absent, the surface is a fixed 16:9 box. Phones grow with content. */\n height?: number;\n /** Desktop object width in pixels (minimum 120); defaults to 240 and never exceeds the surface. */\n itemWidth?: number;\n /**\n * `pinned` (default): objects placed at x / y on a fixed surface. `tidy`: the Cahier pinboard — a dense CSS grid (3 columns,\n * 2 on a phone, 1 on a very small one), a note may span two, each tilted 1–2° by its id (no random position), no JS layout.\n */\n layout?: \"pinned\" | \"tidy\";\n}\n\n/** A tilt of 1 to 2 degrees, either way, derived from the id: the same wall draws the same everywhere (server and client). */\nexport function tidyTilt(id: string): number {\n let h = 2166136261;\n for (let i = 0; i < id.length; i += 1) h = Math.imul(h ^ id.charCodeAt(i), 16777619);\n const n = (h >>> 0) % 4; // 0..3\n return [-2, -1, 1, 2][n]!;\n}\n\n/** The object of one item, straight: the wall places and tilts it. A sign on a wall is a paragraph, not a second h1. */\nfunction WallObject({ item }: { readonly item: DistributiveOmit<WallItem, keyof WallPosition> }) {\n if (item.kind === \"polaroid\") return <Polaroid {...item} rotation={0} />;\n if (item.kind === \"note\") return <PinnedNote {...item} rotation={0} />;\n return <ShopSign {...item} as={item.as ?? \"p\"} rotation={0} />;\n}\n\n/** A decorative textured surface over a real keyboard-reachable list; never an editor. */\nexport function Wall({ items, texture = \"plaster\", max = 12, height, itemWidth = 240, layout = \"pinned\", className, ...props }: WallProps) {\n const patternId = React.useId().replace(/:/g, \"\");\n const drawn = Math.max(0, Math.floor(finite(max)));\n return (\n <ul {...props} role=\"list\" className={cn(\"kz-wall\", className)} data-texture={texture} data-layout={layout === \"tidy\" ? \"tidy\" : undefined} data-count={Math.min(items.length, drawn)} data-fixed-height={height === undefined ? undefined : \"\"} style={{ ...(height === undefined ? null : { \"--kz-wall-height\": `${Math.max(320, finite(height))}px` }), \"--kz-wall-item-width\": `${Math.max(120, finite(itemWidth))}px` } as React.CSSProperties}>\n {[...items].sort((a, b) => finite(a.z) - finite(b.z)).slice(0, drawn).map(({ id, x = 0, y = 0, rotation, z: _z, ...item }, rank) => (\n <li key={id} className=\"kz-wall-item\" tabIndex={0} data-span={layout === \"tidy\" && item.kind === \"note\" ? \"2\" : undefined} style={{\n \"--kz-wall-x\": `${Math.min(100, Math.max(0, finite(x)))}%`,\n \"--kz-wall-y\": `${Math.min(100, Math.max(0, finite(y)))}%`,\n \"--kz-wall-rotation\": `${layout === \"tidy\" ? tidyTilt(id) : finite(rotation ?? 0)}deg`,\n zIndex: rank,\n } as React.CSSProperties}>\n <WallObject item={item} />\n </li>\n ))}\n {texture === \"brick\" && <li className=\"kz-wall-decoration\" aria-hidden=\"true\" role=\"presentation\"><svg width=\"100%\" height=\"100%\" aria-hidden=\"true\">\n <defs><pattern id={patternId} width=\"96\" height=\"48\" patternUnits=\"userSpaceOnUse\">\n <path d=\"M0 0H96M0 24H96M0 48H96M48 0V24M0 24V48M96 24V48\" fill=\"none\" stroke=\"var(--kz-border-default)\" strokeWidth=\"2\" />\n </pattern></defs><rect width=\"100%\" height=\"100%\" fill={`url(#${patternId})`} />\n </svg></li>}\n {texture === \"zellige\" && <li className=\"kz-wall-decoration\" aria-hidden=\"true\" role=\"presentation\"><svg width=\"100%\" height=\"100%\" aria-hidden=\"true\">\n <defs><pattern id={patternId} width=\"64\" height=\"64\" patternUnits=\"userSpaceOnUse\">\n <path d=\"M32 3 39 15 52 12 49 25 61 32 49 39 52 52 39 49 32 61 25 49 12 52 15 39 3 32 15 25 12 12 25 15Z\" fill=\"var(--kz-accent-soft)\" stroke=\"var(--kz-border-default)\" />\n <path d=\"m32 18 14 14-14 14-14-14Z\" fill=\"var(--kz-surface-2)\" stroke=\"var(--kz-accent-2)\" />\n </pattern></defs><rect width=\"100%\" height=\"100%\" fill={`url(#${patternId})`} />\n </svg></li>}\n {texture === \"ridge\" && <li className=\"kz-wall-decoration\" aria-hidden=\"true\" role=\"presentation\"><svg viewBox=\"0 0 1000 600\" preserveAspectRatio=\"none\" width=\"100%\" height=\"100%\" aria-hidden=\"true\">\n <path d=\"M0 380 170 100 290 300 450 70 620 330 790 120 1000 350V600H0Z\" fill=\"var(--kz-accent-soft)\" />\n <path d=\"M0 470 200 280 370 440 600 190 760 400 920 260 1000 390V600H0Z\" fill=\"var(--kz-surface-2)\" />\n <path d=\"M0 540 180 430 360 520 540 390 760 520 900 410 1000 480V600H0Z\" fill=\"var(--kz-surface-3)\" />\n </svg></li>}\n </ul>\n );\n}\n"],"mappings":";;;;;;;;;;AAEO,SAAS,SAAS,MAAsB;AAC7C,MAAI,IAAI;AACR,WAAS,IAAI,GAAG,IAAI,KAAK,QAAQ,IAAK,KAAI,KAAK,KAAK,IAAI,KAAK,WAAW,CAAC,GAAG,QAAQ;AACpF,UAAS,MAAM,KAAK,OAAQ,MAAO;AACrC;;;ACgCM,SACoB,KADpB;AARC,SAAS,UAAU,MAAc,MAAuB;AAC7D,SAAO,QAAQ,KAAK,MAAM,SAAS,IAAI,IAAI,EAAE,IAAI;AACnD;AAGO,SAAS,MAAM,EAAE,UAAU,OAAO,QAAQ,MAAM,OAAO,IAAI,QAAQ,IAAI,MAAM,OAAO,WAAW,OAAO,GAAG,MAAM,GAAe;AACnI,SACE,qBAAC,OAAI,WAAW,GAAG,YAAY,SAAS,GAAG,OAAe,GAAG,OAC3D;AAAA,yBAAC,SAAI,WAAU,iBAAgB,aAAW,MAAM,OAAO,EAAE,CAAC,iBAA2B,GAAG,GAAG,UAAU,MAAM,IAAI,CAAC,MAAM,GACnH;AAAA,eAAS,QAAQ,oBAAC,UAAK,WAAU,gBAAe,eAAW,MAAC,IAAK;AAAA,MACjE;AAAA,OACH;AAAA,IACC;AAAA,KACH;AAEJ;;;ACdQ,SACE,OAAAA,MADF,QAAAC,aAAA;AALD,SAAS,WAAW,E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AsB;AAAA,OACtG,GAAM;AAAA,KACR;AAEJ;","names":["jsx","jsxs","jsx","jsx","jsxs","React","jsx","jsxs","React","jsx","jsxs"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@krizaka/ui",
3
- "version": "3.76.0",
3
+ "version": "3.77.0",
4
4
  "description": "The Krizaka front-end platform's components: the primitives (button, card, dialog, toast, menu, field, tabs, chip, switch, slider, command palette, theme, countdown…) on the semantic --kz-* tokens, the animated marks (Krizaka, Orazaka, Yomizaka, Akinaza) and the motion signature — web and /native.",
5
5
  "keywords": [
6
6
  "krizaka",
@@ -413,6 +413,18 @@
413
413
  "types": "./dist/map.d.ts",
414
414
  "import": "./dist/map.js"
415
415
  },
416
+ "./map/sheet": {
417
+ "types": "./dist/map/sheet.d.ts",
418
+ "import": "./dist/map/sheet.js"
419
+ },
420
+ "./map/pin": {
421
+ "types": "./dist/map/pin.d.ts",
422
+ "import": "./dist/map/pin.js"
423
+ },
424
+ "./map/cards": {
425
+ "types": "./dist/map/cards.d.ts",
426
+ "import": "./dist/map/cards.js"
427
+ },
416
428
  "./search-field": {
417
429
  "types": "./dist/search-field.d.ts",
418
430
  "import": "./dist/search-field.js"
@@ -976,8 +988,8 @@
976
988
  "*.css"
977
989
  ],
978
990
  "peerDependencies": {
979
- "@krizaka/query": ">=0.2.2",
980
- "@krizaka/tailwind": ">=3.76.0",
991
+ "@krizaka/query": ">=0.3.0",
992
+ "@krizaka/tailwind": ">=3.77.0",
981
993
  "@maplibre/maplibre-react-native": ">=11",
982
994
  "@shopify/flash-list": ">=2",
983
995
  "expo-camera": ">=16",
@@ -1040,7 +1052,7 @@
1040
1052
  "tsup": "^9.0.0",
1041
1053
  "typescript": "^5.9.0",
1042
1054
  "vitest": "^5.0.5",
1043
- "@krizaka/query": "0.2.2"
1055
+ "@krizaka/query": "0.3.0"
1044
1056
  },
1045
1057
  "engines": {
1046
1058
  "node": ">=22"
@@ -2934,10 +2946,43 @@
2934
2946
  "@krizaka/ui"
2935
2947
  ]
2936
2948
  },
2949
+ {
2950
+ "name": "./map/sheet",
2951
+ "path": "dist/map/sheet.js",
2952
+ "limit": "1.1 kB",
2953
+ "gzip": true,
2954
+ "ignore": [
2955
+ "tailwind-variants",
2956
+ "clsx",
2957
+ "react-dom"
2958
+ ]
2959
+ },
2960
+ {
2961
+ "name": "./map/pin",
2962
+ "path": "dist/map/pin.js",
2963
+ "limit": "1.2 kB",
2964
+ "gzip": true,
2965
+ "ignore": [
2966
+ "tailwind-variants",
2967
+ "clsx",
2968
+ "react-dom"
2969
+ ]
2970
+ },
2971
+ {
2972
+ "name": "./map/cards",
2973
+ "path": "dist/map/cards.js",
2974
+ "limit": "1.4 kB",
2975
+ "gzip": true,
2976
+ "ignore": [
2977
+ "tailwind-variants",
2978
+ "clsx",
2979
+ "react-dom"
2980
+ ]
2981
+ },
2937
2982
  {
2938
2983
  "name": "./map",
2939
2984
  "path": "dist/map.js",
2940
- "limit": "18 kB",
2985
+ "limit": "17.2 kB",
2941
2986
  "gzip": true,
2942
2987
  "ignore": [
2943
2988
  "tailwind-variants",
@@ -2950,7 +2995,7 @@
2950
2995
  {
2951
2996
  "name": "./native/map",
2952
2997
  "path": "dist/native/map.js",
2953
- "limit": "13.5 kB",
2998
+ "limit": "13.2 kB",
2954
2999
  "gzip": true,
2955
3000
  "ignore": [
2956
3001
  "react-native",
@@ -3367,8 +3412,8 @@
3367
3412
  "tailwind-variants": "^3.3.1",
3368
3413
  "zod": "^4.6.7",
3369
3414
  "@krizaka/intl": "^0.4.1",
3370
- "@krizaka/pacer": "^0.1.0",
3371
- "@krizaka/tokens": "^3.76.0"
3415
+ "@krizaka/tokens": "^3.77.0",
3416
+ "@krizaka/pacer": "^0.1.0"
3372
3417
  },
3373
3418
  "scripts": {
3374
3419
  "build": "node -e \"const fs=require('node:fs');fs.rmSync('dist',{recursive:true,force:true});for(const f of fs.readdirSync('registry/examples',{recursive:true}))if(/\\.(js|d\\.ts)$/.test(f))fs.rmSync('registry/examples/'+f)\" && tsup && node -e \"require('node:fs').copyFileSync('src/motion.css','dist/motion.css');require('node:fs').copyFileSync('src/blocks.css','dist/blocks.css');require('node:fs').copyFileSync('src/story.css','dist/story.css')\" && node scripts/build-registry.mjs",
@@ -350,7 +350,7 @@
350
350
  }
351
351
  ],
352
352
  "dependencies": [
353
- "@krizaka/tokens@^3.76.0"
353
+ "@krizaka/tokens@^3.77.0"
354
354
  ],
355
355
  "registryDependencies": [
356
356
  "account-menu",