@asanchez-sa/abby 0.1.2 → 0.2.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 (120) hide show
  1. package/README.md +1 -1
  2. package/dist/agents/approvals.d.ts +4 -4
  3. package/dist/agents/changes.d.ts +4 -4
  4. package/dist/agents/hooks.d.ts +3 -3
  5. package/dist/agents/index.d.ts +2 -7
  6. package/dist/agents/index.js +2 -5
  7. package/dist/agents/run-tool.d.ts +2 -2
  8. package/dist/agents/ui-sdk.d.ts +3 -5
  9. package/dist/agents/ui-sdk.js +3 -3
  10. package/dist/behaviors/lists/index.d.ts +2 -3
  11. package/dist/behaviors/lists/index.js +1 -3
  12. package/dist/behaviors/lists/ui-sdk.d.ts +2 -2
  13. package/dist/behaviors/lists/ui-sdk.js +3 -3
  14. package/dist/behaviors/popups/index.d.ts +2 -3
  15. package/dist/behaviors/popups/index.js +1 -3
  16. package/dist/behaviors/popups/ui-sdk.d.ts +2 -2
  17. package/dist/behaviors/popups/ui-sdk.js +3 -3
  18. package/dist/behaviors/preferences/index.d.ts +2 -3
  19. package/dist/behaviors/preferences/index.js +1 -3
  20. package/dist/behaviors/preferences/ui-sdk.d.ts +2 -2
  21. package/dist/behaviors/preferences/ui-sdk.js +3 -3
  22. package/dist/behaviors/transitions/index.d.ts +2 -3
  23. package/dist/behaviors/transitions/index.js +1 -3
  24. package/dist/behaviors/transitions/ui-sdk.d.ts +2 -2
  25. package/dist/behaviors/transitions/ui-sdk.js +3 -3
  26. package/dist/components/alert/alert.d.ts +3 -2
  27. package/dist/components/alert/alert.js +3 -2
  28. package/dist/components/attachment/attachment.d.ts +3 -2
  29. package/dist/components/attachment/attachment.js +3 -2
  30. package/dist/components/badge/badge.d.ts +3 -2
  31. package/dist/components/badge/badge.js +3 -2
  32. package/dist/components/bubble/bubble.d.ts +3 -2
  33. package/dist/components/bubble/bubble.js +3 -2
  34. package/dist/components/button-group/button-group.d.ts +4 -3
  35. package/dist/components/button-group/button-group.js +4 -3
  36. package/dist/components/card/card.d.ts +3 -2
  37. package/dist/components/card/card.js +3 -2
  38. package/dist/components/choice-cards/choice-cards.d.ts +4 -3
  39. package/dist/components/choice-cards/choice-cards.js +4 -3
  40. package/dist/components/command-dock/command-dock.d.ts +4 -4
  41. package/dist/components/command-dock/command-dock.js +9 -9
  42. package/dist/components/empty/empty.d.ts +3 -2
  43. package/dist/components/empty/empty.js +3 -2
  44. package/dist/components/input/input.d.ts +5 -2
  45. package/dist/components/input/input.js +32 -17
  46. package/dist/components/input-group/input-group.d.ts +5 -4
  47. package/dist/components/input-group/input-group.js +5 -4
  48. package/dist/components/item/item.d.ts +3 -2
  49. package/dist/components/item/item.js +3 -2
  50. package/dist/components/link/link.d.ts +3 -2
  51. package/dist/components/link/link.js +4 -4
  52. package/dist/components/marker/marker.d.ts +3 -2
  53. package/dist/components/marker/marker.js +3 -2
  54. package/dist/components/message-scroller/message-scroller.d.ts +7 -6
  55. package/dist/components/message-scroller/message-scroller.js +8 -8
  56. package/dist/components/model-selector/model-selector.js +9 -9
  57. package/dist/components/native-select/native-select.js +4 -4
  58. package/dist/components/note-editor/note-editor.js +5 -5
  59. package/dist/components/otp-input/otp-input.d.ts +8 -2
  60. package/dist/components/otp-input/otp-input.js +35 -20
  61. package/dist/components/questionnaire/questionnaire.d.ts +11 -11
  62. package/dist/components/questionnaire/questionnaire.js +13 -13
  63. package/dist/components/sidebar/sidebar.d.ts +4 -4
  64. package/dist/components/sidebar/sidebar.js +10 -9
  65. package/dist/components/table-of-contents/table-of-contents.d.ts +4 -4
  66. package/dist/components/table-of-contents/table-of-contents.js +5 -5
  67. package/dist/components/team-mark/team-mark.d.ts +26 -0
  68. package/dist/components/team-mark/team-mark.js +101 -0
  69. package/dist/components/toolbar/toolbar.d.ts +3 -2
  70. package/dist/components/toolbar/toolbar.js +7 -5
  71. package/dist/components/week-strip/week-strip.d.ts +7 -7
  72. package/dist/components/week-strip/week-strip.js +32 -31
  73. package/dist/core/index.d.ts +2 -6
  74. package/dist/core/index.js +2 -26
  75. package/dist/core/ui-sdk.d.ts +2 -2
  76. package/dist/core/ui-sdk.js +3 -3
  77. package/dist/tools/observe/index.d.ts +2 -2
  78. package/dist/tools/observe/index.js +1 -3
  79. package/dist/tools/observe/ui-sdk.d.ts +2 -1
  80. package/dist/tools/observe/ui-sdk.js +1 -2
  81. package/dist/tools/testing/check-agent.d.ts +4 -3
  82. package/dist/tools/testing/index.d.ts +2 -3
  83. package/dist/tools/testing/index.js +3 -4
  84. package/dist/tools/testing/ui-sdk.d.ts +2 -1
  85. package/dist/tools/testing/ui-sdk.js +1 -2
  86. package/dist/utilities/color/index.d.ts +2 -2
  87. package/dist/utilities/color/index.js +1 -3
  88. package/dist/utilities/color/ui-sdk.d.ts +2 -1
  89. package/dist/utilities/color/ui-sdk.js +1 -2
  90. package/dist/utilities/date/index.d.ts +2 -2
  91. package/dist/utilities/date/index.js +1 -6
  92. package/dist/utilities/date/ui-sdk.d.ts +2 -1
  93. package/dist/utilities/date/ui-sdk.js +1 -2
  94. package/dist/utilities/image/index.d.ts +2 -2
  95. package/dist/utilities/image/index.js +1 -3
  96. package/dist/utilities/image/ui-sdk.d.ts +2 -1
  97. package/dist/utilities/image/ui-sdk.js +1 -2
  98. package/dist/utilities/number/index.d.ts +2 -2
  99. package/dist/utilities/number/index.js +1 -3
  100. package/dist/utilities/number/ui-sdk.d.ts +2 -1
  101. package/dist/utilities/number/ui-sdk.js +1 -2
  102. package/dist/utilities/platform/index.d.ts +2 -3
  103. package/dist/utilities/platform/index.js +1 -14
  104. package/dist/utilities/platform/ui-sdk.d.ts +2 -2
  105. package/dist/utilities/platform/ui-sdk.js +3 -3
  106. package/dist/utilities/text/index.d.ts +2 -3
  107. package/dist/utilities/text/index.js +1 -3
  108. package/dist/utilities/text/ui-sdk.d.ts +2 -2
  109. package/dist/utilities/text/ui-sdk.js +3 -3
  110. package/package.json +2 -1
  111. package/skills/agent-ready-ui/SKILL.md +1 -1
  112. package/skills/blocks/SKILL.md +1 -1
  113. package/skills/compose-screens/SKILL.md +40 -1
  114. package/skills/note-editor/SKILL.md +1 -1
  115. package/skills/note-status/SKILL.md +1 -1
  116. package/skills/setup/SKILL.md +1 -1
  117. package/skills/theming/SKILL.md +1 -1
  118. package/src/blocks/shell/parts/marks.tsx +18 -4
  119. package/src/blocks/shell/parts/rail.tsx +7 -7
  120. package/dist/_virtual/_rolldown/runtime.js +0 -26
