@refraction-ui/react 0.19.1 → 0.20.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/dist/chunk-533MCMSU.js +2355 -0
- package/dist/chunk-533MCMSU.js.map +7 -0
- package/dist/chunk-AMK4VCBG.js +250 -0
- package/dist/chunk-AMK4VCBG.js.map +7 -0
- package/dist/chunk-BOLFYVI6.js +90 -0
- package/dist/chunk-BOLFYVI6.js.map +7 -0
- package/dist/chunk-F7B64KT3.js +187 -0
- package/dist/chunk-F7B64KT3.js.map +7 -0
- package/dist/chunk-FD37DFCC.js +77 -0
- package/dist/chunk-FD37DFCC.js.map +7 -0
- package/dist/chunk-H54FLNAF.js +132 -0
- package/dist/chunk-H54FLNAF.js.map +7 -0
- package/dist/chunk-INP46354.js +664 -0
- package/dist/chunk-INP46354.js.map +7 -0
- package/dist/chunk-ONACRMG4.js +116 -0
- package/dist/chunk-ONACRMG4.js.map +7 -0
- package/dist/chunk-SDZ3LROZ.js +7 -0
- package/dist/chunk-SDZ3LROZ.js.map +7 -0
- package/dist/chunk-TOZBR4GL.js +154 -0
- package/dist/chunk-TOZBR4GL.js.map +7 -0
- package/dist/chunk-UNEM2TRI.js +225 -0
- package/dist/chunk-UNEM2TRI.js.map +7 -0
- package/dist/chunk-VK3EQ34F.js +92 -0
- package/dist/chunk-VK3EQ34F.js.map +7 -0
- package/dist/chunk-WK2IIUFO.js +316 -0
- package/dist/chunk-WK2IIUFO.js.map +7 -0
- package/dist/chunk-WSPJTQAV.js +59 -0
- package/dist/chunk-WSPJTQAV.js.map +7 -0
- package/dist/chunk-XWP763SH.js +3 -2
- package/dist/chunk-XWP763SH.js.map +7 -1
- package/dist/chunk-Y2FNNAIL.js +80 -0
- package/dist/chunk-Y2FNNAIL.js.map +1 -0
- package/dist/{chunk-4A4BW3GR.js → chunk-ZF3OHCGV.js} +28 -5
- package/dist/chunk-ZF3OHCGV.js.map +7 -0
- package/dist/form.cjs +5 -11
- package/dist/form.cjs.map +1 -1
- package/dist/form.js +6 -12
- package/dist/form.js.map +1 -1
- package/dist/index.cjs +2879 -33936
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +126 -28780
- package/dist/internal/react-app-shell/index.d.cts +2 -22
- package/dist/internal/react-app-shell/index.d.ts +2 -22
- package/dist/internal/react-badge/index.d.cts +5 -0
- package/dist/internal/react-badge/index.d.ts +5 -0
- package/dist/internal/react-callout/index.d.cts +4 -0
- package/dist/internal/react-callout/index.d.ts +4 -0
- package/dist/internal/react-card/index.d.cts +8 -1
- package/dist/internal/react-card/index.d.ts +8 -1
- package/dist/internal/react-collapsible/index.d.cts +0 -3
- package/dist/internal/react-collapsible/index.d.ts +0 -3
- package/dist/internal/react-combobox/index.d.cts +0 -3
- package/dist/internal/react-combobox/index.d.ts +0 -3
- package/dist/internal/react-command/index.d.cts +0 -3
- package/dist/internal/react-command/index.d.ts +0 -3
- package/dist/internal/react-data-table/index.d.cts +0 -3
- package/dist/internal/react-data-table/index.d.ts +0 -3
- package/dist/internal/react-dialog/index.d.cts +0 -3
- package/dist/internal/react-dialog/index.d.ts +0 -3
- package/dist/internal/react-dropdown-menu/index.d.cts +0 -3
- package/dist/internal/react-dropdown-menu/index.d.ts +0 -3
- package/dist/internal/react-feedback-dialog/index.d.cts +0 -3
- package/dist/internal/react-feedback-dialog/index.d.ts +0 -3
- package/dist/internal/react-form/index.d.cts +2 -21
- package/dist/internal/react-form/index.d.ts +2 -21
- package/dist/internal/react-keyboard-shortcut/index.d.cts +0 -6
- package/dist/internal/react-keyboard-shortcut/index.d.ts +0 -6
- package/dist/internal/react-link-card/index.d.cts +8 -2
- package/dist/internal/react-link-card/index.d.ts +8 -2
- package/dist/internal/react-popover/index.d.cts +0 -3
- package/dist/internal/react-popover/index.d.ts +0 -3
- package/dist/internal/react-sheet/index.d.cts +0 -3
- package/dist/internal/react-sheet/index.d.ts +0 -3
- package/dist/internal/react-slot/index.d.cts +23 -0
- package/dist/internal/react-slot/index.d.ts +23 -0
- package/dist/internal/react-toast/index.d.cts +0 -3
- package/dist/internal/react-toast/index.d.ts +0 -3
- package/dist/internal/react-tooltip/index.d.cts +0 -3
- package/dist/internal/react-tooltip/index.d.ts +0 -3
- package/dist/react-accordion.js +125 -0
- package/dist/react-accordion.js.map +7 -0
- package/dist/react-ai.js +257 -0
- package/dist/react-ai.js.map +7 -0
- package/dist/react-analytics.js +1698 -0
- package/dist/react-analytics.js.map +7 -0
- package/dist/react-animated-text.js +164 -0
- package/dist/react-animated-text.js.map +7 -0
- package/dist/react-app-shell.js +631 -0
- package/dist/react-app-shell.js.map +7 -0
- package/dist/react-audience-feature-card.js +53 -0
- package/dist/react-audience-feature-card.js.map +7 -0
- package/dist/react-audio-room.js +166 -0
- package/dist/react-audio-room.js.map +7 -0
- package/dist/react-auth.js +211 -0
- package/dist/react-auth.js.map +7 -0
- package/dist/react-avatar-group.js +154 -0
- package/dist/react-avatar-group.js.map +7 -0
- package/dist/react-avatar.js +168 -0
- package/dist/react-avatar.js.map +7 -0
- package/dist/react-badge.js +86 -0
- package/dist/react-badge.js.map +7 -0
- package/dist/react-bottom-nav.js +67 -0
- package/dist/react-bottom-nav.js.map +7 -0
- package/dist/react-brand-network-cell.js +92 -0
- package/dist/react-brand-network-cell.js.map +7 -0
- package/dist/react-breadcrumbs.js +104 -0
- package/dist/react-breadcrumbs.js.map +7 -0
- package/dist/react-browser-chrome-mock.js +89 -0
- package/dist/react-browser-chrome-mock.js.map +7 -0
- package/dist/react-button.js +13 -0
- package/dist/react-button.js.map +7 -0
- package/dist/react-calendar.js +301 -0
- package/dist/react-calendar.js.map +7 -0
- package/dist/react-call-controls.js +113 -0
- package/dist/react-call-controls.js.map +7 -0
- package/dist/react-callout.js +152 -0
- package/dist/react-callout.js.map +7 -0
- package/dist/react-card-grid.js +34 -0
- package/dist/react-card-grid.js.map +7 -0
- package/dist/react-card.js +200 -0
- package/dist/react-card.js.map +7 -0
- package/dist/react-carousel.js +132 -0
- package/dist/react-carousel.js.map +7 -0
- package/dist/react-charts.js +509 -0
- package/dist/react-charts.js.map +7 -0
- package/dist/react-checkbox.js +156 -0
- package/dist/react-checkbox.js.map +7 -0
- package/dist/react-checklist.js +168 -0
- package/dist/react-checklist.js.map +7 -0
- package/dist/react-code-block.js +78 -0
- package/dist/react-code-block.js.map +7 -0
- package/dist/react-code-editor.js +184 -0
- package/dist/react-code-editor.js.map +7 -0
- package/dist/react-collapsible.js +192 -0
- package/dist/react-collapsible.js.map +7 -0
- package/dist/react-combobox.js +609 -0
- package/dist/react-combobox.js.map +7 -0
- package/dist/react-command-input.js +202 -0
- package/dist/react-command-input.js.map +7 -0
- package/dist/react-command.js +364 -0
- package/dist/react-command.js.map +7 -0
- package/dist/react-composer.js +2036 -0
- package/dist/react-composer.js.map +7 -0
- package/dist/react-content-protection.js +133 -0
- package/dist/react-content-protection.js.map +7 -0
- package/dist/react-conversation.js +1226 -0
- package/dist/react-conversation.js.map +7 -0
- package/dist/react-cookie-consent.js +291 -0
- package/dist/react-cookie-consent.js.map +7 -0
- package/dist/react-data-table.js +310 -0
- package/dist/react-data-table.js.map +7 -0
- package/dist/react-date-picker.js +95 -0
- package/dist/react-date-picker.js.map +7 -0
- package/dist/react-device-frame.js +137 -0
- package/dist/react-device-frame.js.map +7 -0
- package/dist/react-dialog.js +218 -0
- package/dist/react-dialog.js.map +7 -0
- package/dist/react-diff-viewer.js +460 -0
- package/dist/react-diff-viewer.js.map +7 -0
- package/dist/react-dropdown-menu.js +292 -0
- package/dist/react-dropdown-menu.js.map +7 -0
- package/dist/react-editor-status-bar.js +148 -0
- package/dist/react-editor-status-bar.js.map +7 -0
- package/dist/react-editor-tabs.js +159 -0
- package/dist/react-editor-tabs.js.map +7 -0
- package/dist/react-emoji-picker.js +238 -0
- package/dist/react-emoji-picker.js.map +7 -0
- package/dist/react-empty-state.js +90 -0
- package/dist/react-empty-state.js.map +7 -0
- package/dist/react-feedback-dialog.js +275 -0
- package/dist/react-feedback-dialog.js.map +7 -0
- package/dist/react-file-tree.js +376 -0
- package/dist/react-file-tree.js.map +7 -0
- package/dist/react-file-upload.js +360 -0
- package/dist/react-file-upload.js.map +7 -0
- package/dist/react-floating-reactions.js +124 -0
- package/dist/react-floating-reactions.js.map +7 -0
- package/dist/react-flow-editor.js +198 -0
- package/dist/react-flow-editor.js.map +7 -0
- package/dist/react-footer.js +67 -0
- package/dist/react-footer.js.map +7 -0
- package/dist/react-graph-view.js +197 -0
- package/dist/react-graph-view.js.map +7 -0
- package/dist/react-icon-system.js +9 -0
- package/dist/react-icon-system.js.map +7 -0
- package/dist/react-infinite-canvas.js +8 -0
- package/dist/react-infinite-canvas.js.map +7 -0
- package/dist/react-inline-editor.js +216 -0
- package/dist/react-inline-editor.js.map +7 -0
- package/dist/react-input-group.js +150 -0
- package/dist/react-input-group.js.map +7 -0
- package/dist/react-input.js +10 -0
- package/dist/react-input.js.map +7 -0
- package/dist/react-install-prompt.js +132 -0
- package/dist/react-install-prompt.js.map +7 -0
- package/dist/react-kanban-board.js +198 -0
- package/dist/react-kanban-board.js.map +7 -0
- package/dist/react-keyboard-shortcut.js +36 -0
- package/dist/react-keyboard-shortcut.js.map +7 -0
- package/dist/react-language-selector.js +311 -0
- package/dist/react-language-selector.js.map +7 -0
- package/dist/react-link-card.js +48 -0
- package/dist/react-link-card.js.map +7 -0
- package/dist/react-live-captions.js +92 -0
- package/dist/react-live-captions.js.map +7 -0
- package/dist/react-live-cursors.js +145 -0
- package/dist/react-live-cursors.js.map +7 -0
- package/dist/react-live-transcript.js +117 -0
- package/dist/react-live-transcript.js.map +7 -0
- package/dist/react-location-selector.js +252 -0
- package/dist/react-location-selector.js.map +7 -0
- package/dist/react-logger.js +415 -0
- package/dist/react-logger.js.map +7 -0
- package/dist/react-markdown-renderer.js +12 -0
- package/dist/react-markdown-renderer.js.map +7 -0
- package/dist/react-marquee-strip.js +62 -0
- package/dist/react-marquee-strip.js.map +7 -0
- package/dist/react-mascot.js +367 -0
- package/dist/react-mascot.js.map +7 -0
- package/dist/react-mastery-bar.js +97 -0
- package/dist/react-mastery-bar.js.map +7 -0
- package/dist/react-mini-map.js +207 -0
- package/dist/react-mini-map.js.map +7 -0
- package/dist/react-mobile-nav.js +216 -0
- package/dist/react-mobile-nav.js.map +7 -0
- package/dist/react-navbar.js +96 -0
- package/dist/react-navbar.js.map +7 -0
- package/dist/react-numbered-steps.js +67 -0
- package/dist/react-numbered-steps.js.map +7 -0
- package/dist/react-otp-input.js +318 -0
- package/dist/react-otp-input.js.map +7 -0
- package/dist/react-pagination.js +199 -0
- package/dist/react-pagination.js.map +7 -0
- package/dist/react-password-input.js +104 -0
- package/dist/react-password-input.js.map +7 -0
- package/dist/react-payment.js +81 -0
- package/dist/react-payment.js.map +7 -0
- package/dist/react-popover.js +176 -0
- package/dist/react-popover.js.map +7 -0
- package/dist/react-pre-call-lobby.js +309 -0
- package/dist/react-pre-call-lobby.js.map +7 -0
- package/dist/react-presence-indicator.js +86 -0
- package/dist/react-presence-indicator.js.map +7 -0
- package/dist/react-pricing-card.js +142 -0
- package/dist/react-pricing-card.js.map +7 -0
- package/dist/react-progress-display.js +188 -0
- package/dist/react-progress-display.js.map +7 -0
- package/dist/react-radial-gauge.js +193 -0
- package/dist/react-radial-gauge.js.map +7 -0
- package/dist/react-radio.js +169 -0
- package/dist/react-radio.js.map +7 -0
- package/dist/react-rating-scale.js +171 -0
- package/dist/react-rating-scale.js.map +7 -0
- package/dist/react-reaction-bar.js +111 -0
- package/dist/react-reaction-bar.js.map +7 -0
- package/dist/react-resizable-layout.js +298 -0
- package/dist/react-resizable-layout.js.map +7 -0
- package/dist/react-rich-editor.js +1 -0
- package/dist/react-rich-editor.js.map +7 -0
- package/dist/react-search-bar.js +285 -0
- package/dist/react-search-bar.js.map +7 -0
- package/dist/react-section-head.js +65 -0
- package/dist/react-section-head.js.map +7 -0
- package/dist/react-segmented-control.js +215 -0
- package/dist/react-segmented-control.js.map +7 -0
- package/dist/react-select.js +389 -0
- package/dist/react-select.js.map +7 -0
- package/dist/react-separator.js +86 -0
- package/dist/react-separator.js.map +7 -0
- package/dist/react-sheet.js +310 -0
- package/dist/react-sheet.js.map +7 -0
- package/dist/react-sidebar.js +100 -0
- package/dist/react-sidebar.js.map +7 -0
- package/dist/react-skeleton.js +91 -0
- package/dist/react-skeleton.js.map +7 -0
- package/dist/react-skip-to-content.js +38 -0
- package/dist/react-skip-to-content.js.map +7 -0
- package/dist/react-slide-viewer.js +264 -0
- package/dist/react-slide-viewer.js.map +7 -0
- package/dist/react-slider.js +105 -0
- package/dist/react-slider.js.map +7 -0
- package/dist/react-slot-picker.js +184 -0
- package/dist/react-slot-picker.js.map +7 -0
- package/dist/react-slot.js +7 -0
- package/dist/react-slot.js.map +7 -0
- package/dist/react-social-auth-button.js +169 -0
- package/dist/react-social-auth-button.js.map +7 -0
- package/dist/react-sortable-list.js +204 -0
- package/dist/react-sortable-list.js.map +7 -0
- package/dist/react-stat-grid.js +69 -0
- package/dist/react-stat-grid.js.map +7 -0
- package/dist/react-status-indicator.js +117 -0
- package/dist/react-status-indicator.js.map +7 -0
- package/dist/react-steps.js +167 -0
- package/dist/react-steps.js.map +7 -0
- package/dist/react-sticky-note.js +131 -0
- package/dist/react-sticky-note.js.map +7 -0
- package/dist/react-switch.js +139 -0
- package/dist/react-switch.js.map +7 -0
- package/dist/react-table-of-contents.js +80 -0
- package/dist/react-table-of-contents.js.map +7 -0
- package/dist/react-tabs.js +230 -0
- package/dist/react-tabs.js.map +7 -0
- package/dist/react-terminal.js +101 -0
- package/dist/react-terminal.js.map +7 -0
- package/dist/react-test-results.js +158 -0
- package/dist/react-test-results.js.map +7 -0
- package/dist/react-textarea.js +89 -0
- package/dist/react-textarea.js.map +7 -0
- package/dist/react-thread-view.js +139 -0
- package/dist/react-thread-view.js.map +7 -0
- package/dist/react-timeline.js +153 -0
- package/dist/react-timeline.js.map +7 -0
- package/dist/react-toast.js +253 -0
- package/dist/react-toast.js.map +7 -0
- package/dist/react-tooltip.js +221 -0
- package/dist/react-tooltip.js.map +7 -0
- package/dist/react-version-selector.js +270 -0
- package/dist/react-version-selector.js.map +7 -0
- package/dist/react-video-grid.js +129 -0
- package/dist/react-video-grid.js.map +7 -0
- package/dist/react-video-player.js +206 -0
- package/dist/react-video-player.js.map +7 -0
- package/dist/react-video-tile.js +8 -0
- package/dist/react-video-tile.js.map +7 -0
- package/dist/react-voice-pill.js +314 -0
- package/dist/react-voice-pill.js.map +7 -0
- package/dist/react-waveform.js +558 -0
- package/dist/react-waveform.js.map +7 -0
- package/dist/react-wizard.js +337 -0
- package/dist/react-wizard.js.map +7 -0
- package/dist/styles.css +7 -0
- package/dist/theme.js +1 -1
- package/package.json +3 -2
- package/dist/applicationinsights-web-H7OBLIVJ.js +0 -23393
- package/dist/applicationinsights-web-H7OBLIVJ.js.map +0 -1
- package/dist/chunk-4A4BW3GR.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/module-X3HTTRQK.js +0 -6438
- package/dist/module-X3HTTRQK.js.map +0 -1
|
@@ -54,10 +54,6 @@ interface PageShellProps {
|
|
|
54
54
|
children?: React.ReactNode;
|
|
55
55
|
className?: string;
|
|
56
56
|
}
|
|
57
|
-
declare function PageShellRoot({ config, children, className }: PageShellProps): React.FunctionComponentElement<React.ProviderProps<PageShellContextValue | null>>;
|
|
58
|
-
declare namespace PageShellRoot {
|
|
59
|
-
var displayName: string;
|
|
60
|
-
}
|
|
61
57
|
interface PageShellNavProps {
|
|
62
58
|
children?: React.ReactNode;
|
|
63
59
|
className?: string;
|
|
@@ -65,9 +61,6 @@ interface PageShellNavProps {
|
|
|
65
61
|
declare function Nav({ children, className }: PageShellNavProps): React.DetailedReactHTMLElement<{
|
|
66
62
|
className: string;
|
|
67
63
|
}, HTMLElement>;
|
|
68
|
-
declare namespace Nav {
|
|
69
|
-
var displayName: string;
|
|
70
|
-
}
|
|
71
64
|
interface PageShellSectionProps extends SectionConfig {
|
|
72
65
|
children?: React.ReactNode;
|
|
73
66
|
className?: string;
|
|
@@ -75,9 +68,6 @@ interface PageShellSectionProps extends SectionConfig {
|
|
|
75
68
|
declare function Section({ children, className, fullWidth, maxWidth, padding, background, }: PageShellSectionProps): React.DetailedReactHTMLElement<{
|
|
76
69
|
className: string;
|
|
77
70
|
}, HTMLElement>;
|
|
78
|
-
declare namespace Section {
|
|
79
|
-
var displayName: string;
|
|
80
|
-
}
|
|
81
71
|
interface PageShellFooterProps {
|
|
82
72
|
children?: React.ReactNode;
|
|
83
73
|
className?: string;
|
|
@@ -86,10 +76,7 @@ interface PageShellFooterProps {
|
|
|
86
76
|
declare function Footer({ children, className, columns }: PageShellFooterProps): React.DetailedReactHTMLElement<{
|
|
87
77
|
className: string;
|
|
88
78
|
}, HTMLElement>;
|
|
89
|
-
declare
|
|
90
|
-
var displayName: string;
|
|
91
|
-
}
|
|
92
|
-
declare const PageShell: typeof PageShellRoot & {
|
|
79
|
+
declare const PageShell: (({ config, children, className }: PageShellProps) => React.FunctionComponentElement<React.ProviderProps<PageShellContextValue | null>>) & {
|
|
93
80
|
Nav: typeof Nav;
|
|
94
81
|
Section: typeof Section;
|
|
95
82
|
Footer: typeof Footer;
|
|
@@ -103,10 +90,6 @@ interface AuthShellProps {
|
|
|
103
90
|
children?: React.ReactNode;
|
|
104
91
|
className?: string;
|
|
105
92
|
}
|
|
106
|
-
declare function AuthShellRoot({ config, children, className }: AuthShellProps): React.FunctionComponentElement<React.ProviderProps<AuthShellContextValue | null>>;
|
|
107
|
-
declare namespace AuthShellRoot {
|
|
108
|
-
var displayName: string;
|
|
109
|
-
}
|
|
110
93
|
interface AuthShellCardProps {
|
|
111
94
|
children?: React.ReactNode;
|
|
112
95
|
className?: string;
|
|
@@ -115,10 +98,7 @@ declare function AuthShellCard({ children, className }: AuthShellCardProps): Rea
|
|
|
115
98
|
className: string;
|
|
116
99
|
'data-auth-card': string;
|
|
117
100
|
}, HTMLElement>;
|
|
118
|
-
declare
|
|
119
|
-
var displayName: string;
|
|
120
|
-
}
|
|
121
|
-
declare const AuthShell: typeof AuthShellRoot & {
|
|
101
|
+
declare const AuthShell: (({ config, children, className }: AuthShellProps) => React.FunctionComponentElement<React.ProviderProps<AuthShellContextValue | null>>) & {
|
|
122
102
|
Card: typeof AuthShellCard;
|
|
123
103
|
};
|
|
124
104
|
|
|
@@ -54,10 +54,6 @@ interface PageShellProps {
|
|
|
54
54
|
children?: React.ReactNode;
|
|
55
55
|
className?: string;
|
|
56
56
|
}
|
|
57
|
-
declare function PageShellRoot({ config, children, className }: PageShellProps): React.FunctionComponentElement<React.ProviderProps<PageShellContextValue | null>>;
|
|
58
|
-
declare namespace PageShellRoot {
|
|
59
|
-
var displayName: string;
|
|
60
|
-
}
|
|
61
57
|
interface PageShellNavProps {
|
|
62
58
|
children?: React.ReactNode;
|
|
63
59
|
className?: string;
|
|
@@ -65,9 +61,6 @@ interface PageShellNavProps {
|
|
|
65
61
|
declare function Nav({ children, className }: PageShellNavProps): React.DetailedReactHTMLElement<{
|
|
66
62
|
className: string;
|
|
67
63
|
}, HTMLElement>;
|
|
68
|
-
declare namespace Nav {
|
|
69
|
-
var displayName: string;
|
|
70
|
-
}
|
|
71
64
|
interface PageShellSectionProps extends SectionConfig {
|
|
72
65
|
children?: React.ReactNode;
|
|
73
66
|
className?: string;
|
|
@@ -75,9 +68,6 @@ interface PageShellSectionProps extends SectionConfig {
|
|
|
75
68
|
declare function Section({ children, className, fullWidth, maxWidth, padding, background, }: PageShellSectionProps): React.DetailedReactHTMLElement<{
|
|
76
69
|
className: string;
|
|
77
70
|
}, HTMLElement>;
|
|
78
|
-
declare namespace Section {
|
|
79
|
-
var displayName: string;
|
|
80
|
-
}
|
|
81
71
|
interface PageShellFooterProps {
|
|
82
72
|
children?: React.ReactNode;
|
|
83
73
|
className?: string;
|
|
@@ -86,10 +76,7 @@ interface PageShellFooterProps {
|
|
|
86
76
|
declare function Footer({ children, className, columns }: PageShellFooterProps): React.DetailedReactHTMLElement<{
|
|
87
77
|
className: string;
|
|
88
78
|
}, HTMLElement>;
|
|
89
|
-
declare
|
|
90
|
-
var displayName: string;
|
|
91
|
-
}
|
|
92
|
-
declare const PageShell: typeof PageShellRoot & {
|
|
79
|
+
declare const PageShell: (({ config, children, className }: PageShellProps) => React.FunctionComponentElement<React.ProviderProps<PageShellContextValue | null>>) & {
|
|
93
80
|
Nav: typeof Nav;
|
|
94
81
|
Section: typeof Section;
|
|
95
82
|
Footer: typeof Footer;
|
|
@@ -103,10 +90,6 @@ interface AuthShellProps {
|
|
|
103
90
|
children?: React.ReactNode;
|
|
104
91
|
className?: string;
|
|
105
92
|
}
|
|
106
|
-
declare function AuthShellRoot({ config, children, className }: AuthShellProps): React.FunctionComponentElement<React.ProviderProps<AuthShellContextValue | null>>;
|
|
107
|
-
declare namespace AuthShellRoot {
|
|
108
|
-
var displayName: string;
|
|
109
|
-
}
|
|
110
93
|
interface AuthShellCardProps {
|
|
111
94
|
children?: React.ReactNode;
|
|
112
95
|
className?: string;
|
|
@@ -115,10 +98,7 @@ declare function AuthShellCard({ children, className }: AuthShellCardProps): Rea
|
|
|
115
98
|
className: string;
|
|
116
99
|
'data-auth-card': string;
|
|
117
100
|
}, HTMLElement>;
|
|
118
|
-
declare
|
|
119
|
-
var displayName: string;
|
|
120
|
-
}
|
|
121
|
-
declare const AuthShell: typeof AuthShellRoot & {
|
|
101
|
+
declare const AuthShell: (({ config, children, className }: AuthShellProps) => React.FunctionComponentElement<React.ProviderProps<AuthShellContextValue | null>>) & {
|
|
122
102
|
Card: typeof AuthShellCard;
|
|
123
103
|
};
|
|
124
104
|
|
|
@@ -5,6 +5,11 @@ export { BadgeSize, BadgeVariant, badgeVariants } from '../badge/index.cjs';
|
|
|
5
5
|
interface BadgeProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
6
6
|
variant?: BadgeVariant;
|
|
7
7
|
size?: BadgeSize;
|
|
8
|
+
/** Merge the badge's classes/props onto the single child element instead of
|
|
9
|
+
* rendering a `<div>` (Radix-style `asChild`) — e.g.
|
|
10
|
+
* `<Badge asChild><a href="/x">…</a></Badge>` for a linked badge. Expects
|
|
11
|
+
* exactly one React element child. */
|
|
12
|
+
asChild?: boolean;
|
|
8
13
|
}
|
|
9
14
|
/**
|
|
10
15
|
* Badge component — renders a styled badge with variant and size support.
|
|
@@ -5,6 +5,11 @@ export { BadgeSize, BadgeVariant, badgeVariants } from '../badge/index.js';
|
|
|
5
5
|
interface BadgeProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
6
6
|
variant?: BadgeVariant;
|
|
7
7
|
size?: BadgeSize;
|
|
8
|
+
/** Merge the badge's classes/props onto the single child element instead of
|
|
9
|
+
* rendering a `<div>` (Radix-style `asChild`) — e.g.
|
|
10
|
+
* `<Badge asChild><a href="/x">…</a></Badge>` for a linked badge. Expects
|
|
11
|
+
* exactly one React element child. */
|
|
12
|
+
asChild?: boolean;
|
|
8
13
|
}
|
|
9
14
|
/**
|
|
10
15
|
* Badge component — renders a styled badge with variant and size support.
|
|
@@ -2,6 +2,10 @@ import * as React from 'react';
|
|
|
2
2
|
|
|
3
3
|
interface CalloutProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
4
|
variant?: 'default' | 'destructive' | 'success' | 'warning' | 'info';
|
|
5
|
+
/** Merge the callout's classes/props onto the single child element instead
|
|
6
|
+
* of rendering a `<div>` (Radix-style `asChild`). Expects exactly one React
|
|
7
|
+
* element child. */
|
|
8
|
+
asChild?: boolean;
|
|
5
9
|
}
|
|
6
10
|
declare const Callout: React.ForwardRefExoticComponent<CalloutProps & React.RefAttributes<HTMLDivElement>>;
|
|
7
11
|
declare const CalloutIcon: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -2,6 +2,10 @@ import * as React from 'react';
|
|
|
2
2
|
|
|
3
3
|
interface CalloutProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
4
|
variant?: 'default' | 'destructive' | 'success' | 'warning' | 'info';
|
|
5
|
+
/** Merge the callout's classes/props onto the single child element instead
|
|
6
|
+
* of rendering a `<div>` (Radix-style `asChild`). Expects exactly one React
|
|
7
|
+
* element child. */
|
|
8
|
+
asChild?: boolean;
|
|
5
9
|
}
|
|
6
10
|
declare const Callout: React.ForwardRefExoticComponent<CalloutProps & React.RefAttributes<HTMLDivElement>>;
|
|
7
11
|
declare const CalloutIcon: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
export { CardAPI, CardProps, cardContentVariants, cardDescriptionVariants, cardFooterVariants, cardHeaderVariants, cardTitleVariants, cardTokens, cardVariants } from '../card/index.cjs';
|
|
3
3
|
|
|
4
|
+
interface CardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
/** Merge the card's classes/props onto the single child element instead of
|
|
6
|
+
* rendering a `<div>` (Radix-style `asChild`) — e.g.
|
|
7
|
+
* `<Card asChild><a href="/x">…</a></Card>` for a clickable card. Expects
|
|
8
|
+
* exactly one React element child. */
|
|
9
|
+
asChild?: boolean;
|
|
10
|
+
}
|
|
4
11
|
/**
|
|
5
12
|
* Card -- a container with rounded corners, border, and shadow.
|
|
6
13
|
*/
|
|
7
|
-
declare const Card: React.ForwardRefExoticComponent<
|
|
14
|
+
declare const Card: React.ForwardRefExoticComponent<CardProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
15
|
/**
|
|
9
16
|
* CardHeader -- top section of a card, typically contains title and description.
|
|
10
17
|
*/
|
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
export { CardAPI, CardProps, cardContentVariants, cardDescriptionVariants, cardFooterVariants, cardHeaderVariants, cardTitleVariants, cardTokens, cardVariants } from '../card/index.js';
|
|
3
3
|
|
|
4
|
+
interface CardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
/** Merge the card's classes/props onto the single child element instead of
|
|
6
|
+
* rendering a `<div>` (Radix-style `asChild`) — e.g.
|
|
7
|
+
* `<Card asChild><a href="/x">…</a></Card>` for a clickable card. Expects
|
|
8
|
+
* exactly one React element child. */
|
|
9
|
+
asChild?: boolean;
|
|
10
|
+
}
|
|
4
11
|
/**
|
|
5
12
|
* Card -- a container with rounded corners, border, and shadow.
|
|
6
13
|
*/
|
|
7
|
-
declare const Card: React.ForwardRefExoticComponent<
|
|
14
|
+
declare const Card: React.ForwardRefExoticComponent<CardProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
15
|
/**
|
|
9
16
|
* CardHeader -- top section of a card, typically contains title and description.
|
|
10
17
|
*/
|
|
@@ -16,9 +16,6 @@ interface CollapsibleProps {
|
|
|
16
16
|
className?: string;
|
|
17
17
|
}
|
|
18
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
19
|
interface CollapsibleTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
23
20
|
}
|
|
24
21
|
declare const CollapsibleTrigger: React.ForwardRefExoticComponent<CollapsibleTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -16,9 +16,6 @@ interface CollapsibleProps {
|
|
|
16
16
|
className?: string;
|
|
17
17
|
}
|
|
18
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
19
|
interface CollapsibleTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
23
20
|
}
|
|
24
21
|
declare const CollapsibleTrigger: React.ForwardRefExoticComponent<CollapsibleTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -61,9 +61,6 @@ interface ComboboxProps {
|
|
|
61
61
|
* <ComboboxItem> children inside <ComboboxList> for full control.
|
|
62
62
|
*/
|
|
63
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
64
|
interface ComboboxTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
68
65
|
size?: 'sm' | 'default' | 'lg';
|
|
69
66
|
placeholder?: string;
|
|
@@ -61,9 +61,6 @@ interface ComboboxProps {
|
|
|
61
61
|
* <ComboboxItem> children inside <ComboboxList> for full control.
|
|
62
62
|
*/
|
|
63
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
64
|
interface ComboboxTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
68
65
|
size?: 'sm' | 'default' | 'lg';
|
|
69
66
|
placeholder?: string;
|
|
@@ -22,9 +22,6 @@ interface CommandProps {
|
|
|
22
22
|
children?: React.ReactNode;
|
|
23
23
|
}
|
|
24
24
|
declare function Command({ open, onOpenChange, filter, className, children, }: CommandProps): React.FunctionComponentElement<React.ProviderProps<CommandContextValue | null>>;
|
|
25
|
-
declare namespace Command {
|
|
26
|
-
var displayName: string;
|
|
27
|
-
}
|
|
28
25
|
interface CommandInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
29
26
|
}
|
|
30
27
|
declare const CommandInput: React.ForwardRefExoticComponent<CommandInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -22,9 +22,6 @@ interface CommandProps {
|
|
|
22
22
|
children?: React.ReactNode;
|
|
23
23
|
}
|
|
24
24
|
declare function Command({ open, onOpenChange, filter, className, children, }: CommandProps): React.FunctionComponentElement<React.ProviderProps<CommandContextValue | null>>;
|
|
25
|
-
declare namespace Command {
|
|
26
|
-
var displayName: string;
|
|
27
|
-
}
|
|
28
25
|
interface CommandInputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
29
26
|
}
|
|
30
27
|
declare const CommandInput: React.ForwardRefExoticComponent<CommandInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -15,8 +15,5 @@ interface DataTableProps<T = Record<string, unknown>> {
|
|
|
15
15
|
declare function DataTable<T = Record<string, unknown>>({ columns, data, sortBy: controlledSortBy, sortDir: controlledSortDir, onSort, filters: controlledFilters, className, emptyMessage, }: DataTableProps<T>): React.DetailedReactHTMLElement<{
|
|
16
16
|
className: string;
|
|
17
17
|
}, HTMLElement>;
|
|
18
|
-
declare namespace DataTable {
|
|
19
|
-
var displayName: string;
|
|
20
|
-
}
|
|
21
18
|
|
|
22
19
|
export { DataTable, type DataTableProps };
|
|
@@ -15,8 +15,5 @@ interface DataTableProps<T = Record<string, unknown>> {
|
|
|
15
15
|
declare function DataTable<T = Record<string, unknown>>({ columns, data, sortBy: controlledSortBy, sortDir: controlledSortDir, onSort, filters: controlledFilters, className, emptyMessage, }: DataTableProps<T>): React.DetailedReactHTMLElement<{
|
|
16
16
|
className: string;
|
|
17
17
|
}, HTMLElement>;
|
|
18
|
-
declare namespace DataTable {
|
|
19
|
-
var displayName: string;
|
|
20
|
-
}
|
|
21
18
|
|
|
22
19
|
export { DataTable, type DataTableProps };
|
|
@@ -17,9 +17,6 @@ interface DialogProps {
|
|
|
17
17
|
children?: React.ReactNode;
|
|
18
18
|
}
|
|
19
19
|
declare function Dialog({ open: controlledOpen, defaultOpen, onOpenChange, modal, children, }: DialogProps): React.FunctionComponentElement<React.ProviderProps<DialogContextValue | null>>;
|
|
20
|
-
declare namespace Dialog {
|
|
21
|
-
var displayName: string;
|
|
22
|
-
}
|
|
23
20
|
interface DialogTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
24
21
|
asChild?: boolean;
|
|
25
22
|
}
|
|
@@ -17,9 +17,6 @@ interface DialogProps {
|
|
|
17
17
|
children?: React.ReactNode;
|
|
18
18
|
}
|
|
19
19
|
declare function Dialog({ open: controlledOpen, defaultOpen, onOpenChange, modal, children, }: DialogProps): React.FunctionComponentElement<React.ProviderProps<DialogContextValue | null>>;
|
|
20
|
-
declare namespace Dialog {
|
|
21
|
-
var displayName: string;
|
|
22
|
-
}
|
|
23
20
|
interface DialogTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
24
21
|
asChild?: boolean;
|
|
25
22
|
}
|
|
@@ -13,9 +13,6 @@ interface DropdownMenuProps {
|
|
|
13
13
|
children?: React.ReactNode;
|
|
14
14
|
}
|
|
15
15
|
declare function DropdownMenu({ open: controlledOpen, defaultOpen, onOpenChange, children, }: DropdownMenuProps): React.FunctionComponentElement<React.ProviderProps<DropdownMenuContextValue | null>>;
|
|
16
|
-
declare namespace DropdownMenu {
|
|
17
|
-
var displayName: string;
|
|
18
|
-
}
|
|
19
16
|
interface DropdownMenuTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
20
17
|
/** Merge the trigger's props/behavior onto the child element instead of
|
|
21
18
|
* rendering a `<button>` around it (Radix-style `asChild`). Use it with
|
|
@@ -13,9 +13,6 @@ interface DropdownMenuProps {
|
|
|
13
13
|
children?: React.ReactNode;
|
|
14
14
|
}
|
|
15
15
|
declare function DropdownMenu({ open: controlledOpen, defaultOpen, onOpenChange, children, }: DropdownMenuProps): React.FunctionComponentElement<React.ProviderProps<DropdownMenuContextValue | null>>;
|
|
16
|
-
declare namespace DropdownMenu {
|
|
17
|
-
var displayName: string;
|
|
18
|
-
}
|
|
19
16
|
interface DropdownMenuTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
20
17
|
/** Merge the trigger's props/behavior onto the child element instead of
|
|
21
18
|
* rendering a `<button>` around it (Radix-style `asChild`). Use it with
|
|
@@ -15,9 +15,6 @@ interface FeedbackDialogProps {
|
|
|
15
15
|
declare function FeedbackDialog({ open: controlledOpen, defaultOpen, onOpenChange, onSubmit, type, className, children, }: FeedbackDialogProps): React.FunctionComponentElement<{
|
|
16
16
|
children?: React.ReactNode | undefined;
|
|
17
17
|
}>;
|
|
18
|
-
declare namespace FeedbackDialog {
|
|
19
|
-
var displayName: string;
|
|
20
|
-
}
|
|
21
18
|
interface FeedbackButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
22
19
|
children?: React.ReactNode;
|
|
23
20
|
}
|
|
@@ -15,9 +15,6 @@ interface FeedbackDialogProps {
|
|
|
15
15
|
declare function FeedbackDialog({ open: controlledOpen, defaultOpen, onOpenChange, onSubmit, type, className, children, }: FeedbackDialogProps): React.FunctionComponentElement<{
|
|
16
16
|
children?: React.ReactNode | undefined;
|
|
17
17
|
}>;
|
|
18
|
-
declare namespace FeedbackDialog {
|
|
19
|
-
var displayName: string;
|
|
20
|
-
}
|
|
21
18
|
interface FeedbackButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
22
19
|
children?: React.ReactNode;
|
|
23
20
|
}
|
|
@@ -3,6 +3,7 @@ import * as react_hook_form from 'react-hook-form';
|
|
|
3
3
|
import { FieldValues, FieldPath, ControllerProps } from 'react-hook-form';
|
|
4
4
|
export { Controller, FieldPath, FieldValues, FormProvider, SubmitErrorHandler, SubmitHandler, UseFormProps, UseFormReturn, useController, useForm, useFormContext, useFormState, useWatch } from 'react-hook-form';
|
|
5
5
|
import * as React from 'react';
|
|
6
|
+
export { Slot, SlotProps } from '../react-slot/index.cjs';
|
|
6
7
|
|
|
7
8
|
/**
|
|
8
9
|
* Form — RHF FormProvider wrapper.
|
|
@@ -62,24 +63,4 @@ interface FormMessageProps extends React.HTMLAttributes<HTMLParagraphElement> {
|
|
|
62
63
|
}
|
|
63
64
|
declare const FormMessage: React.ForwardRefExoticComponent<FormMessageProps & React.RefAttributes<HTMLParagraphElement>>;
|
|
64
65
|
|
|
65
|
-
|
|
66
|
-
* Minimal Slot implementation.
|
|
67
|
-
*
|
|
68
|
-
* Why not @radix-ui/react-slot? Per package policy, no external runtime deps
|
|
69
|
-
* are allowed in @refraction-ui/* packages. This Slot does the small amount
|
|
70
|
-
* of work we actually need:
|
|
71
|
-
* - Forwards a single React child
|
|
72
|
-
* - Merges incoming props onto that child (event handlers are chained,
|
|
73
|
-
* className is concatenated, style is shallow-merged)
|
|
74
|
-
* - Merges refs (callback refs and ref objects)
|
|
75
|
-
*
|
|
76
|
-
* It is intentionally simpler than Radix Slot — no <Slottable/>, no asChild
|
|
77
|
-
* recursion. FormControl renders exactly one child input/textarea/etc., which
|
|
78
|
-
* is all we need here.
|
|
79
|
-
*/
|
|
80
|
-
interface SlotProps extends React.HTMLAttributes<HTMLElement> {
|
|
81
|
-
children?: React.ReactNode;
|
|
82
|
-
}
|
|
83
|
-
declare const Slot: React.ForwardRefExoticComponent<SlotProps & React.RefAttributes<HTMLElement>>;
|
|
84
|
-
|
|
85
|
-
export { Form, FormControl, type FormControlProps, FormDescription, type FormDescriptionProps, FormField, FormItem, type FormItemProps, FormLabel, type FormLabelProps, FormMessage, type FormMessageProps, Slot, type SlotProps, formItemVariants, formLabelVariants, useFormField };
|
|
66
|
+
export { Form, FormControl, type FormControlProps, FormDescription, type FormDescriptionProps, FormField, FormItem, type FormItemProps, FormLabel, type FormLabelProps, FormMessage, type FormMessageProps, formItemVariants, formLabelVariants, useFormField };
|
|
@@ -3,6 +3,7 @@ import * as react_hook_form from 'react-hook-form';
|
|
|
3
3
|
import { FieldValues, FieldPath, ControllerProps } from 'react-hook-form';
|
|
4
4
|
export { Controller, FieldPath, FieldValues, FormProvider, SubmitErrorHandler, SubmitHandler, UseFormProps, UseFormReturn, useController, useForm, useFormContext, useFormState, useWatch } from 'react-hook-form';
|
|
5
5
|
import * as React from 'react';
|
|
6
|
+
export { Slot, SlotProps } from '../react-slot/index.js';
|
|
6
7
|
|
|
7
8
|
/**
|
|
8
9
|
* Form — RHF FormProvider wrapper.
|
|
@@ -62,24 +63,4 @@ interface FormMessageProps extends React.HTMLAttributes<HTMLParagraphElement> {
|
|
|
62
63
|
}
|
|
63
64
|
declare const FormMessage: React.ForwardRefExoticComponent<FormMessageProps & React.RefAttributes<HTMLParagraphElement>>;
|
|
64
65
|
|
|
65
|
-
|
|
66
|
-
* Minimal Slot implementation.
|
|
67
|
-
*
|
|
68
|
-
* Why not @radix-ui/react-slot? Per package policy, no external runtime deps
|
|
69
|
-
* are allowed in @refraction-ui/* packages. This Slot does the small amount
|
|
70
|
-
* of work we actually need:
|
|
71
|
-
* - Forwards a single React child
|
|
72
|
-
* - Merges incoming props onto that child (event handlers are chained,
|
|
73
|
-
* className is concatenated, style is shallow-merged)
|
|
74
|
-
* - Merges refs (callback refs and ref objects)
|
|
75
|
-
*
|
|
76
|
-
* It is intentionally simpler than Radix Slot — no <Slottable/>, no asChild
|
|
77
|
-
* recursion. FormControl renders exactly one child input/textarea/etc., which
|
|
78
|
-
* is all we need here.
|
|
79
|
-
*/
|
|
80
|
-
interface SlotProps extends React.HTMLAttributes<HTMLElement> {
|
|
81
|
-
children?: React.ReactNode;
|
|
82
|
-
}
|
|
83
|
-
declare const Slot: React.ForwardRefExoticComponent<SlotProps & React.RefAttributes<HTMLElement>>;
|
|
84
|
-
|
|
85
|
-
export { Form, FormControl, type FormControlProps, FormDescription, type FormDescriptionProps, FormField, FormItem, type FormItemProps, FormLabel, type FormLabelProps, FormMessage, type FormMessageProps, Slot, type SlotProps, formItemVariants, formLabelVariants, useFormField };
|
|
66
|
+
export { Form, FormControl, type FormControlProps, FormDescription, type FormDescriptionProps, FormField, FormItem, type FormItemProps, FormLabel, type FormLabelProps, FormMessage, type FormMessageProps, formItemVariants, formLabelVariants, useFormField };
|
|
@@ -37,9 +37,6 @@ interface KeyboardShortcutProps {
|
|
|
37
37
|
* Attaches a global keydown listener and calls onTrigger when the combo matches.
|
|
38
38
|
*/
|
|
39
39
|
declare function KeyboardShortcut({ keys, onTrigger, enabled, preventDefault, }: KeyboardShortcutProps): null;
|
|
40
|
-
declare namespace KeyboardShortcut {
|
|
41
|
-
var displayName: string;
|
|
42
|
-
}
|
|
43
40
|
interface ShortcutBadgeProps {
|
|
44
41
|
/** Key combination to display */
|
|
45
42
|
keys: string[];
|
|
@@ -50,8 +47,5 @@ interface ShortcutBadgeProps {
|
|
|
50
47
|
declare function ShortcutBadge({ keys, platform, className }: ShortcutBadgeProps): React.DetailedReactHTMLElement<{
|
|
51
48
|
className: string;
|
|
52
49
|
}, HTMLElement>;
|
|
53
|
-
declare namespace ShortcutBadge {
|
|
54
|
-
var displayName: string;
|
|
55
|
-
}
|
|
56
50
|
|
|
57
51
|
export { KeyboardShortcut, type KeyboardShortcutProps, ShortcutBadge, type ShortcutBadgeProps, ShortcutContext, ShortcutHint, type ShortcutHintProps, ShortcutProvider, type UseShortcutOptions, useShortcut };
|
|
@@ -37,9 +37,6 @@ interface KeyboardShortcutProps {
|
|
|
37
37
|
* Attaches a global keydown listener and calls onTrigger when the combo matches.
|
|
38
38
|
*/
|
|
39
39
|
declare function KeyboardShortcut({ keys, onTrigger, enabled, preventDefault, }: KeyboardShortcutProps): null;
|
|
40
|
-
declare namespace KeyboardShortcut {
|
|
41
|
-
var displayName: string;
|
|
42
|
-
}
|
|
43
40
|
interface ShortcutBadgeProps {
|
|
44
41
|
/** Key combination to display */
|
|
45
42
|
keys: string[];
|
|
@@ -50,8 +47,5 @@ interface ShortcutBadgeProps {
|
|
|
50
47
|
declare function ShortcutBadge({ keys, platform, className }: ShortcutBadgeProps): React.DetailedReactHTMLElement<{
|
|
51
48
|
className: string;
|
|
52
49
|
}, HTMLElement>;
|
|
53
|
-
declare namespace ShortcutBadge {
|
|
54
|
-
var displayName: string;
|
|
55
|
-
}
|
|
56
50
|
|
|
57
51
|
export { KeyboardShortcut, type KeyboardShortcutProps, ShortcutBadge, type ShortcutBadgeProps, ShortcutContext, ShortcutHint, type ShortcutHintProps, ShortcutProvider, type UseShortcutOptions, useShortcut };
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
interface LinkCardProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
4
|
+
/** Merge the link card's classes/props onto the single child element
|
|
5
|
+
* instead of rendering an `<a>` (Radix-style `asChild`) — e.g. compose with
|
|
6
|
+
* a router `<Link>`. Expects exactly one React element child. */
|
|
7
|
+
asChild?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const LinkCard: React.ForwardRefExoticComponent<LinkCardProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
4
10
|
|
|
5
|
-
export { LinkCard };
|
|
11
|
+
export { LinkCard, type LinkCardProps };
|
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
interface LinkCardProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
4
|
+
/** Merge the link card's classes/props onto the single child element
|
|
5
|
+
* instead of rendering an `<a>` (Radix-style `asChild`) — e.g. compose with
|
|
6
|
+
* a router `<Link>`. Expects exactly one React element child. */
|
|
7
|
+
asChild?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const LinkCard: React.ForwardRefExoticComponent<LinkCardProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
4
10
|
|
|
5
|
-
export { LinkCard };
|
|
11
|
+
export { LinkCard, type LinkCardProps };
|
|
@@ -16,9 +16,6 @@ interface PopoverProps {
|
|
|
16
16
|
children: React.ReactNode;
|
|
17
17
|
}
|
|
18
18
|
declare function Popover({ open: controlledOpen, defaultOpen, onOpenChange, placement, children }: PopoverProps): React.FunctionComponentElement<React.ProviderProps<PopoverContextValue | null>>;
|
|
19
|
-
declare namespace Popover {
|
|
20
|
-
var displayName: string;
|
|
21
|
-
}
|
|
22
19
|
interface PopoverTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
23
20
|
}
|
|
24
21
|
declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -16,9 +16,6 @@ interface PopoverProps {
|
|
|
16
16
|
children: React.ReactNode;
|
|
17
17
|
}
|
|
18
18
|
declare function Popover({ open: controlledOpen, defaultOpen, onOpenChange, placement, children }: PopoverProps): React.FunctionComponentElement<React.ProviderProps<PopoverContextValue | null>>;
|
|
19
|
-
declare namespace Popover {
|
|
20
|
-
var displayName: string;
|
|
21
|
-
}
|
|
22
19
|
interface PopoverTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
23
20
|
}
|
|
24
21
|
declare const PopoverTrigger: React.ForwardRefExoticComponent<PopoverTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -26,9 +26,6 @@ interface SheetProps {
|
|
|
26
26
|
children?: React.ReactNode;
|
|
27
27
|
}
|
|
28
28
|
declare function Sheet({ open: controlledOpen, defaultOpen, onOpenChange, modal, side, children, }: SheetProps): React.FunctionComponentElement<React.ProviderProps<SheetContextValue | null>>;
|
|
29
|
-
declare namespace Sheet {
|
|
30
|
-
var displayName: string;
|
|
31
|
-
}
|
|
32
29
|
interface SheetTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
33
30
|
}
|
|
34
31
|
declare const SheetTrigger: React.ForwardRefExoticComponent<SheetTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -26,9 +26,6 @@ interface SheetProps {
|
|
|
26
26
|
children?: React.ReactNode;
|
|
27
27
|
}
|
|
28
28
|
declare function Sheet({ open: controlledOpen, defaultOpen, onOpenChange, modal, side, children, }: SheetProps): React.FunctionComponentElement<React.ProviderProps<SheetContextValue | null>>;
|
|
29
|
-
declare namespace Sheet {
|
|
30
|
-
var displayName: string;
|
|
31
|
-
}
|
|
32
29
|
interface SheetTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
33
30
|
}
|
|
34
31
|
declare const SheetTrigger: React.ForwardRefExoticComponent<SheetTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Minimal Slot implementation — the shared `asChild` primitive.
|
|
5
|
+
*
|
|
6
|
+
* Why not @radix-ui/react-slot? Per package policy, no external runtime deps
|
|
7
|
+
* are allowed in @refraction-ui/* packages. This Slot does the small amount
|
|
8
|
+
* of work we actually need:
|
|
9
|
+
* - Forwards a single React child
|
|
10
|
+
* - Merges incoming props onto that child (event handlers are chained,
|
|
11
|
+
* className is concatenated, style is shallow-merged)
|
|
12
|
+
* - Merges refs (callback refs and ref objects)
|
|
13
|
+
*
|
|
14
|
+
* It is intentionally simpler than Radix Slot — no <Slottable/>, no asChild
|
|
15
|
+
* recursion. `asChild` components render exactly one child element, which is
|
|
16
|
+
* all we need here. Non-element children (text, arrays, null) render nothing.
|
|
17
|
+
*/
|
|
18
|
+
interface SlotProps extends React.HTMLAttributes<HTMLElement> {
|
|
19
|
+
children?: React.ReactNode;
|
|
20
|
+
}
|
|
21
|
+
declare const Slot: React.ForwardRefExoticComponent<SlotProps & React.RefAttributes<HTMLElement>>;
|
|
22
|
+
|
|
23
|
+
export { Slot, type SlotProps };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Minimal Slot implementation — the shared `asChild` primitive.
|
|
5
|
+
*
|
|
6
|
+
* Why not @radix-ui/react-slot? Per package policy, no external runtime deps
|
|
7
|
+
* are allowed in @refraction-ui/* packages. This Slot does the small amount
|
|
8
|
+
* of work we actually need:
|
|
9
|
+
* - Forwards a single React child
|
|
10
|
+
* - Merges incoming props onto that child (event handlers are chained,
|
|
11
|
+
* className is concatenated, style is shallow-merged)
|
|
12
|
+
* - Merges refs (callback refs and ref objects)
|
|
13
|
+
*
|
|
14
|
+
* It is intentionally simpler than Radix Slot — no <Slottable/>, no asChild
|
|
15
|
+
* recursion. `asChild` components render exactly one child element, which is
|
|
16
|
+
* all we need here. Non-element children (text, arrays, null) render nothing.
|
|
17
|
+
*/
|
|
18
|
+
interface SlotProps extends React.HTMLAttributes<HTMLElement> {
|
|
19
|
+
children?: React.ReactNode;
|
|
20
|
+
}
|
|
21
|
+
declare const Slot: React.ForwardRefExoticComponent<SlotProps & React.RefAttributes<HTMLElement>>;
|
|
22
|
+
|
|
23
|
+
export { Slot, type SlotProps };
|
|
@@ -9,9 +9,6 @@ interface ToastProviderProps {
|
|
|
9
9
|
children?: React.ReactNode;
|
|
10
10
|
}
|
|
11
11
|
declare function ToastProvider({ children }: ToastProviderProps): React.FunctionComponentElement<React.ProviderProps<ToastContextValue | null>>;
|
|
12
|
-
declare namespace ToastProvider {
|
|
13
|
-
var displayName: string;
|
|
14
|
-
}
|
|
15
12
|
interface UseToastReturn {
|
|
16
13
|
/** Show a new toast */
|
|
17
14
|
toast: (message: string, opts?: {
|
|
@@ -9,9 +9,6 @@ interface ToastProviderProps {
|
|
|
9
9
|
children?: React.ReactNode;
|
|
10
10
|
}
|
|
11
11
|
declare function ToastProvider({ children }: ToastProviderProps): React.FunctionComponentElement<React.ProviderProps<ToastContextValue | null>>;
|
|
12
|
-
declare namespace ToastProvider {
|
|
13
|
-
var displayName: string;
|
|
14
|
-
}
|
|
15
12
|
interface UseToastReturn {
|
|
16
13
|
/** Show a new toast */
|
|
17
14
|
toast: (message: string, opts?: {
|
|
@@ -19,9 +19,6 @@ interface TooltipProps {
|
|
|
19
19
|
children: React.ReactNode;
|
|
20
20
|
}
|
|
21
21
|
declare function Tooltip({ open: controlledOpen, defaultOpen, onOpenChange, placement, delayDuration, children, }: TooltipProps): React.FunctionComponentElement<React.ProviderProps<TooltipContextValue | null>>;
|
|
22
|
-
declare namespace Tooltip {
|
|
23
|
-
var displayName: string;
|
|
24
|
-
}
|
|
25
22
|
interface TooltipTriggerProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
26
23
|
}
|
|
27
24
|
declare const TooltipTrigger: React.ForwardRefExoticComponent<TooltipTriggerProps & React.RefAttributes<HTMLSpanElement>>;
|