@krizaka/ui 3.71.0 → 3.73.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 (266) hide show
  1. package/dist/blocks.css +26 -0
  2. package/dist/chunk-M3T5RQYV.js +34 -0
  3. package/dist/chunk-M3T5RQYV.js.map +1 -0
  4. package/dist/chunk-ZFR6ZNXD.js +203 -0
  5. package/dist/chunk-ZFR6ZNXD.js.map +1 -0
  6. package/dist/filter-bar.d.ts +3 -3
  7. package/dist/{frame-D6Xv83t8.d.ts → frame-CNZ5VgDD.d.ts} +11 -4
  8. package/dist/retro-tv-playlist.d.ts +148 -0
  9. package/dist/retro-tv-playlist.js +234 -0
  10. package/dist/retro-tv-playlist.js.map +1 -0
  11. package/dist/retro-tv.js +4 -160
  12. package/dist/retro-tv.js.map +1 -1
  13. package/dist/schema-DgjBz7-8.d.ts +242 -0
  14. package/dist/shop/booking.d.ts +2 -2
  15. package/dist/shop/booking.js +1 -1
  16. package/dist/shop/booking.js.map +1 -1
  17. package/dist/shop/bulletin.js +1 -1
  18. package/dist/shop/faq.d.ts +2 -1
  19. package/dist/shop/faq.js +1 -1
  20. package/dist/shop/faq.js.map +1 -1
  21. package/dist/shop/gallery.js +1 -1
  22. package/dist/shop/look.d.ts +43 -0
  23. package/dist/shop/look.js +52 -0
  24. package/dist/shop/look.js.map +1 -0
  25. package/dist/shop/policies.d.ts +2 -1
  26. package/dist/shop/policies.js +1 -1
  27. package/dist/shop/policies.js.map +1 -1
  28. package/dist/shop/reviews.d.ts +2 -1
  29. package/dist/shop/reviews.js +1 -1
  30. package/dist/shop/reviews.js.map +1 -1
  31. package/dist/shop/services.js +1 -1
  32. package/dist/shop/social.js +1 -1
  33. package/dist/shop/story.d.ts +2 -1
  34. package/dist/shop/story.js +1 -1
  35. package/dist/shop/story.js.map +1 -1
  36. package/dist/shop/team.js +1 -1
  37. package/dist/shop/video.js +1 -1
  38. package/dist/shop/visit.js +1 -1
  39. package/dist/shop-composer.d.ts +29 -0
  40. package/dist/shop-composer.js +156 -89
  41. package/dist/shop-composer.js.map +1 -1
  42. package/dist/shop.d.ts +6 -240
  43. package/dist/shop.js +24 -212
  44. package/dist/shop.js.map +1 -1
  45. package/package.json +37 -7
  46. package/registry/account-menu.json +4 -2
  47. package/registry/account-settings.json +4 -2
  48. package/registry/achievement.json +4 -2
  49. package/registry/action-bar.json +4 -2
  50. package/registry/action-sheet.json +2 -0
  51. package/registry/activity-feed.json +4 -2
  52. package/registry/agenda.json +4 -2
  53. package/registry/alert.json +4 -2
  54. package/registry/analysis-report.json +4 -2
  55. package/registry/anatomy-plate.json +4 -2
  56. package/registry/app-frame.json +5 -3
  57. package/registry/app-header.json +4 -2
  58. package/registry/app-shell.json +4 -2
  59. package/registry/argument-card.json +4 -2
  60. package/registry/audio-player.json +4 -2
  61. package/registry/auth-layout.json +4 -2
  62. package/registry/avatar.json +4 -2
  63. package/registry/badge.json +4 -2
  64. package/registry/bird-plate.json +4 -2
  65. package/registry/button.json +4 -2
  66. package/registry/captcha.json +4 -2
  67. package/registry/card-grid.json +4 -2
  68. package/registry/card.json +4 -2
  69. package/registry/catalogue-page.json +4 -2
  70. package/registry/changelog-page.json +4 -2
  71. package/registry/chapter.json +4 -2
  72. package/registry/chat.json +4 -2
  73. package/registry/checkbox.json +4 -2
  74. package/registry/chip-link.json +4 -2
  75. package/registry/chip-row.json +4 -2
  76. package/registry/chip.json +4 -2
  77. package/registry/choice-grid.json +4 -2
  78. package/registry/cn.json +2 -0
  79. package/registry/code-block.json +4 -2
  80. package/registry/collection-switcher.json +4 -2
  81. package/registry/combobox.json +4 -2
  82. package/registry/command.json +4 -2
  83. package/registry/comparison-table.json +4 -2
  84. package/registry/component-page.json +4 -2
  85. package/registry/confirm-button.json +4 -2
  86. package/registry/contact-page.json +4 -2
  87. package/registry/continue-prompt.json +4 -2
  88. package/registry/copy-button.json +4 -2
  89. package/registry/countdown.json +4 -2
  90. package/registry/cover-hero.json +4 -2
  91. package/registry/cta-panel.json +4 -2
  92. package/registry/dashboard-layout.json +4 -2
  93. package/registry/data-table.json +4 -2
  94. package/registry/date-picker.json +4 -2
  95. package/registry/decision-list.json +4 -2
  96. package/registry/description-list.json +4 -2
  97. package/registry/desktop-window.json +5 -3
  98. package/registry/detail-layout.json +4 -2
  99. package/registry/dialog.json +4 -2
  100. package/registry/docs-article-page.json +4 -2
  101. package/registry/docs-hub-page.json +4 -2
  102. package/registry/docs-layout.json +4 -2
  103. package/registry/docs-nav.json +4 -2
  104. package/registry/document-viewer.json +4 -2
  105. package/registry/doodle.json +4 -2
  106. package/registry/drop-overlay.json +4 -2
  107. package/registry/dropdown-menu.json +4 -2
  108. package/registry/elephant.json +5 -3
  109. package/registry/embed-facade.json +4 -2
  110. package/registry/empty-state.json +4 -2
  111. package/registry/engine-flow.json +4 -2
  112. package/registry/entity-header.json +4 -2
  113. package/registry/environment-notice.json +4 -2
  114. package/registry/error-page.json +4 -2
  115. package/registry/fab.json +2 -0
  116. package/registry/field.json +4 -2
  117. package/registry/file-upload.json +4 -2
  118. package/registry/filter-bar.json +4 -2
  119. package/registry/flock.json +4 -2
  120. package/registry/footnote.json +4 -2
  121. package/registry/force-update-screen.json +4 -2
  122. package/registry/form-flow.json +3 -1
  123. package/registry/form.json +4 -2
  124. package/registry/gallery-page.json +4 -2
  125. package/registry/genui.json +4 -2
  126. package/registry/glossary-term.json +4 -2
  127. package/registry/glossary.json +4 -2
  128. package/registry/glow-card.json +4 -2
  129. package/registry/goal-gauge.json +4 -2
  130. package/registry/grade-stamp.json +4 -2
  131. package/registry/grid.json +2 -0
  132. package/registry/header.json +2 -0
  133. package/registry/how-it-works-page.json +4 -2
  134. package/registry/image-cropper.json +4 -2
  135. package/registry/image-viewer.json +2 -0
  136. package/registry/index.json +19 -18
  137. package/registry/iso.json +4 -2
  138. package/registry/kanban.json +4 -2
  139. package/registry/kbd.json +4 -2
  140. package/registry/kind-config-editor.json +4 -2
  141. package/registry/kpi-explained.json +4 -2
  142. package/registry/landing-page.json +4 -2
  143. package/registry/landscape.json +4 -2
  144. package/registry/language-switch.json +4 -2
  145. package/registry/legal-page.json +4 -2
  146. package/registry/link-card.json +4 -2
  147. package/registry/list-detail.json +2 -0
  148. package/registry/list.json +4 -2
  149. package/registry/loader.json +4 -2
  150. package/registry/longform-page.json +4 -2
  151. package/registry/maintenance-screen.json +4 -2
  152. package/registry/map.json +5 -3
  153. package/registry/margin-layout.json +4 -2
  154. package/registry/markdown.json +4 -2
  155. package/registry/marketing-layout.json +4 -2
  156. package/registry/marquee.json +4 -2
  157. package/registry/mascot-quote.json +4 -2
  158. package/registry/mascot-state.json +4 -2
  159. package/registry/mascots.json +4 -2
  160. package/registry/match-dialog.json +4 -2
  161. package/registry/media-capture.json +4 -2
  162. package/registry/media-gallery.json +4 -2
  163. package/registry/media-grid.json +4 -2
  164. package/registry/media-picker.json +2 -0
  165. package/registry/meta-row.json +4 -2
  166. package/registry/meter.json +4 -2
  167. package/registry/money-input.json +5 -3
  168. package/registry/nav-bar.json +5 -3
  169. package/registry/next-actions.json +4 -2
  170. package/registry/notification-preferences.json +4 -2
  171. package/registry/number-ticker.json +4 -2
  172. package/registry/onboarding.json +2 -0
  173. package/registry/opening-hours.json +4 -2
  174. package/registry/otp-input.json +2 -0
  175. package/registry/page-header.json +4 -2
  176. package/registry/page-hero.json +4 -2
  177. package/registry/page-index.json +4 -2
  178. package/registry/page.json +4 -2
  179. package/registry/pagination.json +4 -2
  180. package/registry/permission-prompt.json +2 -0
  181. package/registry/photo-grid.json +4 -2
  182. package/registry/pointer-light.json +4 -2
  183. package/registry/popover.json +4 -2
  184. package/registry/price-catalogue-editor.json +5 -3
  185. package/registry/pricing-page.json +4 -2
  186. package/registry/product-page.json +4 -2
  187. package/registry/profile-card.json +4 -2
  188. package/registry/progress.json +4 -2
  189. package/registry/promise-card.json +4 -2
  190. package/registry/promo-code-field.json +5 -3
  191. package/registry/proposal.json +5 -3
  192. package/registry/pull-to-refresh.json +2 -0
  193. package/registry/qr-code.json +4 -2
  194. package/registry/quota-meter.json +4 -2
  195. package/registry/radio-group.json +4 -2
  196. package/registry/rail-nav.json +5 -3
  197. package/registry/recipes.json +4 -2
  198. package/registry/retro-tv.json +9 -3
  199. package/registry/reviews.json +4 -2
  200. package/registry/router.json +4 -2
  201. package/registry/schema-form.json +5 -3
  202. package/registry/screen.json +2 -0
  203. package/registry/scroll-stage.json +4 -2
  204. package/registry/search-field.json +4 -2
  205. package/registry/section-backdrop.json +4 -2
  206. package/registry/segmented.json +2 -0
  207. package/registry/separator.json +4 -2
  208. package/registry/service-card.json +4 -2
  209. package/registry/settings-layout.json +4 -2
  210. package/registry/shop-composer.json +13 -7
  211. package/registry/shop-gallery.json +5 -3
  212. package/registry/shop.json +54 -11
  213. package/registry/showcase.json +4 -2
  214. package/registry/signature.json +4 -2
  215. package/registry/site-cahier.json +4 -2
  216. package/registry/site-footer.json +5 -3
  217. package/registry/sites.json +4 -2
  218. package/registry/skeleton.json +4 -2
  219. package/registry/skip-link.json +4 -2
  220. package/registry/slider.json +4 -2
  221. package/registry/slot-picker.json +4 -2
  222. package/registry/slot.json +4 -2
  223. package/registry/specimen-tag.json +4 -2
  224. package/registry/speed-lines.json +4 -2
  225. package/registry/spinner.json +4 -2
  226. package/registry/splash-handoff.json +2 -0
  227. package/registry/split-view.json +4 -2
  228. package/registry/stage-banner.json +4 -2
  229. package/registry/stat.json +4 -2
  230. package/registry/state-screen.json +3 -1
  231. package/registry/status-chip.json +4 -2
  232. package/registry/status-page.json +4 -2
  233. package/registry/step-progress.json +4 -2
  234. package/registry/step-showcase.json +4 -2
  235. package/registry/stepper.json +4 -2
  236. package/registry/sticky-action.json +4 -2
  237. package/registry/stuck.json +4 -2
  238. package/registry/swipe-deck.json +4 -2
  239. package/registry/swipeable-row.json +2 -0
  240. package/registry/switch.json +4 -2
  241. package/registry/tab-bar.json +2 -0
  242. package/registry/tabs.json +4 -2
  243. package/registry/tag-input.json +4 -2
  244. package/registry/tag-selector.json +4 -2
  245. package/registry/taped-photo.json +4 -2
  246. package/registry/terminal-replay.json +4 -2
  247. package/registry/text-style.json +4 -2
  248. package/registry/theme.json +4 -2
  249. package/registry/toast.json +4 -2
  250. package/registry/toc.json +4 -2
  251. package/registry/tooltip.json +4 -2
  252. package/registry/tree-view.json +4 -2
  253. package/registry/txt.json +2 -0
  254. package/registry/update-prompt.json +4 -2
  255. package/registry/upload-queue.json +4 -2
  256. package/registry/usage.json +5 -3
  257. package/registry/verified-badge.json +4 -2
  258. package/registry/versus-card.json +4 -2
  259. package/registry/vertical-video.json +4 -2
  260. package/registry/video-player.json +4 -2
  261. package/registry/video-trimmer.json +4 -2
  262. package/registry/virtual.json +4 -2
  263. package/registry/wall.json +4 -2
  264. package/registry/waveform.json +4 -2
  265. package/dist/chunk-A7MQPIEG.js +0 -31
  266. package/dist/chunk-A7MQPIEG.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/shop/look/apply-look.ts","../../src/shop/look/mascots.tsx"],"sourcesContent":["// Pure. A look (`look-*` of @krizaka/tokens, akinaza#478) is applied to a shop page by rewriting the variants of the sections the\n// page already has — never their order, settings, blocks, text or photos. The closing call and the sticky bar are different jobs\n// from the strip of next times, so a look leaves them as they are.\nimport { shopPresets } from \"@krizaka/tokens/shop-presets\";\n\nimport { SECTION_DEFINITIONS } from \"../catalogue\";\nimport type { Section, ShopPage } from \"../schema\";\n\n/** What `applyLook` reads of a look: its id and version, and one variant per section type. */\nexport type ShopLookLike = { id: string; version: number; variants: Readonly<Record<string, string>> };\n\n/** The six looks, in the order of the addendum (Cahier first). */\nexport const SHOP_LOOKS = [\"look-cahier\", \"look-krizaka\", \"look-editorial\", \"look-boutique\", \"look-affiche\", \"look-nuit\"]\n .map((id) => shopPresets.find((p) => p.id === id))\n .filter((p): p is (typeof shopPresets)[number] => p !== undefined);\n\n/** A look by id, or undefined for a trade preset or an unknown id. */\nexport const shopLookOf = (id: string) => SHOP_LOOKS.find((p) => p.id === id);\n\n/** Booking variants a look rewrites: the strip of next times and the panel. `closing` and `sticky` keep their own job. */\nconst REWRITTEN_BOOKING = new Set([\"strip\", \"panel\"]);\n\nconst variantsOf = (type: string) => SECTION_DEFINITIONS.find((d) => d.type === type)?.variants as readonly string[] | undefined;\n\nfunction restyle(section: Section, look: ShopLookLike): Section {\n const variant = look.variants[section.type];\n if (!variant || variant === section.variant || !variantsOf(section.type)?.includes(variant)) return section;\n if (section.type === \"booking\" && !REWRITTEN_BOOKING.has(section.variant)) return section;\n return { ...section, variant } as Section;\n}\n\n/**\n * The page wearing a look: its preset reference, the look's own density and accent, and the variants of its sections. Everything\n * else is the owner's and stays: `applyLook(applyLook(p, a), b)` has the content of `p`.\n */\nexport function applyLook(page: ShopPage, look: ShopLookLike): ShopPage {\n const sections = page.sections.map((s) => restyle(s, look));\n const same = page.preset.id === look.id && page.preset.version === look.version && page.density === undefined && page.accent === undefined && sections.every((s, i) => s === page.sections[i]);\n if (same) return page;\n return { ...page, preset: { id: look.id, version: look.version }, density: undefined, accent: undefined, sections };\n}\n","// Server-safe. The Krizaka look's birds (akinaza#478): at most one per section, each one doing its job, never on the first\n// screen nor on the pictures. The host asks `mascotFor` and hands the result to the section's `mascot` slot.\nimport { Mascot, type MascotBird } from \"@krizaka/ui/mascots\";\nimport * as React from \"react\";\n\nimport type { Section } from \"../schema\";\n\n/** The section (and booking variant) that carries a bird, and which: the beaver builds the shop, the owl reads, the falcon watches, the crane listens, the flamingo answers, the pigeon delivers. */\nexport const MASCOT_SLOTS = {\n \"booking:strip\": \"beaver\",\n reviews: \"owl\",\n policies: \"falcon\",\n story: \"crane\",\n faq: \"flamingo\",\n \"booking:closing\": \"pigeon\",\n} as const satisfies Record<string, MascotBird>;\n\n/** The bird of a section under a look, or none: only a look with `mascots: \"on\"`; never the hero, the gallery, the wall or the TV. */\nexport function mascotFor(section: Pick<Section, \"type\" | \"variant\">, look: { mascots?: string } | undefined): MascotBird | undefined {\n if (look?.mascots !== \"on\") return undefined;\n const slots = MASCOT_SLOTS as Record<string, MascotBird>;\n return slots[`${section.type}:${section.variant}`] ?? (section.type === \"booking\" ? undefined : slots[section.type]);\n}\n\n/** The bird, small, in the brand's accent: decorative (`aria-hidden`), the words stay beside it. */\nexport function ShopMascot({ bird, size = 56 }: { bird: MascotBird; size?: number }) {\n return <Mascot bird={bird} tone=\"brand\" size={size} life aria-hidden />;\n}\n"],"mappings":";;;;;;AAGA,SAAS,mBAAmB;AASrB,IAAM,aAAa,CAAC,eAAe,gBAAgB,kBAAkB,iBAAiB,gBAAgB,WAAW,EACrH,IAAI,CAAC,OAAO,YAAY,KAAK,CAAC,MAAM,EAAE,OAAO,EAAE,CAAC,EAChD,OAAO,CAAC,MAAyC,MAAM,MAAS;AAG5D,IAAM,aAAa,CAAC,OAAe,WAAW,KAAK,CAAC,MAAM,EAAE,OAAO,EAAE;AAG5E,IAAM,oBAAoB,oBAAI,IAAI,CAAC,SAAS,OAAO,CAAC;AAEpD,IAAM,aAAa,CAAC,SAAiB,oBAAoB,KAAK,CAAC,MAAM,EAAE,SAAS,IAAI,GAAG;AAEvF,SAAS,QAAQ,SAAkB,MAA6B;AAC9D,QAAM,UAAU,KAAK,SAAS,QAAQ,IAAI;AAC1C,MAAI,CAAC,WAAW,YAAY,QAAQ,WAAW,CAAC,WAAW,QAAQ,IAAI,GAAG,SAAS,OAAO,EAAG,QAAO;AACpG,MAAI,QAAQ,SAAS,aAAa,CAAC,kBAAkB,IAAI,QAAQ,OAAO,EAAG,QAAO;AAClF,SAAO,EAAE,GAAG,SAAS,QAAQ;AAC/B;AAMO,SAAS,UAAU,MAAgB,MAA8B;AACtE,QAAM,WAAW,KAAK,SAAS,IAAI,CAAC,MAAM,QAAQ,GAAG,IAAI,CAAC;AAC1D,QAAM,OAAO,KAAK,OAAO,OAAO,KAAK,MAAM,KAAK,OAAO,YAAY,KAAK,WAAW,KAAK,YAAY,UAAa,KAAK,WAAW,UAAa,SAAS,MAAM,CAAC,GAAG,MAAM,MAAM,KAAK,SAAS,CAAC,CAAC;AAC7L,MAAI,KAAM,QAAO;AACjB,SAAO,EAAE,GAAG,MAAM,QAAQ,EAAE,IAAI,KAAK,IAAI,SAAS,KAAK,QAAQ,GAAG,SAAS,QAAW,QAAQ,QAAW,SAAS;AACpH;;;ACtCA,SAAS,cAA+B;AAwB/B;AAlBF,IAAM,eAAe;AAAA,EAC1B,iBAAiB;AAAA,EACjB,SAAS;AAAA,EACT,UAAU;AAAA,EACV,OAAO;AAAA,EACP,KAAK;AAAA,EACL,mBAAmB;AACrB;AAGO,SAAS,UAAU,SAA4C,MAAgE;AACpI,MAAI,MAAM,YAAY,KAAM,QAAO;AACnC,QAAM,QAAQ;AACd,SAAO,MAAM,GAAG,QAAQ,IAAI,IAAI,QAAQ,OAAO,EAAE,MAAM,QAAQ,SAAS,YAAY,SAAY,MAAM,QAAQ,IAAI;AACpH;AAGO,SAAS,WAAW,EAAE,MAAM,OAAO,GAAG,GAAwC;AACnF,SAAO,oBAAC,UAAO,MAAY,MAAK,SAAQ,MAAY,MAAI,MAAC,eAAW,MAAC;AACvE;","names":[]}
