@keboola/design 6.0.0 → 6.2.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/COMPONENT-API.md +4 -2
- package/dist/editors.cjs +19 -14
- package/dist/editors.cjs.map +1 -1
- package/dist/editors.js +19 -14
- package/dist/editors.js.map +1 -1
- package/dist/index.cjs +1152 -53
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +539 -290
- package/dist/index.d.ts +539 -290
- package/dist/index.js +1141 -54
- package/dist/index.js.map +1 -1
- package/dist/markdown-editor.cjs +29 -24
- package/dist/markdown-editor.cjs.map +1 -1
- package/dist/markdown-editor.js +29 -24
- package/dist/markdown-editor.js.map +1 -1
- package/dist/mermaid.cjs +19 -14
- package/dist/mermaid.cjs.map +1 -1
- package/dist/mermaid.js +19 -14
- package/dist/mermaid.js.map +1 -1
- package/dist/rjsf.cjs +35 -28
- package/dist/rjsf.cjs.map +1 -1
- package/dist/rjsf.js +35 -28
- 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 -5
- package/src/styles.css +24 -5
package/dist/index.d.cts
CHANGED
|
@@ -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';
|
|
@@ -74,7 +74,7 @@ declare const argoVariants: (props?: ({
|
|
|
74
74
|
* for height (including `icon-*` sizes when rendering icon-only). Icons are
|
|
75
75
|
* composed as children — `<Button><Trash2 className="tw-size-4" /> Delete</Button>`.
|
|
76
76
|
*/
|
|
77
|
-
type Props$
|
|
77
|
+
type Props$1V = {
|
|
78
78
|
/** Replaces the leading content with a spinner and disables the button visually. The caller still controls `disabled`. */
|
|
79
79
|
isLoading?: boolean;
|
|
80
80
|
/** Render as a Radix `Slot` so the parent JSX (e.g. a `react-router` `<Link>`) becomes the button element. */
|
|
@@ -93,7 +93,7 @@ type Props$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$1V & {
|
|
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$1U = 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$1U & {
|
|
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$1T = {
|
|
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$1T & {
|
|
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$1S = {
|
|
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$1S & {
|
|
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$1R = {
|
|
150
150
|
className?: string;
|
|
151
151
|
} & PropsWithChildren;
|
|
152
152
|
declare const MultiActionButtonGroup: {
|
|
153
|
-
({ children, className }: Props$
|
|
153
|
+
({ children, className }: Props$1R): 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$1Q = {
|
|
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$1Q & {
|
|
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$1P = {
|
|
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$1P) => 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$1O = {
|
|
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$1O): react_jsx_runtime.JSX.Element;
|
|
240
240
|
Root: ({ children, delayDuration, ...rest }: _radix_ui_react_tooltip.TooltipProps) => react_jsx_runtime.JSX.Element;
|
|
241
241
|
Content: ({ className, variant, keepOpenOnPointerDownOutside, children, onPointerDownOutside, sideOffset, collisionPadding, hideWhenDetached, placement, ...rest }: {
|
|
242
242
|
keepOpenOnPointerDownOutside?: boolean;
|
|
@@ -251,33 +251,136 @@ 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$1N = {
|
|
255
|
+
tooltip?: Props$1O['tooltip'];
|
|
256
|
+
tooltipPlacement?: Props$1O['placement'];
|
|
257
|
+
tooltipVariant?: Props$1O['variant'];
|
|
258
|
+
asChild?: Props$1O['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$1N & {
|
|
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$1M = 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$1M) => 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$1L = {
|
|
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$1L) => react_jsx_runtime.JSX.Element;
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* Compound component for readonly value/command boxes with inline copy.
|
|
281
|
+
*
|
|
282
|
+
* `CopyField.Root` owns the `value` and copy/mask state; `CopyField.Box` is the clickable
|
|
283
|
+
* copy target. Clicking anywhere in the box copies the real `value` to the
|
|
284
|
+
* clipboard (guarded by text-selection so drag-select does NOT trigger a copy),
|
|
285
|
+
* with a Copy → Check feedback for ~1.5s.
|
|
286
|
+
*
|
|
287
|
+
* Shapes:
|
|
288
|
+
* - **Single-line value row** — default proportional font, value truncates.
|
|
289
|
+
* - **Monospace command box** — `mono` on `CopyField.Root`.
|
|
290
|
+
* - **Multi-line** — `maxLines > 1`; content wraps and scrolls between
|
|
291
|
+
* `minLines` and `maxLines` tall.
|
|
292
|
+
*
|
|
293
|
+
* Masking: wrap sensitive content in `CopyField.Hidden`. Revealable hidden content is
|
|
294
|
+
* toggled by `CopyField.Reveal` (an eye button); copy still copies the real value.
|
|
295
|
+
*
|
|
296
|
+
* @example Monospace command
|
|
297
|
+
* ```tsx
|
|
298
|
+
* <CopyField.Root value={installCommand} mono>
|
|
299
|
+
* <CopyField.Label>Install the Keboola CLI</CopyField.Label>
|
|
300
|
+
* <CopyField.Box>
|
|
301
|
+
* <CopyField.Children>{installCommand}</CopyField.Children>
|
|
302
|
+
* <CopyField.Button />
|
|
303
|
+
* </CopyField.Box>
|
|
304
|
+
* </CopyField.Root>
|
|
305
|
+
* ```
|
|
306
|
+
*
|
|
307
|
+
* @example Masked token with reveal + prefix/suffix
|
|
308
|
+
* ```tsx
|
|
309
|
+
* <CopyField.Root value={dataAppUrl} hiddenByDefault>
|
|
310
|
+
* <CopyField.Label leading={<InfoButton />} trailing={<Switch />}>Data app URL</CopyField.Label>
|
|
311
|
+
* <CopyField.Box>
|
|
312
|
+
* <CopyField.Prefix>https://</CopyField.Prefix>
|
|
313
|
+
* <CopyField.Children><CopyField.Hidden>{slug}</CopyField.Hidden></CopyField.Children>
|
|
314
|
+
* <CopyField.Suffix>.keboola.com</CopyField.Suffix>
|
|
315
|
+
* <CopyField.Reveal />
|
|
316
|
+
* <CopyField.Button />
|
|
317
|
+
* </CopyField.Box>
|
|
318
|
+
* <CopyField.Footer>Click to copy</CopyField.Footer>
|
|
319
|
+
* </CopyField.Root>
|
|
320
|
+
* ```
|
|
321
|
+
*/
|
|
322
|
+
declare const CopyField: {
|
|
323
|
+
/** Container. Owns the copied `value`, mask state, and copy context. */
|
|
324
|
+
Root: ({ value, mono, onCopy, hiddenByDefault, minLines, maxLines, className, children, }: {
|
|
325
|
+
value: string;
|
|
326
|
+
mono?: boolean;
|
|
327
|
+
onCopy?: () => void;
|
|
328
|
+
hiddenByDefault?: boolean;
|
|
329
|
+
minLines?: number;
|
|
330
|
+
maxLines?: number;
|
|
331
|
+
className?: string;
|
|
332
|
+
children: react.ReactNode;
|
|
333
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
334
|
+
/** Visible label above the box, with optional `leading`/`trailing` slots. */
|
|
335
|
+
Label: ({ children, leading, trailing, className }: {
|
|
336
|
+
children: react.ReactNode;
|
|
337
|
+
leading?: react.ReactNode;
|
|
338
|
+
trailing?: react.ReactNode;
|
|
339
|
+
className?: string;
|
|
340
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
341
|
+
/** The clickable copy target row. */
|
|
342
|
+
Box: ({ className, children }: {
|
|
343
|
+
className?: string;
|
|
344
|
+
children: react.ReactNode;
|
|
345
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
346
|
+
/** Muted, non-selectable prefix addon (not copied). */
|
|
347
|
+
Prefix: ({ children, className }: {
|
|
348
|
+
children: react.ReactNode;
|
|
349
|
+
className?: string;
|
|
350
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
351
|
+
/** Displayed value (truncates single-line, wraps multi-line). */
|
|
352
|
+
Children: ({ children, className }: {
|
|
353
|
+
children: react.ReactNode;
|
|
354
|
+
className?: string;
|
|
355
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
356
|
+
/** Muted, non-selectable suffix addon (not copied). */
|
|
357
|
+
Suffix: ({ children, className }: {
|
|
358
|
+
children: react.ReactNode;
|
|
359
|
+
className?: string;
|
|
360
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
361
|
+
/** Masks its children with dots; copy still copies the real value. */
|
|
362
|
+
Hidden: ({ children, revealable, className }: {
|
|
363
|
+
children: react.ReactNode;
|
|
364
|
+
revealable?: boolean;
|
|
365
|
+
className?: string;
|
|
366
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
367
|
+
/** Eye toggle that reveals/masks revealable `CopyField.Hidden` content. */
|
|
368
|
+
Reveal: ({ className }: {
|
|
369
|
+
className?: string;
|
|
370
|
+
}) => react_jsx_runtime.JSX.Element | null;
|
|
371
|
+
/** Copy affordance icon — shows Copy/Check with feedback. */
|
|
372
|
+
Button: ({ className }: {
|
|
373
|
+
className?: string;
|
|
374
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
375
|
+
/** Small helper text below the box. */
|
|
376
|
+
Footer: ({ children, className }: {
|
|
377
|
+
children: react.ReactNode;
|
|
378
|
+
className?: string;
|
|
379
|
+
}) => react_jsx_runtime.JSX.Element | null;
|
|
380
|
+
};
|
|
278
381
|
|
|
279
|
-
type Props$
|
|
280
|
-
declare const Link: ({ ref, children, target, rel, onClick, className, ...rest }: Props$
|
|
382
|
+
type Props$1K = ComponentProps<'a'>;
|
|
383
|
+
declare const Link: ({ ref, children, target, rel, onClick, className, ...rest }: Props$1K & {
|
|
281
384
|
ref?: Ref<ElementRef<"a">>;
|
|
282
385
|
}) => react_jsx_runtime.JSX.Element;
|
|
283
386
|
|
|
@@ -289,13 +392,13 @@ type AlertModalVariant = 'info' | 'warning' | 'danger' | 'success';
|
|
|
289
392
|
|
|
290
393
|
type ConfirmHandler = (event: MouseEvent$1<HTMLButtonElement>) => void | Promise<unknown>;
|
|
291
394
|
type CancelHandler = (event: MouseEvent$1<HTMLButtonElement>) => void;
|
|
292
|
-
type Props$
|
|
395
|
+
type Props$1J = {
|
|
293
396
|
onConfirm?: ConfirmHandler;
|
|
294
397
|
onCancel?: CancelHandler;
|
|
295
398
|
skipAsyncWait?: boolean;
|
|
296
399
|
} & ComponentProps<typeof Root$1>;
|
|
297
400
|
declare const AlertModal: {
|
|
298
|
-
({ children, onConfirm, onCancel, skipAsyncWait, open, defaultOpen, onOpenChange, ...rest }: Props$
|
|
401
|
+
({ children, onConfirm, onCancel, skipAsyncWait, open, defaultOpen, onOpenChange, ...rest }: Props$1J): react_jsx_runtime.JSX.Element;
|
|
299
402
|
Trigger: ({ ref, onClick, onKeyDown, ...props }: _radix_ui_react_alert_dialog.AlertDialogTriggerProps & react.RefAttributes<HTMLButtonElement>) => react_jsx_runtime.JSX.Element;
|
|
300
403
|
Content: ({ variant, icon, title, cancelLabel, confirmLabel: actionLabel, container, className, children, onEscapeKeyDown, ...props }: {
|
|
301
404
|
variant?: AlertModalVariant;
|
|
@@ -307,7 +410,7 @@ declare const AlertModal: {
|
|
|
307
410
|
} & Omit<_radix_ui_react_alert_dialog.AlertDialogContentProps & react.RefAttributes<HTMLDivElement>, "title">) => react_jsx_runtime.JSX.Element;
|
|
308
411
|
};
|
|
309
412
|
|
|
310
|
-
type Props$
|
|
413
|
+
type Props$1I = ComponentProps<typeof Root$2>;
|
|
311
414
|
/**
|
|
312
415
|
* Blocking dialog for confirmations, forms, and detail views. Built on Radix Dialog.
|
|
313
416
|
*
|
|
@@ -323,7 +426,7 @@ type Props$1H = ComponentProps<typeof Root$2>;
|
|
|
323
426
|
* @see RECIPES.md#confirm-dialog — for destructive-confirm dialogs
|
|
324
427
|
*/
|
|
325
428
|
declare const Modal: {
|
|
326
|
-
(props: Props$
|
|
429
|
+
(props: Props$1I): react_jsx_runtime.JSX.Element;
|
|
327
430
|
Close: react.ForwardRefExoticComponent<_radix_ui_react_dialog.DialogCloseProps & react.RefAttributes<HTMLButtonElement>>;
|
|
328
431
|
Trigger: react.ForwardRefExoticComponent<_radix_ui_react_dialog.DialogTriggerProps & react.RefAttributes<HTMLButtonElement>>;
|
|
329
432
|
Content: ({ size, className, children, onEscapeKeyDown, ...props }: _radix_ui_react_dialog.DialogContentProps & react.RefAttributes<HTMLDivElement> & {
|
|
@@ -376,7 +479,7 @@ declare const FullScreenModal: (({ children, className, lockBodyScroll, onEscape
|
|
|
376
479
|
}) => react_jsx_runtime.JSX.Element;
|
|
377
480
|
};
|
|
378
481
|
|
|
379
|
-
type Props$
|
|
482
|
+
type Props$1H = PropsWithChildren<Omit<HTMLAttributes<HTMLDivElement>, 'title'> & {
|
|
380
483
|
title: ReactNode;
|
|
381
484
|
titleClassName?: string;
|
|
382
485
|
titleWrapperClassName?: string;
|
|
@@ -385,16 +488,16 @@ type Props$1G = PropsWithChildren<Omit<HTMLAttributes<HTMLDivElement>, 'title'>
|
|
|
385
488
|
onClose?: () => void;
|
|
386
489
|
showPreviousTitle?: boolean;
|
|
387
490
|
}>;
|
|
388
|
-
declare const FullScreenModalHeader: ({ title, titleClassName, titleWrapperClassName, defaultTitleStyles, isTitleWithIcon, children, onClose, className, showPreviousTitle, ...props }: Props$
|
|
491
|
+
declare const FullScreenModalHeader: ({ title, titleClassName, titleWrapperClassName, defaultTitleStyles, isTitleWithIcon, children, onClose, className, showPreviousTitle, ...props }: Props$1H) => react_jsx_runtime.JSX.Element;
|
|
389
492
|
|
|
390
|
-
type Props$
|
|
391
|
-
declare const FullScreenModalBody: ({ ref, className, children, ...props }: Props$
|
|
493
|
+
type Props$1G = HTMLAttributes<HTMLDivElement>;
|
|
494
|
+
declare const FullScreenModalBody: ({ ref, className, children, ...props }: Props$1G & {
|
|
392
495
|
ref?: Ref<HTMLDivElement>;
|
|
393
496
|
}) => react_jsx_runtime.JSX.Element;
|
|
394
497
|
|
|
395
|
-
type Props$
|
|
498
|
+
type Props$1F = ComponentProps<typeof Root$2>;
|
|
396
499
|
declare const Sheet: {
|
|
397
|
-
(props: Props$
|
|
500
|
+
(props: Props$1F): react_jsx_runtime.JSX.Element;
|
|
398
501
|
Close: react.ForwardRefExoticComponent<_radix_ui_react_dialog.DialogCloseProps & react.RefAttributes<HTMLButtonElement>>;
|
|
399
502
|
Trigger: react.ForwardRefExoticComponent<_radix_ui_react_dialog.DialogTriggerProps & react.RefAttributes<HTMLButtonElement>>;
|
|
400
503
|
Content: ({ className, children, side, disableTransition, hideOverlay, keepOpenOnPointerDownOutside, onPointerDownOutside, onInteractOutside, container, ...props }: _radix_ui_react_dialog.DialogContentProps & react.RefAttributes<HTMLDivElement> & {
|
|
@@ -417,9 +520,9 @@ declare const Sheet: {
|
|
|
417
520
|
Body: ({ className, ...rest }: react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => react_jsx_runtime.JSX.Element;
|
|
418
521
|
};
|
|
419
522
|
|
|
420
|
-
type Props$
|
|
523
|
+
type Props$1E = ComponentProps<typeof Root$3>;
|
|
421
524
|
declare const Popover: {
|
|
422
|
-
(props: Props$
|
|
525
|
+
(props: Props$1E): react_jsx_runtime.JSX.Element;
|
|
423
526
|
/**
|
|
424
527
|
* Main Layout
|
|
425
528
|
*/
|
|
@@ -441,12 +544,12 @@ type PopconfirmContextType = {
|
|
|
441
544
|
isLoading: boolean;
|
|
442
545
|
};
|
|
443
546
|
|
|
444
|
-
type Props$
|
|
547
|
+
type Props$1D = {
|
|
445
548
|
children: ReactNode;
|
|
446
549
|
skipAsyncWait?: boolean;
|
|
447
550
|
} & ComponentProps<typeof Popover> & Omit<Partial<PopconfirmContextType>, 'isLoading'>;
|
|
448
551
|
declare const Popconfirm: {
|
|
449
|
-
({ children, onConfirm, onCancel, variant, enabled, onOpenChange, open, skipAsyncWait, ...rest }: Props$
|
|
552
|
+
({ children, onConfirm, onCancel, variant, enabled, onOpenChange, open, skipAsyncWait, ...rest }: Props$1D): react_jsx_runtime.JSX.Element;
|
|
450
553
|
Confirm: ({ ref, onClick, children, asChild, className, ...props }: (({
|
|
451
554
|
asChild: true;
|
|
452
555
|
} & react.ClassAttributes<HTMLButtonElement> & react.ButtonHTMLAttributes<HTMLButtonElement>) | ({
|
|
@@ -799,18 +902,18 @@ declare const Popconfirm: {
|
|
|
799
902
|
Trigger: ({ onClick, ...props }: _radix_ui_react_popover.PopoverTriggerProps & react.RefAttributes<HTMLButtonElement>) => react_jsx_runtime.JSX.Element;
|
|
800
903
|
};
|
|
801
904
|
|
|
802
|
-
type Props$
|
|
905
|
+
type Props$1C = ComponentProps<typeof Root$4>;
|
|
803
906
|
declare const HoverCard: {
|
|
804
|
-
({ openDelay, closeDelay, ...rest }: Props$
|
|
907
|
+
({ openDelay, closeDelay, ...rest }: Props$1C): react_jsx_runtime.JSX.Element;
|
|
805
908
|
Content: ({ ref, className, align, sideOffset, children, ...props }: Omit<_radix_ui_react_hover_card.HoverCardContentProps & react.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
806
909
|
ref?: react.Ref<react.ElementRef<react.ForwardRefExoticComponent<_radix_ui_react_hover_card.HoverCardContentProps & react.RefAttributes<HTMLDivElement>>>>;
|
|
807
910
|
}) => react_jsx_runtime.JSX.Element;
|
|
808
911
|
Trigger: react.ForwardRefExoticComponent<_radix_ui_react_hover_card.HoverCardTriggerProps & react.RefAttributes<HTMLAnchorElement>>;
|
|
809
912
|
};
|
|
810
913
|
|
|
811
|
-
type Props$
|
|
914
|
+
type Props$1B = ComponentProps<typeof Root$5>;
|
|
812
915
|
declare const DropdownMenu: {
|
|
813
|
-
({ modal, ...props }: Props$
|
|
916
|
+
({ modal, ...props }: Props$1B): react_jsx_runtime.JSX.Element;
|
|
814
917
|
/**
|
|
815
918
|
* Main Layout
|
|
816
919
|
*/
|
|
@@ -866,14 +969,14 @@ declare const DropdownMenu: {
|
|
|
866
969
|
}) => react_jsx_runtime.JSX.Element;
|
|
867
970
|
};
|
|
868
971
|
|
|
869
|
-
type Props$
|
|
972
|
+
type Props$1A = {
|
|
870
973
|
variant?: 'checkbox' | 'radio' | 'default';
|
|
871
974
|
};
|
|
872
|
-
declare const CheckIndicator: ({ variant }: Props$
|
|
975
|
+
declare const CheckIndicator: ({ variant }: Props$1A) => react_jsx_runtime.JSX.Element | null;
|
|
873
976
|
|
|
874
|
-
type Props$
|
|
977
|
+
type Props$1z = ComponentProps<typeof Command$1>;
|
|
875
978
|
declare const Command: {
|
|
876
|
-
({ className, ...rest }: Props$
|
|
979
|
+
({ className, ...rest }: Props$1z): react_jsx_runtime.JSX.Element;
|
|
877
980
|
Content: ({ className, ...rest }: react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => react_jsx_runtime.JSX.Element;
|
|
878
981
|
Separator: ({ className, ...props }: Pick<Pick<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof react.HTMLAttributes<HTMLDivElement>> & {
|
|
879
982
|
ref?: React.Ref<HTMLDivElement>;
|
|
@@ -1269,25 +1372,25 @@ declare const Command: {
|
|
|
1269
1372
|
declare const addonVariants$1: (props?: ({
|
|
1270
1373
|
align?: "inline-start" | "inline-end" | "block-start" | "block-end" | null | undefined;
|
|
1271
1374
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1272
|
-
type Props$
|
|
1273
|
-
declare const InputGroupAddon: ({ children, align, className, ...props }: Props$
|
|
1375
|
+
type Props$1y = ComponentProps<'div'> & VariantProps<typeof addonVariants$1>;
|
|
1376
|
+
declare const InputGroupAddon: ({ children, align, className, ...props }: Props$1y) => react_jsx_runtime.JSX.Element;
|
|
1274
1377
|
|
|
1275
1378
|
type ButtonProps = ComponentProps<typeof Button>;
|
|
1276
|
-
type Props$
|
|
1277
|
-
declare const InputGroupButton: ({ ref, className, tabIndex, ...props }: Props$
|
|
1379
|
+
type Props$1x = Omit<ButtonProps, 'size' | 'block' | 'variant'>;
|
|
1380
|
+
declare const InputGroupButton: ({ ref, className, tabIndex, ...props }: Props$1x & {
|
|
1278
1381
|
ref?: Ref<ElementRef<"button">>;
|
|
1279
1382
|
}) => react_jsx_runtime.JSX.Element;
|
|
1280
1383
|
|
|
1281
|
-
type Props$
|
|
1282
|
-
declare const InputGroupInput: ({ ref, className, ...inputProps }: Props$
|
|
1384
|
+
type Props$1w = ComponentProps<'input'>;
|
|
1385
|
+
declare const InputGroupInput: ({ ref, className, ...inputProps }: Props$1w & {
|
|
1283
1386
|
ref?: Ref<ElementRef<"input">>;
|
|
1284
1387
|
}) => react_jsx_runtime.JSX.Element;
|
|
1285
1388
|
|
|
1286
|
-
type Props$
|
|
1287
|
-
declare const InputGroupText: ({ className, ...props }: Props$
|
|
1389
|
+
type Props$1v = ComponentProps<'span'>;
|
|
1390
|
+
declare const InputGroupText: ({ className, ...props }: Props$1v) => react_jsx_runtime.JSX.Element;
|
|
1288
1391
|
|
|
1289
1392
|
type TextareaNativeProps$1 = Omit<ComponentProps<typeof react_textarea_autosize__default>, 'value' | 'defaultValue' | 'rows' | 'maxRows'>;
|
|
1290
|
-
type Props$
|
|
1393
|
+
type Props$1u = TextareaNativeProps$1 & {
|
|
1291
1394
|
value?: string | null;
|
|
1292
1395
|
defaultValue?: string | null;
|
|
1293
1396
|
onValueChange?: (value: string) => void;
|
|
@@ -1295,7 +1398,7 @@ type Props$1t = TextareaNativeProps$1 & {
|
|
|
1295
1398
|
maxRows?: number | 'unlimited';
|
|
1296
1399
|
disableResize?: boolean;
|
|
1297
1400
|
};
|
|
1298
|
-
declare const InputGroupTextArea: ({ ref, className, onChange, onValueChange, value, defaultValue, onBlur, onValueBlur, disableResize, minRows, maxRows, ...props }: Props$
|
|
1401
|
+
declare const InputGroupTextArea: ({ ref, className, onChange, onValueChange, value, defaultValue, onBlur, onValueBlur, disableResize, minRows, maxRows, ...props }: Props$1u & {
|
|
1299
1402
|
ref?: Ref<ElementRef<"textarea">>;
|
|
1300
1403
|
}) => react_jsx_runtime.JSX.Element;
|
|
1301
1404
|
|
|
@@ -1305,10 +1408,10 @@ declare const inputGroupVariants: (props?: ({
|
|
|
1305
1408
|
sizing?: "medium" | "small" | "default" | null | undefined;
|
|
1306
1409
|
state?: "warning" | "default" | "error" | null | undefined;
|
|
1307
1410
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1308
|
-
type Props$
|
|
1411
|
+
type Props$1t = ComponentProps<'div'> & Omit<VariantProps<typeof inputGroupVariants>, 'variant'> & {
|
|
1309
1412
|
variant?: Exclude<VariantProps<typeof inputGroupVariants>['variant'], 'argo'>;
|
|
1310
1413
|
};
|
|
1311
|
-
declare const InputGroupRoot: ({ ref, children, state, variant, sizing, focusVariant, className, ...props }: Props$
|
|
1414
|
+
declare const InputGroupRoot: ({ ref, children, state, variant, sizing, focusVariant, className, ...props }: Props$1t & {
|
|
1312
1415
|
ref?: Ref<ElementRef<"div">>;
|
|
1313
1416
|
}) => react_jsx_runtime.JSX.Element;
|
|
1314
1417
|
declare const InputGroup: typeof InputGroupRoot & {
|
|
@@ -1335,7 +1438,7 @@ type OwnProps$1 = {
|
|
|
1335
1438
|
* Props for `Input`. Combines `InputGroup` chrome (variant / sizing / state / focusVariant) with
|
|
1336
1439
|
* input-specific slots (`prefix`, `leftSuffix`, `rightSuffix`, `allowClear`).
|
|
1337
1440
|
*/
|
|
1338
|
-
type Props$
|
|
1441
|
+
type Props$1s = InputGroupProps$7 & OwnProps$1 & Omit<ComponentProps<'input'>, 'prefix' | 'value' | 'defaultValue'>;
|
|
1339
1442
|
/**
|
|
1340
1443
|
* Low-level text input with `InputGroup` chrome — addons, clear button, sizing, focus variants.
|
|
1341
1444
|
*
|
|
@@ -1345,12 +1448,12 @@ type Props$1r = InputGroupProps$7 & OwnProps$1 & Omit<ComponentProps<'input'>, '
|
|
|
1345
1448
|
* `FormGroup.TextInput`; for search use `SearchInput`; for forms with validation use `useAppForm`.
|
|
1346
1449
|
* **Composition:** wrap in `FormGroup` for shared error state, or render directly as a controlled input.
|
|
1347
1450
|
*/
|
|
1348
|
-
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$
|
|
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$1s & {
|
|
1349
1452
|
ref?: Ref<ElementRef<"input">>;
|
|
1350
1453
|
}) => react_jsx_runtime.JSX.Element;
|
|
1351
1454
|
|
|
1352
1455
|
type InputProps$1 = ComponentProps<typeof Input$1>;
|
|
1353
|
-
type Props$
|
|
1456
|
+
type Props$1r = Omit<InputProps$1, 'type' | 'value' | 'defaultValue'> & {
|
|
1354
1457
|
defaultValue?: Date | null;
|
|
1355
1458
|
disabledDays?: Matcher | Matcher[];
|
|
1356
1459
|
endMonth?: Date;
|
|
@@ -1359,12 +1462,12 @@ type Props$1q = Omit<InputProps$1, 'type' | 'value' | 'defaultValue'> & {
|
|
|
1359
1462
|
startMonth?: Date;
|
|
1360
1463
|
value?: Date | null;
|
|
1361
1464
|
};
|
|
1362
|
-
declare const DateInput: ({ ref, defaultValue, disabled, disabledDays, endMonth, onBlur, onChange, onValueBlur, onValueChange, placeholder, readOnly, startMonth, value, variant, ...props }: Props$
|
|
1465
|
+
declare const DateInput: ({ ref, defaultValue, disabled, disabledDays, endMonth, onBlur, onChange, onValueBlur, onValueChange, placeholder, readOnly, startMonth, value, variant, ...props }: Props$1r & {
|
|
1363
1466
|
ref?: Ref<ElementRef<"input">>;
|
|
1364
1467
|
}) => react_jsx_runtime.JSX.Element;
|
|
1365
1468
|
|
|
1366
1469
|
type InputProps = ComponentProps<typeof Input$1>;
|
|
1367
|
-
type Props$
|
|
1470
|
+
type Props$1q = Omit<InputProps, 'type' | 'value' | 'defaultValue'> & {
|
|
1368
1471
|
defaultValue?: DateRange$1 | null;
|
|
1369
1472
|
endMonth?: Date;
|
|
1370
1473
|
onValueBlur?: (value: DateRange$1 | null) => void;
|
|
@@ -1372,7 +1475,7 @@ type Props$1p = Omit<InputProps, 'type' | 'value' | 'defaultValue'> & {
|
|
|
1372
1475
|
startMonth?: Date;
|
|
1373
1476
|
value?: DateRange$1 | null;
|
|
1374
1477
|
};
|
|
1375
|
-
declare const DateRangeInput: ({ ref, defaultValue, disabled, endMonth, onBlur, onChange, onValueBlur, onValueChange, placeholder, readOnly, startMonth, value, ...props }: Props$
|
|
1478
|
+
declare const DateRangeInput: ({ ref, defaultValue, disabled, endMonth, onBlur, onChange, onValueBlur, onValueChange, placeholder, readOnly, startMonth, value, ...props }: Props$1q & {
|
|
1376
1479
|
ref?: Ref<ElementRef<"input">>;
|
|
1377
1480
|
}) => react_jsx_runtime.JSX.Element;
|
|
1378
1481
|
|
|
@@ -1390,7 +1493,7 @@ type OwnProps = {
|
|
|
1390
1493
|
* Props for `TextInput`. Extends `Input` with string-typed `value` / `defaultValue` and convenience
|
|
1391
1494
|
* `onValueChange` / `onValueBlur` callbacks. `null` / `undefined` are coerced to empty strings.
|
|
1392
1495
|
*/
|
|
1393
|
-
type Props$
|
|
1496
|
+
type Props$1p = OwnProps & NativeProps;
|
|
1394
1497
|
/**
|
|
1395
1498
|
* Standard text input with a string-only API. The default choice for a bare text input.
|
|
1396
1499
|
*
|
|
@@ -1402,42 +1505,42 @@ type Props$1o = OwnProps & NativeProps;
|
|
|
1402
1505
|
* page layouts. Chrome resolves from the active brand automatically: a modern brand always renders argo
|
|
1403
1506
|
* (any `variant` is ignored), while `variant` only tunes the legacy-brand chrome.
|
|
1404
1507
|
*/
|
|
1405
|
-
declare const TextInput: ({ ref, value, defaultValue, type, variant, onValueChange, onChange, onValueBlur, onBlur, ...props }: Props$
|
|
1508
|
+
declare const TextInput: ({ ref, value, defaultValue, type, variant, onValueChange, onChange, onValueBlur, onBlur, ...props }: Props$1p & {
|
|
1406
1509
|
ref?: Ref<ElementRef<"input">>;
|
|
1407
1510
|
}) => react_jsx_runtime.JSX.Element;
|
|
1408
1511
|
|
|
1409
|
-
type Props$
|
|
1410
|
-
declare const CommandInput: ({ ref, className, ...props }: Props$
|
|
1512
|
+
type Props$1o = ComponentProps<typeof TextInput>;
|
|
1513
|
+
declare const CommandInput: ({ ref, className, ...props }: Props$1o & {
|
|
1411
1514
|
ref?: Ref<ElementRef<"input">>;
|
|
1412
1515
|
}) => react_jsx_runtime.JSX.Element;
|
|
1413
1516
|
|
|
1414
|
-
type Props$
|
|
1517
|
+
type Props$1n = ComponentProps<typeof ScrollAreaPrimitive.Root> & {
|
|
1415
1518
|
viewPortClassName?: string;
|
|
1416
1519
|
scrollBarClassName?: string;
|
|
1417
1520
|
orientation?: ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>['orientation'];
|
|
1418
1521
|
};
|
|
1419
|
-
declare const ScrollArea: ({ ref, className, children, viewPortClassName, orientation, scrollBarClassName, ...props }: Props$
|
|
1522
|
+
declare const ScrollArea: ({ ref, className, children, viewPortClassName, orientation, scrollBarClassName, ...props }: Props$1n & {
|
|
1420
1523
|
ref?: Ref<ElementRef<"div">>;
|
|
1421
1524
|
}) => react_jsx_runtime.JSX.Element;
|
|
1422
1525
|
|
|
1423
|
-
type Props$
|
|
1424
|
-
declare const ScrollBar: ({ className, orientation, ...props }: Props$
|
|
1526
|
+
type Props$1m = ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>;
|
|
1527
|
+
declare const ScrollBar: ({ className, orientation, ...props }: Props$1m) => react_jsx_runtime.JSX.Element;
|
|
1425
1528
|
|
|
1426
|
-
type Props$
|
|
1427
|
-
declare const CommandList: ({ ref, className, children, viewPortClassName, ...props }: Props$
|
|
1529
|
+
type Props$1l = ComponentProps<typeof Command$1.List> & Pick<ComponentProps<typeof ScrollArea>, 'viewPortClassName'>;
|
|
1530
|
+
declare const CommandList: ({ ref, className, children, viewPortClassName, ...props }: Props$1l & {
|
|
1428
1531
|
ref?: Ref<ElementRef<"div">>;
|
|
1429
1532
|
}) => react_jsx_runtime.JSX.Element;
|
|
1430
1533
|
|
|
1431
|
-
type Props$
|
|
1432
|
-
declare const CommandGroup: ({ className, ...props }: Props$
|
|
1534
|
+
type Props$1k = ComponentProps<typeof Command$1.Group>;
|
|
1535
|
+
declare const CommandGroup: ({ className, ...props }: Props$1k) => react_jsx_runtime.JSX.Element;
|
|
1433
1536
|
|
|
1434
|
-
type Props$
|
|
1537
|
+
type Props$1j = ComponentProps<typeof Command$1.Item> & {
|
|
1435
1538
|
icon?: ReactNode;
|
|
1436
1539
|
checked?: boolean;
|
|
1437
1540
|
variant?: ComponentProps<typeof CheckIndicator>['variant'];
|
|
1438
1541
|
actions?: ReactNode;
|
|
1439
1542
|
};
|
|
1440
|
-
declare const CommandItem: ({ className, icon, children, checked, variant, actions, ...props }: Props$
|
|
1543
|
+
declare const CommandItem: ({ className, icon, children, checked, variant, actions, ...props }: Props$1j) => react_jsx_runtime.JSX.Element;
|
|
1441
1544
|
|
|
1442
1545
|
/** Viewport-relative box of the highlighted target. */
|
|
1443
1546
|
type TargetRect = {
|
|
@@ -1457,7 +1560,7 @@ type SpotlightTarget = string | RefObject<Element | null> | undefined;
|
|
|
1457
1560
|
*/
|
|
1458
1561
|
declare const useTargetRect: (target: SpotlightTarget, enabled: boolean) => TargetRect | null;
|
|
1459
1562
|
|
|
1460
|
-
type Props$
|
|
1563
|
+
type Props$1i = {
|
|
1461
1564
|
/** Target box to cut out of the dim layer, or `null` for a full dim (no highlight). */
|
|
1462
1565
|
rect: TargetRect | null;
|
|
1463
1566
|
/** Padding around the target inside the cut-out, in px. */
|
|
@@ -1479,7 +1582,7 @@ type Props$1h = {
|
|
|
1479
1582
|
* (steps, next/prev, "seen" persistence) is intentionally app-owned; see the
|
|
1480
1583
|
* "Guided tour (recipe)" story for the composition.
|
|
1481
1584
|
*/
|
|
1482
|
-
declare const SpotlightBackdrop: ({ rect, padding, radius, className, onClick }: Props$
|
|
1585
|
+
declare const SpotlightBackdrop: ({ rect, padding, radius, className, onClick }: Props$1i) => react_jsx_runtime.JSX.Element;
|
|
1483
1586
|
|
|
1484
1587
|
type CalendarProps = Omit<PropsBase, 'required' | 'captionLayout'> & (PropsSingle | PropsRange);
|
|
1485
1588
|
declare const Calendar: {
|
|
@@ -1523,20 +1626,20 @@ declare const DateRangePicker: {
|
|
|
1523
1626
|
displayName: string;
|
|
1524
1627
|
};
|
|
1525
1628
|
|
|
1526
|
-
type Props$
|
|
1629
|
+
type Props$1h = {
|
|
1527
1630
|
children?: ReactNode;
|
|
1528
1631
|
defaultSelected?: string | null;
|
|
1529
1632
|
selected?: string | null;
|
|
1530
1633
|
onSelect?: (time: string) => void;
|
|
1531
1634
|
} & Pick<PopoverProps, 'open' | 'onOpenChange' | 'defaultOpen'> & Pick<PopoverContentProps, 'align' | 'alignOffset' | 'sideOffset'>;
|
|
1532
|
-
declare const TimePicker: ({ align, alignOffset, children, defaultOpen, defaultSelected, onOpenChange, onSelect, open, selected, sideOffset, }: Props$
|
|
1635
|
+
declare const TimePicker: ({ align, alignOffset, children, defaultOpen, defaultSelected, onOpenChange, onSelect, open, selected, sideOffset, }: Props$1h) => react_jsx_runtime.JSX.Element;
|
|
1533
1636
|
|
|
1534
|
-
type Props$
|
|
1637
|
+
type Props$1g = {
|
|
1535
1638
|
id?: string | number;
|
|
1536
1639
|
htmlFor?: string | number;
|
|
1537
|
-
} & Omit<LabelProps, 'id' | 'htmlFor'>;
|
|
1640
|
+
} & Omit<LabelProps$1, 'id' | 'htmlFor'>;
|
|
1538
1641
|
declare const Label: {
|
|
1539
|
-
({ className, children, id, htmlFor, ...rest }: Props$
|
|
1642
|
+
({ className, children, id, htmlFor, ...rest }: Props$1g): react_jsx_runtime.JSX.Element;
|
|
1540
1643
|
Optional: ({ className, ...props }: ComponentPropsWithRef<"span">) => react_jsx_runtime.JSX.Element;
|
|
1541
1644
|
Required: ({ className, ...props }: ComponentPropsWithRef<"span">) => react_jsx_runtime.JSX.Element;
|
|
1542
1645
|
};
|
|
@@ -1550,21 +1653,21 @@ declare const switchVariants: (props?: ({
|
|
|
1550
1653
|
size?: "medium" | "small" | "large" | null | undefined;
|
|
1551
1654
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1552
1655
|
|
|
1553
|
-
type Props$
|
|
1656
|
+
type Props$1f = {
|
|
1554
1657
|
id?: string | number;
|
|
1555
1658
|
children?: ReactNode;
|
|
1556
1659
|
description?: ReactNode;
|
|
1557
1660
|
variant?: VariantProps<typeof fieldBoxVariants>['variant'];
|
|
1558
1661
|
position?: 'start' | 'end';
|
|
1559
1662
|
} & Omit<ComponentProps<typeof Root$6>, 'asChild' | 'id'> & Omit<VariantProps<typeof switchVariants>, 'variant'>;
|
|
1560
|
-
declare const Switch: ({ ref, className, size, disabled, id: idProp, children, description, variant, position, ...props }: Props$
|
|
1663
|
+
declare const Switch: ({ ref, className, size, disabled, id: idProp, children, description, variant, position, ...props }: Props$1f & {
|
|
1561
1664
|
ref?: Ref<ElementRef<"button">>;
|
|
1562
1665
|
}) => react_jsx_runtime.JSX.Element;
|
|
1563
1666
|
|
|
1564
1667
|
type Variant$7 = 'radio' | 'button' | 'radio-block';
|
|
1565
1668
|
type Orientation = 'vertical' | 'horizontal';
|
|
1566
1669
|
|
|
1567
|
-
type Props$
|
|
1670
|
+
type Props$1e<Value> = {
|
|
1568
1671
|
variant?: Variant$7;
|
|
1569
1672
|
orientation?: Orientation;
|
|
1570
1673
|
onValueChange?: (value: Value) => void;
|
|
@@ -1572,7 +1675,7 @@ type Props$1d<Value> = {
|
|
|
1572
1675
|
defaultValue?: Value | null;
|
|
1573
1676
|
} & Omit<ComponentProps<typeof RRadioGroup.Root>, 'asChild' | 'orientation' | 'onValueChange' | 'onChange' | 'value' | 'defaultValue'>;
|
|
1574
1677
|
declare const RadioGroup: {
|
|
1575
|
-
<Value extends string = string>({ variant, className, disabled, orientation, onValueChange, children, value, defaultValue, ...props }: Props$
|
|
1678
|
+
<Value extends string = string>({ variant, className, disabled, orientation, onValueChange, children, value, defaultValue, ...props }: Props$1e<Value>): react_jsx_runtime.JSX.Element;
|
|
1576
1679
|
Item: <T extends string = string>({ children, tooltip, tooltipVariant, tooltipPlacement, description, ...props }: {
|
|
1577
1680
|
content?: string | undefined | undefined;
|
|
1578
1681
|
translate?: "yes" | "no" | undefined | undefined;
|
|
@@ -1869,34 +1972,34 @@ declare const RadioGroup: {
|
|
|
1869
1972
|
} & {
|
|
1870
1973
|
value: T;
|
|
1871
1974
|
tooltip?: react.ReactNode;
|
|
1872
|
-
tooltipVariant?: Props$
|
|
1873
|
-
tooltipPlacement?: Props$
|
|
1975
|
+
tooltipVariant?: Props$1O["variant"];
|
|
1976
|
+
tooltipPlacement?: Props$1O["placement"];
|
|
1874
1977
|
description?: react.ReactNode;
|
|
1875
1978
|
}) => react_jsx_runtime.JSX.Element;
|
|
1876
1979
|
Separator: () => react_jsx_runtime.JSX.Element;
|
|
1877
1980
|
};
|
|
1878
1981
|
|
|
1879
|
-
type Props$
|
|
1982
|
+
type Props$1d = ComponentProps<typeof Thumb> & {
|
|
1880
1983
|
tooltip?: ReactNode;
|
|
1881
1984
|
tooltipSide?: ComponentProps<typeof Tooltip.Content>['placement'];
|
|
1882
1985
|
};
|
|
1883
|
-
declare const SliderThumb: ({ ref: forwardedRef, className, tooltip, tooltipSide, ...props }: Props$
|
|
1986
|
+
declare const SliderThumb: ({ ref: forwardedRef, className, tooltip, tooltipSide, ...props }: Props$1d & {
|
|
1884
1987
|
ref?: Ref<ElementRef<typeof Thumb>>;
|
|
1885
1988
|
}) => react_jsx_runtime.JSX.Element;
|
|
1886
1989
|
|
|
1887
1990
|
type ThumbTooltipFn = (value: number, index: number) => ReactNode;
|
|
1888
|
-
type Props$
|
|
1991
|
+
type Props$1c = ComponentProps<typeof Root$7> & {
|
|
1889
1992
|
thumbTooltip?: ThumbTooltipFn;
|
|
1890
1993
|
thumbTooltipSide?: ComponentProps<typeof SliderThumb>['tooltipSide'];
|
|
1891
1994
|
rangeClassName?: string;
|
|
1892
1995
|
};
|
|
1893
|
-
declare const Slider: ({ ref, className, value, defaultValue, min, max, onValueChange, thumbTooltip, thumbTooltipSide, rangeClassName, ...rest }: Props$
|
|
1996
|
+
declare const Slider: ({ ref, className, value, defaultValue, min, max, onValueChange, thumbTooltip, thumbTooltipSide, rangeClassName, ...rest }: Props$1c & {
|
|
1894
1997
|
ref?: Ref<ElementRef<typeof Root$7>>;
|
|
1895
1998
|
}) => react_jsx_runtime.JSX.Element;
|
|
1896
1999
|
|
|
1897
2000
|
type SearchChangeEventHandler = (value: string, event: ChangeEvent<HTMLInputElement> | MouseEvent$1<HTMLButtonElement>) => void;
|
|
1898
2001
|
type SearchBlurEventHandler = (value: string, event: FocusEvent$1<HTMLInputElement, Element>) => void;
|
|
1899
|
-
type Props$
|
|
2002
|
+
type Props$1b = {
|
|
1900
2003
|
suffix?: ReactNode;
|
|
1901
2004
|
disableDebounce?: boolean;
|
|
1902
2005
|
debounceDelay?: number;
|
|
@@ -1911,14 +2014,14 @@ type Props$1a = {
|
|
|
1911
2014
|
/**
|
|
1912
2015
|
* @deprecated Use `SearchInput` instead. `Search` is kept only for the legacy (non-sidebar) layout.
|
|
1913
2016
|
*/
|
|
1914
|
-
declare const Search: ({ ref, suffix, className, onBlur, onChange, disabled, readOnly, disableDebounce, debounceDelay, value: externalValue, defaultValue, testId: prefixTestId, placeholder, onClear, variant, ...rest }: Props$
|
|
2017
|
+
declare const Search: ({ ref, suffix, className, onBlur, onChange, disabled, readOnly, disableDebounce, debounceDelay, value: externalValue, defaultValue, testId: prefixTestId, placeholder, onClear, variant, ...rest }: Props$1b & {
|
|
1915
2018
|
ref?: Ref<ElementRef<"input">>;
|
|
1916
2019
|
}) => react_jsx_runtime.JSX.Element;
|
|
1917
2020
|
|
|
1918
|
-
type Props$
|
|
2021
|
+
type Props$1a = {
|
|
1919
2022
|
onSubmit: (value: string) => void;
|
|
1920
2023
|
} & Omit<ComponentProps<typeof Search>, 'onClear' | 'onBlur' | 'onSubmit'>;
|
|
1921
|
-
declare const SearchForm: ({ ref, onSubmit, name, ...props }: Props$
|
|
2024
|
+
declare const SearchForm: ({ ref, onSubmit, name, ...props }: Props$1a & {
|
|
1922
2025
|
ref?: Ref<ElementRef<"input">>;
|
|
1923
2026
|
}) => react_jsx_runtime.JSX.Element;
|
|
1924
2027
|
|
|
@@ -1943,10 +2046,10 @@ declare const variants$2: (props?: ({
|
|
|
1943
2046
|
sizing?: "medium" | "small" | "default" | null | undefined;
|
|
1944
2047
|
state?: "warning" | "default" | "error" | null | undefined;
|
|
1945
2048
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1946
|
-
type Props$
|
|
2049
|
+
type Props$19 = ComponentProps<typeof _radix_ui_react_select.Trigger> & Omit<VariantProps<typeof variants$2>, 'variant'> & {
|
|
1947
2050
|
variant?: Exclude<VariantProps<typeof variants$2>['variant'], 'argo'>;
|
|
1948
2051
|
} & Pick<ComponentProps<typeof _radix_ui_react_select.Value>, 'placeholder'>;
|
|
1949
|
-
declare const SelectTrigger: ({ ref, className, variant, state, sizing, placeholder, ...props }: Props$
|
|
2052
|
+
declare const SelectTrigger: ({ ref, className, variant, state, sizing, placeholder, ...props }: Props$19 & {
|
|
1950
2053
|
ref?: Ref<ElementRef<"button">>;
|
|
1951
2054
|
}) => react_jsx_runtime.JSX.Element;
|
|
1952
2055
|
|
|
@@ -1965,7 +2068,7 @@ type TriggerProps = ComponentProps<typeof SelectTrigger>;
|
|
|
1965
2068
|
* Props for `Select`. Combines Radix `Select.Root` control props with `Select.Trigger` chrome and the
|
|
1966
2069
|
* convenience `items` shape (flat list, or grouped lists with optional labels).
|
|
1967
2070
|
*/
|
|
1968
|
-
type Props$
|
|
2071
|
+
type Props$18 = Pick<SelectRootProps, 'value' | 'defaultValue' | 'onValueChange' | 'disabled' | 'name' | 'required' | 'open' | 'defaultOpen' | 'onOpenChange'> & Pick<TriggerProps, 'variant' | 'state' | 'sizing' | 'placeholder' | 'id' | 'className'> & {
|
|
1969
2072
|
items?: readonly (SelectItem | SelectItemGroup)[];
|
|
1970
2073
|
};
|
|
1971
2074
|
/**
|
|
@@ -1980,7 +2083,7 @@ type Props$17 = Pick<SelectRootProps, 'value' | 'defaultValue' | 'onValueChange'
|
|
|
1980
2083
|
* `Select.Item`) for custom item layouts; the top-level `Select` covers the common cases.
|
|
1981
2084
|
*/
|
|
1982
2085
|
declare const Select: {
|
|
1983
|
-
({ value, defaultValue, onValueChange, disabled, name, required, open, defaultOpen, onOpenChange, variant, state, sizing, placeholder, id, className, items, }: Props$
|
|
2086
|
+
({ value, defaultValue, onValueChange, disabled, name, required, open, defaultOpen, onOpenChange, variant, state, sizing, placeholder, id, className, items, }: Props$18): react_jsx_runtime.JSX.Element;
|
|
1984
2087
|
Root: (props: SelectRootProps) => react_jsx_runtime.JSX.Element;
|
|
1985
2088
|
Trigger: ({ ref, className, variant, state, sizing, placeholder, ...props }: (_radix_ui_react_select.SelectTriggerProps & react.RefAttributes<HTMLButtonElement> & Omit<class_variance_authority.VariantProps<(props?: ({
|
|
1986
2089
|
variant?: "primary" | "secondary" | "argo" | null | undefined;
|
|
@@ -2010,51 +2113,51 @@ declare const Select: {
|
|
|
2010
2113
|
Separator: ({ className, ...props }: _radix_ui_react_select.SelectSeparatorProps & react.RefAttributes<HTMLDivElement>) => react_jsx_runtime.JSX.Element;
|
|
2011
2114
|
};
|
|
2012
2115
|
|
|
2013
|
-
type Props$
|
|
2116
|
+
type Props$17 = {
|
|
2014
2117
|
id?: string | number;
|
|
2015
2118
|
description?: ReactNode;
|
|
2016
2119
|
variant?: VariantProps<typeof fieldBoxVariants>['variant'];
|
|
2017
2120
|
position?: 'start' | 'end';
|
|
2018
|
-
tooltip?: Props$
|
|
2019
|
-
tooltipPlacement?: Props$
|
|
2121
|
+
tooltip?: Props$1O['tooltip'];
|
|
2122
|
+
tooltipPlacement?: Props$1O['placement'];
|
|
2020
2123
|
} & Omit<ComponentProps<typeof Root$8>, 'id'>;
|
|
2021
|
-
declare function Checkbox(prop: Omit<Props$
|
|
2124
|
+
declare function Checkbox(prop: Omit<Props$17, 'checked' | 'onCheckedChange'> & {
|
|
2022
2125
|
checked?: boolean;
|
|
2023
2126
|
onCheckedChange?: (checked: boolean) => void;
|
|
2024
2127
|
}): ReactNode;
|
|
2025
|
-
declare function Checkbox(prop: Omit<Props$
|
|
2128
|
+
declare function Checkbox(prop: Omit<Props$17, 'checked' | 'onCheckedChange'> & {
|
|
2026
2129
|
checked?: CheckedState;
|
|
2027
2130
|
onCheckedChange?: (checked: CheckedState) => void;
|
|
2028
2131
|
}): ReactNode;
|
|
2029
2132
|
|
|
2030
2133
|
type Variant$6 = 'check' | 'checkbox';
|
|
2031
|
-
type Props$
|
|
2134
|
+
type Props$16 = Omit<ComponentProps<typeof Combobox$1.ItemIndicator>, 'className' | 'children'> & {
|
|
2032
2135
|
className?: string;
|
|
2033
2136
|
variant?: Variant$6;
|
|
2034
2137
|
};
|
|
2035
|
-
declare const ComboboxItemIndicator: ({ ref, className, variant, ...props }: Props$
|
|
2138
|
+
declare const ComboboxItemIndicator: ({ ref, className, variant, ...props }: Props$16 & {
|
|
2036
2139
|
ref?: Ref<ElementRef<"span">>;
|
|
2037
2140
|
}) => react_jsx_runtime.JSX.Element;
|
|
2038
2141
|
|
|
2039
|
-
type Props$
|
|
2040
|
-
declare const ComboboxInput: ({ ref, ...props }: Props$
|
|
2142
|
+
type Props$15 = Omit<ComponentProps<typeof Combobox$1.Input>, 'render'>;
|
|
2143
|
+
declare const ComboboxInput: ({ ref, ...props }: Props$15 & {
|
|
2041
2144
|
ref?: Ref<ElementRef<"input">>;
|
|
2042
2145
|
}) => react_jsx_runtime.JSX.Element;
|
|
2043
2146
|
|
|
2044
2147
|
type InputGroupProps$6 = Pick<ComponentProps<typeof InputGroup>, 'variant' | 'focusVariant' | 'sizing' | 'state'>;
|
|
2045
|
-
type Props$
|
|
2148
|
+
type Props$14 = InputGroupProps$6 & Omit<ComponentProps<typeof Combobox$1.InputGroup>, 'render' | 'className'> & {
|
|
2046
2149
|
className?: string;
|
|
2047
2150
|
};
|
|
2048
|
-
declare const ComboboxInputGroup: ({ ref, state, variant, sizing, focusVariant, className, ...props }: Props$
|
|
2151
|
+
declare const ComboboxInputGroup: ({ ref, state, variant, sizing, focusVariant, className, ...props }: Props$14 & {
|
|
2049
2152
|
ref?: Ref<ElementRef<"div">>;
|
|
2050
2153
|
}) => react_jsx_runtime.JSX.Element;
|
|
2051
2154
|
|
|
2052
|
-
type Props$
|
|
2155
|
+
type Props$13 = Omit<ComponentProps<typeof Combobox$1.Item>, 'className'> & {
|
|
2053
2156
|
className?: string;
|
|
2054
2157
|
icon?: ReactNode;
|
|
2055
2158
|
indicator?: ComponentProps<typeof ComboboxItemIndicator>['variant'];
|
|
2056
2159
|
};
|
|
2057
|
-
declare const ComboboxItem: ({ ref, className, children, icon, indicator: variant, ...props }: Props$
|
|
2160
|
+
declare const ComboboxItem: ({ ref, className, children, icon, indicator: variant, ...props }: Props$13 & {
|
|
2058
2161
|
ref?: Ref<ElementRef<"div">>;
|
|
2059
2162
|
}) => react_jsx_runtime.JSX.Element;
|
|
2060
2163
|
|
|
@@ -2074,7 +2177,7 @@ type CreatableProps<Value> = {
|
|
|
2074
2177
|
queryToCreateLabel?: (query: string) => ReactNode;
|
|
2075
2178
|
queryToCreateValue?: (query: string) => Value;
|
|
2076
2179
|
};
|
|
2077
|
-
type Props$
|
|
2180
|
+
type Props$12<Value, GroupShape extends Group<Value> = Group<Value>> = PublicComboboxInputProps & PublicComboboxProps<Value> & CreatableProps<Value> & {
|
|
2078
2181
|
items?: readonly (Value | GroupShape)[];
|
|
2079
2182
|
allowClear?: boolean;
|
|
2080
2183
|
empty?: ReactNode;
|
|
@@ -2086,7 +2189,7 @@ type Props$11<Value, GroupShape extends Group<Value> = Group<Value>> = PublicCom
|
|
|
2086
2189
|
groupToLabel?: (group: GroupShape) => ReactNode;
|
|
2087
2190
|
};
|
|
2088
2191
|
declare const Combobox: {
|
|
2089
|
-
<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$
|
|
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$12<Value, GroupShape>): react_jsx_runtime.JSX.Element;
|
|
2090
2193
|
Root: <Value, Multiple extends boolean | undefined = false>(props: Combobox$1.Root.Props<Value, Multiple>) => react_jsx_runtime.JSX.Element;
|
|
2091
2194
|
InputGroup: ({ ref, state, variant, sizing, focusVariant, className, ...props }: ({
|
|
2092
2195
|
variant?: "primary" | "secondary" | null | undefined;
|
|
@@ -2469,7 +2572,7 @@ type Indicator = NonNullable<ComboboxItemProps['indicator']>;
|
|
|
2469
2572
|
* Use `itemToLabel` / `itemToIcon` / `itemToDisabled` to project custom item shapes; use `filter` to override
|
|
2470
2573
|
* the default substring matcher.
|
|
2471
2574
|
*/
|
|
2472
|
-
type Props$
|
|
2575
|
+
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'> & {
|
|
2473
2576
|
items?: readonly (Value | GroupShape)[];
|
|
2474
2577
|
allowClear?: boolean;
|
|
2475
2578
|
allowSelectAll?: boolean;
|
|
@@ -2493,7 +2596,7 @@ type Props$10<Value, GroupShape extends Group<Value> = Group<Value>> = Pick<Comb
|
|
|
2493
2596
|
* @see RECIPES.md#creatable-multi-combobox — for free-form-plus-enumerated patterns
|
|
2494
2597
|
* @see RECIPES.md#filter-toolbar — for combining multi-select with other filter chips
|
|
2495
2598
|
*/
|
|
2496
|
-
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$
|
|
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$11<Value, GroupShape>) => react_jsx_runtime.JSX.Element;
|
|
2497
2600
|
|
|
2498
2601
|
type InputGroupProps$5 = Pick<ComponentProps<typeof InputGroup>, 'variant' | 'sizing' | 'focusVariant' | 'state'>;
|
|
2499
2602
|
type TextareaNativeProps = Omit<ComponentProps<typeof InputGroup.TextArea>, 'value' | 'defaultValue' | 'rows' | 'maxRows'>;
|
|
@@ -2506,12 +2609,12 @@ type TextareaOwnProps = {
|
|
|
2506
2609
|
disableResize?: boolean;
|
|
2507
2610
|
containerClassName?: string;
|
|
2508
2611
|
};
|
|
2509
|
-
type Props
|
|
2612
|
+
type Props$10 = InputGroupProps$5 & TextareaNativeProps & TextareaOwnProps;
|
|
2510
2613
|
/**
|
|
2511
2614
|
* Multi-line text input. Chrome resolves from the active brand automatically: a modern brand always
|
|
2512
2615
|
* renders argo (any `variant` is ignored), while `variant` only tunes the legacy-brand chrome.
|
|
2513
2616
|
*/
|
|
2514
|
-
declare const Textarea: ({ ref, containerClassName, state, variant, sizing, focusVariant, ...rest }: Props
|
|
2617
|
+
declare const Textarea: ({ ref, containerClassName, state, variant, sizing, focusVariant, ...rest }: Props$10 & {
|
|
2515
2618
|
ref?: Ref<ElementRef<"textarea">>;
|
|
2516
2619
|
}) => react_jsx_runtime.JSX.Element;
|
|
2517
2620
|
|
|
@@ -2526,14 +2629,14 @@ declare const AutoSaveTextarea: ({ savedValue, onSave, placeholder, disabled, gr
|
|
|
2526
2629
|
|
|
2527
2630
|
type InputGroupProps$4 = Pick<ComponentProps<typeof InputGroup>, 'variant' | 'focusVariant' | 'state' | 'sizing'>;
|
|
2528
2631
|
type InputGroupInputProps$4 = Omit<ComponentProps<typeof InputGroup.Input>, 'value' | 'defaultValue'>;
|
|
2529
|
-
type Props
|
|
2632
|
+
type Props$$ = InputGroupProps$4 & InputGroupInputProps$4 & {
|
|
2530
2633
|
value?: string | null;
|
|
2531
2634
|
defaultValue?: string | null;
|
|
2532
2635
|
onValueChange?: (value: string) => void;
|
|
2533
2636
|
onValueBlur?: (value: string) => void;
|
|
2534
2637
|
allowClear?: boolean;
|
|
2535
2638
|
};
|
|
2536
|
-
declare const ColorInput: ({ ref, state, variant, focusVariant, sizing, className, value: valueProp, onValueChange, onValueBlur, onChange, onBlur, defaultValue, allowClear, disabled, readOnly, ...restInputProps }: Props
|
|
2639
|
+
declare const ColorInput: ({ ref, state, variant, focusVariant, sizing, className, value: valueProp, onValueChange, onValueBlur, onChange, onBlur, defaultValue, allowClear, disabled, readOnly, ...restInputProps }: Props$$ & {
|
|
2537
2640
|
ref?: Ref<ElementRef<"input">>;
|
|
2538
2641
|
}) => react_jsx_runtime.JSX.Element;
|
|
2539
2642
|
|
|
@@ -2570,12 +2673,12 @@ declare const useColorSchemeState: ({ defaultScheme, scheme: propScheme, onSchem
|
|
|
2570
2673
|
setScheme: (next: ColorScheme) => void;
|
|
2571
2674
|
};
|
|
2572
2675
|
|
|
2573
|
-
type Props$
|
|
2676
|
+
type Props$_ = UseColorSchemeOptions & UseBrandOptions & {
|
|
2574
2677
|
/** Brands this provider knows about; the active brand id resolves against these. */
|
|
2575
2678
|
brands?: readonly Brand[];
|
|
2576
2679
|
children: ReactNode;
|
|
2577
2680
|
};
|
|
2578
|
-
declare const ThemeProvider: ({ defaultScheme, scheme, onSchemeChange, defaultBrandId, brandId, onBrandIdChange, brands, children, }: Props$
|
|
2681
|
+
declare const ThemeProvider: ({ defaultScheme, scheme, onSchemeChange, defaultBrandId, brandId, onBrandIdChange, brands, children, }: Props$_) => react_jsx_runtime.JSX.Element;
|
|
2579
2682
|
|
|
2580
2683
|
type ThemeContextValue = ReturnType<typeof useColorSchemeState> & ReturnType<typeof useBrandState> & {
|
|
2581
2684
|
themes: Theme[];
|
|
@@ -2599,7 +2702,7 @@ declare const useArgoDesign: () => boolean;
|
|
|
2599
2702
|
declare const DEFAULT_COLOR_SCHEME: ResolvedColorScheme;
|
|
2600
2703
|
declare const DEFAULT_BRAND_ID = "design-system";
|
|
2601
2704
|
|
|
2602
|
-
type Props$
|
|
2705
|
+
type Props$Z = {
|
|
2603
2706
|
/** The active color scheme. Controlled — pair with `onValueChange`. */
|
|
2604
2707
|
value: ColorScheme;
|
|
2605
2708
|
/** Called with the chosen scheme when the user picks a menu item. */
|
|
@@ -2624,11 +2727,11 @@ type Props$Y = {
|
|
|
2624
2727
|
* The menu uses `DropdownMenu.RadioGroup` for single-select semantics; the active
|
|
2625
2728
|
* item is marked as checked. The trigger's `aria-label` names the current scheme.
|
|
2626
2729
|
*/
|
|
2627
|
-
declare const ColorModeSwitch: ({ value, onValueChange, size, className }: Props$
|
|
2730
|
+
declare const ColorModeSwitch: ({ value, onValueChange, size, className }: Props$Z) => react_jsx_runtime.JSX.Element;
|
|
2628
2731
|
|
|
2629
2732
|
type InputGroupProps$3 = Pick<ComponentProps<typeof InputGroup>, 'variant' | 'focusVariant' | 'state' | 'sizing'>;
|
|
2630
2733
|
type InputGroupInputProps$3 = Omit<ComponentProps<typeof InputGroup.Input>, 'value' | 'defaultValue' | 'type' | 'prefix'>;
|
|
2631
|
-
type Props$
|
|
2734
|
+
type Props$Y = InputGroupProps$3 & InputGroupInputProps$3 & {
|
|
2632
2735
|
value?: number | null;
|
|
2633
2736
|
defaultValue?: number | null;
|
|
2634
2737
|
onValueChange?: (value: number | null) => void;
|
|
@@ -2636,13 +2739,13 @@ type Props$X = InputGroupProps$3 & InputGroupInputProps$3 & {
|
|
|
2636
2739
|
prefix?: ReactNode;
|
|
2637
2740
|
suffix?: ReactNode;
|
|
2638
2741
|
};
|
|
2639
|
-
declare const NumberInput: ({ ref, state, variant, focusVariant, sizing, className, value, defaultValue, onValueChange, onValueBlur, onChange, onBlur, prefix, suffix, ...inputProps }: Props$
|
|
2742
|
+
declare const NumberInput: ({ ref, state, variant, focusVariant, sizing, className, value, defaultValue, onValueChange, onValueBlur, onChange, onBlur, prefix, suffix, ...inputProps }: Props$Y & {
|
|
2640
2743
|
ref?: Ref<ElementRef<"input">>;
|
|
2641
2744
|
}) => react_jsx_runtime.JSX.Element;
|
|
2642
2745
|
|
|
2643
2746
|
type InputGroupProps$2 = Pick<ComponentProps<typeof InputGroup>, 'variant' | 'focusVariant' | 'state' | 'sizing'>;
|
|
2644
2747
|
type InputGroupInputProps$2 = Omit<ComponentProps<typeof InputGroup.Input>, 'value' | 'defaultValue' | 'type' | 'autoComplete'>;
|
|
2645
|
-
type Props$
|
|
2748
|
+
type Props$X = InputGroupProps$2 & InputGroupInputProps$2 & {
|
|
2646
2749
|
value?: string | null;
|
|
2647
2750
|
defaultValue?: string | null;
|
|
2648
2751
|
onValueChange?: (value: string) => void;
|
|
@@ -2652,20 +2755,20 @@ type Props$W = InputGroupProps$2 & InputGroupInputProps$2 & {
|
|
|
2652
2755
|
autoComplete?: 'new-password' | 'current-password' | 'off';
|
|
2653
2756
|
defaultPasswordVisibility?: boolean;
|
|
2654
2757
|
};
|
|
2655
|
-
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$
|
|
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$X & {
|
|
2656
2759
|
ref?: Ref<ElementRef<"input">>;
|
|
2657
2760
|
}) => react_jsx_runtime.JSX.Element;
|
|
2658
2761
|
|
|
2659
2762
|
type InputGroupProps$1 = Pick<ComponentProps<typeof InputGroup>, 'variant' | 'focusVariant' | 'state' | 'sizing'>;
|
|
2660
2763
|
type InputGroupInputProps$1 = Omit<ComponentProps<typeof InputGroup.Input>, 'value' | 'defaultValue' | 'type'>;
|
|
2661
|
-
type Props$
|
|
2764
|
+
type Props$W = InputGroupProps$1 & InputGroupInputProps$1 & {
|
|
2662
2765
|
value?: string | null;
|
|
2663
2766
|
defaultValue?: string | null;
|
|
2664
2767
|
onValueChange?: (value: string | null) => void;
|
|
2665
2768
|
onValueBlur?: (value: string | null) => void;
|
|
2666
2769
|
allowClear?: boolean;
|
|
2667
2770
|
};
|
|
2668
|
-
declare const TimeInput: ({ ref, state, variant, focusVariant, sizing, className, value: valueProp, defaultValue, onValueChange, onValueBlur, onChange, onBlur, allowClear, disabled, readOnly, placeholder, ...restInputProps }: Props$
|
|
2771
|
+
declare const TimeInput: ({ ref, state, variant, focusVariant, sizing, className, value: valueProp, defaultValue, onValueChange, onValueBlur, onChange, onBlur, allowClear, disabled, readOnly, placeholder, ...restInputProps }: Props$W & {
|
|
2669
2772
|
ref?: Ref<ElementRef<"input">>;
|
|
2670
2773
|
}) => react_jsx_runtime.JSX.Element;
|
|
2671
2774
|
|
|
@@ -2678,8 +2781,8 @@ type RootOwnProps = {
|
|
|
2678
2781
|
sizing?: OtpInputSizing;
|
|
2679
2782
|
containerClassName?: string;
|
|
2680
2783
|
};
|
|
2681
|
-
type RootProps$
|
|
2682
|
-
declare const OtpInput: (({ ref, sizing, pattern, containerClassName, className, children, "aria-invalid": ariaInvalid, ...rest }: RootProps$
|
|
2784
|
+
type RootProps$7 = OtpElementChildrenProps & RootOwnProps;
|
|
2785
|
+
declare const OtpInput: (({ ref, sizing, pattern, containerClassName, className, children, "aria-invalid": ariaInvalid, ...rest }: RootProps$7 & {
|
|
2683
2786
|
ref?: Ref<HTMLInputElement>;
|
|
2684
2787
|
}) => react_jsx_runtime.JSX.Element) & {
|
|
2685
2788
|
Group: ({ ref, className, ...props }: react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement> & {
|
|
@@ -2703,7 +2806,7 @@ type InputGroupInputProps = Omit<ComponentProps<typeof InputGroup.Input>, 'value
|
|
|
2703
2806
|
* is treated as "not provided" — the component falls back to `defaultValue` (or, if absent, internal
|
|
2704
2807
|
* state initialized to empty). `value={""}` is controlled-empty.
|
|
2705
2808
|
*/
|
|
2706
|
-
type Props$
|
|
2809
|
+
type Props$V = InputGroupProps & InputGroupInputProps & {
|
|
2707
2810
|
value?: string | null;
|
|
2708
2811
|
defaultValue?: string | null;
|
|
2709
2812
|
/** 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`. */
|
|
@@ -2732,7 +2835,7 @@ type Props$U = InputGroupProps & InputGroupInputProps & {
|
|
|
2732
2835
|
*
|
|
2733
2836
|
* @see RECIPES.md#filter-toolbar — for the search + filter chips toolbar pattern
|
|
2734
2837
|
*/
|
|
2735
|
-
declare const SearchInput: ({ ref, state, variant, focusVariant, sizing, className, value: valueProp, defaultValue, onValueChange, onValueBlur, onChange, onBlur, onClear, allowClear, disableDebounce, debounceDelay, disabled, readOnly, ...restInputProps }: Props$
|
|
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$V & {
|
|
2736
2839
|
ref?: Ref<ElementRef<"input">>;
|
|
2737
2840
|
}) => react_jsx_runtime.JSX.Element;
|
|
2738
2841
|
|
|
@@ -2757,15 +2860,15 @@ declare const addonVariants: (props?: ({
|
|
|
2757
2860
|
align?: "inline-start" | "inline-end" | null | undefined;
|
|
2758
2861
|
variant?: "inline" | "floating" | null | undefined;
|
|
2759
2862
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
2760
|
-
type Props$
|
|
2761
|
-
declare const BadgeAddon: ({ ref, align, variant, className, ...rest }: Props$
|
|
2863
|
+
type Props$U = ComponentProps<'div'> & VariantProps<typeof addonVariants>;
|
|
2864
|
+
declare const BadgeAddon: ({ ref, align, variant, className, ...rest }: Props$U & {
|
|
2762
2865
|
ref?: Ref<ElementRef<"div">>;
|
|
2763
2866
|
}) => react_jsx_runtime.JSX.Element;
|
|
2764
2867
|
|
|
2765
|
-
type Props$
|
|
2868
|
+
type Props$T = ComponentProps<'span'> & {
|
|
2766
2869
|
asChild?: boolean;
|
|
2767
2870
|
};
|
|
2768
|
-
declare const BadgeLabel: ({ ref, className, asChild, ...rest }: Props$
|
|
2871
|
+
declare const BadgeLabel: ({ ref, className, asChild, ...rest }: Props$T & {
|
|
2769
2872
|
ref?: Ref<ElementRef<"span">>;
|
|
2770
2873
|
}) => react_jsx_runtime.JSX.Element;
|
|
2771
2874
|
|
|
@@ -2774,8 +2877,8 @@ declare const badgeRootVariants: (props?: ({
|
|
|
2774
2877
|
color?: "orange" | "blue" | "red" | "green" | "gray" | "cyan" | "purple" | "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;
|
|
2775
2878
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
2776
2879
|
|
|
2777
|
-
type Props$
|
|
2778
|
-
declare const BadgeRoot: ({ ref, variant, color, className, children, ...rest }: Props$
|
|
2880
|
+
type Props$S = ComponentProps<'div'> & VariantProps<typeof badgeRootVariants>;
|
|
2881
|
+
declare const BadgeRoot: ({ ref, variant, color, className, children, ...rest }: Props$S & {
|
|
2779
2882
|
ref?: Ref<ElementRef<"div">>;
|
|
2780
2883
|
}) => react_jsx_runtime.JSX.Element;
|
|
2781
2884
|
|
|
@@ -2787,14 +2890,14 @@ type BadgeLabelProps = ComponentProps<typeof BadgeLabel>;
|
|
|
2787
2890
|
* `amber` = caution, `purple/cyan/teal/blue/gray` for decorative tags) — colours stay fixed across brand themes.
|
|
2788
2891
|
* Pass `prefix` / `suffix` for icon-style addons.
|
|
2789
2892
|
*/
|
|
2790
|
-
type Props$
|
|
2893
|
+
type Props$R = Pick<BadgeRootProps, 'variant' | 'color'> & Omit<BadgeLabelProps, 'prefix'> & {
|
|
2791
2894
|
prefix?: ReactNode;
|
|
2792
2895
|
prefixVariant?: AddonVariant;
|
|
2793
2896
|
suffix?: ReactNode;
|
|
2794
2897
|
suffixVariant?: AddonVariant;
|
|
2795
2898
|
labelClassName?: string;
|
|
2796
2899
|
};
|
|
2797
|
-
declare const Badge: (({ ref, variant, color, prefix, prefixVariant, suffix, suffixVariant, className, labelClassName, ...labelProps }: Props$
|
|
2900
|
+
declare const Badge: (({ ref, variant, color, prefix, prefixVariant, suffix, suffixVariant, className, labelClassName, ...labelProps }: Props$R & {
|
|
2798
2901
|
ref?: Ref<ElementRef<"span">>;
|
|
2799
2902
|
}) => react_jsx_runtime.JSX.Element) & {
|
|
2800
2903
|
Root: ({ ref, variant, color, className, children, ...rest }: (react.ClassAttributes<HTMLDivElement> & react.HTMLAttributes<HTMLDivElement> & class_variance_authority.VariantProps<(props?: ({
|
|
@@ -2826,45 +2929,45 @@ type TagOption = {
|
|
|
2826
2929
|
disabled?: boolean;
|
|
2827
2930
|
};
|
|
2828
2931
|
|
|
2829
|
-
type Props$
|
|
2932
|
+
type Props$Q = {
|
|
2830
2933
|
onCreate?: (search: string) => void;
|
|
2831
2934
|
} & Pick<ComponentProps<typeof Command.Item>, 'value'>;
|
|
2832
|
-
declare const TagSelectCreateItem: ({ onCreate, value }: Props$
|
|
2935
|
+
declare const TagSelectCreateItem: ({ onCreate, value }: Props$Q) => react_jsx_runtime.JSX.Element;
|
|
2833
2936
|
|
|
2834
|
-
type Props$
|
|
2937
|
+
type Props$P = {
|
|
2835
2938
|
value: string[];
|
|
2836
2939
|
onAdd?: (selected: string[]) => void;
|
|
2837
2940
|
};
|
|
2838
|
-
declare const TagSelectValue: ({ value, onAdd }: Props$
|
|
2941
|
+
declare const TagSelectValue: ({ value, onAdd }: Props$P) => react_jsx_runtime.JSX.Element;
|
|
2839
2942
|
|
|
2840
|
-
type Props$
|
|
2943
|
+
type Props$O = {
|
|
2841
2944
|
options?: TagOption[];
|
|
2842
2945
|
} & Pick<ComponentProps<typeof TagSelectValue>, 'onAdd'> & Pick<ComponentProps<typeof TagSelectCreateItem>, 'onCreate'>;
|
|
2843
|
-
declare const TagSelectList: ({ options, onAdd, onCreate }: Props$
|
|
2946
|
+
declare const TagSelectList: ({ options, onAdd, onCreate }: Props$O) => react_jsx_runtime.JSX.Element;
|
|
2844
2947
|
|
|
2845
|
-
type Props$
|
|
2948
|
+
type Props$N = {
|
|
2846
2949
|
children: ReactNode;
|
|
2847
2950
|
} & ComponentProps<typeof TagSelectList>;
|
|
2848
|
-
declare const TagSelectPopover: ({ children, onAdd, options, onCreate }: Props$
|
|
2951
|
+
declare const TagSelectPopover: ({ children, onAdd, options, onCreate }: Props$N) => react_jsx_runtime.JSX.Element;
|
|
2849
2952
|
|
|
2850
2953
|
type OnValueChangeHandler = (value: {
|
|
2851
2954
|
action: 'add' | 'remove';
|
|
2852
2955
|
tags: TagOption[];
|
|
2853
2956
|
allTags: TagOption[];
|
|
2854
2957
|
}) => void;
|
|
2855
|
-
type Props$
|
|
2958
|
+
type Props$M = {
|
|
2856
2959
|
value?: TagOption[];
|
|
2857
2960
|
onValueChange: OnValueChangeHandler;
|
|
2858
2961
|
disabled?: boolean;
|
|
2859
2962
|
} & Pick<ComponentProps<typeof TagSelectPopover>, 'options' | 'onCreate'>;
|
|
2860
|
-
declare const Tagger: ({ options, value, onCreate, onValueChange, disabled, }: Props$
|
|
2963
|
+
declare const Tagger: ({ options, value, onCreate, onValueChange, disabled, }: Props$M) => react_jsx_runtime.JSX.Element | null;
|
|
2861
2964
|
|
|
2862
2965
|
/**
|
|
2863
2966
|
* Props for `FileUpload`. The component is uncontrolled with respect to the file
|
|
2864
2967
|
* list — the caller owns the selected `File[]` and updates it from `onFilesChange`.
|
|
2865
2968
|
* `FileUpload` only signals drop events; it does not store the file array.
|
|
2866
2969
|
*/
|
|
2867
|
-
type Props$
|
|
2970
|
+
type Props$L = {
|
|
2868
2971
|
/** MIME / extension filter passed straight to react-dropzone. */
|
|
2869
2972
|
accept?: Accept;
|
|
2870
2973
|
/** Max size per file, in bytes. Oversized files are rejected and surface in `onFilesRejected`. */
|
|
@@ -2883,7 +2986,7 @@ type Props$K = {
|
|
|
2883
2986
|
forcedState?: 'idle' | 'dragging' | 'error';
|
|
2884
2987
|
children: ReactNode;
|
|
2885
2988
|
} & Omit<HTMLAttributes<HTMLDivElement>, 'children' | 'onDrop'>;
|
|
2886
|
-
declare const FileUpload: (({ accept, maxSize, maxFiles, multiple, disabled, onFilesChange, onFilesRejected, forcedState, children, className, ...rest }: Props$
|
|
2989
|
+
declare const FileUpload: (({ accept, maxSize, maxFiles, multiple, disabled, onFilesChange, onFilesRejected, forcedState, children, className, ...rest }: Props$L) => react_jsx_runtime.JSX.Element) & {
|
|
2887
2990
|
DropZone: ({ children, className, ...rest }: {
|
|
2888
2991
|
children?: ReactNode;
|
|
2889
2992
|
} & Omit<HTMLAttributes<HTMLDivElement>, "children">) => react_jsx_runtime.JSX.Element;
|
|
@@ -4186,7 +4289,7 @@ declare const FormGroup: {
|
|
|
4186
4289
|
variant?: "primary" | "secondary" | null | undefined;
|
|
4187
4290
|
form?: string | undefined | undefined;
|
|
4188
4291
|
slot?: string | undefined | undefined;
|
|
4189
|
-
style?: (Omit<react.CSSProperties, "
|
|
4292
|
+
style?: (Omit<react.CSSProperties, "minHeight" | "maxHeight"> & {
|
|
4190
4293
|
height?: number;
|
|
4191
4294
|
}) | undefined;
|
|
4192
4295
|
title?: string | undefined | undefined;
|
|
@@ -4491,43 +4594,43 @@ declare const FormGroup: {
|
|
|
4491
4594
|
declare const helpVariants: (props?: ({
|
|
4492
4595
|
state?: "warning" | "default" | null | undefined;
|
|
4493
4596
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
4494
|
-
type Props$
|
|
4495
|
-
declare const HelpBlock: ({ children, className, state, ...rest }: Props$
|
|
4597
|
+
type Props$K = ComponentPropsWithRef<'p'> & VariantProps<typeof helpVariants>;
|
|
4598
|
+
declare const HelpBlock: ({ children, className, state, ...rest }: Props$K) => react_jsx_runtime.JSX.Element | null;
|
|
4496
4599
|
|
|
4497
4600
|
type AnswerItem = {
|
|
4498
4601
|
question: string;
|
|
4499
4602
|
answer?: string;
|
|
4500
4603
|
};
|
|
4501
4604
|
type Variant$5 = 'success' | 'dismissed';
|
|
4502
|
-
type Props$
|
|
4605
|
+
type Props$J = {
|
|
4503
4606
|
items: readonly AnswerItem[];
|
|
4504
4607
|
variant?: Variant$5;
|
|
4505
4608
|
noAnswerLabel?: string;
|
|
4506
4609
|
};
|
|
4507
|
-
declare const AnswerSummary: ({ items, variant, noAnswerLabel, }: Props$
|
|
4610
|
+
declare const AnswerSummary: ({ items, variant, noAnswerLabel, }: Props$J) => react_jsx_runtime.JSX.Element;
|
|
4508
4611
|
|
|
4509
4612
|
type Variant$4 = 'success' | 'error' | 'processing' | 'dismissed';
|
|
4510
|
-
type Props$
|
|
4613
|
+
type Props$I = {
|
|
4511
4614
|
isExpanded: boolean;
|
|
4512
4615
|
onToggle: () => void;
|
|
4513
4616
|
label: ReactNode;
|
|
4514
4617
|
variant?: Variant$4;
|
|
4515
4618
|
};
|
|
4516
|
-
declare const CollapsibleStepHeader: ({ isExpanded, onToggle, label, variant, }: Props$
|
|
4619
|
+
declare const CollapsibleStepHeader: ({ isExpanded, onToggle, label, variant, }: Props$I) => react_jsx_runtime.JSX.Element;
|
|
4517
4620
|
|
|
4518
|
-
type Props$
|
|
4621
|
+
type Props$H = {
|
|
4519
4622
|
children: ReactNode;
|
|
4520
4623
|
};
|
|
4521
|
-
declare const InlineStepDetail: ({ children }: Props$
|
|
4624
|
+
declare const InlineStepDetail: ({ children }: Props$H) => react_jsx_runtime.JSX.Element;
|
|
4522
4625
|
|
|
4523
4626
|
type Variant$3 = 'processing' | 'success' | 'error' | 'dismissed';
|
|
4524
|
-
type Props$
|
|
4627
|
+
type Props$G = {
|
|
4525
4628
|
variant: Variant$3;
|
|
4526
4629
|
children: ReactNode;
|
|
4527
4630
|
};
|
|
4528
|
-
declare const InlineStepLabel: ({ variant, children }: Props$
|
|
4631
|
+
declare const InlineStepLabel: ({ variant, children }: Props$G) => react_jsx_runtime.JSX.Element;
|
|
4529
4632
|
|
|
4530
|
-
type Props$
|
|
4633
|
+
type Props$F = {
|
|
4531
4634
|
/** Markdown source (GFM: tables, task lists, strikethrough, autolinks). Tables
|
|
4532
4635
|
* render through the design `Table`; fenced ```mermaid blocks render via
|
|
4533
4636
|
* `MermaidDiagram`; other fenced blocks get a hover copy button. */
|
|
@@ -4539,9 +4642,9 @@ type Props$E = {
|
|
|
4539
4642
|
* `MessageBubble` to render an assistant message body. Code blocks expose a
|
|
4540
4643
|
* copy button, so mount a `TooltipProvider` once at the app root.
|
|
4541
4644
|
*/
|
|
4542
|
-
declare const Markdown: ({ children, className }: Props$
|
|
4645
|
+
declare const Markdown: ({ children, className }: Props$F) => react_jsx_runtime.JSX.Element;
|
|
4543
4646
|
|
|
4544
|
-
type Props$
|
|
4647
|
+
type Props$E = {
|
|
4545
4648
|
user?: {
|
|
4546
4649
|
name: string | undefined;
|
|
4547
4650
|
email: string | undefined;
|
|
@@ -4551,17 +4654,17 @@ type Props$D = {
|
|
|
4551
4654
|
size?: number;
|
|
4552
4655
|
variant?: 'circle' | 'rounded';
|
|
4553
4656
|
} & ComponentProps<'span'>;
|
|
4554
|
-
declare const Avatar: ({ ref, user, fallback, size, className, variant, ...props }: Props$
|
|
4657
|
+
declare const Avatar: ({ ref, user, fallback, size, className, variant, ...props }: Props$E & {
|
|
4555
4658
|
ref?: Ref<ElementRef<"span">>;
|
|
4556
4659
|
}) => react_jsx_runtime.JSX.Element;
|
|
4557
4660
|
|
|
4558
|
-
type Props$
|
|
4661
|
+
type Props$D = {
|
|
4559
4662
|
variant: 'user' | 'assistant';
|
|
4560
4663
|
user?: ComponentProps<typeof Avatar>['user'];
|
|
4561
4664
|
actions?: ReactNode;
|
|
4562
4665
|
createdAt?: string;
|
|
4563
4666
|
} & PropsWithChildren;
|
|
4564
|
-
declare const MessageBubble: ({ variant, children, user, actions, createdAt }: Props$
|
|
4667
|
+
declare const MessageBubble: ({ variant, children, user, actions, createdAt }: Props$D) => react_jsx_runtime.JSX.Element;
|
|
4565
4668
|
|
|
4566
4669
|
type PlanApprovalStatus = 'pending' | 'approved' | 'dismissed' | 'changes-requested';
|
|
4567
4670
|
type PlanApprovalProps = {
|
|
@@ -4609,17 +4712,17 @@ type PromptCommand = {
|
|
|
4609
4712
|
};
|
|
4610
4713
|
|
|
4611
4714
|
type SubmitStatus = 'submitted' | 'ready' | 'streaming' | 'interrupted';
|
|
4612
|
-
type Props$
|
|
4715
|
+
type Props$C = Pick<ComponentProps<typeof Button>, 'disabled'> & {
|
|
4613
4716
|
status?: SubmitStatus;
|
|
4614
4717
|
};
|
|
4615
|
-
declare const PromptInputSubmit: ({ ref, disabled, status, }: Props$
|
|
4718
|
+
declare const PromptInputSubmit: ({ ref, disabled, status, }: Props$C & {
|
|
4616
4719
|
ref?: Ref<ElementRef<"button">>;
|
|
4617
4720
|
}) => react_jsx_runtime.JSX.Element;
|
|
4618
4721
|
|
|
4619
4722
|
declare const promptInputVariants: (props?: ({
|
|
4620
4723
|
variant?: "inline" | "default" | null | undefined;
|
|
4621
4724
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
4622
|
-
type Props$
|
|
4725
|
+
type Props$B = {
|
|
4623
4726
|
onSend?: (value: string) => void;
|
|
4624
4727
|
onAbort?: () => void;
|
|
4625
4728
|
onContinue?: () => void;
|
|
@@ -4633,7 +4736,7 @@ type Props$A = {
|
|
|
4633
4736
|
commands?: PromptCommand[];
|
|
4634
4737
|
} & VariantProps<typeof promptInputVariants> & Pick<ComponentProps<typeof react_textarea_autosize__default>, 'placeholder' | 'minRows' | 'maxRows' | 'disabled' | 'defaultValue' | 'autoFocus'> & ComponentProps<typeof PromptInputSubmit>;
|
|
4635
4738
|
declare const PromptInput: {
|
|
4636
|
-
({ onSend, onAbort, onContinue, prefix, variant, suffix, disabled, disableSubmit, value, onValueChange, status, maxRows, minRows, commands, ...textareaProps }: Props$
|
|
4739
|
+
({ onSend, onAbort, onContinue, prefix, variant, suffix, disabled, disableSubmit, value, onValueChange, status, maxRows, minRows, commands, ...textareaProps }: Props$B): react_jsx_runtime.JSX.Element;
|
|
4637
4740
|
Action: ({ ref, onMouseDown, ...rest }: react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement> & {
|
|
4638
4741
|
ref?: react.Ref<ElementRef<"button">>;
|
|
4639
4742
|
}) => react_jsx_runtime.JSX.Element;
|
|
@@ -4645,7 +4748,7 @@ type QuestionOption = {
|
|
|
4645
4748
|
description?: string;
|
|
4646
4749
|
preview?: string;
|
|
4647
4750
|
};
|
|
4648
|
-
type Props$
|
|
4751
|
+
type Props$A = {
|
|
4649
4752
|
question: string;
|
|
4650
4753
|
header?: string;
|
|
4651
4754
|
options: readonly QuestionOption[];
|
|
@@ -4668,7 +4771,7 @@ type Props$z = {
|
|
|
4668
4771
|
renderPreview?: (content: string) => ReactNode;
|
|
4669
4772
|
className?: string;
|
|
4670
4773
|
};
|
|
4671
|
-
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$
|
|
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$A) => react_jsx_runtime.JSX.Element;
|
|
4672
4775
|
|
|
4673
4776
|
type QuestionStep = {
|
|
4674
4777
|
question: string;
|
|
@@ -4682,7 +4785,7 @@ type QuestionAnswers = {
|
|
|
4682
4785
|
selections: Record<number, readonly string[]>;
|
|
4683
4786
|
customAnswers: Record<number, string>;
|
|
4684
4787
|
};
|
|
4685
|
-
type Props$
|
|
4788
|
+
type Props$z = {
|
|
4686
4789
|
steps: readonly [QuestionStep, ...QuestionStep[]];
|
|
4687
4790
|
showSkip?: boolean;
|
|
4688
4791
|
onSubmit?: (answers: QuestionAnswers) => void;
|
|
@@ -4690,16 +4793,16 @@ type Props$y = {
|
|
|
4690
4793
|
renderPreview?: (content: string) => ReactNode;
|
|
4691
4794
|
className?: string;
|
|
4692
4795
|
};
|
|
4693
|
-
declare const QuestionBlock: ({ steps, showSkip, onSubmit, onClose, renderPreview, className, }: Props$
|
|
4796
|
+
declare const QuestionBlock: ({ steps, showSkip, onSubmit, onClose, renderPreview, className, }: Props$z) => react_jsx_runtime.JSX.Element;
|
|
4694
4797
|
|
|
4695
|
-
type Props$
|
|
4798
|
+
type Props$y = {
|
|
4696
4799
|
label: string;
|
|
4697
4800
|
disabled?: boolean;
|
|
4698
4801
|
onClick: () => void;
|
|
4699
4802
|
icon?: ReactNode;
|
|
4700
4803
|
className?: string;
|
|
4701
4804
|
};
|
|
4702
|
-
declare const SuggestedPrompt: ({ label, disabled, onClick, icon, className }: Props$
|
|
4805
|
+
declare const SuggestedPrompt: ({ label, disabled, onClick, icon, className }: Props$y) => react_jsx_runtime.JSX.Element;
|
|
4703
4806
|
|
|
4704
4807
|
type ThinkingIndicatorProps = {
|
|
4705
4808
|
label?: string;
|
|
@@ -4758,7 +4861,7 @@ type ToolCallChipProps = {
|
|
|
4758
4861
|
*/
|
|
4759
4862
|
declare const ToolCallChip: ({ label, state, icon, trailing, onClick, className, }: ToolCallChipProps) => react_jsx_runtime.JSX.Element;
|
|
4760
4863
|
|
|
4761
|
-
type Props$
|
|
4864
|
+
type Props$x = {
|
|
4762
4865
|
value: number;
|
|
4763
4866
|
alert?: boolean;
|
|
4764
4867
|
children: ReactNode;
|
|
@@ -4772,19 +4875,19 @@ type Props$w = {
|
|
|
4772
4875
|
side?: ComponentProps<typeof HoverCard.Content>['side'];
|
|
4773
4876
|
sideOffset?: ComponentProps<typeof HoverCard.Content>['sideOffset'];
|
|
4774
4877
|
};
|
|
4775
|
-
declare const UsageStats: ({ value, alert, children, className, ariaLabel, align, side, sideOffset, }: Props$
|
|
4878
|
+
declare const UsageStats: ({ value, alert, children, className, ariaLabel, align, side, sideOffset, }: Props$x) => react_jsx_runtime.JSX.Element;
|
|
4776
4879
|
|
|
4777
|
-
type Props$
|
|
4880
|
+
type Props$w = {
|
|
4778
4881
|
value: number;
|
|
4779
4882
|
size?: number;
|
|
4780
4883
|
strokeWidth?: number;
|
|
4781
4884
|
className?: string;
|
|
4782
4885
|
};
|
|
4783
|
-
declare const UsageStatsRing: ({ value, size, strokeWidth, className }: Props$
|
|
4886
|
+
declare const UsageStatsRing: ({ value, size, strokeWidth, className }: Props$w) => react_jsx_runtime.JSX.Element;
|
|
4784
4887
|
|
|
4785
|
-
type Props$
|
|
4888
|
+
type Props$v = ComponentProps<typeof Root$9>;
|
|
4786
4889
|
declare const Collapsible: {
|
|
4787
|
-
(props: Props$
|
|
4890
|
+
(props: Props$v): react_jsx_runtime.JSX.Element;
|
|
4788
4891
|
Trigger: react.ForwardRefExoticComponent<_radix_ui_react_collapsible.CollapsibleTriggerProps & react.RefAttributes<HTMLButtonElement>>;
|
|
4789
4892
|
Content: ({ ref, className, children, ...props }: Omit<_radix_ui_react_collapsible.CollapsibleContentProps & react.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
4790
4893
|
ref?: react.Ref<react.ElementRef<react.ForwardRefExoticComponent<_radix_ui_react_collapsible.CollapsibleContentProps & react.RefAttributes<HTMLDivElement>>>>;
|
|
@@ -4792,10 +4895,10 @@ declare const Collapsible: {
|
|
|
4792
4895
|
};
|
|
4793
4896
|
|
|
4794
4897
|
type Variant$2 = 'info' | 'warning' | 'error' | 'success';
|
|
4795
|
-
type Props$
|
|
4898
|
+
type Props$u = {
|
|
4796
4899
|
variant?: Variant$2;
|
|
4797
4900
|
} & ComponentProps<'div'>;
|
|
4798
|
-
declare const AlertRoot: ({ ref, children, className, variant, ...rest }: Props$
|
|
4901
|
+
declare const AlertRoot: ({ ref, children, className, variant, ...rest }: Props$u & {
|
|
4799
4902
|
ref?: Ref<ElementRef<"div">>;
|
|
4800
4903
|
}) => react_jsx_runtime.JSX.Element;
|
|
4801
4904
|
|
|
@@ -4820,7 +4923,7 @@ type DefaultProps = {
|
|
|
4820
4923
|
* `"collapsible"` requires `title` + `children` (no `actions`) and renders a collapsible disclosure.
|
|
4821
4924
|
* `variant` (`info` | `success` | `warning` | `error`) is a categorical colour contract.
|
|
4822
4925
|
*/
|
|
4823
|
-
type Props$
|
|
4926
|
+
type Props$t = CommonProps & (CollapsibleProps | DefaultProps);
|
|
4824
4927
|
/**
|
|
4825
4928
|
* Persistent inline banner for contextual messages tied to the page layout.
|
|
4826
4929
|
*
|
|
@@ -4834,13 +4937,13 @@ type Props$s = CommonProps & (CollapsibleProps | DefaultProps);
|
|
|
4834
4937
|
*
|
|
4835
4938
|
* @see RECIPES.md#alert-with-action — for action-bearing alert composition
|
|
4836
4939
|
*/
|
|
4837
|
-
declare const Alert: ({ title, variant, children, hideIcon, icon, className, actions, mode, defaultOpen, open: openProp, onOpenChange: onOpenChangeProp, ...rest }: Props$
|
|
4940
|
+
declare const Alert: ({ title, variant, children, hideIcon, icon, className, actions, mode, defaultOpen, open: openProp, onOpenChange: onOpenChangeProp, ...rest }: Props$t) => react_jsx_runtime.JSX.Element;
|
|
4838
4941
|
|
|
4839
4942
|
declare const variants$1: (props?: ({
|
|
4840
4943
|
variant?: "success" | "warning" | "info" | "default" | "error" | null | undefined;
|
|
4841
4944
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
4842
4945
|
type Variants = VariantProps<typeof variants$1>;
|
|
4843
|
-
type Props$
|
|
4946
|
+
type Props$s = {
|
|
4844
4947
|
id: string | number;
|
|
4845
4948
|
title: ReactNode;
|
|
4846
4949
|
icon?: ReactNode;
|
|
@@ -4849,7 +4952,7 @@ type Props$r = {
|
|
|
4849
4952
|
loading?: boolean;
|
|
4850
4953
|
duration?: number;
|
|
4851
4954
|
} & Variants;
|
|
4852
|
-
declare const ToastRoot: ({ id, title, description, action, duration, variant, loading, icon: iconProp, }: Props$
|
|
4955
|
+
declare const ToastRoot: ({ id, title, description, action, duration, variant, loading, icon: iconProp, }: Props$s) => react_jsx_runtime.JSX.Element;
|
|
4853
4956
|
|
|
4854
4957
|
type ToastProps = ComponentProps<typeof ToastRoot>;
|
|
4855
4958
|
type Title = ToastProps['title'] | ((opts: {
|
|
@@ -4870,7 +4973,7 @@ declare const toast: {
|
|
|
4870
4973
|
dismissAll(): string | number;
|
|
4871
4974
|
};
|
|
4872
4975
|
|
|
4873
|
-
type Props$
|
|
4976
|
+
type Props$r = {
|
|
4874
4977
|
enabled?: boolean;
|
|
4875
4978
|
} & Parameters<typeof toast>[0];
|
|
4876
4979
|
/**
|
|
@@ -4883,22 +4986,22 @@ type Props$q = {
|
|
|
4883
4986
|
* Use `toast()` for transient feedback after a user action
|
|
4884
4987
|
* (e.g., "Saved", "Copied", "Deleted") that auto-dismisses after a few seconds.
|
|
4885
4988
|
*/
|
|
4886
|
-
declare const useNotification: ({ enabled, ...toastOptions }: Props$
|
|
4989
|
+
declare const useNotification: ({ enabled, ...toastOptions }: Props$r) => void;
|
|
4887
4990
|
|
|
4888
4991
|
type ToasterProps = ComponentProps<typeof Toaster$1>;
|
|
4889
4992
|
declare const Toaster: ({ gap, visibleToasts, ...props }: ToasterProps) => react_jsx_runtime.JSX.Element;
|
|
4890
4993
|
|
|
4891
|
-
type Props$
|
|
4994
|
+
type Props$q = {
|
|
4892
4995
|
children?: ReactNode;
|
|
4893
4996
|
};
|
|
4894
|
-
declare const EmptySearchContent: ({ children }: Props$
|
|
4997
|
+
declare const EmptySearchContent: ({ children }: Props$q) => react_jsx_runtime.JSX.Element;
|
|
4895
4998
|
|
|
4896
|
-
type Props$
|
|
4999
|
+
type Props$p = {
|
|
4897
5000
|
title: string;
|
|
4898
5001
|
children: ReactNode;
|
|
4899
5002
|
className?: string;
|
|
4900
5003
|
};
|
|
4901
|
-
declare const EmptyConfigurationActionCard: ({ title, children, className }: Props$
|
|
5004
|
+
declare const EmptyConfigurationActionCard: ({ title, children, className }: Props$p) => react_jsx_runtime.JSX.Element;
|
|
4902
5005
|
|
|
4903
5006
|
declare const emptyStateClassnames: (props?: ({
|
|
4904
5007
|
variant?: "compact" | "default" | null | undefined;
|
|
@@ -4908,7 +5011,7 @@ type Variant$1 = VariantProps<typeof emptyStateClassnames>['variant'];
|
|
|
4908
5011
|
* Props for `EmptyState`. `variant` chooses spacing — `"default"` for full-page empty states,
|
|
4909
5012
|
* `"compact"` for inside cards / small surfaces.
|
|
4910
5013
|
*/
|
|
4911
|
-
type RootProps$
|
|
5014
|
+
type RootProps$6 = ComponentProps<'div'> & VariantProps<typeof emptyStateClassnames> & {
|
|
4912
5015
|
variant?: Variant$1;
|
|
4913
5016
|
};
|
|
4914
5017
|
/**
|
|
@@ -4923,23 +5026,23 @@ type RootProps$3 = ComponentProps<'div'> & VariantProps<typeof emptyStateClassna
|
|
|
4923
5026
|
*
|
|
4924
5027
|
* @see RECIPES.md#card-with-empty-state — for the empty-card pattern
|
|
4925
5028
|
*/
|
|
4926
|
-
declare const EmptyStateRoot: ({ className, variant, children, ...rest }: RootProps$
|
|
5029
|
+
declare const EmptyStateRoot: ({ className, variant, children, ...rest }: RootProps$6) => react_jsx_runtime.JSX.Element;
|
|
4927
5030
|
type SlotProps$2 = ComponentProps<'div'> & {
|
|
4928
5031
|
variant?: Variant$1;
|
|
4929
5032
|
};
|
|
4930
5033
|
declare const EmptyStateIcon: ({ className, variant, children, ...rest }: SlotProps$2) => react_jsx_runtime.JSX.Element;
|
|
4931
|
-
type TitleProps$
|
|
5034
|
+
type TitleProps$2 = ComponentProps<'h3'> & {
|
|
4932
5035
|
variant?: Variant$1;
|
|
4933
5036
|
};
|
|
4934
|
-
declare const EmptyStateTitle: ({ className, variant, children, ...rest }: TitleProps$
|
|
4935
|
-
type DescriptionProps$
|
|
5037
|
+
declare const EmptyStateTitle: ({ className, variant, children, ...rest }: TitleProps$2) => react_jsx_runtime.JSX.Element;
|
|
5038
|
+
type DescriptionProps$2 = ComponentProps<'p'> & {
|
|
4936
5039
|
variant?: Variant$1;
|
|
4937
5040
|
};
|
|
4938
|
-
declare const EmptyStateDescription: ({ className, variant, children, ...rest }: DescriptionProps$
|
|
4939
|
-
type ActionsProps$
|
|
5041
|
+
declare const EmptyStateDescription: ({ className, variant, children, ...rest }: DescriptionProps$2) => react_jsx_runtime.JSX.Element;
|
|
5042
|
+
type ActionsProps$2 = ComponentProps<'div'> & {
|
|
4940
5043
|
variant?: Variant$1;
|
|
4941
5044
|
};
|
|
4942
|
-
declare const EmptyStateActions: ({ className, variant, children, ...rest }: ActionsProps$
|
|
5045
|
+
declare const EmptyStateActions: ({ className, variant, children, ...rest }: ActionsProps$2) => react_jsx_runtime.JSX.Element;
|
|
4943
5046
|
declare const EmptyState: typeof EmptyStateRoot & {
|
|
4944
5047
|
Icon: typeof EmptyStateIcon;
|
|
4945
5048
|
Title: typeof EmptyStateTitle;
|
|
@@ -4955,7 +5058,7 @@ type Variant = VariantProps<typeof errorStateClassnames>['variant'];
|
|
|
4955
5058
|
* Props for `ErrorState`. `variant` chooses look — `"default"` for non-blocking errors, `"compact"` for
|
|
4956
5059
|
* inside cards, `"destructive"` for blocking failures (red title + icon).
|
|
4957
5060
|
*/
|
|
4958
|
-
type RootProps$
|
|
5061
|
+
type RootProps$5 = ComponentProps<'div'> & VariantProps<typeof errorStateClassnames> & {
|
|
4959
5062
|
variant?: Variant;
|
|
4960
5063
|
};
|
|
4961
5064
|
/**
|
|
@@ -4969,23 +5072,23 @@ type RootProps$2 = ComponentProps<'div'> & VariantProps<typeof errorStateClassna
|
|
|
4969
5072
|
* **Composition:** nest `ErrorState.Icon`, `ErrorState.Title`, `ErrorState.Description`, and
|
|
4970
5073
|
* `ErrorState.Actions`. Use `variant="destructive"` for full-page critical failures.
|
|
4971
5074
|
*/
|
|
4972
|
-
declare const ErrorStateRoot: ({ className, variant, children, ...rest }: RootProps$
|
|
5075
|
+
declare const ErrorStateRoot: ({ className, variant, children, ...rest }: RootProps$5) => react_jsx_runtime.JSX.Element;
|
|
4973
5076
|
type SlotProps$1 = ComponentProps<'div'> & {
|
|
4974
5077
|
variant?: Variant;
|
|
4975
5078
|
};
|
|
4976
5079
|
declare const ErrorStateIcon: ({ className, variant, children, ...rest }: SlotProps$1) => react_jsx_runtime.JSX.Element;
|
|
4977
|
-
type TitleProps = ComponentProps<'h3'> & {
|
|
5080
|
+
type TitleProps$1 = ComponentProps<'h3'> & {
|
|
4978
5081
|
variant?: Variant;
|
|
4979
5082
|
};
|
|
4980
|
-
declare const ErrorStateTitle: ({ className, variant, children, ...rest }: TitleProps) => react_jsx_runtime.JSX.Element;
|
|
4981
|
-
type DescriptionProps = ComponentProps<'p'> & {
|
|
5083
|
+
declare const ErrorStateTitle: ({ className, variant, children, ...rest }: TitleProps$1) => react_jsx_runtime.JSX.Element;
|
|
5084
|
+
type DescriptionProps$1 = ComponentProps<'p'> & {
|
|
4982
5085
|
variant?: Variant;
|
|
4983
5086
|
};
|
|
4984
|
-
declare const ErrorStateDescription: ({ className, variant, children, ...rest }: DescriptionProps) => react_jsx_runtime.JSX.Element;
|
|
4985
|
-
type ActionsProps = ComponentProps<'div'> & {
|
|
5087
|
+
declare const ErrorStateDescription: ({ className, variant, children, ...rest }: DescriptionProps$1) => react_jsx_runtime.JSX.Element;
|
|
5088
|
+
type ActionsProps$1 = ComponentProps<'div'> & {
|
|
4986
5089
|
variant?: Variant;
|
|
4987
5090
|
};
|
|
4988
|
-
declare const ErrorStateActions: ({ className, variant, children, ...rest }: ActionsProps) => react_jsx_runtime.JSX.Element;
|
|
5091
|
+
declare const ErrorStateActions: ({ className, variant, children, ...rest }: ActionsProps$1) => react_jsx_runtime.JSX.Element;
|
|
4989
5092
|
declare const ErrorState: typeof ErrorStateRoot & {
|
|
4990
5093
|
Icon: typeof ErrorStateIcon;
|
|
4991
5094
|
Title: typeof ErrorStateTitle;
|
|
@@ -5038,8 +5141,8 @@ declare const variants: (props?: ({
|
|
|
5038
5141
|
variant?: "success" | "default" | null | undefined;
|
|
5039
5142
|
size?: "sm" | "lg" | null | undefined;
|
|
5040
5143
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
5041
|
-
type Props$
|
|
5042
|
-
declare const Progress: ({ ref, className, value, variant, size, ...props }: Props$
|
|
5144
|
+
type Props$o = ComponentProps<typeof Root$a> & VariantProps<typeof variants>;
|
|
5145
|
+
declare const Progress: ({ ref, className, value, variant, size, ...props }: Props$o & {
|
|
5043
5146
|
ref?: Ref<ElementRef<typeof Root$a>>;
|
|
5044
5147
|
}) => react_jsx_runtime.JSX.Element;
|
|
5045
5148
|
|
|
@@ -5057,7 +5160,7 @@ type CollapseProps = {
|
|
|
5057
5160
|
/** @deprecated Use `Collapsible` instead. */
|
|
5058
5161
|
declare const Collapse: ({ open, header, className, bodyClassName, children, onClick, animationClassName, hidden, ...rest }: CollapseProps & ComponentProps<"div">) => react_jsx_runtime.JSX.Element;
|
|
5059
5162
|
|
|
5060
|
-
type Props$
|
|
5163
|
+
type Props$n = {
|
|
5061
5164
|
header: ReactNode;
|
|
5062
5165
|
isDisabled?: boolean;
|
|
5063
5166
|
defaultExpanded?: boolean;
|
|
@@ -5069,18 +5172,18 @@ type Props$m = {
|
|
|
5069
5172
|
variant?: 'default' | 'white';
|
|
5070
5173
|
children: ReactNode;
|
|
5071
5174
|
};
|
|
5072
|
-
declare const CollapsiblePanel: ({ header, className, bodyClassName, headerClassName, defaultExpanded, isDisabled, children, isOpen, onToggle, variant, }: Props$
|
|
5175
|
+
declare const CollapsiblePanel: ({ header, className, bodyClassName, headerClassName, defaultExpanded, isDisabled, children, isOpen, onToggle, variant, }: Props$n) => react_jsx_runtime.JSX.Element;
|
|
5073
5176
|
|
|
5074
|
-
type Props$
|
|
5177
|
+
type Props$m = PropsWithChildren<{
|
|
5075
5178
|
defaultExpanded?: boolean;
|
|
5076
5179
|
labelCollapse?: ReactNode;
|
|
5077
5180
|
labelOpen?: ReactNode;
|
|
5078
5181
|
placement?: 'top' | 'bottom';
|
|
5079
5182
|
className?: string;
|
|
5080
5183
|
}>;
|
|
5081
|
-
declare const PanelWithDetails: ({ defaultExpanded, labelCollapse, labelOpen, placement, children, }: Props$
|
|
5184
|
+
declare const PanelWithDetails: ({ defaultExpanded, labelCollapse, labelOpen, placement, children, }: Props$m) => react_jsx_runtime.JSX.Element;
|
|
5082
5185
|
|
|
5083
|
-
type RootProps$
|
|
5186
|
+
type RootProps$4 = ComponentPropsWithoutRef<'div'>;
|
|
5084
5187
|
type SlotProps = ComponentPropsWithoutRef<'div'> & {
|
|
5085
5188
|
/** Render as the child element (Radix-Slot pattern), forwarding props onto it. */
|
|
5086
5189
|
asChild?: boolean;
|
|
@@ -5104,7 +5207,7 @@ type SlotProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
5104
5207
|
* @see AppShell.stories.tsx — flip the Storybook brand toolbar to see the
|
|
5105
5208
|
* sidebar / top-nav geometry swap from a single composition.
|
|
5106
5209
|
*/
|
|
5107
|
-
declare const AppShell: (({ ref, className, children, ...props }: RootProps$
|
|
5210
|
+
declare const AppShell: (({ ref, className, children, ...props }: RootProps$4 & {
|
|
5108
5211
|
ref?: Ref<ElementRef<"div">>;
|
|
5109
5212
|
}) => react_jsx_runtime.JSX.Element) & {
|
|
5110
5213
|
/**
|
|
@@ -5141,7 +5244,7 @@ declare const AppShell: (({ ref, className, children, ...props }: RootProps$1 &
|
|
|
5141
5244
|
* `narrow` (976px) for forms, `default` (1280px) for most pages, `wide` (1600px) for dense detail views,
|
|
5142
5245
|
* `full` for edge-to-edge layouts.
|
|
5143
5246
|
*/
|
|
5144
|
-
type RootProps = ComponentPropsWithoutRef<'div'> & {
|
|
5247
|
+
type RootProps$3 = ComponentPropsWithoutRef<'div'> & {
|
|
5145
5248
|
maxWidth?: 'default' | 'narrow' | 'wide' | 'full';
|
|
5146
5249
|
};
|
|
5147
5250
|
type FooterProps = ComponentPropsWithoutRef<'footer'> & {
|
|
@@ -5164,7 +5267,7 @@ type FooterProps = ComponentPropsWithoutRef<'footer'> & {
|
|
|
5164
5267
|
*
|
|
5165
5268
|
* @see RECIPES.md#list-detail — for the index → detail page pattern
|
|
5166
5269
|
*/
|
|
5167
|
-
declare const PageLayout: (({ ref, className, maxWidth, children, ...props }: RootProps & {
|
|
5270
|
+
declare const PageLayout: (({ ref, className, maxWidth, children, ...props }: RootProps$3 & {
|
|
5168
5271
|
ref?: Ref<ElementRef<"div">>;
|
|
5169
5272
|
}) => react_jsx_runtime.JSX.Element) & {
|
|
5170
5273
|
/** Detail-pattern breadcrumb row. Usually composed automatically by `PageHeader.Detail` — slot exists for layouts that don't fit either `PageHeader` variant. */
|
|
@@ -5320,7 +5423,7 @@ declare const PageToolbar: (({ ref, className, children, ...props }: DivProps) =
|
|
|
5320
5423
|
Clear: ({ className, children, ...props }: ActionProps) => react_jsx_runtime.JSX.Element;
|
|
5321
5424
|
};
|
|
5322
5425
|
|
|
5323
|
-
type Props$
|
|
5426
|
+
type Props$l = {
|
|
5324
5427
|
/** `wordmark` (default, full logo) or `mark` (square icon); each falls back to the other. */
|
|
5325
5428
|
variant?: 'mark' | 'wordmark';
|
|
5326
5429
|
/** Sets the logo height; aspect ratio is preserved (e.g. `tw-h-7`). */
|
|
@@ -5330,7 +5433,7 @@ type Props$k = {
|
|
|
5330
5433
|
* Renders the active brand's logo from the nearest `<ThemeProvider>`, or `null`
|
|
5331
5434
|
* if the brand ships none. Inline SVG inherits `currentColor`; URLs use `<img>`.
|
|
5332
5435
|
*/
|
|
5333
|
-
declare const BrandLogo: ({ variant, className }: Props$
|
|
5436
|
+
declare const BrandLogo: ({ variant, className }: Props$l) => react_jsx_runtime.JSX.Element | null;
|
|
5334
5437
|
|
|
5335
5438
|
declare const ResizableHandle: ({ className, ...props }: ComponentProps<typeof Separator$1>) => react_jsx_runtime.JSX.Element;
|
|
5336
5439
|
|
|
@@ -5342,7 +5445,7 @@ type SidebarState$1 = 'expanded' | 'collapsed';
|
|
|
5342
5445
|
type SidebarCollapsible = 'icon' | 'off-canvas';
|
|
5343
5446
|
type SidebarVariant = 'sided-floating' | 'inset' | 'floating' | 'none';
|
|
5344
5447
|
|
|
5345
|
-
type Props$
|
|
5448
|
+
type Props$k = {
|
|
5346
5449
|
children: ReactNode;
|
|
5347
5450
|
className?: string;
|
|
5348
5451
|
id?: string;
|
|
@@ -5353,7 +5456,7 @@ type Props$j = {
|
|
|
5353
5456
|
resizable?: boolean;
|
|
5354
5457
|
};
|
|
5355
5458
|
declare const Sidebar: {
|
|
5356
|
-
({ children, className, id, side, style, container, keepMounted, resizable, }: Props$
|
|
5459
|
+
({ children, className, id, side, style, container, keepMounted, resizable, }: Props$k): react_jsx_runtime.JSX.Element | null;
|
|
5357
5460
|
Header: ({ className, children, ...props }: react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => react_jsx_runtime.JSX.Element;
|
|
5358
5461
|
Content: ({ ref, className, children, contentRef, }: {
|
|
5359
5462
|
className?: string;
|
|
@@ -6023,7 +6126,7 @@ declare const Sidebar: {
|
|
|
6023
6126
|
}) => react_jsx_runtime.JSX.Element;
|
|
6024
6127
|
};
|
|
6025
6128
|
|
|
6026
|
-
type Props$
|
|
6129
|
+
type Props$j = {
|
|
6027
6130
|
children?: ReactNode;
|
|
6028
6131
|
defaultLeftMode?: SidebarMode;
|
|
6029
6132
|
leftMode?: SidebarMode;
|
|
@@ -6041,7 +6144,7 @@ type Props$i = {
|
|
|
6041
6144
|
onRightWidthChange?: (width: number) => void;
|
|
6042
6145
|
defaultFilledSide?: SidebarSide | null;
|
|
6043
6146
|
};
|
|
6044
|
-
declare const SidebarProvider: ({ children, defaultLeftMode, leftMode, onLeftModeChange, defaultRightMode, rightMode, onRightModeChange, leftCollapsible, leftVariant, leftWidth, rightCollapsible, rightVariant, rightWidth, onLeftWidthChange, onRightWidthChange, defaultFilledSide, }: Props$
|
|
6147
|
+
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;
|
|
6045
6148
|
|
|
6046
6149
|
type Input = {
|
|
6047
6150
|
variant: SidebarVariant;
|
|
@@ -6057,12 +6160,12 @@ type EffectiveWidths = {
|
|
|
6057
6160
|
};
|
|
6058
6161
|
declare const calcEffectiveWidths: ({ variant, width: customWidth, collapsible, state, mode, }: Input) => EffectiveWidths;
|
|
6059
6162
|
|
|
6060
|
-
type Props$
|
|
6163
|
+
type Props$i = {
|
|
6061
6164
|
defaultMode?: SidebarMode;
|
|
6062
6165
|
mode?: SidebarMode;
|
|
6063
6166
|
onModeChange?: (state: SidebarMode) => void;
|
|
6064
6167
|
};
|
|
6065
|
-
declare const useSidebarState: ({ defaultMode, mode: modeProp, onModeChange }: Props$
|
|
6168
|
+
declare const useSidebarState: ({ defaultMode, mode: modeProp, onModeChange }: Props$i) => {
|
|
6066
6169
|
isHovered: boolean;
|
|
6067
6170
|
toggle: () => void;
|
|
6068
6171
|
setMode: (dispatch: Parameters<react.Dispatch<react.SetStateAction<"expanded" | "collapsed" | "expand-on-hover">>>[0]) => void;
|
|
@@ -6092,7 +6195,7 @@ declare const separatorVariants: (props?: ({
|
|
|
6092
6195
|
size?: "full" | "1/2" | "3/4" | null | undefined;
|
|
6093
6196
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
6094
6197
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
6095
|
-
type Props$
|
|
6198
|
+
type Props$h = VariantProps<typeof separatorVariants> & Omit<ComponentProps<typeof RSeparator.Root>, 'decorative'> & {
|
|
6096
6199
|
/**
|
|
6097
6200
|
* Optional label rendered centered between two line segments
|
|
6098
6201
|
* (typical "OR" divider). Implies `orientation="horizontal"`.
|
|
@@ -6100,12 +6203,12 @@ type Props$g = VariantProps<typeof separatorVariants> & Omit<ComponentProps<type
|
|
|
6100
6203
|
*/
|
|
6101
6204
|
label?: ReactNode;
|
|
6102
6205
|
};
|
|
6103
|
-
declare const Separator: ({ className, orientation, size, label, ...props }: Props$
|
|
6206
|
+
declare const Separator: ({ className, orientation, size, label, ...props }: Props$h) => react_jsx_runtime.JSX.Element;
|
|
6104
6207
|
|
|
6105
6208
|
declare const navbarClassnames: (props?: ({
|
|
6106
6209
|
bordered?: boolean | null | undefined;
|
|
6107
6210
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
6108
|
-
type Props$
|
|
6211
|
+
type Props$g = ComponentProps<'nav'> & VariantProps<typeof navbarClassnames> & {
|
|
6109
6212
|
accent?: 'blue' | 'purple' | 'green' | 'orange';
|
|
6110
6213
|
};
|
|
6111
6214
|
/**
|
|
@@ -6123,7 +6226,7 @@ type Props$f = ComponentProps<'nav'> & VariantProps<typeof navbarClassnames> & {
|
|
|
6123
6226
|
* @see AppShell — pair with `AppShell.Header`; the sidebar rail uses `Sidebar` instead.
|
|
6124
6227
|
*/
|
|
6125
6228
|
declare const Navbar: {
|
|
6126
|
-
({ className, accent, bordered, ...rest }: Props$
|
|
6229
|
+
({ className, accent, bordered, ...rest }: Props$g): react_jsx_runtime.JSX.Element;
|
|
6127
6230
|
Header: ({ children, className, ...rest }: react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => react_jsx_runtime.JSX.Element;
|
|
6128
6231
|
Footer: ({ children, className, ...rest }: react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => react_jsx_runtime.JSX.Element;
|
|
6129
6232
|
Content: ({ children, className }: {
|
|
@@ -6157,9 +6260,9 @@ declare const Navbar: {
|
|
|
6157
6260
|
}) => react_jsx_runtime.JSX.Element;
|
|
6158
6261
|
};
|
|
6159
6262
|
|
|
6160
|
-
type Props$
|
|
6263
|
+
type Props$f = ComponentProps<'nav'>;
|
|
6161
6264
|
declare const Breadcrumb: {
|
|
6162
|
-
({ className, ...props }: Props$
|
|
6265
|
+
({ className, ...props }: Props$f): react_jsx_runtime.JSX.Element;
|
|
6163
6266
|
List: ({ className, ...props }: react.DetailedHTMLProps<react.OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>) => react_jsx_runtime.JSX.Element;
|
|
6164
6267
|
Item: ({ className, ...props }: react.DetailedHTMLProps<react.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>) => react_jsx_runtime.JSX.Element;
|
|
6165
6268
|
Link: ({ ref, asChild, className, ...props }: (react.ClassAttributes<HTMLAnchorElement> & react.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
@@ -6215,7 +6318,7 @@ type Trigger<T extends string> = {
|
|
|
6215
6318
|
title: ReactNode;
|
|
6216
6319
|
onClose?: (value: T) => void;
|
|
6217
6320
|
} & Omit<RadixTabs.TabsTriggerProps, 'title' | 'asChild'>;
|
|
6218
|
-
type Props$
|
|
6321
|
+
type Props$e<T extends string> = {
|
|
6219
6322
|
triggers: readonly Trigger<T>[];
|
|
6220
6323
|
compact?: boolean;
|
|
6221
6324
|
children: ReactNode;
|
|
@@ -6226,7 +6329,7 @@ type Props$d<T extends string> = {
|
|
|
6226
6329
|
triggerClassName?: string;
|
|
6227
6330
|
triggerGroupClassName?: string;
|
|
6228
6331
|
} & Omit<RadixTabs.TabsProps, 'onValueChange'>;
|
|
6229
|
-
declare const Tabs: <T extends string>({ triggers, compact, children, defaultValue, onValueChange, rootClassName, listClassName, triggerClassName, triggerGroupClassName, ...rest }: Props$
|
|
6332
|
+
declare const Tabs: <T extends string>({ triggers, compact, children, defaultValue, onValueChange, rootClassName, listClassName, triggerClassName, triggerGroupClassName, ...rest }: Props$e<T>) => react_jsx_runtime.JSX.Element;
|
|
6230
6333
|
|
|
6231
6334
|
declare const TabsContent: (props: RadixTabs.TabsContentProps) => react_jsx_runtime.JSX.Element;
|
|
6232
6335
|
|
|
@@ -6243,7 +6346,7 @@ declare const stepperVariants: (props?: ({
|
|
|
6243
6346
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
6244
6347
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
6245
6348
|
|
|
6246
|
-
type Props$
|
|
6349
|
+
type Props$d = {
|
|
6247
6350
|
/** Layout direction. Defaults to `horizontal`. */
|
|
6248
6351
|
orientation?: StepperOrientation;
|
|
6249
6352
|
/**
|
|
@@ -6265,7 +6368,7 @@ type Props$c = {
|
|
|
6265
6368
|
* otherwise the stepper is visual only. Each step's `status` prop drives the indicator + connector colour.
|
|
6266
6369
|
*/
|
|
6267
6370
|
declare const Stepper: {
|
|
6268
|
-
({ orientation, onStepClick, children, className, ...props }: Props$
|
|
6371
|
+
({ orientation, onStepClick, children, className, ...props }: Props$d): react_jsx_runtime.JSX.Element;
|
|
6269
6372
|
Step: ({ status, children, className, ...props }: {
|
|
6270
6373
|
status?: StepStatus;
|
|
6271
6374
|
children: ReactNode;
|
|
@@ -6283,19 +6386,21 @@ declare const cardClassnames: (props?: ({
|
|
|
6283
6386
|
padding?: "none" | "medium" | "small" | "large" | null | undefined;
|
|
6284
6387
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
6285
6388
|
|
|
6286
|
-
type Props$
|
|
6389
|
+
type Props$c = HTMLAttributes<HTMLDivElement> & VariantProps<typeof cardClassnames>;
|
|
6287
6390
|
declare const Card: {
|
|
6288
|
-
({ children, className, bordered, padding, ...rest }: Props$
|
|
6391
|
+
({ children, className, bordered, padding, ...rest }: Props$c): react_jsx_runtime.JSX.Element;
|
|
6289
6392
|
Header: ({ children, ...rest }: HTMLAttributes<HTMLDivElement>) => react_jsx_runtime.JSX.Element;
|
|
6290
6393
|
Content: ({ children, ...rest }: HTMLAttributes<HTMLDivElement>) => react_jsx_runtime.JSX.Element;
|
|
6291
|
-
Title: ({ children, className, ...rest }: HTMLAttributes<HTMLHeadingElement>
|
|
6394
|
+
Title: ({ children, className, as: Tag, ...rest }: HTMLAttributes<HTMLHeadingElement> & {
|
|
6395
|
+
as?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
6396
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
6292
6397
|
};
|
|
6293
6398
|
|
|
6294
6399
|
/**
|
|
6295
6400
|
* Props for `Table`. `borderCollapsed` toggles standard collapsed borders vs separate row spacing;
|
|
6296
6401
|
* `bordered` wraps the table in a rounded bordered container with overflow scrolling.
|
|
6297
6402
|
*/
|
|
6298
|
-
type Props$
|
|
6403
|
+
type Props$b = {
|
|
6299
6404
|
borderCollapsed?: boolean;
|
|
6300
6405
|
bordered?: boolean;
|
|
6301
6406
|
containerClassName?: string;
|
|
@@ -6314,7 +6419,7 @@ type Props$a = {
|
|
|
6314
6419
|
* @see RECIPES.md#list-detail — for a list-table + row-click-to-detail pattern
|
|
6315
6420
|
*/
|
|
6316
6421
|
declare const Table: {
|
|
6317
|
-
({ borderCollapsed, bordered, containerClassName, className, ...props }: Props$
|
|
6422
|
+
({ borderCollapsed, bordered, containerClassName, className, ...props }: Props$b): react_jsx_runtime.JSX.Element;
|
|
6318
6423
|
Header: ({ withShadow, className, ...props }: {
|
|
6319
6424
|
withShadow?: boolean;
|
|
6320
6425
|
} & ComponentProps<"thead">) => react_jsx_runtime.JSX.Element;
|
|
@@ -6329,11 +6434,11 @@ declare const Table: {
|
|
|
6329
6434
|
Footer: ({ className, ...props }: ComponentProps<"tfoot">) => react_jsx_runtime.JSX.Element;
|
|
6330
6435
|
};
|
|
6331
6436
|
|
|
6332
|
-
type Props$
|
|
6437
|
+
type Props$a = ComponentProps<'ul'> & {
|
|
6333
6438
|
variant?: 'solid' | 'dashed';
|
|
6334
6439
|
};
|
|
6335
6440
|
declare const Timeline: {
|
|
6336
|
-
({ className, variant, ...rest }: Props$
|
|
6441
|
+
({ className, variant, ...rest }: Props$a): react_jsx_runtime.JSX.Element;
|
|
6337
6442
|
Item: ({ className, ...rest }: react.DetailedHTMLProps<react.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>) => react_jsx_runtime.JSX.Element;
|
|
6338
6443
|
Content: ({ className, ...rest }: react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => react_jsx_runtime.JSX.Element;
|
|
6339
6444
|
Connector: ({ className, children, asChild, variant, align, offset, style, ...rest }: {
|
|
@@ -6346,25 +6451,25 @@ declare const Timeline: {
|
|
|
6346
6451
|
} & class_variance_authority_types.ClassProp) | undefined) => string>) => react_jsx_runtime.JSX.Element;
|
|
6347
6452
|
};
|
|
6348
6453
|
|
|
6349
|
-
type Props$
|
|
6454
|
+
type Props$9 = {
|
|
6350
6455
|
text: ReactNode;
|
|
6351
6456
|
tooltip?: ReactNode;
|
|
6352
6457
|
twoLines?: boolean;
|
|
6353
6458
|
noTooltip?: boolean;
|
|
6354
|
-
tooltipVariant?: Props$
|
|
6355
|
-
tooltipPlacement?: Props$
|
|
6459
|
+
tooltipVariant?: Props$1O['variant'];
|
|
6460
|
+
tooltipPlacement?: Props$1O['placement'];
|
|
6356
6461
|
} & Omit<ComponentPropsWithoutRef<'span'>, 'children'>;
|
|
6357
|
-
declare const Truncated: ({ ref, text, tooltip, className, twoLines, noTooltip, tooltipVariant, tooltipPlacement, ...rest }: Props$
|
|
6462
|
+
declare const Truncated: ({ ref, text, tooltip, className, twoLines, noTooltip, tooltipVariant, tooltipPlacement, ...rest }: Props$9 & {
|
|
6358
6463
|
ref?: Ref<ElementRef<"span">>;
|
|
6359
6464
|
}) => react_jsx_runtime.JSX.Element;
|
|
6360
6465
|
|
|
6361
|
-
type Props$
|
|
6466
|
+
type Props$8 = {
|
|
6362
6467
|
source: string;
|
|
6363
6468
|
className?: string;
|
|
6364
6469
|
mark?: string;
|
|
6365
6470
|
isCaseSensitive?: boolean;
|
|
6366
6471
|
} & ComponentProps<'span'>;
|
|
6367
|
-
declare const MarkedText: ({ ref, source, mark, isCaseSensitive, ...spanProps }: Props$
|
|
6472
|
+
declare const MarkedText: ({ ref, source, mark, isCaseSensitive, ...spanProps }: Props$8 & {
|
|
6368
6473
|
ref?: Ref<ElementRef<"span">>;
|
|
6369
6474
|
}) => react_jsx_runtime.JSX.Element;
|
|
6370
6475
|
|
|
@@ -6372,9 +6477,9 @@ declare const kbdVariants: (props?: ({
|
|
|
6372
6477
|
variant?: "primary" | "default" | null | undefined;
|
|
6373
6478
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
6374
6479
|
|
|
6375
|
-
type Props$
|
|
6480
|
+
type Props$7 = ComponentProps<'kbd'> & VariantProps<typeof kbdVariants>;
|
|
6376
6481
|
declare const Kbd: {
|
|
6377
|
-
({ children, className, variant, ...rest }: Props$
|
|
6482
|
+
({ children, className, variant, ...rest }: Props$7): react_jsx_runtime.JSX.Element;
|
|
6378
6483
|
Group: ({ ref, className, children, separator, ...props }: ({
|
|
6379
6484
|
separator?: string;
|
|
6380
6485
|
} & react.ClassAttributes<HTMLElement> & react.HTMLAttributes<HTMLElement>) & {
|
|
@@ -6390,9 +6495,9 @@ type KeyRepresentation = {
|
|
|
6390
6495
|
};
|
|
6391
6496
|
declare const keys: Record<KeyName, KeyRepresentation>;
|
|
6392
6497
|
|
|
6393
|
-
type Props$
|
|
6498
|
+
type Props$6 = ComponentProps<'nav'>;
|
|
6394
6499
|
declare const Pagination: {
|
|
6395
|
-
({ className, ...props }: Props$
|
|
6500
|
+
({ className, ...props }: Props$6): react_jsx_runtime.JSX.Element;
|
|
6396
6501
|
Content: ({ className, ...props }: react.DetailedHTMLProps<react.HTMLAttributes<HTMLUListElement>, HTMLUListElement>) => react_jsx_runtime.JSX.Element;
|
|
6397
6502
|
Item: ({ className, ...props }: react.DetailedHTMLProps<react.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>) => react_jsx_runtime.JSX.Element;
|
|
6398
6503
|
Button: ({ ref, active: isActive, className, children, size, ...props }: ({
|
|
@@ -6440,7 +6545,7 @@ declare const Pagination: {
|
|
|
6440
6545
|
Ellipsis: ({ className, ...props }: react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>) => react_jsx_runtime.JSX.Element;
|
|
6441
6546
|
};
|
|
6442
6547
|
|
|
6443
|
-
type Props$
|
|
6548
|
+
type Props$5 = {
|
|
6444
6549
|
oldValue: string;
|
|
6445
6550
|
newValue: string;
|
|
6446
6551
|
ignoreWhitespace?: boolean;
|
|
@@ -6450,7 +6555,7 @@ type Props$4 = {
|
|
|
6450
6555
|
rightTitle: ReactNode;
|
|
6451
6556
|
rightTitleGutter?: ReactNode;
|
|
6452
6557
|
};
|
|
6453
|
-
declare const DiffView: ({ leftTitle, leftTitleGutter, rightTitle, rightTitleGutter, oldValue, newValue, ignoreWhitespace, className, }: Props$
|
|
6558
|
+
declare const DiffView: ({ leftTitle, leftTitleGutter, rightTitle, rightTitleGutter, oldValue, newValue, ignoreWhitespace, className, }: Props$5) => react_jsx_runtime.JSX.Element;
|
|
6454
6559
|
|
|
6455
6560
|
declare const DiffType: {
|
|
6456
6561
|
readonly DEFAULT: "default";
|
|
@@ -6495,17 +6600,17 @@ type DiffRow = {
|
|
|
6495
6600
|
declare const computeLineInformation: (oldString: string, newString: string, ignoreWhitespace?: boolean) => ComputedLineInformation;
|
|
6496
6601
|
declare const computeDiffRows: (lineInformation: LineInformation[], diffLines: number[], expandedBlocks: number[]) => DiffRow[];
|
|
6497
6602
|
|
|
6498
|
-
type Props$
|
|
6603
|
+
type Props$4 = {
|
|
6499
6604
|
label: string;
|
|
6500
6605
|
sublabel?: string;
|
|
6501
6606
|
};
|
|
6502
|
-
declare const PaneHeader: ({ label, sublabel }: Props$
|
|
6607
|
+
declare const PaneHeader: ({ label, sublabel }: Props$4) => react_jsx_runtime.JSX.Element;
|
|
6503
6608
|
|
|
6504
|
-
type Props$
|
|
6609
|
+
type Props$3 = {
|
|
6505
6610
|
remainingConflicts: number;
|
|
6506
6611
|
remainingSafeChanges: number;
|
|
6507
6612
|
};
|
|
6508
|
-
declare const ConflictStatusIndicator: ({ remainingConflicts, remainingSafeChanges }: Props$
|
|
6613
|
+
declare const ConflictStatusIndicator: ({ remainingConflicts, remainingSafeChanges }: Props$3) => react_jsx_runtime.JSX.Element;
|
|
6509
6614
|
|
|
6510
6615
|
declare const useMergeDiff: (baseText: string, leftText: string, rightText: string) => {
|
|
6511
6616
|
mergeValue: string;
|
|
@@ -6529,6 +6634,113 @@ declare const useMergeDiff: (baseText: string, leftText: string, rightText: stri
|
|
|
6529
6634
|
reset: () => void;
|
|
6530
6635
|
};
|
|
6531
6636
|
|
|
6637
|
+
type RootProps$2 = ComponentProps<'section'>;
|
|
6638
|
+
/**
|
|
6639
|
+
* Signature dashboard hero banner — the opinionated top-of-page welcome/summary surface
|
|
6640
|
+
* (daily-brief header, project overview, greeting + primary CTA).
|
|
6641
|
+
*
|
|
6642
|
+
* **When to use:** the first block on a landing or dashboard page, above the KPI strip and
|
|
6643
|
+
* chart panels. It sets tone with an eyebrow, a large title, a lead paragraph, and an actions row.
|
|
6644
|
+
* **When NOT to use:** for an in-app page title use `PageHeader.Index`; for an empty page use
|
|
6645
|
+
* `EmptyState`. **Composition:** `DashboardHero.Eyebrow`, `.Title`, `.Description`, `.Actions`,
|
|
6646
|
+
* and an optional `.Aside` that floats to the right on wide screens. Reads semantic tokens only.
|
|
6647
|
+
*/
|
|
6648
|
+
declare const DashboardHeroRoot: ({ className, children, ...rest }: RootProps$2) => react_jsx_runtime.JSX.Element;
|
|
6649
|
+
type BodyProps = ComponentProps<'div'>;
|
|
6650
|
+
declare const DashboardHeroBody: ({ className, children, ...rest }: BodyProps) => react_jsx_runtime.JSX.Element;
|
|
6651
|
+
type EyebrowProps = ComponentProps<'p'>;
|
|
6652
|
+
declare const DashboardHeroEyebrow: ({ className, children, ...rest }: EyebrowProps) => react_jsx_runtime.JSX.Element;
|
|
6653
|
+
type TitleProps = ComponentProps<'h1'>;
|
|
6654
|
+
declare const DashboardHeroTitle: ({ className, children, ...rest }: TitleProps) => react_jsx_runtime.JSX.Element;
|
|
6655
|
+
type DescriptionProps = ComponentProps<'p'>;
|
|
6656
|
+
declare const DashboardHeroDescription: ({ className, children, ...rest }: DescriptionProps) => react_jsx_runtime.JSX.Element;
|
|
6657
|
+
type ActionsProps = ComponentProps<'div'>;
|
|
6658
|
+
declare const DashboardHeroActions: ({ className, children, ...rest }: ActionsProps) => react_jsx_runtime.JSX.Element;
|
|
6659
|
+
type AsideProps = ComponentProps<'div'>;
|
|
6660
|
+
declare const DashboardHeroAside: ({ className, children, ...rest }: AsideProps) => react_jsx_runtime.JSX.Element;
|
|
6661
|
+
declare const DashboardHero: typeof DashboardHeroRoot & {
|
|
6662
|
+
Body: typeof DashboardHeroBody;
|
|
6663
|
+
Eyebrow: typeof DashboardHeroEyebrow;
|
|
6664
|
+
Title: typeof DashboardHeroTitle;
|
|
6665
|
+
Description: typeof DashboardHeroDescription;
|
|
6666
|
+
Actions: typeof DashboardHeroActions;
|
|
6667
|
+
Aside: typeof DashboardHeroAside;
|
|
6668
|
+
};
|
|
6669
|
+
|
|
6670
|
+
declare const trendClassnames: (props?: ({
|
|
6671
|
+
direction?: "flat" | "up" | "down" | null | undefined;
|
|
6672
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
6673
|
+
type TrendDirection = NonNullable<VariantProps<typeof trendClassnames>['direction']>;
|
|
6674
|
+
type RootProps$1 = ComponentProps<typeof Card>;
|
|
6675
|
+
/**
|
|
6676
|
+
* A single KPI / metric tile — a signature composition over `Card` with a label,
|
|
6677
|
+
* a large value, an optional trend delta, and an optional leading icon + footnote.
|
|
6678
|
+
*
|
|
6679
|
+
* **When to use:** the headline numbers of a dashboard (revenue, active users, uptime),
|
|
6680
|
+
* usually in a `StatCardGrid` strip at the top of a page.
|
|
6681
|
+
* **When NOT to use:** for a chart use `ChartPanel`; for a generic content surface use `Card`.
|
|
6682
|
+
* **Composition:** `StatCard.Icon`, `StatCard.Label`, `StatCard.Value`, `StatCard.Trend`,
|
|
6683
|
+
* `StatCard.Footnote`. All colours read semantic tokens, so the tile re-skins with the brand.
|
|
6684
|
+
*/
|
|
6685
|
+
declare const StatCardRoot: ({ className, children, bordered, ...rest }: RootProps$1) => react_jsx_runtime.JSX.Element;
|
|
6686
|
+
type IconProps = ComponentProps<'div'>;
|
|
6687
|
+
declare const StatCardIcon: ({ className, children, ...rest }: IconProps) => react_jsx_runtime.JSX.Element;
|
|
6688
|
+
type LabelProps = ComponentProps<'p'>;
|
|
6689
|
+
declare const StatCardLabel: ({ className, children, ...rest }: LabelProps) => react_jsx_runtime.JSX.Element;
|
|
6690
|
+
type ValueProps = ComponentProps<'p'>;
|
|
6691
|
+
declare const StatCardValue: ({ className, children, ...rest }: ValueProps) => react_jsx_runtime.JSX.Element;
|
|
6692
|
+
type TrendProps = ComponentProps<'span'> & {
|
|
6693
|
+
/** Which way the metric moved — sets the semantic colour (`success` / `destructive` / muted). */
|
|
6694
|
+
direction?: TrendDirection;
|
|
6695
|
+
/** Optional leading icon (e.g. an arrow). */
|
|
6696
|
+
icon?: ReactNode;
|
|
6697
|
+
};
|
|
6698
|
+
declare const StatCardTrend: ({ className, direction, icon, children, ...rest }: TrendProps) => react_jsx_runtime.JSX.Element;
|
|
6699
|
+
type FootnoteProps = ComponentProps<'p'>;
|
|
6700
|
+
declare const StatCardFootnote: ({ className, children, ...rest }: FootnoteProps) => react_jsx_runtime.JSX.Element;
|
|
6701
|
+
declare const StatCard: typeof StatCardRoot & {
|
|
6702
|
+
Icon: typeof StatCardIcon;
|
|
6703
|
+
Label: typeof StatCardLabel;
|
|
6704
|
+
Value: typeof StatCardValue;
|
|
6705
|
+
Trend: typeof StatCardTrend;
|
|
6706
|
+
Footnote: typeof StatCardFootnote;
|
|
6707
|
+
};
|
|
6708
|
+
|
|
6709
|
+
declare const gridClassnames: (props?: ({
|
|
6710
|
+
columns?: 2 | 4 | 3 | null | undefined;
|
|
6711
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
6712
|
+
type Props$2 = ComponentProps<'div'> & VariantProps<typeof gridClassnames>;
|
|
6713
|
+
/**
|
|
6714
|
+
* Responsive strip of KPI tiles. Lay `StatCard`s inside it at the top of a dashboard.
|
|
6715
|
+
* `columns` caps the tiles per row on large screens; the grid collapses to one column on
|
|
6716
|
+
* mobile and two on small screens.
|
|
6717
|
+
*/
|
|
6718
|
+
declare const StatCardGrid: ({ className, columns, children, ...rest }: Props$2) => react_jsx_runtime.JSX.Element;
|
|
6719
|
+
|
|
6720
|
+
type RootProps = Omit<ComponentProps<typeof Card>, 'title'> & {
|
|
6721
|
+
/** Panel heading. */
|
|
6722
|
+
title: ReactNode;
|
|
6723
|
+
/** Optional supporting line under the title. */
|
|
6724
|
+
description?: ReactNode;
|
|
6725
|
+
/** Heading level for the title — defaults to `h3`. Set to sit correctly under a page `h1`/`h2`. */
|
|
6726
|
+
titleAs?: ComponentProps<typeof Card.Title>['as'];
|
|
6727
|
+
/** Right-aligned header slot — range picker, legend toggle, menu, etc. */
|
|
6728
|
+
toolbar?: ReactNode;
|
|
6729
|
+
/** Optional footer row (e.g. a source note or an inline legend). */
|
|
6730
|
+
footer?: ReactNode;
|
|
6731
|
+
};
|
|
6732
|
+
/**
|
|
6733
|
+
* Signature chart panel — a `Card` shell with a title/description header, an optional toolbar,
|
|
6734
|
+
* a chart body, and an optional footer. Pass a `@keboola/design/charts` chart (`LineChart`,
|
|
6735
|
+
* `BarChart`, `AreaChart`, `PieChart`) as children; the panel owns the chrome, the chart owns
|
|
6736
|
+
* its own responsive container and themed palette.
|
|
6737
|
+
*
|
|
6738
|
+
* **When to use:** any framed data-viz block on a dashboard.
|
|
6739
|
+
* **When NOT to use:** for a KPI number use `StatCard`; for a raw unframed chart drop the chart
|
|
6740
|
+
* component directly. Charts follow the active brand's chart palette — never hardcode colours.
|
|
6741
|
+
*/
|
|
6742
|
+
declare const ChartPanel: ({ title, description, titleAs, toolbar, footer, className, bordered, children, ...rest }: RootProps) => react_jsx_runtime.JSX.Element;
|
|
6743
|
+
|
|
6532
6744
|
/**
|
|
6533
6745
|
* The a11y wiring `FieldItem` derives from the field and hands back to the control — spread it onto
|
|
6534
6746
|
* whatever element the field renders. Callers never author these attributes themselves.
|
|
@@ -7557,7 +7769,7 @@ declare const useAppForm: <TFormData, TOnMount extends _tanstack_react_form.Form
|
|
|
7557
7769
|
variant?: "primary" | "secondary" | null | undefined;
|
|
7558
7770
|
form?: string | undefined | undefined;
|
|
7559
7771
|
slot?: string | undefined | undefined;
|
|
7560
|
-
style?: (Omit<react.CSSProperties, "
|
|
7772
|
+
style?: (Omit<react.CSSProperties, "minHeight" | "maxHeight"> & {
|
|
7561
7773
|
height?: number;
|
|
7562
7774
|
}) | undefined;
|
|
7563
7775
|
title?: string | undefined | undefined;
|
|
@@ -7887,8 +8099,8 @@ declare const useAppForm: <TFormData, TOnMount extends _tanstack_react_form.Form
|
|
|
7887
8099
|
description?: react.ReactNode;
|
|
7888
8100
|
variant?: class_variance_authority.VariantProps<typeof fieldBoxVariants>["variant"];
|
|
7889
8101
|
position?: "start" | "end";
|
|
7890
|
-
tooltip?: Props$
|
|
7891
|
-
tooltipPlacement?: Props$
|
|
8102
|
+
tooltip?: Props$1O["tooltip"];
|
|
8103
|
+
tooltipPlacement?: Props$1O["placement"];
|
|
7892
8104
|
} & Omit<_radix_ui_react_checkbox.CheckboxProps & react.RefAttributes<HTMLButtonElement>, "id">, "checked" | "onCheckedChange"> & {
|
|
7893
8105
|
checked?: _radix_ui_react_checkbox.CheckedState;
|
|
7894
8106
|
onCheckedChange?: (checked: _radix_ui_react_checkbox.CheckedState) => void;
|
|
@@ -7905,7 +8117,7 @@ declare const useAppForm: <TFormData, TOnMount extends _tanstack_react_form.Form
|
|
|
7905
8117
|
} & class_variance_authority_types.ClassProp) | undefined) => string>, "variant"> & {
|
|
7906
8118
|
ref?: react.Ref<react.ElementRef<"button">>;
|
|
7907
8119
|
}, "id" | "name" | "checked" | "onCheckedChange">) => react_jsx_runtime.JSX.Element;
|
|
7908
|
-
readonly OtpInputField: ({ label, required, requiredMark, help, tooltip, className, "aria-describedby": ariaDescribedBy, maxLength, ...otpProps }: FieldItemProps & Omit<RootProps$
|
|
8120
|
+
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;
|
|
7909
8121
|
}, {
|
|
7910
8122
|
readonly FormBody: ({ children, className, ...formProps }: {
|
|
7911
8123
|
children: react.ReactNode;
|
|
@@ -8906,7 +9118,7 @@ declare const withForm: <TFormData, TOnMount extends _tanstack_react_form.FormVa
|
|
|
8906
9118
|
variant?: "primary" | "secondary" | null | undefined;
|
|
8907
9119
|
form?: string | undefined | undefined;
|
|
8908
9120
|
slot?: string | undefined | undefined;
|
|
8909
|
-
style?: (Omit<react.CSSProperties, "
|
|
9121
|
+
style?: (Omit<react.CSSProperties, "minHeight" | "maxHeight"> & {
|
|
8910
9122
|
height?: number;
|
|
8911
9123
|
}) | undefined;
|
|
8912
9124
|
title?: string | undefined | undefined;
|
|
@@ -9236,8 +9448,8 @@ declare const withForm: <TFormData, TOnMount extends _tanstack_react_form.FormVa
|
|
|
9236
9448
|
description?: react.ReactNode;
|
|
9237
9449
|
variant?: class_variance_authority.VariantProps<typeof fieldBoxVariants>["variant"];
|
|
9238
9450
|
position?: "start" | "end";
|
|
9239
|
-
tooltip?: Props$
|
|
9240
|
-
tooltipPlacement?: Props$
|
|
9451
|
+
tooltip?: Props$1O["tooltip"];
|
|
9452
|
+
tooltipPlacement?: Props$1O["placement"];
|
|
9241
9453
|
} & Omit<_radix_ui_react_checkbox.CheckboxProps & react.RefAttributes<HTMLButtonElement>, "id">, "checked" | "onCheckedChange"> & {
|
|
9242
9454
|
checked?: _radix_ui_react_checkbox.CheckedState;
|
|
9243
9455
|
onCheckedChange?: (checked: _radix_ui_react_checkbox.CheckedState) => void;
|
|
@@ -9254,7 +9466,7 @@ declare const withForm: <TFormData, TOnMount extends _tanstack_react_form.FormVa
|
|
|
9254
9466
|
} & class_variance_authority_types.ClassProp) | undefined) => string>, "variant"> & {
|
|
9255
9467
|
ref?: react.Ref<react.ElementRef<"button">>;
|
|
9256
9468
|
}, "id" | "name" | "checked" | "onCheckedChange">) => react_jsx_runtime.JSX.Element;
|
|
9257
|
-
readonly OtpInputField: ({ label, required, requiredMark, help, tooltip, className, "aria-describedby": ariaDescribedBy, maxLength, ...otpProps }: FieldItemProps & Omit<RootProps$
|
|
9469
|
+
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;
|
|
9258
9470
|
}, {
|
|
9259
9471
|
readonly FormBody: ({ children, className, ...formProps }: {
|
|
9260
9472
|
children: react.ReactNode;
|
|
@@ -10255,7 +10467,7 @@ declare const withForm: <TFormData, TOnMount extends _tanstack_react_form.FormVa
|
|
|
10255
10467
|
variant?: "primary" | "secondary" | null | undefined;
|
|
10256
10468
|
form?: string | undefined | undefined;
|
|
10257
10469
|
slot?: string | undefined | undefined;
|
|
10258
|
-
style?: (Omit<react.CSSProperties, "
|
|
10470
|
+
style?: (Omit<react.CSSProperties, "minHeight" | "maxHeight"> & {
|
|
10259
10471
|
height?: number;
|
|
10260
10472
|
}) | undefined;
|
|
10261
10473
|
title?: string | undefined | undefined;
|
|
@@ -10585,8 +10797,8 @@ declare const withForm: <TFormData, TOnMount extends _tanstack_react_form.FormVa
|
|
|
10585
10797
|
description?: react.ReactNode;
|
|
10586
10798
|
variant?: class_variance_authority.VariantProps<typeof fieldBoxVariants>["variant"];
|
|
10587
10799
|
position?: "start" | "end";
|
|
10588
|
-
tooltip?: Props$
|
|
10589
|
-
tooltipPlacement?: Props$
|
|
10800
|
+
tooltip?: Props$1O["tooltip"];
|
|
10801
|
+
tooltipPlacement?: Props$1O["placement"];
|
|
10590
10802
|
} & Omit<_radix_ui_react_checkbox.CheckboxProps & react.RefAttributes<HTMLButtonElement>, "id">, "checked" | "onCheckedChange"> & {
|
|
10591
10803
|
checked?: _radix_ui_react_checkbox.CheckedState;
|
|
10592
10804
|
onCheckedChange?: (checked: _radix_ui_react_checkbox.CheckedState) => void;
|
|
@@ -10603,7 +10815,7 @@ declare const withForm: <TFormData, TOnMount extends _tanstack_react_form.FormVa
|
|
|
10603
10815
|
} & class_variance_authority_types.ClassProp) | undefined) => string>, "variant"> & {
|
|
10604
10816
|
ref?: react.Ref<react.ElementRef<"button">>;
|
|
10605
10817
|
}, "id" | "name" | "checked" | "onCheckedChange">) => react_jsx_runtime.JSX.Element;
|
|
10606
|
-
readonly OtpInputField: ({ label, required, requiredMark, help, tooltip, className, "aria-describedby": ariaDescribedBy, maxLength, ...otpProps }: FieldItemProps & Omit<RootProps$
|
|
10818
|
+
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;
|
|
10607
10819
|
}, {
|
|
10608
10820
|
readonly FormBody: ({ children, className, ...formProps }: {
|
|
10609
10821
|
children: react.ReactNode;
|
|
@@ -10680,4 +10892,41 @@ type Props = {
|
|
|
10680
10892
|
};
|
|
10681
10893
|
declare const ZoomableSvg: ({ html, copyText, className }: Props) => react_jsx_runtime.JSX.Element;
|
|
10682
10894
|
|
|
10683
|
-
|
|
10895
|
+
type ColorSlot = keyof Omit<NonNullable<Brand['theme']['colors']>, 'sidebar' | 'chart'>;
|
|
10896
|
+
type SidebarSlot = keyof NonNullable<NonNullable<Brand['theme']['colors']>['sidebar']>;
|
|
10897
|
+
type RadiusSize = keyof NonNullable<Brand['theme']['radii']>;
|
|
10898
|
+
declare const DEFAULT_FALLBACK_FONT = "'Inter', system-ui, sans-serif";
|
|
10899
|
+
declare const DEFAULT_FONT_OPTIONS: {
|
|
10900
|
+
value: string;
|
|
10901
|
+
label: string;
|
|
10902
|
+
}[];
|
|
10903
|
+
type BrandEditorProps = {
|
|
10904
|
+
value: Brand;
|
|
10905
|
+
onChange: (next: Brand) => void;
|
|
10906
|
+
/** Palette being edited. Controlled. Default 'light'. */
|
|
10907
|
+
colorScheme?: 'light' | 'dark';
|
|
10908
|
+
/** If provided, the editor shows a light/dark toggle that calls this. If omitted, no toggle. */
|
|
10909
|
+
onColorSchemeChange?: (scheme: 'light' | 'dark') => void;
|
|
10910
|
+
/** Font choices for the typography Select. Defaults to DEFAULT_FONT_OPTIONS. */
|
|
10911
|
+
fontOptions?: {
|
|
10912
|
+
value: string;
|
|
10913
|
+
label: string;
|
|
10914
|
+
}[];
|
|
10915
|
+
};
|
|
10916
|
+
/**
|
|
10917
|
+
* Controlled brand-editing block — colors (light/dark), sidebar colors, WCAG contrast readout,
|
|
10918
|
+
* corner radius, typography, and logo. Reads/writes a `Brand` (`@keboola/brand-registry`) via
|
|
10919
|
+
* `value` / `onChange`; owns no state of its own, so the caller decides where the brand and the
|
|
10920
|
+
* active color scheme live (Kai build-mode preview, theme-generator, …).
|
|
10921
|
+
*/
|
|
10922
|
+
declare const BrandEditor: ({ value, onChange, colorScheme, onColorSchemeChange, fontOptions, }: BrandEditorProps) => react_jsx_runtime.JSX.Element;
|
|
10923
|
+
|
|
10924
|
+
declare const hexToChannels: (hex: string) => string;
|
|
10925
|
+
declare const channelsToHex: (channels: string) => string;
|
|
10926
|
+
|
|
10927
|
+
/** WCAG contrast ratio (1–21) between two `"R G B"` colours. */
|
|
10928
|
+
declare const contrastRatio: (fg: string, bg: string) => number;
|
|
10929
|
+
/** WCAG level for normal-size text at a given ratio. */
|
|
10930
|
+
declare const wcagLevel: (ratio: number) => "AAA" | "AA" | "fail";
|
|
10931
|
+
|
|
10932
|
+
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, 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$1O 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 };
|