@povio/ui 5.0.0-rc.13 → 5.0.0-rc.15

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 (82) hide show
  1. package/README.md +8 -0
  2. package/dist/{AppCanvasPage-DtWEvs_Y.js → AppCanvasPage-BnyCHO3I.js} +152 -462
  3. package/dist/{AppCanvasPage-BZ2mrKY4.d.ts → AppCanvasPage-U9SxNwjS.d.ts} +1 -1
  4. package/dist/{BottomSheet-BXLE3161.js → BottomSheet-AqYVSMK9.js} +1 -75
  5. package/dist/BottomSheetHeader-Be6Elvs2.js +79 -0
  6. package/dist/{Calendar-DRHruqr_.js → Calendar-1p3VjSED.js} +3 -3
  7. package/dist/{CanvasComponentsFrame-CbgJJv-3.js → CanvasComponentsFrame-Dp0oDDoH.js} +6 -6
  8. package/dist/{UIConfigurator-DekPXjv9.js → CanvasInspector-DdP3mHUY.js} +1707 -522
  9. package/dist/{ComponentGallery-COqEqqN6.js → ComponentGallery-C_rXFvUY.js} +250 -1797
  10. package/dist/{DatePicker-xDEqzNJv.js → DatePicker-CAzuZRmd.js} +6 -6
  11. package/dist/{DatePickerInput-B0fEeCOf.js → DatePickerInput-BeQOVCk0.js} +4 -3
  12. package/dist/{DateRangePicker-DxuVhRaf.js → DateRangePicker-X3mBhfmL.js} +5 -5
  13. package/dist/{DateTimePicker-4N1Pka07.js → DateTimePicker-EtmGtoRe.js} +6 -6
  14. package/dist/{InputItem-Cv19Hwnx.js → InputItem-yC5oMyN-.js} +7 -7
  15. package/dist/{Inputs-D1aE_J9f.js → Inputs-Bd2nRNqk.js} +1 -1
  16. package/dist/{NumberRangeInput-Bzfe-RlV.js → NumberRangeInput-TkPXiWV3.js} +2 -2
  17. package/dist/{RichTextEditor-Bd7F5D8f.js → RichTextEditor-DiaPcBUM.js} +110 -32
  18. package/dist/{Select-CgIhoWgk.js → Select-tNlFSbAC.js} +5 -5
  19. package/dist/{Table-piX1SWvN.js → Table-CgG02oHQ.js} +1 -1
  20. package/dist/{TextArea-uPffb457.js → TextArea-DuvFUjts.js} +1 -1
  21. package/dist/{TimePicker-DN-i98z5.js → TimePicker-CBkiE-Yq.js} +5 -4
  22. package/dist/{TooltipWrapper-CDHFaUKZ.js → TooltipWrapper-CSXs5-E3.js} +2 -2
  23. package/dist/components/autocomplete.js +3 -3
  24. package/dist/components/bottom-sheet.js +1 -1
  25. package/dist/components/date-picker.js +1 -1
  26. package/dist/components/date-range-picker.js +1 -1
  27. package/dist/components/date-time-picker.js +1 -1
  28. package/dist/components/input.js +3 -3
  29. package/dist/components/number-field.js +3 -3
  30. package/dist/components/number-range-input.js +1 -1
  31. package/dist/components/query-autocomplete.js +1 -1
  32. package/dist/components/query-select.js +2 -2
  33. package/dist/components/select.js +1 -1
  34. package/dist/components/text-area.js +1 -1
  35. package/dist/components/time-picker.js +1 -1
  36. package/dist/config/app-canvas-tanstack.d.ts +1 -1
  37. package/dist/config/app-canvas-tanstack.js +1 -1
  38. package/dist/config/app-canvas.d.ts +1 -1
  39. package/dist/config/app-canvas.js +1 -1
  40. package/dist/config/ui-configurator-vite.d.ts +2 -0
  41. package/dist/config/ui-configurator-vite.js +234 -8
  42. package/dist/config/ui-configurator.d.ts +21 -2
  43. package/dist/config/ui-configurator.js +121 -3
  44. package/dist/{datePickerValue.utils-QWR2q5Vv.js → datePickerValue.utils-BDB6KM8q.js} +1 -1
  45. package/dist/demos-DIwj5vc0.js +2011 -0
  46. package/dist/index.js +7 -7
  47. package/dist/{logger-CqZjM-sn.js → logger-CW24po62.js} +10 -1
  48. package/dist/rhf/date-picker.js +1 -1
  49. package/dist/rhf/date-range-picker.js +1 -1
  50. package/dist/rhf/date-time-picker.js +1 -1
  51. package/dist/rhf/number-range-input.js +1 -1
  52. package/dist/rhf/rich-text-editor.js +1 -1
  53. package/dist/rhf/select.js +1 -1
  54. package/dist/rhf/text-area.js +1 -1
  55. package/dist/rhf/time-picker.js +1 -1
  56. package/dist/rhf.js +7 -7
  57. package/dist/rich-text-editor.js +1 -1
  58. package/dist/{staticDateTimeSegments-BWea3HAt.js → staticDateTimeSegments-Bs1_N5MR.js} +1 -1
  59. package/dist/{staticSelect.utils-BfTCi26B.js → staticSelect.utils-BgdYv2vP.js} +5 -4
  60. package/dist/styles/app-canvas.css +30 -24
  61. package/dist/styles/configurator.css +544 -34
  62. package/dist/tanstack/date-picker.js +1 -1
  63. package/dist/tanstack/date-range-picker.js +1 -1
  64. package/dist/tanstack/date-time-picker.js +1 -1
  65. package/dist/tanstack/form.js +1 -1
  66. package/dist/tanstack/inputs.js +1 -1
  67. package/dist/tanstack/number-range-input.js +1 -1
  68. package/dist/tanstack/rich-text-editor.js +1 -1
  69. package/dist/tanstack/select.js +1 -1
  70. package/dist/tanstack/table.js +2 -2
  71. package/dist/tanstack/text-area.js +1 -1
  72. package/dist/tanstack/time-picker.js +1 -1
  73. package/dist/tanstack.js +15 -15
  74. package/dist/token-classes-BqLWiy6O.js +245 -0
  75. package/dist/{useFieldAccessibility-B-bjtrNw.js → useFieldAccessibility-DnCdz938.js} +2 -1
  76. package/dist/{useFormAutosave-pmh35PXp.js → useFormAutosave-CxqZAJAB.js} +1 -1
  77. package/dist/{useStaticInputHandoff-B7DEm75m.js → useStaticInputHandoff-DKsxpVck.js} +2 -1
  78. package/dist/{useTableColumnConfig-CNJ_ZvIN.js → useTableColumnConfig-BnbKElno.js} +1 -1
  79. package/dist/utils/logger.js +1 -1
  80. package/package.json +1 -1
  81. package/dist/groups-oQmSeqXn.js +0 -18
  82. package/dist/underline-66hmELxa.js +0 -81