@@ -1,11 +1,12 @@
1
1
  import * as React from 'react';
2
+ import { ShopSectionProps } from '../shop.js';
2
3
 
3
4
  type ShopPolicy = {
4
5
  id: string;
5
6
  term: string;
6
7
  details: React.ReactNode;
7
8
  };
8
- type PoliciesSectionProps = Omit<React.ComponentProps<"section">, "title"> & {
9
+ type PoliciesSectionProps = Omit<React.ComponentProps<"section">, "title"> & Pick<ShopSectionProps, "mascot"> & {
9
10
  /** @default "inline" */
10
11
  variant?: "inline";
11
12
  title: React.ReactNode;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ShopSection
3
- } from "../chunk-A7MQPIEG.js";
3
+ } from "../chunk-M3T5RQYV.js";
4
4
  import "../chunk-B47WSPMP.js";
5
5
 
6
6
  // src/shop/policies/policies.tsx
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/shop/policies/policies.tsx"],"sourcesContent":["// Server-safe. The rules of the shop, in the open (ADR-007 §3): cancellation, prices, the booking window — a real\n// description list, the owner's own words.\nimport { DescriptionList } from \"@krizaka/ui/description-list\";\nimport * as React from \"react\";\n\nimport { ShopSection } from \"../frame\";\n\nexport type ShopPolicy = { id: string; term: string; details: React.ReactNode };\n\nexport type PoliciesSectionProps = Omit<React.ComponentProps<\"section\">, \"title\"> & {\n /** @default \"inline\" */\n variant?: \"inline\";\n title: React.ReactNode;\n items: readonly ShopPolicy[];\n};\n\n/** Cancellation, prices and the booking window, as term and value. */\nexport function PoliciesSection({ title, items, className, ...props }: PoliciesSectionProps) {\n if (items.length === 0) return null;\n return (\n <ShopSection title={title} className={className} data-variant=\"inline\" {...props}>\n <DescriptionList layout=\"inline\" className=\"max-w-3xl\" items={items.map((p) => ({ id: p.id, term: p.term, details: p.details }))} />\n </ShopSection>\n );\n}\n"],"mappings":";;;;;;AAEA,SAAS,uBAAuB;AAmB1B;AAJC,SAAS,gBAAgB,EAAE,OAAO,OAAO,WAAW,GAAG,MAAM,GAAyB;AAC3F,MAAI,MAAM,WAAW,EAAG,QAAO;AAC/B,SACE,oBAAC,eAAY,OAAc,WAAsB,gBAAa,UAAU,GAAG,OACzE,8BAAC,mBAAgB,QAAO,UAAS,WAAU,aAAY,OAAO,MAAM,IAAI,CAAC,OAAO,EAAE,IAAI,EAAE,IAAI,MAAM,EAAE,MAAM,SAAS,EAAE,QAAQ,EAAE,GAAG,GACpI;AAEJ;","names":[]}
1
+ {"version":3,"sources":["../../src/shop/policies/policies.tsx"],"sourcesContent":["// Server-safe. The rules of the shop, in the open (ADR-007 §3): cancellation, prices, the booking window — a real\n// description list, the owner's own words.\nimport { DescriptionList } from \"@krizaka/ui/description-list\";\nimport * as React from \"react\";\n\nimport { ShopSection, type ShopSectionProps } from \"../frame\";\n\nexport type ShopPolicy = { id: string; term: string; details: React.ReactNode };\n\nexport type PoliciesSectionProps = Omit<React.ComponentProps<\"section\">, \"title\"> & Pick<ShopSectionProps, \"mascot\"> & {\n /** @default \"inline\" */\n variant?: \"inline\";\n title: React.ReactNode;\n items: readonly ShopPolicy[];\n};\n\n/** Cancellation, prices and the booking window, as term and value. */\nexport function PoliciesSection({ title, items, className, ...props }: PoliciesSectionProps) {\n if (items.length === 0) return null;\n return (\n <ShopSection title={title} className={className} data-variant=\"inline\" {...props}>\n <DescriptionList layout=\"inline\" className=\"max-w-3xl\" items={items.map((p) => ({ id: p.id, term: p.term, details: p.details }))} />\n </ShopSection>\n );\n}\n"],"mappings":";;;;;;AAEA,SAAS,uBAAuB;AAmB1B;AAJC,SAAS,gBAAgB,EAAE,OAAO,OAAO,WAAW,GAAG,MAAM,GAAyB;AAC3F,MAAI,MAAM,WAAW,EAAG,QAAO;AAC/B,SACE,oBAAC,eAAY,OAAc,WAAsB,gBAAa,UAAU,GAAG,OACzE,8BAAC,mBAAgB,QAAO,UAAS,WAAU,aAAY,OAAO,MAAM,IAAI,CAAC,OAAO,EAAE,IAAI,EAAE,IAAI,MAAM,EAAE,MAAM,SAAS,EAAE,QAAQ,EAAE,GAAG,GACpI;AAEJ;","names":[]}
@@ -1,11 +1,12 @@
1
1
  import { ReviewSummaryProps, ReviewCardProps } from '@krizaka/ui/reviews';
