@case-framework/survey-editor-ui 0.4.2 → 0.5.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 (114) hide show
  1. package/README.md +75 -0
  2. package/dist/item-core-registry.cjs.js +1 -1
  3. package/dist/item-core-registry.cjs.js.map +1 -1
  4. package/dist/item-core-registry.es.js.map +1 -1
  5. package/dist/src/components/c-ui/alert-provider.d.ts +1 -1
  6. package/dist/src/components/c-ui/confirm-dialog.d.ts +1 -1
  7. package/dist/src/components/c-ui/confirm-provider.d.ts +1 -1
  8. package/dist/src/components/c-ui/dot-background.d.ts +2 -2
  9. package/dist/src/components/c-ui/filepicker-dropzone.d.ts +1 -1
  10. package/dist/src/components/common/content-editable-plain.d.ts +1 -1
  11. package/dist/src/components/common/drag-drop-provider.d.ts +7 -0
  12. package/dist/src/components/common/sortable-tree.d.ts +8 -1
  13. package/dist/src/components/rich-text/rich-text-block-editor.d.ts +1 -1
  14. package/dist/src/components/rich-text/rich-text-content-view.d.ts +1 -1
  15. package/dist/src/components/rich-text/rich-text-editor-context.d.ts +1 -1
  16. package/dist/src/components/rich-text-editor/plugins/docked-toolbar-plugin.d.ts +1 -1
  17. package/dist/src/components/rich-text-editor/plugins/end-of-content-editing-area-plugin.d.ts +1 -1
  18. package/dist/src/components/rich-text-editor/plugins/floating-toolbar-plugin.d.ts +1 -1
  19. package/dist/src/components/rich-text-editor/plugins/image-dialog-plugin.d.ts +1 -1
  20. package/dist/src/components/rich-text-editor/plugins/info-box-popover-plugin.d.ts +1 -1
  21. package/dist/src/components/rich-text-editor/plugins/link-popover-plugin.d.ts +1 -1
  22. package/dist/src/components/rich-text-editor/plugins/slash-command-menu-plugin.d.ts +1 -1
  23. package/dist/src/components/rich-text-editor/rich-text-editor.d.ts +1 -1
  24. package/dist/src/components/rich-text-editor/style-control-icon.d.ts +1 -1
  25. package/dist/src/components/ui/alert-dialog.d.ts +12 -12
  26. package/dist/src/components/ui/alert.d.ts +4 -4
  27. package/dist/src/components/ui/badge.d.ts +1 -1
  28. package/dist/src/components/ui/breadcrumb.d.ts +7 -7
  29. package/dist/src/components/ui/button.d.ts +1 -1
  30. package/dist/src/components/ui/calendar.d.ts +2 -2
  31. package/dist/src/components/ui/card.d.ts +7 -7
  32. package/dist/src/components/ui/checkbox.d.ts +1 -1
  33. package/dist/src/components/ui/collapsible.d.ts +3 -3
  34. package/dist/src/components/ui/command.d.ts +9 -9
  35. package/dist/src/components/ui/context-menu.d.ts +15 -15
  36. package/dist/src/components/ui/dialog.d.ts +10 -10
  37. package/dist/src/components/ui/dropdown-menu.d.ts +15 -15
  38. package/dist/src/components/ui/field.d.ts +10 -10
  39. package/dist/src/components/ui/input-group.d.ts +6 -6
  40. package/dist/src/components/ui/input.d.ts +1 -1
  41. package/dist/src/components/ui/kbd.d.ts +2 -2
  42. package/dist/src/components/ui/label.d.ts +1 -1
  43. package/dist/src/components/ui/popover.d.ts +7 -7
  44. package/dist/src/components/ui/progress.d.ts +1 -1
  45. package/dist/src/components/ui/radio-group.d.ts +2 -2
  46. package/dist/src/components/ui/resizable.d.ts +3 -3
  47. package/dist/src/components/ui/scroll-area.d.ts +2 -2
  48. package/dist/src/components/ui/select.d.ts +10 -10
  49. package/dist/src/components/ui/separator.d.ts +1 -1
  50. package/dist/src/components/ui/skeleton.d.ts +1 -1
  51. package/dist/src/components/ui/slider.d.ts +1 -1
  52. package/dist/src/components/ui/sonner.d.ts +1 -1
  53. package/dist/src/components/ui/switch.d.ts +1 -1
  54. package/dist/src/components/ui/tabs.d.ts +4 -4
  55. package/dist/src/components/ui/textarea.d.ts +1 -1
  56. package/dist/src/components/ui/toggle-group.d.ts +2 -2
  57. package/dist/src/components/ui/toggle.d.ts +1 -1
  58. package/dist/src/components/ui/tooltip.d.ts +4 -4
  59. package/dist/src/index.d.ts +1 -1
  60. package/dist/src/modules/default-item-registry/items/form/editor/field-item-preview.d.ts +1 -1
  61. package/dist/src/modules/default-item-registry/items/form/editor/field-type-shared.d.ts +7 -7
  62. package/dist/src/modules/default-item-registry/items/form/editor/simple-field-editor.d.ts +1 -1
  63. package/dist/src/modules/default-item-registry/shared/preview/question-header.d.ts +1 -1
  64. package/dist/src/modules/survey-editor/assets/survey-image-asset-manager.d.ts +1 -1
  65. package/dist/src/modules/survey-editor/editor-card/add-items/hooks/use-add-item-actions.d.ts +2 -6
  66. package/dist/src/modules/survey-editor/editor-card/add-items/hooks/use-add-item-catalog.d.ts +6 -0
  67. package/dist/src/modules/survey-editor/editor-card/add-items/hooks/use-insert-item-preset.d.ts +18 -0
  68. package/dist/src/modules/survey-editor/editor-card/add-items/item-preset-utils.d.ts +6 -0
  69. package/dist/src/modules/survey-editor/editor-card/add-items/views/item-type-grid-view.d.ts +1 -1
  70. package/dist/src/modules/survey-editor/editor-card/copy-item-dropdown-menu.d.ts +1 -1
  71. package/dist/src/modules/survey-editor/editor-card/delete-item-dropdown-menu.d.ts +1 -1
  72. package/dist/src/modules/survey-editor/editor-card/group-items.d.ts +1 -1
  73. package/dist/src/modules/survey-editor/editor-card/item-authoring-state-preview.d.ts +2 -2
  74. package/dist/src/modules/survey-editor/editor-card/item-color-menu.d.ts +2 -2
  75. package/dist/src/modules/survey-editor/editor-card/item-expression-overview.d.ts +3 -3
  76. package/dist/src/modules/survey-editor/editor-card/item-key-editor.d.ts +1 -1
  77. package/dist/src/modules/survey-editor/editor-card/item-preview.d.ts +1 -1
  78. package/dist/src/modules/survey-editor/editor-card/item-type-icon-with-tooltip.d.ts +1 -1
  79. package/dist/src/modules/survey-editor/editor-card/recommended-item-types.d.ts +1 -1
  80. package/dist/src/modules/survey-editor/index.d.ts +1 -1
  81. package/dist/src/modules/survey-editor/preview-viewport-toggle.d.ts +1 -1
  82. package/dist/src/modules/survey-editor/primitives/input-with-ai-popover.d.ts +1 -1
  83. package/dist/src/modules/survey-editor/routes/editor/_components/assistant-authoring-lock.d.ts +2 -2
  84. package/dist/src/modules/survey-editor/routes/editor/_components/editor-assistant-slot.d.ts +2 -2
  85. package/dist/src/modules/survey-editor/routes/editor/_components/editor-mode-switch.d.ts +1 -1
  86. package/dist/src/modules/survey-editor/routes/editor/_components/editor-workspace.d.ts +2 -2
  87. package/dist/src/modules/survey-editor/routes/editor/_components/footer.d.ts +1 -1
  88. package/dist/src/modules/survey-editor/routes/editor/_components/main.d.ts +0 -2
  89. package/dist/src/modules/survey-editor/routes/editor/_components/workspace-panel-toggles.d.ts +23 -0
  90. package/dist/src/modules/survey-editor/routes/editor/asset-manager/index.d.ts +1 -1
  91. package/dist/src/modules/survey-editor/routes/editor/index.d.ts +0 -2
  92. package/dist/src/modules/survey-editor/routes/editor/item-editor/_components/item-drag-drop.d.ts +23 -0
  93. package/dist/src/modules/survey-editor/routes/editor/item-editor/_components/item-editor-toolbar/language-picker.d.ts +1 -1
  94. package/dist/src/modules/survey-editor/routes/editor/item-editor/_components/survey-item-toolbox.d.ts +1 -0
  95. package/dist/src/modules/survey-editor/routes/editor/item-editor/_components/survey-left-panel.d.ts +1 -0
  96. package/dist/src/modules/survey-editor/routes/editor/item-editor/_components/survey-outline.d.ts +2 -2
  97. package/dist/src/modules/survey-editor/routes/editor/item-editor/_components/survey-workspace.d.ts +1 -3
  98. package/dist/src/modules/survey-editor/routes/editor/item-editor/index.d.ts +1 -5
  99. package/dist/src/modules/survey-editor/routes/editor/preview-mode/index.d.ts +1 -3
  100. package/dist/src/modules/survey-editor/routes/editor/preview-mode/page-break-divider.d.ts +1 -1
  101. package/dist/src/modules/survey-editor/routes/editor/preview-mode/preview-controls.d.ts +1 -1
  102. package/dist/src/modules/survey-editor/routes/editor/preview-mode/survey-preview-canvas.d.ts +1 -1
  103. package/dist/src/modules/survey-editor/routes/editor/preview-mode/survey-preview-item.d.ts +1 -1
  104. package/dist/src/modules/survey-editor/routes/editor/translation-mode/index.d.ts +1 -1
  105. package/dist/src/modules/survey-editor/routes/editor/translation-mode/translation-left-panel.d.ts +5 -0
  106. package/dist/src/modules/survey-editor/survey-editor.d.ts +19 -2
  107. package/dist/survey-editor-defaults.css +14 -0
  108. package/dist/survey-editor-ui.cjs.js +60 -60
  109. package/dist/survey-editor-ui.cjs.js.map +1 -1
  110. package/dist/survey-editor-ui.css +2 -2
  111. package/dist/survey-editor-ui.es.js +14582 -14071
  112. package/dist/survey-editor-ui.es.js.map +1 -1
  113. package/package.json +8 -8
  114. package/dist/src/modules/survey-editor/routes/editor/item-editor/_components/item-editor-toolbar/item-editor-toolbar.d.ts +0 -6
