@chellaa/react 0.2.2 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +6980 -836
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +2980 -47
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +2175 -12
- package/dist/index.d.ts +2175 -12
- package/dist/index.mjs +6887 -836
- package/dist/index.mjs.map +1 -1
- package/dist/index.node.mjs +6887 -836
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1171,6 +1171,123 @@ interface TextareaProps extends Omit<React.TextareaHTMLAttributes<HTMLTextAreaEl
|
|
|
1171
1171
|
*/
|
|
1172
1172
|
declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLDivElement>>;
|
|
1173
1173
|
|
|
1174
|
+
interface FieldValidationError {
|
|
1175
|
+
message: string;
|
|
1176
|
+
code?: string;
|
|
1177
|
+
}
|
|
1178
|
+
type FieldValidationResult = {
|
|
1179
|
+
valid: true;
|
|
1180
|
+
} | {
|
|
1181
|
+
valid: false;
|
|
1182
|
+
error: FieldValidationError;
|
|
1183
|
+
};
|
|
1184
|
+
type FieldValidator<TValue = unknown> = (value: TValue) => FieldValidationResult | Promise<FieldValidationResult>;
|
|
1185
|
+
interface UseFormValidationOptions<TValues extends Record<string, unknown>> {
|
|
1186
|
+
/**
|
|
1187
|
+
* Initial values of the form fields.
|
|
1188
|
+
*/
|
|
1189
|
+
initialValues: TValues;
|
|
1190
|
+
/**
|
|
1191
|
+
* Field validators dictionary.
|
|
1192
|
+
*/
|
|
1193
|
+
validators?: Partial<{
|
|
1194
|
+
[K in keyof TValues]: FieldValidator<TValues[K]>;
|
|
1195
|
+
}>;
|
|
1196
|
+
/**
|
|
1197
|
+
* When to trigger validation.
|
|
1198
|
+
* @default "blur"
|
|
1199
|
+
*/
|
|
1200
|
+
validateOn?: "change" | "blur" | "submit";
|
|
1201
|
+
/**
|
|
1202
|
+
* Callback invoked when form passes validation and is submitted.
|
|
1203
|
+
*/
|
|
1204
|
+
onSubmit?: (values: TValues) => void | Promise<void>;
|
|
1205
|
+
/**
|
|
1206
|
+
* Automatically focus the first invalid field upon failed submission.
|
|
1207
|
+
* @default true
|
|
1208
|
+
*/
|
|
1209
|
+
focusFirstInvalid?: boolean;
|
|
1210
|
+
}
|
|
1211
|
+
interface UseFormValidationReturn<TValues extends Record<string, unknown>> {
|
|
1212
|
+
/**
|
|
1213
|
+
* Current field values.
|
|
1214
|
+
*/
|
|
1215
|
+
values: TValues;
|
|
1216
|
+
/**
|
|
1217
|
+
* Current error messages by field key.
|
|
1218
|
+
*/
|
|
1219
|
+
errors: Partial<Record<keyof TValues, string>>;
|
|
1220
|
+
/**
|
|
1221
|
+
* Whether field has been blurred/touched.
|
|
1222
|
+
*/
|
|
1223
|
+
touched: Partial<Record<keyof TValues, boolean>>;
|
|
1224
|
+
/**
|
|
1225
|
+
* Whether field value has changed from its initial value.
|
|
1226
|
+
*/
|
|
1227
|
+
dirty: Partial<Record<keyof TValues, boolean>>;
|
|
1228
|
+
/**
|
|
1229
|
+
* Whether asynchronous validation is currently pending for a field.
|
|
1230
|
+
*/
|
|
1231
|
+
isValidating: Partial<Record<keyof TValues, boolean>>;
|
|
1232
|
+
/**
|
|
1233
|
+
* Whether the form submission callback is currently running.
|
|
1234
|
+
*/
|
|
1235
|
+
isSubmitting: boolean;
|
|
1236
|
+
/**
|
|
1237
|
+
* True if there are no errors across all fields.
|
|
1238
|
+
*/
|
|
1239
|
+
isValid: boolean;
|
|
1240
|
+
/**
|
|
1241
|
+
* Sets a single field value and triggers validation according to `validateOn`.
|
|
1242
|
+
*/
|
|
1243
|
+
setValue: <K extends keyof TValues>(field: K, value: TValues[K]) => Promise<void>;
|
|
1244
|
+
/**
|
|
1245
|
+
* Sets the touched state for a field.
|
|
1246
|
+
*/
|
|
1247
|
+
setTouched: <K extends keyof TValues>(field: K, isTouched?: boolean) => void;
|
|
1248
|
+
/**
|
|
1249
|
+
* Manually sets an error message on a field.
|
|
1250
|
+
*/
|
|
1251
|
+
setError: <K extends keyof TValues>(field: K, error?: string | FieldValidationError) => void;
|
|
1252
|
+
/**
|
|
1253
|
+
* Clears the error on a field.
|
|
1254
|
+
*/
|
|
1255
|
+
clearError: <K extends keyof TValues>(field: K) => void;
|
|
1256
|
+
/**
|
|
1257
|
+
* Validates a single field immediately, returning true if valid.
|
|
1258
|
+
*/
|
|
1259
|
+
validateField: <K extends keyof TValues>(field: K) => Promise<boolean>;
|
|
1260
|
+
/**
|
|
1261
|
+
* Validates all fields immediately, returning true if all are valid.
|
|
1262
|
+
*/
|
|
1263
|
+
validateAll: () => Promise<boolean>;
|
|
1264
|
+
/**
|
|
1265
|
+
* Form submit handler.
|
|
1266
|
+
*/
|
|
1267
|
+
handleSubmit: (e?: React.FormEvent) => Promise<void>;
|
|
1268
|
+
/**
|
|
1269
|
+
* Resets form values and clears errors, touched, and dirty state.
|
|
1270
|
+
*/
|
|
1271
|
+
reset: (nextValues?: Partial<TValues>) => void;
|
|
1272
|
+
/**
|
|
1273
|
+
* Convenience prop getter for FormField container integration.
|
|
1274
|
+
*/
|
|
1275
|
+
getFieldProps: <K extends keyof TValues>(field: K) => {
|
|
1276
|
+
name: string;
|
|
1277
|
+
isInvalid: boolean;
|
|
1278
|
+
errorMessage?: string;
|
|
1279
|
+
};
|
|
1280
|
+
/**
|
|
1281
|
+
* Convenience prop getter for child input elements (Input, Textarea, etc.).
|
|
1282
|
+
*/
|
|
1283
|
+
getInputProps: <K extends keyof TValues>(field: K) => {
|
|
1284
|
+
name: string;
|
|
1285
|
+
value: TValues[K];
|
|
1286
|
+
onChange: (e: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement> | TValues[K]) => void;
|
|
1287
|
+
onBlur: () => void;
|
|
1288
|
+
};
|
|
1289
|
+
}
|
|
1290
|
+
|
|
1174
1291
|
interface FormFieldProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
1175
1292
|
id?: string | undefined;
|
|
1176
1293
|
name?: string | undefined;
|
|
@@ -1182,6 +1299,11 @@ interface FormFieldProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
1182
1299
|
isReadOnly?: boolean | undefined;
|
|
1183
1300
|
error?: boolean | undefined;
|
|
1184
1301
|
isInvalid?: boolean | undefined;
|
|
1302
|
+
errorMessage?: string | FieldValidationError | undefined;
|
|
1303
|
+
validationResult?: FieldValidationResult | undefined;
|
|
1304
|
+
isValidating?: boolean | undefined;
|
|
1305
|
+
isTouched?: boolean | undefined;
|
|
1306
|
+
isDirty?: boolean | undefined;
|
|
1185
1307
|
fullWidth?: boolean | undefined;
|
|
1186
1308
|
asChild?: boolean | undefined;
|
|
1187
1309
|
component?: React.ElementType | undefined;
|
|
@@ -1314,6 +1436,10 @@ interface FormFieldContextValue {
|
|
|
1314
1436
|
disabled?: boolean | undefined;
|
|
1315
1437
|
readOnly?: boolean | undefined;
|
|
1316
1438
|
error?: boolean | undefined;
|
|
1439
|
+
errorMessage?: string | undefined;
|
|
1440
|
+
isValidating?: boolean | undefined;
|
|
1441
|
+
isTouched?: boolean | undefined;
|
|
1442
|
+
isDirty?: boolean | undefined;
|
|
1317
1443
|
labelId: string;
|
|
1318
1444
|
helperTextId: string;
|
|
1319
1445
|
errorMessageId: string;
|
|
@@ -1329,6 +1455,12 @@ declare const FormFieldContext: React.Context<FormFieldContextValue | undefined>
|
|
|
1329
1455
|
*/
|
|
1330
1456
|
declare function useFormField(): FormFieldContextValue | undefined;
|
|
1331
1457
|
|
|
1458
|
+
/**
|
|
1459
|
+
* Hook providing framework-agnostic form state management, validation lifecycle,
|
|
1460
|
+
* async race-condition safety, and accessible error/focus integration.
|
|
1461
|
+
*/
|
|
1462
|
+
declare function useFormValidation<TValues extends Record<string, unknown>>(options: UseFormValidationOptions<TValues>): UseFormValidationReturn<TValues>;
|
|
1463
|
+
|
|
1332
1464
|
type CheckboxSize = "sm" | "md" | "lg";
|
|
1333
1465
|
type CheckboxColorScheme = "primary" | "secondary" | "success" | "error" | "warning" | "info" | "default";
|
|
1334
1466
|
interface CheckboxOwnerState {
|
|
@@ -2223,6 +2355,8 @@ interface PopoverRootProps {
|
|
|
2223
2355
|
initialFocusRef?: React.RefObject<HTMLElement | null>;
|
|
2224
2356
|
/** Ref to the element that should receive focus when closed */
|
|
2225
2357
|
returnFocusRef?: React.RefObject<HTMLElement | null>;
|
|
2358
|
+
/** Optional custom reference element for floating positioning */
|
|
2359
|
+
referenceElement?: React.RefObject<HTMLElement | null> | HTMLElement | null;
|
|
2226
2360
|
}
|
|
2227
2361
|
interface PopoverProps extends PopoverRootProps {
|
|
2228
2362
|
}
|
|
@@ -2285,6 +2419,8 @@ interface PopoverContextValue {
|
|
|
2285
2419
|
setHasPortalParent: (hasPortal: boolean) => void;
|
|
2286
2420
|
initialFocusRef?: React.RefObject<HTMLElement | null> | undefined;
|
|
2287
2421
|
returnFocusRef?: React.RefObject<HTMLElement | null> | undefined;
|
|
2422
|
+
/** Whether Floating UI has calculated the initial floating coordinates */
|
|
2423
|
+
isPositioned: boolean;
|
|
2288
2424
|
}
|
|
2289
2425
|
|
|
2290
2426
|
interface PopoverInternalContextValue extends PopoverContextValue {
|
|
@@ -2295,13 +2431,14 @@ interface PopoverInternalContextValue extends PopoverContextValue {
|
|
|
2295
2431
|
floatingStyles: React.CSSProperties;
|
|
2296
2432
|
middlewareData: MiddlewareData;
|
|
2297
2433
|
arrowRef: React.RefObject<HTMLDivElement | null>;
|
|
2434
|
+
hasCustomReference?: boolean;
|
|
2298
2435
|
}
|
|
2299
2436
|
declare function usePopoverContext(): PopoverInternalContextValue;
|
|
2300
2437
|
/**
|
|
2301
2438
|
* Popover.Root (or <Popover>) manages the open state and floating positioning context
|
|
2302
2439
|
* for anchored rich interactive popup overlays.
|
|
2303
2440
|
*/
|
|
2304
|
-
declare function PopoverRoot({ children, isOpen: controlledOpen, defaultOpen, onOpenChange, placement, offset: offsetProp, trapFocus, closeOnEsc, initialFocusRef, returnFocusRef, }: PopoverRootProps): React.JSX.Element;
|
|
2441
|
+
declare function PopoverRoot({ children, isOpen: controlledOpen, defaultOpen, onOpenChange, placement, offset: offsetProp, trapFocus, closeOnEsc, initialFocusRef, returnFocusRef, referenceElement, }: PopoverRootProps): React.JSX.Element;
|
|
2305
2442
|
declare namespace PopoverRoot {
|
|
2306
2443
|
var displayName: string;
|
|
2307
2444
|
}
|
|
@@ -2650,7 +2787,27 @@ declare const Avatar: AvatarComponent;
|
|
|
2650
2787
|
declare const AvatarRoot: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLDivElement>>;
|
|
2651
2788
|
|
|
2652
2789
|
type AccordionType = "single" | "multiple";
|
|
2653
|
-
|
|
2790
|
+
/**
|
|
2791
|
+
* Visual styling variant for the Accordion.
|
|
2792
|
+
* - "default" / "outline": Clean bordered continuous container with subtle dividers.
|
|
2793
|
+
* - "separated": Individually spaced card-like items.
|
|
2794
|
+
* - "borderless" / "flush": Minimal, divider-based appearance without outer container border.
|
|
2795
|
+
* - "filled": Subtle background emphasis with soft surface tint and rounded panels.
|
|
2796
|
+
*/
|
|
2797
|
+
type AccordionVariant = "default" | "outline" | "separated" | "borderless" | "flush" | "filled";
|
|
2798
|
+
/**
|
|
2799
|
+
* Density and typography scale for the Accordion.
|
|
2800
|
+
* - "sm": Compact padding, 14px title font, 14px chevron icon.
|
|
2801
|
+
* - "md": Balanced standard padding, 16px title font, 18px chevron icon.
|
|
2802
|
+
* - "lg": Spacious padding, 18px title font, 20px chevron icon.
|
|
2803
|
+
*/
|
|
2804
|
+
type AccordionSize = "sm" | "md" | "lg";
|
|
2805
|
+
/**
|
|
2806
|
+
* Placement of the expand/collapse indicator chevron relative to header text.
|
|
2807
|
+
* - "end": Right-aligned (default).
|
|
2808
|
+
* - "start": Left-aligned before title text.
|
|
2809
|
+
*/
|
|
2810
|
+
type AccordionIndicatorPosition = "start" | "end";
|
|
2654
2811
|
interface AccordionSingleProps {
|
|
2655
2812
|
/** Single expansion mode */
|
|
2656
2813
|
type?: "single" | undefined;
|
|
@@ -2676,21 +2833,30 @@ interface AccordionMultipleProps {
|
|
|
2676
2833
|
collapsible?: never | undefined;
|
|
2677
2834
|
}
|
|
2678
2835
|
type AccordionRootProps = (AccordionSingleProps | AccordionMultipleProps) & Omit<React.HTMLAttributes<HTMLDivElement>, "defaultValue"> & {
|
|
2679
|
-
/** Visual style treatment: outline, separated,
|
|
2836
|
+
/** Visual style treatment: default (outline), separated, borderless (flush), or filled */
|
|
2680
2837
|
variant?: AccordionVariant | undefined;
|
|
2838
|
+
/** Scale and density sizing: sm, md, or lg. Defaults to "md" */
|
|
2839
|
+
size?: AccordionSize | undefined;
|
|
2840
|
+
/** Default alignment of the expand/collapse indicator icon */
|
|
2841
|
+
indicatorPosition?: AccordionIndicatorPosition | undefined;
|
|
2681
2842
|
/** Whether all accordion items are globally disabled */
|
|
2682
2843
|
isDisabled?: boolean | undefined;
|
|
2683
|
-
/** Child Accordion.Item
|
|
2844
|
+
/** Child Accordion elements (Accordion.Item, Accordion.Actions, etc.) */
|
|
2684
2845
|
children: React.ReactNode;
|
|
2685
2846
|
};
|
|
2686
2847
|
type AccordionProps = AccordionRootProps;
|
|
2687
2848
|
interface AccordionContextValue {
|
|
2688
2849
|
type: AccordionType;
|
|
2689
2850
|
variant: AccordionVariant;
|
|
2851
|
+
size: AccordionSize;
|
|
2852
|
+
indicatorPosition: AccordionIndicatorPosition;
|
|
2690
2853
|
collapsible: boolean;
|
|
2691
2854
|
isDisabled: boolean;
|
|
2692
2855
|
expandedValues: string[];
|
|
2693
2856
|
toggleItem: (value: string) => void;
|
|
2857
|
+
expandAll: () => void;
|
|
2858
|
+
collapseAll: () => void;
|
|
2859
|
+
registerItem: (value: string, isDisabled: boolean) => () => void;
|
|
2694
2860
|
rootRef: React.RefObject<HTMLDivElement | null>;
|
|
2695
2861
|
}
|
|
2696
2862
|
interface AccordionItemProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
@@ -2714,11 +2880,27 @@ interface AccordionHeaderProps extends React.HTMLAttributes<HTMLHeadingElement>
|
|
|
2714
2880
|
/** Child Accordion.Trigger element */
|
|
2715
2881
|
children: React.ReactNode;
|
|
2716
2882
|
}
|
|
2717
|
-
interface AccordionTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
2883
|
+
interface AccordionTriggerProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "title"> {
|
|
2718
2884
|
/** Delegate button element rendering via Slot primitive */
|
|
2719
2885
|
asChild?: boolean | undefined;
|
|
2720
|
-
/**
|
|
2721
|
-
|
|
2886
|
+
/** Explicit title text or element */
|
|
2887
|
+
title?: React.ReactNode | undefined;
|
|
2888
|
+
/** Optional secondary subtitle or description below the title */
|
|
2889
|
+
description?: React.ReactNode | undefined;
|
|
2890
|
+
/** Optional decorative leading icon before title text */
|
|
2891
|
+
leadingIcon?: React.ReactNode | undefined;
|
|
2892
|
+
/** Optional trailing badge, count, or metadata element */
|
|
2893
|
+
trailingBadge?: React.ReactNode | undefined;
|
|
2894
|
+
/** Custom expand/collapse indicator icon or render function */
|
|
2895
|
+
indicator?: React.ReactNode | ((props: {
|
|
2896
|
+
isOpen: boolean;
|
|
2897
|
+
}) => React.ReactNode) | undefined;
|
|
2898
|
+
/** Alignment of the expand/collapse indicator icon for this trigger */
|
|
2899
|
+
indicatorPosition?: AccordionIndicatorPosition | undefined;
|
|
2900
|
+
/** Whether to suppress rendering the built-in expand/collapse indicator */
|
|
2901
|
+
hideIndicator?: boolean | undefined;
|
|
2902
|
+
/** Trigger content when not using title prop, or custom children */
|
|
2903
|
+
children?: React.ReactNode | undefined;
|
|
2722
2904
|
}
|
|
2723
2905
|
interface AccordionContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
2724
2906
|
/** Panel body elements */
|
|
@@ -2727,13 +2909,23 @@ interface AccordionContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
2727
2909
|
interface AccordionIconProps extends React.SVGAttributes<SVGSVGElement> {
|
|
2728
2910
|
className?: string | undefined;
|
|
2729
2911
|
}
|
|
2912
|
+
interface AccordionActionsProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
2913
|
+
/** Helper buttons such as Accordion.ExpandAll and Accordion.CollapseAll */
|
|
2914
|
+
children?: React.ReactNode | undefined;
|
|
2915
|
+
}
|
|
2916
|
+
interface AccordionExpandAllProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
2917
|
+
children?: React.ReactNode | undefined;
|
|
2918
|
+
}
|
|
2919
|
+
interface AccordionCollapseAllProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
2920
|
+
children?: React.ReactNode | undefined;
|
|
2921
|
+
}
|
|
2730
2922
|
|
|
2731
2923
|
declare const AccordionContext: React.Context<AccordionContextValue | null>;
|
|
2732
2924
|
declare const useAccordionContext: () => AccordionContextValue;
|
|
2733
2925
|
declare const AccordionItemContext: React.Context<AccordionItemContextValue | null>;
|
|
2734
2926
|
declare const useAccordionItemContext: () => AccordionItemContextValue;
|
|
2735
2927
|
/**
|
|
2736
|
-
* Accordion.Root provides expansion state management and keyboard navigation
|
|
2928
|
+
* Accordion.Root provides expansion state management, variant theming, and keyboard navigation.
|
|
2737
2929
|
*/
|
|
2738
2930
|
declare const AccordionRoot: React.ForwardRefExoticComponent<AccordionRootProps & React.RefAttributes<HTMLDivElement>>;
|
|
2739
2931
|
/**
|
|
@@ -2744,18 +2936,31 @@ declare const AccordionItem: React.ForwardRefExoticComponent<AccordionItemProps
|
|
|
2744
2936
|
* Accordion.Header renders a semantic heading wrapper (h2 - h6) around the trigger button.
|
|
2745
2937
|
*/
|
|
2746
2938
|
declare const AccordionHeader: React.ForwardRefExoticComponent<AccordionHeaderProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
2939
|
+
/**
|
|
2940
|
+
* Accordion.Icon renders a chevron SVG icon that smoothly rotates 180° when expanded.
|
|
2941
|
+
*/
|
|
2942
|
+
declare const AccordionIcon: React.ForwardRefExoticComponent<AccordionIconProps & React.RefAttributes<SVGSVGElement>>;
|
|
2747
2943
|
/**
|
|
2748
2944
|
* Accordion.Trigger renders the interactive button that toggles expansion.
|
|
2945
|
+
* Supports structured titles, descriptions, leading icons, badges, and custom indicators.
|
|
2749
2946
|
*/
|
|
2750
2947
|
declare const AccordionTrigger: React.ForwardRefExoticComponent<AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
2751
2948
|
/**
|
|
2752
|
-
* Accordion.Content renders the collapsible body region with CSS grid height
|
|
2949
|
+
* Accordion.Content renders the collapsible body region with pure CSS grid height transitions.
|
|
2753
2950
|
*/
|
|
2754
2951
|
declare const AccordionContent: React.ForwardRefExoticComponent<AccordionContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
2755
2952
|
/**
|
|
2756
|
-
* Accordion.
|
|
2953
|
+
* Accordion.Actions provides an optional container for bulk operations (Expand All / Collapse All).
|
|
2757
2954
|
*/
|
|
2758
|
-
declare const
|
|
2955
|
+
declare const AccordionActions: React.ForwardRefExoticComponent<AccordionActionsProps & React.RefAttributes<HTMLDivElement>>;
|
|
2956
|
+
/**
|
|
2957
|
+
* Accordion.ExpandAll triggers expansion of all eligible items in the accordion.
|
|
2958
|
+
*/
|
|
2959
|
+
declare const AccordionExpandAll: React.ForwardRefExoticComponent<AccordionExpandAllProps & React.RefAttributes<HTMLButtonElement>>;
|
|
2960
|
+
/**
|
|
2961
|
+
* Accordion.CollapseAll triggers collapse of all expanded items in the accordion.
|
|
2962
|
+
*/
|
|
2963
|
+
declare const AccordionCollapseAll: React.ForwardRefExoticComponent<AccordionCollapseAllProps & React.RefAttributes<HTMLButtonElement>>;
|
|
2759
2964
|
interface AccordionComponent extends React.ForwardRefExoticComponent<AccordionRootProps & React.RefAttributes<HTMLDivElement>> {
|
|
2760
2965
|
Root: typeof AccordionRoot;
|
|
2761
2966
|
Item: typeof AccordionItem;
|
|
@@ -2763,6 +2968,9 @@ interface AccordionComponent extends React.ForwardRefExoticComponent<AccordionRo
|
|
|
2763
2968
|
Trigger: typeof AccordionTrigger;
|
|
2764
2969
|
Content: typeof AccordionContent;
|
|
2765
2970
|
Icon: typeof AccordionIcon;
|
|
2971
|
+
Actions: typeof AccordionActions;
|
|
2972
|
+
ExpandAll: typeof AccordionExpandAll;
|
|
2973
|
+
CollapseAll: typeof AccordionCollapseAll;
|
|
2766
2974
|
}
|
|
2767
2975
|
declare const Accordion: AccordionComponent;
|
|
2768
2976
|
|
|
@@ -3075,6 +3283,10 @@ interface ComboboxInputProps extends Omit<React.InputHTMLAttributes<HTMLInputEle
|
|
|
3075
3283
|
/** When true, delegates rendering to child element via Slot */
|
|
3076
3284
|
asChild?: boolean | undefined;
|
|
3077
3285
|
}
|
|
3286
|
+
interface ComboboxActionsProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3287
|
+
/** When true, delegates rendering to child element via Slot */
|
|
3288
|
+
asChild?: boolean | undefined;
|
|
3289
|
+
}
|
|
3078
3290
|
interface ComboboxTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
3079
3291
|
/** When true, delegates rendering to child element via Slot */
|
|
3080
3292
|
asChild?: boolean | undefined;
|
|
@@ -3160,6 +3372,8 @@ interface ComboboxContextValue {
|
|
|
3160
3372
|
updateItemVisibility: (id: string, isVisible: boolean) => void;
|
|
3161
3373
|
visibleItems: RegisteredItem[];
|
|
3162
3374
|
filteredCount: number;
|
|
3375
|
+
placeholder?: string | undefined;
|
|
3376
|
+
isPositioned?: boolean | undefined;
|
|
3163
3377
|
}
|
|
3164
3378
|
|
|
3165
3379
|
declare function useComboboxContext(): ComboboxContextValue;
|
|
@@ -3167,6 +3381,7 @@ declare const useCombobox: typeof useComboboxContext;
|
|
|
3167
3381
|
declare const ComboboxRoot: React.ForwardRefExoticComponent<ComboboxRootProps<string | string[]> & React.RefAttributes<HTMLDivElement>>;
|
|
3168
3382
|
declare const ComboboxControl: React.ForwardRefExoticComponent<ComboboxControlProps & React.RefAttributes<HTMLDivElement>>;
|
|
3169
3383
|
declare const ComboboxInput: React.ForwardRefExoticComponent<ComboboxInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
3384
|
+
declare const ComboboxActions: React.ForwardRefExoticComponent<ComboboxActionsProps & React.RefAttributes<HTMLDivElement>>;
|
|
3170
3385
|
declare const ComboboxTrigger: React.ForwardRefExoticComponent<ComboboxTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
3171
3386
|
declare const ComboboxPortal: React.FC<ComboboxPortalProps>;
|
|
3172
3387
|
declare const ComboboxContent: React.ForwardRefExoticComponent<ComboboxContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -3180,6 +3395,7 @@ interface ComboboxComponent extends React.ForwardRefExoticComponent<ComboboxProp
|
|
|
3180
3395
|
Root: typeof ComboboxRoot;
|
|
3181
3396
|
Control: typeof ComboboxControl;
|
|
3182
3397
|
Input: typeof ComboboxInput;
|
|
3398
|
+
Actions: typeof ComboboxActions;
|
|
3183
3399
|
Trigger: typeof ComboboxTrigger;
|
|
3184
3400
|
Portal: typeof ComboboxPortal;
|
|
3185
3401
|
Content: typeof ComboboxContent;
|
|
@@ -3224,6 +3440,7 @@ interface SelectContextValue<TValue extends string = string> {
|
|
|
3224
3440
|
setFloating: (node: HTMLElement | null) => void;
|
|
3225
3441
|
};
|
|
3226
3442
|
floatingStyles: React.CSSProperties;
|
|
3443
|
+
isPositioned?: boolean;
|
|
3227
3444
|
}
|
|
3228
3445
|
interface SelectRootProps<TValue extends string = string> {
|
|
3229
3446
|
value?: TValue | undefined;
|
|
@@ -3695,4 +3912,1950 @@ declare const Table: React.ForwardRefExoticComponent<TableRootProps & React.RefA
|
|
|
3695
3912
|
Td: React.ForwardRefExoticComponent<TableCellProps & React.RefAttributes<HTMLTableCellElement>>;
|
|
3696
3913
|
};
|
|
3697
3914
|
|
|
3698
|
-
|
|
3915
|
+
type SpinnerSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
3916
|
+
type SpinnerColorScheme = "primary" | "neutral" | "success" | "danger" | "warning";
|
|
3917
|
+
interface SpinnerProps extends React.SVGAttributes<SVGSVGElement> {
|
|
3918
|
+
/**
|
|
3919
|
+
* The size dimension of the spinner.
|
|
3920
|
+
* @default "md"
|
|
3921
|
+
*/
|
|
3922
|
+
size?: SpinnerSize;
|
|
3923
|
+
/**
|
|
3924
|
+
* The semantic color scheme of the spinner.
|
|
3925
|
+
* @default "primary"
|
|
3926
|
+
*/
|
|
3927
|
+
colorScheme?: SpinnerColorScheme;
|
|
3928
|
+
/**
|
|
3929
|
+
* An accessible label for screen readers.
|
|
3930
|
+
* When provided, sets `role="status"`. When omitted, spinner is marked `aria-hidden="true"`.
|
|
3931
|
+
* @default "Loading..."
|
|
3932
|
+
*/
|
|
3933
|
+
label?: string;
|
|
3934
|
+
/**
|
|
3935
|
+
* Stroke width thickness of the spinner head in viewBox units.
|
|
3936
|
+
* @default 3
|
|
3937
|
+
*/
|
|
3938
|
+
thickness?: number;
|
|
3939
|
+
}
|
|
3940
|
+
|
|
3941
|
+
/**
|
|
3942
|
+
* Spinner indicates indeterminate background activity or content loading.
|
|
3943
|
+
*
|
|
3944
|
+
* @example
|
|
3945
|
+
* ```tsx
|
|
3946
|
+
* <Spinner size="md" colorScheme="primary" label="Loading content..." />
|
|
3947
|
+
* ```
|
|
3948
|
+
*/
|
|
3949
|
+
declare const Spinner: React.ForwardRefExoticComponent<SpinnerProps & React.RefAttributes<SVGSVGElement>>;
|
|
3950
|
+
|
|
3951
|
+
type SkeletonVariant = "text" | "circular" | "rectangular" | "rounded";
|
|
3952
|
+
type SkeletonAnimation = "pulse" | "wave" | "none";
|
|
3953
|
+
interface SkeletonProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3954
|
+
/**
|
|
3955
|
+
* Visual shape of the skeleton placeholder.
|
|
3956
|
+
* @default "text"
|
|
3957
|
+
*/
|
|
3958
|
+
variant?: SkeletonVariant;
|
|
3959
|
+
/**
|
|
3960
|
+
* Explicit width dimension (number in pixels or CSS length string).
|
|
3961
|
+
*/
|
|
3962
|
+
width?: string | number;
|
|
3963
|
+
/**
|
|
3964
|
+
* Explicit height dimension (number in pixels or CSS length string).
|
|
3965
|
+
*/
|
|
3966
|
+
height?: string | number;
|
|
3967
|
+
/**
|
|
3968
|
+
* If true, renders the wrapped children instead of the skeleton placeholder.
|
|
3969
|
+
* @default false
|
|
3970
|
+
*/
|
|
3971
|
+
isLoaded?: boolean;
|
|
3972
|
+
/**
|
|
3973
|
+
* Animation style applied while loading.
|
|
3974
|
+
* @default "pulse"
|
|
3975
|
+
*/
|
|
3976
|
+
animation?: SkeletonAnimation;
|
|
3977
|
+
/**
|
|
3978
|
+
* Children to display when `isLoaded` is true.
|
|
3979
|
+
*/
|
|
3980
|
+
children?: React.ReactNode;
|
|
3981
|
+
}
|
|
3982
|
+
|
|
3983
|
+
/**
|
|
3984
|
+
* Skeleton displays a placeholder preview of content while data is loading.
|
|
3985
|
+
*
|
|
3986
|
+
* @example
|
|
3987
|
+
* ```tsx
|
|
3988
|
+
* <Skeleton variant="circular" width={40} height={40} />
|
|
3989
|
+
* <Skeleton variant="rectangular" width="100%" height={200} />
|
|
3990
|
+
* <Skeleton isLoaded={!isLoading}><ProfileCard /></Skeleton>
|
|
3991
|
+
* ```
|
|
3992
|
+
*/
|
|
3993
|
+
declare const Skeleton: React.ForwardRefExoticComponent<SkeletonProps & React.RefAttributes<HTMLDivElement>>;
|
|
3994
|
+
|
|
3995
|
+
type ProgressVariant = "linear" | "circular";
|
|
3996
|
+
type ProgressSize = "xs" | "sm" | "md" | "lg";
|
|
3997
|
+
type ProgressColorScheme = "primary" | "success" | "warning" | "danger";
|
|
3998
|
+
interface ProgressProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3999
|
+
/**
|
|
4000
|
+
* Current progress value.
|
|
4001
|
+
* If omitted or undefined, component renders in indeterminate mode.
|
|
4002
|
+
*/
|
|
4003
|
+
value?: number;
|
|
4004
|
+
/**
|
|
4005
|
+
* The minimum value of the progress bar.
|
|
4006
|
+
* @default 0
|
|
4007
|
+
*/
|
|
4008
|
+
min?: number;
|
|
4009
|
+
/**
|
|
4010
|
+
* The maximum value of the progress bar.
|
|
4011
|
+
* @default 100
|
|
4012
|
+
*/
|
|
4013
|
+
max?: number;
|
|
4014
|
+
/**
|
|
4015
|
+
* Size dimension of the progress track.
|
|
4016
|
+
* @default "md"
|
|
4017
|
+
*/
|
|
4018
|
+
size?: ProgressSize;
|
|
4019
|
+
/**
|
|
4020
|
+
* Visual presentation variant.
|
|
4021
|
+
* @default "linear"
|
|
4022
|
+
*/
|
|
4023
|
+
variant?: ProgressVariant;
|
|
4024
|
+
/**
|
|
4025
|
+
* Semantic color scheme.
|
|
4026
|
+
* @default "primary"
|
|
4027
|
+
*/
|
|
4028
|
+
colorScheme?: ProgressColorScheme;
|
|
4029
|
+
/**
|
|
4030
|
+
* If true, displays diagonal stripes across the linear progress track.
|
|
4031
|
+
* @default false
|
|
4032
|
+
*/
|
|
4033
|
+
hasStripe?: boolean;
|
|
4034
|
+
/**
|
|
4035
|
+
* If true, animates the diagonal stripes.
|
|
4036
|
+
* @default false
|
|
4037
|
+
*/
|
|
4038
|
+
isAnimated?: boolean;
|
|
4039
|
+
/**
|
|
4040
|
+
* If true, displays a numeric percentage label.
|
|
4041
|
+
* @default false
|
|
4042
|
+
*/
|
|
4043
|
+
showValueLabel?: boolean;
|
|
4044
|
+
/**
|
|
4045
|
+
* Human-readable text representation of value for screen readers.
|
|
4046
|
+
*/
|
|
4047
|
+
valueText?: string;
|
|
4048
|
+
}
|
|
4049
|
+
|
|
4050
|
+
/**
|
|
4051
|
+
* Progress communicates the status of a deterministic or indeterminate background process.
|
|
4052
|
+
*
|
|
4053
|
+
* @example
|
|
4054
|
+
* ```tsx
|
|
4055
|
+
* <Progress value={45} colorScheme="primary" />
|
|
4056
|
+
* <Progress variant="circular" value={75} showValueLabel />
|
|
4057
|
+
* <Progress variant="linear" hasStripe isAnimated />
|
|
4058
|
+
* ```
|
|
4059
|
+
*/
|
|
4060
|
+
declare const Progress: React.ForwardRefExoticComponent<ProgressProps & React.RefAttributes<HTMLDivElement>>;
|
|
4061
|
+
|
|
4062
|
+
interface DateRange {
|
|
4063
|
+
startDate?: Date | null | undefined;
|
|
4064
|
+
endDate?: Date | null | undefined;
|
|
4065
|
+
}
|
|
4066
|
+
interface CalendarProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> {
|
|
4067
|
+
/**
|
|
4068
|
+
* The currently selected date in controlled mode.
|
|
4069
|
+
*/
|
|
4070
|
+
value?: Date | null | undefined;
|
|
4071
|
+
/**
|
|
4072
|
+
* The initial selected date in uncontrolled mode.
|
|
4073
|
+
*/
|
|
4074
|
+
defaultValue?: Date | null | undefined;
|
|
4075
|
+
/**
|
|
4076
|
+
* Callback fired when a date is selected.
|
|
4077
|
+
*/
|
|
4078
|
+
onValueChange?: ((date: Date) => void) | undefined;
|
|
4079
|
+
/**
|
|
4080
|
+
* If true, enables date range selection mode.
|
|
4081
|
+
* @default false
|
|
4082
|
+
*/
|
|
4083
|
+
isRange?: boolean | undefined;
|
|
4084
|
+
/**
|
|
4085
|
+
* The currently selected date range in controlled mode.
|
|
4086
|
+
*/
|
|
4087
|
+
rangeValue?: DateRange | null | undefined;
|
|
4088
|
+
/**
|
|
4089
|
+
* The initial selected date range in uncontrolled mode.
|
|
4090
|
+
*/
|
|
4091
|
+
defaultRangeValue?: DateRange | null | undefined;
|
|
4092
|
+
/**
|
|
4093
|
+
* Callback fired when date range changes.
|
|
4094
|
+
*/
|
|
4095
|
+
onRangeChange?: ((range: DateRange) => void) | undefined;
|
|
4096
|
+
/**
|
|
4097
|
+
* Earliest selectable calendar date (inclusive).
|
|
4098
|
+
*/
|
|
4099
|
+
minDate?: Date | null | undefined;
|
|
4100
|
+
/**
|
|
4101
|
+
* Latest selectable calendar date (inclusive).
|
|
4102
|
+
*/
|
|
4103
|
+
maxDate?: Date | null | undefined;
|
|
4104
|
+
/**
|
|
4105
|
+
* Predicate callback to evaluate whether a given calendar date is disabled.
|
|
4106
|
+
*/
|
|
4107
|
+
isDateDisabled?: ((date: Date) => boolean) | undefined;
|
|
4108
|
+
/**
|
|
4109
|
+
* Starting day of the week (0 = Sunday, 1 = Monday, 6 = Saturday).
|
|
4110
|
+
* @default 0
|
|
4111
|
+
*/
|
|
4112
|
+
firstDayOfWeek?: (0 | 1 | 6) | undefined;
|
|
4113
|
+
/**
|
|
4114
|
+
* BCP 47 locale tag used for localized month and weekday names.
|
|
4115
|
+
* @default "en-US"
|
|
4116
|
+
*/
|
|
4117
|
+
locale?: string | undefined;
|
|
4118
|
+
/**
|
|
4119
|
+
* Initial focused / visible date when `value` or `defaultValue` is unset.
|
|
4120
|
+
* Defaults to current local date.
|
|
4121
|
+
*/
|
|
4122
|
+
defaultFocusedDate?: Date | undefined;
|
|
4123
|
+
/**
|
|
4124
|
+
* Accessible label for the calendar grid table.
|
|
4125
|
+
* @default "Calendar"
|
|
4126
|
+
*/
|
|
4127
|
+
"aria-label"?: string | undefined;
|
|
4128
|
+
}
|
|
4129
|
+
|
|
4130
|
+
/**
|
|
4131
|
+
* Calendar provides an accessible WAI-ARIA APG compliant grid for selecting single calendar dates.
|
|
4132
|
+
*
|
|
4133
|
+
* @example
|
|
4134
|
+
* ```tsx
|
|
4135
|
+
* <Calendar value={selectedDate} onValueChange={setSelectedDate} />
|
|
4136
|
+
* ```
|
|
4137
|
+
*/
|
|
4138
|
+
declare const Calendar: React.ForwardRefExoticComponent<CalendarProps & React.RefAttributes<HTMLDivElement>>;
|
|
4139
|
+
|
|
4140
|
+
interface DatePickerProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> {
|
|
4141
|
+
/**
|
|
4142
|
+
* The currently selected date in controlled mode.
|
|
4143
|
+
*/
|
|
4144
|
+
value?: Date | null | undefined;
|
|
4145
|
+
/**
|
|
4146
|
+
* The initial selected date in uncontrolled mode.
|
|
4147
|
+
*/
|
|
4148
|
+
defaultValue?: Date | null | undefined;
|
|
4149
|
+
/**
|
|
4150
|
+
* Callback fired when the selected date changes.
|
|
4151
|
+
*/
|
|
4152
|
+
onValueChange?: ((date: Date | null) => void) | undefined;
|
|
4153
|
+
/**
|
|
4154
|
+
* Display date format string (e.g. "YYYY-MM-DD", "MM/DD/YYYY", "DD/MM/YYYY").
|
|
4155
|
+
* @default "YYYY-MM-DD"
|
|
4156
|
+
*/
|
|
4157
|
+
format?: string | undefined;
|
|
4158
|
+
/**
|
|
4159
|
+
* Placeholder text shown when input is empty. Defaults to the format pattern.
|
|
4160
|
+
*/
|
|
4161
|
+
placeholder?: string | undefined;
|
|
4162
|
+
/**
|
|
4163
|
+
* Controlled open state of the calendar dropdown popover.
|
|
4164
|
+
*/
|
|
4165
|
+
isOpen?: boolean | undefined;
|
|
4166
|
+
/**
|
|
4167
|
+
* Initial open state in uncontrolled mode.
|
|
4168
|
+
* @default false
|
|
4169
|
+
*/
|
|
4170
|
+
defaultOpen?: boolean | undefined;
|
|
4171
|
+
/**
|
|
4172
|
+
* Callback fired when the popover open state changes.
|
|
4173
|
+
*/
|
|
4174
|
+
onOpenChange?: ((open: boolean) => void) | undefined;
|
|
4175
|
+
/**
|
|
4176
|
+
* Disables user interaction.
|
|
4177
|
+
* @default false
|
|
4178
|
+
*/
|
|
4179
|
+
isDisabled?: boolean | undefined;
|
|
4180
|
+
/**
|
|
4181
|
+
* Sets invalid error appearance for form validation.
|
|
4182
|
+
* @default false
|
|
4183
|
+
*/
|
|
4184
|
+
isInvalid?: boolean | undefined;
|
|
4185
|
+
/**
|
|
4186
|
+
* Whether to display a clear button when a date is selected.
|
|
4187
|
+
* @default true
|
|
4188
|
+
*/
|
|
4189
|
+
isClearable?: boolean | undefined;
|
|
4190
|
+
/**
|
|
4191
|
+
* Earliest selectable date (inclusive).
|
|
4192
|
+
*/
|
|
4193
|
+
minDate?: Date | null | undefined;
|
|
4194
|
+
/**
|
|
4195
|
+
* Latest selectable date (inclusive).
|
|
4196
|
+
*/
|
|
4197
|
+
maxDate?: Date | null | undefined;
|
|
4198
|
+
/**
|
|
4199
|
+
* Custom predicate callback to disable specific calendar dates.
|
|
4200
|
+
*/
|
|
4201
|
+
isDateDisabled?: ((date: Date) => boolean) | undefined;
|
|
4202
|
+
/**
|
|
4203
|
+
* Starting day of the week (0 = Sunday, 1 = Monday, 6 = Saturday).
|
|
4204
|
+
* @default 0
|
|
4205
|
+
*/
|
|
4206
|
+
firstDayOfWeek?: (0 | 1 | 6) | undefined;
|
|
4207
|
+
/**
|
|
4208
|
+
* BCP 47 locale tag for formatting and localization.
|
|
4209
|
+
* @default "en-US"
|
|
4210
|
+
*/
|
|
4211
|
+
locale?: string | undefined;
|
|
4212
|
+
/**
|
|
4213
|
+
* Size token for input and calendar.
|
|
4214
|
+
* @default "md"
|
|
4215
|
+
*/
|
|
4216
|
+
size?: ("sm" | "md" | "lg") | undefined;
|
|
4217
|
+
/**
|
|
4218
|
+
* Accessible HTML id attribute for the underlying input.
|
|
4219
|
+
*/
|
|
4220
|
+
id?: string | undefined;
|
|
4221
|
+
/**
|
|
4222
|
+
* Form field name attribute for form submission.
|
|
4223
|
+
*/
|
|
4224
|
+
name?: string | undefined;
|
|
4225
|
+
/**
|
|
4226
|
+
* Accessible label for screen readers.
|
|
4227
|
+
*/
|
|
4228
|
+
"aria-label"?: string | undefined;
|
|
4229
|
+
}
|
|
4230
|
+
|
|
4231
|
+
/**
|
|
4232
|
+
* DatePicker combines a formatted text input with an anchored calendar popover dropdown.
|
|
4233
|
+
*
|
|
4234
|
+
* @example
|
|
4235
|
+
* ```tsx
|
|
4236
|
+
* <DatePicker value={date} onValueChange={setDate} />
|
|
4237
|
+
* <DatePicker format="MM/DD/YYYY" isClearable />
|
|
4238
|
+
* ```
|
|
4239
|
+
*/
|
|
4240
|
+
declare const DatePicker: React.ForwardRefExoticComponent<DatePickerProps & React.RefAttributes<HTMLDivElement>>;
|
|
4241
|
+
|
|
4242
|
+
/**
|
|
4243
|
+
* Chellaa React — Pure Date Utilities
|
|
4244
|
+
* Zero-dependency, timezone-safe date manipulation strictly operating on local calendar dates.
|
|
4245
|
+
*/
|
|
4246
|
+
interface CalendarGridDay {
|
|
4247
|
+
date: Date;
|
|
4248
|
+
dayNumber: number;
|
|
4249
|
+
isCurrentMonth: boolean;
|
|
4250
|
+
isToday: boolean;
|
|
4251
|
+
isPrevMonth: boolean;
|
|
4252
|
+
isNextMonth: boolean;
|
|
4253
|
+
}
|
|
4254
|
+
/**
|
|
4255
|
+
* Determines whether a given year is a leap year according to Gregorian calendar rules.
|
|
4256
|
+
*/
|
|
4257
|
+
declare function isLeapYear(year: number): boolean;
|
|
4258
|
+
/**
|
|
4259
|
+
* Returns the number of days in the specified month (0-indexed: 0 = January, 11 = December).
|
|
4260
|
+
*/
|
|
4261
|
+
declare function getDaysInMonth(year: number, monthIndex: number): number;
|
|
4262
|
+
/**
|
|
4263
|
+
* Creates a Date instance representing the given year, 0-indexed month, and day in local time.
|
|
4264
|
+
*/
|
|
4265
|
+
declare function createLocalDate(year: number, monthIndex: number, day: number): Date;
|
|
4266
|
+
/**
|
|
4267
|
+
* Compares two dates by calendar day (ignoring time components).
|
|
4268
|
+
*/
|
|
4269
|
+
declare function isSameDay(a?: Date | null, b?: Date | null): boolean;
|
|
4270
|
+
/**
|
|
4271
|
+
* Compares whether two dates fall in the same calendar month and year.
|
|
4272
|
+
*/
|
|
4273
|
+
declare function isSameMonth(a?: Date | null, b?: Date | null): boolean;
|
|
4274
|
+
/**
|
|
4275
|
+
* Returns true if calendar day `a` is strictly before calendar day `b`.
|
|
4276
|
+
*/
|
|
4277
|
+
declare function isDateBefore(a: Date, b: Date): boolean;
|
|
4278
|
+
/**
|
|
4279
|
+
* Returns true if calendar day `a` is strictly after calendar day `b`.
|
|
4280
|
+
*/
|
|
4281
|
+
declare function isDateAfter(a: Date, b: Date): boolean;
|
|
4282
|
+
/**
|
|
4283
|
+
* Checks whether a date falls within inclusive min and max bounds.
|
|
4284
|
+
*/
|
|
4285
|
+
declare function isDateInRange(date: Date, minDate?: Date | null, maxDate?: Date | null): boolean;
|
|
4286
|
+
/**
|
|
4287
|
+
* Adds or subtracts days from a given date safely.
|
|
4288
|
+
*/
|
|
4289
|
+
declare function addDays(date: Date, amount: number): Date;
|
|
4290
|
+
/**
|
|
4291
|
+
* Adds or subtracts months from a given date, clamping the day to the last valid day of target month.
|
|
4292
|
+
*/
|
|
4293
|
+
declare function addMonths(date: Date, amount: number): Date;
|
|
4294
|
+
/**
|
|
4295
|
+
* Adds or subtracts years from a given date, handling Feb 29 leap years properly.
|
|
4296
|
+
*/
|
|
4297
|
+
declare function addYears(date: Date, amount: number): Date;
|
|
4298
|
+
/**
|
|
4299
|
+
* Generates an authoritative 6-row × 7-day (42 cells) calendar matrix for stable UI layout.
|
|
4300
|
+
*/
|
|
4301
|
+
declare function getCalendarGrid(year: number, monthIndex: number, firstDayOfWeek?: 0 | 1 | 6): CalendarGridDay[];
|
|
4302
|
+
/**
|
|
4303
|
+
* Returns localized weekday abbreviations and full names ordered by `firstDayOfWeek`.
|
|
4304
|
+
*/
|
|
4305
|
+
declare function getWeekdayLabels(locale?: string, firstDayOfWeek?: 0 | 1 | 6): {
|
|
4306
|
+
key: number;
|
|
4307
|
+
narrow: string;
|
|
4308
|
+
short: string;
|
|
4309
|
+
long: string;
|
|
4310
|
+
}[];
|
|
4311
|
+
/**
|
|
4312
|
+
* Returns localized month name.
|
|
4313
|
+
*/
|
|
4314
|
+
declare function getMonthLabel(year: number, monthIndex: number, locale?: string, style?: "long" | "short"): string;
|
|
4315
|
+
/**
|
|
4316
|
+
* Formats a local date without UTC shifts.
|
|
4317
|
+
*/
|
|
4318
|
+
declare function formatLocalDate(date?: Date | null, format?: string, locale?: string): string;
|
|
4319
|
+
/**
|
|
4320
|
+
* Parses user input strings into a valid local Date or returns null.
|
|
4321
|
+
*/
|
|
4322
|
+
declare function parseLocalDate(str?: string | null): Date | null;
|
|
4323
|
+
|
|
4324
|
+
type DropdownMenuSide = "top" | "bottom" | "left" | "right";
|
|
4325
|
+
type DropdownMenuAlign = "start" | "center" | "end";
|
|
4326
|
+
interface DropdownMenuRootProps {
|
|
4327
|
+
/** Controlled open state */
|
|
4328
|
+
open?: boolean;
|
|
4329
|
+
/** Uncontrolled initial open state */
|
|
4330
|
+
defaultOpen?: boolean;
|
|
4331
|
+
/** Callback fired when open state changes */
|
|
4332
|
+
onOpenChange?: (open: boolean) => void;
|
|
4333
|
+
/** Whether the menu is modal (blocks outside pointer interaction) */
|
|
4334
|
+
modal?: boolean;
|
|
4335
|
+
children?: React.ReactNode;
|
|
4336
|
+
}
|
|
4337
|
+
interface DropdownMenuTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
4338
|
+
asChild?: boolean;
|
|
4339
|
+
children?: React.ReactNode;
|
|
4340
|
+
}
|
|
4341
|
+
interface DropdownMenuContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4342
|
+
side?: DropdownMenuSide;
|
|
4343
|
+
align?: DropdownMenuAlign;
|
|
4344
|
+
sideOffset?: number;
|
|
4345
|
+
alignOffset?: number;
|
|
4346
|
+
collisionPadding?: number;
|
|
4347
|
+
asChild?: boolean;
|
|
4348
|
+
children?: React.ReactNode;
|
|
4349
|
+
}
|
|
4350
|
+
interface DropdownMenuItemProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4351
|
+
disabled?: boolean;
|
|
4352
|
+
inset?: boolean;
|
|
4353
|
+
onSelect?: () => void;
|
|
4354
|
+
closeOnSelect?: boolean;
|
|
4355
|
+
asChild?: boolean;
|
|
4356
|
+
children?: React.ReactNode;
|
|
4357
|
+
}
|
|
4358
|
+
interface DropdownMenuCheckboxItemProps extends Omit<DropdownMenuItemProps, "onSelect"> {
|
|
4359
|
+
checked?: boolean;
|
|
4360
|
+
defaultChecked?: boolean;
|
|
4361
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
4362
|
+
}
|
|
4363
|
+
interface DropdownMenuRadioGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4364
|
+
value?: string;
|
|
4365
|
+
defaultValue?: string;
|
|
4366
|
+
onValueChange?: (value: string) => void;
|
|
4367
|
+
children?: React.ReactNode;
|
|
4368
|
+
}
|
|
4369
|
+
interface DropdownMenuRadioItemProps extends DropdownMenuItemProps {
|
|
4370
|
+
value: string;
|
|
4371
|
+
}
|
|
4372
|
+
interface DropdownMenuSeparatorProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4373
|
+
}
|
|
4374
|
+
interface DropdownMenuLabelProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4375
|
+
inset?: boolean;
|
|
4376
|
+
}
|
|
4377
|
+
|
|
4378
|
+
interface MenuItemRecord {
|
|
4379
|
+
id: string;
|
|
4380
|
+
ref: React.RefObject<HTMLElement | null>;
|
|
4381
|
+
disabled: boolean;
|
|
4382
|
+
textValue: string;
|
|
4383
|
+
}
|
|
4384
|
+
interface DropdownMenuContextValue {
|
|
4385
|
+
isOpen: boolean;
|
|
4386
|
+
setIsOpen: (open: boolean) => void;
|
|
4387
|
+
triggerRef: React.MutableRefObject<HTMLElement | null>;
|
|
4388
|
+
contentRef: React.MutableRefObject<HTMLDivElement | null>;
|
|
4389
|
+
registerItem: (item: MenuItemRecord) => () => void;
|
|
4390
|
+
activeIndex: number;
|
|
4391
|
+
setActiveIndex: React.Dispatch<React.SetStateAction<number>>;
|
|
4392
|
+
focusItem: (index: number) => void;
|
|
4393
|
+
items: MenuItemRecord[];
|
|
4394
|
+
onOpenViaKeyboard: () => void;
|
|
4395
|
+
}
|
|
4396
|
+
declare function useDropdownMenuContext(componentName: string): DropdownMenuContextValue;
|
|
4397
|
+
/**
|
|
4398
|
+
* DropdownMenuRoot component managing open state, keyboard navigation, and item registration.
|
|
4399
|
+
*/
|
|
4400
|
+
declare const DropdownMenuRoot: React.FC<DropdownMenuRootProps>;
|
|
4401
|
+
/**
|
|
4402
|
+
* DropdownMenuTrigger - button that toggles the dropdown menu.
|
|
4403
|
+
*/
|
|
4404
|
+
declare const DropdownMenuTrigger: React.ForwardRefExoticComponent<DropdownMenuTriggerProps & React.RefAttributes<HTMLElement>>;
|
|
4405
|
+
/**
|
|
4406
|
+
* DropdownMenuContent - floating panel containing menu items.
|
|
4407
|
+
*/
|
|
4408
|
+
declare const DropdownMenuContent: React.ForwardRefExoticComponent<DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
4409
|
+
/**
|
|
4410
|
+
* DropdownMenuItem - selectable action inside menu.
|
|
4411
|
+
*/
|
|
4412
|
+
declare const DropdownMenuItem: React.ForwardRefExoticComponent<DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
4413
|
+
/**
|
|
4414
|
+
* DropdownMenuCheckboxItem - togglable checkbox item.
|
|
4415
|
+
*/
|
|
4416
|
+
declare const DropdownMenuCheckboxItem: React.ForwardRefExoticComponent<DropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
4417
|
+
/**
|
|
4418
|
+
* DropdownMenuRadioGroup - container for mutually exclusive radio items.
|
|
4419
|
+
*/
|
|
4420
|
+
declare const DropdownMenuRadioGroup: React.ForwardRefExoticComponent<DropdownMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
4421
|
+
/**
|
|
4422
|
+
* DropdownMenuRadioItem - single radio option inside a DropdownMenuRadioGroup.
|
|
4423
|
+
*/
|
|
4424
|
+
declare const DropdownMenuRadioItem: React.ForwardRefExoticComponent<DropdownMenuRadioItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
4425
|
+
/**
|
|
4426
|
+
* DropdownMenuSeparator - visual and semantic separator between items.
|
|
4427
|
+
*/
|
|
4428
|
+
declare const DropdownMenuSeparator: React.ForwardRefExoticComponent<DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>>;
|
|
4429
|
+
/**
|
|
4430
|
+
* DropdownMenuLabel - non-interactive section header inside a menu.
|
|
4431
|
+
*/
|
|
4432
|
+
declare const DropdownMenuLabel: React.ForwardRefExoticComponent<DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>>;
|
|
4433
|
+
/**
|
|
4434
|
+
* DropdownMenu Compound Component
|
|
4435
|
+
*/
|
|
4436
|
+
declare const DropdownMenu: React.FC<DropdownMenuRootProps> & {
|
|
4437
|
+
Root: React.FC<DropdownMenuRootProps>;
|
|
4438
|
+
Trigger: React.ForwardRefExoticComponent<DropdownMenuTriggerProps & React.RefAttributes<HTMLElement>>;
|
|
4439
|
+
Content: React.ForwardRefExoticComponent<DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
4440
|
+
Item: React.ForwardRefExoticComponent<DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
4441
|
+
CheckboxItem: React.ForwardRefExoticComponent<DropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
4442
|
+
RadioGroup: React.ForwardRefExoticComponent<DropdownMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
4443
|
+
RadioItem: React.ForwardRefExoticComponent<DropdownMenuRadioItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
4444
|
+
Separator: React.ForwardRefExoticComponent<DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>>;
|
|
4445
|
+
Label: React.ForwardRefExoticComponent<DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>>;
|
|
4446
|
+
};
|
|
4447
|
+
|
|
4448
|
+
interface ContextMenuRootProps {
|
|
4449
|
+
/** Controlled open state */
|
|
4450
|
+
open?: boolean;
|
|
4451
|
+
/** Uncontrolled initial open state */
|
|
4452
|
+
defaultOpen?: boolean;
|
|
4453
|
+
/** Callback fired when open state changes */
|
|
4454
|
+
onOpenChange?: (open: boolean) => void;
|
|
4455
|
+
/** Whether the menu is modal (blocks outside pointer interaction) */
|
|
4456
|
+
modal?: boolean;
|
|
4457
|
+
children?: React.ReactNode;
|
|
4458
|
+
}
|
|
4459
|
+
interface ContextMenuTriggerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4460
|
+
/** Disables opening the context menu */
|
|
4461
|
+
disabled?: boolean;
|
|
4462
|
+
asChild?: boolean;
|
|
4463
|
+
children?: React.ReactNode;
|
|
4464
|
+
}
|
|
4465
|
+
interface ContextMenuContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4466
|
+
sideOffset?: number;
|
|
4467
|
+
alignOffset?: number;
|
|
4468
|
+
collisionPadding?: number;
|
|
4469
|
+
asChild?: boolean;
|
|
4470
|
+
children?: React.ReactNode;
|
|
4471
|
+
}
|
|
4472
|
+
type ContextMenuItemProps = DropdownMenuItemProps;
|
|
4473
|
+
type ContextMenuCheckboxItemProps = DropdownMenuCheckboxItemProps;
|
|
4474
|
+
type ContextMenuRadioGroupProps = DropdownMenuRadioGroupProps;
|
|
4475
|
+
type ContextMenuRadioItemProps = DropdownMenuRadioItemProps;
|
|
4476
|
+
type ContextMenuSeparatorProps = DropdownMenuSeparatorProps;
|
|
4477
|
+
type ContextMenuLabelProps = DropdownMenuLabelProps;
|
|
4478
|
+
|
|
4479
|
+
/**
|
|
4480
|
+
* ContextMenuRoot - manages open state, virtual pointer anchor, and roving focus.
|
|
4481
|
+
*/
|
|
4482
|
+
declare const ContextMenuRoot: React.FC<ContextMenuRootProps>;
|
|
4483
|
+
/**
|
|
4484
|
+
* ContextMenuTrigger - region that opens menu upon right-click or Shift+F10 / ContextMenu key.
|
|
4485
|
+
*/
|
|
4486
|
+
declare const ContextMenuTrigger: React.ForwardRefExoticComponent<ContextMenuTriggerProps & React.RefAttributes<HTMLDivElement>>;
|
|
4487
|
+
/**
|
|
4488
|
+
* ContextMenuContent - floating panel positioned at the virtual coordinates.
|
|
4489
|
+
*/
|
|
4490
|
+
declare const ContextMenuContent: React.ForwardRefExoticComponent<ContextMenuContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
4491
|
+
declare const ContextMenuItem: React.ForwardRefExoticComponent<DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
4492
|
+
declare const ContextMenuCheckboxItem: React.ForwardRefExoticComponent<DropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
4493
|
+
declare const ContextMenuRadioGroup: React.ForwardRefExoticComponent<DropdownMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
4494
|
+
declare const ContextMenuRadioItem: React.ForwardRefExoticComponent<DropdownMenuRadioItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
4495
|
+
declare const ContextMenuSeparator: React.ForwardRefExoticComponent<DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>>;
|
|
4496
|
+
declare const ContextMenuLabel: React.ForwardRefExoticComponent<DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>>;
|
|
4497
|
+
declare const ContextMenu: React.FC<ContextMenuRootProps> & {
|
|
4498
|
+
Root: React.FC<ContextMenuRootProps>;
|
|
4499
|
+
Trigger: React.ForwardRefExoticComponent<ContextMenuTriggerProps & React.RefAttributes<HTMLDivElement>>;
|
|
4500
|
+
Content: React.ForwardRefExoticComponent<ContextMenuContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
4501
|
+
Item: React.ForwardRefExoticComponent<DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
4502
|
+
CheckboxItem: React.ForwardRefExoticComponent<DropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
4503
|
+
RadioGroup: React.ForwardRefExoticComponent<DropdownMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
4504
|
+
RadioItem: React.ForwardRefExoticComponent<DropdownMenuRadioItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
4505
|
+
Separator: React.ForwardRefExoticComponent<DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>>;
|
|
4506
|
+
Label: React.ForwardRefExoticComponent<DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>>;
|
|
4507
|
+
};
|
|
4508
|
+
|
|
4509
|
+
type DrawerPlacement = "left" | "right" | "top" | "bottom";
|
|
4510
|
+
type DrawerSize = "xs" | "sm" | "md" | "lg" | "xl" | "full";
|
|
4511
|
+
interface DrawerRootProps {
|
|
4512
|
+
/** Controlled open state */
|
|
4513
|
+
open?: boolean;
|
|
4514
|
+
/** Ergonomic alias for open */
|
|
4515
|
+
isOpen?: boolean;
|
|
4516
|
+
/** Uncontrolled initial open state */
|
|
4517
|
+
defaultOpen?: boolean;
|
|
4518
|
+
/** Callback fired when open state changes */
|
|
4519
|
+
onOpenChange?: (open: boolean) => void;
|
|
4520
|
+
/** Callback fired when drawer closes */
|
|
4521
|
+
onClose?: () => void;
|
|
4522
|
+
/** Direction from which the drawer slides in */
|
|
4523
|
+
placement?: DrawerPlacement;
|
|
4524
|
+
/** Sizing scale */
|
|
4525
|
+
size?: DrawerSize;
|
|
4526
|
+
/** If true, pressing Escape dismisses the drawer */
|
|
4527
|
+
closeOnEsc?: boolean;
|
|
4528
|
+
/** If true, clicking the backdrop overlay dismisses the drawer */
|
|
4529
|
+
closeOnOverlayClick?: boolean;
|
|
4530
|
+
/** Explicit element to focus when opened */
|
|
4531
|
+
initialFocusRef?: React.RefObject<HTMLElement | null>;
|
|
4532
|
+
/** Explicit element to focus when closed */
|
|
4533
|
+
finalFocusRef?: React.RefObject<HTMLElement | null>;
|
|
4534
|
+
children?: React.ReactNode;
|
|
4535
|
+
}
|
|
4536
|
+
interface DrawerTriggerProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
4537
|
+
asChild?: boolean;
|
|
4538
|
+
children?: React.ReactNode;
|
|
4539
|
+
}
|
|
4540
|
+
interface DrawerPortalProps {
|
|
4541
|
+
container?: HTMLElement | null;
|
|
4542
|
+
children?: React.ReactNode;
|
|
4543
|
+
}
|
|
4544
|
+
interface DrawerOverlayProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4545
|
+
asChild?: boolean;
|
|
4546
|
+
}
|
|
4547
|
+
interface DrawerContentProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4548
|
+
placement?: DrawerPlacement;
|
|
4549
|
+
size?: DrawerSize;
|
|
4550
|
+
asChild?: boolean;
|
|
4551
|
+
children?: React.ReactNode;
|
|
4552
|
+
}
|
|
4553
|
+
interface DrawerHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4554
|
+
}
|
|
4555
|
+
interface DrawerTitleProps extends React.HTMLAttributes<HTMLHeadingElement> {
|
|
4556
|
+
asChild?: boolean;
|
|
4557
|
+
}
|
|
4558
|
+
interface DrawerDescriptionProps extends React.HTMLAttributes<HTMLParagraphElement> {
|
|
4559
|
+
asChild?: boolean;
|
|
4560
|
+
}
|
|
4561
|
+
interface DrawerBodyProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4562
|
+
}
|
|
4563
|
+
interface DrawerFooterProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4564
|
+
}
|
|
4565
|
+
interface DrawerCloseProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
4566
|
+
asChild?: boolean;
|
|
4567
|
+
}
|
|
4568
|
+
type SheetPlacement = DrawerPlacement;
|
|
4569
|
+
type SheetSize = DrawerSize;
|
|
4570
|
+
type SheetRootProps = DrawerRootProps;
|
|
4571
|
+
type SheetTriggerProps = DrawerTriggerProps;
|
|
4572
|
+
type SheetPortalProps = DrawerPortalProps;
|
|
4573
|
+
type SheetOverlayProps = DrawerOverlayProps;
|
|
4574
|
+
type SheetContentProps = DrawerContentProps;
|
|
4575
|
+
type SheetHeaderProps = DrawerHeaderProps;
|
|
4576
|
+
type SheetTitleProps = DrawerTitleProps;
|
|
4577
|
+
type SheetDescriptionProps = DrawerDescriptionProps;
|
|
4578
|
+
type SheetBodyProps = DrawerBodyProps;
|
|
4579
|
+
type SheetFooterProps = DrawerFooterProps;
|
|
4580
|
+
type SheetCloseProps = DrawerCloseProps;
|
|
4581
|
+
|
|
4582
|
+
interface DrawerContextValue {
|
|
4583
|
+
isOpen: boolean;
|
|
4584
|
+
onOpen: () => void;
|
|
4585
|
+
onClose: () => void;
|
|
4586
|
+
closeOnEsc: boolean;
|
|
4587
|
+
closeOnOverlayClick: boolean;
|
|
4588
|
+
placement: DrawerPlacement;
|
|
4589
|
+
size: DrawerSize;
|
|
4590
|
+
titleId: string;
|
|
4591
|
+
setTitleId: (id: string) => void;
|
|
4592
|
+
descriptionId: string;
|
|
4593
|
+
setDescriptionId: (id: string) => void;
|
|
4594
|
+
initialFocusRef?: React.RefObject<HTMLElement | null> | undefined;
|
|
4595
|
+
finalFocusRef?: React.RefObject<HTMLElement | null> | undefined;
|
|
4596
|
+
triggerRef: React.MutableRefObject<HTMLElement | null>;
|
|
4597
|
+
}
|
|
4598
|
+
declare function useDrawerContext(componentName: string): DrawerContextValue;
|
|
4599
|
+
/**
|
|
4600
|
+
* DrawerRoot component - manages controlled/uncontrolled visibility, placement, and focus refs.
|
|
4601
|
+
*/
|
|
4602
|
+
declare const DrawerRoot: React.FC<DrawerRootProps>;
|
|
4603
|
+
/**
|
|
4604
|
+
* DrawerTrigger - button or custom element that opens the drawer.
|
|
4605
|
+
*/
|
|
4606
|
+
declare const DrawerTrigger: React.ForwardRefExoticComponent<DrawerTriggerProps & React.RefAttributes<HTMLElement>>;
|
|
4607
|
+
/**
|
|
4608
|
+
* DrawerPortal - mounts drawer children into document.body or container.
|
|
4609
|
+
*/
|
|
4610
|
+
declare const DrawerPortal: React.FC<DrawerPortalProps>;
|
|
4611
|
+
/**
|
|
4612
|
+
* DrawerOverlay - background backdrop with dismissal click handling.
|
|
4613
|
+
*/
|
|
4614
|
+
declare const DrawerOverlay: React.ForwardRefExoticComponent<DrawerOverlayProps & React.RefAttributes<HTMLDivElement>>;
|
|
4615
|
+
/**
|
|
4616
|
+
* DrawerContent - edge-anchored sliding modal panel with focus trapping and body scroll locking.
|
|
4617
|
+
*/
|
|
4618
|
+
declare const DrawerContent: React.ForwardRefExoticComponent<DrawerContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
4619
|
+
/**
|
|
4620
|
+
* DrawerHeader - header section containing title and optional close button.
|
|
4621
|
+
*/
|
|
4622
|
+
declare const DrawerHeader: React.ForwardRefExoticComponent<DrawerHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
4623
|
+
/**
|
|
4624
|
+
* DrawerTitle - accessible dialog heading.
|
|
4625
|
+
*/
|
|
4626
|
+
declare const DrawerTitle: React.ForwardRefExoticComponent<DrawerTitleProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
4627
|
+
/**
|
|
4628
|
+
* DrawerDescription - accessible dialog description paragraph.
|
|
4629
|
+
*/
|
|
4630
|
+
declare const DrawerDescription: React.ForwardRefExoticComponent<DrawerDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
|
|
4631
|
+
/**
|
|
4632
|
+
* DrawerBody - scrollable main content area.
|
|
4633
|
+
*/
|
|
4634
|
+
declare const DrawerBody: React.ForwardRefExoticComponent<DrawerBodyProps & React.RefAttributes<HTMLDivElement>>;
|
|
4635
|
+
/**
|
|
4636
|
+
* DrawerFooter - bottom action buttons container.
|
|
4637
|
+
*/
|
|
4638
|
+
declare const DrawerFooter: React.ForwardRefExoticComponent<DrawerFooterProps & React.RefAttributes<HTMLDivElement>>;
|
|
4639
|
+
/**
|
|
4640
|
+
* DrawerClose - button that triggers drawer dismissal.
|
|
4641
|
+
*/
|
|
4642
|
+
declare const DrawerClose: React.ForwardRefExoticComponent<DrawerCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
4643
|
+
/**
|
|
4644
|
+
* Drawer Compound Component
|
|
4645
|
+
*/
|
|
4646
|
+
declare const Drawer: React.FC<DrawerRootProps> & {
|
|
4647
|
+
Root: React.FC<DrawerRootProps>;
|
|
4648
|
+
Trigger: React.ForwardRefExoticComponent<DrawerTriggerProps & React.RefAttributes<HTMLElement>>;
|
|
4649
|
+
Portal: React.FC<DrawerPortalProps>;
|
|
4650
|
+
Overlay: React.ForwardRefExoticComponent<DrawerOverlayProps & React.RefAttributes<HTMLDivElement>>;
|
|
4651
|
+
Content: React.ForwardRefExoticComponent<DrawerContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
4652
|
+
Header: React.ForwardRefExoticComponent<DrawerHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
4653
|
+
Title: React.ForwardRefExoticComponent<DrawerTitleProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
4654
|
+
Description: React.ForwardRefExoticComponent<DrawerDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
|
|
4655
|
+
Body: React.ForwardRefExoticComponent<DrawerBodyProps & React.RefAttributes<HTMLDivElement>>;
|
|
4656
|
+
Footer: React.ForwardRefExoticComponent<DrawerFooterProps & React.RefAttributes<HTMLDivElement>>;
|
|
4657
|
+
Close: React.ForwardRefExoticComponent<DrawerCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
4658
|
+
};
|
|
4659
|
+
/**
|
|
4660
|
+
* Sheet alias
|
|
4661
|
+
*/
|
|
4662
|
+
declare const Sheet: React.FC<DrawerRootProps> & {
|
|
4663
|
+
Root: React.FC<DrawerRootProps>;
|
|
4664
|
+
Trigger: React.ForwardRefExoticComponent<DrawerTriggerProps & React.RefAttributes<HTMLElement>>;
|
|
4665
|
+
Portal: React.FC<DrawerPortalProps>;
|
|
4666
|
+
Overlay: React.ForwardRefExoticComponent<DrawerOverlayProps & React.RefAttributes<HTMLDivElement>>;
|
|
4667
|
+
Content: React.ForwardRefExoticComponent<DrawerContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
4668
|
+
Header: React.ForwardRefExoticComponent<DrawerHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
4669
|
+
Title: React.ForwardRefExoticComponent<DrawerTitleProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
4670
|
+
Description: React.ForwardRefExoticComponent<DrawerDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
|
|
4671
|
+
Body: React.ForwardRefExoticComponent<DrawerBodyProps & React.RefAttributes<HTMLDivElement>>;
|
|
4672
|
+
Footer: React.ForwardRefExoticComponent<DrawerFooterProps & React.RefAttributes<HTMLDivElement>>;
|
|
4673
|
+
Close: React.ForwardRefExoticComponent<DrawerCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
4674
|
+
};
|
|
4675
|
+
declare const SheetRoot: React.FC<DrawerRootProps>;
|
|
4676
|
+
declare const SheetTrigger: React.ForwardRefExoticComponent<DrawerTriggerProps & React.RefAttributes<HTMLElement>>;
|
|
4677
|
+
declare const SheetPortal: React.FC<DrawerPortalProps>;
|
|
4678
|
+
declare const SheetOverlay: React.ForwardRefExoticComponent<DrawerOverlayProps & React.RefAttributes<HTMLDivElement>>;
|
|
4679
|
+
declare const SheetContent: React.ForwardRefExoticComponent<DrawerContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
4680
|
+
declare const SheetHeader: React.ForwardRefExoticComponent<DrawerHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
4681
|
+
declare const SheetTitle: React.ForwardRefExoticComponent<DrawerTitleProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
4682
|
+
declare const SheetDescription: React.ForwardRefExoticComponent<DrawerDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
|
|
4683
|
+
declare const SheetBody: React.ForwardRefExoticComponent<DrawerBodyProps & React.RefAttributes<HTMLDivElement>>;
|
|
4684
|
+
declare const SheetFooter: React.ForwardRefExoticComponent<DrawerFooterProps & React.RefAttributes<HTMLDivElement>>;
|
|
4685
|
+
declare const SheetClose: React.ForwardRefExoticComponent<DrawerCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
4686
|
+
|
|
4687
|
+
type LinkUnderline = "always" | "hover" | "none";
|
|
4688
|
+
type LinkColorScheme = "primary" | "neutral" | "subtle";
|
|
4689
|
+
interface LinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
4690
|
+
/**
|
|
4691
|
+
* Underline decoration style.
|
|
4692
|
+
* - "always": permanently underlined.
|
|
4693
|
+
* - "hover": underlined on pointer hover and keyboard focus.
|
|
4694
|
+
* - "none": no underline decoration.
|
|
4695
|
+
* @default "hover"
|
|
4696
|
+
*/
|
|
4697
|
+
underline?: LinkUnderline;
|
|
4698
|
+
/**
|
|
4699
|
+
* Semantic color scheme tailored to design tokens.
|
|
4700
|
+
* - "primary": brand primary accent.
|
|
4701
|
+
* - "neutral": matches primary text color.
|
|
4702
|
+
* - "subtle": secondary/muted text color.
|
|
4703
|
+
* @default "primary"
|
|
4704
|
+
*/
|
|
4705
|
+
colorScheme?: LinkColorScheme;
|
|
4706
|
+
/**
|
|
4707
|
+
* Indicates an external destination.
|
|
4708
|
+
* Automatically sets target="_blank" and rel="noopener noreferrer".
|
|
4709
|
+
* @default false
|
|
4710
|
+
*/
|
|
4711
|
+
isExternal?: boolean;
|
|
4712
|
+
/**
|
|
4713
|
+
* Whether to render an accessible external link icon when `isExternal` is true.
|
|
4714
|
+
* @default true
|
|
4715
|
+
*/
|
|
4716
|
+
showExternalIcon?: boolean;
|
|
4717
|
+
/**
|
|
4718
|
+
* Visual and interaction disabled state.
|
|
4719
|
+
* Sets aria-disabled="true", tabIndex={-1}, and cancels click events without breaking anchor semantics.
|
|
4720
|
+
* @default false
|
|
4721
|
+
*/
|
|
4722
|
+
isDisabled?: boolean;
|
|
4723
|
+
/**
|
|
4724
|
+
* Delegates rendering to immediate child element using Slot composition.
|
|
4725
|
+
* @default false
|
|
4726
|
+
*/
|
|
4727
|
+
asChild?: boolean;
|
|
4728
|
+
/**
|
|
4729
|
+
* The underlying HTML element or component override.
|
|
4730
|
+
*/
|
|
4731
|
+
component?: React.ElementType;
|
|
4732
|
+
/**
|
|
4733
|
+
* Alias for component.
|
|
4734
|
+
*/
|
|
4735
|
+
as?: React.ElementType;
|
|
4736
|
+
/**
|
|
4737
|
+
* Design system sx override prop.
|
|
4738
|
+
*/
|
|
4739
|
+
sx?: SxProps;
|
|
4740
|
+
children?: React.ReactNode;
|
|
4741
|
+
}
|
|
4742
|
+
|
|
4743
|
+
interface BreadcrumbsProps extends React.ComponentPropsWithoutRef<"nav"> {
|
|
4744
|
+
/**
|
|
4745
|
+
* Accessible landmark label announced by assistive tech.
|
|
4746
|
+
* @default "Breadcrumb"
|
|
4747
|
+
*/
|
|
4748
|
+
"aria-label"?: string;
|
|
4749
|
+
/**
|
|
4750
|
+
* Custom separator node displayed between breadcrumb items.
|
|
4751
|
+
* @default "/"
|
|
4752
|
+
*/
|
|
4753
|
+
separator?: React.ReactNode;
|
|
4754
|
+
/**
|
|
4755
|
+
* Maximum number of items to display before collapsing with an ellipsis.
|
|
4756
|
+
*/
|
|
4757
|
+
maxItems?: number;
|
|
4758
|
+
/**
|
|
4759
|
+
* Number of items to keep visible at the start before the ellipsis.
|
|
4760
|
+
* @default 1
|
|
4761
|
+
*/
|
|
4762
|
+
itemsBeforeCollapse?: number;
|
|
4763
|
+
/**
|
|
4764
|
+
* Number of items to keep visible at the end after the ellipsis.
|
|
4765
|
+
* @default 1
|
|
4766
|
+
*/
|
|
4767
|
+
itemsAfterCollapse?: number;
|
|
4768
|
+
/**
|
|
4769
|
+
* The system sx style override prop.
|
|
4770
|
+
*/
|
|
4771
|
+
sx?: SxProps;
|
|
4772
|
+
children: React.ReactNode;
|
|
4773
|
+
}
|
|
4774
|
+
interface BreadcrumbListProps extends React.ComponentPropsWithoutRef<"ol"> {
|
|
4775
|
+
children: React.ReactNode;
|
|
4776
|
+
}
|
|
4777
|
+
interface BreadcrumbItemProps extends React.ComponentPropsWithoutRef<"li"> {
|
|
4778
|
+
children: React.ReactNode;
|
|
4779
|
+
}
|
|
4780
|
+
interface BreadcrumbLinkProps extends LinkProps {
|
|
4781
|
+
asChild?: boolean;
|
|
4782
|
+
children: React.ReactNode;
|
|
4783
|
+
}
|
|
4784
|
+
interface BreadcrumbPageProps extends React.ComponentPropsWithoutRef<"span"> {
|
|
4785
|
+
asChild?: boolean;
|
|
4786
|
+
children: React.ReactNode;
|
|
4787
|
+
}
|
|
4788
|
+
interface BreadcrumbSeparatorProps extends React.ComponentPropsWithoutRef<"li"> {
|
|
4789
|
+
children?: React.ReactNode;
|
|
4790
|
+
}
|
|
4791
|
+
interface BreadcrumbEllipsisProps extends React.ComponentPropsWithoutRef<"span"> {
|
|
4792
|
+
/**
|
|
4793
|
+
* Accessible text for screen reader users.
|
|
4794
|
+
* @default "More breadcrumb items"
|
|
4795
|
+
*/
|
|
4796
|
+
"aria-label"?: string;
|
|
4797
|
+
}
|
|
4798
|
+
|
|
4799
|
+
/**
|
|
4800
|
+
* Breadcrumbs navigation landmark container.
|
|
4801
|
+
*
|
|
4802
|
+
* @example
|
|
4803
|
+
* ```tsx
|
|
4804
|
+
* <Breadcrumbs>
|
|
4805
|
+
* <BreadcrumbList>
|
|
4806
|
+
* <BreadcrumbItem>
|
|
4807
|
+
* <BreadcrumbLink href="/">Home</BreadcrumbLink>
|
|
4808
|
+
* </BreadcrumbItem>
|
|
4809
|
+
* <BreadcrumbSeparator />
|
|
4810
|
+
* <BreadcrumbItem>
|
|
4811
|
+
* <BreadcrumbPage>Settings</BreadcrumbPage>
|
|
4812
|
+
* </BreadcrumbItem>
|
|
4813
|
+
* </BreadcrumbList>
|
|
4814
|
+
* </Breadcrumbs>
|
|
4815
|
+
* ```
|
|
4816
|
+
*/
|
|
4817
|
+
declare const BreadcrumbsRoot: React.ForwardRefExoticComponent<BreadcrumbsProps & React.RefAttributes<HTMLElement>>;
|
|
4818
|
+
/**
|
|
4819
|
+
* Ordered list container for breadcrumb items.
|
|
4820
|
+
*/
|
|
4821
|
+
declare const BreadcrumbList: React.ForwardRefExoticComponent<BreadcrumbListProps & React.RefAttributes<HTMLOListElement>>;
|
|
4822
|
+
/**
|
|
4823
|
+
* Individual item wrapper inside the breadcrumb list.
|
|
4824
|
+
*/
|
|
4825
|
+
declare const BreadcrumbItem: React.ForwardRefExoticComponent<BreadcrumbItemProps & React.RefAttributes<HTMLLIElement>>;
|
|
4826
|
+
/**
|
|
4827
|
+
* Navigable link inside a breadcrumb item.
|
|
4828
|
+
*/
|
|
4829
|
+
declare const BreadcrumbLink: React.ForwardRefExoticComponent<BreadcrumbLinkProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
4830
|
+
/**
|
|
4831
|
+
* Terminal current page indicator inside the breadcrumb list.
|
|
4832
|
+
* Automatically marks with aria-current="page" and prevents link navigation.
|
|
4833
|
+
*/
|
|
4834
|
+
declare const BreadcrumbPage: React.ForwardRefExoticComponent<BreadcrumbPageProps & React.RefAttributes<HTMLSpanElement>>;
|
|
4835
|
+
/**
|
|
4836
|
+
* Visual separator element between breadcrumb items, hidden from assistive technology.
|
|
4837
|
+
*/
|
|
4838
|
+
declare const BreadcrumbSeparator: React.ForwardRefExoticComponent<BreadcrumbSeparatorProps & React.RefAttributes<HTMLLIElement>>;
|
|
4839
|
+
/**
|
|
4840
|
+
* Collapsed items indicator (ellipsis) for long breadcrumb chains.
|
|
4841
|
+
*/
|
|
4842
|
+
declare const BreadcrumbEllipsis: React.ForwardRefExoticComponent<BreadcrumbEllipsisProps & React.RefAttributes<HTMLSpanElement>>;
|
|
4843
|
+
/**
|
|
4844
|
+
* Breadcrumbs Compound Component
|
|
4845
|
+
*/
|
|
4846
|
+
declare const Breadcrumbs: React.ForwardRefExoticComponent<BreadcrumbsProps & React.RefAttributes<HTMLElement>> & {
|
|
4847
|
+
Root: React.ForwardRefExoticComponent<BreadcrumbsProps & React.RefAttributes<HTMLElement>>;
|
|
4848
|
+
List: React.ForwardRefExoticComponent<BreadcrumbListProps & React.RefAttributes<HTMLOListElement>>;
|
|
4849
|
+
Item: React.ForwardRefExoticComponent<BreadcrumbItemProps & React.RefAttributes<HTMLLIElement>>;
|
|
4850
|
+
Link: React.ForwardRefExoticComponent<BreadcrumbLinkProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
4851
|
+
Page: React.ForwardRefExoticComponent<BreadcrumbPageProps & React.RefAttributes<HTMLSpanElement>>;
|
|
4852
|
+
Separator: React.ForwardRefExoticComponent<BreadcrumbSeparatorProps & React.RefAttributes<HTMLLIElement>>;
|
|
4853
|
+
Ellipsis: React.ForwardRefExoticComponent<BreadcrumbEllipsisProps & React.RefAttributes<HTMLSpanElement>>;
|
|
4854
|
+
};
|
|
4855
|
+
declare const Breadcrumb: React.ForwardRefExoticComponent<BreadcrumbsProps & React.RefAttributes<HTMLElement>> & {
|
|
4856
|
+
Root: React.ForwardRefExoticComponent<BreadcrumbsProps & React.RefAttributes<HTMLElement>>;
|
|
4857
|
+
List: React.ForwardRefExoticComponent<BreadcrumbListProps & React.RefAttributes<HTMLOListElement>>;
|
|
4858
|
+
Item: React.ForwardRefExoticComponent<BreadcrumbItemProps & React.RefAttributes<HTMLLIElement>>;
|
|
4859
|
+
Link: React.ForwardRefExoticComponent<BreadcrumbLinkProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
4860
|
+
Page: React.ForwardRefExoticComponent<BreadcrumbPageProps & React.RefAttributes<HTMLSpanElement>>;
|
|
4861
|
+
Separator: React.ForwardRefExoticComponent<BreadcrumbSeparatorProps & React.RefAttributes<HTMLLIElement>>;
|
|
4862
|
+
Ellipsis: React.ForwardRefExoticComponent<BreadcrumbEllipsisProps & React.RefAttributes<HTMLSpanElement>>;
|
|
4863
|
+
};
|
|
4864
|
+
|
|
4865
|
+
/**
|
|
4866
|
+
* Link component styling native anchor elements with design system tokens,
|
|
4867
|
+
* underline variants, security guards for external destinations, and Slot composition.
|
|
4868
|
+
*
|
|
4869
|
+
* @example
|
|
4870
|
+
* ```tsx
|
|
4871
|
+
* <Link href="/docs">Documentation</Link>
|
|
4872
|
+
* <Link href="https://github.com" isExternal>GitHub</Link>
|
|
4873
|
+
* ```
|
|
4874
|
+
*/
|
|
4875
|
+
declare const Link: React.ForwardRefExoticComponent<LinkProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
4876
|
+
|
|
4877
|
+
interface DateRangePickerProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> {
|
|
4878
|
+
/**
|
|
4879
|
+
* Controlled range selection value.
|
|
4880
|
+
*/
|
|
4881
|
+
value?: DateRange | null | undefined;
|
|
4882
|
+
/**
|
|
4883
|
+
* Initial uncontrolled range selection value.
|
|
4884
|
+
*/
|
|
4885
|
+
defaultValue?: DateRange | null | undefined;
|
|
4886
|
+
/**
|
|
4887
|
+
* Callback fired when the date range selection changes.
|
|
4888
|
+
*/
|
|
4889
|
+
onValueChange?: ((range: DateRange | null) => void) | undefined;
|
|
4890
|
+
/**
|
|
4891
|
+
* Date formatting pattern applied to each date.
|
|
4892
|
+
* @default "YYYY-MM-DD"
|
|
4893
|
+
*/
|
|
4894
|
+
format?: string | undefined;
|
|
4895
|
+
/**
|
|
4896
|
+
* Text separator displayed between start date and end date in the input.
|
|
4897
|
+
* @default " – "
|
|
4898
|
+
*/
|
|
4899
|
+
rangeSeparator?: string | undefined;
|
|
4900
|
+
/**
|
|
4901
|
+
* Placeholder string displayed when no date range is selected.
|
|
4902
|
+
*/
|
|
4903
|
+
placeholder?: string | undefined;
|
|
4904
|
+
/**
|
|
4905
|
+
* Controlled open state of the calendar popover.
|
|
4906
|
+
*/
|
|
4907
|
+
isOpen?: boolean | undefined;
|
|
4908
|
+
/**
|
|
4909
|
+
* Initial uncontrolled open state of the calendar popover.
|
|
4910
|
+
* @default false
|
|
4911
|
+
*/
|
|
4912
|
+
defaultOpen?: boolean | undefined;
|
|
4913
|
+
/**
|
|
4914
|
+
* Callback fired when the popover open state changes.
|
|
4915
|
+
*/
|
|
4916
|
+
onOpenChange?: ((isOpen: boolean) => void) | undefined;
|
|
4917
|
+
/**
|
|
4918
|
+
* Whether the control is interactive or disabled.
|
|
4919
|
+
* Cascades automatically from parent <FormField> if unset.
|
|
4920
|
+
* @default false
|
|
4921
|
+
*/
|
|
4922
|
+
isDisabled?: boolean | undefined;
|
|
4923
|
+
/**
|
|
4924
|
+
* Whether the control is currently in an error state.
|
|
4925
|
+
* Cascades automatically from parent <FormField> if unset.
|
|
4926
|
+
* @default false
|
|
4927
|
+
*/
|
|
4928
|
+
isInvalid?: boolean | undefined;
|
|
4929
|
+
/**
|
|
4930
|
+
* If true, displays a clear button when a date range is selected.
|
|
4931
|
+
* @default true
|
|
4932
|
+
*/
|
|
4933
|
+
isClearable?: boolean | undefined;
|
|
4934
|
+
/**
|
|
4935
|
+
* Earliest selectable calendar date (inclusive).
|
|
4936
|
+
*/
|
|
4937
|
+
minDate?: Date | null | undefined;
|
|
4938
|
+
/**
|
|
4939
|
+
* Latest selectable calendar date (inclusive).
|
|
4940
|
+
*/
|
|
4941
|
+
maxDate?: Date | null | undefined;
|
|
4942
|
+
/**
|
|
4943
|
+
* Predicate callback to evaluate whether a given calendar date is disabled.
|
|
4944
|
+
*/
|
|
4945
|
+
isDateDisabled?: ((date: Date) => boolean) | undefined;
|
|
4946
|
+
/**
|
|
4947
|
+
* Starting day of the week (0 = Sunday, 1 = Monday, 6 = Saturday).
|
|
4948
|
+
* @default 0
|
|
4949
|
+
*/
|
|
4950
|
+
firstDayOfWeek?: (0 | 1 | 6) | undefined;
|
|
4951
|
+
/**
|
|
4952
|
+
* BCP 47 locale tag used for localized month and weekday names.
|
|
4953
|
+
* @default "en-US"
|
|
4954
|
+
*/
|
|
4955
|
+
locale?: string | undefined;
|
|
4956
|
+
/**
|
|
4957
|
+
* Initial focused or visible date in calendar when no date is selected.
|
|
4958
|
+
*/
|
|
4959
|
+
defaultFocusedDate?: Date | undefined;
|
|
4960
|
+
/**
|
|
4961
|
+
* Size token defining padding, font-size, and control height.
|
|
4962
|
+
* @default "md"
|
|
4963
|
+
*/
|
|
4964
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
4965
|
+
/**
|
|
4966
|
+
* HTML name attribute used for form submission.
|
|
4967
|
+
*/
|
|
4968
|
+
name?: string | undefined;
|
|
4969
|
+
/**
|
|
4970
|
+
* Accessible label for the input control.
|
|
4971
|
+
*/
|
|
4972
|
+
"aria-label"?: string | undefined;
|
|
4973
|
+
}
|
|
4974
|
+
|
|
4975
|
+
/**
|
|
4976
|
+
* DateRangePicker combines formatted range input display with an anchored calendar popover dropdown
|
|
4977
|
+
* supporting dual-date range selection, bounds constraints, keyboard navigation, and FormField integration.
|
|
4978
|
+
*
|
|
4979
|
+
* @example
|
|
4980
|
+
* ```tsx
|
|
4981
|
+
* <DateRangePicker
|
|
4982
|
+
* value={dateRange}
|
|
4983
|
+
* onValueChange={setDateRange}
|
|
4984
|
+
* rangeSeparator=" to "
|
|
4985
|
+
* />
|
|
4986
|
+
* ```
|
|
4987
|
+
*/
|
|
4988
|
+
declare const DateRangePicker: React.ForwardRefExoticComponent<DateRangePickerProps & React.RefAttributes<HTMLDivElement>>;
|
|
4989
|
+
|
|
4990
|
+
type TimeFormat = "12h" | "24h";
|
|
4991
|
+
interface TimePickerProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> {
|
|
4992
|
+
/**
|
|
4993
|
+
* The currently selected time in 24-hour "HH:mm" format (e.g. "14:30").
|
|
4994
|
+
*/
|
|
4995
|
+
value?: string | null | undefined;
|
|
4996
|
+
/**
|
|
4997
|
+
* The initial selected time in uncontrolled mode ("HH:mm").
|
|
4998
|
+
*/
|
|
4999
|
+
defaultValue?: string | null | undefined;
|
|
5000
|
+
/**
|
|
5001
|
+
* Callback fired when selected time changes, returning "HH:mm" format.
|
|
5002
|
+
*/
|
|
5003
|
+
onValueChange?: ((time: string) => void) | undefined;
|
|
5004
|
+
/**
|
|
5005
|
+
* Display format in the input and popup selector.
|
|
5006
|
+
* @default "12h"
|
|
5007
|
+
*/
|
|
5008
|
+
format?: TimeFormat | undefined;
|
|
5009
|
+
/**
|
|
5010
|
+
* Incremental step between selectable minutes in the dropdown.
|
|
5011
|
+
* @default 5
|
|
5012
|
+
*/
|
|
5013
|
+
minuteStep?: number | undefined;
|
|
5014
|
+
/**
|
|
5015
|
+
* Earliest selectable time in "HH:mm" format (inclusive).
|
|
5016
|
+
*/
|
|
5017
|
+
minTime?: string | undefined;
|
|
5018
|
+
/**
|
|
5019
|
+
* Latest selectable time in "HH:mm" format (inclusive).
|
|
5020
|
+
*/
|
|
5021
|
+
maxTime?: string | undefined;
|
|
5022
|
+
/**
|
|
5023
|
+
* Controlled open state of the time selector popover.
|
|
5024
|
+
*/
|
|
5025
|
+
isOpen?: boolean | undefined;
|
|
5026
|
+
/**
|
|
5027
|
+
* Initial uncontrolled open state of the time selector popover.
|
|
5028
|
+
* @default false
|
|
5029
|
+
*/
|
|
5030
|
+
defaultOpen?: boolean | undefined;
|
|
5031
|
+
/**
|
|
5032
|
+
* Callback fired when popover open state changes.
|
|
5033
|
+
*/
|
|
5034
|
+
onOpenChange?: ((isOpen: boolean) => void) | undefined;
|
|
5035
|
+
/**
|
|
5036
|
+
* Whether the control is interactive or disabled.
|
|
5037
|
+
* Cascades from parent <FormField> if unset.
|
|
5038
|
+
* @default false
|
|
5039
|
+
*/
|
|
5040
|
+
isDisabled?: boolean | undefined;
|
|
5041
|
+
/**
|
|
5042
|
+
* Whether the control is read-only.
|
|
5043
|
+
* @default false
|
|
5044
|
+
*/
|
|
5045
|
+
isReadOnly?: boolean | undefined;
|
|
5046
|
+
/**
|
|
5047
|
+
* Whether the control is currently in an error state.
|
|
5048
|
+
* Cascades from parent <FormField> if unset.
|
|
5049
|
+
* @default false
|
|
5050
|
+
*/
|
|
5051
|
+
isInvalid?: boolean | undefined;
|
|
5052
|
+
/**
|
|
5053
|
+
* If true, displays a clear button when a time is selected.
|
|
5054
|
+
* @default true
|
|
5055
|
+
*/
|
|
5056
|
+
isClearable?: boolean | undefined;
|
|
5057
|
+
/**
|
|
5058
|
+
* Placeholder string displayed in the input when empty.
|
|
5059
|
+
*/
|
|
5060
|
+
placeholder?: string | undefined;
|
|
5061
|
+
/**
|
|
5062
|
+
* Size token defining control dimensions.
|
|
5063
|
+
* @default "md"
|
|
5064
|
+
*/
|
|
5065
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
5066
|
+
/**
|
|
5067
|
+
* HTML name attribute used for form submission.
|
|
5068
|
+
*/
|
|
5069
|
+
name?: string | undefined;
|
|
5070
|
+
/**
|
|
5071
|
+
* Accessible label for the input control.
|
|
5072
|
+
*/
|
|
5073
|
+
"aria-label"?: string | undefined;
|
|
5074
|
+
}
|
|
5075
|
+
|
|
5076
|
+
/**
|
|
5077
|
+
* TimePicker provides an accessible time selection input and anchored column popover
|
|
5078
|
+
* supporting 12-hour AM/PM and 24-hour display modes, configurable minute stepping,
|
|
5079
|
+
* boundary validation, keyboard stepping, and FormField integration.
|
|
5080
|
+
*
|
|
5081
|
+
* @example
|
|
5082
|
+
* ```tsx
|
|
5083
|
+
* <TimePicker value="14:30" onValueChange={setTime} />
|
|
5084
|
+
* <TimePicker format="24h" minuteStep={15} />
|
|
5085
|
+
* ```
|
|
5086
|
+
*/
|
|
5087
|
+
declare const TimePicker: React.ForwardRefExoticComponent<TimePickerProps & React.RefAttributes<HTMLDivElement>>;
|
|
5088
|
+
|
|
5089
|
+
interface MultiSelectOption<TValue = string> {
|
|
5090
|
+
value: TValue;
|
|
5091
|
+
label: string;
|
|
5092
|
+
disabled?: boolean;
|
|
5093
|
+
description?: string;
|
|
5094
|
+
}
|
|
5095
|
+
type MultiSelectSize = "sm" | "md" | "lg";
|
|
5096
|
+
type MultiSelectVariant = "outline" | "filled";
|
|
5097
|
+
interface MultiSelectProps<TValue = string> extends Omit<React.HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> {
|
|
5098
|
+
/**
|
|
5099
|
+
* Available options to select from.
|
|
5100
|
+
*/
|
|
5101
|
+
options: MultiSelectOption<TValue>[];
|
|
5102
|
+
/**
|
|
5103
|
+
* Controlled array of selected option values.
|
|
5104
|
+
*/
|
|
5105
|
+
value?: TValue[];
|
|
5106
|
+
/**
|
|
5107
|
+
* Initial uncontrolled array of selected option values.
|
|
5108
|
+
* @default []
|
|
5109
|
+
*/
|
|
5110
|
+
defaultValue?: TValue[];
|
|
5111
|
+
/**
|
|
5112
|
+
* Callback fired when selection changes.
|
|
5113
|
+
*/
|
|
5114
|
+
onValueChange?: (values: TValue[]) => void;
|
|
5115
|
+
/**
|
|
5116
|
+
* Placeholder string shown when no items are selected.
|
|
5117
|
+
* @default "Select options..."
|
|
5118
|
+
*/
|
|
5119
|
+
placeholder?: string;
|
|
5120
|
+
/**
|
|
5121
|
+
* Placeholder string inside search filter input.
|
|
5122
|
+
* @default "Search options..."
|
|
5123
|
+
*/
|
|
5124
|
+
searchPlaceholder?: string;
|
|
5125
|
+
/**
|
|
5126
|
+
* Whether search input filter is enabled.
|
|
5127
|
+
* @default true
|
|
5128
|
+
*/
|
|
5129
|
+
isSearchable?: boolean;
|
|
5130
|
+
/**
|
|
5131
|
+
* Whether to show a clear button when selections exist.
|
|
5132
|
+
* @default true
|
|
5133
|
+
*/
|
|
5134
|
+
isClearable?: boolean;
|
|
5135
|
+
/**
|
|
5136
|
+
* Controlled open state of dropdown popover.
|
|
5137
|
+
*/
|
|
5138
|
+
isOpen?: boolean;
|
|
5139
|
+
/**
|
|
5140
|
+
* Initial uncontrolled open state.
|
|
5141
|
+
* @default false
|
|
5142
|
+
*/
|
|
5143
|
+
defaultOpen?: boolean;
|
|
5144
|
+
/**
|
|
5145
|
+
* Callback fired when dropdown open state changes.
|
|
5146
|
+
*/
|
|
5147
|
+
onOpenChange?: (isOpen: boolean) => void;
|
|
5148
|
+
/**
|
|
5149
|
+
* Whether the component is disabled.
|
|
5150
|
+
* Cascades from parent FormField if unset.
|
|
5151
|
+
* @default false
|
|
5152
|
+
*/
|
|
5153
|
+
isDisabled?: boolean;
|
|
5154
|
+
/**
|
|
5155
|
+
* Whether the component is in an invalid error state.
|
|
5156
|
+
* Cascades from parent FormField if unset.
|
|
5157
|
+
* @default false
|
|
5158
|
+
*/
|
|
5159
|
+
isInvalid?: boolean;
|
|
5160
|
+
/**
|
|
5161
|
+
* Loading state showing indicator in popover.
|
|
5162
|
+
* @default false
|
|
5163
|
+
*/
|
|
5164
|
+
isLoading?: boolean;
|
|
5165
|
+
/**
|
|
5166
|
+
* Custom message when no matching options are found.
|
|
5167
|
+
* @default "No options found."
|
|
5168
|
+
*/
|
|
5169
|
+
emptyMessage?: string;
|
|
5170
|
+
/**
|
|
5171
|
+
* Spatial density scale.
|
|
5172
|
+
* @default "md"
|
|
5173
|
+
*/
|
|
5174
|
+
size?: MultiSelectSize;
|
|
5175
|
+
/**
|
|
5176
|
+
* Visual aesthetic variant.
|
|
5177
|
+
* @default "outline"
|
|
5178
|
+
*/
|
|
5179
|
+
variant?: MultiSelectVariant;
|
|
5180
|
+
/**
|
|
5181
|
+
* Maximum number of visible chips before collapsing into "+N more".
|
|
5182
|
+
* If omitted, all selected chips are rendered.
|
|
5183
|
+
*/
|
|
5184
|
+
maxTagCount?: number;
|
|
5185
|
+
/**
|
|
5186
|
+
* Accessible name for the control.
|
|
5187
|
+
*/
|
|
5188
|
+
"aria-label"?: string;
|
|
5189
|
+
}
|
|
5190
|
+
|
|
5191
|
+
declare const MultiSelect: <TValue = string>(props: MultiSelectProps<TValue> & {
|
|
5192
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
5193
|
+
}) => React.ReactElement;
|
|
5194
|
+
|
|
5195
|
+
type SortDirection = "asc" | "desc";
|
|
5196
|
+
interface DataGridSort<TKey = string> {
|
|
5197
|
+
columnKey: TKey;
|
|
5198
|
+
direction: SortDirection;
|
|
5199
|
+
}
|
|
5200
|
+
interface DataGridColumn<TRow, TKey extends string = string> {
|
|
5201
|
+
/**
|
|
5202
|
+
* Unique stable identifier for the column.
|
|
5203
|
+
*/
|
|
5204
|
+
key: TKey;
|
|
5205
|
+
/**
|
|
5206
|
+
* Column header text or custom render node.
|
|
5207
|
+
*/
|
|
5208
|
+
header: React.ReactNode;
|
|
5209
|
+
/**
|
|
5210
|
+
* Data accessor function or key extractor.
|
|
5211
|
+
*/
|
|
5212
|
+
accessor?: (row: TRow, rowIndex: number) => React.ReactNode;
|
|
5213
|
+
/**
|
|
5214
|
+
* Custom cell renderer taking row, value, and index.
|
|
5215
|
+
*/
|
|
5216
|
+
cell?: (props: {
|
|
5217
|
+
row: TRow;
|
|
5218
|
+
value: unknown;
|
|
5219
|
+
rowIndex: number;
|
|
5220
|
+
}) => React.ReactNode;
|
|
5221
|
+
/**
|
|
5222
|
+
* Whether the column can be sorted.
|
|
5223
|
+
* @default false
|
|
5224
|
+
*/
|
|
5225
|
+
isSortable?: boolean;
|
|
5226
|
+
/**
|
|
5227
|
+
* Custom comparator for client-side sorting.
|
|
5228
|
+
*/
|
|
5229
|
+
comparator?: (a: TRow, b: TRow) => number;
|
|
5230
|
+
/**
|
|
5231
|
+
* Explicit column width.
|
|
5232
|
+
*/
|
|
5233
|
+
width?: string | number;
|
|
5234
|
+
/**
|
|
5235
|
+
* Text alignment.
|
|
5236
|
+
* @default "left"
|
|
5237
|
+
*/
|
|
5238
|
+
align?: "left" | "center" | "right";
|
|
5239
|
+
}
|
|
5240
|
+
interface DataGridPaginationProps {
|
|
5241
|
+
/**
|
|
5242
|
+
* Current 1-based page number.
|
|
5243
|
+
*/
|
|
5244
|
+
page: number;
|
|
5245
|
+
/**
|
|
5246
|
+
* Number of rows per page.
|
|
5247
|
+
*/
|
|
5248
|
+
pageSize: number;
|
|
5249
|
+
/**
|
|
5250
|
+
* Total number of items (defaults to data.length if client-side).
|
|
5251
|
+
*/
|
|
5252
|
+
total?: number;
|
|
5253
|
+
/**
|
|
5254
|
+
* Callback fired when page number changes.
|
|
5255
|
+
*/
|
|
5256
|
+
onPageChange: (page: number) => void;
|
|
5257
|
+
/**
|
|
5258
|
+
* Callback fired when page size changes.
|
|
5259
|
+
*/
|
|
5260
|
+
onPageSizeChange?: (pageSize: number) => void;
|
|
5261
|
+
/**
|
|
5262
|
+
* Page size options for selector.
|
|
5263
|
+
*/
|
|
5264
|
+
pageSizeOptions?: number[];
|
|
5265
|
+
}
|
|
5266
|
+
interface DataGridProps<TRow, TKey extends string = string> extends Omit<React.HTMLAttributes<HTMLDivElement>, "children"> {
|
|
5267
|
+
/**
|
|
5268
|
+
* Column configuration.
|
|
5269
|
+
*/
|
|
5270
|
+
columns: DataGridColumn<TRow, TKey>[];
|
|
5271
|
+
/**
|
|
5272
|
+
* Array of row items.
|
|
5273
|
+
*/
|
|
5274
|
+
data: TRow[];
|
|
5275
|
+
/**
|
|
5276
|
+
* Unique identifier getter for each row.
|
|
5277
|
+
*/
|
|
5278
|
+
getRowId: (row: TRow, index: number) => string | number;
|
|
5279
|
+
/**
|
|
5280
|
+
* Controlled sort state.
|
|
5281
|
+
*/
|
|
5282
|
+
sort?: DataGridSort<TKey> | null;
|
|
5283
|
+
/**
|
|
5284
|
+
* Initial uncontrolled sort state.
|
|
5285
|
+
*/
|
|
5286
|
+
defaultSort?: DataGridSort<TKey> | null;
|
|
5287
|
+
/**
|
|
5288
|
+
* Callback fired when sort changes.
|
|
5289
|
+
*/
|
|
5290
|
+
onSortChange?: (sort: DataGridSort<TKey> | null) => void;
|
|
5291
|
+
/**
|
|
5292
|
+
* Whether row checkboxes are rendered for multiple row selection.
|
|
5293
|
+
* @default false
|
|
5294
|
+
*/
|
|
5295
|
+
isSelectable?: boolean;
|
|
5296
|
+
/**
|
|
5297
|
+
* Controlled array of selected row IDs.
|
|
5298
|
+
*/
|
|
5299
|
+
selectedRowIds?: (string | number)[];
|
|
5300
|
+
/**
|
|
5301
|
+
* Initial uncontrolled array of selected row IDs.
|
|
5302
|
+
* @default []
|
|
5303
|
+
*/
|
|
5304
|
+
defaultSelectedRowIds?: (string | number)[];
|
|
5305
|
+
/**
|
|
5306
|
+
* Callback fired when selected row IDs change.
|
|
5307
|
+
*/
|
|
5308
|
+
onSelectionChange?: (selectedIds: (string | number)[]) => void;
|
|
5309
|
+
/**
|
|
5310
|
+
* Whether clicking a row toggles its selection.
|
|
5311
|
+
* @default false
|
|
5312
|
+
*/
|
|
5313
|
+
selectOnRowClick?: boolean;
|
|
5314
|
+
/**
|
|
5315
|
+
* Visual aesthetic treatment.
|
|
5316
|
+
* @default "simple"
|
|
5317
|
+
*/
|
|
5318
|
+
variant?: "simple" | "striped" | "bordered";
|
|
5319
|
+
/**
|
|
5320
|
+
* Spatial density scale.
|
|
5321
|
+
* @default "md"
|
|
5322
|
+
*/
|
|
5323
|
+
size?: "sm" | "md" | "lg";
|
|
5324
|
+
/**
|
|
5325
|
+
* Whether table header is sticky while scrolling vertically.
|
|
5326
|
+
* @default false
|
|
5327
|
+
*/
|
|
5328
|
+
isStickyHeader?: boolean;
|
|
5329
|
+
/**
|
|
5330
|
+
* Maximum height of table body for scrolling.
|
|
5331
|
+
*/
|
|
5332
|
+
maxHeight?: string | number;
|
|
5333
|
+
/**
|
|
5334
|
+
* Loading state showing spinner overlay.
|
|
5335
|
+
* @default false
|
|
5336
|
+
*/
|
|
5337
|
+
isLoading?: boolean;
|
|
5338
|
+
/**
|
|
5339
|
+
* Custom empty state component or text.
|
|
5340
|
+
* @default "No data available."
|
|
5341
|
+
*/
|
|
5342
|
+
emptyText?: React.ReactNode;
|
|
5343
|
+
/**
|
|
5344
|
+
* Optional pagination configuration.
|
|
5345
|
+
*/
|
|
5346
|
+
pagination?: DataGridPaginationProps;
|
|
5347
|
+
/**
|
|
5348
|
+
* Accessible table label.
|
|
5349
|
+
* @default "Data Grid"
|
|
5350
|
+
*/
|
|
5351
|
+
"aria-label"?: string;
|
|
5352
|
+
}
|
|
5353
|
+
|
|
5354
|
+
declare const DataGrid: <TRow, TKey extends string = string>(props: DataGridProps<TRow, TKey> & {
|
|
5355
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
5356
|
+
}) => React.ReactElement;
|
|
5357
|
+
|
|
5358
|
+
interface FileItem {
|
|
5359
|
+
id: string;
|
|
5360
|
+
file: File;
|
|
5361
|
+
name: string;
|
|
5362
|
+
size: number;
|
|
5363
|
+
type: string;
|
|
5364
|
+
}
|
|
5365
|
+
type FileValidationErrorCode = "file-too-large" | "file-invalid-type" | "too-many-files";
|
|
5366
|
+
interface FileValidationError {
|
|
5367
|
+
file: File;
|
|
5368
|
+
code: FileValidationErrorCode;
|
|
5369
|
+
message: string;
|
|
5370
|
+
}
|
|
5371
|
+
interface FileUploadProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> {
|
|
5372
|
+
/**
|
|
5373
|
+
* Controlled array of selected files.
|
|
5374
|
+
*/
|
|
5375
|
+
value?: File[];
|
|
5376
|
+
/**
|
|
5377
|
+
* Initial uncontrolled array of selected files.
|
|
5378
|
+
* @default []
|
|
5379
|
+
*/
|
|
5380
|
+
defaultValue?: File[];
|
|
5381
|
+
/**
|
|
5382
|
+
* Callback fired when selected files change.
|
|
5383
|
+
*/
|
|
5384
|
+
onValueChange?: (files: File[]) => void;
|
|
5385
|
+
/**
|
|
5386
|
+
* Callback fired when files fail client-side validation rules.
|
|
5387
|
+
*/
|
|
5388
|
+
onValidationErrors?: (errors: FileValidationError[]) => void;
|
|
5389
|
+
/**
|
|
5390
|
+
* Whether multiple files can be selected.
|
|
5391
|
+
* @default false
|
|
5392
|
+
*/
|
|
5393
|
+
isMultiple?: boolean;
|
|
5394
|
+
/**
|
|
5395
|
+
* Comma-separated accepted file extensions or MIME patterns (e.g. "image/*,.pdf").
|
|
5396
|
+
*/
|
|
5397
|
+
accept?: string;
|
|
5398
|
+
/**
|
|
5399
|
+
* Maximum allowed file size in bytes.
|
|
5400
|
+
*/
|
|
5401
|
+
maxSize?: number;
|
|
5402
|
+
/**
|
|
5403
|
+
* Maximum allowed total number of files.
|
|
5404
|
+
*/
|
|
5405
|
+
maxFiles?: number;
|
|
5406
|
+
/**
|
|
5407
|
+
* Whether the component is disabled.
|
|
5408
|
+
* Cascades from parent FormField if unset.
|
|
5409
|
+
* @default false
|
|
5410
|
+
*/
|
|
5411
|
+
isDisabled?: boolean;
|
|
5412
|
+
/**
|
|
5413
|
+
* Whether the component is in an invalid error state.
|
|
5414
|
+
* Cascades from parent FormField if unset.
|
|
5415
|
+
* @default false
|
|
5416
|
+
*/
|
|
5417
|
+
isInvalid?: boolean;
|
|
5418
|
+
/**
|
|
5419
|
+
* Primary title text inside the dropzone.
|
|
5420
|
+
* @default "Click or drag files here to upload"
|
|
5421
|
+
*/
|
|
5422
|
+
dropzoneText?: string;
|
|
5423
|
+
/**
|
|
5424
|
+
* Secondary hint text below the primary prompt.
|
|
5425
|
+
*/
|
|
5426
|
+
dropzoneHint?: string;
|
|
5427
|
+
/**
|
|
5428
|
+
* Button label for browsing files.
|
|
5429
|
+
* @default "Browse Files"
|
|
5430
|
+
*/
|
|
5431
|
+
browseText?: string;
|
|
5432
|
+
/**
|
|
5433
|
+
* Whether to display the selected files list within the component.
|
|
5434
|
+
* @default true
|
|
5435
|
+
*/
|
|
5436
|
+
showFileList?: boolean;
|
|
5437
|
+
/**
|
|
5438
|
+
* Custom file size formatter.
|
|
5439
|
+
*/
|
|
5440
|
+
formatFileSize?: (bytes: number) => string;
|
|
5441
|
+
}
|
|
5442
|
+
|
|
5443
|
+
declare const FileUpload: React.ForwardRefExoticComponent<FileUploadProps & React.RefAttributes<HTMLDivElement>>;
|
|
5444
|
+
|
|
5445
|
+
interface SliderMark {
|
|
5446
|
+
value: number;
|
|
5447
|
+
label?: React.ReactNode;
|
|
5448
|
+
}
|
|
5449
|
+
type SliderSize = "sm" | "md" | "lg";
|
|
5450
|
+
type SliderColorScheme = "primary" | "secondary" | "success" | "warning" | "danger";
|
|
5451
|
+
interface SliderProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> {
|
|
5452
|
+
/**
|
|
5453
|
+
* Controlled numeric value.
|
|
5454
|
+
*/
|
|
5455
|
+
value?: number;
|
|
5456
|
+
/**
|
|
5457
|
+
* Initial uncontrolled numeric value.
|
|
5458
|
+
* @default min
|
|
5459
|
+
*/
|
|
5460
|
+
defaultValue?: number;
|
|
5461
|
+
/**
|
|
5462
|
+
* Callback fired when value changes.
|
|
5463
|
+
*/
|
|
5464
|
+
onChange?: (value: number) => void;
|
|
5465
|
+
/**
|
|
5466
|
+
* Minimum permitted value.
|
|
5467
|
+
* @default 0
|
|
5468
|
+
*/
|
|
5469
|
+
min?: number;
|
|
5470
|
+
/**
|
|
5471
|
+
* Maximum permitted value.
|
|
5472
|
+
* @default 100
|
|
5473
|
+
*/
|
|
5474
|
+
max?: number;
|
|
5475
|
+
/**
|
|
5476
|
+
* Granular stepping increment.
|
|
5477
|
+
* @default 1
|
|
5478
|
+
*/
|
|
5479
|
+
step?: number;
|
|
5480
|
+
/**
|
|
5481
|
+
* Whether the slider is disabled.
|
|
5482
|
+
* Cascades from parent FormField if unset.
|
|
5483
|
+
* @default false
|
|
5484
|
+
*/
|
|
5485
|
+
isDisabled?: boolean;
|
|
5486
|
+
/**
|
|
5487
|
+
* Whether the slider is in an invalid state.
|
|
5488
|
+
* Cascades from parent FormField if unset.
|
|
5489
|
+
* @default false
|
|
5490
|
+
*/
|
|
5491
|
+
isInvalid?: boolean;
|
|
5492
|
+
/**
|
|
5493
|
+
* Spatial density scale.
|
|
5494
|
+
* @default "md"
|
|
5495
|
+
*/
|
|
5496
|
+
size?: SliderSize;
|
|
5497
|
+
/**
|
|
5498
|
+
* Semantic color scheme for the filled track and thumb.
|
|
5499
|
+
* @default "primary"
|
|
5500
|
+
*/
|
|
5501
|
+
colorScheme?: SliderColorScheme;
|
|
5502
|
+
/**
|
|
5503
|
+
* Array of milestone tick marks along the track.
|
|
5504
|
+
*/
|
|
5505
|
+
marks?: SliderMark[];
|
|
5506
|
+
/**
|
|
5507
|
+
* Accessible name for the slider thumb.
|
|
5508
|
+
* @default "Slider"
|
|
5509
|
+
*/
|
|
5510
|
+
"aria-label"?: string;
|
|
5511
|
+
/**
|
|
5512
|
+
* Formatted text representation of the value (for screen readers).
|
|
5513
|
+
*/
|
|
5514
|
+
getAriaValueText?: (value: number) => string;
|
|
5515
|
+
}
|
|
5516
|
+
interface RangeSliderProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> {
|
|
5517
|
+
/**
|
|
5518
|
+
* Controlled tuple of [minValue, maxValue].
|
|
5519
|
+
*/
|
|
5520
|
+
value?: [number, number];
|
|
5521
|
+
/**
|
|
5522
|
+
* Initial uncontrolled tuple of [minValue, maxValue].
|
|
5523
|
+
* @default [min, max]
|
|
5524
|
+
*/
|
|
5525
|
+
defaultValue?: [number, number];
|
|
5526
|
+
/**
|
|
5527
|
+
* Callback fired when range values change.
|
|
5528
|
+
*/
|
|
5529
|
+
onChange?: (value: [number, number]) => void;
|
|
5530
|
+
/**
|
|
5531
|
+
* Minimum permitted value.
|
|
5532
|
+
* @default 0
|
|
5533
|
+
*/
|
|
5534
|
+
min?: number;
|
|
5535
|
+
/**
|
|
5536
|
+
* Maximum permitted value.
|
|
5537
|
+
* @default 100
|
|
5538
|
+
*/
|
|
5539
|
+
max?: number;
|
|
5540
|
+
/**
|
|
5541
|
+
* Granular stepping increment.
|
|
5542
|
+
* @default 1
|
|
5543
|
+
*/
|
|
5544
|
+
step?: number;
|
|
5545
|
+
/**
|
|
5546
|
+
* Minimum distance permitted between lower and upper thumbs.
|
|
5547
|
+
* @default 0
|
|
5548
|
+
*/
|
|
5549
|
+
minDistance?: number;
|
|
5550
|
+
/**
|
|
5551
|
+
* Whether the range slider is disabled.
|
|
5552
|
+
* Cascades from parent FormField if unset.
|
|
5553
|
+
* @default false
|
|
5554
|
+
*/
|
|
5555
|
+
isDisabled?: boolean;
|
|
5556
|
+
/**
|
|
5557
|
+
* Whether the range slider is in an invalid state.
|
|
5558
|
+
* Cascades from parent FormField if unset.
|
|
5559
|
+
* @default false
|
|
5560
|
+
*/
|
|
5561
|
+
isInvalid?: boolean;
|
|
5562
|
+
/**
|
|
5563
|
+
* Spatial density scale.
|
|
5564
|
+
* @default "md"
|
|
5565
|
+
*/
|
|
5566
|
+
size?: SliderSize;
|
|
5567
|
+
/**
|
|
5568
|
+
* Semantic color scheme for the active range fill.
|
|
5569
|
+
* @default "primary"
|
|
5570
|
+
*/
|
|
5571
|
+
colorScheme?: SliderColorScheme;
|
|
5572
|
+
/**
|
|
5573
|
+
* Milestone marks along the track.
|
|
5574
|
+
*/
|
|
5575
|
+
marks?: SliderMark[];
|
|
5576
|
+
/**
|
|
5577
|
+
* Accessible name for lower thumb.
|
|
5578
|
+
* @default "Minimum value"
|
|
5579
|
+
*/
|
|
5580
|
+
minAriaLabel?: string;
|
|
5581
|
+
/**
|
|
5582
|
+
* Accessible name for upper thumb.
|
|
5583
|
+
* @default "Maximum value"
|
|
5584
|
+
*/
|
|
5585
|
+
maxAriaLabel?: string;
|
|
5586
|
+
/**
|
|
5587
|
+
* Formatter for screen-reader value announcement.
|
|
5588
|
+
*/
|
|
5589
|
+
getAriaValueText?: (value: number, thumbIndex: 0 | 1) => string;
|
|
5590
|
+
}
|
|
5591
|
+
|
|
5592
|
+
declare const Slider: React.ForwardRefExoticComponent<SliderProps & React.RefAttributes<HTMLDivElement>>;
|
|
5593
|
+
|
|
5594
|
+
declare const RangeSlider: React.ForwardRefExoticComponent<RangeSliderProps & React.RefAttributes<HTMLDivElement>>;
|
|
5595
|
+
|
|
5596
|
+
interface TreeNode<TData = unknown> {
|
|
5597
|
+
/**
|
|
5598
|
+
* Unique stable identifier for the tree node.
|
|
5599
|
+
*/
|
|
5600
|
+
id: string;
|
|
5601
|
+
/**
|
|
5602
|
+
* Node label text or React element.
|
|
5603
|
+
*/
|
|
5604
|
+
label: React.ReactNode;
|
|
5605
|
+
/**
|
|
5606
|
+
* Optional child tree nodes.
|
|
5607
|
+
*/
|
|
5608
|
+
children?: TreeNode<TData>[];
|
|
5609
|
+
/**
|
|
5610
|
+
* Whether the node is disabled.
|
|
5611
|
+
* @default false
|
|
5612
|
+
*/
|
|
5613
|
+
disabled?: boolean;
|
|
5614
|
+
/**
|
|
5615
|
+
* Optional custom icon rendered before the label.
|
|
5616
|
+
*/
|
|
5617
|
+
icon?: React.ReactNode;
|
|
5618
|
+
/**
|
|
5619
|
+
* Arbitrary payload data associated with this node.
|
|
5620
|
+
*/
|
|
5621
|
+
data?: TData;
|
|
5622
|
+
}
|
|
5623
|
+
type TreeViewSelectionMode = "none" | "single" | "multi";
|
|
5624
|
+
interface TreeNodeState {
|
|
5625
|
+
isExpanded: boolean;
|
|
5626
|
+
isSelected: boolean;
|
|
5627
|
+
isFocused: boolean;
|
|
5628
|
+
isDisabled: boolean;
|
|
5629
|
+
hasChildren: boolean;
|
|
5630
|
+
level: number;
|
|
5631
|
+
}
|
|
5632
|
+
interface TreeViewProps<TData = unknown> extends Omit<React.HTMLAttributes<HTMLDivElement>, "onChange" | "defaultValue"> {
|
|
5633
|
+
/**
|
|
5634
|
+
* Hierarchical tree data nodes.
|
|
5635
|
+
*/
|
|
5636
|
+
nodes: TreeNode<TData>[];
|
|
5637
|
+
/**
|
|
5638
|
+
* Controlled array of expanded node IDs.
|
|
5639
|
+
*/
|
|
5640
|
+
expandedIds?: string[];
|
|
5641
|
+
/**
|
|
5642
|
+
* Initial uncontrolled array of expanded node IDs.
|
|
5643
|
+
* @default []
|
|
5644
|
+
*/
|
|
5645
|
+
defaultExpandedIds?: string[];
|
|
5646
|
+
/**
|
|
5647
|
+
* Callback fired when expanded node IDs change.
|
|
5648
|
+
*/
|
|
5649
|
+
onExpandedChange?: (expandedIds: string[]) => void;
|
|
5650
|
+
/**
|
|
5651
|
+
* Controlled array of selected node IDs.
|
|
5652
|
+
*/
|
|
5653
|
+
selectedIds?: string[];
|
|
5654
|
+
/**
|
|
5655
|
+
* Initial uncontrolled array of selected node IDs.
|
|
5656
|
+
* @default []
|
|
5657
|
+
*/
|
|
5658
|
+
defaultSelectedIds?: string[];
|
|
5659
|
+
/**
|
|
5660
|
+
* Callback fired when selected node IDs change.
|
|
5661
|
+
*/
|
|
5662
|
+
onSelectionChange?: (selectedIds: string[]) => void;
|
|
5663
|
+
/**
|
|
5664
|
+
* Selection mode for the tree.
|
|
5665
|
+
* @default "single"
|
|
5666
|
+
*/
|
|
5667
|
+
selectionMode?: TreeViewSelectionMode;
|
|
5668
|
+
/**
|
|
5669
|
+
* Indentation in pixels per nesting level.
|
|
5670
|
+
* @default 20
|
|
5671
|
+
*/
|
|
5672
|
+
indentSize?: number;
|
|
5673
|
+
/**
|
|
5674
|
+
* Whether all nodes are initially expanded.
|
|
5675
|
+
* @default false
|
|
5676
|
+
*/
|
|
5677
|
+
defaultExpandAll?: boolean;
|
|
5678
|
+
/**
|
|
5679
|
+
* Custom node content renderer.
|
|
5680
|
+
*/
|
|
5681
|
+
renderNode?: (node: TreeNode<TData>, state: TreeNodeState) => React.ReactNode;
|
|
5682
|
+
/**
|
|
5683
|
+
* Message or component to render when tree has no nodes.
|
|
5684
|
+
* @default "No items available"
|
|
5685
|
+
*/
|
|
5686
|
+
emptyMessage?: React.ReactNode;
|
|
5687
|
+
/**
|
|
5688
|
+
* Accessible label for the tree landmark.
|
|
5689
|
+
* @default "Tree View"
|
|
5690
|
+
*/
|
|
5691
|
+
ariaLabel?: string;
|
|
5692
|
+
}
|
|
5693
|
+
|
|
5694
|
+
declare const TreeView: <TData = unknown>(props: TreeViewProps<TData> & {
|
|
5695
|
+
ref?: React.Ref<HTMLDivElement>;
|
|
5696
|
+
}) => React.ReactElement;
|
|
5697
|
+
|
|
5698
|
+
interface StepItem {
|
|
5699
|
+
/**
|
|
5700
|
+
* Unique identifier or index for the step.
|
|
5701
|
+
*/
|
|
5702
|
+
id: string | number;
|
|
5703
|
+
/**
|
|
5704
|
+
* Primary title or label for the step.
|
|
5705
|
+
*/
|
|
5706
|
+
label: React.ReactNode;
|
|
5707
|
+
/**
|
|
5708
|
+
* Optional secondary description text or content.
|
|
5709
|
+
*/
|
|
5710
|
+
description?: React.ReactNode;
|
|
5711
|
+
/**
|
|
5712
|
+
* Optional custom icon rendered inside the step indicator.
|
|
5713
|
+
*/
|
|
5714
|
+
icon?: React.ReactNode;
|
|
5715
|
+
/**
|
|
5716
|
+
* Whether the step is disabled and cannot be activated.
|
|
5717
|
+
* @default false
|
|
5718
|
+
*/
|
|
5719
|
+
disabled?: boolean;
|
|
5720
|
+
/**
|
|
5721
|
+
* Whether the step contains validation or execution errors.
|
|
5722
|
+
* @default false
|
|
5723
|
+
*/
|
|
5724
|
+
error?: boolean;
|
|
5725
|
+
/**
|
|
5726
|
+
* Whether the step is explicitly marked completed.
|
|
5727
|
+
*/
|
|
5728
|
+
completed?: boolean;
|
|
5729
|
+
/**
|
|
5730
|
+
* Whether the step is marked optional (displays an "Optional" badge).
|
|
5731
|
+
* @default false
|
|
5732
|
+
*/
|
|
5733
|
+
optional?: boolean;
|
|
5734
|
+
}
|
|
5735
|
+
type StepperOrientation = "horizontal" | "vertical";
|
|
5736
|
+
type StepperSize = "sm" | "md" | "lg";
|
|
5737
|
+
interface StepperProps extends Omit<React.HTMLAttributes<HTMLElement>, "onChange"> {
|
|
5738
|
+
/**
|
|
5739
|
+
* Array of step definitions.
|
|
5740
|
+
*/
|
|
5741
|
+
steps: StepItem[];
|
|
5742
|
+
/**
|
|
5743
|
+
* Controlled active step identifier or index.
|
|
5744
|
+
*/
|
|
5745
|
+
activeStep?: string | number;
|
|
5746
|
+
/**
|
|
5747
|
+
* Initial uncontrolled active step.
|
|
5748
|
+
* @default 0
|
|
5749
|
+
*/
|
|
5750
|
+
defaultActiveStep?: string | number;
|
|
5751
|
+
/**
|
|
5752
|
+
* Callback fired when active step changes.
|
|
5753
|
+
*/
|
|
5754
|
+
onStepChange?: (stepId: string | number) => void;
|
|
5755
|
+
/**
|
|
5756
|
+
* Orientation of the stepper layout.
|
|
5757
|
+
* @default "horizontal"
|
|
5758
|
+
*/
|
|
5759
|
+
orientation?: StepperOrientation;
|
|
5760
|
+
/**
|
|
5761
|
+
* Size variant of step indicators and labels.
|
|
5762
|
+
* @default "md"
|
|
5763
|
+
*/
|
|
5764
|
+
size?: StepperSize;
|
|
5765
|
+
/**
|
|
5766
|
+
* Whether steps can be clicked to navigate.
|
|
5767
|
+
* Can be a boolean or a predicate function.
|
|
5768
|
+
* @default false
|
|
5769
|
+
*/
|
|
5770
|
+
isClickable?: boolean | ((step: StepItem, index: number) => boolean);
|
|
5771
|
+
/**
|
|
5772
|
+
* Accessible label for the navigation landmark.
|
|
5773
|
+
* @default "Progress"
|
|
5774
|
+
*/
|
|
5775
|
+
ariaLabel?: string;
|
|
5776
|
+
}
|
|
5777
|
+
|
|
5778
|
+
declare const Stepper: React.ForwardRefExoticComponent<StepperProps & React.RefAttributes<HTMLElement>>;
|
|
5779
|
+
|
|
5780
|
+
interface CarouselSlideData {
|
|
5781
|
+
id?: string | number;
|
|
5782
|
+
content: React.ReactNode;
|
|
5783
|
+
ariaLabel?: string;
|
|
5784
|
+
}
|
|
5785
|
+
interface CarouselProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "onChange"> {
|
|
5786
|
+
/**
|
|
5787
|
+
* Slide items to display. Alternatively pass children as slides.
|
|
5788
|
+
*/
|
|
5789
|
+
slides?: (React.ReactNode | CarouselSlideData)[];
|
|
5790
|
+
/**
|
|
5791
|
+
* Direct child slide elements.
|
|
5792
|
+
*/
|
|
5793
|
+
children?: React.ReactNode;
|
|
5794
|
+
/**
|
|
5795
|
+
* Controlled 0-based index of the active slide.
|
|
5796
|
+
*/
|
|
5797
|
+
activeSlide?: number;
|
|
5798
|
+
/**
|
|
5799
|
+
* Initial uncontrolled 0-based index of the active slide.
|
|
5800
|
+
* @default 0
|
|
5801
|
+
*/
|
|
5802
|
+
defaultActiveSlide?: number;
|
|
5803
|
+
/**
|
|
5804
|
+
* Callback fired when active slide index changes.
|
|
5805
|
+
*/
|
|
5806
|
+
onSlideChange?: (index: number) => void;
|
|
5807
|
+
/**
|
|
5808
|
+
* Whether navigation loops continuously from end to start.
|
|
5809
|
+
* @default false
|
|
5810
|
+
*/
|
|
5811
|
+
loop?: boolean;
|
|
5812
|
+
/**
|
|
5813
|
+
* Whether to display previous/next navigation arrow buttons.
|
|
5814
|
+
* @default true
|
|
5815
|
+
*/
|
|
5816
|
+
showControls?: boolean;
|
|
5817
|
+
/**
|
|
5818
|
+
* Whether to display pagination dot indicators.
|
|
5819
|
+
* @default true
|
|
5820
|
+
*/
|
|
5821
|
+
showPagination?: boolean;
|
|
5822
|
+
/**
|
|
5823
|
+
* Whether automatic slide progression is enabled.
|
|
5824
|
+
* @default false
|
|
5825
|
+
*/
|
|
5826
|
+
autoPlay?: boolean;
|
|
5827
|
+
/**
|
|
5828
|
+
* Duration in milliseconds between automatic slide transitions.
|
|
5829
|
+
* @default 5000
|
|
5830
|
+
*/
|
|
5831
|
+
autoPlayInterval?: number;
|
|
5832
|
+
/**
|
|
5833
|
+
* Whether to pause autoplay when hovered.
|
|
5834
|
+
* @default true
|
|
5835
|
+
*/
|
|
5836
|
+
pauseOnHover?: boolean;
|
|
5837
|
+
/**
|
|
5838
|
+
* Whether to pause autoplay when any element receives focus.
|
|
5839
|
+
* @default true
|
|
5840
|
+
*/
|
|
5841
|
+
pauseOnFocus?: boolean;
|
|
5842
|
+
/**
|
|
5843
|
+
* Whether the carousel is disabled.
|
|
5844
|
+
* @default false
|
|
5845
|
+
*/
|
|
5846
|
+
isDisabled?: boolean;
|
|
5847
|
+
/**
|
|
5848
|
+
* Accessible name for the carousel landmark region.
|
|
5849
|
+
* @default "Content Carousel"
|
|
5850
|
+
*/
|
|
5851
|
+
ariaLabel?: string;
|
|
5852
|
+
}
|
|
5853
|
+
interface CarouselSlideProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
5854
|
+
children?: React.ReactNode;
|
|
5855
|
+
}
|
|
5856
|
+
|
|
5857
|
+
declare const Carousel: React.ForwardRefExoticComponent<CarouselProps & React.RefAttributes<HTMLDivElement>>;
|
|
5858
|
+
|
|
5859
|
+
declare const CarouselSlide: React.ForwardRefExoticComponent<CarouselSlideProps & React.RefAttributes<HTMLDivElement>>;
|
|
5860
|
+
|
|
5861
|
+
export { Accordion, AccordionActions, type AccordionActionsProps, AccordionCollapseAll, type AccordionCollapseAllProps, AccordionContent, type AccordionContentProps, AccordionContext, type AccordionContextValue, AccordionExpandAll, type AccordionExpandAllProps, AccordionHeader, type AccordionHeaderProps, AccordionIcon, type AccordionIconProps, type AccordionIndicatorPosition, AccordionItem, AccordionItemContext, type AccordionItemContextValue, type AccordionItemProps, type AccordionMultipleProps, type AccordionProps, AccordionRoot, type AccordionRootProps, type AccordionSingleProps, type AccordionSize, AccordionTrigger, type AccordionTriggerProps, type AccordionType, type AccordionVariant, Alert, AlertAction, type AlertActionProps, AlertBody, type AlertBodyProps, AlertCloseButton, type AlertCloseButtonProps, type AlertContextValue, AlertDescription, type AlertDescriptionProps, AlertIcon, type AlertIconProps, type AlertProps, AlertRoot, type AlertRootProps, type AlertStatus, AlertTitle, type AlertTitleProps, type AlertVariant, Autocomplete, Avatar, AvatarBadge, type AvatarBadgeProps, AvatarContext, type AvatarContextValue, AvatarFallback, type AvatarFallbackProps, AvatarGroup, AvatarGroupContext, type AvatarGroupContextValue, type AvatarGroupProps, AvatarImage, type AvatarImageProps, type AvatarPlacement, type AvatarProps, AvatarRoot, type AvatarShape, type AvatarSize, type AvatarStatus, Badge, type BadgeColorScheme, type BadgeProps, type BadgeSize, type BadgeVariant, Box, type BoxProps, Breadcrumb, BreadcrumbEllipsis, type BreadcrumbEllipsisProps, BreadcrumbItem, type BreadcrumbItemProps, BreadcrumbLink, type BreadcrumbLinkProps, BreadcrumbList, type BreadcrumbListProps, BreadcrumbPage, type BreadcrumbPageProps, BreadcrumbSeparator, type BreadcrumbSeparatorProps, Breadcrumbs, type BreadcrumbsProps, BreadcrumbsRoot, type BreakpointKey, type Breakpoints, Button, type ButtonColorScheme, ButtonGroup, ButtonGroupContext, type ButtonGroupContextValue, type ButtonGroupOrientation, type ButtonGroupProps, type ButtonLoadingPosition, type ButtonProps, type ButtonSize, type ButtonVariant, Calendar, type CalendarGridDay, type CalendarProps, Card, CardActions, type CardActionsProps, CardBody, type CardBodyProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, CardMedia, type CardMediaProps, type CardOwnerState, type CardProps, CardRoot, type CardSize, CardTitle, type CardTitleProps, type CardVariant, Carousel, type CarouselProps, CarouselSlide, type CarouselSlideData, type CarouselSlideProps, Checkbox, type CheckboxColorScheme, CheckboxContext, type CheckboxContextValue, CheckboxGroup, type CheckboxGroupProps, type CheckboxOwnerState, type CheckboxProps, type CheckboxSize, type ChellaaTheme, Code, type CodeColorScheme, type CodeOwnerState, type CodeProps, type ColorMode, Combobox, ComboboxActions, type ComboboxActionsProps, ComboboxClear, type ComboboxClearProps, ComboboxContent, type ComboboxContentProps, type ComboboxContextValue, ComboboxControl, type ComboboxControlProps, ComboboxEmpty, type ComboboxEmptyProps, ComboboxGroup, ComboboxGroupLabel, type ComboboxGroupLabelProps, type ComboboxGroupProps, ComboboxInput, type ComboboxInputProps, ComboboxItem, type ComboboxItemProps, type ComboboxOption, ComboboxPortal, type ComboboxPortalProps, type ComboboxProps, ComboboxRoot, type ComboboxRootProps, type ComboboxSize, ComboboxTag, type ComboboxTagProps, ComboboxTrigger, type ComboboxTriggerProps, type ComboboxVariant, type ComponentOverride, type ComponentOverrideOptions, Container, type ContainerOwnerState, type ContainerProps, ContextMenu, ContextMenuCheckboxItem, type ContextMenuCheckboxItemProps, ContextMenuContent, type ContextMenuContentProps, ContextMenuItem, type ContextMenuItemProps, ContextMenuLabel, type ContextMenuLabelProps, ContextMenuRadioGroup, type ContextMenuRadioGroupProps, ContextMenuRadioItem, type ContextMenuRadioItemProps, ContextMenuRoot, type ContextMenuRootProps, ContextMenuSeparator, type ContextMenuSeparatorProps, ContextMenuTrigger, type ContextMenuTriggerProps, DataGrid, type DataGridColumn, type DataGridPaginationProps, type DataGridProps, type DataGridSort, DatePicker, type DatePickerProps, type DateRange, DateRangePicker, type DateRangePickerProps, type DeepPartial, Dialog, DialogBody, type DialogBodyProps, DialogClose, type DialogCloseProps, DialogContent, type DialogContentProps, DialogDescription, type DialogDescriptionProps, DialogFooter, type DialogFooterProps, DialogHeader, type DialogHeaderProps, DialogOverlay, type DialogOverlayProps, DialogPortal, type DialogPortalProps, DialogRoot, type DialogRootProps, type DialogSize, DialogTitle, type DialogTitleProps, DialogTrigger, type DialogTriggerProps, Divider, type DividerLineStyle, type DividerOrientation, type DividerOwnerState, type DividerProps, type DividerTextAlign, type DividerVariant, Drawer, DrawerBody, type DrawerBodyProps, DrawerClose, type DrawerCloseProps, DrawerContent, type DrawerContentProps, DrawerDescription, type DrawerDescriptionProps, DrawerFooter, type DrawerFooterProps, DrawerHeader, type DrawerHeaderProps, DrawerOverlay, type DrawerOverlayProps, type DrawerPlacement, DrawerPortal, type DrawerPortalProps, DrawerRoot, type DrawerRootProps, type DrawerSize, DrawerTitle, type DrawerTitleProps, DrawerTrigger, type DrawerTriggerProps, DropdownMenu, type DropdownMenuAlign, DropdownMenuCheckboxItem, type DropdownMenuCheckboxItemProps, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, type DropdownMenuLabelProps, DropdownMenuRadioGroup, type DropdownMenuRadioGroupProps, DropdownMenuRadioItem, type DropdownMenuRadioItemProps, DropdownMenuRoot, type DropdownMenuRootProps, DropdownMenuSeparator, type DropdownMenuSeparatorProps, type DropdownMenuSide, DropdownMenuTrigger, type DropdownMenuTriggerProps, type ExtendedThemeContextValue, type FieldValidationError, type FieldValidationResult, type FieldValidator, type FileItem, FileUpload, type FileUploadProps, type FileValidationError, type FileValidationErrorCode, Flex, type FlexOwnerState, type FlexProps, FormErrorMessage, type FormErrorMessageProps, FormField, FormFieldContext, type FormFieldContextValue, type FormFieldProps, FormHelperText, type FormHelperTextProps, FormLabel, type FormLabelProps, Grid, type GridDirection, type GridOwnerState, type GridProps, type GridSize, type GridWrap, Heading, type HeadingLevel, type HeadingProps, type ImageLoadingStatus, Input, InputAdornment, type InputAdornmentProps, InputBase, type InputOwnerState, type InputProps, type InputSize, type InputVariant, Kbd, type KbdModifier, type KbdOwnerState, type KbdProps, type KbdSize, type KbdVariant, Link, type LinkColorScheme, type LinkProps, type LinkUnderline, MODIFIER_SYMBOLS, Modal, type ModalBodyProps, type ModalCloseProps, type ModalContentProps, type ModalDescriptionProps, type ModalFooterProps, type ModalHeaderProps, type ModalOverlayProps, type ModalPortalProps, type ModalRootProps, type ModalSize, type ModalTitleProps, type ModalTriggerProps, MultiSelect, type MultiSelectOption, type MultiSelectProps, type MultiSelectSize, type MultiSelectVariant, Pagination, type PaginationActionProps, PaginationContext, type PaginationContextValue, PaginationEllipsis, type PaginationEllipsisProps, PaginationFirst, PaginationItem, type PaginationItemProps, PaginationJumper, type PaginationJumperProps, PaginationLast, PaginationList, type PaginationListProps, PaginationNext, PaginationPrev, type PaginationProps, PaginationRoot, type PaginationRootProps, type PaginationSize, PaginationSizeSelect, type PaginationSizeSelectProps, type PaginationVariant, type Palette, type PaletteColor, Paper, type PaperOwnerState, type PaperProps, type PaperVariant, Paragraph, type ParagraphProps, Popover, PopoverArrow, type PopoverArrowProps, PopoverBody, type PopoverBodyProps, PopoverClose, type PopoverCloseProps, PopoverContent, type PopoverContentProps, type PopoverContextValue, PopoverFooter, type PopoverFooterProps, PopoverHeader, type PopoverHeaderProps, type PopoverPlacement, PopoverPortal, type PopoverPortalProps, type PopoverProps, PopoverRoot, type PopoverRootProps, PopoverTitle, type PopoverTitleProps, PopoverTrigger, type PopoverTriggerProps, Portal, type PortalProps, Progress, type ProgressColorScheme, type ProgressProps, type ProgressSize, type ProgressVariant, Radio, type RadioColorScheme, RadioContext, type RadioContextValue, RadioGroup, type RadioGroupProps, type RadioOwnerState, type RadioProps, type RadioSize, RangeSlider, type RangeSliderProps, type RegisteredItem, type ResponsiveValue, type RippleItem, Select, SelectContent, type SelectContentProps, type SelectContextValue, SelectGroup, type SelectGroupProps, SelectIcon, type SelectIconProps, SelectItem, SelectItemIndicator, type SelectItemIndicatorProps, type SelectItemProps, SelectItemText, type SelectItemTextProps, SelectLabel, type SelectLabelProps, type SelectOption, SelectPortal, type SelectPortalProps, SelectRoot, type SelectRootProps, SelectSeparator, type SelectSeparatorProps, type SelectSize, SelectTrigger, type SelectTriggerProps, SelectValue, type SelectValueProps, type SelectVariant, Sheet, SheetBody, type SheetBodyProps, SheetClose, type SheetCloseProps, SheetContent, type SheetContentProps, SheetDescription, type SheetDescriptionProps, SheetFooter, type SheetFooterProps, SheetHeader, type SheetHeaderProps, SheetOverlay, type SheetOverlayProps, type SheetPlacement, SheetPortal, type SheetPortalProps, SheetRoot, type SheetRootProps, type SheetSize, SheetTitle, type SheetTitleProps, SheetTrigger, type SheetTriggerProps, Skeleton, type SkeletonAnimation, type SkeletonProps, type SkeletonVariant, Slider, type SliderColorScheme, type SliderMark, type SliderProps, type SliderSize, Slot, type SlotProps, Snackbar, type SnackbarProps, type SortDirection, Spinner, type SpinnerColorScheme, type SpinnerProps, type SpinnerSize, Stack, type StackDirection, type StackOwnerState, type StackProps, type StandardCSSProperties, type StepItem, Stepper, type StepperOrientation, type StepperProps, type StepperSize, type StyleInterpolation, type StyledOptions, Switch, type SwitchColorScheme, type SwitchLabelPlacement, type SwitchOwnerState, type SwitchProps, type SwitchSize, type SxObject, type SxPropValue, type SxProps, type SystemCssProperties, type SystemStyleProperties, Table, TableCaption, type TableCaptionProps, type TableCellProps, TableContainer, type TableContainerProps, type TableContextValue, type TableHeaderCellProps, TableRoot, type TableRootProps, type TableRowProps, type TableSize, TableTbody, type TableTbodyProps, TableTd, TableTfoot, type TableTfootProps, TableTh, TableThead, type TableTheadProps, TableTr, type TableVariant, Tabs, type TabsActivationMode, TabsContent, type TabsContentProps, TabsContext, type TabsContextValue, TabsIndicator, type TabsIndicatorProps, TabsList, type TabsListProps, type TabsOrientation, type TabsProps, TabsRoot, type TabsRootProps, type TabsSize, TabsTrigger, type TabsTriggerProps, type TabsVariant, Text, TextField, type TextFieldProps, type TextProps, type TextSize, Textarea, type TextareaOwnerState, type TextareaProps, type TextareaResize, type TextareaSize, type TextareaVariant, type ThemeContextValue, type ThemeMode, type ThemeOptions, ThemeProvider, type ThemeProviderProps, ThemeScript, type ThemeScriptProps, type TimeFormat, TimePicker, type TimePickerProps, Toast, ToastContext, ToastItem, type ToastOptions, type ToastPosition, ToastProvider, type ToastProviderProps, type ToastRecord, type ToastStatus, Tooltip, type TooltipOwnerState, type TooltipPlacement, type TooltipProps, TouchRipple, type TouchRippleProps, type TouchRippleRef, type Transitions, type TreeNode, type TreeNodeState, TreeView, type TreeViewProps, type TreeViewSelectionMode, type TypeAction, type TypeBackground, type TypeText, Typography, type TypographyAlign, type TypographyOwnerState, type TypographyProps, type TypographyStyle, type TypographyTheme, type TypographyVariant, type UseFormValidationOptions, type UseFormValidationReturn, type UseRippleOptions, type UseRippleReturn, type UseToastReturn, type ZIndex, addDays, addMonths, addYears, breakpointKeys, createBreakpoints, createLocalDate, createPalette, createShadows, createShouldForwardProp, createSpacing, createTheme, darkPalette, defaultBreakpoints, defaultDarkTheme, defaultShadows, defaultSpacing, defaultTheme, defaultTransitions, defaultTypography, defaultZIndex, formatLocalDate, getCalendarGrid, getDaysInMonth, getInitials, getMonthLabel, getPaginationRange, getWeekdayLabels, isDateAfter, isDateBefore, isDateInRange, isLeapYear, isSameDay, isSameMonth, lightPalette, parseLocalDate, parseSx, resolveComponentOverrides, resolveTypographyColor, rootShouldForwardProp, styled, useAccordionContext, useAccordionItemContext, useAlertContext, useAvatarContext, useAvatarGroupContext, useButtonGroupContext, useCheckboxGroup, useCombobox, useComboboxContext, useDrawerContext, useDropdownMenuContext, useFormField, useFormValidation, usePaginationContext, usePopoverContext, useRadioGroup, useRipple, useSelectContext, useTabsContext, useTheme, useToast };
|