2
2
  import * as React from 'react';
3
+ import { ShopSectionProps } from '../shop.js';
3
4
 
4
5
  type ReviewsVariant = "summary-cards" | "quote" | "strip";
5
6
  type ShopReview = Omit<ReviewCardProps, "className" | "style"> & {
6
7
  id: string;
7
8
  };
8
- type ReviewsSectionProps = Omit<React.ComponentProps<"section">, "title"> & {
9
+ type ReviewsSectionProps = Omit<React.ComponentProps<"section">, "title"> & Pick<ShopSectionProps, "mascot"> & {
9
10
  /** @default "summary-cards" */
10
11
  variant?: ReviewsVariant;
11
12
  title: React.ReactNode;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ShopSection
3
- } from "../chunk-A7MQPIEG.js";
3
+ } from "../chunk-M3T5RQYV.js";
4
4
  import "../chunk-B47WSPMP.js";
5
5
 
6
6
  // src/shop/reviews/reviews.tsx
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/shop/reviews/reviews.tsx"],"sourcesContent":["// Server-safe. What clients say (ADR-007 §3): `summary-cards` — the score stamp with its distribution beside two or three\n// reviews; `quote` — one large review; `strip` — the score as one line (a hero's fact). Nothing is drawn under the host's\n// `minCount` of verified reviews: a shop with two reviews shows none (the composer says why).\nimport { ReviewCard, type ReviewCardProps, ReviewSummary, type ReviewSummaryProps } from \"@krizaka/ui/reviews\";\nimport * as React from \"react\";\n\nimport { ShopSection } from \"../frame\";\n\nexport type ReviewsVariant = \"summary-cards\" | \"quote\" | \"strip\";\n\nexport type ShopReview = Omit<ReviewCardProps, \"className\" | \"style\"> & { id: string };\n\nexport type ReviewsSectionProps = Omit<React.ComponentProps<\"section\">, \"title\"> & {\n /** @default \"summary-cards\" */\n variant?: ReviewsVariant;\n title: React.ReactNode;\n /** The score and its distribution, with the words that name them (the stamp's, the count's, the meters'). */\n summary: Omit<ReviewSummaryProps, \"minCount\" | \"className\" | \"style\">;\n /** The reviews the host chose (`best` or `latest`), in order: two or three are drawn. */\n reviews: readonly ShopReview[];\n /** How many reviews are drawn beside the stamp. @default 2 */\n count?: 1 | 2 | 3;\n /** The fewest verified reviews that may be shown at all. @default 5 */\n minCount?: number;\n};\n\n/** The score of the shop and what its clients wrote. */\nexport function ReviewsSection({ variant = \"summary-cards\", title, summary, reviews, count = 2, minCount = 5, className, ...props }: ReviewsSectionProps) {\n if (summary.count < Math.max(1, minCount) || reviews.length === 0) return null;\n const shown = reviews.slice(0, count);\n if (variant === \"strip\") {\n return (\n <ShopSection aria-label={typeof title === \"string\" ? title : summary.summaryText} data-variant=\"strip\" className={className} {...props}>\n <p className=\"m-0 flex flex-wrap items-baseline gap-x-3 gap-y-1 text-sm text-fg-secondary\">\n <span className=\"rounded-sm border-2 border-border-strong px-2 py-0.5 font-mono text-base font-bold text-fg tabular-nums\">{summary.scoreText}</span>\n <span>{summary.countText}</span>\n <span className=\"sr-only\">{summary.summaryText}</span>\n </p>\n </ShopSection>\n );\n }\n if (variant === \"quote\") {\n const r = shown[0]!;\n const { text, author, date, dateTime, service, ratingText } = r;\n return (\n <ShopSection title={title} className={className} data-variant=\"quote\" {...props}>\n <figure className=\"m-0 max-w-3xl\">\n <blockquote className=\"m-0 font-display text-2xl leading-snug text-fg sm:text-3xl\">“{text}”</blockquote>\n <figcaption className=\"mt-3 flex flex-wrap items-baseline gap-x-2 text-sm text-fg-secondary\">\n <span className=\"font-semibold text-fg\">{author}</span>\n <time dateTime={dateTime}>{date}</time>\n {service && <span>· {service}</span>}\n <span className=\"sr-only\">{ratingText}</span>\n </figcaption>\n </figure>\n </ShopSection>\n );\n }\n return (\n <ShopSection title={title} className={className} data-variant=\"summary-cards\" {...props}>\n <div className=\"grid items-start gap-4 lg:grid-cols-[18rem_minmax(0,1fr)] lg:gap-8\">\n <ReviewSummary {...summary} minCount={minCount} />\n <div className=\"grid gap-3 sm:grid-cols-2 lg:grid-cols-[repeat(auto-fit,minmax(14rem,1fr))]\">\n {shown.map(({ id, ...review }) => (\n <ReviewCard key={id} {...review} />\n ))}\n </div>\n </div>\n </ShopSection>\n );\n}\n"],"mappings":";;;;;;AAGA,SAAS,YAAkC,qBAA8C;AA8BjF,SACE,KADF;AAND,SAAS,eAAe,EAAE,UAAU,iBAAiB,OAAO,SAAS,SAAS,QAAQ,GAAG,WAAW,GAAG,WAAW,GAAG,MAAM,GAAwB;AACxJ,MAAI,QAAQ,QAAQ,KAAK,IAAI,GAAG,QAAQ,KAAK,QAAQ,WAAW,EAAG,QAAO;AAC1E,QAAM,QAAQ,QAAQ,MAAM,GAAG,KAAK;AACpC,MAAI,YAAY,SAAS;AACvB,WACE,oBAAC,eAAY,cAAY,OAAO,UAAU,WAAW,QAAQ,QAAQ,aAAa,gBAAa,SAAQ,WAAuB,GAAG,OAC/H,+BAAC,OAAE,WAAU,+EACX;AAAA,0BAAC,UAAK,WAAU,2GAA2G,kBAAQ,WAAU;AAAA,MAC7I,oBAAC,UAAM,kBAAQ,WAAU;AAAA,MACzB,oBAAC,UAAK,WAAU,WAAW,kBAAQ,aAAY;AAAA,OACjD,GACF;AAAA,EAEJ;AACA,MAAI,YAAY,SAAS;AACvB,UAAM,IAAI,MAAM,CAAC;AACjB,UAAM,EAAE,MAAM,QAAQ,MAAM,UAAU,SAAS,WAAW,IAAI;AAC9D,WACE,oBAAC,eAAY,OAAc,WAAsB,gBAAa,SAAS,GAAG,OACxE,+BAAC,YAAO,WAAU,iBAChB;AAAA,2BAAC,gBAAW,WAAU,8DAA6D;AAAA;AAAA,QAAE;AAAA,QAAK;AAAA,SAAC;AAAA,MAC3F,qBAAC,gBAAW,WAAU,wEACpB;AAAA,4BAAC,UAAK,WAAU,yBAAyB,kBAAO;AAAA,QAChD,oBAAC,UAAK,UAAqB,gBAAK;AAAA,QAC/B,WAAW,qBAAC,UAAK;AAAA;AAAA,UAAG;AAAA,WAAQ;AAAA,QAC7B,oBAAC,UAAK,WAAU,WAAW,sBAAW;AAAA,SACxC;AAAA,OACF,GACF;AAAA,EAEJ;AACA,SACE,oBAAC,eAAY,OAAc,WAAsB,gBAAa,iBAAiB,GAAG,OAChF,+BAAC,SAAI,WAAU,sEACb;AAAA,wBAAC,iBAAe,GAAG,SAAS,UAAoB;AAAA,IAChD,oBAAC,SAAI,WAAU,+EACZ,gBAAM,IAAI,CAAC,EAAE,IAAI,GAAG,OAAO,MAC1B,oBAAC,cAAqB,GAAG,UAAR,EAAgB,CAClC,GACH;AAAA,KACF,GACF;AAEJ;","names":[]}
1
+ {"version":3,"sources":["../../src/shop/reviews/reviews.tsx"],"sourcesContent":["// Server-safe. What clients say (ADR-007 §3): `summary-cards` — the score stamp with its distribution beside two or three\n// reviews; `quote` — one large review; `strip` — the score as one line (a hero's fact). Nothing is drawn under the host's\n// `minCount` of verified reviews: a shop with two reviews shows none (the composer says why).\nimport { ReviewCard, type ReviewCardProps, ReviewSummary, type ReviewSummaryProps } from \"@krizaka/ui/reviews\";\nimport * as React from \"react\";\n\nimport { ShopSection, type ShopSectionProps } from \"../frame\";\n\nexport type ReviewsVariant = \"summary-cards\" | \"quote\" | \"strip\";\n\nexport type ShopReview = Omit<ReviewCardProps, \"className\" | \"style\"> & { id: string };\n\nexport type ReviewsSectionProps = Omit<React.ComponentProps<\"section\">, \"title\"> & Pick<ShopSectionProps, \"mascot\"> & {\n /** @default \"summary-cards\" */\n variant?: ReviewsVariant;\n title: React.ReactNode;\n /** The score and its distribution, with the words that name them (the stamp's, the count's, the meters'). */\n summary: Omit<ReviewSummaryProps, \"minCount\" | \"className\" | \"style\">;\n /** The reviews the host chose (`best` or `latest`), in order: two or three are drawn. */\n reviews: readonly ShopReview[];\n /** How many reviews are drawn beside the stamp. @default 2 */\n count?: 1 | 2 | 3;\n /** The fewest verified reviews that may be shown at all. @default 5 */\n minCount?: number;\n};\n\n/** The score of the shop and what its clients wrote. */\nexport function ReviewsSection({ variant = \"summary-cards\", title, summary, reviews, count = 2, minCount = 5, className, ...props }: ReviewsSectionProps) {\n if (summary.count < Math.max(1, minCount) || reviews.length === 0) return null;\n const shown = reviews.slice(0, count);\n if (variant === \"strip\") {\n return (\n <ShopSection aria-label={typeof title === \"string\" ? title : summary.summaryText} data-variant=\"strip\" className={className} {...props}>\n <p className=\"m-0 flex flex-wrap items-baseline gap-x-3 gap-y-1 text-sm text-fg-secondary\">\n <span className=\"rounded-sm border-2 border-border-strong px-2 py-0.5 font-mono text-base font-bold text-fg tabular-nums\">{summary.scoreText}</span>\n <span>{summary.countText}</span>\n <span className=\"sr-only\">{summary.summaryText}</span>\n </p>\n </ShopSection>\n );\n }\n if (variant === \"quote\") {\n const r = shown[0]!;\n const { text, author, date, dateTime, service, ratingText } = r;\n return (\n <ShopSection title={title} className={className} data-variant=\"quote\" {...props}>\n <figure className=\"m-0 max-w-3xl\">\n <blockquote className=\"m-0 font-display text-2xl leading-snug text-fg sm:text-3xl\">“{text}”</blockquote>\n <figcaption className=\"mt-3 flex flex-wrap items-baseline gap-x-2 text-sm text-fg-secondary\">\n <span className=\"font-semibold text-fg\">{author}</span>\n <time dateTime={dateTime}>{date}</time>\n {service && <span>· {service}</span>}\n <span className=\"sr-only\">{ratingText}</span>\n </figcaption>\n </figure>\n </ShopSection>\n );\n }\n return (\n <ShopSection title={title} className={className} data-variant=\"summary-cards\" {...props}>\n <div className=\"grid items-start gap-4 lg:grid-cols-[18rem_minmax(0,1fr)] lg:gap-8\">\n <ReviewSummary {...summary} minCount={minCount} />\n <div className=\"grid gap-3 sm:grid-cols-2 lg:grid-cols-[repeat(auto-fit,minmax(14rem,1fr))]\">\n {shown.map(({ id, ...review }) => (\n <ReviewCard key={id} {...review} />\n ))}\n </div>\n </div>\n </ShopSection>\n );\n}\n"],"mappings":";;;;;;AAGA,SAAS,YAAkC,qBAA8C;AA8BjF,SACE,KADF;AAND,SAAS,eAAe,EAAE,UAAU,iBAAiB,OAAO,SAAS,SAAS,QAAQ,GAAG,WAAW,GAAG,WAAW,GAAG,MAAM,GAAwB;AACxJ,MAAI,QAAQ,QAAQ,KAAK,IAAI,GAAG,QAAQ,KAAK,QAAQ,WAAW,EAAG,QAAO;AAC1E,QAAM,QAAQ,QAAQ,MAAM,GAAG,KAAK;AACpC,MAAI,YAAY,SAAS;AACvB,WACE,oBAAC,eAAY,cAAY,OAAO,UAAU,WAAW,QAAQ,QAAQ,aAAa,gBAAa,SAAQ,WAAuB,GAAG,OAC/H,+BAAC,OAAE,WAAU,+EACX;AAAA,0BAAC,UAAK,WAAU,2GAA2G,kBAAQ,WAAU;AAAA,MAC7I,oBAAC,UAAM,kBAAQ,WAAU;AAAA,MACzB,oBAAC,UAAK,WAAU,WAAW,kBAAQ,aAAY;AAAA,OACjD,GACF;AAAA,EAEJ;AACA,MAAI,YAAY,SAAS;AACvB,UAAM,IAAI,MAAM,CAAC;AACjB,UAAM,EAAE,MAAM,QAAQ,MAAM,UAAU,SAAS,WAAW,IAAI;AAC9D,WACE,oBAAC,eAAY,OAAc,WAAsB,gBAAa,SAAS,GAAG,OACxE,+BAAC,YAAO,WAAU,iBAChB;AAAA,2BAAC,gBAAW,WAAU,8DAA6D;AAAA;AAAA,QAAE;AAAA,QAAK;AAAA,SAAC;AAAA,MAC3F,qBAAC,gBAAW,WAAU,wEACpB;AAAA,4BAAC,UAAK,WAAU,yBAAyB,kBAAO;AAAA,QAChD,oBAAC,UAAK,UAAqB,gBAAK;AAAA,QAC/B,WAAW,qBAAC,UAAK;AAAA;AAAA,UAAG;AAAA,WAAQ;AAAA,QAC7B,oBAAC,UAAK,WAAU,WAAW,sBAAW;AAAA,SACxC;AAAA,OACF,GACF;AAAA,EAEJ;AACA,SACE,oBAAC,eAAY,OAAc,WAAsB,gBAAa,iBAAiB,GAAG,OAChF,+BAAC,SAAI,WAAU,sEACb;AAAA,wBAAC,iBAAe,GAAG,SAAS,UAAoB;AAAA,IAChD,oBAAC,SAAI,WAAU,+EACZ,gBAAM,IAAI,CAAC,EAAE,IAAI,GAAG,OAAO,MAC1B,oBAAC,cAAqB,GAAG,UAAR,EAAgB,CAClC,GACH;AAAA,KACF,GACF;AAEJ;","names":[]}
@@ -9,7 +9,7 @@ import {
9
9
  } from "../chunk-ZYHWJ7U5.js";
