@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,17 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export { InlineEditorProps as CoreInlineEditorProps, InlineEditorAPI, InlineEditorState, ToolbarAction, editorVariants, previewVariants, toolbarVariants } from '../inline-editor/index.cjs';
|
|
3
|
+
|
|
4
|
+
interface InlineEditorProps {
|
|
5
|
+
value: string;
|
|
6
|
+
onSave?: (value: string) => void;
|
|
7
|
+
onCancel?: () => void;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
declare function InlineEditor({ value: initialValue, onSave, onCancel, className, }: InlineEditorProps): React.DetailedReactHTMLElement<{
|
|
11
|
+
className: string;
|
|
12
|
+
}, HTMLElement>;
|
|
13
|
+
declare namespace InlineEditor {
|
|
14
|
+
var displayName: string;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export { InlineEditor, type InlineEditorProps };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export { InlineEditorProps as CoreInlineEditorProps, InlineEditorAPI, InlineEditorState, ToolbarAction, editorVariants, previewVariants, toolbarVariants } from '../inline-editor/index.js';
|
|
3
|
+
|
|
4
|
+
interface InlineEditorProps {
|
|
5
|
+
value: string;
|
|
6
|
+
onSave?: (value: string) => void;
|
|
7
|
+
onCancel?: () => void;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
declare function InlineEditor({ value: initialValue, onSave, onCancel, className, }: InlineEditorProps): React.DetailedReactHTMLElement<{
|
|
11
|
+
className: string;
|
|
12
|
+
}, HTMLElement>;
|
|
13
|
+
declare namespace InlineEditor {
|
|
14
|
+
var displayName: string;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export { InlineEditor, type InlineEditorProps };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export { InputType, inputVariants } from '../input/index.cjs';
|
|
3
|
+
|
|
4
|
+
interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'> {
|
|
5
|
+
/**
|
|
6
|
+
* Visual size of the input.
|
|
7
|
+
*
|
|
8
|
+
* Note: this prop intentionally **shadows** the native HTML `size`
|
|
9
|
+
* attribute (which would otherwise control the visible character width
|
|
10
|
+
* of the `<input>` element). We re-purpose the name for our visual
|
|
11
|
+
* size variants (`'sm' | 'default' | 'lg'`) because in practice almost
|
|
12
|
+
* no one uses the native character-width `size` attribute, while
|
|
13
|
+
* visual sizing is a near-universal need.
|
|
14
|
+
*
|
|
15
|
+
* If you need the native character-width behavior, set it via
|
|
16
|
+
* `htmlSize` on the underlying DOM through a `ref`, or render a plain
|
|
17
|
+
* `<input>` instead.
|
|
18
|
+
*
|
|
19
|
+
* See the package README's "Sizing" section for more.
|
|
20
|
+
*/
|
|
21
|
+
size?: 'sm' | 'default' | 'lg';
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Input component — renders a styled input with size support.
|
|
25
|
+
*
|
|
26
|
+
* Uses the headless @refraction-ui/input core for state, ARIA, and data attributes.
|
|
27
|
+
* Styling via Tailwind utility classes (no external CSS-in-JS).
|
|
28
|
+
*/
|
|
29
|
+
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
30
|
+
|
|
31
|
+
export { Input, type InputProps };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export { InputType, inputVariants } from '../input/index.js';
|
|
3
|
+
|
|
4
|
+
interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size'> {
|
|
5
|
+
/**
|
|
6
|
+
* Visual size of the input.
|
|
7
|
+
*
|
|
8
|
+
* Note: this prop intentionally **shadows** the native HTML `size`
|
|
9
|
+
* attribute (which would otherwise control the visible character width
|
|
10
|
+
* of the `<input>` element). We re-purpose the name for our visual
|
|
11
|
+
* size variants (`'sm' | 'default' | 'lg'`) because in practice almost
|
|
12
|
+
* no one uses the native character-width `size` attribute, while
|
|
13
|
+
* visual sizing is a near-universal need.
|
|
14
|
+
*
|
|
15
|
+
* If you need the native character-width behavior, set it via
|
|
16
|
+
* `htmlSize` on the underlying DOM through a `ref`, or render a plain
|
|
17
|
+
* `<input>` instead.
|
|
18
|
+
*
|
|
19
|
+
* See the package README's "Sizing" section for more.
|
|
20
|
+
*/
|
|
21
|
+
size?: 'sm' | 'default' | 'lg';
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Input component — renders a styled input with size support.
|
|
25
|
+
*
|
|
26
|
+
* Uses the headless @refraction-ui/input core for state, ARIA, and data attributes.
|
|
27
|
+
* Styling via Tailwind utility classes (no external CSS-in-JS).
|
|
28
|
+
*/
|
|
29
|
+
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
30
|
+
|
|
31
|
+
export { Input, type InputProps };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { InputGroupOrientation } from '../input-group/index.cjs';
|
|
3
|
+
export { InputGroupOrientation, inputGroupAddonVariants, inputGroupButtonVariants, inputGroupTokens, inputGroupVariants } from '../input-group/index.cjs';
|
|
4
|
+
|
|
5
|
+
interface InputGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
6
|
+
orientation?: InputGroupOrientation;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* InputGroup — flex container that visually groups inputs, addons, and buttons.
|
|
10
|
+
* Handles border-radius clipping on first/last children.
|
|
11
|
+
*/
|
|
12
|
+
declare const InputGroup: React.ForwardRefExoticComponent<InputGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
interface InputGroupAddonProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
14
|
+
orientation?: InputGroupOrientation;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* InputGroupAddon — decorative text or icon addon (e.g., "$", "@", icons).
|
|
18
|
+
*/
|
|
19
|
+
declare const InputGroupAddon: React.ForwardRefExoticComponent<InputGroupAddonProps & React.RefAttributes<HTMLDivElement>>;
|
|
20
|
+
interface InputGroupTextProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* InputGroupText — inline text label within an input group.
|
|
24
|
+
*/
|
|
25
|
+
declare const InputGroupText: React.ForwardRefExoticComponent<InputGroupTextProps & React.RefAttributes<HTMLSpanElement>>;
|
|
26
|
+
interface InputGroupButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
27
|
+
orientation?: InputGroupOrientation;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* InputGroupButton — a button styled to sit flush inside an input group.
|
|
31
|
+
*/
|
|
32
|
+
declare const InputGroupButton: React.ForwardRefExoticComponent<InputGroupButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
33
|
+
|
|
34
|
+
export { InputGroup, InputGroupAddon, type InputGroupAddonProps, InputGroupButton, type InputGroupButtonProps, type InputGroupProps, InputGroupText, type InputGroupTextProps };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { InputGroupOrientation } from '../input-group/index.js';
|
|
3
|
+
export { InputGroupOrientation, inputGroupAddonVariants, inputGroupButtonVariants, inputGroupTokens, inputGroupVariants } from '../input-group/index.js';
|
|
4
|
+
|
|
5
|
+
interface InputGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
6
|
+
orientation?: InputGroupOrientation;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* InputGroup — flex container that visually groups inputs, addons, and buttons.
|
|
10
|
+
* Handles border-radius clipping on first/last children.
|
|
11
|
+
*/
|
|
12
|
+
declare const InputGroup: React.ForwardRefExoticComponent<InputGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
interface InputGroupAddonProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
14
|
+
orientation?: InputGroupOrientation;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* InputGroupAddon — decorative text or icon addon (e.g., "$", "@", icons).
|
|
18
|
+
*/
|
|
19
|
+
declare const InputGroupAddon: React.ForwardRefExoticComponent<InputGroupAddonProps & React.RefAttributes<HTMLDivElement>>;
|
|
20
|
+
interface InputGroupTextProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* InputGroupText — inline text label within an input group.
|
|
24
|
+
*/
|
|
25
|
+
declare const InputGroupText: React.ForwardRefExoticComponent<InputGroupTextProps & React.RefAttributes<HTMLSpanElement>>;
|
|
26
|
+
interface InputGroupButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
27
|
+
orientation?: InputGroupOrientation;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* InputGroupButton — a button styled to sit flush inside an input group.
|
|
31
|
+
*/
|
|
32
|
+
declare const InputGroupButton: React.ForwardRefExoticComponent<InputGroupButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
33
|
+
|
|
34
|
+
export { InputGroup, InputGroupAddon, type InputGroupAddonProps, InputGroupButton, type InputGroupButtonProps, type InputGroupProps, InputGroupText, type InputGroupTextProps };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export { InstallPromptState, StorageAdapter, installPromptVariants } from '../install-prompt/index.cjs';
|
|
3
|
+
|
|
4
|
+
interface InstallPromptProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
/** Delay in ms before showing. Default: 3000 */
|
|
6
|
+
delay?: number;
|
|
7
|
+
/** Storage key for dismissed state. Default: 'rfr-install-dismissed' */
|
|
8
|
+
storageKey?: string;
|
|
9
|
+
/** Install button label. Default: 'Install' */
|
|
10
|
+
installLabel?: string;
|
|
11
|
+
/** Dismiss button label. Default: 'Dismiss' */
|
|
12
|
+
dismissLabel?: string;
|
|
13
|
+
/** Message text. Default: 'Install this app for a better experience' */
|
|
14
|
+
message?: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* InstallPrompt component — renders a bottom banner prompting PWA installation.
|
|
18
|
+
*
|
|
19
|
+
* Uses the headless @refraction-ui/install-prompt core for state and ARIA attributes.
|
|
20
|
+
* Listens for the `beforeinstallprompt` browser event.
|
|
21
|
+
*/
|
|
22
|
+
declare const InstallPrompt: React.ForwardRefExoticComponent<InstallPromptProps & React.RefAttributes<HTMLDivElement>>;
|
|
23
|
+
|
|
24
|
+
export { InstallPrompt, type InstallPromptProps };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export { InstallPromptState, StorageAdapter, installPromptVariants } from '../install-prompt/index.js';
|
|
3
|
+
|
|
4
|
+
interface InstallPromptProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
/** Delay in ms before showing. Default: 3000 */
|
|
6
|
+
delay?: number;
|
|
7
|
+
/** Storage key for dismissed state. Default: 'rfr-install-dismissed' */
|
|
8
|
+
storageKey?: string;
|
|
9
|
+
/** Install button label. Default: 'Install' */
|
|
10
|
+
installLabel?: string;
|
|
11
|
+
/** Dismiss button label. Default: 'Dismiss' */
|
|
12
|
+
dismissLabel?: string;
|
|
13
|
+
/** Message text. Default: 'Install this app for a better experience' */
|
|
14
|
+
message?: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* InstallPrompt component — renders a bottom banner prompting PWA installation.
|
|
18
|
+
*
|
|
19
|
+
* Uses the headless @refraction-ui/install-prompt core for state and ARIA attributes.
|
|
20
|
+
* Listens for the `beforeinstallprompt` browser event.
|
|
21
|
+
*/
|
|
22
|
+
declare const InstallPrompt: React.ForwardRefExoticComponent<InstallPromptProps & React.RefAttributes<HTMLDivElement>>;
|
|
23
|
+
|
|
24
|
+
export { InstallPrompt, type InstallPromptProps };
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export { AltHintState, ShortcutProps as CoreShortcutProps, KeyboardShortcutAPI, SANE_DEFAULTS, ShortcutRegistry, altHintState, formatShortcut, globalShortcutRegistry, shortcutBadgeStyles, shortcutKeyStyles, shortcutSeparatorStyles } from '../keyboard-shortcut/index.cjs';
|
|
4
|
+
|
|
5
|
+
declare const ShortcutContext: React.Context<boolean>;
|
|
6
|
+
declare function ShortcutProvider({ children }: {
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
}): react_jsx_runtime.JSX.Element;
|
|
9
|
+
interface UseShortcutOptions {
|
|
10
|
+
shortcut?: string;
|
|
11
|
+
action?: string;
|
|
12
|
+
onTrigger: () => void;
|
|
13
|
+
enabled?: boolean;
|
|
14
|
+
preventDefault?: boolean;
|
|
15
|
+
}
|
|
16
|
+
declare function useShortcut({ shortcut, action, onTrigger, enabled, preventDefault, }: UseShortcutOptions): {
|
|
17
|
+
keys: string[];
|
|
18
|
+
showHints: boolean;
|
|
19
|
+
};
|
|
20
|
+
interface ShortcutHintProps extends Omit<ShortcutBadgeProps, 'keys'> {
|
|
21
|
+
shortcut?: string;
|
|
22
|
+
action?: string;
|
|
23
|
+
}
|
|
24
|
+
declare function ShortcutHint({ shortcut, action, className, platform, ...props }: ShortcutHintProps): react_jsx_runtime.JSX.Element | null;
|
|
25
|
+
interface KeyboardShortcutProps {
|
|
26
|
+
/** Key combination */
|
|
27
|
+
keys: string[];
|
|
28
|
+
/** Callback when triggered */
|
|
29
|
+
onTrigger: () => void;
|
|
30
|
+
/** Whether enabled */
|
|
31
|
+
enabled?: boolean;
|
|
32
|
+
/** Prevent default browser behavior */
|
|
33
|
+
preventDefault?: boolean;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Invisible keyboard shortcut listener component.
|
|
37
|
+
* Attaches a global keydown listener and calls onTrigger when the combo matches.
|
|
38
|
+
*/
|
|
39
|
+
declare function KeyboardShortcut({ keys, onTrigger, enabled, preventDefault, }: KeyboardShortcutProps): null;
|
|
40
|
+
declare namespace KeyboardShortcut {
|
|
41
|
+
var displayName: string;
|
|
42
|
+
}
|
|
43
|
+
interface ShortcutBadgeProps {
|
|
44
|
+
/** Key combination to display */
|
|
45
|
+
keys: string[];
|
|
46
|
+
/** Use platform-aware display (Mac symbols) */
|
|
47
|
+
platform?: boolean;
|
|
48
|
+
className?: string;
|
|
49
|
+
}
|
|
50
|
+
declare function ShortcutBadge({ keys, platform, className }: ShortcutBadgeProps): React.DetailedReactHTMLElement<{
|
|
51
|
+
className: string;
|
|
52
|
+
}, HTMLElement>;
|
|
53
|
+
declare namespace ShortcutBadge {
|
|
54
|
+
var displayName: string;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export { KeyboardShortcut, type KeyboardShortcutProps, ShortcutBadge, type ShortcutBadgeProps, ShortcutContext, ShortcutHint, type ShortcutHintProps, ShortcutProvider, type UseShortcutOptions, useShortcut };
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export { AltHintState, ShortcutProps as CoreShortcutProps, KeyboardShortcutAPI, SANE_DEFAULTS, ShortcutRegistry, altHintState, formatShortcut, globalShortcutRegistry, shortcutBadgeStyles, shortcutKeyStyles, shortcutSeparatorStyles } from '../keyboard-shortcut/index.js';
|
|
4
|
+
|
|
5
|
+
declare const ShortcutContext: React.Context<boolean>;
|
|
6
|
+
declare function ShortcutProvider({ children }: {
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
}): react_jsx_runtime.JSX.Element;
|
|
9
|
+
interface UseShortcutOptions {
|
|
10
|
+
shortcut?: string;
|
|
11
|
+
action?: string;
|
|
12
|
+
onTrigger: () => void;
|
|
13
|
+
enabled?: boolean;
|
|
14
|
+
preventDefault?: boolean;
|
|
15
|
+
}
|
|
16
|
+
declare function useShortcut({ shortcut, action, onTrigger, enabled, preventDefault, }: UseShortcutOptions): {
|
|
17
|
+
keys: string[];
|
|
18
|
+
showHints: boolean;
|
|
19
|
+
};
|
|
20
|
+
interface ShortcutHintProps extends Omit<ShortcutBadgeProps, 'keys'> {
|
|
21
|
+
shortcut?: string;
|
|
22
|
+
action?: string;
|
|
23
|
+
}
|
|
24
|
+
declare function ShortcutHint({ shortcut, action, className, platform, ...props }: ShortcutHintProps): react_jsx_runtime.JSX.Element | null;
|
|
25
|
+
interface KeyboardShortcutProps {
|
|
26
|
+
/** Key combination */
|
|
27
|
+
keys: string[];
|
|
28
|
+
/** Callback when triggered */
|
|
29
|
+
onTrigger: () => void;
|
|
30
|
+
/** Whether enabled */
|
|
31
|
+
enabled?: boolean;
|
|
32
|
+
/** Prevent default browser behavior */
|
|
33
|
+
preventDefault?: boolean;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Invisible keyboard shortcut listener component.
|
|
37
|
+
* Attaches a global keydown listener and calls onTrigger when the combo matches.
|
|
38
|
+
*/
|
|
39
|
+
declare function KeyboardShortcut({ keys, onTrigger, enabled, preventDefault, }: KeyboardShortcutProps): null;
|
|
40
|
+
declare namespace KeyboardShortcut {
|
|
41
|
+
var displayName: string;
|
|
42
|
+
}
|
|
43
|
+
interface ShortcutBadgeProps {
|
|
44
|
+
/** Key combination to display */
|
|
45
|
+
keys: string[];
|
|
46
|
+
/** Use platform-aware display (Mac symbols) */
|
|
47
|
+
platform?: boolean;
|
|
48
|
+
className?: string;
|
|
49
|
+
}
|
|
50
|
+
declare function ShortcutBadge({ keys, platform, className }: ShortcutBadgeProps): React.DetailedReactHTMLElement<{
|
|
51
|
+
className: string;
|
|
52
|
+
}, HTMLElement>;
|
|
53
|
+
declare namespace ShortcutBadge {
|
|
54
|
+
var displayName: string;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export { KeyboardShortcut, type KeyboardShortcutProps, ShortcutBadge, type ShortcutBadgeProps, ShortcutContext, ShortcutHint, type ShortcutHintProps, ShortcutProvider, type UseShortcutOptions, useShortcut };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { LanguageOption, LanguageSelectorAPI } from '../language-selector/index.cjs';
|
|
3
|
+
export { LanguageOption, optionVariants, selectorVariants } from '../language-selector/index.cjs';
|
|
4
|
+
|
|
5
|
+
interface LanguageSelectorContextValue {
|
|
6
|
+
api: LanguageSelectorAPI;
|
|
7
|
+
isOpen: boolean;
|
|
8
|
+
setOpen: (value: boolean) => void;
|
|
9
|
+
toggle: (value: string) => void;
|
|
10
|
+
options: LanguageOption[];
|
|
11
|
+
multiple: boolean;
|
|
12
|
+
}
|
|
13
|
+
interface LanguageSelectorProps {
|
|
14
|
+
value?: string | string[];
|
|
15
|
+
onValueChange?: (value: string | string[]) => void;
|
|
16
|
+
options: LanguageOption[];
|
|
17
|
+
multiple?: boolean;
|
|
18
|
+
placeholder?: string;
|
|
19
|
+
className?: string;
|
|
20
|
+
}
|
|
21
|
+
declare function LanguageSelector({ value: controlledValue, onValueChange, options, multiple, placeholder, className, }: LanguageSelectorProps): React.FunctionComponentElement<React.ProviderProps<LanguageSelectorContextValue | null>>;
|
|
22
|
+
declare namespace LanguageSelector {
|
|
23
|
+
var displayName: string;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export { LanguageSelector, type LanguageSelectorProps };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { LanguageOption, LanguageSelectorAPI } from '../language-selector/index.js';
|
|
3
|
+
export { LanguageOption, optionVariants, selectorVariants } from '../language-selector/index.js';
|
|
4
|
+
|
|
5
|
+
interface LanguageSelectorContextValue {
|
|
6
|
+
api: LanguageSelectorAPI;
|
|
7
|
+
isOpen: boolean;
|
|
8
|
+
setOpen: (value: boolean) => void;
|
|
9
|
+
toggle: (value: string) => void;
|
|
10
|
+
options: LanguageOption[];
|
|
11
|
+
multiple: boolean;
|
|
12
|
+
}
|
|
13
|
+
interface LanguageSelectorProps {
|
|
14
|
+
value?: string | string[];
|
|
15
|
+
onValueChange?: (value: string | string[]) => void;
|
|
16
|
+
options: LanguageOption[];
|
|
17
|
+
multiple?: boolean;
|
|
18
|
+
placeholder?: string;
|
|
19
|
+
className?: string;
|
|
20
|
+
}
|
|
21
|
+
declare function LanguageSelector({ value: controlledValue, onValueChange, options, multiple, placeholder, className, }: LanguageSelectorProps): React.FunctionComponentElement<React.ProviderProps<LanguageSelectorContextValue | null>>;
|
|
22
|
+
declare namespace LanguageSelector {
|
|
23
|
+
var displayName: string;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export { LanguageSelector, type LanguageSelectorProps };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ComponentDef } from '../markdown-renderer/index.cjs';
|
|
3
|
+
export { ComponentDef, MarkdownRendererAPI, markdownRendererTokens, proseVariants } from '../markdown-renderer/index.cjs';
|
|
4
|
+
|
|
5
|
+
interface MarkdownRendererProps {
|
|
6
|
+
content: string;
|
|
7
|
+
components?: Record<string, ComponentDef>;
|
|
8
|
+
linkResolver?: (url: string) => string;
|
|
9
|
+
className?: string;
|
|
10
|
+
size?: 'sm' | 'default' | 'lg';
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* MarkdownRenderer component — renders markdown content as sanitized HTML.
|
|
14
|
+
*
|
|
15
|
+
* Uses the headless @refraction-ui/markdown-renderer core for parsing.
|
|
16
|
+
* XSS sanitization is applied before rendering via dangerouslySetInnerHTML.
|
|
17
|
+
*/
|
|
18
|
+
declare const MarkdownRenderer: React.ForwardRefExoticComponent<MarkdownRendererProps & React.RefAttributes<HTMLDivElement>>;
|
|
19
|
+
|
|
20
|
+
export { MarkdownRenderer, type MarkdownRendererProps };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ComponentDef } from '../markdown-renderer/index.js';
|
|
3
|
+
export { ComponentDef, MarkdownRendererAPI, markdownRendererTokens, proseVariants } from '../markdown-renderer/index.js';
|
|
4
|
+
|
|
5
|
+
interface MarkdownRendererProps {
|
|
6
|
+
content: string;
|
|
7
|
+
components?: Record<string, ComponentDef>;
|
|
8
|
+
linkResolver?: (url: string) => string;
|
|
9
|
+
className?: string;
|
|
10
|
+
size?: 'sm' | 'default' | 'lg';
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* MarkdownRenderer component — renders markdown content as sanitized HTML.
|
|
14
|
+
*
|
|
15
|
+
* Uses the headless @refraction-ui/markdown-renderer core for parsing.
|
|
16
|
+
* XSS sanitization is applied before rendering via dangerouslySetInnerHTML.
|
|
17
|
+
*/
|
|
18
|
+
declare const MarkdownRenderer: React.ForwardRefExoticComponent<MarkdownRendererProps & React.RefAttributes<HTMLDivElement>>;
|
|
19
|
+
|
|
20
|
+
export { MarkdownRenderer, type MarkdownRendererProps };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export { MobileNavState, mobileNavContentVariants, mobileNavLinkVariants, mobileNavTokens, mobileNavTriggerVariants, mobileNavVariants } from '../mobile-nav/index.cjs';
|
|
3
|
+
|
|
4
|
+
interface MobileNavProps extends React.HTMLAttributes<HTMLElement> {
|
|
5
|
+
open?: boolean;
|
|
6
|
+
onOpenChange?: (open: boolean) => void;
|
|
7
|
+
defaultOpen?: boolean;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* MobileNav — root wrapper that manages open/closed state via context.
|
|
11
|
+
* Supports both controlled (open + onOpenChange) and uncontrolled (defaultOpen) usage.
|
|
12
|
+
*/
|
|
13
|
+
declare const MobileNav: React.ForwardRefExoticComponent<MobileNavProps & React.RefAttributes<HTMLElement>>;
|
|
14
|
+
interface MobileNavTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* MobileNavTrigger — hamburger button that toggles the mobile nav.
|
|
18
|
+
*/
|
|
19
|
+
declare const MobileNavTrigger: React.ForwardRefExoticComponent<MobileNavTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
20
|
+
interface MobileNavContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* MobileNavContent — the collapsible dropdown panel that holds nav links.
|
|
24
|
+
*/
|
|
25
|
+
declare const MobileNavContent: React.ForwardRefExoticComponent<MobileNavContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
26
|
+
interface MobileNavLinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* MobileNavLink — a styled link inside the mobile nav dropdown.
|
|
30
|
+
*/
|
|
31
|
+
declare const MobileNavLink: React.ForwardRefExoticComponent<MobileNavLinkProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
32
|
+
|
|
33
|
+
export { MobileNav, MobileNavContent, type MobileNavContentProps, MobileNavLink, type MobileNavLinkProps, type MobileNavProps, MobileNavTrigger, type MobileNavTriggerProps };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export { MobileNavState, mobileNavContentVariants, mobileNavLinkVariants, mobileNavTokens, mobileNavTriggerVariants, mobileNavVariants } from '../mobile-nav/index.js';
|
|
3
|
+
|
|
4
|
+
interface MobileNavProps extends React.HTMLAttributes<HTMLElement> {
|
|
5
|
+
open?: boolean;
|
|
6
|
+
onOpenChange?: (open: boolean) => void;
|
|
7
|
+
defaultOpen?: boolean;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* MobileNav — root wrapper that manages open/closed state via context.
|
|
11
|
+
* Supports both controlled (open + onOpenChange) and uncontrolled (defaultOpen) usage.
|
|
12
|
+
*/
|
|
13
|
+
declare const MobileNav: React.ForwardRefExoticComponent<MobileNavProps & React.RefAttributes<HTMLElement>>;
|
|
14
|
+
interface MobileNavTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* MobileNavTrigger — hamburger button that toggles the mobile nav.
|
|
18
|
+
*/
|
|
19
|
+
declare const MobileNavTrigger: React.ForwardRefExoticComponent<MobileNavTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
20
|
+
interface MobileNavContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* MobileNavContent — the collapsible dropdown panel that holds nav links.
|
|
24
|
+
*/
|
|
25
|
+
declare const MobileNavContent: React.ForwardRefExoticComponent<MobileNavContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
26
|
+
interface MobileNavLinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* MobileNavLink — a styled link inside the mobile nav dropdown.
|
|
30
|
+
*/
|
|
31
|
+
declare const MobileNavLink: React.ForwardRefExoticComponent<MobileNavLinkProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
32
|
+
|
|
33
|
+
export { MobileNav, MobileNavContent, type MobileNavContentProps, MobileNavLink, type MobileNavLinkProps, type MobileNavProps, MobileNavTrigger, type MobileNavTriggerProps };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { NavLink, NavbarVariant } from '../navbar/index.cjs';
|
|
3
|
+
export { NavLink, NavbarVariant, navLinkVariants, navbarVariants } from '../navbar/index.cjs';
|
|
4
|
+
|
|
5
|
+
interface NavbarProps extends React.HTMLAttributes<HTMLElement> {
|
|
6
|
+
/** Navigation links */
|
|
7
|
+
links?: NavLink[];
|
|
8
|
+
/** Current pathname for active state */
|
|
9
|
+
currentPath?: string;
|
|
10
|
+
/** Visual variant */
|
|
11
|
+
variant?: NavbarVariant;
|
|
12
|
+
/** Logo or brand slot */
|
|
13
|
+
logo?: React.ReactNode;
|
|
14
|
+
/** Right-side actions slot */
|
|
15
|
+
actions?: React.ReactNode;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Navbar component — renders a sticky header with navigation links.
|
|
19
|
+
*
|
|
20
|
+
* Uses the headless @refraction-ui/navbar core for state and ARIA attributes.
|
|
21
|
+
* Hidden on mobile (links use md:flex).
|
|
22
|
+
*/
|
|
23
|
+
declare const Navbar: React.ForwardRefExoticComponent<NavbarProps & React.RefAttributes<HTMLElement>>;
|
|
24
|
+
|
|
25
|
+
export { Navbar, type NavbarProps };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { NavLink, NavbarVariant } from '../navbar/index.js';
|
|
3
|
+
export { NavLink, NavbarVariant, navLinkVariants, navbarVariants } from '../navbar/index.js';
|
|
4
|
+
|
|
5
|
+
interface NavbarProps extends React.HTMLAttributes<HTMLElement> {
|
|
6
|
+
/** Navigation links */
|
|
7
|
+
links?: NavLink[];
|
|
8
|
+
/** Current pathname for active state */
|
|
9
|
+
currentPath?: string;
|
|
10
|
+
/** Visual variant */
|
|
11
|
+
variant?: NavbarVariant;
|
|
12
|
+
/** Logo or brand slot */
|
|
13
|
+
logo?: React.ReactNode;
|
|
14
|
+
/** Right-side actions slot */
|
|
15
|
+
actions?: React.ReactNode;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Navbar component — renders a sticky header with navigation links.
|
|
19
|
+
*
|
|
20
|
+
* Uses the headless @refraction-ui/navbar core for state and ARIA attributes.
|
|
21
|
+
* Hidden on mobile (links use md:flex).
|
|
22
|
+
*/
|
|
23
|
+
declare const Navbar: React.ForwardRefExoticComponent<NavbarProps & React.RefAttributes<HTMLElement>>;
|
|
24
|
+
|
|
25
|
+
export { Navbar, type NavbarProps };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { OtpInputType } from '../otp-input/index.cjs';
|
|
3
|
+
export { OtpInputAPI, OtpInputType, OtpSlotProps, otpInputContainerVariants, otpInputSlotVariants, otpInputTokens } from '../otp-input/index.cjs';
|
|
4
|
+
|
|
5
|
+
interface OtpInputProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
6
|
+
length?: number;
|
|
7
|
+
value?: string;
|
|
8
|
+
onChange?: (value: string) => void;
|
|
9
|
+
autoFocus?: boolean;
|
|
10
|
+
type?: OtpInputType;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
size?: 'sm' | 'default' | 'lg';
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* OtpInput -- a row of individual input boxes for one-time password entry.
|
|
16
|
+
*
|
|
17
|
+
* Features: auto-advance on type, backspace navigation, paste support, numeric/text mode.
|
|
18
|
+
*/
|
|
19
|
+
declare const OtpInput: React.ForwardRefExoticComponent<OtpInputProps & React.RefAttributes<HTMLDivElement>>;
|
|
20
|
+
|
|
21
|
+
export { OtpInput, type OtpInputProps };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { OtpInputType } from '../otp-input/index.js';
|
|
3
|
+
export { OtpInputAPI, OtpInputType, OtpSlotProps, otpInputContainerVariants, otpInputSlotVariants, otpInputTokens } from '../otp-input/index.js';
|
|
4
|
+
|
|
5
|
+
interface OtpInputProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
6
|
+
length?: number;
|
|
7
|
+
value?: string;
|
|
8
|
+
onChange?: (value: string) => void;
|
|
9
|
+
autoFocus?: boolean;
|
|
10
|
+
type?: OtpInputType;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
size?: 'sm' | 'default' | 'lg';
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* OtpInput -- a row of individual input boxes for one-time password entry.
|
|
16
|
+
*
|
|
17
|
+
* Features: auto-advance on type, backspace navigation, paste support, numeric/text mode.
|
|
18
|
+
*/
|
|
19
|
+
declare const OtpInput: React.ForwardRefExoticComponent<OtpInputProps & React.RefAttributes<HTMLDivElement>>;
|
|
20
|
+
|
|
21
|
+
export { OtpInput, type OtpInputProps };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
interface PaginationProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
}
|
|
5
|
+
declare const Pagination: React.ForwardRefExoticComponent<PaginationProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
|
|
7
|
+
export { Pagination, type PaginationProps };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { PaymentProps as PaymentProps$1 } from '../payment/index.cjs';
|
|
3
|
+
|
|
4
|
+
interface PaymentProps extends React.HTMLAttributes<HTMLDivElement>, PaymentProps$1 {
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare const Payment: React.ForwardRefExoticComponent<PaymentProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
|
|
9
|
+
export { Payment, type PaymentProps };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { PaymentProps as PaymentProps$1 } from '../payment/index.js';
|
|
3
|
+
|
|
4
|
+
interface PaymentProps extends React.HTMLAttributes<HTMLDivElement>, PaymentProps$1 {
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare const Payment: React.ForwardRefExoticComponent<PaymentProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
|
|
9
|
+
export { Payment, type PaymentProps };
|