@@ -67,7 +67,7 @@ interface AppCanvasProps {
67
67
  repositoryStorage?: boolean;
68
68
  frameUrl?: (page: CanvasPage) => string;
69
69
  /** URL of a frame that renders one component gallery section; enables the Components artboards. */
70
- componentsHref?: (group: string) => string;
70
+ componentsHref?: (component: string) => string;
71
71
  }
72
72
  /** Live route artboards. The camera transforms only the canvas, never the iframe viewport width. */
73
73
  declare function AppCanvas({ router, examples, exclude, excludePaths, breakpoints, storageKey, frameUrl, componentsHref, repositoryStorage }: AppCanvasProps): import("react").JSX.Element;
@@ -1,88 +1,14 @@
1
1
  import { t as UIConfig } from "./uiConfig.context-BS3r_kTS.js";
2
- import { t as X } from "./x-B6vfz8Ps.js";
3
2
  import { t as clsx } from "./clsx-CnD0nOiA.js";
4
- import { t as IconSlot } from "./IconSlot-DSK7qNxc.js";
5
3
  import { n as $f2ff30fde7b014be$export$3ddf2d174ce01153, t as $f2ff30fde7b014be$export$2e1e1122cf0cba88 } from "./Dialog-CKLkS00H.js";
6
- import { n as $7705c033048f6da7$export$353f5b6fc5456de1 } from "./Button-D6KlWSFL.js";
7
4
  import { n as $8b8d26808cb8cb53$export$8948f78d83984c69, t as $8b8d26808cb8cb53$export$2b77a92f1a5ad772 } from "./Modal-w60dVQcb.js";
