@keboola/design 4.2.1 → 4.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +1 -1
- package/COMPONENT-API.md +166 -1
- package/dist/editors.cjs +3 -0
- package/dist/editors.cjs.map +1 -1
- package/dist/editors.js +3 -0
- package/dist/editors.js.map +1 -1
- package/dist/index.cjs +239 -196
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +478 -442
- package/dist/index.d.ts +478 -442
- package/dist/index.js +239 -197
- package/dist/index.js.map +1 -1
- package/dist/markdown-editor.cjs +3 -0
- package/dist/markdown-editor.cjs.map +1 -1
- package/dist/markdown-editor.js +3 -0
- package/dist/markdown-editor.js.map +1 -1
- package/dist/mermaid.cjs +3 -0
- package/dist/mermaid.cjs.map +1 -1
- package/dist/mermaid.js +3 -0
- package/dist/mermaid.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/testing.cjs +75 -2
- package/dist/testing.cjs.map +1 -1
- package/dist/testing.js +75 -2
- package/dist/testing.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -36,6 +36,8 @@ import * as _base_ui_react_separator from '@base-ui/react/separator';
|
|
|
36
36
|
import * as _base_ui_react_combobox from '@base-ui/react/combobox';
|
|
37
37
|
import { Combobox as Combobox$1 } from '@base-ui/react/combobox';
|
|
38
38
|
import * as _base_ui_react_types from '@base-ui/react/types';
|
|
39
|
+
import { Brand } from '@keboola/brand-registry';
|
|
40
|
+
export { Brand, brandSchema, brands, exampleCustomer, getBrand, keboola, keboolaLegacy } from '@keboola/brand-registry';
|
|
39
41
|
import { OTPInput, RenderProps } from 'input-otp';
|
|
40
42
|
export { SlotProps as InputOtpRenderSlotProps, REGEXP_ONLY_CHARS, REGEXP_ONLY_DIGITS, REGEXP_ONLY_DIGITS_AND_CHARS } from 'input-otp';
|
|
41
43
|
import { Accept, FileRejection } from 'react-dropzone';
|
|
@@ -53,8 +55,6 @@ import * as _tanstack_react_form from '@tanstack/react-form';
|
|
|
53
55
|
import { AnyFormApi } from '@tanstack/react-form';
|
|
54
56
|
import { ClassValue } from 'clsx';
|
|
55
57
|
export { Slot } from '@radix-ui/react-slot';
|
|
56
|
-
import { Brand } from '@keboola/brand-registry';
|
|
57
|
-
export { Brand, brandSchema, brands, exampleCustomer, getBrand, keboola, keboolaLegacy } from '@keboola/brand-registry';
|
|
58
58
|
|
|
59
59
|
declare const variants$3: (props?: ({
|
|
60
60
|
block?: boolean | null | undefined;
|
|
@@ -74,7 +74,7 @@ declare const argoVariants: (props?: ({
|
|
|
74
74
|
* for height (including `icon-*` sizes when rendering icon-only). Icons are
|
|
75
75
|
* composed as children — `<Button><Trash2 className="tw-size-4" /> Delete</Button>`.
|
|
76
76
|
*/
|
|
77
|
-
type Props$
|
|
77
|
+
type Props$1Q = {
|
|
78
78
|
/** Replaces the leading content with a spinner and disables the button visually. The caller still controls `disabled`. */
|
|
79
79
|
isLoading?: boolean;
|
|
80
80
|
/** Render as a Radix `Slot` so the parent JSX (e.g. a `react-router` `<Link>`) becomes the button element. */
|
|
@@ -93,7 +93,7 @@ type Props$1P = {
|
|
|
93
93
|
* @see RECIPES.md#disabled-button-tooltip — for the disabled-button + tooltip pattern
|
|
94
94
|
* @see RECIPES.md#confirm-dialog — for destructive-action confirmation
|
|
95
95
|
*/
|
|
96
|
-
declare const Button: ({ ref, children, disabled, className, type, isLoading, asChild, onClick, variant, size, block, ...buttonProps }: Props$
|
|
96
|
+
declare const Button: ({ ref, children, disabled, className, type, isLoading, asChild, onClick, variant, size, block, ...buttonProps }: Props$1Q & {
|
|
97
97
|
ref?: Ref<ElementRef<"button">>;
|
|
98
98
|
}) => react_jsx_runtime.JSX.Element;
|
|
99
99
|
|
|
@@ -101,10 +101,10 @@ declare const buttonInlineVariants: (props?: ({
|
|
|
101
101
|
color?: "dark" | "muted" | "link" | "danger" | "custom" | null | undefined;
|
|
102
102
|
variant?: "link" | "custom" | "link-reverse" | null | undefined;
|
|
103
103
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
104
|
-
type Props$
|
|
104
|
+
type Props$1P = ComponentProps<'button'> & VariantProps<typeof buttonInlineVariants> & {
|
|
105
105
|
asChild?: boolean;
|
|
106
106
|
};
|
|
107
|
-
declare const ButtonInline: ({ ref, children, className, variant, color, type, asChild, ...buttonProps }: Props$
|
|
107
|
+
declare const ButtonInline: ({ ref, children, className, variant, color, type, asChild, ...buttonProps }: Props$1P & {
|
|
108
108
|
ref?: Ref<ElementRef<"button">>;
|
|
109
109
|
}) => react_jsx_runtime.JSX.Element;
|
|
110
110
|
|
|
@@ -112,18 +112,18 @@ declare const buttonGroupVariant: (props?: ({
|
|
|
112
112
|
variant?: "inline" | "block" | null | undefined;
|
|
113
113
|
space?: "compact" | "small" | "medium" | "large" | "extra-small" | "little-small" | null | undefined;
|
|
114
114
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
115
|
-
type Props$
|
|
115
|
+
type Props$1O = {
|
|
116
116
|
children: ReactNode;
|
|
117
117
|
className?: string;
|
|
118
118
|
} & VariantProps<typeof buttonGroupVariant> & ComponentProps<'div'>;
|
|
119
|
-
declare const ButtonGroup: ({ ref, children, space, className, variant, ...rest }: Props$
|
|
119
|
+
declare const ButtonGroup: ({ ref, children, space, className, variant, ...rest }: Props$1O & {
|
|
120
120
|
ref?: Ref<ElementRef<"div">>;
|
|
121
121
|
}) => react_jsx_runtime.JSX.Element;
|
|
122
122
|
|
|
123
123
|
type Variant$8 = ComponentProps<typeof Button>['variant'];
|
|
124
124
|
type Size = NonNullable<ComponentProps<typeof Button>['size']>;
|
|
125
125
|
type SpitButtonSize = Exclude<Size, 'icon' | 'icon-lg' | 'icon-sm' | 'icon-xs' | 'icon-2xs' | 'icon-3xs'>;
|
|
126
|
-
type Props$
|
|
126
|
+
type Props$1N = {
|
|
127
127
|
actions?: ReactNode;
|
|
128
128
|
isActionsOpen?: boolean;
|
|
129
129
|
onActionsOpenChange?: (open: boolean) => void;
|
|
@@ -132,7 +132,7 @@ type Props$1M = {
|
|
|
132
132
|
variant?: Exclude<Variant$8, 'inline' | 'invisible'>;
|
|
133
133
|
size?: SpitButtonSize;
|
|
134
134
|
} & Omit<ComponentProps<typeof Button>, 'variant' | 'size' | 'icon'>;
|
|
135
|
-
declare const SplitButton: (({ ref, disabled, actions, variant, size, isActionsOpen, onActionsOpenChange, icon, children, ...rest }: Props$
|
|
135
|
+
declare const SplitButton: (({ ref, disabled, actions, variant, size, isActionsOpen, onActionsOpenChange, icon, children, ...rest }: Props$1N & {
|
|
136
136
|
ref?: Ref<ElementRef<"button">>;
|
|
137
137
|
}) => react_jsx_runtime.JSX.Element) & {
|
|
138
138
|
Action: ({ ref, className, asModalTrigger, onSelect, onPointerLeave, onPointerMove, children, asChild, icon, iconClassName, isLoading, ...props }: (_radix_ui_react_dropdown_menu.DropdownMenuItemProps & react.RefAttributes<HTMLDivElement> & {
|
|
@@ -146,11 +146,11 @@ declare const SplitButton: (({ ref, disabled, actions, variant, size, isActionsO
|
|
|
146
146
|
Actions: react.ForwardRefExoticComponent<_radix_ui_react_dropdown_menu.DropdownMenuGroupProps & react.RefAttributes<HTMLDivElement>>;
|
|
147
147
|
};
|
|
148
148
|
|
|
149
|
-
type Props$
|
|
149
|
+
type Props$1M = {
|
|
150
150
|
className?: string;
|
|
151
151
|
} & PropsWithChildren;
|
|
152
152
|
declare const MultiActionButtonGroup: {
|
|
153
|
-
({ children, className }: Props$
|
|
153
|
+
({ children, className }: Props$1M): react_jsx_runtime.JSX.Element;
|
|
154
154
|
Button: ({ disabled, icon, isLoading, label, onClick, tooltipContent, tooltipVariant, "data-testid": dataTestId, }: {
|
|
155
155
|
disabled?: boolean;
|
|
156
156
|
icon: react.ReactNode;
|
|
@@ -168,11 +168,11 @@ declare const toggleVariants: (props?: ({
|
|
|
168
168
|
size?: "small" | "medium" | "large" | null | undefined;
|
|
169
169
|
iconOnly?: boolean | null | undefined;
|
|
170
170
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
171
|
-
type Props$
|
|
171
|
+
type Props$1L = {
|
|
172
172
|
icon?: ReactNode;
|
|
173
173
|
badge?: ReactNode;
|
|
174
174
|
} & ComponentProps<typeof Root> & Omit<VariantProps<typeof toggleVariants>, 'iconOnly'>;
|
|
175
|
-
declare const Toggle: ({ ref, className, variant, size, children, icon, badge, disabled, ...props }: Props$
|
|
175
|
+
declare const Toggle: ({ ref, className, variant, size, children, icon, badge, disabled, ...props }: Props$1L & {
|
|
176
176
|
ref?: Ref<ElementRef<"button">>;
|
|
177
177
|
}) => react_jsx_runtime.JSX.Element;
|
|
178
178
|
|
|
@@ -193,11 +193,11 @@ declare const ToggleGroup: (({ ref, className, size, ...props }: RootProps$5 & {
|
|
|
193
193
|
declare const tooltipVariants: (props?: ({
|
|
194
194
|
variant?: "action" | "explanatory" | null | undefined;
|
|
195
195
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
196
|
-
type Props$
|
|
196
|
+
type Props$1K = {
|
|
197
197
|
keepOpenOnPointerDownOutside?: boolean;
|
|
198
198
|
placement?: ComponentProps<typeof Content>['side'];
|
|
199
199
|
} & Omit<ComponentProps<typeof Content>, 'side'> & VariantProps<typeof tooltipVariants>;
|
|
200
|
-
declare const TooltipContent: ({ className, variant, keepOpenOnPointerDownOutside, children, onPointerDownOutside, sideOffset, collisionPadding, hideWhenDetached, placement, ...rest }: Props$
|
|
200
|
+
declare const TooltipContent: ({ className, variant, keepOpenOnPointerDownOutside, children, onPointerDownOutside, sideOffset, collisionPadding, hideWhenDetached, placement, ...rest }: Props$1K) => react_jsx_runtime.JSX.Element;
|
|
201
201
|
|
|
202
202
|
type TriggerProps$1 = {
|
|
203
203
|
triggerAsChild?: boolean;
|
|
@@ -206,7 +206,7 @@ type TriggerProps$1 = {
|
|
|
206
206
|
* Props for `Tooltip`. `tooltip` is the popup content; `children` is the trigger element.
|
|
207
207
|
* `variant` auto-resolves to `"explanatory"` for strings >30 chars, else `"action"`.
|
|
208
208
|
*/
|
|
209
|
-
type Props$
|
|
209
|
+
type Props$1J = {
|
|
210
210
|
/** Keep the tooltip visible when the user clicks the trigger (useful for click-to-copy feedback). */
|
|
211
211
|
keepOpenOnTriggerClick?: boolean;
|
|
212
212
|
/** Content rendered inside the tooltip. Plain text only — no interactive elements (use `HoverCard` or `Popover` for that). */
|
|
@@ -236,7 +236,7 @@ declare const TooltipProvider: react.FC<_radix_ui_react_tooltip.TooltipProviderP
|
|
|
236
236
|
* @see RECIPES.md#disabled-button-tooltip — for the disabled-button + tooltip pattern
|
|
237
237
|
*/
|
|
238
238
|
declare const Tooltip: {
|
|
239
|
-
({ tooltip, children, className, keepOpenOnTriggerClick, variant, placement, forceHide, forceShow, triggerAsChild, }: Props$
|
|
239
|
+
({ tooltip, children, className, keepOpenOnTriggerClick, variant, placement, forceHide, forceShow, triggerAsChild, }: Props$1J): react_jsx_runtime.JSX.Element;
|
|
240
240
|
Root: ({ children, delayDuration, ...rest }: _radix_ui_react_tooltip.TooltipProps) => react_jsx_runtime.JSX.Element;
|
|
241
241
|
Content: ({ className, variant, keepOpenOnPointerDownOutside, children, onPointerDownOutside, sideOffset, collisionPadding, hideWhenDetached, placement, ...rest }: {
|
|
242
242
|
keepOpenOnPointerDownOutside?: boolean;
|
|
@@ -251,33 +251,33 @@ declare const Tooltip: {
|
|
|
251
251
|
}) => react_jsx_runtime.JSX.Element;
|
|
252
252
|
};
|
|
253
253
|
|
|
254
|
-
type Props$
|
|
255
|
-
tooltip?: Props$
|
|
256
|
-
tooltipPlacement?: Props$
|
|
257
|
-
tooltipVariant?: Props$
|
|
258
|
-
asChild?: Props$
|
|
254
|
+
type Props$1I = {
|
|
255
|
+
tooltip?: Props$1J['tooltip'];
|
|
256
|
+
tooltipPlacement?: Props$1J['placement'];
|
|
257
|
+
tooltipVariant?: Props$1J['variant'];
|
|
258
|
+
asChild?: Props$1J['triggerAsChild'];
|
|
259
259
|
text?: string | (() => string);
|
|
260
260
|
} & ComponentProps<'button'>;
|
|
261
|
-
declare const Clipboard: ({ ref, text: textProp, children, tooltip, tooltipPlacement, tooltipVariant: tooltipVariantProp, asChild, onClick, className, ...restButtonProps }: Props$
|
|
261
|
+
declare const Clipboard: ({ ref, text: textProp, children, tooltip, tooltipPlacement, tooltipVariant: tooltipVariantProp, asChild, onClick, className, ...restButtonProps }: Props$1I & {
|
|
262
262
|
ref?: Ref<ElementRef<"button">>;
|
|
263
263
|
}) => react_jsx_runtime.JSX.Element;
|
|
264
264
|
|
|
265
265
|
type ClipboardProps$1 = Pick<ComponentProps<typeof Clipboard>, 'text' | 'tooltip' | 'tooltipPlacement' | 'tooltipVariant'>;
|
|
266
266
|
type ButtonProps$2 = Omit<ComponentProps<typeof Button>, 'disabled' | 'icon'>;
|
|
267
|
-
type Props$
|
|
267
|
+
type Props$1H = ClipboardProps$1 & ButtonProps$2 & {
|
|
268
268
|
icon?: ReactNode;
|
|
269
269
|
};
|
|
270
|
-
declare const ClipboardButton: ({ text, tooltip, tooltipPlacement, tooltipVariant, icon, variant, children, ...rest }: Props$
|
|
270
|
+
declare const ClipboardButton: ({ text, tooltip, tooltipPlacement, tooltipVariant, icon, variant, children, ...rest }: Props$1H) => react_jsx_runtime.JSX.Element;
|
|
271
271
|
|
|
272
272
|
type ClipboardProps = Pick<ComponentProps<typeof Clipboard>, 'text' | 'tooltip' | 'tooltipPlacement' | 'tooltipVariant'>;
|
|
273
273
|
type ButtonProps$1 = Omit<ComponentProps<typeof ButtonInline>, 'disabled'>;
|
|
274
|
-
type Props$
|
|
274
|
+
type Props$1G = {
|
|
275
275
|
hideIcon?: boolean;
|
|
276
276
|
} & ClipboardProps & ButtonProps$1;
|
|
277
|
-
declare const ClipboardInline: ({ text, tooltip, tooltipPlacement, tooltipVariant, children, hideIcon, ...rest }: Props$
|
|
277
|
+
declare const ClipboardInline: ({ text, tooltip, tooltipPlacement, tooltipVariant, children, hideIcon, ...rest }: Props$1G) => react_jsx_runtime.JSX.Element;
|
|
278
278
|
|
|
279
|
-
type Props$
|
|
280
|
-
declare const Link: ({ ref, children, target, rel, onClick, className, ...rest }: Props$
|
|
279
|
+
type Props$1F = ComponentProps<'a'>;
|
|
280
|
+
declare const Link: ({ ref, children, target, rel, onClick, className, ...rest }: Props$1F & {
|
|
281
281
|
ref?: Ref<ElementRef<"a">>;
|
|
282
282
|
}) => react_jsx_runtime.JSX.Element;
|
|
283
283
|
|
|
@@ -289,13 +289,13 @@ type AlertModalVariant = 'info' | 'warning' | 'danger' | 'success';
|
|
|
289
289
|
|
|
290
290
|
type ConfirmHandler = (event: MouseEvent$1<HTMLButtonElement>) => void | Promise<unknown>;
|
|
291
291
|
type CancelHandler = (event: MouseEvent$1<HTMLButtonElement>) => void;
|
|
292
|
-
type Props$
|
|
292
|
+
type Props$1E = {
|
|
293
293
|
onConfirm?: ConfirmHandler;
|
|
294
294
|
onCancel?: CancelHandler;
|
|
295
295
|
skipAsyncWait?: boolean;
|
|
296
296
|
} & ComponentProps<typeof Root$1>;
|
|
297
297
|
declare const AlertModal: {
|
|
298
|
-
({ children, onConfirm, onCancel, skipAsyncWait, open, defaultOpen, onOpenChange, ...rest }: Props$
|
|
298
|
+
({ children, onConfirm, onCancel, skipAsyncWait, open, defaultOpen, onOpenChange, ...rest }: Props$1E): react_jsx_runtime.JSX.Element;
|
|
299
299
|
Trigger: ({ ref, onClick, onKeyDown, ...props }: _radix_ui_react_alert_dialog.AlertDialogTriggerProps & react.RefAttributes<HTMLButtonElement>) => react_jsx_runtime.JSX.Element;
|
|
300
300
|
Content: ({ variant, icon, title, cancelLabel, confirmLabel: actionLabel, container, className, children, onEscapeKeyDown, ...props }: {
|
|
301
301
|
variant?: AlertModalVariant;
|
|
@@ -311,7 +311,7 @@ declare const AlertModal: {
|
|
|
311
311
|
* Props for the `Modal` root — forwarded to Radix `Dialog.Root` (controls `open`, `onOpenChange`,
|
|
312
312
|
* `defaultOpen`, `modal`).
|
|
313
313
|
*/
|
|
314
|
-
type Props$
|
|
314
|
+
type Props$1D = ComponentProps<typeof Root$2>;
|
|
315
315
|
/**
|
|
316
316
|
* Blocking dialog for confirmations, forms, and detail views. Built on Radix Dialog.
|
|
317
317
|
*
|
|
@@ -327,7 +327,7 @@ type Props$1C = ComponentProps<typeof Root$2>;
|
|
|
327
327
|
* @see RECIPES.md#confirm-dialog — for destructive-confirm dialogs
|
|
328
328
|
*/
|
|
329
329
|
declare const Modal: {
|
|
330
|
-
(props: Props$
|
|
330
|
+
(props: Props$1D): react_jsx_runtime.JSX.Element;
|
|
331
331
|
/** Radix `Dialog.Close` re-export — closes the nearest `Modal` when clicked. Use `asChild` to wrap a `Button`. */
|
|
332
332
|
Close: react.ForwardRefExoticComponent<_radix_ui_react_dialog.DialogCloseProps & react.RefAttributes<HTMLButtonElement>>;
|
|
333
333
|
/** Radix `Dialog.Trigger` re-export — opens the modal. Use `asChild` to wrap a `Button`. */
|
|
@@ -389,7 +389,7 @@ declare const FullScreenModal: (({ children, className, lockBodyScroll, onEscape
|
|
|
389
389
|
}) => react_jsx_runtime.JSX.Element;
|
|
390
390
|
};
|
|
391
391
|
|
|
392
|
-
type Props$
|
|
392
|
+
type Props$1C = PropsWithChildren<Omit<HTMLAttributes<HTMLDivElement>, 'title'> & {
|
|
393
393
|
title: ReactNode;
|
|
394
394
|
titleClassName?: string;
|
|
395
395
|
titleWrapperClassName?: string;
|
|
@@ -398,16 +398,16 @@ type Props$1B = PropsWithChildren<Omit<HTMLAttributes<HTMLDivElement>, 'title'>
|
|
|
398
398
|
onClose?: () => void;
|
|
399
399
|
showPreviousTitle?: boolean;
|
|
400
400
|
}>;
|
|
401
|
-
declare const FullScreenModalHeader: ({ title, titleClassName, titleWrapperClassName, defaultTitleStyles, isTitleWithIcon, children, onClose, className, showPreviousTitle, ...props }: Props$
|
|
401
|
+
declare const FullScreenModalHeader: ({ title, titleClassName, titleWrapperClassName, defaultTitleStyles, isTitleWithIcon, children, onClose, className, showPreviousTitle, ...props }: Props$1C) => react_jsx_runtime.JSX.Element;
|
|
402
402
|
|
|
403
|
-
type Props$
|
|
404
|
-
declare const FullScreenModalBody: ({ ref, className, children, ...props }: Props$
|
|
403
|
+
type Props$1B = HTMLAttributes<HTMLDivElement>;
|
|
404
|
+
declare const FullScreenModalBody: ({ ref, className, children, ...props }: Props$1B & {
|
|
405
405
|
ref?: Ref<HTMLDivElement>;
|
|
406
406
|
}) => react_jsx_runtime.JSX.Element;
|
|
407
407
|
|
|
408
|
-
type Props$
|
|
408
|
+
type Props$1A = ComponentProps<typeof Root$2>;
|
|
409
409
|
declare const Sheet: {
|
|
410
|
-
(props: Props$
|
|
410
|
+
(props: Props$1A): react_jsx_runtime.JSX.Element;
|
|
411
411
|
Close: react.ForwardRefExoticComponent<_radix_ui_react_dialog.DialogCloseProps & react.RefAttributes<HTMLButtonElement>>;
|
|
412
412
|
Trigger: react.ForwardRefExoticComponent<_radix_ui_react_dialog.DialogTriggerProps & react.RefAttributes<HTMLButtonElement>>;
|
|
413
413
|
Content: ({ className, children, side, disableTransition, hideOverlay, keepOpenOnPointerDownOutside, onPointerDownOutside, onInteractOutside, container, ...props }: _radix_ui_react_dialog.DialogContentProps & react.RefAttributes<HTMLDivElement> & {
|
|
@@ -430,9 +430,9 @@ declare const Sheet: {
|
|
|
430
430
|
Body: ({ className, ...rest }: react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => react_jsx_runtime.JSX.Element;
|
|
431
431
|
};
|
|
432
432
|
|
|
433
|
-
type Props$
|
|
433
|
+
type Props$1z = ComponentProps<typeof Root$3>;
|
|
434
434
|
declare const Popover: {
|
|
435
|
-
(props: Props$
|
|
435
|
+
(props: Props$1z): react_jsx_runtime.JSX.Element;
|
|
436
436
|
/**
|
|
437
437
|
* Main Layout
|
|
438
438
|
*/
|
|
@@ -454,12 +454,12 @@ type PopconfirmContextType = {
|
|
|
454
454
|
isLoading: boolean;
|
|
455
455
|
};
|
|
456
456
|
|
|
457
|
-
type Props$
|
|
457
|
+
type Props$1y = {
|
|
458
458
|
children: ReactNode;
|
|
459
459
|
skipAsyncWait?: boolean;
|
|
460
460
|
} & ComponentProps<typeof Popover> & Omit<Partial<PopconfirmContextType>, 'isLoading'>;
|
|
461
461
|
declare const Popconfirm: {
|
|
462
|
-
({ children, onConfirm, onCancel, variant, enabled, onOpenChange, open, skipAsyncWait, ...rest }: Props$
|
|
462
|
+
({ children, onConfirm, onCancel, variant, enabled, onOpenChange, open, skipAsyncWait, ...rest }: Props$1y): react_jsx_runtime.JSX.Element;
|
|
463
463
|
Confirm: ({ ref, onClick, children, asChild, className, ...props }: (({
|
|
464
464
|
asChild: true;
|
|
465
465
|
} & react.ClassAttributes<HTMLButtonElement> & react.ButtonHTMLAttributes<HTMLButtonElement>) | ({
|
|
@@ -812,18 +812,18 @@ declare const Popconfirm: {
|
|
|
812
812
|
Trigger: ({ onClick, ...props }: _radix_ui_react_popover.PopoverTriggerProps & react.RefAttributes<HTMLButtonElement>) => react_jsx_runtime.JSX.Element;
|
|
813
813
|
};
|
|
814
814
|
|
|
815
|
-
type Props$
|
|
815
|
+
type Props$1x = ComponentProps<typeof Root$4>;
|
|
816
816
|
declare const HoverCard: {
|
|
817
|
-
({ openDelay, closeDelay, ...rest }: Props$
|
|
817
|
+
({ openDelay, closeDelay, ...rest }: Props$1x): react_jsx_runtime.JSX.Element;
|
|
818
818
|
Content: ({ ref, className, align, sideOffset, children, ...props }: Omit<_radix_ui_react_hover_card.HoverCardContentProps & react.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
819
819
|
ref?: react.Ref<react.ElementRef<react.ForwardRefExoticComponent<_radix_ui_react_hover_card.HoverCardContentProps & react.RefAttributes<HTMLDivElement>>>>;
|
|
820
820
|
}) => react_jsx_runtime.JSX.Element;
|
|
821
821
|
Trigger: react.ForwardRefExoticComponent<_radix_ui_react_hover_card.HoverCardTriggerProps & react.RefAttributes<HTMLAnchorElement>>;
|
|
822
822
|
};
|
|
823
823
|
|
|
824
|
-
type Props$
|
|
824
|
+
type Props$1w = ComponentProps<typeof Root$5>;
|
|
825
825
|
declare const DropdownMenu: {
|
|
826
|
-
({ modal, ...props }: Props$
|
|
826
|
+
({ modal, ...props }: Props$1w): react_jsx_runtime.JSX.Element;
|
|
827
827
|
/**
|
|
828
828
|
* Main Layout
|
|
829
829
|
*/
|
|
@@ -879,14 +879,14 @@ declare const DropdownMenu: {
|
|
|
879
879
|
}) => react_jsx_runtime.JSX.Element;
|
|
880
880
|
};
|
|
881
881
|
|
|
882
|
-
type Props$
|
|
882
|
+
type Props$1v = {
|
|
883
883
|
variant?: 'checkbox' | 'radio' | 'default';
|
|
884
884
|
};
|
|
885
|
-
declare const CheckIndicator: ({ variant }: Props$
|
|
885
|
+
declare const CheckIndicator: ({ variant }: Props$1v) => react_jsx_runtime.JSX.Element | null;
|
|
886
886
|
|
|
887
|
-
type Props$
|
|
887
|
+
type Props$1u = ComponentProps<typeof Command$1>;
|
|
888
888
|
declare const Command: {
|
|
889
|
-
({ className, ...rest }: Props$
|
|
889
|
+
({ className, ...rest }: Props$1u): react_jsx_runtime.JSX.Element;
|
|
890
890
|
Content: ({ className, ...rest }: react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => react_jsx_runtime.JSX.Element;
|
|
891
891
|
Separator: ({ className, ...props }: Pick<Pick<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof react.HTMLAttributes<HTMLDivElement>> & {
|
|
892
892
|
ref?: React.Ref<HTMLDivElement>;
|
|
@@ -1282,25 +1282,25 @@ declare const Command: {
|
|
|
1282
1282
|
declare const addonVariants$1: (props?: ({
|
|
1283
1283
|
align?: "inline-start" | "inline-end" | "block-start" | "block-end" | null | undefined;
|
|
1284
1284
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1285
|
-
type Props$
|
|
1286
|
-
declare const InputGroupAddon: ({ children, align, className, ...props }: Props$
|
|
1285
|
+
type Props$1t = ComponentProps<'div'> & VariantProps<typeof addonVariants$1>;
|
|
1286
|
+
declare const InputGroupAddon: ({ children, align, className, ...props }: Props$1t) => react_jsx_runtime.JSX.Element;
|
|
1287
1287
|
|
|
1288
1288
|
type ButtonProps = ComponentProps<typeof Button>;
|
|
1289
|
-
type Props$
|
|
1290
|
-
declare const InputGroupButton: ({ ref, className, tabIndex, ...props }: Props$
|
|
1289
|
+
type Props$1s = Omit<ButtonProps, 'size' | 'block' | 'variant'>;
|
|
1290
|
+
declare const InputGroupButton: ({ ref, className, tabIndex, ...props }: Props$1s & {
|
|
1291
1291
|
ref?: Ref<ElementRef<"button">>;
|
|
1292
1292
|
}) => react_jsx_runtime.JSX.Element;
|
|
1293
1293
|
|
|
1294
|
-
type Props$
|
|
1295
|
-
declare const InputGroupInput: ({ ref, className, ...inputProps }: Props$
|
|
1294
|
+
type Props$1r = ComponentProps<'input'>;
|
|
1295
|
+
declare const InputGroupInput: ({ ref, className, ...inputProps }: Props$1r & {
|
|
1296
1296
|
ref?: Ref<ElementRef<"input">>;
|
|
1297
1297
|
}) => react_jsx_runtime.JSX.Element;
|
|
1298
1298
|
|
|
1299
|
-
type Props$
|
|
1300
|
-
declare const InputGroupText: ({ className, ...props }: Props$
|
|
1299
|
+
type Props$1q = ComponentProps<'span'>;
|
|
1300
|
+
declare const InputGroupText: ({ className, ...props }: Props$1q) => react_jsx_runtime.JSX.Element;
|
|
1301
1301
|
|
|
1302
1302
|
type TextareaNativeProps$1 = Omit<ComponentProps<typeof react_textarea_autosize__default>, 'value' | 'defaultValue' | 'rows' | 'maxRows'>;
|
|
1303
|
-
type Props$
|
|
1303
|
+
type Props$1p = TextareaNativeProps$1 & {
|
|
1304
1304
|
value?: string | null;
|
|
1305
1305
|
defaultValue?: string | null;
|
|
1306
1306
|
onValueChange?: (value: string) => void;
|
|
@@ -1308,7 +1308,7 @@ type Props$1o = TextareaNativeProps$1 & {
|
|
|
1308
1308
|
maxRows?: number | 'unlimited';
|
|
1309
1309
|
disableResize?: boolean;
|
|
1310
1310
|
};
|
|
1311
|
-
declare const InputGroupTextArea: ({ ref, className, onChange, onValueChange, value, defaultValue, onBlur, onValueBlur, disableResize, minRows, maxRows, ...props }: Props$
|
|
1311
|
+
declare const InputGroupTextArea: ({ ref, className, onChange, onValueChange, value, defaultValue, onBlur, onValueBlur, disableResize, minRows, maxRows, ...props }: Props$1p & {
|
|
1312
1312
|
ref?: Ref<ElementRef<"textarea">>;
|
|
1313
1313
|
}) => react_jsx_runtime.JSX.Element;
|
|
1314
1314
|
|
|
@@ -1318,10 +1318,10 @@ declare const inputGroupVariants: (props?: ({
|
|
|
1318
1318
|
sizing?: "small" | "medium" | "default" | null | undefined;
|
|
1319
1319
|
state?: "default" | "error" | "warning" | null | undefined;
|
|
1320
1320
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1321
|
-
type Props$
|
|
1321
|
+
type Props$1o = ComponentProps<'div'> & Omit<VariantProps<typeof inputGroupVariants>, 'variant'> & {
|
|
1322
1322
|
variant?: Exclude<VariantProps<typeof inputGroupVariants>['variant'], 'argo'>;
|
|
1323
1323
|
};
|
|
1324
|
-
declare const InputGroupRoot: ({ ref, children, state, variant, sizing, focusVariant, className, ...props }: Props$
|
|
1324
|
+
declare const InputGroupRoot: ({ ref, children, state, variant, sizing, focusVariant, className, ...props }: Props$1o & {
|
|
1325
1325
|
ref?: Ref<ElementRef<"div">>;
|
|
1326
1326
|
}) => react_jsx_runtime.JSX.Element;
|
|
1327
1327
|
declare const InputGroup: typeof InputGroupRoot & {
|
|
@@ -1332,7 +1332,7 @@ declare const InputGroup: typeof InputGroupRoot & {
|
|
|
1332
1332
|
Text: typeof InputGroupText;
|
|
1333
1333
|
};
|
|
1334
1334
|
|
|
1335
|
-
type InputGroupProps$
|
|
1335
|
+
type InputGroupProps$7 = Pick<ComponentProps<typeof InputGroup>, 'variant' | 'focusVariant' | 'sizing' | 'state'>;
|
|
1336
1336
|
type OwnProps$1 = {
|
|
1337
1337
|
prefix?: ReactNode;
|
|
1338
1338
|
rightSuffix?: ReactNode;
|
|
@@ -1348,7 +1348,7 @@ type OwnProps$1 = {
|
|
|
1348
1348
|
* Props for `Input`. Combines `InputGroup` chrome (variant / sizing / state / focusVariant) with
|
|
1349
1349
|
* input-specific slots (`prefix`, `leftSuffix`, `rightSuffix`, `allowClear`).
|
|
1350
1350
|
*/
|
|
1351
|
-
type Props$
|
|
1351
|
+
type Props$1n = InputGroupProps$7 & OwnProps$1 & Omit<ComponentProps<'input'>, 'prefix' | 'value' | 'defaultValue'>;
|
|
1352
1352
|
/**
|
|
1353
1353
|
* Low-level text input with `InputGroup` chrome — addons, clear button, sizing, focus variants.
|
|
1354
1354
|
*
|
|
@@ -1358,12 +1358,12 @@ type Props$1m = InputGroupProps$6 & OwnProps$1 & Omit<ComponentProps<'input'>, '
|
|
|
1358
1358
|
* `FormGroup.TextInput`; for search use `SearchInput`; for forms with validation use `useAppForm`.
|
|
1359
1359
|
* **Composition:** wrap in `FormGroup` for shared error state, or render directly as a controlled input.
|
|
1360
1360
|
*/
|
|
1361
|
-
declare const Input$1: ({ ref: forwardedRef, state, sizing, className, prefix, rightSuffix, rightSuffixVariant, leftSuffix, allowClear, onClear, disabled, testId: prefixTestId, autoFocus, id, name, variant, readOnly, type, focusVariant, onChange, onBlur, value, defaultValue, ...inputProps }: Props$
|
|
1361
|
+
declare const Input$1: ({ ref: forwardedRef, state, sizing, className, prefix, rightSuffix, rightSuffixVariant, leftSuffix, allowClear, onClear, disabled, testId: prefixTestId, autoFocus, id, name, variant, readOnly, type, focusVariant, onChange, onBlur, value, defaultValue, ...inputProps }: Props$1n & {
|
|
1362
1362
|
ref?: Ref<ElementRef<"input">>;
|
|
1363
1363
|
}) => react_jsx_runtime.JSX.Element;
|
|
1364
1364
|
|
|
1365
|
-
type InputProps$
|
|
1366
|
-
type Props$
|
|
1365
|
+
type InputProps$1 = ComponentProps<typeof Input$1>;
|
|
1366
|
+
type Props$1m = Omit<InputProps$1, 'type' | 'value' | 'defaultValue'> & {
|
|
1367
1367
|
defaultValue?: Date | null;
|
|
1368
1368
|
disabledDays?: Matcher | Matcher[];
|
|
1369
1369
|
endMonth?: Date;
|
|
@@ -1372,12 +1372,12 @@ type Props$1l = Omit<InputProps$2, 'type' | 'value' | 'defaultValue'> & {
|
|
|
1372
1372
|
startMonth?: Date;
|
|
1373
1373
|
value?: Date | null;
|
|
1374
1374
|
};
|
|
1375
|
-
declare const DateInput: ({ ref, defaultValue, disabled, disabledDays, endMonth, onBlur, onChange, onValueBlur, onValueChange, placeholder, readOnly, startMonth, value, variant, ...props }: Props$
|
|
1375
|
+
declare const DateInput: ({ ref, defaultValue, disabled, disabledDays, endMonth, onBlur, onChange, onValueBlur, onValueChange, placeholder, readOnly, startMonth, value, variant, ...props }: Props$1m & {
|
|
1376
1376
|
ref?: Ref<ElementRef<"input">>;
|
|
1377
1377
|
}) => react_jsx_runtime.JSX.Element;
|
|
1378
1378
|
|
|
1379
|
-
type InputProps
|
|
1380
|
-
type Props$
|
|
1379
|
+
type InputProps = ComponentProps<typeof Input$1>;
|
|
1380
|
+
type Props$1l = Omit<InputProps, 'type' | 'value' | 'defaultValue'> & {
|
|
1381
1381
|
defaultValue?: DateRange$1 | null;
|
|
1382
1382
|
endMonth?: Date;
|
|
1383
1383
|
onValueBlur?: (value: DateRange$1 | null) => void;
|
|
@@ -1385,7 +1385,7 @@ type Props$1k = Omit<InputProps$1, 'type' | 'value' | 'defaultValue'> & {
|
|
|
1385
1385
|
startMonth?: Date;
|
|
1386
1386
|
value?: DateRange$1 | null;
|
|
1387
1387
|
};
|
|
1388
|
-
declare const DateRangeInput: ({ ref, defaultValue, disabled, endMonth, onBlur, onChange, onValueBlur, onValueChange, placeholder, readOnly, startMonth, value, ...props }: Props$
|
|
1388
|
+
declare const DateRangeInput: ({ ref, defaultValue, disabled, endMonth, onBlur, onChange, onValueBlur, onValueChange, placeholder, readOnly, startMonth, value, ...props }: Props$1l & {
|
|
1389
1389
|
ref?: Ref<ElementRef<"input">>;
|
|
1390
1390
|
}) => react_jsx_runtime.JSX.Element;
|
|
1391
1391
|
|
|
@@ -1403,7 +1403,7 @@ type OwnProps = {
|
|
|
1403
1403
|
* Props for `TextInput`. Extends `Input` with string-typed `value` / `defaultValue` and convenience
|
|
1404
1404
|
* `onValueChange` / `onValueBlur` callbacks. `null` / `undefined` are coerced to empty strings.
|
|
1405
1405
|
*/
|
|
1406
|
-
type Props$
|
|
1406
|
+
type Props$1k = OwnProps & NativeProps;
|
|
1407
1407
|
/**
|
|
1408
1408
|
* Standard text input with a string-only API. The default choice for a bare text input.
|
|
1409
1409
|
*
|
|
@@ -1415,53 +1415,42 @@ type Props$1j = OwnProps & NativeProps;
|
|
|
1415
1415
|
* page layouts. Chrome resolves from the active brand automatically: a modern brand always renders argo
|
|
1416
1416
|
* (any `variant` is ignored), while `variant` only tunes the legacy-brand chrome.
|
|
1417
1417
|
*/
|
|
1418
|
-
declare const TextInput: ({ ref, value, defaultValue, type, variant, onValueChange, onChange, onValueBlur, onBlur, ...props }: Props$
|
|
1418
|
+
declare const TextInput: ({ ref, value, defaultValue, type, variant, onValueChange, onChange, onValueBlur, onBlur, ...props }: Props$1k & {
|
|
1419
1419
|
ref?: Ref<ElementRef<"input">>;
|
|
1420
1420
|
}) => react_jsx_runtime.JSX.Element;
|
|
1421
1421
|
|
|
1422
|
-
type
|
|
1423
|
-
|
|
1424
|
-
value?: string | null;
|
|
1425
|
-
defaultValue?: string | null;
|
|
1426
|
-
onValueChange?: (value: string | null) => void;
|
|
1427
|
-
onValueBlur?: (value: string | null) => void;
|
|
1428
|
-
};
|
|
1429
|
-
declare const TimeInput: ({ ref, defaultValue, disabled, onBlur, onChange, onValueBlur, onValueChange, placeholder, readOnly, value, variant, className, ...props }: Props$1i & {
|
|
1422
|
+
type Props$1j = ComponentProps<typeof TextInput>;
|
|
1423
|
+
declare const CommandInput: ({ ref, className, ...props }: Props$1j & {
|
|
1430
1424
|
ref?: Ref<ElementRef<"input">>;
|
|
1431
1425
|
}) => react_jsx_runtime.JSX.Element;
|
|
1432
1426
|
|
|
1433
|
-
type Props$
|
|
1434
|
-
declare const CommandInput: ({ ref, className, ...props }: Props$1h & {
|
|
1435
|
-
ref?: Ref<ElementRef<"input">>;
|
|
1436
|
-
}) => react_jsx_runtime.JSX.Element;
|
|
1437
|
-
|
|
1438
|
-
type Props$1g = ComponentProps<typeof ScrollAreaPrimitive.Root> & {
|
|
1427
|
+
type Props$1i = ComponentProps<typeof ScrollAreaPrimitive.Root> & {
|
|
1439
1428
|
viewPortClassName?: string;
|
|
1440
1429
|
scrollBarClassName?: string;
|
|
1441
1430
|
orientation?: ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>['orientation'];
|
|
1442
1431
|
};
|
|
1443
|
-
declare const ScrollArea: ({ ref, className, children, viewPortClassName, orientation, scrollBarClassName, ...props }: Props$
|
|
1432
|
+
declare const ScrollArea: ({ ref, className, children, viewPortClassName, orientation, scrollBarClassName, ...props }: Props$1i & {
|
|
1444
1433
|
ref?: Ref<ElementRef<"div">>;
|
|
1445
1434
|
}) => react_jsx_runtime.JSX.Element;
|
|
1446
1435
|
|
|
1447
|
-
type Props$
|
|
1448
|
-
declare const ScrollBar: ({ className, orientation, ...props }: Props$
|
|
1436
|
+
type Props$1h = ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>;
|
|
1437
|
+
declare const ScrollBar: ({ className, orientation, ...props }: Props$1h) => react_jsx_runtime.JSX.Element;
|
|
1449
1438
|
|
|
1450
|
-
type Props$
|
|
1451
|
-
declare const CommandList: ({ ref, className, children, viewPortClassName, ...props }: Props$
|
|
1439
|
+
type Props$1g = ComponentProps<typeof Command$1.List> & Pick<ComponentProps<typeof ScrollArea>, 'viewPortClassName'>;
|
|
1440
|
+
declare const CommandList: ({ ref, className, children, viewPortClassName, ...props }: Props$1g & {
|
|
1452
1441
|
ref?: Ref<ElementRef<"div">>;
|
|
1453
1442
|
}) => react_jsx_runtime.JSX.Element;
|
|
1454
1443
|
|
|
1455
|
-
type Props$
|
|
1456
|
-
declare const CommandGroup: ({ className, ...props }: Props$
|
|
1444
|
+
type Props$1f = ComponentProps<typeof Command$1.Group>;
|
|
1445
|
+
declare const CommandGroup: ({ className, ...props }: Props$1f) => react_jsx_runtime.JSX.Element;
|
|
1457
1446
|
|
|
1458
|
-
type Props$
|
|
1447
|
+
type Props$1e = ComponentProps<typeof Command$1.Item> & {
|
|
1459
1448
|
icon?: ReactNode;
|
|
1460
1449
|
checked?: boolean;
|
|
1461
1450
|
variant?: ComponentProps<typeof CheckIndicator>['variant'];
|
|
1462
1451
|
actions?: ReactNode;
|
|
1463
1452
|
};
|
|
1464
|
-
declare const CommandItem: ({ className, icon, children, checked, variant, actions, ...props }: Props$
|
|
1453
|
+
declare const CommandItem: ({ className, icon, children, checked, variant, actions, ...props }: Props$1e) => react_jsx_runtime.JSX.Element;
|
|
1465
1454
|
|
|
1466
1455
|
type CalendarProps = Omit<PropsBase, 'required' | 'captionLayout'> & (PropsSingle | PropsRange);
|
|
1467
1456
|
declare const Calendar: {
|
|
@@ -1505,13 +1494,13 @@ declare const DateRangePicker: {
|
|
|
1505
1494
|
displayName: string;
|
|
1506
1495
|
};
|
|
1507
1496
|
|
|
1508
|
-
type Props$
|
|
1497
|
+
type Props$1d = {
|
|
1509
1498
|
children?: ReactNode;
|
|
1510
1499
|
defaultSelected?: string | null;
|
|
1511
1500
|
selected?: string | null;
|
|
1512
1501
|
onSelect?: (time: string) => void;
|
|
1513
1502
|
} & Pick<PopoverProps, 'open' | 'onOpenChange' | 'defaultOpen'> & Pick<PopoverContentProps, 'align' | 'alignOffset' | 'sideOffset'>;
|
|
1514
|
-
declare const TimePicker: ({ align, alignOffset, children, defaultOpen, defaultSelected, onOpenChange, onSelect, open, selected, sideOffset, }: Props$
|
|
1503
|
+
declare const TimePicker: ({ align, alignOffset, children, defaultOpen, defaultSelected, onOpenChange, onSelect, open, selected, sideOffset, }: Props$1d) => react_jsx_runtime.JSX.Element;
|
|
1515
1504
|
|
|
1516
1505
|
type LabelProps = {
|
|
1517
1506
|
id?: string | number;
|
|
@@ -1533,21 +1522,21 @@ declare const switchVariants: (props?: ({
|
|
|
1533
1522
|
size?: "small" | "medium" | "large" | null | undefined;
|
|
1534
1523
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1535
1524
|
|
|
1536
|
-
type Props$
|
|
1525
|
+
type Props$1c = {
|
|
1537
1526
|
id?: string | number;
|
|
1538
1527
|
children?: ReactNode;
|
|
1539
1528
|
description?: ReactNode;
|
|
1540
1529
|
variant?: VariantProps<typeof fieldBoxVariants>['variant'];
|
|
1541
1530
|
position?: 'start' | 'end';
|
|
1542
1531
|
} & Omit<ComponentProps<typeof Root$6>, 'asChild' | 'id'> & Omit<VariantProps<typeof switchVariants>, 'variant'>;
|
|
1543
|
-
declare const Switch: ({ ref, className, size, disabled, id: idProp, children, description, variant, position, ...props }: Props$
|
|
1532
|
+
declare const Switch: ({ ref, className, size, disabled, id: idProp, children, description, variant, position, ...props }: Props$1c & {
|
|
1544
1533
|
ref?: Ref<ElementRef<"button">>;
|
|
1545
1534
|
}) => react_jsx_runtime.JSX.Element;
|
|
1546
1535
|
|
|
1547
1536
|
type Variant$7 = 'radio' | 'button' | 'radio-block';
|
|
1548
1537
|
type Orientation = 'vertical' | 'horizontal';
|
|
1549
1538
|
|
|
1550
|
-
type Props$
|
|
1539
|
+
type Props$1b<Value> = {
|
|
1551
1540
|
variant?: Variant$7;
|
|
1552
1541
|
orientation?: Orientation;
|
|
1553
1542
|
onValueChange?: (value: Value) => void;
|
|
@@ -1555,7 +1544,7 @@ type Props$19<Value> = {
|
|
|
1555
1544
|
defaultValue?: Value | null;
|
|
1556
1545
|
} & Omit<ComponentProps<typeof RRadioGroup.Root>, 'asChild' | 'orientation' | 'onValueChange' | 'onChange' | 'value' | 'defaultValue'>;
|
|
1557
1546
|
declare const RadioGroup: {
|
|
1558
|
-
<Value extends string = string>({ variant, className, disabled, orientation, onValueChange, children, value, defaultValue, ...props }: Props$
|
|
1547
|
+
<Value extends string = string>({ variant, className, disabled, orientation, onValueChange, children, value, defaultValue, ...props }: Props$1b<Value>): react_jsx_runtime.JSX.Element;
|
|
1559
1548
|
Item: <T extends string = string>({ children, tooltip, tooltipVariant, tooltipPlacement, description, ...props }: {
|
|
1560
1549
|
content?: string | undefined | undefined;
|
|
1561
1550
|
translate?: "yes" | "no" | undefined | undefined;
|
|
@@ -1852,34 +1841,34 @@ declare const RadioGroup: {
|
|
|
1852
1841
|
} & {
|
|
1853
1842
|
value: T;
|
|
1854
1843
|
tooltip?: react.ReactNode;
|
|
1855
|
-
tooltipVariant?: Props$
|
|
1856
|
-
tooltipPlacement?: Props$
|
|
1844
|
+
tooltipVariant?: Props$1J["variant"];
|
|
1845
|
+
tooltipPlacement?: Props$1J["placement"];
|
|
1857
1846
|
description?: react.ReactNode;
|
|
1858
1847
|
}) => react_jsx_runtime.JSX.Element;
|
|
1859
1848
|
Separator: () => react_jsx_runtime.JSX.Element;
|
|
1860
1849
|
};
|
|
1861
1850
|
|
|
1862
|
-
type Props$
|
|
1851
|
+
type Props$1a = ComponentProps<typeof Thumb> & {
|
|
1863
1852
|
tooltip?: ReactNode;
|
|
1864
1853
|
tooltipSide?: ComponentProps<typeof Tooltip.Content>['placement'];
|
|
1865
1854
|
};
|
|
1866
|
-
declare const SliderThumb: ({ ref: forwardedRef, className, tooltip, tooltipSide, ...props }: Props$
|
|
1855
|
+
declare const SliderThumb: ({ ref: forwardedRef, className, tooltip, tooltipSide, ...props }: Props$1a & {
|
|
1867
1856
|
ref?: Ref<ElementRef<typeof Thumb>>;
|
|
1868
1857
|
}) => react_jsx_runtime.JSX.Element;
|
|
1869
1858
|
|
|
1870
1859
|
type ThumbTooltipFn = (value: number, index: number) => ReactNode;
|
|
1871
|
-
type Props$
|
|
1860
|
+
type Props$19 = ComponentProps<typeof Root$7> & {
|
|
1872
1861
|
thumbTooltip?: ThumbTooltipFn;
|
|
1873
1862
|
thumbTooltipSide?: ComponentProps<typeof SliderThumb>['tooltipSide'];
|
|
1874
1863
|
rangeClassName?: string;
|
|
1875
1864
|
};
|
|
1876
|
-
declare const Slider: ({ ref, className, value, defaultValue, min, max, onValueChange, thumbTooltip, thumbTooltipSide, rangeClassName, ...rest }: Props$
|
|
1865
|
+
declare const Slider: ({ ref, className, value, defaultValue, min, max, onValueChange, thumbTooltip, thumbTooltipSide, rangeClassName, ...rest }: Props$19 & {
|
|
1877
1866
|
ref?: Ref<ElementRef<typeof Root$7>>;
|
|
1878
1867
|
}) => react_jsx_runtime.JSX.Element;
|
|
1879
1868
|
|
|
1880
1869
|
type SearchChangeEventHandler = (value: string, event: ChangeEvent<HTMLInputElement> | MouseEvent$1<HTMLButtonElement>) => void;
|
|
1881
1870
|
type SearchBlurEventHandler = (value: string, event: FocusEvent$1<HTMLInputElement, Element>) => void;
|
|
1882
|
-
type Props$
|
|
1871
|
+
type Props$18 = {
|
|
1883
1872
|
suffix?: ReactNode;
|
|
1884
1873
|
disableDebounce?: boolean;
|
|
1885
1874
|
debounceDelay?: number;
|
|
@@ -1894,14 +1883,14 @@ type Props$16 = {
|
|
|
1894
1883
|
/**
|
|
1895
1884
|
* @deprecated Use `SearchInput` instead. `Search` is kept only for the legacy (non-sidebar) layout.
|
|
1896
1885
|
*/
|
|
1897
|
-
declare const Search: ({ ref, suffix, className, onBlur, onChange, disabled, readOnly, disableDebounce, debounceDelay, value: externalValue, defaultValue, testId: prefixTestId, placeholder, onClear, variant, ...rest }: Props$
|
|
1886
|
+
declare const Search: ({ ref, suffix, className, onBlur, onChange, disabled, readOnly, disableDebounce, debounceDelay, value: externalValue, defaultValue, testId: prefixTestId, placeholder, onClear, variant, ...rest }: Props$18 & {
|
|
1898
1887
|
ref?: Ref<ElementRef<"input">>;
|
|
1899
1888
|
}) => react_jsx_runtime.JSX.Element;
|
|
1900
1889
|
|
|
1901
|
-
type Props$
|
|
1890
|
+
type Props$17 = {
|
|
1902
1891
|
onSubmit: (value: string) => void;
|
|
1903
1892
|
} & Omit<ComponentProps<typeof Search>, 'onClear' | 'onBlur' | 'onSubmit'>;
|
|
1904
|
-
declare const SearchForm: ({ ref, onSubmit, name, ...props }: Props$
|
|
1893
|
+
declare const SearchForm: ({ ref, onSubmit, name, ...props }: Props$17 & {
|
|
1905
1894
|
ref?: Ref<ElementRef<"input">>;
|
|
1906
1895
|
}) => react_jsx_runtime.JSX.Element;
|
|
1907
1896
|
|
|
@@ -1926,10 +1915,10 @@ declare const variants$2: (props?: ({
|
|
|
1926
1915
|
sizing?: "small" | "medium" | "default" | null | undefined;
|
|
1927
1916
|
state?: "default" | "error" | "warning" | null | undefined;
|
|
1928
1917
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1929
|
-
type Props$
|
|
1918
|
+
type Props$16 = ComponentProps<typeof _radix_ui_react_select.Trigger> & Omit<VariantProps<typeof variants$2>, 'variant'> & {
|
|
1930
1919
|
variant?: Exclude<VariantProps<typeof variants$2>['variant'], 'argo'>;
|
|
1931
1920
|
} & Pick<ComponentProps<typeof _radix_ui_react_select.Value>, 'placeholder'>;
|
|
1932
|
-
declare const SelectTrigger: ({ ref, className, variant, state, sizing, placeholder, ...props }: Props$
|
|
1921
|
+
declare const SelectTrigger: ({ ref, className, variant, state, sizing, placeholder, ...props }: Props$16 & {
|
|
1933
1922
|
ref?: Ref<ElementRef<"button">>;
|
|
1934
1923
|
}) => react_jsx_runtime.JSX.Element;
|
|
1935
1924
|
|
|
@@ -1948,7 +1937,7 @@ type TriggerProps = ComponentProps<typeof SelectTrigger>;
|
|
|
1948
1937
|
* Props for `Select`. Combines Radix `Select.Root` control props with `Select.Trigger` chrome and the
|
|
1949
1938
|
* convenience `items` shape (flat list, or grouped lists with optional labels).
|
|
1950
1939
|
*/
|
|
1951
|
-
type Props$
|
|
1940
|
+
type Props$15 = Pick<SelectRootProps, 'value' | 'defaultValue' | 'onValueChange' | 'disabled' | 'name' | 'required' | 'open' | 'defaultOpen' | 'onOpenChange'> & Pick<TriggerProps, 'variant' | 'state' | 'sizing' | 'placeholder' | 'id' | 'className'> & {
|
|
1952
1941
|
items?: readonly (SelectItem | SelectItemGroup)[];
|
|
1953
1942
|
};
|
|
1954
1943
|
/**
|
|
@@ -1963,7 +1952,7 @@ type Props$13 = Pick<SelectRootProps, 'value' | 'defaultValue' | 'onValueChange'
|
|
|
1963
1952
|
* `Select.Item`) for custom item layouts; the top-level `Select` covers the common cases.
|
|
1964
1953
|
*/
|
|
1965
1954
|
declare const Select: {
|
|
1966
|
-
({ value, defaultValue, onValueChange, disabled, name, required, open, defaultOpen, onOpenChange, variant, state, sizing, placeholder, id, className, items, }: Props$
|
|
1955
|
+
({ value, defaultValue, onValueChange, disabled, name, required, open, defaultOpen, onOpenChange, variant, state, sizing, placeholder, id, className, items, }: Props$15): react_jsx_runtime.JSX.Element;
|
|
1967
1956
|
Root: (props: SelectRootProps) => react_jsx_runtime.JSX.Element;
|
|
1968
1957
|
Trigger: ({ ref, className, variant, state, sizing, placeholder, ...props }: (_radix_ui_react_select.SelectTriggerProps & react.RefAttributes<HTMLButtonElement> & Omit<class_variance_authority.VariantProps<(props?: ({
|
|
1969
1958
|
variant?: "primary" | "secondary" | "argo" | null | undefined;
|
|
@@ -1993,51 +1982,51 @@ declare const Select: {
|
|
|
1993
1982
|
Separator: ({ className, ...props }: _radix_ui_react_select.SelectSeparatorProps & react.RefAttributes<HTMLDivElement>) => react_jsx_runtime.JSX.Element;
|
|
1994
1983
|
};
|
|
1995
1984
|
|
|
1996
|
-
type Props$
|
|
1985
|
+
type Props$14 = {
|
|
1997
1986
|
id?: string | number;
|
|
1998
1987
|
description?: ReactNode;
|
|
1999
1988
|
variant?: VariantProps<typeof fieldBoxVariants>['variant'];
|
|
2000
1989
|
position?: 'start' | 'end';
|
|
2001
|
-
tooltip?: Props$
|
|
2002
|
-
tooltipPlacement?: Props$
|
|
1990
|
+
tooltip?: Props$1J['tooltip'];
|
|
1991
|
+
tooltipPlacement?: Props$1J['placement'];
|
|
2003
1992
|
} & Omit<ComponentProps<typeof Root$8>, 'id'>;
|
|
2004
|
-
declare function Checkbox(prop: Omit<Props$
|
|
1993
|
+
declare function Checkbox(prop: Omit<Props$14, 'checked' | 'onCheckedChange'> & {
|
|
2005
1994
|
checked?: boolean;
|
|
2006
1995
|
onCheckedChange?: (checked: boolean) => void;
|
|
2007
1996
|
}): ReactNode;
|
|
2008
|
-
declare function Checkbox(prop: Omit<Props$
|
|
1997
|
+
declare function Checkbox(prop: Omit<Props$14, 'checked' | 'onCheckedChange'> & {
|
|
2009
1998
|
checked?: CheckedState;
|
|
2010
1999
|
onCheckedChange?: (checked: CheckedState) => void;
|
|
2011
2000
|
}): ReactNode;
|
|
2012
2001
|
|
|
2013
2002
|
type Variant$6 = 'check' | 'checkbox';
|
|
2014
|
-
type Props$
|
|
2003
|
+
type Props$13 = Omit<ComponentProps<typeof Combobox$1.ItemIndicator>, 'className' | 'children'> & {
|
|
2015
2004
|
className?: string;
|
|
2016
2005
|
variant?: Variant$6;
|
|
2017
2006
|
};
|
|
2018
|
-
declare const ComboboxItemIndicator: ({ ref, className, variant, ...props }: Props$
|
|
2007
|
+
declare const ComboboxItemIndicator: ({ ref, className, variant, ...props }: Props$13 & {
|
|
2019
2008
|
ref?: Ref<ElementRef<"span">>;
|
|
2020
2009
|
}) => react_jsx_runtime.JSX.Element;
|
|
2021
2010
|
|
|
2022
|
-
type Props$
|
|
2023
|
-
declare const ComboboxInput: ({ ref, ...props }: Props$
|
|
2011
|
+
type Props$12 = Omit<ComponentProps<typeof Combobox$1.Input>, 'render'>;
|
|
2012
|
+
declare const ComboboxInput: ({ ref, ...props }: Props$12 & {
|
|
2024
2013
|
ref?: Ref<ElementRef<"input">>;
|
|
2025
2014
|
}) => react_jsx_runtime.JSX.Element;
|
|
2026
2015
|
|
|
2027
|
-
type InputGroupProps$
|
|
2028
|
-
type Props
|
|
2016
|
+
type InputGroupProps$6 = Pick<ComponentProps<typeof InputGroup>, 'variant' | 'focusVariant' | 'sizing' | 'state'>;
|
|
2017
|
+
type Props$11 = InputGroupProps$6 & Omit<ComponentProps<typeof Combobox$1.InputGroup>, 'render' | 'className'> & {
|
|
2029
2018
|
className?: string;
|
|
2030
2019
|
};
|
|
2031
|
-
declare const ComboboxInputGroup: ({ ref, state, variant, sizing, focusVariant, className, ...props }: Props
|
|
2020
|
+
declare const ComboboxInputGroup: ({ ref, state, variant, sizing, focusVariant, className, ...props }: Props$11 & {
|
|
2032
2021
|
ref?: Ref<ElementRef<"div">>;
|
|
2033
2022
|
}) => react_jsx_runtime.JSX.Element;
|
|
2034
2023
|
|
|
2035
|
-
type Props$
|
|
2024
|
+
type Props$10 = Omit<ComponentProps<typeof Combobox$1.Item>, 'className'> & {
|
|
2036
2025
|
className?: string;
|
|
2037
2026
|
icon?: ReactNode;
|
|
2038
2027
|
indicator?: ComponentProps<typeof ComboboxItemIndicator>['variant'];
|
|
2039
2028
|
};
|
|
2040
|
-
declare const ComboboxItem: ({ ref, className, children, icon, indicator: variant, ...props }: Props$
|
|
2029
|
+
declare const ComboboxItem: ({ ref, className, children, icon, indicator: variant, ...props }: Props$10 & {
|
|
2041
2030
|
ref?: Ref<ElementRef<"div">>;
|
|
2042
2031
|
}) => react_jsx_runtime.JSX.Element;
|
|
2043
2032
|
|
|
@@ -2057,7 +2046,7 @@ type CreatableProps<Value> = {
|
|
|
2057
2046
|
queryToCreateLabel?: (query: string) => ReactNode;
|
|
2058
2047
|
queryToCreateValue?: (query: string) => Value;
|
|
2059
2048
|
};
|
|
2060
|
-
type Props
|
|
2049
|
+
type Props$$<Value, GroupShape extends Group<Value> = Group<Value>> = PublicComboboxInputProps & PublicComboboxProps<Value> & CreatableProps<Value> & {
|
|
2061
2050
|
items?: readonly (Value | GroupShape)[];
|
|
2062
2051
|
allowClear?: boolean;
|
|
2063
2052
|
empty?: ReactNode;
|
|
@@ -2069,7 +2058,7 @@ type Props$Z<Value, GroupShape extends Group<Value> = Group<Value>> = PublicComb
|
|
|
2069
2058
|
groupToLabel?: (group: GroupShape) => ReactNode;
|
|
2070
2059
|
};
|
|
2071
2060
|
declare const Combobox: {
|
|
2072
|
-
<Value, GroupShape extends Group<Value> = Group<Value>>({ items: _itemsProp, value, defaultValue, onValueChange, itemToStringLabel: itemToStringLabelProp, itemToStringValue, disabled, filter, inputRef, onOpenChangeComplete, isItemEqualToValue: isItemEqualToValueProp, variant, sizing, focusVariant, state, placeholder, allowClear, id, className, empty, indicator, prefix, allowCreate, queryToCreateValue, queryToCreateLabel, itemToDisabled, itemToLabel, itemToIcon, groupToLabel, }: Props
|
|
2061
|
+
<Value, GroupShape extends Group<Value> = Group<Value>>({ items: _itemsProp, value, defaultValue, onValueChange, itemToStringLabel: itemToStringLabelProp, itemToStringValue, disabled, filter, inputRef, onOpenChangeComplete, isItemEqualToValue: isItemEqualToValueProp, variant, sizing, focusVariant, state, placeholder, allowClear, id, className, empty, indicator, prefix, allowCreate, queryToCreateValue, queryToCreateLabel, itemToDisabled, itemToLabel, itemToIcon, groupToLabel, }: Props$$<Value, GroupShape>): react_jsx_runtime.JSX.Element;
|
|
2073
2062
|
Root: <Value, Multiple extends boolean | undefined = false>(props: Combobox$1.Root.Props<Value, Multiple>) => react_jsx_runtime.JSX.Element;
|
|
2074
2063
|
InputGroup: ({ ref, state, variant, sizing, focusVariant, className, ...props }: ({
|
|
2075
2064
|
variant?: "primary" | "secondary" | null | undefined;
|
|
@@ -2452,7 +2441,7 @@ type Indicator = NonNullable<ComboboxItemProps['indicator']>;
|
|
|
2452
2441
|
* Use `itemToLabel` / `itemToIcon` / `itemToDisabled` to project custom item shapes; use `filter` to override
|
|
2453
2442
|
* the default substring matcher.
|
|
2454
2443
|
*/
|
|
2455
|
-
type Props$
|
|
2444
|
+
type Props$_<Value, GroupShape extends Group<Value> = Group<Value>> = Pick<ComboboxInputProps, 'placeholder' | 'id'> & Pick<ComboboxInputGroupProps, 'variant' | 'focusVariant' | 'sizing' | 'state' | 'className'> & Pick<ComboboxProps<Value>, 'disabled' | 'inputRef' | 'value' | 'defaultValue' | 'onValueChange' | 'itemToStringLabel' | 'itemToStringValue' | 'filter'> & Pick<ComboboxChipsProps, 'itemToChipLabel' | 'itemToChipColor' | 'maxVisible'> & {
|
|
2456
2445
|
items?: readonly (Value | GroupShape)[];
|
|
2457
2446
|
allowClear?: boolean;
|
|
2458
2447
|
allowSelectAll?: boolean;
|
|
@@ -2476,9 +2465,9 @@ type Props$Y<Value, GroupShape extends Group<Value> = Group<Value>> = Pick<Combo
|
|
|
2476
2465
|
* @see RECIPES.md#creatable-multi-combobox — for free-form-plus-enumerated patterns
|
|
2477
2466
|
* @see RECIPES.md#filter-toolbar — for combining multi-select with other filter chips
|
|
2478
2467
|
*/
|
|
2479
|
-
declare const MultiCombobox: <Value, GroupShape extends Group<Value> = Group<Value>>({ items: _itemsProp, value: _valueProp, defaultValue, onValueChange, itemToStringLabel, itemToStringValue, disabled, filter: filterProp, inputRef, variant, sizing, focusVariant, state, placeholder, allowClear, id, className, allowSelectAll, empty, indicator, itemToDisabled, itemToLabel, itemToIcon, groupToLabel, itemToChipLabel, itemToChipColor, maxVisible, }: Props$
|
|
2468
|
+
declare const MultiCombobox: <Value, GroupShape extends Group<Value> = Group<Value>>({ items: _itemsProp, value: _valueProp, defaultValue, onValueChange, itemToStringLabel, itemToStringValue, disabled, filter: filterProp, inputRef, variant, sizing, focusVariant, state, placeholder, allowClear, id, className, allowSelectAll, empty, indicator, itemToDisabled, itemToLabel, itemToIcon, groupToLabel, itemToChipLabel, itemToChipColor, maxVisible, }: Props$_<Value, GroupShape>) => react_jsx_runtime.JSX.Element;
|
|
2480
2469
|
|
|
2481
|
-
type InputGroupProps$
|
|
2470
|
+
type InputGroupProps$5 = Pick<ComponentProps<typeof InputGroup>, 'variant' | 'sizing' | 'focusVariant' | 'state'>;
|
|
2482
2471
|
type TextareaNativeProps = Omit<ComponentProps<typeof InputGroup.TextArea>, 'value' | 'defaultValue' | 'rows' | 'maxRows'>;
|
|
2483
2472
|
type TextareaOwnProps = {
|
|
2484
2473
|
value?: string | null;
|
|
@@ -2489,12 +2478,12 @@ type TextareaOwnProps = {
|
|
|
2489
2478
|
disableResize?: boolean;
|
|
2490
2479
|
containerClassName?: string;
|
|
2491
2480
|
};
|
|
2492
|
-
type Props$
|
|
2481
|
+
type Props$Z = InputGroupProps$5 & TextareaNativeProps & TextareaOwnProps;
|
|
2493
2482
|
/**
|
|
2494
2483
|
* Multi-line text input. Chrome resolves from the active brand automatically: a modern brand always
|
|
2495
2484
|
* renders argo (any `variant` is ignored), while `variant` only tunes the legacy-brand chrome.
|
|
2496
2485
|
*/
|
|
2497
|
-
declare const Textarea: ({ ref, containerClassName, state, variant, sizing, focusVariant, ...rest }: Props$
|
|
2486
|
+
declare const Textarea: ({ ref, containerClassName, state, variant, sizing, focusVariant, ...rest }: Props$Z & {
|
|
2498
2487
|
ref?: Ref<ElementRef<"textarea">>;
|
|
2499
2488
|
}) => react_jsx_runtime.JSX.Element;
|
|
2500
2489
|
|
|
@@ -2507,22 +2496,229 @@ type AutoSaveTextareaProps = {
|
|
|
2507
2496
|
} & Pick<ComponentProps<typeof Textarea>, 'variant' | 'minRows' | 'maxRows' | 'className' | 'containerClassName' | 'maxLength'>;
|
|
2508
2497
|
declare const AutoSaveTextarea: ({ savedValue, onSave, placeholder, disabled, grow, ...textareaProps }: AutoSaveTextareaProps) => react_jsx_runtime.JSX.Element;
|
|
2509
2498
|
|
|
2510
|
-
type InputGroupProps$
|
|
2511
|
-
type InputGroupInputProps$
|
|
2512
|
-
type Props$
|
|
2499
|
+
type InputGroupProps$4 = Pick<ComponentProps<typeof InputGroup>, 'variant' | 'focusVariant' | 'state' | 'sizing'>;
|
|
2500
|
+
type InputGroupInputProps$4 = Omit<ComponentProps<typeof InputGroup.Input>, 'value' | 'defaultValue'>;
|
|
2501
|
+
type Props$Y = InputGroupProps$4 & InputGroupInputProps$4 & {
|
|
2513
2502
|
value?: string | null;
|
|
2514
2503
|
defaultValue?: string | null;
|
|
2515
2504
|
onValueChange?: (value: string) => void;
|
|
2516
2505
|
onValueBlur?: (value: string) => void;
|
|
2517
2506
|
allowClear?: boolean;
|
|
2518
2507
|
};
|
|
2519
|
-
declare const ColorInput: ({ ref, state, variant, focusVariant, sizing, className, value: valueProp, onValueChange, onValueBlur, onChange, onBlur, defaultValue, allowClear, disabled, readOnly, ...restInputProps }: Props$
|
|
2508
|
+
declare const ColorInput: ({ ref, state, variant, focusVariant, sizing, className, value: valueProp, onValueChange, onValueBlur, onChange, onBlur, defaultValue, allowClear, disabled, readOnly, ...restInputProps }: Props$Y & {
|
|
2520
2509
|
ref?: Ref<ElementRef<"input">>;
|
|
2521
2510
|
}) => react_jsx_runtime.JSX.Element;
|
|
2522
2511
|
|
|
2523
|
-
type
|
|
2524
|
-
type
|
|
2525
|
-
type
|
|
2512
|
+
type ColorScheme = 'light' | 'dark' | 'system';
|
|
2513
|
+
type ResolvedMode = 'light' | 'dark';
|
|
2514
|
+
type ThemeContextValue = {
|
|
2515
|
+
brand: Brand;
|
|
2516
|
+
setBrand?: (brand: Brand) => void;
|
|
2517
|
+
/** The configured color scheme (may be `'system'`). */
|
|
2518
|
+
colorScheme: ColorScheme;
|
|
2519
|
+
/** The effective light/dark mode after resolving `'system'`. */
|
|
2520
|
+
resolvedMode: ResolvedMode;
|
|
2521
|
+
};
|
|
2522
|
+
|
|
2523
|
+
type Props$X = {
|
|
2524
|
+
/**
|
|
2525
|
+
* Brand whose tokens drive the chrome (`@keboola/design`'s semantic CSS
|
|
2526
|
+
* variables) inside this provider's subtree. Defaults to the canonical
|
|
2527
|
+
* `keboola` brand so existing apps that mount `<ThemeProvider>` without a
|
|
2528
|
+
* `brand` prop continue to render as today.
|
|
2529
|
+
*/
|
|
2530
|
+
brand?: Brand;
|
|
2531
|
+
/**
|
|
2532
|
+
* Optional setter exposed through `useTheme()` so consumers can flip
|
|
2533
|
+
* brands at runtime (Storybook toolbar, a customer-impersonation switch).
|
|
2534
|
+
*/
|
|
2535
|
+
setBrand?: (brand: Brand) => void;
|
|
2536
|
+
/**
|
|
2537
|
+
* Light/dark mode. `'system'` follows `prefers-color-scheme` and updates
|
|
2538
|
+
* reactively. Defaults to `'light'` so existing mounts don't drift. Only
|
|
2539
|
+
* the ROOT provider applies this (sets `data-theme`, owns the media
|
|
2540
|
+
* listener); a nested provider inherits the root's resolved mode.
|
|
2541
|
+
*/
|
|
2542
|
+
colorScheme?: ColorScheme;
|
|
2543
|
+
children: ReactNode;
|
|
2544
|
+
};
|
|
2545
|
+
/**
|
|
2546
|
+
* Responsibilities:
|
|
2547
|
+
* - ROOT only: render hidden SVG gradient definitions (`aigradient-600`,
|
|
2548
|
+
* `aigradient-700`). The IDs are hardcoded, so a nested provider must not
|
|
2549
|
+
* re-emit them or the document gains duplicate (HTML-invalid) IDs.
|
|
2550
|
+
* - Set `data-brand="<brand.id>"` on `<html>` and inject the matching `--color-*` /
|
|
2551
|
+
* `--radius-*` CSS variables (for the resolved light/dark mode) so chrome
|
|
2552
|
+
* re-skins for the supplied brand.
|
|
2553
|
+
* - ROOT only: set `data-theme` (`light` | `dark`) on `<html>` and own the
|
|
2554
|
+
* `prefers-color-scheme` media listener when `colorScheme === 'system'`.
|
|
2555
|
+
* A nested provider inherits the resolved mode from the parent context and
|
|
2556
|
+
* touches neither `data-theme` nor a media listener.
|
|
2557
|
+
* - Expose `{ brand, setBrand?, colorScheme, resolvedMode }` via `useTheme()`.
|
|
2558
|
+
* - ROOT only: mount a Radix `TooltipProvider` around the subtree so any
|
|
2559
|
+
* `Tooltip` works without a separately-mounted provider. Nested providers
|
|
2560
|
+
* inherit the root's `TooltipProvider` via context, so they add none of their
|
|
2561
|
+
* own — this keeps a single delay group across the app (apps like kbc-ui mount
|
|
2562
|
+
* dozens of scoped `ThemeProvider`s, so re-mounting a provider per subtree
|
|
2563
|
+
* would fragment tooltip delay behavior). A consumer's own `TooltipProvider`
|
|
2564
|
+
* still composes fine.
|
|
2565
|
+
*
|
|
2566
|
+
* Brand × mode: the active mode's palette is injected inline on `<html>`. When
|
|
2567
|
+
* the resolved mode is `dark` and the brand has no `colorsDark`, the colour
|
|
2568
|
+
* vars are NOT emitted — the stylesheet `[data-theme='dark']` block supplies
|
|
2569
|
+
* them, so no `!important` override is ever needed.
|
|
2570
|
+
*
|
|
2571
|
+
* `data-brand` (brand id) and `data-theme` (light/dark) are separate axes so
|
|
2572
|
+
* they compose without clobbering each other.
|
|
2573
|
+
*/
|
|
2574
|
+
declare const ThemeProvider: ({ brand, setBrand, colorScheme, children, }: Props$X) => react_jsx_runtime.JSX.Element;
|
|
2575
|
+
|
|
2576
|
+
/**
|
|
2577
|
+
* Read the active brand (and optional setter) from the nearest `<ThemeProvider>`.
|
|
2578
|
+
*
|
|
2579
|
+
* Throws if no provider is mounted — mirrors TanStack Query's `useQueryClient`
|
|
2580
|
+
* error UX so missing-provider bugs surface as a clear runtime message instead
|
|
2581
|
+
* of a confusing "undefined.brand" downstream.
|
|
2582
|
+
*/
|
|
2583
|
+
declare const useTheme: () => ThemeContextValue;
|
|
2584
|
+
|
|
2585
|
+
/**
|
|
2586
|
+
* Read the configured color scheme and the effective light/dark mode from the
|
|
2587
|
+
* nearest `<ThemeProvider>`. Read-only — there is no setter (yet).
|
|
2588
|
+
*
|
|
2589
|
+
* Throws if no provider is mounted (mirrors `useTheme()`).
|
|
2590
|
+
*/
|
|
2591
|
+
declare const useColorScheme: () => {
|
|
2592
|
+
colorScheme: ColorScheme;
|
|
2593
|
+
resolvedMode: ResolvedMode;
|
|
2594
|
+
};
|
|
2595
|
+
|
|
2596
|
+
declare const useIsLegacyBrand: () => boolean;
|
|
2597
|
+
|
|
2598
|
+
type Props$W = {
|
|
2599
|
+
brand: Brand;
|
|
2600
|
+
colorScheme?: ColorScheme;
|
|
2601
|
+
children: ReactNode;
|
|
2602
|
+
};
|
|
2603
|
+
/**
|
|
2604
|
+
* Storybook decorator that wraps every story in a `ThemeProvider`. Wire it
|
|
2605
|
+
* once in `.storybook/preview.tsx` (added to the global `decorators` array),
|
|
2606
|
+
* driven by the `brand` global the toolbar item sets. Pair with
|
|
2607
|
+
* `resolveStorybookBrand` + `themeToolbarBrands` from `./storybookBrands` to
|
|
2608
|
+
* build the toolbar. This is the empirical brand-swap harness UT-4047
|
|
2609
|
+
* promised for the layer-0 contract.
|
|
2610
|
+
*
|
|
2611
|
+
* `colorScheme` (driven by the **Mode** toolbar) is forwarded to the provider
|
|
2612
|
+
* so flipping it sets `data-theme` and emits the active mode's palette — the
|
|
2613
|
+
* empirical light/dark switch. The story is rendered on a `bg-background`
|
|
2614
|
+
* surface so the mode is actually visible (otherwise dark-mode text sits on
|
|
2615
|
+
* the unrelated canvas backdrop).
|
|
2616
|
+
*/
|
|
2617
|
+
declare const ThemeDecorator: ({ brand, colorScheme, children }: Props$W) => react_jsx_runtime.JSX.Element;
|
|
2618
|
+
|
|
2619
|
+
/**
|
|
2620
|
+
* Default toolbar items shipped with `ThemeDecorator` — the same brand IDs
|
|
2621
|
+
* the registry exports today. Re-exported so a downstream Storybook config
|
|
2622
|
+
* can extend the list with additional brands without re-implementing the
|
|
2623
|
+
* decorator wiring.
|
|
2624
|
+
*/
|
|
2625
|
+
declare const themeToolbarBrands: {
|
|
2626
|
+
id: string;
|
|
2627
|
+
name: string;
|
|
2628
|
+
colors: {
|
|
2629
|
+
foreground: string;
|
|
2630
|
+
background: string;
|
|
2631
|
+
muted: string;
|
|
2632
|
+
mutedForeground: string;
|
|
2633
|
+
border: string;
|
|
2634
|
+
primary: string;
|
|
2635
|
+
primaryForeground: string;
|
|
2636
|
+
destructive: string;
|
|
2637
|
+
destructiveForeground: string;
|
|
2638
|
+
accent?: string | undefined;
|
|
2639
|
+
accentForeground?: string | undefined;
|
|
2640
|
+
};
|
|
2641
|
+
shell: "sidebar" | "topnav";
|
|
2642
|
+
colorsDark?: {
|
|
2643
|
+
foreground: string;
|
|
2644
|
+
background: string;
|
|
2645
|
+
muted: string;
|
|
2646
|
+
mutedForeground: string;
|
|
2647
|
+
border: string;
|
|
2648
|
+
primary: string;
|
|
2649
|
+
primaryForeground: string;
|
|
2650
|
+
destructive: string;
|
|
2651
|
+
destructiveForeground: string;
|
|
2652
|
+
accent?: string | undefined;
|
|
2653
|
+
accentForeground?: string | undefined;
|
|
2654
|
+
} | undefined;
|
|
2655
|
+
sidebarColors?: {
|
|
2656
|
+
sidebar?: string | undefined;
|
|
2657
|
+
sidebarForeground?: string | undefined;
|
|
2658
|
+
sidebarPrimary?: string | undefined;
|
|
2659
|
+
sidebarPrimaryForeground?: string | undefined;
|
|
2660
|
+
sidebarAccent?: string | undefined;
|
|
2661
|
+
sidebarAccentForeground?: string | undefined;
|
|
2662
|
+
sidebarBorder?: string | undefined;
|
|
2663
|
+
sidebarRing?: string | undefined;
|
|
2664
|
+
} | undefined;
|
|
2665
|
+
sidebarColorsDark?: {
|
|
2666
|
+
sidebar?: string | undefined;
|
|
2667
|
+
sidebarForeground?: string | undefined;
|
|
2668
|
+
sidebarPrimary?: string | undefined;
|
|
2669
|
+
sidebarPrimaryForeground?: string | undefined;
|
|
2670
|
+
sidebarAccent?: string | undefined;
|
|
2671
|
+
sidebarAccentForeground?: string | undefined;
|
|
2672
|
+
sidebarBorder?: string | undefined;
|
|
2673
|
+
sidebarRing?: string | undefined;
|
|
2674
|
+
} | undefined;
|
|
2675
|
+
typography?: {
|
|
2676
|
+
fontFamily: string;
|
|
2677
|
+
} | undefined;
|
|
2678
|
+
radii?: {
|
|
2679
|
+
sm: string;
|
|
2680
|
+
md: string;
|
|
2681
|
+
lg: string;
|
|
2682
|
+
} | undefined;
|
|
2683
|
+
density?: "comfortable" | "compact" | undefined;
|
|
2684
|
+
}[];
|
|
2685
|
+
/**
|
|
2686
|
+
* Resolve a brand ID coming from the Storybook globals object. Falls back to
|
|
2687
|
+
* the canonical Keboola brand if the ID is unknown — keeps the decorator
|
|
2688
|
+
* defensive against stale URL state.
|
|
2689
|
+
*/
|
|
2690
|
+
declare const resolveStorybookBrand: (id: unknown) => Brand;
|
|
2691
|
+
|
|
2692
|
+
type Props$V = {
|
|
2693
|
+
/** The active color scheme. Controlled — pair with `onValueChange`. */
|
|
2694
|
+
value: ColorScheme;
|
|
2695
|
+
/** Called with the chosen scheme when the user picks a menu item. */
|
|
2696
|
+
onValueChange: (value: ColorScheme) => void;
|
|
2697
|
+
/** Trigger button size. Defaults to `small`. */
|
|
2698
|
+
size?: 'small' | 'medium';
|
|
2699
|
+
className?: string;
|
|
2700
|
+
};
|
|
2701
|
+
/**
|
|
2702
|
+
* Light / dark / system control — a single icon-only `Button` (showing the active
|
|
2703
|
+
* scheme) that opens a `DropdownMenu` of the three options. Composed, not a new
|
|
2704
|
+
* primitive. **Controlled:** it renders `value` and reports changes; it does not
|
|
2705
|
+
* own the state. `ThemeProvider.colorScheme` is a controlled prop, so wire this to
|
|
2706
|
+
* wherever that state lives:
|
|
2707
|
+
*
|
|
2708
|
+
* ```tsx
|
|
2709
|
+
* const [scheme, setScheme] = useState<ColorScheme>('system');
|
|
2710
|
+
* <ThemeProvider colorScheme={scheme}>…</ThemeProvider>
|
|
2711
|
+
* <ColorModeSwitch value={scheme} onValueChange={setScheme} />
|
|
2712
|
+
* ```
|
|
2713
|
+
*
|
|
2714
|
+
* The menu uses `DropdownMenu.RadioGroup` for single-select semantics; the active
|
|
2715
|
+
* item is marked as checked. The trigger's `aria-label` names the current scheme.
|
|
2716
|
+
*/
|
|
2717
|
+
declare const ColorModeSwitch: ({ value, onValueChange, size, className }: Props$V) => react_jsx_runtime.JSX.Element;
|
|
2718
|
+
|
|
2719
|
+
type InputGroupProps$3 = Pick<ComponentProps<typeof InputGroup>, 'variant' | 'focusVariant' | 'state' | 'sizing'>;
|
|
2720
|
+
type InputGroupInputProps$3 = Omit<ComponentProps<typeof InputGroup.Input>, 'value' | 'defaultValue' | 'type' | 'prefix'>;
|
|
2721
|
+
type Props$U = InputGroupProps$3 & InputGroupInputProps$3 & {
|
|
2526
2722
|
value?: number | null;
|
|
2527
2723
|
defaultValue?: number | null;
|
|
2528
2724
|
onValueChange?: (value: number | null) => void;
|
|
@@ -2530,13 +2726,13 @@ type Props$V = InputGroupProps$2 & InputGroupInputProps$2 & {
|
|
|
2530
2726
|
prefix?: ReactNode;
|
|
2531
2727
|
suffix?: ReactNode;
|
|
2532
2728
|
};
|
|
2533
|
-
declare const NumberInput: ({ ref, state, variant, focusVariant, sizing, className, value, defaultValue, onValueChange, onValueBlur, onChange, onBlur, prefix, suffix, ...inputProps }: Props$
|
|
2729
|
+
declare const NumberInput: ({ ref, state, variant, focusVariant, sizing, className, value, defaultValue, onValueChange, onValueBlur, onChange, onBlur, prefix, suffix, ...inputProps }: Props$U & {
|
|
2534
2730
|
ref?: Ref<ElementRef<"input">>;
|
|
2535
2731
|
}) => react_jsx_runtime.JSX.Element;
|
|
2536
2732
|
|
|
2537
|
-
type InputGroupProps$
|
|
2538
|
-
type InputGroupInputProps$
|
|
2539
|
-
type Props$
|
|
2733
|
+
type InputGroupProps$2 = Pick<ComponentProps<typeof InputGroup>, 'variant' | 'focusVariant' | 'state' | 'sizing'>;
|
|
2734
|
+
type InputGroupInputProps$2 = Omit<ComponentProps<typeof InputGroup.Input>, 'value' | 'defaultValue' | 'type' | 'autoComplete'>;
|
|
2735
|
+
type Props$T = InputGroupProps$2 & InputGroupInputProps$2 & {
|
|
2540
2736
|
value?: string | null;
|
|
2541
2737
|
defaultValue?: string | null;
|
|
2542
2738
|
onValueChange?: (value: string) => void;
|
|
@@ -2546,7 +2742,20 @@ type Props$U = InputGroupProps$1 & InputGroupInputProps$1 & {
|
|
|
2546
2742
|
autoComplete?: 'new-password' | 'current-password' | 'off';
|
|
2547
2743
|
defaultPasswordVisibility?: boolean;
|
|
2548
2744
|
};
|
|
2549
|
-
declare const PasswordInput: ({ ref, state, variant, focusVariant, sizing, className, value: valueProp, defaultValue, onValueChange, onValueBlur, onChange, onBlur, onKeyDown, onKeyUp, onMouseDown, allowClear, allowPasswordToggle, autoComplete, defaultPasswordVisibility, disabled, readOnly, ...restInputProps }: Props$
|
|
2745
|
+
declare const PasswordInput: ({ ref, state, variant, focusVariant, sizing, className, value: valueProp, defaultValue, onValueChange, onValueBlur, onChange, onBlur, onKeyDown, onKeyUp, onMouseDown, allowClear, allowPasswordToggle, autoComplete, defaultPasswordVisibility, disabled, readOnly, ...restInputProps }: Props$T & {
|
|
2746
|
+
ref?: Ref<ElementRef<"input">>;
|
|
2747
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
2748
|
+
|
|
2749
|
+
type InputGroupProps$1 = Pick<ComponentProps<typeof InputGroup>, 'variant' | 'focusVariant' | 'state' | 'sizing'>;
|
|
2750
|
+
type InputGroupInputProps$1 = Omit<ComponentProps<typeof InputGroup.Input>, 'value' | 'defaultValue' | 'type'>;
|
|
2751
|
+
type Props$S = InputGroupProps$1 & InputGroupInputProps$1 & {
|
|
2752
|
+
value?: string | null;
|
|
2753
|
+
defaultValue?: string | null;
|
|
2754
|
+
onValueChange?: (value: string | null) => void;
|
|
2755
|
+
onValueBlur?: (value: string | null) => void;
|
|
2756
|
+
allowClear?: boolean;
|
|
2757
|
+
};
|
|
2758
|
+
declare const TimeInput: ({ ref, state, variant, focusVariant, sizing, className, value: valueProp, defaultValue, onValueChange, onValueBlur, onChange, onBlur, allowClear, disabled, readOnly, placeholder, ...restInputProps }: Props$S & {
|
|
2550
2759
|
ref?: Ref<ElementRef<"input">>;
|
|
2551
2760
|
}) => react_jsx_runtime.JSX.Element;
|
|
2552
2761
|
|
|
@@ -2602,7 +2811,7 @@ type InputGroupInputProps = Omit<ComponentProps<typeof InputGroup.Input>, 'value
|
|
|
2602
2811
|
* is treated as "not provided" — the component falls back to `defaultValue` (or, if absent, internal
|
|
2603
2812
|
* state initialized to empty). `value={""}` is controlled-empty.
|
|
2604
2813
|
*/
|
|
2605
|
-
type Props$
|
|
2814
|
+
type Props$R = InputGroupProps & InputGroupInputProps & {
|
|
2606
2815
|
value?: string | null;
|
|
2607
2816
|
defaultValue?: string | null;
|
|
2608
2817
|
/** Called with the latest string value after the debounce window (default 300ms). Fires synchronously on clear and when `disableDebounce` is set. For sync echo of every keystroke use `onChange`. */
|
|
@@ -2631,7 +2840,7 @@ type Props$T = InputGroupProps & InputGroupInputProps & {
|
|
|
2631
2840
|
*
|
|
2632
2841
|
* @see RECIPES.md#filter-toolbar — for the search + filter chips toolbar pattern
|
|
2633
2842
|
*/
|
|
2634
|
-
declare const SearchInput: ({ ref, state, variant, focusVariant, sizing, className, value: valueProp, defaultValue, onValueChange, onValueBlur, onChange, onBlur, onClear, allowClear, disableDebounce, debounceDelay, disabled, readOnly, ...restInputProps }: Props$
|
|
2843
|
+
declare const SearchInput: ({ ref, state, variant, focusVariant, sizing, className, value: valueProp, defaultValue, onValueChange, onValueBlur, onChange, onBlur, onClear, allowClear, disableDebounce, debounceDelay, disabled, readOnly, ...restInputProps }: Props$R & {
|
|
2635
2844
|
ref?: Ref<ElementRef<"input">>;
|
|
2636
2845
|
}) => react_jsx_runtime.JSX.Element;
|
|
2637
2846
|
|
|
@@ -2656,15 +2865,15 @@ declare const addonVariants: (props?: ({
|
|
|
2656
2865
|
align?: "inline-start" | "inline-end" | null | undefined;
|
|
2657
2866
|
variant?: "inline" | "floating" | null | undefined;
|
|
2658
2867
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
2659
|
-
type Props$
|
|
2660
|
-
declare const BadgeAddon: ({ ref, align, variant, className, ...rest }: Props$
|
|
2868
|
+
type Props$Q = ComponentProps<'div'> & VariantProps<typeof addonVariants>;
|
|
2869
|
+
declare const BadgeAddon: ({ ref, align, variant, className, ...rest }: Props$Q & {
|
|
2661
2870
|
ref?: Ref<ElementRef<"div">>;
|
|
2662
2871
|
}) => react_jsx_runtime.JSX.Element;
|
|
2663
2872
|
|
|
2664
|
-
type Props$
|
|
2873
|
+
type Props$P = ComponentProps<'span'> & {
|
|
2665
2874
|
asChild?: boolean;
|
|
2666
2875
|
};
|
|
2667
|
-
declare const BadgeLabel: ({ ref, className, asChild, ...rest }: Props$
|
|
2876
|
+
declare const BadgeLabel: ({ ref, className, asChild, ...rest }: Props$P & {
|
|
2668
2877
|
ref?: Ref<ElementRef<"span">>;
|
|
2669
2878
|
}) => react_jsx_runtime.JSX.Element;
|
|
2670
2879
|
|
|
@@ -2673,8 +2882,8 @@ declare const badgeRootVariants: (props?: ({
|
|
|
2673
2882
|
color?: "orange" | "blue" | "red" | "green" | "gray" | "cyan" | "purple" | "teal" | "white" | "gray-darker" | "gray-inverse" | "green-darker" | "green-inverse" | "blue-inverse" | "orange-inverse" | "teal-inverse" | "purple-inverse" | "cyan-inverse" | "sidebar-primary" | null | undefined;
|
|
2674
2883
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
2675
2884
|
|
|
2676
|
-
type Props$
|
|
2677
|
-
declare const BadgeRoot: ({ ref, variant, color, className, children, ...rest }: Props$
|
|
2885
|
+
type Props$O = ComponentProps<'div'> & VariantProps<typeof badgeRootVariants>;
|
|
2886
|
+
declare const BadgeRoot: ({ ref, variant, color, className, children, ...rest }: Props$O & {
|
|
2678
2887
|
ref?: Ref<ElementRef<"div">>;
|
|
2679
2888
|
}) => react_jsx_runtime.JSX.Element;
|
|
2680
2889
|
|
|
@@ -2686,14 +2895,14 @@ type BadgeLabelProps = ComponentProps<typeof BadgeLabel>;
|
|
|
2686
2895
|
* `purple/cyan/teal/blue/gray` for decorative tags) — colours stay fixed across brand themes.
|
|
2687
2896
|
* Pass `prefix` / `suffix` for icon-style addons.
|
|
2688
2897
|
*/
|
|
2689
|
-
type Props$
|
|
2898
|
+
type Props$N = Pick<BadgeRootProps, 'variant' | 'color'> & Omit<BadgeLabelProps, 'prefix'> & {
|
|
2690
2899
|
prefix?: ReactNode;
|
|
2691
2900
|
prefixVariant?: AddonVariant;
|
|
2692
2901
|
suffix?: ReactNode;
|
|
2693
2902
|
suffixVariant?: AddonVariant;
|
|
2694
2903
|
labelClassName?: string;
|
|
2695
2904
|
};
|
|
2696
|
-
declare const Badge: (({ ref, variant, color, prefix, prefixVariant, suffix, suffixVariant, className, labelClassName, ...labelProps }: Props$
|
|
2905
|
+
declare const Badge: (({ ref, variant, color, prefix, prefixVariant, suffix, suffixVariant, className, labelClassName, ...labelProps }: Props$N & {
|
|
2697
2906
|
ref?: Ref<ElementRef<"span">>;
|
|
2698
2907
|
}) => react_jsx_runtime.JSX.Element) & {
|
|
2699
2908
|
Root: ({ ref, variant, color, className, children, ...rest }: (react.ClassAttributes<HTMLDivElement> & react.HTMLAttributes<HTMLDivElement> & class_variance_authority.VariantProps<(props?: ({
|
|
@@ -2725,45 +2934,45 @@ type TagOption = {
|
|
|
2725
2934
|
disabled?: boolean;
|
|
2726
2935
|
};
|
|
2727
2936
|
|
|
2728
|
-
type Props$
|
|
2937
|
+
type Props$M = {
|
|
2729
2938
|
onCreate?: (search: string) => void;
|
|
2730
2939
|
} & Pick<ComponentProps<typeof Command.Item>, 'value'>;
|
|
2731
|
-
declare const TagSelectCreateItem: ({ onCreate, value }: Props$
|
|
2940
|
+
declare const TagSelectCreateItem: ({ onCreate, value }: Props$M) => react_jsx_runtime.JSX.Element;
|
|
2732
2941
|
|
|
2733
|
-
type Props$
|
|
2942
|
+
type Props$L = {
|
|
2734
2943
|
value: string[];
|
|
2735
2944
|
onAdd?: (selected: string[]) => void;
|
|
2736
2945
|
};
|
|
2737
|
-
declare const TagSelectValue: ({ value, onAdd }: Props$
|
|
2946
|
+
declare const TagSelectValue: ({ value, onAdd }: Props$L) => react_jsx_runtime.JSX.Element;
|
|
2738
2947
|
|
|
2739
|
-
type Props$
|
|
2948
|
+
type Props$K = {
|
|
2740
2949
|
options?: TagOption[];
|
|
2741
2950
|
} & Pick<ComponentProps<typeof TagSelectValue>, 'onAdd'> & Pick<ComponentProps<typeof TagSelectCreateItem>, 'onCreate'>;
|
|
2742
|
-
declare const TagSelectList: ({ options, onAdd, onCreate }: Props$
|
|
2951
|
+
declare const TagSelectList: ({ options, onAdd, onCreate }: Props$K) => react_jsx_runtime.JSX.Element;
|
|
2743
2952
|
|
|
2744
|
-
type Props$
|
|
2953
|
+
type Props$J = {
|
|
2745
2954
|
children: ReactNode;
|
|
2746
2955
|
} & ComponentProps<typeof TagSelectList>;
|
|
2747
|
-
declare const TagSelectPopover: ({ children, onAdd, options, onCreate }: Props$
|
|
2956
|
+
declare const TagSelectPopover: ({ children, onAdd, options, onCreate }: Props$J) => react_jsx_runtime.JSX.Element;
|
|
2748
2957
|
|
|
2749
2958
|
type OnValueChangeHandler = (value: {
|
|
2750
2959
|
action: 'add' | 'remove';
|
|
2751
2960
|
tags: TagOption[];
|
|
2752
2961
|
allTags: TagOption[];
|
|
2753
2962
|
}) => void;
|
|
2754
|
-
type Props$
|
|
2963
|
+
type Props$I = {
|
|
2755
2964
|
value?: TagOption[];
|
|
2756
2965
|
onValueChange: OnValueChangeHandler;
|
|
2757
2966
|
disabled?: boolean;
|
|
2758
2967
|
} & Pick<ComponentProps<typeof TagSelectPopover>, 'options' | 'onCreate'>;
|
|
2759
|
-
declare const Tagger: ({ options, value, onCreate, onValueChange, disabled, }: Props$
|
|
2968
|
+
declare const Tagger: ({ options, value, onCreate, onValueChange, disabled, }: Props$I) => react_jsx_runtime.JSX.Element | null;
|
|
2760
2969
|
|
|
2761
2970
|
/**
|
|
2762
2971
|
* Props for `FileUpload`. The component is uncontrolled with respect to the file
|
|
2763
2972
|
* list — the caller owns the selected `File[]` and updates it from `onFilesChange`.
|
|
2764
2973
|
* `FileUpload` only signals drop events; it does not store the file array.
|
|
2765
2974
|
*/
|
|
2766
|
-
type Props$
|
|
2975
|
+
type Props$H = {
|
|
2767
2976
|
/** MIME / extension filter passed straight to react-dropzone. */
|
|
2768
2977
|
accept?: Accept;
|
|
2769
2978
|
/** Max size per file, in bytes. Oversized files are rejected and surface in `onFilesRejected`. */
|
|
@@ -2782,7 +2991,7 @@ type Props$J = {
|
|
|
2782
2991
|
forcedState?: 'idle' | 'dragging' | 'error';
|
|
2783
2992
|
children: ReactNode;
|
|
2784
2993
|
} & Omit<HTMLAttributes<HTMLDivElement>, 'children' | 'onDrop'>;
|
|
2785
|
-
declare const FileUpload: (({ accept, maxSize, maxFiles, multiple, disabled, onFilesChange, onFilesRejected, forcedState, children, className, ...rest }: Props$
|
|
2994
|
+
declare const FileUpload: (({ accept, maxSize, maxFiles, multiple, disabled, onFilesChange, onFilesRejected, forcedState, children, className, ...rest }: Props$H) => react_jsx_runtime.JSX.Element) & {
|
|
2786
2995
|
DropZone: ({ children, className, ...rest }: {
|
|
2787
2996
|
children?: ReactNode;
|
|
2788
2997
|
} & Omit<HTMLAttributes<HTMLDivElement>, "children">) => react_jsx_runtime.JSX.Element;
|
|
@@ -4106,47 +4315,47 @@ declare const FormGroup: {
|
|
|
4106
4315
|
declare const helpVariants: (props?: ({
|
|
4107
4316
|
state?: "default" | "error" | "warning" | null | undefined;
|
|
4108
4317
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
4109
|
-
type Props$
|
|
4318
|
+
type Props$G = {
|
|
4110
4319
|
className?: string;
|
|
4111
4320
|
children?: ReactNode;
|
|
4112
4321
|
testId?: string;
|
|
4113
4322
|
} & VariantProps<typeof helpVariants>;
|
|
4114
|
-
declare const HelpBlock: ({ children, className, state, testId }: Props$
|
|
4323
|
+
declare const HelpBlock: ({ children, className, state, testId }: Props$G) => react_jsx_runtime.JSX.Element | null;
|
|
4115
4324
|
|
|
4116
4325
|
type AnswerItem = {
|
|
4117
4326
|
question: string;
|
|
4118
4327
|
answer?: string;
|
|
4119
4328
|
};
|
|
4120
4329
|
type Variant$5 = 'success' | 'dismissed';
|
|
4121
|
-
type Props$
|
|
4330
|
+
type Props$F = {
|
|
4122
4331
|
items: readonly AnswerItem[];
|
|
4123
4332
|
variant?: Variant$5;
|
|
4124
4333
|
noAnswerLabel?: string;
|
|
4125
4334
|
};
|
|
4126
|
-
declare const AnswerSummary: ({ items, variant, noAnswerLabel, }: Props$
|
|
4335
|
+
declare const AnswerSummary: ({ items, variant, noAnswerLabel, }: Props$F) => react_jsx_runtime.JSX.Element;
|
|
4127
4336
|
|
|
4128
4337
|
type Variant$4 = 'success' | 'error' | 'processing' | 'dismissed';
|
|
4129
|
-
type Props$
|
|
4338
|
+
type Props$E = {
|
|
4130
4339
|
isExpanded: boolean;
|
|
4131
4340
|
onToggle: () => void;
|
|
4132
4341
|
label: ReactNode;
|
|
4133
4342
|
variant?: Variant$4;
|
|
4134
4343
|
};
|
|
4135
|
-
declare const CollapsibleStepHeader: ({ isExpanded, onToggle, label, variant, }: Props$
|
|
4344
|
+
declare const CollapsibleStepHeader: ({ isExpanded, onToggle, label, variant, }: Props$E) => react_jsx_runtime.JSX.Element;
|
|
4136
4345
|
|
|
4137
|
-
type Props$
|
|
4346
|
+
type Props$D = {
|
|
4138
4347
|
children: ReactNode;
|
|
4139
4348
|
};
|
|
4140
|
-
declare const InlineStepDetail: ({ children }: Props$
|
|
4349
|
+
declare const InlineStepDetail: ({ children }: Props$D) => react_jsx_runtime.JSX.Element;
|
|
4141
4350
|
|
|
4142
4351
|
type Variant$3 = 'processing' | 'success' | 'error' | 'dismissed';
|
|
4143
|
-
type Props$
|
|
4352
|
+
type Props$C = {
|
|
4144
4353
|
variant: Variant$3;
|
|
4145
4354
|
children: ReactNode;
|
|
4146
4355
|
};
|
|
4147
|
-
declare const InlineStepLabel: ({ variant, children }: Props$
|
|
4356
|
+
declare const InlineStepLabel: ({ variant, children }: Props$C) => react_jsx_runtime.JSX.Element;
|
|
4148
4357
|
|
|
4149
|
-
type Props$
|
|
4358
|
+
type Props$B = {
|
|
4150
4359
|
user?: {
|
|
4151
4360
|
name: string | undefined;
|
|
4152
4361
|
email: string | undefined;
|
|
@@ -4156,17 +4365,17 @@ type Props$D = {
|
|
|
4156
4365
|
size?: number;
|
|
4157
4366
|
variant?: 'circle' | 'rounded';
|
|
4158
4367
|
} & ComponentProps<'span'>;
|
|
4159
|
-
declare const Avatar: ({ ref, user, fallback, size, className, variant, ...props }: Props$
|
|
4368
|
+
declare const Avatar: ({ ref, user, fallback, size, className, variant, ...props }: Props$B & {
|
|
4160
4369
|
ref?: Ref<ElementRef<"span">>;
|
|
4161
4370
|
}) => react_jsx_runtime.JSX.Element;
|
|
4162
4371
|
|
|
4163
|
-
type Props$
|
|
4372
|
+
type Props$A = {
|
|
4164
4373
|
variant: 'user' | 'assistant';
|
|
4165
4374
|
user?: ComponentProps<typeof Avatar>['user'];
|
|
4166
4375
|
actions?: ReactNode;
|
|
4167
4376
|
createdAt?: string;
|
|
4168
4377
|
} & PropsWithChildren;
|
|
4169
|
-
declare const MessageBubble: ({ variant, children, user, actions, createdAt }: Props$
|
|
4378
|
+
declare const MessageBubble: ({ variant, children, user, actions, createdAt }: Props$A) => react_jsx_runtime.JSX.Element;
|
|
4170
4379
|
|
|
4171
4380
|
type PlanApprovalStatus = 'pending' | 'approved' | 'dismissed' | 'changes-requested';
|
|
4172
4381
|
type PlanApprovalProps = {
|
|
@@ -4214,17 +4423,17 @@ type PromptCommand = {
|
|
|
4214
4423
|
};
|
|
4215
4424
|
|
|
4216
4425
|
type SubmitStatus = 'submitted' | 'ready' | 'streaming' | 'interrupted';
|
|
4217
|
-
type Props$
|
|
4426
|
+
type Props$z = Pick<ComponentProps<typeof Button>, 'disabled'> & {
|
|
4218
4427
|
status?: SubmitStatus;
|
|
4219
4428
|
};
|
|
4220
|
-
declare const PromptInputSubmit: ({ ref, disabled, status, }: Props$
|
|
4429
|
+
declare const PromptInputSubmit: ({ ref, disabled, status, }: Props$z & {
|
|
4221
4430
|
ref?: Ref<ElementRef<"button">>;
|
|
4222
4431
|
}) => react_jsx_runtime.JSX.Element;
|
|
4223
4432
|
|
|
4224
4433
|
declare const promptInputVariants: (props?: ({
|
|
4225
4434
|
variant?: "inline" | "default" | null | undefined;
|
|
4226
4435
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
4227
|
-
type Props$
|
|
4436
|
+
type Props$y = {
|
|
4228
4437
|
onSend?: (value: string) => void;
|
|
4229
4438
|
onAbort?: () => void;
|
|
4230
4439
|
onContinue?: () => void;
|
|
@@ -4238,7 +4447,7 @@ type Props$A = {
|
|
|
4238
4447
|
commands?: PromptCommand[];
|
|
4239
4448
|
} & VariantProps<typeof promptInputVariants> & Pick<ComponentProps<typeof react_textarea_autosize__default>, 'placeholder' | 'minRows' | 'maxRows' | 'disabled' | 'defaultValue' | 'autoFocus'> & ComponentProps<typeof PromptInputSubmit>;
|
|
4240
4449
|
declare const PromptInput: {
|
|
4241
|
-
({ onSend, onAbort, onContinue, prefix, variant, suffix, disabled, disableSubmit, value, onValueChange, status, maxRows, minRows, commands, ...textareaProps }: Props$
|
|
4450
|
+
({ onSend, onAbort, onContinue, prefix, variant, suffix, disabled, disableSubmit, value, onValueChange, status, maxRows, minRows, commands, ...textareaProps }: Props$y): react_jsx_runtime.JSX.Element;
|
|
4242
4451
|
Action: ({ ref, onMouseDown, ...rest }: react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement> & {
|
|
4243
4452
|
ref?: react.Ref<ElementRef<"button">>;
|
|
4244
4453
|
}) => react_jsx_runtime.JSX.Element;
|
|
@@ -4250,7 +4459,7 @@ type QuestionOption = {
|
|
|
4250
4459
|
description?: string;
|
|
4251
4460
|
preview?: string;
|
|
4252
4461
|
};
|
|
4253
|
-
type Props$
|
|
4462
|
+
type Props$x = {
|
|
4254
4463
|
question: string;
|
|
4255
4464
|
header?: string;
|
|
4256
4465
|
options: readonly QuestionOption[];
|
|
@@ -4273,7 +4482,7 @@ type Props$z = {
|
|
|
4273
4482
|
renderPreview?: (content: string) => ReactNode;
|
|
4274
4483
|
className?: string;
|
|
4275
4484
|
};
|
|
4276
|
-
declare const Question: ({ question, header, options, multiSelect, selectedOptionIds, onSelectionChange, customAnswer, onCustomAnswerChange, onCustomAnswerConfirm, showCustomAnswer, customAnswerPlaceholder, showSkip, onSkip, onClose, onNext, submitTooltip, onPrevious, currentStep, totalSteps, renderPreview, className, }: Props$
|
|
4485
|
+
declare const Question: ({ question, header, options, multiSelect, selectedOptionIds, onSelectionChange, customAnswer, onCustomAnswerChange, onCustomAnswerConfirm, showCustomAnswer, customAnswerPlaceholder, showSkip, onSkip, onClose, onNext, submitTooltip, onPrevious, currentStep, totalSteps, renderPreview, className, }: Props$x) => react_jsx_runtime.JSX.Element;
|
|
4277
4486
|
|
|
4278
4487
|
type QuestionStep = {
|
|
4279
4488
|
question: string;
|
|
@@ -4287,7 +4496,7 @@ type QuestionAnswers = {
|
|
|
4287
4496
|
selections: Record<number, readonly string[]>;
|
|
4288
4497
|
customAnswers: Record<number, string>;
|
|
4289
4498
|
};
|
|
4290
|
-
type Props$
|
|
4499
|
+
type Props$w = {
|
|
4291
4500
|
steps: readonly [QuestionStep, ...QuestionStep[]];
|
|
4292
4501
|
showSkip?: boolean;
|
|
4293
4502
|
onSubmit?: (answers: QuestionAnswers) => void;
|
|
@@ -4295,23 +4504,23 @@ type Props$y = {
|
|
|
4295
4504
|
renderPreview?: (content: string) => ReactNode;
|
|
4296
4505
|
className?: string;
|
|
4297
4506
|
};
|
|
4298
|
-
declare const QuestionBlock: ({ steps, showSkip, onSubmit, onClose, renderPreview, className, }: Props$
|
|
4507
|
+
declare const QuestionBlock: ({ steps, showSkip, onSubmit, onClose, renderPreview, className, }: Props$w) => react_jsx_runtime.JSX.Element;
|
|
4299
4508
|
|
|
4300
|
-
type Props$
|
|
4509
|
+
type Props$v = {
|
|
4301
4510
|
label: string;
|
|
4302
4511
|
disabled?: boolean;
|
|
4303
4512
|
onClick: () => void;
|
|
4304
4513
|
icon?: ReactNode;
|
|
4305
4514
|
className?: string;
|
|
4306
4515
|
};
|
|
4307
|
-
declare const SuggestedPrompt: ({ label, disabled, onClick, icon, className }: Props$
|
|
4516
|
+
declare const SuggestedPrompt: ({ label, disabled, onClick, icon, className }: Props$v) => react_jsx_runtime.JSX.Element;
|
|
4308
4517
|
|
|
4309
4518
|
type ThinkingIndicatorProps = {
|
|
4310
4519
|
label?: string;
|
|
4311
4520
|
};
|
|
4312
4521
|
declare const ThinkingIndicator: ({ label }: ThinkingIndicatorProps) => react_jsx_runtime.JSX.Element;
|
|
4313
4522
|
|
|
4314
|
-
type Props$
|
|
4523
|
+
type Props$u = {
|
|
4315
4524
|
value: number;
|
|
4316
4525
|
alert?: boolean;
|
|
4317
4526
|
children: ReactNode;
|
|
@@ -4325,19 +4534,19 @@ type Props$w = {
|
|
|
4325
4534
|
side?: ComponentProps<typeof HoverCard.Content>['side'];
|
|
4326
4535
|
sideOffset?: ComponentProps<typeof HoverCard.Content>['sideOffset'];
|
|
4327
4536
|
};
|
|
4328
|
-
declare const UsageStats: ({ value, alert, children, className, ariaLabel, align, side, sideOffset, }: Props$
|
|
4537
|
+
declare const UsageStats: ({ value, alert, children, className, ariaLabel, align, side, sideOffset, }: Props$u) => react_jsx_runtime.JSX.Element;
|
|
4329
4538
|
|
|
4330
|
-
type Props$
|
|
4539
|
+
type Props$t = {
|
|
4331
4540
|
value: number;
|
|
4332
4541
|
size?: number;
|
|
4333
4542
|
strokeWidth?: number;
|
|
4334
4543
|
className?: string;
|
|
4335
4544
|
};
|
|
4336
|
-
declare const UsageStatsRing: ({ value, size, strokeWidth, className }: Props$
|
|
4545
|
+
declare const UsageStatsRing: ({ value, size, strokeWidth, className }: Props$t) => react_jsx_runtime.JSX.Element;
|
|
4337
4546
|
|
|
4338
|
-
type Props$
|
|
4547
|
+
type Props$s = ComponentProps<typeof Root$9>;
|
|
4339
4548
|
declare const Collapsible: {
|
|
4340
|
-
(props: Props$
|
|
4549
|
+
(props: Props$s): react_jsx_runtime.JSX.Element;
|
|
4341
4550
|
Trigger: react.ForwardRefExoticComponent<_radix_ui_react_collapsible.CollapsibleTriggerProps & react.RefAttributes<HTMLButtonElement>>;
|
|
4342
4551
|
Content: ({ ref, className, children, ...props }: Omit<_radix_ui_react_collapsible.CollapsibleContentProps & react.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
4343
4552
|
ref?: react.Ref<react.ElementRef<react.ForwardRefExoticComponent<_radix_ui_react_collapsible.CollapsibleContentProps & react.RefAttributes<HTMLDivElement>>>>;
|
|
@@ -4345,10 +4554,10 @@ declare const Collapsible: {
|
|
|
4345
4554
|
};
|
|
4346
4555
|
|
|
4347
4556
|
type Variant$2 = 'info' | 'warning' | 'error' | 'success';
|
|
4348
|
-
type Props$
|
|
4557
|
+
type Props$r = {
|
|
4349
4558
|
variant?: Variant$2;
|
|
4350
4559
|
} & ComponentProps<'div'>;
|
|
4351
|
-
declare const AlertRoot: ({ ref, children, className, variant, ...rest }: Props$
|
|
4560
|
+
declare const AlertRoot: ({ ref, children, className, variant, ...rest }: Props$r & {
|
|
4352
4561
|
ref?: Ref<ElementRef<"div">>;
|
|
4353
4562
|
}) => react_jsx_runtime.JSX.Element;
|
|
4354
4563
|
|
|
@@ -4373,7 +4582,7 @@ type DefaultProps = {
|
|
|
4373
4582
|
* `"collapsible"` requires `title` + `children` (no `actions`) and renders a collapsible disclosure.
|
|
4374
4583
|
* `variant` (`info` | `success` | `warning` | `error`) is a categorical colour contract.
|
|
4375
4584
|
*/
|
|
4376
|
-
type Props$
|
|
4585
|
+
type Props$q = CommonProps & (CollapsibleProps | DefaultProps);
|
|
4377
4586
|
/**
|
|
4378
4587
|
* Persistent inline banner for contextual messages tied to the page layout.
|
|
4379
4588
|
*
|
|
@@ -4387,13 +4596,13 @@ type Props$s = CommonProps & (CollapsibleProps | DefaultProps);
|
|
|
4387
4596
|
*
|
|
4388
4597
|
* @see RECIPES.md#alert-with-action — for action-bearing alert composition
|
|
4389
4598
|
*/
|
|
4390
|
-
declare const Alert: ({ title, variant, children, hideIcon, icon, className, actions, mode, defaultOpen, open: openProp, onOpenChange: onOpenChangeProp, ...rest }: Props$
|
|
4599
|
+
declare const Alert: ({ title, variant, children, hideIcon, icon, className, actions, mode, defaultOpen, open: openProp, onOpenChange: onOpenChangeProp, ...rest }: Props$q) => react_jsx_runtime.JSX.Element;
|
|
4391
4600
|
|
|
4392
4601
|
declare const variants$1: (props?: ({
|
|
4393
4602
|
variant?: "default" | "error" | "info" | "warning" | "success" | null | undefined;
|
|
4394
4603
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
4395
4604
|
type Variants = VariantProps<typeof variants$1>;
|
|
4396
|
-
type Props$
|
|
4605
|
+
type Props$p = {
|
|
4397
4606
|
id: string | number;
|
|
4398
4607
|
title: ReactNode;
|
|
4399
4608
|
icon?: ReactNode;
|
|
@@ -4402,7 +4611,7 @@ type Props$r = {
|
|
|
4402
4611
|
loading?: boolean;
|
|
4403
4612
|
duration?: number;
|
|
4404
4613
|
} & Variants;
|
|
4405
|
-
declare const ToastRoot: ({ id, title, description, action, duration, variant, loading, icon: iconProp, }: Props$
|
|
4614
|
+
declare const ToastRoot: ({ id, title, description, action, duration, variant, loading, icon: iconProp, }: Props$p) => react_jsx_runtime.JSX.Element;
|
|
4406
4615
|
|
|
4407
4616
|
type ToastProps = ComponentProps<typeof ToastRoot>;
|
|
4408
4617
|
type Title = ToastProps['title'] | ((opts: {
|
|
@@ -4423,7 +4632,7 @@ declare const toast: {
|
|
|
4423
4632
|
dismissAll(): string | number;
|
|
4424
4633
|
};
|
|
4425
4634
|
|
|
4426
|
-
type Props$
|
|
4635
|
+
type Props$o = {
|
|
4427
4636
|
enabled?: boolean;
|
|
4428
4637
|
} & Parameters<typeof toast>[0];
|
|
4429
4638
|
/**
|
|
@@ -4436,22 +4645,22 @@ type Props$q = {
|
|
|
4436
4645
|
* Use `toast()` for transient feedback after a user action
|
|
4437
4646
|
* (e.g., "Saved", "Copied", "Deleted") that auto-dismisses after a few seconds.
|
|
4438
4647
|
*/
|
|
4439
|
-
declare const useNotification: ({ enabled, ...toastOptions }: Props$
|
|
4648
|
+
declare const useNotification: ({ enabled, ...toastOptions }: Props$o) => void;
|
|
4440
4649
|
|
|
4441
4650
|
type ToasterProps = ComponentProps<typeof Toaster$1>;
|
|
4442
4651
|
declare const Toaster: ({ gap, visibleToasts, ...props }: ToasterProps) => react_jsx_runtime.JSX.Element;
|
|
4443
4652
|
|
|
4444
|
-
type Props$
|
|
4653
|
+
type Props$n = {
|
|
4445
4654
|
children?: ReactNode;
|
|
4446
4655
|
};
|
|
4447
|
-
declare const EmptySearchContent: ({ children }: Props$
|
|
4656
|
+
declare const EmptySearchContent: ({ children }: Props$n) => react_jsx_runtime.JSX.Element;
|
|
4448
4657
|
|
|
4449
|
-
type Props$
|
|
4658
|
+
type Props$m = {
|
|
4450
4659
|
title: string;
|
|
4451
4660
|
children: ReactNode;
|
|
4452
4661
|
className?: string;
|
|
4453
4662
|
};
|
|
4454
|
-
declare const EmptyConfigurationActionCard: ({ title, children, className }: Props$
|
|
4663
|
+
declare const EmptyConfigurationActionCard: ({ title, children, className }: Props$m) => react_jsx_runtime.JSX.Element;
|
|
4455
4664
|
|
|
4456
4665
|
declare const emptyStateClassnames: (props?: ({
|
|
4457
4666
|
variant?: "compact" | "default" | null | undefined;
|
|
@@ -4591,8 +4800,8 @@ declare const variants: (props?: ({
|
|
|
4591
4800
|
variant?: "default" | "success" | null | undefined;
|
|
4592
4801
|
size?: "sm" | "lg" | null | undefined;
|
|
4593
4802
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
4594
|
-
type Props$
|
|
4595
|
-
declare const Progress: ({ ref, className, value, variant, size, ...props }: Props$
|
|
4803
|
+
type Props$l = ComponentProps<typeof Root$a> & VariantProps<typeof variants>;
|
|
4804
|
+
declare const Progress: ({ ref, className, value, variant, size, ...props }: Props$l & {
|
|
4596
4805
|
ref?: Ref<ElementRef<typeof Root$a>>;
|
|
4597
4806
|
}) => react_jsx_runtime.JSX.Element;
|
|
4598
4807
|
|
|
@@ -4610,7 +4819,7 @@ type CollapseProps = {
|
|
|
4610
4819
|
/** @deprecated Use `Collapsible` instead. */
|
|
4611
4820
|
declare const Collapse: ({ open, header, className, bodyClassName, children, onClick, animationClassName, hidden, ...rest }: CollapseProps & ComponentProps<"div">) => react_jsx_runtime.JSX.Element;
|
|
4612
4821
|
|
|
4613
|
-
type Props$
|
|
4822
|
+
type Props$k = {
|
|
4614
4823
|
header: ReactNode;
|
|
4615
4824
|
isDisabled?: boolean;
|
|
4616
4825
|
defaultExpanded?: boolean;
|
|
@@ -4622,16 +4831,16 @@ type Props$m = {
|
|
|
4622
4831
|
variant?: 'default' | 'white';
|
|
4623
4832
|
children: ReactNode;
|
|
4624
4833
|
};
|
|
4625
|
-
declare const CollapsiblePanel: ({ header, className, bodyClassName, headerClassName, defaultExpanded, isDisabled, children, isOpen, onToggle, variant, }: Props$
|
|
4834
|
+
declare const CollapsiblePanel: ({ header, className, bodyClassName, headerClassName, defaultExpanded, isDisabled, children, isOpen, onToggle, variant, }: Props$k) => react_jsx_runtime.JSX.Element;
|
|
4626
4835
|
|
|
4627
|
-
type Props$
|
|
4836
|
+
type Props$j = PropsWithChildren<{
|
|
4628
4837
|
defaultExpanded?: boolean;
|
|
4629
4838
|
labelCollapse?: ReactNode;
|
|
4630
4839
|
labelOpen?: ReactNode;
|
|
4631
4840
|
placement?: 'top' | 'bottom';
|
|
4632
4841
|
className?: string;
|
|
4633
4842
|
}>;
|
|
4634
|
-
declare const PanelWithDetails: ({ defaultExpanded, labelCollapse, labelOpen, placement, children, }: Props$
|
|
4843
|
+
declare const PanelWithDetails: ({ defaultExpanded, labelCollapse, labelOpen, placement, children, }: Props$j) => react_jsx_runtime.JSX.Element;
|
|
4635
4844
|
|
|
4636
4845
|
type RootProps$1 = ComponentPropsWithoutRef<'div'>;
|
|
4637
4846
|
type SlotProps = ComponentPropsWithoutRef<'div'> & {
|
|
@@ -4887,7 +5096,7 @@ type SidebarState$1 = 'expanded' | 'collapsed';
|
|
|
4887
5096
|
type SidebarCollapsible = 'icon' | 'off-canvas';
|
|
4888
5097
|
type SidebarVariant = 'sided-floating' | 'inset' | 'floating' | 'none';
|
|
4889
5098
|
|
|
4890
|
-
type Props$
|
|
5099
|
+
type Props$i = {
|
|
4891
5100
|
children: ReactNode;
|
|
4892
5101
|
className?: string;
|
|
4893
5102
|
id?: string;
|
|
@@ -4898,7 +5107,7 @@ type Props$k = {
|
|
|
4898
5107
|
resizable?: boolean;
|
|
4899
5108
|
};
|
|
4900
5109
|
declare const Sidebar: {
|
|
4901
|
-
({ children, className, id, side, style, container, keepMounted, resizable, }: Props$
|
|
5110
|
+
({ children, className, id, side, style, container, keepMounted, resizable, }: Props$i): react_jsx_runtime.JSX.Element | null;
|
|
4902
5111
|
Header: ({ className, ...props }: react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => react_jsx_runtime.JSX.Element;
|
|
4903
5112
|
Content: ({ ref, className, children, contentRef, }: {
|
|
4904
5113
|
className?: string;
|
|
@@ -5568,7 +5777,7 @@ declare const Sidebar: {
|
|
|
5568
5777
|
}) => react_jsx_runtime.JSX.Element;
|
|
5569
5778
|
};
|
|
5570
5779
|
|
|
5571
|
-
type Props$
|
|
5780
|
+
type Props$h = {
|
|
5572
5781
|
children?: ReactNode;
|
|
5573
5782
|
defaultLeftMode?: SidebarMode;
|
|
5574
5783
|
leftMode?: SidebarMode;
|
|
@@ -5586,7 +5795,7 @@ type Props$j = {
|
|
|
5586
5795
|
onRightWidthChange?: (width: number) => void;
|
|
5587
5796
|
defaultFilledSide?: SidebarSide | null;
|
|
5588
5797
|
};
|
|
5589
|
-
declare const SidebarProvider: ({ children, defaultLeftMode, leftMode, onLeftModeChange, defaultRightMode, rightMode, onRightModeChange, leftCollapsible, leftVariant, leftWidth, rightCollapsible, rightVariant, rightWidth, onLeftWidthChange, onRightWidthChange, defaultFilledSide, }: Props$
|
|
5798
|
+
declare const SidebarProvider: ({ children, defaultLeftMode, leftMode, onLeftModeChange, defaultRightMode, rightMode, onRightModeChange, leftCollapsible, leftVariant, leftWidth, rightCollapsible, rightVariant, rightWidth, onLeftWidthChange, onRightWidthChange, defaultFilledSide, }: Props$h) => react_jsx_runtime.JSX.Element;
|
|
5590
5799
|
|
|
5591
5800
|
type Input = {
|
|
5592
5801
|
variant: SidebarVariant;
|
|
@@ -5602,12 +5811,12 @@ type EffectiveWidths = {
|
|
|
5602
5811
|
};
|
|
5603
5812
|
declare const calcEffectiveWidths: ({ variant, width: customWidth, collapsible, state, mode, }: Input) => EffectiveWidths;
|
|
5604
5813
|
|
|
5605
|
-
type Props$
|
|
5814
|
+
type Props$g = {
|
|
5606
5815
|
defaultMode?: SidebarMode;
|
|
5607
5816
|
mode?: SidebarMode;
|
|
5608
5817
|
onModeChange?: (state: SidebarMode) => void;
|
|
5609
5818
|
};
|
|
5610
|
-
declare const useSidebarState: ({ defaultMode, mode: modeProp, onModeChange }: Props$
|
|
5819
|
+
declare const useSidebarState: ({ defaultMode, mode: modeProp, onModeChange }: Props$g) => {
|
|
5611
5820
|
isHovered: boolean;
|
|
5612
5821
|
toggle: () => void;
|
|
5613
5822
|
setMode: (dispatch: Parameters<react.Dispatch<react.SetStateAction<"expanded" | "collapsed" | "expand-on-hover">>>[0]) => void;
|
|
@@ -5637,7 +5846,7 @@ declare const separatorVariants: (props?: ({
|
|
|
5637
5846
|
size?: "full" | "1/2" | "3/4" | null | undefined;
|
|
5638
5847
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
5639
5848
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
5640
|
-
type Props$
|
|
5849
|
+
type Props$f = VariantProps<typeof separatorVariants> & Omit<ComponentProps<typeof RSeparator.Root>, 'decorative'> & {
|
|
5641
5850
|
/**
|
|
5642
5851
|
* Optional label rendered centered between two line segments
|
|
5643
5852
|
* (typical "OR" divider). Implies `orientation="horizontal"`.
|
|
@@ -5645,12 +5854,12 @@ type Props$h = VariantProps<typeof separatorVariants> & Omit<ComponentProps<type
|
|
|
5645
5854
|
*/
|
|
5646
5855
|
label?: ReactNode;
|
|
5647
5856
|
};
|
|
5648
|
-
declare const Separator: ({ className, orientation, size, label, ...props }: Props$
|
|
5857
|
+
declare const Separator: ({ className, orientation, size, label, ...props }: Props$f) => react_jsx_runtime.JSX.Element;
|
|
5649
5858
|
|
|
5650
5859
|
declare const navbarClassnames: (props?: ({
|
|
5651
5860
|
bordered?: boolean | null | undefined;
|
|
5652
5861
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
5653
|
-
type Props$
|
|
5862
|
+
type Props$e = ComponentProps<'nav'> & VariantProps<typeof navbarClassnames> & {
|
|
5654
5863
|
accent?: 'blue' | 'purple' | 'green' | 'orange';
|
|
5655
5864
|
};
|
|
5656
5865
|
/**
|
|
@@ -5668,7 +5877,7 @@ type Props$g = ComponentProps<'nav'> & VariantProps<typeof navbarClassnames> & {
|
|
|
5668
5877
|
* @see AppShell — pair with `AppShell.Header`; the sidebar rail uses `Sidebar` instead.
|
|
5669
5878
|
*/
|
|
5670
5879
|
declare const Navbar: {
|
|
5671
|
-
({ className, accent, bordered, ...rest }: Props$
|
|
5880
|
+
({ className, accent, bordered, ...rest }: Props$e): react_jsx_runtime.JSX.Element;
|
|
5672
5881
|
Header: ({ children, className, ...rest }: react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => react_jsx_runtime.JSX.Element;
|
|
5673
5882
|
Footer: ({ children, className, ...rest }: react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => react_jsx_runtime.JSX.Element;
|
|
5674
5883
|
Content: ({ children, className }: {
|
|
@@ -5702,9 +5911,9 @@ declare const Navbar: {
|
|
|
5702
5911
|
}) => react_jsx_runtime.JSX.Element;
|
|
5703
5912
|
};
|
|
5704
5913
|
|
|
5705
|
-
type Props$
|
|
5914
|
+
type Props$d = ComponentProps<'nav'>;
|
|
5706
5915
|
declare const Breadcrumb: {
|
|
5707
|
-
({ className, ...props }: Props$
|
|
5916
|
+
({ className, ...props }: Props$d): react_jsx_runtime.JSX.Element;
|
|
5708
5917
|
List: ({ className, ...props }: react.DetailedHTMLProps<react.OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>) => react_jsx_runtime.JSX.Element;
|
|
5709
5918
|
Item: ({ className, ...props }: react.DetailedHTMLProps<react.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>) => react_jsx_runtime.JSX.Element;
|
|
5710
5919
|
Link: ({ ref, asChild, className, ...props }: (react.ClassAttributes<HTMLAnchorElement> & react.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
@@ -5726,8 +5935,8 @@ type Trigger<T extends string> = {
|
|
|
5726
5935
|
title: ReactNode;
|
|
5727
5936
|
onClose?: (value: T) => void;
|
|
5728
5937
|
} & Omit<RadixTabs.TabsTriggerProps, 'title' | 'asChild'>;
|
|
5729
|
-
type Props$
|
|
5730
|
-
triggers: Trigger<T>[];
|
|
5938
|
+
type Props$c<T extends string> = {
|
|
5939
|
+
triggers: readonly Trigger<T>[];
|
|
5731
5940
|
compact?: boolean;
|
|
5732
5941
|
children: ReactNode;
|
|
5733
5942
|
defaultValue?: string;
|
|
@@ -5737,7 +5946,7 @@ type Props$e<T extends string> = {
|
|
|
5737
5946
|
triggerClassName?: string;
|
|
5738
5947
|
triggerGroupClassName?: string;
|
|
5739
5948
|
} & Omit<RadixTabs.TabsProps, 'onValueChange'>;
|
|
5740
|
-
declare const Tabs: <T extends string>({ triggers, compact, children, defaultValue, onValueChange, rootClassName, listClassName, triggerClassName, triggerGroupClassName, ...rest }: Props$
|
|
5949
|
+
declare const Tabs: <T extends string>({ triggers, compact, children, defaultValue, onValueChange, rootClassName, listClassName, triggerClassName, triggerGroupClassName, ...rest }: Props$c<T>) => react_jsx_runtime.JSX.Element;
|
|
5741
5950
|
|
|
5742
5951
|
declare const TabsContent: (props: RadixTabs.TabsContentProps) => react_jsx_runtime.JSX.Element;
|
|
5743
5952
|
|
|
@@ -5754,7 +5963,7 @@ declare const stepperVariants: (props?: ({
|
|
|
5754
5963
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
5755
5964
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
5756
5965
|
|
|
5757
|
-
type Props$
|
|
5966
|
+
type Props$b = {
|
|
5758
5967
|
/** Layout direction. Defaults to `horizontal`. */
|
|
5759
5968
|
orientation?: StepperOrientation;
|
|
5760
5969
|
/**
|
|
@@ -5776,7 +5985,7 @@ type Props$d = {
|
|
|
5776
5985
|
* otherwise the stepper is visual only. Each step's `status` prop drives the indicator + connector colour.
|
|
5777
5986
|
*/
|
|
5778
5987
|
declare const Stepper: {
|
|
5779
|
-
({ orientation, onStepClick, children, className, ...props }: Props$
|
|
5988
|
+
({ orientation, onStepClick, children, className, ...props }: Props$b): react_jsx_runtime.JSX.Element;
|
|
5780
5989
|
Step: ({ status, children, className, ...props }: {
|
|
5781
5990
|
status?: StepStatus;
|
|
5782
5991
|
children: ReactNode;
|
|
@@ -5794,9 +6003,9 @@ declare const cardClassnames: (props?: ({
|
|
|
5794
6003
|
padding?: "none" | "small" | "medium" | "large" | null | undefined;
|
|
5795
6004
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
5796
6005
|
|
|
5797
|
-
type Props$
|
|
6006
|
+
type Props$a = HTMLAttributes<HTMLDivElement> & VariantProps<typeof cardClassnames>;
|
|
5798
6007
|
declare const Card: {
|
|
5799
|
-
({ children, className, bordered, padding, ...rest }: Props$
|
|
6008
|
+
({ children, className, bordered, padding, ...rest }: Props$a): react_jsx_runtime.JSX.Element;
|
|
5800
6009
|
Header: ({ children, ...rest }: HTMLAttributes<HTMLDivElement>) => react_jsx_runtime.JSX.Element;
|
|
5801
6010
|
Content: ({ children, ...rest }: HTMLAttributes<HTMLDivElement>) => react_jsx_runtime.JSX.Element;
|
|
5802
6011
|
Title: ({ children, className, ...rest }: HTMLAttributes<HTMLHeadingElement>) => react_jsx_runtime.JSX.Element;
|
|
@@ -5806,7 +6015,7 @@ declare const Card: {
|
|
|
5806
6015
|
* Props for `Table`. `borderCollapsed` toggles standard collapsed borders vs separate row spacing;
|
|
5807
6016
|
* `bordered` wraps the table in a rounded bordered container with overflow scrolling.
|
|
5808
6017
|
*/
|
|
5809
|
-
type Props$
|
|
6018
|
+
type Props$9 = {
|
|
5810
6019
|
borderCollapsed?: boolean;
|
|
5811
6020
|
bordered?: boolean;
|
|
5812
6021
|
containerClassName?: string;
|
|
@@ -5825,7 +6034,7 @@ type Props$b = {
|
|
|
5825
6034
|
* @see RECIPES.md#list-detail — for a list-table + row-click-to-detail pattern
|
|
5826
6035
|
*/
|
|
5827
6036
|
declare const Table: {
|
|
5828
|
-
({ borderCollapsed, bordered, containerClassName, className, ...props }: Props$
|
|
6037
|
+
({ borderCollapsed, bordered, containerClassName, className, ...props }: Props$9): react_jsx_runtime.JSX.Element;
|
|
5829
6038
|
Header: ({ withShadow, className, ...props }: {
|
|
5830
6039
|
withShadow?: boolean;
|
|
5831
6040
|
} & ComponentProps<"thead">) => react_jsx_runtime.JSX.Element;
|
|
@@ -5840,11 +6049,11 @@ declare const Table: {
|
|
|
5840
6049
|
Footer: ({ className, ...props }: ComponentProps<"tfoot">) => react_jsx_runtime.JSX.Element;
|
|
5841
6050
|
};
|
|
5842
6051
|
|
|
5843
|
-
type Props$
|
|
6052
|
+
type Props$8 = ComponentProps<'ul'> & {
|
|
5844
6053
|
variant?: 'solid' | 'dashed';
|
|
5845
6054
|
};
|
|
5846
6055
|
declare const Timeline: {
|
|
5847
|
-
({ className, variant, ...rest }: Props$
|
|
6056
|
+
({ className, variant, ...rest }: Props$8): react_jsx_runtime.JSX.Element;
|
|
5848
6057
|
Item: ({ className, ...rest }: react.DetailedHTMLProps<react.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>) => react_jsx_runtime.JSX.Element;
|
|
5849
6058
|
Content: ({ className, ...rest }: react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => react_jsx_runtime.JSX.Element;
|
|
5850
6059
|
Connector: ({ className, children, asChild, variant, align, offset, style, ...rest }: {
|
|
@@ -5857,25 +6066,25 @@ declare const Timeline: {
|
|
|
5857
6066
|
} & class_variance_authority_types.ClassProp) | undefined) => string>) => react_jsx_runtime.JSX.Element;
|
|
5858
6067
|
};
|
|
5859
6068
|
|
|
5860
|
-
type Props$
|
|
6069
|
+
type Props$7 = {
|
|
5861
6070
|
text: ReactNode;
|
|
5862
6071
|
tooltip?: ReactNode;
|
|
5863
6072
|
twoLines?: boolean;
|
|
5864
6073
|
noTooltip?: boolean;
|
|
5865
|
-
tooltipVariant?: Props$
|
|
5866
|
-
tooltipPlacement?: Props$
|
|
6074
|
+
tooltipVariant?: Props$1J['variant'];
|
|
6075
|
+
tooltipPlacement?: Props$1J['placement'];
|
|
5867
6076
|
} & Omit<ComponentPropsWithoutRef<'span'>, 'children'>;
|
|
5868
|
-
declare const Truncated: ({ ref, text, tooltip, className, twoLines, noTooltip, tooltipVariant, tooltipPlacement, ...rest }: Props$
|
|
6077
|
+
declare const Truncated: ({ ref, text, tooltip, className, twoLines, noTooltip, tooltipVariant, tooltipPlacement, ...rest }: Props$7 & {
|
|
5869
6078
|
ref?: Ref<ElementRef<"span">>;
|
|
5870
6079
|
}) => react_jsx_runtime.JSX.Element;
|
|
5871
6080
|
|
|
5872
|
-
type Props$
|
|
6081
|
+
type Props$6 = {
|
|
5873
6082
|
source: string;
|
|
5874
6083
|
className?: string;
|
|
5875
6084
|
mark?: string;
|
|
5876
6085
|
isCaseSensitive?: boolean;
|
|
5877
6086
|
} & ComponentProps<'span'>;
|
|
5878
|
-
declare const MarkedText: ({ ref, source, mark, isCaseSensitive, ...spanProps }: Props$
|
|
6087
|
+
declare const MarkedText: ({ ref, source, mark, isCaseSensitive, ...spanProps }: Props$6 & {
|
|
5879
6088
|
ref?: Ref<ElementRef<"span">>;
|
|
5880
6089
|
}) => react_jsx_runtime.JSX.Element;
|
|
5881
6090
|
|
|
@@ -5883,9 +6092,9 @@ declare const kbdVariants: (props?: ({
|
|
|
5883
6092
|
variant?: "primary" | "default" | null | undefined;
|
|
5884
6093
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
5885
6094
|
|
|
5886
|
-
type Props$
|
|
6095
|
+
type Props$5 = ComponentProps<'kbd'> & VariantProps<typeof kbdVariants>;
|
|
5887
6096
|
declare const Kbd: {
|
|
5888
|
-
({ children, className, variant, ...rest }: Props$
|
|
6097
|
+
({ children, className, variant, ...rest }: Props$5): react_jsx_runtime.JSX.Element;
|
|
5889
6098
|
Group: ({ ref, className, children, separator, ...props }: ({
|
|
5890
6099
|
separator?: string;
|
|
5891
6100
|
} & react.ClassAttributes<HTMLElement> & react.HTMLAttributes<HTMLElement>) & {
|
|
@@ -5901,9 +6110,9 @@ type KeyRepresentation = {
|
|
|
5901
6110
|
};
|
|
5902
6111
|
declare const keys: Record<KeyName, KeyRepresentation>;
|
|
5903
6112
|
|
|
5904
|
-
type Props$
|
|
6113
|
+
type Props$4 = ComponentProps<'nav'>;
|
|
5905
6114
|
declare const Pagination: {
|
|
5906
|
-
({ className, ...props }: Props$
|
|
6115
|
+
({ className, ...props }: Props$4): react_jsx_runtime.JSX.Element;
|
|
5907
6116
|
Content: ({ className, ...props }: react.DetailedHTMLProps<react.HTMLAttributes<HTMLUListElement>, HTMLUListElement>) => react_jsx_runtime.JSX.Element;
|
|
5908
6117
|
Item: ({ className, ...props }: react.DetailedHTMLProps<react.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>) => react_jsx_runtime.JSX.Element;
|
|
5909
6118
|
Button: ({ ref, active: isActive, className, children, size, ...props }: ({
|
|
@@ -5951,7 +6160,7 @@ declare const Pagination: {
|
|
|
5951
6160
|
Ellipsis: ({ className, ...props }: react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>) => react_jsx_runtime.JSX.Element;
|
|
5952
6161
|
};
|
|
5953
6162
|
|
|
5954
|
-
type Props$
|
|
6163
|
+
type Props$3 = {
|
|
5955
6164
|
oldValue: string;
|
|
5956
6165
|
newValue: string;
|
|
5957
6166
|
ignoreWhitespace?: boolean;
|
|
@@ -5961,7 +6170,7 @@ type Props$5 = {
|
|
|
5961
6170
|
rightTitle: ReactNode;
|
|
5962
6171
|
rightTitleGutter?: ReactNode;
|
|
5963
6172
|
};
|
|
5964
|
-
declare const DiffView: ({ leftTitle, leftTitleGutter, rightTitle, rightTitleGutter, oldValue, newValue, ignoreWhitespace, className, }: Props$
|
|
6173
|
+
declare const DiffView: ({ leftTitle, leftTitleGutter, rightTitle, rightTitleGutter, oldValue, newValue, ignoreWhitespace, className, }: Props$3) => react_jsx_runtime.JSX.Element;
|
|
5965
6174
|
|
|
5966
6175
|
declare const DiffType: {
|
|
5967
6176
|
readonly DEFAULT: "default";
|
|
@@ -6006,17 +6215,17 @@ type DiffRow = {
|
|
|
6006
6215
|
declare const computeLineInformation: (oldString: string, newString: string, ignoreWhitespace?: boolean) => ComputedLineInformation;
|
|
6007
6216
|
declare const computeDiffRows: (lineInformation: LineInformation[], diffLines: number[], expandedBlocks: number[]) => DiffRow[];
|
|
6008
6217
|
|
|
6009
|
-
type Props$
|
|
6218
|
+
type Props$2 = {
|
|
6010
6219
|
label: string;
|
|
6011
6220
|
sublabel?: string;
|
|
6012
6221
|
};
|
|
6013
|
-
declare const PaneHeader: ({ label, sublabel }: Props$
|
|
6222
|
+
declare const PaneHeader: ({ label, sublabel }: Props$2) => react_jsx_runtime.JSX.Element;
|
|
6014
6223
|
|
|
6015
|
-
type Props$
|
|
6224
|
+
type Props$1 = {
|
|
6016
6225
|
remainingConflicts: number;
|
|
6017
6226
|
remainingSafeChanges: number;
|
|
6018
6227
|
};
|
|
6019
|
-
declare const ConflictStatusIndicator: ({ remainingConflicts, remainingSafeChanges }: Props$
|
|
6228
|
+
declare const ConflictStatusIndicator: ({ remainingConflicts, remainingSafeChanges }: Props$1) => react_jsx_runtime.JSX.Element;
|
|
6020
6229
|
|
|
6021
6230
|
declare const useMergeDiff: (baseText: string, leftText: string, rightText: string) => {
|
|
6022
6231
|
mergeValue: string;
|
|
@@ -7396,8 +7605,8 @@ declare const useAppForm: <TFormData, TOnMount extends _tanstack_react_form.Form
|
|
|
7396
7605
|
description?: react.ReactNode;
|
|
7397
7606
|
variant?: class_variance_authority.VariantProps<typeof fieldBoxVariants>["variant"];
|
|
7398
7607
|
position?: "start" | "end";
|
|
7399
|
-
tooltip?: Props$
|
|
7400
|
-
tooltipPlacement?: Props$
|
|
7608
|
+
tooltip?: Props$1J["tooltip"];
|
|
7609
|
+
tooltipPlacement?: Props$1J["placement"];
|
|
7401
7610
|
} & Omit<_radix_ui_react_checkbox.CheckboxProps & react.RefAttributes<HTMLButtonElement>, "id">, "checked" | "onCheckedChange"> & {
|
|
7402
7611
|
checked?: _radix_ui_react_checkbox.CheckedState;
|
|
7403
7612
|
onCheckedChange?: (checked: _radix_ui_react_checkbox.CheckedState) => void;
|
|
@@ -8776,8 +8985,8 @@ declare const withForm: <TFormData, TOnMount extends _tanstack_react_form.FormVa
|
|
|
8776
8985
|
description?: react.ReactNode;
|
|
8777
8986
|
variant?: class_variance_authority.VariantProps<typeof fieldBoxVariants>["variant"];
|
|
8778
8987
|
position?: "start" | "end";
|
|
8779
|
-
tooltip?: Props$
|
|
8780
|
-
tooltipPlacement?: Props$
|
|
8988
|
+
tooltip?: Props$1J["tooltip"];
|
|
8989
|
+
tooltipPlacement?: Props$1J["placement"];
|
|
8781
8990
|
} & Omit<_radix_ui_react_checkbox.CheckboxProps & react.RefAttributes<HTMLButtonElement>, "id">, "checked" | "onCheckedChange"> & {
|
|
8782
8991
|
checked?: _radix_ui_react_checkbox.CheckedState;
|
|
8783
8992
|
onCheckedChange?: (checked: _radix_ui_react_checkbox.CheckedState) => void;
|
|
@@ -10156,8 +10365,8 @@ declare const withForm: <TFormData, TOnMount extends _tanstack_react_form.FormVa
|
|
|
10156
10365
|
description?: react.ReactNode;
|
|
10157
10366
|
variant?: class_variance_authority.VariantProps<typeof fieldBoxVariants>["variant"];
|
|
10158
10367
|
position?: "start" | "end";
|
|
10159
|
-
tooltip?: Props$
|
|
10160
|
-
tooltipPlacement?: Props$
|
|
10368
|
+
tooltip?: Props$1J["tooltip"];
|
|
10369
|
+
tooltipPlacement?: Props$1J["placement"];
|
|
10161
10370
|
} & Omit<_radix_ui_react_checkbox.CheckboxProps & react.RefAttributes<HTMLButtonElement>, "id">, "checked" | "onCheckedChange"> & {
|
|
10162
10371
|
checked?: _radix_ui_react_checkbox.CheckedState;
|
|
10163
10372
|
onCheckedChange?: (checked: _radix_ui_react_checkbox.CheckedState) => void;
|
|
@@ -10245,186 +10454,13 @@ declare const mergeRefs: <T>(...refs: PossibleRef<T>[]) => (node: T) => void;
|
|
|
10245
10454
|
|
|
10246
10455
|
declare const isMac: boolean;
|
|
10247
10456
|
|
|
10248
|
-
type Props
|
|
10457
|
+
type Props = {
|
|
10249
10458
|
/** Raw SVG markup. Sanitized internally with DOMPurify (SVG profile) before rendering, so it is
|
|
10250
10459
|
* safe even when it originates from user/LLM-controlled content. Non-SVG HTML is stripped. */
|
|
10251
10460
|
html: string;
|
|
10252
10461
|
copyText?: string;
|
|
10253
10462
|
className?: string;
|
|
10254
10463
|
};
|
|
10255
|
-
declare const ZoomableSvg: ({ html, copyText, className }: Props
|
|
10256
|
-
|
|
10257
|
-
type ColorScheme = 'light' | 'dark' | 'system';
|
|
10258
|
-
type ResolvedMode = 'light' | 'dark';
|
|
10259
|
-
type ThemeContextValue = {
|
|
10260
|
-
brand: Brand;
|
|
10261
|
-
setBrand?: (brand: Brand) => void;
|
|
10262
|
-
/** The configured color scheme (may be `'system'`). */
|
|
10263
|
-
colorScheme: ColorScheme;
|
|
10264
|
-
/** The effective light/dark mode after resolving `'system'`. */
|
|
10265
|
-
resolvedMode: ResolvedMode;
|
|
10266
|
-
};
|
|
10267
|
-
|
|
10268
|
-
type Props$1 = {
|
|
10269
|
-
/**
|
|
10270
|
-
* Brand whose tokens drive the chrome (`@keboola/design`'s semantic CSS
|
|
10271
|
-
* variables) inside this provider's subtree. Defaults to the canonical
|
|
10272
|
-
* `keboola` brand so existing apps that mount `<ThemeProvider>` without a
|
|
10273
|
-
* `brand` prop continue to render as today.
|
|
10274
|
-
*/
|
|
10275
|
-
brand?: Brand;
|
|
10276
|
-
/**
|
|
10277
|
-
* Optional setter exposed through `useTheme()` so consumers can flip
|
|
10278
|
-
* brands at runtime (Storybook toolbar, a customer-impersonation switch).
|
|
10279
|
-
*/
|
|
10280
|
-
setBrand?: (brand: Brand) => void;
|
|
10281
|
-
/**
|
|
10282
|
-
* Light/dark mode. `'system'` follows `prefers-color-scheme` and updates
|
|
10283
|
-
* reactively. Defaults to `'light'` so existing mounts don't drift. Only
|
|
10284
|
-
* the ROOT provider applies this (sets `data-theme`, owns the media
|
|
10285
|
-
* listener); a nested provider inherits the root's resolved mode.
|
|
10286
|
-
*/
|
|
10287
|
-
colorScheme?: ColorScheme;
|
|
10288
|
-
children: ReactNode;
|
|
10289
|
-
};
|
|
10290
|
-
/**
|
|
10291
|
-
* Responsibilities:
|
|
10292
|
-
* - ROOT only: render hidden SVG gradient definitions (`aigradient-600`,
|
|
10293
|
-
* `aigradient-700`). The IDs are hardcoded, so a nested provider must not
|
|
10294
|
-
* re-emit them or the document gains duplicate (HTML-invalid) IDs.
|
|
10295
|
-
* - Set `data-brand="<brand.id>"` on `<html>` and inject the matching `--color-*` /
|
|
10296
|
-
* `--radius-*` CSS variables (for the resolved light/dark mode) so chrome
|
|
10297
|
-
* re-skins for the supplied brand.
|
|
10298
|
-
* - ROOT only: set `data-theme` (`light` | `dark`) on `<html>` and own the
|
|
10299
|
-
* `prefers-color-scheme` media listener when `colorScheme === 'system'`.
|
|
10300
|
-
* A nested provider inherits the resolved mode from the parent context and
|
|
10301
|
-
* touches neither `data-theme` nor a media listener.
|
|
10302
|
-
* - Expose `{ brand, setBrand?, colorScheme, resolvedMode }` via `useTheme()`.
|
|
10303
|
-
*
|
|
10304
|
-
* Brand × mode: the active mode's palette is injected inline on `<html>`. When
|
|
10305
|
-
* the resolved mode is `dark` and the brand has no `colorsDark`, the colour
|
|
10306
|
-
* vars are NOT emitted — the stylesheet `[data-theme='dark']` block supplies
|
|
10307
|
-
* them, so no `!important` override is ever needed.
|
|
10308
|
-
*
|
|
10309
|
-
* `data-brand` (brand id) and `data-theme` (light/dark) are separate axes so
|
|
10310
|
-
* they compose without clobbering each other.
|
|
10311
|
-
*/
|
|
10312
|
-
declare const ThemeProvider: ({ brand, setBrand, colorScheme, children, }: Props$1) => react_jsx_runtime.JSX.Element;
|
|
10313
|
-
|
|
10314
|
-
/**
|
|
10315
|
-
* Read the active brand (and optional setter) from the nearest `<ThemeProvider>`.
|
|
10316
|
-
*
|
|
10317
|
-
* Throws if no provider is mounted — mirrors TanStack Query's `useQueryClient`
|
|
10318
|
-
* error UX so missing-provider bugs surface as a clear runtime message instead
|
|
10319
|
-
* of a confusing "undefined.brand" downstream.
|
|
10320
|
-
*/
|
|
10321
|
-
declare const useTheme: () => ThemeContextValue;
|
|
10322
|
-
|
|
10323
|
-
/**
|
|
10324
|
-
* Read the configured color scheme and the effective light/dark mode from the
|
|
10325
|
-
* nearest `<ThemeProvider>`. Read-only — there is no setter (yet).
|
|
10326
|
-
*
|
|
10327
|
-
* Throws if no provider is mounted (mirrors `useTheme()`).
|
|
10328
|
-
*/
|
|
10329
|
-
declare const useColorScheme: () => {
|
|
10330
|
-
colorScheme: ColorScheme;
|
|
10331
|
-
resolvedMode: ResolvedMode;
|
|
10332
|
-
};
|
|
10333
|
-
|
|
10334
|
-
declare const useIsLegacyBrand: () => boolean;
|
|
10335
|
-
|
|
10336
|
-
type Props = {
|
|
10337
|
-
brand: Brand;
|
|
10338
|
-
colorScheme?: ColorScheme;
|
|
10339
|
-
children: ReactNode;
|
|
10340
|
-
};
|
|
10341
|
-
/**
|
|
10342
|
-
* Storybook decorator that wraps every story in a `ThemeProvider`. Wire it
|
|
10343
|
-
* once in `.storybook/preview.tsx` (added to the global `decorators` array),
|
|
10344
|
-
* driven by the `brand` global the toolbar item sets. Pair with
|
|
10345
|
-
* `resolveStorybookBrand` + `themeToolbarBrands` from `./storybookBrands` to
|
|
10346
|
-
* build the toolbar. This is the empirical brand-swap harness UT-4047
|
|
10347
|
-
* promised for the layer-0 contract.
|
|
10348
|
-
*
|
|
10349
|
-
* `colorScheme` (driven by the **Mode** toolbar) is forwarded to the provider
|
|
10350
|
-
* so flipping it sets `data-theme` and emits the active mode's palette — the
|
|
10351
|
-
* empirical light/dark switch. The story is rendered on a `bg-background`
|
|
10352
|
-
* surface so the mode is actually visible (otherwise dark-mode text sits on
|
|
10353
|
-
* the unrelated canvas backdrop).
|
|
10354
|
-
*/
|
|
10355
|
-
declare const ThemeDecorator: ({ brand, colorScheme, children }: Props) => react_jsx_runtime.JSX.Element;
|
|
10356
|
-
|
|
10357
|
-
/**
|
|
10358
|
-
* Default toolbar items shipped with `ThemeDecorator` — the same brand IDs
|
|
10359
|
-
* the registry exports today. Re-exported so a downstream Storybook config
|
|
10360
|
-
* can extend the list with additional brands without re-implementing the
|
|
10361
|
-
* decorator wiring.
|
|
10362
|
-
*/
|
|
10363
|
-
declare const themeToolbarBrands: {
|
|
10364
|
-
id: string;
|
|
10365
|
-
name: string;
|
|
10366
|
-
colors: {
|
|
10367
|
-
foreground: string;
|
|
10368
|
-
background: string;
|
|
10369
|
-
muted: string;
|
|
10370
|
-
mutedForeground: string;
|
|
10371
|
-
border: string;
|
|
10372
|
-
primary: string;
|
|
10373
|
-
primaryForeground: string;
|
|
10374
|
-
destructive: string;
|
|
10375
|
-
destructiveForeground: string;
|
|
10376
|
-
accent?: string | undefined;
|
|
10377
|
-
accentForeground?: string | undefined;
|
|
10378
|
-
};
|
|
10379
|
-
shell: "sidebar" | "topnav";
|
|
10380
|
-
colorsDark?: {
|
|
10381
|
-
foreground: string;
|
|
10382
|
-
background: string;
|
|
10383
|
-
muted: string;
|
|
10384
|
-
mutedForeground: string;
|
|
10385
|
-
border: string;
|
|
10386
|
-
primary: string;
|
|
10387
|
-
primaryForeground: string;
|
|
10388
|
-
destructive: string;
|
|
10389
|
-
destructiveForeground: string;
|
|
10390
|
-
accent?: string | undefined;
|
|
10391
|
-
accentForeground?: string | undefined;
|
|
10392
|
-
} | undefined;
|
|
10393
|
-
sidebarColors?: {
|
|
10394
|
-
sidebar?: string | undefined;
|
|
10395
|
-
sidebarForeground?: string | undefined;
|
|
10396
|
-
sidebarPrimary?: string | undefined;
|
|
10397
|
-
sidebarPrimaryForeground?: string | undefined;
|
|
10398
|
-
sidebarAccent?: string | undefined;
|
|
10399
|
-
sidebarAccentForeground?: string | undefined;
|
|
10400
|
-
sidebarBorder?: string | undefined;
|
|
10401
|
-
sidebarRing?: string | undefined;
|
|
10402
|
-
} | undefined;
|
|
10403
|
-
sidebarColorsDark?: {
|
|
10404
|
-
sidebar?: string | undefined;
|
|
10405
|
-
sidebarForeground?: string | undefined;
|
|
10406
|
-
sidebarPrimary?: string | undefined;
|
|
10407
|
-
sidebarPrimaryForeground?: string | undefined;
|
|
10408
|
-
sidebarAccent?: string | undefined;
|
|
10409
|
-
sidebarAccentForeground?: string | undefined;
|
|
10410
|
-
sidebarBorder?: string | undefined;
|
|
10411
|
-
sidebarRing?: string | undefined;
|
|
10412
|
-
} | undefined;
|
|
10413
|
-
typography?: {
|
|
10414
|
-
fontFamily: string;
|
|
10415
|
-
} | undefined;
|
|
10416
|
-
radii?: {
|
|
10417
|
-
sm: string;
|
|
10418
|
-
md: string;
|
|
10419
|
-
lg: string;
|
|
10420
|
-
} | undefined;
|
|
10421
|
-
density?: "comfortable" | "compact" | undefined;
|
|
10422
|
-
}[];
|
|
10423
|
-
/**
|
|
10424
|
-
* Resolve a brand ID coming from the Storybook globals object. Falls back to
|
|
10425
|
-
* the canonical Keboola brand if the ID is unknown — keeps the decorator
|
|
10426
|
-
* defensive against stale URL state.
|
|
10427
|
-
*/
|
|
10428
|
-
declare const resolveStorybookBrand: (id: unknown) => Brand;
|
|
10464
|
+
declare const ZoomableSvg: ({ html, copyText, className }: Props) => react_jsx_runtime.JSX.Element;
|
|
10429
10465
|
|
|
10430
|
-
export { Alert, AlertModal, AnswerSummary, type AnswerItem as AnswerSummaryItem, type Props$
|
|
10466
|
+
export { Alert, AlertModal, AnswerSummary, type AnswerItem as AnswerSummaryItem, type Props$F as AnswerSummaryProps, type Variant$5 as AnswerSummaryVariant, AppShell, AutoSaveTextarea, Avatar, Badge, Breadcrumb, Button, ButtonGroup, ButtonInline, Calendar, type CalendarProps, Card, ChangeClassification, Checkbox, Clipboard, ClipboardButton, ClipboardInline, Collapse, Collapsible, CollapsiblePanel, CollapsibleStepHeader, ColorInput, ColorModeSwitch, type ColorScheme, Combobox, Command, CommandGroup, CommandInput, CommandItem, CommandList, ConflictStatusIndicator, DateInput, DatePicker, type DateRange, DateRangeInput, DateRangePicker, type DateRangePreset, type DiffInformation, type DiffRow, DiffType, DiffView, DotsLoader, DropdownMenu, EmptyConfigurationActionCard, EmptySearchContent, EmptyState, type RootProps$3 as EmptyStateProps, type Variant$1 as EmptyStateVariant, ErrorState, type RootProps$2 as ErrorStateProps, type Variant as ErrorStateVariant, FileUpload, FormGroup, FullScreenModal, FullScreenModalBody, FullScreenModalHeader, HelpBlock, HoverCard, InlineStepDetail, type Props$D as InlineStepDetailProps, InlineStepLabel, type Props$C as InlineStepLabelProps, type Variant$3 as InlineStepLabelVariant, InputGroup, InputOtp, type RootProps$4 as InputOtpProps, Kbd, Label, type LineInformation, Link, MarkedText, MergeConflict, MessageBubble, Modal, MultiActionButtonGroup, MultiCombobox, Navbar, NumberInput, PageHeader, PageLayout, PageToolbar, Pagination, PaneHeader, PanelWithDetails, PasswordInput, PlanApproval, type PlanApprovalProps, type PlanApprovalStatus, PlanRewritingIndicator, type PlanRewritingIndicatorProps, Popconfirm, Popover, Progress, type PromptCommand, PromptInput, type Props$1k as Props, Question, type QuestionAnswers, QuestionBlock, type Props$w as QuestionBlockProps, type QuestionOption, type Props$x as QuestionProps, type QuestionStep, RadioGroup, ResizableHandle, ResizablePanel, ResizablePanelGroup, type ResolvedMode, ScrollArea, ScrollBar, Search, SearchForm, SearchInput, SearchInputWithNavigation, Select, type SelectItem, type SelectItemGroup, Separator, type ServerFieldError, Sheet, type SideInformation, Sidebar, type SidebarMode, SidebarProvider, type SidebarSide, Skeleton, SkeletonList, Slider, SplitButton, type StepStatus, Stepper, type StepperOrientation, SuggestedPrompt, Switch, Table, Tabs, TabsContent, Tagger, TextInput, Textarea, type ThemeContextValue, ThemeDecorator, ThemeProvider, ThinkingIndicator, type ThumbTooltipFn, TimeInput, TimePicker, Timeline, type ToastOptions, Toaster, Toggle, ToggleGroup, Tooltip, type Props$1J as TooltipProps, TooltipProvider, type Trigger, Truncated, UsageStats, UsageStatsRing, type UseAutosizeInputOptions, type UseAutosizeInputReturn, type ValidityState, type WordInformation, ZoomableSvg, argoVariants, cn, computeDiffRows, computeLineInformation, copyToClipboard, isMac, kbdVariants, keys, mergeRefs, resolveStorybookBrand, setServerFieldErrors, themeToolbarBrands, toast, useAppForm, useAutosizeInput, useColorScheme, useInputOtpContext, useIsLegacyBrand, useMergeDiff, useNotification, useScrollbarPosition, useSidebar, useTheme, withForm };
|