package/README.md CHANGED
@@ -6,6 +6,61 @@ rendering is provided by the package dependency `@case-framework/survey-ui`.
6
6
  For repository development and custom item registration, see
7
7
  [Custom survey items](https://github.com/case-framework/case-survey-toolkit/blob/main/packages/survey-editor-ui/docs/custom-items.md).
8
8
 
9
+ ## Integrating `SurveyEditor` into a host application
10
+
11
+ `SurveyEditor` deliberately does not render application-level controls such as
12
+ Save or Back. The host owns persistence, routing, and its header; the editor
13
+ owns survey mutations and undo/redo history.
14
+
15
+ Use `controllerRef` for host-triggered commands and `onHostStateChange` to keep
16
+ host controls in sync with the editor:
17
+
18
+ ```tsx
19
+ import {
20
+ SurveyEditor,
21
+ type SurveyEditorController,
22
+ type SurveyEditorHostState,
23
+ } from "@case-framework/survey-editor-ui";
24
+ import { useRef, useState } from "react";
25
+
26
+ const controllerRef = useRef<SurveyEditorController | null>(null);
27
+ const [editorStatus, setEditorStatus] = useState<SurveyEditorHostState | null>(null);
28
+
29
+ const save = async () => {
30
+ const state = controllerRef.current?.getSerializedState();
31
+ if (!state) return;
32
+
33
+ await saveSurvey(state);
34
+ };
35
+
36
+ return (
37
+ <>
38
+ <HostHeader
39
+ saveDisabled={!editorStatus?.dirty}
40
+ undoDisabled={!editorStatus?.canUndo}
41
+ redoDisabled={!editorStatus?.canRedo}
42
+ onSave={save}
43
+ onUndo={() => controllerRef.current?.undo()}
44
+ onRedo={() => controllerRef.current?.redo()}
45
+ />
46
+ <SurveyEditor
47
+ initialEditorState={initialEditorState}
48
+ controllerRef={controllerRef}
49
+ onHostStateChange={setEditorStatus}
50
+ onEditorStateChange={persistEditorState}
51
+ />
52
+ </>
53
+ );
54
+ ```
55
+
56
+ `onHostStateChange` is immediate and reports `dirty`, `canUndo`, `canRedo`,
57
+ `readOnly`, `revision`, and `sessionId`. `onEditorStateChange` is the
58
+ serializable state notification and remains appropriate for autosave or local
59
+ draft persistence; configure `persistDebounceMs` when needed.
60
+
61
+ The editor retains its own Cmd/Ctrl+Z and Cmd/Ctrl+Shift+Z undo/redo shortcuts.
62
+ Register Cmd/Ctrl+S in the host if the host supplies Save.
63
+
9
64
  ## SurveyEditor styling in a host project
10
65
 
11
66
  ### Tailwind CSS v4 / shadcn host
@@ -53,6 +108,26 @@ Override the editor-specific CSS variables on the `.survey-editor` scope in the
53
108
  Available editor-scoped variables:
54
109
 
55
110
  - `--surface-bg-color`
111
+ - `--survey-editor-workspace-radius` (default: `0.75rem`)
112
+ - `--survey-editor-workspace-border-top-width` (default: `1px`)
113
+ - `--survey-editor-footer-padding-inline` (default: `0px`)
114
+ - `--survey-editor-footer-padding-bottom` (default: `0px`)
115
+
116
+ ### Edge-to-edge workspace integration
117
+
118
+ For an editor mounted directly below a host header, override the outer radius
119
+ and top border so the host header's bottom border remains the only separator.
120
+ Footer controls can retain a host-sized horizontal inset without reintroducing
121
+ padding around the editor canvas:
122
+
123
+ ```css
124
+ .my-editor-host .survey-editor {
125
+ --survey-editor-workspace-radius: 0px;
126
+ --survey-editor-workspace-border-top-width: 0px;
127
+ --survey-editor-footer-padding-inline: 16px;
128
+ --survey-editor-footer-padding-bottom: 4px;
129
+ }
130
+ ```
56
131
 
57
132
  The editor uses the host's shared shadcn theme tokens, including `--background`,
58
133
  `--foreground`, `--card`, `--primary`, `--muted`, `--accent`, `--border`,
@@ -1,2 +1,2 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`./survey-editor-ui.cjs.js`);let e=require(`@case-framework/survey-ui`);var t={choiceItem:e.ChoiceItemCore,formItem:e.FormItemCore,infoItem:e.InfoItemCore};exports.ChoiceItemCore=e.ChoiceItemCore,exports.FormItemCore=e.FormItemCore,exports.InfoItemCore=e.InfoItemCore,exports.defaultItemCoreRegistry=t;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require("@case-framework/survey-ui");var t={choiceItem:e.ChoiceItemCore,formItem:e.FormItemCore,infoItem:e.InfoItemCore};exports.ChoiceItemCore=e.ChoiceItemCore,exports.FormItemCore=e.FormItemCore,exports.InfoItemCore=e.InfoItemCore,exports.defaultItemCoreRegistry=t;
2
2
  //# sourceMappingURL=item-core-registry.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"item-core-registry.cjs.js","names":[],"sources":["../src/item-core-registry.ts"],"sourcesContent":["import type { ItemTypeRegistry } from \"@case-framework/survey-core\";\nimport { ChoiceItemCore, FormItemCore, InfoItemCore } from \"@case-framework/survey-ui\";\n\nexport const defaultItemCoreRegistry: ItemTypeRegistry = {\n choiceItem: ChoiceItemCore,\n formItem: FormItemCore,\n infoItem: InfoItemCore,\n};\n\nexport { ChoiceItemCore, FormItemCore, InfoItemCore };\n"],"mappings":"mJAGA,IAAa,EAA4C,CACvD,WAAY,EAAA,eACZ,SAAU,EAAA,aACV,SAAU,EAAA,aACX"}
