@krizaka/ui 3.64.0 → 3.64.1

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 (371) hide show
  1. package/dist/app-header.d.ts +3 -3
  2. package/dist/blocks.css +41 -0
  3. package/dist/chunk-5D7NMUF6.js +35 -0
  4. package/dist/chunk-5D7NMUF6.js.map +1 -0
  5. package/dist/chunk-A7MQPIEG.js +31 -0
  6. package/dist/chunk-A7MQPIEG.js.map +1 -0
  7. package/dist/chunk-B47WSPMP.js +60 -0
  8. package/dist/chunk-B47WSPMP.js.map +1 -0
  9. package/dist/chunk-HKEAYSFS.js +19 -0
  10. package/dist/chunk-HKEAYSFS.js.map +1 -0
  11. package/dist/chunk-ZYHWJ7U5.js +20 -0
  12. package/dist/chunk-ZYHWJ7U5.js.map +1 -0
  13. package/dist/cover-hero.d.ts +4 -0
  14. package/dist/cover-hero.js +5 -2
  15. package/dist/cover-hero.js.map +1 -1
  16. package/dist/file-upload.d.ts +2 -2
  17. package/dist/frame-D6Xv83t8.d.ts +52 -0
  18. package/dist/language-switch.d.ts +9 -9
  19. package/dist/service-card.d.ts +25 -1
  20. package/dist/service-card.js +7 -3
  21. package/dist/service-card.js.map +1 -1
  22. package/dist/shop/booking.d.ts +36 -0
  23. package/dist/shop/booking.js +37 -0
  24. package/dist/shop/booking.js.map +1 -0
  25. package/dist/shop/bulletin.d.ts +28 -0
  26. package/dist/shop/bulletin.js +29 -0
  27. package/dist/shop/bulletin.js.map +1 -0
  28. package/dist/shop/demo.d.ts +135 -0
  29. package/dist/shop/demo.js +141 -0
  30. package/dist/shop/demo.js.map +1 -0
  31. package/dist/shop/faq.d.ts +20 -0
  32. package/dist/shop/faq.js +33 -0
  33. package/dist/shop/faq.js.map +1 -0
  34. package/dist/shop/gallery.d.ts +46 -0
  35. package/dist/shop/gallery.js +76 -0
  36. package/dist/shop/gallery.js.map +1 -0
  37. package/dist/shop/hero.d.ts +36 -0
  38. package/dist/shop/hero.js +70 -0
  39. package/dist/shop/hero.js.map +1 -0
  40. package/dist/shop/map-gate.d.ts +22 -0
  41. package/dist/shop/map-gate.js +34 -0
  42. package/dist/shop/map-gate.js.map +1 -0
  43. package/dist/shop/policies.d.ts +18 -0
  44. package/dist/shop/policies.js +16 -0
  45. package/dist/shop/policies.js.map +1 -0
  46. package/dist/shop/reviews.d.ts +25 -0
  47. package/dist/shop/reviews.js +47 -0
  48. package/dist/shop/reviews.js.map +1 -0
  49. package/dist/shop/services.d.ts +57 -0
  50. package/dist/shop/services.js +118 -0
  51. package/dist/shop/services.js.map +1 -0
  52. package/dist/shop/social.d.ts +27 -0
  53. package/dist/shop/social.js +27 -0
  54. package/dist/shop/social.js.map +1 -0
  55. package/dist/shop/story.d.ts +24 -0
  56. package/dist/shop/story.js +26 -0
  57. package/dist/shop/story.js.map +1 -0
  58. package/dist/shop/team.d.ts +24 -0
  59. package/dist/shop/team.js +26 -0
  60. package/dist/shop/team.js.map +1 -0
  61. package/dist/shop/video.d.ts +40 -0
  62. package/dist/shop/video.js +33 -0
  63. package/dist/shop/video.js.map +1 -0
  64. package/dist/shop/visit.d.ts +29 -0
  65. package/dist/shop/visit.js +38 -0
  66. package/dist/shop/visit.js.map +1 -0
  67. package/dist/shop-composer.d.ts +490 -0
  68. package/dist/shop-composer.js +2061 -0
  69. package/dist/shop-composer.js.map +1 -0
  70. package/dist/shop.d.ts +316 -0
  71. package/dist/shop.js +389 -0
  72. package/dist/shop.js.map +1 -0
  73. package/package.json +261 -3
  74. package/registry/account-menu.json +1 -1
  75. package/registry/account-settings.json +1 -1
  76. package/registry/achievement.json +1 -1
  77. package/registry/action-bar.json +1 -1
  78. package/registry/activity-feed.json +1 -1
  79. package/registry/agenda.json +1 -1
  80. package/registry/alert.json +1 -1
  81. package/registry/analysis-report.json +1 -1
  82. package/registry/anatomy-plate.json +1 -1
  83. package/registry/app-header.json +1 -1
  84. package/registry/app-shell.json +1 -1
  85. package/registry/argument-card.json +1 -1
  86. package/registry/audio-player.json +1 -1
  87. package/registry/auth-layout.json +1 -1
  88. package/registry/avatar.json +1 -1
  89. package/registry/badge.json +1 -1
  90. package/registry/bird-plate.json +1 -1
  91. package/registry/button.json +1 -1
  92. package/registry/captcha.json +1 -1
  93. package/registry/card-grid.json +1 -1
  94. package/registry/card.json +1 -1
  95. package/registry/catalogue-page.json +1 -1
  96. package/registry/changelog-page.json +1 -1
  97. package/registry/chapter.json +1 -1
  98. package/registry/chat.json +1 -1
  99. package/registry/checkbox.json +1 -1
  100. package/registry/chip-link.json +1 -1
  101. package/registry/chip-row.json +1 -1
  102. package/registry/chip.json +1 -1
  103. package/registry/choice-grid.json +1 -1
  104. package/registry/code-block.json +1 -1
  105. package/registry/combobox.json +1 -1
  106. package/registry/command.json +1 -1
  107. package/registry/comparison-table.json +1 -1
  108. package/registry/component-page.json +1 -1
  109. package/registry/confirm-button.json +1 -1
  110. package/registry/contact-page.json +1 -1
  111. package/registry/continue-prompt.json +1 -1
  112. package/registry/countdown.json +1 -1
  113. package/registry/cover-hero.json +2 -2
  114. package/registry/cta-panel.json +1 -1
  115. package/registry/dashboard-layout.json +1 -1
  116. package/registry/data-table.json +1 -1
  117. package/registry/date-picker.json +1 -1
  118. package/registry/decision-list.json +1 -1
  119. package/registry/description-list.json +1 -1
  120. package/registry/detail-layout.json +1 -1
  121. package/registry/dialog.json +1 -1
  122. package/registry/docs-article-page.json +1 -1
  123. package/registry/docs-hub-page.json +1 -1
  124. package/registry/docs-layout.json +1 -1
  125. package/registry/docs-nav.json +1 -1
  126. package/registry/document-viewer.json +1 -1
  127. package/registry/doodle.json +1 -1
  128. package/registry/drop-overlay.json +1 -1
  129. package/registry/dropdown-menu.json +1 -1
  130. package/registry/elephant.json +2 -2
  131. package/registry/embed-facade.json +1 -1
  132. package/registry/empty-state.json +1 -1
  133. package/registry/engine-flow.json +1 -1
  134. package/registry/environment-notice.json +1 -1
  135. package/registry/error-page.json +1 -1
  136. package/registry/examples/shop/booking-panel.d.ts +4 -0
  137. package/registry/examples/shop/booking-panel.js +12 -0
  138. package/registry/examples/shop/booking-panel.tsx +11 -0
  139. package/registry/examples/shop/booking-sticky.d.ts +4 -0
  140. package/registry/examples/shop/booking-sticky.js +15 -0
  141. package/registry/examples/shop/booking-sticky.tsx +12 -0
  142. package/registry/examples/shop/booking-strip.d.ts +4 -0
  143. package/registry/examples/shop/booking-strip.js +13 -0
  144. package/registry/examples/shop/booking-strip.tsx +12 -0
  145. package/registry/examples/shop/bulletin-banner.d.ts +4 -0
  146. package/registry/examples/shop/bulletin-banner.js +13 -0
  147. package/registry/examples/shop/bulletin-banner.tsx +12 -0
  148. package/registry/examples/shop/bulletin-board.d.ts +4 -0
  149. package/registry/examples/shop/bulletin-board.js +13 -0
  150. package/registry/examples/shop/bulletin-board.tsx +12 -0
  151. package/registry/examples/shop/cards.d.ts +4 -0
  152. package/registry/examples/shop/cards.js +13 -0
  153. package/registry/examples/shop/cards.tsx +12 -0
  154. package/registry/examples/shop/carousel.d.ts +4 -0
  155. package/registry/examples/shop/carousel.js +13 -0
  156. package/registry/examples/shop/carousel.tsx +12 -0
  157. package/registry/examples/shop/document.d.ts +4 -0
  158. package/registry/examples/shop/document.js +20 -0
  159. package/registry/examples/shop/document.tsx +13 -0
  160. package/registry/examples/shop/faq.d.ts +4 -0
  161. package/registry/examples/shop/faq.js +13 -0
  162. package/registry/examples/shop/faq.tsx +12 -0
  163. package/registry/examples/shop/gallery-filmstrip.d.ts +4 -0
  164. package/registry/examples/shop/gallery-filmstrip.js +13 -0
  165. package/registry/examples/shop/gallery-filmstrip.tsx +12 -0
  166. package/registry/examples/shop/gallery-grid.d.ts +4 -0
  167. package/registry/examples/shop/gallery-grid.js +13 -0
  168. package/registry/examples/shop/gallery-grid.tsx +12 -0
  169. package/registry/examples/shop/gallery-mosaic.d.ts +4 -0
  170. package/registry/examples/shop/gallery-mosaic.js +13 -0
  171. package/registry/examples/shop/gallery-mosaic.tsx +12 -0
  172. package/registry/examples/shop/gallery-wall.d.ts +4 -0
  173. package/registry/examples/shop/gallery-wall.js +13 -0
  174. package/registry/examples/shop/gallery-wall.tsx +12 -0
  175. package/registry/examples/shop/hero-banner.d.ts +4 -0
  176. package/registry/examples/shop/hero-banner.js +15 -0
  177. package/registry/examples/shop/hero-banner.tsx +14 -0
  178. package/registry/examples/shop/hero-poster.d.ts +4 -0
  179. package/registry/examples/shop/hero-poster.js +15 -0
  180. package/registry/examples/shop/hero-poster.tsx +14 -0
  181. package/registry/examples/shop/hero-split.d.ts +4 -0
  182. package/registry/examples/shop/hero-split.js +15 -0
  183. package/registry/examples/shop/hero-split.tsx +14 -0
  184. package/registry/examples/shop/hero-tv.d.ts +4 -0
  185. package/registry/examples/shop/hero-tv.js +15 -0
  186. package/registry/examples/shop/hero-tv.tsx +14 -0
  187. package/registry/examples/shop/index.d.ts +4 -0
  188. package/registry/examples/shop/index.js +13 -0
  189. package/registry/examples/shop/index.tsx +12 -0
  190. package/registry/examples/shop/menu-columns.d.ts +4 -0
  191. package/registry/examples/shop/menu-columns.js +13 -0
  192. package/registry/examples/shop/menu-columns.tsx +12 -0
  193. package/registry/examples/shop/menu.d.ts +4 -0
  194. package/registry/examples/shop/menu.js +25 -0
  195. package/registry/examples/shop/menu.tsx +21 -0
  196. package/registry/examples/shop/page.d.ts +4 -0
  197. package/registry/examples/shop/page.js +32 -0
  198. package/registry/examples/shop/page.tsx +27 -0
  199. package/registry/examples/shop/policies.d.ts +4 -0
  200. package/registry/examples/shop/policies.js +13 -0
  201. package/registry/examples/shop/policies.tsx +12 -0
  202. package/registry/examples/shop/reviews-quote.d.ts +4 -0
  203. package/registry/examples/shop/reviews-quote.js +13 -0
  204. package/registry/examples/shop/reviews-quote.tsx +12 -0
  205. package/registry/examples/shop/reviews-strip.d.ts +4 -0
  206. package/registry/examples/shop/reviews-strip.js +13 -0
  207. package/registry/examples/shop/reviews-strip.tsx +12 -0
  208. package/registry/examples/shop/reviews-summary-cards.d.ts +4 -0
  209. package/registry/examples/shop/reviews-summary-cards.js +13 -0
  210. package/registry/examples/shop/reviews-summary-cards.tsx +12 -0
  211. package/registry/examples/shop/social-facade.d.ts +4 -0
  212. package/registry/examples/shop/social-facade.js +13 -0
  213. package/registry/examples/shop/social-facade.tsx +12 -0
  214. package/registry/examples/shop/social-links.d.ts +4 -0
  215. package/registry/examples/shop/social-links.js +12 -0
  216. package/registry/examples/shop/social-links.tsx +11 -0
  217. package/registry/examples/shop/story-owner.d.ts +4 -0
  218. package/registry/examples/shop/story-owner.js +13 -0
  219. package/registry/examples/shop/story-owner.tsx +12 -0
  220. package/registry/examples/shop/story-quote.d.ts +4 -0
  221. package/registry/examples/shop/story-quote.js +13 -0
  222. package/registry/examples/shop/story-quote.tsx +12 -0
  223. package/registry/examples/shop/team-cards.d.ts +4 -0
  224. package/registry/examples/shop/team-cards.js +13 -0
  225. package/registry/examples/shop/team-cards.tsx +12 -0
  226. package/registry/examples/shop/team-row.d.ts +4 -0
  227. package/registry/examples/shop/team-row.js +13 -0
  228. package/registry/examples/shop/team-row.tsx +12 -0
  229. package/registry/examples/shop/video-shorts.d.ts +4 -0
  230. package/registry/examples/shop/video-shorts.js +14 -0
  231. package/registry/examples/shop/video-shorts.tsx +13 -0
  232. package/registry/examples/shop/video-tv.d.ts +4 -0
  233. package/registry/examples/shop/video-tv.js +13 -0
  234. package/registry/examples/shop/video-tv.tsx +12 -0
  235. package/registry/examples/shop/visit-card.d.ts +4 -0
  236. package/registry/examples/shop/visit-card.js +13 -0
  237. package/registry/examples/shop/visit-card.tsx +12 -0
  238. package/registry/examples/shop/visit-map.d.ts +4 -0
  239. package/registry/examples/shop/visit-map.js +13 -0
  240. package/registry/examples/shop/visit-map.tsx +12 -0
  241. package/registry/examples/shop/visit-split.d.ts +4 -0
  242. package/registry/examples/shop/visit-split.js +13 -0
  243. package/registry/examples/shop/visit-split.tsx +12 -0
  244. package/registry/examples/shop-composer/composer.d.ts +4 -0
  245. package/registry/examples/shop-composer/composer.js +17 -0
  246. package/registry/examples/shop-composer/composer.tsx +21 -0
  247. package/registry/field.json +1 -1
  248. package/registry/file-upload.json +1 -1
  249. package/registry/filter-bar.json +1 -1
  250. package/registry/flock.json +1 -1
  251. package/registry/footnote.json +1 -1
  252. package/registry/force-update-screen.json +1 -1
  253. package/registry/form.json +1 -1
  254. package/registry/gallery-page.json +1 -1
  255. package/registry/genui.json +1 -1
  256. package/registry/glossary-term.json +1 -1
  257. package/registry/glossary.json +1 -1
  258. package/registry/glow-card.json +1 -1
  259. package/registry/goal-gauge.json +1 -1
  260. package/registry/grade-stamp.json +1 -1
  261. package/registry/how-it-works-page.json +1 -1
  262. package/registry/image-cropper.json +1 -1
  263. package/registry/index.json +96 -6
  264. package/registry/iso.json +1 -1
  265. package/registry/kanban.json +1 -1
  266. package/registry/kbd.json +1 -1
  267. package/registry/kind-config-editor.json +1 -1
  268. package/registry/kpi-explained.json +1 -1
  269. package/registry/landing-page.json +1 -1
  270. package/registry/landscape.json +1 -1
  271. package/registry/language-switch.json +1 -1
  272. package/registry/legal-page.json +1 -1
  273. package/registry/link-card.json +1 -1
  274. package/registry/list.json +1 -1
  275. package/registry/loader.json +1 -1
  276. package/registry/longform-page.json +1 -1
  277. package/registry/maintenance-screen.json +1 -1
  278. package/registry/map.json +2 -2
  279. package/registry/margin-layout.json +1 -1
  280. package/registry/markdown.json +1 -1
  281. package/registry/marketing-layout.json +1 -1
  282. package/registry/marquee.json +1 -1
  283. package/registry/mascot-quote.json +1 -1
  284. package/registry/mascot-state.json +1 -1
  285. package/registry/mascots.json +1 -1
  286. package/registry/match-dialog.json +1 -1
  287. package/registry/media-capture.json +1 -1
  288. package/registry/media-gallery.json +1 -1
  289. package/registry/media-grid.json +1 -1
  290. package/registry/meta-row.json +1 -1
  291. package/registry/meter.json +1 -1
  292. package/registry/nav-bar.json +2 -2
  293. package/registry/next-actions.json +1 -1
  294. package/registry/notification-preferences.json +1 -1
  295. package/registry/number-ticker.json +1 -1
  296. package/registry/opening-hours.json +1 -1
  297. package/registry/page-header.json +1 -1
  298. package/registry/page-hero.json +1 -1
  299. package/registry/page-index.json +1 -1
  300. package/registry/page.json +1 -1
  301. package/registry/pagination.json +1 -1
  302. package/registry/photo-grid.json +1 -1
  303. package/registry/pointer-light.json +1 -1
  304. package/registry/popover.json +1 -1
  305. package/registry/pricing-page.json +1 -1
  306. package/registry/product-page.json +1 -1
  307. package/registry/profile-card.json +1 -1
  308. package/registry/progress.json +1 -1
  309. package/registry/promise-card.json +1 -1
  310. package/registry/quota-meter.json +1 -1
  311. package/registry/radio-group.json +1 -1
  312. package/registry/rail-nav.json +2 -2
  313. package/registry/recipes.json +1 -1
  314. package/registry/retro-tv.json +1 -1
  315. package/registry/reviews.json +1 -1
  316. package/registry/router.json +1 -1
  317. package/registry/scroll-stage.json +1 -1
  318. package/registry/search-field.json +1 -1
  319. package/registry/section-backdrop.json +1 -1
  320. package/registry/separator.json +1 -1
  321. package/registry/service-card.json +24 -6
  322. package/registry/settings-layout.json +1 -1
  323. package/registry/shop-composer.json +424 -0
  324. package/registry/shop.json +776 -0
  325. package/registry/showcase.json +1 -1
  326. package/registry/signature.json +1 -1
  327. package/registry/site-cahier.json +1 -1
  328. package/registry/site-footer.json +2 -2
  329. package/registry/sites.json +1 -1
  330. package/registry/skeleton.json +1 -1
  331. package/registry/skip-link.json +1 -1
  332. package/registry/slider.json +1 -1
  333. package/registry/slot-picker.json +1 -1
  334. package/registry/slot.json +1 -1
  335. package/registry/specimen-tag.json +1 -1
  336. package/registry/speed-lines.json +1 -1
  337. package/registry/spinner.json +1 -1
  338. package/registry/split-view.json +1 -1
  339. package/registry/stage-banner.json +1 -1
  340. package/registry/stat.json +1 -1
  341. package/registry/status-chip.json +1 -1
  342. package/registry/status-page.json +1 -1
  343. package/registry/step-progress.json +1 -1
  344. package/registry/step-showcase.json +1 -1
  345. package/registry/stepper.json +1 -1
  346. package/registry/sticky-action.json +1 -1
  347. package/registry/stuck.json +1 -1
  348. package/registry/swipe-deck.json +1 -1
  349. package/registry/switch.json +1 -1
  350. package/registry/tabs.json +1 -1
  351. package/registry/tag-input.json +1 -1
  352. package/registry/tag-selector.json +1 -1
  353. package/registry/taped-photo.json +1 -1
  354. package/registry/terminal-replay.json +1 -1
  355. package/registry/text-style.json +1 -1
  356. package/registry/theme.json +1 -1
  357. package/registry/toast.json +1 -1
  358. package/registry/toc.json +1 -1
  359. package/registry/tooltip.json +1 -1
  360. package/registry/tree-view.json +1 -1
  361. package/registry/update-prompt.json +1 -1
  362. package/registry/upload-queue.json +1 -1
  363. package/registry/usage.json +1 -1
  364. package/registry/verified-badge.json +1 -1
  365. package/registry/versus-card.json +1 -1
  366. package/registry/vertical-video.json +1 -1
  367. package/registry/video-player.json +1 -1
  368. package/registry/video-trimmer.json +1 -1
  369. package/registry/virtual.json +1 -1
  370. package/registry/wall.json +3 -3
  371. package/registry/waveform.json +1 -1
