@keboola/design 6.5.0 → 9.0.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 +7 -7
- package/COMPONENT-API.md +3 -9
- package/README.md +1 -1
- package/dist/charts.cjs +22 -22
- package/dist/charts.cjs.map +1 -1
- package/dist/charts.d.cts +5 -5
- package/dist/charts.d.ts +5 -5
- package/dist/charts.js +22 -22
- package/dist/charts.js.map +1 -1
- package/dist/editors.cjs +904 -550
- package/dist/editors.cjs.map +1 -1
- package/dist/editors.d.cts +35 -5
- package/dist/editors.d.ts +35 -5
- package/dist/editors.js +908 -537
- package/dist/editors.js.map +1 -1
- package/dist/icons.cjs +23817 -45
- package/dist/icons.cjs.map +1 -1
- package/dist/icons.d.cts +12 -3
- package/dist/icons.d.ts +12 -3
- package/dist/icons.js +297 -40
- package/dist/icons.js.map +1 -1
- package/dist/index.cjs +4702 -4755
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +183 -169
- package/dist/index.d.ts +183 -169
- package/dist/index.js +4700 -4754
- package/dist/index.js.map +1 -1
- package/dist/markdown-editor.cjs +817 -923
- package/dist/markdown-editor.cjs.map +1 -1
- package/dist/markdown-editor.js +818 -923
- package/dist/markdown-editor.js.map +1 -1
- package/dist/mermaid.cjs +308 -425
- package/dist/mermaid.cjs.map +1 -1
- package/dist/mermaid.d.cts +5 -1
- package/dist/mermaid.d.ts +5 -1
- package/dist/mermaid.js +310 -408
- package/dist/mermaid.js.map +1 -1
- package/dist/rjsf.cjs +1704 -1234
- package/dist/rjsf.cjs.map +1 -1
- package/dist/rjsf.js +1708 -1237
- package/dist/rjsf.js.map +1 -1
- package/dist/styles.css +2 -5
- package/dist/testing.cjs +86 -82
- package/dist/testing.cjs.map +1 -1
- package/dist/testing.js +86 -82
- package/dist/testing.js.map +1 -1
- package/package.json +26 -19
- package/src/styles.css +125 -105
- package/src/theme.css +264 -0
package/dist/index.d.ts
CHANGED
|
@@ -72,9 +72,9 @@ declare const argoVariants: (props?: ({
|
|
|
72
72
|
*
|
|
73
73
|
* Pass `variant` for primary/secondary/danger/outline/invisible looks, `size`
|
|
74
74
|
* for height (including `icon-*` sizes when rendering icon-only). Icons are
|
|
75
|
-
* composed as children — `<Button><Trash2 className="tw
|
|
75
|
+
* composed as children — `<Button><Trash2 className="tw:size-4" /> Delete</Button>`.
|
|
76
76
|
*/
|
|
77
|
-
type Props$
|
|
77
|
+
type Props$1S = {
|
|
78
78
|
/** Replaces the leading content with a spinner and disables the button visually. The caller still controls `disabled`. */
|
|
79
79
|
isLoading?: boolean;
|
|
80
80
|
/** Render as a Radix `Slot` so the parent JSX (e.g. a `react-router` `<Link>`) becomes the button element. */
|
|
@@ -93,31 +93,31 @@ type Props$1R = {
|
|
|
93
93
|
* @see RECIPES.md#disabled-button-tooltip — for the disabled-button + tooltip pattern
|
|
94
94
|
* @see RECIPES.md#confirm-dialog — for destructive-action confirmation
|
|
95
95
|
*/
|
|
96
|
-
declare const Button: ({ ref, children, disabled, className, type, isLoading, asChild, onClick, variant, size, block, ...buttonProps }: Props$
|
|
96
|
+
declare const Button: ({ ref, children, disabled, className, type, isLoading, asChild, onClick, variant, size, block, ...buttonProps }: Props$1S) => react_jsx_runtime.JSX.Element;
|
|
97
97
|
|
|
98
98
|
declare const buttonInlineVariants: (props?: ({
|
|
99
99
|
color?: "dark" | "muted" | "link" | "danger" | "custom" | null | undefined;
|
|
100
100
|
variant?: "link" | "custom" | "link-reverse" | null | undefined;
|
|
101
101
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
102
|
-
type Props$
|
|
102
|
+
type Props$1R = ComponentProps<'button'> & VariantProps<typeof buttonInlineVariants> & {
|
|
103
103
|
asChild?: boolean;
|
|
104
104
|
};
|
|
105
|
-
declare const ButtonInline: ({ ref, children, className, variant, color, type, asChild, ...buttonProps }: Props$
|
|
105
|
+
declare const ButtonInline: ({ ref, children, className, variant, color, type, asChild, ...buttonProps }: Props$1R) => react_jsx_runtime.JSX.Element;
|
|
106
106
|
|
|
107
107
|
declare const buttonGroupVariant: (props?: ({
|
|
108
108
|
variant?: "inline" | "block" | null | undefined;
|
|
109
109
|
space?: "medium" | "small" | "large" | "extra-small" | "little-small" | "compact" | null | undefined;
|
|
110
110
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
111
|
-
type Props$
|
|
111
|
+
type Props$1Q = {
|
|
112
112
|
children: ReactNode;
|
|
113
113
|
className?: string;
|
|
114
114
|
} & VariantProps<typeof buttonGroupVariant> & ComponentProps<'div'>;
|
|
115
|
-
declare const ButtonGroup: ({ ref, children, space, className, variant, ...rest }: Props$
|
|
115
|
+
declare const ButtonGroup: ({ ref, children, space, className, variant, ...rest }: Props$1Q) => react_jsx_runtime.JSX.Element;
|
|
116
116
|
|
|
117
117
|
type Variant$8 = ComponentProps<typeof Button>['variant'];
|
|
118
118
|
type Size = NonNullable<ComponentProps<typeof Button>['size']>;
|
|
119
119
|
type SpitButtonSize = Exclude<Size, 'icon' | 'icon-lg' | 'icon-sm' | 'icon-xs' | 'icon-2xs' | 'icon-3xs'>;
|
|
120
|
-
type Props$
|
|
120
|
+
type Props$1P = {
|
|
121
121
|
actions?: ReactNode;
|
|
122
122
|
isActionsOpen?: boolean;
|
|
123
123
|
onActionsOpenChange?: (open: boolean) => void;
|
|
@@ -126,7 +126,7 @@ type Props$1O = {
|
|
|
126
126
|
variant?: Exclude<Variant$8, 'inline' | 'invisible'>;
|
|
127
127
|
size?: SpitButtonSize;
|
|
128
128
|
} & Omit<ComponentProps<typeof Button>, 'variant' | 'size' | 'icon'>;
|
|
129
|
-
declare const SplitButton: (({ ref, disabled, actions, variant, size, isActionsOpen, onActionsOpenChange, icon, children, ...rest }: Props$
|
|
129
|
+
declare const SplitButton: (({ ref, disabled, actions, variant, size, isActionsOpen, onActionsOpenChange, icon, children, ...rest }: Props$1P) => react_jsx_runtime.JSX.Element) & {
|
|
130
130
|
Action: ({ ref, className, asModalTrigger, onSelect, onPointerLeave, onPointerMove, children, asChild, icon, iconClassName, isLoading, ...props }: _radix_ui_react_dropdown_menu.DropdownMenuItemProps & react.RefAttributes<HTMLDivElement> & {
|
|
131
131
|
asModalTrigger?: boolean;
|
|
132
132
|
icon?: ReactNode;
|
|
@@ -136,11 +136,11 @@ declare const SplitButton: (({ ref, disabled, actions, variant, size, isActionsO
|
|
|
136
136
|
Actions: react.ForwardRefExoticComponent<_radix_ui_react_dropdown_menu.DropdownMenuGroupProps & react.RefAttributes<HTMLDivElement>>;
|
|
137
137
|
};
|
|
138
138
|
|
|
139
|
-
type Props$
|
|
139
|
+
type Props$1O = {
|
|
140
140
|
className?: string;
|
|
141
141
|
} & PropsWithChildren;
|
|
142
142
|
declare const MultiActionButtonGroup: {
|
|
143
|
-
({ children, className }: Props$
|
|
143
|
+
({ children, className }: Props$1O): react_jsx_runtime.JSX.Element;
|
|
144
144
|
Button: ({ disabled, icon, isLoading, label, onClick, tooltipContent, tooltipVariant, "data-testid": dataTestId, }: {
|
|
145
145
|
disabled?: boolean;
|
|
146
146
|
icon: react.ReactNode;
|
|
@@ -156,13 +156,15 @@ declare const MultiActionButtonGroup: {
|
|
|
156
156
|
declare const toggleVariants: (props?: ({
|
|
157
157
|
variant?: "ai" | "ai-vivid" | "ghost" | null | undefined;
|
|
158
158
|
size?: "medium" | "small" | "large" | null | undefined;
|
|
159
|
+
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
159
160
|
iconOnly?: boolean | null | undefined;
|
|
160
161
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
161
|
-
type Props$
|
|
162
|
+
type Props$1N = {
|
|
162
163
|
icon?: ReactNode;
|
|
163
164
|
badge?: ReactNode;
|
|
164
|
-
|
|
165
|
-
|
|
165
|
+
orientation?: 'horizontal' | 'vertical';
|
|
166
|
+
} & ComponentProps<typeof Root> & Omit<VariantProps<typeof toggleVariants>, 'iconOnly' | 'orientation'>;
|
|
167
|
+
declare const Toggle: ({ ref, className, variant, size, orientation, children, icon, badge, disabled, ...props }: Props$1N) => react_jsx_runtime.JSX.Element;
|
|
166
168
|
|
|
167
169
|
declare const rootVariants: (props?: ({
|
|
168
170
|
size?: "medium" | "small" | "large" | null | undefined;
|
|
@@ -177,11 +179,11 @@ declare const ToggleGroup: (({ ref, className, size, ...props }: RootProps$8) =>
|
|
|
177
179
|
declare const tooltipVariants: (props?: ({
|
|
178
180
|
variant?: "action" | "explanatory" | null | undefined;
|
|
179
181
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
180
|
-
type Props$
|
|
182
|
+
type Props$1M = {
|
|
181
183
|
keepOpenOnPointerDownOutside?: boolean;
|
|
182
184
|
placement?: ComponentProps<typeof Content>['side'];
|
|
183
185
|
} & Omit<ComponentProps<typeof Content>, 'side'> & VariantProps<typeof tooltipVariants>;
|
|
184
|
-
declare const TooltipContent: ({ className, variant, keepOpenOnPointerDownOutside, children, onPointerDownOutside, sideOffset, collisionPadding, hideWhenDetached, placement, ...rest }: Props$
|
|
186
|
+
declare const TooltipContent: ({ className, variant, keepOpenOnPointerDownOutside, children, onPointerDownOutside, sideOffset, collisionPadding, hideWhenDetached, placement, ...rest }: Props$1M) => react_jsx_runtime.JSX.Element;
|
|
185
187
|
|
|
186
188
|
type TriggerProps$1 = {
|
|
187
189
|
triggerAsChild?: boolean;
|
|
@@ -190,7 +192,7 @@ type TriggerProps$1 = {
|
|
|
190
192
|
* Props for `Tooltip`. `tooltip` is the popup content; `children` is the trigger element.
|
|
191
193
|
* `variant` auto-resolves to `"explanatory"` for strings >30 chars, else `"action"`.
|
|
192
194
|
*/
|
|
193
|
-
type Props$
|
|
195
|
+
type Props$1L = {
|
|
194
196
|
/** Keep the tooltip visible when the user clicks the trigger (useful for click-to-copy feedback). */
|
|
195
197
|
keepOpenOnTriggerClick?: boolean;
|
|
196
198
|
/** Content rendered inside the tooltip. Plain text only — no interactive elements (use `HoverCard` or `Popover` for that). */
|
|
@@ -222,7 +224,7 @@ declare const TooltipProvider: react.FC<_radix_ui_react_tooltip.TooltipProviderP
|
|
|
222
224
|
* @see RECIPES.md#disabled-button-tooltip — for the disabled-button + tooltip pattern
|
|
223
225
|
*/
|
|
224
226
|
declare const Tooltip: {
|
|
225
|
-
({ tooltip, children, className, keepOpenOnTriggerClick, variant, placement, forceHide, forceShow, delayDuration, triggerAsChild, }: Props$
|
|
227
|
+
({ tooltip, children, className, keepOpenOnTriggerClick, variant, placement, forceHide, forceShow, delayDuration, triggerAsChild, }: Props$1L): react_jsx_runtime.JSX.Element;
|
|
226
228
|
Root: ({ children, delayDuration, ...rest }: _radix_ui_react_tooltip.TooltipProps) => react_jsx_runtime.JSX.Element;
|
|
227
229
|
Content: ({ className, variant, keepOpenOnPointerDownOutside, children, onPointerDownOutside, sideOffset, collisionPadding, hideWhenDetached, placement, ...rest }: {
|
|
228
230
|
keepOpenOnPointerDownOutside?: boolean;
|
|
@@ -235,28 +237,56 @@ declare const Tooltip: {
|
|
|
235
237
|
} & _radix_ui_react_tooltip.TooltipTriggerProps & react.RefAttributes<HTMLButtonElement>) => react_jsx_runtime.JSX.Element;
|
|
236
238
|
};
|
|
237
239
|
|
|
238
|
-
type Props$
|
|
239
|
-
tooltip?: Props$
|
|
240
|
-
tooltipPlacement?: Props$
|
|
241
|
-
tooltipVariant?: Props$
|
|
242
|
-
asChild?: Props$
|
|
240
|
+
type Props$1K = {
|
|
241
|
+
tooltip?: Props$1L['tooltip'];
|
|
242
|
+
tooltipPlacement?: Props$1L['placement'];
|
|
243
|
+
tooltipVariant?: Props$1L['variant'];
|
|
244
|
+
asChild?: Props$1L['triggerAsChild'];
|
|
243
245
|
text?: string | (() => string);
|
|
244
246
|
} & ComponentProps<'button'>;
|
|
245
|
-
declare const Clipboard: ({ ref, text: textProp, children, tooltip, tooltipPlacement, tooltipVariant: tooltipVariantProp, asChild, onClick, className, ...restButtonProps }: Props$
|
|
247
|
+
declare const Clipboard: ({ ref, text: textProp, children, tooltip, tooltipPlacement, tooltipVariant: tooltipVariantProp, asChild, onClick, className, ...restButtonProps }: Props$1K) => react_jsx_runtime.JSX.Element;
|
|
246
248
|
|
|
247
249
|
type ClipboardProps$1 = Pick<ComponentProps<typeof Clipboard>, 'text' | 'tooltip' | 'tooltipPlacement' | 'tooltipVariant'>;
|
|
248
250
|
type ButtonProps$2 = Omit<ComponentProps<typeof Button>, 'disabled' | 'icon'>;
|
|
249
|
-
type Props$
|
|
251
|
+
type Props$1J = ClipboardProps$1 & ButtonProps$2 & {
|
|
250
252
|
icon?: ReactNode;
|
|
251
253
|
};
|
|
252
|
-
declare const ClipboardButton: ({ text, tooltip, tooltipPlacement, tooltipVariant, icon, variant, children, ...rest }: Props$
|
|
254
|
+
declare const ClipboardButton: ({ text, tooltip, tooltipPlacement, tooltipVariant, icon, variant, children, ...rest }: Props$1J) => react_jsx_runtime.JSX.Element;
|
|
253
255
|
|
|
254
256
|
type ClipboardProps = Pick<ComponentProps<typeof Clipboard>, 'text' | 'tooltip' | 'tooltipPlacement' | 'tooltipVariant'>;
|
|
255
257
|
type ButtonProps$1 = Omit<ComponentProps<typeof ButtonInline>, 'disabled'>;
|
|
256
|
-
type Props$
|
|
258
|
+
type Props$1I = {
|
|
257
259
|
hideIcon?: boolean;
|
|
258
260
|
} & ClipboardProps & ButtonProps$1;
|
|
259
|
-
declare const ClipboardInline: ({ text, tooltip, tooltipPlacement, tooltipVariant, children, hideIcon, ...rest }: Props$
|
|
261
|
+
declare const ClipboardInline: ({ text, tooltip, tooltipPlacement, tooltipVariant, children, hideIcon, ...rest }: Props$1I) => react_jsx_runtime.JSX.Element;
|
|
262
|
+
|
|
263
|
+
type ExportMenuItem = {
|
|
264
|
+
/** Menu label, e.g. "Download as CSV". */
|
|
265
|
+
label: string;
|
|
266
|
+
onSelect: () => void;
|
|
267
|
+
};
|
|
268
|
+
type Props$1H = {
|
|
269
|
+
items: ExportMenuItem[];
|
|
270
|
+
/** Accessible name + tooltip for the trigger, e.g. "Export table". */
|
|
271
|
+
label: string;
|
|
272
|
+
size?: 'icon-xs' | 'icon-sm';
|
|
273
|
+
};
|
|
274
|
+
/**
|
|
275
|
+
* Download-icon trigger with a menu of export formats.
|
|
276
|
+
*
|
|
277
|
+
* Lives in the root barrel rather than inside `ZoomableSvg` on purpose: that
|
|
278
|
+
* component ships in the lazy `@keboola/design/mermaid` chunk, and importing
|
|
279
|
+
* Radix's menu there costs ~2.7 kB brotlied against a tight budget. Callers that
|
|
280
|
+
* are already paying for the barrel inject this instead.
|
|
281
|
+
*
|
|
282
|
+
* Renders argo chrome unconditionally. `ArgoDesignContext` is scoped per bundle
|
|
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"`.
|
|
288
|
+
*/
|
|
289
|
+
declare const ExportMenu: ({ items, label, size }: Props$1H) => react_jsx_runtime.JSX.Element;
|
|
260
290
|
|
|
261
291
|
/**
|
|
262
292
|
* Compound component for readonly value/command boxes with inline copy.
|
|
@@ -586,6 +616,7 @@ declare const Popconfirm: {
|
|
|
586
616
|
Content: ({ className, onInteractOutside, ...props }: {
|
|
587
617
|
content?: string | undefined | undefined;
|
|
588
618
|
translate?: "yes" | "no" | undefined | undefined;
|
|
619
|
+
color?: string | undefined | undefined;
|
|
589
620
|
prefix?: string | undefined | undefined;
|
|
590
621
|
id?: string | undefined | undefined;
|
|
591
622
|
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
@@ -625,7 +656,6 @@ declare const Popconfirm: {
|
|
|
625
656
|
vocab?: string | undefined | undefined;
|
|
626
657
|
autoCorrect?: string | undefined | undefined;
|
|
627
658
|
autoSave?: string | undefined | undefined;
|
|
628
|
-
color?: string | undefined | undefined;
|
|
629
659
|
itemProp?: string | undefined | undefined;
|
|
630
660
|
itemScope?: boolean | undefined | undefined;
|
|
631
661
|
itemType?: string | undefined | undefined;
|
|
@@ -1292,6 +1322,7 @@ declare const RadioGroup: {
|
|
|
1292
1322
|
Item: <T extends string = string>({ children, tooltip, tooltipVariant, tooltipPlacement, description, ...props }: {
|
|
1293
1323
|
content?: string | undefined | undefined;
|
|
1294
1324
|
translate?: "yes" | "no" | undefined | undefined;
|
|
1325
|
+
color?: string | undefined | undefined;
|
|
1295
1326
|
prefix?: string | undefined | undefined;
|
|
1296
1327
|
id?: string | undefined | undefined;
|
|
1297
1328
|
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
@@ -1332,7 +1363,6 @@ declare const RadioGroup: {
|
|
|
1332
1363
|
vocab?: string | undefined | undefined;
|
|
1333
1364
|
autoCorrect?: string | undefined | undefined;
|
|
1334
1365
|
autoSave?: string | undefined | undefined;
|
|
1335
|
-
color?: string | undefined | undefined;
|
|
1336
1366
|
itemProp?: string | undefined | undefined;
|
|
1337
1367
|
itemScope?: boolean | undefined | undefined;
|
|
1338
1368
|
itemType?: string | undefined | undefined;
|
|
@@ -1585,8 +1615,8 @@ declare const RadioGroup: {
|
|
|
1585
1615
|
} & {
|
|
1586
1616
|
value: T;
|
|
1587
1617
|
tooltip?: react.ReactNode;
|
|
1588
|
-
tooltipVariant?: Props$
|
|
1589
|
-
tooltipPlacement?: Props$
|
|
1618
|
+
tooltipVariant?: Props$1L["variant"];
|
|
1619
|
+
tooltipPlacement?: Props$1L["placement"];
|
|
1590
1620
|
description?: react.ReactNode;
|
|
1591
1621
|
}) => react_jsx_runtime.JSX.Element;
|
|
1592
1622
|
Separator: () => react_jsx_runtime.JSX.Element;
|
|
@@ -1667,11 +1697,7 @@ type SelectItemGroup = {
|
|
|
1667
1697
|
items: readonly SelectItem[];
|
|
1668
1698
|
};
|
|
1669
1699
|
type TriggerProps = ComponentProps<typeof SelectTrigger>;
|
|
1670
|
-
|
|
1671
|
-
* Props for `Select`. Combines Radix `Select.Root` control props with `Select.Trigger` chrome and the
|
|
1672
|
-
* convenience `items` shape (flat list, or grouped lists with optional labels).
|
|
1673
|
-
*/
|
|
1674
|
-
type Props$15 = Pick<SelectRootProps, 'value' | 'defaultValue' | 'onValueChange' | 'disabled' | 'name' | 'required' | 'open' | 'defaultOpen' | 'onOpenChange'> & Pick<TriggerProps, 'variant' | 'state' | 'sizing' | 'placeholder' | 'id' | 'className'> & {
|
|
1700
|
+
type Props$15 = 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'> & {
|
|
1675
1701
|
items?: readonly (SelectItem | SelectItemGroup)[];
|
|
1676
1702
|
};
|
|
1677
1703
|
/**
|
|
@@ -1685,7 +1711,7 @@ type Props$15 = Pick<SelectRootProps, 'value' | 'defaultValue' | 'onValueChange'
|
|
|
1685
1711
|
* `Select.Item`) for custom item layouts; the top-level `Select` covers the common cases.
|
|
1686
1712
|
*/
|
|
1687
1713
|
declare const Select: {
|
|
1688
|
-
({ value, defaultValue, onValueChange, disabled, name, required, open, defaultOpen, onOpenChange, variant, state, sizing, placeholder, id, className, items, }: Props$15): react_jsx_runtime.JSX.Element;
|
|
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$15): react_jsx_runtime.JSX.Element;
|
|
1689
1715
|
Root: (props: SelectRootProps) => react_jsx_runtime.JSX.Element;
|
|
1690
1716
|
Trigger: ({ ref, className, variant, state, sizing, placeholder, ...props }: _radix_ui_react_select.SelectTriggerProps & react.RefAttributes<HTMLButtonElement> & Omit<class_variance_authority.VariantProps<(props?: ({
|
|
1691
1717
|
variant?: "primary" | "secondary" | "argo" | null | undefined;
|
|
@@ -1714,8 +1740,8 @@ type Props$14 = {
|
|
|
1714
1740
|
description?: ReactNode;
|
|
1715
1741
|
variant?: VariantProps<typeof fieldBoxVariants>['variant'];
|
|
1716
1742
|
position?: 'start' | 'end';
|
|
1717
|
-
tooltip?: Props$
|
|
1718
|
-
tooltipPlacement?: Props$
|
|
1743
|
+
tooltip?: Props$1L['tooltip'];
|
|
1744
|
+
tooltipPlacement?: Props$1L['placement'];
|
|
1719
1745
|
} & Omit<ComponentProps<typeof Root$8>, 'id'>;
|
|
1720
1746
|
declare function Checkbox(prop: Omit<Props$14, 'checked' | 'onCheckedChange'> & {
|
|
1721
1747
|
checked?: boolean;
|
|
@@ -1760,12 +1786,12 @@ type ComboboxItemProps$1 = ComponentProps<typeof ComboboxItem>;
|
|
|
1760
1786
|
type Indicator$1 = NonNullable<ComboboxItemProps$1['indicator']>;
|
|
1761
1787
|
type PublicComboboxInputProps = Pick<ComboboxInputProps$1, 'placeholder' | 'id'> & Pick<ComboboxInputGroupProps$1, 'variant' | 'focusVariant' | 'sizing' | 'state' | 'className'>;
|
|
1762
1788
|
type PublicComboboxProps<Value> = Pick<ComboboxProps$1<Value>, 'disabled' | 'inputRef' | 'value' | 'defaultValue' | 'onValueChange' | 'itemToStringLabel' | 'itemToStringValue' | 'filter' | 'onOpenChangeComplete' | 'isItemEqualToValue'>;
|
|
1763
|
-
type CreatableProps<Value> = {
|
|
1789
|
+
type CreatableProps$1<Value> = {
|
|
1764
1790
|
allowCreate?: boolean;
|
|
1765
1791
|
queryToCreateLabel?: (query: string) => ReactNode;
|
|
1766
1792
|
queryToCreateValue?: (query: string) => Value;
|
|
1767
1793
|
};
|
|
1768
|
-
type Props$$<Value, GroupShape extends Group<Value> = Group<Value>> = PublicComboboxInputProps & PublicComboboxProps<Value> & CreatableProps<Value> & {
|
|
1794
|
+
type Props$$<Value, GroupShape extends Group<Value> = Group<Value>> = PublicComboboxInputProps & PublicComboboxProps<Value> & CreatableProps$1<Value> & {
|
|
1769
1795
|
items?: readonly (Value | GroupShape)[];
|
|
1770
1796
|
allowClear?: boolean;
|
|
1771
1797
|
empty?: ReactNode;
|
|
@@ -2137,12 +2163,17 @@ type ComboboxInputGroupProps = ComponentProps<typeof Combobox.InputGroup>;
|
|
|
2137
2163
|
type ComboboxItemProps = ComponentProps<typeof Combobox.Item>;
|
|
2138
2164
|
type ComboboxChipsProps = ComponentProps<typeof Combobox.Chips>;
|
|
2139
2165
|
type Indicator = NonNullable<ComboboxItemProps['indicator']>;
|
|
2166
|
+
type CreatableProps<Value> = {
|
|
2167
|
+
allowCreate?: boolean;
|
|
2168
|
+
queryToCreateLabel?: (query: string) => ReactNode;
|
|
2169
|
+
queryToCreateValue?: (query: string) => Value;
|
|
2170
|
+
};
|
|
2140
2171
|
/**
|
|
2141
2172
|
* Props for `MultiCombobox`. Generic over `Value` (the item shape) and `GroupShape` (optional group wrapper).
|
|
2142
2173
|
* Use `itemToLabel` / `itemToIcon` / `itemToDisabled` to project custom item shapes; use `filter` to override
|
|
2143
|
-
* the default substring matcher.
|
|
2174
|
+
* the default substring matcher. Pass `allowCreate` to let the user add free-form values not in `items`.
|
|
2144
2175
|
*/
|
|
2145
|
-
type Props$_<Value, GroupShape extends Group<Value> = Group<Value>> = Pick<ComboboxInputProps, 'placeholder' | 'id'> & Pick<ComboboxInputGroupProps, 'variant' | 'focusVariant' | 'sizing' | 'state' | 'className'> & Pick<ComboboxProps<Value>, 'disabled' | 'inputRef' | 'value' | 'defaultValue' | 'onValueChange' | 'itemToStringLabel' | 'itemToStringValue' | 'filter'> & Pick<ComboboxChipsProps, 'itemToChipLabel' | 'itemToChipColor' | 'maxVisible'> & {
|
|
2176
|
+
type Props$_<Value, GroupShape extends Group<Value> = Group<Value>> = Pick<ComboboxInputProps, 'placeholder' | 'id'> & Pick<ComboboxInputGroupProps, 'variant' | 'focusVariant' | 'sizing' | 'state' | 'className'> & Pick<ComboboxProps<Value>, 'disabled' | 'inputRef' | 'value' | 'defaultValue' | 'onValueChange' | 'itemToStringLabel' | 'itemToStringValue' | 'filter'> & Pick<ComboboxChipsProps, 'itemToChipLabel' | 'itemToChipColor' | 'maxVisible'> & CreatableProps<Value> & {
|
|
2146
2177
|
items?: readonly (Value | GroupShape)[];
|
|
2147
2178
|
allowClear?: boolean;
|
|
2148
2179
|
allowSelectAll?: boolean;
|
|
@@ -2160,12 +2191,13 @@ type Props$_<Value, GroupShape extends Group<Value> = Group<Value>> = Pick<Combo
|
|
|
2160
2191
|
* Items render as chips above the input; `maxVisible` collapses excess into a `+N more` chip.
|
|
2161
2192
|
* **When NOT to use:** for single selection use `Combobox`; for short enums without search use `Select`.
|
|
2162
2193
|
* **Composition:** wrap in `FormGroup` for label + help text, or use `useAppForm` for form integration.
|
|
2163
|
-
* Pass `allowSelectAll` for a sticky "Select All" item when the full enum is small.
|
|
2194
|
+
* Pass `allowSelectAll` for a sticky "Select All" item when the full enum is small. Pass `allowCreate`
|
|
2195
|
+
* to let the user add free-form values that are not in `items` (e.g. entering column names by hand).
|
|
2164
2196
|
*
|
|
2165
2197
|
* @see RECIPES.md#creatable-multi-combobox — for free-form-plus-enumerated patterns
|
|
2166
2198
|
* @see RECIPES.md#filter-toolbar — for combining multi-select with other filter chips
|
|
2167
2199
|
*/
|
|
2168
|
-
declare const MultiCombobox: <Value, GroupShape extends Group<Value> = Group<Value>>({ items: _itemsProp, value: _valueProp, defaultValue, onValueChange, itemToStringLabel, itemToStringValue, disabled, filter: filterProp, inputRef, variant, sizing, focusVariant, state, placeholder, allowClear, id, className, allowSelectAll, empty, indicator, itemToDisabled, itemToLabel, itemToIcon, groupToLabel, itemToChipLabel, itemToChipColor, maxVisible, }: Props$_<Value, GroupShape>) => react_jsx_runtime.JSX.Element;
|
|
2200
|
+
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$_<Value, GroupShape>) => react_jsx_runtime.JSX.Element;
|
|
2169
2201
|
|
|
2170
2202
|
type InputGroupProps$7 = Pick<ComponentProps<typeof InputGroup>, 'variant' | 'sizing' | 'focusVariant' | 'state'>;
|
|
2171
2203
|
type TextareaNativeProps = Omit<ComponentProps<typeof InputGroup.TextArea>, 'value' | 'defaultValue' | 'rows' | 'maxRows'>;
|
|
@@ -2510,6 +2542,7 @@ declare const FormGroup: {
|
|
|
2510
2542
|
Help: ({ children, ...rest }: {
|
|
2511
2543
|
content?: string | undefined | undefined;
|
|
2512
2544
|
translate?: "yes" | "no" | undefined | undefined;
|
|
2545
|
+
color?: string | undefined | undefined;
|
|
2513
2546
|
prefix?: string | undefined | undefined;
|
|
2514
2547
|
id?: string | undefined | undefined;
|
|
2515
2548
|
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
@@ -2549,7 +2582,6 @@ declare const FormGroup: {
|
|
|
2549
2582
|
vocab?: string | undefined | undefined;
|
|
2550
2583
|
autoCorrect?: string | undefined | undefined;
|
|
2551
2584
|
autoSave?: string | undefined | undefined;
|
|
2552
|
-
color?: string | undefined | undefined;
|
|
2553
2585
|
itemProp?: string | undefined | undefined;
|
|
2554
2586
|
itemScope?: boolean | undefined | undefined;
|
|
2555
2587
|
itemType?: string | undefined | undefined;
|
|
@@ -2800,6 +2832,7 @@ declare const FormGroup: {
|
|
|
2800
2832
|
content?: string | undefined | undefined;
|
|
2801
2833
|
size?: number | undefined | undefined;
|
|
2802
2834
|
translate?: "yes" | "no" | undefined | undefined;
|
|
2835
|
+
color?: string | undefined | undefined;
|
|
2803
2836
|
prefix?: react.ReactNode;
|
|
2804
2837
|
id?: string | undefined | undefined;
|
|
2805
2838
|
name?: string | undefined | undefined;
|
|
@@ -2843,7 +2876,6 @@ declare const FormGroup: {
|
|
|
2843
2876
|
vocab?: string | undefined | undefined;
|
|
2844
2877
|
autoCorrect?: string | undefined | undefined;
|
|
2845
2878
|
autoSave?: string | undefined | undefined;
|
|
2846
|
-
color?: string | undefined | undefined;
|
|
2847
2879
|
itemProp?: string | undefined | undefined;
|
|
2848
2880
|
itemScope?: boolean | undefined | undefined;
|
|
2849
2881
|
itemType?: string | undefined | undefined;
|
|
@@ -3123,6 +3155,7 @@ declare const FormGroup: {
|
|
|
3123
3155
|
content?: string | undefined | undefined;
|
|
3124
3156
|
size?: number | undefined | undefined;
|
|
3125
3157
|
translate?: "yes" | "no" | undefined | undefined;
|
|
3158
|
+
color?: string | undefined | undefined;
|
|
3126
3159
|
prefix?: react.ReactNode;
|
|
3127
3160
|
id?: string | undefined | undefined;
|
|
3128
3161
|
name?: string | undefined | undefined;
|
|
@@ -3166,7 +3199,6 @@ declare const FormGroup: {
|
|
|
3166
3199
|
vocab?: string | undefined | undefined;
|
|
3167
3200
|
autoCorrect?: string | undefined | undefined;
|
|
3168
3201
|
autoSave?: string | undefined | undefined;
|
|
3169
|
-
color?: string | undefined | undefined;
|
|
3170
3202
|
itemProp?: string | undefined | undefined;
|
|
3171
3203
|
itemScope?: boolean | undefined | undefined;
|
|
3172
3204
|
itemType?: string | undefined | undefined;
|
|
@@ -3442,6 +3474,7 @@ declare const FormGroup: {
|
|
|
3442
3474
|
content?: string | undefined | undefined;
|
|
3443
3475
|
size?: number | undefined | undefined;
|
|
3444
3476
|
translate?: "yes" | "no" | undefined | undefined;
|
|
3477
|
+
color?: string | undefined | undefined;
|
|
3445
3478
|
prefix?: string | undefined | undefined;
|
|
3446
3479
|
id?: string | undefined | undefined;
|
|
3447
3480
|
name?: string | undefined | undefined;
|
|
@@ -3485,7 +3518,6 @@ declare const FormGroup: {
|
|
|
3485
3518
|
vocab?: string | undefined | undefined;
|
|
3486
3519
|
autoCorrect?: string | undefined | undefined;
|
|
3487
3520
|
autoSave?: string | undefined | undefined;
|
|
3488
|
-
color?: string | undefined | undefined;
|
|
3489
3521
|
itemProp?: string | undefined | undefined;
|
|
3490
3522
|
itemScope?: boolean | undefined | undefined;
|
|
3491
3523
|
itemType?: string | undefined | undefined;
|
|
@@ -3761,6 +3793,8 @@ declare const FormGroup: {
|
|
|
3761
3793
|
Textarea: (props: {
|
|
3762
3794
|
content?: string | undefined | undefined;
|
|
3763
3795
|
translate?: "yes" | "no" | undefined | undefined;
|
|
3796
|
+
wrap?: string | undefined | undefined;
|
|
3797
|
+
color?: string | undefined | undefined;
|
|
3764
3798
|
prefix?: string | undefined | undefined;
|
|
3765
3799
|
id?: string | undefined | undefined;
|
|
3766
3800
|
name?: string | undefined | undefined;
|
|
@@ -3805,7 +3839,6 @@ declare const FormGroup: {
|
|
|
3805
3839
|
vocab?: string | undefined | undefined;
|
|
3806
3840
|
autoCorrect?: string | undefined | undefined;
|
|
3807
3841
|
autoSave?: string | undefined | undefined;
|
|
3808
|
-
color?: string | undefined | undefined;
|
|
3809
3842
|
itemProp?: string | undefined | undefined;
|
|
3810
3843
|
itemScope?: boolean | undefined | undefined;
|
|
3811
3844
|
itemType?: string | undefined | undefined;
|
|
@@ -4049,7 +4082,6 @@ declare const FormGroup: {
|
|
|
4049
4082
|
disabled?: boolean | undefined | undefined;
|
|
4050
4083
|
value?: string | null | undefined;
|
|
4051
4084
|
onValueChange?: (((value: string) => void) & ((value: string) => void)) | undefined;
|
|
4052
|
-
wrap?: string | undefined | undefined;
|
|
4053
4085
|
autoComplete?: string | undefined | undefined;
|
|
4054
4086
|
maxLength?: number | undefined | undefined;
|
|
4055
4087
|
minLength?: number | undefined | undefined;
|
|
@@ -4695,8 +4727,8 @@ declare const AppShell: (({ ref, className, children, ...props }: RootProps$4 &
|
|
|
4695
4727
|
ref?: Ref<ComponentRef<"div">>;
|
|
4696
4728
|
}) => react_jsx_runtime.JSX.Element;
|
|
4697
4729
|
/**
|
|
4698
|
-
* Main content outlet. Applies an opinionated default page gutter (`tw
|
|
4699
|
-
* so content looks right out of the box; override the padding (e.g. `tw
|
|
4730
|
+
* Main content outlet. Applies an opinionated default page gutter (`tw:p-6`)
|
|
4731
|
+
* so content looks right out of the box; override the padding (e.g. `tw:p-0`)
|
|
4700
4732
|
* when the app owns its own gutter.
|
|
4701
4733
|
*/
|
|
4702
4734
|
Main: ({ ref, className, asChild, children, ...props }: SlotProps & {
|
|
@@ -4725,7 +4757,7 @@ type FooterProps = ComponentProps<'footer'> & {
|
|
|
4725
4757
|
* frame (sidebar / navbar) is owned by the shell, not by `PageLayout` — so the `Root` adds no
|
|
4726
4758
|
* outer page padding of its own (`PageLayout.Footer` keeps its own action-bar padding).
|
|
4727
4759
|
*
|
|
4728
|
-
* **When to use:** every new kbc-ui page. Do not roll your own `<div className="tw
|
|
4760
|
+
* **When to use:** every new kbc-ui page. Do not roll your own `<div className="tw:flex tw:flex-col">`
|
|
4729
4761
|
* chrome. Host `PageHeader.Index` / `PageHeader.Detail` inside `PageLayout.Header` for the structured
|
|
4730
4762
|
* page-header patterns.
|
|
4731
4763
|
* **When NOT to use:** the left-rail `Sidebar` lives in the app shell outside `PageLayout`. For embedded
|
|
@@ -4898,7 +4930,7 @@ declare const PageToolbar: (({ ref, className, children, ...props }: DivProps) =
|
|
|
4898
4930
|
Token: ({ children, popover, onRemove, removeAriaLabel, ...props }: Omit<Omit<Pick<react.ClassAttributes<HTMLDivElement> & react.HTMLAttributes<HTMLDivElement> & class_variance_authority.VariantProps<(props?: ({
|
|
4899
4931
|
variant?: "default" | "tag" | "pill" | null | undefined;
|
|
4900
4932
|
color?: "blue" | "cyan" | "gray" | "green" | "orange" | "purple" | "red" | "teal" | "white" | "gray-darker" | "gray-inverse" | "green-darker" | "green-inverse" | "blue-inverse" | "orange-inverse" | "amber" | "amber-inverse" | "teal-inverse" | "purple-inverse" | "cyan-inverse" | "sidebar-primary" | null | undefined;
|
|
4901
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string>, "
|
|
4933
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string>, "color" | "variant"> & Omit<react.ClassAttributes<HTMLSpanElement> & react.HTMLAttributes<HTMLSpanElement> & {
|
|
4902
4934
|
asChild?: boolean;
|
|
4903
4935
|
}, "prefix"> & {
|
|
4904
4936
|
prefix?: ReactNode;
|
|
@@ -4906,7 +4938,7 @@ declare const PageToolbar: (({ ref, className, children, ...props }: DivProps) =
|
|
|
4906
4938
|
suffix?: ReactNode;
|
|
4907
4939
|
suffixVariant?: "inline" | "floating" | null | undefined;
|
|
4908
4940
|
labelClassName?: string;
|
|
4909
|
-
}, "ref">, "
|
|
4941
|
+
}, "ref">, "color" | "popover" | "variant" | "children" | "asChild" | "suffix"> & {
|
|
4910
4942
|
children: ReactNode;
|
|
4911
4943
|
popover: ReactNode;
|
|
4912
4944
|
onRemove: () => void;
|
|
@@ -4921,7 +4953,7 @@ declare const PageToolbar: (({ ref, className, children, ...props }: DivProps) =
|
|
|
4921
4953
|
type Props$l = {
|
|
4922
4954
|
/** `wordmark` (default, full logo) or `mark` (square icon); each falls back to the other. */
|
|
4923
4955
|
variant?: 'mark' | 'wordmark';
|
|
4924
|
-
/** Sets the logo height; aspect ratio is preserved (e.g. `tw
|
|
4956
|
+
/** Sets the logo height; aspect ratio is preserved (e.g. `tw:h-7`). */
|
|
4925
4957
|
className?: string;
|
|
4926
4958
|
};
|
|
4927
4959
|
/**
|
|
@@ -4974,6 +5006,7 @@ declare const Sidebar: {
|
|
|
4974
5006
|
Separator: ({ className, ...props }: {
|
|
4975
5007
|
content?: string | undefined | undefined;
|
|
4976
5008
|
translate?: "yes" | "no" | undefined | undefined;
|
|
5009
|
+
color?: string | undefined | undefined;
|
|
4977
5010
|
prefix?: string | undefined | undefined;
|
|
4978
5011
|
id?: string | undefined | undefined;
|
|
4979
5012
|
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
@@ -5014,7 +5047,6 @@ declare const Sidebar: {
|
|
|
5014
5047
|
vocab?: string | undefined | undefined;
|
|
5015
5048
|
autoCorrect?: string | undefined | undefined;
|
|
5016
5049
|
autoSave?: string | undefined | undefined;
|
|
5017
|
-
color?: string | undefined | undefined;
|
|
5018
5050
|
itemProp?: string | undefined | undefined;
|
|
5019
5051
|
itemScope?: boolean | undefined | undefined;
|
|
5020
5052
|
itemType?: string | undefined | undefined;
|
|
@@ -5281,6 +5313,7 @@ declare const Sidebar: {
|
|
|
5281
5313
|
content?: string | undefined | undefined;
|
|
5282
5314
|
size?: number | undefined | undefined;
|
|
5283
5315
|
translate?: "yes" | "no" | undefined | undefined;
|
|
5316
|
+
color?: string | undefined | undefined;
|
|
5284
5317
|
id?: string | undefined | undefined;
|
|
5285
5318
|
name?: string | undefined | undefined;
|
|
5286
5319
|
popover?: "" | "auto" | "manual" | "hint" | undefined | undefined;
|
|
@@ -5322,7 +5355,6 @@ declare const Sidebar: {
|
|
|
5322
5355
|
vocab?: string | undefined | undefined;
|
|
5323
5356
|
autoCorrect?: string | undefined | undefined;
|
|
5324
5357
|
autoSave?: string | undefined | undefined;
|
|
5325
|
-
color?: string | undefined | undefined;
|
|
5326
5358
|
itemProp?: string | undefined | undefined;
|
|
5327
5359
|
itemScope?: boolean | undefined | undefined;
|
|
5328
5360
|
itemType?: string | undefined | undefined;
|
|
@@ -5928,8 +5960,8 @@ type Props$9 = {
|
|
|
5928
5960
|
tooltip?: ReactNode;
|
|
5929
5961
|
twoLines?: boolean;
|
|
5930
5962
|
noTooltip?: boolean;
|
|
5931
|
-
tooltipVariant?: Props$
|
|
5932
|
-
tooltipPlacement?: Props$
|
|
5963
|
+
tooltipVariant?: Props$1L['variant'];
|
|
5964
|
+
tooltipPlacement?: Props$1L['placement'];
|
|
5933
5965
|
} & Omit<ComponentProps<'span'>, 'children'>;
|
|
5934
5966
|
declare const Truncated: ({ ref, text, tooltip, className, twoLines, noTooltip, tooltipVariant, tooltipPlacement, ...rest }: Props$9) => react_jsx_runtime.JSX.Element;
|
|
5935
5967
|
|
|
@@ -6252,6 +6284,7 @@ declare const useAppForm: <TFormData, TOnMount extends _tanstack_react_form.Form
|
|
|
6252
6284
|
content?: string | undefined | undefined;
|
|
6253
6285
|
size?: number | undefined | undefined;
|
|
6254
6286
|
translate?: "yes" | "no" | undefined | undefined;
|
|
6287
|
+
color?: string | undefined | undefined;
|
|
6255
6288
|
prefix?: react.ReactNode;
|
|
6256
6289
|
id?: string | undefined | undefined;
|
|
6257
6290
|
name?: string | undefined | undefined;
|
|
@@ -6295,7 +6328,6 @@ declare const useAppForm: <TFormData, TOnMount extends _tanstack_react_form.Form
|
|
|
6295
6328
|
vocab?: string | undefined | undefined;
|
|
6296
6329
|
autoCorrect?: string | undefined | undefined;
|
|
6297
6330
|
autoSave?: string | undefined | undefined;
|
|
6298
|
-
color?: string | undefined | undefined;
|
|
6299
6331
|
itemProp?: string | undefined | undefined;
|
|
6300
6332
|
itemScope?: boolean | undefined | undefined;
|
|
6301
6333
|
itemType?: string | undefined | undefined;
|
|
@@ -6575,6 +6607,7 @@ declare const useAppForm: <TFormData, TOnMount extends _tanstack_react_form.Form
|
|
|
6575
6607
|
content?: string | undefined | undefined;
|
|
6576
6608
|
size?: number | undefined | undefined;
|
|
6577
6609
|
translate?: "yes" | "no" | undefined | undefined;
|
|
6610
|
+
color?: string | undefined | undefined;
|
|
6578
6611
|
prefix?: react.ReactNode;
|
|
6579
6612
|
id?: string | undefined | undefined;
|
|
6580
6613
|
name?: string | undefined | undefined;
|
|
@@ -6618,7 +6651,6 @@ declare const useAppForm: <TFormData, TOnMount extends _tanstack_react_form.Form
|
|
|
6618
6651
|
vocab?: string | undefined | undefined;
|
|
6619
6652
|
autoCorrect?: string | undefined | undefined;
|
|
6620
6653
|
autoSave?: string | undefined | undefined;
|
|
6621
|
-
color?: string | undefined | undefined;
|
|
6622
6654
|
itemProp?: string | undefined | undefined;
|
|
6623
6655
|
itemScope?: boolean | undefined | undefined;
|
|
6624
6656
|
itemType?: string | undefined | undefined;
|
|
@@ -6899,6 +6931,7 @@ declare const useAppForm: <TFormData, TOnMount extends _tanstack_react_form.Form
|
|
|
6899
6931
|
content?: string | undefined | undefined;
|
|
6900
6932
|
size?: number | undefined | undefined;
|
|
6901
6933
|
translate?: "yes" | "no" | undefined | undefined;
|
|
6934
|
+
color?: string | undefined | undefined;
|
|
6902
6935
|
prefix?: string | undefined | undefined;
|
|
6903
6936
|
id?: string | undefined | undefined;
|
|
6904
6937
|
name?: string | undefined | undefined;
|
|
@@ -6940,7 +6973,6 @@ declare const useAppForm: <TFormData, TOnMount extends _tanstack_react_form.Form
|
|
|
6940
6973
|
vocab?: string | undefined | undefined;
|
|
6941
6974
|
autoCorrect?: string | undefined | undefined;
|
|
6942
6975
|
autoSave?: string | undefined | undefined;
|
|
6943
|
-
color?: string | undefined | undefined;
|
|
6944
6976
|
itemProp?: string | undefined | undefined;
|
|
6945
6977
|
itemScope?: boolean | undefined | undefined;
|
|
6946
6978
|
itemType?: string | undefined | undefined;
|
|
@@ -7218,6 +7250,8 @@ declare const useAppForm: <TFormData, TOnMount extends _tanstack_react_form.Form
|
|
|
7218
7250
|
readonly TextareaField: ({ label, action, required, requiredMark, help, tooltip, className, "aria-describedby": ariaDescribedBy, ...inputProps }: FieldItemProps & Omit<{
|
|
7219
7251
|
content?: string | undefined | undefined;
|
|
7220
7252
|
translate?: "yes" | "no" | undefined | undefined;
|
|
7253
|
+
wrap?: string | undefined | undefined;
|
|
7254
|
+
color?: string | undefined | undefined;
|
|
7221
7255
|
prefix?: string | undefined | undefined;
|
|
7222
7256
|
id?: string | undefined | undefined;
|
|
7223
7257
|
name?: string | undefined | undefined;
|
|
@@ -7262,7 +7296,6 @@ declare const useAppForm: <TFormData, TOnMount extends _tanstack_react_form.Form
|
|
|
7262
7296
|
vocab?: string | undefined | undefined;
|
|
7263
7297
|
autoCorrect?: string | undefined | undefined;
|
|
7264
7298
|
autoSave?: string | undefined | undefined;
|
|
7265
|
-
color?: string | undefined | undefined;
|
|
7266
7299
|
itemProp?: string | undefined | undefined;
|
|
7267
7300
|
itemScope?: boolean | undefined | undefined;
|
|
7268
7301
|
itemType?: string | undefined | undefined;
|
|
@@ -7506,7 +7539,6 @@ declare const useAppForm: <TFormData, TOnMount extends _tanstack_react_form.Form
|
|
|
7506
7539
|
disabled?: boolean | undefined | undefined;
|
|
7507
7540
|
value?: string | null | undefined;
|
|
7508
7541
|
onValueChange?: (((value: string) => void) & ((value: string) => void)) | undefined;
|
|
7509
|
-
wrap?: string | undefined | undefined;
|
|
7510
7542
|
autoComplete?: string | undefined | undefined;
|
|
7511
7543
|
maxLength?: number | undefined | undefined;
|
|
7512
7544
|
minLength?: number | undefined | undefined;
|
|
@@ -7525,42 +7557,29 @@ declare const useAppForm: <TFormData, TOnMount extends _tanstack_react_form.Form
|
|
|
7525
7557
|
focusVariant?: "off" | "on" | "default" | null | undefined;
|
|
7526
7558
|
containerClassName?: string | undefined;
|
|
7527
7559
|
}, "id" | "name" | "onBlur" | "value" | "onValueChange">) => react_jsx_runtime.JSX.Element;
|
|
7528
|
-
readonly SelectField: ({ label, action, required, requiredMark, help, tooltip, className, "aria-describedby": ariaDescribedBy,
|
|
7529
|
-
|
|
7530
|
-
triggerClassName?: string;
|
|
7531
|
-
variant?: "primary" | "secondary" | "inline" | null | undefined;
|
|
7532
|
-
state?: "warning" | "default" | "error" | null | undefined;
|
|
7560
|
+
readonly SelectField: ({ label, action, required, requiredMark, help, tooltip, className, "aria-describedby": ariaDescribedBy, triggerClassName, ...selectProps }: FieldItemProps & Omit<Pick<SelectRootProps, "name" | "form" | "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?: ({
|
|
7561
|
+
variant?: "primary" | "secondary" | "argo" | null | undefined;
|
|
7533
7562
|
sizing?: "medium" | "small" | "default" | null | undefined;
|
|
7534
|
-
|
|
7535
|
-
|
|
7536
|
-
|
|
7537
|
-
|
|
7538
|
-
|
|
7539
|
-
|
|
7540
|
-
|
|
7541
|
-
|
|
7542
|
-
|
|
7543
|
-
|
|
7544
|
-
|
|
7545
|
-
|
|
7546
|
-
|
|
7547
|
-
value: string;
|
|
7548
|
-
label: react.ReactNode;
|
|
7549
|
-
disabled?: boolean;
|
|
7550
|
-
}[];
|
|
7551
|
-
options: readonly {
|
|
7552
|
-
value: string;
|
|
7553
|
-
label: react.ReactNode;
|
|
7554
|
-
disabled?: boolean;
|
|
7555
|
-
}[];
|
|
7556
|
-
})) => react_jsx_runtime.JSX.Element;
|
|
7563
|
+
state?: "warning" | "default" | "error" | null | undefined;
|
|
7564
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string>, "variant"> & {
|
|
7565
|
+
variant?: Exclude<class_variance_authority.VariantProps<(props?: ({
|
|
7566
|
+
variant?: "primary" | "secondary" | "argo" | null | undefined;
|
|
7567
|
+
sizing?: "medium" | "small" | "default" | null | undefined;
|
|
7568
|
+
state?: "warning" | "default" | "error" | null | undefined;
|
|
7569
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string>["variant"], "argo"> | "inline";
|
|
7570
|
+
} & Pick<_radix_ui_react_select.SelectValueProps & react.RefAttributes<HTMLSpanElement>, "placeholder">, "id" | "variant" | "className" | "aria-describedby" | "aria-invalid" | "aria-required" | "onBlur" | "state" | "placeholder" | "sizing"> & {
|
|
7571
|
+
items?: readonly (SelectItem | SelectItemGroup)[];
|
|
7572
|
+
}, "id" | "name" | "defaultValue" | "className" | "aria-describedby" | "aria-invalid" | "aria-required" | "onBlur" | "value" | "onValueChange" | "items"> & {
|
|
7573
|
+
items: readonly (SelectItem | SelectItemGroup)[];
|
|
7574
|
+
triggerClassName?: string;
|
|
7575
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
7557
7576
|
readonly CheckboxField: ({ className, children, ...checkboxProps }: Pick<FieldItemProps, "className"> & Omit<Omit<{
|
|
7558
7577
|
id?: string | number;
|
|
7559
7578
|
description?: react.ReactNode;
|
|
7560
7579
|
variant?: class_variance_authority.VariantProps<typeof fieldBoxVariants>["variant"];
|
|
7561
7580
|
position?: "start" | "end";
|
|
7562
|
-
tooltip?: Props$
|
|
7563
|
-
tooltipPlacement?: Props$
|
|
7581
|
+
tooltip?: Props$1L["tooltip"];
|
|
7582
|
+
tooltipPlacement?: Props$1L["placement"];
|
|
7564
7583
|
} & Omit<_radix_ui_react_checkbox.CheckboxProps & react.RefAttributes<HTMLButtonElement>, "id">, "checked" | "onCheckedChange"> & {
|
|
7565
7584
|
checked?: _radix_ui_react_checkbox.CheckedState;
|
|
7566
7585
|
onCheckedChange?: (checked: _radix_ui_react_checkbox.CheckedState) => void;
|
|
@@ -7597,6 +7616,7 @@ declare const withForm: <TFormData, TOnMount extends _tanstack_react_form.FormVa
|
|
|
7597
7616
|
content?: string | undefined | undefined;
|
|
7598
7617
|
size?: number | undefined | undefined;
|
|
7599
7618
|
translate?: "yes" | "no" | undefined | undefined;
|
|
7619
|
+
color?: string | undefined | undefined;
|
|
7600
7620
|
prefix?: react.ReactNode;
|
|
7601
7621
|
id?: string | undefined | undefined;
|
|
7602
7622
|
name?: string | undefined | undefined;
|
|
@@ -7640,7 +7660,6 @@ declare const withForm: <TFormData, TOnMount extends _tanstack_react_form.FormVa
|
|
|
7640
7660
|
vocab?: string | undefined | undefined;
|
|
7641
7661
|
autoCorrect?: string | undefined | undefined;
|
|
7642
7662
|
autoSave?: string | undefined | undefined;
|
|
7643
|
-
color?: string | undefined | undefined;
|
|
7644
7663
|
itemProp?: string | undefined | undefined;
|
|
7645
7664
|
itemScope?: boolean | undefined | undefined;
|
|
7646
7665
|
itemType?: string | undefined | undefined;
|
|
@@ -7920,6 +7939,7 @@ declare const withForm: <TFormData, TOnMount extends _tanstack_react_form.FormVa
|
|
|
7920
7939
|
content?: string | undefined | undefined;
|
|
7921
7940
|
size?: number | undefined | undefined;
|
|
7922
7941
|
translate?: "yes" | "no" | undefined | undefined;
|
|
7942
|
+
color?: string | undefined | undefined;
|
|
7923
7943
|
prefix?: react.ReactNode;
|
|
7924
7944
|
id?: string | undefined | undefined;
|
|
7925
7945
|
name?: string | undefined | undefined;
|
|
@@ -7963,7 +7983,6 @@ declare const withForm: <TFormData, TOnMount extends _tanstack_react_form.FormVa
|
|
|
7963
7983
|
vocab?: string | undefined | undefined;
|
|
7964
7984
|
autoCorrect?: string | undefined | undefined;
|
|
7965
7985
|
autoSave?: string | undefined | undefined;
|
|
7966
|
-
color?: string | undefined | undefined;
|
|
7967
7986
|
itemProp?: string | undefined | undefined;
|
|
7968
7987
|
itemScope?: boolean | undefined | undefined;
|
|
7969
7988
|
itemType?: string | undefined | undefined;
|
|
@@ -8244,6 +8263,7 @@ declare const withForm: <TFormData, TOnMount extends _tanstack_react_form.FormVa
|
|
|
8244
8263
|
content?: string | undefined | undefined;
|
|
8245
8264
|
size?: number | undefined | undefined;
|
|
8246
8265
|
translate?: "yes" | "no" | undefined | undefined;
|
|
8266
|
+
color?: string | undefined | undefined;
|
|
8247
8267
|
prefix?: string | undefined | undefined;
|
|
8248
8268
|
id?: string | undefined | undefined;
|
|
8249
8269
|
name?: string | undefined | undefined;
|
|
@@ -8285,7 +8305,6 @@ declare const withForm: <TFormData, TOnMount extends _tanstack_react_form.FormVa
|
|
|
8285
8305
|
vocab?: string | undefined | undefined;
|
|
8286
8306
|
autoCorrect?: string | undefined | undefined;
|
|
8287
8307
|
autoSave?: string | undefined | undefined;
|
|
8288
|
-
color?: string | undefined | undefined;
|
|
8289
8308
|
itemProp?: string | undefined | undefined;
|
|
8290
8309
|
itemScope?: boolean | undefined | undefined;
|
|
8291
8310
|
itemType?: string | undefined | undefined;
|
|
@@ -8563,6 +8582,8 @@ declare const withForm: <TFormData, TOnMount extends _tanstack_react_form.FormVa
|
|
|
8563
8582
|
readonly TextareaField: ({ label, action, required, requiredMark, help, tooltip, className, "aria-describedby": ariaDescribedBy, ...inputProps }: FieldItemProps & Omit<{
|
|
8564
8583
|
content?: string | undefined | undefined;
|
|
8565
8584
|
translate?: "yes" | "no" | undefined | undefined;
|
|
8585
|
+
wrap?: string | undefined | undefined;
|
|
8586
|
+
color?: string | undefined | undefined;
|
|
8566
8587
|
prefix?: string | undefined | undefined;
|
|
8567
8588
|
id?: string | undefined | undefined;
|
|
8568
8589
|
name?: string | undefined | undefined;
|
|
@@ -8607,7 +8628,6 @@ declare const withForm: <TFormData, TOnMount extends _tanstack_react_form.FormVa
|
|
|
8607
8628
|
vocab?: string | undefined | undefined;
|
|
8608
8629
|
autoCorrect?: string | undefined | undefined;
|
|
8609
8630
|
autoSave?: string | undefined | undefined;
|
|
8610
|
-
color?: string | undefined | undefined;
|
|
8611
8631
|
itemProp?: string | undefined | undefined;
|
|
8612
8632
|
itemScope?: boolean | undefined | undefined;
|
|
8613
8633
|
itemType?: string | undefined | undefined;
|
|
@@ -8851,7 +8871,6 @@ declare const withForm: <TFormData, TOnMount extends _tanstack_react_form.FormVa
|
|
|
8851
8871
|
disabled?: boolean | undefined | undefined;
|
|
8852
8872
|
value?: string | null | undefined;
|
|
8853
8873
|
onValueChange?: (((value: string) => void) & ((value: string) => void)) | undefined;
|
|
8854
|
-
wrap?: string | undefined | undefined;
|
|
8855
8874
|
autoComplete?: string | undefined | undefined;
|
|
8856
8875
|
maxLength?: number | undefined | undefined;
|
|
8857
8876
|
minLength?: number | undefined | undefined;
|
|
@@ -8870,42 +8889,29 @@ declare const withForm: <TFormData, TOnMount extends _tanstack_react_form.FormVa
|
|
|
8870
8889
|
focusVariant?: "off" | "on" | "default" | null | undefined;
|
|
8871
8890
|
containerClassName?: string | undefined;
|
|
8872
8891
|
}, "id" | "name" | "onBlur" | "value" | "onValueChange">) => react_jsx_runtime.JSX.Element;
|
|
8873
|
-
readonly SelectField: ({ label, action, required, requiredMark, help, tooltip, className, "aria-describedby": ariaDescribedBy,
|
|
8874
|
-
|
|
8875
|
-
triggerClassName?: string;
|
|
8876
|
-
variant?: "primary" | "secondary" | "inline" | null | undefined;
|
|
8877
|
-
state?: "warning" | "default" | "error" | null | undefined;
|
|
8892
|
+
readonly SelectField: ({ label, action, required, requiredMark, help, tooltip, className, "aria-describedby": ariaDescribedBy, triggerClassName, ...selectProps }: FieldItemProps & Omit<Pick<SelectRootProps, "name" | "form" | "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?: ({
|
|
8893
|
+
variant?: "primary" | "secondary" | "argo" | null | undefined;
|
|
8878
8894
|
sizing?: "medium" | "small" | "default" | null | undefined;
|
|
8879
|
-
|
|
8880
|
-
|
|
8881
|
-
|
|
8882
|
-
|
|
8883
|
-
|
|
8884
|
-
|
|
8885
|
-
|
|
8886
|
-
|
|
8887
|
-
|
|
8888
|
-
|
|
8889
|
-
|
|
8890
|
-
|
|
8891
|
-
|
|
8892
|
-
value: string;
|
|
8893
|
-
label: react.ReactNode;
|
|
8894
|
-
disabled?: boolean;
|
|
8895
|
-
}[];
|
|
8896
|
-
options: readonly {
|
|
8897
|
-
value: string;
|
|
8898
|
-
label: react.ReactNode;
|
|
8899
|
-
disabled?: boolean;
|
|
8900
|
-
}[];
|
|
8901
|
-
})) => react_jsx_runtime.JSX.Element;
|
|
8895
|
+
state?: "warning" | "default" | "error" | null | undefined;
|
|
8896
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string>, "variant"> & {
|
|
8897
|
+
variant?: Exclude<class_variance_authority.VariantProps<(props?: ({
|
|
8898
|
+
variant?: "primary" | "secondary" | "argo" | null | undefined;
|
|
8899
|
+
sizing?: "medium" | "small" | "default" | null | undefined;
|
|
8900
|
+
state?: "warning" | "default" | "error" | null | undefined;
|
|
8901
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string>["variant"], "argo"> | "inline";
|
|
8902
|
+
} & Pick<_radix_ui_react_select.SelectValueProps & react.RefAttributes<HTMLSpanElement>, "placeholder">, "id" | "variant" | "className" | "aria-describedby" | "aria-invalid" | "aria-required" | "onBlur" | "state" | "placeholder" | "sizing"> & {
|
|
8903
|
+
items?: readonly (SelectItem | SelectItemGroup)[];
|
|
8904
|
+
}, "id" | "name" | "defaultValue" | "className" | "aria-describedby" | "aria-invalid" | "aria-required" | "onBlur" | "value" | "onValueChange" | "items"> & {
|
|
8905
|
+
items: readonly (SelectItem | SelectItemGroup)[];
|
|
8906
|
+
triggerClassName?: string;
|
|
8907
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
8902
8908
|
readonly CheckboxField: ({ className, children, ...checkboxProps }: Pick<FieldItemProps, "className"> & Omit<Omit<{
|
|
8903
8909
|
id?: string | number;
|
|
8904
8910
|
description?: react.ReactNode;
|
|
8905
8911
|
variant?: class_variance_authority.VariantProps<typeof fieldBoxVariants>["variant"];
|
|
8906
8912
|
position?: "start" | "end";
|
|
8907
|
-
tooltip?: Props$
|
|
8908
|
-
tooltipPlacement?: Props$
|
|
8913
|
+
tooltip?: Props$1L["tooltip"];
|
|
8914
|
+
tooltipPlacement?: Props$1L["placement"];
|
|
8909
8915
|
} & Omit<_radix_ui_react_checkbox.CheckboxProps & react.RefAttributes<HTMLButtonElement>, "id">, "checked" | "onCheckedChange"> & {
|
|
8910
8916
|
checked?: _radix_ui_react_checkbox.CheckedState;
|
|
8911
8917
|
onCheckedChange?: (checked: _radix_ui_react_checkbox.CheckedState) => void;
|
|
@@ -8942,6 +8948,7 @@ declare const withForm: <TFormData, TOnMount extends _tanstack_react_form.FormVa
|
|
|
8942
8948
|
content?: string | undefined | undefined;
|
|
8943
8949
|
size?: number | undefined | undefined;
|
|
8944
8950
|
translate?: "yes" | "no" | undefined | undefined;
|
|
8951
|
+
color?: string | undefined | undefined;
|
|
8945
8952
|
prefix?: react.ReactNode;
|
|
8946
8953
|
id?: string | undefined | undefined;
|
|
8947
8954
|
name?: string | undefined | undefined;
|
|
@@ -8985,7 +8992,6 @@ declare const withForm: <TFormData, TOnMount extends _tanstack_react_form.FormVa
|
|
|
8985
8992
|
vocab?: string | undefined | undefined;
|
|
8986
8993
|
autoCorrect?: string | undefined | undefined;
|
|
8987
8994
|
autoSave?: string | undefined | undefined;
|
|
8988
|
-
color?: string | undefined | undefined;
|
|
8989
8995
|
itemProp?: string | undefined | undefined;
|
|
8990
8996
|
itemScope?: boolean | undefined | undefined;
|
|
8991
8997
|
itemType?: string | undefined | undefined;
|
|
@@ -9265,6 +9271,7 @@ declare const withForm: <TFormData, TOnMount extends _tanstack_react_form.FormVa
|
|
|
9265
9271
|
content?: string | undefined | undefined;
|
|
9266
9272
|
size?: number | undefined | undefined;
|
|
9267
9273
|
translate?: "yes" | "no" | undefined | undefined;
|
|
9274
|
+
color?: string | undefined | undefined;
|
|
9268
9275
|
prefix?: react.ReactNode;
|
|
9269
9276
|
id?: string | undefined | undefined;
|
|
9270
9277
|
name?: string | undefined | undefined;
|
|
@@ -9308,7 +9315,6 @@ declare const withForm: <TFormData, TOnMount extends _tanstack_react_form.FormVa
|
|
|
9308
9315
|
vocab?: string | undefined | undefined;
|
|
9309
9316
|
autoCorrect?: string | undefined | undefined;
|
|
9310
9317
|
autoSave?: string | undefined | undefined;
|
|
9311
|
-
color?: string | undefined | undefined;
|
|
9312
9318
|
itemProp?: string | undefined | undefined;
|
|
9313
9319
|
itemScope?: boolean | undefined | undefined;
|
|
9314
9320
|
itemType?: string | undefined | undefined;
|
|
@@ -9589,6 +9595,7 @@ declare const withForm: <TFormData, TOnMount extends _tanstack_react_form.FormVa
|
|
|
9589
9595
|
content?: string | undefined | undefined;
|
|
9590
9596
|
size?: number | undefined | undefined;
|
|
9591
9597
|
translate?: "yes" | "no" | undefined | undefined;
|
|
9598
|
+
color?: string | undefined | undefined;
|
|
9592
9599
|
prefix?: string | undefined | undefined;
|
|
9593
9600
|
id?: string | undefined | undefined;
|
|
9594
9601
|
name?: string | undefined | undefined;
|
|
@@ -9630,7 +9637,6 @@ declare const withForm: <TFormData, TOnMount extends _tanstack_react_form.FormVa
|
|
|
9630
9637
|
vocab?: string | undefined | undefined;
|
|
9631
9638
|
autoCorrect?: string | undefined | undefined;
|
|
9632
9639
|
autoSave?: string | undefined | undefined;
|
|
9633
|
-
color?: string | undefined | undefined;
|
|
9634
9640
|
itemProp?: string | undefined | undefined;
|
|
9635
9641
|
itemScope?: boolean | undefined | undefined;
|
|
9636
9642
|
itemType?: string | undefined | undefined;
|
|
@@ -9908,6 +9914,8 @@ declare const withForm: <TFormData, TOnMount extends _tanstack_react_form.FormVa
|
|
|
9908
9914
|
readonly TextareaField: ({ label, action, required, requiredMark, help, tooltip, className, "aria-describedby": ariaDescribedBy, ...inputProps }: FieldItemProps & Omit<{
|
|
9909
9915
|
content?: string | undefined | undefined;
|
|
9910
9916
|
translate?: "yes" | "no" | undefined | undefined;
|
|
9917
|
+
wrap?: string | undefined | undefined;
|
|
9918
|
+
color?: string | undefined | undefined;
|
|
9911
9919
|
prefix?: string | undefined | undefined;
|
|
9912
9920
|
id?: string | undefined | undefined;
|
|
9913
9921
|
name?: string | undefined | undefined;
|
|
@@ -9952,7 +9960,6 @@ declare const withForm: <TFormData, TOnMount extends _tanstack_react_form.FormVa
|
|
|
9952
9960
|
vocab?: string | undefined | undefined;
|
|
9953
9961
|
autoCorrect?: string | undefined | undefined;
|
|
9954
9962
|
autoSave?: string | undefined | undefined;
|
|
9955
|
-
color?: string | undefined | undefined;
|
|
9956
9963
|
itemProp?: string | undefined | undefined;
|
|
9957
9964
|
itemScope?: boolean | undefined | undefined;
|
|
9958
9965
|
itemType?: string | undefined | undefined;
|
|
@@ -10196,7 +10203,6 @@ declare const withForm: <TFormData, TOnMount extends _tanstack_react_form.FormVa
|
|
|
10196
10203
|
disabled?: boolean | undefined | undefined;
|
|
10197
10204
|
value?: string | null | undefined;
|
|
10198
10205
|
onValueChange?: (((value: string) => void) & ((value: string) => void)) | undefined;
|
|
10199
|
-
wrap?: string | undefined | undefined;
|
|
10200
10206
|
autoComplete?: string | undefined | undefined;
|
|
10201
10207
|
maxLength?: number | undefined | undefined;
|
|
10202
10208
|
minLength?: number | undefined | undefined;
|
|
@@ -10215,42 +10221,29 @@ declare const withForm: <TFormData, TOnMount extends _tanstack_react_form.FormVa
|
|
|
10215
10221
|
focusVariant?: "off" | "on" | "default" | null | undefined;
|
|
10216
10222
|
containerClassName?: string | undefined;
|
|
10217
10223
|
}, "id" | "name" | "onBlur" | "value" | "onValueChange">) => react_jsx_runtime.JSX.Element;
|
|
10218
|
-
readonly SelectField: ({ label, action, required, requiredMark, help, tooltip, className, "aria-describedby": ariaDescribedBy,
|
|
10219
|
-
|
|
10220
|
-
triggerClassName?: string;
|
|
10221
|
-
variant?: "primary" | "secondary" | "inline" | null | undefined;
|
|
10222
|
-
state?: "warning" | "default" | "error" | null | undefined;
|
|
10224
|
+
readonly SelectField: ({ label, action, required, requiredMark, help, tooltip, className, "aria-describedby": ariaDescribedBy, triggerClassName, ...selectProps }: FieldItemProps & Omit<Pick<SelectRootProps, "name" | "form" | "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?: ({
|
|
10225
|
+
variant?: "primary" | "secondary" | "argo" | null | undefined;
|
|
10223
10226
|
sizing?: "medium" | "small" | "default" | null | undefined;
|
|
10224
|
-
|
|
10225
|
-
|
|
10226
|
-
|
|
10227
|
-
|
|
10228
|
-
|
|
10229
|
-
|
|
10230
|
-
|
|
10231
|
-
|
|
10232
|
-
|
|
10233
|
-
|
|
10234
|
-
|
|
10235
|
-
|
|
10236
|
-
|
|
10237
|
-
value: string;
|
|
10238
|
-
label: react.ReactNode;
|
|
10239
|
-
disabled?: boolean;
|
|
10240
|
-
}[];
|
|
10241
|
-
options: readonly {
|
|
10242
|
-
value: string;
|
|
10243
|
-
label: react.ReactNode;
|
|
10244
|
-
disabled?: boolean;
|
|
10245
|
-
}[];
|
|
10246
|
-
})) => react_jsx_runtime.JSX.Element;
|
|
10227
|
+
state?: "warning" | "default" | "error" | null | undefined;
|
|
10228
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string>, "variant"> & {
|
|
10229
|
+
variant?: Exclude<class_variance_authority.VariantProps<(props?: ({
|
|
10230
|
+
variant?: "primary" | "secondary" | "argo" | null | undefined;
|
|
10231
|
+
sizing?: "medium" | "small" | "default" | null | undefined;
|
|
10232
|
+
state?: "warning" | "default" | "error" | null | undefined;
|
|
10233
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string>["variant"], "argo"> | "inline";
|
|
10234
|
+
} & Pick<_radix_ui_react_select.SelectValueProps & react.RefAttributes<HTMLSpanElement>, "placeholder">, "id" | "variant" | "className" | "aria-describedby" | "aria-invalid" | "aria-required" | "onBlur" | "state" | "placeholder" | "sizing"> & {
|
|
10235
|
+
items?: readonly (SelectItem | SelectItemGroup)[];
|
|
10236
|
+
}, "id" | "name" | "defaultValue" | "className" | "aria-describedby" | "aria-invalid" | "aria-required" | "onBlur" | "value" | "onValueChange" | "items"> & {
|
|
10237
|
+
items: readonly (SelectItem | SelectItemGroup)[];
|
|
10238
|
+
triggerClassName?: string;
|
|
10239
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
10247
10240
|
readonly CheckboxField: ({ className, children, ...checkboxProps }: Pick<FieldItemProps, "className"> & Omit<Omit<{
|
|
10248
10241
|
id?: string | number;
|
|
10249
10242
|
description?: react.ReactNode;
|
|
10250
10243
|
variant?: class_variance_authority.VariantProps<typeof fieldBoxVariants>["variant"];
|
|
10251
10244
|
position?: "start" | "end";
|
|
10252
|
-
tooltip?: Props$
|
|
10253
|
-
tooltipPlacement?: Props$
|
|
10245
|
+
tooltip?: Props$1L["tooltip"];
|
|
10246
|
+
tooltipPlacement?: Props$1L["placement"];
|
|
10254
10247
|
} & Omit<_radix_ui_react_checkbox.CheckboxProps & react.RefAttributes<HTMLButtonElement>, "id">, "checked" | "onCheckedChange"> & {
|
|
10255
10248
|
checked?: _radix_ui_react_checkbox.CheckedState;
|
|
10256
10249
|
onCheckedChange?: (checked: _radix_ui_react_checkbox.CheckedState) => void;
|
|
@@ -10356,8 +10349,29 @@ type Props = {
|
|
|
10356
10349
|
* element itself is allowed). `MermaidDiagram` sets this for node/icon labels.
|
|
10357
10350
|
*/
|
|
10358
10351
|
allowForeignObject?: boolean;
|
|
10352
|
+
/**
|
|
10353
|
+
* Extra toolbar controls, rendered between the copy and fullscreen buttons.
|
|
10354
|
+
*
|
|
10355
|
+
* Injected rather than built in, so export behaviour — filenames,
|
|
10356
|
+
* rasterization, error reporting — stays with the consumer and this component
|
|
10357
|
+
* keeps shipping in the lazy `@keboola/design/mermaid` chunk with no download
|
|
10358
|
+
* dependencies of its own. Pass `ExportMenu` here. Receives the sanitized
|
|
10359
|
+
* SVG so an exporter writes exactly what is on screen.
|
|
10360
|
+
*/
|
|
10361
|
+
renderActions?: (safeSvg: string) => ReactNode;
|
|
10359
10362
|
};
|
|
10360
|
-
declare const ZoomableSvg: ({ html, copyText, className, allowForeignObject }: Props) => react_jsx_runtime.JSX.Element;
|
|
10363
|
+
declare const ZoomableSvg: ({ html, copyText, className, allowForeignObject, renderActions, }: Props) => react_jsx_runtime.JSX.Element;
|
|
10364
|
+
|
|
10365
|
+
declare const toSvgFileContent: (svg: string) => string;
|
|
10366
|
+
/**
|
|
10367
|
+
* Rasterize SVG markup to a PNG blob at 2x for legible text.
|
|
10368
|
+
*
|
|
10369
|
+
* The SVG is loaded as a data URL rather than a blob URL: an <img> loading SVG
|
|
10370
|
+
* is treated as a foreign resource, so a blob URL would taint the canvas and
|
|
10371
|
+
* make toBlob throw a SecurityError. A background is painted first because a
|
|
10372
|
+
* transparent PNG reads as unusable when pasted into a slide deck.
|
|
10373
|
+
*/
|
|
10374
|
+
declare const svgToPngBlob: (svg: string, background?: string) => Promise<Blob>;
|
|
10361
10375
|
|
|
10362
10376
|
type ColorSlot = keyof Omit<NonNullable<Brand['theme']['colors']>, 'sidebar' | 'chart'>;
|
|
10363
10377
|
type SidebarSlot = keyof NonNullable<NonNullable<Brand['theme']['colors']>['sidebar']>;
|
|
@@ -10396,4 +10410,4 @@ declare const contrastRatio: (fg: string, bg: string) => number;
|
|
|
10396
10410
|
/** WCAG level for normal-size text at a given ratio. */
|
|
10397
10411
|
declare const wcagLevel: (ratio: number) => "AAA" | "AA" | "fail";
|
|
10398
10412
|
|
|
10399
|
-
export { Alert, AlertModal, AnswerSummary, type AnswerItem as AnswerSummaryItem, type Props$N as AnswerSummaryProps, type Variant$5 as AnswerSummaryVariant, AppShell, ArgoDesignContext, AutoSaveTextarea, Avatar, Badge, BrandEditor, type BrandEditorProps, type BrandId, BrandLogo, Breadcrumb, Button, ButtonGroup, ButtonInline, Calendar, type CalendarProps, Card, ChangeClassification, ChartPanel, type RootProps as ChartPanelProps, Checkbox, Clipboard, ClipboardButton, ClipboardInline, Collapse, Collapsible, CollapsiblePanel, CollapsibleStepHeader, ColorInput, ColorModeSwitch, type ColorScheme, type ColorSlot, Combobox, Command, CommandGroup, CommandInput, CommandItem, CommandList, ConflictStatusIndicator, CopyField, DEFAULT_COLOR_SCHEME, DEFAULT_FALLBACK_FONT, DEFAULT_FONT_OPTIONS, DEFAULT_BRAND_ID as DEFAULT_KEBOOLA_BRAND_ID, DashboardHero, type RootProps$2 as DashboardHeroProps, DateInput, DatePicker, type DateRange, DateRangeInput, DateRangePicker, type DateRangePreset, type DiffInformation, type DiffRow, DiffType, DiffView, DotsLoader, DropdownMenu, EmptyConfigurationActionCard, EmptySearchContent, EmptyState, type RootProps$6 as EmptyStateProps, type Variant$1 as EmptyStateVariant, ErrorState, type RootProps$5 as ErrorStateProps, type Variant as ErrorStateVariant, FileUpload, FormGroup, FullScreenModal, FullScreenModalBody, FullScreenModalHeader, GoogleButton, HelpBlock, HoverCard, InlineStepDetail, type Props$L as InlineStepDetailProps, InlineStepLabel, type Props$K as InlineStepLabelProps, type Variant$3 as InlineStepLabelVariant, InputGroup, Kbd, Label, type LineInformation, Link, 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$1m as Props, Question, type QuestionAnswers, QuestionBlock, type Props$D as QuestionBlockProps, type QuestionOption, type Props$E as QuestionProps, type QuestionStep, RadioGroup, type RadiusSize, ResizableHandle, ResizablePanelGroup, type ResolvedColorScheme, ScrollArea, ScrollBar, Search, SearchForm, SearchInput, SearchInputWithNavigation, Select, type SelectItem, type SelectItemGroup, Separator, type ServerFieldError, Sheet, type SideInformation, Sidebar, type SidebarMode, SidebarProvider, type SidebarSide, type SidebarSlot, Skeleton, SkeletonList, Slider, SplitButton, SpotlightBackdrop, type SpotlightTarget, StatCard, StatCardGrid, type Props$2 as StatCardGridProps, type RootProps$1 as StatCardProps, type TrendDirection as StatCardTrendDirection, type TrendProps as StatCardTrendProps, type StepStatus, Stepper, type StepperOrientation, SuggestedPrompt, Switch, Table, 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$
|
|
10413
|
+
export { Alert, AlertModal, AnswerSummary, type AnswerItem as AnswerSummaryItem, type Props$N as AnswerSummaryProps, type Variant$5 as AnswerSummaryVariant, AppShell, ArgoDesignContext, AutoSaveTextarea, Avatar, Badge, BrandEditor, type BrandEditorProps, type BrandId, BrandLogo, Breadcrumb, Button, ButtonGroup, ButtonInline, Calendar, type CalendarProps, Card, ChangeClassification, ChartPanel, type RootProps as ChartPanelProps, Checkbox, Clipboard, ClipboardButton, ClipboardInline, Collapse, Collapsible, CollapsiblePanel, CollapsibleStepHeader, ColorInput, ColorModeSwitch, type ColorScheme, type ColorSlot, Combobox, Command, CommandGroup, CommandInput, CommandItem, CommandList, ConflictStatusIndicator, CopyField, DEFAULT_COLOR_SCHEME, DEFAULT_FALLBACK_FONT, DEFAULT_FONT_OPTIONS, DEFAULT_BRAND_ID as DEFAULT_KEBOOLA_BRAND_ID, DashboardHero, type RootProps$2 as DashboardHeroProps, DateInput, DatePicker, type DateRange, DateRangeInput, DateRangePicker, type DateRangePreset, type DiffInformation, type DiffRow, DiffType, DiffView, DotsLoader, DropdownMenu, EmptyConfigurationActionCard, EmptySearchContent, EmptyState, type RootProps$6 as EmptyStateProps, type Variant$1 as EmptyStateVariant, ErrorState, type RootProps$5 as ErrorStateProps, type Variant as ErrorStateVariant, ExportMenu, type ExportMenuItem, FileUpload, FormGroup, FullScreenModal, FullScreenModalBody, FullScreenModalHeader, GoogleButton, HelpBlock, HoverCard, InlineStepDetail, type Props$L as InlineStepDetailProps, InlineStepLabel, type Props$K as InlineStepLabelProps, type Variant$3 as InlineStepLabelVariant, InputGroup, Kbd, Label, type LineInformation, Link, 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$1m as Props, Question, type QuestionAnswers, QuestionBlock, type Props$D as QuestionBlockProps, type QuestionOption, type Props$E as QuestionProps, type QuestionStep, RadioGroup, type RadiusSize, ResizableHandle, ResizablePanelGroup, type ResolvedColorScheme, ScrollArea, ScrollBar, Search, SearchForm, SearchInput, SearchInputWithNavigation, Select, type SelectItem, type SelectItemGroup, Separator, type ServerFieldError, Sheet, type SideInformation, Sidebar, type SidebarMode, SidebarProvider, type SidebarSide, type SidebarSlot, Skeleton, SkeletonList, Slider, SplitButton, SpotlightBackdrop, type SpotlightTarget, StatCard, StatCardGrid, type Props$2 as StatCardGridProps, type RootProps$1 as StatCardProps, type TrendDirection as StatCardTrendDirection, type TrendProps as StatCardTrendProps, type StepStatus, Stepper, type StepperOrientation, SuggestedPrompt, Switch, Table, 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$1L as TooltipProps, TooltipProvider, type Trigger, Truncated, UsageStats, UsageStatsRing, type UseAutosizeInputOptions, type UseAutosizeInputReturn, type ValidityState, type WordInformation, ZoomableSvg, argoVariants, channelsToHex, cn, computeDiffRows, computeLineInformation, contrastRatio, copyToClipboard, hexToChannels, isMac, kbdVariants, keys, mergeRefs, setServerFieldErrors, setSubmitError, svgToPngBlob, tableAriaSort, toSvgFileContent, toast, useAppForm, useArgoDesign, useAutosizeInput, useMergeDiff, useNotification, useScrollbarPosition, useSidebar, useTargetRect, useTheme, wcagLevel, withForm };
|