@krizaka/ui 3.64.0 → 3.65.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 (455) hide show
  1. package/dist/account-menu.d.ts +7 -3
  2. package/dist/account-menu.js +14 -10
  3. package/dist/account-menu.js.map +1 -1
  4. package/dist/app-frame/server.d.ts +123 -0
  5. package/dist/app-frame/server.js +109 -0
  6. package/dist/app-frame/server.js.map +1 -0
  7. package/dist/app-frame.d.ts +210 -0
  8. package/dist/app-frame.js +220 -0
  9. package/dist/app-frame.js.map +1 -0
  10. package/dist/app-header.d.ts +3 -3
  11. package/dist/blocks.css +41 -0
  12. package/dist/chunk-5D7NMUF6.js +35 -0
  13. package/dist/chunk-5D7NMUF6.js.map +1 -0
  14. package/dist/chunk-A7MQPIEG.js +31 -0
  15. package/dist/chunk-A7MQPIEG.js.map +1 -0
  16. package/dist/chunk-B47WSPMP.js +60 -0
  17. package/dist/chunk-B47WSPMP.js.map +1 -0
  18. package/dist/chunk-HKEAYSFS.js +19 -0
  19. package/dist/chunk-HKEAYSFS.js.map +1 -0
  20. package/dist/chunk-ZYHWJ7U5.js +20 -0
  21. package/dist/chunk-ZYHWJ7U5.js.map +1 -0
  22. package/dist/cover-hero.d.ts +4 -0
  23. package/dist/cover-hero.js +5 -2
  24. package/dist/cover-hero.js.map +1 -1
  25. package/dist/desktop-window.d.ts +223 -0
  26. package/dist/desktop-window.js +261 -0
  27. package/dist/desktop-window.js.map +1 -0
  28. package/dist/filter-bar.d.ts +3 -3
  29. package/dist/frame-D6Xv83t8.d.ts +52 -0
  30. package/dist/native.d.ts +218 -3
  31. package/dist/native.js +1638 -1450
  32. package/dist/native.js.map +1 -1
  33. package/dist/service-card.d.ts +25 -1
  34. package/dist/service-card.js +7 -3
  35. package/dist/service-card.js.map +1 -1
  36. package/dist/shop/booking.d.ts +36 -0
  37. package/dist/shop/booking.js +37 -0
  38. package/dist/shop/booking.js.map +1 -0
  39. package/dist/shop/bulletin.d.ts +28 -0
  40. package/dist/shop/bulletin.js +29 -0
  41. package/dist/shop/bulletin.js.map +1 -0
  42. package/dist/shop/demo.d.ts +135 -0
  43. package/dist/shop/demo.js +141 -0
  44. package/dist/shop/demo.js.map +1 -0
  45. package/dist/shop/faq.d.ts +20 -0
  46. package/dist/shop/faq.js +33 -0
  47. package/dist/shop/faq.js.map +1 -0
  48. package/dist/shop/gallery.d.ts +46 -0
  49. package/dist/shop/gallery.js +76 -0
  50. package/dist/shop/gallery.js.map +1 -0
  51. package/dist/shop/hero.d.ts +36 -0
  52. package/dist/shop/hero.js +70 -0
  53. package/dist/shop/hero.js.map +1 -0
  54. package/dist/shop/map-gate.d.ts +22 -0
  55. package/dist/shop/map-gate.js +34 -0
  56. package/dist/shop/map-gate.js.map +1 -0
  57. package/dist/shop/policies.d.ts +18 -0
  58. package/dist/shop/policies.js +16 -0
  59. package/dist/shop/policies.js.map +1 -0
  60. package/dist/shop/reviews.d.ts +25 -0
  61. package/dist/shop/reviews.js +47 -0
  62. package/dist/shop/reviews.js.map +1 -0
  63. package/dist/shop/services.d.ts +57 -0
  64. package/dist/shop/services.js +118 -0
  65. package/dist/shop/services.js.map +1 -0
  66. package/dist/shop/social.d.ts +27 -0
  67. package/dist/shop/social.js +27 -0
  68. package/dist/shop/social.js.map +1 -0
  69. package/dist/shop/story.d.ts +24 -0
  70. package/dist/shop/story.js +26 -0
  71. package/dist/shop/story.js.map +1 -0
  72. package/dist/shop/team.d.ts +24 -0
  73. package/dist/shop/team.js +26 -0
  74. package/dist/shop/team.js.map +1 -0
  75. package/dist/shop/video.d.ts +40 -0
  76. package/dist/shop/video.js +33 -0
  77. package/dist/shop/video.js.map +1 -0
  78. package/dist/shop/visit.d.ts +29 -0
  79. package/dist/shop/visit.js +38 -0
  80. package/dist/shop/visit.js.map +1 -0
  81. package/dist/shop-composer.d.ts +490 -0
  82. package/dist/shop-composer.js +2061 -0
  83. package/dist/shop-composer.js.map +1 -0
  84. package/dist/shop.d.ts +316 -0
  85. package/dist/shop.js +389 -0
  86. package/dist/shop.js.map +1 -0
  87. package/dist/theme.d.ts +3 -1
  88. package/dist/theme.js +4 -0
  89. package/dist/theme.js.map +1 -1
  90. package/package.json +305 -5
  91. package/registry/account-menu.json +22 -8
  92. package/registry/account-settings.json +1 -1
  93. package/registry/achievement.json +1 -1
  94. package/registry/action-bar.json +1 -1
  95. package/registry/activity-feed.json +1 -1
  96. package/registry/agenda.json +1 -1
  97. package/registry/alert.json +1 -1
  98. package/registry/analysis-report.json +1 -1
  99. package/registry/anatomy-plate.json +1 -1
  100. package/registry/app-frame.json +564 -0
  101. package/registry/app-header.json +1 -1
  102. package/registry/app-shell.json +1 -1
  103. package/registry/argument-card.json +1 -1
  104. package/registry/audio-player.json +1 -1
  105. package/registry/auth-layout.json +1 -1
  106. package/registry/avatar.json +1 -1
  107. package/registry/badge.json +1 -1
  108. package/registry/bird-plate.json +1 -1
  109. package/registry/button.json +1 -1
  110. package/registry/captcha.json +1 -1
  111. package/registry/card-grid.json +1 -1
  112. package/registry/card.json +1 -1
  113. package/registry/catalogue-page.json +1 -1
  114. package/registry/changelog-page.json +1 -1
  115. package/registry/chapter.json +1 -1
  116. package/registry/chat.json +1 -1
  117. package/registry/checkbox.json +1 -1
  118. package/registry/chip-link.json +1 -1
  119. package/registry/chip-row.json +1 -1
  120. package/registry/chip.json +1 -1
  121. package/registry/choice-grid.json +1 -1
  122. package/registry/code-block.json +1 -1
  123. package/registry/combobox.json +1 -1
  124. package/registry/command.json +1 -1
  125. package/registry/comparison-table.json +1 -1
  126. package/registry/component-page.json +1 -1
  127. package/registry/confirm-button.json +1 -1
  128. package/registry/contact-page.json +1 -1
  129. package/registry/continue-prompt.json +1 -1
  130. package/registry/countdown.json +1 -1
  131. package/registry/cover-hero.json +2 -2
  132. package/registry/cta-panel.json +1 -1
  133. package/registry/dashboard-layout.json +1 -1
  134. package/registry/data-table.json +1 -1
  135. package/registry/date-picker.json +3 -3
  136. package/registry/decision-list.json +1 -1
  137. package/registry/description-list.json +1 -1
  138. package/registry/desktop-window.json +407 -0
  139. package/registry/detail-layout.json +1 -1
  140. package/registry/dialog.json +1 -1
  141. package/registry/docs-article-page.json +1 -1
  142. package/registry/docs-hub-page.json +1 -1
  143. package/registry/docs-layout.json +1 -1
  144. package/registry/docs-nav.json +1 -1
  145. package/registry/document-viewer.json +1 -1
  146. package/registry/doodle.json +1 -1
  147. package/registry/drop-overlay.json +1 -1
  148. package/registry/dropdown-menu.json +1 -1
  149. package/registry/elephant.json +2 -2
  150. package/registry/embed-facade.json +1 -1
  151. package/registry/empty-state.json +1 -1
  152. package/registry/engine-flow.json +1 -1
  153. package/registry/environment-notice.json +1 -1
  154. package/registry/error-page.json +1 -1
  155. package/registry/examples/app-frame/admin.d.ts +4 -0
  156. package/registry/examples/app-frame/admin.js +32 -0
  157. package/registry/examples/app-frame/admin.tsx +33 -0
  158. package/registry/examples/app-frame/app.d.ts +4 -0
  159. package/registry/examples/app-frame/app.js +53 -0
  160. package/registry/examples/app-frame/app.tsx +56 -0
  161. package/registry/examples/desktop-window/library.d.ts +4 -0
  162. package/registry/examples/desktop-window/library.js +49 -0
  163. package/registry/examples/desktop-window/library.tsx +58 -0
  164. package/registry/examples/form-flow/native/signup.d.ts +4 -0
  165. package/registry/examples/form-flow/native/signup.dark.png +0 -0
  166. package/registry/examples/form-flow/native/signup.js +26 -0
  167. package/registry/examples/form-flow/native/signup.light.png +0 -0
  168. package/registry/examples/form-flow/native/signup.tsx +23 -0
  169. package/registry/examples/grid/native/columns.d.ts +4 -0
  170. package/registry/examples/grid/native/columns.dark.png +0 -0
  171. package/registry/examples/grid/native/columns.js +23 -0
  172. package/registry/examples/grid/native/columns.light.png +0 -0
  173. package/registry/examples/grid/native/columns.tsx +20 -0
  174. package/registry/examples/grid/native/photos.d.ts +4 -0
  175. package/registry/examples/grid/native/photos.dark.png +0 -0
  176. package/registry/examples/grid/native/photos.js +14 -0
  177. package/registry/examples/grid/native/photos.light.png +0 -0
  178. package/registry/examples/grid/native/photos.tsx +18 -0
  179. package/registry/examples/grid/native/stats.d.ts +4 -0
  180. package/registry/examples/grid/native/stats.dark.png +0 -0
  181. package/registry/examples/grid/native/stats.js +22 -0
  182. package/registry/examples/grid/native/stats.light.png +0 -0
  183. package/registry/examples/grid/native/stats.tsx +24 -0
  184. package/registry/examples/list-detail/native/inbox.d.ts +4 -0
  185. package/registry/examples/list-detail/native/inbox.dark.png +0 -0
  186. package/registry/examples/list-detail/native/inbox.js +35 -0
  187. package/registry/examples/list-detail/native/inbox.light.png +0 -0
  188. package/registry/examples/list-detail/native/inbox.tsx +35 -0
  189. package/registry/examples/screen/native/dashboard.d.ts +4 -0
  190. package/registry/examples/screen/native/dashboard.dark.png +0 -0
  191. package/registry/examples/screen/native/dashboard.js +48 -0
  192. package/registry/examples/screen/native/dashboard.light.png +0 -0
  193. package/registry/examples/screen/native/dashboard.tsx +52 -0
  194. package/registry/examples/screen/native/settings-home.d.ts +4 -0
  195. package/registry/examples/screen/native/settings-home.dark.png +0 -0
  196. package/registry/examples/screen/native/settings-home.js +26 -0
  197. package/registry/examples/screen/native/settings-home.light.png +0 -0
  198. package/registry/examples/screen/native/settings-home.tsx +25 -0
  199. package/registry/examples/shop/booking-panel.d.ts +4 -0
  200. package/registry/examples/shop/booking-panel.js +12 -0
  201. package/registry/examples/shop/booking-panel.tsx +11 -0
  202. package/registry/examples/shop/booking-sticky.d.ts +4 -0
  203. package/registry/examples/shop/booking-sticky.js +15 -0
  204. package/registry/examples/shop/booking-sticky.tsx +12 -0
  205. package/registry/examples/shop/booking-strip.d.ts +4 -0
  206. package/registry/examples/shop/booking-strip.js +13 -0
  207. package/registry/examples/shop/booking-strip.tsx +12 -0
  208. package/registry/examples/shop/bulletin-banner.d.ts +4 -0
  209. package/registry/examples/shop/bulletin-banner.js +13 -0
  210. package/registry/examples/shop/bulletin-banner.tsx +12 -0
  211. package/registry/examples/shop/bulletin-board.d.ts +4 -0
  212. package/registry/examples/shop/bulletin-board.js +13 -0
  213. package/registry/examples/shop/bulletin-board.tsx +12 -0
  214. package/registry/examples/shop/cards.d.ts +4 -0
  215. package/registry/examples/shop/cards.js +13 -0
  216. package/registry/examples/shop/cards.tsx +12 -0
  217. package/registry/examples/shop/carousel.d.ts +4 -0
  218. package/registry/examples/shop/carousel.js +13 -0
  219. package/registry/examples/shop/carousel.tsx +12 -0
  220. package/registry/examples/shop/document.d.ts +4 -0
  221. package/registry/examples/shop/document.js +20 -0
  222. package/registry/examples/shop/document.tsx +13 -0
  223. package/registry/examples/shop/faq.d.ts +4 -0
  224. package/registry/examples/shop/faq.js +13 -0
  225. package/registry/examples/shop/faq.tsx +12 -0
  226. package/registry/examples/shop/gallery-filmstrip.d.ts +4 -0
  227. package/registry/examples/shop/gallery-filmstrip.js +13 -0
  228. package/registry/examples/shop/gallery-filmstrip.tsx +12 -0
  229. package/registry/examples/shop/gallery-grid.d.ts +4 -0
  230. package/registry/examples/shop/gallery-grid.js +13 -0
  231. package/registry/examples/shop/gallery-grid.tsx +12 -0
  232. package/registry/examples/shop/gallery-mosaic.d.ts +4 -0
  233. package/registry/examples/shop/gallery-mosaic.js +13 -0
  234. package/registry/examples/shop/gallery-mosaic.tsx +12 -0
  235. package/registry/examples/shop/gallery-wall.d.ts +4 -0
  236. package/registry/examples/shop/gallery-wall.js +13 -0
  237. package/registry/examples/shop/gallery-wall.tsx +12 -0
  238. package/registry/examples/shop/hero-banner.d.ts +4 -0
  239. package/registry/examples/shop/hero-banner.js +15 -0
  240. package/registry/examples/shop/hero-banner.tsx +14 -0
  241. package/registry/examples/shop/hero-poster.d.ts +4 -0
  242. package/registry/examples/shop/hero-poster.js +15 -0
  243. package/registry/examples/shop/hero-poster.tsx +14 -0
  244. package/registry/examples/shop/hero-split.d.ts +4 -0
  245. package/registry/examples/shop/hero-split.js +15 -0
  246. package/registry/examples/shop/hero-split.tsx +14 -0
  247. package/registry/examples/shop/hero-tv.d.ts +4 -0
  248. package/registry/examples/shop/hero-tv.js +15 -0
  249. package/registry/examples/shop/hero-tv.tsx +14 -0
  250. package/registry/examples/shop/index.d.ts +4 -0
  251. package/registry/examples/shop/index.js +13 -0
  252. package/registry/examples/shop/index.tsx +12 -0
  253. package/registry/examples/shop/menu-columns.d.ts +4 -0
  254. package/registry/examples/shop/menu-columns.js +13 -0
  255. package/registry/examples/shop/menu-columns.tsx +12 -0
  256. package/registry/examples/shop/menu.d.ts +4 -0
  257. package/registry/examples/shop/menu.js +25 -0
  258. package/registry/examples/shop/menu.tsx +21 -0
  259. package/registry/examples/shop/page.d.ts +4 -0
  260. package/registry/examples/shop/page.js +32 -0
  261. package/registry/examples/shop/page.tsx +27 -0
  262. package/registry/examples/shop/policies.d.ts +4 -0
  263. package/registry/examples/shop/policies.js +13 -0
  264. package/registry/examples/shop/policies.tsx +12 -0
  265. package/registry/examples/shop/reviews-quote.d.ts +4 -0
  266. package/registry/examples/shop/reviews-quote.js +13 -0
  267. package/registry/examples/shop/reviews-quote.tsx +12 -0
  268. package/registry/examples/shop/reviews-strip.d.ts +4 -0
  269. package/registry/examples/shop/reviews-strip.js +13 -0
  270. package/registry/examples/shop/reviews-strip.tsx +12 -0
  271. package/registry/examples/shop/reviews-summary-cards.d.ts +4 -0
  272. package/registry/examples/shop/reviews-summary-cards.js +13 -0
  273. package/registry/examples/shop/reviews-summary-cards.tsx +12 -0
  274. package/registry/examples/shop/social-facade.d.ts +4 -0
  275. package/registry/examples/shop/social-facade.js +13 -0
  276. package/registry/examples/shop/social-facade.tsx +12 -0
  277. package/registry/examples/shop/social-links.d.ts +4 -0
  278. package/registry/examples/shop/social-links.js +12 -0
  279. package/registry/examples/shop/social-links.tsx +11 -0
  280. package/registry/examples/shop/story-owner.d.ts +4 -0
  281. package/registry/examples/shop/story-owner.js +13 -0
  282. package/registry/examples/shop/story-owner.tsx +12 -0
  283. package/registry/examples/shop/story-quote.d.ts +4 -0
  284. package/registry/examples/shop/story-quote.js +13 -0
  285. package/registry/examples/shop/story-quote.tsx +12 -0
  286. package/registry/examples/shop/team-cards.d.ts +4 -0
  287. package/registry/examples/shop/team-cards.js +13 -0
  288. package/registry/examples/shop/team-cards.tsx +12 -0
  289. package/registry/examples/shop/team-row.d.ts +4 -0
  290. package/registry/examples/shop/team-row.js +13 -0
  291. package/registry/examples/shop/team-row.tsx +12 -0
  292. package/registry/examples/shop/video-shorts.d.ts +4 -0
  293. package/registry/examples/shop/video-shorts.js +14 -0
  294. package/registry/examples/shop/video-shorts.tsx +13 -0
  295. package/registry/examples/shop/video-tv.d.ts +4 -0
  296. package/registry/examples/shop/video-tv.js +13 -0
  297. package/registry/examples/shop/video-tv.tsx +12 -0
  298. package/registry/examples/shop/visit-card.d.ts +4 -0
  299. package/registry/examples/shop/visit-card.js +13 -0
  300. package/registry/examples/shop/visit-card.tsx +12 -0
  301. package/registry/examples/shop/visit-map.d.ts +4 -0
  302. package/registry/examples/shop/visit-map.js +13 -0
  303. package/registry/examples/shop/visit-map.tsx +12 -0
  304. package/registry/examples/shop/visit-split.d.ts +4 -0
  305. package/registry/examples/shop/visit-split.js +13 -0
  306. package/registry/examples/shop/visit-split.tsx +12 -0
  307. package/registry/examples/shop-composer/composer.d.ts +4 -0
  308. package/registry/examples/shop-composer/composer.js +17 -0
  309. package/registry/examples/shop-composer/composer.tsx +21 -0
  310. package/registry/examples/state-screen/native/empty.d.ts +4 -0
  311. package/registry/examples/state-screen/native/empty.dark.png +0 -0
  312. package/registry/examples/state-screen/native/empty.js +12 -0
  313. package/registry/examples/state-screen/native/empty.light.png +0 -0
  314. package/registry/examples/state-screen/native/empty.tsx +11 -0
  315. package/registry/examples/state-screen/native/error.d.ts +4 -0
  316. package/registry/examples/state-screen/native/error.dark.png +0 -0
  317. package/registry/examples/state-screen/native/error.js +21 -0
  318. package/registry/examples/state-screen/native/error.light.png +0 -0
  319. package/registry/examples/state-screen/native/error.tsx +17 -0
  320. package/registry/examples/state-screen/native/offline.d.ts +4 -0
  321. package/registry/examples/state-screen/native/offline.dark.png +0 -0
  322. package/registry/examples/state-screen/native/offline.js +15 -0
  323. package/registry/examples/state-screen/native/offline.light.png +0 -0
  324. package/registry/examples/state-screen/native/offline.tsx +12 -0
  325. package/registry/field.json +1 -1
  326. package/registry/file-upload.json +1 -1
  327. package/registry/filter-bar.json +1 -1
  328. package/registry/flock.json +1 -1
  329. package/registry/footnote.json +1 -1
  330. package/registry/force-update-screen.json +1 -1
  331. package/registry/form-flow.json +152 -0
  332. package/registry/form.json +1 -1
  333. package/registry/gallery-page.json +1 -1
  334. package/registry/genui.json +1 -1
  335. package/registry/glossary-term.json +1 -1
  336. package/registry/glossary.json +1 -1
  337. package/registry/glow-card.json +1 -1
  338. package/registry/goal-gauge.json +1 -1
  339. package/registry/grade-stamp.json +1 -1
  340. package/registry/grid.json +262 -0
  341. package/registry/how-it-works-page.json +1 -1
  342. package/registry/image-cropper.json +1 -1
  343. package/registry/index.json +403 -11
  344. package/registry/iso.json +1 -1
  345. package/registry/kanban.json +1 -1
  346. package/registry/kbd.json +1 -1
  347. package/registry/kind-config-editor.json +1 -1
  348. package/registry/kpi-explained.json +1 -1
  349. package/registry/landing-page.json +1 -1
  350. package/registry/landscape.json +1 -1
  351. package/registry/language-switch.json +1 -1
  352. package/registry/legal-page.json +1 -1
  353. package/registry/link-card.json +1 -1
  354. package/registry/list-detail.json +188 -0
  355. package/registry/list.json +1 -1
  356. package/registry/loader.json +1 -1
  357. package/registry/longform-page.json +1 -1
  358. package/registry/maintenance-screen.json +1 -1
  359. package/registry/map.json +2 -2
  360. package/registry/margin-layout.json +1 -1
  361. package/registry/markdown.json +1 -1
  362. package/registry/marketing-layout.json +1 -1
  363. package/registry/marquee.json +1 -1
  364. package/registry/mascot-quote.json +1 -1
  365. package/registry/mascot-state.json +1 -1
  366. package/registry/mascots.json +1 -1
  367. package/registry/match-dialog.json +1 -1
  368. package/registry/media-capture.json +1 -1
  369. package/registry/media-gallery.json +1 -1
  370. package/registry/media-grid.json +1 -1
  371. package/registry/meta-row.json +1 -1
  372. package/registry/meter.json +1 -1
  373. package/registry/nav-bar.json +2 -2
  374. package/registry/next-actions.json +1 -1
  375. package/registry/notification-preferences.json +1 -1
  376. package/registry/number-ticker.json +1 -1
  377. package/registry/onboarding.json +3 -0
  378. package/registry/opening-hours.json +1 -1
  379. package/registry/page-header.json +1 -1
  380. package/registry/page-hero.json +1 -1
  381. package/registry/page-index.json +1 -1
  382. package/registry/page.json +1 -1
  383. package/registry/pagination.json +1 -1
  384. package/registry/photo-grid.json +1 -1
  385. package/registry/pointer-light.json +1 -1
  386. package/registry/popover.json +1 -1
  387. package/registry/pricing-page.json +1 -1
  388. package/registry/product-page.json +1 -1
  389. package/registry/profile-card.json +1 -1
  390. package/registry/progress.json +1 -1
  391. package/registry/promise-card.json +1 -1
  392. package/registry/quota-meter.json +1 -1
  393. package/registry/radio-group.json +1 -1
  394. package/registry/rail-nav.json +2 -2
  395. package/registry/recipes.json +1 -1
  396. package/registry/retro-tv.json +1 -1
  397. package/registry/reviews.json +1 -1
  398. package/registry/router.json +1 -1
  399. package/registry/screen.json +68 -4
  400. package/registry/scroll-stage.json +1 -1
  401. package/registry/search-field.json +1 -1
  402. package/registry/section-backdrop.json +1 -1
  403. package/registry/separator.json +1 -1
  404. package/registry/service-card.json +24 -6
  405. package/registry/settings-layout.json +5 -2
  406. package/registry/shop-composer.json +424 -0
  407. package/registry/shop.json +776 -0
  408. package/registry/showcase.json +1 -1
  409. package/registry/signature.json +1 -1
  410. package/registry/site-cahier.json +1 -1
  411. package/registry/site-footer.json +4 -4
  412. package/registry/sites.json +1 -1
  413. package/registry/skeleton.json +1 -1
  414. package/registry/skip-link.json +1 -1
  415. package/registry/slider.json +1 -1
  416. package/registry/slot-picker.json +1 -1
  417. package/registry/slot.json +1 -1
  418. package/registry/specimen-tag.json +1 -1
  419. package/registry/speed-lines.json +1 -1
  420. package/registry/spinner.json +1 -1
  421. package/registry/split-view.json +1 -1
  422. package/registry/stage-banner.json +1 -1
  423. package/registry/stat.json +1 -1
  424. package/registry/state-screen.json +224 -0
  425. package/registry/status-chip.json +1 -1
  426. package/registry/status-page.json +1 -1
  427. package/registry/step-progress.json +1 -1
  428. package/registry/step-showcase.json +1 -1
  429. package/registry/stepper.json +1 -1
  430. package/registry/sticky-action.json +1 -1
  431. package/registry/stuck.json +1 -1
  432. package/registry/swipe-deck.json +1 -1
  433. package/registry/switch.json +1 -1
  434. package/registry/tabs.json +1 -1
  435. package/registry/tag-input.json +1 -1
  436. package/registry/tag-selector.json +1 -1
  437. package/registry/taped-photo.json +1 -1
  438. package/registry/terminal-replay.json +1 -1
  439. package/registry/text-style.json +1 -1
  440. package/registry/theme.json +3 -3
  441. package/registry/toast.json +1 -1
  442. package/registry/toc.json +1 -1
  443. package/registry/tooltip.json +1 -1
  444. package/registry/tree-view.json +1 -1
  445. package/registry/update-prompt.json +1 -1
  446. package/registry/upload-queue.json +1 -1
  447. package/registry/usage.json +1 -1
  448. package/registry/verified-badge.json +1 -1
  449. package/registry/versus-card.json +1 -1
  450. package/registry/vertical-video.json +1 -1
  451. package/registry/video-player.json +1 -1
  452. package/registry/video-trimmer.json +1 -1
  453. package/registry/virtual.json +1 -1
  454. package/registry/wall.json +3 -3
  455. package/registry/waveform.json +1 -1
