@refraction-ui/react 0.4.2 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -1
- package/dist/chunk-O4453CBF.js +137 -0
- package/dist/chunk-O4453CBF.js.map +1 -0
- package/dist/chunk-XWP763SH.js +76 -0
- package/dist/chunk-XWP763SH.js.map +1 -0
- package/dist/faro-engine-47HGRAQH-JKINJPMH.js +3 -0
- package/dist/faro-engine-47HGRAQH-JKINJPMH.js.map +1 -0
- package/dist/form.cjs +340 -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 +204 -0
- package/dist/form.js.map +1 -0
- package/dist/index.cjs +1438 -237
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +76 -76
- package/dist/index.d.ts +76 -76
- package/dist/index.js +1317 -312
- package/dist/index.js.map +1 -1
- package/dist/internal/analytics/index.d.cts +448 -0
- package/dist/internal/analytics/index.d.ts +448 -0
- 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/logger/index.d.cts +229 -0
- package/dist/internal/logger/index.d.ts +229 -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-analytics/index.d.cts +44 -0
- package/dist/internal/react-analytics/index.d.ts +44 -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-logger/index.d.cts +107 -0
- package/dist/internal/react-logger/index.d.ts +107 -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 +419 -0
- package/dist/internal/shared/index.d.ts +419 -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.cjs +23 -0
- package/dist/theme.cjs.map +1 -1
- package/dist/theme.d.cts +1 -1
- package/dist/theme.d.ts +1 -1
- package/dist/theme.js +5 -2
- package/dist/theme.js.map +1 -1
- package/package.json +10 -7
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { BreadcrumbItem } from '../breadcrumbs/index.js';
|
|
3
|
+
export { BreadcrumbItem, breadcrumbItemVariants, breadcrumbSeparatorStyles, breadcrumbsVariants } from '../breadcrumbs/index.js';
|
|
4
|
+
|
|
5
|
+
interface BreadcrumbsProps extends React.HTMLAttributes<HTMLElement> {
|
|
6
|
+
/** Current pathname to auto-generate breadcrumbs from */
|
|
7
|
+
pathname?: string;
|
|
8
|
+
/** Manual breadcrumb items (overrides pathname) */
|
|
9
|
+
items?: BreadcrumbItem[];
|
|
10
|
+
/** Custom label map for pathname segments */
|
|
11
|
+
labels?: Record<string, string>;
|
|
12
|
+
/** Separator character. Default: '/' */
|
|
13
|
+
separator?: string;
|
|
14
|
+
/** Max items before truncation */
|
|
15
|
+
maxItems?: number;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Breadcrumbs component — renders a breadcrumb navigation trail.
|
|
19
|
+
*
|
|
20
|
+
* Uses the headless @refraction-ui/breadcrumbs core for state and ARIA attributes.
|
|
21
|
+
*/
|
|
22
|
+
declare const Breadcrumbs: React.ForwardRefExoticComponent<BreadcrumbsProps & React.RefAttributes<HTMLElement>>;
|
|
23
|
+
|
|
24
|
+
export { Breadcrumbs, type BreadcrumbsProps };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ButtonVariant, ButtonSize } from '../button/index.cjs';
|
|
3
|
+
export { ButtonSize, ButtonVariant, buttonTokens, buttonVariants } from '../button/index.cjs';
|
|
4
|
+
|
|
5
|
+
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
6
|
+
variant?: ButtonVariant;
|
|
7
|
+
size?: ButtonSize;
|
|
8
|
+
loading?: boolean;
|
|
9
|
+
asChild?: boolean;
|
|
10
|
+
shortcut?: string;
|
|
11
|
+
action?: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Button component — renders a styled button with variant and size support.
|
|
15
|
+
*
|
|
16
|
+
* Uses the headless @refraction-ui/button core for state, ARIA, and keyboard handling.
|
|
17
|
+
* Styling via Tailwind utility classes (no external CSS-in-JS).
|
|
18
|
+
*/
|
|
19
|
+
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
20
|
+
|
|
21
|
+
export { Button, type ButtonProps };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ButtonVariant, ButtonSize } from '../button/index.js';
|
|
3
|
+
export { ButtonSize, ButtonVariant, buttonTokens, buttonVariants } from '../button/index.js';
|
|
4
|
+
|
|
5
|
+
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
6
|
+
variant?: ButtonVariant;
|
|
7
|
+
size?: ButtonSize;
|
|
8
|
+
loading?: boolean;
|
|
9
|
+
asChild?: boolean;
|
|
10
|
+
shortcut?: string;
|
|
11
|
+
action?: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Button component — renders a styled button with variant and size support.
|
|
15
|
+
*
|
|
16
|
+
* Uses the headless @refraction-ui/button core for state, ARIA, and keyboard handling.
|
|
17
|
+
* Styling via Tailwind utility classes (no external CSS-in-JS).
|
|
18
|
+
*/
|
|
19
|
+
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
20
|
+
|
|
21
|
+
export { Button, type ButtonProps };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { CalendarProps as CalendarProps$1 } from '../calendar/index.cjs';
|
|
3
|
+
export { CalendarAPI, CalendarDay, CalendarState, CalendarProps as CoreCalendarProps, calendarVariants, dayVariants } from '../calendar/index.cjs';
|
|
4
|
+
|
|
5
|
+
interface CalendarProps extends CalendarProps$1 {
|
|
6
|
+
className?: string;
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
}
|
|
9
|
+
declare function Calendar({ className, value, defaultValue, onSelect, month, onMonthChange, minDate, maxDate, disabledDates, }: CalendarProps): React.DetailedReactHTMLElement<{
|
|
10
|
+
role?: string | undefined;
|
|
11
|
+
tabIndex?: number | undefined;
|
|
12
|
+
'aria-label'?: string | undefined;
|
|
13
|
+
'aria-labelledby'?: string | undefined;
|
|
14
|
+
'aria-describedby'?: string | undefined;
|
|
15
|
+
'aria-controls'?: string | undefined;
|
|
16
|
+
'aria-expanded'?: boolean | undefined;
|
|
17
|
+
'aria-selected'?: boolean | undefined;
|
|
18
|
+
'aria-hidden'?: boolean | undefined;
|
|
19
|
+
'aria-disabled'?: boolean | undefined;
|
|
20
|
+
'aria-pressed'?: boolean | "mixed" | undefined;
|
|
21
|
+
'aria-checked'?: boolean | "mixed" | undefined;
|
|
22
|
+
'aria-current'?: boolean | "page" | "step" | "location" | "date" | "time" | undefined;
|
|
23
|
+
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
24
|
+
'aria-atomic'?: boolean | undefined;
|
|
25
|
+
className: string;
|
|
26
|
+
}, HTMLElement>;
|
|
27
|
+
declare namespace Calendar {
|
|
28
|
+
var displayName: string;
|
|
29
|
+
}
|
|
30
|
+
interface CalendarHeaderProps {
|
|
31
|
+
label: string;
|
|
32
|
+
labelId: string;
|
|
33
|
+
onPrevMonth: () => void;
|
|
34
|
+
onNextMonth: () => void;
|
|
35
|
+
className?: string;
|
|
36
|
+
}
|
|
37
|
+
declare function CalendarHeader({ label, labelId, onPrevMonth, onNextMonth, className, }: CalendarHeaderProps): React.DetailedReactHTMLElement<{
|
|
38
|
+
className: string;
|
|
39
|
+
}, HTMLElement>;
|
|
40
|
+
declare namespace CalendarHeader {
|
|
41
|
+
var displayName: string;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export { Calendar, CalendarHeader, type CalendarHeaderProps, type CalendarProps };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { CalendarProps as CalendarProps$1 } from '../calendar/index.js';
|
|
3
|
+
export { CalendarAPI, CalendarDay, CalendarState, CalendarProps as CoreCalendarProps, calendarVariants, dayVariants } from '../calendar/index.js';
|
|
4
|
+
|
|
5
|
+
interface CalendarProps extends CalendarProps$1 {
|
|
6
|
+
className?: string;
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
}
|
|
9
|
+
declare function Calendar({ className, value, defaultValue, onSelect, month, onMonthChange, minDate, maxDate, disabledDates, }: CalendarProps): React.DetailedReactHTMLElement<{
|
|
10
|
+
role?: string | undefined;
|
|
11
|
+
tabIndex?: number | undefined;
|
|
12
|
+
'aria-label'?: string | undefined;
|
|
13
|
+
'aria-labelledby'?: string | undefined;
|
|
14
|
+
'aria-describedby'?: string | undefined;
|
|
15
|
+
'aria-controls'?: string | undefined;
|
|
16
|
+
'aria-expanded'?: boolean | undefined;
|
|
17
|
+
'aria-selected'?: boolean | undefined;
|
|
18
|
+
'aria-hidden'?: boolean | undefined;
|
|
19
|
+
'aria-disabled'?: boolean | undefined;
|
|
20
|
+
'aria-pressed'?: boolean | "mixed" | undefined;
|
|
21
|
+
'aria-checked'?: boolean | "mixed" | undefined;
|
|
22
|
+
'aria-current'?: boolean | "page" | "step" | "location" | "date" | "time" | undefined;
|
|
23
|
+
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
24
|
+
'aria-atomic'?: boolean | undefined;
|
|
25
|
+
className: string;
|
|
26
|
+
}, HTMLElement>;
|
|
27
|
+
declare namespace Calendar {
|
|
28
|
+
var displayName: string;
|
|
29
|
+
}
|
|
30
|
+
interface CalendarHeaderProps {
|
|
31
|
+
label: string;
|
|
32
|
+
labelId: string;
|
|
33
|
+
onPrevMonth: () => void;
|
|
34
|
+
onNextMonth: () => void;
|
|
35
|
+
className?: string;
|
|
36
|
+
}
|
|
37
|
+
declare function CalendarHeader({ label, labelId, onPrevMonth, onNextMonth, className, }: CalendarHeaderProps): React.DetailedReactHTMLElement<{
|
|
38
|
+
className: string;
|
|
39
|
+
}, HTMLElement>;
|
|
40
|
+
declare namespace CalendarHeader {
|
|
41
|
+
var displayName: string;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export { Calendar, CalendarHeader, type CalendarHeaderProps, type CalendarProps };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
interface CalloutProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
variant?: 'default' | 'destructive' | 'success' | 'warning' | 'info';
|
|
5
|
+
}
|
|
6
|
+
declare const Callout: React.ForwardRefExoticComponent<CalloutProps & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
declare const CalloutIcon: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
declare const CalloutContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
declare const CalloutTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>;
|
|
10
|
+
declare const CalloutDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
|
|
12
|
+
export { Callout, CalloutContent, CalloutDescription, CalloutIcon, type CalloutProps, CalloutTitle };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
interface CalloutProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
variant?: 'default' | 'destructive' | 'success' | 'warning' | 'info';
|
|
5
|
+
}
|
|
6
|
+
declare const Callout: React.ForwardRefExoticComponent<CalloutProps & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
declare const CalloutIcon: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
declare const CalloutContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
declare const CalloutTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>;
|
|
10
|
+
declare const CalloutDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
|
|
12
|
+
export { Callout, CalloutContent, CalloutDescription, CalloutIcon, type CalloutProps, CalloutTitle };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export { CardAPI, CardProps, cardContentVariants, cardDescriptionVariants, cardFooterVariants, cardHeaderVariants, cardTitleVariants, cardTokens, cardVariants } from '../card/index.cjs';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Card -- a container with rounded corners, border, and shadow.
|
|
6
|
+
*/
|
|
7
|
+
declare const Card: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
/**
|
|
9
|
+
* CardHeader -- top section of a card, typically contains title and description.
|
|
10
|
+
*/
|
|
11
|
+
declare const CardHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
/**
|
|
13
|
+
* CardTitle -- heading within a card header.
|
|
14
|
+
*/
|
|
15
|
+
declare const CardTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>;
|
|
16
|
+
/**
|
|
17
|
+
* CardDescription -- subtext within a card header.
|
|
18
|
+
*/
|
|
19
|
+
declare const CardDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
20
|
+
/**
|
|
21
|
+
* CardContent -- main body content area of a card.
|
|
22
|
+
*/
|
|
23
|
+
declare const CardContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
24
|
+
/**
|
|
25
|
+
* CardFooter -- bottom section of a card, typically contains actions.
|
|
26
|
+
*/
|
|
27
|
+
declare const CardFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
28
|
+
|
|
29
|
+
export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export { CardAPI, CardProps, cardContentVariants, cardDescriptionVariants, cardFooterVariants, cardHeaderVariants, cardTitleVariants, cardTokens, cardVariants } from '../card/index.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Card -- a container with rounded corners, border, and shadow.
|
|
6
|
+
*/
|
|
7
|
+
declare const Card: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
/**
|
|
9
|
+
* CardHeader -- top section of a card, typically contains title and description.
|
|
10
|
+
*/
|
|
11
|
+
declare const CardHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
/**
|
|
13
|
+
* CardTitle -- heading within a card header.
|
|
14
|
+
*/
|
|
15
|
+
declare const CardTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>;
|
|
16
|
+
/**
|
|
17
|
+
* CardDescription -- subtext within a card header.
|
|
18
|
+
*/
|
|
19
|
+
declare const CardDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
|
20
|
+
/**
|
|
21
|
+
* CardContent -- main body content area of a card.
|
|
22
|
+
*/
|
|
23
|
+
declare const CardContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
24
|
+
/**
|
|
25
|
+
* CardFooter -- bottom section of a card, typically contains actions.
|
|
26
|
+
*/
|
|
27
|
+
declare const CardFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
28
|
+
|
|
29
|
+
export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { CardGridProps } from '../card-grid/index.cjs';
|
|
3
|
+
|
|
4
|
+
interface ReactCardGridProps extends React.HTMLAttributes<HTMLDivElement>, CardGridProps {
|
|
5
|
+
}
|
|
6
|
+
declare const CardGrid: React.ForwardRefExoticComponent<ReactCardGridProps & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
|
|
8
|
+
export { CardGrid, type ReactCardGridProps };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { CardGridProps } from '../card-grid/index.js';
|
|
3
|
+
|
|
4
|
+
interface ReactCardGridProps extends React.HTMLAttributes<HTMLDivElement>, CardGridProps {
|
|
5
|
+
}
|
|
6
|
+
declare const CardGrid: React.ForwardRefExoticComponent<ReactCardGridProps & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
|
|
8
|
+
export { CardGrid, type ReactCardGridProps };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
interface CarouselProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'defaultValue' | 'onChange'> {
|
|
4
|
+
type?: 'single' | 'multiple';
|
|
5
|
+
collapsible?: boolean;
|
|
6
|
+
defaultValue?: string | string[];
|
|
7
|
+
value?: string | string[];
|
|
8
|
+
onValueChange?: (value: string | string[]) => void;
|
|
9
|
+
}
|
|
10
|
+
declare const Carousel: React.ForwardRefExoticComponent<CarouselProps & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
interface CarouselItemProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
12
|
+
value: string;
|
|
13
|
+
}
|
|
14
|
+
declare const CarouselItem: React.ForwardRefExoticComponent<CarouselItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
+
interface CarouselTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
16
|
+
}
|
|
17
|
+
declare const CarouselTrigger: React.ForwardRefExoticComponent<CarouselTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
18
|
+
interface CarouselContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
19
|
+
}
|
|
20
|
+
declare const CarouselContent: React.ForwardRefExoticComponent<CarouselContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
21
|
+
|
|
22
|
+
export { Carousel, CarouselContent, type CarouselContentProps, CarouselItem, type CarouselItemProps, type CarouselProps, CarouselTrigger, type CarouselTriggerProps };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { CheckedState } from '../checkbox/index.cjs';
|
|
3
|
+
export { CheckboxAPI, CheckedState, checkIconPath, checkboxTokens, checkboxVariants, indeterminateIconPath } from '../checkbox/index.cjs';
|
|
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,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 };
|