@krizaka/ui 3.84.0 → 3.86.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 (78) hide show
  1. package/dist/app-header/search.js +1 -1
  2. package/dist/app-shell.js +16 -25
  3. package/dist/app-shell.js.map +1 -1
  4. package/dist/bird-plate.js +1 -1
  5. package/dist/card-grid.js +1 -1
  6. package/dist/{chunk-DJ5ZPPWL.js → chunk-7P7I5OQV.js} +2 -2
  7. package/dist/{chunk-27AWSJTK.js → chunk-EDQLPCM4.js} +2 -2
  8. package/dist/chunk-GOGEYAYK.js +66 -0
  9. package/dist/chunk-GOGEYAYK.js.map +1 -0
  10. package/dist/chunk-QHVV2JGF.js +144 -0
  11. package/dist/chunk-QHVV2JGF.js.map +1 -0
  12. package/dist/chunk-S2O4NSN5.js +72 -0
  13. package/dist/{chunk-GFRUTPGG.js.map → chunk-S2O4NSN5.js.map} +1 -1
  14. package/dist/chunk-TN5JJ6JI.js +60 -0
  15. package/dist/chunk-TN5JJ6JI.js.map +1 -0
  16. package/dist/{chunk-XVXFMVG3.js → chunk-TVLRE7S3.js} +2 -2
  17. package/dist/chunk-VYZFQE3P.js +518 -0
  18. package/dist/chunk-VYZFQE3P.js.map +1 -0
  19. package/dist/{chunk-7MQNG35Q.js → chunk-ZKKMYIDN.js} +3 -2
  20. package/dist/chunk-ZKKMYIDN.js.map +1 -0
  21. package/dist/code-block.js +2 -2
  22. package/dist/cover-hero.js +3 -3
  23. package/dist/flock.js +1 -1
  24. package/dist/grade-stamp.js +2 -2
  25. package/dist/map.d.ts +6 -6
  26. package/dist/mascot-quote.js +1 -1
  27. package/dist/media-carousel.d.ts +120 -0
  28. package/dist/media-carousel.js +131 -0
  29. package/dist/media-carousel.js.map +1 -0
  30. package/dist/media-player.d.ts +191 -0
  31. package/dist/media-player.js +14 -0
  32. package/dist/media-player.js.map +1 -0
  33. package/dist/pausable-loop.d.ts +27 -0
  34. package/dist/pausable-loop.js +68 -0
  35. package/dist/pausable-loop.js.map +1 -0
  36. package/dist/player-lightbox-ASFOSUSD.js +151 -0
  37. package/dist/player-lightbox-ASFOSUSD.js.map +1 -0
  38. package/dist/rail-nav.js +3 -3
  39. package/dist/retro-tv-playlist.d.ts +2 -0
  40. package/dist/retro-tv.js +1 -1
  41. package/dist/site-cahier.js +4 -4
  42. package/dist/taped-photo.js +2 -2
  43. package/dist/toc.js +1 -1
  44. package/dist/versus-card.js +1 -1
  45. package/dist/video-player.d.ts +3 -1
  46. package/dist/video-player.js +1 -1
  47. package/dist/wall.js +2 -2
  48. package/package.json +45 -3
  49. package/registry/app-frame.json +1 -1
  50. package/registry/examples/media-gallery/carousel-loop.d.ts +4 -0
  51. package/registry/examples/media-gallery/carousel-loop.js +26 -0
  52. package/registry/examples/media-gallery/carousel-loop.tsx +24 -0
  53. package/registry/examples/media-gallery/carousel-single.d.ts +4 -0
  54. package/registry/examples/media-gallery/carousel-single.js +12 -0
  55. package/registry/examples/media-gallery/carousel-single.tsx +12 -0
  56. package/registry/examples/media-gallery/carousel.d.ts +4 -0
  57. package/registry/examples/media-gallery/carousel.js +22 -0
  58. package/registry/examples/media-gallery/carousel.tsx +20 -0
  59. package/registry/examples/media-gallery/player-trigger.d.ts +4 -0
  60. package/registry/examples/media-gallery/player-trigger.js +20 -0
  61. package/registry/examples/media-gallery/player-trigger.tsx +19 -0
  62. package/registry/examples/media-gallery/player.d.ts +4 -0
  63. package/registry/examples/media-gallery/player.js +15 -0
  64. package/registry/examples/media-gallery/player.tsx +13 -0
  65. package/registry/index.json +16 -11
  66. package/registry/map.json +1 -1
  67. package/registry/media-gallery.json +93 -6
  68. package/registry/nav-bar.json +1 -1
  69. package/registry/rail-nav.json +1 -1
  70. package/registry/retro-tv.json +14 -0
  71. package/registry/shop.json +1 -1
  72. package/registry/site-footer.json +1 -1
  73. package/registry/video-player.json +15 -1
  74. package/dist/chunk-7MQNG35Q.js.map +0 -1
  75. package/dist/chunk-GFRUTPGG.js +0 -43
  76. /package/dist/{chunk-DJ5ZPPWL.js.map → chunk-7P7I5OQV.js.map} +0 -0
  77. /package/dist/{chunk-27AWSJTK.js.map → chunk-EDQLPCM4.js.map} +0 -0
  78. /package/dist/{chunk-XVXFMVG3.js.map → chunk-TVLRE7S3.js.map} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@krizaka/ui",