@@ -97,16 +97,16 @@ declare function AppHeader({ name, mark, href, homeLink, chips, search, language
97
97
  declare const appHeaderCount: tailwind_variants.TVReturnType<{
98
98
  [key: string]: {
99
99
  [key: string]: tailwind_variants.ClassValue | {
100
- icon?: tailwind_variants.ClassValue;
101
100
  root?: tailwind_variants.ClassValue;
101
+ icon?: tailwind_variants.ClassValue;
102
102
  count?: tailwind_variants.ClassValue;
103
103
  };
104
104
  };
105
105
  } | {
106
106
  [x: string]: {
107
107
  [x: string]: tailwind_variants.ClassValue | {
108
- icon?: tailwind_variants.ClassValue;
109
108
  root?: tailwind_variants.ClassValue;
109
+ icon?: tailwind_variants.ClassValue;
110
110
  count?: tailwind_variants.ClassValue;
111
111
  };
112
112
  };
@@ -117,8 +117,8 @@ declare const appHeaderCount: tailwind_variants.TVReturnType<{
117
117
  }, undefined, {
118
118
  [key: string]: {
119
119
  [key: string]: tailwind_variants.ClassValue | {
120
- icon?: tailwind_variants.ClassValue;
121
120
  root?: tailwind_variants.ClassValue;
121
+ icon?: tailwind_variants.ClassValue;
122
122
  count?: tailwind_variants.ClassValue;
123
123
  };
124
124
  };
package/dist/blocks.css CHANGED
@@ -1878,3 +1878,44 @@ svg[data-bird="beaver"]{--kzb-pivot:60px 56px;--kzb-head-a:kzb-beaver-head 10s e
1878
1878
  .kz-review-reply { margin-inline-start: 1rem; padding-inline-start: .75rem; border-inline-start: 2px solid var(--kz-paper-rule-margin); display: grid; gap: .25rem; }
1879
1879
  .kz-review-reply-label { margin: 0; font: .8125rem/1.4 var(--kz-font-mono); color: var(--kz-text-secondary); }
1880
1880
  .kz-review-reply-text { margin: 0; font: .9375rem/1.55 var(--kz-font-sans); color: var(--kz-accent-text); white-space: pre-wrap; }
1881
+
1882
+ /* ─── Shop page (ADR-007 §2, krizaka-ui#742): the frame and the rhythm of every section of a shop page ───
1883
+ The density sets one rhythm for the page: `compact` 40 px between two sections (24 on a phone), `airy` 64 px (40);
1884
+ heading to content 16 px; a hairline between sections, inside the gutters. A section never sets its own margin. */
1885
+ .kz-shop { --kz-shop-gap: 24px; --kz-shop-g: var(--kz-page-gutter, clamp(16px, 3.2vw, 32px)); }
1886
+ .kz-shop[data-density="airy"] { --kz-shop-gap: 40px; }
1887
+ @media (min-width: 40rem) {
1888
+ .kz-shop { --kz-shop-gap: 40px; }
1889
+ .kz-shop[data-density="airy"] { --kz-shop-gap: 64px; }
1890
+ }
1891
+ .kz-shop-section { position: relative; padding-block: calc(var(--kz-shop-gap) / 2); }
1892
+ .kz-shop-section + .kz-shop-section::before {
1893
+ content: ""; position: absolute; top: 0; left: 50%; height: 1px; transform: translateX(-50%);
1894
+ width: min(calc(100% - 2 * var(--kz-shop-g)), var(--kz-page-max, 72rem)); background: var(--kz-border-subtle);
1895
+ }
1896
+ .kz-shop-section[data-first] { padding-block: 0; }
1897
+ .kz-shop-section[data-first] + .kz-shop-section::before { display: none; }
1898
+ .kz-shop-section :is(h2, h3)[id] { scroll-margin-top: var(--kz-anchor-offset, 96px); }
1899
+ .kz-shop-section .kz-heading { margin-bottom: 16px; gap: 4px; }
1900
+ .kz-shop-section .kz-heading-title { max-width: none; font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
1901
+ .kz-shop-section .kz-heading-lead { font-size: 14.5px; line-height: 1.55; }
1902
+ /* The look preset's photo treatment (a CSS filter on the media box: no re-encoded image) — see @krizaka/tokens presets/shop. */
1903
+ .kz-shop [data-shop-photo] { filter: var(--kz-shop-photo-filter, none); border-radius: var(--kz-shop-photo-radius, var(--kz-radius-md, 8px)); }
1904
+ @media (min-width: 64rem) { .kz-shop-aside { position: sticky; top: var(--kz-anchor-offset, 96px); } }
1905
+
1906
+ /* The look presets' typography and photo treatment (@krizaka/tokens `shop-presets.css`, krizaka-ui#745): the title weight and the
1907
+ grain are the preset's (`--kz-shop-title-weight`, `--kz-shop-grain`); without a preset the page keeps its default. */
1908
+ .kz-shop-title { font-weight: var(--kz-shop-title-weight, 700); }
1909
+ .kz-shop-section .kz-heading-title { font-weight: var(--kz-shop-title-weight); }
1910
+ .kz-shop [data-shop-photo]::after {
1911
+ content: var(--kz-shop-grain, none); position: absolute; inset: 0; pointer-events: none; mix-blend-mode: overlay; opacity: 0.07;
1912
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
1913
+ }
1914
+ /* Washi: a thin paper, the page's surface warmed by a few percent of the accent (the contrast test reads the same mix). */
1915
+ [data-paper="washi"] { background-color: color-mix(in srgb, var(--kz-surface-0) 94%, var(--kz-accent) 6%); }
1916
+
1917
+ /* The composer's thumbnails (ADR-007 §5): a section drawn with demo data at the size of a card — 960 px of page in 160 × 96. */
1918
+ .kz-shop-thumb { position: relative; width: 160px; height: 96px; margin-inline: auto; overflow: hidden; border-radius: 6px; background: var(--kz-surface-0); pointer-events: none; }
1919
+ .kz-shop-thumb-inner { position: absolute; top: 0; left: 0; width: 960px; transform-origin: top left; transform: scale(0.16667); }
1920
+ /* The section the composer outlines in the preview page (the bridge sets `data-shop-selected` on the block wrapped around it): a ring, never a layout change. */
1921
+ [data-shop-key][data-shop-selected] { outline: 2px solid var(--kz-accent); outline-offset: -2px; }
@@ -0,0 +1,35 @@
1
+ import {
2
+ cn
3
+ } from "./chunk-B47WSPMP.js";
4
+
5
+ // src/shop/photo.tsx
6
+ import { jsx } from "react/jsx-runtime";
7
+ var RATIOS = {
8
+ "1/1": "aspect-square",
9
+ "4/5": "aspect-[4/5]",
10
+ "3/4": "aspect-[3/4]",
11
+ "4/3": "aspect-[4/3]",
12
+ "3/2": "aspect-[3/2]",
13
+ "16/9": "aspect-video",
14
+ "21/9": "aspect-[21/9]"
15
+ };
16
+ function Photo({ photo, ratio, sizes, priority, className, ...props }) {
17
+ return /* @__PURE__ */ jsx("div", { "data-shop-photo": "", "data-ratio": ratio, className: cn("relative w-full overflow-hidden bg-media", RATIOS[ratio], className), ...props, children: /* @__PURE__ */ jsx(
18
+ "img",
19
+ {
20
+ src: photo.src,
21
+ srcSet: photo.srcSet,
22
+ sizes: photo.srcSet ? sizes : void 0,
23
+ alt: photo.alt,
24
+ loading: priority ? void 0 : "lazy",
25
+ fetchPriority: priority ? "high" : void 0,
26
+ decoding: "async",
27
+ className: "absolute inset-0 h-full w-full object-cover"
28
+ }
29
+ ) });
30
+ }
31
+
32
+ export {
33
+ Photo
34
+ };
35
+ //# sourceMappingURL=chunk-5D7NMUF6.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/shop/photo.tsx"],"sourcesContent":["// Server-safe. A photo in a box of one fixed ratio (CLS 0): the box is the ratio, the image fills it (ADR-007 §6).\nimport type * as React from \"react\";\n\nimport { cn } from \"../cn\";\nimport type { ShopPhoto } from \"./frame\";\n\nconst RATIOS = {\n \"1/1\": \"aspect-square\",\n \"4/5\": \"aspect-[4/5]\",\n \"3/4\": \"aspect-[3/4]\",\n \"4/3\": \"aspect-[4/3]\",\n \"3/2\": \"aspect-[3/2]\",\n \"16/9\": \"aspect-video\",\n \"21/9\": \"aspect-[21/9]\",\n} as const;\nexport type ShopRatio = keyof typeof RATIOS;\n\nexport type PhotoProps = Omit<React.ComponentProps<\"div\">, \"children\"> & {\n photo: ShopPhoto;\n ratio: ShopRatio;\n /** The `sizes` of the image for this variant (ADR-007 §6). */\n sizes?: string;\n /** The first screen's image: high priority, never lazy. */\n priority?: boolean;\n};\n\n/** A photo in a fixed-ratio box; the look preset's grade and radius apply (`data-shop-photo`). */\nexport function Photo({ photo, ratio, sizes, priority, className, ...props }: PhotoProps) {\n return (\n <div data-shop-photo=\"\" data-ratio={ratio} className={cn(\"relative w-full overflow-hidden bg-media\", RATIOS[ratio], className)} {...props}>\n <img\n src={photo.src}\n srcSet={photo.srcSet}\n sizes={photo.srcSet ? sizes : undefined}\n alt={photo.alt}\n loading={priority ? undefined : \"lazy\"}\n fetchPriority={priority ? \"high\" : undefined}\n decoding=\"async\"\n className=\"absolute inset-0 h-full w-full object-cover\"\n />\n </div>\n );\n}\n"],"mappings":";;;;;AA8BM;AAxBN,IAAM,SAAS;AAAA,EACb,OAAO;AAAA,EACP,OAAO;AAAA,EACP,OAAO;AAAA,EACP,OAAO;AAAA,EACP,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,QAAQ;AACV;AAaO,SAAS,MAAM,EAAE,OAAO,OAAO,OAAO,UAAU,WAAW,GAAG,MAAM,GAAe;AACxF,SACE,oBAAC,SAAI,mBAAgB,IAAG,cAAY,OAAO,WAAW,GAAG,4CAA4C,OAAO,KAAK,GAAG,SAAS,GAAI,GAAG,OAClI;AAAA,IAAC;AAAA;AAAA,MACC,KAAK,MAAM;AAAA,MACX,QAAQ,MAAM;AAAA,MACd,OAAO,MAAM,SAAS,QAAQ;AAAA,MAC9B,KAAK,MAAM;AAAA,MACX,SAAS,WAAW,SAAY;AAAA,MAChC,eAAe,WAAW,SAAS;AAAA,MACnC,UAAS;AAAA,MACT,WAAU;AAAA;AAAA,EACZ,GACF;AAEJ;","names":[]}
@@ -0,0 +1,31 @@
1
+ import {
2
+ Page,
3
+ SectionHeading,
4
+ cn
5
+ } from "./chunk-B47WSPMP.js";
6
+
7
+ // src/shop/frame.tsx
8
+ import * as React from "react";
9
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
10
+ var PAPERS = { plain: void 0, seyes: "ruled", kraft: "kraft", washi: "washi" };
11
+ function ShopFrame({ preset, density = "compact", accent, paper = "plain", className, ...props }) {
12
+ return /* @__PURE__ */ jsx("div", { "data-shop-preset": preset, "data-shop-accent": accent, "data-paper": PAPERS[paper], "data-density": density, className: cn("kz-shop", className), ...props });
13
+ }
14
+ function ShopSection({ id, title, eyebrow, lead, actions, bleed, first, className, children, ...props }) {
15
+ const auto = React.useId();
16
+ const headingId = title ? `${id ?? auto}-title` : void 0;
17
+ const heading = title ? /* @__PURE__ */ jsx(SectionHeading, { id: headingId, size: "sm", eyebrow, title, lead, actions }) : null;
18
+ return /* @__PURE__ */ jsx("section", { id, "aria-labelledby": headingId, "data-first": first ? "" : void 0, "data-bleed": bleed ? "" : void 0, className: cn("kz-shop-section", className), ...props, children: bleed ? /* @__PURE__ */ jsxs(Fragment, { children: [
19
+ heading && /* @__PURE__ */ jsx(Page, { children: heading }),
20
+ children
21
+ ] }) : /* @__PURE__ */ jsxs(Page, { children: [
22
+ heading,
23
+ children
24
+ ] }) });
25
+ }
26
+
27
+ export {
28
+ ShopFrame,
29
+ ShopSection
30
+ };
31
+ //# sourceMappingURL=chunk-A7MQPIEG.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/shop/frame.tsx"],"sourcesContent":["// Server-safe. The frame and the rhythm of a shop page (ADR-007 §2): every section draws inside the page frame between the\n// gutters (`bleed` for a photo only), one vertical rhythm set by the density, a hairline between sections. No section sets\n// its own margin: it only says what it holds.\nimport * as React from \"react\";\n\nimport { cn } from \"../cn\";\nimport { Page, SectionHeading } from \"../page/page\";\n\n/** A photo the product resolved: the address, its words, and the widths it has (`srcSet`). */\nexport type ShopPhoto = {\n src: string;\n /** What it shows, in words; empty when it only sets a mood. */\n alt: string;\n /** The widths the product holds (`/a-480.avif 480w, /a-960.avif 960w`); the section brings the `sizes`. */\n srcSet?: string;\n};\n\nexport type ShopFrameProps = React.HTMLAttributes<HTMLDivElement> & {\n /** The look preset (`salon-vitrine`, `@krizaka/tokens`): its tokens apply to everything inside. */\n preset?: string;\n /**\n * The rhythm: `compact` 40 px between sections (24 on a phone), `airy` 64 px (40). The document's, or the preset's.\n * @default \"compact\"\n */\n density?: \"compact\" | \"airy\";\n /**\n * One of the accents the preset lists as tested (`krizaka`, `akinaza:accent-2`…): the owner's choice within the look. Without it, the preset's own.\n * @see @krizaka/tokens `shopPresets`\n */\n accent?: string;\n /**\n * The paper under the page, from the preset: `seyes` (ruled), `kraft` (brown — mount `PaperGrain` once), `washi` (a tint of the accent) or `plain`.\n * @default \"plain\"\n */\n paper?: \"plain\" | \"seyes\" | \"kraft\" | \"washi\";\n};\n\nconst PAPERS = { plain: undefined, seyes: \"ruled\", kraft: \"kraft\", washi: \"washi\" } as const;\n\n/** The page: sets the look preset, the accent, the paper and the density the sections below read. */\nexport function ShopFrame({ preset, density = \"compact\", accent, paper = \"plain\", className, ...props }: ShopFrameProps) {\n return <div data-shop-preset={preset} data-shop-accent={accent} data-paper={PAPERS[paper]} data-density={density} className={cn(\"kz-shop\", className)} {...props} />;\n}\n\nexport type ShopSectionProps = Omit<React.HTMLAttributes<HTMLElement>, \"title\"> & {\n /** The section's id: the anchor, and the heading's id. */\n id?: string;\n /** The `h2`. Without one the section is named by `aria-label`. */\n title?: React.ReactNode;\n /** A short lower-case note above the title. */\n eyebrow?: React.ReactNode;\n /** One sentence under the title. */\n lead?: React.ReactNode;\n /** A link or a button on the right of the heading (« All times → »). */\n actions?: React.ReactNode;\n /** The content reaches the edges of the screen (a photo, a strip); the heading stays on the frame. */\n bleed?: boolean;\n /** The section is the page's first (the hero): no hairline, no padding. */\n first?: boolean;\n};\n\n/** A section of a shop page. */\nexport function ShopSection({ id, title, eyebrow, lead, actions, bleed, first, className, children, ...props }: ShopSectionProps) {\n const auto = React.useId();\n const headingId = title ? `${id ?? auto}-title` : undefined;\n const heading = title ? <SectionHeading id={headingId} size=\"sm\" eyebrow={eyebrow} title={title} lead={lead} actions={actions} /> : null;\n return (\n <section id={id} aria-labelledby={headingId} data-first={first ? \"\" : undefined} data-bleed={bleed ? \"\" : undefined} className={cn(\"kz-shop-section\", className)} {...props}>\n {bleed ? (\n <>\n {heading && <Page>{heading}</Page>}\n {children}\n </>\n ) : (\n <Page>\n {heading}\n {children}\n </Page>\n )}\n </section>\n );\n}\n"],"mappings":";;;;;;;AAGA,YAAY,WAAW;AAsCd,SA4BD,UA5BC,KA4BD,YA5BC;AAJT,IAAM,SAAS,EAAE,OAAO,QAAW,OAAO,SAAS,OAAO,SAAS,OAAO,QAAQ;AAG3E,SAAS,UAAU,EAAE,QAAQ,UAAU,WAAW,QAAQ,QAAQ,SAAS,WAAW,GAAG,MAAM,GAAmB;AACvH,SAAO,oBAAC,SAAI,oBAAkB,QAAQ,oBAAkB,QAAQ,cAAY,OAAO,KAAK,GAAG,gBAAc,SAAS,WAAW,GAAG,WAAW,SAAS,GAAI,GAAG,OAAO;AACpK;AAoBO,SAAS,YAAY,EAAE,IAAI,OAAO,SAAS,MAAM,SAAS,OAAO,OAAO,WAAW,UAAU,GAAG,MAAM,GAAqB;AAChI,QAAM,OAAa,YAAM;AACzB,QAAM,YAAY,QAAQ,GAAG,MAAM,IAAI,WAAW;AAClD,QAAM,UAAU,QAAQ,oBAAC,kBAAe,IAAI,WAAW,MAAK,MAAK,SAAkB,OAAc,MAAY,SAAkB,IAAK;AACpI,SACE,oBAAC,aAAQ,IAAQ,mBAAiB,WAAW,cAAY,QAAQ,KAAK,QAAW,cAAY,QAAQ,KAAK,QAAW,WAAW,GAAG,mBAAmB,SAAS,GAAI,GAAG,OACnK,kBACC,iCACG;AAAA,eAAW,oBAAC,QAAM,mBAAQ;AAAA,IAC1B;AAAA,KACH,IAEA,qBAAC,QACE;AAAA;AAAA,IACA;AAAA,KACH,GAEJ;AAEJ;","names":[]}
@@ -0,0 +1,60 @@
1
+ // src/cn.ts
2
+ import { clsx } from "clsx";
3
+ import { cnMerge } from "tailwind-variants";
4
+ var twMergeConfig = {
5
+ extend: {
6
+ classGroups: {
7
+ "bg-image": ["bg-sheen", "bg-fill-shade", "bg-halo"],
8
+ shadow: ["shadow-raised", "shadow-floating", "shadow-overlay", "shadow-glow", "shadow-glow-lg"],
9
+ "inset-shadow": ["inset-shadow-edge", "inset-shadow-edge-fill", "inset-shadow-well"]
10
+ }
11
+ }
12
+ };
13
+ var mergeConfig = { twMergeConfig };
14
+ function cn(...inputs) {
15
+ return cnMerge(clsx(inputs))(mergeConfig) ?? "";
16
+ }
17
+
18
+ // src/page/page.tsx
19
+ import * as React from "react";
20
+ import { Fragment as Fragment2, jsx, jsxs } from "react/jsx-runtime";
21
+ function Page({ size = "default", as: Tag = "div", paper, margin, className, ...props }) {
22
+ return /* @__PURE__ */ jsx(
23
+ Tag,
24
+ {
25
+ "data-size": size === "default" ? void 0 : size,
26
+ "data-paper": paper,
27
+ "data-margin": margin ? "" : void 0,
28
+ className: cn("kz-frame", className),
29
+ ...props
30
+ }
31
+ );
32
+ }
33
+ function SectionHeading({ id, eyebrow, number, title, lead, actions, level = 2, size = "md", align = "start", reveal, className, ...props }) {
34
+ const H = level === 2 ? "h2" : "h3";
35
+ return /* @__PURE__ */ jsxs(
36
+ "div",
37
+ {
38
+ className: cn("kz-heading", className),
39
+ "data-size": size === "md" ? void 0 : size,
40
+ "data-align": align === "start" ? void 0 : align,
41
+ "data-actions": actions ? "" : void 0,
42
+ "data-reveal": reveal ? "" : void 0,
43
+ ...props,
44
+ children: [
45
+ number && /* @__PURE__ */ jsx("span", { className: "kz-heading-number", children: number }),
46
+ eyebrow && /* @__PURE__ */ jsx("p", { className: "kz-eyebrow", children: eyebrow }),
47
+ /* @__PURE__ */ jsx(H, { id, className: "kz-heading-title", children: title }),
48
+ lead && /* @__PURE__ */ jsx("p", { className: "kz-heading-lead", children: lead }),
49
+ actions && /* @__PURE__ */ jsx("div", { className: "kz-heading-actions", children: actions })
50
+ ]
51
+ }
52
+ );
53
+ }
54
+
55
+ export {
56
+ cn,
57
+ Page,
58
+ SectionHeading
59
+ };
60
+ //# sourceMappingURL=chunk-B47WSPMP.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/cn.ts","../src/page/page.tsx"],"sourcesContent":["import { type ClassValue, clsx } from \"clsx\";\nimport { cnMerge, type TWMergeConfig } from \"tailwind-variants\";\n\nexport type { ClassValue };\n\n/**\n * The preset's own utilities, told to the merge engine: the material (BRAND.md §6: `bg-sheen`, `bg-fill-shade`,\n * `bg-halo` are background images; `shadow-raised` · `-floating` · `-overlay` · `-glow` are shadows; `inset-shadow-edge`\n * · `-edge-fill` · `-well` are inset shadows). Unknown, tailwind-merge would take `bg-sheen` for a colour and drop the\n * `bg-surface-2` it lies on.\n */\nexport const twMergeConfig: TWMergeConfig = {\n extend: {\n classGroups: {\n \"bg-image\": [\"bg-sheen\", \"bg-fill-shade\", \"bg-halo\"],\n shadow: [\"shadow-raised\", \"shadow-floating\", \"shadow-overlay\", \"shadow-glow\", \"shadow-glow-lg\"],\n \"inset-shadow\": [\"inset-shadow-edge\", \"inset-shadow-edge-fill\", \"inset-shadow-well\"],\n },\n },\n};\n\nconst mergeConfig = { twMergeConfig };\n\n/**\n * Merges Tailwind classes: the last one wins — a product's `className` overrides the primitive's. The merge engine is\n * tailwind-merge as tailwind-variants ships it (the one `tv` uses), so the platform carries a single copy of it.\n * tailwind-variants bundles that engine since 3.3 (it never imports the `tailwind-merge` package, an optional peer):\n * hence `tailwind-variants ^3.3.1` and no `tailwind-merge` dependency — `scripts/consumer.mjs` checks it on a clean\n * install of the packed package.\n */\nexport function cn(...inputs: ClassValue[]): string {\n return cnMerge(clsx(inputs))(mergeConfig) ?? \"\";\n}\n\n","// Server-safe. The frame of every page (blocks.css): one width, one pair of gutters, one vertical rhythm — so the\n// navigation, the hero and every section line up on the same edges, at any width.\nimport * as React from \"react\";\n\nimport { cn } from \"../cn\";\nimport { SectionBackdrop, type SectionBackdropProps } from \"../section-backdrop/section-backdrop\";\n\nexport type PageSize = \"narrow\" | \"default\" | \"wide\" | \"full\";\n\n/**\n * The paper under a page or a section (Cahier, ADR-004): `ruled` (Seyès squares), `lines` (lines only), `dot-grid` (a dot\n * every 24 px), `kraft` (brown paper with a grain: mount `PaperGrain` once), or plain.\n */\nexport type PagePaper = \"ruled\" | \"lines\" | \"dot-grid\" | \"kraft\";\n\ntype PaperProps = {\n /** The notebook's paper under the content: `ruled` (Seyès: 32 px squares, three fine lines), `lines` (lines only, a page to read), `dot-grid` (dots), `kraft` (brown, grained). */\n paper?: PagePaper;\n /** The red margin line on the left, where section numbers and notes hang (`§ 2`, `fig. 1`). */\n margin?: boolean;\n};\n\nexport type PageProps = React.HTMLAttributes<HTMLElement> & {\n /**\n * The width of the content: `default` (72rem, `--kz-page-max`), `narrow` (48rem, a reading column), `wide`\n * (88rem, documentation with a sidebar), `full` (the gutters only).\n * @default \"default\"\n */\n size?: PageSize;\n /** The element: `div` (default), `main`, `header`, `footer`, `section` or `article`. */\n as?: \"div\" | \"main\" | \"header\" | \"footer\" | \"section\" | \"article\";\n} & PaperProps;\n\n/** The page frame: centred, at most `--kz-page-max` wide, with the gutters of `--kz-page-gutter` (16 → 32 px). */\nexport function Page({ size = \"default\", as: Tag = \"div\", paper, margin, className, ...props }: PageProps) {\n return (\n <Tag\n data-size={size === \"default\" ? undefined : size}\n data-paper={paper}\n data-margin={margin ? \"\" : undefined}\n className={cn(\"kz-frame\", className)}\n {...props}\n />\n );\n}\n\nexport type SectionHeadingProps = Omit<React.HTMLAttributes<HTMLDivElement>, \"title\"> & {\n /** The id of the title: the section's anchor and its accessible name. */\n id?: string;\n /** A short note above the title (the section's subject), in the note face, lower case — never an uppercase overline. */\n eyebrow?: React.ReactNode;\n /** The section's number, hung in the margin as a notebook numbers its pages (`§ 2`). */\n number?: React.ReactNode;\n /** The title. */\n title: React.ReactNode;\n /** One or two sentences under the title. */\n lead?: React.ReactNode;\n /** Actions on the right of the heading (a link to everything, a filter). */\n actions?: React.ReactNode;\n /**\n * The level of the title.\n * @default 2\n */\n level?: 2 | 3;\n /**\n * `md` for a section that argues, `sm` for a section of a reading page.\n * @default \"md\"\n */\n size?: \"sm\" | \"md\";\n /**\n * `center` for a heading that stands alone above a grid.\n * @default \"start\"\n */\n align?: \"start\" | \"center\";\n /** Rises into place once, as it enters the viewport (`[data-reveal]`, MotionObserver). Never on the first screen. */\n reveal?: boolean;\n};\n\n/** The head of a section: eyebrow (mono, the accent), title, lead — and its actions on the right. */\nexport function SectionHeading({ id, eyebrow, number, title, lead, actions, level = 2, size = \"md\", align = \"start\", reveal, className, ...props }: SectionHeadingProps) {\n const H = level === 2 ? \"h2\" : \"h3\";\n return (\n <div\n className={cn(\"kz-heading\", className)}\n data-size={size === \"md\" ? undefined : size}\n data-align={align === \"start\" ? undefined : align}\n data-actions={actions ? \"\" : undefined}\n data-reveal={reveal ? \"\" : undefined}\n {...props}\n >\n {number && <span className=\"kz-heading-number\">{number}</span>}\n {eyebrow && <p className=\"kz-eyebrow\">{eyebrow}</p>}\n <H id={id} className=\"kz-heading-title\">\n {title}\n </H>\n {lead && <p className=\"kz-heading-lead\">{lead}</p>}\n {actions && <div className=\"kz-heading-actions\">{actions}</div>}\n </div>\n );\n}\n\nexport type SectionProps = Omit<React.HTMLAttributes<HTMLElement>, \"title\"> & {\n /** The id of the title (and the anchor of the section). Required with a `title`. */\n id?: string;\n /** The heading's eyebrow. */\n eyebrow?: React.ReactNode;\n /** The section's number in the margin (`§ 2`). */\n number?: React.ReactNode;\n /** The section's title: an `h2` (a `SectionHeading`), which names the section for assistive technology. */\n title?: React.ReactNode;\n /** The heading's lead. */\n lead?: React.ReactNode;\n /** The heading's actions. */\n actions?: React.ReactNode;\n /**\n * The heading's size: `md` for a page that argues, `sm` for a reading page.\n * @default \"md\"\n */\n headingSize?: \"sm\" | \"md\";\n /**\n * The heading's alignment.\n * @default \"start\"\n */\n headingAlign?: \"start\" | \"center\";\n /** The heading rises into place once (never on the first screen). */\n reveal?: boolean;\n /** A hairline above the section, inside the gutters: the transition between two sections of the same surface. */\n divider?: boolean;\n /**\n * The vertical space above and below: `sm` (a reading page), `md`, `lg` (a page's main moments).\n * @default \"md\"\n */\n spacing?: \"sm\" | \"md\" | \"lg\";\n /**\n * The width of the content.\n * @default \"default\"\n */\n size?: PageSize;\n /** The brand's colour transition behind the section (SectionBackdrop): `true`, or its props (`direction`, `grid`…). */\n backdrop?: boolean | Omit<SectionBackdropProps, \"as\" | \"children\">;\n} & PaperProps;\n\n/**\n * A section of a page: full-bleed (its backdrop reaches the edges), its content in the page frame, its heading on top.\n * Sections follow each other on one rhythm; a `divider` or a `backdrop` marks the transition.\n */\nexport function Section({\n id,\n eyebrow,\n number,\n title,\n lead,\n actions,\n headingSize,\n headingAlign,\n reveal,\n divider,\n spacing = \"md\",\n size,\n backdrop,\n paper,\n margin,\n className,\n children,\n ...props\n}: SectionProps) {\n const body = (\n <Page size={size} data-margin={margin ? \"\" : undefined}>\n {title && <SectionHeading id={id} eyebrow={eyebrow} number={number} title={title} lead={lead} actions={actions} size={headingSize} align={headingAlign} reveal={reveal} />}\n {children}\n </Page>\n );\n const shared = {\n \"aria-labelledby\": title && id ? id : undefined,\n \"data-divider\": divider ? \"\" : undefined,\n \"data-spacing\": spacing === \"md\" ? undefined : spacing,\n \"data-paper\": paper,\n ...props,\n };\n if (backdrop) {\n const backdropProps = backdrop === true ? {} : backdrop;\n return (\n <SectionBackdrop {...backdropProps} {...shared} className={cn(\"kz-section\", className)}>\n {body}\n </SectionBackdrop>\n );\n }\n return (\n <section {...shared} className={cn(\"kz-section\", className)}>\n {body}\n </section>\n );\n}\n\nexport type TicksProps = {\n /** A sentence where words between backticks are code: \"Every request carries a `requestId`.\" */\n children: string;\n};\n\n/** A sentence of a message catalogue where words between backticks read as code — no markup in the translations. */\nexport function Ticks({ children }: TicksProps) {\n const parts = children.split(\"`\");\n return (\n <>\n {parts.map((part, i) =>\n i % 2 ? (\n <code key={i} className=\"kz-ic\">\n {part}\n </code>\n ) : (\n <React.Fragment key={i}>{part}</React.Fragment>\n ),\n )}\n </>\n );\n}\n\nexport interface Fact {\n /** A few words: `npm 2.5.0`, `Maven Central`, `in progress`. */\n label: string;\n /**\n * `ok` — published, usable today; `wip` — in progress, said honestly; `neutral` — a fact.\n * @default \"neutral\"\n */\n tone?: \"ok\" | \"wip\" | \"neutral\";\n /** Where the fact is proven (a registry page): the fact becomes a link. */\n href?: string;\n}\n\nexport type FactsProps = React.HTMLAttributes<HTMLUListElement> & {\n /** The facts, in reading order. */\n items: readonly Fact[];\n};\n\n/** Compact facts on one line — a dot that says the state, a few mono words. Links open in a new tab. */\nexport function Facts({ items, className, ...props }: FactsProps) {\n return (\n <ul className={cn(\"kz-facts\", className)} {...props}>\n {items.map((fact) => {\n const body = (\n <>\n <span className=\"kz-fact-dot\" aria-hidden /> {fact.label}\n </>\n );\n const tone = fact.tone && fact.tone !== \"neutral\" ? fact.tone : undefined;\n return (\n <li key={fact.label}>\n {fact.href ? (\n <a href={fact.href} target=\"_blank\" rel=\"noopener noreferrer\" className=\"kz-fact\" data-tone={tone}>\n {body}\n </a>\n ) : (\n <span className=\"kz-fact\" data-tone={tone}>\n {body}\n </span>\n )}\n </li>\n );\n })}\n </ul>\n );\n}\n"],"mappings":";AAAA,SAA0B,YAAY;AACtC,SAAS,eAAmC;AAUrC,IAAM,gBAA+B;AAAA,EAC1C,QAAQ;AAAA,IACN,aAAa;AAAA,MACX,YAAY,CAAC,YAAY,iBAAiB,SAAS;AAAA,MACnD,QAAQ,CAAC,iBAAiB,mBAAmB,kBAAkB,eAAe,gBAAgB;AAAA,MAC9F,gBAAgB,CAAC,qBAAqB,0BAA0B,mBAAmB;AAAA,IACrF;AAAA,EACF;AACF;AAEA,IAAM,cAAc,EAAE,cAAc;AAS7B,SAAS,MAAM,QAA8B;AAClD,SAAO,QAAQ,KAAK,MAAM,CAAC,EAAE,WAAW,KAAK;AAC/C;;;AC9BA,YAAY,WAAW;AAkCnB,SAuKA,YAAAA,WAvKA,KA8CA,YA9CA;AAFG,SAAS,KAAK,EAAE,OAAO,WAAW,IAAI,MAAM,OAAO,OAAO,QAAQ,WAAW,GAAG,MAAM,GAAc;AACzG,SACE;AAAA,IAAC;AAAA;AAAA,MACC,aAAW,SAAS,YAAY,SAAY;AAAA,MAC5C,cAAY;AAAA,MACZ,eAAa,SAAS,KAAK;AAAA,MAC3B,WAAW,GAAG,YAAY,SAAS;AAAA,MAClC,GAAG;AAAA;AAAA,EACN;AAEJ;AAmCO,SAAS,eAAe,EAAE,IAAI,SAAS,QAAQ,OAAO,MAAM,SAAS,QAAQ,GAAG,OAAO,MAAM,QAAQ,SAAS,QAAQ,WAAW,GAAG,MAAM,GAAwB;AACvK,QAAM,IAAI,UAAU,IAAI,OAAO;AAC/B,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAW,GAAG,cAAc,SAAS;AAAA,MACrC,aAAW,SAAS,OAAO,SAAY;AAAA,MACvC,cAAY,UAAU,UAAU,SAAY;AAAA,MAC5C,gBAAc,UAAU,KAAK;AAAA,MAC7B,eAAa,SAAS,KAAK;AAAA,MAC1B,GAAG;AAAA,MAEH;AAAA,kBAAU,oBAAC,UAAK,WAAU,qBAAqB,kBAAO;AAAA,QACtD,WAAW,oBAAC,OAAE,WAAU,cAAc,mBAAQ;AAAA,QAC/C,oBAAC,KAAE,IAAQ,WAAU,oBAClB,iBACH;AAAA,QACC,QAAQ,oBAAC,OAAE,WAAU,mBAAmB,gBAAK;AAAA,QAC7C,WAAW,oBAAC,SAAI,WAAU,sBAAsB,mBAAQ;AAAA;AAAA;AAAA,EAC3D;AAEJ;","names":["Fragment"]}
@@ -0,0 +1,19 @@
1
+ // src/block-link.tsx
2
+ import { jsx } from "react/jsx-runtime";
3
+ var isExternal = (href) => /^[a-z][a-z0-9+.-]*:/i.test(href);
4
+ function BlockLink({
5
+ href,
6
+ linkAs: Link = "a",
7
+ external = isExternal(href),
8
+ rel,
9
+ ...props
10
+ }) {
11
+ if (external) return /* @__PURE__ */ jsx("a", { href, target: "_blank", rel: rel ?? "noopener noreferrer", ...props });
12
+ const Comp = Link;
13
+ return /* @__PURE__ */ jsx(Comp, { href, rel, ...props });
14
+ }
15
+
16
+ export {
17
+ BlockLink
18
+ };
19
+ //# sourceMappingURL=chunk-HKEAYSFS.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/block-link.tsx"],"sourcesContent":["// The links of the page blocks (PageHero's back link, LinkCard, ArgumentCard, ActionBar): an internal path renders\n// through the app's router link (`linkAs`, e.g. Next's `Link`), anything else is an `<a>` that opens in a new tab.\n// Shared by the block entries; never exported on its own.\nimport type * as React from \"react\";\n\n/** The app's link component (Next's `Link`, React Router's `Link`…): receives `href`, `className` and the children. */\nexport type LinkComponent = React.ElementType<{ href: string; className?: string; children?: React.ReactNode; \"aria-label\"?: string; \"aria-describedby\"?: string }>;\n\n/** An address that leaves the app: an absolute URL or a protocol (`mailto:`). */\nexport const isExternal = (href: string) => /^[a-z][a-z0-9+.-]*:/i.test(href);\n\nexport function BlockLink({\n href,\n linkAs: Link = \"a\",\n external = isExternal(href),\n rel,\n ...props\n}: Omit<React.ComponentProps<\"a\">, \"href\"> & { href: string; linkAs?: LinkComponent; external?: boolean }) {\n if (external) return <a href={href} target=\"_blank\" rel={rel ?? \"noopener noreferrer\"} {...props} />;\n const Comp = Link as React.ElementType;\n return <Comp href={href} rel={rel} {...props} />;\n}\n"],"mappings":";AAkBuB;AAThB,IAAM,aAAa,CAAC,SAAiB,uBAAuB,KAAK,IAAI;AAErE,SAAS,UAAU;AAAA,EACxB;AAAA,EACA,QAAQ,OAAO;AAAA,EACf,WAAW,WAAW,IAAI;AAAA,EAC1B;AAAA,EACA,GAAG;AACL,GAA2G;AACzG,MAAI,SAAU,QAAO,oBAAC,OAAE,MAAY,QAAO,UAAS,KAAK,OAAO,uBAAwB,GAAG,OAAO;AAClG,QAAM,OAAO;AACb,SAAO,oBAAC,QAAK,MAAY,KAAW,GAAG,OAAO;AAChD;","names":[]}
@@ -0,0 +1,20 @@
1
+ // src/shop/limits.ts
2
+ var SHOP_LIMITS = {
3
+ /** Sections on a page, the hero included. */
4
+ sections: 16,
5
+ /** Blocks in one section. */
6
+ blocks: 24,
7
+ /** Photos in a gallery. */
8
+ photos: 12,
9
+ /** Cards in `services · cards`. */
10
+ cards: 6,
11
+ /** Flyers on a bulletin board. */
12
+ flyers: 3,
13
+ /** Reels in `video · shorts`. */
14
+ reels: 6
15
+ };
16
+
17
+ export {
18
+ SHOP_LIMITS
19
+ };
20
+ //# sourceMappingURL=chunk-ZYHWJ7U5.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/shop/limits.ts"],"sourcesContent":["// The bounds of a shop page (ADR-007 §3): the schema, the database and the composer read the same numbers.\n\n/**\n * The most a page, a section or a card list may hold. A salon page that stays a page that sells: bounded on purpose.\n * @fixed: ADR-007 §3 — product limits of the document, never a business setting.\n */\nexport const SHOP_LIMITS = {\n /** Sections on a page, the hero included. */\n sections: 16,\n /** Blocks in one section. */\n blocks: 24,\n /** Photos in a gallery. */\n photos: 12,\n /** Cards in `services · cards`. */\n cards: 6,\n /** Flyers on a bulletin board. */\n flyers: 3,\n /** Reels in `video · shorts`. */\n reels: 6,\n} as const;\n"],"mappings":";AAMO,IAAM,cAAc;AAAA;AAAA,EAEzB,UAAU;AAAA;AAAA,EAEV,QAAQ;AAAA;AAAA,EAER,QAAQ;AAAA;AAAA,EAER,OAAO;AAAA;AAAA,EAEP,QAAQ;AAAA;AAAA,EAER,OAAO;AACT;","names":[]}
@@ -97,6 +97,10 @@ type CoverMedia = {
97
97
  webm?: string;
98
98
  mp4?: string;
99
99
  };
100
+ /** An art-directed crop for a phone (a 4:5 of the same photo): used below 40 rem instead of `src`. */
101
+ phone?: string;
102
+ /** Where the photo is cropped to when the box is not its ratio. @default "center" */
103
+ focus?: "center" | "top" | "bottom";
100
104
  };
101
105
  type CoverHeroProps = Omit<React.ComponentProps<"header">, "title"> & {
102
106
  /** The cover. Without it the hero wears the brand's colours. */
@@ -17,7 +17,7 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
17
17
  var coverHero = tv({
18
18
  slots: {
19
19
  root: "relative isolate flex min-h-[26rem] items-end overflow-hidden bg-surface-1 text-fg data-[cover]:text-fg-on-media sm:min-h-[30rem] lg:min-h-[34rem]",
20
- media: "absolute inset-0 -z-20 h-full w-full object-cover",
20
+ media: "absolute inset-0 -z-20 h-full w-full object-cover data-[focus=top]:object-top data-[focus=bottom]:object-bottom",
21
21
  veil: "absolute inset-0 -z-10 bg-linear-to-t from-scrim-strong via-scrim/55 to-scrim/10",
22
22
  plain: "absolute inset-0 -z-10 bg-linear-to-br from-accent/25 via-surface-1 to-accent-2/20",
23
23
  body: "flex flex-col gap-4 pb-8 pt-24 sm:pb-12",
@@ -46,7 +46,10 @@ function CoverHero({ cover, eyebrow, title, lead, facts, actions, back, linkAs,
46
46
  const play = usePlayLoop(Boolean(cover?.video));
47
47
  return /* @__PURE__ */ jsxs("header", { "data-cover": cover ? "" : void 0, className: s.root({ className }), ...props, children: [
48
48
  cover ? /* @__PURE__ */ jsxs(Fragment, { children: [
49
- /* @__PURE__ */ jsx("img", { src: cover.src, alt: cover.alt ?? "", className: s.media(), fetchPriority: "high", decoding: "async" }),
49
+ /* @__PURE__ */ jsxs("picture", { children: [
50
+ cover.phone && /* @__PURE__ */ jsx("source", { media: "(max-width: 39.99rem)", srcSet: cover.phone }),
51
+ /* @__PURE__ */ jsx("img", { src: cover.src, alt: cover.alt ?? "", className: s.media(), "data-focus": cover.focus === "center" ? void 0 : cover.focus, fetchPriority: "high", decoding: "async" })
52
+ ] }),
50
53
  play && cover.video && /* @__PURE__ */ jsxs("video", { className: s.media(), poster: cover.src, autoPlay: true, muted: true, loop: true, playsInline: true, preload: "metadata", "aria-hidden": true, tabIndex: -1, children: [
51
54
  cover.video.webm && /* @__PURE__ */ jsx("source", { src: cover.video.webm, type: "video/webm" }),
52
55
  cover.video.mp4 && /* @__PURE__ */ jsx("source", { src: cover.video.mp4, type: "video/mp4" })
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/cover-hero/cover-hero.tsx"],"sourcesContent":["// Client (the reader's motion preference). The first screen of a shop or a place: its cover — a photo, or a muted loop that\n// stays a still under reduced motion — behind the name, a one-line promise, a few facts and the main action. The words sit\n// on a veil that reads in both themes; without a cover the brand's colours take its place.\nimport * as React from \"react\";\nimport { tv } from \"tailwind-variants\";\n\nimport { BlockLink, type LinkComponent } from \"../block-link\";\nimport { ArrowGlyph } from \"../glyphs\";\nimport { Page } from \"../page/page\";\n\nexport const coverHero = tv({\n slots: {\n root: \"relative isolate flex min-h-[26rem] items-end overflow-hidden bg-surface-1 text-fg data-[cover]:text-fg-on-media sm:min-h-[30rem] lg:min-h-[34rem]\",\n media: \"absolute inset-0 -z-20 h-full w-full object-cover\",\n veil: \"absolute inset-0 -z-10 bg-linear-to-t from-scrim-strong via-scrim/55 to-scrim/10\",\n plain: \"absolute inset-0 -z-10 bg-linear-to-br from-accent/25 via-surface-1 to-accent-2/20\",\n body: \"flex flex-col gap-4 pb-8 pt-24 sm:pb-12\",\n back: \"inline-flex w-fit items-center gap-1.5 text-sm font-semibold text-current no-underline opacity-90 hover:opacity-100\",\n eyebrow: \"m-0 font-mono text-xs font-semibold opacity-90\",\n title: \"m-0 max-w-3xl font-display text-4xl font-black leading-[1.05] tracking-tight sm:text-5xl lg:text-6xl\",\n lead: \"m-0 max-w-2xl text-base leading-relaxed opacity-95 sm:text-lg\",\n facts: \"flex flex-wrap items-center gap-2\",\n actions: \"flex flex-wrap items-center gap-3 pt-1\",\n },\n});\nconst s = coverHero();\n\nexport type CoverMedia = {\n /** The still: the photo, or the poster of the loop (shown first, and alone under reduced motion). */\n src: string;\n /** What it shows, in words; empty when it only decorates. */\n alt?: string;\n /** A muted loop over the still: WebM first, MP4 for Safari. */\n video?: { webm?: string; mp4?: string };\n};\n\nexport type CoverHeroProps = Omit<React.ComponentProps<\"header\">, \"title\"> & {\n /** The cover. Without it the hero wears the brand's colours. */\n cover?: CoverMedia;\n /** A short mono line above the name (where the shop is: `Saint-Henri · Montréal`). */\n eyebrow?: React.ReactNode;\n /** The name: the page's `h1`. */\n title: React.ReactNode;\n /** One line: what it promises. */\n lead?: React.ReactNode;\n /** Chips under the lead: open now, the neighbourhood, a rating — only what is true. */\n facts?: React.ReactNode;\n /** The main action (`ButtonLink`). */\n actions?: React.ReactNode;\n /** The way back, above the eyebrow. */\n back?: { href: string; label: string };\n /** The app's link component for the back link. */\n linkAs?: LinkComponent;\n};\n\nfunction usePlayLoop(enabled: boolean) {\n const [play, setPlay] = React.useState(false);\n React.useEffect(() => {\n if (!enabled) return;\n const q = window.matchMedia(\"(prefers-reduced-motion: reduce)\");\n const sync = () => setPlay(!q.matches);\n sync();\n q.addEventListener(\"change\", sync);\n return () => q.removeEventListener(\"change\", sync);\n }, [enabled]);\n return play;\n}\n\n/** A shop's first screen: the cover, the name, the promise, the facts and the main action. */\nexport function CoverHero({ cover, eyebrow, title, lead, facts, actions, back, linkAs, className, ...props }: CoverHeroProps) {\n const play = usePlayLoop(Boolean(cover?.video));\n return (\n <header data-cover={cover ? \"\" : undefined} className={s.root({ className })} {...props}>\n {cover ? (\n <>\n <img src={cover.src} alt={cover.alt ?? \"\"} className={s.media()} fetchPriority=\"high\" decoding=\"async\" />\n {play && cover.video && (\n <video className={s.media()} poster={cover.src} autoPlay muted loop playsInline preload=\"metadata\" aria-hidden tabIndex={-1}>\n {cover.video.webm && <source src={cover.video.webm} type=\"video/webm\" />}\n {cover.video.mp4 && <source src={cover.video.mp4} type=\"video/mp4\" />}\n </video>\n )}\n <div aria-hidden className={s.veil()} />\n </>\n ) : (\n <div aria-hidden className={s.plain()} />\n )}\n <Page>\n <div className={s.body()}>\n {back && (\n <BlockLink href={back.href} linkAs={linkAs} className={s.back()}>\n <ArrowGlyph direction=\"left\" className=\"h-3.5 w-3.5\" /> {back.label}\n </BlockLink>\n )}\n {eyebrow && <p className={s.eyebrow()}>{eyebrow}</p>}\n <h1 className={s.title()}>{title}</h1>\n {lead && <p className={s.lead()}>{lead}</p>}\n {facts && <div className={s.facts()}>{facts}</div>}\n {actions && <div className={s.actions()}>{actions}</div>}\n </div>\n </Page>\n </header>\n );\n}\n"],"mappings":";;;;;;;;;;;;;AAGA,YAAY,WAAW;AACvB,SAAS,UAAU;AAsEX,mBACE,KAEE,YAHJ;AAhED,IAAM,YAAY,GAAG;AAAA,EAC1B,OAAO;AAAA,IACL,MAAM;AAAA,IACN,OAAO;AAAA,IACP,MAAM;AAAA,IACN,OAAO;AAAA,IACP,MAAM;AAAA,IACN,MAAM;AAAA,IACN,SAAS;AAAA,IACT,OAAO;AAAA,IACP,MAAM;AAAA,IACN,OAAO;AAAA,IACP,SAAS;AAAA,EACX;AACF,CAAC;AACD,IAAM,IAAI,UAAU;AA8BpB,SAAS,YAAY,SAAkB;AACrC,QAAM,CAAC,MAAM,OAAO,IAAU,eAAS,KAAK;AAC5C,EAAM,gBAAU,MAAM;AACpB,QAAI,CAAC,QAAS;AACd,UAAM,IAAI,OAAO,WAAW,kCAAkC;AAC9D,UAAM,OAAO,MAAM,QAAQ,CAAC,EAAE,OAAO;AACrC,SAAK;AACL,MAAE,iBAAiB,UAAU,IAAI;AACjC,WAAO,MAAM,EAAE,oBAAoB,UAAU,IAAI;AAAA,EACnD,GAAG,CAAC,OAAO,CAAC;AACZ,SAAO;AACT;AAGO,SAAS,UAAU,EAAE,OAAO,SAAS,OAAO,MAAM,OAAO,SAAS,MAAM,QAAQ,WAAW,GAAG,MAAM,GAAmB;AAC5H,QAAM,OAAO,YAAY,QAAQ,OAAO,KAAK,CAAC;AAC9C,SACE,qBAAC,YAAO,cAAY,QAAQ,KAAK,QAAW,WAAW,EAAE,KAAK,EAAE,UAAU,CAAC,GAAI,GAAG,OAC/E;AAAA,YACC,iCACE;AAAA,0BAAC,SAAI,KAAK,MAAM,KAAK,KAAK,MAAM,OAAO,IAAI,WAAW,EAAE,MAAM,GAAG,eAAc,QAAO,UAAS,SAAQ;AAAA,MACtG,QAAQ,MAAM,SACb,qBAAC,WAAM,WAAW,EAAE,MAAM,GAAG,QAAQ,MAAM,KAAK,UAAQ,MAAC,OAAK,MAAC,MAAI,MAAC,aAAW,MAAC,SAAQ,YAAW,eAAW,MAAC,UAAU,IACtH;AAAA,cAAM,MAAM,QAAQ,oBAAC,YAAO,KAAK,MAAM,MAAM,MAAM,MAAK,cAAa;AAAA,QACrE,MAAM,MAAM,OAAO,oBAAC,YAAO,KAAK,MAAM,MAAM,KAAK,MAAK,aAAY;AAAA,SACrE;AAAA,MAEF,oBAAC,SAAI,eAAW,MAAC,WAAW,EAAE,KAAK,GAAG;AAAA,OACxC,IAEA,oBAAC,SAAI,eAAW,MAAC,WAAW,EAAE,MAAM,GAAG;AAAA,IAEzC,oBAAC,QACC,+BAAC,SAAI,WAAW,EAAE,KAAK,GACpB;AAAA,cACC,qBAAC,aAAU,MAAM,KAAK,MAAM,QAAgB,WAAW,EAAE,KAAK,GAC5D;AAAA,4BAAC,cAAW,WAAU,QAAO,WAAU,eAAc;AAAA,QAAE;AAAA,QAAE,KAAK;AAAA,SAChE;AAAA,MAED,WAAW,oBAAC,OAAE,WAAW,EAAE,QAAQ,GAAI,mBAAQ;AAAA,MAChD,oBAAC,QAAG,WAAW,EAAE,MAAM,GAAI,iBAAM;AAAA,MAChC,QAAQ,oBAAC,OAAE,WAAW,EAAE,KAAK,GAAI,gBAAK;AAAA,MACtC,SAAS,oBAAC,SAAI,WAAW,EAAE,MAAM,GAAI,iBAAM;AAAA,MAC3C,WAAW,oBAAC,SAAI,WAAW,EAAE,QAAQ,GAAI,mBAAQ;AAAA,OACpD,GACF;AAAA,KACF;AAEJ;","names":[]}
1
+ {"version":3,"sources":["../src/cover-hero/cover-hero.tsx"],"sourcesContent":["// Client (the reader's motion preference). The first screen of a shop or a place: its cover — a photo, or a muted loop that\n// stays a still under reduced motion — behind the name, a one-line promise, a few facts and the main action. The words sit\n// on a veil that reads in both themes; without a cover the brand's colours take its place.\nimport * as React from \"react\";\nimport { tv } from \"tailwind-variants\";\n\nimport { BlockLink, type LinkComponent } from \"../block-link\";\nimport { ArrowGlyph } from \"../glyphs\";\nimport { Page } from \"../page/page\";\n\nexport const coverHero = tv({\n slots: {\n root: \"relative isolate flex min-h-[26rem] items-end overflow-hidden bg-surface-1 text-fg data-[cover]:text-fg-on-media sm:min-h-[30rem] lg:min-h-[34rem]\",\n media: \"absolute inset-0 -z-20 h-full w-full object-cover data-[focus=top]:object-top data-[focus=bottom]:object-bottom\",\n veil: \"absolute inset-0 -z-10 bg-linear-to-t from-scrim-strong via-scrim/55 to-scrim/10\",\n plain: \"absolute inset-0 -z-10 bg-linear-to-br from-accent/25 via-surface-1 to-accent-2/20\",\n body: \"flex flex-col gap-4 pb-8 pt-24 sm:pb-12\",\n back: \"inline-flex w-fit items-center gap-1.5 text-sm font-semibold text-current no-underline opacity-90 hover:opacity-100\",\n eyebrow: \"m-0 font-mono text-xs font-semibold opacity-90\",\n title: \"m-0 max-w-3xl font-display text-4xl font-black leading-[1.05] tracking-tight sm:text-5xl lg:text-6xl\",\n lead: \"m-0 max-w-2xl text-base leading-relaxed opacity-95 sm:text-lg\",\n facts: \"flex flex-wrap items-center gap-2\",\n actions: \"flex flex-wrap items-center gap-3 pt-1\",\n },\n});\nconst s = coverHero();\n\nexport type CoverMedia = {\n /** The still: the photo, or the poster of the loop (shown first, and alone under reduced motion). */\n src: string;\n /** What it shows, in words; empty when it only decorates. */\n alt?: string;\n /** A muted loop over the still: WebM first, MP4 for Safari. */\n video?: { webm?: string; mp4?: string };\n /** An art-directed crop for a phone (a 4:5 of the same photo): used below 40 rem instead of `src`. */\n phone?: string;\n /** Where the photo is cropped to when the box is not its ratio. @default \"center\" */\n focus?: \"center\" | \"top\" | \"bottom\";\n};\n\nexport type CoverHeroProps = Omit<React.ComponentProps<\"header\">, \"title\"> & {\n /** The cover. Without it the hero wears the brand's colours. */\n cover?: CoverMedia;\n /** A short mono line above the name (where the shop is: `Saint-Henri · Montréal`). */\n eyebrow?: React.ReactNode;\n /** The name: the page's `h1`. */\n title: React.ReactNode;\n /** One line: what it promises. */\n lead?: React.ReactNode;\n /** Chips under the lead: open now, the neighbourhood, a rating — only what is true. */\n facts?: React.ReactNode;\n /** The main action (`ButtonLink`). */\n actions?: React.ReactNode;\n /** The way back, above the eyebrow. */\n back?: { href: string; label: string };\n /** The app's link component for the back link. */\n linkAs?: LinkComponent;\n};\n\nfunction usePlayLoop(enabled: boolean) {\n const [play, setPlay] = React.useState(false);\n React.useEffect(() => {\n if (!enabled) return;\n const q = window.matchMedia(\"(prefers-reduced-motion: reduce)\");\n const sync = () => setPlay(!q.matches);\n sync();\n q.addEventListener(\"change\", sync);\n return () => q.removeEventListener(\"change\", sync);\n }, [enabled]);\n return play;\n}\n\n/** A shop's first screen: the cover, the name, the promise, the facts and the main action. */\nexport function CoverHero({ cover, eyebrow, title, lead, facts, actions, back, linkAs, className, ...props }: CoverHeroProps) {\n const play = usePlayLoop(Boolean(cover?.video));\n return (\n <header data-cover={cover ? \"\" : undefined} className={s.root({ className })} {...props}>\n {cover ? (\n <>\n <picture>\n {cover.phone && <source media=\"(max-width: 39.99rem)\" srcSet={cover.phone} />}\n <img src={cover.src} alt={cover.alt ?? \"\"} className={s.media()} data-focus={cover.focus === \"center\" ? undefined : cover.focus} fetchPriority=\"high\" decoding=\"async\" />\n </picture>\n {play && cover.video && (\n <video className={s.media()} poster={cover.src} autoPlay muted loop playsInline preload=\"metadata\" aria-hidden tabIndex={-1}>\n {cover.video.webm && <source src={cover.video.webm} type=\"video/webm\" />}\n {cover.video.mp4 && <source src={cover.video.mp4} type=\"video/mp4\" />}\n </video>\n )}\n <div aria-hidden className={s.veil()} />\n </>\n ) : (\n <div aria-hidden className={s.plain()} />\n )}\n <Page>\n <div className={s.body()}>\n {back && (\n <BlockLink href={back.href} linkAs={linkAs} className={s.back()}>\n <ArrowGlyph direction=\"left\" className=\"h-3.5 w-3.5\" /> {back.label}\n </BlockLink>\n )}\n {eyebrow && <p className={s.eyebrow()}>{eyebrow}</p>}\n <h1 className={s.title()}>{title}</h1>\n {lead && <p className={s.lead()}>{lead}</p>}\n {facts && <div className={s.facts()}>{facts}</div>}\n {actions && <div className={s.actions()}>{actions}</div>}\n </div>\n </Page>\n </header>\n );\n}\n"],"mappings":";;;;;;;;;;;;;AAGA,YAAY,WAAW;AACvB,SAAS,UAAU;AA0EX,mBAEoB,KADlB,YADF;AApED,IAAM,YAAY,GAAG;AAAA,EAC1B,OAAO;AAAA,IACL,MAAM;AAAA,IACN,OAAO;AAAA,IACP,MAAM;AAAA,IACN,OAAO;AAAA,IACP,MAAM;AAAA,IACN,MAAM;AAAA,IACN,SAAS;AAAA,IACT,OAAO;AAAA,IACP,MAAM;AAAA,IACN,OAAO;AAAA,IACP,SAAS;AAAA,EACX;AACF,CAAC;AACD,IAAM,IAAI,UAAU;AAkCpB,SAAS,YAAY,SAAkB;AACrC,QAAM,CAAC,MAAM,OAAO,IAAU,eAAS,KAAK;AAC5C,EAAM,gBAAU,MAAM;AACpB,QAAI,CAAC,QAAS;AACd,UAAM,IAAI,OAAO,WAAW,kCAAkC;AAC9D,UAAM,OAAO,MAAM,QAAQ,CAAC,EAAE,OAAO;AACrC,SAAK;AACL,MAAE,iBAAiB,UAAU,IAAI;AACjC,WAAO,MAAM,EAAE,oBAAoB,UAAU,IAAI;AAAA,EACnD,GAAG,CAAC,OAAO,CAAC;AACZ,SAAO;AACT;AAGO,SAAS,UAAU,EAAE,OAAO,SAAS,OAAO,MAAM,OAAO,SAAS,MAAM,QAAQ,WAAW,GAAG,MAAM,GAAmB;AAC5H,QAAM,OAAO,YAAY,QAAQ,OAAO,KAAK,CAAC;AAC9C,SACE,qBAAC,YAAO,cAAY,QAAQ,KAAK,QAAW,WAAW,EAAE,KAAK,EAAE,UAAU,CAAC,GAAI,GAAG,OAC/E;AAAA,YACC,iCACE;AAAA,2BAAC,aACE;AAAA,cAAM,SAAS,oBAAC,YAAO,OAAM,yBAAwB,QAAQ,MAAM,OAAO;AAAA,QAC3E,oBAAC,SAAI,KAAK,MAAM,KAAK,KAAK,MAAM,OAAO,IAAI,WAAW,EAAE,MAAM,GAAG,cAAY,MAAM,UAAU,WAAW,SAAY,MAAM,OAAO,eAAc,QAAO,UAAS,SAAQ;AAAA,SACzK;AAAA,MACC,QAAQ,MAAM,SACb,qBAAC,WAAM,WAAW,EAAE,MAAM,GAAG,QAAQ,MAAM,KAAK,UAAQ,MAAC,OAAK,MAAC,MAAI,MAAC,aAAW,MAAC,SAAQ,YAAW,eAAW,MAAC,UAAU,IACtH;AAAA,cAAM,MAAM,QAAQ,oBAAC,YAAO,KAAK,MAAM,MAAM,MAAM,MAAK,cAAa;AAAA,QACrE,MAAM,MAAM,OAAO,oBAAC,YAAO,KAAK,MAAM,MAAM,KAAK,MAAK,aAAY;AAAA,SACrE;AAAA,MAEF,oBAAC,SAAI,eAAW,MAAC,WAAW,EAAE,KAAK,GAAG;AAAA,OACxC,IAEA,oBAAC,SAAI,eAAW,MAAC,WAAW,EAAE,MAAM,GAAG;AAAA,IAEzC,oBAAC,QACC,+BAAC,SAAI,WAAW,EAAE,KAAK,GACpB;AAAA,cACC,qBAAC,aAAU,MAAM,KAAK,MAAM,QAAgB,WAAW,EAAE,KAAK,GAC5D;AAAA,4BAAC,cAAW,WAAU,QAAO,WAAU,eAAc;AAAA,QAAE;AAAA,QAAE,KAAK;AAAA,SAChE;AAAA,MAED,WAAW,oBAAC,OAAE,WAAW,EAAE,QAAQ,GAAI,mBAAQ;AAAA,MAChD,oBAAC,QAAG,WAAW,EAAE,MAAM,GAAI,iBAAM;AAAA,MAChC,QAAQ,oBAAC,OAAE,WAAW,EAAE,KAAK,GAAI,gBAAK;AAAA,MACtC,SAAS,oBAAC,SAAI,WAAW,EAAE,MAAM,GAAI,iBAAM;AAAA,MAC3C,WAAW,oBAAC,SAAI,WAAW,EAAE,QAAQ,GAAI,mBAAQ;AAAA,OACpD,GACF;AAAA,KACF;AAEJ;","names":[]}
@@ -240,8 +240,8 @@ declare function useUploadQueue(options: UploadQueueOptions): {
240
240
  items: UploadItem[];
241
241
  add: (files: readonly File[]) => void;
242
242
  pause: (id: string) => void;
243
- resume: (id: string) => void;
244
- retry: (id: string) => void;
243
+ resume: any;
244
+ retry: any;
245
245
  cancel: (id: string) => void;
246
246
  remove: (id: string) => void;
247
247
  };
@@ -0,0 +1,52 @@
1
+ import * as React from 'react';
2
+
3
+ /** A photo the product resolved: the address, its words, and the widths it has (`srcSet`). */
4
+ type ShopPhoto = {
5
+ src: string;
6
+ /** What it shows, in words; empty when it only sets a mood. */
7
+ alt: string;
8
+ /** The widths the product holds (`/a-480.avif 480w, /a-960.avif 960w`); the section brings the `sizes`. */
9
+ srcSet?: string;
10
+ };
11
+ type ShopFrameProps = React.HTMLAttributes<HTMLDivElement> & {
12
+ /** The look preset (`salon-vitrine`, `@krizaka/tokens`): its tokens apply to everything inside. */
13
+ preset?: string;
14
+ /**
15
+ * The rhythm: `compact` 40 px between sections (24 on a phone), `airy` 64 px (40). The document's, or the preset's.
16
+ * @default "compact"
17
+ */
18
+ density?: "compact" | "airy";
19
+ /**
20
+ * One of the accents the preset lists as tested (`krizaka`, `akinaza:accent-2`…): the owner's choice within the look. Without it, the preset's own.
21
+ * @see @krizaka/tokens `shopPresets`
22
+ */
23
+ accent?: string;
24
+ /**
25
+ * The paper under the page, from the preset: `seyes` (ruled), `kraft` (brown — mount `PaperGrain` once), `washi` (a tint of the accent) or `plain`.
26
+ * @default "plain"
27
+ */
28
+ paper?: "plain" | "seyes" | "kraft" | "washi";
29
+ };
30
+ /** The page: sets the look preset, the accent, the paper and the density the sections below read. */
31
+ declare function ShopFrame({ preset, density, accent, paper, className, ...props }: ShopFrameProps): React.JSX.Element;
32
+ type ShopSectionProps = Omit<React.HTMLAttributes<HTMLElement>, "title"> & {
33
+ /** The section's id: the anchor, and the heading's id. */
34
+ id?: string;
35
+ /** The `h2`. Without one the section is named by `aria-label`. */
36
+ title?: React.ReactNode;
37
+ /** A short lower-case note above the title. */
38
+ eyebrow?: React.ReactNode;
39
+ /** One sentence under the title. */
40
+ lead?: React.ReactNode;
41
+ /** A link or a button on the right of the heading (« All times → »). */
42
+ actions?: React.ReactNode;
43
+ /** The content reaches the edges of the screen (a photo, a strip); the heading stays on the frame. */
44
+ bleed?: boolean;
45
+ /** The section is the page's first (the hero): no hairline, no padding. */
46
+ first?: boolean;
47
+ };
48
+ /** A section of a shop page. */
49
+ declare function ShopSection({ id, title, eyebrow, lead, actions, bleed, first, className, children, ...props }: ShopSectionProps): React.JSX.Element;
50
+
51
+ export { ShopFrame as a, ShopSection as c };
52
+ export type { ShopPhoto as S, ShopFrameProps as b, ShopSectionProps as d };
@@ -20,28 +20,28 @@ declare function languagesFor(path: string, locales?: readonly string[]): Langua
20
20
  declare const languageSwitch: tailwind_variants.TVReturnType<{
21
21
  [key: string]: {
22
22
  [key: string]: tailwind_variants.ClassValue | {
23
- panel?: tailwind_variants.ClassValue;
24
23
  root?: tailwind_variants.ClassValue;
25
- item?: tailwind_variants.ClassValue;
26
- heading?: tailwind_variants.ClassValue;
27
24
  glyph?: tailwind_variants.ClassValue;
25
+ panel?: tailwind_variants.ClassValue;
26
+ heading?: tailwind_variants.ClassValue;
28
27
  check?: tailwind_variants.ClassValue;
29
28
  inline?: tailwind_variants.ClassValue;
30
29
  trigger?: tailwind_variants.ClassValue;
30
+ item?: tailwind_variants.ClassValue;
31
31
  inlineLink?: tailwind_variants.ClassValue;
32
32
  };
33
33
  };
34
34
  } | {
35
35
  [x: string]: {
36
36
  [x: string]: tailwind_variants.ClassValue | {
37
- panel?: tailwind_variants.ClassValue;
38
37
  root?: tailwind_variants.ClassValue;
39
- item?: tailwind_variants.ClassValue;
40
- heading?: tailwind_variants.ClassValue;
41
38
  glyph?: tailwind_variants.ClassValue;
39
+ panel?: tailwind_variants.ClassValue;
40
+ heading?: tailwind_variants.ClassValue;
42
41
  check?: tailwind_variants.ClassValue;
43
42
  inline?: tailwind_variants.ClassValue;
44
43
  trigger?: tailwind_variants.ClassValue;
44
+ item?: tailwind_variants.ClassValue;
45
45
  inlineLink?: tailwind_variants.ClassValue;
46
46
  };
47
47
  };
@@ -58,14 +58,14 @@ declare const languageSwitch: tailwind_variants.TVReturnType<{
58
58
  }, undefined, {
59
59
  [key: string]: {
60
60
  [key: string]: tailwind_variants.ClassValue | {
61
- panel?: tailwind_variants.ClassValue;
62
61
  root?: tailwind_variants.ClassValue;
63
- item?: tailwind_variants.ClassValue;
64
- heading?: tailwind_variants.ClassValue;
65
62
  glyph?: tailwind_variants.ClassValue;
63
+ panel?: tailwind_variants.ClassValue;
64
+ heading?: tailwind_variants.ClassValue;
66
65
  check?: tailwind_variants.ClassValue;
67
66
  inline?: tailwind_variants.ClassValue;
68
67
  trigger?: tailwind_variants.ClassValue;
68
+ item?: tailwind_variants.ClassValue;
69
69
  inlineLink?: tailwind_variants.ClassValue;
70
70
  };
71
71
  };
@@ -18,6 +18,12 @@ declare const serviceCard: tailwind_variants.TVReturnType<{
18
18
  grid: {};
19
19
  list: {};
20
20
  };
21
+ mediaRatio: {
22
+ wide: {};
23
+ photo: {
24
+ media: string;
25
+ };
26
+ };
21
27
  }, {
22
28
  root: string;
23
29
  media: string;
@@ -52,6 +58,12 @@ declare const serviceCard: tailwind_variants.TVReturnType<{
52
58
  grid: {};
53
59
  list: {};
54
60
  };
61
+ mediaRatio: {
62
+ wide: {};
63
+ photo: {
64
+ media: string;
65
+ };
66
+ };
55
67
  }, {
56
68
  root: string;
57
69
  media: string;
@@ -86,6 +98,12 @@ declare const serviceCard: tailwind_variants.TVReturnType<{
86
98
  grid: {};
87
99
  list: {};
88
100
  };
101
+ mediaRatio: {
102
+ wide: {};
103
+ photo: {
104
+ media: string;
105
+ };
106
+ };
89
107
  }, {
90
108
  root: string;
91
109
  media: string;
@@ -144,9 +162,15 @@ type ServiceCardProps = Omit<React.ComponentProps<"article">, "title" | "childre
144
162
  variant?: "default" | "index";
145
163
  /**
146
164
  * `variant="index"`: `list` lays the card out as a row for a single column (the media on the left from `sm`).
165
+ * @deprecated Since 3.64: use `ServicesSection variant="menu"` of `@krizaka/ui/shop/services` (the compact price board). Removed in 4.0.0.
147
166
  * @default "grid"
148
167
  */
149
168
  density?: "grid" | "list";
169
+ /**
170
+ * The photo's box: `wide` (16:9) or `photo` (4:3).
171
+ * @default "wide"
172
+ */
173
+ mediaRatio?: "wide" | "photo";
150
174
  /**
151
175
  * The heading level of the name.
152
176
  * @default "h3"
@@ -156,7 +180,7 @@ type ServiceCardProps = Omit<React.ComponentProps<"article">, "title" | "childre
156
180
  reveal?: number;
157
181
  };
158
182
  /** A service as a card: icon or photo, duration, price, what is included, the capacity, a tag — one way in. */
159
- declare function ServiceCard({ name, price, priceFrom, duration, capacity, description, included, tag, icon, media, selected, actionLabel, href, linkAs, onSelect, titleAs: Title, reveal, variant, density, className, style, ...props }: ServiceCardProps): React.JSX.Element;
183
+ declare function ServiceCard({ name, price, priceFrom, duration, capacity, description, included, tag, icon, media, selected, actionLabel, href, linkAs, onSelect, titleAs: Title, reveal, variant, density, mediaRatio, className, style, ...props }: ServiceCardProps): React.JSX.Element;
160
184
 
161
185
  export { ServiceCard, serviceCard };
162
186
  export type { ServiceCardProps };
@@ -55,12 +55,15 @@ var serviceCard = tv({
55
55
  foot: "border-t-0 pt-1"
56
56
  }
57
57
  },
58
- density: { grid: {}, list: {} }
58
+ // `density="list"` is deprecated (ADR-007): a list of services is `ServicesSection variant="menu"` of `@krizaka/ui/shop/services`.
59
+ density: { grid: {}, list: {} },
60
+ // The photo's box: the wide 16:9 band, or the 4:3 of `services · cards` (ADR-007 §6).
61
+ mediaRatio: { wide: {}, photo: { media: "aspect-[4/3]" } }
59
62
  },
60
63
  compoundVariants: [
61
64
  { variant: "index", density: "list", class: { root: "sm:flex-row", media: "sm:aspect-auto sm:w-1/3 sm:shrink-0", body: "sm:flex-1" } }
62
65
  ],
63
- defaultVariants: { variant: "default", density: "grid" }
66
+ defaultVariants: { variant: "default", density: "grid", mediaRatio: "wide" }
64
67
  });
65
68
  function ServiceCard({
66
69
  name,
@@ -82,11 +85,12 @@ function ServiceCard({
82
85
  reveal,
83
86
  variant = "default",
84
87
  density = "grid",
88
+ mediaRatio = "wide",
85
89
  className,
86
90
  style,
87
91
  ...props
88
92
  }) {
89
- const s = serviceCard({ variant, density });
93
+ const s = serviceCard({ variant, density, mediaRatio });
90
94
  const index = variant === "index";
91
95
  const id = React.useId();
92
96
  const facts = [duration, capacity].filter(Boolean);