@keboola/design 6.1.0 → 6.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/editors.cjs +48 -0
- package/dist/editors.cjs.map +1 -1
- package/dist/editors.js +48 -0
- package/dist/editors.js.map +1 -1
- package/dist/icons.cjs +48 -0
- package/dist/icons.cjs.map +1 -1
- package/dist/icons.d.cts +3 -1
- package/dist/icons.d.ts +3 -1
- package/dist/icons.js +48 -1
- package/dist/icons.js.map +1 -1
- package/dist/index.cjs +1039 -36
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +461 -300
- package/dist/index.d.ts +461 -300
- package/dist/index.js +1029 -38
- package/dist/index.js.map +1 -1
- package/dist/markdown-editor.cjs +64 -9
- package/dist/markdown-editor.cjs.map +1 -1
- package/dist/markdown-editor.js +64 -9
- package/dist/markdown-editor.js.map +1 -1
- package/dist/mermaid.cjs +48 -0
- package/dist/mermaid.cjs.map +1 -1
- package/dist/mermaid.js +48 -0
- package/dist/mermaid.js.map +1 -1
- package/dist/rjsf.cjs +64 -14
- package/dist/rjsf.cjs.map +1 -1
- package/dist/rjsf.js +64 -14
- package/dist/rjsf.js.map +1 -1
- package/dist/styles.css +2 -2
- package/dist/testing.cjs +12 -0
- package/dist/testing.cjs.map +1 -1
- package/dist/testing.js +12 -0
- package/dist/testing.js.map +1 -1
- package/package.json +5 -4
- package/src/styles.css +22 -0
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as react from 'react';
|
|
3
|
-
import { ComponentProps, Ref, ElementRef, ReactNode, PropsWithChildren, MouseEvent as MouseEvent$1, HTMLAttributes, RefObject, MouseEventHandler,
|
|
3
|
+
import { ComponentProps, Ref, ElementRef, ReactNode, PropsWithChildren, ComponentPropsWithRef, MouseEvent as MouseEvent$1, HTMLAttributes, RefObject, MouseEventHandler, ChangeEvent, FocusEvent as FocusEvent$1, InputHTMLAttributes, KeyboardEvent as KeyboardEvent$1, ComponentPropsWithoutRef, CSSProperties, TransitionEventHandler, MutableRefObject, RefCallback } from 'react';
|
|
4
4
|
import * as class_variance_authority from 'class-variance-authority';
|
|
5
5
|
import { VariantProps } from 'class-variance-authority';
|
|
6
6
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
@@ -24,7 +24,7 @@ export { defaultFilter, useCommandState } from 'cmdk';
|
|
|
24
24
|
import * as react_textarea_autosize from 'react-textarea-autosize';
|
|
25
25
|
import react_textarea_autosize__default from 'react-textarea-autosize';
|
|
26
26
|
import { Matcher, DateRange as DateRange$1, PropsBase, PropsSingle, PropsRange } from 'react-day-picker';
|
|
27
|
-
import { LabelProps } from '@radix-ui/react-label';
|
|
27
|
+
import { LabelProps as LabelProps$1 } from '@radix-ui/react-label';
|
|
28
28
|
import * as _radix_ui_react_switch from '@radix-ui/react-switch';
|
|
29
29
|
import { Root as Root$6 } from '@radix-ui/react-switch';
|
|
30
30
|
import * as RRadioGroup from '@radix-ui/react-radio-group';
|
|
@@ -56,7 +56,7 @@ import { AnyFormApi } from '@tanstack/react-form';
|
|
|
56
56
|
import { ClassValue } from 'clsx';
|
|
57
57
|
export { Slot } from '@radix-ui/react-slot';
|
|
58
58
|
|
|
59
|
-
declare const variants$
|
|
59
|
+
declare const variants$4: (props?: ({
|
|
60
60
|
block?: boolean | null | undefined;
|
|
61
61
|
variant?: "primary" | "secondary" | "inline" | "danger" | "invisible" | "outline" | null | undefined;
|
|
62
62
|
size?: "medium" | "small" | "large" | "icon-lg" | "icon" | "icon-sm" | "icon-xs" | "icon-2xs" | "icon-3xs" | null | undefined;
|
|
@@ -74,12 +74,12 @@ 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$1W = {
|
|
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. */
|
|
81
81
|
asChild?: boolean;
|
|
82
|
-
} & ComponentProps<'button'> & VariantProps<typeof variants$
|
|
82
|
+
} & ComponentProps<'button'> & VariantProps<typeof variants$4>;
|
|
83
83
|
/**
|
|
84
84
|
* Primary action surface for the design system — covers all clickable controls except inline text links.
|
|
85
85
|
*
|
|
@@ -93,7 +93,7 @@ type Props$1U = {
|
|
|
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$1W & {
|
|
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$1V = 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$1V & {
|
|
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?: "medium" | "small" | "large" | "extra-small" | "little-small" | "compact" | null | undefined;
|
|
114
114
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
115
|
-
type Props$
|
|
115
|
+
type Props$1U = {
|
|
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$1U & {
|
|
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$1T = {
|
|
127
127
|
actions?: ReactNode;
|
|
128
128
|
isActionsOpen?: boolean;
|
|
129
129
|
onActionsOpenChange?: (open: boolean) => void;
|
|
@@ -132,7 +132,7 @@ type Props$1R = {
|
|
|
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$1T & {
|
|
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$1S = {
|
|
150
150
|
className?: string;
|
|
151
151
|
} & PropsWithChildren;
|
|
152
152
|
declare const MultiActionButtonGroup: {
|
|
153
|
-
({ children, className }: Props$
|
|
153
|
+
({ children, className }: Props$1S): 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,20 +168,20 @@ declare const toggleVariants: (props?: ({
|
|
|
168
168
|
size?: "medium" | "small" | "large" | null | undefined;
|
|
169
169
|
iconOnly?: boolean | null | undefined;
|
|
170
170
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
171
|
-
type Props$
|
|
171
|
+
type Props$1R = {
|
|
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$1R & {
|
|
176
176
|
ref?: Ref<ElementRef<"button">>;
|
|
177
177
|
}) => react_jsx_runtime.JSX.Element;
|
|
178
178
|
|
|
179
179
|
declare const rootVariants: (props?: ({
|
|
180
180
|
size?: "medium" | "small" | "large" | null | undefined;
|
|
181
181
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
182
|
-
type RootProps$
|
|
182
|
+
type RootProps$8 = ComponentProps<typeof ToggleGroupPrimitive.Root> & VariantProps<typeof rootVariants>;
|
|
183
183
|
type ItemProps = ComponentProps<typeof ToggleGroupPrimitive.Item>;
|
|
184
|
-
declare const ToggleGroup: (({ ref, className, size, ...props }: RootProps$
|
|
184
|
+
declare const ToggleGroup: (({ ref, className, size, ...props }: RootProps$8 & {
|
|
185
185
|
ref?: Ref<ElementRef<"div">>;
|
|
186
186
|
}) => react_jsx_runtime.JSX.Element) & {
|
|
187
187
|
/** Individual segment inside a `ToggleGroup`. `value` is required and must be unique within the group. */
|
|
@@ -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$1Q = {
|
|
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$1Q) => 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$1P = {
|
|
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$1P): 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,30 +251,30 @@ 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$1O = {
|
|
255
|
+
tooltip?: Props$1P['tooltip'];
|
|
256
|
+
tooltipPlacement?: Props$1P['placement'];
|
|
257
|
+
tooltipVariant?: Props$1P['variant'];
|
|
258
|
+
asChild?: Props$1P['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$1O & {
|
|
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$1N = 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$1N) => 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$1M = {
|
|
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$1M) => react_jsx_runtime.JSX.Element;
|
|
278
278
|
|
|
279
279
|
/**
|
|
280
280
|
* Compound component for readonly value/command boxes with inline copy.
|
|
@@ -379,8 +379,25 @@ declare const CopyField: {
|
|
|
379
379
|
}) => react_jsx_runtime.JSX.Element | null;
|
|
380
380
|
};
|
|
381
381
|
|
|
382
|
-
|
|
383
|
-
|
|
382
|
+
declare const LABELS: {
|
|
383
|
+
readonly signin: "Sign in with Google";
|
|
384
|
+
readonly signup: "Sign up with Google";
|
|
385
|
+
readonly continue: "Continue with Google";
|
|
386
|
+
readonly 'signin-short': "Sign in";
|
|
387
|
+
};
|
|
388
|
+
declare const variants$3: (props?: ({
|
|
389
|
+
variant?: "default" | "neutral" | null | undefined;
|
|
390
|
+
shape?: "circle" | "rectangular" | null | undefined;
|
|
391
|
+
size?: "icon" | "default" | null | undefined;
|
|
392
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
393
|
+
type Props$1L = ComponentPropsWithRef<'button'> & VariantProps<typeof variants$3> & {
|
|
394
|
+
label?: keyof typeof LABELS;
|
|
395
|
+
isLoading?: boolean;
|
|
396
|
+
};
|
|
397
|
+
declare const GoogleButton: ({ ref, variant, shape, size, label, isLoading, disabled, type, className, children, style, ...buttonProps }: Props$1L) => react_jsx_runtime.JSX.Element;
|
|
398
|
+
|
|
399
|
+
type Props$1K = ComponentProps<'a'>;
|
|
400
|
+
declare const Link: ({ ref, children, target, rel, onClick, className, ...rest }: Props$1K & {
|
|
384
401
|
ref?: Ref<ElementRef<"a">>;
|
|
385
402
|
}) => react_jsx_runtime.JSX.Element;
|
|
386
403
|
|
|
@@ -392,13 +409,13 @@ type AlertModalVariant = 'info' | 'warning' | 'danger' | 'success';
|
|
|
392
409
|
|
|
393
410
|
type ConfirmHandler = (event: MouseEvent$1<HTMLButtonElement>) => void | Promise<unknown>;
|
|
394
411
|
type CancelHandler = (event: MouseEvent$1<HTMLButtonElement>) => void;
|
|
395
|
-
type Props$
|
|
412
|
+
type Props$1J = {
|
|
396
413
|
onConfirm?: ConfirmHandler;
|
|
397
414
|
onCancel?: CancelHandler;
|
|
398
415
|
skipAsyncWait?: boolean;
|
|
399
416
|
} & ComponentProps<typeof Root$1>;
|
|
400
417
|
declare const AlertModal: {
|
|
401
|
-
({ children, onConfirm, onCancel, skipAsyncWait, open, defaultOpen, onOpenChange, ...rest }: Props$
|
|
418
|
+
({ children, onConfirm, onCancel, skipAsyncWait, open, defaultOpen, onOpenChange, ...rest }: Props$1J): react_jsx_runtime.JSX.Element;
|
|
402
419
|
Trigger: ({ ref, onClick, onKeyDown, ...props }: _radix_ui_react_alert_dialog.AlertDialogTriggerProps & react.RefAttributes<HTMLButtonElement>) => react_jsx_runtime.JSX.Element;
|
|
403
420
|
Content: ({ variant, icon, title, cancelLabel, confirmLabel: actionLabel, container, className, children, onEscapeKeyDown, ...props }: {
|
|
404
421
|
variant?: AlertModalVariant;
|
|
@@ -410,7 +427,7 @@ declare const AlertModal: {
|
|
|
410
427
|
} & Omit<_radix_ui_react_alert_dialog.AlertDialogContentProps & react.RefAttributes<HTMLDivElement>, "title">) => react_jsx_runtime.JSX.Element;
|
|
411
428
|
};
|
|
412
429
|
|
|
413
|
-
type Props$
|
|
430
|
+
type Props$1I = ComponentProps<typeof Root$2>;
|
|
414
431
|
/**
|
|
415
432
|
* Blocking dialog for confirmations, forms, and detail views. Built on Radix Dialog.
|
|
416
433
|
*
|
|
@@ -426,7 +443,7 @@ type Props$1H = ComponentProps<typeof Root$2>;
|
|
|
426
443
|
* @see RECIPES.md#confirm-dialog — for destructive-confirm dialogs
|
|
427
444
|
*/
|
|
428
445
|
declare const Modal: {
|
|
429
|
-
(props: Props$
|
|
446
|
+
(props: Props$1I): react_jsx_runtime.JSX.Element;
|
|
430
447
|
Close: react.ForwardRefExoticComponent<_radix_ui_react_dialog.DialogCloseProps & react.RefAttributes<HTMLButtonElement>>;
|
|
431
448
|
Trigger: react.ForwardRefExoticComponent<_radix_ui_react_dialog.DialogTriggerProps & react.RefAttributes<HTMLButtonElement>>;
|
|
432
449
|
Content: ({ size, className, children, onEscapeKeyDown, ...props }: _radix_ui_react_dialog.DialogContentProps & react.RefAttributes<HTMLDivElement> & {
|
|
@@ -436,7 +453,7 @@ declare const Modal: {
|
|
|
436
453
|
as?: "form";
|
|
437
454
|
}) => react_jsx_runtime.JSX.Element;
|
|
438
455
|
Icon: ({ color, icon }: {
|
|
439
|
-
color: ("
|
|
456
|
+
color: ("blue" | "gray" | "green" | "orange" | "red" | "violet") | (string & {});
|
|
440
457
|
icon: react.ReactNode;
|
|
441
458
|
}) => react_jsx_runtime.JSX.Element;
|
|
442
459
|
Image: ({ src, alt }: {
|
|
@@ -479,7 +496,7 @@ declare const FullScreenModal: (({ children, className, lockBodyScroll, onEscape
|
|
|
479
496
|
}) => react_jsx_runtime.JSX.Element;
|
|
480
497
|
};
|
|
481
498
|
|
|
482
|
-
type Props$
|
|
499
|
+
type Props$1H = PropsWithChildren<Omit<HTMLAttributes<HTMLDivElement>, 'title'> & {
|
|
483
500
|
title: ReactNode;
|
|
484
501
|
titleClassName?: string;
|
|
485
502
|
titleWrapperClassName?: string;
|
|
@@ -488,16 +505,16 @@ type Props$1G = PropsWithChildren<Omit<HTMLAttributes<HTMLDivElement>, 'title'>
|
|
|
488
505
|
onClose?: () => void;
|
|
489
506
|
showPreviousTitle?: boolean;
|
|
490
507
|
}>;
|
|
491
|
-
declare const FullScreenModalHeader: ({ title, titleClassName, titleWrapperClassName, defaultTitleStyles, isTitleWithIcon, children, onClose, className, showPreviousTitle, ...props }: Props$
|
|
508
|
+
declare const FullScreenModalHeader: ({ title, titleClassName, titleWrapperClassName, defaultTitleStyles, isTitleWithIcon, children, onClose, className, showPreviousTitle, ...props }: Props$1H) => react_jsx_runtime.JSX.Element;
|
|
492
509
|
|
|
493
|
-
type Props$
|
|
494
|
-
declare const FullScreenModalBody: ({ ref, className, children, ...props }: Props$
|
|
510
|
+
type Props$1G = HTMLAttributes<HTMLDivElement>;
|
|
511
|
+
declare const FullScreenModalBody: ({ ref, className, children, ...props }: Props$1G & {
|
|
495
512
|
ref?: Ref<HTMLDivElement>;
|
|
496
513
|
}) => react_jsx_runtime.JSX.Element;
|
|
497
514
|
|
|
498
|
-
type Props$
|
|
515
|
+
type Props$1F = ComponentProps<typeof Root$2>;
|
|
499
516
|
declare const Sheet: {
|
|
500
|
-
(props: Props$
|
|
517
|
+
(props: Props$1F): react_jsx_runtime.JSX.Element;
|
|
501
518
|
Close: react.ForwardRefExoticComponent<_radix_ui_react_dialog.DialogCloseProps & react.RefAttributes<HTMLButtonElement>>;
|
|
502
519
|
Trigger: react.ForwardRefExoticComponent<_radix_ui_react_dialog.DialogTriggerProps & react.RefAttributes<HTMLButtonElement>>;
|
|
503
520
|
Content: ({ className, children, side, disableTransition, hideOverlay, keepOpenOnPointerDownOutside, onPointerDownOutside, onInteractOutside, container, ...props }: _radix_ui_react_dialog.DialogContentProps & react.RefAttributes<HTMLDivElement> & {
|
|
@@ -520,9 +537,9 @@ declare const Sheet: {
|
|
|
520
537
|
Body: ({ className, ...rest }: react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => react_jsx_runtime.JSX.Element;
|
|
521
538
|
};
|
|
522
539
|
|
|
523
|
-
type Props$
|
|
540
|
+
type Props$1E = ComponentProps<typeof Root$3>;
|
|
524
541
|
declare const Popover: {
|
|
525
|
-
(props: Props$
|
|
542
|
+
(props: Props$1E): react_jsx_runtime.JSX.Element;
|
|
526
543
|
/**
|
|
527
544
|
* Main Layout
|
|
528
545
|
*/
|
|
@@ -544,12 +561,12 @@ type PopconfirmContextType = {
|
|
|
544
561
|
isLoading: boolean;
|
|
545
562
|
};
|
|
546
563
|
|
|
547
|
-
type Props$
|
|
564
|
+
type Props$1D = {
|
|
548
565
|
children: ReactNode;
|
|
549
566
|
skipAsyncWait?: boolean;
|
|
550
567
|
} & ComponentProps<typeof Popover> & Omit<Partial<PopconfirmContextType>, 'isLoading'>;
|
|
551
568
|
declare const Popconfirm: {
|
|
552
|
-
({ children, onConfirm, onCancel, variant, enabled, onOpenChange, open, skipAsyncWait, ...rest }: Props$
|
|
569
|
+
({ children, onConfirm, onCancel, variant, enabled, onOpenChange, open, skipAsyncWait, ...rest }: Props$1D): react_jsx_runtime.JSX.Element;
|
|
553
570
|
Confirm: ({ ref, onClick, children, asChild, className, ...props }: (({
|
|
554
571
|
asChild: true;
|
|
555
572
|
} & react.ClassAttributes<HTMLButtonElement> & react.ButtonHTMLAttributes<HTMLButtonElement>) | ({
|
|
@@ -902,18 +919,18 @@ declare const Popconfirm: {
|
|
|
902
919
|
Trigger: ({ onClick, ...props }: _radix_ui_react_popover.PopoverTriggerProps & react.RefAttributes<HTMLButtonElement>) => react_jsx_runtime.JSX.Element;
|
|
903
920
|
};
|
|
904
921
|
|
|
905
|
-
type Props$
|
|
922
|
+
type Props$1C = ComponentProps<typeof Root$4>;
|
|
906
923
|
declare const HoverCard: {
|
|
907
|
-
({ openDelay, closeDelay, ...rest }: Props$
|
|
924
|
+
({ openDelay, closeDelay, ...rest }: Props$1C): react_jsx_runtime.JSX.Element;
|
|
908
925
|
Content: ({ ref, className, align, sideOffset, children, ...props }: Omit<_radix_ui_react_hover_card.HoverCardContentProps & react.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
909
926
|
ref?: react.Ref<react.ElementRef<react.ForwardRefExoticComponent<_radix_ui_react_hover_card.HoverCardContentProps & react.RefAttributes<HTMLDivElement>>>>;
|
|
910
927
|
}) => react_jsx_runtime.JSX.Element;
|
|
911
928
|
Trigger: react.ForwardRefExoticComponent<_radix_ui_react_hover_card.HoverCardTriggerProps & react.RefAttributes<HTMLAnchorElement>>;
|
|
912
929
|
};
|
|
913
930
|
|
|
914
|
-
type Props$
|
|
931
|
+
type Props$1B = ComponentProps<typeof Root$5>;
|
|
915
932
|
declare const DropdownMenu: {
|
|
916
|
-
({ modal, ...props }: Props$
|
|
933
|
+
({ modal, ...props }: Props$1B): react_jsx_runtime.JSX.Element;
|
|
917
934
|
/**
|
|
918
935
|
* Main Layout
|
|
919
936
|
*/
|
|
@@ -969,14 +986,14 @@ declare const DropdownMenu: {
|
|
|
969
986
|
}) => react_jsx_runtime.JSX.Element;
|
|
970
987
|
};
|
|
971
988
|
|
|
972
|
-
type Props$
|
|
989
|
+
type Props$1A = {
|
|
973
990
|
variant?: 'checkbox' | 'radio' | 'default';
|
|
974
991
|
};
|
|
975
|
-
declare const CheckIndicator: ({ variant }: Props$
|
|
992
|
+
declare const CheckIndicator: ({ variant }: Props$1A) => react_jsx_runtime.JSX.Element | null;
|
|
976
993
|
|
|
977
|
-
type Props$
|
|
994
|
+
type Props$1z = ComponentProps<typeof Command$1>;
|
|
978
995
|
declare const Command: {
|
|
979
|
-
({ className, ...rest }: Props$
|
|
996
|
+
({ className, ...rest }: Props$1z): react_jsx_runtime.JSX.Element;
|
|
980
997
|
Content: ({ className, ...rest }: react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => react_jsx_runtime.JSX.Element;
|
|
981
998
|
Separator: ({ className, ...props }: Pick<Pick<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof react.HTMLAttributes<HTMLDivElement>> & {
|
|
982
999
|
ref?: React.Ref<HTMLDivElement>;
|
|
@@ -1370,27 +1387,27 @@ declare const Command: {
|
|
|
1370
1387
|
};
|
|
1371
1388
|
|
|
1372
1389
|
declare const addonVariants$1: (props?: ({
|
|
1373
|
-
align?: "inline-
|
|
1390
|
+
align?: "inline-end" | "inline-start" | "block-end" | "block-start" | null | undefined;
|
|
1374
1391
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1375
|
-
type Props$
|
|
1376
|
-
declare const InputGroupAddon: ({ children, align, className, ...props }: Props$
|
|
1392
|
+
type Props$1y = ComponentProps<'div'> & VariantProps<typeof addonVariants$1>;
|
|
1393
|
+
declare const InputGroupAddon: ({ children, align, className, ...props }: Props$1y) => react_jsx_runtime.JSX.Element;
|
|
1377
1394
|
|
|
1378
1395
|
type ButtonProps = ComponentProps<typeof Button>;
|
|
1379
|
-
type Props$
|
|
1380
|
-
declare const InputGroupButton: ({ ref, className, tabIndex, ...props }: Props$
|
|
1396
|
+
type Props$1x = Omit<ButtonProps, 'size' | 'block' | 'variant'>;
|
|
1397
|
+
declare const InputGroupButton: ({ ref, className, tabIndex, ...props }: Props$1x & {
|
|
1381
1398
|
ref?: Ref<ElementRef<"button">>;
|
|
1382
1399
|
}) => react_jsx_runtime.JSX.Element;
|
|
1383
1400
|
|
|
1384
|
-
type Props$
|
|
1385
|
-
declare const InputGroupInput: ({ ref, className, ...inputProps }: Props$
|
|
1401
|
+
type Props$1w = ComponentProps<'input'>;
|
|
1402
|
+
declare const InputGroupInput: ({ ref, className, ...inputProps }: Props$1w & {
|
|
1386
1403
|
ref?: Ref<ElementRef<"input">>;
|
|
1387
1404
|
}) => react_jsx_runtime.JSX.Element;
|
|
1388
1405
|
|
|
1389
|
-
type Props$
|
|
1390
|
-
declare const InputGroupText: ({ className, ...props }: Props$
|
|
1406
|
+
type Props$1v = ComponentProps<'span'>;
|
|
1407
|
+
declare const InputGroupText: ({ className, ...props }: Props$1v) => react_jsx_runtime.JSX.Element;
|
|
1391
1408
|
|
|
1392
1409
|
type TextareaNativeProps$1 = Omit<ComponentProps<typeof react_textarea_autosize__default>, 'value' | 'defaultValue' | 'rows' | 'maxRows'>;
|
|
1393
|
-
type Props$
|
|
1410
|
+
type Props$1u = TextareaNativeProps$1 & {
|
|
1394
1411
|
value?: string | null;
|
|
1395
1412
|
defaultValue?: string | null;
|
|
1396
1413
|
onValueChange?: (value: string) => void;
|
|
@@ -1398,7 +1415,7 @@ type Props$1t = TextareaNativeProps$1 & {
|
|
|
1398
1415
|
maxRows?: number | 'unlimited';
|
|
1399
1416
|
disableResize?: boolean;
|
|
1400
1417
|
};
|
|
1401
|
-
declare const InputGroupTextArea: ({ ref, className, onChange, onValueChange, value, defaultValue, onBlur, onValueBlur, disableResize, minRows, maxRows, ...props }: Props$
|
|
1418
|
+
declare const InputGroupTextArea: ({ ref, className, onChange, onValueChange, value, defaultValue, onBlur, onValueBlur, disableResize, minRows, maxRows, ...props }: Props$1u & {
|
|
1402
1419
|
ref?: Ref<ElementRef<"textarea">>;
|
|
1403
1420
|
}) => react_jsx_runtime.JSX.Element;
|
|
1404
1421
|
|
|
@@ -1408,10 +1425,10 @@ declare const inputGroupVariants: (props?: ({
|
|
|
1408
1425
|
sizing?: "medium" | "small" | "default" | null | undefined;
|
|
1409
1426
|
state?: "warning" | "default" | "error" | null | undefined;
|
|
1410
1427
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1411
|
-
type Props$
|
|
1428
|
+
type Props$1t = ComponentProps<'div'> & Omit<VariantProps<typeof inputGroupVariants>, 'variant'> & {
|
|
1412
1429
|
variant?: Exclude<VariantProps<typeof inputGroupVariants>['variant'], 'argo'>;
|
|
1413
1430
|
};
|
|
1414
|
-
declare const InputGroupRoot: ({ ref, children, state, variant, sizing, focusVariant, className, ...props }: Props$
|
|
1431
|
+
declare const InputGroupRoot: ({ ref, children, state, variant, sizing, focusVariant, className, ...props }: Props$1t & {
|
|
1415
1432
|
ref?: Ref<ElementRef<"div">>;
|
|
1416
1433
|
}) => react_jsx_runtime.JSX.Element;
|
|
1417
1434
|
declare const InputGroup: typeof InputGroupRoot & {
|
|
@@ -1438,7 +1455,7 @@ type OwnProps$1 = {
|
|
|
1438
1455
|
* Props for `Input`. Combines `InputGroup` chrome (variant / sizing / state / focusVariant) with
|
|
1439
1456
|
* input-specific slots (`prefix`, `leftSuffix`, `rightSuffix`, `allowClear`).
|
|
1440
1457
|
*/
|
|
1441
|
-
type Props$
|
|
1458
|
+
type Props$1s = InputGroupProps$7 & OwnProps$1 & Omit<ComponentProps<'input'>, 'prefix' | 'value' | 'defaultValue'>;
|
|
1442
1459
|
/**
|
|
1443
1460
|
* Low-level text input with `InputGroup` chrome — addons, clear button, sizing, focus variants.
|
|
1444
1461
|
*
|
|
@@ -1448,12 +1465,12 @@ type Props$1r = InputGroupProps$7 & OwnProps$1 & Omit<ComponentProps<'input'>, '
|
|
|
1448
1465
|
* `FormGroup.TextInput`; for search use `SearchInput`; for forms with validation use `useAppForm`.
|
|
1449
1466
|
* **Composition:** wrap in `FormGroup` for shared error state, or render directly as a controlled input.
|
|
1450
1467
|
*/
|
|
1451
|
-
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$
|
|
1468
|
+
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$1s & {
|
|
1452
1469
|
ref?: Ref<ElementRef<"input">>;
|
|
1453
1470
|
}) => react_jsx_runtime.JSX.Element;
|
|
1454
1471
|
|
|
1455
1472
|
type InputProps$1 = ComponentProps<typeof Input$1>;
|
|
1456
|
-
type Props$
|
|
1473
|
+
type Props$1r = Omit<InputProps$1, 'type' | 'value' | 'defaultValue'> & {
|
|
1457
1474
|
defaultValue?: Date | null;
|
|
1458
1475
|
disabledDays?: Matcher | Matcher[];
|
|
1459
1476
|
endMonth?: Date;
|
|
@@ -1462,12 +1479,12 @@ type Props$1q = Omit<InputProps$1, 'type' | 'value' | 'defaultValue'> & {
|
|
|
1462
1479
|
startMonth?: Date;
|
|
1463
1480
|
value?: Date | null;
|
|
1464
1481
|
};
|
|
1465
|
-
declare const DateInput: ({ ref, defaultValue, disabled, disabledDays, endMonth, onBlur, onChange, onValueBlur, onValueChange, placeholder, readOnly, startMonth, value, variant, ...props }: Props$
|
|
1482
|
+
declare const DateInput: ({ ref, defaultValue, disabled, disabledDays, endMonth, onBlur, onChange, onValueBlur, onValueChange, placeholder, readOnly, startMonth, value, variant, ...props }: Props$1r & {
|
|
1466
1483
|
ref?: Ref<ElementRef<"input">>;
|
|
1467
1484
|
}) => react_jsx_runtime.JSX.Element;
|
|
1468
1485
|
|
|
1469
1486
|
type InputProps = ComponentProps<typeof Input$1>;
|
|
1470
|
-
type Props$
|
|
1487
|
+
type Props$1q = Omit<InputProps, 'type' | 'value' | 'defaultValue'> & {
|
|
1471
1488
|
defaultValue?: DateRange$1 | null;
|
|
1472
1489
|
endMonth?: Date;
|
|
1473
1490
|
onValueBlur?: (value: DateRange$1 | null) => void;
|
|
@@ -1475,7 +1492,7 @@ type Props$1p = Omit<InputProps, 'type' | 'value' | 'defaultValue'> & {
|
|
|
1475
1492
|
startMonth?: Date;
|
|
1476
1493
|
value?: DateRange$1 | null;
|
|
1477
1494
|
};
|
|
1478
|
-
declare const DateRangeInput: ({ ref, defaultValue, disabled, endMonth, onBlur, onChange, onValueBlur, onValueChange, placeholder, readOnly, startMonth, value, ...props }: Props$
|
|
1495
|
+
declare const DateRangeInput: ({ ref, defaultValue, disabled, endMonth, onBlur, onChange, onValueBlur, onValueChange, placeholder, readOnly, startMonth, value, ...props }: Props$1q & {
|
|
1479
1496
|
ref?: Ref<ElementRef<"input">>;
|
|
1480
1497
|
}) => react_jsx_runtime.JSX.Element;
|
|
1481
1498
|
|
|
@@ -1493,7 +1510,7 @@ type OwnProps = {
|
|
|
1493
1510
|
* Props for `TextInput`. Extends `Input` with string-typed `value` / `defaultValue` and convenience
|
|
1494
1511
|
* `onValueChange` / `onValueBlur` callbacks. `null` / `undefined` are coerced to empty strings.
|
|
1495
1512
|
*/
|
|
1496
|
-
type Props$
|
|
1513
|
+
type Props$1p = OwnProps & NativeProps;
|
|
1497
1514
|
/**
|
|
1498
1515
|
* Standard text input with a string-only API. The default choice for a bare text input.
|
|
1499
1516
|
*
|
|
@@ -1505,42 +1522,42 @@ type Props$1o = OwnProps & NativeProps;
|
|
|
1505
1522
|
* page layouts. Chrome resolves from the active brand automatically: a modern brand always renders argo
|
|
1506
1523
|
* (any `variant` is ignored), while `variant` only tunes the legacy-brand chrome.
|
|
1507
1524
|
*/
|
|
1508
|
-
declare const TextInput: ({ ref, value, defaultValue, type, variant, onValueChange, onChange, onValueBlur, onBlur, ...props }: Props$
|
|
1525
|
+
declare const TextInput: ({ ref, value, defaultValue, type, variant, onValueChange, onChange, onValueBlur, onBlur, ...props }: Props$1p & {
|
|
1509
1526
|
ref?: Ref<ElementRef<"input">>;
|
|
1510
1527
|
}) => react_jsx_runtime.JSX.Element;
|
|
1511
1528
|
|
|
1512
|
-
type Props$
|
|
1513
|
-
declare const CommandInput: ({ ref, className, ...props }: Props$
|
|
1529
|
+
type Props$1o = ComponentProps<typeof TextInput>;
|
|
1530
|
+
declare const CommandInput: ({ ref, className, ...props }: Props$1o & {
|
|
1514
1531
|
ref?: Ref<ElementRef<"input">>;
|
|
1515
1532
|
}) => react_jsx_runtime.JSX.Element;
|
|
1516
1533
|
|
|
1517
|
-
type Props$
|
|
1534
|
+
type Props$1n = ComponentProps<typeof ScrollAreaPrimitive.Root> & {
|
|
1518
1535
|
viewPortClassName?: string;
|
|
1519
1536
|
scrollBarClassName?: string;
|
|
1520
1537
|
orientation?: ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>['orientation'];
|
|
1521
1538
|
};
|
|
1522
|
-
declare const ScrollArea: ({ ref, className, children, viewPortClassName, orientation, scrollBarClassName, ...props }: Props$
|
|
1539
|
+
declare const ScrollArea: ({ ref, className, children, viewPortClassName, orientation, scrollBarClassName, ...props }: Props$1n & {
|
|
1523
1540
|
ref?: Ref<ElementRef<"div">>;
|
|
1524
1541
|
}) => react_jsx_runtime.JSX.Element;
|
|
1525
1542
|
|
|
1526
|
-
type Props$
|
|
1527
|
-
declare const ScrollBar: ({ className, orientation, ...props }: Props$
|
|
1543
|
+
type Props$1m = ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>;
|
|
1544
|
+
declare const ScrollBar: ({ className, orientation, ...props }: Props$1m) => react_jsx_runtime.JSX.Element;
|
|
1528
1545
|
|
|
1529
|
-
type Props$
|
|
1530
|
-
declare const CommandList: ({ ref, className, children, viewPortClassName, ...props }: Props$
|
|
1546
|
+
type Props$1l = ComponentProps<typeof Command$1.List> & Pick<ComponentProps<typeof ScrollArea>, 'viewPortClassName'>;
|
|
1547
|
+
declare const CommandList: ({ ref, className, children, viewPortClassName, ...props }: Props$1l & {
|
|
1531
1548
|
ref?: Ref<ElementRef<"div">>;
|
|
1532
1549
|
}) => react_jsx_runtime.JSX.Element;
|
|
1533
1550
|
|
|
1534
|
-
type Props$
|
|
1535
|
-
declare const CommandGroup: ({ className, ...props }: Props$
|
|
1551
|
+
type Props$1k = ComponentProps<typeof Command$1.Group>;
|
|
1552
|
+
declare const CommandGroup: ({ className, ...props }: Props$1k) => react_jsx_runtime.JSX.Element;
|
|
1536
1553
|
|
|
1537
|
-
type Props$
|
|
1554
|
+
type Props$1j = ComponentProps<typeof Command$1.Item> & {
|
|
1538
1555
|
icon?: ReactNode;
|
|
1539
1556
|
checked?: boolean;
|
|
1540
1557
|
variant?: ComponentProps<typeof CheckIndicator>['variant'];
|
|
1541
1558
|
actions?: ReactNode;
|
|
1542
1559
|
};
|
|
1543
|
-
declare const CommandItem: ({ className, icon, children, checked, variant, actions, ...props }: Props$
|
|
1560
|
+
declare const CommandItem: ({ className, icon, children, checked, variant, actions, ...props }: Props$1j) => react_jsx_runtime.JSX.Element;
|
|
1544
1561
|
|
|
1545
1562
|
/** Viewport-relative box of the highlighted target. */
|
|
1546
1563
|
type TargetRect = {
|
|
@@ -1560,7 +1577,7 @@ type SpotlightTarget = string | RefObject<Element | null> | undefined;
|
|
|
1560
1577
|
*/
|
|
1561
1578
|
declare const useTargetRect: (target: SpotlightTarget, enabled: boolean) => TargetRect | null;
|
|
1562
1579
|
|
|
1563
|
-
type Props$
|
|
1580
|
+
type Props$1i = {
|
|
1564
1581
|
/** Target box to cut out of the dim layer, or `null` for a full dim (no highlight). */
|
|
1565
1582
|
rect: TargetRect | null;
|
|
1566
1583
|
/** Padding around the target inside the cut-out, in px. */
|
|
@@ -1582,7 +1599,7 @@ type Props$1h = {
|
|
|
1582
1599
|
* (steps, next/prev, "seen" persistence) is intentionally app-owned; see the
|
|
1583
1600
|
* "Guided tour (recipe)" story for the composition.
|
|
1584
1601
|
*/
|
|
1585
|
-
declare const SpotlightBackdrop: ({ rect, padding, radius, className, onClick }: Props$
|
|
1602
|
+
declare const SpotlightBackdrop: ({ rect, padding, radius, className, onClick }: Props$1i) => react_jsx_runtime.JSX.Element;
|
|
1586
1603
|
|
|
1587
1604
|
type CalendarProps = Omit<PropsBase, 'required' | 'captionLayout'> & (PropsSingle | PropsRange);
|
|
1588
1605
|
declare const Calendar: {
|
|
@@ -1626,20 +1643,20 @@ declare const DateRangePicker: {
|
|
|
1626
1643
|
displayName: string;
|
|
1627
1644
|
};
|
|
1628
1645
|
|
|
1629
|
-
type Props$
|
|
1646
|
+
type Props$1h = {
|
|
1630
1647
|
children?: ReactNode;
|
|
1631
1648
|
defaultSelected?: string | null;
|
|
1632
1649
|
selected?: string | null;
|
|
1633
1650
|
onSelect?: (time: string) => void;
|
|
1634
1651
|
} & Pick<PopoverProps, 'open' | 'onOpenChange' | 'defaultOpen'> & Pick<PopoverContentProps, 'align' | 'alignOffset' | 'sideOffset'>;
|
|
1635
|
-
declare const TimePicker: ({ align, alignOffset, children, defaultOpen, defaultSelected, onOpenChange, onSelect, open, selected, sideOffset, }: Props$
|
|
1652
|
+
declare const TimePicker: ({ align, alignOffset, children, defaultOpen, defaultSelected, onOpenChange, onSelect, open, selected, sideOffset, }: Props$1h) => react_jsx_runtime.JSX.Element;
|
|
1636
1653
|
|
|
1637
|
-
type Props$
|
|
1654
|
+
type Props$1g = {
|
|
1638
1655
|
id?: string | number;
|
|
1639
1656
|
htmlFor?: string | number;
|
|
1640
|
-
} & Omit<LabelProps, 'id' | 'htmlFor'>;
|
|
1657
|
+
} & Omit<LabelProps$1, 'id' | 'htmlFor'>;
|
|
1641
1658
|
declare const Label: {
|
|
1642
|
-
({ className, children, id, htmlFor, ...rest }: Props$
|
|
1659
|
+
({ className, children, id, htmlFor, ...rest }: Props$1g): react_jsx_runtime.JSX.Element;
|
|
1643
1660
|
Optional: ({ className, ...props }: ComponentPropsWithRef<"span">) => react_jsx_runtime.JSX.Element;
|
|
1644
1661
|
Required: ({ className, ...props }: ComponentPropsWithRef<"span">) => react_jsx_runtime.JSX.Element;
|
|
1645
1662
|
};
|
|
@@ -1653,21 +1670,21 @@ declare const switchVariants: (props?: ({
|
|
|
1653
1670
|
size?: "medium" | "small" | "large" | null | undefined;
|
|
1654
1671
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1655
1672
|
|
|
1656
|
-
type Props$
|
|
1673
|
+
type Props$1f = {
|
|
1657
1674
|
id?: string | number;
|
|
1658
1675
|
children?: ReactNode;
|
|
1659
1676
|
description?: ReactNode;
|
|
1660
1677
|
variant?: VariantProps<typeof fieldBoxVariants>['variant'];
|
|
1661
1678
|
position?: 'start' | 'end';
|
|
1662
1679
|
} & Omit<ComponentProps<typeof Root$6>, 'asChild' | 'id'> & Omit<VariantProps<typeof switchVariants>, 'variant'>;
|
|
1663
|
-
declare const Switch: ({ ref, className, size, disabled, id: idProp, children, description, variant, position, ...props }: Props$
|
|
1680
|
+
declare const Switch: ({ ref, className, size, disabled, id: idProp, children, description, variant, position, ...props }: Props$1f & {
|
|
1664
1681
|
ref?: Ref<ElementRef<"button">>;
|
|
1665
1682
|
}) => react_jsx_runtime.JSX.Element;
|
|
1666
1683
|
|
|
1667
1684
|
type Variant$7 = 'radio' | 'button' | 'radio-block';
|
|
1668
1685
|
type Orientation = 'vertical' | 'horizontal';
|
|
1669
1686
|
|
|
1670
|
-
type Props$
|
|
1687
|
+
type Props$1e<Value> = {
|
|
1671
1688
|
variant?: Variant$7;
|
|
1672
1689
|
orientation?: Orientation;
|
|
1673
1690
|
onValueChange?: (value: Value) => void;
|
|
@@ -1675,7 +1692,7 @@ type Props$1d<Value> = {
|
|
|
1675
1692
|
defaultValue?: Value | null;
|
|
1676
1693
|
} & Omit<ComponentProps<typeof RRadioGroup.Root>, 'asChild' | 'orientation' | 'onValueChange' | 'onChange' | 'value' | 'defaultValue'>;
|
|
1677
1694
|
declare const RadioGroup: {
|
|
1678
|
-
<Value extends string = string>({ variant, className, disabled, orientation, onValueChange, children, value, defaultValue, ...props }: Props$
|
|
1695
|
+
<Value extends string = string>({ variant, className, disabled, orientation, onValueChange, children, value, defaultValue, ...props }: Props$1e<Value>): react_jsx_runtime.JSX.Element;
|
|
1679
1696
|
Item: <T extends string = string>({ children, tooltip, tooltipVariant, tooltipPlacement, description, ...props }: {
|
|
1680
1697
|
content?: string | undefined | undefined;
|
|
1681
1698
|
translate?: "yes" | "no" | undefined | undefined;
|
|
@@ -1972,34 +1989,34 @@ declare const RadioGroup: {
|
|
|
1972
1989
|
} & {
|
|
1973
1990
|
value: T;
|
|
1974
1991
|
tooltip?: react.ReactNode;
|
|
1975
|
-
tooltipVariant?: Props$
|
|
1976
|
-
tooltipPlacement?: Props$
|
|
1992
|
+
tooltipVariant?: Props$1P["variant"];
|
|
1993
|
+
tooltipPlacement?: Props$1P["placement"];
|
|
1977
1994
|
description?: react.ReactNode;
|
|
1978
1995
|
}) => react_jsx_runtime.JSX.Element;
|
|
1979
1996
|
Separator: () => react_jsx_runtime.JSX.Element;
|
|
1980
1997
|
};
|
|
1981
1998
|
|
|
1982
|
-
type Props$
|
|
1999
|
+
type Props$1d = ComponentProps<typeof Thumb> & {
|
|
1983
2000
|
tooltip?: ReactNode;
|
|
1984
2001
|
tooltipSide?: ComponentProps<typeof Tooltip.Content>['placement'];
|
|
1985
2002
|
};
|
|
1986
|
-
declare const SliderThumb: ({ ref: forwardedRef, className, tooltip, tooltipSide, ...props }: Props$
|
|
2003
|
+
declare const SliderThumb: ({ ref: forwardedRef, className, tooltip, tooltipSide, ...props }: Props$1d & {
|
|
1987
2004
|
ref?: Ref<ElementRef<typeof Thumb>>;
|
|
1988
2005
|
}) => react_jsx_runtime.JSX.Element;
|
|
1989
2006
|
|
|
1990
2007
|
type ThumbTooltipFn = (value: number, index: number) => ReactNode;
|
|
1991
|
-
type Props$
|
|
2008
|
+
type Props$1c = ComponentProps<typeof Root$7> & {
|
|
1992
2009
|
thumbTooltip?: ThumbTooltipFn;
|
|
1993
2010
|
thumbTooltipSide?: ComponentProps<typeof SliderThumb>['tooltipSide'];
|
|
1994
2011
|
rangeClassName?: string;
|
|
1995
2012
|
};
|
|
1996
|
-
declare const Slider: ({ ref, className, value, defaultValue, min, max, onValueChange, thumbTooltip, thumbTooltipSide, rangeClassName, ...rest }: Props$
|
|
2013
|
+
declare const Slider: ({ ref, className, value, defaultValue, min, max, onValueChange, thumbTooltip, thumbTooltipSide, rangeClassName, ...rest }: Props$1c & {
|
|
1997
2014
|
ref?: Ref<ElementRef<typeof Root$7>>;
|
|
1998
2015
|
}) => react_jsx_runtime.JSX.Element;
|
|
1999
2016
|
|
|
2000
2017
|
type SearchChangeEventHandler = (value: string, event: ChangeEvent<HTMLInputElement> | MouseEvent$1<HTMLButtonElement>) => void;
|
|
2001
2018
|
type SearchBlurEventHandler = (value: string, event: FocusEvent$1<HTMLInputElement, Element>) => void;
|
|
2002
|
-
type Props$
|
|
2019
|
+
type Props$1b = {
|
|
2003
2020
|
suffix?: ReactNode;
|
|
2004
2021
|
disableDebounce?: boolean;
|
|
2005
2022
|
debounceDelay?: number;
|
|
@@ -2014,14 +2031,14 @@ type Props$1a = {
|
|
|
2014
2031
|
/**
|
|
2015
2032
|
* @deprecated Use `SearchInput` instead. `Search` is kept only for the legacy (non-sidebar) layout.
|
|
2016
2033
|
*/
|
|
2017
|
-
declare const Search: ({ ref, suffix, className, onBlur, onChange, disabled, readOnly, disableDebounce, debounceDelay, value: externalValue, defaultValue, testId: prefixTestId, placeholder, onClear, variant, ...rest }: Props$
|
|
2034
|
+
declare const Search: ({ ref, suffix, className, onBlur, onChange, disabled, readOnly, disableDebounce, debounceDelay, value: externalValue, defaultValue, testId: prefixTestId, placeholder, onClear, variant, ...rest }: Props$1b & {
|
|
2018
2035
|
ref?: Ref<ElementRef<"input">>;
|
|
2019
2036
|
}) => react_jsx_runtime.JSX.Element;
|
|
2020
2037
|
|
|
2021
|
-
type Props$
|
|
2038
|
+
type Props$1a = {
|
|
2022
2039
|
onSubmit: (value: string) => void;
|
|
2023
2040
|
} & Omit<ComponentProps<typeof Search>, 'onClear' | 'onBlur' | 'onSubmit'>;
|
|
2024
|
-
declare const SearchForm: ({ ref, onSubmit, name, ...props }: Props$
|
|
2041
|
+
declare const SearchForm: ({ ref, onSubmit, name, ...props }: Props$1a & {
|
|
2025
2042
|
ref?: Ref<ElementRef<"input">>;
|
|
2026
2043
|
}) => react_jsx_runtime.JSX.Element;
|
|
2027
2044
|
|
|
@@ -2046,10 +2063,10 @@ declare const variants$2: (props?: ({
|
|
|
2046
2063
|
sizing?: "medium" | "small" | "default" | null | undefined;
|
|
2047
2064
|
state?: "warning" | "default" | "error" | null | undefined;
|
|
2048
2065
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
2049
|
-
type Props$
|
|
2066
|
+
type Props$19 = ComponentProps<typeof _radix_ui_react_select.Trigger> & Omit<VariantProps<typeof variants$2>, 'variant'> & {
|
|
2050
2067
|
variant?: Exclude<VariantProps<typeof variants$2>['variant'], 'argo'>;
|
|
2051
2068
|
} & Pick<ComponentProps<typeof _radix_ui_react_select.Value>, 'placeholder'>;
|
|
2052
|
-
declare const SelectTrigger: ({ ref, className, variant, state, sizing, placeholder, ...props }: Props$
|
|
2069
|
+
declare const SelectTrigger: ({ ref, className, variant, state, sizing, placeholder, ...props }: Props$19 & {
|
|
2053
2070
|
ref?: Ref<ElementRef<"button">>;
|
|
2054
2071
|
}) => react_jsx_runtime.JSX.Element;
|
|
2055
2072
|
|
|
@@ -2068,7 +2085,7 @@ type TriggerProps = ComponentProps<typeof SelectTrigger>;
|
|
|
2068
2085
|
* Props for `Select`. Combines Radix `Select.Root` control props with `Select.Trigger` chrome and the
|
|
2069
2086
|
* convenience `items` shape (flat list, or grouped lists with optional labels).
|
|
2070
2087
|
*/
|
|
2071
|
-
type Props$
|
|
2088
|
+
type Props$18 = Pick<SelectRootProps, 'value' | 'defaultValue' | 'onValueChange' | 'disabled' | 'name' | 'required' | 'open' | 'defaultOpen' | 'onOpenChange'> & Pick<TriggerProps, 'variant' | 'state' | 'sizing' | 'placeholder' | 'id' | 'className'> & {
|
|
2072
2089
|
items?: readonly (SelectItem | SelectItemGroup)[];
|
|
2073
2090
|
};
|
|
2074
2091
|
/**
|
|
@@ -2083,7 +2100,7 @@ type Props$17 = Pick<SelectRootProps, 'value' | 'defaultValue' | 'onValueChange'
|
|
|
2083
2100
|
* `Select.Item`) for custom item layouts; the top-level `Select` covers the common cases.
|
|
2084
2101
|
*/
|
|
2085
2102
|
declare const Select: {
|
|
2086
|
-
({ value, defaultValue, onValueChange, disabled, name, required, open, defaultOpen, onOpenChange, variant, state, sizing, placeholder, id, className, items, }: Props$
|
|
2103
|
+
({ value, defaultValue, onValueChange, disabled, name, required, open, defaultOpen, onOpenChange, variant, state, sizing, placeholder, id, className, items, }: Props$18): react_jsx_runtime.JSX.Element;
|
|
2087
2104
|
Root: (props: SelectRootProps) => react_jsx_runtime.JSX.Element;
|
|
2088
2105
|
Trigger: ({ ref, className, variant, state, sizing, placeholder, ...props }: (_radix_ui_react_select.SelectTriggerProps & react.RefAttributes<HTMLButtonElement> & Omit<class_variance_authority.VariantProps<(props?: ({
|
|
2089
2106
|
variant?: "primary" | "secondary" | "argo" | null | undefined;
|
|
@@ -2113,51 +2130,51 @@ declare const Select: {
|
|
|
2113
2130
|
Separator: ({ className, ...props }: _radix_ui_react_select.SelectSeparatorProps & react.RefAttributes<HTMLDivElement>) => react_jsx_runtime.JSX.Element;
|
|
2114
2131
|
};
|
|
2115
2132
|
|
|
2116
|
-
type Props$
|
|
2133
|
+
type Props$17 = {
|
|
2117
2134
|
id?: string | number;
|
|
2118
2135
|
description?: ReactNode;
|
|
2119
2136
|
variant?: VariantProps<typeof fieldBoxVariants>['variant'];
|
|
2120
2137
|
position?: 'start' | 'end';
|
|
2121
|
-
tooltip?: Props$
|
|
2122
|
-
tooltipPlacement?: Props$
|
|
2138
|
+
tooltip?: Props$1P['tooltip'];
|
|
2139
|
+
tooltipPlacement?: Props$1P['placement'];
|
|
2123
2140
|
} & Omit<ComponentProps<typeof Root$8>, 'id'>;
|
|
2124
|
-
declare function Checkbox(prop: Omit<Props$
|
|
2141
|
+
declare function Checkbox(prop: Omit<Props$17, 'checked' | 'onCheckedChange'> & {
|
|
2125
2142
|
checked?: boolean;
|
|
2126
2143
|
onCheckedChange?: (checked: boolean) => void;
|
|
2127
2144
|
}): ReactNode;
|
|
2128
|
-
declare function Checkbox(prop: Omit<Props$
|
|
2145
|
+
declare function Checkbox(prop: Omit<Props$17, 'checked' | 'onCheckedChange'> & {
|
|
2129
2146
|
checked?: CheckedState;
|
|
2130
2147
|
onCheckedChange?: (checked: CheckedState) => void;
|
|
2131
2148
|
}): ReactNode;
|
|
2132
2149
|
|
|
2133
2150
|
type Variant$6 = 'check' | 'checkbox';
|
|
2134
|
-
type Props$
|
|
2151
|
+
type Props$16 = Omit<ComponentProps<typeof Combobox$1.ItemIndicator>, 'className' | 'children'> & {
|
|
2135
2152
|
className?: string;
|
|
2136
2153
|
variant?: Variant$6;
|
|
2137
2154
|
};
|
|
2138
|
-
declare const ComboboxItemIndicator: ({ ref, className, variant, ...props }: Props$
|
|
2155
|
+
declare const ComboboxItemIndicator: ({ ref, className, variant, ...props }: Props$16 & {
|
|
2139
2156
|
ref?: Ref<ElementRef<"span">>;
|
|
2140
2157
|
}) => react_jsx_runtime.JSX.Element;
|
|
2141
2158
|
|
|
2142
|
-
type Props$
|
|
2143
|
-
declare const ComboboxInput: ({ ref, ...props }: Props$
|
|
2159
|
+
type Props$15 = Omit<ComponentProps<typeof Combobox$1.Input>, 'render'>;
|
|
2160
|
+
declare const ComboboxInput: ({ ref, ...props }: Props$15 & {
|
|
2144
2161
|
ref?: Ref<ElementRef<"input">>;
|
|
2145
2162
|
}) => react_jsx_runtime.JSX.Element;
|
|
2146
2163
|
|
|
2147
2164
|
type InputGroupProps$6 = Pick<ComponentProps<typeof InputGroup>, 'variant' | 'focusVariant' | 'sizing' | 'state'>;
|
|
2148
|
-
type Props$
|
|
2165
|
+
type Props$14 = InputGroupProps$6 & Omit<ComponentProps<typeof Combobox$1.InputGroup>, 'render' | 'className'> & {
|
|
2149
2166
|
className?: string;
|
|
2150
2167
|
};
|
|
2151
|
-
declare const ComboboxInputGroup: ({ ref, state, variant, sizing, focusVariant, className, ...props }: Props$
|
|
2168
|
+
declare const ComboboxInputGroup: ({ ref, state, variant, sizing, focusVariant, className, ...props }: Props$14 & {
|
|
2152
2169
|
ref?: Ref<ElementRef<"div">>;
|
|
2153
2170
|
}) => react_jsx_runtime.JSX.Element;
|
|
2154
2171
|
|
|
2155
|
-
type Props$
|
|
2172
|
+
type Props$13 = Omit<ComponentProps<typeof Combobox$1.Item>, 'className'> & {
|
|
2156
2173
|
className?: string;
|
|
2157
2174
|
icon?: ReactNode;
|
|
2158
2175
|
indicator?: ComponentProps<typeof ComboboxItemIndicator>['variant'];
|
|
2159
2176
|
};
|
|
2160
|
-
declare const ComboboxItem: ({ ref, className, children, icon, indicator: variant, ...props }: Props$
|
|
2177
|
+
declare const ComboboxItem: ({ ref, className, children, icon, indicator: variant, ...props }: Props$13 & {
|
|
2161
2178
|
ref?: Ref<ElementRef<"div">>;
|
|
2162
2179
|
}) => react_jsx_runtime.JSX.Element;
|
|
2163
2180
|
|
|
@@ -2177,7 +2194,7 @@ type CreatableProps<Value> = {
|
|
|
2177
2194
|
queryToCreateLabel?: (query: string) => ReactNode;
|
|
2178
2195
|
queryToCreateValue?: (query: string) => Value;
|
|
2179
2196
|
};
|
|
2180
|
-
type Props$
|
|
2197
|
+
type Props$12<Value, GroupShape extends Group<Value> = Group<Value>> = PublicComboboxInputProps & PublicComboboxProps<Value> & CreatableProps<Value> & {
|
|
2181
2198
|
items?: readonly (Value | GroupShape)[];
|
|
2182
2199
|
allowClear?: boolean;
|
|
2183
2200
|
empty?: ReactNode;
|
|
@@ -2189,7 +2206,7 @@ type Props$11<Value, GroupShape extends Group<Value> = Group<Value>> = PublicCom
|
|
|
2189
2206
|
groupToLabel?: (group: GroupShape) => ReactNode;
|
|
2190
2207
|
};
|
|
2191
2208
|
declare const Combobox: {
|
|
2192
|
-
<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$
|
|
2209
|
+
<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$12<Value, GroupShape>): react_jsx_runtime.JSX.Element;
|
|
2193
2210
|
Root: <Value, Multiple extends boolean | undefined = false>(props: Combobox$1.Root.Props<Value, Multiple>) => react_jsx_runtime.JSX.Element;
|
|
2194
2211
|
InputGroup: ({ ref, state, variant, sizing, focusVariant, className, ...props }: ({
|
|
2195
2212
|
variant?: "primary" | "secondary" | null | undefined;
|
|
@@ -2556,7 +2573,7 @@ declare const Combobox: {
|
|
|
2556
2573
|
Chips: <Value>({ maxVisible, itemToChipLabel, itemToChipColor, variant, }: {
|
|
2557
2574
|
maxVisible?: number;
|
|
2558
2575
|
itemToChipLabel?: ((item: Value) => ReactNode) | undefined;
|
|
2559
|
-
itemToChipColor?: ((item: Value) => "
|
|
2576
|
+
itemToChipColor?: ((item: Value) => "blue" | "cyan" | "gray" | "green" | "orange" | "purple" | "red" | "teal" | "white" | "gray-darker" | "gray-inverse" | "green-darker" | "green-inverse" | "blue-inverse" | "orange-inverse" | "amber" | "amber-inverse" | "teal-inverse" | "purple-inverse" | "cyan-inverse" | "sidebar-primary" | undefined) | undefined;
|
|
2560
2577
|
variant?: "default" | "tag" | "pill" | null | undefined;
|
|
2561
2578
|
}) => react_jsx_runtime.JSX.Element;
|
|
2562
2579
|
};
|
|
@@ -2572,7 +2589,7 @@ type Indicator = NonNullable<ComboboxItemProps['indicator']>;
|
|
|
2572
2589
|
* Use `itemToLabel` / `itemToIcon` / `itemToDisabled` to project custom item shapes; use `filter` to override
|
|
2573
2590
|
* the default substring matcher.
|
|
2574
2591
|
*/
|
|
2575
|
-
type Props$
|
|
2592
|
+
type Props$11<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'> & {
|
|
2576
2593
|
items?: readonly (Value | GroupShape)[];
|
|
2577
2594
|
allowClear?: boolean;
|
|
2578
2595
|
allowSelectAll?: boolean;
|
|
@@ -2596,7 +2613,7 @@ type Props$10<Value, GroupShape extends Group<Value> = Group<Value>> = Pick<Comb
|
|
|
2596
2613
|
* @see RECIPES.md#creatable-multi-combobox — for free-form-plus-enumerated patterns
|
|
2597
2614
|
* @see RECIPES.md#filter-toolbar — for combining multi-select with other filter chips
|
|
2598
2615
|
*/
|
|
2599
|
-
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$
|
|
2616
|
+
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$11<Value, GroupShape>) => react_jsx_runtime.JSX.Element;
|
|
2600
2617
|
|
|
2601
2618
|
type InputGroupProps$5 = Pick<ComponentProps<typeof InputGroup>, 'variant' | 'sizing' | 'focusVariant' | 'state'>;
|
|
2602
2619
|
type TextareaNativeProps = Omit<ComponentProps<typeof InputGroup.TextArea>, 'value' | 'defaultValue' | 'rows' | 'maxRows'>;
|
|
@@ -2609,12 +2626,12 @@ type TextareaOwnProps = {
|
|
|
2609
2626
|
disableResize?: boolean;
|
|
2610
2627
|
containerClassName?: string;
|
|
2611
2628
|
};
|
|
2612
|
-
type Props
|
|
2629
|
+
type Props$10 = InputGroupProps$5 & TextareaNativeProps & TextareaOwnProps;
|
|
2613
2630
|
/**
|
|
2614
2631
|
* Multi-line text input. Chrome resolves from the active brand automatically: a modern brand always
|
|
2615
2632
|
* renders argo (any `variant` is ignored), while `variant` only tunes the legacy-brand chrome.
|
|
2616
2633
|
*/
|
|
2617
|
-
declare const Textarea: ({ ref, containerClassName, state, variant, sizing, focusVariant, ...rest }: Props
|
|
2634
|
+
declare const Textarea: ({ ref, containerClassName, state, variant, sizing, focusVariant, ...rest }: Props$10 & {
|
|
2618
2635
|
ref?: Ref<ElementRef<"textarea">>;
|
|
2619
2636
|
}) => react_jsx_runtime.JSX.Element;
|
|
2620
2637
|
|
|
@@ -2629,14 +2646,14 @@ declare const AutoSaveTextarea: ({ savedValue, onSave, placeholder, disabled, gr
|
|
|
2629
2646
|
|
|
2630
2647
|
type InputGroupProps$4 = Pick<ComponentProps<typeof InputGroup>, 'variant' | 'focusVariant' | 'state' | 'sizing'>;
|
|
2631
2648
|
type InputGroupInputProps$4 = Omit<ComponentProps<typeof InputGroup.Input>, 'value' | 'defaultValue'>;
|
|
2632
|
-
type Props
|
|
2649
|
+
type Props$$ = InputGroupProps$4 & InputGroupInputProps$4 & {
|
|
2633
2650
|
value?: string | null;
|
|
2634
2651
|
defaultValue?: string | null;
|
|
2635
2652
|
onValueChange?: (value: string) => void;
|
|
2636
2653
|
onValueBlur?: (value: string) => void;
|
|
2637
2654
|
allowClear?: boolean;
|
|
2638
2655
|
};
|
|
2639
|
-
declare const ColorInput: ({ ref, state, variant, focusVariant, sizing, className, value: valueProp, onValueChange, onValueBlur, onChange, onBlur, defaultValue, allowClear, disabled, readOnly, ...restInputProps }: Props
|
|
2656
|
+
declare const ColorInput: ({ ref, state, variant, focusVariant, sizing, className, value: valueProp, onValueChange, onValueBlur, onChange, onBlur, defaultValue, allowClear, disabled, readOnly, ...restInputProps }: Props$$ & {
|
|
2640
2657
|
ref?: Ref<ElementRef<"input">>;
|
|
2641
2658
|
}) => react_jsx_runtime.JSX.Element;
|
|
2642
2659
|
|
|
@@ -2673,12 +2690,12 @@ declare const useColorSchemeState: ({ defaultScheme, scheme: propScheme, onSchem
|
|
|
2673
2690
|
setScheme: (next: ColorScheme) => void;
|
|
2674
2691
|
};
|
|
2675
2692
|
|
|
2676
|
-
type Props$
|
|
2693
|
+
type Props$_ = UseColorSchemeOptions & UseBrandOptions & {
|
|
2677
2694
|
/** Brands this provider knows about; the active brand id resolves against these. */
|
|
2678
2695
|
brands?: readonly Brand[];
|
|
2679
2696
|
children: ReactNode;
|
|
2680
2697
|
};
|
|
2681
|
-
declare const ThemeProvider: ({ defaultScheme, scheme, onSchemeChange, defaultBrandId, brandId, onBrandIdChange, brands, children, }: Props$
|
|
2698
|
+
declare const ThemeProvider: ({ defaultScheme, scheme, onSchemeChange, defaultBrandId, brandId, onBrandIdChange, brands, children, }: Props$_) => react_jsx_runtime.JSX.Element;
|
|
2682
2699
|
|
|
2683
2700
|
type ThemeContextValue = ReturnType<typeof useColorSchemeState> & ReturnType<typeof useBrandState> & {
|
|
2684
2701
|
themes: Theme[];
|
|
@@ -2702,7 +2719,7 @@ declare const useArgoDesign: () => boolean;
|
|
|
2702
2719
|
declare const DEFAULT_COLOR_SCHEME: ResolvedColorScheme;
|
|
2703
2720
|
declare const DEFAULT_BRAND_ID = "design-system";
|
|
2704
2721
|
|
|
2705
|
-
type Props$
|
|
2722
|
+
type Props$Z = {
|
|
2706
2723
|
/** The active color scheme. Controlled — pair with `onValueChange`. */
|
|
2707
2724
|
value: ColorScheme;
|
|
2708
2725
|
/** Called with the chosen scheme when the user picks a menu item. */
|
|
@@ -2727,11 +2744,11 @@ type Props$Y = {
|
|
|
2727
2744
|
* The menu uses `DropdownMenu.RadioGroup` for single-select semantics; the active
|
|
2728
2745
|
* item is marked as checked. The trigger's `aria-label` names the current scheme.
|
|
2729
2746
|
*/
|
|
2730
|
-
declare const ColorModeSwitch: ({ value, onValueChange, size, className }: Props$
|
|
2747
|
+
declare const ColorModeSwitch: ({ value, onValueChange, size, className }: Props$Z) => react_jsx_runtime.JSX.Element;
|
|
2731
2748
|
|
|
2732
2749
|
type InputGroupProps$3 = Pick<ComponentProps<typeof InputGroup>, 'variant' | 'focusVariant' | 'state' | 'sizing'>;
|
|
2733
2750
|
type InputGroupInputProps$3 = Omit<ComponentProps<typeof InputGroup.Input>, 'value' | 'defaultValue' | 'type' | 'prefix'>;
|
|
2734
|
-
type Props$
|
|
2751
|
+
type Props$Y = InputGroupProps$3 & InputGroupInputProps$3 & {
|
|
2735
2752
|
value?: number | null;
|
|
2736
2753
|
defaultValue?: number | null;
|
|
2737
2754
|
onValueChange?: (value: number | null) => void;
|
|
@@ -2739,13 +2756,13 @@ type Props$X = InputGroupProps$3 & InputGroupInputProps$3 & {
|
|
|
2739
2756
|
prefix?: ReactNode;
|
|
2740
2757
|
suffix?: ReactNode;
|
|
2741
2758
|
};
|
|
2742
|
-
declare const NumberInput: ({ ref, state, variant, focusVariant, sizing, className, value, defaultValue, onValueChange, onValueBlur, onChange, onBlur, prefix, suffix, ...inputProps }: Props$
|
|
2759
|
+
declare const NumberInput: ({ ref, state, variant, focusVariant, sizing, className, value, defaultValue, onValueChange, onValueBlur, onChange, onBlur, prefix, suffix, ...inputProps }: Props$Y & {
|
|
2743
2760
|
ref?: Ref<ElementRef<"input">>;
|
|
2744
2761
|
}) => react_jsx_runtime.JSX.Element;
|
|
2745
2762
|
|
|
2746
2763
|
type InputGroupProps$2 = Pick<ComponentProps<typeof InputGroup>, 'variant' | 'focusVariant' | 'state' | 'sizing'>;
|
|
2747
2764
|
type InputGroupInputProps$2 = Omit<ComponentProps<typeof InputGroup.Input>, 'value' | 'defaultValue' | 'type' | 'autoComplete'>;
|
|
2748
|
-
type Props$
|
|
2765
|
+
type Props$X = InputGroupProps$2 & InputGroupInputProps$2 & {
|
|
2749
2766
|
value?: string | null;
|
|
2750
2767
|
defaultValue?: string | null;
|
|
2751
2768
|
onValueChange?: (value: string) => void;
|
|
@@ -2755,20 +2772,20 @@ type Props$W = InputGroupProps$2 & InputGroupInputProps$2 & {
|
|
|
2755
2772
|
autoComplete?: 'new-password' | 'current-password' | 'off';
|
|
2756
2773
|
defaultPasswordVisibility?: boolean;
|
|
2757
2774
|
};
|
|
2758
|
-
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$
|
|
2775
|
+
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$X & {
|
|
2759
2776
|
ref?: Ref<ElementRef<"input">>;
|
|
2760
2777
|
}) => react_jsx_runtime.JSX.Element;
|
|
2761
2778
|
|
|
2762
2779
|
type InputGroupProps$1 = Pick<ComponentProps<typeof InputGroup>, 'variant' | 'focusVariant' | 'state' | 'sizing'>;
|
|
2763
2780
|
type InputGroupInputProps$1 = Omit<ComponentProps<typeof InputGroup.Input>, 'value' | 'defaultValue' | 'type'>;
|
|
2764
|
-
type Props$
|
|
2781
|
+
type Props$W = InputGroupProps$1 & InputGroupInputProps$1 & {
|
|
2765
2782
|
value?: string | null;
|
|
2766
2783
|
defaultValue?: string | null;
|
|
2767
2784
|
onValueChange?: (value: string | null) => void;
|
|
2768
2785
|
onValueBlur?: (value: string | null) => void;
|
|
2769
2786
|
allowClear?: boolean;
|
|
2770
2787
|
};
|
|
2771
|
-
declare const TimeInput: ({ ref, state, variant, focusVariant, sizing, className, value: valueProp, defaultValue, onValueChange, onValueBlur, onChange, onBlur, allowClear, disabled, readOnly, placeholder, ...restInputProps }: Props$
|
|
2788
|
+
declare const TimeInput: ({ ref, state, variant, focusVariant, sizing, className, value: valueProp, defaultValue, onValueChange, onValueBlur, onChange, onBlur, allowClear, disabled, readOnly, placeholder, ...restInputProps }: Props$W & {
|
|
2772
2789
|
ref?: Ref<ElementRef<"input">>;
|
|
2773
2790
|
}) => react_jsx_runtime.JSX.Element;
|
|
2774
2791
|
|
|
@@ -2781,8 +2798,8 @@ type RootOwnProps = {
|
|
|
2781
2798
|
sizing?: OtpInputSizing;
|
|
2782
2799
|
containerClassName?: string;
|
|
2783
2800
|
};
|
|
2784
|
-
type RootProps$
|
|
2785
|
-
declare const OtpInput: (({ ref, sizing, pattern, containerClassName, className, children, "aria-invalid": ariaInvalid, ...rest }: RootProps$
|
|
2801
|
+
type RootProps$7 = OtpElementChildrenProps & RootOwnProps;
|
|
2802
|
+
declare const OtpInput: (({ ref, sizing, pattern, containerClassName, className, children, "aria-invalid": ariaInvalid, ...rest }: RootProps$7 & {
|
|
2786
2803
|
ref?: Ref<HTMLInputElement>;
|
|
2787
2804
|
}) => react_jsx_runtime.JSX.Element) & {
|
|
2788
2805
|
Group: ({ ref, className, ...props }: react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement> & {
|
|
@@ -2806,7 +2823,7 @@ type InputGroupInputProps = Omit<ComponentProps<typeof InputGroup.Input>, 'value
|
|
|
2806
2823
|
* is treated as "not provided" — the component falls back to `defaultValue` (or, if absent, internal
|
|
2807
2824
|
* state initialized to empty). `value={""}` is controlled-empty.
|
|
2808
2825
|
*/
|
|
2809
|
-
type Props$
|
|
2826
|
+
type Props$V = InputGroupProps & InputGroupInputProps & {
|
|
2810
2827
|
value?: string | null;
|
|
2811
2828
|
defaultValue?: string | null;
|
|
2812
2829
|
/** 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`. */
|
|
@@ -2835,7 +2852,7 @@ type Props$U = InputGroupProps & InputGroupInputProps & {
|
|
|
2835
2852
|
*
|
|
2836
2853
|
* @see RECIPES.md#filter-toolbar — for the search + filter chips toolbar pattern
|
|
2837
2854
|
*/
|
|
2838
|
-
declare const SearchInput: ({ ref, state, variant, focusVariant, sizing, className, value: valueProp, defaultValue, onValueChange, onValueBlur, onChange, onBlur, onClear, allowClear, disableDebounce, debounceDelay, disabled, readOnly, ...restInputProps }: Props$
|
|
2855
|
+
declare const SearchInput: ({ ref, state, variant, focusVariant, sizing, className, value: valueProp, defaultValue, onValueChange, onValueBlur, onChange, onBlur, onClear, allowClear, disableDebounce, debounceDelay, disabled, readOnly, ...restInputProps }: Props$V & {
|
|
2839
2856
|
ref?: Ref<ElementRef<"input">>;
|
|
2840
2857
|
}) => react_jsx_runtime.JSX.Element;
|
|
2841
2858
|
|
|
@@ -2857,28 +2874,28 @@ declare const SearchInputWithNavigation: ({ ref, value, onValueChange, placehold
|
|
|
2857
2874
|
}) => react_jsx_runtime.JSX.Element;
|
|
2858
2875
|
|
|
2859
2876
|
declare const addonVariants: (props?: ({
|
|
2860
|
-
align?: "inline-
|
|
2877
|
+
align?: "inline-end" | "inline-start" | null | undefined;
|
|
2861
2878
|
variant?: "inline" | "floating" | null | undefined;
|
|
2862
2879
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
2863
|
-
type Props$
|
|
2864
|
-
declare const BadgeAddon: ({ ref, align, variant, className, ...rest }: Props$
|
|
2880
|
+
type Props$U = ComponentProps<'div'> & VariantProps<typeof addonVariants>;
|
|
2881
|
+
declare const BadgeAddon: ({ ref, align, variant, className, ...rest }: Props$U & {
|
|
2865
2882
|
ref?: Ref<ElementRef<"div">>;
|
|
2866
2883
|
}) => react_jsx_runtime.JSX.Element;
|
|
2867
2884
|
|
|
2868
|
-
type Props$
|
|
2885
|
+
type Props$T = ComponentProps<'span'> & {
|
|
2869
2886
|
asChild?: boolean;
|
|
2870
2887
|
};
|
|
2871
|
-
declare const BadgeLabel: ({ ref, className, asChild, ...rest }: Props$
|
|
2888
|
+
declare const BadgeLabel: ({ ref, className, asChild, ...rest }: Props$T & {
|
|
2872
2889
|
ref?: Ref<ElementRef<"span">>;
|
|
2873
2890
|
}) => react_jsx_runtime.JSX.Element;
|
|
2874
2891
|
|
|
2875
2892
|
declare const badgeRootVariants: (props?: ({
|
|
2876
2893
|
variant?: "default" | "tag" | "pill" | null | undefined;
|
|
2877
|
-
color?: "
|
|
2894
|
+
color?: "blue" | "cyan" | "gray" | "green" | "orange" | "purple" | "red" | "teal" | "white" | "gray-darker" | "gray-inverse" | "green-darker" | "green-inverse" | "blue-inverse" | "orange-inverse" | "amber" | "amber-inverse" | "teal-inverse" | "purple-inverse" | "cyan-inverse" | "sidebar-primary" | null | undefined;
|
|
2878
2895
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
2879
2896
|
|
|
2880
|
-
type Props$
|
|
2881
|
-
declare const BadgeRoot: ({ ref, variant, color, className, children, ...rest }: Props$
|
|
2897
|
+
type Props$S = ComponentProps<'div'> & VariantProps<typeof badgeRootVariants>;
|
|
2898
|
+
declare const BadgeRoot: ({ ref, variant, color, className, children, ...rest }: Props$S & {
|
|
2882
2899
|
ref?: Ref<ElementRef<"div">>;
|
|
2883
2900
|
}) => react_jsx_runtime.JSX.Element;
|
|
2884
2901
|
|
|
@@ -2890,19 +2907,19 @@ type BadgeLabelProps = ComponentProps<typeof BadgeLabel>;
|
|
|
2890
2907
|
* `amber` = caution, `purple/cyan/teal/blue/gray` for decorative tags) — colours stay fixed across brand themes.
|
|
2891
2908
|
* Pass `prefix` / `suffix` for icon-style addons.
|
|
2892
2909
|
*/
|
|
2893
|
-
type Props$
|
|
2910
|
+
type Props$R = Pick<BadgeRootProps, 'variant' | 'color'> & Omit<BadgeLabelProps, 'prefix'> & {
|
|
2894
2911
|
prefix?: ReactNode;
|
|
2895
2912
|
prefixVariant?: AddonVariant;
|
|
2896
2913
|
suffix?: ReactNode;
|
|
2897
2914
|
suffixVariant?: AddonVariant;
|
|
2898
2915
|
labelClassName?: string;
|
|
2899
2916
|
};
|
|
2900
|
-
declare const Badge: (({ ref, variant, color, prefix, prefixVariant, suffix, suffixVariant, className, labelClassName, ...labelProps }: Props$
|
|
2917
|
+
declare const Badge: (({ ref, variant, color, prefix, prefixVariant, suffix, suffixVariant, className, labelClassName, ...labelProps }: Props$R & {
|
|
2901
2918
|
ref?: Ref<ElementRef<"span">>;
|
|
2902
2919
|
}) => react_jsx_runtime.JSX.Element) & {
|
|
2903
2920
|
Root: ({ ref, variant, color, className, children, ...rest }: (react.ClassAttributes<HTMLDivElement> & react.HTMLAttributes<HTMLDivElement> & class_variance_authority.VariantProps<(props?: ({
|
|
2904
2921
|
variant?: "default" | "tag" | "pill" | null | undefined;
|
|
2905
|
-
color?: "
|
|
2922
|
+
color?: "blue" | "cyan" | "gray" | "green" | "orange" | "purple" | "red" | "teal" | "white" | "gray-darker" | "gray-inverse" | "green-darker" | "green-inverse" | "blue-inverse" | "orange-inverse" | "amber" | "amber-inverse" | "teal-inverse" | "purple-inverse" | "cyan-inverse" | "sidebar-primary" | null | undefined;
|
|
2906
2923
|
} & class_variance_authority_types.ClassProp) | undefined) => string>) & {
|
|
2907
2924
|
ref?: Ref<ElementRef<"div">>;
|
|
2908
2925
|
}) => react_jsx_runtime.JSX.Element;
|
|
@@ -2915,7 +2932,7 @@ declare const Badge: (({ ref, variant, color, prefix, prefixVariant, suffix, suf
|
|
|
2915
2932
|
ref?: Ref<ElementRef<"span">>;
|
|
2916
2933
|
}) => react_jsx_runtime.JSX.Element;
|
|
2917
2934
|
Addon: ({ ref, align, variant, className, ...rest }: (react.ClassAttributes<HTMLDivElement> & react.HTMLAttributes<HTMLDivElement> & class_variance_authority.VariantProps<(props?: ({
|
|
2918
|
-
align?: "inline-
|
|
2935
|
+
align?: "inline-end" | "inline-start" | null | undefined;
|
|
2919
2936
|
variant?: "inline" | "floating" | null | undefined;
|
|
2920
2937
|
} & class_variance_authority_types.ClassProp) | undefined) => string>) & {
|
|
2921
2938
|
ref?: Ref<ElementRef<"div">>;
|
|
@@ -2929,45 +2946,45 @@ type TagOption = {
|
|
|
2929
2946
|
disabled?: boolean;
|
|
2930
2947
|
};
|
|
2931
2948
|
|
|
2932
|
-
type Props$
|
|
2949
|
+
type Props$Q = {
|
|
2933
2950
|
onCreate?: (search: string) => void;
|
|
2934
2951
|
} & Pick<ComponentProps<typeof Command.Item>, 'value'>;
|
|
2935
|
-
declare const TagSelectCreateItem: ({ onCreate, value }: Props$
|
|
2952
|
+
declare const TagSelectCreateItem: ({ onCreate, value }: Props$Q) => react_jsx_runtime.JSX.Element;
|
|
2936
2953
|
|
|
2937
|
-
type Props$
|
|
2954
|
+
type Props$P = {
|
|
2938
2955
|
value: string[];
|
|
2939
2956
|
onAdd?: (selected: string[]) => void;
|
|
2940
2957
|
};
|
|
2941
|
-
declare const TagSelectValue: ({ value, onAdd }: Props$
|
|
2958
|
+
declare const TagSelectValue: ({ value, onAdd }: Props$P) => react_jsx_runtime.JSX.Element;
|
|
2942
2959
|
|
|
2943
|
-
type Props$
|
|
2960
|
+
type Props$O = {
|
|
2944
2961
|
options?: TagOption[];
|
|
2945
2962
|
} & Pick<ComponentProps<typeof TagSelectValue>, 'onAdd'> & Pick<ComponentProps<typeof TagSelectCreateItem>, 'onCreate'>;
|
|
2946
|
-
declare const TagSelectList: ({ options, onAdd, onCreate }: Props$
|
|
2963
|
+
declare const TagSelectList: ({ options, onAdd, onCreate }: Props$O) => react_jsx_runtime.JSX.Element;
|
|
2947
2964
|
|
|
2948
|
-
type Props$
|
|
2965
|
+
type Props$N = {
|
|
2949
2966
|
children: ReactNode;
|
|
2950
2967
|
} & ComponentProps<typeof TagSelectList>;
|
|
2951
|
-
declare const TagSelectPopover: ({ children, onAdd, options, onCreate }: Props$
|
|
2968
|
+
declare const TagSelectPopover: ({ children, onAdd, options, onCreate }: Props$N) => react_jsx_runtime.JSX.Element;
|
|
2952
2969
|
|
|
2953
2970
|
type OnValueChangeHandler = (value: {
|
|
2954
2971
|
action: 'add' | 'remove';
|
|
2955
2972
|
tags: TagOption[];
|
|
2956
2973
|
allTags: TagOption[];
|
|
2957
2974
|
}) => void;
|
|
2958
|
-
type Props$
|
|
2975
|
+
type Props$M = {
|
|
2959
2976
|
value?: TagOption[];
|
|
2960
2977
|
onValueChange: OnValueChangeHandler;
|
|
2961
2978
|
disabled?: boolean;
|
|
2962
2979
|
} & Pick<ComponentProps<typeof TagSelectPopover>, 'options' | 'onCreate'>;
|
|
2963
|
-
declare const Tagger: ({ options, value, onCreate, onValueChange, disabled, }: Props$
|
|
2980
|
+
declare const Tagger: ({ options, value, onCreate, onValueChange, disabled, }: Props$M) => react_jsx_runtime.JSX.Element | null;
|
|
2964
2981
|
|
|
2965
2982
|
/**
|
|
2966
2983
|
* Props for `FileUpload`. The component is uncontrolled with respect to the file
|
|
2967
2984
|
* list — the caller owns the selected `File[]` and updates it from `onFilesChange`.
|
|
2968
2985
|
* `FileUpload` only signals drop events; it does not store the file array.
|
|
2969
2986
|
*/
|
|
2970
|
-
type Props$
|
|
2987
|
+
type Props$L = {
|
|
2971
2988
|
/** MIME / extension filter passed straight to react-dropzone. */
|
|
2972
2989
|
accept?: Accept;
|
|
2973
2990
|
/** Max size per file, in bytes. Oversized files are rejected and surface in `onFilesRejected`. */
|
|
@@ -2986,7 +3003,7 @@ type Props$K = {
|
|
|
2986
3003
|
forcedState?: 'idle' | 'dragging' | 'error';
|
|
2987
3004
|
children: ReactNode;
|
|
2988
3005
|
} & Omit<HTMLAttributes<HTMLDivElement>, 'children' | 'onDrop'>;
|
|
2989
|
-
declare const FileUpload: (({ accept, maxSize, maxFiles, multiple, disabled, onFilesChange, onFilesRejected, forcedState, children, className, ...rest }: Props$
|
|
3006
|
+
declare const FileUpload: (({ accept, maxSize, maxFiles, multiple, disabled, onFilesChange, onFilesRejected, forcedState, children, className, ...rest }: Props$L) => react_jsx_runtime.JSX.Element) & {
|
|
2990
3007
|
DropZone: ({ children, className, ...rest }: {
|
|
2991
3008
|
children?: ReactNode;
|
|
2992
3009
|
} & Omit<HTMLAttributes<HTMLDivElement>, "children">) => react_jsx_runtime.JSX.Element;
|
|
@@ -4570,6 +4587,7 @@ declare const FormGroup: {
|
|
|
4570
4587
|
disabled?: boolean | undefined | undefined;
|
|
4571
4588
|
value?: string | null | undefined;
|
|
4572
4589
|
onValueChange?: (((value: string) => void) & ((value: string) => void)) | undefined;
|
|
4590
|
+
wrap?: string | undefined | undefined;
|
|
4573
4591
|
required?: boolean | undefined | undefined;
|
|
4574
4592
|
autoComplete?: string | undefined | undefined;
|
|
4575
4593
|
maxLength?: number | undefined | undefined;
|
|
@@ -4578,7 +4596,6 @@ declare const FormGroup: {
|
|
|
4578
4596
|
readOnly?: boolean | undefined | undefined;
|
|
4579
4597
|
cols?: number | undefined | undefined;
|
|
4580
4598
|
dirName?: string | undefined | undefined;
|
|
4581
|
-
wrap?: string | undefined | undefined;
|
|
4582
4599
|
maxRows?: number | "unlimited" | undefined;
|
|
4583
4600
|
minRows?: number | undefined;
|
|
4584
4601
|
onHeightChange?: ((height: number, meta: react_textarea_autosize.TextareaHeightChangeMeta) => void) | undefined;
|
|
@@ -4594,43 +4611,43 @@ declare const FormGroup: {
|
|
|
4594
4611
|
declare const helpVariants: (props?: ({
|
|
4595
4612
|
state?: "warning" | "default" | null | undefined;
|
|
4596
4613
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
4597
|
-
type Props$
|
|
4598
|
-
declare const HelpBlock: ({ children, className, state, ...rest }: Props$
|
|
4614
|
+
type Props$K = ComponentPropsWithRef<'p'> & VariantProps<typeof helpVariants>;
|
|
4615
|
+
declare const HelpBlock: ({ children, className, state, ...rest }: Props$K) => react_jsx_runtime.JSX.Element | null;
|
|
4599
4616
|
|
|
4600
4617
|
type AnswerItem = {
|
|
4601
4618
|
question: string;
|
|
4602
4619
|
answer?: string;
|
|
4603
4620
|
};
|
|
4604
4621
|
type Variant$5 = 'success' | 'dismissed';
|
|
4605
|
-
type Props$
|
|
4622
|
+
type Props$J = {
|
|
4606
4623
|
items: readonly AnswerItem[];
|
|
4607
4624
|
variant?: Variant$5;
|
|
4608
4625
|
noAnswerLabel?: string;
|
|
4609
4626
|
};
|
|
4610
|
-
declare const AnswerSummary: ({ items, variant, noAnswerLabel, }: Props$
|
|
4627
|
+
declare const AnswerSummary: ({ items, variant, noAnswerLabel, }: Props$J) => react_jsx_runtime.JSX.Element;
|
|
4611
4628
|
|
|
4612
4629
|
type Variant$4 = 'success' | 'error' | 'processing' | 'dismissed';
|
|
4613
|
-
type Props$
|
|
4630
|
+
type Props$I = {
|
|
4614
4631
|
isExpanded: boolean;
|
|
4615
4632
|
onToggle: () => void;
|
|
4616
4633
|
label: ReactNode;
|
|
4617
4634
|
variant?: Variant$4;
|
|
4618
4635
|
};
|
|
4619
|
-
declare const CollapsibleStepHeader: ({ isExpanded, onToggle, label, variant, }: Props$
|
|
4636
|
+
declare const CollapsibleStepHeader: ({ isExpanded, onToggle, label, variant, }: Props$I) => react_jsx_runtime.JSX.Element;
|
|
4620
4637
|
|
|
4621
|
-
type Props$
|
|
4638
|
+
type Props$H = {
|
|
4622
4639
|
children: ReactNode;
|
|
4623
4640
|
};
|
|
4624
|
-
declare const InlineStepDetail: ({ children }: Props$
|
|
4641
|
+
declare const InlineStepDetail: ({ children }: Props$H) => react_jsx_runtime.JSX.Element;
|
|
4625
4642
|
|
|
4626
4643
|
type Variant$3 = 'processing' | 'success' | 'error' | 'dismissed';
|
|
4627
|
-
type Props$
|
|
4644
|
+
type Props$G = {
|
|
4628
4645
|
variant: Variant$3;
|
|
4629
4646
|
children: ReactNode;
|
|
4630
4647
|
};
|
|
4631
|
-
declare const InlineStepLabel: ({ variant, children }: Props$
|
|
4648
|
+
declare const InlineStepLabel: ({ variant, children }: Props$G) => react_jsx_runtime.JSX.Element;
|
|
4632
4649
|
|
|
4633
|
-
type Props$
|
|
4650
|
+
type Props$F = {
|
|
4634
4651
|
/** Markdown source (GFM: tables, task lists, strikethrough, autolinks). Tables
|
|
4635
4652
|
* render through the design `Table`; fenced ```mermaid blocks render via
|
|
4636
4653
|
* `MermaidDiagram`; other fenced blocks get a hover copy button. */
|
|
@@ -4642,9 +4659,9 @@ type Props$E = {
|
|
|
4642
4659
|
* `MessageBubble` to render an assistant message body. Code blocks expose a
|
|
4643
4660
|
* copy button, so mount a `TooltipProvider` once at the app root.
|
|
4644
4661
|
*/
|
|
4645
|
-
declare const Markdown: ({ children, className }: Props$
|
|
4662
|
+
declare const Markdown: ({ children, className }: Props$F) => react_jsx_runtime.JSX.Element;
|
|
4646
4663
|
|
|
4647
|
-
type Props$
|
|
4664
|
+
type Props$E = {
|
|
4648
4665
|
user?: {
|
|
4649
4666
|
name: string | undefined;
|
|
4650
4667
|
email: string | undefined;
|
|
@@ -4654,17 +4671,17 @@ type Props$D = {
|
|
|
4654
4671
|
size?: number;
|
|
4655
4672
|
variant?: 'circle' | 'rounded';
|
|
4656
4673
|
} & ComponentProps<'span'>;
|
|
4657
|
-
declare const Avatar: ({ ref, user, fallback, size, className, variant, ...props }: Props$
|
|
4674
|
+
declare const Avatar: ({ ref, user, fallback, size, className, variant, ...props }: Props$E & {
|
|
4658
4675
|
ref?: Ref<ElementRef<"span">>;
|
|
4659
4676
|
}) => react_jsx_runtime.JSX.Element;
|
|
4660
4677
|
|
|
4661
|
-
type Props$
|
|
4678
|
+
type Props$D = {
|
|
4662
4679
|
variant: 'user' | 'assistant';
|
|
4663
4680
|
user?: ComponentProps<typeof Avatar>['user'];
|
|
4664
4681
|
actions?: ReactNode;
|
|
4665
4682
|
createdAt?: string;
|
|
4666
4683
|
} & PropsWithChildren;
|
|
4667
|
-
declare const MessageBubble: ({ variant, children, user, actions, createdAt }: Props$
|
|
4684
|
+
declare const MessageBubble: ({ variant, children, user, actions, createdAt }: Props$D) => react_jsx_runtime.JSX.Element;
|
|
4668
4685
|
|
|
4669
4686
|
type PlanApprovalStatus = 'pending' | 'approved' | 'dismissed' | 'changes-requested';
|
|
4670
4687
|
type PlanApprovalProps = {
|
|
@@ -4712,17 +4729,17 @@ type PromptCommand = {
|
|
|
4712
4729
|
};
|
|
4713
4730
|
|
|
4714
4731
|
type SubmitStatus = 'submitted' | 'ready' | 'streaming' | 'interrupted';
|
|
4715
|
-
type Props$
|
|
4732
|
+
type Props$C = Pick<ComponentProps<typeof Button>, 'disabled'> & {
|
|
4716
4733
|
status?: SubmitStatus;
|
|
4717
4734
|
};
|
|
4718
|
-
declare const PromptInputSubmit: ({ ref, disabled, status, }: Props$
|
|
4735
|
+
declare const PromptInputSubmit: ({ ref, disabled, status, }: Props$C & {
|
|
4719
4736
|
ref?: Ref<ElementRef<"button">>;
|
|
4720
4737
|
}) => react_jsx_runtime.JSX.Element;
|
|
4721
4738
|
|
|
4722
4739
|
declare const promptInputVariants: (props?: ({
|
|
4723
4740
|
variant?: "inline" | "default" | null | undefined;
|
|
4724
4741
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
4725
|
-
type Props$
|
|
4742
|
+
type Props$B = {
|
|
4726
4743
|
onSend?: (value: string) => void;
|
|
4727
4744
|
onAbort?: () => void;
|
|
4728
4745
|
onContinue?: () => void;
|
|
@@ -4736,7 +4753,7 @@ type Props$A = {
|
|
|
4736
4753
|
commands?: PromptCommand[];
|
|
4737
4754
|
} & VariantProps<typeof promptInputVariants> & Pick<ComponentProps<typeof react_textarea_autosize__default>, 'placeholder' | 'minRows' | 'maxRows' | 'disabled' | 'defaultValue' | 'autoFocus'> & ComponentProps<typeof PromptInputSubmit>;
|
|
4738
4755
|
declare const PromptInput: {
|
|
4739
|
-
({ onSend, onAbort, onContinue, prefix, variant, suffix, disabled, disableSubmit, value, onValueChange, status, maxRows, minRows, commands, ...textareaProps }: Props$
|
|
4756
|
+
({ onSend, onAbort, onContinue, prefix, variant, suffix, disabled, disableSubmit, value, onValueChange, status, maxRows, minRows, commands, ...textareaProps }: Props$B): react_jsx_runtime.JSX.Element;
|
|
4740
4757
|
Action: ({ ref, onMouseDown, ...rest }: react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement> & {
|
|
4741
4758
|
ref?: react.Ref<ElementRef<"button">>;
|
|
4742
4759
|
}) => react_jsx_runtime.JSX.Element;
|
|
@@ -4748,7 +4765,7 @@ type QuestionOption = {
|
|
|
4748
4765
|
description?: string;
|
|
4749
4766
|
preview?: string;
|
|
4750
4767
|
};
|
|
4751
|
-
type Props$
|
|
4768
|
+
type Props$A = {
|
|
4752
4769
|
question: string;
|
|
4753
4770
|
header?: string;
|
|
4754
4771
|
options: readonly QuestionOption[];
|
|
@@ -4771,7 +4788,7 @@ type Props$z = {
|
|
|
4771
4788
|
renderPreview?: (content: string) => ReactNode;
|
|
4772
4789
|
className?: string;
|
|
4773
4790
|
};
|
|
4774
|
-
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$
|
|
4791
|
+
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$A) => react_jsx_runtime.JSX.Element;
|
|
4775
4792
|
|
|
4776
4793
|
type QuestionStep = {
|
|
4777
4794
|
question: string;
|
|
@@ -4785,7 +4802,7 @@ type QuestionAnswers = {
|
|
|
4785
4802
|
selections: Record<number, readonly string[]>;
|
|
4786
4803
|
customAnswers: Record<number, string>;
|
|
4787
4804
|
};
|
|
4788
|
-
type Props$
|
|
4805
|
+
type Props$z = {
|
|
4789
4806
|
steps: readonly [QuestionStep, ...QuestionStep[]];
|
|
4790
4807
|
showSkip?: boolean;
|
|
4791
4808
|
onSubmit?: (answers: QuestionAnswers) => void;
|
|
@@ -4793,16 +4810,16 @@ type Props$y = {
|
|
|
4793
4810
|
renderPreview?: (content: string) => ReactNode;
|
|
4794
4811
|
className?: string;
|
|
4795
4812
|
};
|
|
4796
|
-
declare const QuestionBlock: ({ steps, showSkip, onSubmit, onClose, renderPreview, className, }: Props$
|
|
4813
|
+
declare const QuestionBlock: ({ steps, showSkip, onSubmit, onClose, renderPreview, className, }: Props$z) => react_jsx_runtime.JSX.Element;
|
|
4797
4814
|
|
|
4798
|
-
type Props$
|
|
4815
|
+
type Props$y = {
|
|
4799
4816
|
label: string;
|
|
4800
4817
|
disabled?: boolean;
|
|
4801
4818
|
onClick: () => void;
|
|
4802
4819
|
icon?: ReactNode;
|
|
4803
4820
|
className?: string;
|
|
4804
4821
|
};
|
|
4805
|
-
declare const SuggestedPrompt: ({ label, disabled, onClick, icon, className }: Props$
|
|
4822
|
+
declare const SuggestedPrompt: ({ label, disabled, onClick, icon, className }: Props$y) => react_jsx_runtime.JSX.Element;
|
|
4806
4823
|
|
|
4807
4824
|
type ThinkingIndicatorProps = {
|
|
4808
4825
|
label?: string;
|
|
@@ -4861,7 +4878,7 @@ type ToolCallChipProps = {
|
|
|
4861
4878
|
*/
|
|
4862
4879
|
declare const ToolCallChip: ({ label, state, icon, trailing, onClick, className, }: ToolCallChipProps) => react_jsx_runtime.JSX.Element;
|
|
4863
4880
|
|
|
4864
|
-
type Props$
|
|
4881
|
+
type Props$x = {
|
|
4865
4882
|
value: number;
|
|
4866
4883
|
alert?: boolean;
|
|
4867
4884
|
children: ReactNode;
|
|
@@ -4875,19 +4892,19 @@ type Props$w = {
|
|
|
4875
4892
|
side?: ComponentProps<typeof HoverCard.Content>['side'];
|
|
4876
4893
|
sideOffset?: ComponentProps<typeof HoverCard.Content>['sideOffset'];
|
|
4877
4894
|
};
|
|
4878
|
-
declare const UsageStats: ({ value, alert, children, className, ariaLabel, align, side, sideOffset, }: Props$
|
|
4895
|
+
declare const UsageStats: ({ value, alert, children, className, ariaLabel, align, side, sideOffset, }: Props$x) => react_jsx_runtime.JSX.Element;
|
|
4879
4896
|
|
|
4880
|
-
type Props$
|
|
4897
|
+
type Props$w = {
|
|
4881
4898
|
value: number;
|
|
4882
4899
|
size?: number;
|
|
4883
4900
|
strokeWidth?: number;
|
|
4884
4901
|
className?: string;
|
|
4885
4902
|
};
|
|
4886
|
-
declare const UsageStatsRing: ({ value, size, strokeWidth, className }: Props$
|
|
4903
|
+
declare const UsageStatsRing: ({ value, size, strokeWidth, className }: Props$w) => react_jsx_runtime.JSX.Element;
|
|
4887
4904
|
|
|
4888
|
-
type Props$
|
|
4905
|
+
type Props$v = ComponentProps<typeof Root$9>;
|
|
4889
4906
|
declare const Collapsible: {
|
|
4890
|
-
(props: Props$
|
|
4907
|
+
(props: Props$v): react_jsx_runtime.JSX.Element;
|
|
4891
4908
|
Trigger: react.ForwardRefExoticComponent<_radix_ui_react_collapsible.CollapsibleTriggerProps & react.RefAttributes<HTMLButtonElement>>;
|
|
4892
4909
|
Content: ({ ref, className, children, ...props }: Omit<_radix_ui_react_collapsible.CollapsibleContentProps & react.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
4893
4910
|
ref?: react.Ref<react.ElementRef<react.ForwardRefExoticComponent<_radix_ui_react_collapsible.CollapsibleContentProps & react.RefAttributes<HTMLDivElement>>>>;
|
|
@@ -4895,10 +4912,10 @@ declare const Collapsible: {
|
|
|
4895
4912
|
};
|
|
4896
4913
|
|
|
4897
4914
|
type Variant$2 = 'info' | 'warning' | 'error' | 'success';
|
|
4898
|
-
type Props$
|
|
4915
|
+
type Props$u = {
|
|
4899
4916
|
variant?: Variant$2;
|
|
4900
4917
|
} & ComponentProps<'div'>;
|
|
4901
|
-
declare const AlertRoot: ({ ref, children, className, variant, ...rest }: Props$
|
|
4918
|
+
declare const AlertRoot: ({ ref, children, className, variant, ...rest }: Props$u & {
|
|
4902
4919
|
ref?: Ref<ElementRef<"div">>;
|
|
4903
4920
|
}) => react_jsx_runtime.JSX.Element;
|
|
4904
4921
|
|
|
@@ -4923,7 +4940,7 @@ type DefaultProps = {
|
|
|
4923
4940
|
* `"collapsible"` requires `title` + `children` (no `actions`) and renders a collapsible disclosure.
|
|
4924
4941
|
* `variant` (`info` | `success` | `warning` | `error`) is a categorical colour contract.
|
|
4925
4942
|
*/
|
|
4926
|
-
type Props$
|
|
4943
|
+
type Props$t = CommonProps & (CollapsibleProps | DefaultProps);
|
|
4927
4944
|
/**
|
|
4928
4945
|
* Persistent inline banner for contextual messages tied to the page layout.
|
|
4929
4946
|
*
|
|
@@ -4937,13 +4954,13 @@ type Props$s = CommonProps & (CollapsibleProps | DefaultProps);
|
|
|
4937
4954
|
*
|
|
4938
4955
|
* @see RECIPES.md#alert-with-action — for action-bearing alert composition
|
|
4939
4956
|
*/
|
|
4940
|
-
declare const Alert: ({ title, variant, children, hideIcon, icon, className, actions, mode, defaultOpen, open: openProp, onOpenChange: onOpenChangeProp, ...rest }: Props$
|
|
4957
|
+
declare const Alert: ({ title, variant, children, hideIcon, icon, className, actions, mode, defaultOpen, open: openProp, onOpenChange: onOpenChangeProp, ...rest }: Props$t) => react_jsx_runtime.JSX.Element;
|
|
4941
4958
|
|
|
4942
4959
|
declare const variants$1: (props?: ({
|
|
4943
4960
|
variant?: "success" | "warning" | "info" | "default" | "error" | null | undefined;
|
|
4944
4961
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
4945
4962
|
type Variants = VariantProps<typeof variants$1>;
|
|
4946
|
-
type Props$
|
|
4963
|
+
type Props$s = {
|
|
4947
4964
|
id: string | number;
|
|
4948
4965
|
title: ReactNode;
|
|
4949
4966
|
icon?: ReactNode;
|
|
@@ -4952,7 +4969,7 @@ type Props$r = {
|
|
|
4952
4969
|
loading?: boolean;
|
|
4953
4970
|
duration?: number;
|
|
4954
4971
|
} & Variants;
|
|
4955
|
-
declare const ToastRoot: ({ id, title, description, action, duration, variant, loading, icon: iconProp, }: Props$
|
|
4972
|
+
declare const ToastRoot: ({ id, title, description, action, duration, variant, loading, icon: iconProp, }: Props$s) => react_jsx_runtime.JSX.Element;
|
|
4956
4973
|
|
|
4957
4974
|
type ToastProps = ComponentProps<typeof ToastRoot>;
|
|
4958
4975
|
type Title = ToastProps['title'] | ((opts: {
|
|
@@ -4973,7 +4990,7 @@ declare const toast: {
|
|
|
4973
4990
|
dismissAll(): string | number;
|
|
4974
4991
|
};
|
|
4975
4992
|
|
|
4976
|
-
type Props$
|
|
4993
|
+
type Props$r = {
|
|
4977
4994
|
enabled?: boolean;
|
|
4978
4995
|
} & Parameters<typeof toast>[0];
|
|
4979
4996
|
/**
|
|
@@ -4986,22 +5003,22 @@ type Props$q = {
|
|
|
4986
5003
|
* Use `toast()` for transient feedback after a user action
|
|
4987
5004
|
* (e.g., "Saved", "Copied", "Deleted") that auto-dismisses after a few seconds.
|
|
4988
5005
|
*/
|
|
4989
|
-
declare const useNotification: ({ enabled, ...toastOptions }: Props$
|
|
5006
|
+
declare const useNotification: ({ enabled, ...toastOptions }: Props$r) => void;
|
|
4990
5007
|
|
|
4991
5008
|
type ToasterProps = ComponentProps<typeof Toaster$1>;
|
|
4992
5009
|
declare const Toaster: ({ gap, visibleToasts, ...props }: ToasterProps) => react_jsx_runtime.JSX.Element;
|
|
4993
5010
|
|
|
4994
|
-
type Props$
|
|
5011
|
+
type Props$q = {
|
|
4995
5012
|
children?: ReactNode;
|
|
4996
5013
|
};
|
|
4997
|
-
declare const EmptySearchContent: ({ children }: Props$
|
|
5014
|
+
declare const EmptySearchContent: ({ children }: Props$q) => react_jsx_runtime.JSX.Element;
|
|
4998
5015
|
|
|
4999
|
-
type Props$
|
|
5016
|
+
type Props$p = {
|
|
5000
5017
|
title: string;
|
|
5001
5018
|
children: ReactNode;
|
|
5002
5019
|
className?: string;
|
|
5003
5020
|
};
|
|
5004
|
-
declare const EmptyConfigurationActionCard: ({ title, children, className }: Props$
|
|
5021
|
+
declare const EmptyConfigurationActionCard: ({ title, children, className }: Props$p) => react_jsx_runtime.JSX.Element;
|
|
5005
5022
|
|
|
5006
5023
|
declare const emptyStateClassnames: (props?: ({
|
|
5007
5024
|
variant?: "compact" | "default" | null | undefined;
|
|
@@ -5011,7 +5028,7 @@ type Variant$1 = VariantProps<typeof emptyStateClassnames>['variant'];
|
|
|
5011
5028
|
* Props for `EmptyState`. `variant` chooses spacing — `"default"` for full-page empty states,
|
|
5012
5029
|
* `"compact"` for inside cards / small surfaces.
|
|
5013
5030
|
*/
|
|
5014
|
-
type RootProps$
|
|
5031
|
+
type RootProps$6 = ComponentProps<'div'> & VariantProps<typeof emptyStateClassnames> & {
|
|
5015
5032
|
variant?: Variant$1;
|
|
5016
5033
|
};
|
|
5017
5034
|
/**
|
|
@@ -5026,23 +5043,23 @@ type RootProps$3 = ComponentProps<'div'> & VariantProps<typeof emptyStateClassna
|
|
|
5026
5043
|
*
|
|
5027
5044
|
* @see RECIPES.md#card-with-empty-state — for the empty-card pattern
|
|
5028
5045
|
*/
|
|
5029
|
-
declare const EmptyStateRoot: ({ className, variant, children, ...rest }: RootProps$
|
|
5046
|
+
declare const EmptyStateRoot: ({ className, variant, children, ...rest }: RootProps$6) => react_jsx_runtime.JSX.Element;
|
|
5030
5047
|
type SlotProps$2 = ComponentProps<'div'> & {
|
|
5031
5048
|
variant?: Variant$1;
|
|
5032
5049
|
};
|
|
5033
5050
|
declare const EmptyStateIcon: ({ className, variant, children, ...rest }: SlotProps$2) => react_jsx_runtime.JSX.Element;
|
|
5034
|
-
type TitleProps$
|
|
5051
|
+
type TitleProps$2 = ComponentProps<'h3'> & {
|
|
5035
5052
|
variant?: Variant$1;
|
|
5036
5053
|
};
|
|
5037
|
-
declare const EmptyStateTitle: ({ className, variant, children, ...rest }: TitleProps$
|
|
5038
|
-
type DescriptionProps$
|
|
5054
|
+
declare const EmptyStateTitle: ({ className, variant, children, ...rest }: TitleProps$2) => react_jsx_runtime.JSX.Element;
|
|
5055
|
+
type DescriptionProps$2 = ComponentProps<'p'> & {
|
|
5039
5056
|
variant?: Variant$1;
|
|
5040
5057
|
};
|
|
5041
|
-
declare const EmptyStateDescription: ({ className, variant, children, ...rest }: DescriptionProps$
|
|
5042
|
-
type ActionsProps$
|
|
5058
|
+
declare const EmptyStateDescription: ({ className, variant, children, ...rest }: DescriptionProps$2) => react_jsx_runtime.JSX.Element;
|
|
5059
|
+
type ActionsProps$2 = ComponentProps<'div'> & {
|
|
5043
5060
|
variant?: Variant$1;
|
|
5044
5061
|
};
|
|
5045
|
-
declare const EmptyStateActions: ({ className, variant, children, ...rest }: ActionsProps$
|
|
5062
|
+
declare const EmptyStateActions: ({ className, variant, children, ...rest }: ActionsProps$2) => react_jsx_runtime.JSX.Element;
|
|
5046
5063
|
declare const EmptyState: typeof EmptyStateRoot & {
|
|
5047
5064
|
Icon: typeof EmptyStateIcon;
|
|
5048
5065
|
Title: typeof EmptyStateTitle;
|
|
@@ -5058,7 +5075,7 @@ type Variant = VariantProps<typeof errorStateClassnames>['variant'];
|
|
|
5058
5075
|
* Props for `ErrorState`. `variant` chooses look — `"default"` for non-blocking errors, `"compact"` for
|
|
5059
5076
|
* inside cards, `"destructive"` for blocking failures (red title + icon).
|
|
5060
5077
|
*/
|
|
5061
|
-
type RootProps$
|
|
5078
|
+
type RootProps$5 = ComponentProps<'div'> & VariantProps<typeof errorStateClassnames> & {
|
|
5062
5079
|
variant?: Variant;
|
|
5063
5080
|
};
|
|
5064
5081
|
/**
|
|
@@ -5072,23 +5089,23 @@ type RootProps$2 = ComponentProps<'div'> & VariantProps<typeof errorStateClassna
|
|
|
5072
5089
|
* **Composition:** nest `ErrorState.Icon`, `ErrorState.Title`, `ErrorState.Description`, and
|
|
5073
5090
|
* `ErrorState.Actions`. Use `variant="destructive"` for full-page critical failures.
|
|
5074
5091
|
*/
|
|
5075
|
-
declare const ErrorStateRoot: ({ className, variant, children, ...rest }: RootProps$
|
|
5092
|
+
declare const ErrorStateRoot: ({ className, variant, children, ...rest }: RootProps$5) => react_jsx_runtime.JSX.Element;
|
|
5076
5093
|
type SlotProps$1 = ComponentProps<'div'> & {
|
|
5077
5094
|
variant?: Variant;
|
|
5078
5095
|
};
|
|
5079
5096
|
declare const ErrorStateIcon: ({ className, variant, children, ...rest }: SlotProps$1) => react_jsx_runtime.JSX.Element;
|
|
5080
|
-
type TitleProps = ComponentProps<'h3'> & {
|
|
5097
|
+
type TitleProps$1 = ComponentProps<'h3'> & {
|
|
5081
5098
|
variant?: Variant;
|
|
5082
5099
|
};
|
|
5083
|
-
declare const ErrorStateTitle: ({ className, variant, children, ...rest }: TitleProps) => react_jsx_runtime.JSX.Element;
|
|
5084
|
-
type DescriptionProps = ComponentProps<'p'> & {
|
|
5100
|
+
declare const ErrorStateTitle: ({ className, variant, children, ...rest }: TitleProps$1) => react_jsx_runtime.JSX.Element;
|
|
5101
|
+
type DescriptionProps$1 = ComponentProps<'p'> & {
|
|
5085
5102
|
variant?: Variant;
|
|
5086
5103
|
};
|
|
5087
|
-
declare const ErrorStateDescription: ({ className, variant, children, ...rest }: DescriptionProps) => react_jsx_runtime.JSX.Element;
|
|
5088
|
-
type ActionsProps = ComponentProps<'div'> & {
|
|
5104
|
+
declare const ErrorStateDescription: ({ className, variant, children, ...rest }: DescriptionProps$1) => react_jsx_runtime.JSX.Element;
|
|
5105
|
+
type ActionsProps$1 = ComponentProps<'div'> & {
|
|
5089
5106
|
variant?: Variant;
|
|
5090
5107
|
};
|
|
5091
|
-
declare const ErrorStateActions: ({ className, variant, children, ...rest }: ActionsProps) => react_jsx_runtime.JSX.Element;
|
|
5108
|
+
declare const ErrorStateActions: ({ className, variant, children, ...rest }: ActionsProps$1) => react_jsx_runtime.JSX.Element;
|
|
5092
5109
|
declare const ErrorState: typeof ErrorStateRoot & {
|
|
5093
5110
|
Icon: typeof ErrorStateIcon;
|
|
5094
5111
|
Title: typeof ErrorStateTitle;
|
|
@@ -5141,8 +5158,8 @@ declare const variants: (props?: ({
|
|
|
5141
5158
|
variant?: "success" | "default" | null | undefined;
|
|
5142
5159
|
size?: "sm" | "lg" | null | undefined;
|
|
5143
5160
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
5144
|
-
type Props$
|
|
5145
|
-
declare const Progress: ({ ref, className, value, variant, size, ...props }: Props$
|
|
5161
|
+
type Props$o = ComponentProps<typeof Root$a> & VariantProps<typeof variants>;
|
|
5162
|
+
declare const Progress: ({ ref, className, value, variant, size, ...props }: Props$o & {
|
|
5146
5163
|
ref?: Ref<ElementRef<typeof Root$a>>;
|
|
5147
5164
|
}) => react_jsx_runtime.JSX.Element;
|
|
5148
5165
|
|
|
@@ -5160,7 +5177,7 @@ type CollapseProps = {
|
|
|
5160
5177
|
/** @deprecated Use `Collapsible` instead. */
|
|
5161
5178
|
declare const Collapse: ({ open, header, className, bodyClassName, children, onClick, animationClassName, hidden, ...rest }: CollapseProps & ComponentProps<"div">) => react_jsx_runtime.JSX.Element;
|
|
5162
5179
|
|
|
5163
|
-
type Props$
|
|
5180
|
+
type Props$n = {
|
|
5164
5181
|
header: ReactNode;
|
|
5165
5182
|
isDisabled?: boolean;
|
|
5166
5183
|
defaultExpanded?: boolean;
|
|
@@ -5172,18 +5189,18 @@ type Props$m = {
|
|
|
5172
5189
|
variant?: 'default' | 'white';
|
|
5173
5190
|
children: ReactNode;
|
|
5174
5191
|
};
|
|
5175
|
-
declare const CollapsiblePanel: ({ header, className, bodyClassName, headerClassName, defaultExpanded, isDisabled, children, isOpen, onToggle, variant, }: Props$
|
|
5192
|
+
declare const CollapsiblePanel: ({ header, className, bodyClassName, headerClassName, defaultExpanded, isDisabled, children, isOpen, onToggle, variant, }: Props$n) => react_jsx_runtime.JSX.Element;
|
|
5176
5193
|
|
|
5177
|
-
type Props$
|
|
5194
|
+
type Props$m = PropsWithChildren<{
|
|
5178
5195
|
defaultExpanded?: boolean;
|
|
5179
5196
|
labelCollapse?: ReactNode;
|
|
5180
5197
|
labelOpen?: ReactNode;
|
|
5181
5198
|
placement?: 'top' | 'bottom';
|
|
5182
5199
|
className?: string;
|
|
5183
5200
|
}>;
|
|
5184
|
-
declare const PanelWithDetails: ({ defaultExpanded, labelCollapse, labelOpen, placement, children, }: Props$
|
|
5201
|
+
declare const PanelWithDetails: ({ defaultExpanded, labelCollapse, labelOpen, placement, children, }: Props$m) => react_jsx_runtime.JSX.Element;
|
|
5185
5202
|
|
|
5186
|
-
type RootProps$
|
|
5203
|
+
type RootProps$4 = ComponentPropsWithoutRef<'div'>;
|
|
5187
5204
|
type SlotProps = ComponentPropsWithoutRef<'div'> & {
|
|
5188
5205
|
/** Render as the child element (Radix-Slot pattern), forwarding props onto it. */
|
|
5189
5206
|
asChild?: boolean;
|
|
@@ -5207,7 +5224,7 @@ type SlotProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
5207
5224
|
* @see AppShell.stories.tsx — flip the Storybook brand toolbar to see the
|
|
5208
5225
|
* sidebar / top-nav geometry swap from a single composition.
|
|
5209
5226
|
*/
|
|
5210
|
-
declare const AppShell: (({ ref, className, children, ...props }: RootProps$
|
|
5227
|
+
declare const AppShell: (({ ref, className, children, ...props }: RootProps$4 & {
|
|
5211
5228
|
ref?: Ref<ElementRef<"div">>;
|
|
5212
5229
|
}) => react_jsx_runtime.JSX.Element) & {
|
|
5213
5230
|
/**
|
|
@@ -5244,7 +5261,7 @@ declare const AppShell: (({ ref, className, children, ...props }: RootProps$1 &
|
|
|
5244
5261
|
* `narrow` (976px) for forms, `default` (1280px) for most pages, `wide` (1600px) for dense detail views,
|
|
5245
5262
|
* `full` for edge-to-edge layouts.
|
|
5246
5263
|
*/
|
|
5247
|
-
type RootProps = ComponentPropsWithoutRef<'div'> & {
|
|
5264
|
+
type RootProps$3 = ComponentPropsWithoutRef<'div'> & {
|
|
5248
5265
|
maxWidth?: 'default' | 'narrow' | 'wide' | 'full';
|
|
5249
5266
|
};
|
|
5250
5267
|
type FooterProps = ComponentPropsWithoutRef<'footer'> & {
|
|
@@ -5267,7 +5284,7 @@ type FooterProps = ComponentPropsWithoutRef<'footer'> & {
|
|
|
5267
5284
|
*
|
|
5268
5285
|
* @see RECIPES.md#list-detail — for the index → detail page pattern
|
|
5269
5286
|
*/
|
|
5270
|
-
declare const PageLayout: (({ ref, className, maxWidth, children, ...props }: RootProps & {
|
|
5287
|
+
declare const PageLayout: (({ ref, className, maxWidth, children, ...props }: RootProps$3 & {
|
|
5271
5288
|
ref?: Ref<ElementRef<"div">>;
|
|
5272
5289
|
}) => react_jsx_runtime.JSX.Element) & {
|
|
5273
5290
|
/** Detail-pattern breadcrumb row. Usually composed automatically by `PageHeader.Detail` — slot exists for layouts that don't fit either `PageHeader` variant. */
|
|
@@ -5396,7 +5413,7 @@ declare const PageToolbar: (({ ref, className, children, ...props }: DivProps) =
|
|
|
5396
5413
|
*/
|
|
5397
5414
|
Token: ({ children, popover, onRemove, removeAriaLabel, ...props }: Omit<Omit<Pick<react.ClassAttributes<HTMLDivElement> & react.HTMLAttributes<HTMLDivElement> & class_variance_authority.VariantProps<(props?: ({
|
|
5398
5415
|
variant?: "default" | "tag" | "pill" | null | undefined;
|
|
5399
|
-
color?: "
|
|
5416
|
+
color?: "blue" | "cyan" | "gray" | "green" | "orange" | "purple" | "red" | "teal" | "white" | "gray-darker" | "gray-inverse" | "green-darker" | "green-inverse" | "blue-inverse" | "orange-inverse" | "amber" | "amber-inverse" | "teal-inverse" | "purple-inverse" | "cyan-inverse" | "sidebar-primary" | null | undefined;
|
|
5400
5417
|
} & class_variance_authority_types.ClassProp) | undefined) => string> & {
|
|
5401
5418
|
ref?: Ref<ElementRef<"div">>;
|
|
5402
5419
|
}, "variant" | "color"> & Omit<react.ClassAttributes<HTMLSpanElement> & react.HTMLAttributes<HTMLSpanElement> & {
|
|
@@ -5423,7 +5440,7 @@ declare const PageToolbar: (({ ref, className, children, ...props }: DivProps) =
|
|
|
5423
5440
|
Clear: ({ className, children, ...props }: ActionProps) => react_jsx_runtime.JSX.Element;
|
|
5424
5441
|
};
|
|
5425
5442
|
|
|
5426
|
-
type Props$
|
|
5443
|
+
type Props$l = {
|
|
5427
5444
|
/** `wordmark` (default, full logo) or `mark` (square icon); each falls back to the other. */
|
|
5428
5445
|
variant?: 'mark' | 'wordmark';
|
|
5429
5446
|
/** Sets the logo height; aspect ratio is preserved (e.g. `tw-h-7`). */
|
|
@@ -5433,7 +5450,7 @@ type Props$k = {
|
|
|
5433
5450
|
* Renders the active brand's logo from the nearest `<ThemeProvider>`, or `null`
|
|
5434
5451
|
* if the brand ships none. Inline SVG inherits `currentColor`; URLs use `<img>`.
|
|
5435
5452
|
*/
|
|
5436
|
-
declare const BrandLogo: ({ variant, className }: Props$
|
|
5453
|
+
declare const BrandLogo: ({ variant, className }: Props$l) => react_jsx_runtime.JSX.Element | null;
|
|
5437
5454
|
|
|
5438
5455
|
declare const ResizableHandle: ({ className, ...props }: ComponentProps<typeof Separator$1>) => react_jsx_runtime.JSX.Element;
|
|
5439
5456
|
|
|
@@ -5445,7 +5462,7 @@ type SidebarState$1 = 'expanded' | 'collapsed';
|
|
|
5445
5462
|
type SidebarCollapsible = 'icon' | 'off-canvas';
|
|
5446
5463
|
type SidebarVariant = 'sided-floating' | 'inset' | 'floating' | 'none';
|
|
5447
5464
|
|
|
5448
|
-
type Props$
|
|
5465
|
+
type Props$k = {
|
|
5449
5466
|
children: ReactNode;
|
|
5450
5467
|
className?: string;
|
|
5451
5468
|
id?: string;
|
|
@@ -5456,7 +5473,7 @@ type Props$j = {
|
|
|
5456
5473
|
resizable?: boolean;
|
|
5457
5474
|
};
|
|
5458
5475
|
declare const Sidebar: {
|
|
5459
|
-
({ children, className, id, side, style, container, keepMounted, resizable, }: Props$
|
|
5476
|
+
({ children, className, id, side, style, container, keepMounted, resizable, }: Props$k): react_jsx_runtime.JSX.Element | null;
|
|
5460
5477
|
Header: ({ className, children, ...props }: react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => react_jsx_runtime.JSX.Element;
|
|
5461
5478
|
Content: ({ ref, className, children, contentRef, }: {
|
|
5462
5479
|
className?: string;
|
|
@@ -6126,7 +6143,7 @@ declare const Sidebar: {
|
|
|
6126
6143
|
}) => react_jsx_runtime.JSX.Element;
|
|
6127
6144
|
};
|
|
6128
6145
|
|
|
6129
|
-
type Props$
|
|
6146
|
+
type Props$j = {
|
|
6130
6147
|
children?: ReactNode;
|
|
6131
6148
|
defaultLeftMode?: SidebarMode;
|
|
6132
6149
|
leftMode?: SidebarMode;
|
|
@@ -6144,7 +6161,7 @@ type Props$i = {
|
|
|
6144
6161
|
onRightWidthChange?: (width: number) => void;
|
|
6145
6162
|
defaultFilledSide?: SidebarSide | null;
|
|
6146
6163
|
};
|
|
6147
|
-
declare const SidebarProvider: ({ children, defaultLeftMode, leftMode, onLeftModeChange, defaultRightMode, rightMode, onRightModeChange, leftCollapsible, leftVariant, leftWidth, rightCollapsible, rightVariant, rightWidth, onLeftWidthChange, onRightWidthChange, defaultFilledSide, }: Props$
|
|
6164
|
+
declare const SidebarProvider: ({ children, defaultLeftMode, leftMode, onLeftModeChange, defaultRightMode, rightMode, onRightModeChange, leftCollapsible, leftVariant, leftWidth, rightCollapsible, rightVariant, rightWidth, onLeftWidthChange, onRightWidthChange, defaultFilledSide, }: Props$j) => react_jsx_runtime.JSX.Element;
|
|
6148
6165
|
|
|
6149
6166
|
type Input = {
|
|
6150
6167
|
variant: SidebarVariant;
|
|
@@ -6160,12 +6177,12 @@ type EffectiveWidths = {
|
|
|
6160
6177
|
};
|
|
6161
6178
|
declare const calcEffectiveWidths: ({ variant, width: customWidth, collapsible, state, mode, }: Input) => EffectiveWidths;
|
|
6162
6179
|
|
|
6163
|
-
type Props$
|
|
6180
|
+
type Props$i = {
|
|
6164
6181
|
defaultMode?: SidebarMode;
|
|
6165
6182
|
mode?: SidebarMode;
|
|
6166
6183
|
onModeChange?: (state: SidebarMode) => void;
|
|
6167
6184
|
};
|
|
6168
|
-
declare const useSidebarState: ({ defaultMode, mode: modeProp, onModeChange }: Props$
|
|
6185
|
+
declare const useSidebarState: ({ defaultMode, mode: modeProp, onModeChange }: Props$i) => {
|
|
6169
6186
|
isHovered: boolean;
|
|
6170
6187
|
toggle: () => void;
|
|
6171
6188
|
setMode: (dispatch: Parameters<react.Dispatch<react.SetStateAction<"expanded" | "collapsed" | "expand-on-hover">>>[0]) => void;
|
|
@@ -6195,7 +6212,7 @@ declare const separatorVariants: (props?: ({
|
|
|
6195
6212
|
size?: "full" | "1/2" | "3/4" | null | undefined;
|
|
6196
6213
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
6197
6214
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
6198
|
-
type Props$
|
|
6215
|
+
type Props$h = VariantProps<typeof separatorVariants> & Omit<ComponentProps<typeof RSeparator.Root>, 'decorative'> & {
|
|
6199
6216
|
/**
|
|
6200
6217
|
* Optional label rendered centered between two line segments
|
|
6201
6218
|
* (typical "OR" divider). Implies `orientation="horizontal"`.
|
|
@@ -6203,12 +6220,12 @@ type Props$g = VariantProps<typeof separatorVariants> & Omit<ComponentProps<type
|
|
|
6203
6220
|
*/
|
|
6204
6221
|
label?: ReactNode;
|
|
6205
6222
|
};
|
|
6206
|
-
declare const Separator: ({ className, orientation, size, label, ...props }: Props$
|
|
6223
|
+
declare const Separator: ({ className, orientation, size, label, ...props }: Props$h) => react_jsx_runtime.JSX.Element;
|
|
6207
6224
|
|
|
6208
6225
|
declare const navbarClassnames: (props?: ({
|
|
6209
6226
|
bordered?: boolean | null | undefined;
|
|
6210
6227
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
6211
|
-
type Props$
|
|
6228
|
+
type Props$g = ComponentProps<'nav'> & VariantProps<typeof navbarClassnames> & {
|
|
6212
6229
|
accent?: 'blue' | 'purple' | 'green' | 'orange';
|
|
6213
6230
|
};
|
|
6214
6231
|
/**
|
|
@@ -6226,7 +6243,7 @@ type Props$f = ComponentProps<'nav'> & VariantProps<typeof navbarClassnames> & {
|
|
|
6226
6243
|
* @see AppShell — pair with `AppShell.Header`; the sidebar rail uses `Sidebar` instead.
|
|
6227
6244
|
*/
|
|
6228
6245
|
declare const Navbar: {
|
|
6229
|
-
({ className, accent, bordered, ...rest }: Props$
|
|
6246
|
+
({ className, accent, bordered, ...rest }: Props$g): react_jsx_runtime.JSX.Element;
|
|
6230
6247
|
Header: ({ children, className, ...rest }: react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => react_jsx_runtime.JSX.Element;
|
|
6231
6248
|
Footer: ({ children, className, ...rest }: react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => react_jsx_runtime.JSX.Element;
|
|
6232
6249
|
Content: ({ children, className }: {
|
|
@@ -6260,9 +6277,9 @@ declare const Navbar: {
|
|
|
6260
6277
|
}) => react_jsx_runtime.JSX.Element;
|
|
6261
6278
|
};
|
|
6262
6279
|
|
|
6263
|
-
type Props$
|
|
6280
|
+
type Props$f = ComponentProps<'nav'>;
|
|
6264
6281
|
declare const Breadcrumb: {
|
|
6265
|
-
({ className, ...props }: Props$
|
|
6282
|
+
({ className, ...props }: Props$f): react_jsx_runtime.JSX.Element;
|
|
6266
6283
|
List: ({ className, ...props }: react.DetailedHTMLProps<react.OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>) => react_jsx_runtime.JSX.Element;
|
|
6267
6284
|
Item: ({ className, ...props }: react.DetailedHTMLProps<react.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>) => react_jsx_runtime.JSX.Element;
|
|
6268
6285
|
Link: ({ ref, asChild, className, ...props }: (react.ClassAttributes<HTMLAnchorElement> & react.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
@@ -6318,7 +6335,7 @@ type Trigger<T extends string> = {
|
|
|
6318
6335
|
title: ReactNode;
|
|
6319
6336
|
onClose?: (value: T) => void;
|
|
6320
6337
|
} & Omit<RadixTabs.TabsTriggerProps, 'title' | 'asChild'>;
|
|
6321
|
-
type Props$
|
|
6338
|
+
type Props$e<T extends string> = {
|
|
6322
6339
|
triggers: readonly Trigger<T>[];
|
|
6323
6340
|
compact?: boolean;
|
|
6324
6341
|
children: ReactNode;
|
|
@@ -6329,7 +6346,7 @@ type Props$d<T extends string> = {
|
|
|
6329
6346
|
triggerClassName?: string;
|
|
6330
6347
|
triggerGroupClassName?: string;
|
|
6331
6348
|
} & Omit<RadixTabs.TabsProps, 'onValueChange'>;
|
|
6332
|
-
declare const Tabs: <T extends string>({ triggers, compact, children, defaultValue, onValueChange, rootClassName, listClassName, triggerClassName, triggerGroupClassName, ...rest }: Props$
|
|
6349
|
+
declare const Tabs: <T extends string>({ triggers, compact, children, defaultValue, onValueChange, rootClassName, listClassName, triggerClassName, triggerGroupClassName, ...rest }: Props$e<T>) => react_jsx_runtime.JSX.Element;
|
|
6333
6350
|
|
|
6334
6351
|
declare const TabsContent: (props: RadixTabs.TabsContentProps) => react_jsx_runtime.JSX.Element;
|
|
6335
6352
|
|
|
@@ -6346,7 +6363,7 @@ declare const stepperVariants: (props?: ({
|
|
|
6346
6363
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
6347
6364
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
6348
6365
|
|
|
6349
|
-
type Props$
|
|
6366
|
+
type Props$d = {
|
|
6350
6367
|
/** Layout direction. Defaults to `horizontal`. */
|
|
6351
6368
|
orientation?: StepperOrientation;
|
|
6352
6369
|
/**
|
|
@@ -6368,7 +6385,7 @@ type Props$c = {
|
|
|
6368
6385
|
* otherwise the stepper is visual only. Each step's `status` prop drives the indicator + connector colour.
|
|
6369
6386
|
*/
|
|
6370
6387
|
declare const Stepper: {
|
|
6371
|
-
({ orientation, onStepClick, children, className, ...props }: Props$
|
|
6388
|
+
({ orientation, onStepClick, children, className, ...props }: Props$d): react_jsx_runtime.JSX.Element;
|
|
6372
6389
|
Step: ({ status, children, className, ...props }: {
|
|
6373
6390
|
status?: StepStatus;
|
|
6374
6391
|
children: ReactNode;
|
|
@@ -6386,9 +6403,9 @@ declare const cardClassnames: (props?: ({
|
|
|
6386
6403
|
padding?: "none" | "medium" | "small" | "large" | null | undefined;
|
|
6387
6404
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
6388
6405
|
|
|
6389
|
-
type Props$
|
|
6406
|
+
type Props$c = HTMLAttributes<HTMLDivElement> & VariantProps<typeof cardClassnames>;
|
|
6390
6407
|
declare const Card: {
|
|
6391
|
-
({ children, className, bordered, padding, ...rest }: Props$
|
|
6408
|
+
({ children, className, bordered, padding, ...rest }: Props$c): react_jsx_runtime.JSX.Element;
|
|
6392
6409
|
Header: ({ children, ...rest }: HTMLAttributes<HTMLDivElement>) => react_jsx_runtime.JSX.Element;
|
|
6393
6410
|
Content: ({ children, ...rest }: HTMLAttributes<HTMLDivElement>) => react_jsx_runtime.JSX.Element;
|
|
6394
6411
|
Title: ({ children, className, as: Tag, ...rest }: HTMLAttributes<HTMLHeadingElement> & {
|
|
@@ -6400,7 +6417,7 @@ declare const Card: {
|
|
|
6400
6417
|
* Props for `Table`. `borderCollapsed` toggles standard collapsed borders vs separate row spacing;
|
|
6401
6418
|
* `bordered` wraps the table in a rounded bordered container with overflow scrolling.
|
|
6402
6419
|
*/
|
|
6403
|
-
type Props$
|
|
6420
|
+
type Props$b = {
|
|
6404
6421
|
borderCollapsed?: boolean;
|
|
6405
6422
|
bordered?: boolean;
|
|
6406
6423
|
containerClassName?: string;
|
|
@@ -6419,7 +6436,7 @@ type Props$a = {
|
|
|
6419
6436
|
* @see RECIPES.md#list-detail — for a list-table + row-click-to-detail pattern
|
|
6420
6437
|
*/
|
|
6421
6438
|
declare const Table: {
|
|
6422
|
-
({ borderCollapsed, bordered, containerClassName, className, ...props }: Props$
|
|
6439
|
+
({ borderCollapsed, bordered, containerClassName, className, ...props }: Props$b): react_jsx_runtime.JSX.Element;
|
|
6423
6440
|
Header: ({ withShadow, className, ...props }: {
|
|
6424
6441
|
withShadow?: boolean;
|
|
6425
6442
|
} & ComponentProps<"thead">) => react_jsx_runtime.JSX.Element;
|
|
@@ -6434,11 +6451,11 @@ declare const Table: {
|
|
|
6434
6451
|
Footer: ({ className, ...props }: ComponentProps<"tfoot">) => react_jsx_runtime.JSX.Element;
|
|
6435
6452
|
};
|
|
6436
6453
|
|
|
6437
|
-
type Props$
|
|
6454
|
+
type Props$a = ComponentProps<'ul'> & {
|
|
6438
6455
|
variant?: 'solid' | 'dashed';
|
|
6439
6456
|
};
|
|
6440
6457
|
declare const Timeline: {
|
|
6441
|
-
({ className, variant, ...rest }: Props$
|
|
6458
|
+
({ className, variant, ...rest }: Props$a): react_jsx_runtime.JSX.Element;
|
|
6442
6459
|
Item: ({ className, ...rest }: react.DetailedHTMLProps<react.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>) => react_jsx_runtime.JSX.Element;
|
|
6443
6460
|
Content: ({ className, ...rest }: react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => react_jsx_runtime.JSX.Element;
|
|
6444
6461
|
Connector: ({ className, children, asChild, variant, align, offset, style, ...rest }: {
|
|
@@ -6451,25 +6468,25 @@ declare const Timeline: {
|
|
|
6451
6468
|
} & class_variance_authority_types.ClassProp) | undefined) => string>) => react_jsx_runtime.JSX.Element;
|
|
6452
6469
|
};
|
|
6453
6470
|
|
|
6454
|
-
type Props$
|
|
6471
|
+
type Props$9 = {
|
|
6455
6472
|
text: ReactNode;
|
|
6456
6473
|
tooltip?: ReactNode;
|
|
6457
6474
|
twoLines?: boolean;
|
|
6458
6475
|
noTooltip?: boolean;
|
|
6459
|
-
tooltipVariant?: Props$
|
|
6460
|
-
tooltipPlacement?: Props$
|
|
6476
|
+
tooltipVariant?: Props$1P['variant'];
|
|
6477
|
+
tooltipPlacement?: Props$1P['placement'];
|
|
6461
6478
|
} & Omit<ComponentPropsWithoutRef<'span'>, 'children'>;
|
|
6462
|
-
declare const Truncated: ({ ref, text, tooltip, className, twoLines, noTooltip, tooltipVariant, tooltipPlacement, ...rest }: Props$
|
|
6479
|
+
declare const Truncated: ({ ref, text, tooltip, className, twoLines, noTooltip, tooltipVariant, tooltipPlacement, ...rest }: Props$9 & {
|
|
6463
6480
|
ref?: Ref<ElementRef<"span">>;
|
|
6464
6481
|
}) => react_jsx_runtime.JSX.Element;
|
|
6465
6482
|
|
|
6466
|
-
type Props$
|
|
6483
|
+
type Props$8 = {
|
|
6467
6484
|
source: string;
|
|
6468
6485
|
className?: string;
|
|
6469
6486
|
mark?: string;
|
|
6470
6487
|
isCaseSensitive?: boolean;
|
|
6471
6488
|
} & ComponentProps<'span'>;
|
|
6472
|
-
declare const MarkedText: ({ ref, source, mark, isCaseSensitive, ...spanProps }: Props$
|
|
6489
|
+
declare const MarkedText: ({ ref, source, mark, isCaseSensitive, ...spanProps }: Props$8 & {
|
|
6473
6490
|
ref?: Ref<ElementRef<"span">>;
|
|
6474
6491
|
}) => react_jsx_runtime.JSX.Element;
|
|
6475
6492
|
|
|
@@ -6477,9 +6494,9 @@ declare const kbdVariants: (props?: ({
|
|
|
6477
6494
|
variant?: "primary" | "default" | null | undefined;
|
|
6478
6495
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
6479
6496
|
|
|
6480
|
-
type Props$
|
|
6497
|
+
type Props$7 = ComponentProps<'kbd'> & VariantProps<typeof kbdVariants>;
|
|
6481
6498
|
declare const Kbd: {
|
|
6482
|
-
({ children, className, variant, ...rest }: Props$
|
|
6499
|
+
({ children, className, variant, ...rest }: Props$7): react_jsx_runtime.JSX.Element;
|
|
6483
6500
|
Group: ({ ref, className, children, separator, ...props }: ({
|
|
6484
6501
|
separator?: string;
|
|
6485
6502
|
} & react.ClassAttributes<HTMLElement> & react.HTMLAttributes<HTMLElement>) & {
|
|
@@ -6495,9 +6512,9 @@ type KeyRepresentation = {
|
|
|
6495
6512
|
};
|
|
6496
6513
|
declare const keys: Record<KeyName, KeyRepresentation>;
|
|
6497
6514
|
|
|
6498
|
-
type Props$
|
|
6515
|
+
type Props$6 = ComponentProps<'nav'>;
|
|
6499
6516
|
declare const Pagination: {
|
|
6500
|
-
({ className, ...props }: Props$
|
|
6517
|
+
({ className, ...props }: Props$6): react_jsx_runtime.JSX.Element;
|
|
6501
6518
|
Content: ({ className, ...props }: react.DetailedHTMLProps<react.HTMLAttributes<HTMLUListElement>, HTMLUListElement>) => react_jsx_runtime.JSX.Element;
|
|
6502
6519
|
Item: ({ className, ...props }: react.DetailedHTMLProps<react.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>) => react_jsx_runtime.JSX.Element;
|
|
6503
6520
|
Button: ({ ref, active: isActive, className, children, size, ...props }: ({
|
|
@@ -6545,7 +6562,7 @@ declare const Pagination: {
|
|
|
6545
6562
|
Ellipsis: ({ className, ...props }: react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>) => react_jsx_runtime.JSX.Element;
|
|
6546
6563
|
};
|
|
6547
6564
|
|
|
6548
|
-
type Props$
|
|
6565
|
+
type Props$5 = {
|
|
6549
6566
|
oldValue: string;
|
|
6550
6567
|
newValue: string;
|
|
6551
6568
|
ignoreWhitespace?: boolean;
|
|
@@ -6555,7 +6572,7 @@ type Props$4 = {
|
|
|
6555
6572
|
rightTitle: ReactNode;
|
|
6556
6573
|
rightTitleGutter?: ReactNode;
|
|
6557
6574
|
};
|
|
6558
|
-
declare const DiffView: ({ leftTitle, leftTitleGutter, rightTitle, rightTitleGutter, oldValue, newValue, ignoreWhitespace, className, }: Props$
|
|
6575
|
+
declare const DiffView: ({ leftTitle, leftTitleGutter, rightTitle, rightTitleGutter, oldValue, newValue, ignoreWhitespace, className, }: Props$5) => react_jsx_runtime.JSX.Element;
|
|
6559
6576
|
|
|
6560
6577
|
declare const DiffType: {
|
|
6561
6578
|
readonly DEFAULT: "default";
|
|
@@ -6600,17 +6617,17 @@ type DiffRow = {
|
|
|
6600
6617
|
declare const computeLineInformation: (oldString: string, newString: string, ignoreWhitespace?: boolean) => ComputedLineInformation;
|
|
6601
6618
|
declare const computeDiffRows: (lineInformation: LineInformation[], diffLines: number[], expandedBlocks: number[]) => DiffRow[];
|
|
6602
6619
|
|
|
6603
|
-
type Props$
|
|
6620
|
+
type Props$4 = {
|
|
6604
6621
|
label: string;
|
|
6605
6622
|
sublabel?: string;
|
|
6606
6623
|
};
|
|
6607
|
-
declare const PaneHeader: ({ label, sublabel }: Props$
|
|
6624
|
+
declare const PaneHeader: ({ label, sublabel }: Props$4) => react_jsx_runtime.JSX.Element;
|
|
6608
6625
|
|
|
6609
|
-
type Props$
|
|
6626
|
+
type Props$3 = {
|
|
6610
6627
|
remainingConflicts: number;
|
|
6611
6628
|
remainingSafeChanges: number;
|
|
6612
6629
|
};
|
|
6613
|
-
declare const ConflictStatusIndicator: ({ remainingConflicts, remainingSafeChanges }: Props$
|
|
6630
|
+
declare const ConflictStatusIndicator: ({ remainingConflicts, remainingSafeChanges }: Props$3) => react_jsx_runtime.JSX.Element;
|
|
6614
6631
|
|
|
6615
6632
|
declare const useMergeDiff: (baseText: string, leftText: string, rightText: string) => {
|
|
6616
6633
|
mergeValue: string;
|
|
@@ -6634,6 +6651,113 @@ declare const useMergeDiff: (baseText: string, leftText: string, rightText: stri
|
|
|
6634
6651
|
reset: () => void;
|
|
6635
6652
|
};
|
|
6636
6653
|
|
|
6654
|
+
type RootProps$2 = ComponentProps<'section'>;
|
|
6655
|
+
/**
|
|
6656
|
+
* Signature dashboard hero banner — the opinionated top-of-page welcome/summary surface
|
|
6657
|
+
* (daily-brief header, project overview, greeting + primary CTA).
|
|
6658
|
+
*
|
|
6659
|
+
* **When to use:** the first block on a landing or dashboard page, above the KPI strip and
|
|
6660
|
+
* chart panels. It sets tone with an eyebrow, a large title, a lead paragraph, and an actions row.
|
|
6661
|
+
* **When NOT to use:** for an in-app page title use `PageHeader.Index`; for an empty page use
|
|
6662
|
+
* `EmptyState`. **Composition:** `DashboardHero.Eyebrow`, `.Title`, `.Description`, `.Actions`,
|
|
6663
|
+
* and an optional `.Aside` that floats to the right on wide screens. Reads semantic tokens only.
|
|
6664
|
+
*/
|
|
6665
|
+
declare const DashboardHeroRoot: ({ className, children, ...rest }: RootProps$2) => react_jsx_runtime.JSX.Element;
|
|
6666
|
+
type BodyProps = ComponentProps<'div'>;
|
|
6667
|
+
declare const DashboardHeroBody: ({ className, children, ...rest }: BodyProps) => react_jsx_runtime.JSX.Element;
|
|
6668
|
+
type EyebrowProps = ComponentProps<'p'>;
|
|
6669
|
+
declare const DashboardHeroEyebrow: ({ className, children, ...rest }: EyebrowProps) => react_jsx_runtime.JSX.Element;
|
|
6670
|
+
type TitleProps = ComponentProps<'h1'>;
|
|
6671
|
+
declare const DashboardHeroTitle: ({ className, children, ...rest }: TitleProps) => react_jsx_runtime.JSX.Element;
|
|
6672
|
+
type DescriptionProps = ComponentProps<'p'>;
|
|
6673
|
+
declare const DashboardHeroDescription: ({ className, children, ...rest }: DescriptionProps) => react_jsx_runtime.JSX.Element;
|
|
6674
|
+
type ActionsProps = ComponentProps<'div'>;
|
|
6675
|
+
declare const DashboardHeroActions: ({ className, children, ...rest }: ActionsProps) => react_jsx_runtime.JSX.Element;
|
|
6676
|
+
type AsideProps = ComponentProps<'div'>;
|
|
6677
|
+
declare const DashboardHeroAside: ({ className, children, ...rest }: AsideProps) => react_jsx_runtime.JSX.Element;
|
|
6678
|
+
declare const DashboardHero: typeof DashboardHeroRoot & {
|
|
6679
|
+
Body: typeof DashboardHeroBody;
|
|
6680
|
+
Eyebrow: typeof DashboardHeroEyebrow;
|
|
6681
|
+
Title: typeof DashboardHeroTitle;
|
|
6682
|
+
Description: typeof DashboardHeroDescription;
|
|
6683
|
+
Actions: typeof DashboardHeroActions;
|
|
6684
|
+
Aside: typeof DashboardHeroAside;
|
|
6685
|
+
};
|
|
6686
|
+
|
|
6687
|
+
declare const trendClassnames: (props?: ({
|
|
6688
|
+
direction?: "flat" | "up" | "down" | null | undefined;
|
|
6689
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
6690
|
+
type TrendDirection = NonNullable<VariantProps<typeof trendClassnames>['direction']>;
|
|
6691
|
+
type RootProps$1 = ComponentProps<typeof Card>;
|
|
6692
|
+
/**
|
|
6693
|
+
* A single KPI / metric tile — a signature composition over `Card` with a label,
|
|
6694
|
+
* a large value, an optional trend delta, and an optional leading icon + footnote.
|
|
6695
|
+
*
|
|
6696
|
+
* **When to use:** the headline numbers of a dashboard (revenue, active users, uptime),
|
|
6697
|
+
* usually in a `StatCardGrid` strip at the top of a page.
|
|
6698
|
+
* **When NOT to use:** for a chart use `ChartPanel`; for a generic content surface use `Card`.
|
|
6699
|
+
* **Composition:** `StatCard.Icon`, `StatCard.Label`, `StatCard.Value`, `StatCard.Trend`,
|
|
6700
|
+
* `StatCard.Footnote`. All colours read semantic tokens, so the tile re-skins with the brand.
|
|
6701
|
+
*/
|
|
6702
|
+
declare const StatCardRoot: ({ className, children, bordered, ...rest }: RootProps$1) => react_jsx_runtime.JSX.Element;
|
|
6703
|
+
type IconProps = ComponentProps<'div'>;
|
|
6704
|
+
declare const StatCardIcon: ({ className, children, ...rest }: IconProps) => react_jsx_runtime.JSX.Element;
|
|
6705
|
+
type LabelProps = ComponentProps<'p'>;
|
|
6706
|
+
declare const StatCardLabel: ({ className, children, ...rest }: LabelProps) => react_jsx_runtime.JSX.Element;
|
|
6707
|
+
type ValueProps = ComponentProps<'p'>;
|
|
6708
|
+
declare const StatCardValue: ({ className, children, ...rest }: ValueProps) => react_jsx_runtime.JSX.Element;
|
|
6709
|
+
type TrendProps = ComponentProps<'span'> & {
|
|
6710
|
+
/** Which way the metric moved — sets the semantic colour (`success` / `destructive` / muted). */
|
|
6711
|
+
direction?: TrendDirection;
|
|
6712
|
+
/** Optional leading icon (e.g. an arrow). */
|
|
6713
|
+
icon?: ReactNode;
|
|
6714
|
+
};
|
|
6715
|
+
declare const StatCardTrend: ({ className, direction, icon, children, ...rest }: TrendProps) => react_jsx_runtime.JSX.Element;
|
|
6716
|
+
type FootnoteProps = ComponentProps<'p'>;
|
|
6717
|
+
declare const StatCardFootnote: ({ className, children, ...rest }: FootnoteProps) => react_jsx_runtime.JSX.Element;
|
|
6718
|
+
declare const StatCard: typeof StatCardRoot & {
|
|
6719
|
+
Icon: typeof StatCardIcon;
|
|
6720
|
+
Label: typeof StatCardLabel;
|
|
6721
|
+
Value: typeof StatCardValue;
|
|
6722
|
+
Trend: typeof StatCardTrend;
|
|
6723
|
+
Footnote: typeof StatCardFootnote;
|
|
6724
|
+
};
|
|
6725
|
+
|
|
6726
|
+
declare const gridClassnames: (props?: ({
|
|
6727
|
+
columns?: 2 | 4 | 3 | null | undefined;
|
|
6728
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
6729
|
+
type Props$2 = ComponentProps<'div'> & VariantProps<typeof gridClassnames>;
|
|
6730
|
+
/**
|
|
6731
|
+
* Responsive strip of KPI tiles. Lay `StatCard`s inside it at the top of a dashboard.
|
|
6732
|
+
* `columns` caps the tiles per row on large screens; the grid collapses to one column on
|
|
6733
|
+
* mobile and two on small screens.
|
|
6734
|
+
*/
|
|
6735
|
+
declare const StatCardGrid: ({ className, columns, children, ...rest }: Props$2) => react_jsx_runtime.JSX.Element;
|
|
6736
|
+
|
|
6737
|
+
type RootProps = Omit<ComponentProps<typeof Card>, 'title'> & {
|
|
6738
|
+
/** Panel heading. */
|
|
6739
|
+
title: ReactNode;
|
|
6740
|
+
/** Optional supporting line under the title. */
|
|
6741
|
+
description?: ReactNode;
|
|
6742
|
+
/** Heading level for the title — defaults to `h3`. Set to sit correctly under a page `h1`/`h2`. */
|
|
6743
|
+
titleAs?: ComponentProps<typeof Card.Title>['as'];
|
|
6744
|
+
/** Right-aligned header slot — range picker, legend toggle, menu, etc. */
|
|
6745
|
+
toolbar?: ReactNode;
|
|
6746
|
+
/** Optional footer row (e.g. a source note or an inline legend). */
|
|
6747
|
+
footer?: ReactNode;
|
|
6748
|
+
};
|
|
6749
|
+
/**
|
|
6750
|
+
* Signature chart panel — a `Card` shell with a title/description header, an optional toolbar,
|
|
6751
|
+
* a chart body, and an optional footer. Pass a `@keboola/design/charts` chart (`LineChart`,
|
|
6752
|
+
* `BarChart`, `AreaChart`, `PieChart`) as children; the panel owns the chrome, the chart owns
|
|
6753
|
+
* its own responsive container and themed palette.
|
|
6754
|
+
*
|
|
6755
|
+
* **When to use:** any framed data-viz block on a dashboard.
|
|
6756
|
+
* **When NOT to use:** for a KPI number use `StatCard`; for a raw unframed chart drop the chart
|
|
6757
|
+
* component directly. Charts follow the active brand's chart palette — never hardcode colours.
|
|
6758
|
+
*/
|
|
6759
|
+
declare const ChartPanel: ({ title, description, titleAs, toolbar, footer, className, bordered, children, ...rest }: RootProps) => react_jsx_runtime.JSX.Element;
|
|
6760
|
+
|
|
6637
6761
|
/**
|
|
6638
6762
|
* The a11y wiring `FieldItem` derives from the field and hands back to the control — spread it onto
|
|
6639
6763
|
* whatever element the field renders. Callers never author these attributes themselves.
|
|
@@ -7943,6 +8067,7 @@ declare const useAppForm: <TFormData, TOnMount extends _tanstack_react_form.Form
|
|
|
7943
8067
|
disabled?: boolean | undefined | undefined;
|
|
7944
8068
|
value?: string | null | undefined;
|
|
7945
8069
|
onValueChange?: (((value: string) => void) & ((value: string) => void)) | undefined;
|
|
8070
|
+
wrap?: string | undefined | undefined;
|
|
7946
8071
|
required?: boolean | undefined | undefined;
|
|
7947
8072
|
autoComplete?: string | undefined | undefined;
|
|
7948
8073
|
maxLength?: number | undefined | undefined;
|
|
@@ -7951,7 +8076,6 @@ declare const useAppForm: <TFormData, TOnMount extends _tanstack_react_form.Form
|
|
|
7951
8076
|
readOnly?: boolean | undefined | undefined;
|
|
7952
8077
|
cols?: number | undefined | undefined;
|
|
7953
8078
|
dirName?: string | undefined | undefined;
|
|
7954
|
-
wrap?: string | undefined | undefined;
|
|
7955
8079
|
maxRows?: number | "unlimited" | undefined;
|
|
7956
8080
|
minRows?: number | undefined;
|
|
7957
8081
|
onHeightChange?: ((height: number, meta: react_textarea_autosize.TextareaHeightChangeMeta) => void) | undefined;
|
|
@@ -7992,8 +8116,8 @@ declare const useAppForm: <TFormData, TOnMount extends _tanstack_react_form.Form
|
|
|
7992
8116
|
description?: react.ReactNode;
|
|
7993
8117
|
variant?: class_variance_authority.VariantProps<typeof fieldBoxVariants>["variant"];
|
|
7994
8118
|
position?: "start" | "end";
|
|
7995
|
-
tooltip?: Props$
|
|
7996
|
-
tooltipPlacement?: Props$
|
|
8119
|
+
tooltip?: Props$1P["tooltip"];
|
|
8120
|
+
tooltipPlacement?: Props$1P["placement"];
|
|
7997
8121
|
} & Omit<_radix_ui_react_checkbox.CheckboxProps & react.RefAttributes<HTMLButtonElement>, "id">, "checked" | "onCheckedChange"> & {
|
|
7998
8122
|
checked?: _radix_ui_react_checkbox.CheckedState;
|
|
7999
8123
|
onCheckedChange?: (checked: _radix_ui_react_checkbox.CheckedState) => void;
|
|
@@ -8010,7 +8134,7 @@ declare const useAppForm: <TFormData, TOnMount extends _tanstack_react_form.Form
|
|
|
8010
8134
|
} & class_variance_authority_types.ClassProp) | undefined) => string>, "variant"> & {
|
|
8011
8135
|
ref?: react.Ref<react.ElementRef<"button">>;
|
|
8012
8136
|
}, "id" | "name" | "checked" | "onCheckedChange">) => react_jsx_runtime.JSX.Element;
|
|
8013
|
-
readonly OtpInputField: ({ label, required, requiredMark, help, tooltip, className, "aria-describedby": ariaDescribedBy, maxLength, ...otpProps }: FieldItemProps & Omit<RootProps$
|
|
8137
|
+
readonly OtpInputField: ({ label, required, requiredMark, help, tooltip, className, "aria-describedby": ariaDescribedBy, maxLength, ...otpProps }: FieldItemProps & Omit<RootProps$7, "id" | "name" | "aria-describedby" | "aria-invalid" | "aria-required" | "children" | "onChange" | "value">) => react_jsx_runtime.JSX.Element;
|
|
8014
8138
|
}, {
|
|
8015
8139
|
readonly FormBody: ({ children, className, ...formProps }: {
|
|
8016
8140
|
children: react.ReactNode;
|
|
@@ -9292,6 +9416,7 @@ declare const withForm: <TFormData, TOnMount extends _tanstack_react_form.FormVa
|
|
|
9292
9416
|
disabled?: boolean | undefined | undefined;
|
|
9293
9417
|
value?: string | null | undefined;
|
|
9294
9418
|
onValueChange?: (((value: string) => void) & ((value: string) => void)) | undefined;
|
|
9419
|
+
wrap?: string | undefined | undefined;
|
|
9295
9420
|
required?: boolean | undefined | undefined;
|
|
9296
9421
|
autoComplete?: string | undefined | undefined;
|
|
9297
9422
|
maxLength?: number | undefined | undefined;
|
|
@@ -9300,7 +9425,6 @@ declare const withForm: <TFormData, TOnMount extends _tanstack_react_form.FormVa
|
|
|
9300
9425
|
readOnly?: boolean | undefined | undefined;
|
|
9301
9426
|
cols?: number | undefined | undefined;
|
|
9302
9427
|
dirName?: string | undefined | undefined;
|
|
9303
|
-
wrap?: string | undefined | undefined;
|
|
9304
9428
|
maxRows?: number | "unlimited" | undefined;
|
|
9305
9429
|
minRows?: number | undefined;
|
|
9306
9430
|
onHeightChange?: ((height: number, meta: react_textarea_autosize.TextareaHeightChangeMeta) => void) | undefined;
|
|
@@ -9341,8 +9465,8 @@ declare const withForm: <TFormData, TOnMount extends _tanstack_react_form.FormVa
|
|
|
9341
9465
|
description?: react.ReactNode;
|
|
9342
9466
|
variant?: class_variance_authority.VariantProps<typeof fieldBoxVariants>["variant"];
|
|
9343
9467
|
position?: "start" | "end";
|
|
9344
|
-
tooltip?: Props$
|
|
9345
|
-
tooltipPlacement?: Props$
|
|
9468
|
+
tooltip?: Props$1P["tooltip"];
|
|
9469
|
+
tooltipPlacement?: Props$1P["placement"];
|
|
9346
9470
|
} & Omit<_radix_ui_react_checkbox.CheckboxProps & react.RefAttributes<HTMLButtonElement>, "id">, "checked" | "onCheckedChange"> & {
|
|
9347
9471
|
checked?: _radix_ui_react_checkbox.CheckedState;
|
|
9348
9472
|
onCheckedChange?: (checked: _radix_ui_react_checkbox.CheckedState) => void;
|
|
@@ -9359,7 +9483,7 @@ declare const withForm: <TFormData, TOnMount extends _tanstack_react_form.FormVa
|
|
|
9359
9483
|
} & class_variance_authority_types.ClassProp) | undefined) => string>, "variant"> & {
|
|
9360
9484
|
ref?: react.Ref<react.ElementRef<"button">>;
|
|
9361
9485
|
}, "id" | "name" | "checked" | "onCheckedChange">) => react_jsx_runtime.JSX.Element;
|
|
9362
|
-
readonly OtpInputField: ({ label, required, requiredMark, help, tooltip, className, "aria-describedby": ariaDescribedBy, maxLength, ...otpProps }: FieldItemProps & Omit<RootProps$
|
|
9486
|
+
readonly OtpInputField: ({ label, required, requiredMark, help, tooltip, className, "aria-describedby": ariaDescribedBy, maxLength, ...otpProps }: FieldItemProps & Omit<RootProps$7, "id" | "name" | "aria-describedby" | "aria-invalid" | "aria-required" | "children" | "onChange" | "value">) => react_jsx_runtime.JSX.Element;
|
|
9363
9487
|
}, {
|
|
9364
9488
|
readonly FormBody: ({ children, className, ...formProps }: {
|
|
9365
9489
|
children: react.ReactNode;
|
|
@@ -10641,6 +10765,7 @@ declare const withForm: <TFormData, TOnMount extends _tanstack_react_form.FormVa
|
|
|
10641
10765
|
disabled?: boolean | undefined | undefined;
|
|
10642
10766
|
value?: string | null | undefined;
|
|
10643
10767
|
onValueChange?: (((value: string) => void) & ((value: string) => void)) | undefined;
|
|
10768
|
+
wrap?: string | undefined | undefined;
|
|
10644
10769
|
required?: boolean | undefined | undefined;
|
|
10645
10770
|
autoComplete?: string | undefined | undefined;
|
|
10646
10771
|
maxLength?: number | undefined | undefined;
|
|
@@ -10649,7 +10774,6 @@ declare const withForm: <TFormData, TOnMount extends _tanstack_react_form.FormVa
|
|
|
10649
10774
|
readOnly?: boolean | undefined | undefined;
|
|
10650
10775
|
cols?: number | undefined | undefined;
|
|
10651
10776
|
dirName?: string | undefined | undefined;
|
|
10652
|
-
wrap?: string | undefined | undefined;
|
|
10653
10777
|
maxRows?: number | "unlimited" | undefined;
|
|
10654
10778
|
minRows?: number | undefined;
|
|
10655
10779
|
onHeightChange?: ((height: number, meta: react_textarea_autosize.TextareaHeightChangeMeta) => void) | undefined;
|
|
@@ -10690,8 +10814,8 @@ declare const withForm: <TFormData, TOnMount extends _tanstack_react_form.FormVa
|
|
|
10690
10814
|
description?: react.ReactNode;
|
|
10691
10815
|
variant?: class_variance_authority.VariantProps<typeof fieldBoxVariants>["variant"];
|
|
10692
10816
|
position?: "start" | "end";
|
|
10693
|
-
tooltip?: Props$
|
|
10694
|
-
tooltipPlacement?: Props$
|
|
10817
|
+
tooltip?: Props$1P["tooltip"];
|
|
10818
|
+
tooltipPlacement?: Props$1P["placement"];
|
|
10695
10819
|
} & Omit<_radix_ui_react_checkbox.CheckboxProps & react.RefAttributes<HTMLButtonElement>, "id">, "checked" | "onCheckedChange"> & {
|
|
10696
10820
|
checked?: _radix_ui_react_checkbox.CheckedState;
|
|
10697
10821
|
onCheckedChange?: (checked: _radix_ui_react_checkbox.CheckedState) => void;
|
|
@@ -10708,7 +10832,7 @@ declare const withForm: <TFormData, TOnMount extends _tanstack_react_form.FormVa
|
|
|
10708
10832
|
} & class_variance_authority_types.ClassProp) | undefined) => string>, "variant"> & {
|
|
10709
10833
|
ref?: react.Ref<react.ElementRef<"button">>;
|
|
10710
10834
|
}, "id" | "name" | "checked" | "onCheckedChange">) => react_jsx_runtime.JSX.Element;
|
|
10711
|
-
readonly OtpInputField: ({ label, required, requiredMark, help, tooltip, className, "aria-describedby": ariaDescribedBy, maxLength, ...otpProps }: FieldItemProps & Omit<RootProps$
|
|
10835
|
+
readonly OtpInputField: ({ label, required, requiredMark, help, tooltip, className, "aria-describedby": ariaDescribedBy, maxLength, ...otpProps }: FieldItemProps & Omit<RootProps$7, "id" | "name" | "aria-describedby" | "aria-invalid" | "aria-required" | "children" | "onChange" | "value">) => react_jsx_runtime.JSX.Element;
|
|
10712
10836
|
}, {
|
|
10713
10837
|
readonly FormBody: ({ children, className, ...formProps }: {
|
|
10714
10838
|
children: react.ReactNode;
|
|
@@ -10785,4 +10909,41 @@ type Props = {
|
|
|
10785
10909
|
};
|
|
10786
10910
|
declare const ZoomableSvg: ({ html, copyText, className }: Props) => react_jsx_runtime.JSX.Element;
|
|
10787
10911
|
|
|
10788
|
-
|
|
10912
|
+
type ColorSlot = keyof Omit<NonNullable<Brand['theme']['colors']>, 'sidebar' | 'chart'>;
|
|
10913
|
+
type SidebarSlot = keyof NonNullable<NonNullable<Brand['theme']['colors']>['sidebar']>;
|
|
10914
|
+
type RadiusSize = keyof NonNullable<Brand['theme']['radii']>;
|
|
10915
|
+
declare const DEFAULT_FALLBACK_FONT = "'Inter', system-ui, sans-serif";
|
|
10916
|
+
declare const DEFAULT_FONT_OPTIONS: {
|
|
10917
|
+
value: string;
|
|
10918
|
+
label: string;
|
|
10919
|
+
}[];
|
|
10920
|
+
type BrandEditorProps = {
|
|
10921
|
+
value: Brand;
|
|
10922
|
+
onChange: (next: Brand) => void;
|
|
10923
|
+
/** Palette being edited. Controlled. Default 'light'. */
|
|
10924
|
+
colorScheme?: 'light' | 'dark';
|
|
10925
|
+
/** If provided, the editor shows a light/dark toggle that calls this. If omitted, no toggle. */
|
|
10926
|
+
onColorSchemeChange?: (scheme: 'light' | 'dark') => void;
|
|
10927
|
+
/** Font choices for the typography Select. Defaults to DEFAULT_FONT_OPTIONS. */
|
|
10928
|
+
fontOptions?: {
|
|
10929
|
+
value: string;
|
|
10930
|
+
label: string;
|
|
10931
|
+
}[];
|
|
10932
|
+
};
|
|
10933
|
+
/**
|
|
10934
|
+
* Controlled brand-editing block — colors (light/dark), sidebar colors, WCAG contrast readout,
|
|
10935
|
+
* corner radius, typography, and logo. Reads/writes a `Brand` (`@keboola/brand-registry`) via
|
|
10936
|
+
* `value` / `onChange`; owns no state of its own, so the caller decides where the brand and the
|
|
10937
|
+
* active color scheme live (Kai build-mode preview, theme-generator, …).
|
|
10938
|
+
*/
|
|
10939
|
+
declare const BrandEditor: ({ value, onChange, colorScheme, onColorSchemeChange, fontOptions, }: BrandEditorProps) => react_jsx_runtime.JSX.Element;
|
|
10940
|
+
|
|
10941
|
+
declare const hexToChannels: (hex: string) => string;
|
|
10942
|
+
declare const channelsToHex: (channels: string) => string;
|
|
10943
|
+
|
|
10944
|
+
/** WCAG contrast ratio (1–21) between two `"R G B"` colours. */
|
|
10945
|
+
declare const contrastRatio: (fg: string, bg: string) => number;
|
|
10946
|
+
/** WCAG level for normal-size text at a given ratio. */
|
|
10947
|
+
declare const wcagLevel: (ratio: number) => "AAA" | "AA" | "fail";
|
|
10948
|
+
|
|
10949
|
+
export { Alert, AlertModal, AnswerSummary, type AnswerItem as AnswerSummaryItem, type Props$J as AnswerSummaryProps, type Variant$5 as AnswerSummaryVariant, AppShell, ArgoDesignContext, AutoSaveTextarea, Avatar, Badge, BrandEditor, type BrandEditorProps, type BrandId, BrandLogo, Breadcrumb, Button, ButtonGroup, ButtonInline, Calendar, type CalendarProps, Card, ChangeClassification, ChartPanel, type RootProps as ChartPanelProps, Checkbox, Clipboard, ClipboardButton, ClipboardInline, Collapse, Collapsible, CollapsiblePanel, CollapsibleStepHeader, ColorInput, ColorModeSwitch, type ColorScheme, type ColorSlot, Combobox, Command, CommandGroup, CommandInput, CommandItem, CommandList, ConflictStatusIndicator, CopyField, DEFAULT_COLOR_SCHEME, DEFAULT_FALLBACK_FONT, DEFAULT_FONT_OPTIONS, DEFAULT_BRAND_ID as DEFAULT_KEBOOLA_BRAND_ID, DashboardHero, type RootProps$2 as DashboardHeroProps, DateInput, DatePicker, type DateRange, DateRangeInput, DateRangePicker, type DateRangePreset, type DiffInformation, type DiffRow, DiffType, DiffView, DotsLoader, DropdownMenu, EmptyConfigurationActionCard, EmptySearchContent, EmptyState, type RootProps$6 as EmptyStateProps, type Variant$1 as EmptyStateVariant, ErrorState, type RootProps$5 as ErrorStateProps, type Variant as ErrorStateVariant, FileUpload, FormGroup, FullScreenModal, FullScreenModalBody, FullScreenModalHeader, GoogleButton, HelpBlock, HoverCard, InlineStepDetail, type Props$H as InlineStepDetailProps, InlineStepLabel, type Props$G as InlineStepLabelProps, type Variant$3 as InlineStepLabelVariant, InputGroup, Kbd, Label, type LineInformation, Link, Markdown, MarkedText, MergeConflict, MessageBubble, Modal, MultiActionButtonGroup, MultiCombobox, Navbar, NumberInput, OtpInput, type RootProps$7 as OtpInputProps, PageHeader, PageLayout, PageToolbar, Pagination, PaneHeader, PanelWithDetails, PasswordInput, PlanApproval, type PlanApprovalProps, type PlanApprovalStatus, PlanRewritingIndicator, type PlanRewritingIndicatorProps, Popconfirm, Popover, Progress, type PromptCommand, PromptInput, type Props$1p as Props, Question, type QuestionAnswers, QuestionBlock, type Props$z as QuestionBlockProps, type QuestionOption, type Props$A as QuestionProps, type QuestionStep, RadioGroup, type RadiusSize, ResizableHandle, ResizablePanelGroup, type ResolvedColorScheme, ScrollArea, ScrollBar, Search, SearchForm, SearchInput, SearchInputWithNavigation, Select, type SelectItem, type SelectItemGroup, Separator, type ServerFieldError, Sheet, type SideInformation, Sidebar, type SidebarMode, SidebarProvider, type SidebarSide, type SidebarSlot, Skeleton, SkeletonList, Slider, SplitButton, SpotlightBackdrop, type SpotlightTarget, StatCard, StatCardGrid, type Props$2 as StatCardGridProps, type RootProps$1 as StatCardProps, type TrendDirection as StatCardTrendDirection, type TrendProps as StatCardTrendProps, type StepStatus, Stepper, type StepperOrientation, SuggestedPrompt, Switch, Table, Tabs, TabsContent, Tagger, type TargetRect, TextInput, Textarea, type Theme, ThemeProvider, ThinkingIndicator, type ThumbTooltipFn, TimeInput, TimePicker, Timeline, type ToastOptions, Toaster, Toggle, ToggleGroup, type Tokens, ToolCallApproval, type ToolCallApprovalProps, type ToolCallApprovalStatus, ToolCallChip, type ToolCallChipProps, type ToolCallState, Tooltip, type Props$1P as TooltipProps, TooltipProvider, type Trigger, Truncated, UsageStats, UsageStatsRing, type UseAutosizeInputOptions, type UseAutosizeInputReturn, type ValidityState, type WordInformation, ZoomableSvg, argoVariants, channelsToHex, cn, computeDiffRows, computeLineInformation, contrastRatio, copyToClipboard, hexToChannels, isMac, kbdVariants, keys, mergeRefs, setServerFieldErrors, toast, useAppForm, useArgoDesign, useAutosizeInput, useMergeDiff, useNotification, useScrollbarPosition, useSidebar, useTargetRect, useTheme, wcagLevel, withForm };
|