3
- "version": "3.84.0",
3
+ "version": "3.86.0",
4
4
  "description": "The Krizaka front-end platform's components: the primitives (button, card, dialog, toast, menu, field, tabs, chip, switch, slider, command palette, theme, countdown…) on the semantic --kz-* tokens, the animated marks (Krizaka, Orazaka, Yomizaka, Akinaza) and the motion signature — web and /native.",
5
5
  "keywords": [
6
6
  "krizaka",
@@ -517,6 +517,18 @@
517
517
  "types": "./dist/media-gallery.d.ts",
518
518
  "import": "./dist/media-gallery.js"
519
519
  },
520
+ "./media-player": {
521
+ "types": "./dist/media-player.d.ts",
522
+ "import": "./dist/media-player.js"
523
+ },
524
+ "./media-carousel": {
525
+ "types": "./dist/media-carousel.d.ts",
526
+ "import": "./dist/media-carousel.js"
527
+ },
528
+ "./pausable-loop": {
529
+ "types": "./dist/pausable-loop.d.ts",
530
+ "import": "./dist/pausable-loop.js"
531
+ },
520
532
  "./sticky-action": {
521
533
  "types": "./dist/sticky-action.d.ts",
522
534
  "import": "./dist/sticky-action.js"
@@ -993,7 +1005,7 @@
993
1005
  ],
994
1006
  "peerDependencies": {
995
1007
  "@krizaka/query": ">=0.3.0",
996
- "@krizaka/tailwind": ">=3.84.0",
1008
+ "@krizaka/tailwind": ">=3.86.0",
997
1009
  "@maplibre/maplibre-react-native": ">=11",
998
1010
  "@shopify/flash-list": ">=2",
999
1011
  "expo-camera": ">=16",
@@ -2175,6 +2187,36 @@
2175
2187
  "clsx"
2176
2188
  ]
2177
2189
  },
2190
+ {
2191
+ "name": "./media-player (VideoPlayer inline; the lightbox dialog is a lazy chunk, counted here)",
2192
+ "path": "dist/media-player.js",
2193
+ "limit": "29.9 kB",
2194
+ "gzip": true,
2195
+ "ignore": [
2196
+ "tailwind-variants",
2197
+ "clsx"
2198
+ ]
2199
+ },
2200
+ {
2201
+ "name": "./media-carousel",
2202
+ "path": "dist/media-carousel.js",
2203
+ "limit": "31 kB",
2204
+ "gzip": true,
2205
+ "ignore": [
2206
+ "tailwind-variants",
2207
+ "clsx"
2208
+ ]
2209
+ },
2210
+ {
2211
+ "name": "./pausable-loop",
2212
+ "path": "dist/pausable-loop.js",
2213
+ "limit": "2 kB",
2214
+ "gzip": true,
2215
+ "ignore": [
2216
+ "tailwind-variants",
2217
+ "clsx"
2218
+ ]
2219
+ },
2178
2220
  {
2179
2221
  "name": "./media-gallery",
2180
2222
  "path": "dist/media-gallery.js",
@@ -3426,7 +3468,7 @@
3426
3468
  "tailwind-variants": "^3.3.1",
3427
3469
  "zod": "^4.6.7",
3428
3470
  "@krizaka/intl": "^0.4.1",
3429
- "@krizaka/tokens": "^3.84.0",
3471
+ "@krizaka/tokens": "^3.86.0",
3430
3472
  "@krizaka/pacer": "^0.2.0"
3431
3473
  },
