@asanchez-sa/abby 0.1.2 → 0.1.3

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 (111) hide show
  1. package/dist/agents/approvals.d.ts +4 -4
  2. package/dist/agents/changes.d.ts +4 -4
  3. package/dist/agents/hooks.d.ts +3 -3
  4. package/dist/agents/index.d.ts +2 -7
  5. package/dist/agents/index.js +2 -5
  6. package/dist/agents/run-tool.d.ts +2 -2
  7. package/dist/agents/ui-sdk.d.ts +3 -5
  8. package/dist/agents/ui-sdk.js +3 -3
  9. package/dist/behaviors/lists/index.d.ts +2 -3
  10. package/dist/behaviors/lists/index.js +1 -3
  11. package/dist/behaviors/lists/ui-sdk.d.ts +2 -2
  12. package/dist/behaviors/lists/ui-sdk.js +3 -3
  13. package/dist/behaviors/popups/index.d.ts +2 -3
  14. package/dist/behaviors/popups/index.js +1 -3
  15. package/dist/behaviors/popups/ui-sdk.d.ts +2 -2
  16. package/dist/behaviors/popups/ui-sdk.js +3 -3
  17. package/dist/behaviors/preferences/index.d.ts +2 -3
  18. package/dist/behaviors/preferences/index.js +1 -3
  19. package/dist/behaviors/preferences/ui-sdk.d.ts +2 -2
  20. package/dist/behaviors/preferences/ui-sdk.js +3 -3
  21. package/dist/behaviors/transitions/index.d.ts +2 -3
  22. package/dist/behaviors/transitions/index.js +1 -3
  23. package/dist/behaviors/transitions/ui-sdk.d.ts +2 -2
  24. package/dist/behaviors/transitions/ui-sdk.js +3 -3
  25. package/dist/components/alert/alert.d.ts +3 -2
  26. package/dist/components/alert/alert.js +3 -2
  27. package/dist/components/attachment/attachment.d.ts +3 -2
  28. package/dist/components/attachment/attachment.js +3 -2
  29. package/dist/components/badge/badge.d.ts +3 -2
  30. package/dist/components/badge/badge.js +3 -2
  31. package/dist/components/bubble/bubble.d.ts +3 -2
  32. package/dist/components/bubble/bubble.js +3 -2
  33. package/dist/components/button-group/button-group.d.ts +4 -3
  34. package/dist/components/button-group/button-group.js +4 -3
  35. package/dist/components/card/card.d.ts +3 -2
  36. package/dist/components/card/card.js +3 -2
  37. package/dist/components/choice-cards/choice-cards.d.ts +4 -3
  38. package/dist/components/choice-cards/choice-cards.js +4 -3
  39. package/dist/components/command-dock/command-dock.d.ts +4 -4
  40. package/dist/components/command-dock/command-dock.js +9 -9
  41. package/dist/components/empty/empty.d.ts +3 -2
  42. package/dist/components/empty/empty.js +3 -2
  43. package/dist/components/input-group/input-group.d.ts +5 -4
  44. package/dist/components/input-group/input-group.js +5 -4
  45. package/dist/components/item/item.d.ts +3 -2
  46. package/dist/components/item/item.js +3 -2
  47. package/dist/components/link/link.d.ts +3 -2
  48. package/dist/components/link/link.js +4 -4
  49. package/dist/components/marker/marker.d.ts +3 -2
  50. package/dist/components/marker/marker.js +3 -2
  51. package/dist/components/message-scroller/message-scroller.d.ts +7 -6
  52. package/dist/components/message-scroller/message-scroller.js +8 -8
  53. package/dist/components/model-selector/model-selector.js +9 -9
  54. package/dist/components/native-select/native-select.js +4 -4
  55. package/dist/components/note-editor/note-editor.js +5 -5
  56. package/dist/components/questionnaire/questionnaire.d.ts +11 -11
  57. package/dist/components/questionnaire/questionnaire.js +13 -13
  58. package/dist/components/sidebar/sidebar.d.ts +4 -4
  59. package/dist/components/sidebar/sidebar.js +10 -9
  60. package/dist/components/table-of-contents/table-of-contents.d.ts +4 -4
  61. package/dist/components/table-of-contents/table-of-contents.js +5 -5
  62. package/dist/components/toolbar/toolbar.d.ts +3 -2
  63. package/dist/components/toolbar/toolbar.js +7 -5
  64. package/dist/components/week-strip/week-strip.d.ts +7 -7
  65. package/dist/components/week-strip/week-strip.js +32 -31
  66. package/dist/core/index.d.ts +2 -6
  67. package/dist/core/index.js +2 -26
  68. package/dist/core/ui-sdk.d.ts +2 -2
  69. package/dist/core/ui-sdk.js +3 -3
  70. package/dist/tools/observe/index.d.ts +2 -2
  71. package/dist/tools/observe/index.js +1 -3
  72. package/dist/tools/observe/ui-sdk.d.ts +2 -1
  73. package/dist/tools/observe/ui-sdk.js +1 -2
  74. package/dist/tools/testing/check-agent.d.ts +4 -3
  75. package/dist/tools/testing/index.d.ts +2 -3
  76. package/dist/tools/testing/index.js +3 -4
  77. package/dist/tools/testing/ui-sdk.d.ts +2 -1
  78. package/dist/tools/testing/ui-sdk.js +1 -2
  79. package/dist/utilities/color/index.d.ts +2 -2
  80. package/dist/utilities/color/index.js +1 -3
  81. package/dist/utilities/color/ui-sdk.d.ts +2 -1
  82. package/dist/utilities/color/ui-sdk.js +1 -2
  83. package/dist/utilities/date/index.d.ts +2 -2
  84. package/dist/utilities/date/index.js +1 -6
  85. package/dist/utilities/date/ui-sdk.d.ts +2 -1
  86. package/dist/utilities/date/ui-sdk.js +1 -2
  87. package/dist/utilities/image/index.d.ts +2 -2
  88. package/dist/utilities/image/index.js +1 -3
  89. package/dist/utilities/image/ui-sdk.d.ts +2 -1
  90. package/dist/utilities/image/ui-sdk.js +1 -2
  91. package/dist/utilities/number/index.d.ts +2 -2
  92. package/dist/utilities/number/index.js +1 -3
  93. package/dist/utilities/number/ui-sdk.d.ts +2 -1
  94. package/dist/utilities/number/ui-sdk.js +1 -2
  95. package/dist/utilities/platform/index.d.ts +2 -3
  96. package/dist/utilities/platform/index.js +1 -14
  97. package/dist/utilities/platform/ui-sdk.d.ts +2 -2
  98. package/dist/utilities/platform/ui-sdk.js +3 -3
  99. package/dist/utilities/text/index.d.ts +2 -3
  100. package/dist/utilities/text/index.js +1 -3
  101. package/dist/utilities/text/ui-sdk.d.ts +2 -2
  102. package/dist/utilities/text/ui-sdk.js +3 -3
  103. package/package.json +1 -1
  104. package/skills/agent-ready-ui/SKILL.md +1 -1
  105. package/skills/blocks/SKILL.md +1 -1
  106. package/skills/compose-screens/SKILL.md +1 -1
  107. package/skills/note-editor/SKILL.md +1 -1
  108. package/skills/note-status/SKILL.md +1 -1
  109. package/skills/setup/SKILL.md +1 -1
  110. package/skills/theming/SKILL.md +1 -1
  111. package/dist/_virtual/_rolldown/runtime.js +0 -26
