@timeax/form-palette 0.0.20 → 0.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/adapters.d.mts +8 -3
- package/dist/adapters.d.ts +8 -3
- package/dist/adapters.js +1909 -12299
- package/dist/adapters.js.map +1 -1
- package/dist/adapters.mjs +1909 -12296
- package/dist/adapters.mjs.map +1 -1
- package/dist/index.d.mts +198 -79
- package/dist/index.d.ts +198 -79
- package/dist/index.js +15650 -36069
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15625 -36056
- package/dist/index.mjs.map +1 -1
- package/package.json +31 -5
package/dist/index.d.mts
CHANGED
|
@@ -2,14 +2,14 @@ import * as React from 'react';
|
|
|
2
2
|
import React__default, { RefObject, ComponentType } from 'react';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { Method, AdapterResult, AdapterKey, AdapterProps, AdapterSubmit } from './adapters.mjs';
|
|
5
|
-
export { AdapterCallbacks, AdapterConfig, AdapterError, AdapterFactory, AdapterOk, Adapters, NamedAdapterConfig, NamedAdapterFactory, createAxiosAdapter, createInertiaAdapter, getAdapter, hasAdapter, localAdapter, registerAdapter, registerAxiosAdapter, registerInertiaAdapter, registerKnownAdapter } from './adapters.mjs';
|
|
5
|
+
export { AdapterCallbacks, AdapterConfig, AdapterError, AdapterFactory, AdapterOk, Adapters, NamedAdapterConfig, NamedAdapterFactory, createAxiosAdapter, createInertiaAdapter, getAdapter, hasAdapter, localAdapter, registerAdapter, registerAllAdapters, registerAxiosAdapter, registerInertiaAdapter, registerKnownAdapter } from './adapters.mjs';
|
|
6
6
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
7
7
|
import { DayPicker } from 'react-day-picker';
|
|
8
8
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
9
9
|
import { VariantProps } from 'class-variance-authority';
|
|
10
10
|
import * as SwitchPrimitive from '@radix-ui/react-switch';
|
|
11
11
|
import { $ZodError } from 'zod/v4/core';
|
|
12
|
-
import '
|
|
12
|
+
import '@inertiajs/core';
|
|
13
13
|
import 'axios';
|
|
14
14
|
|
|
15
15
|
/**
|
|
@@ -251,21 +251,40 @@ declare class BinderRegistry<V extends Dict = Dict> {
|
|
|
251
251
|
/**
|
|
252
252
|
* Central store for all fields registered with the core runtime.
|
|
253
253
|
*
|
|
254
|
-
*
|
|
255
|
-
* - Keep
|
|
256
|
-
* -
|
|
257
|
-
*
|
|
258
|
-
* - bindId
|
|
259
|
-
* - groupId
|
|
260
|
-
* - Provide convenient lookup methods:
|
|
261
|
-
* - all / getAllNamed / getAllBound / getAllGrouped
|
|
262
|
-
* - getByName / getAllByName
|
|
263
|
-
* - getByGroupId / getAllByGroupId
|
|
264
|
-
* - getByBind / getAllByBind (binder semantics, prefer mounted)
|
|
254
|
+
* Goals:
|
|
255
|
+
* - Keep stable Field references (no cloning).
|
|
256
|
+
* - Prefer mounted fields for all “get” operations.
|
|
257
|
+
* - Prune stale/detached fields opportunistically.
|
|
265
258
|
*/
|
|
266
259
|
declare class FieldRegistry {
|
|
267
260
|
#private;
|
|
268
261
|
private list;
|
|
262
|
+
private getEl;
|
|
263
|
+
/** Mounted = has an element and that element is currently in the DOM. */
|
|
264
|
+
private isMounted;
|
|
265
|
+
/**
|
|
266
|
+
* Detached = has an element but it is NOT currently in the DOM.
|
|
267
|
+
* Note: if ref.current is null, we treat it as “unknown” (do NOT prune).
|
|
268
|
+
*/
|
|
269
|
+
private isDetached;
|
|
270
|
+
/** Mounted-first stable ordering (does not mutate input). */
|
|
271
|
+
private sortMountedFirst;
|
|
272
|
+
/** Prefer the first mounted candidate; else fall back to first candidate. */
|
|
273
|
+
private pickPreferred;
|
|
274
|
+
/**
|
|
275
|
+
* Remove detached fields.
|
|
276
|
+
*
|
|
277
|
+
* IMPORTANT: We only remove entries that have a non-null ref.current AND are
|
|
278
|
+
* not in the DOM. We do not remove “unknown” (null-ref) fields because they
|
|
279
|
+
* may be in the process of mounting.
|
|
280
|
+
*/
|
|
281
|
+
private pruneDetached;
|
|
282
|
+
/**
|
|
283
|
+
* Remove detached fields that conflict with an incoming field by identifier.
|
|
284
|
+
* This prevents stale “same-name / same-bindId / same-groupId” entries from
|
|
285
|
+
* hijacking lookups.
|
|
286
|
+
*/
|
|
287
|
+
private pruneDetachedConflicts;
|
|
269
288
|
/**
|
|
270
289
|
* Whether this field should be tracked at all.
|
|
271
290
|
*
|
|
@@ -274,7 +293,12 @@ declare class FieldRegistry {
|
|
|
274
293
|
hasIdentifier(field: Field): boolean;
|
|
275
294
|
/**
|
|
276
295
|
* Add a field to the registry if it has an identifier.
|
|
277
|
-
*
|
|
296
|
+
*
|
|
297
|
+
* Rules:
|
|
298
|
+
* - Opportunistically prune detached fields.
|
|
299
|
+
* - Prune detached conflicts (same name/bindId/groupId) before adding.
|
|
300
|
+
* - If the same field instance is already tracked, ignore.
|
|
301
|
+
* - If the same key already exists (rare), prefer mounted; otherwise replace.
|
|
278
302
|
*/
|
|
279
303
|
add(field: Field): void;
|
|
280
304
|
/**
|
|
@@ -286,40 +310,37 @@ declare class FieldRegistry {
|
|
|
286
310
|
*/
|
|
287
311
|
clear(): void;
|
|
288
312
|
/**
|
|
289
|
-
* All fields tracked by this registry.
|
|
313
|
+
* All fields tracked by this registry (mounted-first).
|
|
290
314
|
*/
|
|
291
315
|
all(): Field[];
|
|
292
|
-
/** All fields that have a non-empty name. */
|
|
316
|
+
/** All fields that have a non-empty name (mounted-first). */
|
|
293
317
|
getAllNamed(): Field[];
|
|
294
|
-
/** All fields that have a bindId. */
|
|
318
|
+
/** All fields that have a bindId (mounted-first). */
|
|
295
319
|
getAllBound(): Field[];
|
|
296
|
-
/** All fields that have a groupId. */
|
|
320
|
+
/** All fields that have a groupId (mounted-first). */
|
|
297
321
|
getAllGrouped(): Field[];
|
|
298
322
|
/**
|
|
299
323
|
* First field with a given name (exact, trimmed match).
|
|
300
324
|
*
|
|
301
|
-
*
|
|
302
|
-
*
|
|
325
|
+
* Behaviour:
|
|
326
|
+
* - Prefer a field whose ref is currently in the DOM.
|
|
327
|
+
* - If none are mounted, fall back to the first matching field.
|
|
303
328
|
*/
|
|
304
329
|
getByName(name: string): Field | undefined;
|
|
305
330
|
/**
|
|
306
|
-
* All fields with a given name (exact, trimmed match).
|
|
331
|
+
* All fields with a given name (exact, trimmed match), mounted-first.
|
|
307
332
|
*/
|
|
308
333
|
getAllByName(name: string): Field[];
|
|
309
|
-
/** First field with the given groupId. */
|
|
334
|
+
/** First field with the given groupId (prefer mounted). */
|
|
310
335
|
getByGroupId(id: string): Field | undefined;
|
|
311
|
-
/** All fields with the given groupId. */
|
|
336
|
+
/** All fields with the given groupId (mounted-first). */
|
|
312
337
|
getAllByGroupId(id: string): Field[];
|
|
313
338
|
/**
|
|
314
|
-
* All fields that share the given bindId.
|
|
339
|
+
* All fields that share the given bindId (mounted-first).
|
|
315
340
|
*/
|
|
316
341
|
getAllByBind(id: string): Field[];
|
|
317
342
|
/**
|
|
318
|
-
* First field with the given bindId.
|
|
319
|
-
*
|
|
320
|
-
* Behaviour:
|
|
321
|
-
* - Prefer a field whose ref is currently in the DOM.
|
|
322
|
-
* - If none are mounted, fall back to the first matching field.
|
|
343
|
+
* First field with the given bindId (prefer mounted).
|
|
323
344
|
*/
|
|
324
345
|
getByBind(id: string): Field | undefined;
|
|
325
346
|
getBind(id: string): Field | undefined;
|
|
@@ -2194,6 +2215,11 @@ interface ShadcnCheckboxUiProps<TItem, TValue> {
|
|
|
2194
2215
|
* Extra classes for the option label text.
|
|
2195
2216
|
*/
|
|
2196
2217
|
labelClassName?: string;
|
|
2218
|
+
/**
|
|
2219
|
+
* Extra classes for the option label text in group mode only.
|
|
2220
|
+
* This allows styling group item labels without affecting single mode labels.
|
|
2221
|
+
*/
|
|
2222
|
+
optionLabelClassName?: string;
|
|
2197
2223
|
/**
|
|
2198
2224
|
* Extra classes for the option description text.
|
|
2199
2225
|
*/
|
|
@@ -2263,7 +2289,7 @@ type NormalizedMultiItem = {
|
|
|
2263
2289
|
icon?: React.ReactNode;
|
|
2264
2290
|
raw: MultiSelectOption;
|
|
2265
2291
|
};
|
|
2266
|
-
|
|
2292
|
+
type MultiSelectBaseProps = Pick<VariantBaseProps<SelectPrimitive$1[] | undefined>, "value" | "onValue" | "error" | "disabled" | "readOnly" | "size" | "density"> & {
|
|
2267
2293
|
/**
|
|
2268
2294
|
* Options for the multi-select.
|
|
2269
2295
|
*
|
|
@@ -2394,62 +2420,62 @@ interface ShadcnMultiSelectVariantProps extends Pick<VariantBaseProps<SelectPrim
|
|
|
2394
2420
|
* Extra classes for the popover content.
|
|
2395
2421
|
*/
|
|
2396
2422
|
contentClassName?: string;
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
* If not provided and `icon` is set, that single icon
|
|
2401
|
-
* is treated as `leadingIcons[0]`.
|
|
2402
|
-
*/
|
|
2423
|
+
};
|
|
2424
|
+
type MultiSelectDefaultModeProps = {
|
|
2425
|
+
mode?: "default";
|
|
2403
2426
|
leadingIcons?: React.ReactNode[];
|
|
2404
|
-
/**
|
|
2405
|
-
* Icons displayed on the right side of the trigger,
|
|
2406
|
-
* near the clear button / chevron area.
|
|
2407
|
-
*/
|
|
2408
2427
|
trailingIcons?: React.ReactNode[];
|
|
2409
|
-
/**
|
|
2410
|
-
* Convenience single-icon prop for the left side.
|
|
2411
|
-
*/
|
|
2412
2428
|
icon?: React.ReactNode;
|
|
2413
|
-
/**
|
|
2414
|
-
* Base gap between icons and text.
|
|
2415
|
-
* Defaults to 4px-ish via `gap-1`.
|
|
2416
|
-
*/
|
|
2417
2429
|
iconGap?: number;
|
|
2418
|
-
/**
|
|
2419
|
-
* Extra spacing to apply between leading icons and the text.
|
|
2420
|
-
*/
|
|
2421
2430
|
leadingIconSpacing?: number;
|
|
2422
|
-
/**
|
|
2423
|
-
* Extra spacing to apply between trailing icons and the clear button.
|
|
2424
|
-
*/
|
|
2425
2431
|
trailingIconSpacing?: number;
|
|
2426
|
-
/**
|
|
2427
|
-
* Arbitrary React node rendered before the select (e.g. a button).
|
|
2428
|
-
*/
|
|
2429
2432
|
leadingControl?: React.ReactNode;
|
|
2430
|
-
/**
|
|
2431
|
-
* Arbitrary React node rendered after the select (e.g. a button).
|
|
2432
|
-
*/
|
|
2433
2433
|
trailingControl?: React.ReactNode;
|
|
2434
|
-
/**
|
|
2435
|
-
* Extra classes for the leading control wrapper.
|
|
2436
|
-
*/
|
|
2437
2434
|
leadingControlClassName?: string;
|
|
2438
|
-
/**
|
|
2439
|
-
* Extra classes for the trailing control wrapper.
|
|
2440
|
-
*/
|
|
2441
2435
|
trailingControlClassName?: string;
|
|
2442
|
-
/**
|
|
2443
|
-
* If true and there are controls, the select trigger + controls share
|
|
2444
|
-
* a single visual box (borders, radius, focus states).
|
|
2445
|
-
*/
|
|
2446
2436
|
joinControls?: boolean;
|
|
2447
|
-
/**
|
|
2448
|
-
* When joinControls is true, whether the box styling extends over controls
|
|
2449
|
-
* (true) or controls are visually separate (false).
|
|
2450
|
-
*/
|
|
2451
2437
|
extendBoxToControls?: boolean;
|
|
2452
|
-
|
|
2438
|
+
button?: never;
|
|
2439
|
+
children?: never;
|
|
2440
|
+
selectedBadge?: never;
|
|
2441
|
+
selectedBadgeHiddenWhenZero?: never;
|
|
2442
|
+
selectedBadgeClassName?: never;
|
|
2443
|
+
selectedBadgePlacement?: never;
|
|
2444
|
+
};
|
|
2445
|
+
type MultiSelectButtonModeButton = React.ReactNode | ((ctx: {
|
|
2446
|
+
open: boolean;
|
|
2447
|
+
selectedItems: NormalizedMultiItem[];
|
|
2448
|
+
selectedCount: number;
|
|
2449
|
+
}) => React.ReactNode);
|
|
2450
|
+
type MultiSelectButtonModeProps = {
|
|
2451
|
+
mode: "button";
|
|
2452
|
+
/**
|
|
2453
|
+
* Used when mode="button". If provided, this is the trigger.
|
|
2454
|
+
* If not provided, `children` is used.
|
|
2455
|
+
*/
|
|
2456
|
+
button?: MultiSelectButtonModeButton;
|
|
2457
|
+
children?: MultiSelectButtonModeButton;
|
|
2458
|
+
/**
|
|
2459
|
+
* Selected-count badge (mode="button" only)
|
|
2460
|
+
*/
|
|
2461
|
+
selectedBadge?: boolean;
|
|
2462
|
+
selectedBadgeHiddenWhenZero?: boolean;
|
|
2463
|
+
selectedBadgeClassName?: string;
|
|
2464
|
+
selectedBadgePlacement?: "end" | "corner";
|
|
2465
|
+
leadingIcons?: never;
|
|
2466
|
+
trailingIcons?: never;
|
|
2467
|
+
icon?: never;
|
|
2468
|
+
iconGap?: never;
|
|
2469
|
+
leadingIconSpacing?: never;
|
|
2470
|
+
trailingIconSpacing?: never;
|
|
2471
|
+
leadingControl?: never;
|
|
2472
|
+
trailingControl?: never;
|
|
2473
|
+
leadingControlClassName?: never;
|
|
2474
|
+
trailingControlClassName?: never;
|
|
2475
|
+
joinControls?: never;
|
|
2476
|
+
extendBoxToControls?: never;
|
|
2477
|
+
};
|
|
2478
|
+
type ShadcnMultiSelectVariantProps = MultiSelectBaseProps & (MultiSelectDefaultModeProps | MultiSelectButtonModeProps);
|
|
2453
2479
|
|
|
2454
2480
|
type SliderValue$1 = number | undefined;
|
|
2455
2481
|
interface ShadcnSliderVariantProps extends Pick<VariantBaseProps<SliderValue$1>, "value" | "onValue" | "error" | "disabled" | "readOnly" | "size" | "density"> {
|
|
@@ -2732,7 +2758,8 @@ type NormalizedTreeItem = {
|
|
|
2732
2758
|
children: NormalizedTreeItem[];
|
|
2733
2759
|
raw: TreeSelectOption;
|
|
2734
2760
|
};
|
|
2735
|
-
|
|
2761
|
+
type BadgeVariant$1 = "default" | "secondary" | "destructive" | "outline";
|
|
2762
|
+
type TreeSelectBaseProps = Pick<VariantBaseProps<TreeValue>, "value" | "onValue" | "error" | "disabled" | "readOnly" | "size" | "density"> & {
|
|
2736
2763
|
options?: TreeSelectOption[];
|
|
2737
2764
|
/**
|
|
2738
2765
|
* If true, allows multiple selection (checkboxes).
|
|
@@ -2770,6 +2797,9 @@ interface ShadcnTreeSelectVariantProps extends Pick<VariantBaseProps<TreeValue>,
|
|
|
2770
2797
|
expandAll?: boolean;
|
|
2771
2798
|
defaultExpandedValues?: TreeKey[];
|
|
2772
2799
|
leafOnly?: boolean;
|
|
2800
|
+
};
|
|
2801
|
+
type TreeSelectDefaultModeProps = {
|
|
2802
|
+
mode?: "default";
|
|
2773
2803
|
leadingIcons?: React.ReactNode[];
|
|
2774
2804
|
trailingIcons?: React.ReactNode[];
|
|
2775
2805
|
icon?: React.ReactNode;
|
|
@@ -2782,7 +2812,56 @@ interface ShadcnTreeSelectVariantProps extends Pick<VariantBaseProps<TreeValue>,
|
|
|
2782
2812
|
trailingControlClassName?: string;
|
|
2783
2813
|
joinControls?: boolean;
|
|
2784
2814
|
extendBoxToControls?: boolean;
|
|
2785
|
-
|
|
2815
|
+
button?: never;
|
|
2816
|
+
children?: never;
|
|
2817
|
+
selectedBadge?: never;
|
|
2818
|
+
selectedBadgeHiddenWhenZero?: never;
|
|
2819
|
+
selectedBadgeVariant?: never;
|
|
2820
|
+
selectedBadgeClassName?: never;
|
|
2821
|
+
selectedBadgePlacement?: never;
|
|
2822
|
+
};
|
|
2823
|
+
type TreeSelectButtonModeButton = React.ReactNode | ((ctx: {
|
|
2824
|
+
open: boolean;
|
|
2825
|
+
selectedItems: NormalizedTreeItem[];
|
|
2826
|
+
selectedCount: number;
|
|
2827
|
+
}) => React.ReactNode);
|
|
2828
|
+
type TreeSelectButtonModeProps = {
|
|
2829
|
+
mode: "button";
|
|
2830
|
+
/**
|
|
2831
|
+
* Used when mode="button". If provided, this is the trigger.
|
|
2832
|
+
* If not provided, `children` is used.
|
|
2833
|
+
*/
|
|
2834
|
+
button?: TreeSelectButtonModeButton;
|
|
2835
|
+
children?: TreeSelectButtonModeButton;
|
|
2836
|
+
/**
|
|
2837
|
+
* Selected-count badge (mode="button" only)
|
|
2838
|
+
*/
|
|
2839
|
+
selectedBadge?: boolean;
|
|
2840
|
+
selectedBadgeHiddenWhenZero?: boolean;
|
|
2841
|
+
selectedBadgeVariant?: BadgeVariant$1;
|
|
2842
|
+
selectedBadgeClassName?: string;
|
|
2843
|
+
selectedBadgePlacement?: "end" | "corner";
|
|
2844
|
+
leadingIcons?: never;
|
|
2845
|
+
trailingIcons?: never;
|
|
2846
|
+
icon?: never;
|
|
2847
|
+
iconGap?: never;
|
|
2848
|
+
leadingIconSpacing?: never;
|
|
2849
|
+
trailingIconSpacing?: never;
|
|
2850
|
+
leadingControl?: never;
|
|
2851
|
+
trailingControl?: never;
|
|
2852
|
+
leadingControlClassName?: never;
|
|
2853
|
+
trailingControlClassName?: never;
|
|
2854
|
+
joinControls?: never;
|
|
2855
|
+
extendBoxToControls?: never;
|
|
2856
|
+
};
|
|
2857
|
+
type ShadcnTreeSelectVariantProps = TreeSelectBaseProps & (TreeSelectDefaultModeProps | TreeSelectButtonModeProps);
|
|
2858
|
+
|
|
2859
|
+
declare const badgeVariants: (props?: ({
|
|
2860
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | null | undefined;
|
|
2861
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
2862
|
+
declare function Badge({ className, variant, asChild, ...props }: React.ComponentProps<"span"> & VariantProps<typeof badgeVariants> & {
|
|
2863
|
+
asChild?: boolean;
|
|
2864
|
+
}): react_jsx_runtime.JSX.Element;
|
|
2786
2865
|
|
|
2787
2866
|
type FileSourceKind = "native" | "path" | "url" | "custom";
|
|
2788
2867
|
interface FileItem {
|
|
@@ -2816,7 +2895,8 @@ type CustomFileLoader = (ctx: {
|
|
|
2816
2895
|
multiple: boolean;
|
|
2817
2896
|
current: FileItem[];
|
|
2818
2897
|
}) => Promise<CustomFileLoaderResult> | CustomFileLoaderResult;
|
|
2819
|
-
|
|
2898
|
+
type BadgeVariant = React.ComponentProps<typeof Badge>["variant"];
|
|
2899
|
+
type FileVariantBaseProps = Pick<VariantBaseProps<FileItem[]>, "value" | "onValue" | "error" | "disabled" | "readOnly" | "size" | "density"> & {
|
|
2820
2900
|
multiple?: boolean;
|
|
2821
2901
|
accept?: string | string[];
|
|
2822
2902
|
maxFiles?: number;
|
|
@@ -2848,6 +2928,10 @@ interface ShadcnFileVariantProps extends Pick<VariantBaseProps<FileItem[]>, "val
|
|
|
2848
2928
|
className?: string;
|
|
2849
2929
|
dropAreaClassName?: string;
|
|
2850
2930
|
listClassName?: string;
|
|
2931
|
+
triggerClassName?: string;
|
|
2932
|
+
};
|
|
2933
|
+
type FileDefaultModeProps = {
|
|
2934
|
+
mode?: "default";
|
|
2851
2935
|
leadingIcons?: React.ReactNode[];
|
|
2852
2936
|
trailingIcons?: React.ReactNode[];
|
|
2853
2937
|
icon?: React.ReactNode;
|
|
@@ -2857,7 +2941,42 @@ interface ShadcnFileVariantProps extends Pick<VariantBaseProps<FileItem[]>, "val
|
|
|
2857
2941
|
trailingControlClassName?: string;
|
|
2858
2942
|
joinControls?: boolean;
|
|
2859
2943
|
extendBoxToControls?: boolean;
|
|
2860
|
-
|
|
2944
|
+
button?: never;
|
|
2945
|
+
children?: never;
|
|
2946
|
+
selectedBadge?: never;
|
|
2947
|
+
selectedBadgeHiddenWhenZero?: never;
|
|
2948
|
+
selectedBadgeVariant?: never;
|
|
2949
|
+
selectedBadgeClassName?: never;
|
|
2950
|
+
selectedBadgePlacement?: never;
|
|
2951
|
+
};
|
|
2952
|
+
type FileButtonTrigger = React.ReactNode | ((ctx: {
|
|
2953
|
+
open: boolean;
|
|
2954
|
+
items: FileItem[];
|
|
2955
|
+
selectedCount: number;
|
|
2956
|
+
disabled: boolean;
|
|
2957
|
+
}) => React.ReactNode);
|
|
2958
|
+
type FileButtonModeProps = {
|
|
2959
|
+
mode: "button";
|
|
2960
|
+
/** Used when mode="button". If provided, this is the trigger. If not, `children` is used. */
|
|
2961
|
+
button?: FileButtonTrigger;
|
|
2962
|
+
children?: FileButtonTrigger;
|
|
2963
|
+
/** Selected-count badge (mode="button" only) */
|
|
2964
|
+
selectedBadge?: boolean;
|
|
2965
|
+
selectedBadgeHiddenWhenZero?: boolean;
|
|
2966
|
+
selectedBadgeVariant?: BadgeVariant;
|
|
2967
|
+
selectedBadgeClassName?: string;
|
|
2968
|
+
selectedBadgePlacement?: "end" | "corner";
|
|
2969
|
+
leadingIcons?: never;
|
|
2970
|
+
trailingIcons?: never;
|
|
2971
|
+
icon?: never;
|
|
2972
|
+
leadingControl?: never;
|
|
2973
|
+
trailingControl?: never;
|
|
2974
|
+
leadingControlClassName?: never;
|
|
2975
|
+
trailingControlClassName?: never;
|
|
2976
|
+
joinControls?: never;
|
|
2977
|
+
extendBoxToControls?: never;
|
|
2978
|
+
};
|
|
2979
|
+
type ShadcnFileVariantProps = FileVariantBaseProps & (FileDefaultModeProps | FileButtonModeProps);
|
|
2861
2980
|
|
|
2862
2981
|
type SelectPrimitive = string | number;
|
|
2863
2982
|
type SelectOption = SelectPrimitive | {
|
|
@@ -3322,7 +3441,7 @@ type Props<V extends Dict, S extends z.ZodType | undefined, K extends AdapterKey
|
|
|
3322
3441
|
* - named inputs via `name`
|
|
3323
3442
|
* - bound inputs via `bindId`
|
|
3324
3443
|
* - grouped inputs via `groupId`
|
|
3325
|
-
* - Manages errors
|
|
3444
|
+
* - Manages errors and uncaught messages
|
|
3326
3445
|
* - Builds values snapshots (including bucket values)
|
|
3327
3446
|
* - Orchestrates submission via the adapter registry
|
|
3328
3447
|
*/
|