@case-framework/survey-ui 0.2.4 → 0.3.1
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.
- package/README.md +2 -13
- package/dist/src/components/c-ui/alert-provider.d.ts +18 -0
- package/dist/src/components/c-ui/confirm-dialog.d.ts +19 -0
- package/dist/src/components/c-ui/confirm-provider.d.ts +15 -0
- package/dist/src/components/c-ui/dot-background.d.ts +72 -0
- package/dist/src/components/c-ui/filepicker-dropzone.d.ts +38 -0
- package/dist/src/components/c-ui/loading-button.d.ts +9 -0
- package/dist/src/components/common/content-editable-plain.d.ts +17 -0
- package/dist/src/components/hooks/use-button-shortcut.d.ts +18 -0
- package/dist/src/components/hooks/use-document-keydown.d.ts +7 -0
- package/dist/src/components/rich-text/content-policy.d.ts +19 -0
- package/dist/src/components/rich-text/index.d.ts +6 -0
- package/dist/src/components/rich-text/nodes/rich-text-image-node.d.ts +40 -0
- package/dist/src/components/rich-text/nodes/rich-text-info-box-node.d.ts +45 -0
- package/dist/src/components/rich-text/nodes/survey-rich-text-heading-node.d.ts +27 -0
- package/dist/src/components/rich-text/rich-text-block-editor.d.ts +8 -0
- package/dist/src/components/rich-text/rich-text-content-view.d.ts +11 -0
- package/dist/src/components/rich-text/rich-text-editor-context.d.ts +23 -0
- package/dist/src/components/rich-text/rich-text-link-utils.d.ts +2 -0
- package/dist/src/components/rich-text/rich-text-survey-content.d.ts +7 -0
- package/dist/src/components/rich-text/types.d.ts +6 -0
- package/dist/src/components/rich-text-editor/index.d.ts +3 -0
- package/dist/src/components/rich-text-editor/plugins/command-handler-plugin.d.ts +5 -0
- package/dist/src/components/rich-text-editor/plugins/editable-mode-plugin.d.ts +3 -0
- package/dist/src/components/rich-text-editor/plugins/floating-toolbar-plugin.d.ts +11 -0
- package/dist/src/components/rich-text-editor/plugins/image-dialog-plugin.d.ts +4 -0
- package/dist/src/components/rich-text-editor/plugins/info-box-popover-plugin.d.ts +6 -0
- package/dist/src/components/rich-text-editor/plugins/link-popover-plugin.d.ts +6 -0
- package/dist/src/components/rich-text-editor/plugins/rich-text-image-asset-deletion-plugin.d.ts +1 -0
- package/dist/src/components/rich-text-editor/plugins/slash-command-menu-plugin.d.ts +15 -0
- package/dist/src/components/rich-text-editor/plugins/sync-editor-value-plugin.d.ts +4 -0
- package/dist/src/components/rich-text-editor/rich-text-editor-utils.d.ts +205 -0
- package/dist/src/components/rich-text-editor/rich-text-editor.d.ts +43 -0
- package/dist/src/components/rich-text-editor/rich-text-image-editor-commands.d.ts +12 -0
- package/dist/src/components/rich-text-editor/rich-text-info-box-commands.d.ts +20 -0
- package/dist/src/components/rich-text-editor/style-control-icon.d.ts +5 -0
- package/dist/src/components/ui/alert-dialog.d.ts +18 -0
- package/dist/src/components/ui/alert.d.ts +10 -0
- package/dist/src/components/ui/badge.d.ts +9 -0
- package/dist/src/components/ui/breadcrumb.d.ts +11 -0
- package/dist/src/components/ui/button.d.ts +10 -0
- package/dist/src/components/ui/calendar.d.ts +10 -0
- package/dist/src/components/ui/card.d.ts +11 -0
- package/dist/src/components/ui/checkbox.d.ts +4 -0
- package/dist/src/components/ui/collapsible.d.ts +5 -0
- package/dist/src/components/ui/command.d.ts +18 -0
- package/dist/src/components/ui/context-menu.d.ts +31 -0
- package/dist/src/components/ui/dialog.d.ts +19 -0
- package/dist/src/components/ui/dropdown-menu.d.ts +29 -0
- package/dist/src/components/ui/field.d.ts +24 -0
- package/dist/src/components/ui/input-group.d.ts +16 -0
- package/dist/src/components/ui/input.d.ts +3 -0
- package/dist/src/components/ui/kbd.d.ts +3 -0
- package/dist/src/components/ui/label.d.ts +4 -0
- package/dist/src/components/ui/popover.d.ts +10 -0
- package/dist/src/components/ui/progress.d.ts +4 -0
- package/dist/src/components/ui/radio-group.d.ts +5 -0
- package/dist/src/components/ui/scroll-area.d.ts +5 -0
- package/dist/src/components/ui/select.d.ts +15 -0
- package/dist/src/components/ui/separator.d.ts +4 -0
- package/dist/src/components/ui/skeleton.d.ts +2 -0
- package/dist/src/components/ui/slider.d.ts +4 -0
- package/dist/src/components/ui/sonner.d.ts +3 -0
- package/dist/src/components/ui/switch.d.ts +6 -0
- package/dist/src/components/ui/tabs.d.ts +11 -0
- package/dist/src/components/ui/textarea.d.ts +3 -0
- package/dist/src/components/ui/toggle-group.d.ts +10 -0
- package/dist/src/components/ui/toggle.d.ts +9 -0
- package/dist/src/components/ui/tooltip.d.ts +7 -0
- package/dist/src/dev/_components/nav-input.d.ts +35 -0
- package/dist/src/dev/app.d.ts +2 -0
- package/dist/src/dev/localizations/de.d.ts +2 -0
- package/dist/src/dev/main.d.ts +0 -0
- package/dist/src/index.d.ts +10 -0
- package/dist/src/lib/utils.d.ts +2 -0
- package/dist/src/modules/default-item-registry/default-item-cores.d.ts +24 -0
- package/dist/src/modules/default-item-registry/default-registry-entries.d.ts +2 -0
- package/dist/src/modules/default-item-registry/index.d.ts +19 -0
- package/dist/src/modules/default-item-registry/items/choice/display-order.d.ts +1 -0
- package/dist/src/modules/default-item-registry/items/choice/editor/card.d.ts +3 -0
- package/dist/src/modules/default-item-registry/items/choice/editor/option-create.d.ts +11 -0
- package/dist/src/modules/default-item-registry/items/choice/editor/option-edit-dialog.d.ts +14 -0
- package/dist/src/modules/default-item-registry/items/choice/editor/option-editor-fields.d.ts +17 -0
- package/dist/src/modules/default-item-registry/items/choice/editor/option-embedded-form-dialog.d.ts +15 -0
- package/dist/src/modules/default-item-registry/items/choice/editor/response-options-list.d.ts +20 -0
- package/dist/src/modules/default-item-registry/items/choice/expression-registry.d.ts +3 -0
- package/dist/src/modules/default-item-registry/items/choice/model.d.ts +28 -0
- package/dist/src/modules/default-item-registry/items/choice/player/question.d.ts +32 -0
- package/dist/src/modules/default-item-registry/items/choice/preview/item.d.ts +2 -0
- package/dist/src/modules/default-item-registry/items/choice/search-adapter.d.ts +2 -0
- package/dist/src/modules/default-item-registry/items/form/editor/card.d.ts +3 -0
- package/dist/src/modules/default-item-registry/items/form/editor/config-editor.d.ts +12 -0
- package/dist/src/modules/default-item-registry/items/form/editor/field-edit-dialog.d.ts +10 -0
- package/dist/src/modules/default-item-registry/items/form/editor/field-group-header-dialog.d.ts +12 -0
- package/dist/src/modules/default-item-registry/items/form/editor/field-group-layout-dialog.d.ts +9 -0
- package/dist/src/modules/default-item-registry/items/form/editor/field-item-preview.d.ts +15 -0
- package/dist/src/modules/default-item-registry/items/form/editor/field-key-dialog.d.ts +10 -0
- package/dist/src/modules/default-item-registry/items/form/editor/field-sort-dialog.d.ts +11 -0
- package/dist/src/modules/default-item-registry/items/form/editor/field-type-shared.d.ts +12 -0
- package/dist/src/modules/default-item-registry/items/form/editor/response-field-groups-list.d.ts +16 -0
- package/dist/src/modules/default-item-registry/items/form/model.d.ts +158 -0
- package/dist/src/modules/default-item-registry/items/form/player/field.d.ts +28 -0
- package/dist/src/modules/default-item-registry/items/form/preview/item.d.ts +2 -0
- package/dist/src/modules/default-item-registry/items/info/editor-card.d.ts +3 -0
- package/dist/src/modules/default-item-registry/items/info/player/card-field.d.ts +14 -0
- package/dist/src/modules/default-item-registry/items/info/preview/item.d.ts +2 -0
- package/dist/src/modules/default-item-registry/items/info/search-adapter.d.ts +2 -0
- package/dist/src/modules/default-item-registry/items/structure/group/editor-card.d.ts +3 -0
- package/dist/src/modules/default-item-registry/items/structure/page-break/editor-card.d.ts +3 -0
- package/dist/src/modules/default-item-registry/items/structure/preview-renderers.d.ts +3 -0
- package/dist/src/modules/default-item-registry/items/structure/root/editor-card.d.ts +3 -0
- package/dist/src/modules/default-item-registry/shared/player/question-card-shell.d.ts +13 -0
- package/dist/src/modules/default-item-registry/shared/preview/question-header.d.ts +6 -0
- package/dist/src/modules/default-item-registry/shared/preview/utils.d.ts +3 -0
- package/dist/src/modules/default-item-registry/shared/question-editor/deferred-localized-rich-text-field.d.ts +26 -0
- package/dist/src/modules/default-item-registry/shared/question-editor/header-editor.d.ts +6 -0
- package/dist/src/modules/default-item-registry/shared/question-editor/layout.d.ts +8 -0
- package/dist/src/modules/default-item-registry/shared/question-editor/rich-text-editors.d.ts +23 -0
- package/dist/src/modules/default-item-registry/shared/question-editor/rich-text-policies.d.ts +8 -0
- package/dist/src/modules/default-item-registry/shared/question-editor/toolbar.d.ts +10 -0
- package/dist/src/modules/survey-editor/ai/types.d.ts +88 -0
- package/dist/src/modules/survey-editor/assets/index.d.ts +4 -0
- package/dist/src/modules/survey-editor/assets/survey-image-asset-manager.d.ts +4 -0
- package/dist/src/modules/survey-editor/assets/use-survey-assets.d.ts +4 -0
- package/dist/src/modules/survey-editor/assets/utils.d.ts +5 -0
- package/dist/src/modules/survey-editor/editor-card/add-items/constants.d.ts +3 -0
- package/dist/src/modules/survey-editor/editor-card/add-items/hooks/use-add-item-actions.d.ts +25 -0
- package/dist/src/modules/survey-editor/editor-card/add-items/hooks/use-add-item-target.d.ts +9 -0
- package/dist/src/modules/survey-editor/editor-card/add-items/hooks/use-option-group-navigation.d.ts +19 -0
- package/dist/src/modules/survey-editor/editor-card/add-items/types.d.ts +21 -0
- package/dist/src/modules/survey-editor/editor-card/add-items/views/ai-item-view.d.ts +10 -0
- package/dist/src/modules/survey-editor/editor-card/add-items/views/back-button.d.ts +5 -0
- package/dist/src/modules/survey-editor/editor-card/add-items/views/blank-item-view.d.ts +13 -0
- package/dist/src/modules/survey-editor/editor-card/add-items/views/entry-view.d.ts +15 -0
- package/dist/src/modules/survey-editor/editor-card/add-items/views/structure-view.d.ts +16 -0
- package/dist/src/modules/survey-editor/editor-card/add-items.d.ts +1 -0
- package/dist/src/modules/survey-editor/editor-card/copy-item-dropdown-menu.d.ts +5 -0
- package/dist/src/modules/survey-editor/editor-card/delete-item-context-menu.d.ts +5 -0
- package/dist/src/modules/survey-editor/editor-card/delete-item-dropdown-menu.d.ts +5 -0
- package/dist/src/modules/survey-editor/editor-card/editor-card-tab-trigger.d.ts +15 -0
- package/dist/src/modules/survey-editor/editor-card/group-items.d.ts +2 -0
- package/dist/src/modules/survey-editor/editor-card/hooks/use-armed-shortcut-sequence.d.ts +11 -0
- package/dist/src/modules/survey-editor/editor-card/hooks/use-group-list-keyboard.d.ts +30 -0
- package/dist/src/modules/survey-editor/editor-card/index.d.ts +2 -0
- package/dist/src/modules/survey-editor/editor-card/item-color-menu.d.ts +6 -0
- package/dist/src/modules/survey-editor/editor-card/item-color-selector.d.ts +5 -0
- package/dist/src/modules/survey-editor/editor-card/item-editor-card-skeleton.d.ts +2 -0
- package/dist/src/modules/survey-editor/editor-card/item-editor-card.d.ts +39 -0
- package/dist/src/modules/survey-editor/editor-card/item-editor-context.d.ts +20 -0
- package/dist/src/modules/survey-editor/editor-card/item-key-editor.d.ts +9 -0
- package/dist/src/modules/survey-editor/editor-card/item-label-preview-and-editor.d.ts +10 -0
- package/dist/src/modules/survey-editor/editor-card/item-preview.d.ts +8 -0
- package/dist/src/modules/survey-editor/editor-card/item-sibling-navigation.d.ts +5 -0
- package/dist/src/modules/survey-editor/editor-card/item-type-icon-with-tooltip.d.ts +8 -0
- package/dist/src/modules/survey-editor/editor-card/survey-player-item-preview.d.ts +6 -0
- package/dist/src/modules/survey-editor/editor-instance-provider.d.ts +7 -0
- package/dist/src/modules/survey-editor/hooks/useClipboardValue.d.ts +2 -0
- package/dist/src/modules/survey-editor/hooks/useDeleteItem.d.ts +9 -0
- package/dist/src/modules/survey-editor/hooks/useEditor.d.ts +12 -0
- package/dist/src/modules/survey-editor/hooks/useEditorStateChange.d.ts +17 -0
- package/dist/src/modules/survey-editor/hooks/useKeyboardShortcuts.d.ts +7 -0
- package/dist/src/modules/survey-editor/index.d.ts +17 -0
- package/dist/src/modules/survey-editor/localization/date-fns.d.ts +5 -0
- package/dist/src/modules/survey-editor/localization/default-en.d.ts +4 -0
- package/dist/src/modules/survey-editor/localization/index.d.ts +5 -0
- package/dist/src/modules/survey-editor/localization/runtime.d.ts +4 -0
- package/dist/src/modules/survey-editor/localization/types.d.ts +7 -0
- package/dist/src/modules/survey-editor/navigation/navigation-provider.d.ts +11 -0
- package/dist/src/modules/survey-editor/navigation/navigation.d.ts +13 -0
- package/dist/src/modules/survey-editor/navigation/types.d.ts +18 -0
- package/dist/src/modules/survey-editor/primitives/input-with-ai-popover.d.ts +35 -0
- package/dist/src/modules/survey-editor/registry/index.d.ts +7 -0
- package/dist/src/modules/survey-editor/registry/registry-mappers.d.ts +25 -0
- package/dist/src/modules/survey-editor/registry/search-adapter.d.ts +19 -0
- package/dist/src/modules/survey-editor/registry/types.d.ts +178 -0
- package/dist/src/modules/survey-editor/routes/editor/_components/footer.d.ts +2 -0
- package/dist/src/modules/survey-editor/routes/editor/_components/history-stack.d.ts +2 -0
- package/dist/src/modules/survey-editor/routes/editor/_components/main.d.ts +2 -0
- package/dist/src/modules/survey-editor/routes/editor/asset-manager/index.d.ts +2 -0
- package/dist/src/modules/survey-editor/routes/editor/index.d.ts +5 -0
- package/dist/src/modules/survey-editor/routes/editor/item-editor/_components/item-editor-toolbar/breadcrumbs-nav.d.ts +2 -0
- package/dist/src/modules/survey-editor/routes/editor/item-editor/_components/item-editor-toolbar/item-editor-toolbar.d.ts +2 -0
- package/dist/src/modules/survey-editor/routes/editor/item-editor/_components/item-editor-toolbar/language-picker.d.ts +2 -0
- package/dist/src/modules/survey-editor/routes/editor/item-editor/_components/item-editor-toolbar/search-trigger.d.ts +3 -0
- package/dist/src/modules/survey-editor/routes/editor/item-editor/_components/item-editor-toolbar/survey-search.d.ts +7 -0
- package/dist/src/modules/survey-editor/routes/editor/item-editor/index.d.ts +2 -0
- package/dist/src/modules/survey-editor/routes/editor/translation-mode/index.d.ts +2 -0
- package/dist/src/modules/survey-editor/session-file.d.ts +13 -0
- package/dist/src/modules/survey-editor/store/editor-store-context.d.ts +10 -0
- package/dist/src/modules/survey-editor/store/editor-store-provider.d.ts +7 -0
- package/dist/src/modules/survey-editor/store/editor-store.d.ts +102 -0
- package/dist/src/modules/survey-editor/store/use-editor-store.d.ts +4 -0
- package/dist/src/modules/survey-editor/store/useItemNavigation.d.ts +7 -0
- package/dist/src/modules/survey-editor/survey-editor-config.d.ts +29 -0
- package/dist/src/modules/survey-editor/survey-editor.d.ts +26 -0
- package/dist/src/modules/survey-editor/utils/item-type-infos.d.ts +23 -0
- package/dist/src/modules/survey-player/index.d.ts +5 -0
- package/dist/src/modules/survey-player/localization/default-en.d.ts +3 -0
- package/dist/src/modules/survey-player/localization/runtime.d.ts +4 -0
- package/dist/src/modules/survey-player/localization/types.d.ts +7 -0
- package/dist/src/modules/survey-player/survey-context.d.ts +32 -0
- package/dist/src/modules/survey-player/survey-item/survey-item-context.d.ts +27 -0
- package/dist/src/modules/survey-player/survey-item/survey-item-types/placeholder-item-renderers.d.ts +4 -0
- package/dist/src/modules/survey-player/survey-item/survey-item-types/question-wrapper.d.ts +5 -0
- package/dist/src/modules/survey-player/survey-item/survey-item.d.ts +7 -0
- package/dist/src/modules/survey-player/survey-player.d.ts +14 -0
- package/dist/survey-editor-defaults.css +13 -7
- package/dist/survey-ui.cjs.js +148 -28
- package/dist/survey-ui.cjs.js.map +1 -1
- package/dist/survey-ui.css +2 -2
- package/dist/survey-ui.es.js +47547 -17776
- package/dist/survey-ui.es.js.map +1 -1
- package/package.json +28 -20
- package/dist/index.d.ts +0 -478
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
import { RichTextInfoBoxTone } from '../../../components/rich-text/nodes/rich-text-info-box-node';
|
|
2
|
+
import { SurveyRichTextHeadingNode } from '../../../components/rich-text/nodes/survey-rich-text-heading-node';
|
|
3
|
+
import { EditorConfig, ElementFormatType, LexicalCommand, LexicalEditor, LexicalNode, NodeKey, ParagraphNode, RangeSelection, SerializedEditorState, SerializedTextNode, Spread, TextFormatType, TextNode } from 'lexical';
|
|
4
|
+
import { RichTextHeadingBlock, RichTextImageSize, SurveyContentImageSource } from '@case-framework/survey-core';
|
|
5
|
+
import { RichTextInfoBoxInsertPayload } from './rich-text-info-box-commands';
|
|
6
|
+
export declare const RICH_TEXT_EDITOR_SYNC_FROM_VALUE_TAG = "rich-text-editor-sync-from-value";
|
|
7
|
+
export interface RichTextTemplateVariable {
|
|
8
|
+
key: string;
|
|
9
|
+
label?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface RichTextLinkPayload {
|
|
12
|
+
text?: string;
|
|
13
|
+
url?: string;
|
|
14
|
+
openEditor?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export type RichTextStyleControl = {
|
|
17
|
+
kind: "weight";
|
|
18
|
+
value: "strong" | "normal";
|
|
19
|
+
label?: string;
|
|
20
|
+
title?: string;
|
|
21
|
+
} | {
|
|
22
|
+
kind: "italic";
|
|
23
|
+
value: "italic" | "normal";
|
|
24
|
+
label?: string;
|
|
25
|
+
title?: string;
|
|
26
|
+
} | {
|
|
27
|
+
kind: "underline";
|
|
28
|
+
value: "underline" | "none";
|
|
29
|
+
label?: string;
|
|
30
|
+
title?: string;
|
|
31
|
+
} | {
|
|
32
|
+
kind: "color";
|
|
33
|
+
value: "primary" | "accent";
|
|
34
|
+
label?: string;
|
|
35
|
+
title?: string;
|
|
36
|
+
};
|
|
37
|
+
export type SerializedTemplateVariableNode = Spread<{
|
|
38
|
+
templateKey: string;
|
|
39
|
+
}, SerializedTextNode>;
|
|
40
|
+
export type SerializedRichTextLinkNode = Spread<{
|
|
41
|
+
url: string;
|
|
42
|
+
}, SerializedTextNode>;
|
|
43
|
+
/** Semantic buckets for slash menu grouping (visual sections in the picker). */
|
|
44
|
+
export type SlashCommandGroupId = "formatting" | "blocks" | "insert";
|
|
45
|
+
export declare const SLASH_COMMAND_GROUP_ORDER: Record<SlashCommandGroupId, number>;
|
|
46
|
+
export type SlashCommandItem = {
|
|
47
|
+
key: string;
|
|
48
|
+
label: string;
|
|
49
|
+
keywords: string[];
|
|
50
|
+
group: SlashCommandGroupId;
|
|
51
|
+
kind: "style";
|
|
52
|
+
control: RichTextStyleControl;
|
|
53
|
+
} | {
|
|
54
|
+
key: string;
|
|
55
|
+
label: string;
|
|
56
|
+
keywords: string[];
|
|
57
|
+
group: SlashCommandGroupId;
|
|
58
|
+
kind: "template";
|
|
59
|
+
templateVariable: RichTextTemplateVariable;
|
|
60
|
+
} | {
|
|
61
|
+
key: "link";
|
|
62
|
+
label: string;
|
|
63
|
+
keywords: string[];
|
|
64
|
+
group: SlashCommandGroupId;
|
|
65
|
+
kind: "link";
|
|
66
|
+
} | {
|
|
67
|
+
key: "bullet-list";
|
|
68
|
+
label: string;
|
|
69
|
+
keywords: string[];
|
|
70
|
+
group: SlashCommandGroupId;
|
|
71
|
+
kind: "bulletList";
|
|
72
|
+
} | {
|
|
73
|
+
key: string;
|
|
74
|
+
label: string;
|
|
75
|
+
keywords: string[];
|
|
76
|
+
group: SlashCommandGroupId;
|
|
77
|
+
kind: "heading";
|
|
78
|
+
level: RichTextHeadingBlock["level"];
|
|
79
|
+
} | {
|
|
80
|
+
key: string;
|
|
81
|
+
label: string;
|
|
82
|
+
keywords: string[];
|
|
83
|
+
group: SlashCommandGroupId;
|
|
84
|
+
kind: "infoBox";
|
|
85
|
+
tone: "info" | "warning";
|
|
86
|
+
} | {
|
|
87
|
+
key: "image";
|
|
88
|
+
label: string;
|
|
89
|
+
keywords: string[];
|
|
90
|
+
group: SlashCommandGroupId;
|
|
91
|
+
kind: "image";
|
|
92
|
+
} | {
|
|
93
|
+
key: "horizontal-divider";
|
|
94
|
+
label: string;
|
|
95
|
+
keywords: string[];
|
|
96
|
+
group: SlashCommandGroupId;
|
|
97
|
+
kind: "separator";
|
|
98
|
+
};
|
|
99
|
+
export declare function getTemplateVariableText(templateKey: string): string;
|
|
100
|
+
export declare function getStyleControlKey(control: RichTextStyleControl): string;
|
|
101
|
+
export declare function resolveStyleControl(control: RichTextStyleControl): {
|
|
102
|
+
label: string;
|
|
103
|
+
title: string;
|
|
104
|
+
property: string;
|
|
105
|
+
value: string;
|
|
106
|
+
};
|
|
107
|
+
export declare function getSlashCommandItems(styleControls: RichTextStyleControl[], templateVariables: RichTextTemplateVariable[], linksEnabled?: boolean, bulletListsEnabled?: boolean, headingsEnabled?: boolean, infoBoxesEnabled?: boolean, imagesEnabled?: boolean, separatorsEnabled?: boolean): SlashCommandItem[];
|
|
108
|
+
export declare function $insertSurveyRichTextHeading(level: RichTextHeadingBlock["level"]): boolean;
|
|
109
|
+
/** Nearest paragraph or survey heading that supports Lexical element format (block text-align). */
|
|
110
|
+
export declare function $getRichTextBlockForAlignment(selection: RangeSelection): ParagraphNode | SurveyRichTextHeadingNode | null;
|
|
111
|
+
/** Direct children of the editor root that contain any part of the range (paragraph, list, image, etc.). */
|
|
112
|
+
export declare function $getRootLevelBlocksIntersectingSelection(selection: RangeSelection): LexicalNode[];
|
|
113
|
+
/**
|
|
114
|
+
* True when every root-level block touched by the selection persists alignment in survey rich text
|
|
115
|
+
* (plain paragraphs and survey headings — not lists, images, or separators).
|
|
116
|
+
*/
|
|
117
|
+
export declare function $selectionAllowsSurveyRichTextBlockAlignment(selection: RangeSelection): boolean;
|
|
118
|
+
export declare function $getRootLevelBlockForNode(node: LexicalNode): LexicalNode | null;
|
|
119
|
+
export declare function $insertSurveyRichTextBulletList(): boolean;
|
|
120
|
+
/**
|
|
121
|
+
* Lexical copies the previous block's element format onto list items when inserting a list.
|
|
122
|
+
* Survey bullet lists do not model block alignment; clear it so list text is not stuck right-aligned.
|
|
123
|
+
*/
|
|
124
|
+
export declare function $clearBulletListElementAlignmentFromSelection(): void;
|
|
125
|
+
export declare function createRichTextEditorInstance(): LexicalEditor;
|
|
126
|
+
export declare function resetRichTextEditorWithPlainText(text?: string): void;
|
|
127
|
+
export declare function createRichTextEditorValueFromPlainText(text?: string): SerializedEditorState;
|
|
128
|
+
export declare function toggleRichTextStyle(control: RichTextStyleControl): boolean;
|
|
129
|
+
export declare function isRichTextStyleControlActive(selection: RangeSelection, control: RichTextStyleControl): boolean;
|
|
130
|
+
export declare function styleControlToTextFormat(control: RichTextStyleControl): TextFormatType | null;
|
|
131
|
+
export declare function insertRichTextTemplateVariable(templateVariable: RichTextTemplateVariable): boolean;
|
|
132
|
+
export declare function insertRichTextInfoBox(payload: RichTextInfoBoxInsertPayload): NodeKey | null;
|
|
133
|
+
export type RichTextImageInsertPayload = {
|
|
134
|
+
replaceIfEmptyParagraphKey?: NodeKey;
|
|
135
|
+
};
|
|
136
|
+
export declare function insertRichTextImage(payload?: RichTextImageInsertPayload): NodeKey | null;
|
|
137
|
+
export declare function updateRichTextImage(payload: {
|
|
138
|
+
key: NodeKey;
|
|
139
|
+
source: SurveyContentImageSource;
|
|
140
|
+
alt: string;
|
|
141
|
+
caption: string;
|
|
142
|
+
size?: RichTextImageSize;
|
|
143
|
+
format: ElementFormatType;
|
|
144
|
+
}): boolean;
|
|
145
|
+
export declare function updateRichTextInfoBox(payload: {
|
|
146
|
+
key: NodeKey;
|
|
147
|
+
tone: RichTextInfoBoxTone;
|
|
148
|
+
title: string;
|
|
149
|
+
content: string;
|
|
150
|
+
collapsible: boolean;
|
|
151
|
+
defaultOpen: boolean;
|
|
152
|
+
}): boolean;
|
|
153
|
+
export declare function insertRichTextLink(payload?: RichTextLinkPayload): NodeKey | null;
|
|
154
|
+
export declare function updateRichTextLink({ key, text, url, }: {
|
|
155
|
+
key: NodeKey;
|
|
156
|
+
text: string;
|
|
157
|
+
url: string;
|
|
158
|
+
}): boolean;
|
|
159
|
+
export declare function convertRichTextLinkToText(key: NodeKey): boolean;
|
|
160
|
+
export declare const APPLY_RICH_TEXT_STYLE_COMMAND: LexicalCommand<RichTextStyleControl>;
|
|
161
|
+
export declare const INSERT_RICH_TEXT_TEMPLATE_VARIABLE_COMMAND: LexicalCommand<RichTextTemplateVariable>;
|
|
162
|
+
export declare const INSERT_RICH_TEXT_LINK_COMMAND: LexicalCommand<RichTextLinkPayload>;
|
|
163
|
+
export declare const OPEN_RICH_TEXT_LINK_EDITOR_COMMAND: LexicalCommand<NodeKey>;
|
|
164
|
+
export declare const UPDATE_RICH_TEXT_LINK_COMMAND: LexicalCommand<{
|
|
165
|
+
key: NodeKey;
|
|
166
|
+
text: string;
|
|
167
|
+
url: string;
|
|
168
|
+
}>;
|
|
169
|
+
export declare const CONVERT_RICH_TEXT_LINK_TO_TEXT_COMMAND: LexicalCommand<NodeKey>;
|
|
170
|
+
export { INSERT_RICH_TEXT_INFO_BOX_COMMAND, OPEN_RICH_TEXT_INFO_BOX_EDITOR_COMMAND, UPDATE_RICH_TEXT_INFO_BOX_COMMAND, type RichTextInfoBoxInsertPayload, } from './rich-text-info-box-commands';
|
|
171
|
+
export { OPEN_RICH_TEXT_IMAGE_EDITOR_COMMAND, UPDATE_RICH_TEXT_IMAGE_COMMAND, type RichTextImageUpdatePayload, } from './rich-text-image-editor-commands';
|
|
172
|
+
export declare class TemplateVariableNode extends TextNode {
|
|
173
|
+
__templateKey: string;
|
|
174
|
+
static getType(): string;
|
|
175
|
+
static clone(node: TemplateVariableNode): TemplateVariableNode;
|
|
176
|
+
static importJSON(serializedNode: SerializedTemplateVariableNode): TemplateVariableNode;
|
|
177
|
+
constructor(templateKey: string, key?: NodeKey);
|
|
178
|
+
afterCloneFrom(prevNode: this): void;
|
|
179
|
+
createDOM(config: EditorConfig): HTMLElement;
|
|
180
|
+
updateDOM(prevNode: this, dom: HTMLElement, config: EditorConfig): boolean;
|
|
181
|
+
exportJSON(): SerializedTemplateVariableNode;
|
|
182
|
+
canInsertTextBefore(): boolean;
|
|
183
|
+
canInsertTextAfter(): boolean;
|
|
184
|
+
isTextEntity(): true;
|
|
185
|
+
}
|
|
186
|
+
export declare class RichTextLinkNode extends TextNode {
|
|
187
|
+
__url: string;
|
|
188
|
+
static getType(): string;
|
|
189
|
+
static clone(node: RichTextLinkNode): RichTextLinkNode;
|
|
190
|
+
static importJSON(serializedNode: SerializedRichTextLinkNode): RichTextLinkNode;
|
|
191
|
+
constructor(text: string, url: string, key?: NodeKey);
|
|
192
|
+
afterCloneFrom(prevNode: this): void;
|
|
193
|
+
createDOM(config: EditorConfig): HTMLElement;
|
|
194
|
+
updateDOM(prevNode: this, dom: HTMLElement, config: EditorConfig): boolean;
|
|
195
|
+
exportJSON(): SerializedRichTextLinkNode;
|
|
196
|
+
getURL(): string;
|
|
197
|
+
setURL(url: string): this;
|
|
198
|
+
canInsertTextBefore(): boolean;
|
|
199
|
+
canInsertTextAfter(): boolean;
|
|
200
|
+
splitText(...splitOffsets: number[]): TextNode[];
|
|
201
|
+
isTextEntity(): false;
|
|
202
|
+
}
|
|
203
|
+
export declare function $createTemplateVariableNode(templateKey: string): TemplateVariableNode;
|
|
204
|
+
export declare function $createRichTextLinkNode(text: string, url: string): RichTextLinkNode;
|
|
205
|
+
export declare function $isRichTextLinkNode(node: unknown): node is RichTextLinkNode;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { RichTextContentPolicy } from '../../../components/rich-text/content-policy';
|
|
2
|
+
import { RichTextImageAssetDeletionHandlers } from '../../../components/rich-text/rich-text-editor-context';
|
|
3
|
+
import { RichTextImageAssetOption } from '../../../components/rich-text/types';
|
|
4
|
+
import { EditorState, SerializedEditorState } from 'lexical';
|
|
5
|
+
import { KeyboardEventHandler } from 'react';
|
|
6
|
+
import { RichTextStyleControl, RichTextTemplateVariable } from './rich-text-editor-utils';
|
|
7
|
+
export interface RichTextEditorChange {
|
|
8
|
+
editorState: EditorState;
|
|
9
|
+
value: SerializedEditorState;
|
|
10
|
+
plainText: string;
|
|
11
|
+
isEmpty: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface RichTextEditorProps {
|
|
14
|
+
id?: string;
|
|
15
|
+
value?: SerializedEditorState | null;
|
|
16
|
+
placeholder?: string;
|
|
17
|
+
autoFocus?: boolean;
|
|
18
|
+
editable?: boolean;
|
|
19
|
+
wrapperClassName?: string;
|
|
20
|
+
surfaceClassName?: string;
|
|
21
|
+
contentClassName?: string;
|
|
22
|
+
placeholderClassName?: string;
|
|
23
|
+
toolbarClassName?: string;
|
|
24
|
+
commandMenuClassName?: string;
|
|
25
|
+
styleControls?: RichTextStyleControl[];
|
|
26
|
+
templateVariables?: RichTextTemplateVariable[];
|
|
27
|
+
editorVariant?: "compact" | "block";
|
|
28
|
+
contentPolicy?: RichTextContentPolicy;
|
|
29
|
+
resolveImageAssetUrl?: (assetId: string) => string | undefined;
|
|
30
|
+
imageAssets?: RichTextImageAssetOption[];
|
|
31
|
+
/** When set, the image popover can add a new embedded survey image asset and return its id. */
|
|
32
|
+
registerImageAsset?: (file: File) => Promise<string>;
|
|
33
|
+
/** Survey wiring for optional confirm + removal when a single-use embedded image is deleted from the document. */
|
|
34
|
+
imageAssetDeletion?: RichTextImageAssetDeletionHandlers;
|
|
35
|
+
linksEnabled?: boolean;
|
|
36
|
+
"aria-label"?: string;
|
|
37
|
+
onChange?: (change: RichTextEditorChange) => void;
|
|
38
|
+
onFocus?: () => void;
|
|
39
|
+
onBlur?: () => void;
|
|
40
|
+
onKeyDown?: KeyboardEventHandler<HTMLDivElement>;
|
|
41
|
+
onKeyDownCapture?: KeyboardEventHandler<HTMLDivElement>;
|
|
42
|
+
}
|
|
43
|
+
export declare function RichTextEditor({ id, value, placeholder, autoFocus, editable, wrapperClassName, surfaceClassName, contentClassName, placeholderClassName, toolbarClassName, 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;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { RichTextImageSize, SurveyContentImageSource } from '@case-framework/survey-core';
|
|
2
|
+
import { ElementFormatType, LexicalCommand, NodeKey } from 'lexical';
|
|
3
|
+
export declare const OPEN_RICH_TEXT_IMAGE_EDITOR_COMMAND: LexicalCommand<NodeKey>;
|
|
4
|
+
export type RichTextImageUpdatePayload = {
|
|
5
|
+
key: NodeKey;
|
|
6
|
+
source: SurveyContentImageSource;
|
|
7
|
+
alt: string;
|
|
8
|
+
caption: string;
|
|
9
|
+
size?: RichTextImageSize;
|
|
10
|
+
format: ElementFormatType;
|
|
11
|
+
};
|
|
12
|
+
export declare const UPDATE_RICH_TEXT_IMAGE_COMMAND: LexicalCommand<RichTextImageUpdatePayload>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { LexicalCommand, NodeKey } from 'lexical';
|
|
2
|
+
export type RichTextInfoBoxInsertPayload = {
|
|
3
|
+
tone: "info" | "warning";
|
|
4
|
+
/**
|
|
5
|
+
* When inserting from the slash menu, Lexical may clear range selection after removing the
|
|
6
|
+
* trigger text. Pass the root paragraph key *before* that removal so we can replace an empty
|
|
7
|
+
* paragraph reliably.
|
|
8
|
+
*/
|
|
9
|
+
replaceIfEmptyParagraphKey?: NodeKey;
|
|
10
|
+
};
|
|
11
|
+
export declare const INSERT_RICH_TEXT_INFO_BOX_COMMAND: LexicalCommand<RichTextInfoBoxInsertPayload>;
|
|
12
|
+
export declare const OPEN_RICH_TEXT_INFO_BOX_EDITOR_COMMAND: LexicalCommand<NodeKey>;
|
|
13
|
+
export declare const UPDATE_RICH_TEXT_INFO_BOX_COMMAND: LexicalCommand<{
|
|
14
|
+
key: NodeKey;
|
|
15
|
+
tone: "info" | "warning";
|
|
16
|
+
title: string;
|
|
17
|
+
content: string;
|
|
18
|
+
collapsible: boolean;
|
|
19
|
+
defaultOpen: boolean;
|
|
20
|
+
}>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { AlertDialog as AlertDialogPrimitive } from 'radix-ui';
|
|
2
|
+
import { Button } from '../../../components/ui/button';
|
|
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;
|
|
8
|
+
declare function AlertDialogContent({ className, size, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Content> & {
|
|
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;
|
|
18
|
+
export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare const alertVariants: (props?: ({
|
|
4
|
+
variant?: "default" | "destructive" | null | undefined;
|
|
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;
|
|
10
|
+
export { Alert, AlertTitle, AlertDescription, AlertAction };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare const badgeVariants: (props?: ({
|
|
4
|
+
variant?: "default" | "outline" | "secondary" | "ghost" | "destructive" | "link" | null | undefined;
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
|
+
declare function Badge({ className, variant, asChild, ...props }: React.ComponentProps<"span"> & VariantProps<typeof badgeVariants> & {
|
|
7
|
+
asChild?: boolean;
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export { Badge, badgeVariants };
|
|
@@ -0,0 +1,11 @@
|
|
|
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;
|
|
5
|
+
declare function BreadcrumbLink({ asChild, className, ...props }: React.ComponentProps<"a"> & {
|
|
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;
|
|
11
|
+
export { Breadcrumb, BreadcrumbList, BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, BreadcrumbEllipsis, };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare const buttonVariants: (props?: ({
|
|
4
|
+
variant?: "default" | "outline" | "secondary" | "ghost" | "destructive" | "link" | null | undefined;
|
|
5
|
+
size?: "default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg" | null | undefined;
|
|
6
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
+
declare function Button({ className, variant, size, asChild, ...props }: React.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
|
|
8
|
+
asChild?: boolean;
|
|
9
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export { Button, buttonVariants };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DayPicker, DayButton, Locale } from 'react-day-picker';
|
|
2
|
+
import { Button } from '../../../components/ui/button';
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
declare function Calendar({ className, classNames, showOutsideDays, captionLayout, buttonVariant, locale, formatters, components, ...props }: React.ComponentProps<typeof DayPicker> & {
|
|
5
|
+
buttonVariant?: React.ComponentProps<typeof Button>["variant"];
|
|
6
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function CalendarDayButton({ className, day, modifiers, locale, ...props }: React.ComponentProps<typeof DayButton> & {
|
|
8
|
+
locale?: Partial<Locale>;
|
|
9
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export { Calendar, CalendarDayButton };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare function Card({ className, size, ...props }: React.ComponentProps<"div"> & {
|
|
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;
|
|
11
|
+
export { Card, CardHeader, CardFooter, CardTitle, CardAction, CardDescription, CardContent, };
|
|
@@ -0,0 +1,5 @@
|
|
|
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;
|
|
5
|
+
export { Collapsible, CollapsibleTrigger, CollapsibleContent };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Command as CommandPrimitive } from 'cmdk';
|
|
2
|
+
import { Dialog } from '../../../components/ui/dialog';
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
declare function Command({ className, ...props }: React.ComponentProps<typeof CommandPrimitive>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function CommandDialog({ title, description, children, className, showCloseButton, ...props }: React.ComponentProps<typeof Dialog> & {
|
|
6
|
+
title?: string;
|
|
7
|
+
description?: string;
|
|
8
|
+
className?: string;
|
|
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;
|
|
18
|
+
export { Command, CommandDialog, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandShortcut, CommandSeparator, };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ContextMenu as ContextMenuPrimitive } from 'radix-ui';
|
|
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;
|
|
9
|
+
declare function ContextMenuContent({ className, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Content> & {
|
|
10
|
+
side?: "top" | "right" | "bottom" | "left";
|
|
11
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare function ContextMenuItem({ className, inset, variant, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Item> & {
|
|
13
|
+
inset?: boolean;
|
|
14
|
+
variant?: "default" | "destructive";
|
|
15
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
declare function ContextMenuSubTrigger({ className, inset, children, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.SubTrigger> & {
|
|
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;
|
|
20
|
+
declare function ContextMenuCheckboxItem({ className, children, checked, inset, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.CheckboxItem> & {
|
|
21
|
+
inset?: boolean;
|
|
22
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
declare function ContextMenuRadioItem({ className, children, inset, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.RadioItem> & {
|
|
24
|
+
inset?: boolean;
|
|
25
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
declare function ContextMenuLabel({ className, inset, ...props }: React.ComponentProps<typeof ContextMenuPrimitive.Label> & {
|
|
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;
|
|
31
|
+
export { ContextMenu, ContextMenuTrigger, ContextMenuContent, ContextMenuItem, ContextMenuCheckboxItem, ContextMenuRadioItem, ContextMenuLabel, ContextMenuSeparator, ContextMenuShortcut, ContextMenuGroup, ContextMenuPortal, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuRadioGroup, };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Dialog as DialogPrimitive } from 'radix-ui';
|
|
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;
|
|
8
|
+
declare function DialogContent({ className, children, showCloseButton, closeLabel, ...props }: React.ComponentProps<typeof DialogPrimitive.Content> & {
|
|
9
|
+
showCloseButton?: boolean;
|
|
10
|
+
closeLabel?: string;
|
|
11
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare function DialogHeader({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare function DialogFooter({ className, showCloseButton, closeLabel, children, ...props }: React.ComponentProps<"div"> & {
|
|
14
|
+
showCloseButton?: boolean;
|
|
15
|
+
closeLabel?: string;
|
|
16
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
declare function DialogTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
declare function DialogDescription({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Description>): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { DropdownMenu as DropdownMenuPrimitive } from 'radix-ui';
|
|
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;
|
|
8
|
+
declare function DropdownMenuItem({ className, inset, variant, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Item> & {
|
|
9
|
+
inset?: boolean;
|
|
10
|
+
variant?: "default" | "destructive";
|
|
11
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare function DropdownMenuCheckboxItem({ className, children, checked, inset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem> & {
|
|
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;
|
|
16
|
+
declare function DropdownMenuRadioItem({ className, children, inset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.RadioItem> & {
|
|
17
|
+
inset?: boolean;
|
|
18
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
declare function DropdownMenuLabel({ className, inset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Label> & {
|
|
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;
|
|
25
|
+
declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {
|
|
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;
|
|
29
|
+
export { DropdownMenu, DropdownMenuPortal, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuGroup, DropdownMenuLabel, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent, };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { Label } from '../../../components/ui/label';
|
|
3
|
+
declare function FieldSet({ className, ...props }: React.ComponentProps<"fieldset">): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function FieldLegend({ className, variant, ...props }: React.ComponentProps<"legend"> & {
|
|
5
|
+
variant?: "legend" | "label";
|
|
6
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function FieldGroup({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare const fieldVariants: (props?: ({
|
|
9
|
+
orientation?: "horizontal" | "vertical" | "responsive" | null | undefined;
|
|
10
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
11
|
+
declare function Field({ className, orientation, ...props }: React.ComponentProps<"div"> & VariantProps<typeof fieldVariants>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare function FieldContent({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare function FieldLabel({ className, ...props }: React.ComponentProps<typeof Label>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare function FieldTitle({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
declare function FieldDescription({ className, ...props }: React.ComponentProps<"p">): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
declare function FieldSeparator({ children, className, ...props }: React.ComponentProps<"div"> & {
|
|
17
|
+
children?: React.ReactNode;
|
|
18
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
declare function FieldError({ className, children, errors, ...props }: React.ComponentProps<"div"> & {
|
|
20
|
+
errors?: Array<{
|
|
21
|
+
message?: string;
|
|
22
|
+
} | undefined>;
|
|
23
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
24
|
+
export { Field, FieldLabel, FieldDescription, FieldError, FieldGroup, FieldLegend, FieldSeparator, FieldSet, FieldContent, FieldTitle, };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { Button } from '../../../components/ui/button';
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
declare function InputGroup({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare const inputGroupAddonVariants: (props?: ({
|
|
6
|
+
align?: "inline-end" | "inline-start" | "block-end" | "block-start" | null | undefined;
|
|
7
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
8
|
+
declare function InputGroupAddon({ className, align, ...props }: React.ComponentProps<"div"> & VariantProps<typeof inputGroupAddonVariants>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare const inputGroupButtonVariants: (props?: ({
|
|
10
|
+
size?: "xs" | "sm" | "icon-xs" | "icon-sm" | null | undefined;
|
|
11
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
12
|
+
declare function InputGroupButton({ className, type, variant, size, ...props }: Omit<React.ComponentProps<typeof Button>, "size"> & VariantProps<typeof inputGroupButtonVariants>): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare function InputGroupText({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare function InputGroupInput({ className, ...props }: React.ComponentProps<"input">): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
declare function InputGroupTextarea({ className, ...props }: React.ComponentProps<"textarea">): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export { InputGroup, InputGroupAddon, InputGroupButton, InputGroupText, InputGroupInput, InputGroupTextarea, };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Popover as PopoverPrimitive } from 'radix-ui';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare function Popover({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function PopoverTrigger({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function PopoverContent({ className, align, sideOffset, ...props }: React.ComponentProps<typeof PopoverPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function PopoverAnchor({ ...props }: React.ComponentProps<typeof PopoverPrimitive.Anchor>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function PopoverHeader({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function PopoverTitle({ className, ...props }: React.ComponentProps<"h2">): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare function PopoverDescription({ className, ...props }: React.ComponentProps<"p">): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export { Popover, PopoverAnchor, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { RadioGroup as RadioGroupPrimitive } from 'radix-ui';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare function RadioGroup({ className, ...props }: React.ComponentProps<typeof RadioGroupPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function RadioGroupItem({ className, ...props }: React.ComponentProps<typeof RadioGroupPrimitive.Item>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export { RadioGroup, RadioGroupItem };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ScrollArea as ScrollAreaPrimitive } from 'radix-ui';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare function ScrollArea({ className, children, ...props }: React.ComponentProps<typeof ScrollAreaPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function ScrollBar({ className, orientation, ...props }: React.ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export { ScrollArea, ScrollBar };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Select as SelectPrimitive } from 'radix-ui';
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
declare function Select({ ...props }: React.ComponentProps<typeof SelectPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function SelectGroup({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function SelectValue({ ...props }: React.ComponentProps<typeof SelectPrimitive.Value>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function SelectTrigger({ className, size, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Trigger> & {
|
|
7
|
+
size?: "sm" | "default";
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare function SelectContent({ className, children, position, align, ...props }: React.ComponentProps<typeof SelectPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare function SelectLabel({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Label>): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare function SelectItem({ className, children, ...props }: React.ComponentProps<typeof SelectPrimitive.Item>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare function SelectSeparator({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.Separator>): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare function SelectScrollUpButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollUpButton>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare function SelectScrollDownButton({ className, ...props }: React.ComponentProps<typeof SelectPrimitive.ScrollDownButton>): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export { Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, };
|