@@ -0,0 +1,220 @@
1
+ "use client";
2
+
3
+ // src/app-frame/app-frame.tsx
4
+ import { AccountMenu } from "@krizaka/ui/account-menu";
5
+ import { AppHeader } from "@krizaka/ui/app-header";
6
+ import { AppHeaderSearch } from "@krizaka/ui/app-header/search";
7
+ import { Badge } from "@krizaka/ui/badge";
8
+ import { RailNav } from "@krizaka/ui/rail-nav";
9
+ import { useOptionalTheme } from "@krizaka/ui/theme";
10
+
11
+ // src/app-frame/contract.ts
12
+ var ACCOUNT_LINK_IDS = ["profile", "settings", "billing", "administration"];
13
+ var ACCOUNT_MENU_ORDER = ["identity", "profile", "settings", "billing", "administration", "language", "theme", "signOut"];
14
+ var MAIN_SECTIONS_MAX = 5;
15
+ function framePlaces(sections, accountLinks = []) {
16
+ const result = { main: [], foot: [], dropped: [] };
17
+ for (const section of sections) {
18
+ if (section.gated) result.dropped.push({ id: section.id, reason: "gated" });
19
+ else if (accountLinks.includes(section.id)) result.dropped.push({ id: section.id, reason: "account" });
20
+ else result[section.place === "foot" ? "foot" : "main"].push(section);
21
+ }
22
+ return result;
23
+ }
24
+ function orderAccountLinks(links, admin = false) {
25
+ if (!links) return [];
26
+ return ACCOUNT_LINK_IDS.flatMap((id) => {
27
+ const link = links[id];
28
+ return link && !(admin && id === "administration") ? [{ id, link }] : [];
29
+ });
30
+ }
31
+ function frameIssues(sections, accountLinks = []) {
32
+ const issues = [];
33
+ const ids = sections.map((s) => s.id);
34
+ for (const id of new Set(ids)) if (ids.filter((x) => x === id).length > 1) issues.push(`The section "${id}" is declared twice.`);
35
+ const places = framePlaces(sections, accountLinks);
36
+ for (const { id, reason } of places.dropped) if (reason === "account") issues.push(`"${id}" is on the rail and under the avatar: a place is in one of them, so the rail drops it.`);
37
+ if (places.main.length > MAIN_SECTIONS_MAX) issues.push(`${places.main.length} main sections: a phone's tab bar carries ${MAIN_SECTIONS_MAX} at most.`);
38
+ return issues;
39
+ }
40
+
41
+ // src/app-frame/vocabulary.ts
42
+ var navWords = {
43
+ en: {
44
+ docs: "Docs",
45
+ terms: "Terms",
46
+ privacy: "Privacy",
47
+ settings: "Settings",
48
+ billing: "Billing",
49
+ profile: "Profile",
50
+ administration: "Administration",
51
+ account: "Account",
52
+ language: "Language",
53
+ theme: "Theme",
54
+ themeLight: "Light",
55
+ themeDark: "Dark",
56
+ themeSystem: "System",
57
+ signOut: "Sign out",
58
+ howItWorks: "How it works",
59
+ pricing: "Pricing",
60
+ download: "Download",
61
+ contact: "Contact",
62
+ search: "Search",
63
+ notifications: "Notifications",
64
+ expand: "Show the words",
65
+ collapse: "Hide the words"
66
+ },
67
+ fr: {
68
+ docs: "Docs",
69
+ terms: "Conditions d'utilisation",
70
+ privacy: "Confidentialit\xE9",
71
+ settings: "R\xE9glages",
72
+ billing: "Facturation",
73
+ profile: "Profil",
74
+ administration: "Administration",
75
+ account: "Compte",
76
+ language: "Langue",
77
+ theme: "Th\xE8me",
78
+ themeLight: "Clair",
79
+ themeDark: "Sombre",
80
+ themeSystem: "Syst\xE8me",
81
+ signOut: "Se d\xE9connecter",
82
+ howItWorks: "Comment \xE7a marche",
83
+ pricing: "Tarifs",
84
+ download: "T\xE9l\xE9charger",
85
+ contact: "Contact",
86
+ search: "Rechercher",
87
+ notifications: "Notifications",
88
+ expand: "Afficher les mots",
89
+ collapse: "Masquer les mots"
90
+ }
91
+ };
92
+ function navVocabulary(locale = "en") {
93
+ return navWords[locale.toLowerCase().startsWith("fr") ? "fr" : "en"];
94
+ }
95
+ function navWord(locale, key) {
96
+ return navVocabulary(locale)[key];
97
+ }
98
+ var PUBLIC_BAR_MAX = 4;
99
+ function publicBarLinks(hrefs, locale) {
100
+ const order = ["howItWorks", "pricing", "docs", "download"];
101
+ return order.flatMap((id) => {
102
+ const href = hrefs[id];
103
+ return href ? [{ id, label: navWord(locale, id), href }] : [];
104
+ });
105
+ }
106
+
107
+ // src/app-frame/app-frame.tsx
108
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
109
+ var MODES = ["light", "dark", "system"];
110
+ function useFrameTheme(theme) {
111
+ const provided = useOptionalTheme();
112
+ if (theme === false) return null;
113
+ if (theme) return theme;
114
+ return provided ? { value: provided.mode, onChange: provided.setMode } : null;
115
+ }
116
+ function AppFrame({
117
+ name,
118
+ mark,
119
+ headerMark,
120
+ homeHref,
121
+ accent,
122
+ sections,
123
+ currentId,
124
+ account,
125
+ primary,
126
+ search,
127
+ notifications,
128
+ chips,
129
+ variant = "app",
130
+ language,
131
+ theme,
132
+ locale = "en",
133
+ words,
134
+ linkAs: Link,
135
+ children,
136
+ label
137
+ }) {
138
+ const w = { ...navVocabulary(locale), ...words };
139
+ const admin = variant === "admin";
140
+ const links = orderAccountLinks(account.links, admin);
141
+ const places = framePlaces(sections, links.map((l) => l.id));
142
+ const frameTheme = useFrameTheme(theme);
143
+ const item = (section) => /* @__PURE__ */ jsx(
144
+ RailNav.Item,
145
+ {
146
+ asChild: Boolean(Link),
147
+ href: Link ? void 0 : section.href,
148
+ icon: section.icon,
149
+ label: section.label,
150
+ current: section.id === currentId,
151
+ badge: section.badge,
152
+ badgeLabel: section.badgeLabel,
153
+ children: Link ? /* @__PURE__ */ jsx(Link, { href: section.href }) : void 0
154
+ },
155
+ section.id
156
+ );
157
+ const menuLinks = links.map(({ id, link }) => ({ id, label: link.label ?? w[id], href: link.href, icon: link.icon }));
158
+ const modeLabels = { light: w.themeLight, dark: w.themeDark, system: w.themeSystem };
159
+ return /* @__PURE__ */ jsxs(RailNav.Shell, { "data-variant": variant, children: [
160
+ /* @__PURE__ */ jsx(
161
+ RailNav.Root,
162
+ {
163
+ label: label ?? name,
164
+ accent,
165
+ mark: Link ? /* @__PURE__ */ jsx(Link, { href: homeHref, "aria-label": name, children: mark }) : /* @__PURE__ */ jsx("a", { href: homeHref, "aria-label": name, children: mark }),
166
+ footer: places.foot.length > 0 ? places.foot.map(item) : void 0,
167
+ children: places.main.map(item)
168
+ }
169
+ ),
170
+ /* @__PURE__ */ jsxs(RailNav.Body, { children: [
171
+ /* @__PURE__ */ jsx(
172
+ AppHeader,
173
+ {
174
+ name,
175
+ mark: headerMark ?? mark,
176
+ href: Link ? void 0 : homeHref,
177
+ homeLink: Link ? /* @__PURE__ */ jsx(Link, { href: homeHref }) : void 0,
178
+ chips: /* @__PURE__ */ jsxs(Fragment, { children: [
179
+ admin && /* @__PURE__ */ jsx(Badge, { tone: "accent", children: w.administration }),
180
+ chips
181
+ ] }),
182
+ search: search && /* @__PURE__ */ jsx(AppHeaderSearch, { label: search.label, onOpen: search.onOpen }),
183
+ notifications,
184
+ primary,
185
+ account: /* @__PURE__ */ jsx(
186
+ AccountMenu,
187
+ {
188
+ label: w.account,
189
+ name: account.name,
190
+ email: account.email,
191
+ avatar: account.avatar,
192
+ showName: "lg",
193
+ links: menuLinks,
194
+ linkAs: Link,
195
+ language: language && { label: w.language, value: language.value, options: language.options, onChange: language.onChange },
196
+ theme: frameTheme ? { label: w.theme, value: frameTheme.value, options: MODES.map((value) => ({ value, label: modeLabels[value] })), onChange: (value) => frameTheme.onChange(value) } : void 0,
197
+ signOut: { label: w.signOut, onSelect: account.onSignOut }
198
+ }
199
+ )
200
+ }
201
+ ),
202
+ children
203
+ ] })
204
+ ] });
205
+ }
206
+ export {
207
+ ACCOUNT_LINK_IDS,
208
+ ACCOUNT_MENU_ORDER,
209
+ AppFrame,
210
+ MAIN_SECTIONS_MAX,
211
+ PUBLIC_BAR_MAX,
212
+ frameIssues,
213
+ framePlaces,
214
+ navVocabulary,
215
+ navWord,
216
+ navWords,
217
+ orderAccountLinks,
218
+ publicBarLinks
219
+ };
220
+ //# sourceMappingURL=app-frame.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/app-frame/app-frame.tsx","../src/app-frame/contract.ts","../src/app-frame/vocabulary.ts"],"sourcesContent":["// Client (the rail's state, the account menu, the theme). THE signed-in frame of every Krizaka web product (audit F1, F2,\n// F6): the rail (a bottom tab bar on a phone) and the family's top bar, composed once from data. The product keeps its\n// list of sections; the frame owns the rest — the account menu's content and order, where the preferences live (always in\n// the menu: a header has no room for them on a phone), which place is on the rail and which is under the avatar.\nimport { AccountMenu, type AccountMenuLink } from \"@krizaka/ui/account-menu\";\nimport { AppHeader } from \"@krizaka/ui/app-header\";\nimport { AppHeaderSearch } from \"@krizaka/ui/app-header/search\";\nimport { Badge } from \"@krizaka/ui/badge\";\nimport { RailNav } from \"@krizaka/ui/rail-nav\";\nimport { type Mode, useOptionalTheme } from \"@krizaka/ui/theme\";\nimport * as React from \"react\";\n\nimport type { BrandId } from \"../marks/ProductLogo\";\nimport { type AccountLinkId, framePlaces, type FrameSection, orderAccountLinks } from \"./contract\";\nimport { navVocabulary, type NavWords } from \"./vocabulary\";\n\nexport interface AppFrameAccountLink {\n href: string;\n /** Overrides the shared word (`Credits and usage` for billing where credits exist). */\n label?: string;\n icon?: React.ReactNode;\n}\n\nexport interface AppFrameAccount {\n name?: string;\n email?: string;\n /** `src`, or `defaultAvatar` (`{ brand, seed }`). */\n avatar?: React.ComponentProps<typeof AccountMenu>[\"avatar\"];\n /**\n * The places under the avatar. Pass the ones the product has: Billing only when it sells, Administration only for an\n * admin. The frame draws them in its order (Profile, Settings, Billing, Administration), Settings landing on the settings home.\n */\n links?: Partial<Record<AccountLinkId, AppFrameAccountLink>>;\n /** Called by Sign out. */\n onSignOut: () => void;\n}\n\nexport interface AppFrameLanguage {\n value: string;\n options: readonly { value: string; label: string }[];\n onChange: (value: string) => void;\n}\n\nexport interface AppFrameTheme {\n value: Mode;\n onChange: (mode: Mode) => void;\n}\n\nexport interface AppFrameProps {\n /** The product's name, as text in the top bar. */\n name: string;\n /** The product's mark (`<ProductLogo id=\"yomizaka\" size={26} />`): on the rail on a desktop, in the top bar on a phone. */\n mark: React.ReactNode;\n /** The mark in the top bar below `md` (smaller). Defaults to `mark`. */\n headerMark?: React.ReactNode;\n /** Where the mark and the name lead (`/app`). */\n homeHref: string;\n /** The product's brand: scopes its colours over the rail. */\n accent?: BrandId;\n /** The destinations. `place: \"foot\"` puts one at the rail's foot; `gated` leaves one out for this person. */\n sections: readonly FrameSection[];\n /** The id of the section the person is in. */\n currentId?: string;\n /** Who is signed in, the places under their avatar and Sign out. */\n account: AppFrameAccount;\n /** The one primary action of the app (« Check a document »). */\n primary?: React.ReactNode;\n /** The search (⌘K): opens the app's command palette. */\n search?: { label: string; onOpen: () => void };\n /** Notifications: an `AppHeaderCount`, or the trigger of the host's popover. */\n notifications?: React.ReactNode;\n /** Chips beside the name (`Dev`, `Local · Sovereign`). */\n chips?: React.ReactNode;\n /** `admin`: the administration's frame — a chip says so, and the way into it is not offered again. */\n variant?: \"app\" | \"admin\";\n /** The language row of the account menu; absent for a product with one language. */\n language?: AppFrameLanguage;\n /** The theme row. By default the `ThemeProvider`'s; pass `false` for a product that has none. */\n theme?: AppFrameTheme | false;\n /** `en` or `fr`: the words of the shared vocabulary. @default \"en\" */\n locale?: string;\n /** Overrides of the shared words, for a product that needs one different (use sparingly). */\n words?: Partial<NavWords>;\n /** The router's link component (Next's `Link`) for the rail and the menu. */\n linkAs?: React.ElementType;\n /** The page, inside `RailNav.Body` under the top bar. */\n children: React.ReactNode;\n /** The rail's accessible name. Defaults to the product's name. */\n label?: string;\n}\n\nconst MODES: readonly Mode[] = [\"light\", \"dark\", \"system\"];\n\nfunction useFrameTheme(theme: AppFrameProps[\"theme\"]): AppFrameTheme | null {\n const provided = useOptionalTheme();\n if (theme === false) return null;\n if (theme) return theme;\n return provided ? { value: provided.mode, onChange: provided.setMode } : null;\n}\n\n/** The signed-in frame: sections, account and the primary action in; the rail, the top bar and the account menu out. */\nexport function AppFrame({\n name, mark, headerMark, homeHref, accent, sections, currentId, account, primary, search, notifications, chips, variant = \"app\", language, theme, locale = \"en\", words, linkAs: Link, children, label,\n}: AppFrameProps) {\n const w = { ...navVocabulary(locale), ...words };\n const admin = variant === \"admin\";\n const links = orderAccountLinks(account.links, admin);\n const places = framePlaces(sections, links.map((l) => l.id));\n const frameTheme = useFrameTheme(theme);\n const item = (section: FrameSection) => (\n <RailNav.Item\n key={section.id}\n asChild={Boolean(Link)}\n href={Link ? undefined : section.href}\n icon={section.icon}\n label={section.label}\n current={section.id === currentId}\n badge={section.badge}\n badgeLabel={section.badgeLabel}\n >\n {Link ? <Link href={section.href} /> : undefined}\n </RailNav.Item>\n );\n const menuLinks: AccountMenuLink[] = links.map(({ id, link }) => ({ id, label: link.label ?? w[id], href: link.href, icon: link.icon }));\n const modeLabels: Record<Mode, string> = { light: w.themeLight, dark: w.themeDark, system: w.themeSystem };\n return (\n <RailNav.Shell data-variant={variant}>\n <RailNav.Root\n label={label ?? name}\n accent={accent}\n mark={Link ? <Link href={homeHref} aria-label={name}>{mark}</Link> : <a href={homeHref} aria-label={name}>{mark}</a>}\n footer={places.foot.length > 0 ? places.foot.map(item) : undefined}\n >\n {places.main.map(item)}\n </RailNav.Root>\n <RailNav.Body>\n <AppHeader\n name={name}\n mark={headerMark ?? mark}\n href={Link ? undefined : homeHref}\n homeLink={Link ? <Link href={homeHref} /> : undefined}\n chips={\n <>\n {admin && <Badge tone=\"accent\">{w.administration}</Badge>}\n {chips}\n </>\n }\n search={search && <AppHeaderSearch label={search.label} onOpen={search.onOpen} />}\n notifications={notifications}\n primary={primary}\n account={\n <AccountMenu\n label={w.account}\n name={account.name}\n email={account.email}\n avatar={account.avatar}\n showName=\"lg\"\n links={menuLinks}\n linkAs={Link}\n language={language && { label: w.language, value: language.value, options: language.options, onChange: language.onChange }}\n theme={frameTheme ? { label: w.theme, value: frameTheme.value, options: MODES.map((value) => ({ value, label: modeLabels[value] })), onChange: (value) => frameTheme.onChange(value as Mode) } : undefined}\n signOut={{ label: w.signOut, onSelect: account.onSignOut }}\n />\n }\n />\n {children}\n </RailNav.Body>\n </RailNav.Shell>\n );\n}\n","// Server-safe, pure. The rules of the signed-in frame, written once and tested (the audit's F1 and F2): what the account\n// menu holds and in which order, where a place lives (the rail or the avatar, never both), what a phone's tab bar can carry.\nimport type * as React from \"react\";\n\n/** The places the account menu can hold, in the order the frame draws them. */\nexport const ACCOUNT_LINK_IDS = [\"profile\", \"settings\", \"billing\", \"administration\"] as const;\nexport type AccountLinkId = (typeof ACCOUNT_LINK_IDS)[number];\n\n/** The account menu from top to bottom: who you are, the places, the preferences, Sign out. Fixed by the frame, not by the product. */\nexport const ACCOUNT_MENU_ORDER = [\"identity\", \"profile\", \"settings\", \"billing\", \"administration\", \"language\", \"theme\", \"signOut\"] as const;\n\n/** The most destinations a phone's tab bar carries (the rail's main items; the foot follows them in the same bar). */\nexport const MAIN_SECTIONS_MAX = 5;\n\nexport interface FrameSection {\n /** Stable id; `settings`, `billing`, `profile`, `administration` are the account menu's places. */\n id: string;\n label: string;\n href: string;\n icon: React.ReactNode;\n /** Not offered to this person (a permission, a feature not open): left out of the rail and the tab bar. */\n gated?: boolean;\n /** A count on the icon. */\n badge?: string | number;\n /** The count in words (« 3 to decide »). */\n badgeLabel?: string;\n /** `main`: what the person works in (the tab bar on a phone). `foot`: the rail's foot. @default \"main\" */\n place?: \"main\" | \"foot\";\n}\n\nexport interface FramePlaces {\n main: FrameSection[];\n foot: FrameSection[];\n /** Sections left out of the rail because the account menu already holds that place (or because they are gated). */\n dropped: { id: string; reason: \"account\" | \"gated\" }[];\n}\n\n/**\n * Splits the sections into the rail's main and foot, in the order given. A place is on the rail or under the avatar,\n * never both: a section whose id is one of the account links the frame was given leaves the rail (the avatar owns it).\n * A gated section leaves too.\n */\nexport function framePlaces(sections: readonly FrameSection[], accountLinks: readonly string[] = []): FramePlaces {\n const result: FramePlaces = { main: [], foot: [], dropped: [] };\n for (const section of sections) {\n if (section.gated) result.dropped.push({ id: section.id, reason: \"gated\" });\n else if (accountLinks.includes(section.id)) result.dropped.push({ id: section.id, reason: \"account\" });\n else result[section.place === \"foot\" ? \"foot\" : \"main\"].push(section);\n }\n return result;\n}\n\n/** The account links the frame draws, in the frame's order, whatever the order they were written in. Only what was passed. */\nexport function orderAccountLinks<T>(links: Partial<Record<AccountLinkId, T>> | undefined, admin = false): { id: AccountLinkId; link: T }[] {\n if (!links) return [];\n return ACCOUNT_LINK_IDS.flatMap((id) => {\n const link = links[id];\n // Inside the administration, the way into it is not offered again.\n return link && !(admin && id === \"administration\") ? [{ id, link }] : [];\n });\n}\n\n/** What is wrong with a frame's data, in words for the developer (empty: it is right). Used by the tests and by the dev warning. */\nexport function frameIssues(sections: readonly FrameSection[], accountLinks: readonly string[] = []): string[] {\n const issues: string[] = [];\n const ids = sections.map((s) => s.id);\n for (const id of new Set(ids)) if (ids.filter((x) => x === id).length > 1) issues.push(`The section \"${id}\" is declared twice.`);\n const places = framePlaces(sections, accountLinks);\n for (const { id, reason } of places.dropped) if (reason === \"account\") issues.push(`\"${id}\" is on the rail and under the avatar: a place is in one of them, so the rail drops it.`);\n if (places.main.length > MAIN_SECTIONS_MAX) issues.push(`${places.main.length} main sections: a phone's tab bar carries ${MAIN_SECTIONS_MAX} at most.`);\n return issues;\n}\n","// Server-safe: data and pure functions, no React. The words every Krizaka product says the same way (the audit's F4): the\n// frame's menus, the public bar's links and the footers read them, so « Docs », « Terms » and « Settings » never differ\n// between two products. English is the reference; a French key is required by the type.\nexport const navWords = {\n en: {\n docs: \"Docs\",\n terms: \"Terms\",\n privacy: \"Privacy\",\n settings: \"Settings\",\n billing: \"Billing\",\n profile: \"Profile\",\n administration: \"Administration\",\n account: \"Account\",\n language: \"Language\",\n theme: \"Theme\",\n themeLight: \"Light\",\n themeDark: \"Dark\",\n themeSystem: \"System\",\n signOut: \"Sign out\",\n howItWorks: \"How it works\",\n pricing: \"Pricing\",\n download: \"Download\",\n contact: \"Contact\",\n search: \"Search\",\n notifications: \"Notifications\",\n expand: \"Show the words\",\n collapse: \"Hide the words\",\n },\n fr: {\n docs: \"Docs\",\n terms: \"Conditions d'utilisation\",\n privacy: \"Confidentialité\",\n settings: \"Réglages\",\n billing: \"Facturation\",\n profile: \"Profil\",\n administration: \"Administration\",\n account: \"Compte\",\n language: \"Langue\",\n theme: \"Thème\",\n themeLight: \"Clair\",\n themeDark: \"Sombre\",\n themeSystem: \"Système\",\n signOut: \"Se déconnecter\",\n howItWorks: \"Comment ça marche\",\n pricing: \"Tarifs\",\n download: \"Télécharger\",\n contact: \"Contact\",\n search: \"Rechercher\",\n notifications: \"Notifications\",\n expand: \"Afficher les mots\",\n collapse: \"Masquer les mots\",\n },\n} as const satisfies Record<\"en\" | \"fr\", Record<string, string>>;\n\nexport type NavLocale = keyof typeof navWords;\nexport type NavWords = { [K in keyof (typeof navWords)[\"en\"]]: string };\nexport type NavWordKey = keyof NavWords;\n\n/** The words of a locale (`fr`, `fr-CA`…); any other falls back to English. */\nexport function navVocabulary(locale: string = \"en\"): NavWords {\n return navWords[locale.toLowerCase().startsWith(\"fr\") ? \"fr\" : \"en\"];\n}\n\n/** One word of the shared vocabulary. */\nexport function navWord(locale: string | undefined, key: NavWordKey): string {\n return navVocabulary(locale)[key];\n}\n\n/** The most links a product's public bar holds: past four, the bar is a menu in disguise (audit F3). */\nexport const PUBLIC_BAR_MAX = 4;\n\nexport type PublicBarSlot = \"howItWorks\" | \"pricing\" | \"docs\" | \"download\";\nexport interface PublicBarLink {\n id: PublicBarSlot;\n label: string;\n href: string;\n}\n\n/**\n * The one shape of a product's public bar: flat links, in this order, four at most — How it works · Pricing (when the\n * product has a price) · Docs · Download (when an app exists). Privacy and Terms are the footer's, « Overview » is the mark.\n * Pass the address of each slot the product has; the words come from the shared vocabulary.\n */\nexport function publicBarLinks(hrefs: Partial<Record<PublicBarSlot, string>>, locale?: string): PublicBarLink[] {\n const order: PublicBarSlot[] = [\"howItWorks\", \"pricing\", \"docs\", \"download\"];\n return order.flatMap((id) => {\n const href = hrefs[id];\n return href ? [{ id, label: navWord(locale, id), href }] : [];\n });\n}\n"],"mappings":"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","names":[]}
@@ -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" })