@ceed/ads 0.0.52 → 0.0.54
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/components/Calendar/hooks/use-calendar-props.d.ts +8 -0
- package/dist/components/Calendar/hooks/use-calendar.d.ts +2 -0
- package/dist/components/Calendar/types.d.ts +4 -0
- package/dist/components/DatePicker/DatePicker.d.ts +6 -0
- package/dist/components/DateRangePicker/DateRangePicker.d.ts +6 -0
- package/dist/index.js +97 -55
- package/framer/index.js +159 -96
- package/package.json +1 -1
|
@@ -11,6 +11,10 @@ export declare const useCalendarProps: (inProps: CalendarProps) => readonly [{
|
|
|
11
11
|
views: View[];
|
|
12
12
|
slots?: Partial<Record<import("../types").CalendarSlot, React.ElementType<any, keyof React.JSX.IntrinsicElements>>> | undefined;
|
|
13
13
|
rangeSelection?: boolean | undefined;
|
|
14
|
+
minDate?: Date | undefined;
|
|
15
|
+
maxDate?: Date | undefined;
|
|
16
|
+
disableFuture?: boolean | undefined;
|
|
17
|
+
disablePast?: boolean | undefined;
|
|
14
18
|
}, {
|
|
15
19
|
viewMonth: Date;
|
|
16
20
|
direction: number;
|
|
@@ -24,4 +28,8 @@ export declare const useCalendarProps: (inProps: CalendarProps) => readonly [{
|
|
|
24
28
|
views: View[];
|
|
25
29
|
slots?: Partial<Record<import("../types").CalendarSlot, React.ElementType<any, keyof React.JSX.IntrinsicElements>>> | undefined;
|
|
26
30
|
rangeSelection?: boolean | undefined;
|
|
31
|
+
minDate?: Date | undefined;
|
|
32
|
+
maxDate?: Date | undefined;
|
|
33
|
+
disableFuture?: boolean | undefined;
|
|
34
|
+
disablePast?: boolean | undefined;
|
|
27
35
|
}];
|
|
@@ -12,6 +12,7 @@ export declare const useCalendar: (ownerState: CalendarOwnerState) => {
|
|
|
12
12
|
readonly isSelected: boolean | undefined;
|
|
13
13
|
readonly onClick: () => void;
|
|
14
14
|
readonly onMouseEnter: (() => void) | undefined;
|
|
15
|
+
readonly disabled: boolean | undefined;
|
|
15
16
|
readonly tabIndex: -1;
|
|
16
17
|
readonly "aria-label": string;
|
|
17
18
|
readonly "aria-selected": "true" | undefined;
|
|
@@ -19,6 +20,7 @@ export declare const useCalendar: (ownerState: CalendarOwnerState) => {
|
|
|
19
20
|
};
|
|
20
21
|
getPickerMonthProps: (monthIndex: number) => {
|
|
21
22
|
readonly isSelected: boolean | undefined;
|
|
23
|
+
readonly disabled: boolean | undefined;
|
|
22
24
|
readonly onClick: () => void;
|
|
23
25
|
readonly tabIndex: -1;
|
|
24
26
|
readonly "aria-label": string;
|
|
@@ -13,6 +13,10 @@ export interface CalendarProps {
|
|
|
13
13
|
onMonthChange?: (newMonth: DateValue) => void;
|
|
14
14
|
slots?: Partial<Record<CalendarSlot, React.ElementType>>;
|
|
15
15
|
rangeSelection?: boolean;
|
|
16
|
+
minDate?: DateValue;
|
|
17
|
+
maxDate?: DateValue;
|
|
18
|
+
disableFuture?: boolean;
|
|
19
|
+
disablePast?: boolean;
|
|
16
20
|
}
|
|
17
21
|
export interface CalendarOwnerState extends CalendarProps {
|
|
18
22
|
viewMonth: Date;
|
|
@@ -10,6 +10,12 @@ interface DatePickerProps {
|
|
|
10
10
|
name?: string;
|
|
11
11
|
disabled?: boolean;
|
|
12
12
|
label?: React.ReactNode;
|
|
13
|
+
error?: boolean;
|
|
14
|
+
helperText?: React.ReactNode;
|
|
15
|
+
minDate?: Date;
|
|
16
|
+
maxDate?: Date;
|
|
17
|
+
disableFuture?: boolean;
|
|
18
|
+
disablePast?: boolean;
|
|
13
19
|
}
|
|
14
20
|
declare const DatePicker: React.ForwardRefExoticComponent<DatePickerProps & React.RefAttributes<HTMLDivElement>>;
|
|
15
21
|
export { DatePicker };
|
|
@@ -10,6 +10,12 @@ interface DateRangePickerProps {
|
|
|
10
10
|
name?: string;
|
|
11
11
|
disabled?: boolean;
|
|
12
12
|
label?: React.ReactNode;
|
|
13
|
+
error?: boolean;
|
|
14
|
+
helperText?: React.ReactNode;
|
|
15
|
+
minDate?: Date;
|
|
16
|
+
maxDate?: Date;
|
|
17
|
+
disableFuture?: boolean;
|
|
18
|
+
disablePast?: boolean;
|
|
13
19
|
}
|
|
14
20
|
declare const DateRangePicker: React.ForwardRefExoticComponent<DateRangePickerProps & React.RefAttributes<HTMLDivElement>>;
|
|
15
21
|
export { DateRangePicker };
|
package/dist/index.js
CHANGED
|
@@ -440,6 +440,11 @@ var useCalendar = (ownerState) => {
|
|
|
440
440
|
isSelected,
|
|
441
441
|
onClick: handleDayClick,
|
|
442
442
|
onMouseEnter: ownerState.rangeSelection && ownerState.value?.[0] && !ownerState.value?.[1] ? () => setHoverDay(thisDay) : void 0,
|
|
443
|
+
disabled: ownerState.minDate && thisDay < ownerState.minDate || ownerState.maxDate && thisDay > ownerState.maxDate || ownerState.disableFuture && thisDay > /* @__PURE__ */ new Date() || ownerState.disablePast && thisDay < (() => {
|
|
444
|
+
const today = /* @__PURE__ */ new Date();
|
|
445
|
+
today.setHours(0, 0, 0, 0);
|
|
446
|
+
return today;
|
|
447
|
+
})(),
|
|
443
448
|
tabIndex: -1,
|
|
444
449
|
"aria-label": thisDay.toLocaleDateString(),
|
|
445
450
|
"aria-selected": isSelected ? "true" : void 0,
|
|
@@ -451,6 +456,10 @@ var useCalendar = (ownerState) => {
|
|
|
451
456
|
ownerState.value,
|
|
452
457
|
ownerState.viewMonth,
|
|
453
458
|
ownerState.rangeSelection,
|
|
459
|
+
ownerState.minDate,
|
|
460
|
+
ownerState.maxDate,
|
|
461
|
+
ownerState.disableFuture,
|
|
462
|
+
ownerState.disablePast,
|
|
454
463
|
hoverDay
|
|
455
464
|
]
|
|
456
465
|
),
|
|
@@ -467,6 +476,16 @@ var useCalendar = (ownerState) => {
|
|
|
467
476
|
};
|
|
468
477
|
return {
|
|
469
478
|
isSelected,
|
|
479
|
+
disabled: ownerState.minDate && (() => {
|
|
480
|
+
const lastDay = new Date(thisMonth);
|
|
481
|
+
lastDay.setMonth(lastDay.getMonth() + 1);
|
|
482
|
+
lastDay.setDate(0);
|
|
483
|
+
return lastDay < ownerState.minDate;
|
|
484
|
+
})() || ownerState.maxDate && (() => {
|
|
485
|
+
const lastDay = new Date(thisMonth);
|
|
486
|
+
lastDay.setDate(0);
|
|
487
|
+
return lastDay > ownerState.maxDate;
|
|
488
|
+
})() || ownerState.disableFuture && thisMonth > /* @__PURE__ */ new Date() || ownerState.disablePast && thisMonth < /* @__PURE__ */ new Date(),
|
|
470
489
|
onClick: handleMonthClick,
|
|
471
490
|
tabIndex: -1,
|
|
472
491
|
"aria-label": getMonthName(thisMonth, ownerState.locale || "default")
|
|
@@ -478,7 +497,11 @@ var useCalendar = (ownerState) => {
|
|
|
478
497
|
ownerState.onChange,
|
|
479
498
|
ownerState.viewMonth,
|
|
480
499
|
ownerState.locale,
|
|
481
|
-
ownerState.value
|
|
500
|
+
ownerState.value,
|
|
501
|
+
ownerState.minDate,
|
|
502
|
+
ownerState.maxDate,
|
|
503
|
+
ownerState.disableFuture,
|
|
504
|
+
ownerState.disablePast
|
|
482
505
|
]
|
|
483
506
|
)
|
|
484
507
|
};
|
|
@@ -1402,12 +1425,44 @@ import { Popper } from "@mui/base/Popper";
|
|
|
1402
1425
|
// src/components/Input/Input.tsx
|
|
1403
1426
|
import React11 from "react";
|
|
1404
1427
|
import { Input as JoyInput } from "@mui/joy";
|
|
1428
|
+
import { motion as motion13 } from "framer-motion";
|
|
1429
|
+
|
|
1430
|
+
// src/components/FormControl/FormControl.tsx
|
|
1431
|
+
import { FormControl as JoyFormControl } from "@mui/joy";
|
|
1405
1432
|
import { motion as motion10 } from "framer-motion";
|
|
1406
|
-
var
|
|
1433
|
+
var MotionFormControl = motion10(JoyFormControl);
|
|
1434
|
+
var FormControl = MotionFormControl;
|
|
1435
|
+
FormControl.displayName = "FormControl";
|
|
1436
|
+
|
|
1437
|
+
// src/components/FormControl/index.ts
|
|
1438
|
+
var FormControl_default = FormControl;
|
|
1439
|
+
|
|
1440
|
+
// src/components/FormLabel/FormLabel.tsx
|
|
1441
|
+
import { FormLabel as JoyFormLabel } from "@mui/joy";
|
|
1442
|
+
import { motion as motion11 } from "framer-motion";
|
|
1443
|
+
var MotionFormLabel = motion11(JoyFormLabel);
|
|
1444
|
+
var FormLabel = MotionFormLabel;
|
|
1445
|
+
FormLabel.displayName = "FormLabel";
|
|
1446
|
+
|
|
1447
|
+
// src/components/FormLabel/index.ts
|
|
1448
|
+
var FormLabel_default = FormLabel;
|
|
1449
|
+
|
|
1450
|
+
// src/components/FormHelperText/FormHelperText.tsx
|
|
1451
|
+
import { FormHelperText as JoyFormHelperText } from "@mui/joy";
|
|
1452
|
+
import { motion as motion12 } from "framer-motion";
|
|
1453
|
+
var MotionFormHelperText = motion12(JoyFormHelperText);
|
|
1454
|
+
var FormHelperText = MotionFormHelperText;
|
|
1455
|
+
FormHelperText.displayName = "FormHelperText";
|
|
1456
|
+
|
|
1457
|
+
// src/components/FormHelperText/index.ts
|
|
1458
|
+
var FormHelperText_default = FormHelperText;
|
|
1459
|
+
|
|
1460
|
+
// src/components/Input/Input.tsx
|
|
1461
|
+
var MotionInput = motion13(JoyInput);
|
|
1407
1462
|
var Input = (props) => {
|
|
1408
1463
|
const { label, helperText, error, style, ...innerProps } = props;
|
|
1409
1464
|
if (label) {
|
|
1410
|
-
return /* @__PURE__ */ React11.createElement(
|
|
1465
|
+
return /* @__PURE__ */ React11.createElement(FormControl_default, { error }, /* @__PURE__ */ React11.createElement(FormLabel_default, null, label), /* @__PURE__ */ React11.createElement(MotionInput, { ...innerProps, color: error ? "danger" : innerProps.color }), helperText && /* @__PURE__ */ React11.createElement(FormHelperText_default, null, helperText));
|
|
1411
1466
|
}
|
|
1412
1467
|
return /* @__PURE__ */ React11.createElement(MotionInput, { ...innerProps });
|
|
1413
1468
|
};
|
|
@@ -1418,34 +1473,14 @@ var Input_default = Input;
|
|
|
1418
1473
|
|
|
1419
1474
|
// src/components/DialogActions/DialogActions.tsx
|
|
1420
1475
|
import { DialogActions as JoyDialogActions } from "@mui/joy";
|
|
1421
|
-
import { motion as
|
|
1422
|
-
var MotionDialogActions =
|
|
1476
|
+
import { motion as motion14 } from "framer-motion";
|
|
1477
|
+
var MotionDialogActions = motion14(JoyDialogActions);
|
|
1423
1478
|
var DialogActions = MotionDialogActions;
|
|
1424
1479
|
DialogActions.displayName = "DialogActions";
|
|
1425
1480
|
|
|
1426
1481
|
// src/components/DialogActions/index.ts
|
|
1427
1482
|
var DialogActions_default = DialogActions;
|
|
1428
1483
|
|
|
1429
|
-
// src/components/FormControl/FormControl.tsx
|
|
1430
|
-
import { FormControl as JoyFormControl } from "@mui/joy";
|
|
1431
|
-
import { motion as motion12 } from "framer-motion";
|
|
1432
|
-
var MotionFormControl = motion12(JoyFormControl);
|
|
1433
|
-
var FormControl = MotionFormControl;
|
|
1434
|
-
FormControl.displayName = "FormControl";
|
|
1435
|
-
|
|
1436
|
-
// src/components/FormControl/index.ts
|
|
1437
|
-
var FormControl_default = FormControl;
|
|
1438
|
-
|
|
1439
|
-
// src/components/FormLabel/FormLabel.tsx
|
|
1440
|
-
import { FormLabel as JoyFormLabel } from "@mui/joy";
|
|
1441
|
-
import { motion as motion13 } from "framer-motion";
|
|
1442
|
-
var MotionFormLabel = motion13(JoyFormLabel);
|
|
1443
|
-
var FormLabel = MotionFormLabel;
|
|
1444
|
-
FormLabel.displayName = "FormLabel";
|
|
1445
|
-
|
|
1446
|
-
// src/components/FormLabel/index.ts
|
|
1447
|
-
var FormLabel_default = FormLabel;
|
|
1448
|
-
|
|
1449
1484
|
// src/components/DatePicker/DatePicker.tsx
|
|
1450
1485
|
var StyledPopper = styled3(Popper, {
|
|
1451
1486
|
name: "DatePicker",
|
|
@@ -1520,7 +1555,7 @@ var TextMaskAdapter = React12.forwardRef(
|
|
|
1520
1555
|
);
|
|
1521
1556
|
var DatePicker = forwardRef4(
|
|
1522
1557
|
(props, ref) => {
|
|
1523
|
-
const { onChange, disabled, label } = props;
|
|
1558
|
+
const { onChange, disabled, label, error, helperText, minDate, maxDate, disableFuture, disablePast } = props;
|
|
1524
1559
|
const [value, setValue] = useState4(props.value || "");
|
|
1525
1560
|
const [anchorEl, setAnchorEl] = useState4(null);
|
|
1526
1561
|
const open = Boolean(anchorEl);
|
|
@@ -1576,7 +1611,11 @@ var DatePicker = forwardRef4(
|
|
|
1576
1611
|
onChange: ([date]) => {
|
|
1577
1612
|
setValue(formatValueString(date));
|
|
1578
1613
|
setAnchorEl(null);
|
|
1579
|
-
}
|
|
1614
|
+
},
|
|
1615
|
+
minDate,
|
|
1616
|
+
maxDate,
|
|
1617
|
+
disableFuture,
|
|
1618
|
+
disablePast
|
|
1580
1619
|
}
|
|
1581
1620
|
), /* @__PURE__ */ React12.createElement(
|
|
1582
1621
|
DialogActions_default,
|
|
@@ -1601,7 +1640,7 @@ var DatePicker = forwardRef4(
|
|
|
1601
1640
|
)))
|
|
1602
1641
|
)));
|
|
1603
1642
|
if (label) {
|
|
1604
|
-
return /* @__PURE__ */ React12.createElement(FormControl_default, { size: "sm" }, /* @__PURE__ */ React12.createElement(FormLabel_default, null, label), picker);
|
|
1643
|
+
return /* @__PURE__ */ React12.createElement(FormControl_default, { error, size: "sm" }, /* @__PURE__ */ React12.createElement(FormLabel_default, null, label), picker, helperText && /* @__PURE__ */ React12.createElement(FormHelperText_default, null, helperText));
|
|
1605
1644
|
}
|
|
1606
1645
|
return picker;
|
|
1607
1646
|
}
|
|
@@ -1704,7 +1743,7 @@ var TextMaskAdapter3 = React13.forwardRef(
|
|
|
1704
1743
|
);
|
|
1705
1744
|
var DateRangePicker = forwardRef5(
|
|
1706
1745
|
(props, ref) => {
|
|
1707
|
-
const { onChange, disabled, label } = props;
|
|
1746
|
+
const { onChange, disabled, label, error, helperText, minDate, maxDate, disableFuture, disablePast } = props;
|
|
1708
1747
|
const [value, setValue] = useState5(props.value || "");
|
|
1709
1748
|
const [anchorEl, setAnchorEl] = useState5(null);
|
|
1710
1749
|
const open = Boolean(anchorEl);
|
|
@@ -1717,7 +1756,7 @@ var DateRangePicker = forwardRef5(
|
|
|
1717
1756
|
setValue(event.target.value);
|
|
1718
1757
|
onChange?.(event);
|
|
1719
1758
|
},
|
|
1720
|
-
[]
|
|
1759
|
+
[onChange]
|
|
1721
1760
|
);
|
|
1722
1761
|
const handleCalendarToggle = useCallback5(
|
|
1723
1762
|
(event) => {
|
|
@@ -1771,7 +1810,11 @@ var DateRangePicker = forwardRef5(
|
|
|
1771
1810
|
{
|
|
1772
1811
|
rangeSelection: true,
|
|
1773
1812
|
defaultValue: calendarValue,
|
|
1774
|
-
onChange: handleCalendarChange
|
|
1813
|
+
onChange: handleCalendarChange,
|
|
1814
|
+
minDate,
|
|
1815
|
+
maxDate,
|
|
1816
|
+
disableFuture,
|
|
1817
|
+
disablePast
|
|
1775
1818
|
}
|
|
1776
1819
|
), /* @__PURE__ */ React13.createElement(
|
|
1777
1820
|
DialogActions_default,
|
|
@@ -1796,7 +1839,7 @@ var DateRangePicker = forwardRef5(
|
|
|
1796
1839
|
)))
|
|
1797
1840
|
)));
|
|
1798
1841
|
if (label) {
|
|
1799
|
-
return /* @__PURE__ */ React13.createElement(FormControl_default, { size: "sm" }, /* @__PURE__ */ React13.createElement(FormLabel_default, null, label), picker);
|
|
1842
|
+
return /* @__PURE__ */ React13.createElement(FormControl_default, { error, size: "sm" }, /* @__PURE__ */ React13.createElement(FormLabel_default, null, label), picker, helperText && /* @__PURE__ */ React13.createElement(FormHelperText_default, null, helperText));
|
|
1800
1843
|
}
|
|
1801
1844
|
return picker;
|
|
1802
1845
|
}
|
|
@@ -1805,8 +1848,8 @@ DateRangePicker.displayName = "DateRangePicker";
|
|
|
1805
1848
|
|
|
1806
1849
|
// src/components/DialogContent/DialogContent.tsx
|
|
1807
1850
|
import { DialogContent as JoyDialogContent } from "@mui/joy";
|
|
1808
|
-
import { motion as
|
|
1809
|
-
var MotionDialogContent =
|
|
1851
|
+
import { motion as motion15 } from "framer-motion";
|
|
1852
|
+
var MotionDialogContent = motion15(JoyDialogContent);
|
|
1810
1853
|
var DialogContent = MotionDialogContent;
|
|
1811
1854
|
DialogContent.displayName = "DialogContent";
|
|
1812
1855
|
|
|
@@ -1815,8 +1858,8 @@ var DialogContent_default = DialogContent;
|
|
|
1815
1858
|
|
|
1816
1859
|
// src/components/DialogTitle/DialogTitle.tsx
|
|
1817
1860
|
import { DialogTitle as JoyDialogTitle } from "@mui/joy";
|
|
1818
|
-
import { motion as
|
|
1819
|
-
var MotionDialogTitle =
|
|
1861
|
+
import { motion as motion16 } from "framer-motion";
|
|
1862
|
+
var MotionDialogTitle = motion16(JoyDialogTitle);
|
|
1820
1863
|
var DialogTitle = MotionDialogTitle;
|
|
1821
1864
|
DialogTitle.displayName = "DialogTitle";
|
|
1822
1865
|
|
|
@@ -1834,17 +1877,17 @@ import {
|
|
|
1834
1877
|
ModalClose as JoyModalClose,
|
|
1835
1878
|
ModalOverflow as JoyModalOverflow
|
|
1836
1879
|
} from "@mui/joy";
|
|
1837
|
-
import { motion as
|
|
1838
|
-
var MotionModal =
|
|
1880
|
+
import { motion as motion17 } from "framer-motion";
|
|
1881
|
+
var MotionModal = motion17(JoyModal);
|
|
1839
1882
|
var Modal = MotionModal;
|
|
1840
1883
|
Modal.displayName = "Modal";
|
|
1841
|
-
var MotionModalDialog =
|
|
1884
|
+
var MotionModalDialog = motion17(JoyModalDialog);
|
|
1842
1885
|
var ModalDialog = MotionModalDialog;
|
|
1843
1886
|
ModalDialog.displayName = "ModalDialog";
|
|
1844
|
-
var MotionModalClose =
|
|
1887
|
+
var MotionModalClose = motion17(JoyModalClose);
|
|
1845
1888
|
var ModalClose = MotionModalClose;
|
|
1846
1889
|
ModalClose.displayName = "ModalClose";
|
|
1847
|
-
var MotionModalOverflow =
|
|
1890
|
+
var MotionModalOverflow = motion17(JoyModalOverflow);
|
|
1848
1891
|
var ModalOverflow = MotionModalOverflow;
|
|
1849
1892
|
ModalOverflow.displayName = "ModalOverflow";
|
|
1850
1893
|
function ModalFrame(props) {
|
|
@@ -1863,8 +1906,8 @@ DialogFrame.displayName = "DialogFrame";
|
|
|
1863
1906
|
// src/components/Divider/Divider.tsx
|
|
1864
1907
|
import React16 from "react";
|
|
1865
1908
|
import { Divider as JoyDivider } from "@mui/joy";
|
|
1866
|
-
import { motion as
|
|
1867
|
-
var MotionDivider =
|
|
1909
|
+
import { motion as motion18 } from "framer-motion";
|
|
1910
|
+
var MotionDivider = motion18(JoyDivider);
|
|
1868
1911
|
var Divider = (props) => {
|
|
1869
1912
|
return /* @__PURE__ */ React16.createElement(MotionDivider, { ...props });
|
|
1870
1913
|
};
|
|
@@ -1873,8 +1916,8 @@ Divider.displayName = "Divider";
|
|
|
1873
1916
|
// src/components/InsetDrawer/InsetDrawer.tsx
|
|
1874
1917
|
import React17 from "react";
|
|
1875
1918
|
import { Drawer as JoyDrawer } from "@mui/joy";
|
|
1876
|
-
import { motion as
|
|
1877
|
-
var MotionDrawer =
|
|
1919
|
+
import { motion as motion19 } from "framer-motion";
|
|
1920
|
+
var MotionDrawer = motion19(JoyDrawer);
|
|
1878
1921
|
var InsetDrawer = (props) => {
|
|
1879
1922
|
const { children, ...innerProps } = props;
|
|
1880
1923
|
return /* @__PURE__ */ React17.createElement(
|
|
@@ -1900,18 +1943,11 @@ InsetDrawer.displayName = "InsetDrawer";
|
|
|
1900
1943
|
|
|
1901
1944
|
// src/components/Dropdown/Dropdown.tsx
|
|
1902
1945
|
import { Dropdown as JoyDropdown } from "@mui/joy";
|
|
1903
|
-
import { motion as
|
|
1904
|
-
var MotionDropdown =
|
|
1946
|
+
import { motion as motion20 } from "framer-motion";
|
|
1947
|
+
var MotionDropdown = motion20(JoyDropdown);
|
|
1905
1948
|
var Dropdown = MotionDropdown;
|
|
1906
1949
|
Dropdown.displayName = "Dropdown";
|
|
1907
1950
|
|
|
1908
|
-
// src/components/FormHelperText/FormHelperText.tsx
|
|
1909
|
-
import { FormHelperText as JoyFormHelperText } from "@mui/joy";
|
|
1910
|
-
import { motion as motion20 } from "framer-motion";
|
|
1911
|
-
var MotionFormHelperText = motion20(JoyFormHelperText);
|
|
1912
|
-
var FormHelperText = MotionFormHelperText;
|
|
1913
|
-
FormHelperText.displayName = "FormHelperText";
|
|
1914
|
-
|
|
1915
1951
|
// src/components/Grid/Grid.tsx
|
|
1916
1952
|
import { Grid as JoyGrid } from "@mui/joy";
|
|
1917
1953
|
import { motion as motion21 } from "framer-motion";
|
|
@@ -1974,7 +2010,13 @@ Option.displayName = "Option";
|
|
|
1974
2010
|
function Select(props) {
|
|
1975
2011
|
const { label, helperText, error, ...innerProps } = props;
|
|
1976
2012
|
if (label) {
|
|
1977
|
-
return /* @__PURE__ */ React20.createElement(
|
|
2013
|
+
return /* @__PURE__ */ React20.createElement(FormControl_default, { error }, /* @__PURE__ */ React20.createElement(FormLabel_default, null, label), /* @__PURE__ */ React20.createElement(
|
|
2014
|
+
JoySelect,
|
|
2015
|
+
{
|
|
2016
|
+
...innerProps,
|
|
2017
|
+
color: error ? "danger" : innerProps.color
|
|
2018
|
+
}
|
|
2019
|
+
), helperText && /* @__PURE__ */ React20.createElement(FormHelperText_default, null, helperText));
|
|
1978
2020
|
}
|
|
1979
2021
|
return /* @__PURE__ */ React20.createElement(JoySelect, { ...innerProps });
|
|
1980
2022
|
}
|
package/framer/index.js
CHANGED
|
@@ -35856,6 +35856,11 @@ var useCalendar = (ownerState) => {
|
|
|
35856
35856
|
isSelected,
|
|
35857
35857
|
onClick: handleDayClick,
|
|
35858
35858
|
onMouseEnter: ownerState.rangeSelection && ((_a = ownerState.value) == null ? void 0 : _a[0]) && !((_b = ownerState.value) == null ? void 0 : _b[1]) ? () => setHoverDay(thisDay) : void 0,
|
|
35859
|
+
disabled: ownerState.minDate && thisDay < ownerState.minDate || ownerState.maxDate && thisDay > ownerState.maxDate || ownerState.disableFuture && thisDay > /* @__PURE__ */ new Date() || ownerState.disablePast && thisDay < (() => {
|
|
35860
|
+
const today = /* @__PURE__ */ new Date();
|
|
35861
|
+
today.setHours(0, 0, 0, 0);
|
|
35862
|
+
return today;
|
|
35863
|
+
})(),
|
|
35859
35864
|
tabIndex: -1,
|
|
35860
35865
|
"aria-label": thisDay.toLocaleDateString(),
|
|
35861
35866
|
"aria-selected": isSelected ? "true" : void 0,
|
|
@@ -35867,6 +35872,10 @@ var useCalendar = (ownerState) => {
|
|
|
35867
35872
|
ownerState.value,
|
|
35868
35873
|
ownerState.viewMonth,
|
|
35869
35874
|
ownerState.rangeSelection,
|
|
35875
|
+
ownerState.minDate,
|
|
35876
|
+
ownerState.maxDate,
|
|
35877
|
+
ownerState.disableFuture,
|
|
35878
|
+
ownerState.disablePast,
|
|
35870
35879
|
hoverDay
|
|
35871
35880
|
]
|
|
35872
35881
|
),
|
|
@@ -35884,6 +35893,16 @@ var useCalendar = (ownerState) => {
|
|
|
35884
35893
|
};
|
|
35885
35894
|
return {
|
|
35886
35895
|
isSelected,
|
|
35896
|
+
disabled: ownerState.minDate && (() => {
|
|
35897
|
+
const lastDay = new Date(thisMonth);
|
|
35898
|
+
lastDay.setMonth(lastDay.getMonth() + 1);
|
|
35899
|
+
lastDay.setDate(0);
|
|
35900
|
+
return lastDay < ownerState.minDate;
|
|
35901
|
+
})() || ownerState.maxDate && (() => {
|
|
35902
|
+
const lastDay = new Date(thisMonth);
|
|
35903
|
+
lastDay.setDate(0);
|
|
35904
|
+
return lastDay > ownerState.maxDate;
|
|
35905
|
+
})() || ownerState.disableFuture && thisMonth > /* @__PURE__ */ new Date() || ownerState.disablePast && thisMonth < /* @__PURE__ */ new Date(),
|
|
35887
35906
|
onClick: handleMonthClick,
|
|
35888
35907
|
tabIndex: -1,
|
|
35889
35908
|
"aria-label": getMonthName(thisMonth, ownerState.locale || "default")
|
|
@@ -35895,7 +35914,11 @@ var useCalendar = (ownerState) => {
|
|
|
35895
35914
|
ownerState.onChange,
|
|
35896
35915
|
ownerState.viewMonth,
|
|
35897
35916
|
ownerState.locale,
|
|
35898
|
-
ownerState.value
|
|
35917
|
+
ownerState.value,
|
|
35918
|
+
ownerState.minDate,
|
|
35919
|
+
ownerState.maxDate,
|
|
35920
|
+
ownerState.disableFuture,
|
|
35921
|
+
ownerState.disablePast
|
|
35899
35922
|
]
|
|
35900
35923
|
)
|
|
35901
35924
|
};
|
|
@@ -40505,15 +40528,44 @@ var CalendarToday_default = createSvgIcon2(/* @__PURE__ */ _jsx106("path", {
|
|
|
40505
40528
|
}), "CalendarToday");
|
|
40506
40529
|
|
|
40507
40530
|
// src/components/Input/Input.tsx
|
|
40531
|
+
import { motion as motion13 } from "framer-motion";
|
|
40532
|
+
|
|
40533
|
+
// src/components/FormControl/FormControl.tsx
|
|
40508
40534
|
import { motion as motion10 } from "framer-motion";
|
|
40509
|
-
var
|
|
40535
|
+
var MotionFormControl = motion10(FormControl_default);
|
|
40536
|
+
var FormControl3 = MotionFormControl;
|
|
40537
|
+
FormControl3.displayName = "FormControl";
|
|
40538
|
+
|
|
40539
|
+
// src/components/FormControl/index.ts
|
|
40540
|
+
var FormControl_default2 = FormControl3;
|
|
40541
|
+
|
|
40542
|
+
// src/components/FormLabel/FormLabel.tsx
|
|
40543
|
+
import { motion as motion11 } from "framer-motion";
|
|
40544
|
+
var MotionFormLabel = motion11(FormLabel_default);
|
|
40545
|
+
var FormLabel3 = MotionFormLabel;
|
|
40546
|
+
FormLabel3.displayName = "FormLabel";
|
|
40547
|
+
|
|
40548
|
+
// src/components/FormLabel/index.ts
|
|
40549
|
+
var FormLabel_default2 = FormLabel3;
|
|
40550
|
+
|
|
40551
|
+
// src/components/FormHelperText/FormHelperText.tsx
|
|
40552
|
+
import { motion as motion12 } from "framer-motion";
|
|
40553
|
+
var MotionFormHelperText = motion12(FormHelperText_default);
|
|
40554
|
+
var FormHelperText3 = MotionFormHelperText;
|
|
40555
|
+
FormHelperText3.displayName = "FormHelperText";
|
|
40556
|
+
|
|
40557
|
+
// src/components/FormHelperText/index.ts
|
|
40558
|
+
var FormHelperText_default2 = FormHelperText3;
|
|
40559
|
+
|
|
40560
|
+
// src/components/Input/Input.tsx
|
|
40561
|
+
var MotionInput = motion13(Input_default);
|
|
40510
40562
|
var Input3 = (props) => {
|
|
40511
40563
|
const _a = props, { label, helperText, error, style: style4 } = _a, innerProps = __objRest(_a, ["label", "helperText", "error", "style"]);
|
|
40512
40564
|
if (label) {
|
|
40513
|
-
return /* @__PURE__ */ jsxs2(
|
|
40514
|
-
/* @__PURE__ */ jsx2(
|
|
40515
|
-
/* @__PURE__ */ jsx2(MotionInput, __spreadValues({ color: error ? "danger" : innerProps.color }
|
|
40516
|
-
helperText && /* @__PURE__ */ jsx2(
|
|
40565
|
+
return /* @__PURE__ */ jsxs2(FormControl_default2, { error, children: [
|
|
40566
|
+
/* @__PURE__ */ jsx2(FormLabel_default2, { children: label }),
|
|
40567
|
+
/* @__PURE__ */ jsx2(MotionInput, __spreadProps(__spreadValues({}, innerProps), { color: error ? "danger" : innerProps.color })),
|
|
40568
|
+
helperText && /* @__PURE__ */ jsx2(FormHelperText_default2, { children: helperText })
|
|
40517
40569
|
] });
|
|
40518
40570
|
}
|
|
40519
40571
|
return /* @__PURE__ */ jsx2(MotionInput, __spreadValues({}, innerProps));
|
|
@@ -40524,32 +40576,14 @@ Input3.displayName = "Input";
|
|
|
40524
40576
|
var Input_default2 = Input3;
|
|
40525
40577
|
|
|
40526
40578
|
// src/components/DialogActions/DialogActions.tsx
|
|
40527
|
-
import { motion as
|
|
40528
|
-
var MotionDialogActions =
|
|
40579
|
+
import { motion as motion14 } from "framer-motion";
|
|
40580
|
+
var MotionDialogActions = motion14(DialogActions_default);
|
|
40529
40581
|
var DialogActions3 = MotionDialogActions;
|
|
40530
40582
|
DialogActions3.displayName = "DialogActions";
|
|
40531
40583
|
|
|
40532
40584
|
// src/components/DialogActions/index.ts
|
|
40533
40585
|
var DialogActions_default2 = DialogActions3;
|
|
40534
40586
|
|
|
40535
|
-
// src/components/FormControl/FormControl.tsx
|
|
40536
|
-
import { motion as motion12 } from "framer-motion";
|
|
40537
|
-
var MotionFormControl = motion12(FormControl_default);
|
|
40538
|
-
var FormControl3 = MotionFormControl;
|
|
40539
|
-
FormControl3.displayName = "FormControl";
|
|
40540
|
-
|
|
40541
|
-
// src/components/FormControl/index.ts
|
|
40542
|
-
var FormControl_default2 = FormControl3;
|
|
40543
|
-
|
|
40544
|
-
// src/components/FormLabel/FormLabel.tsx
|
|
40545
|
-
import { motion as motion13 } from "framer-motion";
|
|
40546
|
-
var MotionFormLabel = motion13(FormLabel_default);
|
|
40547
|
-
var FormLabel3 = MotionFormLabel;
|
|
40548
|
-
FormLabel3.displayName = "FormLabel";
|
|
40549
|
-
|
|
40550
|
-
// src/components/FormLabel/index.ts
|
|
40551
|
-
var FormLabel_default2 = FormLabel3;
|
|
40552
|
-
|
|
40553
40587
|
// src/components/DatePicker/DatePicker.tsx
|
|
40554
40588
|
var StyledPopper = styled_default2(Popper, {
|
|
40555
40589
|
name: "DatePicker",
|
|
@@ -40623,7 +40657,7 @@ var TextMaskAdapter = React178.forwardRef(
|
|
|
40623
40657
|
);
|
|
40624
40658
|
var DatePicker = forwardRef84(
|
|
40625
40659
|
(props, ref) => {
|
|
40626
|
-
const { onChange, disabled, label } = props;
|
|
40660
|
+
const { onChange, disabled, label, error, helperText, minDate, maxDate, disableFuture, disablePast } = props;
|
|
40627
40661
|
const [value, setValue] = useState27(props.value || "");
|
|
40628
40662
|
const [anchorEl, setAnchorEl] = useState27(null);
|
|
40629
40663
|
const open = Boolean(anchorEl);
|
|
@@ -40681,7 +40715,11 @@ var DatePicker = forwardRef84(
|
|
|
40681
40715
|
onChange: ([date]) => {
|
|
40682
40716
|
setValue(formatValueString(date));
|
|
40683
40717
|
setAnchorEl(null);
|
|
40684
|
-
}
|
|
40718
|
+
},
|
|
40719
|
+
minDate,
|
|
40720
|
+
maxDate,
|
|
40721
|
+
disableFuture,
|
|
40722
|
+
disablePast
|
|
40685
40723
|
}
|
|
40686
40724
|
),
|
|
40687
40725
|
/* @__PURE__ */ jsx2(
|
|
@@ -40710,9 +40748,10 @@ var DatePicker = forwardRef84(
|
|
|
40710
40748
|
) })
|
|
40711
40749
|
] });
|
|
40712
40750
|
if (label) {
|
|
40713
|
-
return /* @__PURE__ */ jsxs2(FormControl_default2, { size: "sm", children: [
|
|
40751
|
+
return /* @__PURE__ */ jsxs2(FormControl_default2, { error, size: "sm", children: [
|
|
40714
40752
|
/* @__PURE__ */ jsx2(FormLabel_default2, { children: label }),
|
|
40715
|
-
picker
|
|
40753
|
+
picker,
|
|
40754
|
+
helperText && /* @__PURE__ */ jsx2(FormHelperText_default2, { children: helperText })
|
|
40716
40755
|
] });
|
|
40717
40756
|
}
|
|
40718
40757
|
return picker;
|
|
@@ -40809,7 +40848,7 @@ var TextMaskAdapter3 = React179.forwardRef(
|
|
|
40809
40848
|
);
|
|
40810
40849
|
var DateRangePicker = forwardRef85(
|
|
40811
40850
|
(props, ref) => {
|
|
40812
|
-
const { onChange, disabled, label } = props;
|
|
40851
|
+
const { onChange, disabled, label, error, helperText, minDate, maxDate, disableFuture, disablePast } = props;
|
|
40813
40852
|
const [value, setValue] = useState28(props.value || "");
|
|
40814
40853
|
const [anchorEl, setAnchorEl] = useState28(null);
|
|
40815
40854
|
const open = Boolean(anchorEl);
|
|
@@ -40822,7 +40861,7 @@ var DateRangePicker = forwardRef85(
|
|
|
40822
40861
|
setValue(event.target.value);
|
|
40823
40862
|
onChange == null ? void 0 : onChange(event);
|
|
40824
40863
|
},
|
|
40825
|
-
[]
|
|
40864
|
+
[onChange]
|
|
40826
40865
|
);
|
|
40827
40866
|
const handleCalendarToggle = useCallback29(
|
|
40828
40867
|
(event) => {
|
|
@@ -40878,7 +40917,11 @@ var DateRangePicker = forwardRef85(
|
|
|
40878
40917
|
{
|
|
40879
40918
|
rangeSelection: true,
|
|
40880
40919
|
defaultValue: calendarValue,
|
|
40881
|
-
onChange: handleCalendarChange
|
|
40920
|
+
onChange: handleCalendarChange,
|
|
40921
|
+
minDate,
|
|
40922
|
+
maxDate,
|
|
40923
|
+
disableFuture,
|
|
40924
|
+
disablePast
|
|
40882
40925
|
}
|
|
40883
40926
|
),
|
|
40884
40927
|
/* @__PURE__ */ jsx2(
|
|
@@ -40907,9 +40950,10 @@ var DateRangePicker = forwardRef85(
|
|
|
40907
40950
|
) })
|
|
40908
40951
|
] });
|
|
40909
40952
|
if (label) {
|
|
40910
|
-
return /* @__PURE__ */ jsxs2(FormControl_default2, { size: "sm", children: [
|
|
40953
|
+
return /* @__PURE__ */ jsxs2(FormControl_default2, { error, size: "sm", children: [
|
|
40911
40954
|
/* @__PURE__ */ jsx2(FormLabel_default2, { children: label }),
|
|
40912
|
-
picker
|
|
40955
|
+
picker,
|
|
40956
|
+
helperText && /* @__PURE__ */ jsx2(FormHelperText_default2, { children: helperText })
|
|
40913
40957
|
] });
|
|
40914
40958
|
}
|
|
40915
40959
|
return picker;
|
|
@@ -40918,8 +40962,8 @@ var DateRangePicker = forwardRef85(
|
|
|
40918
40962
|
DateRangePicker.displayName = "DateRangePicker";
|
|
40919
40963
|
|
|
40920
40964
|
// src/components/DialogContent/DialogContent.tsx
|
|
40921
|
-
import { motion as
|
|
40922
|
-
var MotionDialogContent =
|
|
40965
|
+
import { motion as motion15 } from "framer-motion";
|
|
40966
|
+
var MotionDialogContent = motion15(DialogContent_default);
|
|
40923
40967
|
var DialogContent3 = MotionDialogContent;
|
|
40924
40968
|
DialogContent3.displayName = "DialogContent";
|
|
40925
40969
|
|
|
@@ -40927,8 +40971,8 @@ DialogContent3.displayName = "DialogContent";
|
|
|
40927
40971
|
var DialogContent_default2 = DialogContent3;
|
|
40928
40972
|
|
|
40929
40973
|
// src/components/DialogTitle/DialogTitle.tsx
|
|
40930
|
-
import { motion as
|
|
40931
|
-
var MotionDialogTitle =
|
|
40974
|
+
import { motion as motion16 } from "framer-motion";
|
|
40975
|
+
var MotionDialogTitle = motion16(DialogTitle_default);
|
|
40932
40976
|
var DialogTitle3 = MotionDialogTitle;
|
|
40933
40977
|
DialogTitle3.displayName = "DialogTitle";
|
|
40934
40978
|
|
|
@@ -40936,17 +40980,17 @@ DialogTitle3.displayName = "DialogTitle";
|
|
|
40936
40980
|
var DialogTitle_default2 = DialogTitle3;
|
|
40937
40981
|
|
|
40938
40982
|
// src/components/Modal/Modal.tsx
|
|
40939
|
-
import { motion as
|
|
40940
|
-
var MotionModal =
|
|
40983
|
+
import { motion as motion17 } from "framer-motion";
|
|
40984
|
+
var MotionModal = motion17(Modal_default);
|
|
40941
40985
|
var Modal3 = MotionModal;
|
|
40942
40986
|
Modal3.displayName = "Modal";
|
|
40943
|
-
var MotionModalDialog =
|
|
40987
|
+
var MotionModalDialog = motion17(ModalDialog_default);
|
|
40944
40988
|
var ModalDialog3 = MotionModalDialog;
|
|
40945
40989
|
ModalDialog3.displayName = "ModalDialog";
|
|
40946
|
-
var MotionModalClose =
|
|
40990
|
+
var MotionModalClose = motion17(ModalClose_default);
|
|
40947
40991
|
var ModalClose3 = MotionModalClose;
|
|
40948
40992
|
ModalClose3.displayName = "ModalClose";
|
|
40949
|
-
var MotionModalOverflow =
|
|
40993
|
+
var MotionModalOverflow = motion17(ModalOverflow_default);
|
|
40950
40994
|
var ModalOverflow3 = MotionModalOverflow;
|
|
40951
40995
|
ModalOverflow3.displayName = "ModalOverflow";
|
|
40952
40996
|
function ModalFrame(props) {
|
|
@@ -40971,16 +41015,16 @@ function DialogFrame(props) {
|
|
|
40971
41015
|
DialogFrame.displayName = "DialogFrame";
|
|
40972
41016
|
|
|
40973
41017
|
// src/components/Divider/Divider.tsx
|
|
40974
|
-
import { motion as
|
|
40975
|
-
var MotionDivider =
|
|
41018
|
+
import { motion as motion18 } from "framer-motion";
|
|
41019
|
+
var MotionDivider = motion18(Divider_default);
|
|
40976
41020
|
var Divider3 = (props) => {
|
|
40977
41021
|
return /* @__PURE__ */ jsx2(MotionDivider, __spreadValues({}, props));
|
|
40978
41022
|
};
|
|
40979
41023
|
Divider3.displayName = "Divider";
|
|
40980
41024
|
|
|
40981
41025
|
// src/components/InsetDrawer/InsetDrawer.tsx
|
|
40982
|
-
import { motion as
|
|
40983
|
-
var MotionDrawer =
|
|
41026
|
+
import { motion as motion19 } from "framer-motion";
|
|
41027
|
+
var MotionDrawer = motion19(Drawer_default);
|
|
40984
41028
|
var InsetDrawer = (props) => {
|
|
40985
41029
|
var _b;
|
|
40986
41030
|
const _a = props, { children } = _a, innerProps = __objRest(_a, ["children"]);
|
|
@@ -41003,17 +41047,11 @@ var InsetDrawer = (props) => {
|
|
|
41003
41047
|
InsetDrawer.displayName = "InsetDrawer";
|
|
41004
41048
|
|
|
41005
41049
|
// src/components/Dropdown/Dropdown.tsx
|
|
41006
|
-
import { motion as
|
|
41007
|
-
var MotionDropdown =
|
|
41050
|
+
import { motion as motion20 } from "framer-motion";
|
|
41051
|
+
var MotionDropdown = motion20(Dropdown);
|
|
41008
41052
|
var Dropdown2 = MotionDropdown;
|
|
41009
41053
|
Dropdown2.displayName = "Dropdown";
|
|
41010
41054
|
|
|
41011
|
-
// src/components/FormHelperText/FormHelperText.tsx
|
|
41012
|
-
import { motion as motion20 } from "framer-motion";
|
|
41013
|
-
var MotionFormHelperText = motion20(FormHelperText_default);
|
|
41014
|
-
var FormHelperText3 = MotionFormHelperText;
|
|
41015
|
-
FormHelperText3.displayName = "FormHelperText";
|
|
41016
|
-
|
|
41017
41055
|
// src/components/Grid/Grid.tsx
|
|
41018
41056
|
import { motion as motion21 } from "framer-motion";
|
|
41019
41057
|
var MotionGrid = motion21(Grid_default);
|
|
@@ -41062,10 +41100,15 @@ Option3.displayName = "Option";
|
|
|
41062
41100
|
function Select3(props) {
|
|
41063
41101
|
const _a = props, { label, helperText, error } = _a, innerProps = __objRest(_a, ["label", "helperText", "error"]);
|
|
41064
41102
|
if (label) {
|
|
41065
|
-
return /* @__PURE__ */ jsxs2(
|
|
41066
|
-
/* @__PURE__ */ jsx2(
|
|
41067
|
-
/* @__PURE__ */ jsx2(
|
|
41068
|
-
|
|
41103
|
+
return /* @__PURE__ */ jsxs2(FormControl_default2, { error, children: [
|
|
41104
|
+
/* @__PURE__ */ jsx2(FormLabel_default2, { children: label }),
|
|
41105
|
+
/* @__PURE__ */ jsx2(
|
|
41106
|
+
Select_default,
|
|
41107
|
+
__spreadProps(__spreadValues({}, innerProps), {
|
|
41108
|
+
color: error ? "danger" : innerProps.color
|
|
41109
|
+
})
|
|
41110
|
+
),
|
|
41111
|
+
helperText && /* @__PURE__ */ jsx2(FormHelperText_default2, { children: helperText })
|
|
41069
41112
|
] });
|
|
41070
41113
|
}
|
|
41071
41114
|
return /* @__PURE__ */ jsx2(Select_default, __spreadValues({}, innerProps));
|
|
@@ -41594,25 +41637,35 @@ var datePickerPropertyControls = {
|
|
|
41594
41637
|
title: "Label",
|
|
41595
41638
|
type: ControlType10.String,
|
|
41596
41639
|
defaultValue: ""
|
|
41640
|
+
},
|
|
41641
|
+
error: {
|
|
41642
|
+
title: "Error",
|
|
41643
|
+
type: ControlType10.Boolean,
|
|
41644
|
+
defaultValue: false
|
|
41645
|
+
},
|
|
41646
|
+
helperText: {
|
|
41647
|
+
title: "Helper Text",
|
|
41648
|
+
type: ControlType10.String,
|
|
41649
|
+
defaultValue: ""
|
|
41650
|
+
},
|
|
41651
|
+
minDate: {
|
|
41652
|
+
title: "Minimum Date",
|
|
41653
|
+
type: ControlType10.Date
|
|
41654
|
+
},
|
|
41655
|
+
maxDate: {
|
|
41656
|
+
title: "Maximum Date",
|
|
41657
|
+
type: ControlType10.Date
|
|
41658
|
+
},
|
|
41659
|
+
disableFuture: {
|
|
41660
|
+
title: "Disable Future",
|
|
41661
|
+
type: ControlType10.Boolean,
|
|
41662
|
+
defaultValue: false
|
|
41663
|
+
},
|
|
41664
|
+
disablePast: {
|
|
41665
|
+
title: "Disable Past",
|
|
41666
|
+
type: ControlType10.Boolean,
|
|
41667
|
+
defaultValue: false
|
|
41597
41668
|
}
|
|
41598
|
-
// color: {
|
|
41599
|
-
// title: "Color",
|
|
41600
|
-
// type: ControlType.Enum,
|
|
41601
|
-
// options: ["primary", "neutral", "danger", "success", "warning"],
|
|
41602
|
-
// optionTitles: ["Primary", "Neutral", "Danger", "Success", "Warning"],
|
|
41603
|
-
// },
|
|
41604
|
-
// variant: {
|
|
41605
|
-
// title: "Variant",
|
|
41606
|
-
// type: ControlType.Enum,
|
|
41607
|
-
// options: ["solid", "outlined", "soft", "plain"],
|
|
41608
|
-
// defaultValue: undefined,
|
|
41609
|
-
// },
|
|
41610
|
-
// size: {
|
|
41611
|
-
// title: "Size",
|
|
41612
|
-
// type: ControlType.Enum,
|
|
41613
|
-
// options: ["sm", "md", "lg"],
|
|
41614
|
-
// defaultValue: "md",
|
|
41615
|
-
// },
|
|
41616
41669
|
};
|
|
41617
41670
|
|
|
41618
41671
|
// src/components/DateRangePicker/DateRangePicker.framer.ts
|
|
@@ -41636,25 +41689,35 @@ var dateRangePickerPropertyControls = {
|
|
|
41636
41689
|
title: "Label",
|
|
41637
41690
|
type: ControlType11.String,
|
|
41638
41691
|
defaultValue: ""
|
|
41692
|
+
},
|
|
41693
|
+
error: {
|
|
41694
|
+
title: "Error",
|
|
41695
|
+
type: ControlType11.Boolean,
|
|
41696
|
+
defaultValue: false
|
|
41697
|
+
},
|
|
41698
|
+
helperText: {
|
|
41699
|
+
title: "Helper Text",
|
|
41700
|
+
type: ControlType11.String,
|
|
41701
|
+
defaultValue: ""
|
|
41702
|
+
},
|
|
41703
|
+
minDate: {
|
|
41704
|
+
title: "Minimum Date",
|
|
41705
|
+
type: ControlType11.Date
|
|
41706
|
+
},
|
|
41707
|
+
maxDate: {
|
|
41708
|
+
title: "Maximum Date",
|
|
41709
|
+
type: ControlType11.Date
|
|
41710
|
+
},
|
|
41711
|
+
disableFuture: {
|
|
41712
|
+
title: "Disable Future",
|
|
41713
|
+
type: ControlType11.Boolean,
|
|
41714
|
+
defaultValue: false
|
|
41715
|
+
},
|
|
41716
|
+
disablePast: {
|
|
41717
|
+
title: "Disable Past",
|
|
41718
|
+
type: ControlType11.Boolean,
|
|
41719
|
+
defaultValue: false
|
|
41639
41720
|
}
|
|
41640
|
-
// color: {
|
|
41641
|
-
// title: "Color",
|
|
41642
|
-
// type: ControlType.Enum,
|
|
41643
|
-
// options: ["primary", "neutral", "danger", "success", "warning"],
|
|
41644
|
-
// optionTitles: ["Primary", "Neutral", "Danger", "Success", "Warning"],
|
|
41645
|
-
// },
|
|
41646
|
-
// variant: {
|
|
41647
|
-
// title: "Variant",
|
|
41648
|
-
// type: ControlType.Enum,
|
|
41649
|
-
// options: ["solid", "outlined", "soft", "plain"],
|
|
41650
|
-
// defaultValue: undefined,
|
|
41651
|
-
// },
|
|
41652
|
-
// size: {
|
|
41653
|
-
// title: "Size",
|
|
41654
|
-
// type: ControlType.Enum,
|
|
41655
|
-
// options: ["sm", "md", "lg"],
|
|
41656
|
-
// defaultValue: "md",
|
|
41657
|
-
// },
|
|
41658
41721
|
};
|
|
41659
41722
|
|
|
41660
41723
|
// src/components/DialogFrame/DialogFrame.framer.ts
|