@@ -1,9 +1,9 @@
1
1
  "use client";
2
- import { createChange, definePrimitive, dispatch, openAttrs } from "../../core/ui-sdk.js";
2
+ import { createChange, definePrimitive, dispatch, openAttrs, usePart, usePrimitive } from "../../core/ui-sdk.js";
3
3
  import { usePrimitiveState } from "../../core/use-primitive-state.js";
4
4
  import "../../behaviors/popups/index.js";
5
5
  import { bindLayer } from "../../behaviors/popups/ui-sdk.js";
6
- import { core_exports } from "../../core/index.js";
6
+ import "../../core/index.js";
7
7
  import { cn, cnState } from "../../utilities/cn/index.js";
8
8
  import "../../utilities/text/index.js";
9
9
  import { buttonVariants } from "../button/button.js";
@@ -336,7 +336,7 @@ function CommandDock(t0) {
336
336
  $[22] = value;
337
337
  $[23] = t3;
338
338
  } else t3 = $[23];
339
- const handle = (0, core_exports.usePrimitive)(commandDock, t3);
339
+ const handle = usePrimitive(commandDock, t3);
340
340
  const panelId = useId();
341
341
  let t4;
342
342
  if ($[24] === Symbol.for("react.memo_cache_sentinel")) {
@@ -389,7 +389,7 @@ function CommandDock(t0) {
389
389
  $[38] = t7;
390
390
  $[39] = t8;
391
391
  } else t8 = $[39];
392
- return (0, core_exports.usePart)(handle, "root", t4, t8, "div");
392
+ return usePart(handle, "root", t4, t8, "div");
393
393
  }
394
394
  /**
395
395
  * The one surface the trigger and the panel share. Both widths are real
@@ -419,7 +419,7 @@ function CommandDockSurface(t0) {
419
419
  $[2] = children;
420
420
  $[3] = t3;
421
421
  } else t3 = $[3];
422
- return (0, core_exports.usePart)(commandDock, "surface", t1, t3, "div");
422
+ return usePart(commandDock, "surface", t1, t3, "div");
423
423
  }
424
424
  /**
425
425
  * The closed form: a button with the app's label that opens the dock. It
@@ -545,7 +545,7 @@ function CommandDockPanel(t0) {
545
545
  $[9] = t3;
546
546
  $[10] = t4;
547
547
  } else t4 = $[10];
548
- return (0, core_exports.usePart)(commandDock, "panel", t1, t4, "div");
548
+ return usePart(commandDock, "panel", t1, t4, "div");
549
549
  }
550
550
  /**
551
551
  * The field, with a button that sends what is in it. Enter sends too. Name
@@ -672,7 +672,7 @@ function CommandDockInput(t0) {
672
672
  $[29] = t7;
673
673
  $[30] = t12;
674
674
  } else t12 = $[30];
675
- return (0, core_exports.usePart)(commandDock, "form", t3, t12, "form");
675
+ return usePart(commandDock, "form", t3, t12, "form");
676
676
  }
677
677
  /**
678
678
  * Where the rows go. It takes no room until there is a row or the dock is
@@ -742,7 +742,7 @@ function CommandDockResults(t0) {
742
742
  $[14] = t5;
743
743
  $[15] = t6;
744
744
  } else t6 = $[15];
745
- return (0, core_exports.usePart)(commandDock, "results", t4, t6, "div");
745
+ return usePart(commandDock, "results", t4, t6, "div");
746
746
  }
747
747
  const rowClasses = "flex w-full items-center gap-3 rounded-xl px-2.5 py-2 text-start text-sm [&_svg]:shrink-0 [&_svg]:text-muted-foreground";
748
748
  /**
@@ -806,7 +806,7 @@ function CommandDockRow(t0) {
806
806
  $[14] = t2;
807
807
  $[15] = t3;
808
808
  } else t3 = $[15];
809
- return (0, core_exports.usePart)(commandDock, "row", t1, t3, "div");
809
+ return usePart(commandDock, "row", t1, t3, "div");
810
810
  }
811
811
  /** What the row is. It takes the width the row has spare and is cut to one line. */