1
+ {"version":3,"file":"item-core-registry.cjs.js","names":[],"sources":["../src/item-core-registry.ts"],"sourcesContent":["import type { ItemTypeRegistry } from \"@case-framework/survey-core\";\nimport { ChoiceItemCore, FormItemCore, InfoItemCore } from \"@case-framework/survey-ui\";\n\nexport const defaultItemCoreRegistry: ItemTypeRegistry = {\n choiceItem: ChoiceItemCore,\n formItem: FormItemCore,\n infoItem: InfoItemCore,\n};\n\nexport { ChoiceItemCore, FormItemCore, InfoItemCore };\n"],"mappings":"8GAGA,IAAa,EAA4C,CACvD,WAAY,EAAA,eACZ,SAAU,EAAA,aACV,SAAU,EAAA,YACZ"}
@@ -1 +1 @@
1
- {"version":3,"file":"item-core-registry.es.js","names":[],"sources":["../src/item-core-registry.ts"],"sourcesContent":["import type { ItemTypeRegistry } from \"@case-framework/survey-core\";\nimport { ChoiceItemCore, FormItemCore, InfoItemCore } from \"@case-framework/survey-ui\";\n\nexport const defaultItemCoreRegistry: ItemTypeRegistry = {\n choiceItem: ChoiceItemCore,\n formItem: FormItemCore,\n infoItem: InfoItemCore,\n};\n\nexport { ChoiceItemCore, FormItemCore, InfoItemCore };\n"],"mappings":";;AAGA,IAAa,IAA4C;CACvD,YAAY;CACZ,UAAU;CACV,UAAU;CACX"}
1
+ {"version":3,"file":"item-core-registry.es.js","names":[],"sources":["../src/item-core-registry.ts"],"sourcesContent":["import type { ItemTypeRegistry } from \"@case-framework/survey-core\";\nimport { ChoiceItemCore, FormItemCore, InfoItemCore } from \"@case-framework/survey-ui\";\n\nexport const defaultItemCoreRegistry: ItemTypeRegistry = {\n choiceItem: ChoiceItemCore,\n formItem: FormItemCore,\n infoItem: InfoItemCore,\n};\n\nexport { ChoiceItemCore, FormItemCore, InfoItemCore };\n"],"mappings":";;AAGA,IAAa,IAA4C;CACvD,YAAY;CACZ,UAAU;CACV,UAAU;AACZ"}
@@ -14,5 +14,5 @@ export interface AlertApi {
14
14
  }
15
15
  export declare const AlertDialogProvider: ({ children }: {
16
16
  children: ReactNode;
17
- }) => import("react/jsx-runtime").JSX.Element;
17
+ }) => import("react").JSX.Element;
18
18
  export declare const useAlert: () => AlertApi;
@@ -15,5 +15,5 @@ interface ConfirmDialogProps {
15
15
  isOpen: boolean;
16
16
  requireConfirmationInput?: RequireConfirmationInput;
17
17
  }
