@povio/ui 5.0.0-rc.10 → 5.0.0-rc.12

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.
@@ -0,0 +1,21 @@
1
+ import { ComponentArtboard } from "./ComponentGallery-D4U5hXZL.js";
2
+ import { c } from "react/compiler-runtime";
3
+ import { jsx } from "react/jsx-runtime";
4
+ //#region src/app-canvas/CanvasComponentsFrame.tsx
5
+ /** The document of a Components artboard: one gallery section, themed by the configuration the canvas sends. */
6
+ function CanvasComponentsFrame(t0) {
7
+ const $ = c(2);
8
+ const { group } = t0;
9
+ let t1;
10
+ if ($[0] !== group) {
11
+ t1 = /* @__PURE__ */ jsx("main", {
12
+ className: "studio-sample povio-canvas-components-frame",
13
+ children: /* @__PURE__ */ jsx(ComponentArtboard, { group })
14
+ });
15
+ $[0] = group;
16
+ $[1] = t1;
17
+ } else t1 = $[1];
18
+ return t1;
19
+ }
20
+ //#endregion
21
+ export { CanvasComponentsFrame as default };
@@ -1,5 +1,5 @@
1
1
  import { t as createLucideIcon } from "./createLucideIcon-LcezOE4z.js";
2
- import { i as inspectTokens } from "./UIConfigurator-CTlq-hrG.js";
2
+ import { o as inspectTokens } from "./UIConfigurator-CBU0G6rb.js";
3
3
  import { n as ArrowLeft } from "./DropdownMenu-5jmtgLXd.js";
4
4
  import { i as ArrowRight } from "./DropdownMenuDesktop-Cl9gZVq0.js";
5
5
  import { n as Italic, r as Bold, t as Underline } from "./underline-66hmELxa.js";
@@ -49,6 +49,7 @@ import { t as Toast } from "./Toast-DtG3pA61.js";
49
49
  import { t as Table } from "./Table-BN2_J_Ne.js";
50
50
  import { Link } from "./components/link.js";
51
51
  import { Badge } from "./components/badge.js";
52
+ import { n as galleryGroups } from "./groups-oQmSeqXn.js";
52
53
  import { useCallback, useEffect, useLayoutEffect, useRef, useState } from "react";
53
54
  import { c } from "react/compiler-runtime";
54
55
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -526,17 +527,6 @@ function InspectLabel(t0) {
526
527
  }
527
528
  //#endregion
528
529
  //#region src/configurator/gallery/demos.tsx
529
- const galleryGroups = [
530
- "Buttons",
531
- "Inputs",
532
- "Selection",
533
- "Files",
534
- "Feedback",
535
- "Text",
536
- "Navigation",
537
- "Overlays",
538
- "Data"
539
- ];
540
530
  const noop = () => {};
541
531
  const menuItems = [
542
532
  {
@@ -2249,7 +2239,7 @@ function DashboardScreen() {
2249
2239
  if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
2250
2240
  t3 = /* @__PURE__ */ jsx("div", {
2251
2241
  className: "studio-layout-stats",
2252
- children: stats.map(_temp)
2242
+ children: stats.map(_temp$1)
2253
2243
  });
2254
2244
  t4 = /* @__PURE__ */ jsx(Table, {
2255
2245
  items: projects,
@@ -2295,7 +2285,7 @@ function DashboardScreen() {
2295
2285
  return t6;
2296
2286
  }
2297
2287
  /** A sign-in screen: centered form with email, password, remember me, a primary and a secondary action. */
2298
- function _temp(t0) {
2288
+ function _temp$1(t0) {
2299
2289
  const { label, value, trend } = t0;
2300
2290
  return /* @__PURE__ */ jsxs("div", {
2301
2291
  className: "studio-layout-stat",
@@ -3400,6 +3390,77 @@ function ZoomedDemo(t0) {
3400
3390
  } else t10 = $[21];
3401
3391
  return t10;
3402
3392
  }
3393
+ /** One gallery section on its own, live and uninspected, for an App Canvas artboard. */
3394
+ function ComponentArtboard(t0) {
3395
+ const $ = c(13);
3396
+ const { group } = t0;
3397
+ if (group === "Layouts") {
3398
+ let t1;
3399
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
3400
+ t1 = /* @__PURE__ */ jsx(LayoutPreview, {});
3401
+ $[0] = t1;
3402
+ } else t1 = $[0];
3403
+ return t1;
3404
+ }
3405
+ let t1;
3406
+ let t2;
3407
+ let t3;
3408
+ let t4;
3409
+ if ($[1] !== group) {
3410
+ const items = demos.filter((demo) => demo.group === group);
3411
+ t3 = "studio-gallery-group";
3412
+ t4 = group;
3413
+ t1 = "studio-gallery-grid";
3414
+ t2 = items.map(_temp);
3415
+ $[1] = group;
3416
+ $[2] = t1;
3417
+ $[3] = t2;
3418
+ $[4] = t3;
3419
+ $[5] = t4;
3420
+ } else {
3421
+ t1 = $[2];
3422
+ t2 = $[3];
3423
+ t3 = $[4];
3424
+ t4 = $[5];
3425
+ }
3426
+ let t5;
3427
+ if ($[6] !== t1 || $[7] !== t2) {
3428
+ t5 = /* @__PURE__ */ jsx("div", {
3429
+ className: t1,
3430
+ children: t2
3431
+ });
3432
+ $[6] = t1;
3433
+ $[7] = t2;
3434
+ $[8] = t5;
3435
+ } else t5 = $[8];
3436
+ let t6;
3437
+ if ($[9] !== t3 || $[10] !== t4 || $[11] !== t5) {
3438
+ t6 = /* @__PURE__ */ jsx("section", {
3439
+ className: t3,
3440
+ "aria-label": t4,
3441
+ children: t5
3442
+ });
3443
+ $[9] = t3;
3444
+ $[10] = t4;
3445
+ $[11] = t5;
3446
+ $[12] = t6;
3447
+ } else t6 = $[12];
3448
+ return t6;
3449
+ }
3450
+ function _temp(demo_0) {
3451
+ return /* @__PURE__ */ jsxs("div", {
3452
+ className: `studio-gallery-card ${demo_0.wide ? "is-wide" : ""}`,
3453
+ children: [/* @__PURE__ */ jsx("span", {
3454
+ className: "studio-gallery-card-title",
3455
+ children: demo_0.title
3456
+ }), /* @__PURE__ */ jsx(PortalHere, { children: (portalRef) => /* @__PURE__ */ jsx("div", {
3457
+ ref: portalRef,
3458
+ className: "studio-gallery-demo",
3459
+ "data-inspector-name": demo_0.title,
3460
+ children: demo_0.render()
3461
+ }) })]
3462
+ }, demo_0.id);
3463
+ }
3403
3464
  /** Every Povio UI component in one scrollable list; clicking a card zooms it into the token inspector. */
3404
3465
  function ComponentGallery(t0) {
3405
3466
  const $ = c(14);
@@ -3510,4 +3571,4 @@ function ComponentGallery(t0) {
3510
3571
  return t7;
3511
3572
  }
3512
3573
  //#endregion
3513
- export { ComponentGallery as default };
3574
+ export { ComponentArtboard, ComponentGallery as default };