8
- import { t as Typography } from "./Typography-LU4z2pR1.js";
9
5
  import { a as $a8ea2faf2ebe4d2f$re_export$useResizeObserver, o as $a8ea2faf2ebe4d2f$re_export$useViewportSize } from "./import-BE0r63d8.js";
10
- import "./i18n-CX2EjhJI.js";
11
6
  import { n as useStateAndRef, t as DomUtils } from "./dom.utils-D1AopHx9.js";
7
+ import { t as BottomSheetHeader } from "./BottomSheetHeader-Be6Elvs2.js";
12
8
  import { useEffect, useMemo, useRef, useState } from "react";
13
9
  import { c } from "react/compiler-runtime";
14
10
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
15
- import { useTranslation } from "react-i18next";
16
11
  import { AnimatePresence, animate, motion, useDragControls, useMotionValue } from "motion/react";
17
- //#region src/components/overlays/BottomSheet/BottomSheetHeader.tsx
18
- const BottomSheetHeader = (t0) => {
19
- const $ = c(17);
20
- const { label, dragControls, isDismissable, hideThumb, hideHeader, headerTypography, onClose } = t0;
21
- const { t } = useTranslation("ui");
22
- const t1 = !isDismissable && "pt-list-height-title-top";
23
- let t2;
24
- if ($[0] !== t1) {
25
- t2 = clsx("pb-list-height-title-bottom", t1);
26
- $[0] = t1;
27
- $[1] = t2;
28
- } else t2 = $[1];
29
- let t3;
30
- if ($[2] !== dragControls || $[3] !== hideThumb || $[4] !== isDismissable) {
31
- t3 = isDismissable && !hideThumb && /* @__PURE__ */ jsx("div", {
32
- className: "flex shrink-0 cursor-grab touch-none justify-center px-list-side-title pt-list-height-title-top pb-2.5",
33
- onPointerDown: (e) => {
34
- e.preventDefault();
35
- dragControls?.start(e);
36
- },
37
- "aria-hidden": true,
38
- children: /* @__PURE__ */ jsx("div", { className: "h-1 w-16 shrink-0 rounded-full bg-surface-default-popover" })
39
- });
40
- $[2] = dragControls;
41
- $[3] = hideThumb;
42
- $[4] = isDismissable;
43
- $[5] = t3;
44
- } else t3 = $[5];
45
- let t4;
46
- if ($[6] !== headerTypography || $[7] !== hideHeader || $[8] !== isDismissable || $[9] !== label || $[10] !== onClose || $[11] !== t) {
47
- t4 = !hideHeader && /* @__PURE__ */ jsxs("div", {
48
- className: "flex justify-between px-list-side-title",
49
- children: [/* @__PURE__ */ jsx(Typography, {
50
- size: "small",
51
- className: "font-bold",
52
- ...headerTypography,
53
- children: label
54
- }), onClose && isDismissable && /* @__PURE__ */ jsx($7705c033048f6da7$export$353f5b6fc5456de1, {
55
- onPress: onClose,
56
- "aria-label": t(_temp),
57
- className: "-m-2 shrink-0 p-2 text-surface-default-foreground focus-visible:outline-interactive-ring",
58
- children: /* @__PURE__ */ jsx(IconSlot, { icon: X })
59
- })]
60
- });
61
- $[6] = headerTypography;
62
- $[7] = hideHeader;
63
- $[8] = isDismissable;
64
- $[9] = label;
65
- $[10] = onClose;
66
- $[11] = t;
67
- $[12] = t4;
68
- } else t4 = $[12];
69
- let t5;
70
- if ($[13] !== t2 || $[14] !== t3 || $[15] !== t4) {
71
- t5 = /* @__PURE__ */ jsxs("div", {
72
- className: t2,
73
- children: [t3, t4]
74
- });
75
- $[13] = t2;
76
- $[14] = t3;
77
- $[15] = t4;
78
- $[16] = t5;
79
- } else t5 = $[16];
80
- return t5;
81
- };
82
- function _temp($) {
83
- return $.ui.closeAlt;
84
- }
85
- //#endregion
86
12
  //#region src/components/overlays/BottomSheet/BottomSheet.tsx
