@krizaka/ui 3.63.1 → 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 (405) hide show
  1. package/dist/account-menu.d.ts +1 -1
  2. package/dist/account-menu.js +1 -1
  3. package/dist/account-settings.d.ts +61 -4
  4. package/dist/account-settings.js +206 -44
  5. package/dist/account-settings.js.map +1 -1
  6. package/dist/avatar/defaults.d.ts +16 -5
  7. package/dist/avatar/defaults.js +15 -1
  8. package/dist/avatar/defaults.js.map +1 -1
  9. package/dist/{avatar-BL2iG_Js.d.ts → avatar-BdZcfkWR.d.ts} +11 -4
  10. package/dist/avatar.d.ts +16 -5
  11. package/dist/avatar.js +15 -1
  12. package/dist/avatar.js.map +1 -1
  13. package/dist/blocks.css +41 -0
  14. package/dist/chat.js +1 -1
  15. package/dist/chunk-5D7NMUF6.js +35 -0
  16. package/dist/chunk-5D7NMUF6.js.map +1 -0
  17. package/dist/chunk-A7MQPIEG.js +31 -0
  18. package/dist/chunk-A7MQPIEG.js.map +1 -0
  19. package/dist/chunk-B47WSPMP.js +60 -0
  20. package/dist/chunk-B47WSPMP.js.map +1 -0
  21. package/dist/chunk-EUJ7337V.js +137 -0
  22. package/dist/chunk-EUJ7337V.js.map +1 -0
  23. package/dist/chunk-HK525THY.js +139 -0
  24. package/dist/chunk-HK525THY.js.map +1 -0
  25. package/dist/chunk-HKEAYSFS.js +19 -0
  26. package/dist/chunk-HKEAYSFS.js.map +1 -0
  27. package/dist/{chunk-3D2YI63L.js → chunk-SHBYNQFS.js} +7 -2
  28. package/dist/{chunk-3D2YI63L.js.map → chunk-SHBYNQFS.js.map} +1 -1
  29. package/dist/chunk-ZYHWJ7U5.js +20 -0
  30. package/dist/chunk-ZYHWJ7U5.js.map +1 -0
  31. package/dist/cover-hero.d.ts +4 -0
  32. package/dist/cover-hero.js +5 -2
  33. package/dist/cover-hero.js.map +1 -1
  34. package/dist/dashboard-layout.js +2 -1
  35. package/dist/dashboard-layout.js.map +1 -1
  36. package/dist/docs-layout.js +1 -1
  37. package/dist/filter-bar.d.ts +3 -3
  38. package/dist/frame-D6Xv83t8.d.ts +52 -0
  39. package/dist/match-dialog.js +1 -1
  40. package/dist/media-grid.d.ts +8 -3
  41. package/dist/media-grid.js +1 -1
  42. package/dist/native.d.ts +8 -3
  43. package/dist/native.js +51 -0
  44. package/dist/native.js.map +1 -1
  45. package/dist/service-card.d.ts +25 -1
  46. package/dist/service-card.js +7 -3
  47. package/dist/service-card.js.map +1 -1
  48. package/dist/shop/booking.d.ts +36 -0
  49. package/dist/shop/booking.js +37 -0
  50. package/dist/shop/booking.js.map +1 -0
  51. package/dist/shop/bulletin.d.ts +28 -0
  52. package/dist/shop/bulletin.js +29 -0
  53. package/dist/shop/bulletin.js.map +1 -0
  54. package/dist/shop/demo.d.ts +135 -0
  55. package/dist/shop/demo.js +141 -0
  56. package/dist/shop/demo.js.map +1 -0
  57. package/dist/shop/faq.d.ts +20 -0
  58. package/dist/shop/faq.js +33 -0
  59. package/dist/shop/faq.js.map +1 -0
  60. package/dist/shop/gallery.d.ts +46 -0
  61. package/dist/shop/gallery.js +76 -0
  62. package/dist/shop/gallery.js.map +1 -0
  63. package/dist/shop/hero.d.ts +36 -0
  64. package/dist/shop/hero.js +70 -0
  65. package/dist/shop/hero.js.map +1 -0
  66. package/dist/shop/map-gate.d.ts +22 -0
  67. package/dist/shop/map-gate.js +34 -0
  68. package/dist/shop/map-gate.js.map +1 -0
  69. package/dist/shop/policies.d.ts +18 -0
  70. package/dist/shop/policies.js +16 -0
  71. package/dist/shop/policies.js.map +1 -0
  72. package/dist/shop/reviews.d.ts +25 -0
  73. package/dist/shop/reviews.js +47 -0
  74. package/dist/shop/reviews.js.map +1 -0
  75. package/dist/shop/services.d.ts +57 -0
  76. package/dist/shop/services.js +118 -0
  77. package/dist/shop/services.js.map +1 -0
  78. package/dist/shop/social.d.ts +27 -0
  79. package/dist/shop/social.js +27 -0
  80. package/dist/shop/social.js.map +1 -0
  81. package/dist/shop/story.d.ts +24 -0
  82. package/dist/shop/story.js +26 -0
  83. package/dist/shop/story.js.map +1 -0
  84. package/dist/shop/team.d.ts +24 -0
  85. package/dist/shop/team.js +26 -0
  86. package/dist/shop/team.js.map +1 -0
  87. package/dist/shop/video.d.ts +40 -0
  88. package/dist/shop/video.js +33 -0
  89. package/dist/shop/video.js.map +1 -0
  90. package/dist/shop/visit.d.ts +29 -0
  91. package/dist/shop/visit.js +38 -0
  92. package/dist/shop/visit.js.map +1 -0
  93. package/dist/shop-composer.d.ts +490 -0
  94. package/dist/shop-composer.js +2061 -0
  95. package/dist/shop-composer.js.map +1 -0
  96. package/dist/shop.d.ts +316 -0
  97. package/dist/shop.js +389 -0
  98. package/dist/shop.js.map +1 -0
  99. package/dist/vertical-video.js +1 -1
  100. package/package.json +267 -9
  101. package/registry/account-menu.json +1 -1
  102. package/registry/account-settings.json +67 -6
  103. package/registry/achievement.json +1 -1
  104. package/registry/action-bar.json +1 -1
  105. package/registry/activity-feed.json +1 -1
  106. package/registry/agenda.json +1 -1
  107. package/registry/alert.json +1 -1
  108. package/registry/analysis-report.json +1 -1
  109. package/registry/anatomy-plate.json +1 -1
  110. package/registry/app-header.json +1 -1
  111. package/registry/app-shell.json +1 -1
  112. package/registry/argument-card.json +1 -1
  113. package/registry/audio-player.json +1 -1
  114. package/registry/auth-layout.json +1 -1
  115. package/registry/avatar.json +6 -5
  116. package/registry/badge.json +1 -1
  117. package/registry/bird-plate.json +1 -1
  118. package/registry/button.json +1 -1
  119. package/registry/captcha.json +1 -1
  120. package/registry/card-grid.json +1 -1
  121. package/registry/card.json +1 -1
  122. package/registry/catalogue-page.json +1 -1
  123. package/registry/changelog-page.json +1 -1
  124. package/registry/chapter.json +1 -1
  125. package/registry/chat.json +1 -1
  126. package/registry/checkbox.json +1 -1
  127. package/registry/chip-link.json +1 -1
  128. package/registry/chip-row.json +1 -1
  129. package/registry/chip.json +1 -1
  130. package/registry/choice-grid.json +1 -1
  131. package/registry/code-block.json +1 -1
  132. package/registry/combobox.json +1 -1
  133. package/registry/command.json +1 -1
  134. package/registry/comparison-table.json +1 -1
  135. package/registry/component-page.json +1 -1
  136. package/registry/confirm-button.json +1 -1
  137. package/registry/contact-page.json +1 -1
  138. package/registry/continue-prompt.json +1 -1
  139. package/registry/countdown.json +1 -1
  140. package/registry/cover-hero.json +2 -2
  141. package/registry/cta-panel.json +1 -1
  142. package/registry/dashboard-layout.json +2 -2
  143. package/registry/data-table.json +1 -1
  144. package/registry/date-picker.json +1 -1
  145. package/registry/decision-list.json +1 -1
  146. package/registry/description-list.json +1 -1
  147. package/registry/detail-layout.json +1 -1
  148. package/registry/dialog.json +1 -1
  149. package/registry/docs-article-page.json +1 -1
  150. package/registry/docs-hub-page.json +1 -1
  151. package/registry/docs-layout.json +1 -1
  152. package/registry/docs-nav.json +1 -1
  153. package/registry/document-viewer.json +1 -1
  154. package/registry/doodle.json +1 -1
  155. package/registry/drop-overlay.json +1 -1
  156. package/registry/dropdown-menu.json +1 -1
  157. package/registry/elephant.json +2 -2
  158. package/registry/embed-facade.json +1 -1
  159. package/registry/empty-state.json +1 -1
  160. package/registry/engine-flow.json +1 -1
  161. package/registry/environment-notice.json +1 -1
  162. package/registry/error-page.json +1 -1
  163. package/registry/examples/account-settings/avatar-picker-folder.d.ts +4 -0
  164. package/registry/examples/account-settings/avatar-picker-folder.js +27 -0
  165. package/registry/examples/account-settings/avatar-picker-folder.tsx +23 -0
  166. package/registry/examples/shop/booking-panel.d.ts +4 -0
  167. package/registry/examples/shop/booking-panel.js +12 -0
  168. package/registry/examples/shop/booking-panel.tsx +11 -0
  169. package/registry/examples/shop/booking-sticky.d.ts +4 -0
  170. package/registry/examples/shop/booking-sticky.js +15 -0
  171. package/registry/examples/shop/booking-sticky.tsx +12 -0
  172. package/registry/examples/shop/booking-strip.d.ts +4 -0
  173. package/registry/examples/shop/booking-strip.js +13 -0
  174. package/registry/examples/shop/booking-strip.tsx +12 -0
  175. package/registry/examples/shop/bulletin-banner.d.ts +4 -0
  176. package/registry/examples/shop/bulletin-banner.js +13 -0
  177. package/registry/examples/shop/bulletin-banner.tsx +12 -0
  178. package/registry/examples/shop/bulletin-board.d.ts +4 -0
  179. package/registry/examples/shop/bulletin-board.js +13 -0
  180. package/registry/examples/shop/bulletin-board.tsx +12 -0
  181. package/registry/examples/shop/cards.d.ts +4 -0
  182. package/registry/examples/shop/cards.js +13 -0
  183. package/registry/examples/shop/cards.tsx +12 -0
  184. package/registry/examples/shop/carousel.d.ts +4 -0
  185. package/registry/examples/shop/carousel.js +13 -0
  186. package/registry/examples/shop/carousel.tsx +12 -0
  187. package/registry/examples/shop/document.d.ts +4 -0
  188. package/registry/examples/shop/document.js +20 -0
  189. package/registry/examples/shop/document.tsx +13 -0
  190. package/registry/examples/shop/faq.d.ts +4 -0
  191. package/registry/examples/shop/faq.js +13 -0
  192. package/registry/examples/shop/faq.tsx +12 -0
  193. package/registry/examples/shop/gallery-filmstrip.d.ts +4 -0
  194. package/registry/examples/shop/gallery-filmstrip.js +13 -0
  195. package/registry/examples/shop/gallery-filmstrip.tsx +12 -0
  196. package/registry/examples/shop/gallery-grid.d.ts +4 -0
  197. package/registry/examples/shop/gallery-grid.js +13 -0
  198. package/registry/examples/shop/gallery-grid.tsx +12 -0
  199. package/registry/examples/shop/gallery-mosaic.d.ts +4 -0
  200. package/registry/examples/shop/gallery-mosaic.js +13 -0
  201. package/registry/examples/shop/gallery-mosaic.tsx +12 -0
  202. package/registry/examples/shop/gallery-wall.d.ts +4 -0
  203. package/registry/examples/shop/gallery-wall.js +13 -0
  204. package/registry/examples/shop/gallery-wall.tsx +12 -0
  205. package/registry/examples/shop/hero-banner.d.ts +4 -0
  206. package/registry/examples/shop/hero-banner.js +15 -0
  207. package/registry/examples/shop/hero-banner.tsx +14 -0
  208. package/registry/examples/shop/hero-poster.d.ts +4 -0
  209. package/registry/examples/shop/hero-poster.js +15 -0
  210. package/registry/examples/shop/hero-poster.tsx +14 -0
  211. package/registry/examples/shop/hero-split.d.ts +4 -0
  212. package/registry/examples/shop/hero-split.js +15 -0
  213. package/registry/examples/shop/hero-split.tsx +14 -0
  214. package/registry/examples/shop/hero-tv.d.ts +4 -0
  215. package/registry/examples/shop/hero-tv.js +15 -0
  216. package/registry/examples/shop/hero-tv.tsx +14 -0
  217. package/registry/examples/shop/index.d.ts +4 -0
  218. package/registry/examples/shop/index.js +13 -0
  219. package/registry/examples/shop/index.tsx +12 -0
  220. package/registry/examples/shop/menu-columns.d.ts +4 -0
  221. package/registry/examples/shop/menu-columns.js +13 -0
  222. package/registry/examples/shop/menu-columns.tsx +12 -0
  223. package/registry/examples/shop/menu.d.ts +4 -0
  224. package/registry/examples/shop/menu.js +25 -0
  225. package/registry/examples/shop/menu.tsx +21 -0
  226. package/registry/examples/shop/page.d.ts +4 -0
  227. package/registry/examples/shop/page.js +32 -0
  228. package/registry/examples/shop/page.tsx +27 -0
  229. package/registry/examples/shop/policies.d.ts +4 -0
  230. package/registry/examples/shop/policies.js +13 -0
  231. package/registry/examples/shop/policies.tsx +12 -0
  232. package/registry/examples/shop/reviews-quote.d.ts +4 -0
  233. package/registry/examples/shop/reviews-quote.js +13 -0
  234. package/registry/examples/shop/reviews-quote.tsx +12 -0
  235. package/registry/examples/shop/reviews-strip.d.ts +4 -0
  236. package/registry/examples/shop/reviews-strip.js +13 -0
  237. package/registry/examples/shop/reviews-strip.tsx +12 -0
  238. package/registry/examples/shop/reviews-summary-cards.d.ts +4 -0
  239. package/registry/examples/shop/reviews-summary-cards.js +13 -0
  240. package/registry/examples/shop/reviews-summary-cards.tsx +12 -0
  241. package/registry/examples/shop/social-facade.d.ts +4 -0
  242. package/registry/examples/shop/social-facade.js +13 -0
  243. package/registry/examples/shop/social-facade.tsx +12 -0
  244. package/registry/examples/shop/social-links.d.ts +4 -0
  245. package/registry/examples/shop/social-links.js +12 -0
  246. package/registry/examples/shop/social-links.tsx +11 -0
  247. package/registry/examples/shop/story-owner.d.ts +4 -0
  248. package/registry/examples/shop/story-owner.js +13 -0
  249. package/registry/examples/shop/story-owner.tsx +12 -0
  250. package/registry/examples/shop/story-quote.d.ts +4 -0
  251. package/registry/examples/shop/story-quote.js +13 -0
  252. package/registry/examples/shop/story-quote.tsx +12 -0
  253. package/registry/examples/shop/team-cards.d.ts +4 -0
  254. package/registry/examples/shop/team-cards.js +13 -0
  255. package/registry/examples/shop/team-cards.tsx +12 -0
  256. package/registry/examples/shop/team-row.d.ts +4 -0
  257. package/registry/examples/shop/team-row.js +13 -0
  258. package/registry/examples/shop/team-row.tsx +12 -0
  259. package/registry/examples/shop/video-shorts.d.ts +4 -0
  260. package/registry/examples/shop/video-shorts.js +14 -0
  261. package/registry/examples/shop/video-shorts.tsx +13 -0
  262. package/registry/examples/shop/video-tv.d.ts +4 -0
  263. package/registry/examples/shop/video-tv.js +13 -0
  264. package/registry/examples/shop/video-tv.tsx +12 -0
  265. package/registry/examples/shop/visit-card.d.ts +4 -0
  266. package/registry/examples/shop/visit-card.js +13 -0
  267. package/registry/examples/shop/visit-card.tsx +12 -0
  268. package/registry/examples/shop/visit-map.d.ts +4 -0
  269. package/registry/examples/shop/visit-map.js +13 -0
  270. package/registry/examples/shop/visit-map.tsx +12 -0
  271. package/registry/examples/shop/visit-split.d.ts +4 -0
  272. package/registry/examples/shop/visit-split.js +13 -0
  273. package/registry/examples/shop/visit-split.tsx +12 -0
  274. package/registry/examples/shop-composer/composer.d.ts +4 -0
  275. package/registry/examples/shop-composer/composer.js +17 -0
  276. package/registry/examples/shop-composer/composer.tsx +21 -0
  277. package/registry/field.json +1 -1
  278. package/registry/file-upload.json +1 -1
  279. package/registry/filter-bar.json +1 -1
  280. package/registry/flock.json +1 -1
  281. package/registry/footnote.json +1 -1
  282. package/registry/force-update-screen.json +1 -1
  283. package/registry/form.json +1 -1
  284. package/registry/gallery-page.json +1 -1
  285. package/registry/genui.json +1 -1
  286. package/registry/glossary-term.json +1 -1
  287. package/registry/glossary.json +1 -1
  288. package/registry/glow-card.json +1 -1
  289. package/registry/goal-gauge.json +1 -1
  290. package/registry/grade-stamp.json +1 -1
  291. package/registry/how-it-works-page.json +1 -1
  292. package/registry/image-cropper.json +1 -1
  293. package/registry/index.json +98 -7
  294. package/registry/iso.json +1 -1
  295. package/registry/kanban.json +1 -1
  296. package/registry/kbd.json +1 -1
  297. package/registry/kind-config-editor.json +1 -1
  298. package/registry/kpi-explained.json +1 -1
  299. package/registry/landing-page.json +1 -1
  300. package/registry/landscape.json +1 -1
  301. package/registry/language-switch.json +1 -1
  302. package/registry/legal-page.json +1 -1
  303. package/registry/link-card.json +1 -1
  304. package/registry/list.json +1 -1
  305. package/registry/loader.json +1 -1
  306. package/registry/longform-page.json +1 -1
  307. package/registry/maintenance-screen.json +1 -1
  308. package/registry/map.json +2 -2
  309. package/registry/margin-layout.json +1 -1
  310. package/registry/markdown.json +1 -1
  311. package/registry/marketing-layout.json +1 -1
  312. package/registry/marquee.json +1 -1
  313. package/registry/mascot-quote.json +1 -1
  314. package/registry/mascot-state.json +1 -1
  315. package/registry/mascots.json +1 -1
  316. package/registry/match-dialog.json +1 -1
  317. package/registry/media-capture.json +1 -1
  318. package/registry/media-gallery.json +1 -1
  319. package/registry/media-grid.json +1 -1
  320. package/registry/meta-row.json +1 -1
  321. package/registry/meter.json +1 -1
  322. package/registry/nav-bar.json +2 -2
  323. package/registry/next-actions.json +1 -1
  324. package/registry/notification-preferences.json +1 -1
  325. package/registry/number-ticker.json +1 -1
  326. package/registry/opening-hours.json +1 -1
  327. package/registry/page-header.json +1 -1
  328. package/registry/page-hero.json +1 -1
  329. package/registry/page-index.json +1 -1
  330. package/registry/page.json +1 -1
  331. package/registry/pagination.json +1 -1
  332. package/registry/photo-grid.json +1 -1
  333. package/registry/pointer-light.json +1 -1
  334. package/registry/popover.json +1 -1
  335. package/registry/pricing-page.json +1 -1
  336. package/registry/product-page.json +1 -1
  337. package/registry/profile-card.json +1 -1
  338. package/registry/progress.json +1 -1
  339. package/registry/promise-card.json +1 -1
  340. package/registry/quota-meter.json +1 -1
  341. package/registry/radio-group.json +1 -1
  342. package/registry/rail-nav.json +2 -2
  343. package/registry/recipes.json +1 -1
  344. package/registry/retro-tv.json +1 -1
  345. package/registry/reviews.json +1 -1
  346. package/registry/router.json +1 -1
  347. package/registry/scroll-stage.json +1 -1
  348. package/registry/search-field.json +1 -1
  349. package/registry/section-backdrop.json +1 -1
  350. package/registry/separator.json +1 -1
  351. package/registry/service-card.json +24 -6
  352. package/registry/settings-layout.json +1 -1
  353. package/registry/shop-composer.json +424 -0
  354. package/registry/shop.json +776 -0
  355. package/registry/showcase.json +1 -1
  356. package/registry/signature.json +1 -1
  357. package/registry/site-cahier.json +1 -1
  358. package/registry/site-footer.json +2 -2
  359. package/registry/sites.json +1 -1
  360. package/registry/skeleton.json +1 -1
  361. package/registry/skip-link.json +1 -1
  362. package/registry/slider.json +1 -1
  363. package/registry/slot-picker.json +1 -1
  364. package/registry/slot.json +1 -1
  365. package/registry/specimen-tag.json +1 -1
  366. package/registry/speed-lines.json +1 -1
  367. package/registry/spinner.json +1 -1
  368. package/registry/split-view.json +1 -1
  369. package/registry/stage-banner.json +1 -1
  370. package/registry/stat.json +1 -1
  371. package/registry/status-chip.json +1 -1
  372. package/registry/status-page.json +1 -1
  373. package/registry/step-progress.json +1 -1
  374. package/registry/step-showcase.json +1 -1
  375. package/registry/stepper.json +1 -1
  376. package/registry/sticky-action.json +1 -1
  377. package/registry/stuck.json +1 -1
  378. package/registry/swipe-deck.json +1 -1
  379. package/registry/switch.json +1 -1
  380. package/registry/tabs.json +1 -1
  381. package/registry/tag-input.json +1 -1
  382. package/registry/tag-selector.json +1 -1
  383. package/registry/taped-photo.json +1 -1
  384. package/registry/terminal-replay.json +1 -1
  385. package/registry/text-style.json +1 -1
  386. package/registry/theme.json +1 -1
  387. package/registry/toast.json +1 -1
  388. package/registry/toc.json +1 -1
  389. package/registry/tooltip.json +1 -1
  390. package/registry/tree-view.json +1 -1
  391. package/registry/update-prompt.json +1 -1
  392. package/registry/upload-queue.json +1 -1
  393. package/registry/usage.json +1 -1
  394. package/registry/verified-badge.json +1 -1
  395. package/registry/versus-card.json +1 -1
  396. package/registry/vertical-video.json +1 -1
  397. package/registry/video-player.json +1 -1
  398. package/registry/video-trimmer.json +1 -1
  399. package/registry/virtual.json +1 -1
  400. package/registry/wall.json +3 -3
  401. package/registry/waveform.json +1 -1
  402. package/dist/chunk-7AZ23BUX.js +0 -88
  403. package/dist/chunk-7AZ23BUX.js.map +0 -1
  404. package/dist/chunk-PW2FVPTV.js +0 -85
  405. package/dist/chunk-PW2FVPTV.js.map +0 -1