10
10
  import {
11
11
  ShopSection
12
- } from "../chunk-A7MQPIEG.js";
12
+ } from "../chunk-M3T5RQYV.js";
13
13
  import {
14
14
  cn
15
15
  } from "../chunk-B47WSPMP.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ShopSection
3
- } from "../chunk-A7MQPIEG.js";
3
+ } from "../chunk-M3T5RQYV.js";
4
4
  import "../chunk-B47WSPMP.js";
5
5
 
6
6
  // src/shop/social/social.tsx
@@ -1,7 +1,8 @@
1
1
  import * as React from 'react';
2
+ import { ShopSectionProps } from '../shop.js';
2
3
 
3
4
  type StoryVariant = "quote" | "owner";
4
- type StorySectionProps = Omit<React.ComponentProps<"section">, "title"> & {
5
+ type StorySectionProps = Omit<React.ComponentProps<"section">, "title"> & Pick<ShopSectionProps, "mascot"> & {
5
6
  /** @default "quote" */
6
7
  variant?: StoryVariant;
7
8
  title: React.ReactNode;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ShopSection
3
- } from "../chunk-A7MQPIEG.js";
3
+ } from "../chunk-M3T5RQYV.js";
4
4
  import "../chunk-B47WSPMP.js";
5
5
 
