@case-framework/survey-editor-ui 0.4.2 → 0.6.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 (128) 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 +3 -1
  7. package/dist/src/components/c-ui/confirm-provider.d.ts +2 -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 +4 -2
  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 +3 -2
  23. package/dist/src/components/rich-text-editor/rich-text-editor.d.ts +3 -1
  24. package/dist/src/components/rich-text-editor/rich-text-menu-styles.d.ts +6 -0
  25. package/dist/src/components/rich-text-editor/style-control-icon.d.ts +1 -1
  26. package/dist/src/components/ui/alert-dialog.d.ts +12 -12
  27. package/dist/src/components/ui/alert.d.ts +4 -4
  28. package/dist/src/components/ui/badge.d.ts +2 -2
  29. package/dist/src/components/ui/breadcrumb.d.ts +7 -7
  30. package/dist/src/components/ui/button.d.ts +2 -2
  31. package/dist/src/components/ui/calendar.d.ts +2 -2
  32. package/dist/src/components/ui/card.d.ts +7 -7
  33. package/dist/src/components/ui/checkbox.d.ts +1 -1
  34. package/dist/src/components/ui/collapsible.d.ts +3 -3
  35. package/dist/src/components/ui/command.d.ts +9 -9
  36. package/dist/src/components/ui/context-menu.d.ts +15 -15
  37. package/dist/src/components/ui/dialog.d.ts +10 -10
  38. package/dist/src/components/ui/dropdown-menu.d.ts +15 -15
  39. package/dist/src/components/ui/field.d.ts +10 -10
  40. package/dist/src/components/ui/input-group.d.ts +6 -6
  41. package/dist/src/components/ui/input.d.ts +1 -1
  42. package/dist/src/components/ui/kbd.d.ts +2 -2
  43. package/dist/src/components/ui/label.d.ts +1 -1
  44. package/dist/src/components/ui/popover.d.ts +7 -7
  45. package/dist/src/components/ui/progress.d.ts +1 -1
  46. package/dist/src/components/ui/radio-group.d.ts +2 -2
  47. package/dist/src/components/ui/resizable.d.ts +3 -3
  48. package/dist/src/components/ui/scroll-area.d.ts +2 -2
  49. package/dist/src/components/ui/select.d.ts +10 -10
  50. package/dist/src/components/ui/separator.d.ts +1 -1
  51. package/dist/src/components/ui/skeleton.d.ts +1 -1
  52. package/dist/src/components/ui/slider.d.ts +1 -1
  53. package/dist/src/components/ui/sonner.d.ts +1 -1
  54. package/dist/src/components/ui/switch.d.ts +1 -1
  55. package/dist/src/components/ui/tabs.d.ts +4 -4
  56. package/dist/src/components/ui/textarea.d.ts +1 -1
  57. package/dist/src/components/ui/toggle-group.d.ts +2 -2
  58. package/dist/src/components/ui/toggle.d.ts +1 -1
  59. package/dist/src/components/ui/tooltip.d.ts +4 -4
  60. package/dist/src/index.d.ts +1 -1
  61. package/dist/src/modules/default-item-registry/items/form/editor/field-item-preview.d.ts +1 -1
  62. package/dist/src/modules/default-item-registry/items/form/editor/field-type-shared.d.ts +7 -7
  63. package/dist/src/modules/default-item-registry/items/form/editor/simple-field-editor.d.ts +1 -1
  64. package/dist/src/modules/default-item-registry/shared/preview/question-header.d.ts +1 -1
  65. package/dist/src/modules/default-item-registry/shared/question-editor/deferred-localized-rich-text-field.d.ts +1 -0
  66. package/dist/src/modules/survey-editor/assets/survey-image-asset-manager.d.ts +1 -1
  67. package/dist/src/modules/survey-editor/editor-card/add-items/hooks/use-add-item-actions.d.ts +2 -6
  68. package/dist/src/modules/survey-editor/editor-card/add-items/hooks/use-add-item-catalog.d.ts +6 -0
  69. package/dist/src/modules/survey-editor/editor-card/add-items/hooks/use-insert-item-preset.d.ts +18 -0
  70. package/dist/src/modules/survey-editor/editor-card/add-items/item-preset-utils.d.ts +6 -0
  71. package/dist/src/modules/survey-editor/editor-card/add-items/views/item-type-grid-view.d.ts +1 -1
  72. package/dist/src/modules/survey-editor/editor-card/copy-item-dropdown-menu.d.ts +1 -1
  73. package/dist/src/modules/survey-editor/editor-card/delete-item-dropdown-menu.d.ts +1 -1
  74. package/dist/src/modules/survey-editor/editor-card/group-items.d.ts +1 -1
  75. package/dist/src/modules/survey-editor/editor-card/index.d.ts +1 -0
  76. package/dist/src/modules/survey-editor/editor-card/item-authoring-state-preview.d.ts +7 -10
  77. package/dist/src/modules/survey-editor/editor-card/item-color-menu.d.ts +3 -2
  78. package/dist/src/modules/survey-editor/editor-card/item-editing-header.d.ts +17 -0
  79. package/dist/src/modules/survey-editor/editor-card/item-editing-panels.d.ts +16 -0
  80. package/dist/src/modules/survey-editor/editor-card/item-editing-surface-context.d.ts +8 -0
  81. package/dist/src/modules/survey-editor/editor-card/item-editing-surface.d.ts +10 -0
  82. package/dist/src/modules/survey-editor/editor-card/item-editor-apply-context.d.ts +19 -0
  83. package/dist/src/modules/survey-editor/editor-card/item-editor-card.d.ts +8 -0
  84. package/dist/src/modules/survey-editor/editor-card/item-editor-header-styles.d.ts +1 -0
  85. package/dist/src/modules/survey-editor/editor-card/item-expression-overview.d.ts +3 -3
  86. package/dist/src/modules/survey-editor/editor-card/item-key-editor.d.ts +1 -1
  87. package/dist/src/modules/survey-editor/editor-card/item-preview.d.ts +2 -1
  88. package/dist/src/modules/survey-editor/editor-card/item-type-icon-with-tooltip.d.ts +1 -1
  89. package/dist/src/modules/survey-editor/editor-card/recommended-item-types.d.ts +1 -1
  90. package/dist/src/modules/survey-editor/expression-integrity.d.ts +6 -0
  91. package/dist/src/modules/survey-editor/index.d.ts +1 -1
  92. package/dist/src/modules/survey-editor/preview-draft/preview-draft-context.d.ts +20 -0
  93. package/dist/src/modules/survey-editor/preview-viewport-toggle.d.ts +1 -1
  94. package/dist/src/modules/survey-editor/primitives/input-with-ai-popover.d.ts +1 -1
  95. package/dist/src/modules/survey-editor/routes/editor/_components/assistant-authoring-lock.d.ts +2 -2
  96. package/dist/src/modules/survey-editor/routes/editor/_components/editor-assistant-slot.d.ts +2 -2
  97. package/dist/src/modules/survey-editor/routes/editor/_components/editor-mode-switch.d.ts +1 -1
  98. package/dist/src/modules/survey-editor/routes/editor/_components/editor-workspace.d.ts +2 -2
  99. package/dist/src/modules/survey-editor/routes/editor/_components/expression-diagnostics-status.d.ts +1 -0
  100. package/dist/src/modules/survey-editor/routes/editor/_components/footer.d.ts +1 -1
  101. package/dist/src/modules/survey-editor/routes/editor/_components/main.d.ts +0 -2
  102. package/dist/src/modules/survey-editor/routes/editor/_components/workspace-panel-toggles.d.ts +23 -0
  103. package/dist/src/modules/survey-editor/routes/editor/asset-manager/index.d.ts +1 -1
  104. package/dist/src/modules/survey-editor/routes/editor/index.d.ts +0 -2
  105. package/dist/src/modules/survey-editor/routes/editor/item-editor/_components/item-drag-drop.d.ts +34 -0
  106. package/dist/src/modules/survey-editor/routes/editor/item-editor/_components/item-editor-toolbar/language-picker.d.ts +1 -1
  107. package/dist/src/modules/survey-editor/routes/editor/item-editor/_components/survey-item-toolbox.d.ts +1 -0
  108. package/dist/src/modules/survey-editor/routes/editor/item-editor/_components/survey-left-panel.d.ts +1 -0
  109. package/dist/src/modules/survey-editor/routes/editor/item-editor/_components/survey-outline.d.ts +2 -2
  110. package/dist/src/modules/survey-editor/routes/editor/item-editor/_components/survey-workspace.d.ts +1 -3
  111. package/dist/src/modules/survey-editor/routes/editor/item-editor/index.d.ts +1 -5
  112. package/dist/src/modules/survey-editor/routes/editor/preview-mode/index.d.ts +3 -4
  113. package/dist/src/modules/survey-editor/routes/editor/preview-mode/page-break-divider.d.ts +1 -1
  114. package/dist/src/modules/survey-editor/routes/editor/preview-mode/preview-controls.d.ts +1 -4
  115. package/dist/src/modules/survey-editor/routes/editor/preview-mode/survey-preview-canvas.d.ts +1 -1
  116. package/dist/src/modules/survey-editor/routes/editor/preview-mode/survey-preview-item.d.ts +1 -1
  117. package/dist/src/modules/survey-editor/routes/editor/translation-mode/index.d.ts +1 -1
  118. package/dist/src/modules/survey-editor/routes/editor/translation-mode/translation-left-panel.d.ts +5 -0
  119. package/dist/src/modules/survey-editor/store/editor-store.d.ts +3 -0
  120. package/dist/src/modules/survey-editor/survey-editor.d.ts +19 -2
  121. package/dist/survey-editor-defaults.css +14 -0
  122. package/dist/survey-editor-ui.cjs.js +70 -68
  123. package/dist/survey-editor-ui.cjs.js.map +1 -1
  124. package/dist/survey-editor-ui.css +2 -2
  125. package/dist/survey-editor-ui.es.js +22161 -20432
  126. package/dist/survey-editor-ui.es.js.map +1 -1
  127. package/package.json +10 -10
  128. 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;
