@keboola/design 9.1.0 → 10.1.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/AGENTS.md +117 -40
- package/COMPONENT-API.md +31 -9
- package/README.md +3 -3
- package/dist/MermaidDiagram-EOKJHQQV.js +10 -0
- package/dist/MermaidDiagram-EOKJHQQV.js.map +1 -0
- package/dist/charts.d.ts +31 -2
- package/dist/charts.js +6 -9
- package/dist/charts.js.map +1 -1
- package/dist/chunk-63NSN2VL.js +274 -0
- package/dist/chunk-63NSN2VL.js.map +1 -0
- package/dist/{rjsf.cjs → chunk-6FPEI4EM.js} +1491 -5701
- package/dist/chunk-6FPEI4EM.js.map +1 -0
- package/dist/chunk-7PUUHEJQ.js +1313 -0
- package/dist/chunk-7PUUHEJQ.js.map +1 -0
- package/dist/chunk-BOHNXTMM.js +606 -0
- package/dist/chunk-BOHNXTMM.js.map +1 -0
- package/dist/{testing.cjs → chunk-C3L3TBBT.js} +33 -164
- package/dist/chunk-C3L3TBBT.js.map +1 -0
- package/dist/chunk-CTCFYWJC.js +407 -0
- package/dist/chunk-CTCFYWJC.js.map +1 -0
- package/dist/chunk-ESBL3IPF.js +23 -0
- package/dist/chunk-ESBL3IPF.js.map +1 -0
- package/dist/chunk-IJTHFNNJ.js +261 -0
- package/dist/chunk-IJTHFNNJ.js.map +1 -0
- package/dist/chunk-JP7PNHLH.js +40 -0
- package/dist/chunk-JP7PNHLH.js.map +1 -0
- package/dist/chunk-KPNAW5MU.js +229 -0
- package/dist/chunk-KPNAW5MU.js.map +1 -0
- package/dist/chunk-L37JJ6MR.js +152 -0
- package/dist/chunk-L37JJ6MR.js.map +1 -0
- package/dist/chunk-Q7NWXLCT.js +90 -0
- package/dist/chunk-Q7NWXLCT.js.map +1 -0
- package/dist/chunk-SYIEF644.js +1016 -0
- package/dist/chunk-SYIEF644.js.map +1 -0
- package/dist/chunk-VMFSRV5H.js +16 -0
- package/dist/chunk-VMFSRV5H.js.map +1 -0
- package/dist/chunk-VPPM7UUQ.js +47 -0
- package/dist/chunk-VPPM7UUQ.js.map +1 -0
- package/dist/chunk-XV3UUOYF.js +845 -0
- package/dist/chunk-XV3UUOYF.js.map +1 -0
- package/dist/editors.d.ts +27 -3
- package/dist/editors.js +85 -2081
- package/dist/editors.js.map +1 -1
- package/dist/icons.d.ts +29 -8
- package/dist/icons.js +2 -361
- package/dist/icons.js.map +1 -1
- package/dist/index.d.ts +709 -425
- package/dist/index.js +5042 -13885
- package/dist/index.js.map +1 -1
- package/dist/markdown-editor.js +41 -3426
- package/dist/markdown-editor.js.map +1 -1
- package/dist/mermaid.js +8 -1129
- package/dist/mermaid.js.map +1 -1
- package/dist/rjsf.js +180 -9381
- package/dist/rjsf.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/testing.js +5 -357
- package/dist/testing.js.map +1 -1
- package/package.json +28 -73
- package/src/styles.css +60 -3
- package/src/theme.css +1 -0
- package/dist/charts.cjs +0 -268
- package/dist/charts.cjs.map +0 -1
- package/dist/charts.d.cts +0 -181
- package/dist/constants-D3gaMY-W.d.cts +0 -39
- package/dist/editors.cjs +0 -2440
- package/dist/editors.cjs.map +0 -1
- package/dist/editors.d.cts +0 -165
- package/dist/icons.cjs +0 -23888
- package/dist/icons.cjs.map +0 -1
- package/dist/icons.d.cts +0 -20
- package/dist/index.cjs +0 -24894
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts +0 -10438
- package/dist/markdown-editor.cjs +0 -4636
- package/dist/markdown-editor.cjs.map +0 -1
- package/dist/markdown-editor.d.cts +0 -75
- package/dist/mermaid.cjs +0 -1138
- package/dist/mermaid.cjs.map +0 -1
- package/dist/mermaid.d.cts +0 -15
- package/dist/rjsf.cjs.map +0 -1
- package/dist/rjsf.d.cts +0 -55
- package/dist/testing.cjs.map +0 -1
- package/dist/testing.d.cts +0 -25
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as react from 'react';
|
|
3
|
-
import { ComponentProps, ReactNode, PropsWithChildren, ComponentPropsWithRef, MouseEvent as MouseEvent$1, HTMLAttributes, Ref, RefObject, MouseEventHandler, ChangeEvent, FocusEvent as FocusEvent$1, CSSProperties, KeyboardEvent as KeyboardEvent$1, ComponentPropsWithoutRef, ComponentRef, TransitionEventHandler, MutableRefObject, RefCallback } from 'react';
|
|
3
|
+
import { ComponentProps, ReactNode, PropsWithChildren, ComponentPropsWithRef, MouseEvent as MouseEvent$1, HTMLAttributes, Ref, RefObject, MouseEventHandler, ChangeEvent, FocusEvent as FocusEvent$1, CSSProperties, KeyboardEvent as KeyboardEvent$1, ComponentPropsWithoutRef, ComponentRef, TransitionEventHandler, Dispatch, SetStateAction, MutableRefObject, RefCallback } from 'react';
|
|
4
4
|
import * as class_variance_authority from 'class-variance-authority';
|
|
5
5
|
import { VariantProps } from 'class-variance-authority';
|
|
6
6
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
@@ -40,11 +40,12 @@ import { Brand } from '@keboola/brand-registry';
|
|
|
40
40
|
export { Brand, brandSchema, exampleCustomer, keboola, keboolaLegacySidebar, keboolaLegacyTopnav } from '@keboola/brand-registry';
|
|
41
41
|
import { OTPInput } from 'input-otp';
|
|
42
42
|
export { SlotProps as OtpInputRenderSlotProps, REGEXP_ONLY_CHARS, REGEXP_ONLY_DIGITS, REGEXP_ONLY_DIGITS_AND_CHARS } from 'input-otp';
|
|
43
|
-
import {
|
|
43
|
+
import { DropzoneState } from 'react-dropzone';
|
|
44
44
|
import * as _radix_ui_react_collapsible from '@radix-ui/react-collapsible';
|
|
45
45
|
import { Root as Root$9 } from '@radix-ui/react-collapsible';
|
|
46
46
|
import { Action, ExternalToast, Toaster as Toaster$1 } from 'sonner';
|
|
47
47
|
import { Root as Root$a } from '@radix-ui/react-progress';
|
|
48
|
+
import { LucideIcon } from 'lucide-react';
|
|
48
49
|
import { Separator as Separator$1, Group as Group$1 } from 'react-resizable-panels';
|
|
49
50
|
export { PanelImperativeHandle, Panel as ResizablePanel, useDefaultLayout } from 'react-resizable-panels';
|
|
50
51
|
import * as RSeparator from '@radix-ui/react-separator';
|
|
@@ -56,15 +57,15 @@ import { AnyFormApi } from '@tanstack/react-form';
|
|
|
56
57
|
import { ClassValue } from 'clsx';
|
|
57
58
|
export { Slot } from '@radix-ui/react-slot';
|
|
58
59
|
|
|
59
|
-
declare const variants$
|
|
60
|
+
declare const variants$3: (props?: ({
|
|
60
61
|
block?: boolean | null | undefined;
|
|
61
62
|
variant?: "primary" | "secondary" | "inline" | "danger" | "invisible" | "outline" | null | undefined;
|
|
62
|
-
size?: "
|
|
63
|
+
size?: "small" | "medium" | "large" | "icon-lg" | "icon" | "icon-sm" | "icon-xs" | "icon-2xs" | "icon-3xs" | null | undefined;
|
|
63
64
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
64
65
|
declare const argoVariants: (props?: ({
|
|
65
66
|
block?: boolean | null | undefined;
|
|
66
67
|
variant?: "primary" | "secondary" | "inline" | "danger" | "invisible" | "outline" | null | undefined;
|
|
67
|
-
size?: "
|
|
68
|
+
size?: "small" | "medium" | "large" | "icon-lg" | "icon" | "icon-sm" | "icon-xs" | "icon-2xs" | "icon-3xs" | null | undefined;
|
|
68
69
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
69
70
|
|
|
70
71
|
/**
|
|
@@ -74,12 +75,12 @@ declare const argoVariants: (props?: ({
|
|
|
74
75
|
* for height (including `icon-*` sizes when rendering icon-only). Icons are
|
|
75
76
|
* composed as children — `<Button><Trash2 className="tw:size-4" /> Delete</Button>`.
|
|
76
77
|
*/
|
|
77
|
-
type Props$
|
|
78
|
+
type Props$1U = {
|
|
78
79
|
/** Replaces the leading content with a spinner and disables the button visually. The caller still controls `disabled`. */
|
|
79
80
|
isLoading?: boolean;
|
|
80
81
|
/** Render as a Radix `Slot` so the parent JSX (e.g. a `react-router` `<Link>`) becomes the button element. */
|
|
81
82
|
asChild?: boolean;
|
|
82
|
-
} & ComponentProps<'button'> & VariantProps<typeof variants$
|
|
83
|
+
} & ComponentProps<'button'> & VariantProps<typeof variants$3>;
|
|
83
84
|
/**
|
|
84
85
|
* Primary action surface for the design system — covers all clickable controls except inline text links.
|
|
85
86
|
*
|
|
@@ -93,31 +94,31 @@ type Props$1S = {
|
|
|
93
94
|
* @see RECIPES.md#disabled-button-tooltip — for the disabled-button + tooltip pattern
|
|
94
95
|
* @see RECIPES.md#confirm-dialog — for destructive-action confirmation
|
|
95
96
|
*/
|
|
96
|
-
declare const Button: ({ ref, children, disabled, className, type, isLoading, asChild, onClick, variant, size, block, ...buttonProps }: Props$
|
|
97
|
+
declare const Button: ({ ref, children, disabled, className, type, isLoading, asChild, onClick, variant, size, block, ...buttonProps }: Props$1U) => react_jsx_runtime.JSX.Element;
|
|
97
98
|
|
|
98
99
|
declare const buttonInlineVariants: (props?: ({
|
|
99
|
-
color?: "
|
|
100
|
+
color?: "link" | "dark" | "muted" | "danger" | "custom" | null | undefined;
|
|
100
101
|
variant?: "link" | "custom" | "link-reverse" | null | undefined;
|
|
101
102
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
102
|
-
type Props$
|
|
103
|
+
type Props$1T = ComponentProps<'button'> & VariantProps<typeof buttonInlineVariants> & {
|
|
103
104
|
asChild?: boolean;
|
|
104
105
|
};
|
|
105
|
-
declare const ButtonInline: ({ ref, children, className, variant, color, type, asChild, ...buttonProps }: Props$
|
|
106
|
+
declare const ButtonInline: ({ ref, children, className, variant, color, type, asChild, ...buttonProps }: Props$1T) => react_jsx_runtime.JSX.Element;
|
|
106
107
|
|
|
107
108
|
declare const buttonGroupVariant: (props?: ({
|
|
108
109
|
variant?: "inline" | "block" | null | undefined;
|
|
109
|
-
space?: "
|
|
110
|
+
space?: "small" | "medium" | "large" | "extra-small" | "little-small" | "compact" | null | undefined;
|
|
110
111
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
111
|
-
type Props$
|
|
112
|
+
type Props$1S = {
|
|
112
113
|
children: ReactNode;
|
|
113
114
|
className?: string;
|
|
114
115
|
} & VariantProps<typeof buttonGroupVariant> & ComponentProps<'div'>;
|
|
115
|
-
declare const ButtonGroup: ({ ref, children, space, className, variant, ...rest }: Props$
|
|
116
|
+
declare const ButtonGroup: ({ ref, children, space, className, variant, ...rest }: Props$1S) => react_jsx_runtime.JSX.Element;
|
|
116
117
|
|
|
117
118
|
type Variant$8 = ComponentProps<typeof Button>['variant'];
|
|
118
119
|
type Size = NonNullable<ComponentProps<typeof Button>['size']>;
|
|
119
120
|
type SpitButtonSize = Exclude<Size, 'icon' | 'icon-lg' | 'icon-sm' | 'icon-xs' | 'icon-2xs' | 'icon-3xs'>;
|
|
120
|
-
type Props$
|
|
121
|
+
type Props$1R = {
|
|
121
122
|
actions?: ReactNode;
|
|
122
123
|
isActionsOpen?: boolean;
|
|
123
124
|
onActionsOpenChange?: (open: boolean) => void;
|
|
@@ -126,7 +127,7 @@ type Props$1P = {
|
|
|
126
127
|
variant?: Exclude<Variant$8, 'inline' | 'invisible'>;
|
|
127
128
|
size?: SpitButtonSize;
|
|
128
129
|
} & Omit<ComponentProps<typeof Button>, 'variant' | 'size' | 'icon'>;
|
|
129
|
-
declare const SplitButton: (({ ref, disabled, actions, variant, size, isActionsOpen, onActionsOpenChange, icon, children, ...rest }: Props$
|
|
130
|
+
declare const SplitButton: (({ ref, disabled, actions, variant, size, isActionsOpen, onActionsOpenChange, icon, children, ...rest }: Props$1R) => react_jsx_runtime.JSX.Element) & {
|
|
130
131
|
Action: ({ ref, className, asModalTrigger, onSelect, onPointerLeave, onPointerMove, children, asChild, icon, iconClassName, isLoading, ...props }: _radix_ui_react_dropdown_menu.DropdownMenuItemProps & react.RefAttributes<HTMLDivElement> & {
|
|
131
132
|
asModalTrigger?: boolean;
|
|
132
133
|
icon?: ReactNode;
|
|
@@ -136,11 +137,11 @@ declare const SplitButton: (({ ref, disabled, actions, variant, size, isActionsO
|
|
|
136
137
|
Actions: react.ForwardRefExoticComponent<_radix_ui_react_dropdown_menu.DropdownMenuGroupProps & react.RefAttributes<HTMLDivElement>>;
|
|
137
138
|
};
|
|
138
139
|
|
|
139
|
-
type Props$
|
|
140
|
+
type Props$1Q = {
|
|
140
141
|
className?: string;
|
|
141
142
|
} & PropsWithChildren;
|
|
142
143
|
declare const MultiActionButtonGroup: {
|
|
143
|
-
({ children, className }: Props$
|
|
144
|
+
({ children, className }: Props$1Q): react_jsx_runtime.JSX.Element;
|
|
144
145
|
Button: ({ disabled, icon, isLoading, label, onClick, tooltipContent, tooltipVariant, "data-testid": dataTestId, }: {
|
|
145
146
|
disabled?: boolean;
|
|
146
147
|
icon: react.ReactNode;
|
|
@@ -155,19 +156,19 @@ declare const MultiActionButtonGroup: {
|
|
|
155
156
|
|
|
156
157
|
declare const toggleVariants: (props?: ({
|
|
157
158
|
variant?: "ai" | "ai-vivid" | "ghost" | null | undefined;
|
|
158
|
-
size?: "
|
|
159
|
+
size?: "small" | "medium" | "large" | null | undefined;
|
|
159
160
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
160
161
|
iconOnly?: boolean | null | undefined;
|
|
161
162
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
162
|
-
type Props$
|
|
163
|
+
type Props$1P = {
|
|
163
164
|
icon?: ReactNode;
|
|
164
165
|
badge?: ReactNode;
|
|
165
166
|
orientation?: 'horizontal' | 'vertical';
|
|
166
167
|
} & ComponentProps<typeof Root> & Omit<VariantProps<typeof toggleVariants>, 'iconOnly' | 'orientation'>;
|
|
167
|
-
declare const Toggle: ({ ref, className, variant, size, orientation, children, icon, badge, disabled, ...props }: Props$
|
|
168
|
+
declare const Toggle: ({ ref, className, variant, size, orientation, children, icon, badge, disabled, ...props }: Props$1P) => react_jsx_runtime.JSX.Element;
|
|
168
169
|
|
|
169
170
|
declare const rootVariants: (props?: ({
|
|
170
|
-
size?: "
|
|
171
|
+
size?: "small" | "medium" | "large" | null | undefined;
|
|
171
172
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
172
173
|
type RootProps$8 = ComponentProps<typeof ToggleGroupPrimitive.Root> & VariantProps<typeof rootVariants>;
|
|
173
174
|
type ItemProps = ComponentProps<typeof ToggleGroupPrimitive.Item>;
|
|
@@ -179,11 +180,11 @@ declare const ToggleGroup: (({ ref, className, size, ...props }: RootProps$8) =>
|
|
|
179
180
|
declare const tooltipVariants: (props?: ({
|
|
180
181
|
variant?: "action" | "explanatory" | null | undefined;
|
|
181
182
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
182
|
-
type Props$
|
|
183
|
+
type Props$1O = {
|
|
183
184
|
keepOpenOnPointerDownOutside?: boolean;
|
|
184
185
|
placement?: ComponentProps<typeof Content>['side'];
|
|
185
186
|
} & Omit<ComponentProps<typeof Content>, 'side'> & VariantProps<typeof tooltipVariants>;
|
|
186
|
-
declare const TooltipContent: ({ className, variant, keepOpenOnPointerDownOutside, children, onPointerDownOutside, sideOffset, collisionPadding, hideWhenDetached, placement, ...rest }: Props$
|
|
187
|
+
declare const TooltipContent: ({ className, variant, keepOpenOnPointerDownOutside, children, onPointerDownOutside, sideOffset, collisionPadding, hideWhenDetached, placement, ...rest }: Props$1O) => react_jsx_runtime.JSX.Element;
|
|
187
188
|
|
|
188
189
|
type TriggerProps$1 = {
|
|
189
190
|
triggerAsChild?: boolean;
|
|
@@ -192,7 +193,7 @@ type TriggerProps$1 = {
|
|
|
192
193
|
* Props for `Tooltip`. `tooltip` is the popup content; `children` is the trigger element.
|
|
193
194
|
* `variant` auto-resolves to `"explanatory"` for strings >30 chars, else `"action"`.
|
|
194
195
|
*/
|
|
195
|
-
type Props$
|
|
196
|
+
type Props$1N = {
|
|
196
197
|
/** Keep the tooltip visible when the user clicks the trigger (useful for click-to-copy feedback). */
|
|
197
198
|
keepOpenOnTriggerClick?: boolean;
|
|
198
199
|
/** Content rendered inside the tooltip. Plain text only — no interactive elements (use `HoverCard` or `Popover` for that). */
|
|
@@ -224,7 +225,7 @@ declare const TooltipProvider: react.FC<_radix_ui_react_tooltip.TooltipProviderP
|
|
|
224
225
|
* @see RECIPES.md#disabled-button-tooltip — for the disabled-button + tooltip pattern
|
|
225
226
|
*/
|
|
226
227
|
declare const Tooltip: {
|
|
227
|
-
({ tooltip, children, className, keepOpenOnTriggerClick, variant, placement, forceHide, forceShow, delayDuration, triggerAsChild, }: Props$
|
|
228
|
+
({ tooltip, children, className, keepOpenOnTriggerClick, variant, placement, forceHide, forceShow, delayDuration, triggerAsChild, }: Props$1N): react_jsx_runtime.JSX.Element;
|
|
228
229
|
Root: ({ children, delayDuration, ...rest }: _radix_ui_react_tooltip.TooltipProps) => react_jsx_runtime.JSX.Element;
|
|
229
230
|
Content: ({ className, variant, keepOpenOnPointerDownOutside, children, onPointerDownOutside, sideOffset, collisionPadding, hideWhenDetached, placement, ...rest }: {
|
|
230
231
|
keepOpenOnPointerDownOutside?: boolean;
|
|
@@ -237,35 +238,35 @@ declare const Tooltip: {
|
|
|
237
238
|
} & _radix_ui_react_tooltip.TooltipTriggerProps & react.RefAttributes<HTMLButtonElement>) => react_jsx_runtime.JSX.Element;
|
|
238
239
|
};
|
|
239
240
|
|
|
240
|
-
type Props$
|
|
241
|
-
tooltip?: Props$
|
|
242
|
-
tooltipPlacement?: Props$
|
|
243
|
-
tooltipVariant?: Props$
|
|
244
|
-
asChild?: Props$
|
|
241
|
+
type Props$1M = {
|
|
242
|
+
tooltip?: Props$1N['tooltip'];
|
|
243
|
+
tooltipPlacement?: Props$1N['placement'];
|
|
244
|
+
tooltipVariant?: Props$1N['variant'];
|
|
245
|
+
asChild?: Props$1N['triggerAsChild'];
|
|
245
246
|
text?: string | (() => string);
|
|
246
247
|
} & ComponentProps<'button'>;
|
|
247
|
-
declare const Clipboard: ({ ref, text: textProp, children, tooltip, tooltipPlacement, tooltipVariant: tooltipVariantProp, asChild, onClick, className, ...restButtonProps }: Props$
|
|
248
|
+
declare const Clipboard: ({ ref, text: textProp, children, tooltip, tooltipPlacement, tooltipVariant: tooltipVariantProp, asChild, onClick, className, ...restButtonProps }: Props$1M) => react_jsx_runtime.JSX.Element;
|
|
248
249
|
|
|
249
250
|
type ClipboardProps$1 = Pick<ComponentProps<typeof Clipboard>, 'text' | 'tooltip' | 'tooltipPlacement' | 'tooltipVariant'>;
|
|
250
251
|
type ButtonProps$2 = Omit<ComponentProps<typeof Button>, 'disabled' | 'icon'>;
|
|
251
|
-
type Props$
|
|
252
|
+
type Props$1L = ClipboardProps$1 & ButtonProps$2 & {
|
|
252
253
|
icon?: ReactNode;
|
|
253
254
|
};
|
|
254
|
-
declare const ClipboardButton: ({ text, tooltip, tooltipPlacement, tooltipVariant, icon, variant, children, ...rest }: Props$
|
|
255
|
+
declare const ClipboardButton: ({ text, tooltip, tooltipPlacement, tooltipVariant, icon, variant, children, ...rest }: Props$1L) => react_jsx_runtime.JSX.Element;
|
|
255
256
|
|
|
256
257
|
type ClipboardProps = Pick<ComponentProps<typeof Clipboard>, 'text' | 'tooltip' | 'tooltipPlacement' | 'tooltipVariant'>;
|
|
257
258
|
type ButtonProps$1 = Omit<ComponentProps<typeof ButtonInline>, 'disabled'>;
|
|
258
|
-
type Props$
|
|
259
|
+
type Props$1K = {
|
|
259
260
|
hideIcon?: boolean;
|
|
260
261
|
} & ClipboardProps & ButtonProps$1;
|
|
261
|
-
declare const ClipboardInline: ({ text, tooltip, tooltipPlacement, tooltipVariant, children, hideIcon, ...rest }: Props$
|
|
262
|
+
declare const ClipboardInline: ({ text, tooltip, tooltipPlacement, tooltipVariant, children, hideIcon, ...rest }: Props$1K) => react_jsx_runtime.JSX.Element;
|
|
262
263
|
|
|
263
264
|
type ExportMenuItem = {
|
|
264
265
|
/** Menu label, e.g. "Download as CSV". */
|
|
265
266
|
label: string;
|
|
266
267
|
onSelect: () => void;
|
|
267
268
|
};
|
|
268
|
-
type Props$
|
|
269
|
+
type Props$1J = {
|
|
269
270
|
items: ExportMenuItem[];
|
|
270
271
|
/** Accessible name + tooltip for the trigger, e.g. "Export table". */
|
|
271
272
|
label: string;
|
|
@@ -275,18 +276,13 @@ type Props$1H = {
|
|
|
275
276
|
* Download-icon trigger with a menu of export formats.
|
|
276
277
|
*
|
|
277
278
|
* Lives in the root barrel rather than inside `ZoomableSvg` on purpose: that
|
|
278
|
-
* component ships
|
|
279
|
-
*
|
|
280
|
-
*
|
|
281
|
-
*
|
|
282
|
-
*
|
|
283
|
-
* entry, so a consumer whose neighbouring toolbar buttons come from a lazy
|
|
284
|
-
* subpath (`ZoomableSvg` via `@keboola/design/mermaid`, which sees the argo
|
|
285
|
-
* default) would otherwise place a legacy-styled trigger beside argo-styled
|
|
286
|
-
* siblings — different border, background and icon colour from the same
|
|
287
|
-
* `variant="outline"`.
|
|
279
|
+
* component ships behind the lazy `@keboola/design/mermaid` boundary, and Radix's
|
|
280
|
+
* menu is not in that chunk closure — importing it there would pull ~11 kB
|
|
281
|
+
* brotlied of chunk-mates (`DropdownMenu` travels with `ButtonGroup` and `toast`,
|
|
282
|
+
* which in turn pulls `ScrollArea`) plus two more external deps behind the lazy
|
|
283
|
+
* boundary. Callers already paying for the barrel inject this instead.
|
|
288
284
|
*/
|
|
289
|
-
declare const ExportMenu: ({ items, label, size }: Props$
|
|
285
|
+
declare const ExportMenu: ({ items, label, size }: Props$1J) => react_jsx_runtime.JSX.Element;
|
|
290
286
|
|
|
291
287
|
/**
|
|
292
288
|
* Compound component for readonly value/command boxes with inline copy.
|
|
@@ -398,11 +394,11 @@ declare const LABELS$1: {
|
|
|
398
394
|
readonly signup: "Sign up with Microsoft";
|
|
399
395
|
readonly continue: "Continue with Microsoft";
|
|
400
396
|
};
|
|
401
|
-
type Props$
|
|
397
|
+
type Props$1I = ComponentPropsWithRef<'button'> & {
|
|
402
398
|
label?: keyof typeof LABELS$1;
|
|
403
399
|
isLoading?: boolean;
|
|
404
400
|
};
|
|
405
|
-
declare const MicrosoftButton: ({ ref, label, isLoading, disabled, type, className, children, style, ...buttonProps }: Props$
|
|
401
|
+
declare const MicrosoftButton: ({ ref, label, isLoading, disabled, type, className, children, style, ...buttonProps }: Props$1I) => react_jsx_runtime.JSX.Element;
|
|
406
402
|
|
|
407
403
|
declare const LABELS: {
|
|
408
404
|
readonly signin: "Sign in with Google";
|
|
@@ -410,19 +406,19 @@ declare const LABELS: {
|
|
|
410
406
|
readonly continue: "Continue with Google";
|
|
411
407
|
readonly 'signin-short': "Sign in";
|
|
412
408
|
};
|
|
413
|
-
declare const variants$
|
|
409
|
+
declare const variants$2: (props?: ({
|
|
414
410
|
variant?: "default" | "neutral" | null | undefined;
|
|
415
411
|
shape?: "circle" | "rectangular" | null | undefined;
|
|
416
412
|
size?: "icon" | "default" | null | undefined;
|
|
417
413
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
418
|
-
type Props$
|
|
414
|
+
type Props$1H = ComponentPropsWithRef<'button'> & VariantProps<typeof variants$2> & {
|
|
419
415
|
label?: keyof typeof LABELS;
|
|
420
416
|
isLoading?: boolean;
|
|
421
417
|
};
|
|
422
|
-
declare const GoogleButton: ({ ref, variant, shape, size, label, isLoading, disabled, type, className, children, style, ...buttonProps }: Props$
|
|
418
|
+
declare const GoogleButton: ({ ref, variant, shape, size, label, isLoading, disabled, type, className, children, style, ...buttonProps }: Props$1H) => react_jsx_runtime.JSX.Element;
|
|
423
419
|
|
|
424
|
-
type Props$
|
|
425
|
-
declare const Link: ({ ref, children, target, rel, onClick, className, ...rest }: Props$
|
|
420
|
+
type Props$1G = ComponentProps<'a'>;
|
|
421
|
+
declare const Link: ({ ref, children, target, rel, onClick, className, ...rest }: Props$1G) => react_jsx_runtime.JSX.Element;
|
|
426
422
|
|
|
427
423
|
/**
|
|
428
424
|
* AlertModal status variants. Mirrors `Alert`'s set but exposes `danger` (not `error`) since an
|
|
@@ -432,25 +428,28 @@ type AlertModalVariant = 'info' | 'warning' | 'danger' | 'success';
|
|
|
432
428
|
|
|
433
429
|
type ConfirmHandler = (event: MouseEvent$1<HTMLButtonElement>) => void | Promise<unknown>;
|
|
434
430
|
type CancelHandler = (event: MouseEvent$1<HTMLButtonElement>) => void;
|
|
435
|
-
type Props$
|
|
431
|
+
type Props$1F = {
|
|
436
432
|
onConfirm?: ConfirmHandler;
|
|
437
433
|
onCancel?: CancelHandler;
|
|
438
434
|
skipAsyncWait?: boolean;
|
|
435
|
+
/** Marks the confirm action busy from the outside, on top of the state inferred from a thenable `onConfirm`. */
|
|
436
|
+
isLoading?: boolean;
|
|
439
437
|
} & ComponentProps<typeof Root$1>;
|
|
440
438
|
declare const AlertModal: {
|
|
441
|
-
({ children, onConfirm, onCancel, skipAsyncWait, open, defaultOpen, onOpenChange, ...rest }: Props$
|
|
439
|
+
({ children, onConfirm, onCancel, skipAsyncWait, isLoading, open, defaultOpen, onOpenChange, ...rest }: Props$1F): react_jsx_runtime.JSX.Element;
|
|
442
440
|
Trigger: ({ ref, onClick, onKeyDown, ...props }: _radix_ui_react_alert_dialog.AlertDialogTriggerProps & react.RefAttributes<HTMLButtonElement>) => react_jsx_runtime.JSX.Element;
|
|
443
|
-
Content: ({ variant, icon, title, cancelLabel, confirmLabel: actionLabel, container, className, children, onEscapeKeyDown, ...props }: {
|
|
441
|
+
Content: ({ variant, icon, title, cancelLabel, confirmLabel: actionLabel, confirmDisabled, container, className, children, onEscapeKeyDown, ...props }: {
|
|
444
442
|
variant?: AlertModalVariant;
|
|
445
443
|
icon?: react.ReactNode;
|
|
446
444
|
title?: react.ReactNode;
|
|
447
445
|
cancelLabel?: react.ReactNode;
|
|
448
446
|
confirmLabel?: react.ReactNode;
|
|
447
|
+
confirmDisabled?: boolean;
|
|
449
448
|
container?: ComponentProps<react.FC<_radix_ui_react_alert_dialog.AlertDialogPortalProps>>["container"];
|
|
450
449
|
} & Omit<_radix_ui_react_alert_dialog.AlertDialogContentProps & react.RefAttributes<HTMLDivElement>, "title">) => react_jsx_runtime.JSX.Element;
|
|
451
450
|
};
|
|
452
451
|
|
|
453
|
-
type Props$
|
|
452
|
+
type Props$1E = ComponentProps<typeof Root$2>;
|
|
454
453
|
/**
|
|
455
454
|
* Blocking dialog for confirmations, forms, and detail views. Built on Radix Dialog.
|
|
456
455
|
*
|
|
@@ -466,7 +465,7 @@ type Props$1C = ComponentProps<typeof Root$2>;
|
|
|
466
465
|
* @see RECIPES.md#confirm-dialog — for destructive-confirm dialogs
|
|
467
466
|
*/
|
|
468
467
|
declare const Modal: {
|
|
469
|
-
(props: Props$
|
|
468
|
+
(props: Props$1E): react_jsx_runtime.JSX.Element;
|
|
470
469
|
Close: react.ForwardRefExoticComponent<_radix_ui_react_dialog.DialogCloseProps & react.RefAttributes<HTMLButtonElement>>;
|
|
471
470
|
Trigger: react.ForwardRefExoticComponent<_radix_ui_react_dialog.DialogTriggerProps & react.RefAttributes<HTMLButtonElement>>;
|
|
472
471
|
Content: ({ size, className, children, onEscapeKeyDown, ...props }: _radix_ui_react_dialog.DialogContentProps & react.RefAttributes<HTMLDivElement> & {
|
|
@@ -517,7 +516,7 @@ declare const FullScreenModal: (({ children, className, lockBodyScroll, onEscape
|
|
|
517
516
|
}) => react_jsx_runtime.JSX.Element;
|
|
518
517
|
};
|
|
519
518
|
|
|
520
|
-
type Props$
|
|
519
|
+
type Props$1D = PropsWithChildren<Omit<HTMLAttributes<HTMLDivElement>, 'title'> & {
|
|
521
520
|
title: ReactNode;
|
|
522
521
|
titleClassName?: string;
|
|
523
522
|
titleWrapperClassName?: string;
|
|
@@ -526,16 +525,16 @@ type Props$1B = PropsWithChildren<Omit<HTMLAttributes<HTMLDivElement>, 'title'>
|
|
|
526
525
|
onClose?: () => void;
|
|
527
526
|
showPreviousTitle?: boolean;
|
|
528
527
|
}>;
|
|
529
|
-
declare const FullScreenModalHeader: ({ title, titleClassName, titleWrapperClassName, defaultTitleStyles, isTitleWithIcon, children, onClose, className, showPreviousTitle, ...props }: Props$
|
|
528
|
+
declare const FullScreenModalHeader: ({ title, titleClassName, titleWrapperClassName, defaultTitleStyles, isTitleWithIcon, children, onClose, className, showPreviousTitle, ...props }: Props$1D) => react_jsx_runtime.JSX.Element;
|
|
530
529
|
|
|
531
|
-
type Props$
|
|
532
|
-
declare const FullScreenModalBody: ({ ref, className, children, ...props }: Props$
|
|
530
|
+
type Props$1C = HTMLAttributes<HTMLDivElement>;
|
|
531
|
+
declare const FullScreenModalBody: ({ ref, className, children, ...props }: Props$1C & {
|
|
533
532
|
ref?: Ref<HTMLDivElement>;
|
|
534
533
|
}) => react_jsx_runtime.JSX.Element;
|
|
535
534
|
|
|
536
|
-
type Props$
|
|
535
|
+
type Props$1B = ComponentProps<typeof Root$2>;
|
|
537
536
|
declare const Sheet: {
|
|
538
|
-
(props: Props$
|
|
537
|
+
(props: Props$1B): react_jsx_runtime.JSX.Element;
|
|
539
538
|
Close: react.ForwardRefExoticComponent<_radix_ui_react_dialog.DialogCloseProps & react.RefAttributes<HTMLButtonElement>>;
|
|
540
539
|
Trigger: react.ForwardRefExoticComponent<_radix_ui_react_dialog.DialogTriggerProps & react.RefAttributes<HTMLButtonElement>>;
|
|
541
540
|
Content: ({ className, children, side, disableTransition, hideOverlay, keepOpenOnPointerDownOutside, onPointerDownOutside, onInteractOutside, container, ...props }: _radix_ui_react_dialog.DialogContentProps & react.RefAttributes<HTMLDivElement> & {
|
|
@@ -558,9 +557,9 @@ declare const Sheet: {
|
|
|
558
557
|
Body: ({ className, ...rest }: react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => react_jsx_runtime.JSX.Element;
|
|
559
558
|
};
|
|
560
559
|
|
|
561
|
-
type Props$
|
|
560
|
+
type Props$1A = ComponentProps<typeof Root$3>;
|
|
562
561
|
declare const Popover: {
|
|
563
|
-
(props: Props$
|
|
562
|
+
(props: Props$1A): react_jsx_runtime.JSX.Element;
|
|
564
563
|
/**
|
|
565
564
|
* Main Layout
|
|
566
565
|
*/
|
|
@@ -580,12 +579,12 @@ type PopconfirmContextType = {
|
|
|
580
579
|
isLoading: boolean;
|
|
581
580
|
};
|
|
582
581
|
|
|
583
|
-
type Props$
|
|
582
|
+
type Props$1z = {
|
|
584
583
|
children: ReactNode;
|
|
585
584
|
skipAsyncWait?: boolean;
|
|
586
585
|
} & ComponentProps<typeof Popover> & Omit<Partial<PopconfirmContextType>, 'isLoading'>;
|
|
587
586
|
declare const Popconfirm: {
|
|
588
|
-
({ children, onConfirm, onCancel, variant, enabled, onOpenChange, open, skipAsyncWait, ...rest }: Props$
|
|
587
|
+
({ children, onConfirm, onCancel, variant, enabled, onOpenChange, open, skipAsyncWait, ...rest }: Props$1z): react_jsx_runtime.JSX.Element;
|
|
589
588
|
Confirm: ({ ref, onClick, children, asChild, className, ...props }: ({
|
|
590
589
|
asChild: true;
|
|
591
590
|
} & react.ClassAttributes<HTMLButtonElement> & react.ButtonHTMLAttributes<HTMLButtonElement>) | ({
|
|
@@ -597,7 +596,7 @@ declare const Popconfirm: {
|
|
|
597
596
|
} & react.ClassAttributes<HTMLButtonElement> & react.ButtonHTMLAttributes<HTMLButtonElement> & class_variance_authority.VariantProps<(props?: ({
|
|
598
597
|
block?: boolean | null | undefined;
|
|
599
598
|
variant?: "primary" | "secondary" | "inline" | "danger" | "invisible" | "outline" | null | undefined;
|
|
600
|
-
size?: "
|
|
599
|
+
size?: "small" | "medium" | "large" | "icon-lg" | "icon" | "icon-sm" | "icon-xs" | "icon-2xs" | "icon-3xs" | null | undefined;
|
|
601
600
|
} & class_variance_authority_types.ClassProp) | undefined) => string>, "children" | "isLoading">)) => react_jsx_runtime.JSX.Element;
|
|
602
601
|
Cancel: ({ ref, onClick, children, asChild, className, ...props }: ({
|
|
603
602
|
asChild: true;
|
|
@@ -610,7 +609,7 @@ declare const Popconfirm: {
|
|
|
610
609
|
} & react.ClassAttributes<HTMLButtonElement> & react.ButtonHTMLAttributes<HTMLButtonElement> & class_variance_authority.VariantProps<(props?: ({
|
|
611
610
|
block?: boolean | null | undefined;
|
|
612
611
|
variant?: "primary" | "secondary" | "inline" | "danger" | "invisible" | "outline" | null | undefined;
|
|
613
|
-
size?: "
|
|
612
|
+
size?: "small" | "medium" | "large" | "icon-lg" | "icon" | "icon-sm" | "icon-xs" | "icon-2xs" | "icon-3xs" | null | undefined;
|
|
614
613
|
} & class_variance_authority_types.ClassProp) | undefined) => string>, "children">)) => react_jsx_runtime.JSX.Element;
|
|
615
614
|
Footer: ({ className, ...props }: react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => react_jsx_runtime.JSX.Element;
|
|
616
615
|
Content: ({ className, onInteractOutside, ...props }: {
|
|
@@ -618,11 +617,11 @@ declare const Popconfirm: {
|
|
|
618
617
|
translate?: "yes" | "no" | undefined | undefined;
|
|
619
618
|
color?: string | undefined | undefined;
|
|
620
619
|
prefix?: string | undefined | undefined;
|
|
621
|
-
id?: string | undefined | undefined;
|
|
622
|
-
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
623
620
|
slot?: string | undefined | undefined;
|
|
624
621
|
style?: react.CSSProperties | undefined;
|
|
625
622
|
title?: string | undefined | undefined;
|
|
623
|
+
id?: string | undefined | undefined;
|
|
624
|
+
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
626
625
|
ref?: react.Ref<HTMLDivElement> | undefined;
|
|
627
626
|
key?: react.Key | null | undefined;
|
|
628
627
|
defaultChecked?: boolean | undefined | undefined;
|
|
@@ -930,16 +929,16 @@ declare const Popconfirm: {
|
|
|
930
929
|
Trigger: ({ onClick, ...props }: _radix_ui_react_popover.PopoverTriggerProps & react.RefAttributes<HTMLButtonElement>) => react_jsx_runtime.JSX.Element;
|
|
931
930
|
};
|
|
932
931
|
|
|
933
|
-
type Props$
|
|
932
|
+
type Props$1y = ComponentProps<typeof Root$4>;
|
|
934
933
|
declare const HoverCard: {
|
|
935
|
-
({ openDelay, closeDelay, ...rest }: Props$
|
|
934
|
+
({ openDelay, closeDelay, ...rest }: Props$1y): react_jsx_runtime.JSX.Element;
|
|
936
935
|
Content: ({ ref, className, align, sideOffset, children, ...props }: _radix_ui_react_hover_card.HoverCardContentProps & react.RefAttributes<HTMLDivElement>) => react_jsx_runtime.JSX.Element;
|
|
937
936
|
Trigger: react.ForwardRefExoticComponent<_radix_ui_react_hover_card.HoverCardTriggerProps & react.RefAttributes<HTMLAnchorElement>>;
|
|
938
937
|
};
|
|
939
938
|
|
|
940
|
-
type Props$
|
|
939
|
+
type Props$1x = ComponentProps<typeof Root$5>;
|
|
941
940
|
declare const DropdownMenu: {
|
|
942
|
-
({ modal, ...props }: Props$
|
|
941
|
+
({ modal, ...props }: Props$1x): react_jsx_runtime.JSX.Element;
|
|
943
942
|
/**
|
|
944
943
|
* Main Layout
|
|
945
944
|
*/
|
|
@@ -991,14 +990,14 @@ declare const DropdownMenu: {
|
|
|
991
990
|
}) => react_jsx_runtime.JSX.Element;
|
|
992
991
|
};
|
|
993
992
|
|
|
994
|
-
type Props$
|
|
993
|
+
type Props$1w = {
|
|
995
994
|
variant?: 'checkbox' | 'radio' | 'default';
|
|
996
995
|
};
|
|
997
|
-
declare const CheckIndicator: ({ variant }: Props$
|
|
996
|
+
declare const CheckIndicator: ({ variant }: Props$1w) => react_jsx_runtime.JSX.Element | null;
|
|
998
997
|
|
|
999
|
-
type Props$
|
|
998
|
+
type Props$1v = ComponentProps<typeof Command$1>;
|
|
1000
999
|
declare const Command: {
|
|
1001
|
-
({ className, ...rest }: Props$
|
|
1000
|
+
({ className, ...rest }: Props$1v): react_jsx_runtime.JSX.Element;
|
|
1002
1001
|
Content: ({ className, ...rest }: react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => react_jsx_runtime.JSX.Element;
|
|
1003
1002
|
Separator: ({ className, ...props }: Pick<Pick<react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof react.HTMLAttributes<HTMLDivElement>> & {
|
|
1004
1003
|
ref?: React.Ref<HTMLDivElement>;
|
|
@@ -1041,7 +1040,7 @@ declare const Command: {
|
|
|
1041
1040
|
Input: ({ ref, className, ...props }: {
|
|
1042
1041
|
variant?: "primary" | "secondary" | null | undefined;
|
|
1043
1042
|
state?: "warning" | "default" | "error" | null | undefined;
|
|
1044
|
-
sizing?: "
|
|
1043
|
+
sizing?: "small" | "medium" | "default" | null | undefined;
|
|
1045
1044
|
focusVariant?: "off" | "on" | "default" | null | undefined;
|
|
1046
1045
|
} & {
|
|
1047
1046
|
prefix?: react.ReactNode;
|
|
@@ -1080,21 +1079,21 @@ declare const Command: {
|
|
|
1080
1079
|
declare const addonVariants$1: (props?: ({
|
|
1081
1080
|
align?: "inline-end" | "inline-start" | "block-end" | "block-start" | null | undefined;
|
|
1082
1081
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1083
|
-
type Props$
|
|
1084
|
-
declare const InputGroupAddon: ({ children, align, className, ...props }: Props$
|
|
1082
|
+
type Props$1u = ComponentProps<'div'> & VariantProps<typeof addonVariants$1>;
|
|
1083
|
+
declare const InputGroupAddon: ({ children, align, className, ...props }: Props$1u) => react_jsx_runtime.JSX.Element;
|
|
1085
1084
|
|
|
1086
1085
|
type ButtonProps = ComponentProps<typeof Button>;
|
|
1087
|
-
type Props$
|
|
1088
|
-
declare const InputGroupButton: ({ ref, className, tabIndex, ...props }: Props$
|
|
1086
|
+
type Props$1t = Omit<ButtonProps, 'size' | 'block' | 'variant'>;
|
|
1087
|
+
declare const InputGroupButton: ({ ref, className, tabIndex, ...props }: Props$1t) => react_jsx_runtime.JSX.Element;
|
|
1089
1088
|
|
|
1090
|
-
type Props$
|
|
1091
|
-
declare const InputGroupInput: ({ ref, className, ...inputProps }: Props$
|
|
1089
|
+
type Props$1s = ComponentProps<'input'>;
|
|
1090
|
+
declare const InputGroupInput: ({ ref, className, ...inputProps }: Props$1s) => react_jsx_runtime.JSX.Element;
|
|
1092
1091
|
|
|
1093
|
-
type Props$
|
|
1094
|
-
declare const InputGroupText: ({ className, ...props }: Props$
|
|
1092
|
+
type Props$1r = ComponentProps<'span'>;
|
|
1093
|
+
declare const InputGroupText: ({ className, ...props }: Props$1r) => react_jsx_runtime.JSX.Element;
|
|
1095
1094
|
|
|
1096
1095
|
type TextareaNativeProps$1 = Omit<ComponentProps<typeof react_textarea_autosize__default>, 'value' | 'defaultValue' | 'rows' | 'maxRows'>;
|
|
1097
|
-
type Props$
|
|
1096
|
+
type Props$1q = TextareaNativeProps$1 & {
|
|
1098
1097
|
value?: string | null;
|
|
1099
1098
|
defaultValue?: string | null;
|
|
1100
1099
|
onValueChange?: (value: string) => void;
|
|
@@ -1102,18 +1101,18 @@ type Props$1o = TextareaNativeProps$1 & {
|
|
|
1102
1101
|
maxRows?: number | 'unlimited';
|
|
1103
1102
|
disableResize?: boolean;
|
|
1104
1103
|
};
|
|
1105
|
-
declare const InputGroupTextArea: ({ ref, className, onChange, onValueChange, value, defaultValue, onBlur, onValueBlur, disableResize, minRows, maxRows, ...props }: Props$
|
|
1104
|
+
declare const InputGroupTextArea: ({ ref, className, onChange, onValueChange, value, defaultValue, onBlur, onValueBlur, disableResize, minRows, maxRows, ...props }: Props$1q) => react_jsx_runtime.JSX.Element;
|
|
1106
1105
|
|
|
1107
1106
|
declare const inputGroupVariants: (props?: ({
|
|
1108
1107
|
focusVariant?: "off" | "on" | "default" | null | undefined;
|
|
1109
1108
|
variant?: "primary" | "secondary" | "argo" | null | undefined;
|
|
1110
|
-
sizing?: "
|
|
1109
|
+
sizing?: "small" | "medium" | "default" | null | undefined;
|
|
1111
1110
|
state?: "warning" | "default" | "error" | null | undefined;
|
|
1112
1111
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1113
|
-
type Props$
|
|
1112
|
+
type Props$1p = ComponentPropsWithRef<'div'> & Omit<VariantProps<typeof inputGroupVariants>, 'variant'> & {
|
|
1114
1113
|
variant?: Exclude<VariantProps<typeof inputGroupVariants>['variant'], 'argo'>;
|
|
1115
1114
|
};
|
|
1116
|
-
declare const InputGroupRoot: ({ ref, children, state, variant, sizing, focusVariant, className, ...props }: Props$
|
|
1115
|
+
declare const InputGroupRoot: ({ ref, children, state, variant, sizing, focusVariant, className, ...props }: Props$1p) => react_jsx_runtime.JSX.Element;
|
|
1117
1116
|
declare const InputGroup: typeof InputGroupRoot & {
|
|
1118
1117
|
Input: typeof InputGroupInput;
|
|
1119
1118
|
Addon: typeof InputGroupAddon;
|
|
@@ -1145,7 +1144,7 @@ type OwnProps = {
|
|
|
1145
1144
|
* `value` / `defaultValue` plus convenience `onValueChange` / `onValueBlur` callbacks. `null` /
|
|
1146
1145
|
* `undefined` are coerced to empty strings.
|
|
1147
1146
|
*/
|
|
1148
|
-
type Props$
|
|
1147
|
+
type Props$1o = InputGroupProps$9 & OwnProps & Omit<ComponentProps<'input'>, 'prefix' | 'value' | 'defaultValue' | 'type' | 'accept' | 'step'>;
|
|
1149
1148
|
/**
|
|
1150
1149
|
* Standard text input with a string-only API, built on `InputGroup` chrome — addons, clear button,
|
|
1151
1150
|
* sizing, focus variants. The default choice for a bare text input.
|
|
@@ -1158,34 +1157,34 @@ type Props$1m = InputGroupProps$9 & OwnProps & Omit<ComponentProps<'input'>, 'pr
|
|
|
1158
1157
|
* page layouts. Chrome resolves from the active brand automatically: a modern brand always renders argo
|
|
1159
1158
|
* (any `variant` is ignored), while `variant` only tunes the legacy-brand chrome.
|
|
1160
1159
|
*/
|
|
1161
|
-
declare const TextInput: ({ ref: forwardedRef, state, sizing, className, prefix, rightSuffix, rightSuffixVariant, leftSuffix, allowClear, onClear, disabled, testId: prefixTestId, autoFocus, id, name, variant, readOnly, type, focusVariant, onChange, onBlur, onValueChange, onValueBlur, value: valueProp, defaultValue, ...inputProps }: Props$
|
|
1160
|
+
declare const TextInput: ({ ref: forwardedRef, state, sizing, className, prefix, rightSuffix, rightSuffixVariant, leftSuffix, allowClear, onClear, disabled, testId: prefixTestId, autoFocus, id, name, variant, readOnly, type, focusVariant, onChange, onBlur, onValueChange, onValueBlur, value: valueProp, defaultValue, ...inputProps }: Props$1o) => react_jsx_runtime.JSX.Element;
|
|
1162
1161
|
|
|
1163
|
-
type Props$
|
|
1164
|
-
declare const CommandInput: ({ ref, className, ...props }: Props$
|
|
1162
|
+
type Props$1n = ComponentProps<typeof TextInput>;
|
|
1163
|
+
declare const CommandInput: ({ ref, className, ...props }: Props$1n) => react_jsx_runtime.JSX.Element;
|
|
1165
1164
|
|
|
1166
|
-
type Props$
|
|
1165
|
+
type Props$1m = ComponentProps<typeof ScrollAreaPrimitive.Root> & {
|
|
1167
1166
|
viewPortClassName?: string;
|
|
1168
1167
|
scrollBarClassName?: string;
|
|
1169
1168
|
orientation?: ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>['orientation'];
|
|
1170
1169
|
};
|
|
1171
|
-
declare const ScrollArea: ({ ref, className, children, viewPortClassName, orientation, scrollBarClassName, ...props }: Props$
|
|
1170
|
+
declare const ScrollArea: ({ ref, className, children, viewPortClassName, orientation, scrollBarClassName, ...props }: Props$1m) => react_jsx_runtime.JSX.Element;
|
|
1172
1171
|
|
|
1173
|
-
type Props$
|
|
1174
|
-
declare const ScrollBar: ({ className, orientation, ...props }: Props$
|
|
1172
|
+
type Props$1l = ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>;
|
|
1173
|
+
declare const ScrollBar: ({ className, orientation, ...props }: Props$1l) => react_jsx_runtime.JSX.Element;
|
|
1175
1174
|
|
|
1176
|
-
type Props$
|
|
1177
|
-
declare const CommandList: ({ ref, className, children, viewPortClassName, ...props }: Props$
|
|
1175
|
+
type Props$1k = ComponentProps<typeof Command$1.List> & Pick<ComponentProps<typeof ScrollArea>, 'viewPortClassName'>;
|
|
1176
|
+
declare const CommandList: ({ ref, className, children, viewPortClassName, ...props }: Props$1k) => react_jsx_runtime.JSX.Element;
|
|
1178
1177
|
|
|
1179
|
-
type Props$
|
|
1180
|
-
declare const CommandGroup: ({ className, ...props }: Props$
|
|
1178
|
+
type Props$1j = ComponentProps<typeof Command$1.Group>;
|
|
1179
|
+
declare const CommandGroup: ({ className, ...props }: Props$1j) => react_jsx_runtime.JSX.Element;
|
|
1181
1180
|
|
|
1182
|
-
type Props$
|
|
1181
|
+
type Props$1i = ComponentProps<typeof Command$1.Item> & {
|
|
1183
1182
|
icon?: ReactNode;
|
|
1184
1183
|
checked?: boolean;
|
|
1185
1184
|
variant?: ComponentProps<typeof CheckIndicator>['variant'];
|
|
1186
1185
|
actions?: ReactNode;
|
|
1187
1186
|
};
|
|
1188
|
-
declare const CommandItem: ({ className, icon, children, checked, variant, actions, ...props }: Props$
|
|
1187
|
+
declare const CommandItem: ({ className, icon, children, checked, variant, actions, ...props }: Props$1i) => react_jsx_runtime.JSX.Element;
|
|
1189
1188
|
|
|
1190
1189
|
/** Viewport-relative box of the highlighted target. */
|
|
1191
1190
|
type TargetRect = {
|
|
@@ -1205,7 +1204,7 @@ type SpotlightTarget = string | RefObject<Element | null> | undefined;
|
|
|
1205
1204
|
*/
|
|
1206
1205
|
declare const useTargetRect: (target: SpotlightTarget, enabled: boolean) => TargetRect | null;
|
|
1207
1206
|
|
|
1208
|
-
type Props$
|
|
1207
|
+
type Props$1h = {
|
|
1209
1208
|
/** Target box to cut out of the dim layer, or `null` for a full dim (no highlight). */
|
|
1210
1209
|
rect: TargetRect | null;
|
|
1211
1210
|
/** Padding around the target inside the cut-out, in px. */
|
|
@@ -1227,7 +1226,7 @@ type Props$1f = {
|
|
|
1227
1226
|
* (steps, next/prev, "seen" persistence) is intentionally app-owned; see the
|
|
1228
1227
|
* "Guided tour (recipe)" story for the composition.
|
|
1229
1228
|
*/
|
|
1230
|
-
declare const SpotlightBackdrop: ({ rect, padding, radius, className, onClick }: Props$
|
|
1229
|
+
declare const SpotlightBackdrop: ({ rect, padding, radius, className, onClick }: Props$1h) => react_jsx_runtime.JSX.Element;
|
|
1231
1230
|
|
|
1232
1231
|
type CalendarProps = Omit<PropsBase, 'required' | 'captionLayout'> & (PropsSingle | PropsRange);
|
|
1233
1232
|
declare const Calendar: {
|
|
@@ -1242,49 +1241,87 @@ declare const DatePicker: {
|
|
|
1242
1241
|
displayName: string;
|
|
1243
1242
|
};
|
|
1244
1243
|
|
|
1244
|
+
/**
|
|
1245
|
+
* Chrome for a control that looks like an input but opens an overlay on click. Shared by
|
|
1246
|
+
* `SelectTrigger` and `DateRangePicker`'s trigger so both sit at the same height and colour when
|
|
1247
|
+
* they stand next to each other in a filter row.
|
|
1248
|
+
*/
|
|
1249
|
+
declare const overlayTriggerVariants: (props?: ({
|
|
1250
|
+
variant?: "primary" | "secondary" | "argo" | null | undefined;
|
|
1251
|
+
sizing?: "small" | "medium" | "default" | null | undefined;
|
|
1252
|
+
state?: "warning" | "default" | "error" | null | undefined;
|
|
1253
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1254
|
+
|
|
1245
1255
|
type DateRange = {
|
|
1246
1256
|
from: Date;
|
|
1247
1257
|
to?: Date;
|
|
1248
1258
|
};
|
|
1249
1259
|
type DateRangePreset = {
|
|
1250
1260
|
label: string;
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1261
|
+
/**
|
|
1262
|
+
* The range the preset stands for. A preset may omit it and carry `value` instead — or neither,
|
|
1263
|
+
* for a clear-the-range preset ("All time"): without `onPresetSelect`, picking one calls
|
|
1264
|
+
* `onChange(undefined)`.
|
|
1265
|
+
*/
|
|
1266
|
+
range?: DateRange;
|
|
1267
|
+
/**
|
|
1268
|
+
* Echoed back through `onPresetSelect` instead of `range`. For consumers whose stored form of a
|
|
1269
|
+
* range is not two dates: a relative token the server resolves per request, such as `-7 days`.
|
|
1270
|
+
*/
|
|
1271
|
+
value?: string;
|
|
1255
1272
|
};
|
|
1256
1273
|
type DateRangePickerProps = {
|
|
1257
1274
|
value: DateRange | undefined;
|
|
1258
1275
|
onChange: (range: DateRange | undefined) => void;
|
|
1276
|
+
/**
|
|
1277
|
+
* Replaces the formatted range on the trigger entirely — the name of the active preset. For a
|
|
1278
|
+
* range in the app's own date style, prefer `formatDate`, which keeps the from → to join here.
|
|
1279
|
+
*/
|
|
1280
|
+
label?: ReactNode;
|
|
1281
|
+
/**
|
|
1282
|
+
* Formats one end of the range on the trigger, replacing the built-in ISO format (which is
|
|
1283
|
+
* unambiguous but matches no app in particular, including the `withTime` time-of-day part).
|
|
1284
|
+
* The from → to join stays with the component.
|
|
1285
|
+
*/
|
|
1286
|
+
formatDate?: (date: Date) => string;
|
|
1259
1287
|
placeholder?: string;
|
|
1260
|
-
presets?: DateRangePreset[];
|
|
1288
|
+
presets?: readonly DateRangePreset[];
|
|
1289
|
+
/** Called instead of `onChange` when a preset is picked, with the preset itself. */
|
|
1290
|
+
onPresetSelect?: (preset: DateRangePreset) => void;
|
|
1291
|
+
/** Adds a start/end time-of-day row; the emitted `from` / `to` then carry hours and minutes. */
|
|
1292
|
+
withTime?: boolean;
|
|
1293
|
+
/** Hold edits in a draft and emit only on Apply, so one range costs one `onChange`. */
|
|
1294
|
+
requireApply?: boolean;
|
|
1295
|
+
/** Days that cannot be picked, as a react-day-picker matcher — e.g. `{ after: new Date() }`. */
|
|
1296
|
+
disabledDays?: Matcher | Matcher[];
|
|
1297
|
+
variant?: Exclude<VariantProps<typeof overlayTriggerVariants>['variant'], 'argo'>;
|
|
1261
1298
|
disabled?: boolean;
|
|
1262
1299
|
className?: string;
|
|
1263
|
-
}
|
|
1300
|
+
} & Pick<PopoverProps, 'open' | 'onOpenChange' | 'defaultOpen'> & Pick<PopoverContentProps, 'align' | 'alignOffset' | 'sideOffset'>;
|
|
1264
1301
|
/**
|
|
1265
|
-
* Range-mode date picker — Popover + Calendar in
|
|
1266
|
-
*
|
|
1267
|
-
* pair; for a single date use `DatePicker`.
|
|
1302
|
+
* Range-mode date picker — `Popover` + `Calendar` in range mode, with an optional preset sidebar,
|
|
1303
|
+
* a time-of-day row (`withTime`) and an explicit Apply step (`requireApply`). Use for selecting a
|
|
1304
|
+
* `{ from, to }` pair; for a single date use `DatePicker`.
|
|
1268
1305
|
*/
|
|
1269
1306
|
declare const DateRangePicker: {
|
|
1270
|
-
({
|
|
1307
|
+
({ align, alignOffset, className, defaultOpen, disabled, disabledDays, formatDate, label, onChange, onOpenChange, onPresetSelect, open, placeholder, presets, requireApply, sideOffset, value, variant, withTime, }: DateRangePickerProps): react_jsx_runtime.JSX.Element;
|
|
1271
1308
|
displayName: string;
|
|
1272
1309
|
};
|
|
1273
1310
|
|
|
1274
|
-
type Props$
|
|
1311
|
+
type Props$1g = {
|
|
1275
1312
|
children?: ReactNode;
|
|
1276
1313
|
defaultSelected?: string | null;
|
|
1277
1314
|
selected?: string | null;
|
|
1278
1315
|
onSelect?: (time: string) => void;
|
|
1279
1316
|
} & Pick<PopoverProps, 'open' | 'onOpenChange' | 'defaultOpen'> & Pick<PopoverContentProps, 'align' | 'alignOffset' | 'sideOffset'>;
|
|
1280
|
-
declare const TimePicker: ({ align, alignOffset, children, defaultOpen, defaultSelected, onOpenChange, onSelect, open, selected, sideOffset, }: Props$
|
|
1317
|
+
declare const TimePicker: ({ align, alignOffset, children, defaultOpen, defaultSelected, onOpenChange, onSelect, open, selected, sideOffset, }: Props$1g) => react_jsx_runtime.JSX.Element;
|
|
1281
1318
|
|
|
1282
|
-
type Props$
|
|
1319
|
+
type Props$1f = {
|
|
1283
1320
|
id?: string | number;
|
|
1284
1321
|
htmlFor?: string | number;
|
|
1285
1322
|
} & Omit<LabelProps$1, 'id' | 'htmlFor'>;
|
|
1286
1323
|
declare const Label: {
|
|
1287
|
-
({ className, children, id, htmlFor, ...rest }: Props$
|
|
1324
|
+
({ className, children, id, htmlFor, ...rest }: Props$1f): react_jsx_runtime.JSX.Element;
|
|
1288
1325
|
Optional: ({ className, ...props }: ComponentPropsWithRef<"span">) => react_jsx_runtime.JSX.Element;
|
|
1289
1326
|
Required: ({ className, ...props }: ComponentPropsWithRef<"span">) => react_jsx_runtime.JSX.Element;
|
|
1290
1327
|
};
|
|
@@ -1295,22 +1332,22 @@ declare const fieldBoxVariants: (props?: ({
|
|
|
1295
1332
|
|
|
1296
1333
|
declare const switchVariants: (props?: ({
|
|
1297
1334
|
variant?: "default" | "argo" | null | undefined;
|
|
1298
|
-
size?: "
|
|
1335
|
+
size?: "small" | "medium" | "large" | null | undefined;
|
|
1299
1336
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1300
1337
|
|
|
1301
|
-
type Props$
|
|
1338
|
+
type Props$1e = {
|
|
1302
1339
|
id?: string | number;
|
|
1303
1340
|
children?: ReactNode;
|
|
1304
1341
|
description?: ReactNode;
|
|
1305
1342
|
variant?: VariantProps<typeof fieldBoxVariants>['variant'];
|
|
1306
1343
|
position?: 'start' | 'end';
|
|
1307
1344
|
} & Omit<ComponentProps<typeof Root$6>, 'asChild' | 'id'> & Omit<VariantProps<typeof switchVariants>, 'variant'>;
|
|
1308
|
-
declare const Switch: ({ ref, className, size, disabled, id: idProp, children, description, variant, position, ...props }: Props$
|
|
1345
|
+
declare const Switch: ({ ref, className, size, disabled, id: idProp, children, description, variant, position, ...props }: Props$1e) => react_jsx_runtime.JSX.Element;
|
|
1309
1346
|
|
|
1310
1347
|
type Variant$7 = 'radio' | 'button' | 'radio-block';
|
|
1311
1348
|
type Orientation = 'vertical' | 'horizontal';
|
|
1312
1349
|
|
|
1313
|
-
type Props$
|
|
1350
|
+
type Props$1d<Value> = {
|
|
1314
1351
|
variant?: Variant$7;
|
|
1315
1352
|
orientation?: Orientation;
|
|
1316
1353
|
onValueChange?: (value: Value) => void;
|
|
@@ -1318,18 +1355,18 @@ type Props$1b<Value> = {
|
|
|
1318
1355
|
defaultValue?: Value | null;
|
|
1319
1356
|
} & Omit<ComponentProps<typeof RRadioGroup.Root>, 'asChild' | 'orientation' | 'onValueChange' | 'onChange' | 'value' | 'defaultValue'>;
|
|
1320
1357
|
declare const RadioGroup: {
|
|
1321
|
-
<Value extends string = string>({ variant, className, disabled, orientation, onValueChange, children, value, defaultValue, ...props }: Props$
|
|
1322
|
-
Item: <T extends string = string>({ children, tooltip, tooltipVariant, tooltipPlacement, description, ...props }: {
|
|
1358
|
+
<Value extends string = string>({ variant, className, disabled, orientation, onValueChange, children, value, defaultValue, ...props }: Props$1d<Value>): react_jsx_runtime.JSX.Element;
|
|
1359
|
+
Item: <T extends string = string>({ children, className, tooltip, tooltipVariant, tooltipPlacement, description, ...props }: {
|
|
1323
1360
|
content?: string | undefined | undefined;
|
|
1324
1361
|
translate?: "yes" | "no" | undefined | undefined;
|
|
1325
1362
|
color?: string | undefined | undefined;
|
|
1326
1363
|
prefix?: string | undefined | undefined;
|
|
1327
|
-
id?: string | undefined | undefined;
|
|
1328
|
-
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
1329
1364
|
form?: string | undefined | undefined;
|
|
1330
1365
|
slot?: string | undefined | undefined;
|
|
1331
1366
|
style?: react.CSSProperties | undefined;
|
|
1332
1367
|
title?: string | undefined | undefined;
|
|
1368
|
+
id?: string | undefined | undefined;
|
|
1369
|
+
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
1333
1370
|
ref?: react.Ref<HTMLButtonElement> | undefined;
|
|
1334
1371
|
key?: react.Key | null | undefined;
|
|
1335
1372
|
defaultChecked?: boolean | undefined | undefined;
|
|
@@ -1615,30 +1652,30 @@ declare const RadioGroup: {
|
|
|
1615
1652
|
} & {
|
|
1616
1653
|
value: T;
|
|
1617
1654
|
tooltip?: react.ReactNode;
|
|
1618
|
-
tooltipVariant?: Props$
|
|
1619
|
-
tooltipPlacement?: Props$
|
|
1655
|
+
tooltipVariant?: Props$1N["variant"];
|
|
1656
|
+
tooltipPlacement?: Props$1N["placement"];
|
|
1620
1657
|
description?: react.ReactNode;
|
|
1621
1658
|
}) => react_jsx_runtime.JSX.Element;
|
|
1622
1659
|
Separator: () => react_jsx_runtime.JSX.Element;
|
|
1623
1660
|
};
|
|
1624
1661
|
|
|
1625
|
-
type Props$
|
|
1662
|
+
type Props$1c = ComponentProps<typeof Thumb> & {
|
|
1626
1663
|
tooltip?: ReactNode;
|
|
1627
1664
|
tooltipSide?: ComponentProps<typeof Tooltip.Content>['placement'];
|
|
1628
1665
|
};
|
|
1629
|
-
declare const SliderThumb: ({ ref: forwardedRef, className, tooltip, tooltipSide, ...props }: Props$
|
|
1666
|
+
declare const SliderThumb: ({ ref: forwardedRef, className, tooltip, tooltipSide, ...props }: Props$1c) => react_jsx_runtime.JSX.Element;
|
|
1630
1667
|
|
|
1631
1668
|
type ThumbTooltipFn = (value: number, index: number) => ReactNode;
|
|
1632
|
-
type Props$
|
|
1669
|
+
type Props$1b = ComponentProps<typeof Root$7> & {
|
|
1633
1670
|
thumbTooltip?: ThumbTooltipFn;
|
|
1634
1671
|
thumbTooltipSide?: ComponentProps<typeof SliderThumb>['tooltipSide'];
|
|
1635
1672
|
rangeClassName?: string;
|
|
1636
1673
|
};
|
|
1637
|
-
declare const Slider: ({ ref, className, value, defaultValue, min, max, onValueChange, thumbTooltip, thumbTooltipSide, rangeClassName, ...rest }: Props$
|
|
1674
|
+
declare const Slider: ({ ref, className, value, defaultValue, min, max, onValueChange, thumbTooltip, thumbTooltipSide, rangeClassName, ...rest }: Props$1b) => react_jsx_runtime.JSX.Element;
|
|
1638
1675
|
|
|
1639
1676
|
type SearchChangeEventHandler = (value: string, event: ChangeEvent<HTMLInputElement> | MouseEvent$1<HTMLButtonElement>) => void;
|
|
1640
1677
|
type SearchBlurEventHandler = (value: string, event: FocusEvent$1<HTMLInputElement, Element>) => void;
|
|
1641
|
-
type Props$
|
|
1678
|
+
type Props$1a = {
|
|
1642
1679
|
suffix?: ReactNode;
|
|
1643
1680
|
disableDebounce?: boolean;
|
|
1644
1681
|
debounceDelay?: number;
|
|
@@ -1653,12 +1690,12 @@ type Props$18 = {
|
|
|
1653
1690
|
/**
|
|
1654
1691
|
* @deprecated Use `SearchInput` instead. `Search` is kept only for the legacy (non-sidebar) layout.
|
|
1655
1692
|
*/
|
|
1656
|
-
declare const Search: ({ ref, suffix, className, onBlur, onChange, disabled, readOnly, disableDebounce, debounceDelay, value: externalValue, defaultValue, testId: prefixTestId, placeholder, onClear, variant, ...rest }: Props$
|
|
1693
|
+
declare const Search: ({ ref, suffix, className, onBlur, onChange, disabled, readOnly, disableDebounce, debounceDelay, value: externalValue, defaultValue, testId: prefixTestId, placeholder, onClear, variant, ...rest }: Props$1a) => react_jsx_runtime.JSX.Element;
|
|
1657
1694
|
|
|
1658
|
-
type Props$
|
|
1695
|
+
type Props$19 = {
|
|
1659
1696
|
onSubmit: (value: string) => void;
|
|
1660
1697
|
} & Omit<ComponentProps<typeof Search>, 'onClear' | 'onBlur' | 'onSubmit'>;
|
|
1661
|
-
declare const SearchForm: ({ ref, onSubmit, name, ...props }: Props$
|
|
1698
|
+
declare const SearchForm: ({ ref, onSubmit, name, ...props }: Props$19) => react_jsx_runtime.JSX.Element;
|
|
1662
1699
|
|
|
1663
1700
|
type SelectRootProps = {
|
|
1664
1701
|
children?: ReactNode;
|
|
@@ -1676,15 +1713,10 @@ type SelectRootProps = {
|
|
|
1676
1713
|
onValueChange?(value: string): void;
|
|
1677
1714
|
};
|
|
1678
1715
|
|
|
1679
|
-
|
|
1680
|
-
variant?:
|
|
1681
|
-
sizing?: "medium" | "small" | "default" | null | undefined;
|
|
1682
|
-
state?: "warning" | "default" | "error" | null | undefined;
|
|
1683
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1684
|
-
type Props$16 = ComponentProps<typeof _radix_ui_react_select.Trigger> & Omit<VariantProps<typeof variants$2>, 'variant'> & {
|
|
1685
|
-
variant?: Exclude<VariantProps<typeof variants$2>['variant'], 'argo'> | 'inline';
|
|
1716
|
+
type Props$18 = ComponentProps<typeof _radix_ui_react_select.Trigger> & Omit<VariantProps<typeof overlayTriggerVariants>, 'variant'> & {
|
|
1717
|
+
variant?: Exclude<VariantProps<typeof overlayTriggerVariants>['variant'], 'argo'> | 'inline';
|
|
1686
1718
|
} & Pick<ComponentProps<typeof _radix_ui_react_select.Value>, 'placeholder'>;
|
|
1687
|
-
declare const SelectTrigger: ({ ref, className, variant, state, sizing, placeholder, ...props }: Props$
|
|
1719
|
+
declare const SelectTrigger: ({ ref, className, variant, state, sizing, placeholder, ...props }: Props$18) => react_jsx_runtime.JSX.Element;
|
|
1688
1720
|
|
|
1689
1721
|
type SelectItem = {
|
|
1690
1722
|
value: string;
|
|
@@ -1697,7 +1729,7 @@ type SelectItemGroup = {
|
|
|
1697
1729
|
items: readonly SelectItem[];
|
|
1698
1730
|
};
|
|
1699
1731
|
type TriggerProps = ComponentProps<typeof SelectTrigger>;
|
|
1700
|
-
type Props$
|
|
1732
|
+
type Props$17 = Pick<SelectRootProps, 'value' | 'defaultValue' | 'onValueChange' | 'disabled' | 'name' | 'required' | 'open' | 'defaultOpen' | 'onOpenChange' | 'dir' | 'autoComplete' | 'form'> & Pick<TriggerProps, 'variant' | 'state' | 'sizing' | 'placeholder' | 'id' | 'className' | 'onBlur' | 'aria-describedby' | 'aria-invalid' | 'aria-required'> & {
|
|
1701
1733
|
items?: readonly (SelectItem | SelectItemGroup)[];
|
|
1702
1734
|
};
|
|
1703
1735
|
/**
|
|
@@ -1711,18 +1743,14 @@ type Props$15 = Pick<SelectRootProps, 'value' | 'defaultValue' | 'onValueChange'
|
|
|
1711
1743
|
* `Select.Item`) for custom item layouts; the top-level `Select` covers the common cases.
|
|
1712
1744
|
*/
|
|
1713
1745
|
declare const Select: {
|
|
1714
|
-
({ value, defaultValue, onValueChange, disabled, name, required, open, defaultOpen, onOpenChange, dir, autoComplete, form, variant, state, sizing, placeholder, id, className, onBlur, "aria-describedby": ariaDescribedBy, "aria-invalid": ariaInvalid, "aria-required": ariaRequired, items, }: Props$
|
|
1746
|
+
({ value, defaultValue, onValueChange, disabled, name, required, open, defaultOpen, onOpenChange, dir, autoComplete, form, variant, state, sizing, placeholder, id, className, onBlur, "aria-describedby": ariaDescribedBy, "aria-invalid": ariaInvalid, "aria-required": ariaRequired, items, }: Props$17): react_jsx_runtime.JSX.Element;
|
|
1715
1747
|
Root: (props: SelectRootProps) => react_jsx_runtime.JSX.Element;
|
|
1716
1748
|
Trigger: ({ ref, className, variant, state, sizing, placeholder, ...props }: _radix_ui_react_select.SelectTriggerProps & react.RefAttributes<HTMLButtonElement> & Omit<class_variance_authority.VariantProps<(props?: ({
|
|
1717
1749
|
variant?: "primary" | "secondary" | "argo" | null | undefined;
|
|
1718
|
-
sizing?: "
|
|
1750
|
+
sizing?: "small" | "medium" | "default" | null | undefined;
|
|
1719
1751
|
state?: "warning" | "default" | "error" | null | undefined;
|
|
1720
1752
|
} & class_variance_authority_types.ClassProp) | undefined) => string>, "variant"> & {
|
|
1721
|
-
variant?: Exclude<class_variance_authority.VariantProps<
|
|
1722
|
-
variant?: "primary" | "secondary" | "argo" | null | undefined;
|
|
1723
|
-
sizing?: "medium" | "small" | "default" | null | undefined;
|
|
1724
|
-
state?: "warning" | "default" | "error" | null | undefined;
|
|
1725
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string>["variant"], "argo"> | "inline";
|
|
1753
|
+
variant?: Exclude<class_variance_authority.VariantProps<typeof overlayTriggerVariants>["variant"], "argo"> | "inline";
|
|
1726
1754
|
} & Pick<_radix_ui_react_select.SelectValueProps & react.RefAttributes<HTMLSpanElement>, "placeholder">) => react_jsx_runtime.JSX.Element;
|
|
1727
1755
|
Content: ({ ref, className, children, container, position, sideOffset, ...props }: _radix_ui_react_select.SelectContentProps & react.RefAttributes<HTMLDivElement> & {
|
|
1728
1756
|
container?: HTMLElement | null;
|
|
@@ -1735,45 +1763,45 @@ declare const Select: {
|
|
|
1735
1763
|
Separator: ({ className, ...props }: _radix_ui_react_select.SelectSeparatorProps & react.RefAttributes<HTMLDivElement>) => react_jsx_runtime.JSX.Element;
|
|
1736
1764
|
};
|
|
1737
1765
|
|
|
1738
|
-
type Props$
|
|
1766
|
+
type Props$16 = {
|
|
1739
1767
|
id?: string | number;
|
|
1740
1768
|
description?: ReactNode;
|
|
1741
1769
|
variant?: VariantProps<typeof fieldBoxVariants>['variant'];
|
|
1742
1770
|
position?: 'start' | 'end';
|
|
1743
|
-
tooltip?: Props$
|
|
1744
|
-
tooltipPlacement?: Props$
|
|
1771
|
+
tooltip?: Props$1N['tooltip'];
|
|
1772
|
+
tooltipPlacement?: Props$1N['placement'];
|
|
1745
1773
|
} & Omit<ComponentProps<typeof Root$8>, 'id'>;
|
|
1746
|
-
declare function Checkbox(prop: Omit<Props$
|
|
1774
|
+
declare function Checkbox(prop: Omit<Props$16, 'checked' | 'onCheckedChange'> & {
|
|
1747
1775
|
checked?: boolean;
|
|
1748
1776
|
onCheckedChange?: (checked: boolean) => void;
|
|
1749
1777
|
}): ReactNode;
|
|
1750
|
-
declare function Checkbox(prop: Omit<Props$
|
|
1778
|
+
declare function Checkbox(prop: Omit<Props$16, 'checked' | 'onCheckedChange'> & {
|
|
1751
1779
|
checked?: CheckedState;
|
|
1752
1780
|
onCheckedChange?: (checked: CheckedState) => void;
|
|
1753
1781
|
}): ReactNode;
|
|
1754
1782
|
|
|
1755
1783
|
type Variant$6 = 'check' | 'checkbox';
|
|
1756
|
-
type Props$
|
|
1784
|
+
type Props$15 = Omit<ComponentProps<typeof Combobox$1.ItemIndicator>, 'className' | 'children'> & {
|
|
1757
1785
|
className?: string;
|
|
1758
1786
|
variant?: Variant$6;
|
|
1759
1787
|
};
|
|
1760
|
-
declare const ComboboxItemIndicator: ({ ref, className, variant, ...props }: Props$
|
|
1788
|
+
declare const ComboboxItemIndicator: ({ ref, className, variant, ...props }: Props$15) => react_jsx_runtime.JSX.Element;
|
|
1761
1789
|
|
|
1762
|
-
type Props$
|
|
1763
|
-
declare const ComboboxInput: ({ ref, ...props }: Props$
|
|
1790
|
+
type Props$14 = Omit<ComponentProps<typeof Combobox$1.Input>, 'render'>;
|
|
1791
|
+
declare const ComboboxInput: ({ ref, ...props }: Props$14) => react_jsx_runtime.JSX.Element;
|
|
1764
1792
|
|
|
1765
1793
|
type InputGroupProps$8 = Pick<ComponentProps<typeof InputGroup>, 'variant' | 'focusVariant' | 'sizing' | 'state'>;
|
|
1766
|
-
type Props$
|
|
1794
|
+
type Props$13 = InputGroupProps$8 & Omit<ComponentProps<typeof Combobox$1.InputGroup>, 'render' | 'className'> & {
|
|
1767
1795
|
className?: string;
|
|
1768
1796
|
};
|
|
1769
|
-
declare const ComboboxInputGroup: ({ ref, state, variant, sizing, focusVariant, className, ...props }: Props$
|
|
1797
|
+
declare const ComboboxInputGroup: ({ ref, state, variant, sizing, focusVariant, className, ...props }: Props$13) => react_jsx_runtime.JSX.Element;
|
|
1770
1798
|
|
|
1771
|
-
type Props$
|
|
1799
|
+
type Props$12 = Omit<ComponentProps<typeof Combobox$1.Item>, 'className'> & {
|
|
1772
1800
|
className?: string;
|
|
1773
1801
|
icon?: ReactNode;
|
|
1774
1802
|
indicator?: ComponentProps<typeof ComboboxItemIndicator>['variant'];
|
|
1775
1803
|
};
|
|
1776
|
-
declare const ComboboxItem: ({ ref, className, children, icon, indicator: variant, ...props }: Props$
|
|
1804
|
+
declare const ComboboxItem: ({ ref, className, children, icon, indicator: variant, ...props }: Props$12) => react_jsx_runtime.JSX.Element;
|
|
1777
1805
|
|
|
1778
1806
|
type Group<Item = unknown> = {
|
|
1779
1807
|
items: readonly Item[];
|
|
@@ -1791,7 +1819,7 @@ type CreatableProps$1<Value> = {
|
|
|
1791
1819
|
queryToCreateLabel?: (query: string) => ReactNode;
|
|
1792
1820
|
queryToCreateValue?: (query: string) => Value;
|
|
1793
1821
|
};
|
|
1794
|
-
type Props
|
|
1822
|
+
type Props$11<Value, GroupShape extends Group<Value> = Group<Value>> = PublicComboboxInputProps & PublicComboboxProps<Value> & CreatableProps$1<Value> & {
|
|
1795
1823
|
items?: readonly (Value | GroupShape)[];
|
|
1796
1824
|
allowClear?: boolean;
|
|
1797
1825
|
empty?: ReactNode;
|
|
@@ -1810,12 +1838,12 @@ type Props$$<Value, GroupShape extends Group<Value> = Group<Value>> = PublicComb
|
|
|
1810
1838
|
groupToLabel?: (group: GroupShape) => ReactNode;
|
|
1811
1839
|
};
|
|
1812
1840
|
declare const Combobox: {
|
|
1813
|
-
<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, virtualized, allowCreate, queryToCreateValue, queryToCreateLabel, itemToDisabled, itemToLabel, itemToIcon, groupToLabel, }: Props
|
|
1841
|
+
<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, virtualized, allowCreate, queryToCreateValue, queryToCreateLabel, itemToDisabled, itemToLabel, itemToIcon, groupToLabel, }: Props$11<Value, GroupShape>): react_jsx_runtime.JSX.Element;
|
|
1814
1842
|
Root: <Value, Multiple extends boolean | undefined = false>(props: Combobox$1.Root.Props<Value, Multiple>) => react_jsx_runtime.JSX.Element;
|
|
1815
1843
|
InputGroup: ({ ref, state, variant, sizing, focusVariant, className, ...props }: {
|
|
1816
1844
|
variant?: "primary" | "secondary" | null | undefined;
|
|
1817
1845
|
state?: "warning" | "default" | "error" | null | undefined;
|
|
1818
|
-
sizing?: "
|
|
1846
|
+
sizing?: "small" | "medium" | "default" | null | undefined;
|
|
1819
1847
|
focusVariant?: "off" | "on" | "default" | null | undefined;
|
|
1820
1848
|
} & Omit<Omit<_base_ui_react_combobox.ComboboxInputGroupProps, "ref"> & react.RefAttributes<HTMLDivElement>, "className" | "render"> & {
|
|
1821
1849
|
className?: string;
|
|
@@ -1825,13 +1853,13 @@ declare const Combobox: {
|
|
|
1825
1853
|
size?: number | undefined | undefined;
|
|
1826
1854
|
translate?: "yes" | "no" | undefined | undefined;
|
|
1827
1855
|
prefix?: string | undefined | undefined;
|
|
1828
|
-
id?: string | undefined | undefined;
|
|
1829
|
-
name?: string | undefined | undefined;
|
|
1830
|
-
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
1831
1856
|
form?: string | undefined | undefined;
|
|
1832
1857
|
slot?: string | undefined | undefined;
|
|
1833
1858
|
style?: CSSProperties | ((state: _base_ui_react_combobox.ComboboxInputState) => React.CSSProperties | undefined) | undefined;
|
|
1834
1859
|
title?: string | undefined | undefined;
|
|
1860
|
+
id?: string | undefined | undefined;
|
|
1861
|
+
name?: string | undefined | undefined;
|
|
1862
|
+
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
1835
1863
|
pattern?: string | undefined | undefined;
|
|
1836
1864
|
ref?: react.Ref<HTMLInputElement> | undefined;
|
|
1837
1865
|
key?: react.Key | null | undefined;
|
|
@@ -2159,7 +2187,7 @@ declare const Combobox: {
|
|
|
2159
2187
|
Chips: <Value>({ maxVisible, itemToChipLabel, itemToChipColor, variant, }: {
|
|
2160
2188
|
maxVisible?: number;
|
|
2161
2189
|
itemToChipLabel?: ((item: Value) => ReactNode) | undefined;
|
|
2162
|
-
itemToChipColor?: ((item: Value) => "blue" | "cyan" | "gray" | "green" | "orange" | "purple" | "red" | "teal" | "
|
|
2190
|
+
itemToChipColor?: ((item: Value) => "white" | "blue" | "cyan" | "gray" | "green" | "orange" | "purple" | "red" | "teal" | "gray-darker" | "gray-inverse" | "green-darker" | "green-inverse" | "blue-inverse" | "orange-inverse" | "amber" | "amber-inverse" | "teal-inverse" | "purple-inverse" | "cyan-inverse" | "sidebar-primary" | undefined) | undefined;
|
|
2163
2191
|
variant?: "default" | "tag" | "pill" | null | undefined;
|
|
2164
2192
|
}) => react_jsx_runtime.JSX.Element;
|
|
2165
2193
|
};
|
|
@@ -2180,7 +2208,7 @@ type CreatableProps<Value> = {
|
|
|
2180
2208
|
* Use `itemToLabel` / `itemToIcon` / `itemToDisabled` to project custom item shapes; use `filter` to override
|
|
2181
2209
|
* the default substring matcher. Pass `allowCreate` to let the user add free-form values not in `items`.
|
|
2182
2210
|
*/
|
|
2183
|
-
type Props$
|
|
2211
|
+
type Props$10<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'> & CreatableProps<Value> & {
|
|
2184
2212
|
items?: readonly (Value | GroupShape)[];
|
|
2185
2213
|
allowClear?: boolean;
|
|
2186
2214
|
allowSelectAll?: boolean;
|
|
@@ -2204,7 +2232,7 @@ type Props$_<Value, GroupShape extends Group<Value> = Group<Value>> = Pick<Combo
|
|
|
2204
2232
|
* @see RECIPES.md#creatable-multi-combobox — for free-form-plus-enumerated patterns
|
|
2205
2233
|
* @see RECIPES.md#filter-toolbar — for combining multi-select with other filter chips
|
|
2206
2234
|
*/
|
|
2207
|
-
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, allowCreate, queryToCreateValue, queryToCreateLabel, itemToDisabled, itemToLabel, itemToIcon, groupToLabel, itemToChipLabel, itemToChipColor, maxVisible, }: Props$
|
|
2235
|
+
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, allowCreate, queryToCreateValue, queryToCreateLabel, itemToDisabled, itemToLabel, itemToIcon, groupToLabel, itemToChipLabel, itemToChipColor, maxVisible, }: Props$10<Value, GroupShape>) => react_jsx_runtime.JSX.Element;
|
|
2208
2236
|
|
|
2209
2237
|
type InputGroupProps$7 = Pick<ComponentProps<typeof InputGroup>, 'variant' | 'sizing' | 'focusVariant' | 'state'>;
|
|
2210
2238
|
type TextareaNativeProps = Omit<ComponentProps<typeof InputGroup.TextArea>, 'value' | 'defaultValue' | 'rows' | 'maxRows'>;
|
|
@@ -2217,12 +2245,12 @@ type TextareaOwnProps = {
|
|
|
2217
2245
|
disableResize?: boolean;
|
|
2218
2246
|
containerClassName?: string;
|
|
2219
2247
|
};
|
|
2220
|
-
type Props
|
|
2248
|
+
type Props$$ = InputGroupProps$7 & TextareaNativeProps & TextareaOwnProps;
|
|
2221
2249
|
/**
|
|
2222
2250
|
* Multi-line text input. Chrome resolves from the active brand automatically: a modern brand always
|
|
2223
2251
|
* renders argo (any `variant` is ignored), while `variant` only tunes the legacy-brand chrome.
|
|
2224
2252
|
*/
|
|
2225
|
-
declare const Textarea: ({ ref, containerClassName, state, variant, sizing, focusVariant, value: valueProp, defaultValue, onValueChange, ...rest }: Props
|
|
2253
|
+
declare const Textarea: ({ ref, containerClassName, state, variant, sizing, focusVariant, value: valueProp, defaultValue, onValueChange, ...rest }: Props$$) => react_jsx_runtime.JSX.Element;
|
|
2226
2254
|
|
|
2227
2255
|
type AutoSaveTextareaProps = {
|
|
2228
2256
|
savedValue?: string;
|
|
@@ -2235,14 +2263,14 @@ declare const AutoSaveTextarea: ({ savedValue, onSave, placeholder, disabled, gr
|
|
|
2235
2263
|
|
|
2236
2264
|
type InputGroupProps$6 = Pick<ComponentProps<typeof InputGroup>, 'variant' | 'focusVariant' | 'state' | 'sizing'>;
|
|
2237
2265
|
type InputGroupInputProps$6 = Omit<ComponentProps<typeof InputGroup.Input>, 'value' | 'defaultValue'>;
|
|
2238
|
-
type Props$
|
|
2266
|
+
type Props$_ = InputGroupProps$6 & InputGroupInputProps$6 & {
|
|
2239
2267
|
value?: string | null;
|
|
2240
2268
|
defaultValue?: string | null;
|
|
2241
2269
|
onValueChange?: (value: string) => void;
|
|
2242
2270
|
onValueBlur?: (value: string) => void;
|
|
2243
2271
|
allowClear?: boolean;
|
|
2244
2272
|
};
|
|
2245
|
-
declare const ColorInput: ({ ref, state, variant, focusVariant, sizing, className, value: valueProp, onValueChange, onValueBlur, onChange, onBlur, defaultValue, allowClear, disabled, readOnly, ...restInputProps }: Props$
|
|
2273
|
+
declare const ColorInput: ({ ref, state, variant, focusVariant, sizing, className, value: valueProp, onValueChange, onValueBlur, onChange, onBlur, defaultValue, allowClear, disabled, readOnly, ...restInputProps }: Props$_) => react_jsx_runtime.JSX.Element;
|
|
2246
2274
|
|
|
2247
2275
|
type BrandId = string;
|
|
2248
2276
|
type ResolvedColorScheme = 'light' | 'dark';
|
|
@@ -2277,12 +2305,12 @@ declare const useColorSchemeState: ({ defaultScheme, scheme: propScheme, onSchem
|
|
|
2277
2305
|
setScheme: (next: ColorScheme) => void;
|
|
2278
2306
|
};
|
|
2279
2307
|
|
|
2280
|
-
type Props$
|
|
2308
|
+
type Props$Z = UseColorSchemeOptions & UseBrandOptions & {
|
|
2281
2309
|
/** Brands this provider knows about; the active brand id resolves against these. */
|
|
2282
2310
|
brands?: readonly Brand[];
|
|
2283
2311
|
children: ReactNode;
|
|
2284
2312
|
};
|
|
2285
|
-
declare const ThemeProvider: ({ defaultScheme, scheme, onSchemeChange, defaultBrandId, brandId, onBrandIdChange, brands, children, }: Props$
|
|
2313
|
+
declare const ThemeProvider: ({ defaultScheme, scheme, onSchemeChange, defaultBrandId, brandId, onBrandIdChange, brands, children, }: Props$Z) => react_jsx_runtime.JSX.Element;
|
|
2286
2314
|
|
|
2287
2315
|
type ThemeContextValue = ReturnType<typeof useColorSchemeState> & ReturnType<typeof useBrandState> & {
|
|
2288
2316
|
themes: Theme[];
|
|
@@ -2306,7 +2334,7 @@ declare const useArgoDesign: () => boolean;
|
|
|
2306
2334
|
declare const DEFAULT_COLOR_SCHEME: ResolvedColorScheme;
|
|
2307
2335
|
declare const DEFAULT_BRAND_ID = "design-system";
|
|
2308
2336
|
|
|
2309
|
-
type Props$
|
|
2337
|
+
type Props$Y = {
|
|
2310
2338
|
/** The active color scheme. Controlled — pair with `onValueChange`. */
|
|
2311
2339
|
value: ColorScheme;
|
|
2312
2340
|
/** Called with the chosen scheme when the user picks a menu item. */
|
|
@@ -2331,11 +2359,11 @@ type Props$W = {
|
|
|
2331
2359
|
* The menu uses `DropdownMenu.RadioGroup` for single-select semantics; the active
|
|
2332
2360
|
* item is marked as checked. The trigger's `aria-label` names the current scheme.
|
|
2333
2361
|
*/
|
|
2334
|
-
declare const ColorModeSwitch: ({ value, onValueChange, size, className }: Props$
|
|
2362
|
+
declare const ColorModeSwitch: ({ value, onValueChange, size, className }: Props$Y) => react_jsx_runtime.JSX.Element;
|
|
2335
2363
|
|
|
2336
2364
|
type InputGroupProps$5 = Pick<ComponentProps<typeof InputGroup>, 'variant' | 'focusVariant' | 'state' | 'sizing'>;
|
|
2337
2365
|
type InputGroupInputProps$5 = Omit<ComponentProps<typeof InputGroup.Input>, 'value' | 'defaultValue' | 'type'>;
|
|
2338
|
-
type Props$
|
|
2366
|
+
type Props$X = InputGroupProps$5 & InputGroupInputProps$5 & {
|
|
2339
2367
|
value?: Date | null;
|
|
2340
2368
|
defaultValue?: Date | null;
|
|
2341
2369
|
onValueChange?: (value: Date | null) => void;
|
|
@@ -2345,11 +2373,11 @@ type Props$V = InputGroupProps$5 & InputGroupInputProps$5 & {
|
|
|
2345
2373
|
endMonth?: Date;
|
|
2346
2374
|
startMonth?: Date;
|
|
2347
2375
|
};
|
|
2348
|
-
declare const DateInput: ({ ref, state, variant, focusVariant, sizing, className, value, defaultValue, onValueChange, onValueBlur, onChange, onBlur, onFocus, allowClear, disabledDays, endMonth, startMonth, disabled, readOnly, placeholder, ...restInputProps }: Props$
|
|
2376
|
+
declare const DateInput: ({ ref, state, variant, focusVariant, sizing, className, value, defaultValue, onValueChange, onValueBlur, onChange, onBlur, onFocus, allowClear, disabledDays, endMonth, startMonth, disabled, readOnly, placeholder, ...restInputProps }: Props$X) => react_jsx_runtime.JSX.Element;
|
|
2349
2377
|
|
|
2350
2378
|
type InputGroupProps$4 = Pick<ComponentProps<typeof InputGroup>, 'variant' | 'focusVariant' | 'state' | 'sizing'>;
|
|
2351
2379
|
type InputGroupInputProps$4 = Omit<ComponentProps<typeof InputGroup.Input>, 'value' | 'defaultValue' | 'type' | 'prefix'>;
|
|
2352
|
-
type Props$
|
|
2380
|
+
type Props$W = InputGroupProps$4 & InputGroupInputProps$4 & {
|
|
2353
2381
|
value?: number | null;
|
|
2354
2382
|
defaultValue?: number | null;
|
|
2355
2383
|
onValueChange?: (value: number | null) => void;
|
|
@@ -2357,11 +2385,11 @@ type Props$U = InputGroupProps$4 & InputGroupInputProps$4 & {
|
|
|
2357
2385
|
prefix?: ReactNode;
|
|
2358
2386
|
suffix?: ReactNode;
|
|
2359
2387
|
};
|
|
2360
|
-
declare const NumberInput: ({ ref, state, variant, focusVariant, sizing, className, value, defaultValue, onValueChange, onValueBlur, onChange, onBlur, prefix, suffix, ...inputProps }: Props$
|
|
2388
|
+
declare const NumberInput: ({ ref, state, variant, focusVariant, sizing, className, value, defaultValue, onValueChange, onValueBlur, onChange, onBlur, prefix, suffix, ...inputProps }: Props$W) => react_jsx_runtime.JSX.Element;
|
|
2361
2389
|
|
|
2362
2390
|
type InputGroupProps$3 = Pick<ComponentProps<typeof InputGroup>, 'variant' | 'focusVariant' | 'state' | 'sizing'>;
|
|
2363
2391
|
type InputGroupInputProps$3 = Omit<ComponentProps<typeof InputGroup.Input>, 'value' | 'defaultValue' | 'type' | 'autoComplete'>;
|
|
2364
|
-
type Props$
|
|
2392
|
+
type Props$V = InputGroupProps$3 & InputGroupInputProps$3 & {
|
|
2365
2393
|
value?: string | null;
|
|
2366
2394
|
defaultValue?: string | null;
|
|
2367
2395
|
onValueChange?: (value: string) => void;
|
|
@@ -2378,22 +2406,22 @@ type Props$T = InputGroupProps$3 & InputGroupInputProps$3 & {
|
|
|
2378
2406
|
autoComplete?: 'new-password' | 'current-password' | 'off';
|
|
2379
2407
|
defaultPasswordVisibility?: boolean;
|
|
2380
2408
|
};
|
|
2381
|
-
declare const PasswordInput: ({ ref, state, variant, focusVariant, sizing, className, value: valueProp, defaultValue, onValueChange, onValueBlur, onChange, onBlur, onKeyDown, onKeyUp, onMouseDown, allowClear, allowPasswordToggle, passwordToggleLabel, autoComplete, defaultPasswordVisibility, disabled, readOnly, ...restInputProps }: Props$
|
|
2409
|
+
declare const PasswordInput: ({ ref, state, variant, focusVariant, sizing, className, value: valueProp, defaultValue, onValueChange, onValueBlur, onChange, onBlur, onKeyDown, onKeyUp, onMouseDown, allowClear, allowPasswordToggle, passwordToggleLabel, autoComplete, defaultPasswordVisibility, disabled, readOnly, ...restInputProps }: Props$V) => react_jsx_runtime.JSX.Element;
|
|
2382
2410
|
|
|
2383
2411
|
type InputGroupProps$2 = Pick<ComponentProps<typeof InputGroup>, 'variant' | 'focusVariant' | 'state' | 'sizing'>;
|
|
2384
2412
|
type InputGroupInputProps$2 = Omit<ComponentProps<typeof InputGroup.Input>, 'value' | 'defaultValue' | 'type'>;
|
|
2385
|
-
type Props$
|
|
2413
|
+
type Props$U = InputGroupProps$2 & InputGroupInputProps$2 & {
|
|
2386
2414
|
value?: string | null;
|
|
2387
2415
|
defaultValue?: string | null;
|
|
2388
2416
|
onValueChange?: (value: string | null) => void;
|
|
2389
2417
|
onValueBlur?: (value: string | null) => void;
|
|
2390
2418
|
allowClear?: boolean;
|
|
2391
2419
|
};
|
|
2392
|
-
declare const TimeInput: ({ ref, state, variant, focusVariant, sizing, className, value: valueProp, defaultValue, onValueChange, onValueBlur, onChange, onBlur, allowClear, disabled, readOnly, placeholder, ...restInputProps }: Props$
|
|
2420
|
+
declare const TimeInput: ({ ref, state, variant, focusVariant, sizing, className, value: valueProp, defaultValue, onValueChange, onValueBlur, onChange, onBlur, allowClear, disabled, readOnly, placeholder, ...restInputProps }: Props$U) => react_jsx_runtime.JSX.Element;
|
|
2393
2421
|
|
|
2394
2422
|
type InputGroupProps$1 = Pick<ComponentProps<typeof InputGroup>, 'variant' | 'focusVariant' | 'state' | 'sizing'>;
|
|
2395
2423
|
type InputGroupInputProps$1 = Omit<ComponentProps<typeof InputGroup.Input>, 'value' | 'defaultValue' | 'type'>;
|
|
2396
|
-
type Props$
|
|
2424
|
+
type Props$T = InputGroupProps$1 & InputGroupInputProps$1 & {
|
|
2397
2425
|
value?: DateRange$1 | null;
|
|
2398
2426
|
defaultValue?: DateRange$1 | null;
|
|
2399
2427
|
onValueChange?: (value: DateRange$1 | null) => void;
|
|
@@ -2402,7 +2430,7 @@ type Props$R = InputGroupProps$1 & InputGroupInputProps$1 & {
|
|
|
2402
2430
|
startMonth?: Date;
|
|
2403
2431
|
endMonth?: Date;
|
|
2404
2432
|
};
|
|
2405
|
-
declare const DateRangeInput: ({ ref, state, variant, focusVariant, sizing, className, value: valueProp, defaultValue, onValueChange, onValueBlur, onChange, onBlur, onFocus, allowClear, startMonth, endMonth, disabled, readOnly, placeholder, ...restInputProps }: Props$
|
|
2433
|
+
declare const DateRangeInput: ({ ref, state, variant, focusVariant, sizing, className, value: valueProp, defaultValue, onValueChange, onValueBlur, onChange, onBlur, onFocus, allowClear, startMonth, endMonth, disabled, readOnly, placeholder, ...restInputProps }: Props$T) => react_jsx_runtime.JSX.Element;
|
|
2406
2434
|
|
|
2407
2435
|
type OtpInputSizing = 'sm' | 'md' | 'lg';
|
|
2408
2436
|
type OtpElementProps = ComponentProps<typeof OTPInput>;
|
|
@@ -2438,7 +2466,7 @@ type InputGroupInputProps = Omit<ComponentProps<typeof InputGroup.Input>, 'value
|
|
|
2438
2466
|
* is treated as "not provided" — the component falls back to `defaultValue` (or, if absent, internal
|
|
2439
2467
|
* state initialized to empty). `value={""}` is controlled-empty.
|
|
2440
2468
|
*/
|
|
2441
|
-
type Props$
|
|
2469
|
+
type Props$S = InputGroupProps & InputGroupInputProps & {
|
|
2442
2470
|
value?: string | null;
|
|
2443
2471
|
defaultValue?: string | null;
|
|
2444
2472
|
/** 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`. */
|
|
@@ -2467,7 +2495,7 @@ type Props$Q = InputGroupProps & InputGroupInputProps & {
|
|
|
2467
2495
|
*
|
|
2468
2496
|
* @see RECIPES.md#filter-toolbar — for the search + filter chips toolbar pattern
|
|
2469
2497
|
*/
|
|
2470
|
-
declare const SearchInput: ({ ref, state, variant, focusVariant, sizing, className, value: valueProp, defaultValue, onValueChange, onValueBlur, onChange, onBlur, onClear, allowClear, disableDebounce, debounceDelay, disabled, readOnly, ...restInputProps }: Props$
|
|
2498
|
+
declare const SearchInput: ({ ref, state, variant, focusVariant, sizing, className, value: valueProp, defaultValue, onValueChange, onValueBlur, onChange, onBlur, onClear, allowClear, disableDebounce, debounceDelay, disabled, readOnly, ...restInputProps }: Props$S) => react_jsx_runtime.JSX.Element;
|
|
2471
2499
|
|
|
2472
2500
|
type SearchInputWithNavigationProps = {
|
|
2473
2501
|
currentIndex: number | null;
|
|
@@ -2486,37 +2514,83 @@ declare const SearchInputWithNavigation: ({ ref, value, onValueChange, placehold
|
|
|
2486
2514
|
ref?: Ref<HTMLInputElement>;
|
|
2487
2515
|
}) => react_jsx_runtime.JSX.Element;
|
|
2488
2516
|
|
|
2517
|
+
/** MIME type → extensions map, e.g. `{ 'text/csv': ['.csv'] }`. */
|
|
2518
|
+
type FileUploadAccept = Record<string, string[]>;
|
|
2489
2519
|
/**
|
|
2490
|
-
*
|
|
2491
|
-
*
|
|
2492
|
-
*
|
|
2520
|
+
* Every rejection reason a drop target can emit. `FileUploadRejection.errors[].code` stays
|
|
2521
|
+
* `string` (the underlying library types it that way), but the vocabulary is closed — type a
|
|
2522
|
+
* rejection-copy map as `Record<FileUploadRejectionCode, string>` and it is checkably exhaustive.
|
|
2493
2523
|
*/
|
|
2494
|
-
type
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2524
|
+
type FileUploadRejectionCode = 'file-invalid-type' | 'file-too-large' | 'file-too-small' | 'too-many-files';
|
|
2525
|
+
/** A file the drop target refused, with the reason(s) why. */
|
|
2526
|
+
type FileUploadRejection = {
|
|
2527
|
+
file: File;
|
|
2528
|
+
errors: {
|
|
2529
|
+
code: string;
|
|
2530
|
+
message: string;
|
|
2531
|
+
}[];
|
|
2532
|
+
};
|
|
2533
|
+
type FileDropTargetOptions = {
|
|
2534
|
+
/** MIME / extension filter. Omit to accept every type. */
|
|
2535
|
+
accept?: FileUploadAccept;
|
|
2536
|
+
/** Max size per file, in bytes. Oversized files surface in `onFilesRejected`. */
|
|
2498
2537
|
maxSize?: number;
|
|
2499
2538
|
/** Max number of files accepted per drop. */
|
|
2500
2539
|
maxFiles?: number;
|
|
2501
2540
|
/** Allow multiple files. Defaults to true. */
|
|
2502
2541
|
multiple?: boolean;
|
|
2503
|
-
/** Disable the
|
|
2542
|
+
/** Disable the target — no drops, no click, no keyboard. */
|
|
2504
2543
|
disabled?: boolean;
|
|
2544
|
+
/** Don't open the file dialog on click. Set when wrapping a clickable subtree. */
|
|
2545
|
+
noClick?: boolean;
|
|
2546
|
+
/** Don't open the file dialog on Space / Enter. Set when wrapping a focusable subtree. */
|
|
2547
|
+
noKeyboard?: boolean;
|
|
2505
2548
|
/** Called with the accepted files on every drop. The caller owns the merged file list. */
|
|
2506
2549
|
onFilesChange?: (files: File[]) => void;
|
|
2507
|
-
/** Called with rejected files (
|
|
2508
|
-
onFilesRejected?: (rejections:
|
|
2550
|
+
/** Called with the rejected files (wrong type, too large, too many). */
|
|
2551
|
+
onFilesRejected?: (rejections: FileUploadRejection[]) => void;
|
|
2552
|
+
};
|
|
2553
|
+
type FileDropTarget = Pick<DropzoneState, 'getRootProps' | 'getInputProps' | 'isDragActive'> & {
|
|
2554
|
+
/** Rejections from the most recent drop — replaced on every drop. */
|
|
2555
|
+
rejections: FileUploadRejection[];
|
|
2556
|
+
};
|
|
2557
|
+
/**
|
|
2558
|
+
* Headless drop target — turns any element into one via `getRootProps()`.
|
|
2559
|
+
*
|
|
2560
|
+
* **When to use:** the drop affordance is an existing subtree you style yourself (a message
|
|
2561
|
+
* composer, a card, a whole panel). Pair with `noClick` / `noKeyboard` when that subtree is
|
|
2562
|
+
* already interactive, so clicking or typing inside it doesn't open the file dialog.
|
|
2563
|
+
* **When NOT to use:** a standalone drop box — compose `FileUpload` + `FileUpload.DropZone`,
|
|
2564
|
+
* which own the dashed-border chrome and the drag / error visual states.
|
|
2565
|
+
*/
|
|
2566
|
+
declare const useFileDropTarget: ({ accept, maxSize, maxFiles, multiple, disabled, noClick, noKeyboard, onFilesChange, onFilesRejected, }?: FileDropTargetOptions) => FileDropTarget;
|
|
2567
|
+
|
|
2568
|
+
/**
|
|
2569
|
+
* Rejections from the most recent drop, read from the enclosing `FileUpload`. Use it to render
|
|
2570
|
+
* your own "why was this refused" copy next to the drop zone — `FileUpload` ships none, because
|
|
2571
|
+
* the wording is product copy. Replaced on every drop, so it never goes stale.
|
|
2572
|
+
*/
|
|
2573
|
+
declare const useFileUploadRejections: () => FileUploadRejection[];
|
|
2574
|
+
|
|
2575
|
+
/**
|
|
2576
|
+
* Props for `FileUpload`. The component is uncontrolled with respect to the file
|
|
2577
|
+
* list — the caller owns the selected `File[]` and updates it from `onFilesChange`.
|
|
2578
|
+
* `FileUpload` only signals drop events; it does not store the file array.
|
|
2579
|
+
*/
|
|
2580
|
+
type Props$R = Omit<FileDropTargetOptions, 'noClick' | 'noKeyboard'> & {
|
|
2509
2581
|
/** Storybook-only: force a visual state without simulating real drag events. */
|
|
2510
2582
|
forcedState?: 'idle' | 'dragging' | 'error';
|
|
2511
2583
|
children: ReactNode;
|
|
2512
2584
|
} & Omit<HTMLAttributes<HTMLDivElement>, 'children' | 'onDrop'>;
|
|
2513
|
-
declare const FileUpload: (({ accept, maxSize, maxFiles, multiple, disabled, onFilesChange, onFilesRejected, forcedState, children, className, ...rest }: Props$
|
|
2514
|
-
DropZone: ({ children, className, ...rest }: {
|
|
2585
|
+
declare const FileUpload: (({ accept, maxSize, maxFiles, multiple, disabled, onFilesChange, onFilesRejected, forcedState, children, className, ...rest }: Props$R) => react_jsx_runtime.JSX.Element) & {
|
|
2586
|
+
DropZone: ({ children, inputId, className, ...rest }: {
|
|
2515
2587
|
children?: ReactNode;
|
|
2588
|
+
inputId?: string;
|
|
2516
2589
|
} & Omit<HTMLAttributes<HTMLDivElement>, "children">) => react_jsx_runtime.JSX.Element;
|
|
2517
|
-
FileList: ({ files, onRemove, className, ...rest }: {
|
|
2590
|
+
FileList: ({ files, onRemove, invalid, className, ...rest }: {
|
|
2518
2591
|
files: File[];
|
|
2519
2592
|
onRemove?: (file: File, index: number) => void;
|
|
2593
|
+
invalid?: boolean;
|
|
2520
2594
|
} & Omit<HTMLAttributes<HTMLUListElement>, "children">) => react_jsx_runtime.JSX.Element | null;
|
|
2521
2595
|
};
|
|
2522
2596
|
|
|
@@ -2551,11 +2625,11 @@ declare const FormGroup: {
|
|
|
2551
2625
|
translate?: "yes" | "no" | undefined | undefined;
|
|
2552
2626
|
color?: string | undefined | undefined;
|
|
2553
2627
|
prefix?: string | undefined | undefined;
|
|
2554
|
-
id?: string | undefined | undefined;
|
|
2555
|
-
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
2556
2628
|
slot?: string | undefined | undefined;
|
|
2557
2629
|
style?: react.CSSProperties | undefined;
|
|
2558
2630
|
title?: string | undefined | undefined;
|
|
2631
|
+
id?: string | undefined | undefined;
|
|
2632
|
+
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
2559
2633
|
ref?: react.Ref<HTMLParagraphElement> | undefined;
|
|
2560
2634
|
key?: react.Key | null | undefined;
|
|
2561
2635
|
defaultChecked?: boolean | undefined | undefined;
|
|
@@ -2841,14 +2915,14 @@ declare const FormGroup: {
|
|
|
2841
2915
|
translate?: "yes" | "no" | undefined | undefined;
|
|
2842
2916
|
color?: string | undefined | undefined;
|
|
2843
2917
|
prefix?: react.ReactNode;
|
|
2844
|
-
id?: string | undefined | undefined;
|
|
2845
|
-
name?: string | undefined | undefined;
|
|
2846
|
-
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
2847
|
-
variant?: "primary" | "secondary" | null | undefined;
|
|
2848
2918
|
form?: string | undefined | undefined;
|
|
2849
2919
|
slot?: string | undefined | undefined;
|
|
2850
2920
|
style?: react.CSSProperties | undefined;
|
|
2851
2921
|
title?: string | undefined | undefined;
|
|
2922
|
+
id?: string | undefined | undefined;
|
|
2923
|
+
name?: string | undefined | undefined;
|
|
2924
|
+
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
2925
|
+
variant?: "primary" | "secondary" | null | undefined;
|
|
2852
2926
|
pattern?: string | undefined | undefined;
|
|
2853
2927
|
ref?: react.Ref<HTMLInputElement> | undefined;
|
|
2854
2928
|
key?: react.Key | null | undefined;
|
|
@@ -3149,7 +3223,7 @@ declare const FormGroup: {
|
|
|
3149
3223
|
readOnly?: boolean | undefined | undefined;
|
|
3150
3224
|
required?: boolean | undefined | undefined;
|
|
3151
3225
|
onValueBlur?: ((value: string) => void) | undefined;
|
|
3152
|
-
sizing?: "
|
|
3226
|
+
sizing?: "small" | "medium" | "default" | null | undefined;
|
|
3153
3227
|
focusVariant?: "off" | "on" | "default" | null | undefined;
|
|
3154
3228
|
rightSuffix?: react.ReactNode;
|
|
3155
3229
|
rightSuffixVariant?: "addon" | "default" | undefined;
|
|
@@ -3164,14 +3238,14 @@ declare const FormGroup: {
|
|
|
3164
3238
|
translate?: "yes" | "no" | undefined | undefined;
|
|
3165
3239
|
color?: string | undefined | undefined;
|
|
3166
3240
|
prefix?: react.ReactNode;
|
|
3167
|
-
id?: string | undefined | undefined;
|
|
3168
|
-
name?: string | undefined | undefined;
|
|
3169
|
-
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
3170
|
-
variant?: "primary" | "secondary" | null | undefined;
|
|
3171
3241
|
form?: string | undefined | undefined;
|
|
3172
3242
|
slot?: string | undefined | undefined;
|
|
3173
3243
|
style?: react.CSSProperties | undefined;
|
|
3174
3244
|
title?: string | undefined | undefined;
|
|
3245
|
+
id?: string | undefined | undefined;
|
|
3246
|
+
name?: string | undefined | undefined;
|
|
3247
|
+
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
3248
|
+
variant?: "primary" | "secondary" | null | undefined;
|
|
3175
3249
|
pattern?: string | undefined | undefined;
|
|
3176
3250
|
ref?: react.Ref<HTMLInputElement> | undefined;
|
|
3177
3251
|
key?: react.Key | null | undefined;
|
|
@@ -3473,7 +3547,7 @@ declare const FormGroup: {
|
|
|
3473
3547
|
readOnly?: boolean | undefined | undefined;
|
|
3474
3548
|
required?: boolean | undefined | undefined;
|
|
3475
3549
|
onValueBlur?: ((value: number | null) => void) | undefined;
|
|
3476
|
-
sizing?: "
|
|
3550
|
+
sizing?: "small" | "medium" | "default" | null | undefined;
|
|
3477
3551
|
focusVariant?: "off" | "on" | "default" | null | undefined;
|
|
3478
3552
|
suffix?: react.ReactNode;
|
|
3479
3553
|
}) => react_jsx_runtime.JSX.Element;
|
|
@@ -3483,14 +3557,14 @@ declare const FormGroup: {
|
|
|
3483
3557
|
translate?: "yes" | "no" | undefined | undefined;
|
|
3484
3558
|
color?: string | undefined | undefined;
|
|
3485
3559
|
prefix?: string | undefined | undefined;
|
|
3486
|
-
id?: string | undefined | undefined;
|
|
3487
|
-
name?: string | undefined | undefined;
|
|
3488
|
-
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
3489
|
-
variant?: "primary" | "secondary" | null | undefined;
|
|
3490
3560
|
form?: string | undefined | undefined;
|
|
3491
3561
|
slot?: string | undefined | undefined;
|
|
3492
3562
|
style?: react.CSSProperties | undefined;
|
|
3493
3563
|
title?: string | undefined | undefined;
|
|
3564
|
+
id?: string | undefined | undefined;
|
|
3565
|
+
name?: string | undefined | undefined;
|
|
3566
|
+
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
3567
|
+
variant?: "primary" | "secondary" | null | undefined;
|
|
3494
3568
|
pattern?: string | undefined | undefined;
|
|
3495
3569
|
ref?: react.Ref<HTMLInputElement> | undefined;
|
|
3496
3570
|
key?: react.Key | null | undefined;
|
|
@@ -3793,7 +3867,7 @@ declare const FormGroup: {
|
|
|
3793
3867
|
readOnly?: boolean | undefined | undefined;
|
|
3794
3868
|
required?: boolean | undefined | undefined;
|
|
3795
3869
|
onValueBlur?: ((value: string) => void) | undefined;
|
|
3796
|
-
sizing?: "
|
|
3870
|
+
sizing?: "small" | "medium" | "default" | null | undefined;
|
|
3797
3871
|
focusVariant?: "off" | "on" | "default" | null | undefined;
|
|
3798
3872
|
allowClear?: boolean | undefined;
|
|
3799
3873
|
}) => react_jsx_runtime.JSX.Element;
|
|
@@ -3803,16 +3877,16 @@ declare const FormGroup: {
|
|
|
3803
3877
|
wrap?: string | undefined | undefined;
|
|
3804
3878
|
color?: string | undefined | undefined;
|
|
3805
3879
|
prefix?: string | undefined | undefined;
|
|
3806
|
-
id?: string | undefined | undefined;
|
|
3807
|
-
name?: string | undefined | undefined;
|
|
3808
|
-
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
3809
|
-
variant?: "primary" | "secondary" | null | undefined;
|
|
3810
3880
|
form?: string | undefined | undefined;
|
|
3811
3881
|
slot?: string | undefined | undefined;
|
|
3812
3882
|
style?: (Omit<react.CSSProperties, "minHeight" | "maxHeight"> & {
|
|
3813
3883
|
height?: number;
|
|
3814
3884
|
}) | undefined;
|
|
3815
3885
|
title?: string | undefined | undefined;
|
|
3886
|
+
id?: string | undefined | undefined;
|
|
3887
|
+
name?: string | undefined | undefined;
|
|
3888
|
+
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
3889
|
+
variant?: "primary" | "secondary" | null | undefined;
|
|
3816
3890
|
ref?: react.Ref<HTMLTextAreaElement> | undefined;
|
|
3817
3891
|
key?: react.Key | null | undefined;
|
|
3818
3892
|
defaultChecked?: boolean | undefined | undefined;
|
|
@@ -4103,7 +4177,7 @@ declare const FormGroup: {
|
|
|
4103
4177
|
cacheMeasurements?: boolean | undefined;
|
|
4104
4178
|
onValueBlur?: (((value: string) => void) & ((value: string) => void)) | undefined;
|
|
4105
4179
|
disableResize?: boolean | undefined;
|
|
4106
|
-
sizing?: "
|
|
4180
|
+
sizing?: "small" | "medium" | "default" | null | undefined;
|
|
4107
4181
|
focusVariant?: "off" | "on" | "default" | null | undefined;
|
|
4108
4182
|
containerClassName?: string | undefined;
|
|
4109
4183
|
}) => react_jsx_runtime.JSX.Element;
|
|
@@ -4112,43 +4186,43 @@ declare const FormGroup: {
|
|
|
4112
4186
|
declare const helpVariants: (props?: ({
|
|
4113
4187
|
state?: "warning" | "default" | null | undefined;
|
|
4114
4188
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
4115
|
-
type Props$
|
|
4116
|
-
declare const HelpBlock: ({ children, className, state, ...rest }: Props$
|
|
4189
|
+
type Props$Q = ComponentPropsWithRef<'p'> & VariantProps<typeof helpVariants>;
|
|
4190
|
+
declare const HelpBlock: ({ children, className, state, ...rest }: Props$Q) => react_jsx_runtime.JSX.Element | null;
|
|
4117
4191
|
|
|
4118
4192
|
type AnswerItem = {
|
|
4119
4193
|
question: string;
|
|
4120
4194
|
answer?: string;
|
|
4121
4195
|
};
|
|
4122
4196
|
type Variant$5 = 'success' | 'dismissed';
|
|
4123
|
-
type Props$
|
|
4197
|
+
type Props$P = {
|
|
4124
4198
|
items: readonly AnswerItem[];
|
|
4125
4199
|
variant?: Variant$5;
|
|
4126
4200
|
noAnswerLabel?: string;
|
|
4127
4201
|
};
|
|
4128
|
-
declare const AnswerSummary: ({ items, variant, noAnswerLabel, }: Props$
|
|
4202
|
+
declare const AnswerSummary: ({ items, variant, noAnswerLabel, }: Props$P) => react_jsx_runtime.JSX.Element;
|
|
4129
4203
|
|
|
4130
4204
|
type Variant$4 = 'success' | 'error' | 'processing' | 'dismissed';
|
|
4131
|
-
type Props$
|
|
4205
|
+
type Props$O = {
|
|
4132
4206
|
isExpanded: boolean;
|
|
4133
4207
|
onToggle: () => void;
|
|
4134
4208
|
label: ReactNode;
|
|
4135
4209
|
variant?: Variant$4;
|
|
4136
4210
|
};
|
|
4137
|
-
declare const CollapsibleStepHeader: ({ isExpanded, onToggle, label, variant, }: Props$
|
|
4211
|
+
declare const CollapsibleStepHeader: ({ isExpanded, onToggle, label, variant, }: Props$O) => react_jsx_runtime.JSX.Element;
|
|
4138
4212
|
|
|
4139
|
-
type Props$
|
|
4213
|
+
type Props$N = {
|
|
4140
4214
|
children: ReactNode;
|
|
4141
4215
|
};
|
|
4142
|
-
declare const InlineStepDetail: ({ children }: Props$
|
|
4216
|
+
declare const InlineStepDetail: ({ children }: Props$N) => react_jsx_runtime.JSX.Element;
|
|
4143
4217
|
|
|
4144
4218
|
type Variant$3 = 'processing' | 'success' | 'error' | 'dismissed';
|
|
4145
|
-
type Props$
|
|
4219
|
+
type Props$M = {
|
|
4146
4220
|
variant: Variant$3;
|
|
4147
4221
|
children: ReactNode;
|
|
4148
4222
|
};
|
|
4149
|
-
declare const InlineStepLabel: ({ variant, children }: Props$
|
|
4223
|
+
declare const InlineStepLabel: ({ variant, children }: Props$M) => react_jsx_runtime.JSX.Element;
|
|
4150
4224
|
|
|
4151
|
-
type Props$
|
|
4225
|
+
type Props$L = {
|
|
4152
4226
|
/** Markdown source (GFM: tables, task lists, strikethrough, autolinks). Tables
|
|
4153
4227
|
* render through the design `Table`; fenced ```mermaid blocks render via
|
|
4154
4228
|
* `MermaidDiagram`; other fenced blocks get a hover copy button. */
|
|
@@ -4160,9 +4234,9 @@ type Props$J = {
|
|
|
4160
4234
|
* `MessageBubble` to render an assistant message body. Code blocks expose a
|
|
4161
4235
|
* copy button, so mount a `TooltipProvider` once at the app root.
|
|
4162
4236
|
*/
|
|
4163
|
-
declare const Markdown: ({ children, className }: Props$
|
|
4237
|
+
declare const Markdown: ({ children, className }: Props$L) => react_jsx_runtime.JSX.Element;
|
|
4164
4238
|
|
|
4165
|
-
type Props$
|
|
4239
|
+
type Props$K = {
|
|
4166
4240
|
user?: {
|
|
4167
4241
|
name: string | undefined;
|
|
4168
4242
|
email: string | undefined;
|
|
@@ -4172,15 +4246,15 @@ type Props$I = {
|
|
|
4172
4246
|
size?: number;
|
|
4173
4247
|
variant?: 'circle' | 'rounded';
|
|
4174
4248
|
} & ComponentProps<'span'>;
|
|
4175
|
-
declare const Avatar: ({ ref, user, fallback, size, className, variant, ...props }: Props$
|
|
4249
|
+
declare const Avatar: ({ ref, user, fallback, size, className, variant, ...props }: Props$K) => react_jsx_runtime.JSX.Element;
|
|
4176
4250
|
|
|
4177
|
-
type Props$
|
|
4251
|
+
type Props$J = {
|
|
4178
4252
|
variant: 'user' | 'assistant';
|
|
4179
4253
|
user?: ComponentProps<typeof Avatar>['user'];
|
|
4180
4254
|
actions?: ReactNode;
|
|
4181
4255
|
createdAt?: string;
|
|
4182
4256
|
} & PropsWithChildren;
|
|
4183
|
-
declare const MessageBubble: ({ variant, children, user, actions, createdAt }: Props$
|
|
4257
|
+
declare const MessageBubble: ({ variant, children, user, actions, createdAt }: Props$J) => react_jsx_runtime.JSX.Element;
|
|
4184
4258
|
|
|
4185
4259
|
type PlanApprovalStatus = 'pending' | 'approved' | 'dismissed' | 'changes-requested';
|
|
4186
4260
|
type PlanApprovalProps = {
|
|
@@ -4230,15 +4304,15 @@ type PromptCommand = {
|
|
|
4230
4304
|
};
|
|
4231
4305
|
|
|
4232
4306
|
type SubmitStatus = 'submitted' | 'ready' | 'streaming' | 'interrupted';
|
|
4233
|
-
type Props$
|
|
4307
|
+
type Props$I = Pick<ComponentProps<typeof Button>, 'disabled' | 'ref'> & {
|
|
4234
4308
|
status?: SubmitStatus;
|
|
4235
4309
|
};
|
|
4236
|
-
declare const PromptInputSubmit: ({ ref, disabled, status }: Props$
|
|
4310
|
+
declare const PromptInputSubmit: ({ ref, disabled, status }: Props$I) => react_jsx_runtime.JSX.Element;
|
|
4237
4311
|
|
|
4238
4312
|
declare const promptInputVariants: (props?: ({
|
|
4239
4313
|
variant?: "inline" | "default" | null | undefined;
|
|
4240
4314
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
4241
|
-
type Props$
|
|
4315
|
+
type Props$H = {
|
|
4242
4316
|
onSend?: (value: string) => void;
|
|
4243
4317
|
onAbort?: () => void;
|
|
4244
4318
|
onContinue?: () => void;
|
|
@@ -4252,7 +4326,7 @@ type Props$F = {
|
|
|
4252
4326
|
commands?: PromptCommand[];
|
|
4253
4327
|
} & VariantProps<typeof promptInputVariants> & Pick<ComponentProps<typeof react_textarea_autosize__default>, 'placeholder' | 'minRows' | 'maxRows' | 'disabled' | 'defaultValue' | 'autoFocus'> & ComponentProps<typeof PromptInputSubmit>;
|
|
4254
4328
|
declare const PromptInput: {
|
|
4255
|
-
({ onSend, onAbort, onContinue, prefix, variant, suffix, disabled, disableSubmit, value, onValueChange, status, maxRows, minRows, commands, ...textareaProps }: Props$
|
|
4329
|
+
({ onSend, onAbort, onContinue, prefix, variant, suffix, disabled, disableSubmit, value, onValueChange, status, maxRows, minRows, commands, ...textareaProps }: Props$H): react_jsx_runtime.JSX.Element;
|
|
4256
4330
|
Action: ({ ref, onMouseDown, ...rest }: react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>) => react_jsx_runtime.JSX.Element;
|
|
4257
4331
|
};
|
|
4258
4332
|
|
|
@@ -4262,7 +4336,7 @@ type QuestionOption = {
|
|
|
4262
4336
|
description?: string;
|
|
4263
4337
|
preview?: string;
|
|
4264
4338
|
};
|
|
4265
|
-
type Props$
|
|
4339
|
+
type Props$G = {
|
|
4266
4340
|
question: string;
|
|
4267
4341
|
header?: string;
|
|
4268
4342
|
options: readonly QuestionOption[];
|
|
@@ -4285,7 +4359,7 @@ type Props$E = {
|
|
|
4285
4359
|
renderPreview?: (content: string) => ReactNode;
|
|
4286
4360
|
className?: string;
|
|
4287
4361
|
};
|
|
4288
|
-
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$
|
|
4362
|
+
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$G) => react_jsx_runtime.JSX.Element;
|
|
4289
4363
|
|
|
4290
4364
|
type QuestionStep = {
|
|
4291
4365
|
question: string;
|
|
@@ -4299,7 +4373,7 @@ type QuestionAnswers = {
|
|
|
4299
4373
|
selections: Record<number, readonly string[]>;
|
|
4300
4374
|
customAnswers: Record<number, string>;
|
|
4301
4375
|
};
|
|
4302
|
-
type Props$
|
|
4376
|
+
type Props$F = {
|
|
4303
4377
|
steps: readonly [QuestionStep, ...QuestionStep[]];
|
|
4304
4378
|
showSkip?: boolean;
|
|
4305
4379
|
onSubmit?: (answers: QuestionAnswers) => void;
|
|
@@ -4307,16 +4381,16 @@ type Props$D = {
|
|
|
4307
4381
|
renderPreview?: (content: string) => ReactNode;
|
|
4308
4382
|
className?: string;
|
|
4309
4383
|
};
|
|
4310
|
-
declare const QuestionBlock: ({ steps, showSkip, onSubmit, onClose, renderPreview, className, }: Props$
|
|
4384
|
+
declare const QuestionBlock: ({ steps, showSkip, onSubmit, onClose, renderPreview, className, }: Props$F) => react_jsx_runtime.JSX.Element;
|
|
4311
4385
|
|
|
4312
|
-
type Props$
|
|
4386
|
+
type Props$E = {
|
|
4313
4387
|
label: string;
|
|
4314
4388
|
disabled?: boolean;
|
|
4315
4389
|
onClick: () => void;
|
|
4316
4390
|
icon?: ReactNode;
|
|
4317
4391
|
className?: string;
|
|
4318
4392
|
};
|
|
4319
|
-
declare const SuggestedPrompt: ({ label, disabled, onClick, icon, className }: Props$
|
|
4393
|
+
declare const SuggestedPrompt: ({ label, disabled, onClick, icon, className }: Props$E) => react_jsx_runtime.JSX.Element;
|
|
4320
4394
|
|
|
4321
4395
|
type ThinkingIndicatorProps = {
|
|
4322
4396
|
label?: string;
|
|
@@ -4375,7 +4449,7 @@ type ToolCallChipProps = {
|
|
|
4375
4449
|
*/
|
|
4376
4450
|
declare const ToolCallChip: ({ label, state, icon, trailing, onClick, className, }: ToolCallChipProps) => react_jsx_runtime.JSX.Element;
|
|
4377
4451
|
|
|
4378
|
-
type Props$
|
|
4452
|
+
type Props$D = {
|
|
4379
4453
|
value: number;
|
|
4380
4454
|
alert?: boolean;
|
|
4381
4455
|
children: ReactNode;
|
|
@@ -4389,28 +4463,28 @@ type Props$B = {
|
|
|
4389
4463
|
side?: ComponentProps<typeof HoverCard.Content>['side'];
|
|
4390
4464
|
sideOffset?: ComponentProps<typeof HoverCard.Content>['sideOffset'];
|
|
4391
4465
|
};
|
|
4392
|
-
declare const UsageStats: ({ value, alert, children, className, ariaLabel, align, side, sideOffset, }: Props$
|
|
4466
|
+
declare const UsageStats: ({ value, alert, children, className, ariaLabel, align, side, sideOffset, }: Props$D) => react_jsx_runtime.JSX.Element;
|
|
4393
4467
|
|
|
4394
|
-
type Props$
|
|
4468
|
+
type Props$C = {
|
|
4395
4469
|
value: number;
|
|
4396
4470
|
size?: number;
|
|
4397
4471
|
strokeWidth?: number;
|
|
4398
4472
|
className?: string;
|
|
4399
4473
|
};
|
|
4400
|
-
declare const UsageStatsRing: ({ value, size, strokeWidth, className }: Props$
|
|
4474
|
+
declare const UsageStatsRing: ({ value, size, strokeWidth, className }: Props$C) => react_jsx_runtime.JSX.Element;
|
|
4401
4475
|
|
|
4402
|
-
type Props$
|
|
4476
|
+
type Props$B = ComponentProps<typeof Root$9>;
|
|
4403
4477
|
declare const Collapsible: {
|
|
4404
|
-
(props: Props$
|
|
4478
|
+
(props: Props$B): react_jsx_runtime.JSX.Element;
|
|
4405
4479
|
Trigger: react.ForwardRefExoticComponent<_radix_ui_react_collapsible.CollapsibleTriggerProps & react.RefAttributes<HTMLButtonElement>>;
|
|
4406
4480
|
Content: ({ ref, className, children, ...props }: _radix_ui_react_collapsible.CollapsibleContentProps & react.RefAttributes<HTMLDivElement>) => react_jsx_runtime.JSX.Element;
|
|
4407
4481
|
};
|
|
4408
4482
|
|
|
4409
4483
|
type Variant$2 = 'info' | 'warning' | 'error' | 'success';
|
|
4410
|
-
type Props$
|
|
4484
|
+
type Props$A = {
|
|
4411
4485
|
variant?: Variant$2;
|
|
4412
4486
|
} & ComponentProps<'div'>;
|
|
4413
|
-
declare const AlertRoot: ({ ref, children, className, variant, ...rest }: Props$
|
|
4487
|
+
declare const AlertRoot: ({ ref, children, className, variant, ...rest }: Props$A) => react_jsx_runtime.JSX.Element;
|
|
4414
4488
|
|
|
4415
4489
|
type CommonProps = {
|
|
4416
4490
|
hideIcon?: boolean;
|
|
@@ -4433,7 +4507,7 @@ type DefaultProps = {
|
|
|
4433
4507
|
* `"collapsible"` requires `title` + `children` (no `actions`) and renders a collapsible disclosure.
|
|
4434
4508
|
* `variant` (`info` | `success` | `warning` | `error`) is a categorical colour contract.
|
|
4435
4509
|
*/
|
|
4436
|
-
type Props$
|
|
4510
|
+
type Props$z = CommonProps & (CollapsibleProps | DefaultProps);
|
|
4437
4511
|
/**
|
|
4438
4512
|
* Persistent inline banner for contextual messages tied to the page layout.
|
|
4439
4513
|
*
|
|
@@ -4447,13 +4521,13 @@ type Props$x = CommonProps & (CollapsibleProps | DefaultProps);
|
|
|
4447
4521
|
*
|
|
4448
4522
|
* @see RECIPES.md#alert-with-action — for action-bearing alert composition
|
|
4449
4523
|
*/
|
|
4450
|
-
declare const Alert: ({ title, variant, children, hideIcon, icon, className, actions, mode, defaultOpen, open: openProp, onOpenChange: onOpenChangeProp, ...rest }: Props$
|
|
4524
|
+
declare const Alert: ({ title, variant, children, hideIcon, icon, className, actions, mode, defaultOpen, open: openProp, onOpenChange: onOpenChangeProp, ...rest }: Props$z) => react_jsx_runtime.JSX.Element;
|
|
4451
4525
|
|
|
4452
4526
|
declare const variants$1: (props?: ({
|
|
4453
4527
|
variant?: "success" | "warning" | "info" | "default" | "error" | null | undefined;
|
|
4454
4528
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
4455
4529
|
type Variants = VariantProps<typeof variants$1>;
|
|
4456
|
-
type Props$
|
|
4530
|
+
type Props$y = {
|
|
4457
4531
|
id: string | number;
|
|
4458
4532
|
title: ReactNode;
|
|
4459
4533
|
icon?: ReactNode;
|
|
@@ -4462,7 +4536,7 @@ type Props$w = {
|
|
|
4462
4536
|
loading?: boolean;
|
|
4463
4537
|
duration?: number;
|
|
4464
4538
|
} & Variants;
|
|
4465
|
-
declare const ToastRoot: ({ id, title, description, action, duration, variant, loading, icon: iconProp, }: Props$
|
|
4539
|
+
declare const ToastRoot: ({ id, title, description, action, duration, variant, loading, icon: iconProp, }: Props$y) => react_jsx_runtime.JSX.Element;
|
|
4466
4540
|
|
|
4467
4541
|
type ToastProps = ComponentProps<typeof ToastRoot>;
|
|
4468
4542
|
type Title = ToastProps['title'] | ((opts: {
|
|
@@ -4483,7 +4557,7 @@ declare const toast: {
|
|
|
4483
4557
|
dismissAll(): string | number;
|
|
4484
4558
|
};
|
|
4485
4559
|
|
|
4486
|
-
type Props$
|
|
4560
|
+
type Props$x = {
|
|
4487
4561
|
enabled?: boolean;
|
|
4488
4562
|
} & Parameters<typeof toast>[0];
|
|
4489
4563
|
/**
|
|
@@ -4496,22 +4570,22 @@ type Props$v = {
|
|
|
4496
4570
|
* Use `toast()` for transient feedback after a user action
|
|
4497
4571
|
* (e.g., "Saved", "Copied", "Deleted") that auto-dismisses after a few seconds.
|
|
4498
4572
|
*/
|
|
4499
|
-
declare const useNotification: ({ enabled, ...toastOptions }: Props$
|
|
4573
|
+
declare const useNotification: ({ enabled, ...toastOptions }: Props$x) => void;
|
|
4500
4574
|
|
|
4501
4575
|
type ToasterProps = ComponentProps<typeof Toaster$1>;
|
|
4502
4576
|
declare const Toaster: ({ gap, visibleToasts, ...props }: ToasterProps) => react_jsx_runtime.JSX.Element;
|
|
4503
4577
|
|
|
4504
|
-
type Props$
|
|
4578
|
+
type Props$w = {
|
|
4505
4579
|
children?: ReactNode;
|
|
4506
4580
|
};
|
|
4507
|
-
declare const EmptySearchContent: ({ children }: Props$
|
|
4581
|
+
declare const EmptySearchContent: ({ children }: Props$w) => react_jsx_runtime.JSX.Element;
|
|
4508
4582
|
|
|
4509
|
-
type Props$
|
|
4583
|
+
type Props$v = {
|
|
4510
4584
|
title: string;
|
|
4511
4585
|
children: ReactNode;
|
|
4512
4586
|
className?: string;
|
|
4513
4587
|
};
|
|
4514
|
-
declare const EmptyConfigurationActionCard: ({ title, children, className }: Props$
|
|
4588
|
+
declare const EmptyConfigurationActionCard: ({ title, children, className }: Props$v) => react_jsx_runtime.JSX.Element;
|
|
4515
4589
|
|
|
4516
4590
|
declare const emptyStateClassnames: (props?: ({
|
|
4517
4591
|
variant?: "compact" | "default" | null | undefined;
|
|
@@ -4651,8 +4725,8 @@ declare const variants: (props?: ({
|
|
|
4651
4725
|
variant?: "success" | "default" | null | undefined;
|
|
4652
4726
|
size?: "sm" | "lg" | null | undefined;
|
|
4653
4727
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
4654
|
-
type Props$
|
|
4655
|
-
declare const Progress: ({ ref, className, value, variant, size, ...props }: Props$
|
|
4728
|
+
type Props$u = ComponentProps<typeof Root$a> & VariantProps<typeof variants>;
|
|
4729
|
+
declare const Progress: ({ ref, className, value, variant, size, ...props }: Props$u) => react_jsx_runtime.JSX.Element;
|
|
4656
4730
|
|
|
4657
4731
|
/** @deprecated Use `Collapsible` instead. */
|
|
4658
4732
|
type CollapseProps = {
|
|
@@ -4668,7 +4742,7 @@ type CollapseProps = {
|
|
|
4668
4742
|
/** @deprecated Use `Collapsible` instead. */
|
|
4669
4743
|
declare const Collapse: ({ open, header, className, bodyClassName, children, onClick, animationClassName, hidden, ...rest }: CollapseProps & ComponentProps<"div">) => react_jsx_runtime.JSX.Element;
|
|
4670
4744
|
|
|
4671
|
-
type Props$
|
|
4745
|
+
type Props$t = {
|
|
4672
4746
|
header: ReactNode;
|
|
4673
4747
|
isDisabled?: boolean;
|
|
4674
4748
|
defaultExpanded?: boolean;
|
|
@@ -4680,22 +4754,59 @@ type Props$r = {
|
|
|
4680
4754
|
variant?: 'default' | 'white';
|
|
4681
4755
|
children: ReactNode;
|
|
4682
4756
|
};
|
|
4683
|
-
declare const CollapsiblePanel: ({ header, className, bodyClassName, headerClassName, defaultExpanded, isDisabled, children, isOpen, onToggle, variant, }: Props$
|
|
4757
|
+
declare const CollapsiblePanel: ({ header, className, bodyClassName, headerClassName, defaultExpanded, isDisabled, children, isOpen, onToggle, variant, }: Props$t) => react_jsx_runtime.JSX.Element;
|
|
4684
4758
|
|
|
4685
|
-
type Props$
|
|
4759
|
+
type Props$s = PropsWithChildren<{
|
|
4686
4760
|
defaultExpanded?: boolean;
|
|
4687
4761
|
labelCollapse?: ReactNode;
|
|
4688
4762
|
labelOpen?: ReactNode;
|
|
4689
4763
|
placement?: 'top' | 'bottom';
|
|
4690
4764
|
className?: string;
|
|
4691
4765
|
}>;
|
|
4692
|
-
declare const PanelWithDetails: ({ defaultExpanded, labelCollapse, labelOpen, placement, children, }: Props$
|
|
4766
|
+
declare const PanelWithDetails: ({ defaultExpanded, labelCollapse, labelOpen, placement, children, }: Props$s) => react_jsx_runtime.JSX.Element;
|
|
4767
|
+
|
|
4768
|
+
/**
|
|
4769
|
+
* How far the header row stretches across the shell.
|
|
4770
|
+
*
|
|
4771
|
+
* - `content` — the header occupies the middle column only (`"sidebar header aside"`),
|
|
4772
|
+
* so both rails sit beside it and run the full height.
|
|
4773
|
+
* - `full` — the header spans all three columns and the rails sit below it, so the
|
|
4774
|
+
* brand mark aligns to the viewport's left edge.
|
|
4775
|
+
*
|
|
4776
|
+
* Only the sidebar geometry honours this; the top-nav geometry's header is
|
|
4777
|
+
* already full width.
|
|
4778
|
+
*/
|
|
4779
|
+
type AppShellHeaderSpan = 'content' | 'full';
|
|
4693
4780
|
|
|
4694
|
-
type RootProps$4 = ComponentPropsWithoutRef<'div'
|
|
4781
|
+
type RootProps$4 = ComponentPropsWithoutRef<'div'> & {
|
|
4782
|
+
/**
|
|
4783
|
+
* How far the header row stretches. `content` (default) gives it the middle
|
|
4784
|
+
* column only, with both rails beside it; `full` spans all three columns and
|
|
4785
|
+
* drops the rails below it, so the brand mark aligns to the viewport edge.
|
|
4786
|
+
* No-op under the top-nav geometry, whose header is already full width.
|
|
4787
|
+
*
|
|
4788
|
+
* Reach for `full` when the header carries app-wide identity (brand mark,
|
|
4789
|
+
* project switcher, account menu) rather than page-level navigation.
|
|
4790
|
+
*/
|
|
4791
|
+
headerSpan?: AppShellHeaderSpan;
|
|
4792
|
+
};
|
|
4695
4793
|
type SlotProps = ComponentPropsWithoutRef<'div'> & {
|
|
4696
4794
|
/** Render as the child element (Radix-Slot pattern), forwarding props onto it. */
|
|
4697
4795
|
asChild?: boolean;
|
|
4698
4796
|
};
|
|
4797
|
+
type ChromeSlotProps = SlotProps & {
|
|
4798
|
+
/**
|
|
4799
|
+
* Drop the slot's own padding, background and border so a hosted chrome component
|
|
4800
|
+
* (`Navbar` in `Header`, `Sidebar side="right"` in `Aside`) can render edge to edge.
|
|
4801
|
+
*
|
|
4802
|
+
* The slots paint themselves, which is right when you put content straight into them.
|
|
4803
|
+
* It is wrong when the child is already a full-bleed surface: the child ends up inset
|
|
4804
|
+
* inside the slot with the slot's background showing through as gutters at each end.
|
|
4805
|
+
* Use this instead of re-stating the overrides at the call site — hand-written
|
|
4806
|
+
* overrides also have to win a cascade fight, which is why they tend to grow an `!`.
|
|
4807
|
+
*/
|
|
4808
|
+
flush?: boolean;
|
|
4809
|
+
};
|
|
4699
4810
|
/**
|
|
4700
4811
|
* App-shell layout primitive. Reads `useTheme().brand.shell` and dispatches to
|
|
4701
4812
|
* a sidebar (left rail) or top-nav geometry. Consumers compose the same
|
|
@@ -4705,7 +4816,8 @@ type SlotProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
4705
4816
|
*
|
|
4706
4817
|
* **When to use:** the root layout of any app that wants to follow the active
|
|
4707
4818
|
* brand's shell geometry. Host a `PageLayout` inside `<AppShell.Main>` for
|
|
4708
|
-
* the per-page content column.
|
|
4819
|
+
* the per-page content column. Pass `headerSpan="full"` for a full-bleed header
|
|
4820
|
+
* row above both rails.
|
|
4709
4821
|
* **When NOT to use:** standalone screens that aren't part of a navigated app
|
|
4710
4822
|
* (sign-in, error pages). Render those without `AppShell`.
|
|
4711
4823
|
* **Composition:** must be rendered inside a `<ThemeProvider>` — the geometry
|
|
@@ -4715,14 +4827,14 @@ type SlotProps = ComponentPropsWithoutRef<'div'> & {
|
|
|
4715
4827
|
* @see AppShell.stories.tsx — flip the Storybook brand toolbar to see the
|
|
4716
4828
|
* sidebar / top-nav geometry swap from a single composition.
|
|
4717
4829
|
*/
|
|
4718
|
-
declare const AppShell: (({ ref, className, children, ...props }: RootProps$4 & {
|
|
4830
|
+
declare const AppShell: (({ ref, className, headerSpan, children, ...props }: RootProps$4 & {
|
|
4719
4831
|
ref?: Ref<ComponentRef<"div">>;
|
|
4720
4832
|
}) => react_jsx_runtime.JSX.Element) & {
|
|
4721
4833
|
/**
|
|
4722
4834
|
* Top header row. Renders above `Main` in the sidebar shell; renders as the
|
|
4723
4835
|
* top bar (with full-width navigation room) in the top-nav shell.
|
|
4724
4836
|
*/
|
|
4725
|
-
Header: ({ ref, className, asChild, children, ...props }:
|
|
4837
|
+
Header: ({ ref, className, asChild, flush, children, ...props }: ChromeSlotProps & {
|
|
4726
4838
|
ref?: Ref<ComponentRef<"header">>;
|
|
4727
4839
|
}) => react_jsx_runtime.JSX.Element;
|
|
4728
4840
|
/**
|
|
@@ -4742,7 +4854,7 @@ declare const AppShell: (({ ref, className, children, ...props }: RootProps$4 &
|
|
|
4742
4854
|
ref?: Ref<ComponentRef<"main">>;
|
|
4743
4855
|
}) => react_jsx_runtime.JSX.Element;
|
|
4744
4856
|
/** Optional right rail. Present in both shells. */
|
|
4745
|
-
Aside: ({ ref, className, asChild, children, ...props }:
|
|
4857
|
+
Aside: ({ ref, className, asChild, flush, children, ...props }: ChromeSlotProps & {
|
|
4746
4858
|
ref?: Ref<ComponentRef<"aside">>;
|
|
4747
4859
|
}) => react_jsx_runtime.JSX.Element;
|
|
4748
4860
|
};
|
|
@@ -4755,6 +4867,12 @@ declare const AppShell: (({ ref, className, children, ...props }: RootProps$4 &
|
|
|
4755
4867
|
type RootProps$3 = ComponentProps<'div'> & {
|
|
4756
4868
|
maxWidth?: 'default' | 'narrow' | 'wide' | 'full';
|
|
4757
4869
|
};
|
|
4870
|
+
type HeaderProps = ComponentProps<'header'> & {
|
|
4871
|
+
sticky?: boolean;
|
|
4872
|
+
};
|
|
4873
|
+
type ContentProps = ComponentProps<'div'> & {
|
|
4874
|
+
nav?: ReactNode;
|
|
4875
|
+
};
|
|
4758
4876
|
type FooterProps = ComponentProps<'footer'> & {
|
|
4759
4877
|
sticky?: boolean;
|
|
4760
4878
|
};
|
|
@@ -4774,16 +4892,17 @@ type FooterProps = ComponentProps<'footer'> & {
|
|
|
4774
4892
|
* `PageLayout.Footer sticky`.
|
|
4775
4893
|
*
|
|
4776
4894
|
* @see RECIPES.md#list-detail — for the index → detail page pattern
|
|
4895
|
+
* @see RECIPES.md#section-nav — for the in-page vertical navigation pattern
|
|
4777
4896
|
*/
|
|
4778
4897
|
declare const PageLayout: (({ ref, className, maxWidth, children, ...props }: RootProps$3) => react_jsx_runtime.JSX.Element) & {
|
|
4779
4898
|
/** Detail-pattern breadcrumb row. Usually composed automatically by `PageHeader.Detail` — slot exists for layouts that don't fit either `PageHeader` variant. */
|
|
4780
4899
|
Breadcrumbs: ({ ref, className, children, ...props }: ComponentProps<"div">) => react_jsx_runtime.JSX.Element;
|
|
4781
|
-
/** Host slot for `PageHeader.Index` / `PageHeader.Detail`, or custom header JSX when neither variant fits. */
|
|
4782
|
-
Header: ({ ref, className, children, ...props }:
|
|
4900
|
+
/** Host slot for `PageHeader.Index` / `PageHeader.Detail`, or custom header JSX when neither variant fits. Pass `sticky` to pin it — it then also publishes its measured height as `--page-header-height` on the root, which `Content nav` pins the nav to. */
|
|
4901
|
+
Header: ({ ref, className, sticky, children, ...props }: HeaderProps) => react_jsx_runtime.JSX.Element;
|
|
4783
4902
|
/** Escape hatch for routing-based tab rows. Use `Tabs` / `TabsContent` core components inside, never a raw `<button>`. */
|
|
4784
4903
|
Tabs: ({ ref, className, children, ...props }: ComponentProps<"div">) => react_jsx_runtime.JSX.Element;
|
|
4785
|
-
/** Main content slot. Lists, cards, tables. */
|
|
4786
|
-
Content: ({ ref, className, children, ...props }:
|
|
4904
|
+
/** Main content slot. Lists, cards, tables. Pass `nav` (a `SectionNav`) for the two-column in-page-navigation layout; without it the slot is a plain column, exactly as before. */
|
|
4905
|
+
Content: ({ ref, className, nav, children, ...props }: ContentProps) => react_jsx_runtime.JSX.Element;
|
|
4787
4906
|
/** Bottom action bar — form submit + cancel. Pass `sticky` for a footer that pins to the viewport. */
|
|
4788
4907
|
Footer: ({ ref, className, sticky, children, ...props }: FooterProps) => react_jsx_runtime.JSX.Element;
|
|
4789
4908
|
};
|
|
@@ -4832,21 +4951,21 @@ declare const addonVariants: (props?: ({
|
|
|
4832
4951
|
align?: "inline-end" | "inline-start" | null | undefined;
|
|
4833
4952
|
variant?: "inline" | "floating" | null | undefined;
|
|
4834
4953
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
4835
|
-
type Props$
|
|
4836
|
-
declare const BadgeAddon: ({ ref, align, variant, className, ...rest }: Props$
|
|
4954
|
+
type Props$r = ComponentProps<'div'> & VariantProps<typeof addonVariants>;
|
|
4955
|
+
declare const BadgeAddon: ({ ref, align, variant, className, ...rest }: Props$r) => react_jsx_runtime.JSX.Element;
|
|
4837
4956
|
|
|
4838
|
-
type Props$
|
|
4957
|
+
type Props$q = ComponentProps<'span'> & {
|
|
4839
4958
|
asChild?: boolean;
|
|
4840
4959
|
};
|
|
4841
|
-
declare const BadgeLabel: ({ ref, className, asChild, ...rest }: Props$
|
|
4960
|
+
declare const BadgeLabel: ({ ref, className, asChild, ...rest }: Props$q) => react_jsx_runtime.JSX.Element;
|
|
4842
4961
|
|
|
4843
4962
|
declare const badgeRootVariants: (props?: ({
|
|
4844
4963
|
variant?: "default" | "tag" | "pill" | null | undefined;
|
|
4845
|
-
color?: "blue" | "cyan" | "gray" | "green" | "orange" | "purple" | "red" | "teal" | "
|
|
4964
|
+
color?: "white" | "blue" | "cyan" | "gray" | "green" | "orange" | "purple" | "red" | "teal" | "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;
|
|
4846
4965
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
4847
4966
|
|
|
4848
|
-
type Props$
|
|
4849
|
-
declare const BadgeRoot: ({ ref, variant, color, className, children, ...rest }: Props$
|
|
4967
|
+
type Props$p = ComponentProps<'div'> & VariantProps<typeof badgeRootVariants>;
|
|
4968
|
+
declare const BadgeRoot: ({ ref, variant, color, className, children, ...rest }: Props$p) => react_jsx_runtime.JSX.Element;
|
|
4850
4969
|
|
|
4851
4970
|
type AddonVariant = ComponentProps<typeof BadgeAddon>['variant'];
|
|
4852
4971
|
type BadgeRootProps = ComponentProps<typeof BadgeRoot>;
|
|
@@ -4856,17 +4975,17 @@ type BadgeLabelProps = ComponentProps<typeof BadgeLabel>;
|
|
|
4856
4975
|
* `amber` = caution, `purple/cyan/teal/blue/gray` for decorative tags) — colours stay fixed across brand themes.
|
|
4857
4976
|
* Pass `prefix` / `suffix` for icon-style addons.
|
|
4858
4977
|
*/
|
|
4859
|
-
type Props$
|
|
4978
|
+
type Props$o = Pick<BadgeRootProps, 'variant' | 'color'> & Omit<BadgeLabelProps, 'prefix'> & {
|
|
4860
4979
|
prefix?: ReactNode;
|
|
4861
4980
|
prefixVariant?: AddonVariant;
|
|
4862
4981
|
suffix?: ReactNode;
|
|
4863
4982
|
suffixVariant?: AddonVariant;
|
|
4864
4983
|
labelClassName?: string;
|
|
4865
4984
|
};
|
|
4866
|
-
declare const Badge: (({ ref, variant, color, prefix, prefixVariant, suffix, suffixVariant, className, labelClassName, ...labelProps }: Props$
|
|
4985
|
+
declare const Badge: (({ ref, variant, color, prefix, prefixVariant, suffix, suffixVariant, className, labelClassName, ...labelProps }: Props$o) => react_jsx_runtime.JSX.Element) & {
|
|
4867
4986
|
Root: ({ ref, variant, color, className, children, ...rest }: react.ClassAttributes<HTMLDivElement> & react.HTMLAttributes<HTMLDivElement> & class_variance_authority.VariantProps<(props?: ({
|
|
4868
4987
|
variant?: "default" | "tag" | "pill" | null | undefined;
|
|
4869
|
-
color?: "blue" | "cyan" | "gray" | "green" | "orange" | "purple" | "red" | "teal" | "
|
|
4988
|
+
color?: "white" | "blue" | "cyan" | "gray" | "green" | "orange" | "purple" | "red" | "teal" | "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;
|
|
4870
4989
|
} & class_variance_authority_types.ClassProp) | undefined) => string>) => react_jsx_runtime.JSX.Element;
|
|
4871
4990
|
Button: ({ ref, className, type, children, ...rest }: react.DetailedHTMLProps<react.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>) => react_jsx_runtime.JSX.Element;
|
|
4872
4991
|
Label: ({ ref, className, asChild, ...rest }: react.ClassAttributes<HTMLSpanElement> & react.HTMLAttributes<HTMLSpanElement> & {
|
|
@@ -4936,7 +5055,7 @@ declare const PageToolbar: (({ ref, className, children, ...props }: DivProps) =
|
|
|
4936
5055
|
*/
|
|
4937
5056
|
Token: ({ children, popover, onRemove, removeAriaLabel, ...props }: Omit<Omit<Pick<react.ClassAttributes<HTMLDivElement> & react.HTMLAttributes<HTMLDivElement> & class_variance_authority.VariantProps<(props?: ({
|
|
4938
5057
|
variant?: "default" | "tag" | "pill" | null | undefined;
|
|
4939
|
-
color?: "blue" | "cyan" | "gray" | "green" | "orange" | "purple" | "red" | "teal" | "
|
|
5058
|
+
color?: "white" | "blue" | "cyan" | "gray" | "green" | "orange" | "purple" | "red" | "teal" | "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;
|
|
4940
5059
|
} & class_variance_authority_types.ClassProp) | undefined) => string>, "color" | "variant"> & Omit<react.ClassAttributes<HTMLSpanElement> & react.HTMLAttributes<HTMLSpanElement> & {
|
|
4941
5060
|
asChild?: boolean;
|
|
4942
5061
|
}, "prefix"> & {
|
|
@@ -4957,7 +5076,107 @@ declare const PageToolbar: (({ ref, className, children, ...props }: DivProps) =
|
|
|
4957
5076
|
Clear: ({ className, children, ...props }: ActionProps) => react_jsx_runtime.JSX.Element;
|
|
4958
5077
|
};
|
|
4959
5078
|
|
|
4960
|
-
type
|
|
5079
|
+
type SectionNavItem = {
|
|
5080
|
+
/**
|
|
5081
|
+
* Identity **and** navigation target: `renderItem` gets it back as `targetId`, and `activeId` is
|
|
5082
|
+
* matched against it. Unique across the whole `groups` array.
|
|
5083
|
+
*/
|
|
5084
|
+
id: string;
|
|
5085
|
+
title: string;
|
|
5086
|
+
icon?: LucideIcon;
|
|
5087
|
+
/** Printed under the title when `showDescriptions` is on. */
|
|
5088
|
+
description?: string;
|
|
5089
|
+
/** Marks the row with a "New" badge. */
|
|
5090
|
+
isNew?: boolean;
|
|
5091
|
+
};
|
|
5092
|
+
type SectionNavGroup = SectionNavItem & {
|
|
5093
|
+
/**
|
|
5094
|
+
* Sub-sections, each a destination of its own. A group with children navigates to its first one,
|
|
5095
|
+
* so only a **childless** group's `id` is ever used as a target — that one has to be routable.
|
|
5096
|
+
*/
|
|
5097
|
+
children: SectionNavItem[];
|
|
5098
|
+
/** Rendered under the group's children in the tree — e.g. "More apps coming soon." */
|
|
5099
|
+
note?: ReactNode;
|
|
5100
|
+
};
|
|
5101
|
+
type SectionNavItemRenderProps = {
|
|
5102
|
+
/** Where this row goes. A group with children resolves to `children[0].id`. */
|
|
5103
|
+
targetId: string;
|
|
5104
|
+
/** `true` when `activeId` names this exact row. A group holding the active child is not "active". */
|
|
5105
|
+
isActive: boolean;
|
|
5106
|
+
/** The composed row body — icon, title, "New" badge, chevron, description. Render as children. */
|
|
5107
|
+
children: ReactNode;
|
|
5108
|
+
/**
|
|
5109
|
+
* Spread whole onto the clickable element; don't cherry-pick. `onClick` owns the group's open
|
|
5110
|
+
* state and calls `preventDefault()` on a click that only collapses a group, so a link handed
|
|
5111
|
+
* these props never navigates when it shouldn't — every router `Link` worth using checks
|
|
5112
|
+
* `defaultPrevented` before it navigates. If yours doesn't, render an `<a>` and navigate yourself.
|
|
5113
|
+
*/
|
|
5114
|
+
itemProps: {
|
|
5115
|
+
className: string;
|
|
5116
|
+
'aria-current': 'page' | undefined;
|
|
5117
|
+
'aria-expanded': boolean | undefined;
|
|
5118
|
+
/** `true` on a group row whose subtree holds the active section — the row is tinted, but it is
|
|
5119
|
+
* not the current page, so it carries no `aria-current`. */
|
|
5120
|
+
'data-active': true | undefined;
|
|
5121
|
+
onClick: (event: MouseEvent$1<HTMLElement>) => void;
|
|
5122
|
+
};
|
|
5123
|
+
};
|
|
5124
|
+
|
|
5125
|
+
type Props$n = {
|
|
5126
|
+
/**
|
|
5127
|
+
* The sections to show, already filtered. Visibility, permissions and feature flags stay in the
|
|
5128
|
+
* app — this block renders exactly what it is handed, in order.
|
|
5129
|
+
*/
|
|
5130
|
+
groups: SectionNavGroup[];
|
|
5131
|
+
/** `id` of the current section: a child's, or a childless group's. */
|
|
5132
|
+
activeId?: string;
|
|
5133
|
+
/**
|
|
5134
|
+
* Renders the clickable element for one row, so routing never enters the design system. Return a
|
|
5135
|
+
* `NavLink` / TanStack `Link` / `<a>` pointing at `targetId` and spread `itemProps` onto it.
|
|
5136
|
+
*/
|
|
5137
|
+
renderItem: (props: SectionNavItemRenderProps) => ReactNode;
|
|
5138
|
+
/** Print each section's `description` under its title. Off — the tree stays scannable without it. */
|
|
5139
|
+
showDescriptions?: boolean;
|
|
5140
|
+
/** Accessible name for the tree's `<nav>`, and the collapsed label with nothing active. */
|
|
5141
|
+
label?: string;
|
|
5142
|
+
/** Applied to the tree's `<nav>`. The column's own geometry belongs to `PageLayout.Content nav`. */
|
|
5143
|
+
className?: string;
|
|
5144
|
+
};
|
|
5145
|
+
/**
|
|
5146
|
+
* In-page grouped navigation for one page's sections: a tree above the container's breakpoint, a
|
|
5147
|
+
* single dropdown below it. Both are rendered and CSS picks one, and both draw their rows through
|
|
5148
|
+
* the same renderer, so the two can never drift apart.
|
|
5149
|
+
*
|
|
5150
|
+
* **This is not `Sidebar`.** `Sidebar` is the app-level left rail — `SidebarProvider`, icon-collapse,
|
|
5151
|
+
* one per app shell, outside `PageLayout`. `SectionNav` is scoped to a single page's sections, lives
|
|
5152
|
+
* inside `PageLayout.Content`, and owns no global state. See `AGENTS.md`.
|
|
5153
|
+
*
|
|
5154
|
+
* **Router-agnostic:** `renderItem` is the seam. Pass it whatever your router calls a link.
|
|
5155
|
+
*
|
|
5156
|
+
* ```tsx
|
|
5157
|
+
* <PageLayout.Content nav={
|
|
5158
|
+
* <SectionNav
|
|
5159
|
+
* groups={groups}
|
|
5160
|
+
* activeId={activeId}
|
|
5161
|
+
* renderItem={({ targetId, children, itemProps }) => (
|
|
5162
|
+
* <Link to={targetId} {...itemProps}>{children}</Link>
|
|
5163
|
+
* )}
|
|
5164
|
+
* />
|
|
5165
|
+
* }>
|
|
5166
|
+
* {page}
|
|
5167
|
+
* </PageLayout.Content>
|
|
5168
|
+
* ```
|
|
5169
|
+
*
|
|
5170
|
+
* The tree↔dropdown switch is a **container** query on the content area's width, never the viewport
|
|
5171
|
+
* — a product sidebar or a chat panel narrows the page without the window resizing.
|
|
5172
|
+
* `PageLayout.Content nav={…}` names that container; standalone, put `tw:@container/section-nav` on
|
|
5173
|
+
* an ancestor yourself.
|
|
5174
|
+
*
|
|
5175
|
+
* @see RECIPES.md#section-nav
|
|
5176
|
+
*/
|
|
5177
|
+
declare const SectionNav: ({ groups, activeId, renderItem, showDescriptions, label, className, }: Props$n) => react_jsx_runtime.JSX.Element;
|
|
5178
|
+
|
|
5179
|
+
type Props$m = {
|
|
4961
5180
|
/** `wordmark` (default, full logo) or `mark` (square icon); each falls back to the other. */
|
|
4962
5181
|
variant?: 'mark' | 'wordmark';
|
|
4963
5182
|
/** Sets the logo height; aspect ratio is preserved (e.g. `tw:h-7`). */
|
|
@@ -4967,7 +5186,7 @@ type Props$l = {
|
|
|
4967
5186
|
* Renders the active brand's logo from the nearest `<ThemeProvider>`, or `null`
|
|
4968
5187
|
* if the brand ships none. Inline SVG inherits `currentColor`; URLs use `<img>`.
|
|
4969
5188
|
*/
|
|
4970
|
-
declare const BrandLogo: ({ variant, className }: Props$
|
|
5189
|
+
declare const BrandLogo: ({ variant, className }: Props$m) => react_jsx_runtime.JSX.Element | null;
|
|
4971
5190
|
|
|
4972
5191
|
declare const ResizableHandle: ({ className, ...props }: ComponentProps<typeof Separator$1>) => react_jsx_runtime.JSX.Element;
|
|
4973
5192
|
|
|
@@ -4979,7 +5198,7 @@ type SidebarState$1 = 'expanded' | 'collapsed';
|
|
|
4979
5198
|
type SidebarCollapsible = 'icon' | 'off-canvas';
|
|
4980
5199
|
type SidebarVariant = 'sided-floating' | 'inset' | 'floating' | 'none';
|
|
4981
5200
|
|
|
4982
|
-
type Props$
|
|
5201
|
+
type Props$l = {
|
|
4983
5202
|
children: ReactNode;
|
|
4984
5203
|
className?: string;
|
|
4985
5204
|
id?: string;
|
|
@@ -4990,7 +5209,7 @@ type Props$k = {
|
|
|
4990
5209
|
resizable?: boolean;
|
|
4991
5210
|
};
|
|
4992
5211
|
declare const Sidebar: {
|
|
4993
|
-
({ children, className, id, side, style, container, keepMounted, resizable, }: Props$
|
|
5212
|
+
({ children, className, id, side, style, container, keepMounted, resizable, }: Props$l): react_jsx_runtime.JSX.Element | null;
|
|
4994
5213
|
Header: ({ className, children, ...props }: react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => react_jsx_runtime.JSX.Element;
|
|
4995
5214
|
Content: ({ ref, className, children, contentRef }: {
|
|
4996
5215
|
className?: string;
|
|
@@ -5015,12 +5234,12 @@ declare const Sidebar: {
|
|
|
5015
5234
|
translate?: "yes" | "no" | undefined | undefined;
|
|
5016
5235
|
color?: string | undefined | undefined;
|
|
5017
5236
|
prefix?: string | undefined | undefined;
|
|
5018
|
-
id?: string | undefined | undefined;
|
|
5019
|
-
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
5020
5237
|
label?: ReactNode;
|
|
5021
5238
|
slot?: string | undefined | undefined;
|
|
5022
5239
|
style?: CSSProperties | undefined;
|
|
5023
5240
|
title?: string | undefined | undefined;
|
|
5241
|
+
id?: string | undefined | undefined;
|
|
5242
|
+
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
5024
5243
|
ref?: react.Ref<HTMLDivElement> | undefined;
|
|
5025
5244
|
key?: react.Key | null | undefined;
|
|
5026
5245
|
defaultChecked?: boolean | undefined | undefined;
|
|
@@ -5321,13 +5540,13 @@ declare const Sidebar: {
|
|
|
5321
5540
|
size?: number | undefined | undefined;
|
|
5322
5541
|
translate?: "yes" | "no" | undefined | undefined;
|
|
5323
5542
|
color?: string | undefined | undefined;
|
|
5324
|
-
id?: string | undefined | undefined;
|
|
5325
|
-
name?: string | undefined | undefined;
|
|
5326
|
-
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
5327
5543
|
form?: string | undefined | undefined;
|
|
5328
5544
|
slot?: string | undefined | undefined;
|
|
5329
5545
|
style?: CSSProperties | undefined;
|
|
5330
5546
|
title?: string | undefined | undefined;
|
|
5547
|
+
id?: string | undefined | undefined;
|
|
5548
|
+
name?: string | undefined | undefined;
|
|
5549
|
+
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
5331
5550
|
pattern?: string | undefined | undefined;
|
|
5332
5551
|
ref?: react.Ref<HTMLInputElement> | undefined;
|
|
5333
5552
|
key?: react.Key | null | undefined;
|
|
@@ -5645,7 +5864,7 @@ declare const Sidebar: {
|
|
|
5645
5864
|
}) => react_jsx_runtime.JSX.Element;
|
|
5646
5865
|
};
|
|
5647
5866
|
|
|
5648
|
-
type Props$
|
|
5867
|
+
type Props$k = {
|
|
5649
5868
|
children?: ReactNode;
|
|
5650
5869
|
defaultLeftMode?: SidebarMode;
|
|
5651
5870
|
leftMode?: SidebarMode;
|
|
@@ -5663,7 +5882,7 @@ type Props$j = {
|
|
|
5663
5882
|
onRightWidthChange?: (width: number) => void;
|
|
5664
5883
|
defaultFilledSide?: SidebarSide | null;
|
|
5665
5884
|
};
|
|
5666
|
-
declare const SidebarProvider: ({ children, defaultLeftMode, leftMode, onLeftModeChange, defaultRightMode, rightMode, onRightModeChange, leftCollapsible, leftVariant, leftWidth, rightCollapsible, rightVariant, rightWidth, onLeftWidthChange, onRightWidthChange, defaultFilledSide, }: Props$
|
|
5885
|
+
declare const SidebarProvider: ({ children, defaultLeftMode, leftMode, onLeftModeChange, defaultRightMode, rightMode, onRightModeChange, leftCollapsible, leftVariant, leftWidth, rightCollapsible, rightVariant, rightWidth, onLeftWidthChange, onRightWidthChange, defaultFilledSide, }: Props$k) => react_jsx_runtime.JSX.Element;
|
|
5667
5886
|
|
|
5668
5887
|
type Input = {
|
|
5669
5888
|
variant: SidebarVariant;
|
|
@@ -5679,12 +5898,12 @@ type EffectiveWidths = {
|
|
|
5679
5898
|
};
|
|
5680
5899
|
declare const calcEffectiveWidths: ({ variant, width: customWidth, collapsible, state, mode, }: Input) => EffectiveWidths;
|
|
5681
5900
|
|
|
5682
|
-
type Props$
|
|
5901
|
+
type Props$j = {
|
|
5683
5902
|
defaultMode?: SidebarMode;
|
|
5684
5903
|
mode?: SidebarMode;
|
|
5685
5904
|
onModeChange?: (state: SidebarMode) => void;
|
|
5686
5905
|
};
|
|
5687
|
-
declare const useSidebarState: ({ defaultMode, mode: modeProp, onModeChange }: Props$
|
|
5906
|
+
declare const useSidebarState: ({ defaultMode, mode: modeProp, onModeChange }: Props$j) => {
|
|
5688
5907
|
isHovered: boolean;
|
|
5689
5908
|
toggle: () => void;
|
|
5690
5909
|
setMode: (dispatch: Parameters<react.Dispatch<react.SetStateAction<"expanded" | "collapsed" | "expand-on-hover">>>[0]) => void;
|
|
@@ -5708,13 +5927,19 @@ type SidebarSideValue = SidebarState & {
|
|
|
5708
5927
|
isDragging: boolean;
|
|
5709
5928
|
setIsDragging: (dragging: boolean) => void;
|
|
5710
5929
|
};
|
|
5930
|
+
/**
|
|
5931
|
+
* The sidebar if there is one, `null` otherwise — for code that ENHANCES a page when the app shell is
|
|
5932
|
+
* around it (borrowing width, collapsing a panel) and must still render without one, in a test, a
|
|
5933
|
+
* story, or an embedded surface. Anything that genuinely requires a sidebar keeps `useSidebar`.
|
|
5934
|
+
*/
|
|
5935
|
+
declare const useOptionalSidebar: (side?: SidebarSide) => SidebarSideValue | null;
|
|
5711
5936
|
declare const useSidebar: (side?: SidebarSide) => SidebarSideValue;
|
|
5712
5937
|
|
|
5713
5938
|
declare const separatorVariants: (props?: ({
|
|
5714
5939
|
size?: "full" | "1/2" | "3/4" | null | undefined;
|
|
5715
5940
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
5716
5941
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
5717
|
-
type Props$
|
|
5942
|
+
type Props$i = VariantProps<typeof separatorVariants> & Omit<ComponentProps<typeof RSeparator.Root>, 'decorative'> & {
|
|
5718
5943
|
/**
|
|
5719
5944
|
* Optional label rendered centered between two line segments
|
|
5720
5945
|
* (typical "OR" divider). Implies `orientation="horizontal"`.
|
|
@@ -5722,12 +5947,12 @@ type Props$h = VariantProps<typeof separatorVariants> & Omit<ComponentProps<type
|
|
|
5722
5947
|
*/
|
|
5723
5948
|
label?: ReactNode;
|
|
5724
5949
|
};
|
|
5725
|
-
declare const Separator: ({ className, orientation, size, label, ...props }: Props$
|
|
5950
|
+
declare const Separator: ({ className, orientation, size, label, ...props }: Props$i) => react_jsx_runtime.JSX.Element;
|
|
5726
5951
|
|
|
5727
5952
|
declare const navbarClassnames: (props?: ({
|
|
5728
5953
|
bordered?: boolean | null | undefined;
|
|
5729
5954
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
5730
|
-
type Props$
|
|
5955
|
+
type Props$h = ComponentProps<'nav'> & VariantProps<typeof navbarClassnames> & {
|
|
5731
5956
|
accent?: 'blue' | 'purple' | 'green' | 'orange';
|
|
5732
5957
|
};
|
|
5733
5958
|
/**
|
|
@@ -5745,7 +5970,7 @@ type Props$g = ComponentProps<'nav'> & VariantProps<typeof navbarClassnames> & {
|
|
|
5745
5970
|
* @see AppShell — pair with `AppShell.Header`; the sidebar rail uses `Sidebar` instead.
|
|
5746
5971
|
*/
|
|
5747
5972
|
declare const Navbar: {
|
|
5748
|
-
({ className, accent, bordered, ...rest }: Props$
|
|
5973
|
+
({ className, accent, bordered, ...rest }: Props$h): react_jsx_runtime.JSX.Element;
|
|
5749
5974
|
Header: ({ children, className, ...rest }: react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => react_jsx_runtime.JSX.Element;
|
|
5750
5975
|
Footer: ({ children, className, ...rest }: react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => react_jsx_runtime.JSX.Element;
|
|
5751
5976
|
Content: ({ children, className }: {
|
|
@@ -5773,6 +5998,72 @@ declare const Navbar: {
|
|
|
5773
5998
|
}) => react_jsx_runtime.JSX.Element;
|
|
5774
5999
|
};
|
|
5775
6000
|
|
|
6001
|
+
declare const DEFAULT_WORKBENCH_BAR_HEIGHT_IN_REM = 2.75;
|
|
6002
|
+
declare const DEFAULT_WORKBENCH_PANEL_HEIGHT_IN_PX = 320;
|
|
6003
|
+
declare const MIN_WORKBENCH_PANEL_HEIGHT_IN_PX = 120;
|
|
6004
|
+
|
|
6005
|
+
/**
|
|
6006
|
+
* Full screen is a mode of the open panel, not a flag beside it — as two booleans the fourth
|
|
6007
|
+
* combination (collapsed *and* full screen) is expressible but meaningless.
|
|
6008
|
+
*/
|
|
6009
|
+
type WorkbenchState = 'collapsed' | 'expanded' | 'full-screen';
|
|
6010
|
+
type WorkbenchActions = {
|
|
6011
|
+
expand: () => void;
|
|
6012
|
+
collapse: () => void;
|
|
6013
|
+
toggleExpanded: () => void;
|
|
6014
|
+
enterFullScreen: () => void;
|
|
6015
|
+
exitFullScreen: () => void;
|
|
6016
|
+
toggleFullScreen: () => void;
|
|
6017
|
+
};
|
|
6018
|
+
type WorkbenchContextValue = WorkbenchActions & {
|
|
6019
|
+
state: WorkbenchState;
|
|
6020
|
+
setState: Dispatch<SetStateAction<WorkbenchState>>;
|
|
6021
|
+
panelHeight: number;
|
|
6022
|
+
setPanelHeight: Dispatch<SetStateAction<number>>;
|
|
6023
|
+
isResizing: boolean;
|
|
6024
|
+
setIsResizing: (isResizing: boolean) => void;
|
|
6025
|
+
};
|
|
6026
|
+
/**
|
|
6027
|
+
* The parts sit at arbitrary depth under `<Workbench>` — a trigger lives inside the panel header,
|
|
6028
|
+
* three levels down — so the state travels by context rather than props.
|
|
6029
|
+
*/
|
|
6030
|
+
declare const useWorkbench: () => WorkbenchContextValue;
|
|
6031
|
+
|
|
6032
|
+
type Props$g = {
|
|
6033
|
+
className?: string;
|
|
6034
|
+
children: ReactNode;
|
|
6035
|
+
state?: WorkbenchState;
|
|
6036
|
+
defaultState?: WorkbenchState;
|
|
6037
|
+
onStateChange?: (state: WorkbenchState) => void;
|
|
6038
|
+
barHeight?: number;
|
|
6039
|
+
panelHeight?: number;
|
|
6040
|
+
defaultPanelHeight?: number;
|
|
6041
|
+
onPanelHeightChange?: (panelHeight: number) => void;
|
|
6042
|
+
};
|
|
6043
|
+
declare const Workbench: {
|
|
6044
|
+
({ className, children, state: stateProp, defaultState, onStateChange, barHeight, panelHeight: panelHeightProp, defaultPanelHeight, onPanelHeightChange, }: Props$g): react_jsx_runtime.JSX.Element;
|
|
6045
|
+
Bar: {
|
|
6046
|
+
({ className, children, ...props }: react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>): react_jsx_runtime.JSX.Element;
|
|
6047
|
+
Start: ({ className, ...props }: react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => react_jsx_runtime.JSX.Element;
|
|
6048
|
+
Middle: ({ className, ...props }: react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => react_jsx_runtime.JSX.Element;
|
|
6049
|
+
End: ({ className, ...props }: react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => react_jsx_runtime.JSX.Element;
|
|
6050
|
+
};
|
|
6051
|
+
BarStart: ({ className, ...props }: react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => react_jsx_runtime.JSX.Element;
|
|
6052
|
+
BarMiddle: ({ className, ...props }: react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => react_jsx_runtime.JSX.Element;
|
|
6053
|
+
BarEnd: ({ className, ...props }: react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => react_jsx_runtime.JSX.Element;
|
|
6054
|
+
Panel: ({ className, children, ...props }: react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => react_jsx_runtime.JSX.Element;
|
|
6055
|
+
PanelHeader: ({ className, children, ...props }: react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => react_jsx_runtime.JSX.Element;
|
|
6056
|
+
PanelTitle: ({ className, ...props }: react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => react_jsx_runtime.JSX.Element;
|
|
6057
|
+
PanelActions: ({ className, asChild, ...props }: react.ClassAttributes<HTMLDivElement> & react.HTMLAttributes<HTMLDivElement> & {
|
|
6058
|
+
asChild?: boolean;
|
|
6059
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
6060
|
+
PanelContent: ({ className, children, ...props }: react.DetailedHTMLProps<react.HTMLAttributes<HTMLDivElement>, HTMLDivElement>) => react_jsx_runtime.JSX.Element;
|
|
6061
|
+
Trigger: react.ForwardRefExoticComponent<_radix_ui_react_collapsible.CollapsibleTriggerProps & react.RefAttributes<HTMLButtonElement>>;
|
|
6062
|
+
FullScreenTrigger: ({ asChild, onClick, ...props }: react.ClassAttributes<HTMLButtonElement> & react.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
6063
|
+
asChild?: boolean;
|
|
6064
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
6065
|
+
};
|
|
6066
|
+
|
|
5776
6067
|
type Props$f = ComponentProps<'nav'>;
|
|
5777
6068
|
declare const Breadcrumb: {
|
|
5778
6069
|
({ className, ...props }: Props$f): react_jsx_runtime.JSX.Element;
|
|
@@ -5792,7 +6083,7 @@ declare const Breadcrumb: {
|
|
|
5792
6083
|
open?: boolean;
|
|
5793
6084
|
defaultOpen?: boolean;
|
|
5794
6085
|
onOpenChange?: (open: boolean) => void;
|
|
5795
|
-
size?: "
|
|
6086
|
+
size?: "small" | "medium" | "large";
|
|
5796
6087
|
filter?: boolean;
|
|
5797
6088
|
shouldFilter?: boolean;
|
|
5798
6089
|
searchValue?: string;
|
|
@@ -5888,14 +6179,19 @@ declare const Stepper: {
|
|
|
5888
6179
|
|
|
5889
6180
|
declare const cardClassnames: (props?: ({
|
|
5890
6181
|
bordered?: boolean | null | undefined;
|
|
5891
|
-
padding?: "
|
|
6182
|
+
padding?: "small" | "none" | "medium" | "large" | null | undefined;
|
|
5892
6183
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
5893
6184
|
|
|
5894
6185
|
type Props$c = HTMLAttributes<HTMLDivElement> & VariantProps<typeof cardClassnames>;
|
|
5895
6186
|
declare const Card: {
|
|
5896
6187
|
({ children, className, bordered, padding, ...rest }: Props$c): react_jsx_runtime.JSX.Element;
|
|
5897
|
-
Header: ({ children, ...rest }: HTMLAttributes<HTMLDivElement>
|
|
5898
|
-
|
|
6188
|
+
Header: ({ children, className, divider, layout, ...rest }: HTMLAttributes<HTMLDivElement> & {
|
|
6189
|
+
divider?: boolean;
|
|
6190
|
+
layout?: "row" | "inline" | "stack";
|
|
6191
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
6192
|
+
Content: ({ children, className, padded, ...rest }: HTMLAttributes<HTMLDivElement> & {
|
|
6193
|
+
padded?: boolean;
|
|
6194
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
5899
6195
|
Title: ({ children, className, as: Tag, ...rest }: HTMLAttributes<HTMLHeadingElement> & {
|
|
5900
6196
|
as?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
5901
6197
|
}) => react_jsx_runtime.JSX.Element;
|
|
@@ -5958,7 +6254,7 @@ declare const Timeline: {
|
|
|
5958
6254
|
} & react.ClassAttributes<HTMLDivElement> & react.HTMLAttributes<HTMLDivElement> & class_variance_authority.VariantProps<(props?: ({
|
|
5959
6255
|
align?: "end" | "start" | "center" | "baseline" | null | undefined;
|
|
5960
6256
|
} & class_variance_authority_types.ClassProp) | undefined) => string> & class_variance_authority.VariantProps<(props?: ({
|
|
5961
|
-
variant?: "
|
|
6257
|
+
variant?: "label" | "none" | "line" | "icon" | null | undefined;
|
|
5962
6258
|
} & class_variance_authority_types.ClassProp) | undefined) => string>) => react_jsx_runtime.JSX.Element;
|
|
5963
6259
|
};
|
|
5964
6260
|
|
|
@@ -5967,8 +6263,8 @@ type Props$9 = {
|
|
|
5967
6263
|
tooltip?: ReactNode;
|
|
5968
6264
|
twoLines?: boolean;
|
|
5969
6265
|
noTooltip?: boolean;
|
|
5970
|
-
tooltipVariant?: Props$
|
|
5971
|
-
tooltipPlacement?: Props$
|
|
6266
|
+
tooltipVariant?: Props$1N['variant'];
|
|
6267
|
+
tooltipPlacement?: Props$1N['placement'];
|
|
5972
6268
|
} & Omit<ComponentProps<'span'>, 'children'>;
|
|
5973
6269
|
declare const Truncated: ({ ref, text, tooltip, className, twoLines, noTooltip, tooltipVariant, tooltipPlacement, ...rest }: Props$9) => react_jsx_runtime.JSX.Element;
|
|
5974
6270
|
|
|
@@ -6013,7 +6309,7 @@ declare const Pagination: {
|
|
|
6013
6309
|
} & react.ClassAttributes<HTMLButtonElement> & react.ButtonHTMLAttributes<HTMLButtonElement> & class_variance_authority.VariantProps<(props?: ({
|
|
6014
6310
|
block?: boolean | null | undefined;
|
|
6015
6311
|
variant?: "primary" | "secondary" | "inline" | "danger" | "invisible" | "outline" | null | undefined;
|
|
6016
|
-
size?: "
|
|
6312
|
+
size?: "small" | "medium" | "large" | "icon-lg" | "icon" | "icon-sm" | "icon-xs" | "icon-2xs" | "icon-3xs" | null | undefined;
|
|
6017
6313
|
} & class_variance_authority_types.ClassProp) | undefined) => string>, "variant">) => react_jsx_runtime.JSX.Element;
|
|
6018
6314
|
Previous: ({ children, ...props }: {
|
|
6019
6315
|
active?: boolean;
|
|
@@ -6023,7 +6319,7 @@ declare const Pagination: {
|
|
|
6023
6319
|
} & react.ClassAttributes<HTMLButtonElement> & react.ButtonHTMLAttributes<HTMLButtonElement> & class_variance_authority.VariantProps<(props?: ({
|
|
6024
6320
|
block?: boolean | null | undefined;
|
|
6025
6321
|
variant?: "primary" | "secondary" | "inline" | "danger" | "invisible" | "outline" | null | undefined;
|
|
6026
|
-
size?: "
|
|
6322
|
+
size?: "small" | "medium" | "large" | "icon-lg" | "icon" | "icon-sm" | "icon-xs" | "icon-2xs" | "icon-3xs" | null | undefined;
|
|
6027
6323
|
} & class_variance_authority_types.ClassProp) | undefined) => string>, "variant">) => react_jsx_runtime.JSX.Element;
|
|
6028
6324
|
Next: ({ children, className, ...props }: {
|
|
6029
6325
|
active?: boolean;
|
|
@@ -6033,7 +6329,7 @@ declare const Pagination: {
|
|
|
6033
6329
|
} & react.ClassAttributes<HTMLButtonElement> & react.ButtonHTMLAttributes<HTMLButtonElement> & class_variance_authority.VariantProps<(props?: ({
|
|
6034
6330
|
block?: boolean | null | undefined;
|
|
6035
6331
|
variant?: "primary" | "secondary" | "inline" | "danger" | "invisible" | "outline" | null | undefined;
|
|
6036
|
-
size?: "
|
|
6332
|
+
size?: "small" | "medium" | "large" | "icon-lg" | "icon" | "icon-sm" | "icon-xs" | "icon-2xs" | "icon-3xs" | null | undefined;
|
|
6037
6333
|
} & class_variance_authority_types.ClassProp) | undefined) => string>, "variant">) => react_jsx_runtime.JSX.Element;
|
|
6038
6334
|
Ellipsis: ({ className, ...props }: react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>) => react_jsx_runtime.JSX.Element;
|
|
6039
6335
|
};
|
|
@@ -6293,14 +6589,14 @@ declare const useAppForm: <TFormData, TOnMount extends _tanstack_react_form.Form
|
|
|
6293
6589
|
translate?: "yes" | "no" | undefined | undefined;
|
|
6294
6590
|
color?: string | undefined | undefined;
|
|
6295
6591
|
prefix?: react.ReactNode;
|
|
6296
|
-
id?: string | undefined | undefined;
|
|
6297
|
-
name?: string | undefined | undefined;
|
|
6298
|
-
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
6299
|
-
variant?: "primary" | "secondary" | null | undefined;
|
|
6300
6592
|
form?: string | undefined | undefined;
|
|
6301
6593
|
slot?: string | undefined | undefined;
|
|
6302
6594
|
style?: react.CSSProperties | undefined;
|
|
6303
6595
|
title?: string | undefined | undefined;
|
|
6596
|
+
id?: string | undefined | undefined;
|
|
6597
|
+
name?: string | undefined | undefined;
|
|
6598
|
+
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
6599
|
+
variant?: "primary" | "secondary" | null | undefined;
|
|
6304
6600
|
pattern?: string | undefined | undefined;
|
|
6305
6601
|
ref?: react.Ref<HTMLInputElement> | undefined;
|
|
6306
6602
|
key?: react.Key | null | undefined;
|
|
@@ -6601,7 +6897,7 @@ declare const useAppForm: <TFormData, TOnMount extends _tanstack_react_form.Form
|
|
|
6601
6897
|
readOnly?: boolean | undefined | undefined;
|
|
6602
6898
|
required?: boolean | undefined | undefined;
|
|
6603
6899
|
onValueBlur?: ((value: string) => void) | undefined;
|
|
6604
|
-
sizing?: "
|
|
6900
|
+
sizing?: "small" | "medium" | "default" | null | undefined;
|
|
6605
6901
|
focusVariant?: "off" | "on" | "default" | null | undefined;
|
|
6606
6902
|
rightSuffix?: react.ReactNode;
|
|
6607
6903
|
rightSuffixVariant?: "addon" | "default" | undefined;
|
|
@@ -6616,14 +6912,14 @@ declare const useAppForm: <TFormData, TOnMount extends _tanstack_react_form.Form
|
|
|
6616
6912
|
translate?: "yes" | "no" | undefined | undefined;
|
|
6617
6913
|
color?: string | undefined | undefined;
|
|
6618
6914
|
prefix?: react.ReactNode;
|
|
6619
|
-
id?: string | undefined | undefined;
|
|
6620
|
-
name?: string | undefined | undefined;
|
|
6621
|
-
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
6622
|
-
variant?: "primary" | "secondary" | null | undefined;
|
|
6623
6915
|
form?: string | undefined | undefined;
|
|
6624
6916
|
slot?: string | undefined | undefined;
|
|
6625
6917
|
style?: react.CSSProperties | undefined;
|
|
6626
6918
|
title?: string | undefined | undefined;
|
|
6919
|
+
id?: string | undefined | undefined;
|
|
6920
|
+
name?: string | undefined | undefined;
|
|
6921
|
+
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
6922
|
+
variant?: "primary" | "secondary" | null | undefined;
|
|
6627
6923
|
pattern?: string | undefined | undefined;
|
|
6628
6924
|
ref?: react.Ref<HTMLInputElement> | undefined;
|
|
6629
6925
|
key?: react.Key | null | undefined;
|
|
@@ -6925,14 +7221,14 @@ declare const useAppForm: <TFormData, TOnMount extends _tanstack_react_form.Form
|
|
|
6925
7221
|
readOnly?: boolean | undefined | undefined;
|
|
6926
7222
|
required?: boolean | undefined | undefined;
|
|
6927
7223
|
onValueBlur?: ((value: number | null) => void) | undefined;
|
|
6928
|
-
sizing?: "
|
|
7224
|
+
sizing?: "small" | "medium" | "default" | null | undefined;
|
|
6929
7225
|
focusVariant?: "off" | "on" | "default" | null | undefined;
|
|
6930
7226
|
suffix?: react.ReactNode;
|
|
6931
7227
|
}, "id" | "name" | "onBlur" | "value" | "onValueChange">) => react_jsx_runtime.JSX.Element;
|
|
6932
7228
|
readonly PasswordField: ({ label, action, required, requiredMark, help, tooltip, className, "aria-describedby": ariaDescribedBy, ...inputProps }: FieldItemProps & Omit<{
|
|
6933
7229
|
variant?: "primary" | "secondary" | null | undefined;
|
|
6934
7230
|
state?: "warning" | "default" | "error" | null | undefined;
|
|
6935
|
-
sizing?: "
|
|
7231
|
+
sizing?: "small" | "medium" | "default" | null | undefined;
|
|
6936
7232
|
focusVariant?: "off" | "on" | "default" | null | undefined;
|
|
6937
7233
|
} & {
|
|
6938
7234
|
content?: string | undefined | undefined;
|
|
@@ -6940,13 +7236,13 @@ declare const useAppForm: <TFormData, TOnMount extends _tanstack_react_form.Form
|
|
|
6940
7236
|
translate?: "yes" | "no" | undefined | undefined;
|
|
6941
7237
|
color?: string | undefined | undefined;
|
|
6942
7238
|
prefix?: string | undefined | undefined;
|
|
6943
|
-
id?: string | undefined | undefined;
|
|
6944
|
-
name?: string | undefined | undefined;
|
|
6945
|
-
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
6946
7239
|
form?: string | undefined | undefined;
|
|
6947
7240
|
slot?: string | undefined | undefined;
|
|
6948
7241
|
style?: react.CSSProperties | undefined;
|
|
6949
7242
|
title?: string | undefined | undefined;
|
|
7243
|
+
id?: string | undefined | undefined;
|
|
7244
|
+
name?: string | undefined | undefined;
|
|
7245
|
+
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
6950
7246
|
pattern?: string | undefined | undefined;
|
|
6951
7247
|
ref?: react.Ref<HTMLInputElement> | undefined;
|
|
6952
7248
|
key?: react.Key | null | undefined;
|
|
@@ -7260,16 +7556,16 @@ declare const useAppForm: <TFormData, TOnMount extends _tanstack_react_form.Form
|
|
|
7260
7556
|
wrap?: string | undefined | undefined;
|
|
7261
7557
|
color?: string | undefined | undefined;
|
|
7262
7558
|
prefix?: string | undefined | undefined;
|
|
7263
|
-
id?: string | undefined | undefined;
|
|
7264
|
-
name?: string | undefined | undefined;
|
|
7265
|
-
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
7266
|
-
variant?: "primary" | "secondary" | null | undefined;
|
|
7267
7559
|
form?: string | undefined | undefined;
|
|
7268
7560
|
slot?: string | undefined | undefined;
|
|
7269
7561
|
style?: (Omit<react.CSSProperties, "minHeight" | "maxHeight"> & {
|
|
7270
7562
|
height?: number;
|
|
7271
7563
|
}) | undefined;
|
|
7272
7564
|
title?: string | undefined | undefined;
|
|
7565
|
+
id?: string | undefined | undefined;
|
|
7566
|
+
name?: string | undefined | undefined;
|
|
7567
|
+
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
7568
|
+
variant?: "primary" | "secondary" | null | undefined;
|
|
7273
7569
|
ref?: react.Ref<HTMLTextAreaElement> | undefined;
|
|
7274
7570
|
key?: react.Key | null | undefined;
|
|
7275
7571
|
defaultChecked?: boolean | undefined | undefined;
|
|
@@ -7560,20 +7856,16 @@ declare const useAppForm: <TFormData, TOnMount extends _tanstack_react_form.Form
|
|
|
7560
7856
|
cacheMeasurements?: boolean | undefined;
|
|
7561
7857
|
onValueBlur?: (((value: string) => void) & ((value: string) => void)) | undefined;
|
|
7562
7858
|
disableResize?: boolean | undefined;
|
|
7563
|
-
sizing?: "
|
|
7859
|
+
sizing?: "small" | "medium" | "default" | null | undefined;
|
|
7564
7860
|
focusVariant?: "off" | "on" | "default" | null | undefined;
|
|
7565
7861
|
containerClassName?: string | undefined;
|
|
7566
7862
|
}, "id" | "name" | "onBlur" | "value" | "onValueChange">) => react_jsx_runtime.JSX.Element;
|
|
7567
|
-
readonly SelectField: ({ label, action, required, requiredMark, help, tooltip, className, "aria-describedby": ariaDescribedBy, triggerClassName, ...selectProps }: FieldItemProps & Omit<Pick<SelectRootProps, "
|
|
7863
|
+
readonly SelectField: ({ label, action, required, requiredMark, help, tooltip, className, "aria-describedby": ariaDescribedBy, triggerClassName, ...selectProps }: FieldItemProps & Omit<Pick<SelectRootProps, "form" | "name" | "defaultValue" | "dir" | "open" | "defaultOpen" | "onOpenChange" | "disabled" | "value" | "onValueChange" | "autoComplete" | "required"> & Pick<_radix_ui_react_select.SelectTriggerProps & react.RefAttributes<HTMLButtonElement> & Omit<class_variance_authority.VariantProps<(props?: ({
|
|
7568
7864
|
variant?: "primary" | "secondary" | "argo" | null | undefined;
|
|
7569
|
-
sizing?: "
|
|
7865
|
+
sizing?: "small" | "medium" | "default" | null | undefined;
|
|
7570
7866
|
state?: "warning" | "default" | "error" | null | undefined;
|
|
7571
7867
|
} & class_variance_authority_types.ClassProp) | undefined) => string>, "variant"> & {
|
|
7572
|
-
variant?: Exclude<class_variance_authority.VariantProps<
|
|
7573
|
-
variant?: "primary" | "secondary" | "argo" | null | undefined;
|
|
7574
|
-
sizing?: "medium" | "small" | "default" | null | undefined;
|
|
7575
|
-
state?: "warning" | "default" | "error" | null | undefined;
|
|
7576
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string>["variant"], "argo"> | "inline";
|
|
7868
|
+
variant?: Exclude<class_variance_authority.VariantProps<typeof overlayTriggerVariants>["variant"], "argo"> | "inline";
|
|
7577
7869
|
} & Pick<_radix_ui_react_select.SelectValueProps & react.RefAttributes<HTMLSpanElement>, "placeholder">, "id" | "variant" | "className" | "aria-describedby" | "aria-invalid" | "aria-required" | "onBlur" | "state" | "placeholder" | "sizing"> & {
|
|
7578
7870
|
items?: readonly (SelectItem | SelectItemGroup)[];
|
|
7579
7871
|
}, "id" | "name" | "defaultValue" | "className" | "aria-describedby" | "aria-invalid" | "aria-required" | "onBlur" | "value" | "onValueChange" | "items"> & {
|
|
@@ -7585,8 +7877,8 @@ declare const useAppForm: <TFormData, TOnMount extends _tanstack_react_form.Form
|
|
|
7585
7877
|
description?: react.ReactNode;
|
|
7586
7878
|
variant?: class_variance_authority.VariantProps<typeof fieldBoxVariants>["variant"];
|
|
7587
7879
|
position?: "start" | "end";
|
|
7588
|
-
tooltip?: Props$
|
|
7589
|
-
tooltipPlacement?: Props$
|
|
7880
|
+
tooltip?: Props$1N["tooltip"];
|
|
7881
|
+
tooltipPlacement?: Props$1N["placement"];
|
|
7590
7882
|
} & Omit<_radix_ui_react_checkbox.CheckboxProps & react.RefAttributes<HTMLButtonElement>, "id">, "checked" | "onCheckedChange"> & {
|
|
7591
7883
|
checked?: _radix_ui_react_checkbox.CheckedState;
|
|
7592
7884
|
onCheckedChange?: (checked: _radix_ui_react_checkbox.CheckedState) => void;
|
|
@@ -7599,7 +7891,7 @@ declare const useAppForm: <TFormData, TOnMount extends _tanstack_react_form.Form
|
|
|
7599
7891
|
position?: "start" | "end";
|
|
7600
7892
|
} & Omit<_radix_ui_react_switch.SwitchProps & react.RefAttributes<HTMLButtonElement>, "id" | "asChild"> & Omit<class_variance_authority.VariantProps<(props?: ({
|
|
7601
7893
|
variant?: "default" | "argo" | null | undefined;
|
|
7602
|
-
size?: "
|
|
7894
|
+
size?: "small" | "medium" | "large" | null | undefined;
|
|
7603
7895
|
} & class_variance_authority_types.ClassProp) | undefined) => string>, "variant">, "id" | "name" | "checked" | "onCheckedChange">) => react_jsx_runtime.JSX.Element;
|
|
7604
7896
|
readonly OtpInputField: ({ label, action, 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;
|
|
7605
7897
|
}, {
|
|
@@ -7614,7 +7906,7 @@ declare const useAppForm: <TFormData, TOnMount extends _tanstack_react_form.Form
|
|
|
7614
7906
|
} & react.ClassAttributes<HTMLButtonElement> & react.ButtonHTMLAttributes<HTMLButtonElement> & class_variance_authority.VariantProps<(props?: ({
|
|
7615
7907
|
block?: boolean | null | undefined;
|
|
7616
7908
|
variant?: "primary" | "secondary" | "inline" | "danger" | "invisible" | "outline" | null | undefined;
|
|
7617
|
-
size?: "
|
|
7909
|
+
size?: "small" | "medium" | "large" | "icon-lg" | "icon" | "icon-sm" | "icon-xs" | "icon-2xs" | "icon-3xs" | null | undefined;
|
|
7618
7910
|
} & class_variance_authority_types.ClassProp) | undefined) => string>, "disabled" | "type" | "isLoading">) => react_jsx_runtime.JSX.Element;
|
|
7619
7911
|
readonly SubmitErrorAlert: () => react_jsx_runtime.JSX.Element;
|
|
7620
7912
|
}>;
|
|
@@ -7625,14 +7917,14 @@ declare const withForm: <TFormData, TOnMount extends _tanstack_react_form.FormVa
|
|
|
7625
7917
|
translate?: "yes" | "no" | undefined | undefined;
|
|
7626
7918
|
color?: string | undefined | undefined;
|
|
7627
7919
|
prefix?: react.ReactNode;
|
|
7628
|
-
id?: string | undefined | undefined;
|
|
7629
|
-
name?: string | undefined | undefined;
|
|
7630
|
-
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
7631
|
-
variant?: "primary" | "secondary" | null | undefined;
|
|
7632
7920
|
form?: string | undefined | undefined;
|
|
7633
7921
|
slot?: string | undefined | undefined;
|
|
7634
7922
|
style?: react.CSSProperties | undefined;
|
|
7635
7923
|
title?: string | undefined | undefined;
|
|
7924
|
+
id?: string | undefined | undefined;
|
|
7925
|
+
name?: string | undefined | undefined;
|
|
7926
|
+
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
7927
|
+
variant?: "primary" | "secondary" | null | undefined;
|
|
7636
7928
|
pattern?: string | undefined | undefined;
|
|
7637
7929
|
ref?: react.Ref<HTMLInputElement> | undefined;
|
|
7638
7930
|
key?: react.Key | null | undefined;
|
|
@@ -7933,7 +8225,7 @@ declare const withForm: <TFormData, TOnMount extends _tanstack_react_form.FormVa
|
|
|
7933
8225
|
readOnly?: boolean | undefined | undefined;
|
|
7934
8226
|
required?: boolean | undefined | undefined;
|
|
7935
8227
|
onValueBlur?: ((value: string) => void) | undefined;
|
|
7936
|
-
sizing?: "
|
|
8228
|
+
sizing?: "small" | "medium" | "default" | null | undefined;
|
|
7937
8229
|
focusVariant?: "off" | "on" | "default" | null | undefined;
|
|
7938
8230
|
rightSuffix?: react.ReactNode;
|
|
7939
8231
|
rightSuffixVariant?: "addon" | "default" | undefined;
|
|
@@ -7948,14 +8240,14 @@ declare const withForm: <TFormData, TOnMount extends _tanstack_react_form.FormVa
|
|
|
7948
8240
|
translate?: "yes" | "no" | undefined | undefined;
|
|
7949
8241
|
color?: string | undefined | undefined;
|
|
7950
8242
|
prefix?: react.ReactNode;
|
|
7951
|
-
id?: string | undefined | undefined;
|
|
7952
|
-
name?: string | undefined | undefined;
|
|
7953
|
-
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
7954
|
-
variant?: "primary" | "secondary" | null | undefined;
|
|
7955
8243
|
form?: string | undefined | undefined;
|
|
7956
8244
|
slot?: string | undefined | undefined;
|
|
7957
8245
|
style?: react.CSSProperties | undefined;
|
|
7958
8246
|
title?: string | undefined | undefined;
|
|
8247
|
+
id?: string | undefined | undefined;
|
|
8248
|
+
name?: string | undefined | undefined;
|
|
8249
|
+
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
8250
|
+
variant?: "primary" | "secondary" | null | undefined;
|
|
7959
8251
|
pattern?: string | undefined | undefined;
|
|
7960
8252
|
ref?: react.Ref<HTMLInputElement> | undefined;
|
|
7961
8253
|
key?: react.Key | null | undefined;
|
|
@@ -8257,14 +8549,14 @@ declare const withForm: <TFormData, TOnMount extends _tanstack_react_form.FormVa
|
|
|
8257
8549
|
readOnly?: boolean | undefined | undefined;
|
|
8258
8550
|
required?: boolean | undefined | undefined;
|
|
8259
8551
|
onValueBlur?: ((value: number | null) => void) | undefined;
|
|
8260
|
-
sizing?: "
|
|
8552
|
+
sizing?: "small" | "medium" | "default" | null | undefined;
|
|
8261
8553
|
focusVariant?: "off" | "on" | "default" | null | undefined;
|
|
8262
8554
|
suffix?: react.ReactNode;
|
|
8263
8555
|
}, "id" | "name" | "onBlur" | "value" | "onValueChange">) => react_jsx_runtime.JSX.Element;
|
|
8264
8556
|
readonly PasswordField: ({ label, action, required, requiredMark, help, tooltip, className, "aria-describedby": ariaDescribedBy, ...inputProps }: FieldItemProps & Omit<{
|
|
8265
8557
|
variant?: "primary" | "secondary" | null | undefined;
|
|
8266
8558
|
state?: "warning" | "default" | "error" | null | undefined;
|
|
8267
|
-
sizing?: "
|
|
8559
|
+
sizing?: "small" | "medium" | "default" | null | undefined;
|
|
8268
8560
|
focusVariant?: "off" | "on" | "default" | null | undefined;
|
|
8269
8561
|
} & {
|
|
8270
8562
|
content?: string | undefined | undefined;
|
|
@@ -8272,13 +8564,13 @@ declare const withForm: <TFormData, TOnMount extends _tanstack_react_form.FormVa
|
|
|
8272
8564
|
translate?: "yes" | "no" | undefined | undefined;
|
|
8273
8565
|
color?: string | undefined | undefined;
|
|
8274
8566
|
prefix?: string | undefined | undefined;
|
|
8275
|
-
id?: string | undefined | undefined;
|
|
8276
|
-
name?: string | undefined | undefined;
|
|
8277
|
-
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
8278
8567
|
form?: string | undefined | undefined;
|
|
8279
8568
|
slot?: string | undefined | undefined;
|
|
8280
8569
|
style?: react.CSSProperties | undefined;
|
|
8281
8570
|
title?: string | undefined | undefined;
|
|
8571
|
+
id?: string | undefined | undefined;
|
|
8572
|
+
name?: string | undefined | undefined;
|
|
8573
|
+
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
8282
8574
|
pattern?: string | undefined | undefined;
|
|
8283
8575
|
ref?: react.Ref<HTMLInputElement> | undefined;
|
|
8284
8576
|
key?: react.Key | null | undefined;
|
|
@@ -8592,16 +8884,16 @@ declare const withForm: <TFormData, TOnMount extends _tanstack_react_form.FormVa
|
|
|
8592
8884
|
wrap?: string | undefined | undefined;
|
|
8593
8885
|
color?: string | undefined | undefined;
|
|
8594
8886
|
prefix?: string | undefined | undefined;
|
|
8595
|
-
id?: string | undefined | undefined;
|
|
8596
|
-
name?: string | undefined | undefined;
|
|
8597
|
-
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
8598
|
-
variant?: "primary" | "secondary" | null | undefined;
|
|
8599
8887
|
form?: string | undefined | undefined;
|
|
8600
8888
|
slot?: string | undefined | undefined;
|
|
8601
8889
|
style?: (Omit<react.CSSProperties, "minHeight" | "maxHeight"> & {
|
|
8602
8890
|
height?: number;
|
|
8603
8891
|
}) | undefined;
|
|
8604
8892
|
title?: string | undefined | undefined;
|
|
8893
|
+
id?: string | undefined | undefined;
|
|
8894
|
+
name?: string | undefined | undefined;
|
|
8895
|
+
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
8896
|
+
variant?: "primary" | "secondary" | null | undefined;
|
|
8605
8897
|
ref?: react.Ref<HTMLTextAreaElement> | undefined;
|
|
8606
8898
|
key?: react.Key | null | undefined;
|
|
8607
8899
|
defaultChecked?: boolean | undefined | undefined;
|
|
@@ -8892,20 +9184,16 @@ declare const withForm: <TFormData, TOnMount extends _tanstack_react_form.FormVa
|
|
|
8892
9184
|
cacheMeasurements?: boolean | undefined;
|
|
8893
9185
|
onValueBlur?: (((value: string) => void) & ((value: string) => void)) | undefined;
|
|
8894
9186
|
disableResize?: boolean | undefined;
|
|
8895
|
-
sizing?: "
|
|
9187
|
+
sizing?: "small" | "medium" | "default" | null | undefined;
|
|
8896
9188
|
focusVariant?: "off" | "on" | "default" | null | undefined;
|
|
8897
9189
|
containerClassName?: string | undefined;
|
|
8898
9190
|
}, "id" | "name" | "onBlur" | "value" | "onValueChange">) => react_jsx_runtime.JSX.Element;
|
|
8899
|
-
readonly SelectField: ({ label, action, required, requiredMark, help, tooltip, className, "aria-describedby": ariaDescribedBy, triggerClassName, ...selectProps }: FieldItemProps & Omit<Pick<SelectRootProps, "
|
|
9191
|
+
readonly SelectField: ({ label, action, required, requiredMark, help, tooltip, className, "aria-describedby": ariaDescribedBy, triggerClassName, ...selectProps }: FieldItemProps & Omit<Pick<SelectRootProps, "form" | "name" | "defaultValue" | "dir" | "open" | "defaultOpen" | "onOpenChange" | "disabled" | "value" | "onValueChange" | "autoComplete" | "required"> & Pick<_radix_ui_react_select.SelectTriggerProps & react.RefAttributes<HTMLButtonElement> & Omit<class_variance_authority.VariantProps<(props?: ({
|
|
8900
9192
|
variant?: "primary" | "secondary" | "argo" | null | undefined;
|
|
8901
|
-
sizing?: "
|
|
9193
|
+
sizing?: "small" | "medium" | "default" | null | undefined;
|
|
8902
9194
|
state?: "warning" | "default" | "error" | null | undefined;
|
|
8903
9195
|
} & class_variance_authority_types.ClassProp) | undefined) => string>, "variant"> & {
|
|
8904
|
-
variant?: Exclude<class_variance_authority.VariantProps<
|
|
8905
|
-
variant?: "primary" | "secondary" | "argo" | null | undefined;
|
|
8906
|
-
sizing?: "medium" | "small" | "default" | null | undefined;
|
|
8907
|
-
state?: "warning" | "default" | "error" | null | undefined;
|
|
8908
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string>["variant"], "argo"> | "inline";
|
|
9196
|
+
variant?: Exclude<class_variance_authority.VariantProps<typeof overlayTriggerVariants>["variant"], "argo"> | "inline";
|
|
8909
9197
|
} & Pick<_radix_ui_react_select.SelectValueProps & react.RefAttributes<HTMLSpanElement>, "placeholder">, "id" | "variant" | "className" | "aria-describedby" | "aria-invalid" | "aria-required" | "onBlur" | "state" | "placeholder" | "sizing"> & {
|
|
8910
9198
|
items?: readonly (SelectItem | SelectItemGroup)[];
|
|
8911
9199
|
}, "id" | "name" | "defaultValue" | "className" | "aria-describedby" | "aria-invalid" | "aria-required" | "onBlur" | "value" | "onValueChange" | "items"> & {
|
|
@@ -8917,8 +9205,8 @@ declare const withForm: <TFormData, TOnMount extends _tanstack_react_form.FormVa
|
|
|
8917
9205
|
description?: react.ReactNode;
|
|
8918
9206
|
variant?: class_variance_authority.VariantProps<typeof fieldBoxVariants>["variant"];
|
|
8919
9207
|
position?: "start" | "end";
|
|
8920
|
-
tooltip?: Props$
|
|
8921
|
-
tooltipPlacement?: Props$
|
|
9208
|
+
tooltip?: Props$1N["tooltip"];
|
|
9209
|
+
tooltipPlacement?: Props$1N["placement"];
|
|
8922
9210
|
} & Omit<_radix_ui_react_checkbox.CheckboxProps & react.RefAttributes<HTMLButtonElement>, "id">, "checked" | "onCheckedChange"> & {
|
|
8923
9211
|
checked?: _radix_ui_react_checkbox.CheckedState;
|
|
8924
9212
|
onCheckedChange?: (checked: _radix_ui_react_checkbox.CheckedState) => void;
|
|
@@ -8931,7 +9219,7 @@ declare const withForm: <TFormData, TOnMount extends _tanstack_react_form.FormVa
|
|
|
8931
9219
|
position?: "start" | "end";
|
|
8932
9220
|
} & Omit<_radix_ui_react_switch.SwitchProps & react.RefAttributes<HTMLButtonElement>, "id" | "asChild"> & Omit<class_variance_authority.VariantProps<(props?: ({
|
|
8933
9221
|
variant?: "default" | "argo" | null | undefined;
|
|
8934
|
-
size?: "
|
|
9222
|
+
size?: "small" | "medium" | "large" | null | undefined;
|
|
8935
9223
|
} & class_variance_authority_types.ClassProp) | undefined) => string>, "variant">, "id" | "name" | "checked" | "onCheckedChange">) => react_jsx_runtime.JSX.Element;
|
|
8936
9224
|
readonly OtpInputField: ({ label, action, 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;
|
|
8937
9225
|
}, {
|
|
@@ -8946,7 +9234,7 @@ declare const withForm: <TFormData, TOnMount extends _tanstack_react_form.FormVa
|
|
|
8946
9234
|
} & react.ClassAttributes<HTMLButtonElement> & react.ButtonHTMLAttributes<HTMLButtonElement> & class_variance_authority.VariantProps<(props?: ({
|
|
8947
9235
|
block?: boolean | null | undefined;
|
|
8948
9236
|
variant?: "primary" | "secondary" | "inline" | "danger" | "invisible" | "outline" | null | undefined;
|
|
8949
|
-
size?: "
|
|
9237
|
+
size?: "small" | "medium" | "large" | "icon-lg" | "icon" | "icon-sm" | "icon-xs" | "icon-2xs" | "icon-3xs" | null | undefined;
|
|
8950
9238
|
} & class_variance_authority_types.ClassProp) | undefined) => string>, "disabled" | "type" | "isLoading">) => react_jsx_runtime.JSX.Element;
|
|
8951
9239
|
readonly SubmitErrorAlert: () => react_jsx_runtime.JSX.Element;
|
|
8952
9240
|
}, TRenderProps>) => react.FunctionComponent<react.PropsWithChildren<NoInfer<[unknown] extends [TRenderProps] ? any : TRenderProps> & {
|
|
@@ -8957,14 +9245,14 @@ declare const withForm: <TFormData, TOnMount extends _tanstack_react_form.FormVa
|
|
|
8957
9245
|
translate?: "yes" | "no" | undefined | undefined;
|
|
8958
9246
|
color?: string | undefined | undefined;
|
|
8959
9247
|
prefix?: react.ReactNode;
|
|
8960
|
-
id?: string | undefined | undefined;
|
|
8961
|
-
name?: string | undefined | undefined;
|
|
8962
|
-
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
8963
|
-
variant?: "primary" | "secondary" | null | undefined;
|
|
8964
9248
|
form?: string | undefined | undefined;
|
|
8965
9249
|
slot?: string | undefined | undefined;
|
|
8966
9250
|
style?: react.CSSProperties | undefined;
|
|
8967
9251
|
title?: string | undefined | undefined;
|
|
9252
|
+
id?: string | undefined | undefined;
|
|
9253
|
+
name?: string | undefined | undefined;
|
|
9254
|
+
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
9255
|
+
variant?: "primary" | "secondary" | null | undefined;
|
|
8968
9256
|
pattern?: string | undefined | undefined;
|
|
8969
9257
|
ref?: react.Ref<HTMLInputElement> | undefined;
|
|
8970
9258
|
key?: react.Key | null | undefined;
|
|
@@ -9265,7 +9553,7 @@ declare const withForm: <TFormData, TOnMount extends _tanstack_react_form.FormVa
|
|
|
9265
9553
|
readOnly?: boolean | undefined | undefined;
|
|
9266
9554
|
required?: boolean | undefined | undefined;
|
|
9267
9555
|
onValueBlur?: ((value: string) => void) | undefined;
|
|
9268
|
-
sizing?: "
|
|
9556
|
+
sizing?: "small" | "medium" | "default" | null | undefined;
|
|
9269
9557
|
focusVariant?: "off" | "on" | "default" | null | undefined;
|
|
9270
9558
|
rightSuffix?: react.ReactNode;
|
|
9271
9559
|
rightSuffixVariant?: "addon" | "default" | undefined;
|
|
@@ -9280,14 +9568,14 @@ declare const withForm: <TFormData, TOnMount extends _tanstack_react_form.FormVa
|
|
|
9280
9568
|
translate?: "yes" | "no" | undefined | undefined;
|
|
9281
9569
|
color?: string | undefined | undefined;
|
|
9282
9570
|
prefix?: react.ReactNode;
|
|
9283
|
-
id?: string | undefined | undefined;
|
|
9284
|
-
name?: string | undefined | undefined;
|
|
9285
|
-
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
9286
|
-
variant?: "primary" | "secondary" | null | undefined;
|
|
9287
9571
|
form?: string | undefined | undefined;
|
|
9288
9572
|
slot?: string | undefined | undefined;
|
|
9289
9573
|
style?: react.CSSProperties | undefined;
|
|
9290
9574
|
title?: string | undefined | undefined;
|
|
9575
|
+
id?: string | undefined | undefined;
|
|
9576
|
+
name?: string | undefined | undefined;
|
|
9577
|
+
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
9578
|
+
variant?: "primary" | "secondary" | null | undefined;
|
|
9291
9579
|
pattern?: string | undefined | undefined;
|
|
9292
9580
|
ref?: react.Ref<HTMLInputElement> | undefined;
|
|
9293
9581
|
key?: react.Key | null | undefined;
|
|
@@ -9589,14 +9877,14 @@ declare const withForm: <TFormData, TOnMount extends _tanstack_react_form.FormVa
|
|
|
9589
9877
|
readOnly?: boolean | undefined | undefined;
|
|
9590
9878
|
required?: boolean | undefined | undefined;
|
|
9591
9879
|
onValueBlur?: ((value: number | null) => void) | undefined;
|
|
9592
|
-
sizing?: "
|
|
9880
|
+
sizing?: "small" | "medium" | "default" | null | undefined;
|
|
9593
9881
|
focusVariant?: "off" | "on" | "default" | null | undefined;
|
|
9594
9882
|
suffix?: react.ReactNode;
|
|
9595
9883
|
}, "id" | "name" | "onBlur" | "value" | "onValueChange">) => react_jsx_runtime.JSX.Element;
|
|
9596
9884
|
readonly PasswordField: ({ label, action, required, requiredMark, help, tooltip, className, "aria-describedby": ariaDescribedBy, ...inputProps }: FieldItemProps & Omit<{
|
|
9597
9885
|
variant?: "primary" | "secondary" | null | undefined;
|
|
9598
9886
|
state?: "warning" | "default" | "error" | null | undefined;
|
|
9599
|
-
sizing?: "
|
|
9887
|
+
sizing?: "small" | "medium" | "default" | null | undefined;
|
|
9600
9888
|
focusVariant?: "off" | "on" | "default" | null | undefined;
|
|
9601
9889
|
} & {
|
|
9602
9890
|
content?: string | undefined | undefined;
|
|
@@ -9604,13 +9892,13 @@ declare const withForm: <TFormData, TOnMount extends _tanstack_react_form.FormVa
|
|
|
9604
9892
|
translate?: "yes" | "no" | undefined | undefined;
|
|
9605
9893
|
color?: string | undefined | undefined;
|
|
9606
9894
|
prefix?: string | undefined | undefined;
|
|
9607
|
-
id?: string | undefined | undefined;
|
|
9608
|
-
name?: string | undefined | undefined;
|
|
9609
|
-
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
9610
9895
|
form?: string | undefined | undefined;
|
|
9611
9896
|
slot?: string | undefined | undefined;
|
|
9612
9897
|
style?: react.CSSProperties | undefined;
|
|
9613
9898
|
title?: string | undefined | undefined;
|
|
9899
|
+
id?: string | undefined | undefined;
|
|
9900
|
+
name?: string | undefined | undefined;
|
|
9901
|
+
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
9614
9902
|
pattern?: string | undefined | undefined;
|
|
9615
9903
|
ref?: react.Ref<HTMLInputElement> | undefined;
|
|
9616
9904
|
key?: react.Key | null | undefined;
|
|
@@ -9924,16 +10212,16 @@ declare const withForm: <TFormData, TOnMount extends _tanstack_react_form.FormVa
|
|
|
9924
10212
|
wrap?: string | undefined | undefined;
|
|
9925
10213
|
color?: string | undefined | undefined;
|
|
9926
10214
|
prefix?: string | undefined | undefined;
|
|
9927
|
-
id?: string | undefined | undefined;
|
|
9928
|
-
name?: string | undefined | undefined;
|
|
9929
|
-
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
9930
|
-
variant?: "primary" | "secondary" | null | undefined;
|
|
9931
10215
|
form?: string | undefined | undefined;
|
|
9932
10216
|
slot?: string | undefined | undefined;
|
|
9933
10217
|
style?: (Omit<react.CSSProperties, "minHeight" | "maxHeight"> & {
|
|
9934
10218
|
height?: number;
|
|
9935
10219
|
}) | undefined;
|
|
9936
10220
|
title?: string | undefined | undefined;
|
|
10221
|
+
id?: string | undefined | undefined;
|
|
10222
|
+
name?: string | undefined | undefined;
|
|
10223
|
+
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
10224
|
+
variant?: "primary" | "secondary" | null | undefined;
|
|
9937
10225
|
ref?: react.Ref<HTMLTextAreaElement> | undefined;
|
|
9938
10226
|
key?: react.Key | null | undefined;
|
|
9939
10227
|
defaultChecked?: boolean | undefined | undefined;
|
|
@@ -10224,20 +10512,16 @@ declare const withForm: <TFormData, TOnMount extends _tanstack_react_form.FormVa
|
|
|
10224
10512
|
cacheMeasurements?: boolean | undefined;
|
|
10225
10513
|
onValueBlur?: (((value: string) => void) & ((value: string) => void)) | undefined;
|
|
10226
10514
|
disableResize?: boolean | undefined;
|
|
10227
|
-
sizing?: "
|
|
10515
|
+
sizing?: "small" | "medium" | "default" | null | undefined;
|
|
10228
10516
|
focusVariant?: "off" | "on" | "default" | null | undefined;
|
|
10229
10517
|
containerClassName?: string | undefined;
|
|
10230
10518
|
}, "id" | "name" | "onBlur" | "value" | "onValueChange">) => react_jsx_runtime.JSX.Element;
|
|
10231
|
-
readonly SelectField: ({ label, action, required, requiredMark, help, tooltip, className, "aria-describedby": ariaDescribedBy, triggerClassName, ...selectProps }: FieldItemProps & Omit<Pick<SelectRootProps, "
|
|
10519
|
+
readonly SelectField: ({ label, action, required, requiredMark, help, tooltip, className, "aria-describedby": ariaDescribedBy, triggerClassName, ...selectProps }: FieldItemProps & Omit<Pick<SelectRootProps, "form" | "name" | "defaultValue" | "dir" | "open" | "defaultOpen" | "onOpenChange" | "disabled" | "value" | "onValueChange" | "autoComplete" | "required"> & Pick<_radix_ui_react_select.SelectTriggerProps & react.RefAttributes<HTMLButtonElement> & Omit<class_variance_authority.VariantProps<(props?: ({
|
|
10232
10520
|
variant?: "primary" | "secondary" | "argo" | null | undefined;
|
|
10233
|
-
sizing?: "
|
|
10521
|
+
sizing?: "small" | "medium" | "default" | null | undefined;
|
|
10234
10522
|
state?: "warning" | "default" | "error" | null | undefined;
|
|
10235
10523
|
} & class_variance_authority_types.ClassProp) | undefined) => string>, "variant"> & {
|
|
10236
|
-
variant?: Exclude<class_variance_authority.VariantProps<
|
|
10237
|
-
variant?: "primary" | "secondary" | "argo" | null | undefined;
|
|
10238
|
-
sizing?: "medium" | "small" | "default" | null | undefined;
|
|
10239
|
-
state?: "warning" | "default" | "error" | null | undefined;
|
|
10240
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string>["variant"], "argo"> | "inline";
|
|
10524
|
+
variant?: Exclude<class_variance_authority.VariantProps<typeof overlayTriggerVariants>["variant"], "argo"> | "inline";
|
|
10241
10525
|
} & Pick<_radix_ui_react_select.SelectValueProps & react.RefAttributes<HTMLSpanElement>, "placeholder">, "id" | "variant" | "className" | "aria-describedby" | "aria-invalid" | "aria-required" | "onBlur" | "state" | "placeholder" | "sizing"> & {
|
|
10242
10526
|
items?: readonly (SelectItem | SelectItemGroup)[];
|
|
10243
10527
|
}, "id" | "name" | "defaultValue" | "className" | "aria-describedby" | "aria-invalid" | "aria-required" | "onBlur" | "value" | "onValueChange" | "items"> & {
|
|
@@ -10249,8 +10533,8 @@ declare const withForm: <TFormData, TOnMount extends _tanstack_react_form.FormVa
|
|
|
10249
10533
|
description?: react.ReactNode;
|
|
10250
10534
|
variant?: class_variance_authority.VariantProps<typeof fieldBoxVariants>["variant"];
|
|
10251
10535
|
position?: "start" | "end";
|
|
10252
|
-
tooltip?: Props$
|
|
10253
|
-
tooltipPlacement?: Props$
|
|
10536
|
+
tooltip?: Props$1N["tooltip"];
|
|
10537
|
+
tooltipPlacement?: Props$1N["placement"];
|
|
10254
10538
|
} & Omit<_radix_ui_react_checkbox.CheckboxProps & react.RefAttributes<HTMLButtonElement>, "id">, "checked" | "onCheckedChange"> & {
|
|
10255
10539
|
checked?: _radix_ui_react_checkbox.CheckedState;
|
|
10256
10540
|
onCheckedChange?: (checked: _radix_ui_react_checkbox.CheckedState) => void;
|
|
@@ -10263,7 +10547,7 @@ declare const withForm: <TFormData, TOnMount extends _tanstack_react_form.FormVa
|
|
|
10263
10547
|
position?: "start" | "end";
|
|
10264
10548
|
} & Omit<_radix_ui_react_switch.SwitchProps & react.RefAttributes<HTMLButtonElement>, "id" | "asChild"> & Omit<class_variance_authority.VariantProps<(props?: ({
|
|
10265
10549
|
variant?: "default" | "argo" | null | undefined;
|
|
10266
|
-
size?: "
|
|
10550
|
+
size?: "small" | "medium" | "large" | null | undefined;
|
|
10267
10551
|
} & class_variance_authority_types.ClassProp) | undefined) => string>, "variant">, "id" | "name" | "checked" | "onCheckedChange">) => react_jsx_runtime.JSX.Element;
|
|
10268
10552
|
readonly OtpInputField: ({ label, action, 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;
|
|
10269
10553
|
}, {
|
|
@@ -10278,7 +10562,7 @@ declare const withForm: <TFormData, TOnMount extends _tanstack_react_form.FormVa
|
|
|
10278
10562
|
} & react.ClassAttributes<HTMLButtonElement> & react.ButtonHTMLAttributes<HTMLButtonElement> & class_variance_authority.VariantProps<(props?: ({
|
|
10279
10563
|
block?: boolean | null | undefined;
|
|
10280
10564
|
variant?: "primary" | "secondary" | "inline" | "danger" | "invisible" | "outline" | null | undefined;
|
|
10281
|
-
size?: "
|
|
10565
|
+
size?: "small" | "medium" | "large" | "icon-lg" | "icon" | "icon-sm" | "icon-xs" | "icon-2xs" | "icon-3xs" | null | undefined;
|
|
10282
10566
|
} & class_variance_authority_types.ClassProp) | undefined) => string>, "disabled" | "type" | "isLoading">) => react_jsx_runtime.JSX.Element;
|
|
10283
10567
|
readonly SubmitErrorAlert: () => react_jsx_runtime.JSX.Element;
|
|
10284
10568
|
}>;
|
|
@@ -10435,4 +10719,4 @@ declare const contrastRatio: (fg: string, bg: string) => number;
|
|
|
10435
10719
|
/** WCAG level for normal-size text at a given ratio. */
|
|
10436
10720
|
declare const wcagLevel: (ratio: number) => "AAA" | "AA" | "fail";
|
|
10437
10721
|
|
|
10438
|
-
export { Alert, AlertModal, AnswerSummary, type AnswerItem as AnswerSummaryItem, type Props$
|
|
10722
|
+
export { Alert, AlertModal, AnswerSummary, type AnswerItem as AnswerSummaryItem, type Props$P as AnswerSummaryProps, type Variant$5 as AnswerSummaryVariant, AppShell, type AppShellHeaderSpan, 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, DEFAULT_WORKBENCH_BAR_HEIGHT_IN_REM, DEFAULT_WORKBENCH_PANEL_HEIGHT_IN_PX, 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, ExportMenu, type ExportMenuItem, FileUpload, type FileUploadAccept, type FileUploadRejection, type FileUploadRejectionCode, FormGroup, FullScreenModal, FullScreenModalBody, FullScreenModalHeader, GoogleButton, HelpBlock, HoverCard, InlineStepDetail, type Props$N as InlineStepDetailProps, InlineStepLabel, type Props$M as InlineStepLabelProps, type Variant$3 as InlineStepLabelVariant, InputGroup, Kbd, Label, type LineInformation, Link, MIN_WORKBENCH_PANEL_HEIGHT_IN_PX, Markdown, MarkedText, MergeConflict, MessageBubble, MicrosoftButton, 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$1o as Props, Question, type QuestionAnswers, QuestionBlock, type Props$F as QuestionBlockProps, type QuestionOption, type Props$G as QuestionProps, type QuestionStep, RadioGroup, type RadiusSize, ResizableHandle, ResizablePanelGroup, type ResolvedColorScheme, ScrollArea, ScrollBar, Search, SearchForm, SearchInput, SearchInputWithNavigation, SectionNav, type SectionNavGroup, type SectionNavItem, type SectionNavItemRenderProps, 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, type TableSortDirection, Tabs, TabsContent, 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$1N as TooltipProps, TooltipProvider, type Trigger, Truncated, UsageStats, UsageStatsRing, type UseAutosizeInputOptions, type UseAutosizeInputReturn, type ValidityState, type WordInformation, Workbench, type WorkbenchState, ZoomableSvg, argoVariants, channelsToHex, cn, computeDiffRows, computeLineInformation, contrastRatio, copyToClipboard, hexToChannels, isMac, kbdVariants, keys, mergeRefs, setServerFieldErrors, setSubmitError, svgToPngBlob, tableAriaSort, toSvgFileContent, toast, useAppForm, useArgoDesign, useAutosizeInput, useFileDropTarget, useFileUploadRejections, useMergeDiff, useNotification, useOptionalSidebar, useScrollbarPosition, useSidebar, useStableCallback, useTargetRect, useTheme, useWorkbench, wcagLevel, withForm };
|