@@ -0,0 +1,57 @@
1
+ import * as React from 'react';
2
+ import { L as LinkComponent } from '../block-link-BAg4eoZk.js';
3
+ import { ShopPhoto } from '../shop.js';
4
+
5
+ type ServicesVariant = "menu" | "cards" | "index" | "carousel";
6
+ /** A service as the product resolved it: its own photo (or none), its price already formatted. */
7
+ type ShopService = {
8
+ id: string;
9
+ name: string;
10
+ /** Formatted by the app (`$45`): the section never formats money. */
11
+ price: string;
12
+ /** The word before a varying price (`from`). */
13
+ priceFrom?: string;
14
+ /** `30 min`. */
15
+ duration?: string;
16
+ /** `Up to 5 dogs`. */
17
+ capacity?: string;
18
+ /** One line: what it is (truncated in the menu). */
19
+ description?: string;
20
+ /** What is included, one short line each (cards and index). */
21
+ included?: readonly string[];
22
+ /** The shop's category (`cuts`): the menu's group. */
23
+ category?: string;
24
+ /** The service's OWN photo. Never a default: without one the menu draws no thumbnail. */
25
+ photo?: ShopPhoto;
26
+ /** Booked most often (a real count): wears « Popular ». */
27
+ popular?: boolean;
28
+ /** The booking page with this service chosen. */
29
+ href?: string;
30
+ };
31
+ type ServicesSectionProps = Omit<React.ComponentProps<"section">, "title"> & {
32
+ /** @default "menu" */
33
+ variant?: ServicesVariant;
34
+ services: readonly ShopService[];
35
+ /** The section's `h2` (`Services`). */
36
+ title: React.ReactNode;
37
+ lead?: React.ReactNode;
38
+ /** `menu`: group by the services' `category`. @default "category" */
39
+ groupBy?: "category" | "none";
40
+ /** `menu` with no `aside`: one or two columns. @default 1 */
41
+ columns?: 1 | 2;
42
+ /** `menu`: the hours, the team and the address, beside the list from `lg` (sticky), below it on a phone. */
43
+ aside?: React.ReactNode;
44
+ /** The button's words (`Choose`); its accessible name is « Choose Short cut ». */
45
+ chooseLabel: string;
46
+ /** « Popular ». */
47
+ popularLabel: string;
48
+ /** The list's accessible name when there is no group (`Services`). */
49
+ listLabel?: string;
50
+ /** The app's link component for the booking addresses. */
51
+ linkAs?: LinkComponent;
52
+ };
53
+ /** The services of a shop: the price board by default, or cards, index cards, a carousel. */
54
+ declare function ServicesSection({ variant, services, title, lead, groupBy, columns, aside, chooseLabel, popularLabel, listLabel, linkAs, className, ...props }: ServicesSectionProps): React.JSX.Element;
55
+
56
+ export { ServicesSection };
57
+ export type { ServicesSectionProps, ServicesVariant, ShopService };
@@ -0,0 +1,118 @@
1
+ import {
2
+ BlockLink
3
+ } from "../chunk-HKEAYSFS.js";
4
+ import {
5
+ Photo
6
+ } from "../chunk-5D7NMUF6.js";
7
+ import {
8
+ SHOP_LIMITS
9
+ } from "../chunk-ZYHWJ7U5.js";
10
+ import {
11
+ ShopSection
12
+ } from "../chunk-A7MQPIEG.js";
13
+ import {
14
+ cn
15
+ } from "../chunk-B47WSPMP.js";
16
+
17
+ // src/shop/services/services.tsx
18
+ import { Badge } from "@krizaka/ui/badge";
19
+ import { buttonVariants } from "@krizaka/ui/button";
20
+ import { ServiceCard } from "@krizaka/ui/service-card";
21
+ import * as React from "react";
22
+ import { jsx, jsxs } from "react/jsx-runtime";
23
+ var GROUP_NOTE = "m-0 font-mono text-[13px] lowercase text-fg-secondary";
24
+ function groupsOf(services, by) {
25
+ if (by === "none") return [{ name: void 0, items: services }];
26
+ const groups = [];
27
+ for (const s of services) {
28
+ const name = s.category;
29
+ const group = groups.find((g) => g.name === name);
30
+ if (group) group.items.push(s);
31
+ else groups.push({ name, items: [s] });
32
+ }
33
+ return groups;
34
+ }
35
+ function MenuRow({ service, chooseLabel, popularLabel, linkAs }) {
36
+ const facts = [service.duration, service.capacity].filter(Boolean).join(" \xB7 ");
37
+ return /* @__PURE__ */ jsxs("li", { className: "flex items-center gap-3 border-b border-border-subtle py-2.5 last:border-b-0", "data-service": service.id, children: [
38
+ service.photo && /* @__PURE__ */ jsx(Photo, { photo: service.photo, ratio: "1/1", sizes: "56px", className: "h-12 w-12 shrink-0 rounded-md sm:h-14 sm:w-14" }),
39
+ /* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
40
+ /* @__PURE__ */ jsxs("div", { className: "flex items-baseline gap-2", children: [
41
+ /* @__PURE__ */ jsx("h3", { className: "m-0 shrink truncate text-[15px] font-semibold leading-tight text-fg", children: service.name }),
42
+ service.popular && /* @__PURE__ */ jsx(Badge, { tone: "accent", size: "sm", className: "hidden shrink-0 self-center sm:inline-flex", children: popularLabel }),
43
+ /* @__PURE__ */ jsx("span", { "aria-hidden": true, className: "min-w-4 flex-1 -translate-y-0.5 border-b border-dotted border-border-control" }),
44
+ /* @__PURE__ */ jsxs("span", { className: "shrink-0 whitespace-nowrap text-[15px] font-bold tabular-nums text-fg", children: [
45
+ service.priceFrom && /* @__PURE__ */ jsx("span", { className: "mr-1 text-xs font-medium text-fg-secondary", children: service.priceFrom }),
46
+ service.price
47
+ ] })
48
+ ] }),
49
+ /* @__PURE__ */ jsxs("p", { className: "m-0 mt-0.5 truncate text-[13px] leading-snug text-fg-secondary", children: [
50
+ service.popular && /* @__PURE__ */ jsx(Badge, { tone: "accent", size: "sm", className: "mr-1.5 sm:hidden", children: popularLabel }),
51
+ /* @__PURE__ */ jsx("span", { className: "font-mono tabular-nums", children: facts }),
52
+ facts && service.description && /* @__PURE__ */ jsx("span", { "aria-hidden": true, children: " \xB7 " }),
53
+ service.description
54
+ ] })
55
+ ] }),
56
+ service.href && /* @__PURE__ */ jsx(
57
+ BlockLink,
58
+ {
59
+ href: service.href,
60
+ linkAs,
61
+ "aria-label": `${chooseLabel} ${service.name}`,
62
+ className: cn(buttonVariants({ variant: "secondary", size: "md" }), "min-h-11 shrink-0 no-underline"),
63
+ children: chooseLabel
64
+ }
65
+ )
66
+ ] });
67
+ }
68
+ function Menu({ services, groupBy, columns, aside, chooseLabel, popularLabel, listLabel, linkAs }) {
69
+ const groups = groupsOf(services, groupBy);
70
+ const uid = React.useId();
71
+ const list = /* @__PURE__ */ jsx("div", { className: cn("grid gap-x-12", !aside && columns === 2 && "lg:grid-cols-2"), children: groups.map((g, i) => /* @__PURE__ */ jsxs("div", { className: "mb-3 min-w-0 last:mb-0", children: [
72
+ g.name && /* @__PURE__ */ jsx("p", { className: GROUP_NOTE, id: `${uid}-grp-${i}`, children: g.name }),
73
+ /* @__PURE__ */ jsx("ul", { "aria-label": g.name ? void 0 : listLabel, "aria-labelledby": g.name ? `${uid}-grp-${i}` : void 0, className: "m-0 list-none p-0", children: g.items.map((s) => /* @__PURE__ */ jsx(MenuRow, { service: s, chooseLabel, popularLabel, linkAs }, s.id)) })
74
+ ] }, g.name ?? i)) });
75
+ if (!aside) return list;
76
+ return /* @__PURE__ */ jsxs("div", { className: "grid items-start gap-6 lg:grid-cols-[minmax(0,1fr)_20rem] lg:gap-12", children: [
77
+ list,
78
+ /* @__PURE__ */ jsx("aside", { className: "kz-shop-aside flex flex-col gap-4", children: aside })
79
+ ] });
80
+ }
81
+ function ServicesSection({ variant = "menu", services, title, lead, groupBy = "category", columns = 1, aside, chooseLabel, popularLabel, listLabel, linkAs, className, ...props }) {
82
+ const card = (s, i, extra) => /* @__PURE__ */ jsx(
83
+ ServiceCard,
84
+ {
85
+ name: s.name,
86
+ price: s.price,
87
+ priceFrom: s.priceFrom,
88
+ duration: s.duration,
89
+ capacity: s.capacity,
90
+ description: s.description,
91
+ included: s.included,
92
+ tag: s.popular ? popularLabel : void 0,
93
+ media: s.photo ? /* @__PURE__ */ jsx("img", { src: s.photo.src, srcSet: s.photo.srcSet, sizes: "(min-width: 64rem) 18rem, 90vw", alt: s.photo.alt, loading: "lazy", decoding: "async" }) : void 0,
94
+ mediaRatio: "photo",
95
+ variant: variant === "index" ? "index" : "default",
96
+ actionLabel: chooseLabel,
97
+ href: s.href,
98
+ linkAs,
99
+ className: extra,
100
+ "data-index": i
101
+ },
102
+ s.id
103
+ );
104
+ let body;
105
+ if (variant === "menu") {
106
+ body = /* @__PURE__ */ jsx(Menu, { services, groupBy, columns, aside, chooseLabel, popularLabel, listLabel, linkAs });
107
+ } else if (variant === "carousel") {
108
+ body = /* @__PURE__ */ jsx("div", { role: "group", "aria-label": listLabel ?? (typeof title === "string" ? title : void 0), tabIndex: 0, className: "-mx-4 flex snap-x snap-mandatory gap-3 overflow-x-auto px-4 pb-2 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring sm:mx-0 sm:px-0", children: services.map((s, i) => card(s, i, "w-[78vw] max-w-72 shrink-0 snap-start sm:w-72")) });
109
+ } else {
110
+ const shown = variant === "cards" ? services.slice(0, SHOP_LIMITS.cards) : services;
111
+ body = /* @__PURE__ */ jsx("div", { className: "grid items-start gap-4 sm:grid-cols-2 lg:grid-cols-3", children: shown.map((s, i) => card(s, i, "h-auto")) });
112
+ }
113
+ return /* @__PURE__ */ jsx(ShopSection, { title, lead, className, "data-variant": variant, ...props, children: body });
114
+ }
115
+ export {
116
+ ServicesSection
117
+ };
118
+ //# sourceMappingURL=services.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/shop/services/services.tsx"],"sourcesContent":["// Server-safe: no hook. The services of a shop (ADR-007 §3). `menu` — the compact price board, the default of every preset:\n// one row per service (an optional 56 px square thumbnail of the service's own photo, the name, « Popular », a dotted leader,\n// the price in tabular figures, the duration and one line, a « Choose » button that names the service), grouped by category\n// under a lower-case typewriter note, in one column beside an `aside` or in two. `cards` (4:3, six at most), `index` (the\n// Cahier's stamped cards), `carousel` (a snap strip, phone first). The section receives resolved services; it never fetches.\nimport { Badge } from \"@krizaka/ui/badge\";\nimport { buttonVariants } from \"@krizaka/ui/button\";\nimport { ServiceCard } from \"@krizaka/ui/service-card\";\nimport * as React from \"react\";\n\nimport { BlockLink, type LinkComponent } from \"../../block-link\";\nimport { cn } from \"../../cn\";\nimport type { ShopPhoto } from \"../frame\";\nimport { ShopSection } from \"../frame\";\nimport { SHOP_LIMITS } from \"../limits\";\nimport { Photo } from \"../photo\";\n\nexport type ServicesVariant = \"menu\" | \"cards\" | \"index\" | \"carousel\";\n\n/** A service as the product resolved it: its own photo (or none), its price already formatted. */\nexport type ShopService = {\n id: string;\n name: string;\n /** Formatted by the app (`$45`): the section never formats money. */\n price: string;\n /** The word before a varying price (`from`). */\n priceFrom?: string;\n /** `30 min`. */\n duration?: string;\n /** `Up to 5 dogs`. */\n capacity?: string;\n /** One line: what it is (truncated in the menu). */\n description?: string;\n /** What is included, one short line each (cards and index). */\n included?: readonly string[];\n /** The shop's category (`cuts`): the menu's group. */\n category?: string;\n /** The service's OWN photo. Never a default: without one the menu draws no thumbnail. */\n photo?: ShopPhoto;\n /** Booked most often (a real count): wears « Popular ». */\n popular?: boolean;\n /** The booking page with this service chosen. */\n href?: string;\n};\n\nexport type ServicesSectionProps = Omit<React.ComponentProps<\"section\">, \"title\"> & {\n /** @default \"menu\" */\n variant?: ServicesVariant;\n services: readonly ShopService[];\n /** The section's `h2` (`Services`). */\n title: React.ReactNode;\n lead?: React.ReactNode;\n /** `menu`: group by the services' `category`. @default \"category\" */\n groupBy?: \"category\" | \"none\";\n /** `menu` with no `aside`: one or two columns. @default 1 */\n columns?: 1 | 2;\n /** `menu`: the hours, the team and the address, beside the list from `lg` (sticky), below it on a phone. */\n aside?: React.ReactNode;\n /** The button's words (`Choose`); its accessible name is « Choose Short cut ». */\n chooseLabel: string;\n /** « Popular ». */\n popularLabel: string;\n /** The list's accessible name when there is no group (`Services`). */\n listLabel?: string;\n /** The app's link component for the booking addresses. */\n linkAs?: LinkComponent;\n};\n\nconst GROUP_NOTE = \"m-0 font-mono text-[13px] lowercase text-fg-secondary\";\n\nfunction groupsOf(services: readonly ShopService[], by: \"category\" | \"none\") {\n if (by === \"none\") return [{ name: undefined as string | undefined, items: services }];\n const groups: { name: string | undefined; items: ShopService[] }[] = [];\n for (const s of services) {\n const name = s.category;\n const group = groups.find((g) => g.name === name);\n if (group) group.items.push(s);\n else groups.push({ name, items: [s] });\n }\n return groups;\n}\n\nfunction MenuRow({ service, chooseLabel, popularLabel, linkAs }: { service: ShopService; chooseLabel: string; popularLabel: string; linkAs?: LinkComponent }) {\n const facts = [service.duration, service.capacity].filter(Boolean).join(\" · \");\n return (\n <li className=\"flex items-center gap-3 border-b border-border-subtle py-2.5 last:border-b-0\" data-service={service.id}>\n {service.photo && (\n <Photo photo={service.photo} ratio=\"1/1\" sizes=\"56px\" className=\"h-12 w-12 shrink-0 rounded-md sm:h-14 sm:w-14\" />\n )}\n <div className=\"min-w-0 flex-1\">\n <div className=\"flex items-baseline gap-2\">\n <h3 className=\"m-0 shrink truncate text-[15px] font-semibold leading-tight text-fg\">{service.name}</h3>\n {service.popular && <Badge tone=\"accent\" size=\"sm\" className=\"hidden shrink-0 self-center sm:inline-flex\">{popularLabel}</Badge>}\n <span aria-hidden className=\"min-w-4 flex-1 -translate-y-0.5 border-b border-dotted border-border-control\" />\n <span className=\"shrink-0 whitespace-nowrap text-[15px] font-bold tabular-nums text-fg\">\n {service.priceFrom && <span className=\"mr-1 text-xs font-medium text-fg-secondary\">{service.priceFrom}</span>}\n {service.price}\n </span>\n </div>\n <p className=\"m-0 mt-0.5 truncate text-[13px] leading-snug text-fg-secondary\">\n {service.popular && <Badge tone=\"accent\" size=\"sm\" className=\"mr-1.5 sm:hidden\">{popularLabel}</Badge>}\n <span className=\"font-mono tabular-nums\">{facts}</span>\n {facts && service.description && <span aria-hidden> · </span>}\n {service.description}\n </p>\n </div>\n {service.href && (\n <BlockLink\n href={service.href}\n linkAs={linkAs}\n aria-label={`${chooseLabel} ${service.name}`}\n className={cn(buttonVariants({ variant: \"secondary\", size: \"md\" }), \"min-h-11 shrink-0 no-underline\")}\n >\n {chooseLabel}\n </BlockLink>\n )}\n </li>\n );\n}\n\nfunction Menu({ services, groupBy, columns, aside, chooseLabel, popularLabel, listLabel, linkAs }: Required<Pick<ServicesSectionProps, \"services\" | \"groupBy\" | \"columns\" | \"chooseLabel\" | \"popularLabel\">> & Pick<ServicesSectionProps, \"aside\" | \"listLabel\" | \"linkAs\">) {\n const groups = groupsOf(services, groupBy);\n const uid = React.useId();\n const list = (\n <div className={cn(\"grid gap-x-12\", !aside && columns === 2 && \"lg:grid-cols-2\")}>\n {groups.map((g, i) => (\n <div key={g.name ?? i} className=\"mb-3 min-w-0 last:mb-0\">\n {g.name && <p className={GROUP_NOTE} id={`${uid}-grp-${i}`}>{g.name}</p>}\n <ul aria-label={g.name ? undefined : listLabel} aria-labelledby={g.name ? `${uid}-grp-${i}` : undefined} className=\"m-0 list-none p-0\">\n {g.items.map((s) => (\n <MenuRow key={s.id} service={s} chooseLabel={chooseLabel} popularLabel={popularLabel} linkAs={linkAs} />\n ))}\n </ul>\n </div>\n ))}\n </div>\n );\n if (!aside) return list;\n return (\n <div className=\"grid items-start gap-6 lg:grid-cols-[minmax(0,1fr)_20rem] lg:gap-12\">\n {list}\n <aside className=\"kz-shop-aside flex flex-col gap-4\">{aside}</aside>\n </div>\n );\n}\n\n/** The services of a shop: the price board by default, or cards, index cards, a carousel. */\nexport function ServicesSection({ variant = \"menu\", services, title, lead, groupBy = \"category\", columns = 1, aside, chooseLabel, popularLabel, listLabel, linkAs, className, ...props }: ServicesSectionProps) {\n const card = (s: ShopService, i: number, extra?: string) => (\n <ServiceCard\n key={s.id}\n name={s.name}\n price={s.price}\n priceFrom={s.priceFrom}\n duration={s.duration}\n capacity={s.capacity}\n description={s.description}\n included={s.included}\n tag={s.popular ? popularLabel : undefined}\n media={s.photo ? <img src={s.photo.src} srcSet={s.photo.srcSet} sizes=\"(min-width: 64rem) 18rem, 90vw\" alt={s.photo.alt} loading=\"lazy\" decoding=\"async\" /> : undefined}\n mediaRatio=\"photo\"\n variant={variant === \"index\" ? \"index\" : \"default\"}\n actionLabel={chooseLabel}\n href={s.href}\n linkAs={linkAs}\n className={extra}\n data-index={i}\n />\n );\n let body: React.ReactNode;\n if (variant === \"menu\") {\n body = <Menu services={services} groupBy={groupBy} columns={columns} aside={aside} chooseLabel={chooseLabel} popularLabel={popularLabel} listLabel={listLabel} linkAs={linkAs} />;\n } else if (variant === \"carousel\") {\n body = (\n <div role=\"group\" aria-label={listLabel ?? (typeof title === \"string\" ? title : undefined)} tabIndex={0} className=\"-mx-4 flex snap-x snap-mandatory gap-3 overflow-x-auto px-4 pb-2 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring sm:mx-0 sm:px-0\">\n {services.map((s, i) => card(s, i, \"w-[78vw] max-w-72 shrink-0 snap-start sm:w-72\"))}\n </div>\n );\n } else {\n const shown = variant === \"cards\" ? services.slice(0, SHOP_LIMITS.cards) : services;\n body = <div className=\"grid items-start gap-4 sm:grid-cols-2 lg:grid-cols-3\">{shown.map((s, i) => card(s, i, \"h-auto\"))}</div>;\n }\n return (\n <ShopSection title={title} lead={lead} className={className} data-variant={variant} {...props}>\n {body}\n </ShopSection>\n );\n}\n"],"mappings":"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","names":[]}
@@ -0,0 +1,27 @@
1
+ import { EmbedPlatform } from '@krizaka/ui/embed-facade';
2
+ import * as React from 'react';
3
+
4
+ type SocialVariant = "links" | "facade";
5
+ type ShopLink = {
6
+ id: string;
7
+ platform: EmbedPlatform;
8
+ url: string;
9
+ };
10
+ type SocialSectionProps = Omit<React.ComponentProps<"section">, "title"> & {
11
+ /** @default "links" */
12
+ variant?: SocialVariant;
13
+ title: React.ReactNode;
14
+ links: readonly ShopLink[];
15
+ /** `links`: the name of each place, passed translated (`TikTok`). Default: the platform's own. */
16
+ labels?: Partial<Record<EmbedPlatform, string>>;
17
+ /** `facade`: the button's words per platform, and the reel's name. */
18
+ playLabels?: Record<EmbedPlatform, string>;
19
+ reelTitle?: string;
20
+ poster?: string;
21
+ notice?: React.ReactNode;
22
+ };
23
+ /** Where else to find the shop. */
24
+ declare function SocialSection({ variant, title, links, labels, playLabels, reelTitle, poster, notice, className, ...props }: SocialSectionProps): React.JSX.Element | null;
25
+
26
+ export { SocialSection };
27
+ export type { ShopLink, SocialSectionProps, SocialVariant };
@@ -0,0 +1,27 @@
1
+ import {
2
+ ShopSection
3
+ } from "../chunk-A7MQPIEG.js";
4
+ import "../chunk-B47WSPMP.js";
5
+
6
+ // src/shop/social/social.tsx
7
+ import { EMBED_PLATFORMS, EmbedFacade } from "@krizaka/ui/embed-facade";
8
+ import { jsx } from "react/jsx-runtime";
9
+ function SocialSection({ variant = "links", title, links, labels = {}, playLabels, reelTitle, poster, notice, className, ...props }) {
10
+ if (links.length === 0) return null;
11
+ const first = links[0];
12
+ return /* @__PURE__ */ jsx(ShopSection, { title, className, "data-variant": variant, ...props, children: variant === "facade" && playLabels ? /* @__PURE__ */ jsx("div", { className: "w-44 sm:w-52", children: /* @__PURE__ */ jsx(EmbedFacade, { platform: first.platform, url: first.url, title: reelTitle ?? labels[first.platform] ?? EMBED_PLATFORMS[first.platform], playLabel: playLabels[first.platform], poster, notice }) }) : /* @__PURE__ */ jsx("ul", { className: "m-0 flex list-none flex-wrap gap-2 p-0", children: links.map((l) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
13
+ "a",
14
+ {
15
+ href: l.url,
16
+ target: "_blank",
17
+ rel: "noopener noreferrer nofollow",
18
+ referrerPolicy: "no-referrer",
19
+ className: "inline-flex min-h-11 items-center rounded-md border border-border-control bg-surface-1 px-4 text-sm font-semibold text-fg no-underline hover:border-accent focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring",
20
+ children: labels[l.platform] ?? EMBED_PLATFORMS[l.platform]
21
+ }
22
+ ) }, l.id)) }) });
23
+ }
24
+ export {
25
+ SocialSection
26
+ };
27
+ //# sourceMappingURL=social.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/shop/social/social.tsx"],"sourcesContent":["// Server-safe (the facade is a client island). The shop's other places (ADR-007 §3): `links` — plain anchors that open in a\n// new tab, `nofollow`, no referrer, nothing loaded from the platform; `facade` — the latest reel behind a button. Third\n// parties load on a click, never before (Law 25).\nimport { EMBED_PLATFORMS,EmbedFacade, type EmbedPlatform } from \"@krizaka/ui/embed-facade\";\nimport * as React from \"react\";\n\nimport { ShopSection } from \"../frame\";\n\nexport type SocialVariant = \"links\" | \"facade\";\n\nexport type ShopLink = { id: string; platform: EmbedPlatform; url: string };\n\nexport type SocialSectionProps = Omit<React.ComponentProps<\"section\">, \"title\"> & {\n /** @default \"links\" */\n variant?: SocialVariant;\n title: React.ReactNode;\n links: readonly ShopLink[];\n /** `links`: the name of each place, passed translated (`TikTok`). Default: the platform's own. */\n labels?: Partial<Record<EmbedPlatform, string>>;\n /** `facade`: the button's words per platform, and the reel's name. */\n playLabels?: Record<EmbedPlatform, string>;\n reelTitle?: string;\n poster?: string;\n notice?: React.ReactNode;\n};\n\n/** Where else to find the shop. */\nexport function SocialSection({ variant = \"links\", title, links, labels = {}, playLabels, reelTitle, poster, notice, className, ...props }: SocialSectionProps) {\n if (links.length === 0) return null;\n const first = links[0]!;\n return (\n <ShopSection title={title} className={className} data-variant={variant} {...props}>\n {variant === \"facade\" && playLabels ? (\n <div className=\"w-44 sm:w-52\">\n <EmbedFacade platform={first.platform} url={first.url} title={reelTitle ?? labels[first.platform] ?? EMBED_PLATFORMS[first.platform]} playLabel={playLabels[first.platform]} poster={poster} notice={notice} />\n </div>\n ) : (\n <ul className=\"m-0 flex list-none flex-wrap gap-2 p-0\">\n {links.map((l) => (\n <li key={l.id}>\n <a\n href={l.url}\n target=\"_blank\"\n rel=\"noopener noreferrer nofollow\"\n referrerPolicy=\"no-referrer\"\n className=\"inline-flex min-h-11 items-center rounded-md border border-border-control bg-surface-1 px-4 text-sm font-semibold text-fg no-underline hover:border-accent focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-ring\"\n >\n {labels[l.platform] ?? EMBED_PLATFORMS[l.platform]}\n </a>\n </li>\n ))}\n </ul>\n )}\n </ShopSection>\n );\n}\n"],"mappings":";;;;;;AAGA,SAAS,iBAAgB,mBAAuC;AA+BtD;AAPH,SAAS,cAAc,EAAE,UAAU,SAAS,OAAO,OAAO,SAAS,CAAC,GAAG,YAAY,WAAW,QAAQ,QAAQ,WAAW,GAAG,MAAM,GAAuB;AAC9J,MAAI,MAAM,WAAW,EAAG,QAAO;AAC/B,QAAM,QAAQ,MAAM,CAAC;AACrB,SACE,oBAAC,eAAY,OAAc,WAAsB,gBAAc,SAAU,GAAG,OACzE,sBAAY,YAAY,aACvB,oBAAC,SAAI,WAAU,gBACb,8BAAC,eAAY,UAAU,MAAM,UAAU,KAAK,MAAM,KAAK,OAAO,aAAa,OAAO,MAAM,QAAQ,KAAK,gBAAgB,MAAM,QAAQ,GAAG,WAAW,WAAW,MAAM,QAAQ,GAAG,QAAgB,QAAgB,GAC/M,IAEA,oBAAC,QAAG,WAAU,0CACX,gBAAM,IAAI,CAAC,MACV,oBAAC,QACC;AAAA,IAAC;AAAA;AAAA,MACC,MAAM,EAAE;AAAA,MACR,QAAO;AAAA,MACP,KAAI;AAAA,MACJ,gBAAe;AAAA,MACf,WAAU;AAAA,MAET,iBAAO,EAAE,QAAQ,KAAK,gBAAgB,EAAE,QAAQ;AAAA;AAAA,EACnD,KATO,EAAE,EAUX,CACD,GACH,GAEJ;AAEJ;","names":[]}
@@ -0,0 +1,24 @@
1
+ import * as React from 'react';
2
+
3
+ type StoryVariant = "quote" | "owner";
4
+ type StorySectionProps = Omit<React.ComponentProps<"section">, "title"> & {
5
+ /** @default "quote" */
6
+ variant?: StoryVariant;
7
+ title: React.ReactNode;
8
+ /** `quote`: the pull quote. */
9
+ quote?: string;
10
+ /** The paragraph. */
11
+ body: string;
12
+ /** `owner`: who speaks. */
13
+ owner?: {
14
+ name: string;
15
+ photo?: string;
16
+ };
17
+ /** `owner`: call or write (`ButtonLink`s). */
18
+ actions?: React.ReactNode;
19
+ };
20
+ /** The owner's story, as a pull quote or a face and a paragraph. */
21
+ declare function StorySection({ variant, title, quote, body, owner, actions, className, ...props }: StorySectionProps): React.JSX.Element | null;
22
+
23
+ export { StorySection };
24
+ export type { StorySectionProps, StoryVariant };
@@ -0,0 +1,26 @@
1
+ import {
2
+ ShopSection
3
+ } from "../chunk-A7MQPIEG.js";
4
+ import "../chunk-B47WSPMP.js";
5
+
6
+ // src/shop/story/story.tsx
7
+ import { Avatar } from "@krizaka/ui/avatar";
8
+ import { jsx, jsxs } from "react/jsx-runtime";
9
+ function StorySection({ variant = "quote", title, quote, body, owner, actions, className, ...props }) {
10
+ if (!body && !quote) return null;
11
+ return /* @__PURE__ */ jsx(ShopSection, { title, className, "data-variant": variant, ...props, children: variant === "owner" ? /* @__PURE__ */ jsxs("div", { className: "flex max-w-3xl items-start gap-4", children: [
12
+ owner && /* @__PURE__ */ jsx(Avatar, { src: owner.photo, alt: "", fallback: owner.name.slice(0, 1), size: "xl" }),
13
+ /* @__PURE__ */ jsxs("div", { className: "min-w-0", children: [
14
+ owner && /* @__PURE__ */ jsx("p", { className: "m-0 font-semibold text-fg", children: owner.name }),
15
+ /* @__PURE__ */ jsx("p", { className: "m-0 mt-1 text-base leading-relaxed text-fg-secondary", children: body }),
16
+ actions && /* @__PURE__ */ jsx("div", { className: "mt-3 flex flex-wrap gap-2", children: actions })
17
+ ] })
18
+ ] }) : /* @__PURE__ */ jsxs("div", { className: "grid max-w-4xl gap-4 md:grid-cols-[minmax(0,1fr)_minmax(0,1fr)] md:gap-10", children: [
19
+ quote && /* @__PURE__ */ jsx("blockquote", { className: "m-0 border-s-2 border-accent ps-4 font-display text-2xl leading-snug text-fg", children: quote }),
20
+ /* @__PURE__ */ jsx("p", { className: "m-0 text-base leading-relaxed text-fg-secondary", children: body })
21
+ ] }) });
22
+ }
23
+ export {
24
+ StorySection
25
+ };
26
+ //# sourceMappingURL=story.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/shop/story/story.tsx"],"sourcesContent":["// Server-safe. The owner's words (ADR-007 §3): `quote` — a pull quote and a paragraph; `owner` — the owner's face, a\n// paragraph, and a way to call or write. The words are the owner's, in the visitor's language; nothing is invented.\nimport { Avatar } from \"@krizaka/ui/avatar\";\nimport * as React from \"react\";\n\nimport { ShopSection } from \"../frame\";\n\nexport type StoryVariant = \"quote\" | \"owner\";\n\nexport type StorySectionProps = Omit<React.ComponentProps<\"section\">, \"title\"> & {\n /** @default \"quote\" */\n variant?: StoryVariant;\n title: React.ReactNode;\n /** `quote`: the pull quote. */\n quote?: string;\n /** The paragraph. */\n body: string;\n /** `owner`: who speaks. */\n owner?: { name: string; photo?: string };\n /** `owner`: call or write (`ButtonLink`s). */\n actions?: React.ReactNode;\n};\n\n/** The owner's story, as a pull quote or a face and a paragraph. */\nexport function StorySection({ variant = \"quote\", title, quote, body, owner, actions, className, ...props }: StorySectionProps) {\n if (!body && !quote) return null;\n return (\n <ShopSection title={title} className={className} data-variant={variant} {...props}>\n {variant === \"owner\" ? (\n <div className=\"flex max-w-3xl items-start gap-4\">\n {owner && <Avatar src={owner.photo} alt=\"\" fallback={owner.name.slice(0, 1)} size=\"xl\" />}\n <div className=\"min-w-0\">\n {owner && <p className=\"m-0 font-semibold text-fg\">{owner.name}</p>}\n <p className=\"m-0 mt-1 text-base leading-relaxed text-fg-secondary\">{body}</p>\n {actions && <div className=\"mt-3 flex flex-wrap gap-2\">{actions}</div>}\n </div>\n </div>\n ) : (\n <div className=\"grid max-w-4xl gap-4 md:grid-cols-[minmax(0,1fr)_minmax(0,1fr)] md:gap-10\">\n {quote && <blockquote className=\"m-0 border-s-2 border-accent ps-4 font-display text-2xl leading-snug text-fg\">{quote}</blockquote>}\n <p className=\"m-0 text-base leading-relaxed text-fg-secondary\">{body}</p>\n </div>\n )}\n </ShopSection>\n );\n}\n"],"mappings":";;;;;;AAEA,SAAS,cAAc;AA4BH,cACV,YADU;AANb,SAAS,aAAa,EAAE,UAAU,SAAS,OAAO,OAAO,MAAM,OAAO,SAAS,WAAW,GAAG,MAAM,GAAsB;AAC9H,MAAI,CAAC,QAAQ,CAAC,MAAO,QAAO;AAC5B,SACE,oBAAC,eAAY,OAAc,WAAsB,gBAAc,SAAU,GAAG,OACzE,sBAAY,UACX,qBAAC,SAAI,WAAU,oCACZ;AAAA,aAAS,oBAAC,UAAO,KAAK,MAAM,OAAO,KAAI,IAAG,UAAU,MAAM,KAAK,MAAM,GAAG,CAAC,GAAG,MAAK,MAAK;AAAA,IACvF,qBAAC,SAAI,WAAU,WACZ;AAAA,eAAS,oBAAC,OAAE,WAAU,6BAA6B,gBAAM,MAAK;AAAA,MAC/D,oBAAC,OAAE,WAAU,wDAAwD,gBAAK;AAAA,MACzE,WAAW,oBAAC,SAAI,WAAU,6BAA6B,mBAAQ;AAAA,OAClE;AAAA,KACF,IAEA,qBAAC,SAAI,WAAU,6EACZ;AAAA,aAAS,oBAAC,gBAAW,WAAU,gFAAgF,iBAAM;AAAA,IACtH,oBAAC,OAAE,WAAU,mDAAmD,gBAAK;AAAA,KACvE,GAEJ;AAEJ;","names":[]}
@@ -0,0 +1,24 @@
1
+ import * as React from 'react';
2
+
3
+ type TeamVariant = "row" | "cards";
4
+ type ShopMember = {
5
+ id: string;
6
+ /** The first name. */
7
+ name: string;
8
+ /** What they do (`Colourist`): `cards` only. */
9
+ role?: string;
10
+ /** Their own photo. Without one the default avatar is drawn. */
11
+ photo?: string;
12
+ };
13
+ type TeamSectionProps = Omit<React.ComponentProps<"section">, "title"> & {
14
+ /** @default "row" */
15
+ variant?: TeamVariant;
16
+ members: readonly ShopMember[];
17
+ title: React.ReactNode;
18
+ lead?: React.ReactNode;
19
+ };
20
+ /** The people of the shop. */
21
+ declare function TeamSection({ variant, members, title, lead, className, ...props }: TeamSectionProps): React.JSX.Element | null;
22
+
23
+ export { TeamSection };
24
+ export type { ShopMember, TeamSectionProps, TeamVariant };
@@ -0,0 +1,26 @@
1
+ import {
2
+ ShopSection
3
+ } from "../chunk-A7MQPIEG.js";
4
+ import "../chunk-B47WSPMP.js";
5
+
6
+ // src/shop/team/team.tsx
7
+ import { Avatar } from "@krizaka/ui/avatar";
8
+ import { jsx, jsxs } from "react/jsx-runtime";
9
+ function TeamSection({ variant = "row", members, title, lead, className, ...props }) {
10
+ if (members.length === 0) return null;
11
+ const list = variant === "cards" ? /* @__PURE__ */ jsx("ul", { className: "m-0 grid list-none gap-3 p-0 sm:grid-cols-2 lg:grid-cols-4", children: members.map((m) => /* @__PURE__ */ jsxs("li", { className: "flex items-center gap-3 rounded-xl border border-border-default bg-surface-1 p-3", children: [
12
+ /* @__PURE__ */ jsx(Avatar, { src: m.photo, fallback: m.name.slice(0, 1), size: "lg" }),
13
+ /* @__PURE__ */ jsxs("div", { className: "min-w-0", children: [
14
+ /* @__PURE__ */ jsx("p", { className: "m-0 truncate font-semibold text-fg", children: m.name }),
15
+ m.role && /* @__PURE__ */ jsx("p", { className: "m-0 truncate text-[13px] text-fg-secondary", children: m.role })
16
+ ] })
17
+ ] }, m.id)) }) : /* @__PURE__ */ jsx("ul", { className: "m-0 flex list-none flex-wrap gap-x-6 gap-y-3 p-0", children: members.map((m) => /* @__PURE__ */ jsxs("li", { className: "flex items-center gap-2.5", children: [
18
+ /* @__PURE__ */ jsx(Avatar, { src: m.photo, fallback: m.name.slice(0, 1), size: "md" }),
19
+ /* @__PURE__ */ jsx("span", { className: "font-semibold text-fg", children: m.name })
20
+ ] }, m.id)) });
21
+ return /* @__PURE__ */ jsx(ShopSection, { title, lead, className, "data-variant": variant, ...props, children: list });
22
+ }
23
+ export {
24
+ TeamSection
25
+ };
26
+ //# sourceMappingURL=team.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/shop/team/team.tsx"],"sourcesContent":["// Server-safe. The people of the shop (ADR-007 §3): `row` — avatars and first names in a line; `cards` — a card each with a\n// role. Faces are the members' own photos, or the default avatar of @krizaka/ui: never a stock face.\nimport { Avatar } from \"@krizaka/ui/avatar\";\nimport * as React from \"react\";\n\nimport { ShopSection } from \"../frame\";\n\nexport type TeamVariant = \"row\" | \"cards\";\n\nexport type ShopMember = {\n id: string;\n /** The first name. */\n name: string;\n /** What they do (`Colourist`): `cards` only. */\n role?: string;\n /** Their own photo. Without one the default avatar is drawn. */\n photo?: string;\n};\n\nexport type TeamSectionProps = Omit<React.ComponentProps<\"section\">, \"title\"> & {\n /** @default \"row\" */\n variant?: TeamVariant;\n members: readonly ShopMember[];\n title: React.ReactNode;\n lead?: React.ReactNode;\n};\n\n/** The people of the shop. */\nexport function TeamSection({ variant = \"row\", members, title, lead, className, ...props }: TeamSectionProps) {\n if (members.length === 0) return null;\n const list =\n variant === \"cards\" ? (\n <ul className=\"m-0 grid list-none gap-3 p-0 sm:grid-cols-2 lg:grid-cols-4\">\n {members.map((m) => (\n <li key={m.id} className=\"flex items-center gap-3 rounded-xl border border-border-default bg-surface-1 p-3\">\n <Avatar src={m.photo} fallback={m.name.slice(0, 1)} size=\"lg\" />\n <div className=\"min-w-0\">\n <p className=\"m-0 truncate font-semibold text-fg\">{m.name}</p>\n {m.role && <p className=\"m-0 truncate text-[13px] text-fg-secondary\">{m.role}</p>}\n </div>\n </li>\n ))}\n </ul>\n ) : (\n <ul className=\"m-0 flex list-none flex-wrap gap-x-6 gap-y-3 p-0\">\n {members.map((m) => (\n <li key={m.id} className=\"flex items-center gap-2.5\">\n <Avatar src={m.photo} fallback={m.name.slice(0, 1)} size=\"md\" />\n <span className=\"font-semibold text-fg\">{m.name}</span>\n </li>\n ))}\n </ul>\n );\n return (\n <ShopSection title={title} lead={lead} className={className} data-variant={variant} {...props}>\n {list}\n </ShopSection>\n );\n}\n"],"mappings":";;;;;;AAEA,SAAS,cAAc;AAiCX,cACA,YADA;AAPL,SAAS,YAAY,EAAE,UAAU,OAAO,SAAS,OAAO,MAAM,WAAW,GAAG,MAAM,GAAqB;AAC5G,MAAI,QAAQ,WAAW,EAAG,QAAO;AACjC,QAAM,OACJ,YAAY,UACV,oBAAC,QAAG,WAAU,8DACX,kBAAQ,IAAI,CAAC,MACZ,qBAAC,QAAc,WAAU,oFACvB;AAAA,wBAAC,UAAO,KAAK,EAAE,OAAO,UAAU,EAAE,KAAK,MAAM,GAAG,CAAC,GAAG,MAAK,MAAK;AAAA,IAC9D,qBAAC,SAAI,WAAU,WACb;AAAA,0BAAC,OAAE,WAAU,sCAAsC,YAAE,MAAK;AAAA,MACzD,EAAE,QAAQ,oBAAC,OAAE,WAAU,8CAA8C,YAAE,MAAK;AAAA,OAC/E;AAAA,OALO,EAAE,EAMX,CACD,GACH,IAEA,oBAAC,QAAG,WAAU,oDACX,kBAAQ,IAAI,CAAC,MACZ,qBAAC,QAAc,WAAU,6BACvB;AAAA,wBAAC,UAAO,KAAK,EAAE,OAAO,UAAU,EAAE,KAAK,MAAM,GAAG,CAAC,GAAG,MAAK,MAAK;AAAA,IAC9D,oBAAC,UAAK,WAAU,yBAAyB,YAAE,MAAK;AAAA,OAFzC,EAAE,EAGX,CACD,GACH;AAEJ,SACE,oBAAC,eAAY,OAAc,MAAY,WAAsB,gBAAc,SAAU,GAAG,OACrF,gBACH;AAEJ;","names":[]}
@@ -0,0 +1,40 @@
1
+ import { EmbedPlatform } from '@krizaka/ui/embed-facade';
2
+ import { RetroTvProps } from '@krizaka/ui/retro-tv';
3
+ import * as React from 'react';
4
+
5
+ type VideoVariant = "tv" | "shorts";
6
+ type ShopReel = {
7
+ id: string;
8
+ platform: EmbedPlatform;
9
+ /** The public address of the post (validated by `embedUrl`: anything else draws nothing). */
10
+ url: string;
11
+ /** Its accessible name. */
12
+ title: string;
13
+ /** The host's own copy of the picture. */
14
+ poster?: string;
15
+ };
16
+ type VideoSectionProps = Omit<React.ComponentProps<"section">, "title"> & {
17
+ /** @default "tv" */
18
+ variant?: VideoVariant;
19
+ title: React.ReactNode;
20
+ lead?: React.ReactNode;
21
+ /** The reels, newest first. `tv` plays the first one (unless `clip` is set); `shorts` draws up to six. */
22
+ reels?: readonly ShopReel[];
23
+ /** `tv`: the shop's own clip in the cabinet (`src`, `poster`, `title`). */
24
+ clip?: Pick<RetroTvProps, "src" | "poster" | "title">;
25
+ /** The facade's button, per platform (« Load TikTok and play »), passed translated. */
26
+ playLabels: Record<EmbedPlatform, string>;
27
+ /** The line under a facade's button: what the platform will receive on the click. */
28
+ notice?: React.ReactNode;
29
+ /** `tv`: the cabinet. @default "cabinet" */
30
+ cabinet?: "cabinet" | "portable";
31
+ /** `tv`: the channel written on the cabinet (`CH 3 · Saint-Henri`). */
32
+ channel?: string;
33
+ /** `tv`: what sits beside the television (a few pinned notes, a line). */
34
+ aside?: React.ReactNode;
35
+ };
36
+ /** The shop's videos: the old TV, or a strip of short reels behind a click. */
37
+ declare function VideoSection({ variant, title, lead, reels, clip, playLabels, notice, cabinet, channel, aside, className, ...props }: VideoSectionProps): React.JSX.Element;
38
+
39
+ export { VideoSection };
40
+ export type { ShopReel, VideoSectionProps, VideoVariant };
@@ -0,0 +1,33 @@
1
+ import {
2
+ SHOP_LIMITS
3
+ } from "../chunk-ZYHWJ7U5.js";
4
+ import {
5
+ ShopSection
6
+ } from "../chunk-A7MQPIEG.js";
7
+ import "../chunk-B47WSPMP.js";
8
+
9
+ // src/shop/video/video.tsx
10
+ import { EmbedFacade } from "@krizaka/ui/embed-facade";
11
+ import { RetroTv } from "@krizaka/ui/retro-tv";
12
+ import { jsx, jsxs } from "react/jsx-runtime";
13
+ function VideoSection({ variant = "tv", title, lead, reels = [], clip, playLabels, notice, cabinet = "cabinet", channel, aside, className, ...props }) {
14
+ const facade = (r, className2) => /* @__PURE__ */ jsx(EmbedFacade, { platform: r.platform, url: r.url, title: r.title, playLabel: playLabels[r.platform], poster: r.poster, notice, className: className2 }, r.id);
15
+ let body;
16
+ if (variant === "shorts") {
17
+ body = /* @__PURE__ */ jsx("ul", { className: "m-0 flex list-none snap-x snap-mandatory gap-3 overflow-x-auto p-0 pb-2", children: reels.slice(0, SHOP_LIMITS.reels).map((r) => /* @__PURE__ */ jsx("li", { className: "w-44 shrink-0 snap-start sm:w-52", children: facade(r) }, r.id)) });
18
+ } else {
19
+ const first = reels[0];
20
+ let tv = null;
21
+ if (clip) tv = /* @__PURE__ */ jsx(RetroTv, { ...clip, variant: cabinet, channel });
22
+ else if (first) tv = /* @__PURE__ */ jsx(RetroTv, { title: first.title, variant: cabinet, channel, children: facade(first) });
23
+ body = /* @__PURE__ */ jsxs("div", { className: "grid items-center gap-6 md:grid-cols-[minmax(0,1fr)_17rem] md:gap-12", children: [
24
+ /* @__PURE__ */ jsx("div", { className: "order-2 md:order-1", children: aside }),
25
+ /* @__PURE__ */ jsx("div", { className: "order-1 mx-auto w-56 md:order-2 md:w-full", children: tv })
26
+ ] });
27
+ }
28
+ return /* @__PURE__ */ jsx(ShopSection, { title, lead, className, "data-variant": variant, ...props, children: body });
29
+ }
30
+ export {
31
+ VideoSection
32
+ };
33
+ //# sourceMappingURL=video.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/shop/video/video.tsx"],"sourcesContent":["// Server-safe (the TV and the facades are client islands imported through their own entries). The shop's videos (ADR-007\n// §3): `tv` — the old television with the shop's latest video (its own clip, or a platform's short behind its facade);\n// `shorts` — another channel's reels, each behind a facade. Nothing is requested from a platform before the click.\nimport { EmbedFacade, type EmbedPlatform } from \"@krizaka/ui/embed-facade\";\nimport { RetroTv, type RetroTvProps } from \"@krizaka/ui/retro-tv\";\nimport * as React from \"react\";\n\nimport { ShopSection } from \"../frame\";\nimport { SHOP_LIMITS } from \"../limits\";\n\nexport type VideoVariant = \"tv\" | \"shorts\";\n\nexport type ShopReel = {\n id: string;\n platform: EmbedPlatform;\n /** The public address of the post (validated by `embedUrl`: anything else draws nothing). */\n url: string;\n /** Its accessible name. */\n title: string;\n /** The host's own copy of the picture. */\n poster?: string;\n};\n\nexport type VideoSectionProps = Omit<React.ComponentProps<\"section\">, \"title\"> & {\n /** @default \"tv\" */\n variant?: VideoVariant;\n title: React.ReactNode;\n lead?: React.ReactNode;\n /** The reels, newest first. `tv` plays the first one (unless `clip` is set); `shorts` draws up to six. */\n reels?: readonly ShopReel[];\n /** `tv`: the shop's own clip in the cabinet (`src`, `poster`, `title`). */\n clip?: Pick<RetroTvProps, \"src\" | \"poster\" | \"title\">;\n /** The facade's button, per platform (« Load TikTok and play »), passed translated. */\n playLabels: Record<EmbedPlatform, string>;\n /** The line under a facade's button: what the platform will receive on the click. */\n notice?: React.ReactNode;\n /** `tv`: the cabinet. @default \"cabinet\" */\n cabinet?: \"cabinet\" | \"portable\";\n /** `tv`: the channel written on the cabinet (`CH 3 · Saint-Henri`). */\n channel?: string;\n /** `tv`: what sits beside the television (a few pinned notes, a line). */\n aside?: React.ReactNode;\n};\n\n/** The shop's videos: the old TV, or a strip of short reels behind a click. */\nexport function VideoSection({ variant = \"tv\", title, lead, reels = [], clip, playLabels, notice, cabinet = \"cabinet\", channel, aside, className, ...props }: VideoSectionProps) {\n const facade = (r: ShopReel, className?: string) => (\n <EmbedFacade key={r.id} platform={r.platform} url={r.url} title={r.title} playLabel={playLabels[r.platform]} poster={r.poster} notice={notice} className={className} />\n );\n let body: React.ReactNode;\n if (variant === \"shorts\") {\n body = (\n <ul className=\"m-0 flex list-none snap-x snap-mandatory gap-3 overflow-x-auto p-0 pb-2\">\n {reels.slice(0, SHOP_LIMITS.reels).map((r) => (\n <li key={r.id} className=\"w-44 shrink-0 snap-start sm:w-52\">\n {facade(r)}\n </li>\n ))}\n </ul>\n );\n } else {\n const first = reels[0];\n let tv: React.ReactNode = null;\n if (clip) tv = <RetroTv {...clip} variant={cabinet} channel={channel} />;\n else if (first) tv = <RetroTv title={first.title} variant={cabinet} channel={channel}>{facade(first)}</RetroTv>;\n body = (\n <div className=\"grid items-center gap-6 md:grid-cols-[minmax(0,1fr)_17rem] md:gap-12\">\n <div className=\"order-2 md:order-1\">{aside}</div>\n <div className=\"order-1 mx-auto w-56 md:order-2 md:w-full\">{tv}</div>\n </div>\n );\n }\n return (\n <ShopSection title={title} lead={lead} className={className} data-variant={variant} {...props}>\n {body}\n </ShopSection>\n );\n}\n"],"mappings":";;;;;;;;;AAGA,SAAS,mBAAuC;AAChD,SAAS,eAAkC;AA2CvC,cAmBE,YAnBF;AAFG,SAAS,aAAa,EAAE,UAAU,MAAM,OAAO,MAAM,QAAQ,CAAC,GAAG,MAAM,YAAY,QAAQ,UAAU,WAAW,SAAS,OAAO,WAAW,GAAG,MAAM,GAAsB;AAC/K,QAAM,SAAS,CAAC,GAAaA,eAC3B,oBAAC,eAAuB,UAAU,EAAE,UAAU,KAAK,EAAE,KAAK,OAAO,EAAE,OAAO,WAAW,WAAW,EAAE,QAAQ,GAAG,QAAQ,EAAE,QAAQ,QAAgB,WAAWA,cAAxI,EAAE,EAAiJ;AAEvK,MAAI;AACJ,MAAI,YAAY,UAAU;AACxB,WACE,oBAAC,QAAG,WAAU,2EACX,gBAAM,MAAM,GAAG,YAAY,KAAK,EAAE,IAAI,CAAC,MACtC,oBAAC,QAAc,WAAU,oCACtB,iBAAO,CAAC,KADF,EAAE,EAEX,CACD,GACH;AAAA,EAEJ,OAAO;AACL,UAAM,QAAQ,MAAM,CAAC;AACrB,QAAI,KAAsB;AAC1B,QAAI,KAAM,MAAK,oBAAC,WAAS,GAAG,MAAM,SAAS,SAAS,SAAkB;AAAA,aAC7D,MAAO,MAAK,oBAAC,WAAQ,OAAO,MAAM,OAAO,SAAS,SAAS,SAAmB,iBAAO,KAAK,GAAE;AACrG,WACE,qBAAC,SAAI,WAAU,wEACb;AAAA,0BAAC,SAAI,WAAU,sBAAsB,iBAAM;AAAA,MAC3C,oBAAC,SAAI,WAAU,6CAA6C,cAAG;AAAA,OACjE;AAAA,EAEJ;AACA,SACE,oBAAC,eAAY,OAAc,MAAY,WAAsB,gBAAc,SAAU,GAAG,OACrF,gBACH;AAEJ;","names":["className"]}
@@ -0,0 +1,29 @@
1
+ import { OpeningDay, OpeningStatus } from '@krizaka/ui/opening-hours';
2
+ import { MapGateProps } from '@krizaka/ui/shop/map-gate';
3
+ import * as React from 'react';
4
+
5
+ type VisitVariant = "card" | "map" | "split";
6
+ type VisitSectionProps = Omit<React.ComponentProps<"section">, "title"> & {
7
+ /** @default "card" */
8
+ variant?: VisitVariant;
9
+ title: React.ReactNode;
10
+ hours: readonly OpeningDay[];
11
+ /** Today's day id: its row is marked. */
12
+ today?: string;
13
+ status: OpeningStatus;
14
+ /** The name of the hours list (`Hours`). */
15
+ hoursLabel: string;
16
+ address?: string;
17
+ /** `tel:` target and its text; `showPhone: false` of the document leaves both out. */
18
+ phone?: {
19
+ href: string;
20
+ label: string;
21
+ };
22
+ /** `map` and `split`: the place. Without it these draw as a `card`. */
23
+ map?: Omit<MapGateProps, "className">;
24
+ };
25
+ /** Where and when: hours, address, call, and the place on a map. */
26
+ declare function VisitSection({ variant, title, hours, today, status, hoursLabel, address, phone, map, className, ...props }: VisitSectionProps): React.JSX.Element;
27
+
28
+ export { VisitSection };
29
+ export type { VisitSectionProps, VisitVariant };
@@ -0,0 +1,38 @@
1
+ import {
2
+ ShopSection
3
+ } from "../chunk-A7MQPIEG.js";
4
+ import "../chunk-B47WSPMP.js";
5
+
6
+ // src/shop/visit/visit.tsx
7
+ import { OpeningHours } from "@krizaka/ui/opening-hours";
8
+ import { MapGate } from "@krizaka/ui/shop/map-gate";
9
+ import { jsx, jsxs } from "react/jsx-runtime";
10
+ function VisitSection({ variant = "card", title, hours, today, status, hoursLabel, address, phone, map, className, ...props }) {
11
+ const details = /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-2 text-sm text-fg-secondary", children: [
12
+ address && /* @__PURE__ */ jsx("p", { className: "m-0", children: address }),
13
+ phone && /* @__PURE__ */ jsx("p", { className: "m-0", children: /* @__PURE__ */ jsx("a", { href: phone.href, className: "font-semibold text-fg-accent underline", children: phone.label }) })
14
+ ] });
15
+ const opening = /* @__PURE__ */ jsx(OpeningHours, { label: hoursLabel, days: hours, today, status });
16
+ const drawn = map ? variant : "card";
17
+ return /* @__PURE__ */ jsxs(ShopSection, { title, className, "data-variant": drawn, ...props, children: [
18
+ drawn === "card" && /* @__PURE__ */ jsxs("div", { className: "grid max-w-xl gap-3", children: [
19
+ opening,
20
+ details
21
+ ] }),
22
+ drawn === "map" && /* @__PURE__ */ jsxs("div", { className: "grid gap-3", children: [
23
+ /* @__PURE__ */ jsx(MapGate, { ...map }),
24
+ details
25
+ ] }),
26
+ drawn === "split" && /* @__PURE__ */ jsxs("div", { className: "grid items-start gap-4 md:grid-cols-[minmax(0,22rem)_minmax(0,1fr)] md:gap-8", children: [
27
+ /* @__PURE__ */ jsxs("div", { className: "grid gap-3", children: [
28
+ opening,
29
+ details
30
+ ] }),
31
+ /* @__PURE__ */ jsx(MapGate, { ...map })
32
+ ] })
33
+ ] });
34
+ }
35
+ export {
36
+ VisitSection
37
+ };
38
+ //# sourceMappingURL=visit.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/shop/visit/visit.tsx"],"sourcesContent":["// Server-safe (the map is a client island). How to come and when (ADR-007 §3): `card` — the hours, the address and a call;\n// `map` — the place on a map (on a phone behind a button), the address under it; `split` — the hours beside the map. The\n// hours are the shop's own, the status is its own words: the section draws them, it never reads the clock.\nimport { type OpeningDay, OpeningHours, type OpeningStatus } from \"@krizaka/ui/opening-hours\";\nimport { MapGate, type MapGateProps } from \"@krizaka/ui/shop/map-gate\";\nimport * as React from \"react\";\n\nimport { ShopSection } from \"../frame\";\n\nexport type VisitVariant = \"card\" | \"map\" | \"split\";\n\nexport type VisitSectionProps = Omit<React.ComponentProps<\"section\">, \"title\"> & {\n /** @default \"card\" */\n variant?: VisitVariant;\n title: React.ReactNode;\n hours: readonly OpeningDay[];\n /** Today's day id: its row is marked. */\n today?: string;\n status: OpeningStatus;\n /** The name of the hours list (`Hours`). */\n hoursLabel: string;\n address?: string;\n /** `tel:` target and its text; `showPhone: false` of the document leaves both out. */\n phone?: { href: string; label: string };\n /** `map` and `split`: the place. Without it these draw as a `card`. */\n map?: Omit<MapGateProps, \"className\">;\n};\n\n/** Where and when: hours, address, call, and the place on a map. */\nexport function VisitSection({ variant = \"card\", title, hours, today, status, hoursLabel, address, phone, map, className, ...props }: VisitSectionProps) {\n const details = (\n <div className=\"flex flex-col gap-2 text-sm text-fg-secondary\">\n {address && <p className=\"m-0\">{address}</p>}\n {phone && (\n <p className=\"m-0\">\n <a href={phone.href} className=\"font-semibold text-fg-accent underline\">{phone.label}</a>\n </p>\n )}\n </div>\n );\n const opening = <OpeningHours label={hoursLabel} days={hours} today={today} status={status} />;\n const drawn: VisitVariant = map ? variant : \"card\";\n return (\n <ShopSection title={title} className={className} data-variant={drawn} {...props}>\n {drawn === \"card\" && (\n <div className=\"grid max-w-xl gap-3\">\n {opening}\n {details}\n </div>\n )}\n {drawn === \"map\" && (\n <div className=\"grid gap-3\">\n <MapGate {...map!} />\n {details}\n </div>\n )}\n {drawn === \"split\" && (\n <div className=\"grid items-start gap-4 md:grid-cols-[minmax(0,22rem)_minmax(0,1fr)] md:gap-8\">\n <div className=\"grid gap-3\">\n {opening}\n {details}\n </div>\n <MapGate {...map!} />\n </div>\n )}\n </ShopSection>\n );\n}\n"],"mappings":";;;;;;AAGA,SAA0B,oBAAwC;AAClE,SAAS,eAAkC;AA2BvC,SACc,KADd;AAFG,SAAS,aAAa,EAAE,UAAU,QAAQ,OAAO,OAAO,OAAO,QAAQ,YAAY,SAAS,OAAO,KAAK,WAAW,GAAG,MAAM,GAAsB;AACvJ,QAAM,UACJ,qBAAC,SAAI,WAAU,iDACZ;AAAA,eAAW,oBAAC,OAAE,WAAU,OAAO,mBAAQ;AAAA,IACvC,SACC,oBAAC,OAAE,WAAU,OACX,8BAAC,OAAE,MAAM,MAAM,MAAM,WAAU,0CAA0C,gBAAM,OAAM,GACvF;AAAA,KAEJ;AAEF,QAAM,UAAU,oBAAC,gBAAa,OAAO,YAAY,MAAM,OAAO,OAAc,QAAgB;AAC5F,QAAM,QAAsB,MAAM,UAAU;AAC5C,SACE,qBAAC,eAAY,OAAc,WAAsB,gBAAc,OAAQ,GAAG,OACvE;AAAA,cAAU,UACT,qBAAC,SAAI,WAAU,uBACZ;AAAA;AAAA,MACA;AAAA,OACH;AAAA,IAED,UAAU,SACT,qBAAC,SAAI,WAAU,cACb;AAAA,0BAAC,WAAS,GAAG,KAAM;AAAA,MAClB;AAAA,OACH;AAAA,IAED,UAAU,WACT,qBAAC,SAAI,WAAU,gFACb;AAAA,2BAAC,SAAI,WAAU,cACZ;AAAA;AAAA,QACA;AAAA,SACH;AAAA,MACA,oBAAC,WAAS,GAAG,KAAM;AAAA,OACrB;AAAA,KAEJ;AAEJ;","names":[]}