@@ -1,3 +1,4 @@
1
+ import { ReactNode } from 'react';
1
2
  export interface RequireConfirmationInput {
2
3
  confirmTerm: string;
3
4
  /** Custom label with {{confirmTerm}} placeholder for the required term (bold). Default: "Type {{confirmTerm}} to confirm" */
@@ -14,6 +15,7 @@ interface ConfirmDialogProps {
14
15
  variant: "default" | "destructive";
15
16
  isOpen: boolean;
16
17
  requireConfirmationInput?: RequireConfirmationInput;
18
+ children?: ReactNode;
17
19
  }
18
- declare const ConfirmDialog: (props: ConfirmDialogProps) => import("react/jsx-runtime").JSX.Element;
20
+ declare const ConfirmDialog: (props: ConfirmDialogProps) => import("react").JSX.Element;
19
21
  export default ConfirmDialog;
@@ -8,8 +8,9 @@ interface ConfirmOptions {
8
8
  cancelButtonText?: string;
9
9
  variant?: "default" | "destructive";
10
10
  requireConfirmationInput?: RequireConfirmationInput;
11
+ children?: ReactNode | ((cancel: () => void) => ReactNode);
11
12
  }
12
13
  export declare const ConfirmDialogProvider: ({ children }: {
13
14
  children: ReactNode;
14
- }) => import("react/jsx-runtime").JSX.Element;
15
+ }) => import("react").JSX.Element;
15
16
  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 {};
