@krizaka/ui 3.67.1 → 3.69.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 (301) hide show
  1. package/README.md +1 -0
  2. package/dist/chunk-E4FMPPDL.js +134 -0
  3. package/dist/chunk-E4FMPPDL.js.map +1 -0
  4. package/dist/{chunk-E4X3V7QX.js → chunk-GRVIZTT2.js} +2 -2
  5. package/dist/chunk-PZ4FJOD5.js +44 -0
  6. package/dist/chunk-PZ4FJOD5.js.map +1 -0
  7. package/dist/{chunk-PFPOBIHL.js → chunk-T5NZSKWT.js} +15 -12
  8. package/dist/{chunk-PFPOBIHL.js.map → chunk-T5NZSKWT.js.map} +1 -1
  9. package/dist/{chunk-6BMKLAZ7.js → chunk-Z47KIPCT.js} +7 -2
  10. package/dist/{chunk-6BMKLAZ7.js.map → chunk-Z47KIPCT.js.map} +1 -1
  11. package/dist/copy-button.d.ts +29 -0
  12. package/dist/copy-button.js +56 -0
  13. package/dist/copy-button.js.map +1 -0
  14. package/dist/data-table.js +3 -3
  15. package/dist/date-picker.d.ts +15 -15
  16. package/dist/filter-bar.d.ts +3 -3
  17. package/dist/filter-bar.js +1 -1
  18. package/dist/genui.js +3 -3
  19. package/dist/index.js +3 -3
  20. package/dist/kind-config-editor.js +106 -129
  21. package/dist/kind-config-editor.js.map +1 -1
  22. package/dist/lightbox-D5NAHFEA.js +95 -0
  23. package/dist/lightbox-D5NAHFEA.js.map +1 -0
  24. package/dist/match-dialog.js +17 -140
  25. package/dist/match-dialog.js.map +1 -1
  26. package/dist/money-input.d.ts +29 -0
  27. package/dist/money-input.js +78 -0
  28. package/dist/money-input.js.map +1 -0
  29. package/dist/nav-bar.d.ts +28 -4
  30. package/dist/nav-bar.js +20 -10
  31. package/dist/nav-bar.js.map +1 -1
  32. package/dist/promo-code-field.d.ts +38 -0
  33. package/dist/promo-code-field.js +94 -0
  34. package/dist/promo-code-field.js.map +1 -0
  35. package/dist/radio-group.js +1 -1
  36. package/dist/retro-tv.d.ts +39 -4
  37. package/dist/retro-tv.js +217 -40
  38. package/dist/retro-tv.js.map +1 -1
  39. package/dist/shop/booking.d.ts +22 -3
  40. package/dist/shop/booking.js +33 -1
  41. package/dist/shop/booking.js.map +1 -1
  42. package/dist/shop-composer.d.ts +1 -1
  43. package/dist/shop-composer.js +109 -85
  44. package/dist/shop-composer.js.map +1 -1
  45. package/dist/shop-gallery.d.ts +47 -0
  46. package/dist/shop-gallery.js +121 -0
  47. package/dist/shop-gallery.js.map +1 -0
  48. package/dist/shop.d.ts +1 -1
  49. package/dist/shop.js +1 -1
  50. package/dist/shop.js.map +1 -1
  51. package/dist/status-chip.js +1 -1
  52. package/dist/tag-selector.js +5 -5
  53. package/dist/tag-selector.js.map +1 -1
  54. package/dist/terminal-replay.js +1 -1
  55. package/dist/virtual.d.ts +3 -3
  56. package/package.json +63 -5
  57. package/registry/account-menu.json +1 -1
  58. package/registry/account-settings.json +1 -1
  59. package/registry/achievement.json +1 -1
  60. package/registry/action-bar.json +1 -1
  61. package/registry/activity-feed.json +1 -1
  62. package/registry/agenda.json +1 -1
  63. package/registry/alert.json +1 -1
  64. package/registry/analysis-report.json +1 -1
  65. package/registry/anatomy-plate.json +1 -1
  66. package/registry/app-frame.json +2 -2
  67. package/registry/app-header.json +1 -1
  68. package/registry/app-shell.json +1 -1
  69. package/registry/argument-card.json +1 -1
  70. package/registry/audio-player.json +1 -1
  71. package/registry/auth-layout.json +1 -1
  72. package/registry/avatar.json +1 -1
  73. package/registry/badge.json +1 -1
  74. package/registry/bird-plate.json +1 -1
  75. package/registry/button.json +1 -1
  76. package/registry/captcha.json +1 -1
  77. package/registry/card-grid.json +1 -1
  78. package/registry/card.json +1 -1
  79. package/registry/catalogue-page.json +1 -1
  80. package/registry/changelog-page.json +1 -1
  81. package/registry/chapter.json +1 -1
  82. package/registry/chat.json +1 -1
  83. package/registry/checkbox.json +1 -1
  84. package/registry/chip-link.json +1 -1
  85. package/registry/chip-row.json +1 -1
  86. package/registry/chip.json +1 -1
  87. package/registry/choice-grid.json +1 -1
  88. package/registry/code-block.json +1 -1
  89. package/registry/collection-switcher.json +1 -1
  90. package/registry/combobox.json +1 -1
  91. package/registry/command.json +1 -1
  92. package/registry/comparison-table.json +1 -1
  93. package/registry/component-page.json +1 -1
  94. package/registry/confirm-button.json +1 -1
  95. package/registry/contact-page.json +1 -1
  96. package/registry/continue-prompt.json +1 -1
  97. package/registry/copy-button.json +382 -0
  98. package/registry/countdown.json +1 -1
  99. package/registry/cover-hero.json +1 -1
  100. package/registry/cta-panel.json +1 -1
  101. package/registry/dashboard-layout.json +1 -1
  102. package/registry/data-table.json +1 -1
  103. package/registry/date-picker.json +1 -1
  104. package/registry/decision-list.json +1 -1
  105. package/registry/description-list.json +1 -1
  106. package/registry/desktop-window.json +1 -1
  107. package/registry/detail-layout.json +1 -1
  108. package/registry/dialog.json +1 -1
  109. package/registry/docs-article-page.json +1 -1
  110. package/registry/docs-hub-page.json +1 -1
  111. package/registry/docs-layout.json +1 -1
  112. package/registry/docs-nav.json +1 -1
  113. package/registry/document-viewer.json +1 -1
  114. package/registry/doodle.json +1 -1
  115. package/registry/drop-overlay.json +1 -1
  116. package/registry/dropdown-menu.json +1 -1
  117. package/registry/elephant.json +2 -2
  118. package/registry/embed-facade.json +1 -1
  119. package/registry/empty-state.json +1 -1
  120. package/registry/engine-flow.json +1 -1
  121. package/registry/entity-header.json +1 -1
  122. package/registry/environment-notice.json +1 -1
  123. package/registry/error-page.json +1 -1
  124. package/registry/examples/copy-button/default.d.ts +4 -0
  125. package/registry/examples/copy-button/default.js +11 -0
  126. package/registry/examples/copy-button/default.tsx +7 -0
  127. package/registry/examples/copy-button/icon-only.d.ts +4 -0
  128. package/registry/examples/copy-button/icon-only.js +11 -0
  129. package/registry/examples/copy-button/icon-only.tsx +7 -0
  130. package/registry/examples/money-input/currencies.d.ts +4 -0
  131. package/registry/examples/money-input/currencies.js +18 -0
  132. package/registry/examples/money-input/currencies.tsx +16 -0
  133. package/registry/examples/money-input/default.d.ts +4 -0
  134. package/registry/examples/money-input/default.js +18 -0
  135. package/registry/examples/money-input/default.tsx +16 -0
  136. package/registry/examples/promo-code-field/applied.d.ts +4 -0
  137. package/registry/examples/promo-code-field/applied.js +11 -0
  138. package/registry/examples/promo-code-field/applied.tsx +7 -0
  139. package/registry/examples/promo-code-field/default.d.ts +4 -0
  140. package/registry/examples/promo-code-field/default.js +19 -0
  141. package/registry/examples/promo-code-field/default.tsx +14 -0
  142. package/registry/examples/promo-code-field/expired.d.ts +4 -0
  143. package/registry/examples/promo-code-field/expired.js +11 -0
  144. package/registry/examples/promo-code-field/expired.tsx +7 -0
  145. package/registry/examples/retro-tv/playlist-channel.d.ts +4 -0
  146. package/registry/examples/retro-tv/playlist-channel.js +15 -0
  147. package/registry/examples/retro-tv/playlist-channel.tsx +10 -0
  148. package/registry/examples/retro-tv/playlist-crossfade.d.ts +4 -0
  149. package/registry/examples/retro-tv/playlist-crossfade.js +15 -0
  150. package/registry/examples/retro-tv/playlist-crossfade.tsx +10 -0
  151. package/registry/examples/retro-tv/playlist-slide.d.ts +4 -0
  152. package/registry/examples/retro-tv/playlist-slide.js +15 -0
  153. package/registry/examples/retro-tv/playlist-slide.tsx +10 -0
  154. package/registry/examples/shop/booking-closing-closed.d.ts +4 -0
  155. package/registry/examples/shop/booking-closing-closed.js +26 -0
  156. package/registry/examples/shop/booking-closing-closed.tsx +22 -0
  157. package/registry/examples/shop/booking-closing-mark.d.ts +4 -0
  158. package/registry/examples/shop/booking-closing-mark.js +13 -0
  159. package/registry/examples/shop/booking-closing-mark.tsx +12 -0
  160. package/registry/examples/shop/booking-closing.d.ts +4 -0
  161. package/registry/examples/shop/booking-closing.js +27 -0
  162. package/registry/examples/shop/booking-closing.tsx +23 -0
  163. package/registry/examples/shop-gallery/five.d.ts +4 -0
  164. package/registry/examples/shop-gallery/five.js +14 -0
  165. package/registry/examples/shop-gallery/five.tsx +10 -0
  166. package/registry/examples/shop-gallery/three.d.ts +4 -0
  167. package/registry/examples/shop-gallery/three.js +14 -0
  168. package/registry/examples/shop-gallery/three.tsx +10 -0
  169. package/registry/examples/shop-gallery/twelve.d.ts +4 -0
  170. package/registry/examples/shop-gallery/twelve.js +14 -0
  171. package/registry/examples/shop-gallery/twelve.tsx +10 -0
  172. package/registry/field.json +1 -1
  173. package/registry/file-upload.json +1 -1
  174. package/registry/filter-bar.json +2 -2
  175. package/registry/flock.json +1 -1
  176. package/registry/footnote.json +1 -1
  177. package/registry/force-update-screen.json +1 -1
  178. package/registry/form.json +1 -1
  179. package/registry/gallery-page.json +1 -1
  180. package/registry/genui.json +1 -1
  181. package/registry/glossary-term.json +1 -1
  182. package/registry/glossary.json +1 -1
  183. package/registry/glow-card.json +1 -1
  184. package/registry/goal-gauge.json +1 -1
  185. package/registry/grade-stamp.json +1 -1
  186. package/registry/how-it-works-page.json +1 -1
  187. package/registry/image-cropper.json +1 -1
  188. package/registry/index.json +142 -10
  189. package/registry/iso.json +1 -1
  190. package/registry/kanban.json +1 -1
  191. package/registry/kbd.json +1 -1
  192. package/registry/kind-config-editor.json +1 -1
  193. package/registry/kpi-explained.json +1 -1
  194. package/registry/landing-page.json +1 -1
  195. package/registry/landscape.json +1 -1
  196. package/registry/language-switch.json +1 -1
  197. package/registry/legal-page.json +1 -1
  198. package/registry/link-card.json +1 -1
  199. package/registry/list.json +1 -1
  200. package/registry/loader.json +1 -1
  201. package/registry/longform-page.json +1 -1
  202. package/registry/maintenance-screen.json +1 -1
  203. package/registry/map.json +2 -2
  204. package/registry/margin-layout.json +1 -1
  205. package/registry/markdown.json +1 -1
  206. package/registry/marketing-layout.json +1 -1
  207. package/registry/marquee.json +1 -1
  208. package/registry/mascot-quote.json +1 -1
  209. package/registry/mascot-state.json +1 -1
  210. package/registry/mascots.json +1 -1
  211. package/registry/match-dialog.json +1 -1
  212. package/registry/media-capture.json +1 -1
  213. package/registry/media-gallery.json +1 -1
  214. package/registry/media-grid.json +1 -1
  215. package/registry/meta-row.json +1 -1
  216. package/registry/meter.json +1 -1
  217. package/registry/money-input.json +236 -0
  218. package/registry/nav-bar.json +22 -8
  219. package/registry/next-actions.json +1 -1
  220. package/registry/notification-preferences.json +1 -1
  221. package/registry/number-ticker.json +1 -1
  222. package/registry/opening-hours.json +1 -1
  223. package/registry/page-header.json +1 -1
  224. package/registry/page-hero.json +1 -1
  225. package/registry/page-index.json +1 -1
  226. package/registry/page.json +1 -1
  227. package/registry/pagination.json +1 -1
  228. package/registry/photo-grid.json +1 -1
  229. package/registry/pointer-light.json +1 -1
  230. package/registry/popover.json +1 -1
  231. package/registry/pricing-page.json +1 -1
  232. package/registry/product-page.json +1 -1
  233. package/registry/profile-card.json +1 -1
  234. package/registry/progress.json +1 -1
  235. package/registry/promise-card.json +1 -1
  236. package/registry/promo-code-field.json +258 -0
  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 +120 -8
  243. package/registry/reviews.json +1 -1
  244. package/registry/router.json +1 -1
  245. package/registry/scroll-stage.json +1 -1
  246. package/registry/search-field.json +1 -1
  247. package/registry/section-backdrop.json +1 -1
  248. package/registry/separator.json +1 -1
  249. package/registry/service-card.json +1 -1
  250. package/registry/settings-layout.json +1 -1
  251. package/registry/shop-composer.json +1 -1
  252. package/registry/shop-gallery.json +209 -0
  253. package/registry/shop.json +30 -6
  254. package/registry/showcase.json +1 -1
  255. package/registry/signature.json +1 -1
  256. package/registry/site-cahier.json +1 -1
  257. package/registry/site-footer.json +2 -2
  258. package/registry/sites.json +1 -1
  259. package/registry/skeleton.json +1 -1
  260. package/registry/skip-link.json +1 -1
  261. package/registry/slider.json +1 -1
  262. package/registry/slot-picker.json +1 -1
  263. package/registry/slot.json +1 -1
  264. package/registry/specimen-tag.json +1 -1
  265. package/registry/speed-lines.json +1 -1
  266. package/registry/spinner.json +1 -1
  267. package/registry/split-view.json +1 -1
  268. package/registry/stage-banner.json +1 -1
  269. package/registry/stat.json +1 -1
  270. package/registry/status-chip.json +1 -1
  271. package/registry/status-page.json +1 -1
  272. package/registry/step-progress.json +1 -1
  273. package/registry/step-showcase.json +1 -1
  274. package/registry/stepper.json +1 -1
  275. package/registry/sticky-action.json +1 -1
  276. package/registry/stuck.json +1 -1
  277. package/registry/swipe-deck.json +1 -1
  278. package/registry/switch.json +1 -1
  279. package/registry/tabs.json +1 -1
  280. package/registry/tag-input.json +1 -1
  281. package/registry/tag-selector.json +2 -2
  282. package/registry/taped-photo.json +1 -1
  283. package/registry/terminal-replay.json +1 -1
  284. package/registry/text-style.json +1 -1
  285. package/registry/theme.json +1 -1
  286. package/registry/toast.json +1 -1
  287. package/registry/toc.json +1 -1
  288. package/registry/tooltip.json +1 -1
  289. package/registry/tree-view.json +1 -1
  290. package/registry/update-prompt.json +1 -1
  291. package/registry/upload-queue.json +1 -1
  292. package/registry/usage.json +1 -1
  293. package/registry/verified-badge.json +1 -1
  294. package/registry/versus-card.json +1 -1
  295. package/registry/vertical-video.json +1 -1
  296. package/registry/video-player.json +1 -1
  297. package/registry/video-trimmer.json +1 -1
  298. package/registry/virtual.json +1 -1
  299. package/registry/wall.json +1 -1
  300. package/registry/waveform.json +1 -1
  301. /package/dist/{chunk-E4X3V7QX.js.map → chunk-GRVIZTT2.js.map} +0 -0