3432
3474
  "scripts": {
@@ -370,7 +370,7 @@
370
370
  }
371
371
  ],
372
372
  "dependencies": [
373
- "@krizaka/tokens@^3.84.0"
373
+ "@krizaka/tokens@^3.86.0"
374
374
  ],
375
375
  "registryDependencies": [
376
376
  "account-menu",
@@ -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/media-gallery/carousel-loop.tsx
4
+ import { MediaCarousel } from "@krizaka/ui/media-carousel";
5
+ import { PausableLoop } from "@krizaka/ui/pausable-loop";
6
+ import { jsx } from "react/jsx-runtime";
7
+ var POSTER = `data:image/svg+xml,${encodeURIComponent("<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 500'><rect width='800' height='500' fill='#23496f'/></svg>")}`;
8
+ var FILM = "https://krizaka-assets.b-cdn.net/org/v1/films/film/le-monde-de-krizaka-16x9.b1c7c4ee51.mp4";
9
+ function MediaCarouselLoopExample() {
10
+ return /* @__PURE__ */ jsx("div", { className: "max-w-xl", children: /* @__PURE__ */ jsx(
11
+ MediaCarousel,
12
+ {
13
+ label: "R\xE9alisations",
14
+ slides: [
15
+ { id: "a", src: POSTER, alt: "Le film de Krizaka", caption: "Fig. 1a", video: { mp4: FILM }, film: { src: FILM, title: "Film : le monde de Krizaka", playLabel: "Lire le film" } },
16
+ { id: "b", src: POSTER, alt: "Un bail lu en une minute", caption: "Fig. 1b", video: { mp4: FILM } }
17
+ ],
18
+ labels: { previous: "Pr\xE9c\xE9dent", next: "Suivant", close: "Fermer", slide: "{n} sur {total}" },
19
+ renderLoop: (video, { poster, inView }) => /* @__PURE__ */ jsx(PausableLoop, { sources: video, poster, active: inView, labels: { pause: "Mettre l\u2019animation en pause", play: "Lancer l\u2019animation" } }),
20
+ playerLabels: { play: "Lire", pause: "Pause", mute: "Couper le son", unmute: "Remettre le son", volume: "Volume", seek: "Position", fullscreen: "Plein \xE9cran", exitFullscreen: "Quitter le plein \xE9cran", loading: "Chargement", error: "Cette vid\xE9o ne peut pas \xEAtre lue.", retry: "R\xE9essayer" }
21
+ }
22
+ ) });
23
+ }
24
+ export {
25
+ MediaCarouselLoopExample as default
26
+ };
@@ -0,0 +1,24 @@
1
+ import { MediaCarousel } from "@krizaka/ui/media-carousel";
2
+ import { PausableLoop } from "@krizaka/ui/pausable-loop";
3
+
4
+ const POSTER = `data:image/svg+xml,${encodeURIComponent("<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 500'><rect width='800' height='500' fill='#23496f'/></svg>")}`;
5
+ const FILM = "https://krizaka-assets.b-cdn.net/org/v1/films/film/le-monde-de-krizaka-16x9.b1c7c4ee51.mp4";
6
+
7
+ // A French page: a silent loop previews the film (after the page's load, only on screen, with a visible pause), a press opens the
8
+ // film, and every word of the carousel and of the player is passed translated. A still under reduced motion.
9
+ export default function MediaCarouselLoopExample() {
10
+ return (
11
+ <div className="max-w-xl">
12
+ <MediaCarousel
13
+ label="Réalisations"
14
+ slides={[
15
+ { id: "a", src: POSTER, alt: "Le film de Krizaka", caption: "Fig. 1a", video: { mp4: FILM }, film: { src: FILM, title: "Film : le monde de Krizaka", playLabel: "Lire le film" } },
16
+ { id: "b", src: POSTER, alt: "Un bail lu en une minute", caption: "Fig. 1b", video: { mp4: FILM } },
17
+ ]}
18
+ labels={{ previous: "Précédent", next: "Suivant", close: "Fermer", slide: "{n} sur {total}" }}
19
+ renderLoop={(video, { poster, inView }) => <PausableLoop sources={video} poster={poster} active={inView} labels={{ pause: "Mettre l’animation en pause", play: "Lancer l’animation" }} />}
20
+ playerLabels={{ play: "Lire", pause: "Pause", mute: "Couper le son", unmute: "Remettre le son", volume: "Volume", seek: "Position", fullscreen: "Plein écran", exitFullscreen: "Quitter le plein écran", loading: "Chargement", error: "Cette vidéo ne peut pas être lue.", retry: "Réessayer" }}
21
+ />
22
+ </div>
23
+ );
24
+ }
@@ -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,12 @@
1
+ "use client";
2
+
3
+ // registry/examples/media-gallery/carousel-single.tsx
4
+ import { MediaCarousel } from "@krizaka/ui/media-carousel";
5
+ import { jsx } from "react/jsx-runtime";
6
+ var PIC = `data:image/svg+xml,${encodeURIComponent("<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 500'><rect width='800' height='500' fill='#1d3f6b'/></svg>")}`;
7
+ function MediaCarouselSingleExample() {
8
+ return /* @__PURE__ */ jsx("div", { className: "max-w-xl", children: /* @__PURE__ */ jsx(MediaCarousel, { label: "Realisation", slides: [{ id: "a", src: PIC, alt: "A lease read in a minute", caption: "Fig. 1a" }] }) });
9
+ }
10
+ export {
11
+ MediaCarouselSingleExample as default
12
+ };
@@ -0,0 +1,12 @@
1
+ import { MediaCarousel } from "@krizaka/ui/media-carousel";
2
+
3
+ const PIC = `data:image/svg+xml,${encodeURIComponent("<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 500'><rect width='800' height='500' fill='#1d3f6b'/></svg>")}`;
4
+
5
+ // One slide: the frame alone, no arrows and no « 1 / 1 ». A page can pass one or many without branching.
6
+ export default function MediaCarouselSingleExample() {
7
+ return (
8
+ <div className="max-w-xl">
9
+ <MediaCarousel label="Realisation" slides={[{ id: "a", src: PIC, alt: "A lease read in a minute", caption: "Fig. 1a" }]} />
10
+ </div>
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,22 @@
1
+ "use client";
2
+
3
+ // registry/examples/media-gallery/carousel.tsx
4
+ import { MediaCarousel } from "@krizaka/ui/media-carousel";
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 500'><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='500' fill='url(#g)'/></svg>`)}`;
7
+ function MediaCarouselExample() {
8
+ return /* @__PURE__ */ jsx("div", { className: "max-w-xl", children: /* @__PURE__ */ jsx(
9
+ MediaCarousel,
10
+ {
11
+ label: "Realisations",
12
+ slides: [
13
+ { id: "a", src: PIC("#1d3f6b", "#4d7fb8"), alt: "The brand film", caption: "Fig. 1a", film: { src: "https://krizaka-assets.b-cdn.net/org/v1/films/film/le-monde-de-krizaka-16x9.b1c7c4ee51.mp4", title: "Film: the world of Krizaka", playLabel: "Play the film" } },
14
+ { id: "b", src: PIC("#23496f", "#6b9bc9"), alt: "A lease read in a minute", caption: "Fig. 1b" },
15
+ { id: "c", src: PIC("#2a3f5c", "#7aa5d6"), alt: "A return prepared, never filed", caption: "Fig. 1c" }
16
+ ]
17
+ }
18
+ ) });
19
+ }
20
+ export {
21
+ MediaCarouselExample as default
22
+ };
@@ -0,0 +1,20 @@
1
+ import { MediaCarousel } from "@krizaka/ui/media-carousel";
2
+
3
+ // Drawn pictures (data URIs, no network); a page passes its own realisations.
4
+ const PIC = (a: string, b: string) => `data:image/svg+xml,${encodeURIComponent(`<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 500'><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='500' fill='url(#g)'/></svg>`)}`;
5
+
6
+ // Three realisations, one at a time; the first opens its film in a lightbox. Nothing advances by itself.
7
+ export default function MediaCarouselExample() {
8
+ return (
9
+ <div className="max-w-xl">
10
+ <MediaCarousel
11
+ label="Realisations"
12
+ slides={[
13
+ { id: "a", src: PIC("#1d3f6b", "#4d7fb8"), alt: "The brand film", caption: "Fig. 1a", film: { src: "https://krizaka-assets.b-cdn.net/org/v1/films/film/le-monde-de-krizaka-16x9.b1c7c4ee51.mp4", title: "Film: the world of Krizaka", playLabel: "Play the film" } },
14
+ { id: "b", src: PIC("#23496f", "#6b9bc9"), alt: "A lease read in a minute", caption: "Fig. 1b" },
15
+ { id: "c", src: PIC("#2a3f5c", "#7aa5d6"), alt: "A return prepared, never filed", caption: "Fig. 1c" },
16
+ ]}
17
+ />
18
+ </div>
19
+ );
20
+ }
@@ -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,20 @@
1
+ "use client";
2
+
3
+ // registry/examples/media-gallery/player-trigger.tsx
4
+ import { Button } from "@krizaka/ui/button";
5
+ import { MediaPlayer } from "@krizaka/ui/media-player";
6
+ import * as React from "react";
7
+ import { jsx, jsxs } from "react/jsx-runtime";
8
+ var FILM = "https://krizaka-assets.b-cdn.net/org/v1/films/film/le-monde-de-krizaka-16x9.b1c7c4ee51.mp4";
9
+ var POSTER = `data:image/svg+xml,${encodeURIComponent("<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 450'><rect width='800' height='450' fill='#1d3f6b'/></svg>")}`;
10
+ function MediaPlayerTriggerExample() {
11
+ const [open, setOpen] = React.useState(false);
12
+ return /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap gap-3", children: [
13
+ /* @__PURE__ */ jsx(MediaPlayer, { mode: "lightbox", src: FILM, poster: POSTER, title: "Film: the world of Krizaka", trigger: (openIt) => /* @__PURE__ */ jsx(Button, { onClick: openIt, children: "Watch the film" }) }),
14
+ /* @__PURE__ */ jsx(Button, { variant: "secondary", onClick: () => setOpen(true), children: "Open from outside" }),
15
+ /* @__PURE__ */ jsx(MediaPlayer, { mode: "lightbox", ratio: "19 / 16", src: FILM, poster: POSTER, title: "Film: the engine take", trigger: null, open, onOpenChange: setOpen })
16
+ ] });
17
+ }
18
+ export {
19
+ MediaPlayerTriggerExample as default
20
+ };
@@ -0,0 +1,19 @@
1
+ import { Button } from "@krizaka/ui/button";
2
+ import { MediaPlayer } from "@krizaka/ui/media-player";
3
+ import * as React from "react";
4
+
5
+ const FILM = "https://krizaka-assets.b-cdn.net/org/v1/films/film/le-monde-de-krizaka-16x9.b1c7c4ee51.mp4";
6
+ const POSTER = `data:image/svg+xml,${encodeURIComponent("<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 450'><rect width='800' height='450' fill='#1d3f6b'/></svg>")}`;
7
+
8
+ // The page's own button opens the lightbox (`trigger`); a second one drives it from outside (`open`), on a free 19 / 16 frame.
9
+ // Under reduced motion the dialog opens on the poster and waits for the press on play.
10
+ export default function MediaPlayerTriggerExample() {
11
+ const [open, setOpen] = React.useState(false);
12
+ return (
13
+ <div className="flex flex-wrap gap-3">
14
+ <MediaPlayer mode="lightbox" src={FILM} poster={POSTER} title="Film: the world of Krizaka" trigger={(openIt) => <Button onClick={openIt}>Watch the film</Button>} />
15
+ <Button variant="secondary" onClick={() => setOpen(true)}>Open from outside</Button>
16
+ <MediaPlayer mode="lightbox" ratio="19 / 16" src={FILM} poster={POSTER} title="Film: the engine take" trigger={null} open={open} onOpenChange={setOpen} />
17
+ </div>
18
+ );
19
+ }
@@ -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/media-gallery/player.tsx
4
+ import { MediaPlayer } from "@krizaka/ui/media-player";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
+ var POSTER = `data:image/svg+xml,${encodeURIComponent("<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 450'><rect width='800' height='450' fill='#1d3f6b'/></svg>")}`;
7
+ function MediaPlayerExample() {
8
+ return /* @__PURE__ */ jsxs("div", { className: "grid max-w-2xl grid-cols-[2fr_1fr] items-start gap-3", children: [
9
+ /* @__PURE__ */ jsx(MediaPlayer, { mode: "lightbox", src: "https://krizaka-assets.b-cdn.net/org/v1/films/film/le-monde-de-krizaka-16x9.b1c7c4ee51.mp4", poster: POSTER, title: "Film: the world of Krizaka", playLabel: "Play the film", caption: "Fig. 1" }),
10
+ /* @__PURE__ */ jsx(MediaPlayer, { mode: "lightbox", vertical: true, src: "https://krizaka-assets.b-cdn.net/org/v1/films/film/le-monde-de-krizaka-9x16.aa28980db3.mp4", poster: POSTER, title: "Film: the world of Krizaka, vertical", playLabel: "Play the vertical film" })
11
+ ] });
12
+ }
13
+ export {
14
+ MediaPlayerExample as default
15
+ };
@@ -0,0 +1,13 @@
1
+ import { MediaPlayer } from "@krizaka/ui/media-player";
2
+
3
+ const POSTER = `data:image/svg+xml,${encodeURIComponent("<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 450'><rect width='800' height='450' fill='#1d3f6b'/></svg>")}`;
4
+
5
+ // One player, three ways: a lightbox (a press opens it, with sound), inline, and vertical 9:16 in a lightbox.
6
+ export default function MediaPlayerExample() {
7
+ return (
8
+ <div className="grid max-w-2xl grid-cols-[2fr_1fr] items-start gap-3">
9
+ <MediaPlayer mode="lightbox" src="https://krizaka-assets.b-cdn.net/org/v1/films/film/le-monde-de-krizaka-16x9.b1c7c4ee51.mp4" poster={POSTER} title="Film: the world of Krizaka" playLabel="Play the film" caption="Fig. 1" />
10
+ <MediaPlayer mode="lightbox" vertical src="https://krizaka-assets.b-cdn.net/org/v1/films/film/le-monde-de-krizaka-9x16.aa28980db3.mp4" poster={POSTER} title="Film: the world of Krizaka, vertical" playLabel="Play the vertical film" />
11
+ </div>
12
+ );
13
+ }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@krizaka/ui",
3
- "version": "3.84.0",
3
+ "version": "3.86.0",
4
4
  "templatePurposes": {
5
5
  "convince": {
6
6
  "title": "Convince",
@@ -1004,7 +1004,7 @@
1004
1004
  "native": 0
1005
1005
  },
1006
1006
  "dependencies": [
1007
- "@krizaka/tokens@^3.84.0"
1007
+ "@krizaka/tokens@^3.86.0"
1008
1008
  ],
1009
1009
  "registryDependencies": [
1010
1010
  "account-menu",
@@ -4008,7 +4008,7 @@
4008
4008
  "native": 2
4009
4009
  },
4010
4010
  "dependencies": [
4011
- "@krizaka/tokens@^3.84.0",
4011
+ "@krizaka/tokens@^3.86.0",
4012
4012
  "@protomaps/basemaps@5.7.2",
4013
4013
  "tailwind-variants@^3.3.1"
4014
4014
  ],
@@ -4268,8 +4268,8 @@
4268
4268
  "name": "media-gallery",
4269
4269
  "type": "primitive",
4270
4270
  "title": "Media gallery",
4271
- "summary": "A shop's own photos and loops in tiles — the first featured, loops playing muted while their tile is on screen (a still under reduced motion), a caption on the foot of a tile.",
4272
- "description": "A shop's own photos and loops in tiles — the first featured, loops playing muted while their tile is on screen (a still under reduced motion), a caption on the foot of a tile.",
4271
+ "summary": "Also `MediaCarousel` (3 to 4 realisations, one at a time), `MediaPlayer` (the one video frame: inline, lightbox, 9:16) and `PausableLoop` (a silent loop with a visible pause, its own entry). A shop's own photos and loops in tiles, the first featured, a caption on the foot of a tile.",
4272
+ "description": "Also `MediaCarousel` (3 to 4 realisations, one at a time), `MediaPlayer` (the one video frame: inline, lightbox, 9:16) and `PausableLoop` (a silent loop with a visible pause, its own entry). A shop's own photos and loops in tiles, the first featured, a caption on the foot of a tile.",
4273
4273
  "status": "beta",
4274
4274
  "category": "media",
4275
4275
  "platforms": "web",
@@ -4286,13 +4286,18 @@
4286
4286
  }
4287
4287
  },
4288
4288
  "examples": {
4289
- "web": 1,
4289
+ "web": 6,
4290
4290
  "native": 0
4291
4291
  },
4292
4292
  "dependencies": [
4293
4293
  "tailwind-variants@^3.3.1"
4294
4294
  ],
4295
- "registryDependencies": []
4295
+ "registryDependencies": [
4296
+ "button",
4297
+ "cn",
4298
+ "dialog",
4299
+ "video-player"
4300
+ ]
4296
4301
  },
