@krizaka/ui 3.70.0 → 3.72.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 (306) 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 +1 -1
  4. package/dist/account-settings.js +1 -1
  5. package/dist/avatar/defaults.d.ts +22 -2
  6. package/dist/avatar/defaults.js +20 -7
  7. package/dist/avatar/defaults.js.map +1 -1
  8. package/dist/{avatar-BdZcfkWR.d.ts → avatar-B_na7r1U.d.ts} +16 -0
  9. package/dist/avatar.d.ts +22 -2
  10. package/dist/avatar.js +20 -7
  11. package/dist/avatar.js.map +1 -1
  12. package/dist/blocks.css +37 -0
  13. package/dist/chat.js +1 -1
  14. package/dist/chunk-3PRYL2LS.js +2 -0
  15. package/dist/chunk-3PRYL2LS.js.map +1 -0
  16. package/dist/{chunk-HK525THY.js → chunk-5MPPIGCB.js} +18 -7
  17. package/dist/chunk-5MPPIGCB.js.map +1 -0
  18. package/dist/{chunk-CSRKYZ53.js → chunk-CZHPWLNW.js} +1 -1
  19. package/dist/{chunk-PZ4FJOD5.js → chunk-HLEBSAGC.js} +5 -1
  20. package/dist/{chunk-PZ4FJOD5.js.map → chunk-HLEBSAGC.js.map} +1 -1
  21. package/dist/chunk-M3T5RQYV.js +34 -0
  22. package/dist/chunk-M3T5RQYV.js.map +1 -0
  23. package/dist/{chunk-EUJ7337V.js → chunk-TISDOZH3.js} +18 -7
  24. package/dist/chunk-TISDOZH3.js.map +1 -0
  25. package/dist/chunk-W64RAX4N.js +79 -0
  26. package/dist/chunk-W64RAX4N.js.map +1 -0
  27. package/dist/chunk-ZFR6ZNXD.js +203 -0
  28. package/dist/chunk-ZFR6ZNXD.js.map +1 -0
  29. package/dist/collection-switcher.d.ts +1 -1
  30. package/dist/{default-avatar-D9kiSFNB.d.ts → default-avatar-BL0nJFti.d.ts} +16 -0
  31. package/dist/entity-header.d.ts +1 -1
  32. package/dist/{frame-D6Xv83t8.d.ts → frame-CNZ5VgDD.d.ts} +11 -4
  33. package/dist/index.js +7 -7
  34. package/dist/kind-config-editor.js +3 -2
  35. package/dist/kind-config-editor.js.map +1 -1
  36. package/dist/map.d.ts +6 -6
  37. package/dist/match-dialog.js +1 -1
  38. package/dist/media-grid.d.ts +16 -0
  39. package/dist/media-grid.js +1 -1
  40. package/dist/money-input.js +6 -70
  41. package/dist/money-input.js.map +1 -1
  42. package/dist/native.d.ts +16 -0
  43. package/dist/native.js +17 -6
  44. package/dist/native.js.map +1 -1
  45. package/dist/nav-bar.d.ts +13 -2
  46. package/dist/nav-bar.js +71 -54
  47. package/dist/nav-bar.js.map +1 -1
  48. package/dist/notification-preferences.js +2 -1
  49. package/dist/notification-preferences.js.map +1 -1
  50. package/dist/price-catalogue-editor.d.ts +117 -0
  51. package/dist/price-catalogue-editor.js +194 -0
  52. package/dist/price-catalogue-editor.js.map +1 -0
  53. package/dist/promo-code-field.js +1 -1
  54. package/dist/schema-DgjBz7-8.d.ts +242 -0
  55. package/dist/schema-form.d.ts +106 -0
  56. package/dist/schema-form.js +268 -0
  57. package/dist/schema-form.js.map +1 -0
  58. package/dist/shop/booking.d.ts +2 -2
  59. package/dist/shop/booking.js +1 -1
  60. package/dist/shop/booking.js.map +1 -1
  61. package/dist/shop/bulletin.js +1 -1
  62. package/dist/shop/faq.d.ts +2 -1
  63. package/dist/shop/faq.js +1 -1
  64. package/dist/shop/faq.js.map +1 -1
  65. package/dist/shop/gallery.js +1 -1
  66. package/dist/shop/look.d.ts +43 -0
  67. package/dist/shop/look.js +52 -0
  68. package/dist/shop/look.js.map +1 -0
  69. package/dist/shop/policies.d.ts +2 -1
  70. package/dist/shop/policies.js +1 -1
  71. package/dist/shop/policies.js.map +1 -1
  72. package/dist/shop/reviews.d.ts +2 -1
  73. package/dist/shop/reviews.js +1 -1
  74. package/dist/shop/reviews.js.map +1 -1
  75. package/dist/shop/services.js +1 -1
  76. package/dist/shop/social.js +1 -1
  77. package/dist/shop/story.d.ts +2 -1
  78. package/dist/shop/story.js +1 -1
  79. package/dist/shop/story.js.map +1 -1
  80. package/dist/shop/team.js +1 -1
  81. package/dist/shop/video.js +1 -1
  82. package/dist/shop/visit.js +1 -1
  83. package/dist/shop-composer.d.ts +29 -0
  84. package/dist/shop-composer.js +156 -89
  85. package/dist/shop-composer.js.map +1 -1
  86. package/dist/shop.d.ts +6 -240
  87. package/dist/shop.js +24 -212
  88. package/dist/shop.js.map +1 -1
  89. package/dist/switch.js +2 -1
  90. package/dist/vertical-video.js +1 -1
  91. package/dist/wall.d.ts +7 -1
  92. package/dist/wall.js +5 -4
  93. package/dist/wall.js.map +1 -1
  94. package/package.json +59 -9
  95. package/registry/account-menu.json +1 -1
  96. package/registry/account-settings.json +1 -1
  97. package/registry/achievement.json +1 -1
  98. package/registry/action-bar.json +1 -1
  99. package/registry/activity-feed.json +1 -1
  100. package/registry/agenda.json +1 -1
  101. package/registry/alert.json +1 -1
  102. package/registry/analysis-report.json +1 -1
  103. package/registry/anatomy-plate.json +1 -1
  104. package/registry/app-frame.json +2 -2
  105. package/registry/app-header.json +1 -1
  106. package/registry/app-shell.json +1 -1
  107. package/registry/argument-card.json +1 -1
  108. package/registry/audio-player.json +1 -1
  109. package/registry/auth-layout.json +1 -1
  110. package/registry/avatar.json +4 -4
  111. package/registry/badge.json +1 -1
  112. package/registry/bird-plate.json +1 -1
  113. package/registry/button.json +1 -1
  114. package/registry/captcha.json +1 -1
  115. package/registry/card-grid.json +1 -1
  116. package/registry/card.json +1 -1
  117. package/registry/catalogue-page.json +1 -1
  118. package/registry/changelog-page.json +1 -1
  119. package/registry/chapter.json +1 -1
  120. package/registry/chat.json +1 -1
  121. package/registry/checkbox.json +1 -1
  122. package/registry/chip-link.json +1 -1
  123. package/registry/chip-row.json +1 -1
  124. package/registry/chip.json +1 -1
  125. package/registry/choice-grid.json +1 -1
  126. package/registry/code-block.json +1 -1
  127. package/registry/collection-switcher.json +1 -1
  128. package/registry/combobox.json +1 -1
  129. package/registry/command.json +1 -1
  130. package/registry/comparison-table.json +1 -1
  131. package/registry/component-page.json +1 -1
  132. package/registry/confirm-button.json +1 -1
  133. package/registry/contact-page.json +1 -1
  134. package/registry/continue-prompt.json +1 -1
  135. package/registry/copy-button.json +1 -1
  136. package/registry/countdown.json +1 -1
  137. package/registry/cover-hero.json +1 -1
  138. package/registry/cta-panel.json +1 -1
  139. package/registry/dashboard-layout.json +1 -1
  140. package/registry/data-table.json +1 -1
  141. package/registry/date-picker.json +1 -1
  142. package/registry/decision-list.json +1 -1
  143. package/registry/description-list.json +1 -1
  144. package/registry/desktop-window.json +1 -1
  145. package/registry/detail-layout.json +1 -1
  146. package/registry/dialog.json +1 -1
  147. package/registry/docs-article-page.json +1 -1
  148. package/registry/docs-hub-page.json +1 -1
  149. package/registry/docs-layout.json +1 -1
  150. package/registry/docs-nav.json +1 -1
  151. package/registry/document-viewer.json +1 -1
  152. package/registry/doodle.json +1 -1
  153. package/registry/drop-overlay.json +1 -1
  154. package/registry/dropdown-menu.json +1 -1
  155. package/registry/elephant.json +2 -2
  156. package/registry/embed-facade.json +1 -1
  157. package/registry/empty-state.json +1 -1
  158. package/registry/engine-flow.json +1 -1
  159. package/registry/entity-header.json +1 -1
  160. package/registry/environment-notice.json +1 -1
  161. package/registry/error-page.json +1 -1
  162. package/registry/examples/price-catalogue-editor/default.d.ts +4 -0
  163. package/registry/examples/price-catalogue-editor/default.js +47 -0
  164. package/registry/examples/price-catalogue-editor/default.tsx +25 -0
  165. package/registry/examples/schema-form/default.d.ts +4 -0
  166. package/registry/examples/schema-form/default.js +29 -0
  167. package/registry/examples/schema-form/default.tsx +27 -0
  168. package/registry/examples/wall/pinned-note.js +2 -1
  169. package/registry/examples/wall/pinned-note.tsx +2 -1
  170. package/registry/field.json +1 -1
  171. package/registry/file-upload.json +1 -1
  172. package/registry/filter-bar.json +1 -1
  173. package/registry/flock.json +1 -1
  174. package/registry/footnote.json +1 -1
  175. package/registry/force-update-screen.json +1 -1
  176. package/registry/form.json +1 -1
  177. package/registry/gallery-page.json +1 -1
  178. package/registry/genui.json +1 -1
  179. package/registry/glossary-term.json +1 -1
  180. package/registry/glossary.json +1 -1
  181. package/registry/glow-card.json +1 -1
  182. package/registry/goal-gauge.json +1 -1
  183. package/registry/grade-stamp.json +1 -1
  184. package/registry/how-it-works-page.json +1 -1
  185. package/registry/image-cropper.json +1 -1
  186. package/registry/index.json +81 -8
  187. package/registry/iso.json +1 -1
  188. package/registry/kanban.json +1 -1
  189. package/registry/kbd.json +1 -1
  190. package/registry/kind-config-editor.json +1 -1
  191. package/registry/kpi-explained.json +1 -1
  192. package/registry/landing-page.json +1 -1
  193. package/registry/landscape.json +1 -1
  194. package/registry/language-switch.json +1 -1
  195. package/registry/legal-page.json +1 -1
  196. package/registry/link-card.json +1 -1
  197. package/registry/list.json +1 -1
  198. package/registry/loader.json +1 -1
  199. package/registry/longform-page.json +1 -1
  200. package/registry/maintenance-screen.json +1 -1
  201. package/registry/map.json +2 -2
  202. package/registry/margin-layout.json +1 -1
  203. package/registry/markdown.json +1 -1
  204. package/registry/marketing-layout.json +1 -1
  205. package/registry/marquee.json +1 -1
  206. package/registry/mascot-quote.json +1 -1
  207. package/registry/mascot-state.json +1 -1
  208. package/registry/mascots.json +1 -1
  209. package/registry/match-dialog.json +1 -1
  210. package/registry/media-capture.json +1 -1
  211. package/registry/media-gallery.json +1 -1
  212. package/registry/media-grid.json +1 -1
  213. package/registry/meta-row.json +1 -1
  214. package/registry/meter.json +1 -1
  215. package/registry/money-input.json +1 -1
  216. package/registry/nav-bar.json +30 -6
  217. package/registry/next-actions.json +1 -1
  218. package/registry/notification-preferences.json +1 -1
  219. package/registry/number-ticker.json +1 -1
  220. package/registry/opening-hours.json +1 -1
  221. package/registry/page-header.json +1 -1
  222. package/registry/page-hero.json +1 -1
  223. package/registry/page-index.json +1 -1
  224. package/registry/page.json +1 -1
  225. package/registry/pagination.json +1 -1
  226. package/registry/photo-grid.json +1 -1
  227. package/registry/pointer-light.json +1 -1
  228. package/registry/popover.json +1 -1
  229. package/registry/price-catalogue-editor.json +228 -0
  230. package/registry/pricing-page.json +1 -1
  231. package/registry/product-page.json +1 -1
  232. package/registry/profile-card.json +1 -1
  233. package/registry/progress.json +1 -1
  234. package/registry/promise-card.json +1 -1
  235. package/registry/promo-code-field.json +1 -1
  236. package/registry/proposal.json +1 -1
  237. package/registry/qr-code.json +1 -1
  238. package/registry/quota-meter.json +1 -1
  239. package/registry/radio-group.json +1 -1
  240. package/registry/rail-nav.json +2 -2
  241. package/registry/recipes.json +1 -1
  242. package/registry/retro-tv.json +1 -1
  243. package/registry/reviews.json +1 -1
  244. package/registry/router.json +1 -1
  245. package/registry/schema-form.json +253 -0
  246. package/registry/scroll-stage.json +1 -1
  247. package/registry/search-field.json +1 -1
  248. package/registry/section-backdrop.json +1 -1
  249. package/registry/separator.json +1 -1
  250. package/registry/service-card.json +1 -1
  251. package/registry/settings-layout.json +1 -1
  252. package/registry/shop-composer.json +10 -6
  253. package/registry/shop-gallery.json +1 -1
  254. package/registry/shop.json +51 -10
  255. package/registry/showcase.json +1 -1
  256. package/registry/signature.json +1 -1
  257. package/registry/site-cahier.json +1 -1
  258. package/registry/site-footer.json +2 -2
  259. package/registry/sites.json +1 -1
  260. package/registry/skeleton.json +1 -1
  261. package/registry/skip-link.json +1 -1
  262. package/registry/slider.json +1 -1
  263. package/registry/slot-picker.json +1 -1
  264. package/registry/slot.json +1 -1
  265. package/registry/specimen-tag.json +1 -1
  266. package/registry/speed-lines.json +1 -1
  267. package/registry/spinner.json +1 -1
  268. package/registry/split-view.json +1 -1
  269. package/registry/stage-banner.json +1 -1
  270. package/registry/stat.json +1 -1
  271. package/registry/status-chip.json +1 -1
  272. package/registry/status-page.json +1 -1
  273. package/registry/step-progress.json +1 -1
  274. package/registry/step-showcase.json +1 -1
  275. package/registry/stepper.json +1 -1
  276. package/registry/sticky-action.json +1 -1
  277. package/registry/stuck.json +1 -1
  278. package/registry/swipe-deck.json +1 -1
  279. package/registry/switch.json +1 -1
  280. package/registry/tabs.json +1 -1
  281. package/registry/tag-input.json +1 -1
  282. package/registry/tag-selector.json +1 -1
  283. package/registry/taped-photo.json +1 -1
  284. package/registry/terminal-replay.json +1 -1
  285. package/registry/text-style.json +1 -1
  286. package/registry/theme.json +1 -1
  287. package/registry/toast.json +1 -1
  288. package/registry/toc.json +1 -1
  289. package/registry/tooltip.json +1 -1
  290. package/registry/tree-view.json +1 -1
  291. package/registry/update-prompt.json +1 -1
  292. package/registry/upload-queue.json +1 -1
  293. package/registry/usage.json +1 -1
  294. package/registry/verified-badge.json +1 -1
  295. package/registry/versus-card.json +1 -1
  296. package/registry/vertical-video.json +1 -1
  297. package/registry/video-player.json +1 -1
  298. package/registry/video-trimmer.json +1 -1
  299. package/registry/virtual.json +1 -1
  300. package/registry/wall.json +47 -4
  301. package/registry/waveform.json +1 -1
  302. package/dist/chunk-A7MQPIEG.js +0 -31
  303. package/dist/chunk-A7MQPIEG.js.map +0 -1
  304. package/dist/chunk-EUJ7337V.js.map +0 -1
  305. package/dist/chunk-HK525THY.js.map +0 -1
  306. /package/dist/{chunk-CSRKYZ53.js.map → chunk-CZHPWLNW.js.map} +0 -0