87
13
  const MotionModal = motion.create($8b8d26808cb8cb53$export$2b77a92f1a5ad772);
88
14
  const MotionModalOverlay = motion.create($8b8d26808cb8cb53$export$8948f78d83984c69);
@@ -0,0 +1,79 @@
1
+ import { t as X } from "./x-B6vfz8Ps.js";
2
+ import { t as clsx } from "./clsx-CnD0nOiA.js";
3
+ import { t as IconSlot } from "./IconSlot-DSK7qNxc.js";
4
+ import { n as $7705c033048f6da7$export$353f5b6fc5456de1 } from "./Button-D6KlWSFL.js";
5
+ import { t as Typography } from "./Typography-LU4z2pR1.js";
6
+ import "./i18n-CX2EjhJI.js";
7
+ import { c } from "react/compiler-runtime";
8
+ import { jsx, jsxs } from "react/jsx-runtime";
9
+ import { useTranslation } from "react-i18next";
10
+ //#region src/components/overlays/BottomSheet/BottomSheetHeader.tsx
11
+ const BottomSheetHeader = (t0) => {
12
+ const $ = c(17);
13
+ const { label, dragControls, isDismissable, hideThumb, hideHeader, headerTypography, onClose } = t0;
14
+ const { t } = useTranslation("ui");
15
+ const t1 = !isDismissable && "pt-list-height-title-top";
16
+ let t2;
17
+ if ($[0] !== t1) {
18
+ t2 = clsx("pb-list-height-title-bottom", t1);
19
+ $[0] = t1;
20
+ $[1] = t2;
21
+ } else t2 = $[1];
22
+ let t3;
23
+ if ($[2] !== dragControls || $[3] !== hideThumb || $[4] !== isDismissable) {
24
+ t3 = isDismissable && !hideThumb && /* @__PURE__ */ jsx("div", {
25
+ className: "flex shrink-0 cursor-grab touch-none justify-center px-list-side-title pt-list-height-title-top pb-2.5",
26
+ onPointerDown: (e) => {
27
+ e.preventDefault();
28
+ dragControls?.start(e);
29
+ },
30
+ "aria-hidden": true,
31
+ children: /* @__PURE__ */ jsx("div", { className: "h-1 w-16 shrink-0 rounded-full bg-surface-default-popover" })
32
+ });
33
+ $[2] = dragControls;
34
+ $[3] = hideThumb;
35
+ $[4] = isDismissable;
36
+ $[5] = t3;
37
+ } else t3 = $[5];
38
+ let t4;
39
+ if ($[6] !== headerTypography || $[7] !== hideHeader || $[8] !== isDismissable || $[9] !== label || $[10] !== onClose || $[11] !== t) {
40
+ t4 = !hideHeader && /* @__PURE__ */ jsxs("div", {
41
+ className: "flex justify-between px-list-side-title",
42
+ children: [/* @__PURE__ */ jsx(Typography, {
43
+ size: "small",
44
+ className: "font-bold",
45
+ ...headerTypography,
46
+ children: label
47
+ }), onClose && isDismissable && /* @__PURE__ */ jsx($7705c033048f6da7$export$353f5b6fc5456de1, {
48
+ onPress: onClose,
49
+ "aria-label": t(_temp),
50
+ className: "-m-2 shrink-0 p-2 text-surface-default-foreground focus-visible:outline-interactive-ring",
51
+ children: /* @__PURE__ */ jsx(IconSlot, { icon: X })
52
+ })]
53
+ });
54
+ $[6] = headerTypography;
55
+ $[7] = hideHeader;
56
+ $[8] = isDismissable;
57
+ $[9] = label;
58
+ $[10] = onClose;
59
+ $[11] = t;
60
+ $[12] = t4;
61
+ } else t4 = $[12];
62
+ let t5;
63
+ if ($[13] !== t2 || $[14] !== t3 || $[15] !== t4) {
64
+ t5 = /* @__PURE__ */ jsxs("div", {
65
+ className: t2,
66
+ children: [t3, t4]
67
+ });
68
+ $[13] = t2;
69
+ $[14] = t3;
70
+ $[15] = t4;
71
+ $[16] = t5;
72
+ } else t5 = $[16];
73
+ return t5;
74
+ };
75
+ function _temp($) {
76
+ return $.ui.closeAlt;
77
+ }
78
+ //#endregion
79
+ export { BottomSheetHeader as t };
@@ -2,7 +2,7 @@ import { t as ChevronDown } from "./chevron-down-B4Pr8bD3.js";
2
2
  import { t as ChevronLeft } from "./chevron-left-Dgo_b9wJ.js";