6
6
  // src/shop/story/story.tsx
@@ -1 +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":[]}
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, type ShopSectionProps } from \"../frame\";\n\nexport type StoryVariant = \"quote\" | \"owner\";\n\nexport type StorySectionProps = Omit<React.ComponentProps<\"section\">, \"title\"> & Pick<ShopSectionProps, \"mascot\"> & {\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":[]}
package/dist/shop/team.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ShopSection
3
- } from "../chunk-A7MQPIEG.js";
3
+ } from "../chunk-M3T5RQYV.js";
4
4
  import "../chunk-B47WSPMP.js";
5
5
 
6
6
  // src/shop/team/team.tsx
@@ -3,7 +3,7 @@ import {
3
3
  } from "../chunk-ZYHWJ7U5.js";
4
4
  import {
5
5
  ShopSection
6
- } from "../chunk-A7MQPIEG.js";
6
+ } from "../chunk-M3T5RQYV.js";
7
7
  import "../chunk-B47WSPMP.js";
8
8
 
9
9
  // src/shop/video/video.tsx
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ShopSection
3
- } from "../chunk-A7MQPIEG.js";
3
+ } from "../chunk-M3T5RQYV.js";
4
4
  import "../chunk-B47WSPMP.js";
5
5
 
6
6
  // src/shop/visit/visit.tsx