@@ -212,6 +212,24 @@ function sectionDefinition(type) {
212
212
  return SECTION_DEFINITIONS.find((d) => d.type === type);
213
213
  }
214
214
 
215
+ // src/shop/look/apply-look.ts
216
+ import { shopPresets } from "@krizaka/tokens/shop-presets";
217
+ var SHOP_LOOKS = ["look-cahier", "look-krizaka", "look-editorial", "look-boutique", "look-affiche", "look-nuit"].map((id) => shopPresets.find((p) => p.id === id)).filter((p) => p !== void 0);
218
+ var REWRITTEN_BOOKING = /* @__PURE__ */ new Set(["strip", "panel"]);
219
+ var variantsOf = (type) => SECTION_DEFINITIONS.find((d) => d.type === type)?.variants;
220
+ function restyle(section, look) {
221
+ const variant = look.variants[section.type];
222
+ if (!variant || variant === section.variant || !variantsOf(section.type)?.includes(variant)) return section;
223
+ if (section.type === "booking" && !REWRITTEN_BOOKING.has(section.variant)) return section;
224
+ return { ...section, variant };
225
+ }
226
+ function applyLook(page, look) {
227
+ const sections = page.sections.map((s) => restyle(s, look));
228
+ const same2 = page.preset.id === look.id && page.preset.version === look.version && page.density === void 0 && page.accent === void 0 && sections.every((s, i) => s === page.sections[i]);
229
+ if (same2) return page;
230
+ return { ...page, preset: { id: look.id, version: look.version }, density: void 0, accent: void 0, sections };
231
+ }
232
+
215
233
  // src/shop-composer/commands.ts