18
- declare const ConfirmDialog: (props: ConfirmDialogProps) => import("react/jsx-runtime").JSX.Element;
18
+ declare const ConfirmDialog: (props: ConfirmDialogProps) => import("react").JSX.Element;
19
19
  export default ConfirmDialog;
@@ -11,5 +11,5 @@ interface ConfirmOptions {
11
11
  }
12
12
  export declare const ConfirmDialogProvider: ({ children }: {
13
13
  children: ReactNode;
14
- }) => import("react/jsx-runtime").JSX.Element;
14
+ }) => import("react").JSX.Element;
15
15
  export declare const useConfirm: () => (options: ConfirmOptions) => Promise<boolean>;
@@ -45,7 +45,7 @@ declare const dotBackgroundSpacingVariants: {
45
45
  type DotBackgroundVariant = keyof typeof dotBackgroundColorVariants;
46
46
  type DotBackgroundSpacingVariant = keyof typeof dotBackgroundSpacingVariants;
47
47
  declare const dotBackgroundVariants: (props?: ({
48
- variant?: "default" | "secondary" | "accent" | "custom" | "muted" | "card" | null | undefined;
48
+ variant?: "default" | "secondary" | "accent" | "custom" | "card" | "muted" | null | undefined;
49
49
  spacing?: "default" | "custom" | "dense" | "loose" | "relaxed" | null | undefined;
50
50
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
51
51
  type DotBackgroundStyle = React.CSSProperties & {
@@ -67,6 +67,6 @@ type DotBackgroundProps = Omit<React.ComponentProps<"div">, "style"> & {
67
67
  vars?: DotBackgroundVars;
68
68
  style?: DotBackgroundStyle;
69
69
  };
70
- declare function DotBackground({ asChild, variant, spacing, vars, className, style, ...props }: DotBackgroundProps): import("react/jsx-runtime").JSX.Element;
70
+ declare function DotBackground({ asChild, variant, spacing, vars, className, style, ...props }: DotBackgroundProps): React.JSX.Element;
71
71
  export { DotBackground, dotBackgroundColorVariants, dotBackgroundSpacingVariants, dotBackgroundVariants, };
72
72
  export type { DotBackgroundProps, DotBackgroundSpacingVariant, DotBackgroundStyle, DotBackgroundVariant, DotBackgroundVars, };
@@ -34,5 +34,5 @@ export interface FilepickerDropzoneProps extends Omit<React.ComponentProps<typeo
34
34
  onChange?: (files: readonly FileWithPath[]) => void;
35
35
  onDropRejected?: (fileRejections: FileRejection[]) => void;
36
36
  }
37
- declare function FilepickerDropzone({ id, name, label, description, error, accept, multiple, disabled, required, maxFiles, maxSize, minSize, icon, className, labelClassName, contentClassName, descriptionClassName, errorClassName, dropzoneClassName, labels, onChange, onDropRejected, ...props }: FilepickerDropzoneProps): import("react/jsx-runtime").JSX.Element;
37
+ declare function FilepickerDropzone({ id, name, label, description, error, accept, multiple, disabled, required, maxFiles, maxSize, minSize, icon, className, labelClassName, contentClassName, descriptionClassName, errorClassName, dropzoneClassName, labels, onChange, onDropRejected, ...props }: FilepickerDropzoneProps): import("react").JSX.Element;
38
38
  export { FilepickerDropzone };
@@ -14,4 +14,4 @@ export interface ContentEditablePlainProps {
14
14
  * Plain-text contenteditable: line breaks allowed, paste stripped to text only.
15
15
  * Syncs `value` from props only while unfocused to avoid clobbering the caret.
16
16
  */
17
- export declare function ContentEditablePlain({ id, value, placeholder, className, "aria-label": ariaLabel, onChange, onFocus, onBlur, onKeyDown, }: ContentEditablePlainProps): import("react/jsx-runtime").JSX.Element;
17
+ export declare function ContentEditablePlain({ id, value, placeholder, className, "aria-label": ariaLabel, onChange, onFocus, onBlur, onKeyDown, }: ContentEditablePlainProps): import("react").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { DragDropProvider as DndKitDragDropProvider } from '@dnd-kit/react';
2
+ import { ComponentProps, FC, ReactNode } from 'react';
3
+ type DragDropProviderProps = Omit<ComponentProps<typeof DndKitDragDropProvider>, "children"> & {
4
+ children?: ReactNode;
5
+ };
6
+ export declare const DragDropProvider: FC<DragDropProviderProps>;
7
+ export {};
@@ -36,6 +36,8 @@ export interface SortableTreeEmptyGroupProps<T> {
36
36
  parentId: string;
37
37
  depth: number;
38
38
  indent: number;
39
+ isDropTarget: boolean;
40
+ isProjectedDropTarget: boolean;
39
41
  }
40
42
  export interface SortableTreeProps<T> {
41
43
  items: readonly T[];
@@ -55,5 +57,10 @@ export interface SortableTreeProps<T> {
55
57
  indent?: number;
56
58
  className?: string;
57
59
  levelClassName?: string;
60
+ dragType?: string;
61
+ isExternalDragData?: (data: unknown) => boolean;
62
+ canDropExternal?: (data: unknown, to: SortableTreePosition) => boolean;
63
+ onExternalDrop?: (data: unknown, to: SortableTreePosition) => void;
58
64
  }
59
- export declare function SortableTree<T>({ items, rootId, getId, getChildren, renderItem, onMove, isBranch, canDrag, canDrop, expandedIds, defaultExpandedIds, onExpandedChange, renderEmptyGroup, ariaLabel, indent, className, levelClassName, }: SortableTreeProps<T>): import("react/jsx-runtime").JSX.Element;
65
+ export declare function SortableTreeContent<T>({ items, rootId, getId, getChildren, renderItem, onMove, isBranch, canDrag, canDrop, expandedIds, defaultExpandedIds, onExpandedChange, renderEmptyGroup, ariaLabel, indent, className, levelClassName, dragType, isExternalDragData, canDropExternal, onExternalDrop, }: SortableTreeProps<T>): import("react").JSX.Element;
66
+ export declare function SortableTree<T>(props: SortableTreeProps<T>): import("react").JSX.Element;
@@ -5,4 +5,4 @@ export interface RichTextBlockEditorProps extends RichTextEditorProps {
5
5
  resolveImageAssetUrl?: (assetId: string) => string | undefined;
6
6
  imageAssets?: RichTextImageAssetOption[];
7
7
  }
8
- export declare function RichTextBlockEditor({ wrapperClassName, surfaceClassName, contentClassName, placeholderClassName, ...props }: RichTextBlockEditorProps): import("react/jsx-runtime").JSX.Element;
8
+ export declare function RichTextBlockEditor({ wrapperClassName, surfaceClassName, contentClassName, placeholderClassName, ...props }: RichTextBlockEditorProps): import("react").JSX.Element;
@@ -12,4 +12,4 @@ export interface RichTextContentViewProps {
12
12
  /** Semantic level offset applied before clamping. For example, 1 renders stored h1/h2 as h2/h3. */
13
13
  headingLevelOffset?: number;
14
14
  }
15
- export declare function RichTextContentView({ content, className, paragraphClassName, resolveImageAssetUrl, singleLine, singleLineNewlineIndicator, minHeadingLevel, headingLevelOffset, }: RichTextContentViewProps): import("react/jsx-runtime").JSX.Element | null;
15
+ export declare function RichTextContentView({ content, className, paragraphClassName, resolveImageAssetUrl, singleLine, singleLineNewlineIndicator, minHeadingLevel, headingLevelOffset, }: RichTextContentViewProps): import("react").JSX.Element | null;
@@ -18,6 +18,6 @@ interface RichTextEditorContextValue {
18
18
  export declare function RichTextEditorContextProvider({ value, children, }: {
19
19
  value: RichTextEditorContextValue;
20
20
  children: React.ReactNode;
21
- }): import("react/jsx-runtime").JSX.Element;
21
+ }): import("react").JSX.Element;
22
22
  export declare function useRichTextEditorContext(): RichTextEditorContextValue;
23
23
  export {};
@@ -16,4 +16,4 @@ export declare function DockedToolbarPlugin({ editable, visibility, position, li
16
16
  infoBoxesEnabled: boolean;
17
17
  imagesEnabled: boolean;
18
18
  separatorsEnabled: boolean;
19
- }): import("react/jsx-runtime").JSX.Element | null;
19
+ }): import("react").JSX.Element | null;
@@ -3,4 +3,4 @@
3
3
  * trailing paragraph or creates one, without persisting a placeholder paragraph
4
4
  * merely because the editor was opened.
5
5
  */
6
- export declare function EndOfContentEditingAreaPlugin(): import("react/jsx-runtime").JSX.Element | null;
6
+ export declare function EndOfContentEditingAreaPlugin(): import("react").JSX.Element | null;
@@ -8,4 +8,4 @@ export declare function FloatingToolbarPlugin({ editable, linksEnabled, blockAli
8
8
  toolbarClassName?: string;
9
9
  styleControls: RichTextStyleControl[];
10
10
  templateVariables: RichTextTemplateVariable[];
11
- }): import("react/jsx-runtime").JSX.Element | null;
11
+ }): import("react").JSX.Element | null;
@@ -1,4 +1,4 @@
1
1
  export declare function ImageDialogPlugin({ editable, enabled }: {
2
2
  editable: boolean;
3
3
  enabled: boolean;
4
- }): import("react/jsx-runtime").JSX.Element;
4
+ }): import("react").JSX.Element;
@@ -3,4 +3,4 @@ export declare function InfoBoxPopoverPlugin({ editable, enabled, surfaceRef, }:
3
3
  editable: boolean;
4
4
  enabled: boolean;
5
5
  surfaceRef: RefObject<HTMLDivElement | null>;
6
- }): import("react/jsx-runtime").JSX.Element;
6
+ }): import("react").JSX.Element;
@@ -3,4 +3,4 @@ export declare function LinkPopoverPlugin({ editable, enabled, surfaceRef, }: {
3
3
  editable: boolean;
4
4
  enabled: boolean;
5
5
  surfaceRef: RefObject<HTMLDivElement | null>;
6
- }): import("react/jsx-runtime").JSX.Element;
6
+ }): import("react").JSX.Element;
@@ -12,4 +12,4 @@ export declare function SlashCommandMenuPlugin({ editable, linksEnabled, bulletL
12
12
  styleControls: RichTextStyleControl[];
13
13
  templateVariables: RichTextTemplateVariable[];
14
14
  commandMenuClassName?: string;
15
- }): import("react/jsx-runtime").JSX.Element | null;
15
+ }): import("react").JSX.Element | null;
@@ -49,4 +49,4 @@ export interface RichTextEditorProps {
49
49
  onKeyDown?: KeyboardEventHandler<HTMLDivElement>;
50
50
  onKeyDownCapture?: KeyboardEventHandler<HTMLDivElement>;
51
51
  }