@@ -1,10 +1,12 @@
1
1
  import { RefObject } from 'react';
2
2
  import { RichTextStyleControl, RichTextTemplateVariable } from '../rich-text-editor-utils';
3
3
  /** A stable, in-flow toolbar for longer block editors. */
4
- export declare function DockedToolbarPlugin({ editable, visibility, position, linksEnabled, blockAlignmentEnabled, surfaceRef, toolbarClassName, styleControls, templateVariables, bulletListsEnabled, headingsEnabled, infoBoxesEnabled, imagesEnabled, separatorsEnabled, }: {
4
+ export declare function DockedToolbarPlugin({ editable, visibility, position, editorOwnerId, sticky, linksEnabled, blockAlignmentEnabled, surfaceRef, toolbarClassName, styleControls, templateVariables, bulletListsEnabled, headingsEnabled, infoBoxesEnabled, imagesEnabled, separatorsEnabled, }: {
5
5
  editable: boolean;
6
6
  visibility: "active" | "always";
7
7
  position: "flow" | "above";
8
+ editorOwnerId: string;
9
+ sticky: boolean;
8
10
  linksEnabled: boolean;
9
11
  blockAlignmentEnabled: boolean;
10
12
  surfaceRef: RefObject<HTMLDivElement | null>;
@@ -16,4 +18,4 @@ export declare function DockedToolbarPlugin({ editable, visibility, position, li
16
18
  infoBoxesEnabled: boolean;
17
19
  imagesEnabled: boolean;
18
20
  separatorsEnabled: boolean;
19
- }): import("react/jsx-runtime").JSX.Element | null;
21
+ }): 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;
@@ -1,6 +1,6 @@
1
1
  import { RefObject } from 'react';
2
2
  import { RichTextStyleControl, RichTextTemplateVariable } from '../rich-text-editor-utils';
3
- export declare function SlashCommandMenuPlugin({ editable, linksEnabled, bulletListsEnabled, headingsEnabled, infoBoxesEnabled, imagesEnabled, separatorsEnabled, surfaceRef, styleControls, templateVariables, commandMenuClassName, }: {
3
+ export declare function SlashCommandMenuPlugin({ editable, linksEnabled, bulletListsEnabled, headingsEnabled, infoBoxesEnabled, imagesEnabled, separatorsEnabled, editorOwnerId, surfaceRef, styleControls, templateVariables, commandMenuClassName, }: {
4
4
  editable: boolean;
5
5
  linksEnabled: boolean;
6
6
  bulletListsEnabled?: boolean;
@@ -8,8 +8,9 @@ export declare function SlashCommandMenuPlugin({ editable, linksEnabled, bulletL
8
8
  infoBoxesEnabled?: boolean;
9
9
  imagesEnabled?: boolean;
10
10
  separatorsEnabled?: boolean;
11
+ editorOwnerId: string;
11
12
  surfaceRef: RefObject<HTMLDivElement | null>;
12
13
  styleControls: RichTextStyleControl[];
13
14
  templateVariables: RichTextTemplateVariable[];
14
15
  commandMenuClassName?: string;
15
- }): import("react/jsx-runtime").JSX.Element | null;
16
+ }): import("react").JSX.Element | null;
@@ -30,6 +30,8 @@ export interface RichTextEditorProps {
30
30
  dockedToolbarVisibility?: "active" | "always";
31
31
  /** Whether a docked toolbar participates in flow or sits immediately above its editor surface. */
32
32
  dockedToolbarPosition?: "flow" | "above";
33
+ /** Keeps an in-flow docked toolbar visible while its block editor scrolls. */
34
+ dockedToolbarSticky?: boolean;
33
35
  commandMenuClassName?: string;
34
36
  styleControls?: RichTextStyleControl[];
35
37
  templateVariables?: RichTextTemplateVariable[];
@@ -49,4 +51,4 @@ export interface RichTextEditorProps {
49
51
  onKeyDown?: KeyboardEventHandler<HTMLDivElement>;
50
52
  onKeyDownCapture?: KeyboardEventHandler<HTMLDivElement>;
51
53
  }
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;
54
+ export declare function RichTextEditor({ id, value, placeholder, autoFocus, autoFocusSelection, editable, wrapperClassName, surfaceClassName, contentClassName, endOfContentEditingArea, placeholderClassName, toolbarClassName, toolbarMode, dockedToolbarVisibility, dockedToolbarPosition, dockedToolbarSticky, commandMenuClassName, styleControls, templateVariables, editorVariant, contentPolicy, resolveImageAssetUrl, imageAssets, registerImageAsset, imageAssetDeletion, linksEnabled, "aria-label": ariaLabel, onChange, onFocus, onBlur, onKeyDown, onKeyDownCapture, }: RichTextEditorProps): import("react").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { CSSProperties } from 'react';
2
+ export declare const RICH_TEXT_MENU_SURFACE_CLASS = "rounded-lg bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10";
3
+ export declare const RICH_TEXT_MENU_ITEM_CLASS = "min-h-8 gap-2 px-2 py-1.5 text-xs";
4
+ export declare const RICH_TEXT_MENU_LABEL_CLASS = "px-2 py-1 text-[0.7rem] font-medium uppercase tracking-wide text-muted-foreground";
5
+ /** Copies editor-scoped theme tokens onto menu portals, which otherwise inherit from `body`. */
6
+ export declare function getRichTextPortalThemeStyle(source: Element | null): CSSProperties | undefined;
@@ -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 };
@@ -1,9 +1,9 @@
1
1
  import { VariantProps } from 'class-variance-authority';
2
2
  import * as React from "react";
3
3
  declare const badgeVariants: (props?: ({
4
- variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
4
+ variant?: "link" | "default" | "outline" | "secondary" | "ghost" | "destructive" | null | undefined;
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, };
@@ -1,10 +1,10 @@
1
1
  import { VariantProps } from 'class-variance-authority';
2
2
  import * as React from "react";
3
3
  declare const buttonVariants: (props?: ({
4
- variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
4
+ variant?: "link" | "default" | "outline" | "secondary" | "ghost" | "destructive" | null | undefined;
5
5
  size?: "sm" | "default" | "xs" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
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, };