@refraction-ui/react 0.4.1 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -1
- package/dist/chunk-ZWRGVWUY.js +120 -0
- package/dist/chunk-ZWRGVWUY.js.map +1 -0
- package/dist/form.cjs +315 -0
- package/dist/form.cjs.map +1 -0
- package/dist/form.d.cts +1 -0
- package/dist/form.d.ts +1 -0
- package/dist/form.js +196 -0
- package/dist/form.js.map +1 -0
- package/dist/index.cjs +45 -258
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +74 -76
- package/dist/index.d.ts +74 -76
- package/dist/index.js +47 -334
- package/dist/index.js.map +1 -1
- package/dist/internal/animated-text/index.d.cts +47 -0
- package/dist/internal/animated-text/index.d.ts +47 -0
- package/dist/internal/app-shell/index.d.cts +128 -0
- package/dist/internal/app-shell/index.d.ts +128 -0
- package/dist/internal/auth/index.d.cts +74 -0
- package/dist/internal/auth/index.d.ts +74 -0
- package/dist/internal/avatar/index.d.cts +53 -0
- package/dist/internal/avatar/index.d.ts +53 -0
- package/dist/internal/avatar-group/index.d.cts +70 -0
- package/dist/internal/avatar-group/index.d.ts +70 -0
- package/dist/internal/badge/index.d.cts +26 -0
- package/dist/internal/badge/index.d.ts +26 -0
- package/dist/internal/bottom-nav/index.d.cts +29 -0
- package/dist/internal/bottom-nav/index.d.ts +29 -0
- package/dist/internal/breadcrumbs/index.d.cts +38 -0
- package/dist/internal/breadcrumbs/index.d.ts +38 -0
- package/dist/internal/button/index.d.cts +34 -0
- package/dist/internal/button/index.d.ts +34 -0
- package/dist/internal/calendar/index.d.cts +73 -0
- package/dist/internal/calendar/index.d.ts +73 -0
- package/dist/internal/card/index.d.cts +62 -0
- package/dist/internal/card/index.d.ts +62 -0
- package/dist/internal/card-grid/index.d.cts +10 -0
- package/dist/internal/card-grid/index.d.ts +10 -0
- package/dist/internal/checkbox/index.d.cts +40 -0
- package/dist/internal/checkbox/index.d.ts +40 -0
- package/dist/internal/code-editor/index.d.cts +47 -0
- package/dist/internal/code-editor/index.d.ts +47 -0
- package/dist/internal/collapsible/index.d.cts +43 -0
- package/dist/internal/collapsible/index.d.ts +43 -0
- package/dist/internal/command/index.d.cts +80 -0
- package/dist/internal/command/index.d.ts +80 -0
- package/dist/internal/content-protection/index.d.cts +47 -0
- package/dist/internal/content-protection/index.d.ts +47 -0
- package/dist/internal/data-table/index.d.cts +73 -0
- package/dist/internal/data-table/index.d.ts +73 -0
- package/dist/internal/date-picker/index.d.cts +98 -0
- package/dist/internal/date-picker/index.d.ts +98 -0
- package/dist/internal/device-frame/index.d.cts +40 -0
- package/dist/internal/device-frame/index.d.ts +40 -0
- package/dist/internal/dialog/index.d.cts +54 -0
- package/dist/internal/dialog/index.d.ts +54 -0
- package/dist/internal/dropdown-menu/index.d.cts +55 -0
- package/dist/internal/dropdown-menu/index.d.ts +55 -0
- package/dist/internal/emoji-picker/index.d.cts +77 -0
- package/dist/internal/emoji-picker/index.d.ts +77 -0
- package/dist/internal/feedback-dialog/index.d.cts +55 -0
- package/dist/internal/feedback-dialog/index.d.ts +55 -0
- package/dist/internal/file-upload/index.d.cts +91 -0
- package/dist/internal/file-upload/index.d.ts +91 -0
- package/dist/internal/footer/index.d.cts +30 -0
- package/dist/internal/footer/index.d.ts +30 -0
- package/dist/internal/inline-editor/index.d.cts +52 -0
- package/dist/internal/inline-editor/index.d.ts +52 -0
- package/dist/internal/input/index.d.cts +38 -0
- package/dist/internal/input/index.d.ts +38 -0
- package/dist/internal/input-group/index.d.cts +35 -0
- package/dist/internal/input-group/index.d.ts +35 -0
- package/dist/internal/install-prompt/index.d.cts +36 -0
- package/dist/internal/install-prompt/index.d.ts +36 -0
- package/dist/internal/keyboard-shortcut/index.d.cts +49 -0
- package/dist/internal/keyboard-shortcut/index.d.ts +49 -0
- package/dist/internal/language-selector/index.d.cts +63 -0
- package/dist/internal/language-selector/index.d.ts +63 -0
- package/dist/internal/markdown-renderer/index.d.cts +40 -0
- package/dist/internal/markdown-renderer/index.d.ts +40 -0
- package/dist/internal/mobile-nav/index.d.cts +45 -0
- package/dist/internal/mobile-nav/index.d.ts +45 -0
- package/dist/internal/navbar/index.d.cts +30 -0
- package/dist/internal/navbar/index.d.ts +30 -0
- package/dist/internal/otp-input/index.d.cts +66 -0
- package/dist/internal/otp-input/index.d.ts +66 -0
- package/dist/internal/payment/index.d.cts +9 -0
- package/dist/internal/payment/index.d.ts +9 -0
- package/dist/internal/popover/index.d.cts +46 -0
- package/dist/internal/popover/index.d.ts +46 -0
- package/dist/internal/presence-indicator/index.d.cts +38 -0
- package/dist/internal/presence-indicator/index.d.ts +38 -0
- package/dist/internal/progress-display/index.d.cts +60 -0
- package/dist/internal/progress-display/index.d.ts +60 -0
- package/dist/internal/radio/index.d.ts +43 -0
- package/dist/internal/react-accordion/index.d.ts +22 -0
- package/dist/internal/react-animated-text/index.d.cts +12 -0
- package/dist/internal/react-animated-text/index.d.ts +12 -0
- package/dist/internal/react-app-shell/index.d.cts +169 -0
- package/dist/internal/react-app-shell/index.d.ts +169 -0
- package/dist/internal/react-auth/index.d.cts +59 -0
- package/dist/internal/react-auth/index.d.ts +59 -0
- package/dist/internal/react-avatar/index.d.cts +20 -0
- package/dist/internal/react-avatar/index.d.ts +20 -0
- package/dist/internal/react-avatar-group/index.d.cts +33 -0
- package/dist/internal/react-avatar-group/index.d.ts +33 -0
- package/dist/internal/react-badge/index.d.cts +17 -0
- package/dist/internal/react-badge/index.d.ts +17 -0
- package/dist/internal/react-bottom-nav/index.d.cts +19 -0
- package/dist/internal/react-bottom-nav/index.d.ts +19 -0
- package/dist/internal/react-breadcrumbs/index.d.cts +24 -0
- package/dist/internal/react-breadcrumbs/index.d.ts +24 -0
- package/dist/internal/react-button/index.d.cts +21 -0
- package/dist/internal/react-button/index.d.ts +21 -0
- package/dist/internal/react-calendar/index.d.cts +44 -0
- package/dist/internal/react-calendar/index.d.ts +44 -0
- package/dist/internal/react-callout/index.d.cts +12 -0
- package/dist/internal/react-callout/index.d.ts +12 -0
- package/dist/internal/react-card/index.d.cts +29 -0
- package/dist/internal/react-card/index.d.ts +29 -0
- package/dist/internal/react-card-grid/index.d.cts +8 -0
- package/dist/internal/react-card-grid/index.d.ts +8 -0
- package/dist/internal/react-carousel/index.d.ts +22 -0
- package/dist/internal/react-checkbox/index.d.cts +18 -0
- package/dist/internal/react-checkbox/index.d.ts +18 -0
- package/dist/internal/react-code-block/index.d.cts +7 -0
- package/dist/internal/react-code-block/index.d.ts +7 -0
- package/dist/internal/react-code-editor/index.d.cts +28 -0
- package/dist/internal/react-code-editor/index.d.ts +28 -0
- package/dist/internal/react-collapsible/index.d.cts +29 -0
- package/dist/internal/react-collapsible/index.d.ts +29 -0
- package/dist/internal/react-combobox/index.d.cts +94 -0
- package/dist/internal/react-combobox/index.d.ts +94 -0
- package/dist/internal/react-command/index.d.cts +51 -0
- package/dist/internal/react-command/index.d.ts +51 -0
- package/dist/internal/react-content-protection/index.d.cts +22 -0
- package/dist/internal/react-content-protection/index.d.ts +22 -0
- package/dist/internal/react-data-table/index.d.cts +22 -0
- package/dist/internal/react-data-table/index.d.ts +22 -0
- package/dist/internal/react-date-picker/index.d.cts +23 -0
- package/dist/internal/react-date-picker/index.d.ts +23 -0
- package/dist/internal/react-device-frame/index.d.cts +37 -0
- package/dist/internal/react-device-frame/index.d.ts +37 -0
- package/dist/internal/react-dialog/index.d.cts +49 -0
- package/dist/internal/react-dialog/index.d.ts +49 -0
- package/dist/internal/react-dropdown-menu/index.d.cts +37 -0
- package/dist/internal/react-dropdown-menu/index.d.ts +37 -0
- package/dist/internal/react-emoji-picker/index.d.cts +32 -0
- package/dist/internal/react-emoji-picker/index.d.ts +32 -0
- package/dist/internal/react-feedback-dialog/index.d.cts +40 -0
- package/dist/internal/react-feedback-dialog/index.d.ts +40 -0
- package/dist/internal/react-file-tree/index.d.cts +5 -0
- package/dist/internal/react-file-tree/index.d.ts +5 -0
- package/dist/internal/react-file-upload/index.d.cts +22 -0
- package/dist/internal/react-file-upload/index.d.ts +22 -0
- package/dist/internal/react-footer/index.d.cts +20 -0
- package/dist/internal/react-footer/index.d.ts +20 -0
- package/dist/internal/react-form/index.d.cts +85 -0
- package/dist/internal/react-form/index.d.ts +85 -0
- package/dist/internal/react-icon-system/index.d.cts +5 -0
- package/dist/internal/react-icon-system/index.d.ts +5 -0
- package/dist/internal/react-inline-editor/index.d.cts +17 -0
- package/dist/internal/react-inline-editor/index.d.ts +17 -0
- package/dist/internal/react-input/index.d.cts +31 -0
- package/dist/internal/react-input/index.d.ts +31 -0
- package/dist/internal/react-input-group/index.d.cts +34 -0
- package/dist/internal/react-input-group/index.d.ts +34 -0
- package/dist/internal/react-install-prompt/index.d.cts +24 -0
- package/dist/internal/react-install-prompt/index.d.ts +24 -0
- package/dist/internal/react-keyboard-shortcut/index.d.cts +57 -0
- package/dist/internal/react-keyboard-shortcut/index.d.ts +57 -0
- package/dist/internal/react-language-selector/index.d.cts +26 -0
- package/dist/internal/react-language-selector/index.d.ts +26 -0
- package/dist/internal/react-link-card/index.d.cts +5 -0
- package/dist/internal/react-link-card/index.d.ts +5 -0
- package/dist/internal/react-markdown-renderer/index.d.cts +20 -0
- package/dist/internal/react-markdown-renderer/index.d.ts +20 -0
- package/dist/internal/react-mobile-nav/index.d.cts +33 -0
- package/dist/internal/react-mobile-nav/index.d.ts +33 -0
- package/dist/internal/react-navbar/index.d.cts +25 -0
- package/dist/internal/react-navbar/index.d.ts +25 -0
- package/dist/internal/react-otp-input/index.d.cts +21 -0
- package/dist/internal/react-otp-input/index.d.ts +21 -0
- package/dist/internal/react-pagination/index.d.ts +7 -0
- package/dist/internal/react-payment/index.d.cts +9 -0
- package/dist/internal/react-payment/index.d.ts +9 -0
- package/dist/internal/react-popover/index.d.cts +33 -0
- package/dist/internal/react-popover/index.d.ts +33 -0
- package/dist/internal/react-presence-indicator/index.d.cts +34 -0
- package/dist/internal/react-presence-indicator/index.d.ts +34 -0
- package/dist/internal/react-progress-display/index.d.cts +21 -0
- package/dist/internal/react-progress-display/index.d.ts +21 -0
- package/dist/internal/react-radio/index.d.ts +33 -0
- package/dist/internal/react-reaction-bar/index.d.cts +34 -0
- package/dist/internal/react-reaction-bar/index.d.ts +34 -0
- package/dist/internal/react-resizable-layout/index.d.cts +36 -0
- package/dist/internal/react-resizable-layout/index.d.ts +36 -0
- package/dist/internal/react-rich-editor/index.d.cts +2 -0
- package/dist/internal/react-rich-editor/index.d.ts +2 -0
- package/dist/internal/react-search-bar/index.d.cts +32 -0
- package/dist/internal/react-search-bar/index.d.ts +32 -0
- package/dist/internal/react-select/index.d.cts +30 -0
- package/dist/internal/react-select/index.d.ts +30 -0
- package/dist/internal/react-sheet/index.d.cts +67 -0
- package/dist/internal/react-sheet/index.d.ts +67 -0
- package/dist/internal/react-sidebar/index.d.cts +23 -0
- package/dist/internal/react-sidebar/index.d.ts +23 -0
- package/dist/internal/react-skeleton/index.d.cts +31 -0
- package/dist/internal/react-skeleton/index.d.ts +31 -0
- package/dist/internal/react-skip-to-content/index.d.cts +9 -0
- package/dist/internal/react-skip-to-content/index.d.ts +9 -0
- package/dist/internal/react-slide-viewer/index.d.cts +23 -0
- package/dist/internal/react-slide-viewer/index.d.ts +23 -0
- package/dist/internal/react-slider/index.d.cts +1 -0
- package/dist/internal/react-slider/index.d.ts +1 -0
- package/dist/internal/react-status-indicator/index.d.cts +34 -0
- package/dist/internal/react-status-indicator/index.d.ts +34 -0
- package/dist/internal/react-steps/index.d.cts +19 -0
- package/dist/internal/react-steps/index.d.ts +19 -0
- package/dist/internal/react-switch/index.d.cts +17 -0
- package/dist/internal/react-switch/index.d.ts +17 -0
- package/dist/internal/react-table-of-contents/index.d.ts +10 -0
- package/dist/internal/react-tabs/index.d.cts +31 -0
- package/dist/internal/react-tabs/index.d.ts +31 -0
- package/dist/internal/react-textarea/index.d.cts +16 -0
- package/dist/internal/react-textarea/index.d.ts +16 -0
- package/dist/internal/react-theme/index.d.cts +44 -0
- package/dist/internal/react-theme/index.d.ts +44 -0
- package/dist/internal/react-thread-view/index.d.cts +34 -0
- package/dist/internal/react-thread-view/index.d.ts +34 -0
- package/dist/internal/react-toast/index.d.cts +36 -0
- package/dist/internal/react-toast/index.d.ts +36 -0
- package/dist/internal/react-tooltip/index.d.cts +33 -0
- package/dist/internal/react-tooltip/index.d.ts +33 -0
- package/dist/internal/react-version-selector/index.d.cts +24 -0
- package/dist/internal/react-version-selector/index.d.ts +24 -0
- package/dist/internal/react-video-player/index.d.cts +9 -0
- package/dist/internal/react-video-player/index.d.ts +9 -0
- package/dist/internal/react-voice-pill/index.d.cts +10 -0
- package/dist/internal/react-voice-pill/index.d.ts +10 -0
- package/dist/internal/react-waveform/index.d.cts +9 -0
- package/dist/internal/react-waveform/index.d.ts +9 -0
- package/dist/internal/reaction-bar/index.d.cts +50 -0
- package/dist/internal/reaction-bar/index.d.ts +50 -0
- package/dist/internal/resizable-layout/index.d.cts +47 -0
- package/dist/internal/resizable-layout/index.d.ts +47 -0
- package/dist/internal/search-bar/index.d.cts +51 -0
- package/dist/internal/search-bar/index.d.ts +51 -0
- package/dist/internal/select/index.d.cts +69 -0
- package/dist/internal/select/index.d.ts +69 -0
- package/dist/internal/shared/index.d.cts +249 -0
- package/dist/internal/shared/index.d.ts +249 -0
- package/dist/internal/sidebar/index.d.cts +40 -0
- package/dist/internal/sidebar/index.d.ts +40 -0
- package/dist/internal/skeleton/index.d.cts +27 -0
- package/dist/internal/skeleton/index.d.ts +27 -0
- package/dist/internal/slide-viewer/index.d.cts +72 -0
- package/dist/internal/slide-viewer/index.d.ts +72 -0
- package/dist/internal/slider/index.d.cts +4 -0
- package/dist/internal/slider/index.d.ts +4 -0
- package/dist/internal/status-indicator/index.d.cts +42 -0
- package/dist/internal/status-indicator/index.d.ts +42 -0
- package/dist/internal/switch/index.d.cts +41 -0
- package/dist/internal/switch/index.d.ts +41 -0
- package/dist/internal/tabs/index.d.cts +45 -0
- package/dist/internal/tabs/index.d.ts +45 -0
- package/dist/internal/textarea/index.d.cts +28 -0
- package/dist/internal/textarea/index.d.ts +28 -0
- package/dist/internal/theme/index.d.cts +60 -0
- package/dist/internal/theme/index.d.ts +60 -0
- package/dist/internal/thread-view/index.d.cts +95 -0
- package/dist/internal/thread-view/index.d.ts +95 -0
- package/dist/internal/toast/index.d.cts +64 -0
- package/dist/internal/toast/index.d.ts +64 -0
- package/dist/internal/tooltip/index.d.cts +45 -0
- package/dist/internal/tooltip/index.d.ts +45 -0
- package/dist/internal/version-selector/index.d.cts +68 -0
- package/dist/internal/version-selector/index.d.ts +68 -0
- package/dist/internal/video-player/index.d.cts +50 -0
- package/dist/internal/video-player/index.d.ts +50 -0
- package/dist/internal/voice-pill/index.d.cts +86 -0
- package/dist/internal/voice-pill/index.d.ts +86 -0
- package/dist/internal/waveform/index.d.cts +83 -0
- package/dist/internal/waveform/index.d.ts +83 -0
- package/dist/theme.d.cts +1 -1
- package/dist/theme.d.ts +1 -1
- package/package.json +7 -6
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { CheckedState } from '../checkbox/index.js';
|
|
3
|
+
export { CheckboxAPI, CheckedState, checkIconPath, checkboxTokens, checkboxVariants, indeterminateIconPath } from '../checkbox/index.js';
|
|
4
|
+
|
|
5
|
+
interface CheckboxProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'onChange'> {
|
|
6
|
+
checked?: CheckedState;
|
|
7
|
+
onCheckedChange?: (checked: CheckedState) => void;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
size?: 'sm' | 'default' | 'lg';
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Checkbox component -- renders a styled checkbox with check/indeterminate icons.
|
|
13
|
+
*
|
|
14
|
+
* Uses the headless @refraction-ui/checkbox core for state, ARIA, and keyboard handling.
|
|
15
|
+
*/
|
|
16
|
+
declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLButtonElement>>;
|
|
17
|
+
|
|
18
|
+
export { Checkbox, type CheckboxProps };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
declare const CodeBlock: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
declare const CodeBlockHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
declare const CodeBlockContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLPreElement> & React.RefAttributes<HTMLPreElement>>;
|
|
6
|
+
|
|
7
|
+
export { CodeBlock, CodeBlockContent, CodeBlockHeader };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
declare const CodeBlock: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
declare const CodeBlockHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
declare const CodeBlockContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLPreElement> & React.RefAttributes<HTMLPreElement>>;
|
|
6
|
+
|
|
7
|
+
export { CodeBlock, CodeBlockContent, CodeBlockHeader };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { CodeEditorTheme } from '../code-editor/index.cjs';
|
|
3
|
+
export { CodeEditorAPI, CodeEditorState, CodeEditorTheme, codeEditorTokens, codeEditorVariants } from '../code-editor/index.cjs';
|
|
4
|
+
|
|
5
|
+
interface CodeEditorProps {
|
|
6
|
+
value?: string;
|
|
7
|
+
onChange?: (value: string) => void;
|
|
8
|
+
language?: string;
|
|
9
|
+
readOnly?: boolean;
|
|
10
|
+
theme?: CodeEditorTheme;
|
|
11
|
+
className?: string;
|
|
12
|
+
placeholder?: string;
|
|
13
|
+
/** Optional action buttons rendered in the header bar */
|
|
14
|
+
actions?: Array<{
|
|
15
|
+
label: string;
|
|
16
|
+
onClick: () => void;
|
|
17
|
+
}>;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* CodeEditor component — a styled textarea-based code editor.
|
|
21
|
+
*
|
|
22
|
+
* Uses the headless @refraction-ui/code-editor core for state and ARIA.
|
|
23
|
+
* Renders a simple monospace textarea with a header bar showing the language
|
|
24
|
+
* label and optional action buttons. Syntax highlighting is a future enhancement.
|
|
25
|
+
*/
|
|
26
|
+
declare const CodeEditor: React.ForwardRefExoticComponent<CodeEditorProps & React.RefAttributes<HTMLDivElement>>;
|
|
27
|
+
|
|
28
|
+
export { CodeEditor, type CodeEditorProps };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { CodeEditorTheme } from '../code-editor/index.js';
|
|
3
|
+
export { CodeEditorAPI, CodeEditorState, CodeEditorTheme, codeEditorTokens, codeEditorVariants } from '../code-editor/index.js';
|
|
4
|
+
|
|
5
|
+
interface CodeEditorProps {
|
|
6
|
+
value?: string;
|
|
7
|
+
onChange?: (value: string) => void;
|
|
8
|
+
language?: string;
|
|
9
|
+
readOnly?: boolean;
|
|
10
|
+
theme?: CodeEditorTheme;
|
|
11
|
+
className?: string;
|
|
12
|
+
placeholder?: string;
|
|
13
|
+
/** Optional action buttons rendered in the header bar */
|
|
14
|
+
actions?: Array<{
|
|
15
|
+
label: string;
|
|
16
|
+
onClick: () => void;
|
|
17
|
+
}>;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* CodeEditor component — a styled textarea-based code editor.
|
|
21
|
+
*
|
|
22
|
+
* Uses the headless @refraction-ui/code-editor core for state and ARIA.
|
|
23
|
+
* Renders a simple monospace textarea with a header bar showing the language
|
|
24
|
+
* label and optional action buttons. Syntax highlighting is a future enhancement.
|
|
25
|
+
*/
|
|
26
|
+
declare const CodeEditor: React.ForwardRefExoticComponent<CodeEditorProps & React.RefAttributes<HTMLDivElement>>;
|
|
27
|
+
|
|
28
|
+
export { CodeEditor, type CodeEditorProps };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export { CollapsibleAPI, CollapsibleProps as CoreCollapsibleProps, collapsibleContentVariants } from '../collapsible/index.cjs';
|
|
3
|
+
|
|
4
|
+
interface CollapsibleContextValue {
|
|
5
|
+
open: boolean;
|
|
6
|
+
onOpenChange: (open: boolean) => void;
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
contentId: string;
|
|
9
|
+
}
|
|
10
|
+
interface CollapsibleProps {
|
|
11
|
+
open?: boolean;
|
|
12
|
+
defaultOpen?: boolean;
|
|
13
|
+
onOpenChange?: (open: boolean) => void;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
children?: React.ReactNode;
|
|
16
|
+
className?: string;
|
|
17
|
+
}
|
|
18
|
+
declare function Collapsible({ open: controlledOpen, defaultOpen, onOpenChange, disabled, children, className, }: CollapsibleProps): React.FunctionComponentElement<React.ProviderProps<CollapsibleContextValue | null>>;
|
|
19
|
+
declare namespace Collapsible {
|
|
20
|
+
var displayName: string;
|
|
21
|
+
}
|
|
22
|
+
interface CollapsibleTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
23
|
+
}
|
|
24
|
+
declare const CollapsibleTrigger: React.ForwardRefExoticComponent<CollapsibleTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
25
|
+
interface CollapsibleContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
26
|
+
}
|
|
27
|
+
declare const CollapsibleContent: React.ForwardRefExoticComponent<CollapsibleContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
28
|
+
|
|
29
|
+
export { Collapsible, CollapsibleContent, type CollapsibleContentProps, type CollapsibleProps, CollapsibleTrigger, type CollapsibleTriggerProps };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export { CollapsibleAPI, CollapsibleProps as CoreCollapsibleProps, collapsibleContentVariants } from '../collapsible/index.js';
|
|
3
|
+
|
|
4
|
+
interface CollapsibleContextValue {
|
|
5
|
+
open: boolean;
|
|
6
|
+
onOpenChange: (open: boolean) => void;
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
contentId: string;
|
|
9
|
+
}
|
|
10
|
+
interface CollapsibleProps {
|
|
11
|
+
open?: boolean;
|
|
12
|
+
defaultOpen?: boolean;
|
|
13
|
+
onOpenChange?: (open: boolean) => void;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
children?: React.ReactNode;
|
|
16
|
+
className?: string;
|
|
17
|
+
}
|
|
18
|
+
declare function Collapsible({ open: controlledOpen, defaultOpen, onOpenChange, disabled, children, className, }: CollapsibleProps): React.FunctionComponentElement<React.ProviderProps<CollapsibleContextValue | null>>;
|
|
19
|
+
declare namespace Collapsible {
|
|
20
|
+
var displayName: string;
|
|
21
|
+
}
|
|
22
|
+
interface CollapsibleTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
23
|
+
}
|
|
24
|
+
declare const CollapsibleTrigger: React.ForwardRefExoticComponent<CollapsibleTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
25
|
+
interface CollapsibleContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
26
|
+
}
|
|
27
|
+
declare const CollapsibleContent: React.ForwardRefExoticComponent<CollapsibleContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
28
|
+
|
|
29
|
+
export { Collapsible, CollapsibleContent, type CollapsibleContentProps, type CollapsibleProps, CollapsibleTrigger, type CollapsibleTriggerProps };
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
|
|
4
|
+
interface ComboboxOption {
|
|
5
|
+
value: string;
|
|
6
|
+
label: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
}
|
|
9
|
+
type ComboboxFilter = (option: ComboboxOption, query: string) => boolean;
|
|
10
|
+
declare const comboboxTriggerVariants: (props?: ({
|
|
11
|
+
size?: "sm" | "default" | "lg" | undefined;
|
|
12
|
+
} & {
|
|
13
|
+
className?: string;
|
|
14
|
+
}) | undefined) => string;
|
|
15
|
+
declare const comboboxContentVariants: (props?: ({
|
|
16
|
+
[x: string]: string | undefined;
|
|
17
|
+
} & {
|
|
18
|
+
className?: string;
|
|
19
|
+
}) | undefined) => string;
|
|
20
|
+
declare const comboboxInputVariants: (props?: ({
|
|
21
|
+
[x: string]: string | undefined;
|
|
22
|
+
} & {
|
|
23
|
+
className?: string;
|
|
24
|
+
}) | undefined) => string;
|
|
25
|
+
declare const comboboxListVariants: (props?: ({
|
|
26
|
+
[x: string]: string | undefined;
|
|
27
|
+
} & {
|
|
28
|
+
className?: string;
|
|
29
|
+
}) | undefined) => string;
|
|
30
|
+
declare const comboboxItemVariants: (props?: ({
|
|
31
|
+
selected?: "true" | "false" | undefined;
|
|
32
|
+
} & {
|
|
33
|
+
className?: string;
|
|
34
|
+
}) | undefined) => string;
|
|
35
|
+
declare const comboboxEmptyVariants: (props?: ({
|
|
36
|
+
[x: string]: string | undefined;
|
|
37
|
+
} & {
|
|
38
|
+
className?: string;
|
|
39
|
+
}) | undefined) => string;
|
|
40
|
+
interface ComboboxProps {
|
|
41
|
+
value?: string;
|
|
42
|
+
defaultValue?: string;
|
|
43
|
+
onValueChange?: (value: string) => void;
|
|
44
|
+
open?: boolean;
|
|
45
|
+
defaultOpen?: boolean;
|
|
46
|
+
onOpenChange?: (open: boolean) => void;
|
|
47
|
+
options?: ComboboxOption[];
|
|
48
|
+
filter?: ComboboxFilter;
|
|
49
|
+
disabled?: boolean;
|
|
50
|
+
children?: React.ReactNode;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Combobox -- searchable select with text-based filtering.
|
|
54
|
+
*
|
|
55
|
+
* Compound component:
|
|
56
|
+
* Combobox > ComboboxTrigger + ComboboxContent
|
|
57
|
+
* ComboboxContent > ComboboxInput + ComboboxList(ComboboxItem...) + ComboboxEmpty
|
|
58
|
+
*
|
|
59
|
+
* Supports both controlled (value/onValueChange) and uncontrolled (defaultValue) modes.
|
|
60
|
+
* Options can be supplied via the `options` prop (auto-renders items) or by composing
|
|
61
|
+
* <ComboboxItem> children inside <ComboboxList> for full control.
|
|
62
|
+
*/
|
|
63
|
+
declare function Combobox({ value: valueProp, defaultValue, onValueChange, open: openProp, defaultOpen, onOpenChange, options, filter, disabled, children, }: ComboboxProps): react_jsx_runtime.JSX.Element;
|
|
64
|
+
declare namespace Combobox {
|
|
65
|
+
var displayName: string;
|
|
66
|
+
}
|
|
67
|
+
interface ComboboxTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
68
|
+
size?: 'sm' | 'default' | 'lg';
|
|
69
|
+
placeholder?: string;
|
|
70
|
+
}
|
|
71
|
+
declare const ComboboxTrigger: React.ForwardRefExoticComponent<ComboboxTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
72
|
+
interface ComboboxContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
73
|
+
/** Render content inside a portal (defaults true). */
|
|
74
|
+
portal?: boolean;
|
|
75
|
+
}
|
|
76
|
+
declare const ComboboxContent: React.ForwardRefExoticComponent<ComboboxContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
77
|
+
interface ComboboxInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
78
|
+
}
|
|
79
|
+
declare const ComboboxInput: React.ForwardRefExoticComponent<ComboboxInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
80
|
+
interface ComboboxListProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
81
|
+
}
|
|
82
|
+
declare const ComboboxList: React.ForwardRefExoticComponent<ComboboxListProps & React.RefAttributes<HTMLDivElement>>;
|
|
83
|
+
interface ComboboxItemProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
84
|
+
value: string;
|
|
85
|
+
disabled?: boolean;
|
|
86
|
+
/** Override the label used for filtering (defaults to children text). */
|
|
87
|
+
label?: string;
|
|
88
|
+
}
|
|
89
|
+
declare const ComboboxItem: React.ForwardRefExoticComponent<ComboboxItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
90
|
+
interface ComboboxEmptyProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
91
|
+
}
|
|
92
|
+
declare const ComboboxEmpty: React.ForwardRefExoticComponent<ComboboxEmptyProps & React.RefAttributes<HTMLDivElement>>;
|
|
93
|
+
|
|
94
|
+
export { Combobox, ComboboxContent, type ComboboxContentProps, ComboboxEmpty, type ComboboxEmptyProps, type ComboboxFilter, ComboboxInput, type ComboboxInputProps, ComboboxItem, type ComboboxItemProps, ComboboxList, type ComboboxListProps, type ComboboxOption, type ComboboxProps, ComboboxTrigger, type ComboboxTriggerProps, comboboxContentVariants, comboboxEmptyVariants, comboboxInputVariants, comboboxItemVariants, comboboxListVariants, comboboxTriggerVariants };
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
|
|
4
|
+
interface ComboboxOption {
|
|
5
|
+
value: string;
|
|
6
|
+
label: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
}
|
|
9
|
+
type ComboboxFilter = (option: ComboboxOption, query: string) => boolean;
|
|
10
|
+
declare const comboboxTriggerVariants: (props?: ({
|
|
11
|
+
size?: "sm" | "default" | "lg" | undefined;
|
|
12
|
+
} & {
|
|
13
|
+
className?: string;
|
|
14
|
+
}) | undefined) => string;
|
|
15
|
+
declare const comboboxContentVariants: (props?: ({
|
|
16
|
+
[x: string]: string | undefined;
|
|
17
|
+
} & {
|
|
18
|
+
className?: string;
|
|
19
|
+
}) | undefined) => string;
|
|
20
|
+
declare const comboboxInputVariants: (props?: ({
|
|
21
|
+
[x: string]: string | undefined;
|
|
22
|
+
} & {
|
|
23
|
+
className?: string;
|
|
24
|
+
}) | undefined) => string;
|
|
25
|
+
declare const comboboxListVariants: (props?: ({
|
|
26
|
+
[x: string]: string | undefined;
|
|
27
|
+
} & {
|
|
28
|
+
className?: string;
|
|
29
|
+
}) | undefined) => string;
|
|
30
|
+
declare const comboboxItemVariants: (props?: ({
|
|
31
|
+
selected?: "true" | "false" | undefined;
|
|
32
|
+
} & {
|
|
33
|
+
className?: string;
|
|
34
|
+
}) | undefined) => string;
|
|
35
|
+
declare const comboboxEmptyVariants: (props?: ({
|
|
36
|
+
[x: string]: string | undefined;
|
|
37
|
+
} & {
|
|
38
|
+
className?: string;
|
|
39
|
+
}) | undefined) => string;
|
|
40
|
+
interface ComboboxProps {
|
|
41
|
+
value?: string;
|
|
42
|
+
defaultValue?: string;
|
|
43
|
+
onValueChange?: (value: string) => void;
|
|
44
|
+
open?: boolean;
|
|
45
|
+
defaultOpen?: boolean;
|
|
46
|
+
onOpenChange?: (open: boolean) => void;
|
|
47
|
+
options?: ComboboxOption[];
|
|
48
|
+
filter?: ComboboxFilter;
|
|
49
|
+
disabled?: boolean;
|
|
50
|
+
children?: React.ReactNode;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Combobox -- searchable select with text-based filtering.
|
|
54
|
+
*
|
|
55
|
+
* Compound component:
|
|
56
|
+
* Combobox > ComboboxTrigger + ComboboxContent
|
|
57
|
+
* ComboboxContent > ComboboxInput + ComboboxList(ComboboxItem...) + ComboboxEmpty
|
|
58
|
+
*
|
|
59
|
+
* Supports both controlled (value/onValueChange) and uncontrolled (defaultValue) modes.
|
|
60
|
+
* Options can be supplied via the `options` prop (auto-renders items) or by composing
|
|
61
|
+
* <ComboboxItem> children inside <ComboboxList> for full control.
|
|
62
|
+
*/
|
|
63
|
+
declare function Combobox({ value: valueProp, defaultValue, onValueChange, open: openProp, defaultOpen, onOpenChange, options, filter, disabled, children, }: ComboboxProps): react_jsx_runtime.JSX.Element;
|
|
64
|
+
declare namespace Combobox {
|
|
65
|
+
var displayName: string;
|
|
66
|
+
}
|
|
67
|
+
interface ComboboxTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
68
|
+
size?: 'sm' | 'default' | 'lg';
|
|
69
|
+
placeholder?: string;
|
|
70
|
+
}
|
|
71
|
+
declare const ComboboxTrigger: React.ForwardRefExoticComponent<ComboboxTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
72
|
+
interface ComboboxContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
73
|
+
/** Render content inside a portal (defaults true). */
|
|
74
|
+
portal?: boolean;
|
|
75
|
+
}
|
|
76
|
+
declare const ComboboxContent: React.ForwardRefExoticComponent<ComboboxContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
77
|
+
interface ComboboxInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
78
|
+
}
|
|
79
|
+
declare const ComboboxInput: React.ForwardRefExoticComponent<ComboboxInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
80
|
+
interface ComboboxListProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
81
|
+
}
|
|
82
|
+
declare const ComboboxList: React.ForwardRefExoticComponent<ComboboxListProps & React.RefAttributes<HTMLDivElement>>;
|
|
83
|
+
interface ComboboxItemProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
84
|
+
value: string;
|
|
85
|
+
disabled?: boolean;
|
|
86
|
+
/** Override the label used for filtering (defaults to children text). */
|
|
87
|
+
label?: string;
|
|
88
|
+
}
|
|
89
|
+
declare const ComboboxItem: React.ForwardRefExoticComponent<ComboboxItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
90
|
+
interface ComboboxEmptyProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
91
|
+
}
|
|
92
|
+
declare const ComboboxEmpty: React.ForwardRefExoticComponent<ComboboxEmptyProps & React.RefAttributes<HTMLDivElement>>;
|
|
93
|
+
|
|
94
|
+
export { Combobox, ComboboxContent, type ComboboxContentProps, ComboboxEmpty, type ComboboxEmptyProps, type ComboboxFilter, ComboboxInput, type ComboboxInputProps, ComboboxItem, type ComboboxItemProps, ComboboxList, type ComboboxListProps, type ComboboxOption, type ComboboxProps, ComboboxTrigger, type ComboboxTriggerProps, comboboxContentVariants, comboboxEmptyVariants, comboboxInputVariants, comboboxItemVariants, comboboxListVariants, comboboxTriggerVariants };
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { CommandItemData } from '../command/index.cjs';
|
|
3
|
+
export { CommandAPI, CommandItemData, CommandState, CommandProps as CoreCommandProps, commandGroupVariants, commandInputVariants, commandItemVariants, commandVariants } from '../command/index.cjs';
|
|
4
|
+
|
|
5
|
+
interface CommandContextValue {
|
|
6
|
+
search: string;
|
|
7
|
+
onSearch: (query: string) => void;
|
|
8
|
+
selectedIndex: number;
|
|
9
|
+
onSelect: (index: number) => void;
|
|
10
|
+
items: CommandItemData[];
|
|
11
|
+
filteredItems: CommandItemData[];
|
|
12
|
+
registerItem: (item: CommandItemData) => void;
|
|
13
|
+
unregisterItem: (id: string) => void;
|
|
14
|
+
listId: string;
|
|
15
|
+
inputId: string;
|
|
16
|
+
}
|
|
17
|
+
interface CommandProps {
|
|
18
|
+
open?: boolean;
|
|
19
|
+
onOpenChange?: (open: boolean) => void;
|
|
20
|
+
filter?: (value: string, search: string) => boolean;
|
|
21
|
+
className?: string;
|
|
22
|
+
children?: React.ReactNode;
|
|
23
|
+
}
|
|
24
|
+
declare function Command({ open, onOpenChange, filter, className, children, }: CommandProps): React.FunctionComponentElement<React.ProviderProps<CommandContextValue | null>>;
|
|
25
|
+
declare namespace Command {
|
|
26
|
+
var displayName: string;
|
|
27
|
+
}
|
|
28
|
+
interface CommandInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
29
|
+
}
|
|
30
|
+
declare const CommandInput: React.ForwardRefExoticComponent<CommandInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
31
|
+
interface CommandListProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
32
|
+
}
|
|
33
|
+
declare const CommandList: React.ForwardRefExoticComponent<CommandListProps & React.RefAttributes<HTMLDivElement>>;
|
|
34
|
+
interface CommandEmptyProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
35
|
+
}
|
|
36
|
+
declare const CommandEmpty: React.ForwardRefExoticComponent<CommandEmptyProps & React.RefAttributes<HTMLDivElement>>;
|
|
37
|
+
interface CommandGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
38
|
+
heading?: string;
|
|
39
|
+
}
|
|
40
|
+
declare const CommandGroup: React.ForwardRefExoticComponent<CommandGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
41
|
+
interface CommandItemProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
42
|
+
value?: string;
|
|
43
|
+
disabled?: boolean;
|
|
44
|
+
onSelect?: () => void;
|
|
45
|
+
}
|
|
46
|
+
declare const CommandItem: React.ForwardRefExoticComponent<CommandItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
47
|
+
interface CommandSeparatorProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
48
|
+
}
|
|
49
|
+
declare const CommandSeparator: React.ForwardRefExoticComponent<CommandSeparatorProps & React.RefAttributes<HTMLDivElement>>;
|
|
50
|
+
|
|
51
|
+
export { Command, CommandEmpty, type CommandEmptyProps, CommandGroup, type CommandGroupProps, CommandInput, type CommandInputProps, CommandItem, type CommandItemProps, CommandList, type CommandListProps, type CommandProps, CommandSeparator, type CommandSeparatorProps };
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { CommandItemData } from '../command/index.js';
|
|
3
|
+
export { CommandAPI, CommandItemData, CommandState, CommandProps as CoreCommandProps, commandGroupVariants, commandInputVariants, commandItemVariants, commandVariants } from '../command/index.js';
|
|
4
|
+
|
|
5
|
+
interface CommandContextValue {
|
|
6
|
+
search: string;
|
|
7
|
+
onSearch: (query: string) => void;
|
|
8
|
+
selectedIndex: number;
|
|
9
|
+
onSelect: (index: number) => void;
|
|
10
|
+
items: CommandItemData[];
|
|
11
|
+
filteredItems: CommandItemData[];
|
|
12
|
+
registerItem: (item: CommandItemData) => void;
|
|
13
|
+
unregisterItem: (id: string) => void;
|
|
14
|
+
listId: string;
|
|
15
|
+
inputId: string;
|
|
16
|
+
}
|
|
17
|
+
interface CommandProps {
|
|
18
|
+
open?: boolean;
|
|
19
|
+
onOpenChange?: (open: boolean) => void;
|
|
20
|
+
filter?: (value: string, search: string) => boolean;
|
|
21
|
+
className?: string;
|
|
22
|
+
children?: React.ReactNode;
|
|
23
|
+
}
|
|
24
|
+
declare function Command({ open, onOpenChange, filter, className, children, }: CommandProps): React.FunctionComponentElement<React.ProviderProps<CommandContextValue | null>>;
|
|
25
|
+
declare namespace Command {
|
|
26
|
+
var displayName: string;
|
|
27
|
+
}
|
|
28
|
+
interface CommandInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
29
|
+
}
|
|
30
|
+
declare const CommandInput: React.ForwardRefExoticComponent<CommandInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
31
|
+
interface CommandListProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
32
|
+
}
|
|
33
|
+
declare const CommandList: React.ForwardRefExoticComponent<CommandListProps & React.RefAttributes<HTMLDivElement>>;
|
|
34
|
+
interface CommandEmptyProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
35
|
+
}
|
|
36
|
+
declare const CommandEmpty: React.ForwardRefExoticComponent<CommandEmptyProps & React.RefAttributes<HTMLDivElement>>;
|
|
37
|
+
interface CommandGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
38
|
+
heading?: string;
|
|
39
|
+
}
|
|
40
|
+
declare const CommandGroup: React.ForwardRefExoticComponent<CommandGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
41
|
+
interface CommandItemProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
42
|
+
value?: string;
|
|
43
|
+
disabled?: boolean;
|
|
44
|
+
onSelect?: () => void;
|
|
45
|
+
}
|
|
46
|
+
declare const CommandItem: React.ForwardRefExoticComponent<CommandItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
47
|
+
interface CommandSeparatorProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
48
|
+
}
|
|
49
|
+
declare const CommandSeparator: React.ForwardRefExoticComponent<CommandSeparatorProps & React.RefAttributes<HTMLDivElement>>;
|
|
50
|
+
|
|
51
|
+
export { Command, CommandEmpty, type CommandEmptyProps, CommandGroup, type CommandGroupProps, CommandInput, type CommandInputProps, CommandItem, type CommandItemProps, CommandList, type CommandListProps, type CommandProps, CommandSeparator, type CommandSeparatorProps };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export { WatermarkConfig, contentProtectionVariants, watermarkVariants } from '../content-protection/index.cjs';
|
|
3
|
+
|
|
4
|
+
interface ContentProtectionProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
/** Enable content protection. Default: true */
|
|
6
|
+
enabled?: boolean;
|
|
7
|
+
/** Disable copy/cut. Default: true */
|
|
8
|
+
disableCopy?: boolean;
|
|
9
|
+
/** Disable right-click context menu. Default: true */
|
|
10
|
+
disableContextMenu?: boolean;
|
|
11
|
+
/** Watermark text overlay */
|
|
12
|
+
watermarkText?: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* ContentProtection component — wraps children to block copy/context menu
|
|
16
|
+
* and optionally renders a watermark overlay.
|
|
17
|
+
*
|
|
18
|
+
* Uses the headless @refraction-ui/content-protection core for event handlers.
|
|
19
|
+
*/
|
|
20
|
+
declare const ContentProtection: React.ForwardRefExoticComponent<ContentProtectionProps & React.RefAttributes<HTMLDivElement>>;
|
|
21
|
+
|
|
22
|
+
export { ContentProtection, type ContentProtectionProps };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export { WatermarkConfig, contentProtectionVariants, watermarkVariants } from '../content-protection/index.js';
|
|
3
|
+
|
|
4
|
+
interface ContentProtectionProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
/** Enable content protection. Default: true */
|
|
6
|
+
enabled?: boolean;
|
|
7
|
+
/** Disable copy/cut. Default: true */
|
|
8
|
+
disableCopy?: boolean;
|
|
9
|
+
/** Disable right-click context menu. Default: true */
|
|
10
|
+
disableContextMenu?: boolean;
|
|
11
|
+
/** Watermark text overlay */
|
|
12
|
+
watermarkText?: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* ContentProtection component — wraps children to block copy/context menu
|
|
16
|
+
* and optionally renders a watermark overlay.
|
|
17
|
+
*
|
|
18
|
+
* Uses the headless @refraction-ui/content-protection core for event handlers.
|
|
19
|
+
*/
|
|
20
|
+
declare const ContentProtection: React.ForwardRefExoticComponent<ContentProtectionProps & React.RefAttributes<HTMLDivElement>>;
|
|
21
|
+
|
|
22
|
+
export { ContentProtection, type ContentProtectionProps };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ColumnDef, SortDirection } from '../data-table/index.cjs';
|
|
3
|
+
export { ColumnDef, DataTableProps as CoreDataTableProps, DataTableAPI, DataTableState, SortDirection, cellVariants, headerVariants, rowVariants, tableVariants } from '../data-table/index.cjs';
|
|
4
|
+
|
|
5
|
+
interface DataTableProps<T = Record<string, unknown>> {
|
|
6
|
+
columns: ColumnDef<T>[];
|
|
7
|
+
data: T[];
|
|
8
|
+
sortBy?: string;
|
|
9
|
+
sortDir?: SortDirection;
|
|
10
|
+
onSort?: (columnId: string, direction: SortDirection) => void;
|
|
11
|
+
filters?: Record<string, string>;
|
|
12
|
+
className?: string;
|
|
13
|
+
emptyMessage?: string;
|
|
14
|
+
}
|
|
15
|
+
declare function DataTable<T = Record<string, unknown>>({ columns, data, sortBy: controlledSortBy, sortDir: controlledSortDir, onSort, filters: controlledFilters, className, emptyMessage, }: DataTableProps<T>): React.DetailedReactHTMLElement<{
|
|
16
|
+
className: string;
|
|
17
|
+
}, HTMLElement>;
|
|
18
|
+
declare namespace DataTable {
|
|
19
|
+
var displayName: string;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export { DataTable, type DataTableProps };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ColumnDef, SortDirection } from '../data-table/index.js';
|
|
3
|
+
export { ColumnDef, DataTableProps as CoreDataTableProps, DataTableAPI, DataTableState, SortDirection, cellVariants, headerVariants, rowVariants, tableVariants } from '../data-table/index.js';
|
|
4
|
+
|
|
5
|
+
interface DataTableProps<T = Record<string, unknown>> {
|
|
6
|
+
columns: ColumnDef<T>[];
|
|
7
|
+
data: T[];
|
|
8
|
+
sortBy?: string;
|
|
9
|
+
sortDir?: SortDirection;
|
|
10
|
+
onSort?: (columnId: string, direction: SortDirection) => void;
|
|
11
|
+
filters?: Record<string, string>;
|
|
12
|
+
className?: string;
|
|
13
|
+
emptyMessage?: string;
|
|
14
|
+
}
|
|
15
|
+
declare function DataTable<T = Record<string, unknown>>({ columns, data, sortBy: controlledSortBy, sortDir: controlledSortDir, onSort, filters: controlledFilters, className, emptyMessage, }: DataTableProps<T>): React.DetailedReactHTMLElement<{
|
|
16
|
+
className: string;
|
|
17
|
+
}, HTMLElement>;
|
|
18
|
+
declare namespace DataTable {
|
|
19
|
+
var displayName: string;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export { DataTable, type DataTableProps };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export { CalendarDay, DatePickerProps as CoreDatePickerProps, DatePickerAPI, DatePickerState, DatePickerView, datePickerDayVariants, datePickerDropdownStyles, datePickerTimeInputStyles, datePickerTimeStyles, datePickerTriggerStyles } from '../date-picker/index.cjs';
|
|
3
|
+
|
|
4
|
+
interface DatePickerProps {
|
|
5
|
+
value?: Date;
|
|
6
|
+
onChange?: (date: Date) => void;
|
|
7
|
+
minDate?: Date;
|
|
8
|
+
maxDate?: Date;
|
|
9
|
+
showTime?: boolean;
|
|
10
|
+
format?: string;
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
className?: string;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
}
|
|
15
|
+
declare function DatePicker({ value, onChange, minDate, maxDate, showTime, format, placeholder, className, disabled, }: DatePickerProps): React.DetailedReactHTMLElement<{
|
|
16
|
+
ref: React.RefObject<HTMLDivElement | null>;
|
|
17
|
+
className: string;
|
|
18
|
+
}, HTMLDivElement>;
|
|
19
|
+
declare namespace DatePicker {
|
|
20
|
+
var displayName: string;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export { DatePicker, type DatePickerProps };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export { CalendarDay, DatePickerProps as CoreDatePickerProps, DatePickerAPI, DatePickerState, DatePickerView, datePickerDayVariants, datePickerDropdownStyles, datePickerTimeInputStyles, datePickerTimeStyles, datePickerTriggerStyles } from '../date-picker/index.js';
|
|
3
|
+
|
|
4
|
+
interface DatePickerProps {
|
|
5
|
+
value?: Date;
|
|
6
|
+
onChange?: (date: Date) => void;
|
|
7
|
+
minDate?: Date;
|
|
8
|
+
maxDate?: Date;
|
|
9
|
+
showTime?: boolean;
|
|
10
|
+
format?: string;
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
className?: string;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
}
|
|
15
|
+
declare function DatePicker({ value, onChange, minDate, maxDate, showTime, format, placeholder, className, disabled, }: DatePickerProps): React.DetailedReactHTMLElement<{
|
|
16
|
+
ref: React.RefObject<HTMLDivElement | null>;
|
|
17
|
+
className: string;
|
|
18
|
+
}, HTMLDivElement>;
|
|
19
|
+
declare namespace DatePicker {
|
|
20
|
+
var displayName: string;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export { DatePicker, type DatePickerProps };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { DeviceType, DeviceOrientation } from '../device-frame/index.cjs';
|
|
3
|
+
export { DeviceFrameProps as CoreDeviceFrameProps, DeviceDimensions, DeviceFrameAPI, DeviceOrientation, DeviceType, deviceFrameVariants } from '../device-frame/index.cjs';
|
|
4
|
+
|
|
5
|
+
interface DeviceFrameProps {
|
|
6
|
+
device: DeviceType;
|
|
7
|
+
orientation?: DeviceOrientation;
|
|
8
|
+
className?: string;
|
|
9
|
+
children?: React.ReactNode;
|
|
10
|
+
}
|
|
11
|
+
declare function DeviceFrame({ device, orientation, className, children, }: DeviceFrameProps): React.DetailedReactHTMLElement<{
|
|
12
|
+
role?: string | undefined;
|
|
13
|
+
tabIndex?: number | undefined;
|
|
14
|
+
'aria-label'?: string | undefined;
|
|
15
|
+
'aria-labelledby'?: string | undefined;
|
|
16
|
+
'aria-describedby'?: string | undefined;
|
|
17
|
+
'aria-controls'?: string | undefined;
|
|
18
|
+
'aria-expanded'?: boolean | undefined;
|
|
19
|
+
'aria-selected'?: boolean | undefined;
|
|
20
|
+
'aria-hidden'?: boolean | undefined;
|
|
21
|
+
'aria-disabled'?: boolean | undefined;
|
|
22
|
+
'aria-pressed'?: boolean | "mixed" | undefined;
|
|
23
|
+
'aria-checked'?: boolean | "mixed" | undefined;
|
|
24
|
+
'aria-current'?: boolean | "page" | "step" | "location" | "date" | "time" | undefined;
|
|
25
|
+
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
26
|
+
'aria-atomic'?: boolean | undefined;
|
|
27
|
+
className: string;
|
|
28
|
+
style: {
|
|
29
|
+
width: string;
|
|
30
|
+
height: string;
|
|
31
|
+
};
|
|
32
|
+
}, HTMLElement>;
|
|
33
|
+
declare namespace DeviceFrame {
|
|
34
|
+
var displayName: string;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export { DeviceFrame, type DeviceFrameProps };
|