@undefine-ui/design-system 3.3.0 → 3.4.1
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/README.md +414 -8
- package/dist/index.cjs +2149 -612
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +297 -3
- package/dist/index.d.ts +297 -3
- package/dist/index.js +2063 -517
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -10,6 +10,11 @@ import { SxProps as SxProps$1, Theme as Theme$1 } from '@mui/material';
|
|
|
10
10
|
import { SvgIconProps } from '@mui/material/SvgIcon';
|
|
11
11
|
import { DataGridProps } from '@mui/x-data-grid';
|
|
12
12
|
import { DropzoneOptions } from 'react-dropzone';
|
|
13
|
+
import { DialogProps } from '@mui/material/Dialog';
|
|
14
|
+
import { DrawerProps } from '@mui/material/Drawer';
|
|
15
|
+
import { PopoverProps } from '@mui/material/Popover';
|
|
16
|
+
import { ButtonBaseProps } from '@mui/material/ButtonBase';
|
|
17
|
+
import { InputBaseProps } from '@mui/material/InputBase';
|
|
13
18
|
import { FieldValues, UseFormReturn, SubmitHandler } from 'react-hook-form';
|
|
14
19
|
import { DatePickerProps as DatePickerProps$1 } from '@mui/x-date-pickers/DatePicker';
|
|
15
20
|
import { TimePickerProps as TimePickerProps$1 } from '@mui/x-date-pickers/TimePicker';
|
|
@@ -1146,9 +1151,11 @@ declare const Building: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
|
|
|
1146
1151
|
|
|
1147
1152
|
declare const InfoToast: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
|
|
1148
1153
|
|
|
1154
|
+
declare const EyeClosed: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
|
|
1155
|
+
|
|
1149
1156
|
declare const UserSolid: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
|
|
1150
1157
|
|
|
1151
|
-
declare const
|
|
1158
|
+
declare const FilterList: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
|
|
1152
1159
|
|
|
1153
1160
|
declare const ErrorToast: (props: SvgIconProps) => react_jsx_runtime.JSX.Element;
|
|
1154
1161
|
|
|
@@ -1216,6 +1223,7 @@ declare const Icons_Download: typeof Download;
|
|
|
1216
1223
|
declare const Icons_ErrorToast: typeof ErrorToast;
|
|
1217
1224
|
declare const Icons_Eye: typeof Eye;
|
|
1218
1225
|
declare const Icons_EyeClosed: typeof EyeClosed;
|
|
1226
|
+
declare const Icons_FilterList: typeof FilterList;
|
|
1219
1227
|
declare const Icons_HelpCircle: typeof HelpCircle;
|
|
1220
1228
|
declare const Icons_InfoCircle: typeof InfoCircle;
|
|
1221
1229
|
declare const Icons_InfoCircleSolid: typeof InfoCircleSolid;
|
|
@@ -1245,7 +1253,7 @@ declare const Icons_WarningToast: typeof WarningToast;
|
|
|
1245
1253
|
declare const Icons_XMark: typeof XMark;
|
|
1246
1254
|
declare const Icons_XMarkSolid: typeof XMarkSolid;
|
|
1247
1255
|
declare namespace Icons {
|
|
1248
|
-
export { Icons_Attachment as Attachment, Icons_Bank as Bank, Icons_BellNotification as BellNotification, Icons_Building as Building, Icons_Calendar as Calendar, Icons_CheckCircleSolid as CheckCircleSolid, Icons_CheckboxDefault as CheckboxDefault, Icons_CheckboxIndeterminate as CheckboxIndeterminate, Icons_CheckboxSelect as CheckboxSelect, Icons_Circle as Circle, Icons_ClipboardCheck as ClipboardCheck, Icons_Clock as Clock, Icons_CloudUpload as CloudUpload, Icons_Copy as Copy, Icons_Download as Download, Icons_ErrorToast as ErrorToast, Icons_Eye as Eye, Icons_EyeClosed as EyeClosed, Icons_HelpCircle as HelpCircle, Icons_InfoCircle as InfoCircle, Icons_InfoCircleSolid as InfoCircleSolid, Icons_InfoToast as InfoToast, Icons_KeyCommand as KeyCommand, Icons_Loader as Loader, Icons_LongArrowUpLeftSolid as LongArrowUpLeftSolid, Icons_NavArrowDown as NavArrowDown, Icons_NavArrowDownSolid as NavArrowDownSolid, Icons_NavArrowLeft as NavArrowLeft, Icons_NavArrowRight as NavArrowRight, Icons_Plus as Plus, Icons_PlusSquare as PlusSquare, Icons_RadioDefault as RadioDefault, Icons_RadioSelect as RadioSelect, Icons_Search as Search, Icons_Settings as Settings, Icons_SortDown as SortDown, Icons_SortUp as SortUp, Icons_StatDown as StatDown, Icons_StatUp as StatUp, Icons_SuccessToast as SuccessToast, Icons_Trash as Trash, Icons_User as User, Icons_UserSolid as UserSolid, Icons_WarningToast as WarningToast, Icons_XMark as XMark, Icons_XMarkSolid as XMarkSolid };
|
|
1256
|
+
export { Icons_Attachment as Attachment, Icons_Bank as Bank, Icons_BellNotification as BellNotification, Icons_Building as Building, Icons_Calendar as Calendar, Icons_CheckCircleSolid as CheckCircleSolid, Icons_CheckboxDefault as CheckboxDefault, Icons_CheckboxIndeterminate as CheckboxIndeterminate, Icons_CheckboxSelect as CheckboxSelect, Icons_Circle as Circle, Icons_ClipboardCheck as ClipboardCheck, Icons_Clock as Clock, Icons_CloudUpload as CloudUpload, Icons_Copy as Copy, Icons_Download as Download, Icons_ErrorToast as ErrorToast, Icons_Eye as Eye, Icons_EyeClosed as EyeClosed, Icons_FilterList as FilterList, Icons_HelpCircle as HelpCircle, Icons_InfoCircle as InfoCircle, Icons_InfoCircleSolid as InfoCircleSolid, Icons_InfoToast as InfoToast, Icons_KeyCommand as KeyCommand, Icons_Loader as Loader, Icons_LongArrowUpLeftSolid as LongArrowUpLeftSolid, Icons_NavArrowDown as NavArrowDown, Icons_NavArrowDownSolid as NavArrowDownSolid, Icons_NavArrowLeft as NavArrowLeft, Icons_NavArrowRight as NavArrowRight, Icons_Plus as Plus, Icons_PlusSquare as PlusSquare, Icons_RadioDefault as RadioDefault, Icons_RadioSelect as RadioSelect, Icons_Search as Search, Icons_Settings as Settings, Icons_SortDown as SortDown, Icons_SortUp as SortUp, Icons_StatDown as StatDown, Icons_StatUp as StatUp, Icons_SuccessToast as SuccessToast, Icons_Trash as Trash, Icons_User as User, Icons_UserSolid as UserSolid, Icons_WarningToast as WarningToast, Icons_XMark as XMark, Icons_XMarkSolid as XMarkSolid };
|
|
1249
1257
|
}
|
|
1250
1258
|
|
|
1251
1259
|
type IconType = keyof typeof Icons;
|
|
@@ -1384,6 +1392,248 @@ interface UploadProps extends DropzoneOptions {
|
|
|
1384
1392
|
|
|
1385
1393
|
declare const Upload: ({ sx, value, error, disabled, onDelete, onUpload, onRemove, helperText, onRemoveAll, uploadProgress, isUploading, multiple, ...rest }: UploadProps) => react_jsx_runtime.JSX.Element;
|
|
1386
1394
|
|
|
1395
|
+
declare const dialogClasses: {
|
|
1396
|
+
root: string;
|
|
1397
|
+
closeButton: string;
|
|
1398
|
+
};
|
|
1399
|
+
declare const feedbackDialogClasses: {
|
|
1400
|
+
root: string;
|
|
1401
|
+
image: string;
|
|
1402
|
+
title: string;
|
|
1403
|
+
description: string;
|
|
1404
|
+
actions: string;
|
|
1405
|
+
};
|
|
1406
|
+
|
|
1407
|
+
interface CustomDialogProps extends DialogProps {
|
|
1408
|
+
onClose?: () => void;
|
|
1409
|
+
}
|
|
1410
|
+
declare const CustomDialog: ({ children, onClose, className, ...props }: CustomDialogProps) => react_jsx_runtime.JSX.Element;
|
|
1411
|
+
|
|
1412
|
+
interface FeedbackDialogSlotProps {
|
|
1413
|
+
image?: BoxProps['sx'];
|
|
1414
|
+
title?: TypographyProps['sx'];
|
|
1415
|
+
description?: TypographyProps['sx'];
|
|
1416
|
+
actions?: BoxProps['sx'];
|
|
1417
|
+
}
|
|
1418
|
+
interface FeedbackDialogProps extends Omit<CustomDialogProps, 'title'> {
|
|
1419
|
+
image?: string;
|
|
1420
|
+
title?: string;
|
|
1421
|
+
description?: string;
|
|
1422
|
+
actions?: React.ReactNode;
|
|
1423
|
+
feedbackSlotProps?: FeedbackDialogSlotProps;
|
|
1424
|
+
}
|
|
1425
|
+
declare const FeedbackDialog: ({ image, title, description, actions, feedbackSlotProps, slotProps, ...props }: FeedbackDialogProps) => react_jsx_runtime.JSX.Element;
|
|
1426
|
+
|
|
1427
|
+
declare const drawerClasses: {
|
|
1428
|
+
root: string;
|
|
1429
|
+
header: string;
|
|
1430
|
+
title: string;
|
|
1431
|
+
closeButton: string;
|
|
1432
|
+
content: string;
|
|
1433
|
+
};
|
|
1434
|
+
|
|
1435
|
+
interface CustomDrawerProps extends Omit<DrawerProps, 'title'> {
|
|
1436
|
+
title?: string;
|
|
1437
|
+
onClose?: () => void;
|
|
1438
|
+
}
|
|
1439
|
+
declare const CustomDrawer: ({ title, children, onClose, className, anchor, slotProps, ...props }: CustomDrawerProps) => react_jsx_runtime.JSX.Element;
|
|
1440
|
+
|
|
1441
|
+
declare const toolbarClasses: {
|
|
1442
|
+
root: string;
|
|
1443
|
+
button: string;
|
|
1444
|
+
buttonOpen: string;
|
|
1445
|
+
buttonIcon: string;
|
|
1446
|
+
buttonLabel: string;
|
|
1447
|
+
searchField: string;
|
|
1448
|
+
searchFieldFocused: string;
|
|
1449
|
+
searchIcon: string;
|
|
1450
|
+
searchInput: string;
|
|
1451
|
+
searchClearButton: string;
|
|
1452
|
+
viewSwitcher: string;
|
|
1453
|
+
viewSwitcherLabel: string;
|
|
1454
|
+
viewSwitcherIcon: string;
|
|
1455
|
+
filterDropdown: string;
|
|
1456
|
+
sortDropdown: string;
|
|
1457
|
+
dateRangeDropdown: string;
|
|
1458
|
+
};
|
|
1459
|
+
|
|
1460
|
+
type SortDirection = 'asc' | 'desc';
|
|
1461
|
+
interface SortOption {
|
|
1462
|
+
/** Unique value for the sort option */
|
|
1463
|
+
value: string;
|
|
1464
|
+
/** Display label for the sort option */
|
|
1465
|
+
label: string;
|
|
1466
|
+
}
|
|
1467
|
+
interface SortDropdownProps {
|
|
1468
|
+
/** The available sort options */
|
|
1469
|
+
options: SortOption[];
|
|
1470
|
+
/** Currently selected sort field value */
|
|
1471
|
+
value?: string;
|
|
1472
|
+
/** Sort direction */
|
|
1473
|
+
direction?: SortDirection;
|
|
1474
|
+
/** Called when the sort selection changes */
|
|
1475
|
+
onChange?: (value: string, direction: SortDirection) => void;
|
|
1476
|
+
/** Called when the popover closes */
|
|
1477
|
+
onClose?: () => void;
|
|
1478
|
+
/** Custom label for the sort button */
|
|
1479
|
+
buttonLabel?: string;
|
|
1480
|
+
/** Custom label for ascending */
|
|
1481
|
+
ascLabel?: string;
|
|
1482
|
+
/** Custom label for descending */
|
|
1483
|
+
descLabel?: string;
|
|
1484
|
+
/** Custom sx styles for the popover content */
|
|
1485
|
+
popoverSx?: SxProps<Theme>;
|
|
1486
|
+
/** Custom popover props */
|
|
1487
|
+
PopoverProps?: Partial<PopoverProps>;
|
|
1488
|
+
/** Whether the dropdown is disabled */
|
|
1489
|
+
disabled?: boolean;
|
|
1490
|
+
}
|
|
1491
|
+
declare const SortDropdown: react.ForwardRefExoticComponent<SortDropdownProps & react.RefAttributes<HTMLDivElement>>;
|
|
1492
|
+
|
|
1493
|
+
interface ToolbarButtonProps extends Omit<ButtonBaseProps, 'children'> {
|
|
1494
|
+
/** The icon to display */
|
|
1495
|
+
icon?: IconType;
|
|
1496
|
+
/** The label text to display */
|
|
1497
|
+
label?: string;
|
|
1498
|
+
/** Whether the button is in an open/active state */
|
|
1499
|
+
open?: boolean;
|
|
1500
|
+
}
|
|
1501
|
+
declare const ToolbarButton: ({ icon, label, open, className, sx, ...props }: ToolbarButtonProps) => react_jsx_runtime.JSX.Element;
|
|
1502
|
+
|
|
1503
|
+
interface FilterDropdownProps {
|
|
1504
|
+
/** Content to render inside the popover (use Form + Field components) */
|
|
1505
|
+
children: ReactNode;
|
|
1506
|
+
/** Called when the popover closes */
|
|
1507
|
+
onClose?: () => void;
|
|
1508
|
+
/** Custom label for the filter button */
|
|
1509
|
+
buttonLabel?: string;
|
|
1510
|
+
/** Custom sx styles for the popover paper */
|
|
1511
|
+
popoverSx?: SxProps<Theme>;
|
|
1512
|
+
/** Custom popover props */
|
|
1513
|
+
PopoverProps?: Partial<PopoverProps>;
|
|
1514
|
+
/** Whether the dropdown is disabled */
|
|
1515
|
+
disabled?: boolean;
|
|
1516
|
+
}
|
|
1517
|
+
declare const FilterDropdown: react.ForwardRefExoticComponent<FilterDropdownProps & react.RefAttributes<HTMLDivElement>>;
|
|
1518
|
+
|
|
1519
|
+
interface ToolbarSortButtonProps extends Omit<ToolbarButtonProps, 'icon' | 'label'> {
|
|
1520
|
+
/** Custom label text (defaults to "Sort") */
|
|
1521
|
+
label?: string;
|
|
1522
|
+
}
|
|
1523
|
+
declare const ToolbarSortButton: ({ label, ...props }: ToolbarSortButtonProps) => react_jsx_runtime.JSX.Element;
|
|
1524
|
+
|
|
1525
|
+
type DatePreset = 'today' | 'yesterday' | 'last7days' | 'last30days' | 'last6months' | 'lastyear' | 'alltime' | 'custom';
|
|
1526
|
+
interface DatePresetOption {
|
|
1527
|
+
/** Unique value for the preset */
|
|
1528
|
+
value: DatePreset;
|
|
1529
|
+
/** Display label for the preset */
|
|
1530
|
+
label: string;
|
|
1531
|
+
}
|
|
1532
|
+
interface DateRange {
|
|
1533
|
+
/** Start date of the range */
|
|
1534
|
+
start: Date | null;
|
|
1535
|
+
/** End date of the range */
|
|
1536
|
+
end: Date | null;
|
|
1537
|
+
}
|
|
1538
|
+
interface DateRangePickerProps {
|
|
1539
|
+
/** Currently selected date range */
|
|
1540
|
+
value?: DateRange;
|
|
1541
|
+
/** Currently selected preset */
|
|
1542
|
+
preset?: DatePreset;
|
|
1543
|
+
/** Called when the date range changes (on Apply click) */
|
|
1544
|
+
onChange?: (range: DateRange, preset: DatePreset) => void;
|
|
1545
|
+
/** Called when cancel is clicked */
|
|
1546
|
+
onCancel?: () => void;
|
|
1547
|
+
/** Custom label for the apply button */
|
|
1548
|
+
applyLabel?: string;
|
|
1549
|
+
/** Custom label for the cancel button */
|
|
1550
|
+
cancelLabel?: string;
|
|
1551
|
+
/** Custom preset options (overrides defaults) */
|
|
1552
|
+
presets?: DatePresetOption[];
|
|
1553
|
+
/** Date format for input display */
|
|
1554
|
+
dateFormat?: string;
|
|
1555
|
+
/** Whether to show preset options */
|
|
1556
|
+
showPresets?: boolean;
|
|
1557
|
+
/** Whether to show action buttons */
|
|
1558
|
+
showActions?: boolean;
|
|
1559
|
+
/** Custom sx styles for the root container */
|
|
1560
|
+
sx?: SxProps<Theme>;
|
|
1561
|
+
/** Minimum selectable date */
|
|
1562
|
+
minDate?: Date;
|
|
1563
|
+
/** Maximum selectable date */
|
|
1564
|
+
maxDate?: Date;
|
|
1565
|
+
}
|
|
1566
|
+
declare const defaultPresets: DatePresetOption[];
|
|
1567
|
+
declare function getDateRangeFromPreset(preset: DatePreset): DateRange;
|
|
1568
|
+
declare const DateRangePicker: react.ForwardRefExoticComponent<DateRangePickerProps & react.RefAttributes<HTMLDivElement>>;
|
|
1569
|
+
|
|
1570
|
+
interface DateRangeDropdownProps {
|
|
1571
|
+
/** Currently selected date range */
|
|
1572
|
+
value?: DateRange;
|
|
1573
|
+
/** Currently selected preset */
|
|
1574
|
+
preset?: DatePreset;
|
|
1575
|
+
/** Called when the date range changes (on Apply click) */
|
|
1576
|
+
onChange?: (range: DateRange, preset: DatePreset) => void;
|
|
1577
|
+
/** Label for the dropdown button */
|
|
1578
|
+
buttonLabel?: string;
|
|
1579
|
+
/** Custom preset options */
|
|
1580
|
+
presets?: DatePresetOption[];
|
|
1581
|
+
/** Date format for input display */
|
|
1582
|
+
dateFormat?: string;
|
|
1583
|
+
/** Custom label for the apply button */
|
|
1584
|
+
applyLabel?: string;
|
|
1585
|
+
/** Custom label for the cancel button */
|
|
1586
|
+
cancelLabel?: string;
|
|
1587
|
+
/** Whether the dropdown is disabled */
|
|
1588
|
+
disabled?: boolean;
|
|
1589
|
+
/** Custom sx styles for the popover */
|
|
1590
|
+
popoverSx?: SxProps<Theme>;
|
|
1591
|
+
/** Additional popover props */
|
|
1592
|
+
PopoverProps?: Partial<PopoverProps>;
|
|
1593
|
+
}
|
|
1594
|
+
declare function DateRangeDropdown({ value, preset, onChange, buttonLabel, presets, dateFormat, applyLabel, cancelLabel, disabled, popoverSx, PopoverProps }: DateRangeDropdownProps): react_jsx_runtime.JSX.Element;
|
|
1595
|
+
|
|
1596
|
+
interface ToolbarTodayButtonProps extends Omit<ToolbarButtonProps, 'icon' | 'label'> {
|
|
1597
|
+
/** Custom label text (defaults to "Today") */
|
|
1598
|
+
label?: string;
|
|
1599
|
+
}
|
|
1600
|
+
declare const ToolbarTodayButton: ({ label, sx, ...props }: ToolbarTodayButtonProps) => react_jsx_runtime.JSX.Element;
|
|
1601
|
+
|
|
1602
|
+
interface ToolbarSearchFieldProps extends Omit<InputBaseProps, 'startAdornment'> {
|
|
1603
|
+
/** Placeholder text (defaults to "Search") */
|
|
1604
|
+
placeholder?: string;
|
|
1605
|
+
/** Callback fired when the clear button is clicked */
|
|
1606
|
+
onClear?: () => void;
|
|
1607
|
+
}
|
|
1608
|
+
declare const ToolbarSearchField: ({ placeholder, className, sx, value, onFocus, onBlur, onClear, ...props }: ToolbarSearchFieldProps) => react_jsx_runtime.JSX.Element;
|
|
1609
|
+
|
|
1610
|
+
type ViewOption = 'year' | 'month' | 'week' | 'day';
|
|
1611
|
+
interface ToolbarViewSwitcherProps extends Omit<ButtonBaseProps, 'children'> {
|
|
1612
|
+
/** The currently selected view option */
|
|
1613
|
+
value: ViewOption;
|
|
1614
|
+
/** Whether the button is in an open/active state */
|
|
1615
|
+
open?: boolean;
|
|
1616
|
+
}
|
|
1617
|
+
declare const ToolbarViewSwitcher: ({ value, open, className, sx, ...props }: ToolbarViewSwitcherProps) => react_jsx_runtime.JSX.Element;
|
|
1618
|
+
|
|
1619
|
+
interface ToolbarFilterButtonProps extends Omit<ToolbarButtonProps, 'icon' | 'label'> {
|
|
1620
|
+
/** Custom label text (defaults to "Filter") */
|
|
1621
|
+
label?: string;
|
|
1622
|
+
}
|
|
1623
|
+
declare const ToolbarFilterButton: ({ label, ...props }: ToolbarFilterButtonProps) => react_jsx_runtime.JSX.Element;
|
|
1624
|
+
|
|
1625
|
+
interface ToolbarSettingsButtonProps extends Omit<ButtonBaseProps, 'children'> {
|
|
1626
|
+
/** Whether the button is in an open/active state */
|
|
1627
|
+
open?: boolean;
|
|
1628
|
+
}
|
|
1629
|
+
declare const ToolbarSettingsButton: ({ open, className, sx, ...props }: ToolbarSettingsButtonProps) => react_jsx_runtime.JSX.Element;
|
|
1630
|
+
|
|
1631
|
+
interface ToolbarDatePickerButtonProps extends Omit<ToolbarButtonProps, 'icon'> {
|
|
1632
|
+
/** Custom label text (defaults to "Last 30 days") */
|
|
1633
|
+
label?: string;
|
|
1634
|
+
}
|
|
1635
|
+
declare const ToolbarDatePickerButton: ({ label, ...props }: ToolbarDatePickerButtonProps) => react_jsx_runtime.JSX.Element;
|
|
1636
|
+
|
|
1387
1637
|
interface FormProps<T extends FieldValues> extends Omit<BoxProps, 'onSubmit'> {
|
|
1388
1638
|
children: React.ReactNode;
|
|
1389
1639
|
methods: UseFormReturn<T>;
|
|
@@ -1506,6 +1756,49 @@ interface RHFOTPInputProps extends Omit<OTPInputProps, 'name'> {
|
|
|
1506
1756
|
}
|
|
1507
1757
|
declare const RHFOTPInput: ({ name, length, helperText, ...rest }: RHFOTPInputProps) => react_jsx_runtime.JSX.Element;
|
|
1508
1758
|
|
|
1759
|
+
interface RHFDateRangePickerProps {
|
|
1760
|
+
/** Form field name for react-hook-form (stores { start, end, preset }) */
|
|
1761
|
+
name: string;
|
|
1762
|
+
/** Label for the text field */
|
|
1763
|
+
label?: string;
|
|
1764
|
+
/** Placeholder text */
|
|
1765
|
+
placeholder?: string;
|
|
1766
|
+
/** Helper text displayed below the input */
|
|
1767
|
+
helperText?: string;
|
|
1768
|
+
/** Date format for display */
|
|
1769
|
+
dateFormat?: string;
|
|
1770
|
+
/** Custom preset options */
|
|
1771
|
+
presets?: DatePresetOption[];
|
|
1772
|
+
/** Custom label for the apply button */
|
|
1773
|
+
applyLabel?: string;
|
|
1774
|
+
/** Custom label for the cancel button */
|
|
1775
|
+
cancelLabel?: string;
|
|
1776
|
+
/** Whether the field is disabled */
|
|
1777
|
+
disabled?: boolean;
|
|
1778
|
+
/** TextField size */
|
|
1779
|
+
size?: TextFieldProps['size'];
|
|
1780
|
+
/** Whether the field takes full width */
|
|
1781
|
+
fullWidth?: boolean;
|
|
1782
|
+
}
|
|
1783
|
+
/**
|
|
1784
|
+
* React Hook Form integrated DateRangePicker component.
|
|
1785
|
+
*
|
|
1786
|
+
* @description A date range picker wrapped with react-hook-form Controller for seamless form integration.
|
|
1787
|
+
* Stores the value as { start: Date | null, end: Date | null, preset: DatePreset }.
|
|
1788
|
+
*
|
|
1789
|
+
* @example
|
|
1790
|
+
* ```tsx
|
|
1791
|
+
* // In your form default values:
|
|
1792
|
+
* defaultValues: {
|
|
1793
|
+
* dateRange: { start: null, end: null, preset: 'today' }
|
|
1794
|
+
* }
|
|
1795
|
+
*
|
|
1796
|
+
* // Usage:
|
|
1797
|
+
* <Field.DateRange name="dateRange" label="Select Date Range" />
|
|
1798
|
+
* ```
|
|
1799
|
+
*/
|
|
1800
|
+
declare function RHFDateRangePicker({ name, label, placeholder, helperText, dateFormat, presets, applyLabel, cancelLabel, disabled, size, fullWidth }: RHFDateRangePickerProps): react_jsx_runtime.JSX.Element;
|
|
1801
|
+
|
|
1509
1802
|
declare const Field: {
|
|
1510
1803
|
OTP: ({ name, length, helperText, ...rest }: RHFOTPInputProps) => react_jsx_runtime.JSX.Element;
|
|
1511
1804
|
Switch: ({ name, description, helperText, label, sx, slotProps, ...other }: Omit<_mui_material.FormControlLabelProps, "name" | "control"> & {
|
|
@@ -1527,6 +1820,7 @@ declare const Field: {
|
|
|
1527
1820
|
Date: react.MemoExoticComponent<({ name, slotProps, helperText, clearable, format, ...other }: RHFDatePickerProps) => react_jsx_runtime.JSX.Element>;
|
|
1528
1821
|
Time: react.MemoExoticComponent<({ name, slotProps, helperText, clearable, format, ...other }: RHFTimePickerProps) => react_jsx_runtime.JSX.Element>;
|
|
1529
1822
|
DateTime: react.MemoExoticComponent<({ name, slotProps, helperText, clearable, format, ...other }: RHFDateTimePickerProps) => react_jsx_runtime.JSX.Element>;
|
|
1823
|
+
DateRange: typeof RHFDateRangePicker;
|
|
1530
1824
|
};
|
|
1531
1825
|
|
|
1532
1826
|
type RHFSwitchProps = Omit<FormControlLabelProps, 'name' | 'control'> & {
|
|
@@ -2148,4 +2442,4 @@ type ThemeProviderProps = {
|
|
|
2148
2442
|
};
|
|
2149
2443
|
declare const ThemeProvider: ({ children }: ThemeProviderProps) => react_jsx_runtime.JSX.Element;
|
|
2150
2444
|
|
|
2151
|
-
export { AnimatedLogo, Attachment, Bank, BellNotification, Building, Calendar, CheckCircleSolid, CheckboxDefault, CheckboxIndeterminate, CheckboxSelect, Circle, ClipboardCheck, Clock, CloudUpload, type ColorSchema, Copy, CopyButton, type CustomShadowOptions, type CustomSpacingOptions, type DatePickerProps, type DateTimePickerProps, Download, EmptyContent, type EmptyContentProps, ErrorToast, Eye, EyeClosed, Field, Form, HelpCircle, Icon, type IconProps, type IconType, Image, type ImageProps, type ImageStatus, InfoCircle, InfoCircleSolid, InfoToast, KeyCommand, Loader, LoadingScreen, LocalStorageAvailable, LocalStorageGetItem, Logo, LongArrowUpLeftSolid, NavArrowDown, NavArrowDownSolid, NavArrowLeft, NavArrowRight, OTPInput, type OTPInputProps, Plus, PlusSquare, RHFAutocomplete, type RHFAutocompleteProps, RHFCheckbox, type RHFCheckboxProps, RHFDatePicker, type RHFDatePickerProps, RHFDateTimePicker, type RHFDateTimePickerProps, RHFMultiCheckbox, type RHFMultiCheckboxOption, type RHFMultiCheckboxProps, RHFMultiSwitch, RHFOTPInput, type RHFOTPInputProps, RHFRadioGroup, type RHFRadioGroupProps, RHFSwitch, RHFTextField, RHFTimePicker, type RHFTimePickerProps, RHFUpload, type RHFUploadProps, RadioDefault, RadioSelect, type RadiusOptions, STORAGE_KEY, Search, Settings, SettingsConsumer, SettingsContext, type SettingsContextProps, SettingsProvider, type SettingsValueProps, SortDown, SortUp, SplashScreen, StatDown, StatUp, SuccessToast, Table, TablePagination, ThemeProvider, type TimePickerProps, Toast, Trash, Upload, type UploadProps, type UseBooleanReturnType, type UseSetStateReturnType, User, UserSolid, WarningToast, XMark, XMarkSolid, action, apexChartsStyles, background, baseAction, basePalette, bgBlur, bgGradient, border, borderGradient, breakpoints, colorSchemes, common, components, createPaletteChannel, createShadowColor, createTheme, customShadows, customSpacing, darkPalette, defaultSettings, error, fCurrency, fData, fNumber, fPercent, fShortenNumber, formatFullname, getCurrencySymbol, getDefaultChartOptions, getInitials, getStorage, grey, hexToRgbChannel, hideScrollX, hideScrollY, icon, iconClasses, info, isEqual, lightPalette, maxLine, mediaQueries, menuItem, neutral, orderBy, paper, paramCase, primary, primaryFont, pxToRem, radius, remToPx, removeStorage, responsiveFontSizes, schemeConfig, secondary, secondaryFont, sentenceCase, setFont, setStorage, shadows, snakeCase, splitFullname, stylesMode, success, surface, tertiaryFont, text, textGradient, typography, updateComponentsWithSettings, updateCoreWithSettings, useBoolean, useCopyToClipboard, useCountdownDate, useCountdownSeconds, useEventListener, useLocalStorage, usePopover, useResponsive, useScrollOffSetTop, useSetState, useSettings, useWidth, varAlpha, warning };
|
|
2445
|
+
export { AnimatedLogo, Attachment, Bank, BellNotification, Building, Calendar, CheckCircleSolid, CheckboxDefault, CheckboxIndeterminate, CheckboxSelect, Circle, ClipboardCheck, Clock, CloudUpload, type ColorSchema, Copy, CopyButton, CustomDialog, type CustomDialogProps, CustomDrawer, type CustomDrawerProps, type CustomShadowOptions, type CustomSpacingOptions, type DatePickerProps, type DatePreset, type DatePresetOption, type DateRange, DateRangeDropdown, type DateRangeDropdownProps, DateRangePicker, type DateRangePickerProps, type DateTimePickerProps, Download, EmptyContent, type EmptyContentProps, ErrorToast, Eye, EyeClosed, FeedbackDialog, type FeedbackDialogProps, type FeedbackDialogSlotProps, Field, FilterDropdown, type FilterDropdownProps, FilterList, Form, HelpCircle, Icon, type IconProps, type IconType, Image, type ImageProps, type ImageStatus, InfoCircle, InfoCircleSolid, InfoToast, KeyCommand, Loader, LoadingScreen, LocalStorageAvailable, LocalStorageGetItem, Logo, LongArrowUpLeftSolid, NavArrowDown, NavArrowDownSolid, NavArrowLeft, NavArrowRight, OTPInput, type OTPInputProps, Plus, PlusSquare, RHFAutocomplete, type RHFAutocompleteProps, RHFCheckbox, type RHFCheckboxProps, RHFDatePicker, type RHFDatePickerProps, RHFDateRangePicker, type RHFDateRangePickerProps, RHFDateTimePicker, type RHFDateTimePickerProps, RHFMultiCheckbox, type RHFMultiCheckboxOption, type RHFMultiCheckboxProps, RHFMultiSwitch, RHFOTPInput, type RHFOTPInputProps, RHFRadioGroup, type RHFRadioGroupProps, RHFSwitch, RHFTextField, RHFTimePicker, type RHFTimePickerProps, RHFUpload, type RHFUploadProps, RadioDefault, RadioSelect, type RadiusOptions, STORAGE_KEY, Search, Settings, SettingsConsumer, SettingsContext, type SettingsContextProps, SettingsProvider, type SettingsValueProps, type SortDirection, SortDown, SortDropdown, type SortDropdownProps, type SortOption, SortUp, SplashScreen, StatDown, StatUp, SuccessToast, Table, TablePagination, ThemeProvider, type TimePickerProps, Toast, ToolbarButton, type ToolbarButtonProps, ToolbarDatePickerButton, type ToolbarDatePickerButtonProps, ToolbarFilterButton, type ToolbarFilterButtonProps, ToolbarSearchField, type ToolbarSearchFieldProps, ToolbarSettingsButton, type ToolbarSettingsButtonProps, ToolbarSortButton, type ToolbarSortButtonProps, ToolbarTodayButton, type ToolbarTodayButtonProps, ToolbarViewSwitcher, type ToolbarViewSwitcherProps, Trash, Upload, type UploadProps, type UseBooleanReturnType, type UseSetStateReturnType, User, UserSolid, type ViewOption, WarningToast, XMark, XMarkSolid, action, apexChartsStyles, background, baseAction, basePalette, bgBlur, bgGradient, border, borderGradient, breakpoints, colorSchemes, common, components, createPaletteChannel, createShadowColor, createTheme, customShadows, customSpacing, darkPalette, defaultPresets, defaultSettings, dialogClasses, drawerClasses, error, fCurrency, fData, fNumber, fPercent, fShortenNumber, feedbackDialogClasses, formatFullname, getCurrencySymbol, getDateRangeFromPreset, getDefaultChartOptions, getInitials, getStorage, grey, hexToRgbChannel, hideScrollX, hideScrollY, icon, iconClasses, info, isEqual, lightPalette, maxLine, mediaQueries, menuItem, neutral, orderBy, paper, paramCase, primary, primaryFont, pxToRem, radius, remToPx, removeStorage, responsiveFontSizes, schemeConfig, secondary, secondaryFont, sentenceCase, setFont, setStorage, shadows, snakeCase, splitFullname, stylesMode, success, surface, tertiaryFont, text, textGradient, toolbarClasses, typography, updateComponentsWithSettings, updateCoreWithSettings, useBoolean, useCopyToClipboard, useCountdownDate, useCountdownSeconds, useEventListener, useLocalStorage, usePopover, useResponsive, useScrollOffSetTop, useSetState, useSettings, useWidth, varAlpha, warning };
|