@@ -195,9 +195,17 @@ type ShopPage = {
195
195
  schema: typeof SHOP_SCHEMA_VERSION;
196
196
  preset: z.output<typeof presetRef>;
197
197
  density?: "compact" | "airy" | undefined;
198
+ accent?: string | undefined;
198
199
  sections: Section[];
199
200
  };
200
201
 
202
+ /** What `applyLook` reads of a look: its id and version, and one variant per section type. */
203
+ type ShopLookLike = {
204
+ id: string;
205
+ version: number;
206
+ variants: Readonly<Record<string, string>>;
207
+ };
208
+
201
209
  type Rec = Record<string, unknown>;
202
210
  type Command =
203
211
  /** Adds a section (its type's default settings, the given or the default variant) at an index; a hero goes first. */
@@ -245,6 +253,16 @@ type Command =
245
253
  } | {
246
254
  type: "setDensity";
247
255
  density: "compact" | "airy" | undefined;
256
+ }
257
+ /** A whole look (`look-*`): the variants of the sections, nothing of their content (`applyLook`). */
258
+ | {
259
+ type: "applyLook";
260
+ look: ShopLookLike;
261
+ }
262
+ /** The accent within the look's tested list. */
263
+ | {
264
+ type: "setAccent";
265
+ accent: string | undefined;
248
266
  } | {
249
267
  type: "addBlock";
250
268
  key: string;
@@ -348,6 +366,14 @@ type ShopComposerMessages = {
348
366
  removeBlock: string;
349
367
  /** The look. */
350
368
  look: string;
369
+ /** The six looks, as a group of swatches. */
370
+ lookChoice: string;
371
+ /** Said when a look is applied (`{name}`). */
372
+ lookApplied: string;
373
+ /** The accent within the chosen look. */
374
+ accentChoice: string;
375
+ /** The names of the accents a look lists (`krizaka`, `akinaza:accent-2`…); an unknown one reads as its id. */
376
+ accentNames: Readonly<Record<string, string>>;
351
377
  preset: string;
352
378
  density: string;
353
379
  densityCompact: string;
@@ -397,6 +423,9 @@ type ShopComposerPreset = {
397
423
  name: string;
398
424
  density: "compact" | "airy";
399
425
  variants: Readonly<Record<string, string>>;
426
+ /** A look's (`look-*`): the accent it starts with and the tested list the owner chooses from. Presets without a list are trade presets (the « Style » select). */
427
+ accent?: string;
428
+ accents?: readonly string[];
400
429
  };
401
430
  type ShopComposerProps = {
402
431
  /** The draft to edit. The composer keeps its own history from it. */