216
234
  var clamp = (n, lo, hi) => Math.min(Math.max(n, lo), hi);
217
235
  var indexOfKey = (page, key2) => page.sections.findIndex((s) => s.key === key2);
@@ -283,6 +301,8 @@ var setPreset = (page, cmd) => {
283
301
  return { ...page, preset: { ...cmd.preset }, ...density };
284
302
  };
285
303
  var setDensity = (page, cmd) => page.density === cmd.density ? page : { ...page, density: cmd.density };
304
+ var applyLookCmd = (page, cmd) => applyLook(page, cmd.look);
305
+ var setAccent = (page, cmd) => page.accent === cmd.accent ? page : { ...page, accent: cmd.accent };
286
306
  var addBlock = (page, cmd) => withSection(page, cmd.key, (s) => {
287
307
  const def = sectionDefinition(s.type);
288
308
  const blocks = s.blocks ?? [];
@@ -319,6 +339,8 @@ var handlers = {
319
339
  toggleDisabled,
320
340
  setPreset,
321
341
  setDensity,
342
+ applyLook: applyLookCmd,
343
+ setAccent,
322
344
  addBlock,
323
345
  removeBlock,
324
346
  moveBlock,
@@ -331,7 +353,7 @@ function applyCommand(page, cmd) {
331
353
  // src/shop-composer/composer.tsx
332
354
  import { Button as Button4 } from "@krizaka/ui/button";
333
355
  import { Dialog } from "@krizaka/ui/dialog";
334
- import { RadioGroup as RadioGroup3 } from "@krizaka/ui/radio-group";
356
+ import { RadioGroup as RadioGroup4 } from "@krizaka/ui/radio-group";
335
357
  import * as React8 from "react";
336
358
 
337
359
  // src/cn.ts
@@ -372,6 +394,8 @@ var shopPageSchema = z4.object({
372
394
  preset: presetRef,
373
395
  /** Overrides the preset's density. */
374
396
  density: z4.optional(z4.enum(["compact", "airy"])),
397
+ /** One of the accents the look lists as tested (`krizaka`, `akinaza:accent-2`…): the owner's choice within the look. */
398
+ accent: z4.optional(z4.string().check(z4.regex(/^[a-z]+(:accent-2)?$/, "an accent of the look"))),
375
399
  sections: z4.array(sectionUnion).check(z4.minLength(1), z4.maxLength(SHOP_LIMITS.sections))
376
400
  }).check(
377
401
  z4.superRefine((page, ctx) => {
@@ -539,6 +563,10 @@ var defaultShopComposerMessages = {
539
563
  addBlock: "Add",
540
564
  removeBlock: "Remove {name}",
541
565
  look: "Look",
566
+ lookChoice: "Look of the page",
567
+ lookApplied: "Look: {name}",
568
+ accentChoice: "Accent",
569
+ accentNames: { krizaka: "Krizaka blue", akinaza: "Akinaza green", "akinaza:accent-2": "Copper", yomizaka: "Indigo", orazaka: "Orange" },
542
570
  preset: "Style",
543
571
  density: "Spacing",
544
572
  densityCompact: "Compact",
@@ -917,20 +945,23 @@ function SectionHeading({ id, eyebrow, number, title, lead: lead2, actions, leve
917
945
  import * as React3 from "react";
918
946
  import { Fragment as Fragment4, jsx as jsx6, jsxs as jsxs5 } from "react/jsx-runtime";
919
947
  var PAPERS = { plain: void 0, seyes: "ruled", kraft: "kraft", washi: "washi" };
920
- function ShopFrame({ preset, density = "compact", accent, paper = "plain", className, ...props }) {
921
- return /* @__PURE__ */ jsx6("div", { "data-shop-preset": preset, "data-shop-accent": accent, "data-paper": PAPERS[paper], "data-density": density, className: cn("kz-shop", className), ...props });
948
+ function ShopFrame({ preset, density = "compact", accent, paper = "plain", motion, className, ...props }) {
949
+ return /* @__PURE__ */ jsx6("div", { "data-shop-preset": preset, "data-shop-accent": accent, "data-paper": PAPERS[paper], "data-density": density, "data-shop-motion": motion, className: cn("kz-shop", className), ...props });
922
950
  }
923
- function ShopSection({ id, title, eyebrow, lead: lead2, actions, bleed, first, className, children, ...props }) {
951
+ function ShopSection({ id, title, eyebrow, lead: lead2, actions, bleed, first, mascot, className, children, ...props }) {
924
952
  const auto = React3.useId();
925
953
  const headingId = title ? `${id ?? auto}-title` : void 0;
926
954
  const heading = title ? /* @__PURE__ */ jsx6(SectionHeading, { id: headingId, size: "sm", eyebrow, title, lead: lead2, actions }) : null;
927
- return /* @__PURE__ */ jsx6("section", { id, "aria-labelledby": headingId, "data-first": first ? "" : void 0, "data-bleed": bleed ? "" : void 0, className: cn("kz-shop-section", className), ...props, children: bleed ? /* @__PURE__ */ jsxs5(Fragment4, { children: [
928
- heading && /* @__PURE__ */ jsx6(Page, { children: heading }),
929
- children
930
- ] }) : /* @__PURE__ */ jsxs5(Page, { children: [
931
- heading,
932
- children
933
- ] }) });
955
+ return /* @__PURE__ */ jsxs5("section", { id, "aria-labelledby": headingId, "data-first": first ? "" : void 0, "data-bleed": bleed ? "" : void 0, className: cn("kz-shop-section", className), ...props, children: [
956
+ mascot ? /* @__PURE__ */ jsx6("div", { "aria-hidden": true, className: "kz-shop-mascot", children: mascot }) : null,
957
+ bleed ? /* @__PURE__ */ jsxs5(Fragment4, { children: [
958
+ heading && /* @__PURE__ */ jsx6(Page, { children: heading }),
959
+ children
960
+ ] }) : /* @__PURE__ */ jsxs5(Page, { children: [
961
+ heading,
962
+ children
963
+ ] })
964
+ ] });
934
965
  }
935
966
 
936
967
  // src/shop/photo.tsx
@@ -1675,12 +1706,45 @@ function Inspector({ section, name, messages: m, run: run2, epoch, announce, onI
1675
1706
  ] });
1676
1707
  }
1677
1708
 
1709
+ // src/shop-composer/look-picker.tsx
1710
+ import { RadioGroup as RadioGroup3 } from "@krizaka/ui/radio-group";
1711
+ import { jsx as jsx23, jsxs as jsxs17 } from "react/jsx-runtime";
1712
+ function Chips({ look }) {
1713
+ return /* @__PURE__ */ jsx23("span", { "aria-hidden": true, className: "inline-flex gap-1", children: (look.accents ?? [look.accent ?? "krizaka"]).map((a) => /* @__PURE__ */ jsx23("span", { "data-shop-preset": look.id, "data-shop-accent": a, className: "kz-look-chip", children: /* @__PURE__ */ jsx23("i", {}) }, a)) });
1714
+ }
1715
+ function LookPicker({ looks, page, messages: m, run: run2, announce }) {
1716
+ const current = looks.find((l) => l.id === page.preset.id);
1717
+ const accents = current?.accents ?? [];
1718
+ return /* @__PURE__ */ jsxs17("div", { className: "grid gap-3", children: [
1719
+ /* @__PURE__ */ jsx23(
1720
+ RadioGroup3.Root,
1721
+ {
1722
+ label: m.lookChoice,
1723
+ variant: "cards",
1724
+ value: current?.id ?? "",
1725
+ onValueChange: (id) => {
1726
+ const look = looks.find((l) => l.id === id);
1727
+ if (!look) return;
1728
+ run2({ type: "applyLook", look });
1729
+ announce(fill(m.lookApplied, { name: look.name }));
1730
+ },
1731
+ className: "grid-cols-2",
1732
+ children: looks.map((l) => /* @__PURE__ */ jsx23(RadioGroup3.Card, { value: l.id, children: /* @__PURE__ */ jsxs17("span", { "data-shop-preset": l.id, className: cn("kz-look-swatch", "w-full justify-between"), children: [
1733
+ /* @__PURE__ */ jsx23("span", { className: "text-sm font-semibold", children: l.name }),
1734
+ /* @__PURE__ */ jsx23(Chips, { look: l })
1735
+ ] }) }, l.id))
1736
+ }
1737
+ ),
1738
+ accents.length > 1 && /* @__PURE__ */ jsx23(RadioGroup3.Root, { label: m.accentChoice, variant: "buttons", value: page.accent ?? current?.accent ?? accents[0], onValueChange: (a) => run2({ type: "setAccent", accent: a === current?.accent ? void 0 : a }), children: accents.map((a) => /* @__PURE__ */ jsx23(RadioGroup3.Button, { value: a, children: m.accentNames[a] ?? a }, a)) })
1739
+ ] });
1740
+ }
1741
+
1678
1742
  // src/shop-composer/outline.tsx
1679
1743
  import { Button as Button3 } from "@krizaka/ui/button";
1680
1744
  import { DropdownMenu } from "@krizaka/ui/dropdown-menu";
1681
1745
  import { Switch as Switch2 } from "@krizaka/ui/switch";
1682
1746
  import * as React7 from "react";
1683
- import { jsx as jsx23, jsxs as jsxs17 } from "react/jsx-runtime";
1747
+ import { jsx as jsx24, jsxs as jsxs18 } from "react/jsx-runtime";
1684
1748
  function sectionLabel(sections, index, messages) {
1685
1749
  const s = sections[index];
1686
1750
  const same2 = sections.filter((x) => x.type === s.type);
@@ -1729,13 +1793,13 @@ function Outline({ sections, selected, onSelect, run: run2, messages: m, announc
1729
1793
  }
1730
1794
  }
1731
1795
  };
1732
- return /* @__PURE__ */ jsxs17("nav", { "aria-label": m.sections, className: "flex min-h-0 flex-col gap-3", children: [
1733
- /* @__PURE__ */ jsx23("ol", { className: "m-0 flex list-none flex-col gap-1 p-0", children: sections.map((s, i) => {
1796
+ return /* @__PURE__ */ jsxs18("nav", { "aria-label": m.sections, className: "flex min-h-0 flex-col gap-3", children: [
1797
+ /* @__PURE__ */ jsx24("ol", { className: "m-0 flex list-none flex-col gap-1 p-0", children: sections.map((s, i) => {
1734
1798
  const name = sectionLabel(sections, i, m);
1735
1799
  const isHero = s.type === "hero";
1736
1800
  const lo = sections[0]?.type === "hero" ? 1 : 0;
1737
- return /* @__PURE__ */ jsxs17("li", { "data-selected": selected === s.key ? "" : void 0, "data-disabled": s.disabled ? "" : void 0, className: "flex items-center gap-1 rounded-lg border border-transparent data-[selected]:border-accent data-[selected]:bg-accent-soft", children: [
1738
- /* @__PURE__ */ jsxs17(
1801
+ return /* @__PURE__ */ jsxs18("li", { "data-selected": selected === s.key ? "" : void 0, "data-disabled": s.disabled ? "" : void 0, className: "flex items-center gap-1 rounded-lg border border-transparent data-[selected]:border-accent data-[selected]:bg-accent-soft", children: [
1802
+ /* @__PURE__ */ jsxs18(
1739
1803
  "button",
1740
1804
  {
1741
1805
  type: "button",
@@ -1749,15 +1813,15 @@ function Outline({ sections, selected, onSelect, run: run2, messages: m, announc
1749
1813
  onKeyDown: (e) => onKeyDown(e, i),
1750
1814
  className: "flex min-h-11 min-w-0 flex-1 flex-col items-start justify-center rounded-lg px-3 py-1.5 text-start focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-ring",
1751
1815
  children: [
1752
- /* @__PURE__ */ jsxs17("span", { className: "flex w-full items-baseline gap-2", children: [
1753
- /* @__PURE__ */ jsx23("span", { className: s.disabled ? "truncate text-sm font-semibold text-fg-secondary line-through decoration-1" : "truncate text-sm font-semibold text-fg", children: name }),
1754
- s.disabled && /* @__PURE__ */ jsx23("span", { className: "font-mono text-[11px] text-fg-secondary", children: m.hiddenNote })
1816
+ /* @__PURE__ */ jsxs18("span", { className: "flex w-full items-baseline gap-2", children: [
1817
+ /* @__PURE__ */ jsx24("span", { className: s.disabled ? "truncate text-sm font-semibold text-fg-secondary line-through decoration-1" : "truncate text-sm font-semibold text-fg", children: name }),
1818
+ s.disabled && /* @__PURE__ */ jsx24("span", { className: "font-mono text-[11px] text-fg-secondary", children: m.hiddenNote })
1755
1819
  ] }),
1756
- /* @__PURE__ */ jsx23("span", { className: "font-mono text-xs text-fg-secondary", children: m.variantNames[`${s.type}.${s.variant}`] ?? s.variant })
1820
+ /* @__PURE__ */ jsx24("span", { className: "font-mono text-xs text-fg-secondary", children: m.variantNames[`${s.type}.${s.variant}`] ?? s.variant })
1757
1821
  ]
1758
1822
  }
1759
1823
  ),
1760
- /* @__PURE__ */ jsx23(
1824
+ /* @__PURE__ */ jsx24(
1761
1825
  Switch2,
1762
1826
  {
1763
1827
  size: "sm",
@@ -1769,13 +1833,13 @@ function Outline({ sections, selected, onSelect, run: run2, messages: m, announc
1769
1833
  }
1770
1834
  }
1771
1835
  ),
1772
- /* @__PURE__ */ jsxs17(DropdownMenu.Root, { children: [
1773
- /* @__PURE__ */ jsx23(DropdownMenu.Trigger, { asChild: true, children: /* @__PURE__ */ jsx23(Button3, { variant: "ghost", size: "icon", "aria-label": fill(m.sectionMenu, { name }), children: /* @__PURE__ */ jsxs17("svg", { viewBox: "0 0 16 16", className: ICON, fill: "currentColor", "aria-hidden": true, children: [
1774
- /* @__PURE__ */ jsx23("circle", { cx: "8", cy: "3", r: "1.4" }),
1775
- /* @__PURE__ */ jsx23("circle", { cx: "8", cy: "8", r: "1.4" }),
1776
- /* @__PURE__ */ jsx23("circle", { cx: "8", cy: "13", r: "1.4" })
1836
+ /* @__PURE__ */ jsxs18(DropdownMenu.Root, { children: [
1837
+ /* @__PURE__ */ jsx24(DropdownMenu.Trigger, { asChild: true, children: /* @__PURE__ */ jsx24(Button3, { variant: "ghost", size: "icon", "aria-label": fill(m.sectionMenu, { name }), children: /* @__PURE__ */ jsxs18("svg", { viewBox: "0 0 16 16", className: ICON, fill: "currentColor", "aria-hidden": true, children: [
1838
+ /* @__PURE__ */ jsx24("circle", { cx: "8", cy: "3", r: "1.4" }),
1839
+ /* @__PURE__ */ jsx24("circle", { cx: "8", cy: "8", r: "1.4" }),
1840
+ /* @__PURE__ */ jsx24("circle", { cx: "8", cy: "13", r: "1.4" })
1777
1841
  ] }) }) }),
1778
- /* @__PURE__ */ jsxs17(
1842
+ /* @__PURE__ */ jsxs18(
1779
1843
  DropdownMenu.Content,
1780
1844
  {
1781
1845
  onCloseAutoFocus: (e) => {
@@ -1783,11 +1847,11 @@ function Outline({ sections, selected, onSelect, run: run2, messages: m, announc
1783
1847
  rows.current.get(s.key)?.focus();
1784
1848
  },
1785
1849
  children: [
1786
- /* @__PURE__ */ jsx23(DropdownMenu.Item, { disabled: isHero || i <= lo, onSelect: () => move(i, i - 1), children: m.moveUp }),
1787
- /* @__PURE__ */ jsx23(DropdownMenu.Item, { disabled: isHero || i >= sections.length - 1, onSelect: () => move(i, i + 1), children: m.moveDown }),
1788
- /* @__PURE__ */ jsx23(DropdownMenu.Item, { disabled: isHero || i <= lo, onSelect: () => move(i, lo), children: m.moveTop }),
1789
- /* @__PURE__ */ jsx23(DropdownMenu.Separator, {}),
1790
- /* @__PURE__ */ jsx23(
1850
+ /* @__PURE__ */ jsx24(DropdownMenu.Item, { disabled: isHero || i <= lo, onSelect: () => move(i, i - 1), children: m.moveUp }),
1851
+ /* @__PURE__ */ jsx24(DropdownMenu.Item, { disabled: isHero || i >= sections.length - 1, onSelect: () => move(i, i + 1), children: m.moveDown }),
1852
+ /* @__PURE__ */ jsx24(DropdownMenu.Item, { disabled: isHero || i <= lo, onSelect: () => move(i, lo), children: m.moveTop }),
1853
+ /* @__PURE__ */ jsx24(DropdownMenu.Separator, {}),
1854
+ /* @__PURE__ */ jsx24(
1791
1855
  DropdownMenu.Item,
1792
1856
  {
1793
1857
  tone: "danger",
@@ -1807,12 +1871,12 @@ function Outline({ sections, selected, onSelect, run: run2, messages: m, announc
1807
1871
  ] })
1808
1872
  ] }, s.key);
1809
1873
  }) }),
1810
- /* @__PURE__ */ jsx23(Button3, { variant: "outline", onClick: onAdd, children: m.addSection })
1874
+ /* @__PURE__ */ jsx24(Button3, { variant: "outline", onClick: onAdd, children: m.addSection })
1811
1875
  ] });
1812
1876
  }
1813
1877
 
1814
1878
  // src/shop-composer/composer.tsx
1815
- import { jsx as jsx24, jsxs as jsxs18 } from "react/jsx-runtime";
1879
+ import { jsx as jsx25, jsxs as jsxs19 } from "react/jsx-runtime";
1816
1880
  var AUTOSAVE_MS = 800;
1817
1881
  function reducer(state, a) {
1818
1882
  switch (a.type) {
@@ -1833,7 +1897,7 @@ function reducer(state, a) {
1833
1897
  }
1834
1898
  }
1835
1899
  function PreviewFrame({ src, title, phone, frame }) {
1836
- return /* @__PURE__ */ jsx24("div", { className: "flex h-full min-h-0 justify-center overflow-auto bg-surface-2 p-3", children: /* @__PURE__ */ jsx24("iframe", { ref: frame, src: src || void 0, title, "data-device": phone ? "phone" : "desktop", className: phone ? "h-full min-h-[34rem] w-[390px] max-w-full rounded-xl border border-border-default bg-surface-0" : "h-full min-h-[34rem] w-full rounded-xl border border-border-default bg-surface-0" }) });
1900
+ return /* @__PURE__ */ jsx25("div", { className: "flex h-full min-h-0 justify-center overflow-auto bg-surface-2 p-3", children: /* @__PURE__ */ jsx25("iframe", { ref: frame, src: src || void 0, title, "data-device": phone ? "phone" : "desktop", className: phone ? "h-full min-h-[34rem] w-[390px] max-w-full rounded-xl border border-border-default bg-surface-0" : "h-full min-h-[34rem] w-full rounded-xl border border-border-default bg-surface-0" }) });
1837
1901
  }
1838
1902
  function ShopComposer({ value, resetKey, onChange, onPublish, onDiscard, published, previewUrl, presets, foldedTypes = [], messages = defaultShopComposerMessages, className }) {
1839
1903
  const m = messages;
@@ -1873,6 +1937,8 @@ function ShopComposer({ value, resetKey, onChange, onPublish, onDiscard, publish
1873
1937
  setSelected(value.sections[0]?.key ?? null);
1874
1938
  }, [resetKey]);
1875
1939
  const parsed = React8.useMemo(() => parseShopPage(page), [page]);
1940
+ const looks = React8.useMemo(() => presets.filter((p) => p.id.startsWith("look-")), [presets]);
1941
+ const styles = React8.useMemo(() => presets.filter((p) => !p.id.startsWith("look-")), [presets]);
1876
1942
  const announce = React8.useCallback((message) => setLive((prev) => prev === message ? message + String.fromCodePoint(8203) : message), []);
1877
1943
  const exec = React8.useCallback((cmd, merge) => dispatch({ type: "run", cmd, merge }), []);
1878
1944
  const selectedSection = page.sections.find((s) => s.key === selected) ?? null;
@@ -1951,26 +2017,27 @@ function ShopComposer({ value, resetKey, onChange, onPublish, onDiscard, publish
1951
2017
  }
1952
2018
  };
1953
2019
  const status_ = status === "saving" ? m.saving : status === "saved" ? m.saved : status === "error" ? m.saveFailed : "";
1954
- return /* @__PURE__ */ jsxs18("div", { className: cn("kz-composer flex min-h-0 flex-col gap-3", className), onKeyDown, "data-step": step, children: [
1955
- /* @__PURE__ */ jsxs18("header", { className: "flex flex-wrap items-center gap-2 border-b border-border-subtle pb-2", children: [
1956
- /* @__PURE__ */ jsx24("h2", { className: "m-0 me-auto text-base font-semibold text-fg", children: m.title }),
1957
- /* @__PURE__ */ jsx24("span", { role: "status", "aria-live": "polite", className: "text-xs text-fg-secondary", children: status_ }),
1958
- /* @__PURE__ */ jsx24(Button4, { variant: "ghost", size: "sm", disabled: !canUndo(history), onClick: () => step_("undo"), "aria-keyshortcuts": "Control+Z Meta+Z", children: m.undo }),
1959
- /* @__PURE__ */ jsx24(Button4, { variant: "ghost", size: "sm", disabled: !canRedo(history), onClick: () => step_("redo"), "aria-keyshortcuts": "Control+Shift+Z Meta+Shift+Z", children: m.redo }),
1960
- onDiscard && /* @__PURE__ */ jsx24(Button4, { variant: "ghost", size: "sm", onClick: onDiscard, children: m.discard }),
1961
- /* @__PURE__ */ jsx24(Button4, { variant: "secondary", size: "sm", className: "lg:hidden", onClick: () => setPreviewOpen(true), children: m.viewPreview }),
1962
- /* @__PURE__ */ jsx24(Button4, { variant: "primary", size: "sm", onClick: () => setPublishing(true), children: m.publish })
2020
+ return /* @__PURE__ */ jsxs19("div", { className: cn("kz-composer flex min-h-0 flex-col gap-3", className), onKeyDown, "data-step": step, children: [
2021
+ /* @__PURE__ */ jsxs19("header", { className: "flex flex-wrap items-center gap-2 border-b border-border-subtle pb-2", children: [
2022
+ /* @__PURE__ */ jsx25("h2", { className: "m-0 me-auto text-base font-semibold text-fg", children: m.title }),
2023
+ /* @__PURE__ */ jsx25("span", { role: "status", "aria-live": "polite", className: "text-xs text-fg-secondary", children: status_ }),
2024
+ /* @__PURE__ */ jsx25(Button4, { variant: "ghost", size: "sm", disabled: !canUndo(history), onClick: () => step_("undo"), "aria-keyshortcuts": "Control+Z Meta+Z", children: m.undo }),
2025
+ /* @__PURE__ */ jsx25(Button4, { variant: "ghost", size: "sm", disabled: !canRedo(history), onClick: () => step_("redo"), "aria-keyshortcuts": "Control+Shift+Z Meta+Shift+Z", children: m.redo }),
2026
+ onDiscard && /* @__PURE__ */ jsx25(Button4, { variant: "ghost", size: "sm", onClick: onDiscard, children: m.discard }),
2027
+ /* @__PURE__ */ jsx25(Button4, { variant: "secondary", size: "sm", className: "lg:hidden", onClick: () => setPreviewOpen(true), children: m.viewPreview }),
2028
+ /* @__PURE__ */ jsx25(Button4, { variant: "primary", size: "sm", onClick: () => setPublishing(true), children: m.publish })
1963
2029
  ] }),
1964
- /* @__PURE__ */ jsx24("p", { role: "status", "aria-live": "polite", className: "sr-only", children: live }),
1965
- /* @__PURE__ */ jsxs18("div", { className: "grid min-h-0 flex-1 gap-4 lg:grid-cols-[18rem_minmax(0,1fr)_24rem]", children: [
1966
- /* @__PURE__ */ jsxs18("aside", { "aria-label": m.sections, className: cn("flex min-h-0 flex-col gap-4 overflow-y-auto", step === "section" && "hidden lg:flex"), children: [
1967
- /* @__PURE__ */ jsx24(Outline, { sections: page.sections, selected, onSelect: select, run: exec, messages: m, announce, onAdd: () => setAdding(true), focusRequest }),
1968
- /* @__PURE__ */ jsxs18("details", { className: "rounded-lg border border-border-default p-3", open: true, children: [
1969
- /* @__PURE__ */ jsx24("summary", { className: "min-h-9 cursor-pointer text-sm font-semibold text-fg", children: m.look }),
1970
- /* @__PURE__ */ jsxs18("div", { className: "mt-2 grid gap-3", children: [
1971
- /* @__PURE__ */ jsxs18("label", { className: "grid gap-1 text-xs font-semibold text-fg-secondary", children: [
2030
+ /* @__PURE__ */ jsx25("p", { role: "status", "aria-live": "polite", className: "sr-only", children: live }),
2031
+ /* @__PURE__ */ jsxs19("div", { className: "grid min-h-0 flex-1 gap-4 lg:grid-cols-[18rem_minmax(0,1fr)_24rem]", children: [
2032
+ /* @__PURE__ */ jsxs19("aside", { "aria-label": m.sections, className: cn("flex min-h-0 flex-col gap-4 overflow-y-auto", step === "section" && "hidden lg:flex"), children: [
2033
+ /* @__PURE__ */ jsx25(Outline, { sections: page.sections, selected, onSelect: select, run: exec, messages: m, announce, onAdd: () => setAdding(true), focusRequest }),
2034
+ /* @__PURE__ */ jsxs19("details", { className: "rounded-lg border border-border-default p-3", open: true, children: [
2035
+ /* @__PURE__ */ jsx25("summary", { className: "min-h-9 cursor-pointer text-sm font-semibold text-fg", children: m.look }),
2036
+ /* @__PURE__ */ jsxs19("div", { className: "mt-2 grid gap-3", children: [
2037
+ looks.length > 0 && /* @__PURE__ */ jsx25(LookPicker, { looks, page, messages: m, run: exec, announce }),
2038
+ styles.length > 0 && /* @__PURE__ */ jsxs19("label", { className: "grid gap-1 text-xs font-semibold text-fg-secondary", children: [
1972
2039
  m.preset,
1973
- /* @__PURE__ */ jsx24(
2040
+ /* @__PURE__ */ jsx25(
1974
2041
  "select",
1975
2042
  {
1976
2043
  className: "min-h-10 rounded-md border border-border-control bg-surface-1 px-2 text-sm font-normal text-fg",
@@ -1979,30 +2046,30 @@ function ShopComposer({ value, resetKey, onChange, onPublish, onDiscard, publish
1979
2046
  const p = presets.find((x) => x.id === e.target.value);
1980
2047
  if (p) exec({ type: "setPreset", preset: { id: p.id, version: p.version }, density: null });
1981
2048
  },
1982
- children: presets.map((p) => /* @__PURE__ */ jsx24("option", { value: p.id, children: p.name }, p.id))
2049
+ children: styles.map((p) => /* @__PURE__ */ jsx25("option", { value: p.id, children: p.name }, p.id))
1983
2050
  }
1984
2051
  )
1985
2052
  ] }),
1986
- /* @__PURE__ */ jsxs18(RadioGroup3.Root, { label: m.density, variant: "segmented", value: page.density ?? presets.find((p) => p.id === page.preset.id)?.density ?? "compact", onValueChange: (d) => exec({ type: "setDensity", density: d }), children: [
1987
- /* @__PURE__ */ jsx24(RadioGroup3.Segment, { value: "compact", children: m.densityCompact }),
1988
- /* @__PURE__ */ jsx24(RadioGroup3.Segment, { value: "airy", children: m.densityAiry })
2053
+ /* @__PURE__ */ jsxs19(RadioGroup4.Root, { label: m.density, variant: "segmented", value: page.density ?? presets.find((p) => p.id === page.preset.id)?.density ?? "compact", onValueChange: (d) => exec({ type: "setDensity", density: d }), children: [
2054
+ /* @__PURE__ */ jsx25(RadioGroup4.Segment, { value: "compact", children: m.densityCompact }),
2055
+ /* @__PURE__ */ jsx25(RadioGroup4.Segment, { value: "airy", children: m.densityAiry })
1989
2056
  ] })
1990
2057
  ] })
1991
2058
  ] })
1992
2059
  ] }),
1993
- /* @__PURE__ */ jsxs18("section", { "aria-label": m.preview, className: "hidden min-h-0 flex-col gap-2 lg:flex", children: [
1994
- /* @__PURE__ */ jsxs18(RadioGroup3.Root, { label: m.preview, variant: "segmented", value: device, onValueChange: (d) => setDevice(d), className: "self-start", children: [
1995
- /* @__PURE__ */ jsx24(RadioGroup3.Segment, { value: "desktop", children: m.desktop }),
1996
- /* @__PURE__ */ jsx24(RadioGroup3.Segment, { value: "phone", children: m.phone })
2060
+ /* @__PURE__ */ jsxs19("section", { "aria-label": m.preview, className: "hidden min-h-0 flex-col gap-2 lg:flex", children: [
2061
+ /* @__PURE__ */ jsxs19(RadioGroup4.Root, { label: m.preview, variant: "segmented", value: device, onValueChange: (d) => setDevice(d), className: "self-start", children: [
2062
+ /* @__PURE__ */ jsx25(RadioGroup4.Segment, { value: "desktop", children: m.desktop }),
2063
+ /* @__PURE__ */ jsx25(RadioGroup4.Segment, { value: "phone", children: m.phone })
1997
2064
  ] }),
1998
- /* @__PURE__ */ jsx24(PreviewFrame, { src: previewUrl, title: m.previewTitle, phone: device === "phone", frame })
2065
+ /* @__PURE__ */ jsx25(PreviewFrame, { src: previewUrl, title: m.previewTitle, phone: device === "phone", frame })
1999
2066
  ] }),
2000
- /* @__PURE__ */ jsxs18("aside", { "aria-label": m.inspector, className: cn("flex min-h-0 flex-col gap-4 overflow-y-auto", step === "list" && "hidden lg:flex"), children: [
2001
- /* @__PURE__ */ jsxs18(Button4, { variant: "ghost", size: "sm", className: "self-start lg:hidden", onClick: () => setStep("list"), children: [
2067
+ /* @__PURE__ */ jsxs19("aside", { "aria-label": m.inspector, className: cn("flex min-h-0 flex-col gap-4 overflow-y-auto", step === "list" && "hidden lg:flex"), children: [
2068
+ /* @__PURE__ */ jsxs19(Button4, { variant: "ghost", size: "sm", className: "self-start lg:hidden", onClick: () => setStep("list"), children: [
2002
2069
  "\u2190 ",
2003
2070
  m.backToSections
2004
2071
  ] }),
2005
- selectedSection ? /* @__PURE__ */ jsx24(
2072
+ selectedSection ? /* @__PURE__ */ jsx25(
2006
2073
  Inspector,
2007
2074
  {
2008
2075
  section: selectedSection,
@@ -2020,46 +2087,46 @@ function ShopComposer({ value, resetKey, onChange, onPublish, onDiscard, publish
2020
2087
  preset: page.preset.id,
2021
2088
  density: page.density
2022
2089
  }
2023
- ) : /* @__PURE__ */ jsx24("p", { className: "m-0 text-sm text-fg-secondary", children: m.noSelection })
2090
+ ) : /* @__PURE__ */ jsx25("p", { className: "m-0 text-sm text-fg-secondary", children: m.noSelection })
2024
2091
  ] })
2025
2092
  ] }),
2026
- /* @__PURE__ */ jsx24(Dialog.Root, { open: adding, onOpenChange: setAdding, children: /* @__PURE__ */ jsxs18(Dialog.Content, { closeLabel: m.cancel, children: [
2027
- /* @__PURE__ */ jsxs18(Dialog.Header, { children: [
2028
- /* @__PURE__ */ jsx24(Dialog.Title, { children: m.addSection }),
2029
- /* @__PURE__ */ jsx24(Dialog.Description, { children: m.addSectionHint })
2093
+ /* @__PURE__ */ jsx25(Dialog.Root, { open: adding, onOpenChange: setAdding, children: /* @__PURE__ */ jsxs19(Dialog.Content, { closeLabel: m.cancel, children: [
2094
+ /* @__PURE__ */ jsxs19(Dialog.Header, { children: [
2095
+ /* @__PURE__ */ jsx25(Dialog.Title, { children: m.addSection }),
2096
+ /* @__PURE__ */ jsx25(Dialog.Description, { children: m.addSectionHint })
2030
2097
  ] }),
2031
- /* @__PURE__ */ jsx24(Dialog.Body, { children: [SECTION_DEFINITIONS.filter((d) => !foldedTypes.includes(d.type)), SECTION_DEFINITIONS.filter((d) => foldedTypes.includes(d.type))].map((group, g) => {
2032
- const list = /* @__PURE__ */ jsx24("ul", { className: "m-0 grid list-none gap-1 p-0", children: group.map((d) => /* @__PURE__ */ jsx24("li", { children: /* @__PURE__ */ jsx24(Button4, { variant: "ghost", className: "w-full justify-start", disabled: d.type === "hero" && page.sections.some((s) => s.type === "hero"), onClick: () => addSection2(d.type), children: m.sectionNames[d.type] }) }, d.type)) });
2033
- return group.length === 0 ? null : g === 0 ? /* @__PURE__ */ jsx24(React8.Fragment, { children: list }, g) : /* @__PURE__ */ jsxs18("details", { className: "mt-3", children: [
2034
- /* @__PURE__ */ jsx24("summary", { className: "min-h-9 cursor-pointer text-sm text-fg-secondary", children: "\u2026" }),
2098
+ /* @__PURE__ */ jsx25(Dialog.Body, { children: [SECTION_DEFINITIONS.filter((d) => !foldedTypes.includes(d.type)), SECTION_DEFINITIONS.filter((d) => foldedTypes.includes(d.type))].map((group, g) => {
2099
+ const list = /* @__PURE__ */ jsx25("ul", { className: "m-0 grid list-none gap-1 p-0", children: group.map((d) => /* @__PURE__ */ jsx25("li", { children: /* @__PURE__ */ jsx25(Button4, { variant: "ghost", className: "w-full justify-start", disabled: d.type === "hero" && page.sections.some((s) => s.type === "hero"), onClick: () => addSection2(d.type), children: m.sectionNames[d.type] }) }, d.type)) });
2100
+ return group.length === 0 ? null : g === 0 ? /* @__PURE__ */ jsx25(React8.Fragment, { children: list }, g) : /* @__PURE__ */ jsxs19("details", { className: "mt-3", children: [
2101
+ /* @__PURE__ */ jsx25("summary", { className: "min-h-9 cursor-pointer text-sm text-fg-secondary", children: "\u2026" }),
2035
2102
  list
2036
2103
  ] }, g);
2037
2104
  }) })
2038
2105
  ] }) }),
2039
- /* @__PURE__ */ jsx24(Dialog.Root, { open: publishing, onOpenChange: setPublishing, children: /* @__PURE__ */ jsxs18(Dialog.Content, { closeLabel: m.cancel, children: [
2040
- /* @__PURE__ */ jsxs18(Dialog.Header, { children: [
2041
- /* @__PURE__ */ jsx24(Dialog.Title, { children: m.publishTitle }),
2042
- /* @__PURE__ */ jsx24(Dialog.Description, { children: m.publishWhat })
2106
+ /* @__PURE__ */ jsx25(Dialog.Root, { open: publishing, onOpenChange: setPublishing, children: /* @__PURE__ */ jsxs19(Dialog.Content, { closeLabel: m.cancel, children: [
2107
+ /* @__PURE__ */ jsxs19(Dialog.Header, { children: [
2108
+ /* @__PURE__ */ jsx25(Dialog.Title, { children: m.publishTitle }),
2109
+ /* @__PURE__ */ jsx25(Dialog.Description, { children: m.publishWhat })
2043
2110
  ] }),
2044
- /* @__PURE__ */ jsxs18(Dialog.Body, { children: [
2045
- problems.length > 0 && /* @__PURE__ */ jsxs18("div", { role: "alert", className: "mb-3 rounded-md border border-border-control bg-surface-2 p-3", children: [
2046
- /* @__PURE__ */ jsx24("p", { className: "m-0 text-sm font-semibold text-fg", children: fill(m.problemsTitle, { n: problems.length }) }),
2047
- /* @__PURE__ */ jsx24("ul", { className: "m-0 mt-1 list-disc ps-5 text-sm text-fg-secondary", children: problems.map((p) => /* @__PURE__ */ jsx24("li", { children: p.text }, p.key)) })
2111
+ /* @__PURE__ */ jsxs19(Dialog.Body, { children: [
2112
+ problems.length > 0 && /* @__PURE__ */ jsxs19("div", { role: "alert", className: "mb-3 rounded-md border border-border-control bg-surface-2 p-3", children: [
2113
+ /* @__PURE__ */ jsx25("p", { className: "m-0 text-sm font-semibold text-fg", children: fill(m.problemsTitle, { n: problems.length }) }),
2114
+ /* @__PURE__ */ jsx25("ul", { className: "m-0 mt-1 list-disc ps-5 text-sm text-fg-secondary", children: problems.map((p) => /* @__PURE__ */ jsx25("li", { children: p.text }, p.key)) })
2048
2115
  ] }),
2049
- changes.length === 0 ? /* @__PURE__ */ jsx24("p", { className: "m-0 text-sm text-fg-secondary", children: m.publishNothing }) : /* @__PURE__ */ jsx24("ul", { className: "m-0 list-disc ps-5 text-sm text-fg", children: changes.map((d, i) => /* @__PURE__ */ jsx24("li", { children: describe(d) }, i)) })
2116
+ changes.length === 0 ? /* @__PURE__ */ jsx25("p", { className: "m-0 text-sm text-fg-secondary", children: m.publishNothing }) : /* @__PURE__ */ jsx25("ul", { className: "m-0 list-disc ps-5 text-sm text-fg", children: changes.map((d, i) => /* @__PURE__ */ jsx25("li", { children: describe(d) }, i)) })
2050
2117
  ] }),
2051
- /* @__PURE__ */ jsxs18(Dialog.Footer, { children: [
2052
- /* @__PURE__ */ jsx24(Dialog.Close, { asChild: true, children: /* @__PURE__ */ jsx24(Button4, { variant: "ghost", children: m.cancel }) }),
2053
- /* @__PURE__ */ jsx24(Button4, { variant: "primary", disabled: problems.length > 0 || !parsed.ok, onClick: async () => {
2118
+ /* @__PURE__ */ jsxs19(Dialog.Footer, { children: [
2119
+ /* @__PURE__ */ jsx25(Dialog.Close, { asChild: true, children: /* @__PURE__ */ jsx25(Button4, { variant: "ghost", children: m.cancel }) }),
2120
+ /* @__PURE__ */ jsx25(Button4, { variant: "primary", disabled: problems.length > 0 || !parsed.ok, onClick: async () => {
2054
2121
  await onPublish(page);
2055
2122
  setBaseline(page);
2056
2123
  setPublishing(false);
2057
2124
  }, children: m.publishConfirm })
2058
2125
  ] })
2059
2126
  ] }) }),
2060
- /* @__PURE__ */ jsx24(Dialog.Root, { open: previewOpen, onOpenChange: setPreviewOpen, children: /* @__PURE__ */ jsxs18(Dialog.Content, { closeLabel: m.closePreview, size: "lg", children: [
2061
- /* @__PURE__ */ jsx24(Dialog.Header, { children: /* @__PURE__ */ jsx24(Dialog.Title, { children: m.preview }) }),
2062
- /* @__PURE__ */ jsx24(Dialog.Body, { className: "p-0", children: previewOpen && /* @__PURE__ */ jsx24(PreviewFrame, { src: previewUrl, title: m.previewTitle, phone: true, frame }) })
2127
+ /* @__PURE__ */ jsx25(Dialog.Root, { open: previewOpen, onOpenChange: setPreviewOpen, children: /* @__PURE__ */ jsxs19(Dialog.Content, { closeLabel: m.closePreview, size: "lg", children: [
2128
+ /* @__PURE__ */ jsx25(Dialog.Header, { children: /* @__PURE__ */ jsx25(Dialog.Title, { children: m.preview }) }),
2129
+ /* @__PURE__ */ jsx25(Dialog.Body, { className: "p-0", children: previewOpen && /* @__PURE__ */ jsx25(PreviewFrame, { src: previewUrl, title: m.previewTitle, phone: true, frame }) })
2063
2130
  ] }) })
2064
2131
  ] });
2065
2132
  }