@@ -0,0 +1,4 @@
1
+ import type { ComponentType } from "react";
2
+ /** A named example of the @krizaka/ui registry; `defaultOpen` opens what it opens (a dialog, a menu, toasts) at load. */
3
+ declare const Example: ComponentType<{ defaultOpen?: boolean }>;
4
+ export default Example;
@@ -0,0 +1,18 @@
1
+ "use client";
2
+
3
+ // registry/examples/money-input/currencies.tsx
4
+ import { Field } from "@krizaka/ui/field";
5
+ import { MoneyInput } from "@krizaka/ui/money-input";
6
+ import { useState } from "react";
7
+ import { jsx, jsxs } from "react/jsx-runtime";
8
+ function MoneyInputCurrencies() {
9
+ const [cents, setCents] = useState(129900);
10
+ const [currency, setCurrency] = useState("CAD");
11
+ return /* @__PURE__ */ jsxs(Field.Root, { children: [
12
+ /* @__PURE__ */ jsx(Field.Label, { htmlFor: "amount", children: "Montant" }),
13
+ /* @__PURE__ */ jsx(MoneyInput, { id: "amount", value: cents, onValueChange: setCents, currency, onCurrencyChange: setCurrency, currencies: ["CAD", "USD", "EUR", "JPY"], currencyLabel: "Devise", locale: "fr-CA" })
14
+ ] });
15
+ }
16
+ export {
17
+ MoneyInputCurrencies as default
18
+ };
@@ -0,0 +1,16 @@
1
+ "use client";
2
+
3
+ import { Field } from "@krizaka/ui/field";
4
+ import { MoneyInput } from "@krizaka/ui/money-input";
5
+ import { useState } from "react";
6
+
7
+ export default function MoneyInputCurrencies() {
8
+ const [cents, setCents] = useState<number | null>(129900);
9
+ const [currency, setCurrency] = useState("CAD");
10
+ return (
11
+ <Field.Root>
12
+ <Field.Label htmlFor="amount">Montant</Field.Label>
13
+ <MoneyInput id="amount" value={cents} onValueChange={setCents} currency={currency} onCurrencyChange={setCurrency} currencies={["CAD", "USD", "EUR", "JPY"]} currencyLabel="Devise" locale="fr-CA" />
14
+ </Field.Root>
15
+ );
16
+ }
@@ -0,0 +1,4 @@
1
+ import type { ComponentType } from "react";
2
+ /** A named example of the @krizaka/ui registry; `defaultOpen` opens what it opens (a dialog, a menu, toasts) at load. */
3
+ declare const Example: ComponentType<{ defaultOpen?: boolean }>;
4
+ export default Example;
@@ -0,0 +1,18 @@
1
+ "use client";
2
+
3
+ // registry/examples/money-input/default.tsx
4
+ import { Field } from "@krizaka/ui/field";
5
+ import { MoneyInput } from "@krizaka/ui/money-input";
6
+ import { useState } from "react";
7
+ import { jsx, jsxs } from "react/jsx-runtime";
8
+ function MoneyInputDefault() {
9
+ const [cents, setCents] = useState(3900);
10
+ return /* @__PURE__ */ jsxs(Field.Root, { children: [
11
+ /* @__PURE__ */ jsx(Field.Label, { htmlFor: "price", children: "Price" }),
12
+ /* @__PURE__ */ jsx(MoneyInput, { id: "price", value: cents, onValueChange: setCents, currency: "CAD", locale: "en-CA" }),
13
+ /* @__PURE__ */ jsx(Field.Hint, { children: cents === null ? "Empty" : `${cents} cents` })
14
+ ] });
15
+ }
16
+ export {
17
+ MoneyInputDefault as default
18
+ };
@@ -0,0 +1,16 @@
1
+ "use client";
2
+
3
+ import { Field } from "@krizaka/ui/field";
4
+ import { MoneyInput } from "@krizaka/ui/money-input";
5
+ import { useState } from "react";
6
+
7
+ export default function MoneyInputDefault() {
8
+ const [cents, setCents] = useState<number | null>(3900);
9
+ return (
10
+ <Field.Root>
11
+ <Field.Label htmlFor="price">Price</Field.Label>
12
+ <MoneyInput id="price" value={cents} onValueChange={setCents} currency="CAD" locale="en-CA" />
13
+ <Field.Hint>{cents === null ? "Empty" : `${cents} cents`}</Field.Hint>
14
+ </Field.Root>
15
+ );
16
+ }
@@ -0,0 +1,4 @@
1
+ import type { ComponentType } from "react";
2
+ /** A named example of the @krizaka/ui registry; `defaultOpen` opens what it opens (a dialog, a menu, toasts) at load. */
3
+ declare const Example: ComponentType<{ defaultOpen?: boolean }>;
4
+ export default Example;
@@ -0,0 +1,11 @@
1
+ "use client";
2
+
3
+ // registry/examples/promo-code-field/applied.tsx
4
+ import { PromoCodeField } from "@krizaka/ui/promo-code-field";
5
+ import { jsx } from "react/jsx-runtime";
6
+ function PromoCodeFieldApplied() {
7
+ return /* @__PURE__ */ jsx(PromoCodeField, { label: "Code promo", applyLabel: "Appliquer", removeLabel: "Retirer", applied: { code: "FOUNDER", effect: "39 $ la premi\xE8re ann\xE9e" }, onApply: async () => ({ ok: false, message: "Code expir\xE9." }) });
8
+ }
9
+ export {
10
+ PromoCodeFieldApplied as default
11
+ };
@@ -0,0 +1,7 @@
1
+ "use client";
2
+
3
+ import { PromoCodeField } from "@krizaka/ui/promo-code-field";
4
+
5
+ export default function PromoCodeFieldApplied() {
6
+ return <PromoCodeField label="Code promo" applyLabel="Appliquer" removeLabel="Retirer" applied={{ code: "FOUNDER", effect: "39 $ la première année" }} onApply={async () => ({ ok: false, message: "Code expiré." })} />;
7
+ }
@@ -0,0 +1,4 @@
1
+ import type { ComponentType } from "react";
2
+ /** A named example of the @krizaka/ui registry; `defaultOpen` opens what it opens (a dialog, a menu, toasts) at load. */
3
+ declare const Example: ComponentType<{ defaultOpen?: boolean }>;
4
+ export default Example;
@@ -0,0 +1,19 @@
1
+ "use client";
2
+
3
+ // registry/examples/promo-code-field/default.tsx
4
+ import { PromoCodeField } from "@krizaka/ui/promo-code-field";
5
+ import { jsx } from "react/jsx-runtime";
6
+ function PromoCodeFieldDefault() {
7
+ return /* @__PURE__ */ jsx(
8
+ PromoCodeField,
9
+ {
10
+ label: "Promo code",
11
+ applyLabel: "Apply",
12
+ removeLabel: "Remove",
13
+ onApply: async (code) => code.toUpperCase() === "FOUNDER" ? { ok: true, effect: "39 $ for the first year" } : { ok: false, message: "This code does not exist." }
14
+ }
15
+ );
16
+ }
17
+ export {
18
+ PromoCodeFieldDefault as default
19
+ };
@@ -0,0 +1,14 @@
1
+ "use client";
2
+
3
+ import { PromoCodeField } from "@krizaka/ui/promo-code-field";
4
+
5
+ export default function PromoCodeFieldDefault() {
6
+ return (
7
+ <PromoCodeField
8
+ label="Promo code"
9
+ applyLabel="Apply"
10
+ removeLabel="Remove"
11
+ onApply={async (code) => (code.toUpperCase() === "FOUNDER" ? { ok: true, effect: "39 $ for the first year" } : { ok: false, message: "This code does not exist." })}
12
+ />
13
+ );
14
+ }
@@ -0,0 +1,4 @@
1
+ import type { ComponentType } from "react";
2
+ /** A named example of the @krizaka/ui registry; `defaultOpen` opens what it opens (a dialog, a menu, toasts) at load. */
3
+ declare const Example: ComponentType<{ defaultOpen?: boolean }>;
4
+ export default Example;
@@ -0,0 +1,11 @@
1
+ "use client";
2
+
3
+ // registry/examples/promo-code-field/expired.tsx
4
+ import { PromoCodeField } from "@krizaka/ui/promo-code-field";
5
+ import { jsx } from "react/jsx-runtime";
6
+ function PromoCodeFieldExpired() {
7
+ return /* @__PURE__ */ jsx(PromoCodeField, { label: "Promo code", applyLabel: "Apply", removeLabel: "Remove", onApply: async () => ({ ok: false, message: "This code expired on 31 October.", expired: true }) });
8
+ }
9
+ export {
10
+ PromoCodeFieldExpired as default
11
+ };
@@ -0,0 +1,7 @@
1
+ "use client";
2
+
3
+ import { PromoCodeField } from "@krizaka/ui/promo-code-field";
4
+
5
+ export default function PromoCodeFieldExpired() {
6
+ return <PromoCodeField label="Promo code" applyLabel="Apply" removeLabel="Remove" onApply={async () => ({ ok: false, message: "This code expired on 31 October.", expired: true })} />;
7
+ }
@@ -0,0 +1,4 @@
1
+ import type { ComponentType } from "react";
2
+ /** A named example of the @krizaka/ui registry; `defaultOpen` opens what it opens (a dialog, a menu, toasts) at load. */
3
+ declare const Example: ComponentType<{ defaultOpen?: boolean }>;
4
+ export default Example;
@@ -0,0 +1,15 @@
1
+ "use client";
2
+
3
+ // registry/examples/retro-tv/playlist-channel.tsx
4
+ import { RetroTv } from "@krizaka/ui/retro-tv";
5
+ import { jsx } from "react/jsx-runtime";
6
+ var playlist = [
7
+ { id: "film", title: "Film: the world of Krizaka", src: "https://krizaka-assets.b-cdn.net/site/brand-films/film/le-monde-de-krizaka-9x16.aa28980db3.mp4", poster: "https://krizaka-assets.b-cdn.net/site/brand-films/film/le-monde-de-krizaka-9x16.8133fbbaa5.jpg" },
8
+ { id: "film-again", title: "Film: the world of Krizaka, again", src: "https://krizaka-assets.b-cdn.net/site/brand-films/film/le-monde-de-krizaka-9x16.aa28980db3.mp4", poster: "https://krizaka-assets.b-cdn.net/site/brand-films/film/le-monde-de-krizaka-9x16.8133fbbaa5.jpg" }
9
+ ];
10
+ function RetroTvPlaylistChannel() {
11
+ return /* @__PURE__ */ jsx("div", { className: "w-full max-w-4xl", children: /* @__PURE__ */ jsx(RetroTv, { title: "Short videos", playlist, transition: "channel", channel: "CH 3 \xB7 Plateau" }) });
12
+ }
13
+ export {
14
+ RetroTvPlaylistChannel as default
15
+ };
@@ -0,0 +1,10 @@
1
+ import { RetroTv } from "@krizaka/ui/retro-tv";
2
+
3
+ const playlist = [
4
+ { id: "film", title: "Film: the world of Krizaka", src: "https://krizaka-assets.b-cdn.net/site/brand-films/film/le-monde-de-krizaka-9x16.aa28980db3.mp4", poster: "https://krizaka-assets.b-cdn.net/site/brand-films/film/le-monde-de-krizaka-9x16.8133fbbaa5.jpg" },
5
+ { id: "film-again", title: "Film: the world of Krizaka, again", src: "https://krizaka-assets.b-cdn.net/site/brand-films/film/le-monde-de-krizaka-9x16.aa28980db3.mp4", poster: "https://krizaka-assets.b-cdn.net/site/brand-films/film/le-monde-de-krizaka-9x16.8133fbbaa5.jpg" },
6
+ ];
7
+
8
+ export default function RetroTvPlaylistChannel() {
9
+ return <div className="w-full max-w-4xl"><RetroTv title="Short videos" playlist={playlist} transition="channel" channel="CH 3 · Plateau" /></div>;
10
+ }
@@ -0,0 +1,4 @@
1
+ import type { ComponentType } from "react";
2
+ /** A named example of the @krizaka/ui registry; `defaultOpen` opens what it opens (a dialog, a menu, toasts) at load. */
3
+ declare const Example: ComponentType<{ defaultOpen?: boolean }>;
4
+ export default Example;
@@ -0,0 +1,15 @@
1
+ "use client";
2
+
3
+ // registry/examples/retro-tv/playlist-crossfade.tsx
4
+ import { RetroTv } from "@krizaka/ui/retro-tv";
5
+ import { jsx } from "react/jsx-runtime";
6
+ var playlist = [
7
+ { id: "film", title: "Film: the world of Krizaka", src: "https://krizaka-assets.b-cdn.net/site/brand-films/film/le-monde-de-krizaka-9x16.aa28980db3.mp4", poster: "https://krizaka-assets.b-cdn.net/site/brand-films/film/le-monde-de-krizaka-9x16.8133fbbaa5.jpg" },
8
+ { id: "film-again", title: "Film: the world of Krizaka, again", src: "https://krizaka-assets.b-cdn.net/site/brand-films/film/le-monde-de-krizaka-9x16.aa28980db3.mp4", poster: "https://krizaka-assets.b-cdn.net/site/brand-films/film/le-monde-de-krizaka-9x16.8133fbbaa5.jpg" }
9
+ ];
10
+ function RetroTvPlaylistCrossfade() {
11
+ return /* @__PURE__ */ jsx("div", { className: "w-full max-w-4xl", children: /* @__PURE__ */ jsx(RetroTv, { title: "Short videos", playlist, transition: "crossfade", channel: "CH 3 \xB7 Plateau" }) });
12
+ }
13
+ export {
14
+ RetroTvPlaylistCrossfade as default
15
+ };
@@ -0,0 +1,10 @@
1
+ import { RetroTv } from "@krizaka/ui/retro-tv";
2
+
3
+ const playlist = [
4
+ { id: "film", title: "Film: the world of Krizaka", src: "https://krizaka-assets.b-cdn.net/site/brand-films/film/le-monde-de-krizaka-9x16.aa28980db3.mp4", poster: "https://krizaka-assets.b-cdn.net/site/brand-films/film/le-monde-de-krizaka-9x16.8133fbbaa5.jpg" },
5
+ { id: "film-again", title: "Film: the world of Krizaka, again", src: "https://krizaka-assets.b-cdn.net/site/brand-films/film/le-monde-de-krizaka-9x16.aa28980db3.mp4", poster: "https://krizaka-assets.b-cdn.net/site/brand-films/film/le-monde-de-krizaka-9x16.8133fbbaa5.jpg" },
6
+ ];
7
+
8
+ export default function RetroTvPlaylistCrossfade() {
9
+ return <div className="w-full max-w-4xl"><RetroTv title="Short videos" playlist={playlist} transition="crossfade" channel="CH 3 · Plateau" /></div>;
10
+ }
@@ -0,0 +1,4 @@
1
+ import type { ComponentType } from "react";
2
+ /** A named example of the @krizaka/ui registry; `defaultOpen` opens what it opens (a dialog, a menu, toasts) at load. */
3
+ declare const Example: ComponentType<{ defaultOpen?: boolean }>;
4
+ export default Example;
@@ -0,0 +1,15 @@
1
+ "use client";
2
+
3
+ // registry/examples/retro-tv/playlist-slide.tsx
4
+ import { RetroTv } from "@krizaka/ui/retro-tv";
5
+ import { jsx } from "react/jsx-runtime";
6
+ var playlist = [
7
+ { id: "film", title: "Film: the world of Krizaka", src: "https://krizaka-assets.b-cdn.net/site/brand-films/film/le-monde-de-krizaka-9x16.aa28980db3.mp4", poster: "https://krizaka-assets.b-cdn.net/site/brand-films/film/le-monde-de-krizaka-9x16.8133fbbaa5.jpg" },
8
+ { id: "film-again", title: "Film: the world of Krizaka, again", src: "https://krizaka-assets.b-cdn.net/site/brand-films/film/le-monde-de-krizaka-9x16.aa28980db3.mp4", poster: "https://krizaka-assets.b-cdn.net/site/brand-films/film/le-monde-de-krizaka-9x16.8133fbbaa5.jpg" }
9
+ ];
10
+ function RetroTvPlaylistSlide() {
11
+ return /* @__PURE__ */ jsx("div", { className: "w-full max-w-4xl", children: /* @__PURE__ */ jsx(RetroTv, { title: "Short videos", playlist, transition: "slide", channel: "CH 3 \xB7 Plateau" }) });
12
+ }
13
+ export {
14
+ RetroTvPlaylistSlide as default
15
+ };
@@ -0,0 +1,10 @@
1
+ import { RetroTv } from "@krizaka/ui/retro-tv";
2
+
3
+ const playlist = [
4
+ { id: "film", title: "Film: the world of Krizaka", src: "https://krizaka-assets.b-cdn.net/site/brand-films/film/le-monde-de-krizaka-9x16.aa28980db3.mp4", poster: "https://krizaka-assets.b-cdn.net/site/brand-films/film/le-monde-de-krizaka-9x16.8133fbbaa5.jpg" },
5
+ { id: "film-again", title: "Film: the world of Krizaka, again", src: "https://krizaka-assets.b-cdn.net/site/brand-films/film/le-monde-de-krizaka-9x16.aa28980db3.mp4", poster: "https://krizaka-assets.b-cdn.net/site/brand-films/film/le-monde-de-krizaka-9x16.8133fbbaa5.jpg" },
6
+ ];
7
+
8
+ export default function RetroTvPlaylistSlide() {
9
+ return <div className="w-full max-w-4xl"><RetroTv title="Short videos" playlist={playlist} transition="slide" channel="CH 3 · Plateau" /></div>;
10
+ }
@@ -0,0 +1,4 @@
1
+ import type { ComponentType } from "react";
2
+ /** A named example of the @krizaka/ui registry; `defaultOpen` opens what it opens (a dialog, a menu, toasts) at load. */
3
+ declare const Example: ComponentType<{ defaultOpen?: boolean }>;
4
+ export default Example;
@@ -0,0 +1,26 @@
1
+ "use client";
2
+
3
+ // registry/examples/shop/booking-closing-closed.tsx
4
+ import { ShopFrame } from "@krizaka/ui/shop";
5
+ import { BookingSection } from "@krizaka/ui/shop/booking";
6
+ import { demoPhoto } from "@krizaka/ui/shop/demo";
7
+ import { jsx } from "react/jsx-runtime";
8
+ function ShopBookingClosingClosed() {
9
+ return /* @__PURE__ */ jsx(ShopFrame, { children: /* @__PURE__ */ jsx(
10
+ BookingSection,
11
+ {
12
+ variant: "closing",
13
+ label: "Book",
14
+ title: "Closed today, open tomorrow at 9 am",
15
+ photo: demoPhoto("salon-chair", "The leather chair by the window"),
16
+ nextTimeLabel: "Next free time",
17
+ nextTime: { id: "t1", label: "Tomorrow 9:00 am", href: "#t1" },
18
+ href: "#book",
19
+ actionLabel: "Book",
20
+ secondary: { label: "Directions", href: "#visit" }
21
+ }
22
+ ) });
23
+ }
24
+ export {
25
+ ShopBookingClosingClosed as default
26
+ };
@@ -0,0 +1,22 @@
1
+ import { ShopFrame } from "@krizaka/ui/shop";
2
+ import { BookingSection } from "@krizaka/ui/shop/booking";
3
+ import { demoPhoto } from "@krizaka/ui/shop/demo";
4
+
5
+ // A closed day: the call shows the next opening's first free time (the host resolves it), never an empty bar.
6
+ export default function ShopBookingClosingClosed() {
7
+ return (
8
+ <ShopFrame>
9
+ <BookingSection
10
+ variant="closing"
11
+ label="Book"
12
+ title="Closed today, open tomorrow at 9 am"
13
+ photo={demoPhoto("salon-chair", "The leather chair by the window")}
14
+ nextTimeLabel="Next free time"
15
+ nextTime={{ id: "t1", label: "Tomorrow 9:00 am", href: "#t1" }}
16
+ href="#book"
17
+ actionLabel="Book"
18
+ secondary={{ label: "Directions", href: "#visit" }}
19
+ />
20
+ </ShopFrame>
21
+ );
22
+ }
@@ -0,0 +1,4 @@
1
+ import type { ComponentType } from "react";
2
+ /** A named example of the @krizaka/ui registry; `defaultOpen` opens what it opens (a dialog, a menu, toasts) at load. */
3
+ declare const Example: ComponentType<{ defaultOpen?: boolean }>;
4
+ export default Example;
@@ -0,0 +1,13 @@
1
+ "use client";
2
+
3
+ // registry/examples/shop/booking-closing-mark.tsx
4
+ import { AkinazaLogo } from "@krizaka/ui";
5
+ import { ShopFrame } from "@krizaka/ui/shop";
6
+ import { BookingSection } from "@krizaka/ui/shop/booking";
7
+ import { jsx } from "react/jsx-runtime";
8
+ function ShopBookingClosingMark() {
9
+ return /* @__PURE__ */ jsx(ShopFrame, { children: /* @__PURE__ */ jsx(BookingSection, { variant: "closing", label: "Book", title: "Ready when you are", body: "Choose a time in a few taps.", mark: /* @__PURE__ */ jsx(AkinazaLogo, { size: 96, animated: false }), href: "#book", actionLabel: "Book" }) });
10
+ }
11
+ export {
12
+ ShopBookingClosingMark as default
13
+ };
@@ -0,0 +1,12 @@
1
+ import { AkinazaLogo } from "@krizaka/ui";
2
+ import { ShopFrame } from "@krizaka/ui/shop";
3
+ import { BookingSection } from "@krizaka/ui/shop/booking";
4
+
5
+ // No photo, no free time: the shop's mark, the title and the primary action alone.
6
+ export default function ShopBookingClosingMark() {
7
+ return (
8
+ <ShopFrame>
9
+ <BookingSection variant="closing" label="Book" title="Ready when you are" body="Choose a time in a few taps." mark={<AkinazaLogo size={96} animated={false} />} href="#book" actionLabel="Book" />
10
+ </ShopFrame>
11
+ );
12
+ }
@@ -0,0 +1,4 @@
1
+ import type { ComponentType } from "react";
2
+ /** A named example of the @krizaka/ui registry; `defaultOpen` opens what it opens (a dialog, a menu, toasts) at load. */
3
+ declare const Example: ComponentType<{ defaultOpen?: boolean }>;
4
+ export default Example;
@@ -0,0 +1,27 @@
1
+ "use client";
2
+
3
+ // registry/examples/shop/booking-closing.tsx
4
+ import { ShopFrame } from "@krizaka/ui/shop";
5
+ import { BookingSection } from "@krizaka/ui/shop/booking";
6
+ import { demoPhoto } from "@krizaka/ui/shop/demo";
7
+ import { jsx } from "react/jsx-runtime";
8
+ function ShopBookingClosing() {
9
+ return /* @__PURE__ */ jsx(ShopFrame, { children: /* @__PURE__ */ jsx(
10
+ BookingSection,
11
+ {
12
+ variant: "closing",
13
+ label: "Book",
14
+ title: "Ready when you are",
15
+ body: "Choose a time at Salon C\xE8dre & Ciseaux in a few taps. Pay at the shop.",
16
+ photo: demoPhoto("salon-chair", "The leather chair by the window"),
17
+ nextTimeLabel: "Next free time",
18
+ nextTime: { id: "t1", label: "Tomorrow 9:00 am", href: "#t1" },
19
+ href: "#book",
20
+ actionLabel: "Book",
21
+ secondary: { label: "Call", href: "tel:+15145550100" }
22
+ }
23
+ ) });
24
+ }
25
+ export {
26
+ ShopBookingClosing as default
27
+ };
@@ -0,0 +1,23 @@
1
+ import { ShopFrame } from "@krizaka/ui/shop";
2
+ import { BookingSection } from "@krizaka/ui/shop/booking";
3
+ import { demoPhoto } from "@krizaka/ui/shop/demo";
4
+
5
+ // The closing call of a look: the shop's photo, the next free time, a primary « Book » and « Call ». Server-rendered: no script.
6
+ export default function ShopBookingClosing() {
7
+ return (
8
+ <ShopFrame>
9
+ <BookingSection
10
+ variant="closing"
11
+ label="Book"
12
+ title="Ready when you are"
13
+ body="Choose a time at Salon Cèdre & Ciseaux in a few taps. Pay at the shop."
14
+ photo={demoPhoto("salon-chair", "The leather chair by the window")}
15
+ nextTimeLabel="Next free time"
16
+ nextTime={{ id: "t1", label: "Tomorrow 9:00 am", href: "#t1" }}
17
+ href="#book"
18
+ actionLabel="Book"
19
+ secondary={{ label: "Call", href: "tel:+15145550100" }}
20
+ />
21
+ </ShopFrame>
22
+ );
23
+ }
@@ -0,0 +1,4 @@
1
+ import type { ComponentType } from "react";
2
+ /** A named example of the @krizaka/ui registry; `defaultOpen` opens what it opens (a dialog, a menu, toasts) at load. */
3
+ declare const Example: ComponentType<{ defaultOpen?: boolean }>;
4
+ export default Example;
@@ -0,0 +1,14 @@
1
+ "use client";
2
+
3
+ // registry/examples/shop-gallery/five.tsx
4
+ import { ShopGallery } from "@krizaka/ui/shop-gallery";
5
+ import { jsx } from "react/jsx-runtime";
6
+ var PIC = (a, b) => `data:image/svg+xml,${encodeURIComponent(`<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 600'><defs><linearGradient id='g' x1='0' y1='0' x2='1' y2='1'><stop offset='0' stop-color='${a}'/><stop offset='1' stop-color='${b}'/></linearGradient></defs><rect width='800' height='600' fill='url(#g)'/></svg>`)}`;
7
+ var ALTS = ["Two chairs by the window", "The colour bar", "A fresh cut", "Morning light on the mirrors", "Our shampoo corner", "Tools laid out", "The front desk", "A waiting sofa", "Plants by the door", "The back room", "Evening at the shop", "The street sign"];
8
+ var photos = ALTS.slice(0, 5).map((alt, i) => ({ id: `p${i}`, src: PIC(`hsl(${i * 31 % 360} 45% 32%)`, `hsl(${(i * 31 + 50) % 360} 55% 58%)`), alt }));
9
+ function ShopGalleryFive() {
10
+ return /* @__PURE__ */ jsx(ShopGallery, { label: "Photos of the salon", photos });
11
+ }
12
+ export {
13
+ ShopGalleryFive as default
14
+ };
@@ -0,0 +1,10 @@
1
+ import { ShopGallery } from "@krizaka/ui/shop-gallery";
2
+
3
+ // Drawn pictures (data URIs, no network); a shop passes its own photos, with the srcSet of the widths it holds.
4
+ const PIC = (a: string, b: string) => `data:image/svg+xml,${encodeURIComponent(`<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 600'><defs><linearGradient id='g' x1='0' y1='0' x2='1' y2='1'><stop offset='0' stop-color='${a}'/><stop offset='1' stop-color='${b}'/></linearGradient></defs><rect width='800' height='600' fill='url(#g)'/></svg>`)}`;
5
+ const ALTS = ["Two chairs by the window","The colour bar","A fresh cut","Morning light on the mirrors","Our shampoo corner","Tools laid out","The front desk","A waiting sofa","Plants by the door","The back room","Evening at the shop","The street sign"];
6
+ const photos = ALTS.slice(0, 5).map((alt, i) => ({ id: `p${i}`, src: PIC(`hsl(${(i * 31) % 360} 45% 32%)`, `hsl(${(i * 31 + 50) % 360} 55% 58%)`), alt }));
7
+
8
+ export default function ShopGalleryFive() {
9
+ return <ShopGallery label="Photos of the salon" photos={photos} />;
10
+ }
@@ -0,0 +1,4 @@
1
+ import type { ComponentType } from "react";
2
+ /** A named example of the @krizaka/ui registry; `defaultOpen` opens what it opens (a dialog, a menu, toasts) at load. */
3
+ declare const Example: ComponentType<{ defaultOpen?: boolean }>;
4
+ export default Example;
@@ -0,0 +1,14 @@
1
+ "use client";
2
+
3
+ // registry/examples/shop-gallery/three.tsx
4
+ import { ShopGallery, shopGalleryLabelsFr } from "@krizaka/ui/shop-gallery";
5
+ import { jsx } from "react/jsx-runtime";
6
+ var PIC = (a, b) => `data:image/svg+xml,${encodeURIComponent(`<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 600'><defs><linearGradient id='g' x1='0' y1='0' x2='1' y2='1'><stop offset='0' stop-color='${a}'/><stop offset='1' stop-color='${b}'/></linearGradient></defs><rect width='800' height='600' fill='url(#g)'/></svg>`)}`;
7
+ var ALTS = ["Deux fauteuils pr\xE8s de la fen\xEAtre", "Le bar \xE0 couleurs", "Une coupe fra\xEEche", "La lumi\xE8re du matin", "Le coin shampoing", "Les outils"];
8
+ var photos = ALTS.slice(0, 3).map((alt, i) => ({ id: `p${i}`, src: PIC(`hsl(${i * 31 % 360} 45% 32%)`, `hsl(${(i * 31 + 50) % 360} 55% 58%)`), alt }));
9
+ function ShopGalleryThree() {
10
+ return /* @__PURE__ */ jsx(ShopGallery, { label: "Photos du salon", photos, labels: shopGalleryLabelsFr });
11
+ }
12
+ export {
13
+ ShopGalleryThree as default
14
+ };
@@ -0,0 +1,10 @@
1
+ import { ShopGallery, shopGalleryLabelsFr } from "@krizaka/ui/shop-gallery";
2
+
3
+ // Drawn pictures (data URIs, no network); a shop passes its own photos, with the srcSet of the widths it holds.
4
+ const PIC = (a: string, b: string) => `data:image/svg+xml,${encodeURIComponent(`<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 600'><defs><linearGradient id='g' x1='0' y1='0' x2='1' y2='1'><stop offset='0' stop-color='${a}'/><stop offset='1' stop-color='${b}'/></linearGradient></defs><rect width='800' height='600' fill='url(#g)'/></svg>`)}`;
5
+ const ALTS = ["Deux fauteuils près de la fenêtre","Le bar à couleurs","Une coupe fraîche","La lumière du matin","Le coin shampoing","Les outils"];
6
+ const photos = ALTS.slice(0, 3).map((alt, i) => ({ id: `p${i}`, src: PIC(`hsl(${(i * 31) % 360} 45% 32%)`, `hsl(${(i * 31 + 50) % 360} 55% 58%)`), alt }));
7
+
8
+ export default function ShopGalleryThree() {
9
+ return <ShopGallery label="Photos du salon" photos={photos} labels={shopGalleryLabelsFr} />;
10
+ }
@@ -0,0 +1,4 @@
1
+ import type { ComponentType } from "react";
2
+ /** A named example of the @krizaka/ui registry; `defaultOpen` opens what it opens (a dialog, a menu, toasts) at load. */
3
+ declare const Example: ComponentType<{ defaultOpen?: boolean }>;
4
+ export default Example;
@@ -0,0 +1,14 @@
1
+ "use client";
2
+
3
+ // registry/examples/shop-gallery/twelve.tsx
4
+ import { ShopGallery } from "@krizaka/ui/shop-gallery";
5
+ import { jsx } from "react/jsx-runtime";
6
+ var PIC = (a, b) => `data:image/svg+xml,${encodeURIComponent(`<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 600'><defs><linearGradient id='g' x1='0' y1='0' x2='1' y2='1'><stop offset='0' stop-color='${a}'/><stop offset='1' stop-color='${b}'/></linearGradient></defs><rect width='800' height='600' fill='url(#g)'/></svg>`)}`;
7
+ var ALTS = ["Two chairs by the window", "The colour bar", "A fresh cut", "Morning light on the mirrors", "Our shampoo corner", "Tools laid out", "The front desk", "A waiting sofa", "Plants by the door", "The back room", "Evening at the shop", "The street sign"];
8
+ var photos = ALTS.slice(0, 12).map((alt, i) => ({ id: `p${i}`, src: PIC(`hsl(${i * 31 % 360} 45% 32%)`, `hsl(${(i * 31 + 50) % 360} 55% 58%)`), alt }));
9
+ function ShopGalleryTwelve() {
10
+ return /* @__PURE__ */ jsx(ShopGallery, { label: "Photos of the salon", photos });
11
+ }
12
+ export {
13
+ ShopGalleryTwelve as default
14
+ };
@@ -0,0 +1,10 @@
1
+ import { ShopGallery } from "@krizaka/ui/shop-gallery";
2
+
3
+ // Drawn pictures (data URIs, no network); a shop passes its own photos, with the srcSet of the widths it holds.
4
+ const PIC = (a: string, b: string) => `data:image/svg+xml,${encodeURIComponent(`<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 600'><defs><linearGradient id='g' x1='0' y1='0' x2='1' y2='1'><stop offset='0' stop-color='${a}'/><stop offset='1' stop-color='${b}'/></linearGradient></defs><rect width='800' height='600' fill='url(#g)'/></svg>`)}`;
5
+ const ALTS = ["Two chairs by the window","The colour bar","A fresh cut","Morning light on the mirrors","Our shampoo corner","Tools laid out","The front desk","A waiting sofa","Plants by the door","The back room","Evening at the shop","The street sign"];
6
+ const photos = ALTS.slice(0, 12).map((alt, i) => ({ id: `p${i}`, src: PIC(`hsl(${(i * 31) % 360} 45% 32%)`, `hsl(${(i * 31 + 50) % 360} 55% 58%)`), alt }));
7
+
8
+ export default function ShopGalleryTwelve() {
9
+ return <ShopGallery label="Photos of the salon" photos={photos} />;
10
+ }