4297
4302
  {
4298
4303
  "name": "media-picker",
@@ -4416,7 +4421,7 @@
4416
4421
  "native": 0
4417
4422
  },
4418
4423
  "dependencies": [
4419
- "@krizaka/tokens@^3.84.0",
4424
+ "@krizaka/tokens@^3.86.0",
4420
4425
  "radix-ui@^1.8.1",
4421
4426
  "tailwind-variants@^3.3.1"
4422
4427
  ],
@@ -5284,7 +5289,7 @@
5284
5289
  "native": 0
5285
5290
  },
5286
5291
  "dependencies": [
5287
- "@krizaka/tokens@^3.84.0",
5292
+ "@krizaka/tokens@^3.86.0",
5288
5293
  "radix-ui@^1.8.1",
5289
5294
  "tailwind-variants@^3.3.1"
5290
5295
  ],
@@ -5731,7 +5736,7 @@
5731
5736
  "native": 0
5732
5737
  },
5733
5738
  "dependencies": [
5734
- "@krizaka/tokens@^3.84.0",
5739
+ "@krizaka/tokens@^3.86.0",
5735
5740
  "zod@^4.6.7"
5736
5741
  ],
5737
5742
  "registryDependencies": [
@@ -5951,7 +5956,7 @@
5951
5956
  "native": 0
5952
5957
  },
5953
5958
  "dependencies": [
5954
- "@krizaka/tokens@^3.84.0",
5959
+ "@krizaka/tokens@^3.86.0",
5955
5960
  "radix-ui@^1.8.1",
5956
5961
  "tailwind-variants@^3.3.1"
5957
5962
  ],
package/registry/map.json CHANGED
@@ -1158,7 +1158,7 @@
1158
1158
  }
1159
1159
  ],
1160
1160
  "dependencies": [
1161
- "@krizaka/tokens@^3.84.0",
1161
+ "@krizaka/tokens@^3.86.0",
1162
1162
  "@protomaps/basemaps@5.7.2",
1163
1163
  "tailwind-variants@^3.3.1"
1164
1164
  ],