3
3
  import { t as ChevronRight } from "./chevron-right-3nKJR5Bb.js";
4
4
  import { t as ChevronUp } from "./chevron-up-D_Gqpb5M.js";
5
- import { a as $f11fb0bcf1b2687a$export$61c6a8c84e605fb6, i as CalendarGrid, r as $1697a7ad3db7b79f$re_export$useDateFormatter } from "./DatePickerInput-B0fEeCOf.js";
5
+ import { a as $f11fb0bcf1b2687a$export$61c6a8c84e605fb6, i as CalendarGrid, r as $1697a7ad3db7b79f$re_export$useDateFormatter } from "./DatePickerInput-BeQOVCk0.js";
6
6
  import { t as clsx } from "./clsx-CnD0nOiA.js";
7
7
  import { t as IconSlot } from "./IconSlot-DSK7qNxc.js";
8
8
  import { n as $7705c033048f6da7$export$353f5b6fc5456de1 } from "./Button-D6KlWSFL.js";
@@ -13,8 +13,8 @@ import { BadgeButton } from "./components/badge-button.js";
13
13
  import { t as useBreakpoint } from "./useBreakpoint-DQoMN-BG.js";
14
14
  import { t as $3e6197669829fe11$export$40bfa8c7b0832715 } from "./useControlledState-CzXkZCX8.js";
15
15
  import { i as $fd2148440a13ec26$export$fc1a364ae1f3ff10 } from "./NumberFormatter-CLDS_LRZ.js";
16
- import { f as $8b141f2f71e88f85$export$2440da353cedad43, g as $8b141f2f71e88f85$export$f18627323ab57ac0, h as $8b141f2f71e88f85$export$c5221a78ef73c5e9, p as $8b141f2f71e88f85$export$7e319ea407e63bc0 } from "./staticDateTimeSegments-BWea3HAt.js";
17
- import { n as TimePickerForm } from "./datePickerValue.utils-QWR2q5Vv.js";
16
+ import { f as $8b141f2f71e88f85$export$2440da353cedad43, g as $8b141f2f71e88f85$export$f18627323ab57ac0, h as $8b141f2f71e88f85$export$c5221a78ef73c5e9, p as $8b141f2f71e88f85$export$7e319ea407e63bc0 } from "./staticDateTimeSegments-Bs1_N5MR.js";
17
+ import { n as TimePickerForm } from "./datePickerValue.utils-BDB6KM8q.js";
18
18
  import { useCallback, useEffect, useMemo, useRef, useState } from "react";
19
19
  import { c } from "react/compiler-runtime";
20
20
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -1,18 +1,18 @@
1
- import { ComponentArtboard } from "./ComponentGallery-COqEqqN6.js";
1
+ import { t as ComponentDemoArtboard } from "./ComponentGallery-C_rXFvUY.js";
2
2
  import { c } from "react/compiler-runtime";
3
3
  import { jsx } from "react/jsx-runtime";
4
4
  //#region src/app-canvas/CanvasComponentsFrame.tsx
5
- /** The document of a Components artboard: one gallery section, themed by the configuration the canvas sends. */
5
+ /** The document of a Components artboard: one component, themed by the configuration the canvas sends. */
6
6
  function CanvasComponentsFrame(t0) {
7
7
  const $ = c(2);
8
- const { group } = t0;
8
+ const { id } = t0;
9
9
  let t1;
10
- if ($[0] !== group) {
10
+ if ($[0] !== id) {
11
11
  t1 = /* @__PURE__ */ jsx("main", {
12
12
  className: "studio-sample povio-canvas-components-frame",
13
- children: /* @__PURE__ */ jsx(ComponentArtboard, { group })
13
+ children: /* @__PURE__ */ jsx(ComponentDemoArtboard, { id })
14
14
  });
15
- $[0] = group;
15
+ $[0] = id;
16
16
  $[1] = t1;
17
17
  } else t1 = $[1];
18
18
  return t1;