52
- export declare function RichTextEditor({ id, value, placeholder, autoFocus, autoFocusSelection, editable, wrapperClassName, surfaceClassName, contentClassName, endOfContentEditingArea, placeholderClassName, toolbarClassName, toolbarMode, dockedToolbarVisibility, dockedToolbarPosition, commandMenuClassName, styleControls, templateVariables, editorVariant, contentPolicy, resolveImageAssetUrl, imageAssets, registerImageAsset, imageAssetDeletion, linksEnabled, "aria-label": ariaLabel, onChange, onFocus, onBlur, onKeyDown, onKeyDownCapture, }: RichTextEditorProps): import("react/jsx-runtime").JSX.Element;
52
+ export declare function RichTextEditor({ id, value, placeholder, autoFocus, autoFocusSelection, editable, wrapperClassName, surfaceClassName, contentClassName, endOfContentEditingArea, placeholderClassName, toolbarClassName, toolbarMode, dockedToolbarVisibility, dockedToolbarPosition, commandMenuClassName, styleControls, templateVariables, editorVariant, contentPolicy, resolveImageAssetUrl, imageAssets, registerImageAsset, imageAssetDeletion, linksEnabled, "aria-label": ariaLabel, onChange, onFocus, onBlur, onKeyDown, onKeyDownCapture, }: RichTextEditorProps): import("react").JSX.Element;
@@ -2,4 +2,4 @@ import { RichTextStyleControl } from './rich-text-editor-utils';
2
2
  export declare function StyleControlIcon({ control, variant, }: {
3
3
  control: RichTextStyleControl;
4
4
  variant: "toolbar" | "menu";
5
- }): import("react/jsx-runtime").JSX.Element;
5
+ }): import("react").JSX.Element;
@@ -1,18 +1,18 @@
1
1
  import { AlertDialog as AlertDialogPrimitive } from 'radix-ui';
2
2
  import { Button } from '../../../components/ui/button';