@@ -1,10 +1,10 @@
1
- import { ui_sdk_d_exports } from "./ui-sdk.js";
1
+ import { AgentAction } from "./ui-sdk.js";
2
2
  /** A step that waits for the person: what it is, and how to answer it. */
3
3
  type Approval = {
4
4
  /** Unique among the approvals of one `createApprovals`. */
5
5
  id: string;
6
6
  /** The step as the bridge resolved it: its component, action and arguments. */
7
- step: ui_sdk_d_exports.AgentAction;
7
+ step: AgentAction;
8
8
  /** What the step does, from its `data-agent-confirm` mark, when it has one. */
9
9
  confirm: string | undefined;
10
10
  };
@@ -13,7 +13,7 @@ type ApprovalsOptions = {
13
13
  * Which steps wait for the person. By default the ones marked with
14
14
  * `data-agent-confirm`. Return true for more, like every `press`.
15
15
  */
16
- needs?: (step: ui_sdk_d_exports.AgentAction) => boolean;
16
+ needs?: (step: AgentAction) => boolean;
17
17
  };
18
18
  /**
19
19
  * The steps of an agent that wait for a yes or a no, as a list a chat can
@@ -30,7 +30,7 @@ type ApprovalsOptions = {
30
30
  */
31
31
  declare function createApprovals({ needs }?: ApprovalsOptions): {
32
32
  /** For `createAgent({ allow })`, and for `registerTools` when the bridge has none. */
33
- allow: (step: ui_sdk_d_exports.AgentAction, context?: {
33
+ allow: (step: AgentAction, context?: {
34
34
  signal?: AbortSignal;
35
35
  }) => boolean | Promise<boolean>;
36
36
  /** The steps waiting, oldest first. The same array until one is added or answered. */
@@ -1,8 +1,8 @@
1
- import { ui_sdk_d_exports } from "./ui-sdk.js";
2
- type Agent = ReturnType<typeof ui_sdk_d_exports.createAgent>;
1
+ import { ObservedChange, createAgent } from "./ui-sdk.js";
2
+ type Agent = ReturnType<typeof createAgent>;
3
3
  type CollectChangesOptions = {
4
4
  /** Whose changes to leave out. The agent's own by default, since it made them. */
5
- ignore?: (change: ui_sdk_d_exports.ObservedChange) => boolean;
5
+ ignore?: (change: ObservedChange) => boolean;
6
6
  };
7
7
  /**
8
8
  * Keeps what changed on the page between an agent's turns, so its next turn
@@ -15,7 +15,7 @@ type CollectChangesOptions = {
15
15
  * const context = changes.take().map((change) => `${change.label}: ${change.previous} → ${change.value}`)
16
16
  */
17
17
  declare function collectChanges(agent: Agent, { ignore }?: CollectChangesOptions): {
18
- take: () => ui_sdk_d_exports.ObservedChange[];
18
+ take: () => ObservedChange[];
19
19
  stop: () => void;
20
20
  };
21
21
  export { type CollectChangesOptions, collectChanges };
@@ -1,6 +1,6 @@
1
1
  import { Approval, Approvals } from "./approvals.js";
2
- import { ui_sdk_d_exports } from "./ui-sdk.js";
3
- type History = ReturnType<typeof ui_sdk_d_exports.createHistory>;
2
+ import { HistoryEntry, createHistory } from "./ui-sdk.js";
3
+ type History = ReturnType<typeof createHistory>;
4
4
  /**
5
5
  * The steps waiting for the person, for a chat to draw one `Confirmation`
6
6
  * each. It renders again when one is added or answered.
@@ -8,7 +8,7 @@ type History = ReturnType<typeof ui_sdk_d_exports.createHistory>;
8
8
  declare function useApprovals(approvals: Approvals): readonly Approval[];
9
9
  type HistoryState = {
10
10
  /** Every entry, oldest first. */
11
- entries: readonly ui_sdk_d_exports.HistoryEntry[];
11
+ entries: readonly HistoryEntry[];
12
12
  /** How many entries are applied: `entries.length` is now, 0 is the start. */
13
13
  position: number;
14
14
  };
@@ -1,11 +1,6 @@
1
- import { ui_sdk_d_exports } from "./ui-sdk.js";
1
+ import { AgentAction, AgentChange, AgentComponent, AgentStep, HistoryEntry, HistoryOptions, ObservedChange, StagedChange, agentTools, createAgent, createHistory, describeEntry, registerTools, stageChanges } from "./ui-sdk.js";
2
2
  import { Approval, Approvals, ApprovalsOptions, createApprovals } from "./approvals.js";
3
3
  import { CollectChangesOptions, collectChanges } from "./changes.js";
4
4
  import { HistoryState, useAgentHistory, useApprovals } from "./hooks.js";
5
5
  import { AgentToolName, UnchangedStep, actAndCheck, runAgentTool } from "./run-tool.js";
6
- export * from "@ui-sdk/core/agent";
7
- export * from "@ui-sdk/core/history";
8
- declare namespace index_d_exports {
9
- export { AgentToolName, Approval, Approvals, ApprovalsOptions, CollectChangesOptions, HistoryState, UnchangedStep, actAndCheck, collectChanges, createApprovals, runAgentTool, useAgentHistory, useApprovals };
10
- }
11
- export { type AgentToolName, type Approval, type Approvals, type ApprovalsOptions, type CollectChangesOptions, type HistoryState, type UnchangedStep, actAndCheck, collectChanges, createApprovals, index_d_exports, runAgentTool, useAgentHistory, useApprovals };
6
+ export { type AgentAction, type AgentChange, type AgentComponent, type AgentStep, type AgentToolName, type Approval, type Approvals, type ApprovalsOptions, type CollectChangesOptions, type HistoryEntry, type HistoryOptions, type HistoryState, type ObservedChange, type StagedChange, type UnchangedStep, actAndCheck, agentTools, collectChanges, createAgent, createApprovals, createHistory, describeEntry, registerTools, runAgentTool, stageChanges, useAgentHistory, useApprovals };
@@ -1,9 +1,6 @@
1
- import "../_virtual/_rolldown/runtime.js";
2
- import "./ui-sdk.js";
1
+ import { agentTools, createAgent, createHistory, describeEntry, registerTools, stageChanges } from "./ui-sdk.js";
3
2
  import { createApprovals } from "./approvals.js";
4
3
  import { collectChanges } from "./changes.js";
5
4
  import { useAgentHistory, useApprovals } from "./hooks.js";
6
5
  import { actAndCheck, runAgentTool } from "./run-tool.js";
7
- export * from "@ui-sdk/core/agent";
8
- export * from "@ui-sdk/core/history";
9
- export { actAndCheck, collectChanges, createApprovals, runAgentTool, useAgentHistory, useApprovals };
6
+ export { actAndCheck, agentTools, collectChanges, createAgent, createApprovals, createHistory, describeEntry, registerTools, runAgentTool, stageChanges, useAgentHistory, useApprovals };
@@ -1,5 +1,5 @@
1
- import { ui_sdk_d_exports } from "./ui-sdk.js";
2
- type Agent = ReturnType<typeof ui_sdk_d_exports.createAgent>;
1
+ import { createAgent } from "./ui-sdk.js";
2
+ type Agent = ReturnType<typeof createAgent>;
3
3
  type ActInput = Parameters<Agent["act"]>[0];
4
4
  type ActResult = Awaited<ReturnType<Agent["act"]>>;
5
5
  /** The names of the bridge's three tools, as `agentTools` lists them. */
@@ -1,5 +1,3 @@
1
- export * from "@ui-sdk/core/agent";
2
- export * from "@ui-sdk/core/history";
3
- import * as import__ui_sdk_core_agent from "@ui-sdk/core/agent";
4
- import * as import__ui_sdk_core_history from "@ui-sdk/core/history";
5
- export { import__ui_sdk_core_history as ui_sdk_d_exports };
1
+ import { AgentAction, AgentChange, AgentComponent, AgentStep, ObservedChange, agentTools, createAgent, registerTools } from "@ui-sdk/core/agent";
2
+ import { HistoryEntry, HistoryOptions, StagedChange, createHistory, describeEntry, stageChanges } from "@ui-sdk/core/history";
3
+ export { type AgentAction, type AgentChange, type AgentComponent, type AgentStep, type HistoryEntry, type HistoryOptions, type ObservedChange, type StagedChange, agentTools, createAgent, createHistory, describeEntry, registerTools, stageChanges };
@@ -1,3 +1,3 @@
1
- import "../_virtual/_rolldown/runtime.js";
2
- export * from "@ui-sdk/core/agent";
3
- export * from "@ui-sdk/core/history";
1
+ import { agentTools, createAgent, registerTools } from "@ui-sdk/core/agent";
2
+ import { createHistory, describeEntry, stageChanges } from "@ui-sdk/core/history";
3
+ export { agentTools, createAgent, createHistory, describeEntry, registerTools, stageChanges };
@@ -1,3 +1,2 @@
1
- import { InlineEdit, InlineEditOptions, InlineEditReason, ListData, ListFilter, ListGroup, ListHighlightDetails, ListItem, ListSeparator, ListboxBehavior, ListboxBehaviorOptions, ListboxOption, ScrollPickerOptions, ScrollPickerSelectDetails, StickToBottom, StickToBottomOptions, StickToBottomState, VirtualAlign, VirtualItem, Virtualizer, VirtualizerOptions, bindScrollPicker, createInlineEdit, createListbox, createStickToBottom, createVirtualizer } from "./ui-sdk.js";
2
- export * from "@ui-sdk/react/async-options";
3
- export { type InlineEdit, type InlineEditOptions, type InlineEditReason, type ListData, type ListFilter, type ListGroup, type ListHighlightDetails, type ListItem, type ListSeparator, type ListboxBehavior, type ListboxBehaviorOptions, type ListboxOption, type ScrollPickerOptions, type ScrollPickerSelectDetails, type StickToBottom, type StickToBottomOptions, type StickToBottomState, type VirtualAlign, type VirtualItem, type Virtualizer, type VirtualizerOptions, bindScrollPicker, createInlineEdit, createListbox, createStickToBottom, createVirtualizer };
1
+ import { AsyncOptions, AsyncOptionsContext, AsyncOptionsOptions, AsyncOptionsState, AsyncOptionsStatus, InlineEdit, InlineEditOptions, InlineEditReason, ListData, ListFilter, ListGroup, ListHighlightDetails, ListItem, ListSeparator, ListboxBehavior, ListboxBehaviorOptions, ListboxOption, ScrollPickerOptions, ScrollPickerSelectDetails, StickToBottom, StickToBottomOptions, StickToBottomState, VirtualAlign, VirtualItem, Virtualizer, VirtualizerOptions, bindScrollPicker, createAsyncOptions, createInlineEdit, createListbox, createStickToBottom, createVirtualizer, useAsyncOptions } from "./ui-sdk.js";
2
+ export { type AsyncOptions, type AsyncOptionsContext, type AsyncOptionsOptions, type AsyncOptionsState, type AsyncOptionsStatus, type InlineEdit, type InlineEditOptions, type InlineEditReason, type ListData, type ListFilter, type ListGroup, type ListHighlightDetails, type ListItem, type ListSeparator, type ListboxBehavior, type ListboxBehaviorOptions, type ListboxOption, type ScrollPickerOptions, type ScrollPickerSelectDetails, type StickToBottom, type StickToBottomOptions, type StickToBottomState, type VirtualAlign, type VirtualItem, type Virtualizer, type VirtualizerOptions, bindScrollPicker, createAsyncOptions, createInlineEdit, createListbox, createStickToBottom, createVirtualizer, useAsyncOptions };
@@ -1,3 +1 @@
1
- import "../../_virtual/_rolldown/runtime.js";
2
- export { bindScrollPicker, createInlineEdit, createListbox, createStickToBottom, createVirtualizer } from "./ui-sdk.js";
3
- export * from "@ui-sdk/react/async-options";
1
+ export { bindScrollPicker, createAsyncOptions, createInlineEdit, createListbox, createStickToBottom, createVirtualizer, useAsyncOptions } from "./ui-sdk.js";
@@ -1,3 +1,3 @@
1
1
  import { InlineEdit, InlineEditOptions, InlineEditReason, ListData, ListFilter, ListGroup, ListHighlightDetails, ListItem, ListSeparator, ListboxBehavior, ListboxBehaviorOptions, ListboxOption, ScrollPickerOptions, ScrollPickerSelectDetails, StickToBottom, StickToBottomOptions, StickToBottomState, VirtualAlign, VirtualItem, Virtualizer, VirtualizerOptions, bindScrollPicker, createInlineEdit, createListbox, createStickToBottom, createVirtualizer } from "@ui-sdk/core";
2
- export * from "@ui-sdk/react/async-options";
3
- export { type InlineEdit, type InlineEditOptions, type InlineEditReason, type ListData, type ListFilter, type ListGroup, type ListHighlightDetails, type ListItem, type ListSeparator, type ListboxBehavior, type ListboxBehaviorOptions, type ListboxOption, type ScrollPickerOptions, type ScrollPickerSelectDetails, type StickToBottom, type StickToBottomOptions, type StickToBottomState, type VirtualAlign, type VirtualItem, type Virtualizer, type VirtualizerOptions, bindScrollPicker, createInlineEdit, createListbox, createStickToBottom, createVirtualizer };
2
+ import { AsyncOptions, AsyncOptionsContext, AsyncOptionsOptions, AsyncOptionsState, AsyncOptionsStatus, createAsyncOptions, useAsyncOptions } from "@ui-sdk/react/async-options";
3
+ export { type AsyncOptions, type AsyncOptionsContext, type AsyncOptionsOptions, type AsyncOptionsState, type AsyncOptionsStatus, type InlineEdit, type InlineEditOptions, type InlineEditReason, type ListData, type ListFilter, type ListGroup, type ListHighlightDetails, type ListItem, type ListSeparator, type ListboxBehavior, type ListboxBehaviorOptions, type ListboxOption, type ScrollPickerOptions, type ScrollPickerSelectDetails, type StickToBottom, type StickToBottomOptions, type StickToBottomState, type VirtualAlign, type VirtualItem, type Virtualizer, type VirtualizerOptions, bindScrollPicker, createAsyncOptions, createInlineEdit, createListbox, createStickToBottom, createVirtualizer, useAsyncOptions };
@@ -1,3 +1,3 @@
1
- import "../../_virtual/_rolldown/runtime.js";
2
- export { bindScrollPicker, createInlineEdit, createListbox, createStickToBottom, createVirtualizer } from "@ui-sdk/core";
3
- export * from "@ui-sdk/react/async-options";
1
+ import { bindScrollPicker, createInlineEdit, createListbox, createStickToBottom, createVirtualizer } from "@ui-sdk/core";
2
+ import { createAsyncOptions, useAsyncOptions } from "@ui-sdk/react/async-options";
3
+ export { bindScrollPicker, createAsyncOptions, createInlineEdit, createListbox, createStickToBottom, createVirtualizer, useAsyncOptions };
@@ -1,3 +1,2 @@
1
- import { Align, Anchor, LayerDismissReason, Modal, PopupChangeOptions, PopupContentProps, PopupContentState, PopupController, PopupOpenOptions, PopupPartState, PopupPreset, PopupResult, PopupState, PopupTriggerProps, PopupTriggerState, PortalProps, PositionOptions, PositionProps, Side, VirtualAnchor, bindLayer, bindPersistentLayer, createPopup, popupArrow, popupBackdrop, popupClose, popupContent, popupDescription, popupSlots, popupState, popupTitle, popupTrigger, popupViewport, position } from "./ui-sdk.js";
2
- export * from "@ui-sdk/react/overlays";
3
- export { type Align, type Anchor, type LayerDismissReason, type Modal, type PopupChangeOptions, type PopupContentProps, type PopupContentState, type PopupController, type PopupOpenOptions, type PopupPartState, type PopupPreset, type PopupResult, type PopupState, type PopupTriggerProps, type PopupTriggerState, type PortalProps, type PositionOptions, type PositionProps, type Side, type VirtualAnchor, bindLayer, bindPersistentLayer, createPopup, popupArrow, popupBackdrop, popupClose, popupContent, popupDescription, popupSlots, popupState, popupTitle, popupTrigger, popupViewport, position };
1
+ import { Align, Anchor, LayerDismissReason, Modal, OverlayEntry, OverlayHost, OverlayHostProps, Overlays, PopupChangeOptions, PopupContentProps, PopupContentState, PopupController, PopupOpenOptions, PopupPartState, PopupPreset, PopupResult, PopupState, PopupTriggerProps, PopupTriggerState, PortalProps, PositionOptions, PositionProps, Side, VirtualAnchor, bindLayer, bindPersistentLayer, createOverlays, createPopup, overlays, popupArrow, popupBackdrop, popupClose, popupContent, popupDescription, popupSlots, popupState, popupTitle, popupTrigger, popupViewport, position } from "./ui-sdk.js";
2
+ export { type Align, type Anchor, type LayerDismissReason, type Modal, type OverlayEntry, OverlayHost, type OverlayHostProps, type Overlays, type PopupChangeOptions, type PopupContentProps, type PopupContentState, type PopupController, type PopupOpenOptions, type PopupPartState, type PopupPreset, type PopupResult, type PopupState, type PopupTriggerProps, type PopupTriggerState, type PortalProps, type PositionOptions, type PositionProps, type Side, type VirtualAnchor, bindLayer, bindPersistentLayer, createOverlays, createPopup, overlays, popupArrow, popupBackdrop, popupClose, popupContent, popupDescription, popupSlots, popupState, popupTitle, popupTrigger, popupViewport, position };
@@ -1,3 +1 @@
1
- import "../../_virtual/_rolldown/runtime.js";
2
- export { bindLayer, bindPersistentLayer, createPopup, popupArrow, popupBackdrop, popupClose, popupContent, popupDescription, popupSlots, popupState, popupTitle, popupTrigger, popupViewport, position } from "./ui-sdk.js";
3
- export * from "@ui-sdk/react/overlays";
1
+ export { OverlayHost, bindLayer, bindPersistentLayer, createOverlays, createPopup, overlays, popupArrow, popupBackdrop, popupClose, popupContent, popupDescription, popupSlots, popupState, popupTitle, popupTrigger, popupViewport, position } from "./ui-sdk.js";
@@ -1,3 +1,3 @@
1
1
  import { Align, Anchor, LayerDismissReason, Modal, PopupChangeOptions, PopupContentProps, PopupContentState, PopupController, PopupOpenOptions, PopupPartState, PopupPreset, PopupResult, PopupState, PopupTriggerProps, PopupTriggerState, PortalProps, PositionOptions, PositionProps, Side, VirtualAnchor, bindLayer, bindPersistentLayer, createPopup, popupArrow, popupBackdrop, popupClose, popupContent, popupDescription, popupSlots, popupState, popupTitle, popupTrigger, popupViewport, position } from "@ui-sdk/core";
2
- export * from "@ui-sdk/react/overlays";
3
- export { type Align, type Anchor, type LayerDismissReason, type Modal, type PopupChangeOptions, type PopupContentProps, type PopupContentState, type PopupController, type PopupOpenOptions, type PopupPartState, type PopupPreset, type PopupResult, type PopupState, type PopupTriggerProps, type PopupTriggerState, type PortalProps, type PositionOptions, type PositionProps, type Side, type VirtualAnchor, bindLayer, bindPersistentLayer, createPopup, popupArrow, popupBackdrop, popupClose, popupContent, popupDescription, popupSlots, popupState, popupTitle, popupTrigger, popupViewport, position };
2
+ import { OverlayEntry, OverlayHost, OverlayHostProps, Overlays, createOverlays, overlays } from "@ui-sdk/react/overlays";
3
+ export { type Align, type Anchor, type LayerDismissReason, type Modal, type OverlayEntry, OverlayHost, type OverlayHostProps, type Overlays, type PopupChangeOptions, type PopupContentProps, type PopupContentState, type PopupController, type PopupOpenOptions, type PopupPartState, type PopupPreset, type PopupResult, type PopupState, type PopupTriggerProps, type PopupTriggerState, type PortalProps, type PositionOptions, type PositionProps, type Side, type VirtualAnchor, bindLayer, bindPersistentLayer, createOverlays, createPopup, overlays, popupArrow, popupBackdrop, popupClose, popupContent, popupDescription, popupSlots, popupState, popupTitle, popupTrigger, popupViewport, position };
@@ -1,3 +1,3 @@
1
- import "../../_virtual/_rolldown/runtime.js";
2
- export { bindLayer, bindPersistentLayer, createPopup, popupArrow, popupBackdrop, popupClose, popupContent, popupDescription, popupSlots, popupState, popupTitle, popupTrigger, popupViewport, position } from "@ui-sdk/core";
3
- export * from "@ui-sdk/react/overlays";
1
+ import { bindLayer, bindPersistentLayer, createPopup, popupArrow, popupBackdrop, popupClose, popupContent, popupDescription, popupSlots, popupState, popupTitle, popupTrigger, popupViewport, position } from "@ui-sdk/core";
2
+ import { OverlayHost, createOverlays, overlays } from "@ui-sdk/react/overlays";
3
+ export { OverlayHost, bindLayer, bindPersistentLayer, createOverlays, createPopup, overlays, popupArrow, popupBackdrop, popupClose, popupContent, popupDescription, popupSlots, popupState, popupTitle, popupTrigger, popupViewport, position };
@@ -1,3 +1,2 @@
1
- import { ColorScheme, ColorSchemeOptions, ColorSchemeState, ColorSchemeStore, ColorSchemeValue, PointerHover, PointerKind, PointerKindOptions, PointerKindState, PointerKindStore, PointerPrecision, Preference, PreferenceLike, PreferenceOptions, PreferenceStore, SystemColorScheme, colorSchemeOf, createColorScheme, createPointerKind, createPreference, pointerKindOf, preferencesScript } from "./ui-sdk.js";
2
- export * from "@ui-sdk/react/preferences";
3
- export { type ColorScheme, type ColorSchemeOptions, type ColorSchemeState, type ColorSchemeStore, type ColorSchemeValue, type PointerHover, type PointerKind, type PointerKindOptions, type PointerKindState, type PointerKindStore, type PointerPrecision, type Preference, type PreferenceLike, type PreferenceOptions, type PreferenceStore, type SystemColorScheme, colorSchemeOf, createColorScheme, createPointerKind, createPreference, pointerKindOf, preferencesScript };
1
+ import { ColorScheme, ColorSchemeOptions, ColorSchemeState, ColorSchemeStore, ColorSchemeValue, PointerHover, PointerKind, PointerKindOptions, PointerKindState, PointerKindStore, PointerPrecision, Preference, PreferenceLike, PreferenceOptions, PreferenceStore, Preferences, PreferencesProps, SystemColorScheme, colorSchemeOf, createColorScheme, createPointerKind, createPreference, pointerKindOf, preferencesScript, usePreference } from "./ui-sdk.js";
2
+ export { type ColorScheme, type ColorSchemeOptions, type ColorSchemeState, type ColorSchemeStore, type ColorSchemeValue, type PointerHover, type PointerKind, type PointerKindOptions, type PointerKindState, type PointerKindStore, type PointerPrecision, type Preference, type PreferenceLike, type PreferenceOptions, type PreferenceStore, Preferences, type PreferencesProps, type SystemColorScheme, colorSchemeOf, createColorScheme, createPointerKind, createPreference, pointerKindOf, preferencesScript, usePreference };
@@ -1,3 +1 @@
1
- import "../../_virtual/_rolldown/runtime.js";
2
- export { colorSchemeOf, createColorScheme, createPointerKind, createPreference, pointerKindOf, preferencesScript } from "./ui-sdk.js";
3
- export * from "@ui-sdk/react/preferences";
1
+ export { Preferences, colorSchemeOf, createColorScheme, createPointerKind, createPreference, pointerKindOf, preferencesScript, usePreference } from "./ui-sdk.js";
@@ -1,3 +1,3 @@
1
1
  import { ColorScheme, ColorSchemeOptions, ColorSchemeState, ColorSchemeStore, ColorSchemeValue, PointerHover, PointerKind, PointerKindOptions, PointerKindState, PointerKindStore, PointerPrecision, Preference, PreferenceLike, PreferenceOptions, PreferenceStore, SystemColorScheme, colorSchemeOf, createColorScheme, createPointerKind, createPreference, pointerKindOf, preferencesScript } from "@ui-sdk/core";
2
- export * from "@ui-sdk/react/preferences";
3
- export { type ColorScheme, type ColorSchemeOptions, type ColorSchemeState, type ColorSchemeStore, type ColorSchemeValue, type PointerHover, type PointerKind, type PointerKindOptions, type PointerKindState, type PointerKindStore, type PointerPrecision, type Preference, type PreferenceLike, type PreferenceOptions, type PreferenceStore, type SystemColorScheme, colorSchemeOf, createColorScheme, createPointerKind, createPreference, pointerKindOf, preferencesScript };
2
+ import { Preferences as Preferences$1, PreferencesProps, usePreference } from "@ui-sdk/react/preferences";
3
+ export { type ColorScheme, type ColorSchemeOptions, type ColorSchemeState, type ColorSchemeStore, type ColorSchemeValue, type PointerHover, type PointerKind, type PointerKindOptions, type PointerKindState, type PointerKindStore, type PointerPrecision, type Preference, type PreferenceLike, type PreferenceOptions, type PreferenceStore, Preferences$1 as Preferences, type PreferencesProps, type SystemColorScheme, colorSchemeOf, createColorScheme, createPointerKind, createPreference, pointerKindOf, preferencesScript, usePreference };
@@ -1,3 +1,3 @@
1
- import "../../_virtual/_rolldown/runtime.js";
2
- export { colorSchemeOf, createColorScheme, createPointerKind, createPreference, pointerKindOf, preferencesScript } from "@ui-sdk/core";
3
- export * from "@ui-sdk/react/preferences";
1
+ import { colorSchemeOf, createColorScheme, createPointerKind, createPreference, pointerKindOf, preferencesScript } from "@ui-sdk/core";
2
+ import { Preferences as Preferences$1, usePreference } from "@ui-sdk/react/preferences";
3
+ export { Preferences$1 as Preferences, colorSchemeOf, createColorScheme, createPointerKind, createPreference, pointerKindOf, preferencesScript, usePreference };
@@ -1,3 +1,2 @@
1
- import { PanelBinding, animateIn, animateOut, bindFindable, bindPanel, hiddenAttrs, supportsHiddenUntilFound } from "./ui-sdk.js";
2
- export * from "@ui-sdk/core/gesture";
3
- export { type PanelBinding, animateIn, animateOut, bindFindable, bindPanel, hiddenAttrs, supportsHiddenUntilFound };
1
+ import { PanelBinding, animateIn, animateOut, bindFindable, bindPanel, createVelocityTracker, hiddenAttrs, projectDistance, rubberBand, sectorOf, solveSpring, supportsHiddenUntilFound } from "./ui-sdk.js";
2
+ export { type PanelBinding, animateIn, animateOut, bindFindable, bindPanel, createVelocityTracker, hiddenAttrs, projectDistance, rubberBand, sectorOf, solveSpring, supportsHiddenUntilFound };
@@ -1,3 +1 @@
1
- import "../../_virtual/_rolldown/runtime.js";
2
- export { animateIn, animateOut, bindFindable, bindPanel, hiddenAttrs, supportsHiddenUntilFound } from "./ui-sdk.js";
3
- export * from "@ui-sdk/core/gesture";
1
+ export { animateIn, animateOut, bindFindable, bindPanel, createVelocityTracker, hiddenAttrs, projectDistance, rubberBand, sectorOf, solveSpring, supportsHiddenUntilFound } from "./ui-sdk.js";
@@ -1,3 +1,3 @@
1
1
  import { PanelBinding, animateIn, animateOut, bindFindable, bindPanel, hiddenAttrs, supportsHiddenUntilFound } from "@ui-sdk/core";
2
- export * from "@ui-sdk/core/gesture";
3
- export { type PanelBinding, animateIn, animateOut, bindFindable, bindPanel, hiddenAttrs, supportsHiddenUntilFound };
2
+ import { createVelocityTracker, projectDistance, rubberBand, sectorOf, solveSpring } from "@ui-sdk/core/gesture";
3
+ export { type PanelBinding, animateIn, animateOut, bindFindable, bindPanel, createVelocityTracker, hiddenAttrs, projectDistance, rubberBand, sectorOf, solveSpring, supportsHiddenUntilFound };
@@ -1,3 +1,3 @@
1
- import "../../_virtual/_rolldown/runtime.js";
2
- export { animateIn, animateOut, bindFindable, bindPanel, hiddenAttrs, supportsHiddenUntilFound } from "@ui-sdk/core";
3
- export * from "@ui-sdk/core/gesture";
1
+ import { animateIn, animateOut, bindFindable, bindPanel, hiddenAttrs, supportsHiddenUntilFound } from "@ui-sdk/core";
2
+ import { createVelocityTracker, projectDistance, rubberBand, sectorOf, solveSpring } from "@ui-sdk/core/gesture";
3
+ export { animateIn, animateOut, bindFindable, bindPanel, createVelocityTracker, hiddenAttrs, projectDistance, rubberBand, sectorOf, solveSpring, supportsHiddenUntilFound };
@@ -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
  declare const alertVariants: (props?: ({
@@ -7,7 +8,7 @@ declare const alertVariants: (props?: ({
7
8
  type AlertProps = ComponentProps<"div"> & VariantProps<typeof alertVariants>;
8
9
  declare function Alert({ className, variant, role, ...props }: AlertProps): import("react").JSX.Element;
9
10
  /** A `div` by default. Pass `render={<h2 />}` when the page's outline should list it. */
10
- declare function AlertTitle({ className, render, ...props }: index_d_exports.PartProps<"div">): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
11
+ declare function AlertTitle({ className, render, ...props }: PartProps<"div">): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
11
12
  declare function AlertDescription({ className, ...props }: ComponentProps<"div">): import("react").JSX.Element;
12
13
  declare function AlertAction({ className, ...props }: ComponentProps<"div">): import("react").JSX.Element;
13
14
  export { Alert, AlertAction, AlertDescription, type AlertProps, AlertTitle };
@@ -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";
@@ -58,7 +59,7 @@ function Alert(t0) {
58
59
  }
59
60
  /** A `div` by default. Pass `render={<h2 />}` when the page's outline should list it. */
60
61
  function AlertTitle({ className, render, ...props }) {
61
- return (0, core_exports.renderElement)("div", {
62
+ return renderElement("div", {
62
63
  "data-slot": "alert-title",
63
64
  ...props,
64
65
  className: cnState("col-start-1 text-label group-has-[>svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground", className)
@@ -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 { ButtonProps } from "../button/button.js";
4
5
  import { ComponentProps } from "react";
5
6
  type AttachmentState = "idle" | "uploading" | "processing" | "error" | "done";
@@ -37,7 +38,7 @@ declare function AttachmentAction({ className, variant, size, ...props }: Button
37
38
  * has no text of its own, so give it an `aria-label` for what it opens.
38
39
  * `render` makes it a link, or the trigger of a dialog.
39
40
  */
40
- declare function AttachmentTrigger({ className, render, type, ...props }: index_d_exports.PartProps<"button">): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
41
+ declare function AttachmentTrigger({ className, render, type, ...props }: PartProps<"button">): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
41
42
  /**
42
43
  * A row of attachments that scrolls sideways and snaps. Attachments with a
43
44
  * trigger or actions are reached with Tab. A row of attachments with no
@@ -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 { Button } from "../button/button.js";
5
6
  import { c } from "react/compiler-runtime";
@@ -324,7 +325,7 @@ function AttachmentAction(t0) {
324
325
  * `render` makes it a link, or the trigger of a dialog.
325
326
  */
326
327
  function AttachmentTrigger({ className, render, type, ...props }) {
327
- return (0, core_exports.renderElement)("button", {
328
+ return renderElement("button", {
328
329
  "data-slot": "attachment-trigger",
329
330
  type: render ? type : type ?? "button",
330
331
  ...props,
@@ -1,9 +1,10 @@
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
  declare const badgeVariants: (props?: ({
4
5
  variant?: "default" | "destructive" | "ghost" | "link" | "outline" | "secondary" | null | undefined;
5
6
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
- type BadgeProps = index_d_exports.PartProps<"span"> & VariantProps<typeof badgeVariants>;
7
+ type BadgeProps = PartProps<"span"> & VariantProps<typeof badgeVariants>;
7
8
  /**
8
9
  * A short label for a status or a count. `render` makes it a link or a button.
9
10
  * For a link an agent follows, render it as `LinkPart` from `abby/link`:
@@ -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 { cnState, cva } from "../../utilities/cn/index.js";
4
5
  // src/components/badge/badge.tsx
5
6
  const badgeVariants = cva("group/badge inline-flex h-5 w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-full border border-transparent px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-colors focus-ring has-data-[icon=inline-end]:pe-1.5 has-data-[icon=inline-start]:ps-1.5 [&>svg]:pointer-events-none [&>svg]:size-3!", {
@@ -21,7 +22,7 @@ const badgeVariants = cva("group/badge inline-flex h-5 w-fit shrink-0 items-cent
21
22
  * button, render a ui-sdk `Button` that is a real button.
22
23
  */
23
24
  function Badge({ variant, className, render, ...props }) {
24
- return (0, core_exports.renderElement)("span", {
25
+ return renderElement("span", {
25
26
  "data-slot": "badge",
26
27
  "data-variant": variant ?? "default",
27
28
  ...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 { VariantProps } from "../../utilities/cn/index.js";
3
4
  import { ComponentProps } from "react";
4
5
  declare function BubbleGroup({ className, ...props }: ComponentProps<"div">): import("react").JSX.Element;
@@ -10,7 +11,7 @@ type BubbleProps = ComponentProps<"div"> & VariantProps<typeof bubbleVariants> &
10
11
  align?: "start" | "end";
11
12
  };
12
13
  declare function Bubble({ variant, align, className, ...props }: BubbleProps): import("react").JSX.Element;
13
- type BubbleContentProps = index_d_exports.PartProps<"div">;
14
+ type BubbleContentProps = PartProps<"div">;
14
15
  /**
15
16
  * The bubble's surface and text. `render` makes it a link or a button, which
16
17
  * then takes a hover fill and the focus ring.
@@ -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";
@@ -98,7 +99,7 @@ function Bubble(t0) {
98
99
  * then takes a hover fill and the focus ring.
99
100
  */
100
101
  function BubbleContent({ className, render, ...props }) {
101
- return (0, core_exports.renderElement)("div", {
102
+ return renderElement("div", {
102
103
  "data-slot": "bubble-content",
103
104
  ...props,
104
105
  className: cnState("w-fit max-w-full min-w-0 overflow-hidden rounded-3xl border border-transparent px-4 py-2.5 text-chat wrap-break-word group-data-[align=end]/bubble:self-end [button]:text-start [button,a]:transition-colors [button,a]:focus-ring", className)
@@ -1,15 +1,16 @@
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";
5
6
  declare const buttonGroupVariants: (props?: ({
6
7
  orientation?: "horizontal" | "vertical" | null | undefined;
7
8
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
8
- type ButtonGroupProps = index_d_exports.PartProps<"div"> & VariantProps<typeof buttonGroupVariants>;
9
+ type ButtonGroupProps = PartProps<"div"> & VariantProps<typeof buttonGroupVariants>;
9
10
  /** Joins buttons, inputs and triggers into one box. Name it with `aria-label`. */
10
11
  declare function ButtonGroup({ className, orientation, render, ...props }: ButtonGroupProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
11
12
  /** Text or an icon that sits in the group like a button. `render` changes its element. */
12
- declare function ButtonGroupText({ className, render, ...props }: index_d_exports.PartProps<"div">): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
13
+ declare function ButtonGroupText({ className, render, ...props }: PartProps<"div">): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
13
14
  /** A line between two items with no edge of their own, like filled buttons. */
14
15
  declare function ButtonGroupSeparator({ className, orientation, ...props }: ComponentProps<typeof Separator>): import("react").JSX.Element;
15
16
  export { ButtonGroup, type ButtonGroupProps, ButtonGroupSeparator, ButtonGroupText, buttonGroupVariants };
@@ -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 { cnState, cva } from "../../utilities/cn/index.js";
4
5
  import { Separator } from "../separator/separator.js";
5
6
  import { c } from "react/compiler-runtime";
@@ -14,7 +15,7 @@ const buttonGroupVariants = cva("flex w-fit items-stretch *:focus-visible:relati
14
15
  });
15
16
  /** Joins buttons, inputs and triggers into one box. Name it with `aria-label`. */
16
17
  function ButtonGroup({ className, orientation, render, ...props }) {
17
- return (0, core_exports.renderElement)("div", {
18
+ return renderElement("div", {
18
19
  role: "group",
19
20
  "data-slot": "button-group",
20
21
  "data-orientation": orientation ?? "horizontal",
@@ -24,7 +25,7 @@ function ButtonGroup({ className, orientation, render, ...props }) {
24
25
  }
25
26
  /** Text or an icon that sits in the group like a button. `render` changes its element. */
26
27
  function ButtonGroupText({ className, render, ...props }) {
27
- return (0, core_exports.renderElement)("div", {
28
+ return renderElement("div", {
28
29
  "data-slot": "button-group-text",
29
30
  ...props,
30
31
  className: cnState("flex items-center gap-2 rounded-full border border-input bg-muted px-3.5 text-sm font-medium [&_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 { PartProps } from "../../core/ui-sdk.js";
2
+ import "../../core/index.js";
2
3
  import { ComponentProps } from "react";
3
4
  type CardProps = ComponentProps<"div"> & {
4
5
  size?: "default" | "sm";
@@ -6,7 +7,7 @@ type CardProps = ComponentProps<"div"> & {
6
7
  declare function Card({ className, size, ...props }: CardProps): import("react").JSX.Element;
7
8
  declare function CardHeader({ className, ...props }: ComponentProps<"div">): import("react").JSX.Element;
8
9
  /** A `div` by default. Pass `render={<h2 />}` when the page's outline should list it. */
9
- declare function CardTitle({ className, render, ...props }: index_d_exports.PartProps<"div">): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
10
+ declare function CardTitle({ className, render, ...props }: PartProps<"div">): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
10
11
  declare function CardDescription({ className, ...props }: ComponentProps<"div">): import("react").JSX.Element;
11
12
  declare function CardAction({ className, ...props }: ComponentProps<"div">): import("react").JSX.Element;
12
13
  declare function CardContent({ 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 } from "../../utilities/cn/index.js";
4
5
  import { c } from "react/compiler-runtime";
5
6
  import { jsx } from "react/jsx-runtime";
@@ -76,7 +77,7 @@ function CardHeader(t0) {
76
77
  }
77
78
  /** A `div` by default. Pass `render={<h2 />}` when the page's outline should list it. */
78
79
  function CardTitle({ className, render, ...props }) {
79
- return (0, core_exports.renderElement)("div", {
80
+ return renderElement("div", {
80
81
  "data-slot": "card-title",
81
82
  ...props,
82
83
  className: cnState("text-heading-3 group-data-[size=sm]/card:text-heading-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 { ComponentProps } from "react";
4
5
  import { Radio, RadioGroup, createRadioGroupController } from "@ui-sdk/react/radio";
@@ -30,9 +31,9 @@ declare function ChoiceCardsItem({ className, children, ...props }: ComponentPro
30
31
  * group's `aspect`. What fills it fills it to the edge, and `render={<img />}`
31
32
  * makes the frame the image. It grows a little on the chosen card.
32
33
  */
33
- declare function ChoiceCardsMedia({ className, render, ...props }: index_d_exports.PartProps<"span">): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
34
+ declare function ChoiceCardsMedia({ className, render, ...props }: PartProps<"span">): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
34
35
  /** The option's name, under its picture. It is what a screen reader and an agent call the card. */
35
- declare function ChoiceCardsLabel({ className, render, ...props }: index_d_exports.PartProps<"span">): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
36
+ declare function ChoiceCardsLabel({ className, render, ...props }: PartProps<"span">): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
36
37
  /** A line under the label: what the option costs or what it is for. */
37
38
  declare function ChoiceCardsDescription({ className, ...props }: ComponentProps<"span">): import("react").JSX.Element;
38
39
  export { ChoiceCards, type ChoiceCardsColor, ChoiceCardsDescription, ChoiceCardsItem, ChoiceCardsLabel, ChoiceCardsMedia, type ChoiceCardsProps, choiceCardsVariants, createRadioGroupController as createChoiceCardsController };
@@ -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 { Icon } from "../icon/icon.js";
5
6
  import { c } from "react/compiler-runtime";
@@ -185,7 +186,7 @@ function ChoiceCardsItem(t0) {
185
186
  * makes the frame the image. It grows a little on the chosen card.
186
187
  */
187
188
  function ChoiceCardsMedia({ className, render, ...props }) {
188
- return (0, core_exports.renderElement)("span", {
189
+ return renderElement("span", {
189
190
  "aria-hidden": true,
190
191
  "data-slot": "choice-cards-media",
191
192
  ...props,
@@ -196,7 +197,7 @@ function ChoiceCardsMedia({ className, render, ...props }) {
196
197
  function ChoiceCardsLabel(t0) {
197
198
  const { className, render, ...props } = t0;
198
199
  const { labelId } = useItem("ChoiceCardsLabel");
199
- return (0, core_exports.renderElement)("span", {
200
+ return renderElement("span", {
200
201
  id: labelId,
201
202
  "data-slot": "choice-cards-label",
202
203
  ...props,
@@ -1,5 +1,5 @@
1
- import { ChangeDetails } from "../../core/ui-sdk.js";
2
- import { index_d_exports } from "../../core/index.js";
1
+ import { ChangeDetails, PartProps } from "../../core/ui-sdk.js";
2
+ import "../../core/index.js";
3
3
  import { ComponentProps, ReactNode } from "react";
4
4
  import { Button } from "@ui-sdk/react/button";
5
5
  import { Input } from "@ui-sdk/react/input";
@@ -40,7 +40,7 @@ declare function useCommandDock(): {
40
40
  setValue: (value: string) => boolean;
41
41
  submit: () => boolean;
42
42
  };
43
- type CommandDockProps = CommandDockOptions & Omit<index_d_exports.PartProps<"div", CommandDockPartState>, "onSubmit" | "defaultValue"> & {
43
+ type CommandDockProps = CommandDockOptions & Omit<PartProps<"div", CommandDockPartState>, "onSubmit" | "defaultValue"> & {
44
44
  /** How wide the dock is while closed, as a CSS length. `9rem` by default. */
45
45
  closedWidth?: string;
46
46
  /**
@@ -70,7 +70,7 @@ declare function CommandDockTrigger({ className, onClick, children, ...props }:
70
70
  * while closed, folded away and inert, so closing can be seen and the text
71
71
  * and the rows are still there when it opens again.
72
72
  */
73
- declare function CommandDockPanel({ className, ...props }: index_d_exports.PartProps<"div", CommandDockPartState>): import("react").JSX.Element | null;
73
+ declare function CommandDockPanel({ className, ...props }: PartProps<"div", CommandDockPartState>): import("react").JSX.Element | null;
74
74
  type CommandDockInputProps = Omit<ComponentProps<typeof Input>, "value" | "defaultValue" | "onValueChange" | "type"> & {
75
75
  /** The send button's accessible name. Set it in the page's language. */
76
76
  submitLabel?: string;