812
812
  function CommandDockRowTitle(t0) {
@@ -1,4 +1,5 @@
1
- import { index_d_exports } from "../../core/index.js";
1
+ import "../../core/index.js";
2
+ import { PartProps } from "../../core/ui-sdk.js";
2
3
  import { VariantProps } from "../../utilities/cn/index.js";
3
4
  import { ComponentProps } from "react";
4
5
  /** What a view shows when it has nothing to list: a title, why, and what to do next. */
@@ -11,7 +12,7 @@ type EmptyMediaProps = ComponentProps<"div"> & VariantProps<typeof emptyMediaVar
11
12
  /** An icon, avatar or picture above the title. Decorative unless what's inside has a name. */
12
13
  declare function EmptyMedia({ className, variant, ...props }: EmptyMediaProps): import("react").JSX.Element;
13
14
  /** A `div` by default. Pass `render={<h2 />}` when the page's outline should list it. */
14
- declare function EmptyTitle({ className, render, ...props }: index_d_exports.PartProps<"div">): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
15
+ declare function EmptyTitle({ className, render, ...props }: PartProps<"div">): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
15
16
  declare function EmptyDescription({ className, ...props }: ComponentProps<"div">): import("react").JSX.Element;
16
17
  /** The actions: buttons, a search field, a link to the docs. */
17
18
  declare function EmptyContent({ className, ...props }: ComponentProps<"div">): import("react").JSX.Element;
@@ -1,5 +1,6 @@
1
1
  "use client";
2
- import { core_exports } from "../../core/index.js";
2
+ import { renderElement } from "../../core/ui-sdk.js";
3
+ import "../../core/index.js";
3
4
  import { cn, cnState, cva } from "../../utilities/cn/index.js";
4
5
  import { c } from "react/compiler-runtime";
5
6
  import { jsx } from "react/jsx-runtime";
@@ -118,7 +119,7 @@ function EmptyMedia(t0) {
118
119
  }
119
120
  /** A `div` by default. Pass `render={<h2 />}` when the page's outline should list it. */
120
121
  function EmptyTitle({ className, render, ...props }) {
121
- return (0, core_exports.renderElement)("div", {
122
+ return renderElement("div", {
122
123
  "data-slot": "empty-title",
123
124
  ...props,
124
125
  className: cnState("text-heading-4", className)
@@ -5,5 +5,8 @@ import { Input as Input$1 } from "@ui-sdk/react/input";
5
5
  * capsule. A control that grows to several lines adds `rounded-2xl`.
6
6
  */
7
7
  declare const inputClasses = "h-9 w-full min-w-0 rounded-full border border-input bg-transparent px-3.5 py-1 text-base transition-colors file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-placeholder focus-field data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-disabled:bg-input/50 data-disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30";
8
- declare function Input({ className, ...props }: ComponentProps<typeof Input$1>): import("react").JSX.Element;
9
- export { Input, inputClasses };
8
+ type InputProps = Omit<ComponentProps<typeof Input$1>, "size"> & {
9
+ size?: "default" | "lg";
10
+ };
11
+ declare function Input({ className, size, ...props }: InputProps): import("react").JSX.Element;
12
+ export { Input, type InputProps, inputClasses };
@@ -9,35 +9,50 @@ import { Input as Input$1 } from "@ui-sdk/react/input";
9
9
  * capsule. A control that grows to several lines adds `rounded-2xl`.
10
10
  */
11
11
  const inputClasses = "h-9 w-full min-w-0 rounded-full border border-input bg-transparent px-3.5 py-1 text-base transition-colors file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-placeholder focus-field data-disabled:pointer-events-none data-disabled:cursor-not-allowed data-disabled:bg-input/50 data-disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30";
12
+ /**
13
+ * `size="lg"`: the 44px of `Button`'s `lg`, so a field and its button line
14
+ * up, as in Alma's sign-in. Its text is Alma's 15/20, the size `heading-3`
15
+ * carries, at regular weight; under `md` it stays at 16px, which keeps a
16
+ * phone from zooming in.
17
+ */
18
+ const inputLgClasses = "h-11 px-4.5 md:text-heading-3 md:font-normal";
12
19
  function Input(t0) {
13
- const $ = c(8);
20
+ const $ = c(11);
14
21
  let className;
15
22
  let props;
23
+ let t1;
16
24
  if ($[0] !== t0) {
17
- ({className, ...props} = t0);
25
+ ({className, size: t1, ...props} = t0);
18
26
  $[0] = t0;
19
27
  $[1] = className;
20
28
  $[2] = props;
29
+ $[3] = t1;
21
30
  } else {
22
31
  className = $[1];
23
32
  props = $[2];
33
+ t1 = $[3];
24
34
  }
25
- let t1;
26
- if ($[3] !== className) {
27
- t1 = cnState(inputClasses, className);
28
- $[3] = className;
29
- $[4] = t1;
30
- } else t1 = $[4];
31
- let t2;
32
- if ($[5] !== props || $[6] !== t1) {
33
- t2 = /* @__PURE__ */ jsx(Input$1, {
34
- className: t1,
35
+ const size = t1 === void 0 ? "default" : t1;
36
+ const t2 = size === "lg" && inputLgClasses;
37
+ let t3;
38
+ if ($[4] !== className || $[5] !== t2) {
39
+ t3 = cnState([inputClasses, t2], className);
40
+ $[4] = className;
41
+ $[5] = t2;
42
+ $[6] = t3;
43
+ } else t3 = $[6];
44
+ let t4;
45
+ if ($[7] !== props || $[8] !== size || $[9] !== t3) {
46
+ t4 = /* @__PURE__ */ jsx(Input$1, {
47
+ "data-size": size,
48
+ className: t3,
35
49
  ...props
36
50
  });
37
- $[5] = props;
38
- $[6] = t1;
39
- $[7] = t2;
40
- } else t2 = $[7];
41
- return t2;
51
+ $[7] = props;
52
+ $[8] = size;
53
+ $[9] = t3;
54
+ $[10] = t4;
55
+ } else t4 = $[10];
56
+ return t4;
42
57
  }
43
58
  export { Input, inputClasses };
@@ -1,5 +1,6 @@
1
- import { index_d_exports } from "../../core/index.js";
1
+ import "../../core/index.js";
2
2
  import { VariantProps } from "../../utilities/cn/index.js";
3
+ import { PartProps } from "../../core/ui-sdk.js";
3
4
  import { buttonVariants } from "../button/button.js";
4
5
  import { ComponentProps } from "react";
5
6
  import { Button } from "@ui-sdk/react/button";
@@ -9,11 +10,11 @@ import { Textarea } from "@ui-sdk/react/textarea";
9
10
  * The box around a field and its addons. Write the parts in the order they
10
11
  * read: Tab follows the markup, not `align`.
11
12
  */
12
- declare function InputGroup({ className, render, ...props }: index_d_exports.PartProps<"div">): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
13
+ declare function InputGroup({ className, render, ...props }: PartProps<"div">): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
13
14
  declare const inputGroupAddonVariants: (props?: ({
14
15
  align?: "block-end" | "block-start" | "inline-end" | "inline-start" | null | undefined;
15
16
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
16
- type InputGroupAddonProps = index_d_exports.PartProps<"div"> & VariantProps<typeof inputGroupAddonVariants>;
17
+ type InputGroupAddonProps = PartProps<"div"> & VariantProps<typeof inputGroupAddonVariants>;
17
18
  /** Icons, text and buttons on one side of the field. Not focusable itself. */
18
19
  declare function InputGroupAddon({ className, align, render, ...props }: InputGroupAddonProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
19
20
  type InputGroupButtonLook = Pick<VariantProps<typeof buttonVariants>, "variant"> & {
@@ -34,7 +35,7 @@ declare function inputGroupButtonVariants({ variant, size }?: InputGroupButtonLo
34
35
  type InputGroupButtonProps = ComponentProps<typeof Button> & InputGroupButtonLook;
35
36
  /** A button inside an addon. With only an icon it needs an `aria-label`. */
36
37
  declare function InputGroupButton({ variant, size, className, ...props }: InputGroupButtonProps): import("react").JSX.Element;
37
- declare function InputGroupText({ className, render, ...props }: index_d_exports.PartProps<"span">): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
38
+ declare function InputGroupText({ className, render, ...props }: PartProps<"span">): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
38
39
  /** ui-sdk's Input without its box. It joins a `Field` like `Input` does. */
39
40
  declare function InputGroupInput({ className, ...props }: ComponentProps<typeof Input>): import("react").JSX.Element;
40
41
  /** ui-sdk's Textarea without its box. It joins a `Field` like `Textarea` does. */
@@ -1,5 +1,6 @@
1
1
  "use client";
2
- import { core_exports } from "../../core/index.js";
2
+ import { mergeProps, renderElement } from "../../core/ui-sdk.js";
3
+ import "../../core/index.js";
3
4
  import { cn, cnState, cva } from "../../utilities/cn/index.js";
4
5
  import { buttonVariants } from "../button/button.js";
5
6
  import { inputClasses } from "../input/input.js";
@@ -24,7 +25,7 @@ function focusControl(event) {
24
25
  * read: Tab follows the markup, not `align`.
25
26
  */
26
27
  function InputGroup({ className, render, ...props }) {
27
- return (0, core_exports.renderElement)("div", (0, core_exports.mergeProps)({
28
+ return renderElement("div", mergeProps({
28
29
  "data-slot": "input-group",
29
30
  onMouseDown: focusControl
30
31
  }, {
@@ -49,7 +50,7 @@ const inputGroupAddonVariants = cva("flex h-auto cursor-text items-center justif
49
50
  });
50
51
  /** Icons, text and buttons on one side of the field. Not focusable itself. */
51
52
  function InputGroupAddon({ className, align, render, ...props }) {
52
- return (0, core_exports.renderElement)("div", {
53
+ return renderElement("div", {
53
54
  "data-slot": "input-group-addon",
54
55
  "data-align": align ?? "inline-start",
55
56
  ...props,
@@ -118,7 +119,7 @@ function InputGroupButton(t0) {
118
119
  return t4;
119
120
  }
120
121
  function InputGroupText({ className, render, ...props }) {
121
- return (0, core_exports.renderElement)("span", {
122
+ return renderElement("span", {
122
123
  "data-slot": "input-group-text",
123
124
  ...props,
124
125
  className: cnState("flex items-center gap-2 text-sm text-muted-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4", className)
@@ -1,4 +1,5 @@
1
- import { index_d_exports } from "../../core/index.js";
1
+ import "../../core/index.js";
2
+ import { PartProps } from "../../core/ui-sdk.js";
2
3
  import { VariantProps } from "../../utilities/cn/index.js";
3
4
  import { Separator } from "../separator/separator.js";
4
5
  import { ComponentProps } from "react";
@@ -10,7 +11,7 @@ declare const itemVariants: (props?: ({
10
11
  variant?: "default" | "muted" | "outline" | null | undefined;
11
12
  size?: "default" | "sm" | "xs" | null | undefined;
12
13
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
13
- type ItemProps = index_d_exports.PartProps<"div"> & VariantProps<typeof itemVariants>;
14
+ type ItemProps = PartProps<"div"> & VariantProps<typeof itemVariants>;
14
15
  /**
15
16
  * A row: media, a title and a description, and its actions. With `render` the
16
17
  * whole row is one link (`render={<a href="/projects/atlas" />}` or a router's
@@ -1,5 +1,6 @@
1
1
  "use client";
2
- import { core_exports } from "../../core/index.js";
2
+ import { renderElement } from "../../core/ui-sdk.js";
3
+ import "../../core/index.js";
3
4
  import { cn, cnState, cva } from "../../utilities/cn/index.js";
4
5
  import { LinkPart } from "../link/link.js";
5
6
  import { Separator } from "../separator/separator.js";
@@ -122,7 +123,7 @@ function Item(t0) {
122
123
  size
123
124
  }), className)
124
125
  };
125
- if (!render) return (0, core_exports.renderElement)("div", {
126
+ if (!render) return renderElement("div", {
126
127
  role: inGroup ? "listitem" : void 0,
127
128
  ...props,
128
129
  ...own
@@ -1,6 +1,7 @@
1
- import { index_d_exports } from "../../core/index.js";
1
+ import "../../core/index.js";
2
+ import { PartProps } from "../../core/ui-sdk.js";
2
3
  import { ButtonLook } from "../button/button.js";
3
- type LinkPartProps = index_d_exports.PartProps<"a"> & {
4
+ type LinkPartProps = PartProps<"a"> & {
4
5
  /** The link goes nowhere, leaves the tab order, and an agent can't follow it. */
5
6
  disabled?: boolean;
6
7
  };
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import { definePrimitive } from "../../core/ui-sdk.js";
3
- import { core_exports } from "../../core/index.js";
2
+ import { definePrimitive, usePart, usePrimitive } from "../../core/ui-sdk.js";
3
+ import "../../core/index.js";
4
4
  import { cnState } from "../../utilities/cn/index.js";
5
5
  import { buttonLook } from "../button/button.js";
6
6
  import { c } from "react/compiler-runtime";
@@ -59,7 +59,7 @@ function LinkPart(t0) {
59
59
  $[3] = disabled;
60
60
  $[4] = t1;
61
61
  } else t1 = $[4];
62
- const handle = (0, core_exports.usePrimitive)(link, t1);
62
+ const handle = usePrimitive(link, t1);
63
63
  const slot = props["data-slot"];
64
64
  let t2;
65
65
  if ($[5] !== slot) {
@@ -67,7 +67,7 @@ function LinkPart(t0) {
67
67
  $[5] = slot;
68
68
  $[6] = t2;
69
69
  } else t2 = $[6];
70
- return (0, core_exports.usePart)(handle, "root", t2, props, "a");
70
+ return usePart(handle, "root", t2, props, "a");
71
71
  }
72
72
  /**
73
73
  * A link. An agent finds it by its text and follows it with `follow`. For a
@@ -1,10 +1,11 @@
1
- import { index_d_exports } from "../../core/index.js";
1
+ import "../../core/index.js";
2
+ import { PartProps } from "../../core/ui-sdk.js";
2
3
  import { VariantProps } from "../../utilities/cn/index.js";
3
4
  import { ComponentProps } from "react";
4
5
  declare const markerVariants: (props?: ({
5
6
  variant?: "border" | "default" | "separator" | null | undefined;
6
7
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
- type MarkerProps = index_d_exports.PartProps<"div"> & VariantProps<typeof markerVariants>;
8
+ type MarkerProps = PartProps<"div"> & VariantProps<typeof markerVariants>;
8
9
  declare function Marker({ className, variant, render, ...props }: MarkerProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
9
10
  declare function MarkerIcon({ className, ...props }: ComponentProps<"span">): import("react").JSX.Element;
10
11
  declare function MarkerContent({ className, ...props }: ComponentProps<"span">): import("react").JSX.Element;
@@ -1,5 +1,6 @@
1
1
  "use client";
2
- import { core_exports } from "../../core/index.js";
2
+ import { renderElement } from "../../core/ui-sdk.js";
3
+ import "../../core/index.js";
3
4
  import { cn, cnState, cva } from "../../utilities/cn/index.js";
4
5
  import { c } from "react/compiler-runtime";
5
6
  import { jsx } from "react/jsx-runtime";
@@ -13,7 +14,7 @@ const markerVariants = cva("group/marker relative flex min-h-4 w-full items-cent
13
14
  defaultVariants: { variant: "default" }
14
15
  });
15
16
  function Marker({ className, variant, render, ...props }) {
16
- return (0, core_exports.renderElement)("div", {
17
+ return renderElement("div", {
17
18
  "data-slot": "marker",
18
19
  "data-variant": variant ?? "default",
19
20
  ...props,
@@ -1,4 +1,5 @@
1
- import { index_d_exports } from "../../core/index.js";
1
+ import "../../core/index.js";
2
+ import { PartProps } from "../../core/ui-sdk.js";
2
3
  import { ButtonLook } from "../button/button.js";
3
4
  import { ReactNode } from "react";
4
5
  type MessageScrollerPosition = "start" | "end" | "last-anchor";
@@ -43,22 +44,22 @@ type MessageScrollerProviderProps = MessageScrollerOptions & {
43
44
  * renders no element: the parts and the hooks work anywhere inside it.
44
45
  */
45
46
  declare function MessageScrollerProvider({ children, ...options }: MessageScrollerProviderProps): import("react").JSX.Element;
46
- type MessageScrollerProps = index_d_exports.PartProps<"div"> & {
47
+ type MessageScrollerProps = PartProps<"div"> & {
47
48
  /** Names the transcript for screen readers and agents. Set it in the page's language. */
48
49
  label?: string;
49
50
  };
50
51
  /** The frame around the viewport and its controls. It fills its parent, which sets the height. */
51
52
  declare function MessageScroller({ label, className, ...props }: MessageScrollerProps): import("react").JSX.Element | null;
52
- type MessageScrollerViewportProps = index_d_exports.PartProps<"div"> & {
53
+ type MessageScrollerViewportProps = PartProps<"div"> & {
53
54
  /** Names the scrollable region. Set it in the page's language. */
54
55
  label?: string;
55
56
  };
56
57
  /** The element that scrolls: a named region a keyboard can focus and scroll. */
57
58
  declare function MessageScrollerViewport({ label, className, ...props }: MessageScrollerViewportProps): import("react").JSX.Element | null;
58
- type MessageScrollerContentProps = index_d_exports.PartProps<"div">;
59
+ type MessageScrollerContentProps = PartProps<"div">;
59
60
  /** The transcript: a log whose new rows a screen reader announces. */
60
61
  declare function MessageScrollerContent({ className, ...props }: MessageScrollerContentProps): import("react").JSX.Element | null;
61
- type MessageScrollerItemProps = index_d_exports.PartProps<"div"> & {
62
+ type MessageScrollerItemProps = PartProps<"div"> & {
62
63
  /** A stable id for the row, which `scrollToMessage` and visibility tracking use. */
63
64
  messageId?: string;
64
65
  /** Marks the row that starts a turn. A new one settles near the top of the viewport. */
@@ -66,7 +67,7 @@ type MessageScrollerItemProps = index_d_exports.PartProps<"div"> & {
66
67
  };
67
68
  /** One row of the transcript: a message, a marker, a typing indicator. */
68
69
  declare function MessageScrollerItem({ messageId, scrollAnchor, className, ...props }: MessageScrollerItemProps): import("react").JSX.Element | null;
69
- type MessageScrollerButtonProps = index_d_exports.PartProps<"button"> & ButtonLook & {
70
+ type MessageScrollerButtonProps = PartProps<"button"> & ButtonLook & {
70
71
  /** Which edge of the transcript it scrolls to. `"end"` by default. */
71
72
  direction?: "start" | "end";
72
73
  /** How it scrolls. `"smooth"` by default, and always instant with reduced motion. */
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import { definePrimitive, direct, elements } from "../../core/ui-sdk.js";
3
- import { core_exports } from "../../core/index.js";
2
+ import { definePrimitive, direct, elements, usePart, usePrimitive } from "../../core/ui-sdk.js";
3
+ import "../../core/index.js";
4
4
  import { cn, cnState } from "../../utilities/cn/index.js";
5
5
  import { buttonVariants } from "../button/button.js";
6
6
  import { Icon } from "../icon/icon.js";
@@ -565,7 +565,7 @@ function MessageScrollerProvider(t0) {
565
565
  children = $[1];
566
566
  options = $[2];
567
567
  }
568
- const handle = (0, core_exports.usePrimitive)(messageScroller, options);
568
+ const handle = usePrimitive(messageScroller, options);
569
569
  let t1;
570
570
  if ($[3] !== children || $[4] !== handle) {
571
571
  t1 = /* @__PURE__ */ jsx(MessageScrollerHandle, {
@@ -621,7 +621,7 @@ function MessageScroller(t0) {
621
621
  $[9] = t4;
622
622
  $[10] = t5;
623
623
  } else t5 = $[10];
624
- return (0, core_exports.usePart)(t2, "root", t3, t5, "div");
624
+ return usePart(t2, "root", t3, t5, "div");
625
625
  }
626
626
  /** The element that scrolls: a named region a keyboard can focus and scroll. */
627
627
  function MessageScrollerViewport(t0) {
@@ -667,7 +667,7 @@ function MessageScrollerViewport(t0) {
667
667
  $[9] = t4;
668
668
  $[10] = t5;
669
669
  } else t5 = $[10];
670
- return (0, core_exports.usePart)(t2, "viewport", t3, t5, "div");
670
+ return usePart(t2, "viewport", t3, t5, "div");
671
671
  }
672
672
  /** The transcript: a log whose new rows a screen reader announces. */
673
673
  function MessageScrollerContent(t0) {
@@ -707,7 +707,7 @@ function MessageScrollerContent(t0) {
707
707
  $[7] = t3;
708
708
  $[8] = t4;
709
709
  } else t4 = $[8];
710
- return (0, core_exports.usePart)(t1, "content", t2, t4, "div");
710
+ return usePart(t1, "content", t2, t4, "div");
711
711
  }
712
712
  /** One row of the transcript: a message, a marker, a typing indicator. */
713
713
  function MessageScrollerItem(t0) {
@@ -760,7 +760,7 @@ function MessageScrollerItem(t0) {
760
760
  $[12] = t4;
761
761
  $[13] = t5;
762
762
  } else t5 = $[13];
763
- return (0, core_exports.usePart)(t2, "item", t3, t5, "div");
763
+ return usePart(t2, "item", t3, t5, "div");
764
764
  }
765
765
  /**
766
766
  * Scrolls to the start or the end of the transcript. It is hidden and inert
@@ -859,7 +859,7 @@ function MessageScrollerButton(t0) {
859
859
  $[26] = t9;
860
860
  $[27] = t10;
861
861
  } else t10 = $[27];
862
- return (0, core_exports.usePart)(t5, "button", t6, t10, "button");
862
+ return usePart(t5, "button", t6, t10, "button");
863
863
  }
864
864
  /** The scroll commands, for a control anywhere inside `MessageScrollerProvider`. */
865
865
  function useMessageScroller() {
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { createChange, definePrimitive } from "../../core/ui-sdk.js";
2
+ import { createChange, definePrimitive, usePart, usePrimitive } from "../../core/ui-sdk.js";
3
3
  import { usePrimitiveState } from "../../core/use-primitive-state.js";
4
- import { core_exports } from "../../core/index.js";
4
+ import "../../core/index.js";
5
5
  import { markPlaced } from "../../behaviors/selection/indicator.js";
6
6
  import "../../behaviors/selection/index.js";
7
7
  import { cn, cnState } from "../../utilities/cn/index.js";
@@ -134,7 +134,7 @@ function ModelSelectorMark() {
134
134
  t0 = $[0];
135
135
  t1 = $[1];
136
136
  }
137
- return (0, core_exports.usePart)(modelSelector, "mark", t0, t1, "span");
137
+ return usePart(modelSelector, "mark", t0, t1, "span");
138
138
  }
139
139
  /**
140
140
  * The menu and its one value, shared by every `ModelSelectorGroup` inside. It
@@ -191,7 +191,7 @@ function ModelSelector(t0) {
191
191
  $[13] = value;
192
192
  $[14] = t1;
193
193
  } else t1 = $[14];
194
- const handle = (0, core_exports.usePrimitive)(modelSelector, t1);
194
+ const handle = usePrimitive(modelSelector, t1);
195
195
  let t2;
196
196
  if ($[15] === Symbol.for("react.memo_cache_sentinel")) {
197
197
  t2 = {};
@@ -249,7 +249,7 @@ function ModelSelector(t0) {
249
249
  $[29] = t7;
250
250
  $[30] = t8;
251
251
  } else t8 = $[30];
252
- return (0, core_exports.usePart)(handle, "root", t2, t8, "div");
252
+ return usePart(handle, "root", t2, t8, "div");
253
253
  }
254
254
  function _temp() {
255
255
  return createMenuController();
@@ -268,7 +268,7 @@ function SettingMark() {
268
268
  t0 = $[0];
269
269
  t1 = $[1];
270
270
  }
271
- return (0, core_exports.usePart)(modelSelectorSetting, "mark", t0, t1, "span");
271
+ return usePart(modelSelectorSetting, "mark", t0, t1, "span");
272
272
  }
273
273
  /**
274
274
  * A second value chosen in a selector's menu, like how hard the model thinks:
@@ -294,7 +294,7 @@ function ModelSelectorSetting(t0) {
294
294
  $[3] = value;
295
295
  $[4] = t1;
296
296
  } else t1 = $[4];
297
- const handle = (0, core_exports.usePrimitive)(modelSelectorSetting, t1);
297
+ const handle = usePrimitive(modelSelectorSetting, t1);
298
298
  let t2;
299
299
  if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
300
300
  t2 = {};
@@ -348,7 +348,7 @@ function ModelSelectorSetting(t0) {
348
348
  $[18] = t6;
349
349
  $[19] = t7;
350
350
  } else t7 = $[19];
351
- return (0, core_exports.usePart)(handle, "root", t2, t7, "div");
351
+ return usePart(handle, "root", t2, t7, "div");
352
352
  }
353
353
  const segmentClasses = ["flex-1 justify-center rounded-full px-2 py-0 font-medium text-muted-foreground data-checked:text-foreground data-highlighted:bg-transparent data-highlighted:text-foreground", "group-not-has-[[data-placed]]/segments:data-checked:bg-background group-not-has-[[data-placed]]/segments:data-checked:shadow-sm group-not-has-[[data-placed]]/segments:data-checked:ring-1 group-not-has-[[data-placed]]/segments:data-checked:ring-border"].join(" ");
354
354
  /**
@@ -761,7 +761,7 @@ function ModelSelectorItem(t0) {
761
761
  $[18] = t6;
762
762
  $[19] = t7;
763
763
  } else t7 = $[19];
764
- return (0, core_exports.usePart)(modelSelector, "item", t2, t7, "div");
764
+ return usePart(modelSelector, "item", t2, t7, "div");
765
765
  }
766
766
  /** A line between two groups, from one edge of the popup to the other. */
767
767
  function ModelSelectorSeparator(props) {
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import { createChange, definePrimitive } from "../../core/ui-sdk.js";
3
- import { core_exports } from "../../core/index.js";
2
+ import { createChange, definePrimitive, usePart, usePrimitive } from "../../core/ui-sdk.js";
3
+ import "../../core/index.js";
4
4
  import { cn } from "../../utilities/cn/index.js";
5
5
  import { Icon } from "../icon/icon.js";
6
6
  import { inputClasses } from "../input/input.js";
@@ -113,7 +113,7 @@ function NativeSelect(t0) {
113
113
  $[2] = value;
114
114
  $[3] = t2;
115
115
  } else t2 = $[3];
116
- const handle = (0, core_exports.usePrimitive)(nativeSelect, t2);
116
+ const handle = usePrimitive(nativeSelect, t2);
117
117
  const own = {
118
118
  name: field?.name,
119
119
  onChange: value === void 0 ? void 0 : noop,
@@ -128,7 +128,7 @@ function NativeSelect(t0) {
128
128
  t3 = {};
129
129
  $[4] = t3;
130
130
  } else t3 = $[4];
131
- const select = (0, core_exports.usePart)(handle, "root", t3, field ? field.props(own) : own, "select");
131
+ const select = usePart(handle, "root", t3, field ? field.props(own) : own, "select");
132
132
  let t4;
133
133
  if ($[5] !== className) {
134
134
  t4 = cn("group/native-select relative w-full", className);
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { createChange, definePrimitive } from "../../core/ui-sdk.js";
2
+ import { createChange, definePrimitive, usePart, usePrimitive } from "../../core/ui-sdk.js";
3
3
  import { usePrimitiveState } from "../../core/use-primitive-state.js";
4
- import { core_exports } from "../../core/index.js";
4
+ import "../../core/index.js";
5
5
  import { cn, cnState } from "../../utilities/cn/index.js";
6
6
  import { Icon } from "../icon/icon.js";
7
7
  import { TriggerMenu, TriggerMenuContent, TriggerMenuItem, TriggerMenuItemIcon, TriggerMenuItems, TriggerMenuList, TriggerMenuStatus } from "../trigger-menu/trigger-menu.js";
@@ -571,7 +571,7 @@ function NoteEditor(t0) {
571
571
  $[33] = value;
572
572
  $[34] = t7;
573
573
  } else t7 = $[34];
574
- const handle = (0, core_exports.usePrimitive)(noteEditor, t7);
574
+ const handle = usePrimitive(noteEditor, t7);
575
575
  const [editor, setEditor] = useState(null);
576
576
  const state = usePrimitiveState(handle);
577
577
  let t8;
@@ -775,7 +775,7 @@ function NoteEditor(t0) {
775
775
  $[91] = t24;
776
776
  $[92] = t25;
777
777
  } else t25 = $[92];
778
- const t26 = (0, core_exports.usePart)(handle, "root", t22, t25, "div");
778
+ const t26 = usePart(handle, "root", t22, t25, "div");
779
779
  let t27;
780
780
  if ($[93] !== onSelect || $[94] !== t21 || $[95] !== t26 || $[96] !== triggers) {
781
781
  t27 = /* @__PURE__ */ jsx(TriggerMenu, {
@@ -884,7 +884,7 @@ function NoteEditorContent(t0) {
884
884
  $[13] = t4;
885
885
  $[14] = t5;
886
886
  } else t5 = $[14];
887
- return (0, core_exports.usePart)(noteEditor, "content", t3, t5, "div");
887
+ return usePart(noteEditor, "content", t3, t5, "div");
888
888
  }
889
889
  /**
890
890
  * The `/` and `@` suggestions, at the caret. `NoteEditor` renders one when it
@@ -1,12 +1,18 @@
1
+ import { VariantProps } from "../../utilities/cn/index.js";
1
2
  import { ComponentProps } from "react";
2
3
  import { OTPInput as OTPInput$1, OTPInputGroup as OTPInputGroup$1, OTPInputSeparator as OTPInputSeparator$1, OTPInputSlot as OTPInputSlot$1, createOTPInputController } from "@ui-sdk/react/otp-input";
3
4
  declare function OTPInput({ className, ...props }: ComponentProps<typeof OTPInput$1>): import("react").JSX.Element;
4
5
  declare function OTPInputGroup({ className, ...props }: ComponentProps<typeof OTPInputGroup$1>): import("react").JSX.Element;
6
+ declare const otpInputSlotVariants: (props?: ({
7
+ size?: "default" | "lg" | null | undefined;
8
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
9
+ type OTPInputSlotProps = ComponentProps<typeof OTPInputSlot$1> & VariantProps<typeof otpInputSlotVariants>;
5
10
  /**
6
11
  * One cell, with the look of `Input`: a one-character field, so a circle. The one real input sits over all the
7
12
  * cells and takes focus, so the active cell draws the focus ring and the
8
- * caret itself.
13
+ * caret itself. `size="lg"` is the 48px cell of a screen that asks only for
14
+ * the code; the default stays at a field's 36px.
9
15
  */
10
- declare function OTPInputSlot({ className, ...props }: ComponentProps<typeof OTPInputSlot$1>): import("react").JSX.Element;
16
+ declare function OTPInputSlot({ className, size, ...props }: OTPInputSlotProps): import("react").JSX.Element;
11
17
  declare function OTPInputSeparator({ className, ...props }: ComponentProps<typeof OTPInputSeparator$1>): import("react").JSX.Element;
12
18
  export { OTPInput, OTPInputGroup, OTPInputSeparator, OTPInputSlot, createOTPInputController };