3
3
  import * as React from "react";
4
- declare function AlertDialog({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
5
- declare function AlertDialogTrigger({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
6
- declare function AlertDialogPortal({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
7
- declare function AlertDialogOverlay({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Overlay>): import("react/jsx-runtime").JSX.Element;
4
+ declare function AlertDialog({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Root>): React.JSX.Element;
5
+ declare function AlertDialogTrigger({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Trigger>): React.JSX.Element;
6
+ declare function AlertDialogPortal({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Portal>): React.JSX.Element;
7
+ declare function AlertDialogOverlay({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Overlay>): React.JSX.Element;
8
8
  declare function AlertDialogContent({ className, size, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Content> & {
9
9
  size?: "default" | "sm";
10
- }): import("react/jsx-runtime").JSX.Element;
11
- declare function AlertDialogHeader({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
12
- declare function AlertDialogFooter({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
13
- declare function AlertDialogMedia({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
14
- declare function AlertDialogTitle({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Title>): import("react/jsx-runtime").JSX.Element;
15
- declare function AlertDialogDescription({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Description>): import("react/jsx-runtime").JSX.Element;
16
- declare function AlertDialogAction({ className, variant, size, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Action> & Pick<React.ComponentProps<typeof Button>, "variant" | "size">): import("react/jsx-runtime").JSX.Element;
17
- declare function AlertDialogCancel({ className, variant, size, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Cancel> & Pick<React.ComponentProps<typeof Button>, "variant" | "size">): import("react/jsx-runtime").JSX.Element;
10
+ }): React.JSX.Element;
11
+ declare function AlertDialogHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
12
+ declare function AlertDialogFooter({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
13
+ declare function AlertDialogMedia({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
14
+ declare function AlertDialogTitle({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Title>): React.JSX.Element;
15
+ declare function AlertDialogDescription({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Description>): React.JSX.Element;
16
+ declare function AlertDialogAction({ className, variant, size, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Action> & Pick<React.ComponentProps<typeof Button>, "variant" | "size">): React.JSX.Element;
17
+ declare function AlertDialogCancel({ className, variant, size, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Cancel> & Pick<React.ComponentProps<typeof Button>, "variant" | "size">): React.JSX.Element;
18
18
  export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, };
@@ -3,8 +3,8 @@ import * as React from "react";
3
3
  declare const alertVariants: (props?: ({
4
4
  variant?: "default" | "destructive" | null | undefined;
5
5
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
6
- declare function Alert({ className, variant, ...props }: React.ComponentProps<"div"> & VariantProps<typeof alertVariants>): import("react/jsx-runtime").JSX.Element;
7
- declare function AlertTitle({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
8
- declare function AlertDescription({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
9
- declare function AlertAction({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
6
+ declare function Alert({ className, variant, ...props }: React.ComponentProps<"div"> & VariantProps<typeof alertVariants>): React.JSX.Element;
7
+ declare function AlertTitle({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
8
+ declare function AlertDescription({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
9
+ declare function AlertAction({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
10
10
  export { Alert, AlertTitle, AlertDescription, AlertAction };
@@ -5,5 +5,5 @@ declare const badgeVariants: (props?: ({
5
5
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
6
6
  declare function Badge({ className, variant, asChild, ...props }: React.ComponentProps<"span"> & VariantProps<typeof badgeVariants> & {
7
7
  asChild?: boolean;
8
- }): import("react/jsx-runtime").JSX.Element;
8
+ }): React.JSX.Element;
9
9
  export { Badge, badgeVariants };
@@ -1,11 +1,11 @@
1
1
  import * as React from "react";
2
- declare function Breadcrumb({ className, ...props }: React.ComponentProps<"nav">): import("react/jsx-runtime").JSX.Element;
3
- declare function BreadcrumbList({ className, ...props }: React.ComponentProps<"ol">): import("react/jsx-runtime").JSX.Element;
4
- declare function BreadcrumbItem({ className, ...props }: React.ComponentProps<"li">): import("react/jsx-runtime").JSX.Element;
2
+ declare function Breadcrumb({ className, ...props }: React.ComponentProps<"nav">): React.JSX.Element;
3
+ declare function BreadcrumbList({ className, ...props }: React.ComponentProps<"ol">): React.JSX.Element;
4
+ declare function BreadcrumbItem({ className, ...props }: React.ComponentProps<"li">): React.JSX.Element;
5
5
  declare function BreadcrumbLink({ asChild, className, ...props }: React.ComponentProps<"a"> & {
6
6
  asChild?: boolean;
7
- }): import("react/jsx-runtime").JSX.Element;
8
- declare function BreadcrumbPage({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
9
- declare function BreadcrumbSeparator({ children, className, ...props }: React.ComponentProps<"li">): import("react/jsx-runtime").JSX.Element;
10
- declare function BreadcrumbEllipsis({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
7
+ }): React.JSX.Element;
8
+ declare function BreadcrumbPage({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
9
+ declare function BreadcrumbSeparator({ children, className, ...props }: React.ComponentProps<"li">): React.JSX.Element;
10
+ declare function BreadcrumbEllipsis({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
11
11
  export { Breadcrumb, BreadcrumbList, BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, BreadcrumbEllipsis, };
@@ -6,5 +6,5 @@ declare const buttonVariants: (props?: ({
6
6
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
7
  declare function Button({ className, variant, size, asChild, ...props }: React.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
8
8
  asChild?: boolean;
9
- }): import("react/jsx-runtime").JSX.Element;
9
+ }): React.JSX.Element;
10
10
  export { Button, buttonVariants };
@@ -3,8 +3,8 @@ import { Button } from '../../../components/ui/button';
3
3
  import * as React from "react";
4
4
  declare function Calendar({ className, classNames, showOutsideDays, captionLayout, buttonVariant, locale, formatters, components, ...props }: React.ComponentProps<typeof DayPicker> & {
5
5
  buttonVariant?: React.ComponentProps<typeof Button>["variant"];
6
- }): import("react/jsx-runtime").JSX.Element;
6
+ }): React.JSX.Element;
7
7
  declare function CalendarDayButton({ className, day, modifiers, locale, ...props }: React.ComponentProps<typeof DayButton> & {
8
8
  locale?: Partial<Locale>;
9
- }): import("react/jsx-runtime").JSX.Element;
9
+ }): React.JSX.Element;
10
10
  export { Calendar, CalendarDayButton };
@@ -1,11 +1,11 @@
1
1
  import * as React from "react";
2
2
  declare function Card({ className, size, ...props }: React.ComponentProps<"div"> & {
3
3
  size?: "default" | "sm";
4
- }): import("react/jsx-runtime").JSX.Element;
5
- declare function CardHeader({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
6
- declare function CardTitle({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
7
- declare function CardDescription({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
8
- declare function CardAction({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
9
- declare function CardContent({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
10
- declare function CardFooter({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
4
+ }): React.JSX.Element;
5
+ declare function CardHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
6
+ declare function CardTitle({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
7
+ declare function CardDescription({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
8
+ declare function CardAction({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
9
+ declare function CardContent({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
10
+ declare function CardFooter({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
11
11
  export { Card, CardHeader, CardFooter, CardTitle, CardAction, CardDescription, CardContent };
@@ -1,4 +1,4 @@
1
1
  import { Checkbox as CheckboxPrimitive } from 'radix-ui';
2
2
  import * as React from "react";
3
- declare function Checkbox({ className, ...props }: React.ComponentProps<typeof CheckboxPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
3
+ declare function Checkbox({ className, ...props }: React.ComponentProps<typeof CheckboxPrimitive.Root>): React.JSX.Element;
4
4
  export { Checkbox };
@@ -1,5 +1,5 @@
1
1
  import { Collapsible as CollapsiblePrimitive } from 'radix-ui';
2
- declare function Collapsible({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.Root>): import("react/jsx-runtime").JSX.Element;
3
- declare function CollapsibleTrigger({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleTrigger>): import("react/jsx-runtime").JSX.Element;
4
- declare function CollapsibleContent({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleContent>): import("react/jsx-runtime").JSX.Element;
2
+ declare function Collapsible({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.Root>): import("react").JSX.Element;
3
+ declare function CollapsibleTrigger({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleTrigger>): import("react").JSX.Element;
4
+ declare function CollapsibleContent({ ...props }: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleContent>): import("react").JSX.Element;
5
5
  export { Collapsible, CollapsibleTrigger, CollapsibleContent };
@@ -1,18 +1,18 @@
1
1
  import { Command as CommandPrimitive } from 'cmdk';
2
2
  import { Dialog } from '../../../components/ui/dialog';
3
3
  import * as React from "react";
4
- declare function Command({ className, ...props }: React.ComponentProps<typeof CommandPrimitive>): import("react/jsx-runtime").JSX.Element;
4
+ declare function Command({ className, ...props }: React.ComponentProps<typeof CommandPrimitive>): React.JSX.Element;
5
5
  declare function CommandDialog({ title, description, children, className, showCloseButton, ...props }: React.ComponentProps<typeof Dialog> & {
6
6
  title?: string;
7
7
  description?: string;
8
8
  className?: string;
9
9
  showCloseButton?: boolean;
10
- }): import("react/jsx-runtime").JSX.Element;
11
- declare function CommandInput({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Input>): import("react/jsx-runtime").JSX.Element;
12
- declare function CommandList({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.List>): import("react/jsx-runtime").JSX.Element;
13
- declare function CommandEmpty({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Empty>): import("react/jsx-runtime").JSX.Element;
14
- declare function CommandGroup({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
15
- declare function CommandSeparator({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Separator>): import("react/jsx-runtime").JSX.Element;
16
- declare function CommandItem({ className, children, ...props }: React.ComponentProps<typeof CommandPrimitive.Item>): import("react/jsx-runtime").JSX.Element;
17
- declare function CommandShortcut({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
10
+ }): React.JSX.Element;
11
+ declare function CommandInput({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Input>): React.JSX.Element;
12
+ declare function CommandList({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.List>): React.JSX.Element;
13
+ declare function CommandEmpty({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Empty>): React.JSX.Element;
14
+ declare function CommandGroup({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Group>): React.JSX.Element;
15
+ declare function CommandSeparator({ className, ...props }: React.ComponentProps<typeof CommandPrimitive.Separator>): React.JSX.Element;
16
+ declare function CommandItem({ className, children, ...props }: React.ComponentProps<typeof CommandPrimitive.Item>): React.JSX.Element;
17
+ declare function CommandShortcut({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
18
18
  export { Command, CommandDialog, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandShortcut, CommandSeparator, };
@@ -1,31 +1,31 @@
1
1
  import { ContextMenu as ContextMenuPrimitive } from 'radix-ui';
2
2
  import * as React from "react";
3
- declare function ContextMenu({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
- declare function ContextMenuTrigger({ className, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
5
- declare function ContextMenuGroup({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
6
- declare function ContextMenuPortal({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
7
- declare function ContextMenuSub({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Sub>): import("react/jsx-runtime").JSX.Element;
8
- declare function ContextMenuRadioGroup({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.RadioGroup>): import("react/jsx-runtime").JSX.Element;
3
+ declare function ContextMenu({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Root>): React.JSX.Element;
4
+ declare function ContextMenuTrigger({ className, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Trigger>): React.JSX.Element;
5
+ declare function ContextMenuGroup({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Group>): React.JSX.Element;
6
+ declare function ContextMenuPortal({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Portal>): React.JSX.Element;
7
+ declare function ContextMenuSub({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Sub>): React.JSX.Element;
8
+ declare function ContextMenuRadioGroup({ ...props }: React.ComponentProps<typeof ContextMenuPrimitive.RadioGroup>): React.JSX.Element;
9
9
  declare function ContextMenuContent({ className, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Content> & {
10
10
  side?: "top" | "right" | "bottom" | "left";
11
- }): import("react/jsx-runtime").JSX.Element;
11
+ }): React.JSX.Element;
12
12
  declare function ContextMenuItem({ className, inset, variant, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Item> & {
13
13
  inset?: boolean;
14
14
  variant?: "default" | "destructive";
15
- }): import("react/jsx-runtime").JSX.Element;
15
+ }): React.JSX.Element;
16
16
  declare function ContextMenuSubTrigger({ className, inset, children, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.SubTrigger> & {
17
17
  inset?: boolean;
18
- }): import("react/jsx-runtime").JSX.Element;
19
- declare function ContextMenuSubContent({ className, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.SubContent>): import("react/jsx-runtime").JSX.Element;
18
+ }): React.JSX.Element;
19
+ declare function ContextMenuSubContent({ className, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.SubContent>): React.JSX.Element;
20
20
  declare function ContextMenuCheckboxItem({ className, children, checked, inset, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.CheckboxItem> & {
21
21
  inset?: boolean;
22
- }): import("react/jsx-runtime").JSX.Element;
22
+ }): React.JSX.Element;
23
23
  declare function ContextMenuRadioItem({ className, children, inset, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.RadioItem> & {
24
24
  inset?: boolean;
25
- }): import("react/jsx-runtime").JSX.Element;
25
+ }): React.JSX.Element;
26
26
  declare function ContextMenuLabel({ className, inset, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Label> & {
27
27
  inset?: boolean;
28
- }): import("react/jsx-runtime").JSX.Element;
29
- declare function ContextMenuSeparator({ className, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Separator>): import("react/jsx-runtime").JSX.Element;
30
- declare function ContextMenuShortcut({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
28
+ }): React.JSX.Element;
29
+ declare function ContextMenuSeparator({ className, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Separator>): React.JSX.Element;
30
+ declare function ContextMenuShortcut({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
31
31
  export { ContextMenu, ContextMenuTrigger, ContextMenuContent, ContextMenuItem, ContextMenuCheckboxItem, ContextMenuRadioItem, ContextMenuLabel, ContextMenuSeparator, ContextMenuShortcut, ContextMenuGroup, ContextMenuPortal, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuRadioGroup, };
@@ -1,20 +1,20 @@
1
1
  import { Dialog as DialogPrimitive } from 'radix-ui';
2
2
  import * as React from "react";
3
- declare function Dialog({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
- declare function DialogTrigger({ ...props }: React.ComponentProps<typeof DialogPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
5
- declare function DialogPortal({ ...props }: React.ComponentProps<typeof DialogPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
6
- declare function DialogClose({ ...props }: React.ComponentProps<typeof DialogPrimitive.Close>): import("react/jsx-runtime").JSX.Element;
7
- declare function DialogOverlay({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Overlay>): import("react/jsx-runtime").JSX.Element;
3
+ declare function Dialog({ ...props }: React.ComponentProps<typeof DialogPrimitive.Root>): React.JSX.Element;
4
+ declare function DialogTrigger({ ...props }: React.ComponentProps<typeof DialogPrimitive.Trigger>): React.JSX.Element;
5
+ declare function DialogPortal({ ...props }: React.ComponentProps<typeof DialogPrimitive.Portal>): React.JSX.Element;
6
+ declare function DialogClose({ ...props }: React.ComponentProps<typeof DialogPrimitive.Close>): React.JSX.Element;
7
+ declare function DialogOverlay({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Overlay>): React.JSX.Element;
8
8
  declare function DialogContent({ className, children, showCloseButton, closeLabel, dismissOnInteractOutside, onInteractOutside, ...props }: React.ComponentProps<typeof DialogPrimitive.Content> & {
9
9
  showCloseButton?: boolean;
10
10
  closeLabel?: string;
11
11
  dismissOnInteractOutside?: boolean;
12
- }): import("react/jsx-runtime").JSX.Element;
13
- declare function DialogHeader({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
12
+ }): React.JSX.Element;
13
+ declare function DialogHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
14
14
  declare function DialogFooter({ className, showCloseButton, closeLabel, children, ...props }: React.ComponentProps<"div"> & {
15
15
  showCloseButton?: boolean;
16
16
  closeLabel?: string;
17
- }): import("react/jsx-runtime").JSX.Element;
18
- declare function DialogTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>): import("react/jsx-runtime").JSX.Element;
19
- declare function DialogDescription({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Description>): import("react/jsx-runtime").JSX.Element;
17
+ }): React.JSX.Element;
18
+ declare function DialogTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>): React.JSX.Element;
19
+ declare function DialogDescription({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Description>): React.JSX.Element;
20
20
  export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, };
@@ -1,29 +1,29 @@
1
1
  import { DropdownMenu as DropdownMenuPrimitive } from 'radix-ui';
2
2
  import * as React from "react";
3
- declare function DropdownMenu({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
- declare function DropdownMenuPortal({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
5
- declare function DropdownMenuTrigger({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
6
- declare function DropdownMenuContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
7
- declare function DropdownMenuGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
3
+ declare function DropdownMenu({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Root>): React.JSX.Element;
4
+ declare function DropdownMenuPortal({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Portal>): React.JSX.Element;
5
+ declare function DropdownMenuTrigger({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Trigger>): React.JSX.Element;
6
+ declare function DropdownMenuContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Content>): React.JSX.Element;
7
+ declare function DropdownMenuGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Group>): React.JSX.Element;
8
8
  declare function DropdownMenuItem({ className, inset, variant, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Item> & {
9
9
  inset?: boolean;
10
10
  variant?: "default" | "destructive";
11
- }): import("react/jsx-runtime").JSX.Element;
11
+ }): React.JSX.Element;
12
12
  declare function DropdownMenuCheckboxItem({ className, children, checked, inset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem> & {
13
13
  inset?: boolean;
14
- }): import("react/jsx-runtime").JSX.Element;
15
- declare function DropdownMenuRadioGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>): import("react/jsx-runtime").JSX.Element;
14
+ }): React.JSX.Element;
15
+ declare function DropdownMenuRadioGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>): React.JSX.Element;
16
16
  declare function DropdownMenuRadioItem({ className, children, inset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.RadioItem> & {
17
17
  inset?: boolean;
18
- }): import("react/jsx-runtime").JSX.Element;
18
+ }): React.JSX.Element;
19
19
  declare function DropdownMenuLabel({ className, inset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Label> & {
20
20
  inset?: boolean;
21
- }): import("react/jsx-runtime").JSX.Element;
22
- declare function DropdownMenuSeparator({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Separator>): import("react/jsx-runtime").JSX.Element;
23
- declare function DropdownMenuShortcut({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
24
- declare function DropdownMenuSub({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Sub>): import("react/jsx-runtime").JSX.Element;
21
+ }): React.JSX.Element;
22
+ declare function DropdownMenuSeparator({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Separator>): React.JSX.Element;
23
+ declare function DropdownMenuShortcut({ className, ...props }: React.ComponentProps<"span">): React.JSX.Element;
24
+ declare function DropdownMenuSub({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Sub>): React.JSX.Element;
25
25
  declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {
26
26
  inset?: boolean;
27
- }): import("react/jsx-runtime").JSX.Element;
28
- declare function DropdownMenuSubContent({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.SubContent>): import("react/jsx-runtime").JSX.Element;
27
+ }): React.JSX.Element;
28
+ declare function DropdownMenuSubContent({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.SubContent>): React.JSX.Element;
29
29
  export { DropdownMenu, DropdownMenuPortal, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuGroup, DropdownMenuLabel, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent, };