@ceed/ads 0.0.53 → 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.
|
@@ -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
|
@@ -1425,12 +1425,44 @@ import { Popper } from "@mui/base/Popper";
|
|
|
1425
1425
|
// src/components/Input/Input.tsx
|
|
1426
1426
|
import React11 from "react";
|
|
1427
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";
|
|
1428
1432
|
import { motion as motion10 } from "framer-motion";
|
|
1429
|
-
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);
|
|
1430
1462
|
var Input = (props) => {
|
|
1431
1463
|
const { label, helperText, error, style, ...innerProps } = props;
|
|
1432
1464
|
if (label) {
|
|
1433
|
-
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));
|
|
1434
1466
|
}
|
|
1435
1467
|
return /* @__PURE__ */ React11.createElement(MotionInput, { ...innerProps });
|
|
1436
1468
|
};
|
|
@@ -1441,34 +1473,14 @@ var Input_default = Input;
|
|
|
1441
1473
|
|
|
1442
1474
|
// src/components/DialogActions/DialogActions.tsx
|
|
1443
1475
|
import { DialogActions as JoyDialogActions } from "@mui/joy";
|
|
1444
|
-
import { motion as
|
|
1445
|
-
var MotionDialogActions =
|
|
1476
|
+
import { motion as motion14 } from "framer-motion";
|
|
1477
|
+
var MotionDialogActions = motion14(JoyDialogActions);
|
|
1446
1478
|
var DialogActions = MotionDialogActions;
|
|
1447
1479
|
DialogActions.displayName = "DialogActions";
|
|
1448
1480
|
|
|
1449
1481
|
// src/components/DialogActions/index.ts
|
|
1450
1482
|
var DialogActions_default = DialogActions;
|
|
1451
1483
|
|
|
1452
|
-
// src/components/FormControl/FormControl.tsx
|
|
1453
|
-
import { FormControl as JoyFormControl } from "@mui/joy";
|
|
1454
|
-
import { motion as motion12 } from "framer-motion";
|
|
1455
|
-
var MotionFormControl = motion12(JoyFormControl);
|
|
1456
|
-
var FormControl = MotionFormControl;
|
|
1457
|
-
FormControl.displayName = "FormControl";
|
|
1458
|
-
|
|
1459
|
-
// src/components/FormControl/index.ts
|
|
1460
|
-
var FormControl_default = FormControl;
|
|
1461
|
-
|
|
1462
|
-
// src/components/FormLabel/FormLabel.tsx
|
|
1463
|
-
import { FormLabel as JoyFormLabel } from "@mui/joy";
|
|
1464
|
-
import { motion as motion13 } from "framer-motion";
|
|
1465
|
-
var MotionFormLabel = motion13(JoyFormLabel);
|
|
1466
|
-
var FormLabel = MotionFormLabel;
|
|
1467
|
-
FormLabel.displayName = "FormLabel";
|
|
1468
|
-
|
|
1469
|
-
// src/components/FormLabel/index.ts
|
|
1470
|
-
var FormLabel_default = FormLabel;
|
|
1471
|
-
|
|
1472
1484
|
// src/components/DatePicker/DatePicker.tsx
|
|
1473
1485
|
var StyledPopper = styled3(Popper, {
|
|
1474
1486
|
name: "DatePicker",
|
|
@@ -1543,7 +1555,7 @@ var TextMaskAdapter = React12.forwardRef(
|
|
|
1543
1555
|
);
|
|
1544
1556
|
var DatePicker = forwardRef4(
|
|
1545
1557
|
(props, ref) => {
|
|
1546
|
-
const { onChange, disabled, label } = props;
|
|
1558
|
+
const { onChange, disabled, label, error, helperText, minDate, maxDate, disableFuture, disablePast } = props;
|
|
1547
1559
|
const [value, setValue] = useState4(props.value || "");
|
|
1548
1560
|
const [anchorEl, setAnchorEl] = useState4(null);
|
|
1549
1561
|
const open = Boolean(anchorEl);
|
|
@@ -1599,7 +1611,11 @@ var DatePicker = forwardRef4(
|
|
|
1599
1611
|
onChange: ([date]) => {
|
|
1600
1612
|
setValue(formatValueString(date));
|
|
1601
1613
|
setAnchorEl(null);
|
|
1602
|
-
}
|
|
1614
|
+
},
|
|
1615
|
+
minDate,
|
|
1616
|
+
maxDate,
|
|
1617
|
+
disableFuture,
|
|
1618
|
+
disablePast
|
|
1603
1619
|
}
|
|
1604
1620
|
), /* @__PURE__ */ React12.createElement(
|
|
1605
1621
|
DialogActions_default,
|
|
@@ -1624,7 +1640,7 @@ var DatePicker = forwardRef4(
|
|
|
1624
1640
|
)))
|
|
1625
1641
|
)));
|
|
1626
1642
|
if (label) {
|
|
1627
|
-
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));
|
|
1628
1644
|
}
|
|
1629
1645
|
return picker;
|
|
1630
1646
|
}
|
|
@@ -1727,7 +1743,7 @@ var TextMaskAdapter3 = React13.forwardRef(
|
|
|
1727
1743
|
);
|
|
1728
1744
|
var DateRangePicker = forwardRef5(
|
|
1729
1745
|
(props, ref) => {
|
|
1730
|
-
const { onChange, disabled, label } = props;
|
|
1746
|
+
const { onChange, disabled, label, error, helperText, minDate, maxDate, disableFuture, disablePast } = props;
|
|
1731
1747
|
const [value, setValue] = useState5(props.value || "");
|
|
1732
1748
|
const [anchorEl, setAnchorEl] = useState5(null);
|
|
1733
1749
|
const open = Boolean(anchorEl);
|
|
@@ -1794,7 +1810,11 @@ var DateRangePicker = forwardRef5(
|
|
|
1794
1810
|
{
|
|
1795
1811
|
rangeSelection: true,
|
|
1796
1812
|
defaultValue: calendarValue,
|
|
1797
|
-
onChange: handleCalendarChange
|
|
1813
|
+
onChange: handleCalendarChange,
|
|
1814
|
+
minDate,
|
|
1815
|
+
maxDate,
|
|
1816
|
+
disableFuture,
|
|
1817
|
+
disablePast
|
|
1798
1818
|
}
|
|
1799
1819
|
), /* @__PURE__ */ React13.createElement(
|
|
1800
1820
|
DialogActions_default,
|
|
@@ -1819,7 +1839,7 @@ var DateRangePicker = forwardRef5(
|
|
|
1819
1839
|
)))
|
|
1820
1840
|
)));
|
|
1821
1841
|
if (label) {
|
|
1822
|
-
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));
|
|
1823
1843
|
}
|
|
1824
1844
|
return picker;
|
|
1825
1845
|
}
|
|
@@ -1828,8 +1848,8 @@ DateRangePicker.displayName = "DateRangePicker";
|
|
|
1828
1848
|
|
|
1829
1849
|
// src/components/DialogContent/DialogContent.tsx
|
|
1830
1850
|
import { DialogContent as JoyDialogContent } from "@mui/joy";
|
|
1831
|
-
import { motion as
|
|
1832
|
-
var MotionDialogContent =
|
|
1851
|
+
import { motion as motion15 } from "framer-motion";
|
|
1852
|
+
var MotionDialogContent = motion15(JoyDialogContent);
|
|
1833
1853
|
var DialogContent = MotionDialogContent;
|
|
1834
1854
|
DialogContent.displayName = "DialogContent";
|
|
1835
1855
|
|
|
@@ -1838,8 +1858,8 @@ var DialogContent_default = DialogContent;
|
|
|
1838
1858
|
|
|
1839
1859
|
// src/components/DialogTitle/DialogTitle.tsx
|
|
1840
1860
|
import { DialogTitle as JoyDialogTitle } from "@mui/joy";
|
|
1841
|
-
import { motion as
|
|
1842
|
-
var MotionDialogTitle =
|
|
1861
|
+
import { motion as motion16 } from "framer-motion";
|
|
1862
|
+
var MotionDialogTitle = motion16(JoyDialogTitle);
|
|
1843
1863
|
var DialogTitle = MotionDialogTitle;
|
|
1844
1864
|
DialogTitle.displayName = "DialogTitle";
|
|
1845
1865
|
|
|
@@ -1857,17 +1877,17 @@ import {
|
|
|
1857
1877
|
ModalClose as JoyModalClose,
|
|
1858
1878
|
ModalOverflow as JoyModalOverflow
|
|
1859
1879
|
} from "@mui/joy";
|
|
1860
|
-
import { motion as
|
|
1861
|
-
var MotionModal =
|
|
1880
|
+
import { motion as motion17 } from "framer-motion";
|
|
1881
|
+
var MotionModal = motion17(JoyModal);
|
|
1862
1882
|
var Modal = MotionModal;
|
|
1863
1883
|
Modal.displayName = "Modal";
|
|
1864
|
-
var MotionModalDialog =
|
|
1884
|
+
var MotionModalDialog = motion17(JoyModalDialog);
|
|
1865
1885
|
var ModalDialog = MotionModalDialog;
|
|
1866
1886
|
ModalDialog.displayName = "ModalDialog";
|
|
1867
|
-
var MotionModalClose =
|
|
1887
|
+
var MotionModalClose = motion17(JoyModalClose);
|
|
1868
1888
|
var ModalClose = MotionModalClose;
|
|
1869
1889
|
ModalClose.displayName = "ModalClose";
|
|
1870
|
-
var MotionModalOverflow =
|
|
1890
|
+
var MotionModalOverflow = motion17(JoyModalOverflow);
|
|
1871
1891
|
var ModalOverflow = MotionModalOverflow;
|
|
1872
1892
|
ModalOverflow.displayName = "ModalOverflow";
|
|
1873
1893
|
function ModalFrame(props) {
|
|
@@ -1886,8 +1906,8 @@ DialogFrame.displayName = "DialogFrame";
|
|
|
1886
1906
|
// src/components/Divider/Divider.tsx
|
|
1887
1907
|
import React16 from "react";
|
|
1888
1908
|
import { Divider as JoyDivider } from "@mui/joy";
|
|
1889
|
-
import { motion as
|
|
1890
|
-
var MotionDivider =
|
|
1909
|
+
import { motion as motion18 } from "framer-motion";
|
|
1910
|
+
var MotionDivider = motion18(JoyDivider);
|
|
1891
1911
|
var Divider = (props) => {
|
|
1892
1912
|
return /* @__PURE__ */ React16.createElement(MotionDivider, { ...props });
|
|
1893
1913
|
};
|
|
@@ -1896,8 +1916,8 @@ Divider.displayName = "Divider";
|
|
|
1896
1916
|
// src/components/InsetDrawer/InsetDrawer.tsx
|
|
1897
1917
|
import React17 from "react";
|
|
1898
1918
|
import { Drawer as JoyDrawer } from "@mui/joy";
|
|
1899
|
-
import { motion as
|
|
1900
|
-
var MotionDrawer =
|
|
1919
|
+
import { motion as motion19 } from "framer-motion";
|
|
1920
|
+
var MotionDrawer = motion19(JoyDrawer);
|
|
1901
1921
|
var InsetDrawer = (props) => {
|
|
1902
1922
|
const { children, ...innerProps } = props;
|
|
1903
1923
|
return /* @__PURE__ */ React17.createElement(
|
|
@@ -1923,18 +1943,11 @@ InsetDrawer.displayName = "InsetDrawer";
|
|
|
1923
1943
|
|
|
1924
1944
|
// src/components/Dropdown/Dropdown.tsx
|
|
1925
1945
|
import { Dropdown as JoyDropdown } from "@mui/joy";
|
|
1926
|
-
import { motion as
|
|
1927
|
-
var MotionDropdown =
|
|
1946
|
+
import { motion as motion20 } from "framer-motion";
|
|
1947
|
+
var MotionDropdown = motion20(JoyDropdown);
|
|
1928
1948
|
var Dropdown = MotionDropdown;
|
|
1929
1949
|
Dropdown.displayName = "Dropdown";
|
|
1930
1950
|
|
|
1931
|
-
// src/components/FormHelperText/FormHelperText.tsx
|
|
1932
|
-
import { FormHelperText as JoyFormHelperText } from "@mui/joy";
|
|
1933
|
-
import { motion as motion20 } from "framer-motion";
|
|
1934
|
-
var MotionFormHelperText = motion20(JoyFormHelperText);
|
|
1935
|
-
var FormHelperText = MotionFormHelperText;
|
|
1936
|
-
FormHelperText.displayName = "FormHelperText";
|
|
1937
|
-
|
|
1938
1951
|
// src/components/Grid/Grid.tsx
|
|
1939
1952
|
import { Grid as JoyGrid } from "@mui/joy";
|
|
1940
1953
|
import { motion as motion21 } from "framer-motion";
|
|
@@ -1997,7 +2010,13 @@ Option.displayName = "Option";
|
|
|
1997
2010
|
function Select(props) {
|
|
1998
2011
|
const { label, helperText, error, ...innerProps } = props;
|
|
1999
2012
|
if (label) {
|
|
2000
|
-
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));
|
|
2001
2020
|
}
|
|
2002
2021
|
return /* @__PURE__ */ React20.createElement(JoySelect, { ...innerProps });
|
|
2003
2022
|
}
|
package/framer/index.js
CHANGED
|
@@ -40528,15 +40528,44 @@ var CalendarToday_default = createSvgIcon2(/* @__PURE__ */ _jsx106("path", {
|
|
|
40528
40528
|
}), "CalendarToday");
|
|
40529
40529
|
|
|
40530
40530
|
// src/components/Input/Input.tsx
|
|
40531
|
+
import { motion as motion13 } from "framer-motion";
|
|
40532
|
+
|
|
40533
|
+
// src/components/FormControl/FormControl.tsx
|
|
40531
40534
|
import { motion as motion10 } from "framer-motion";
|
|
40532
|
-
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);
|
|
40533
40562
|
var Input3 = (props) => {
|
|
40534
40563
|
const _a = props, { label, helperText, error, style: style4 } = _a, innerProps = __objRest(_a, ["label", "helperText", "error", "style"]);
|
|
40535
40564
|
if (label) {
|
|
40536
|
-
return /* @__PURE__ */ jsxs2(
|
|
40537
|
-
/* @__PURE__ */ jsx2(
|
|
40565
|
+
return /* @__PURE__ */ jsxs2(FormControl_default2, { error, children: [
|
|
40566
|
+
/* @__PURE__ */ jsx2(FormLabel_default2, { children: label }),
|
|
40538
40567
|
/* @__PURE__ */ jsx2(MotionInput, __spreadProps(__spreadValues({}, innerProps), { color: error ? "danger" : innerProps.color })),
|
|
40539
|
-
helperText && /* @__PURE__ */ jsx2(
|
|
40568
|
+
helperText && /* @__PURE__ */ jsx2(FormHelperText_default2, { children: helperText })
|
|
40540
40569
|
] });
|
|
40541
40570
|
}
|
|
40542
40571
|
return /* @__PURE__ */ jsx2(MotionInput, __spreadValues({}, innerProps));
|
|
@@ -40547,32 +40576,14 @@ Input3.displayName = "Input";
|
|
|
40547
40576
|
var Input_default2 = Input3;
|
|
40548
40577
|
|
|
40549
40578
|
// src/components/DialogActions/DialogActions.tsx
|
|
40550
|
-
import { motion as
|
|
40551
|
-
var MotionDialogActions =
|
|
40579
|
+
import { motion as motion14 } from "framer-motion";
|
|
40580
|
+
var MotionDialogActions = motion14(DialogActions_default);
|
|
40552
40581
|
var DialogActions3 = MotionDialogActions;
|
|
40553
40582
|
DialogActions3.displayName = "DialogActions";
|
|
40554
40583
|
|
|
40555
40584
|
// src/components/DialogActions/index.ts
|
|
40556
40585
|
var DialogActions_default2 = DialogActions3;
|
|
40557
40586
|
|
|
40558
|
-
// src/components/FormControl/FormControl.tsx
|
|
40559
|
-
import { motion as motion12 } from "framer-motion";
|
|
40560
|
-
var MotionFormControl = motion12(FormControl_default);
|
|
40561
|
-
var FormControl3 = MotionFormControl;
|
|
40562
|
-
FormControl3.displayName = "FormControl";
|
|
40563
|
-
|
|
40564
|
-
// src/components/FormControl/index.ts
|
|
40565
|
-
var FormControl_default2 = FormControl3;
|
|
40566
|
-
|
|
40567
|
-
// src/components/FormLabel/FormLabel.tsx
|
|
40568
|
-
import { motion as motion13 } from "framer-motion";
|
|
40569
|
-
var MotionFormLabel = motion13(FormLabel_default);
|
|
40570
|
-
var FormLabel3 = MotionFormLabel;
|
|
40571
|
-
FormLabel3.displayName = "FormLabel";
|
|
40572
|
-
|
|
40573
|
-
// src/components/FormLabel/index.ts
|
|
40574
|
-
var FormLabel_default2 = FormLabel3;
|
|
40575
|
-
|
|
40576
40587
|
// src/components/DatePicker/DatePicker.tsx
|
|
40577
40588
|
var StyledPopper = styled_default2(Popper, {
|
|
40578
40589
|
name: "DatePicker",
|
|
@@ -40646,7 +40657,7 @@ var TextMaskAdapter = React178.forwardRef(
|
|
|
40646
40657
|
);
|
|
40647
40658
|
var DatePicker = forwardRef84(
|
|
40648
40659
|
(props, ref) => {
|
|
40649
|
-
const { onChange, disabled, label } = props;
|
|
40660
|
+
const { onChange, disabled, label, error, helperText, minDate, maxDate, disableFuture, disablePast } = props;
|
|
40650
40661
|
const [value, setValue] = useState27(props.value || "");
|
|
40651
40662
|
const [anchorEl, setAnchorEl] = useState27(null);
|
|
40652
40663
|
const open = Boolean(anchorEl);
|
|
@@ -40704,7 +40715,11 @@ var DatePicker = forwardRef84(
|
|
|
40704
40715
|
onChange: ([date]) => {
|
|
40705
40716
|
setValue(formatValueString(date));
|
|
40706
40717
|
setAnchorEl(null);
|
|
40707
|
-
}
|
|
40718
|
+
},
|
|
40719
|
+
minDate,
|
|
40720
|
+
maxDate,
|
|
40721
|
+
disableFuture,
|
|
40722
|
+
disablePast
|
|
40708
40723
|
}
|
|
40709
40724
|
),
|
|
40710
40725
|
/* @__PURE__ */ jsx2(
|
|
@@ -40733,9 +40748,10 @@ var DatePicker = forwardRef84(
|
|
|
40733
40748
|
) })
|
|
40734
40749
|
] });
|
|
40735
40750
|
if (label) {
|
|
40736
|
-
return /* @__PURE__ */ jsxs2(FormControl_default2, { size: "sm", children: [
|
|
40751
|
+
return /* @__PURE__ */ jsxs2(FormControl_default2, { error, size: "sm", children: [
|
|
40737
40752
|
/* @__PURE__ */ jsx2(FormLabel_default2, { children: label }),
|
|
40738
|
-
picker
|
|
40753
|
+
picker,
|
|
40754
|
+
helperText && /* @__PURE__ */ jsx2(FormHelperText_default2, { children: helperText })
|
|
40739
40755
|
] });
|
|
40740
40756
|
}
|
|
40741
40757
|
return picker;
|
|
@@ -40832,7 +40848,7 @@ var TextMaskAdapter3 = React179.forwardRef(
|
|
|
40832
40848
|
);
|
|
40833
40849
|
var DateRangePicker = forwardRef85(
|
|
40834
40850
|
(props, ref) => {
|
|
40835
|
-
const { onChange, disabled, label } = props;
|
|
40851
|
+
const { onChange, disabled, label, error, helperText, minDate, maxDate, disableFuture, disablePast } = props;
|
|
40836
40852
|
const [value, setValue] = useState28(props.value || "");
|
|
40837
40853
|
const [anchorEl, setAnchorEl] = useState28(null);
|
|
40838
40854
|
const open = Boolean(anchorEl);
|
|
@@ -40901,7 +40917,11 @@ var DateRangePicker = forwardRef85(
|
|
|
40901
40917
|
{
|
|
40902
40918
|
rangeSelection: true,
|
|
40903
40919
|
defaultValue: calendarValue,
|
|
40904
|
-
onChange: handleCalendarChange
|
|
40920
|
+
onChange: handleCalendarChange,
|
|
40921
|
+
minDate,
|
|
40922
|
+
maxDate,
|
|
40923
|
+
disableFuture,
|
|
40924
|
+
disablePast
|
|
40905
40925
|
}
|
|
40906
40926
|
),
|
|
40907
40927
|
/* @__PURE__ */ jsx2(
|
|
@@ -40930,9 +40950,10 @@ var DateRangePicker = forwardRef85(
|
|
|
40930
40950
|
) })
|
|
40931
40951
|
] });
|
|
40932
40952
|
if (label) {
|
|
40933
|
-
return /* @__PURE__ */ jsxs2(FormControl_default2, { size: "sm", children: [
|
|
40953
|
+
return /* @__PURE__ */ jsxs2(FormControl_default2, { error, size: "sm", children: [
|
|
40934
40954
|
/* @__PURE__ */ jsx2(FormLabel_default2, { children: label }),
|
|
40935
|
-
picker
|
|
40955
|
+
picker,
|
|
40956
|
+
helperText && /* @__PURE__ */ jsx2(FormHelperText_default2, { children: helperText })
|
|
40936
40957
|
] });
|
|
40937
40958
|
}
|
|
40938
40959
|
return picker;
|
|
@@ -40941,8 +40962,8 @@ var DateRangePicker = forwardRef85(
|
|
|
40941
40962
|
DateRangePicker.displayName = "DateRangePicker";
|
|
40942
40963
|
|
|
40943
40964
|
// src/components/DialogContent/DialogContent.tsx
|
|
40944
|
-
import { motion as
|
|
40945
|
-
var MotionDialogContent =
|
|
40965
|
+
import { motion as motion15 } from "framer-motion";
|
|
40966
|
+
var MotionDialogContent = motion15(DialogContent_default);
|
|
40946
40967
|
var DialogContent3 = MotionDialogContent;
|
|
40947
40968
|
DialogContent3.displayName = "DialogContent";
|
|
40948
40969
|
|
|
@@ -40950,8 +40971,8 @@ DialogContent3.displayName = "DialogContent";
|
|
|
40950
40971
|
var DialogContent_default2 = DialogContent3;
|
|
40951
40972
|
|
|
40952
40973
|
// src/components/DialogTitle/DialogTitle.tsx
|
|
40953
|
-
import { motion as
|
|
40954
|
-
var MotionDialogTitle =
|
|
40974
|
+
import { motion as motion16 } from "framer-motion";
|
|
40975
|
+
var MotionDialogTitle = motion16(DialogTitle_default);
|
|
40955
40976
|
var DialogTitle3 = MotionDialogTitle;
|
|
40956
40977
|
DialogTitle3.displayName = "DialogTitle";
|
|
40957
40978
|
|
|
@@ -40959,17 +40980,17 @@ DialogTitle3.displayName = "DialogTitle";
|
|
|
40959
40980
|
var DialogTitle_default2 = DialogTitle3;
|
|
40960
40981
|
|
|
40961
40982
|
// src/components/Modal/Modal.tsx
|
|
40962
|
-
import { motion as
|
|
40963
|
-
var MotionModal =
|
|
40983
|
+
import { motion as motion17 } from "framer-motion";
|
|
40984
|
+
var MotionModal = motion17(Modal_default);
|
|
40964
40985
|
var Modal3 = MotionModal;
|
|
40965
40986
|
Modal3.displayName = "Modal";
|
|
40966
|
-
var MotionModalDialog =
|
|
40987
|
+
var MotionModalDialog = motion17(ModalDialog_default);
|
|
40967
40988
|
var ModalDialog3 = MotionModalDialog;
|
|
40968
40989
|
ModalDialog3.displayName = "ModalDialog";
|
|
40969
|
-
var MotionModalClose =
|
|
40990
|
+
var MotionModalClose = motion17(ModalClose_default);
|
|
40970
40991
|
var ModalClose3 = MotionModalClose;
|
|
40971
40992
|
ModalClose3.displayName = "ModalClose";
|
|
40972
|
-
var MotionModalOverflow =
|
|
40993
|
+
var MotionModalOverflow = motion17(ModalOverflow_default);
|
|
40973
40994
|
var ModalOverflow3 = MotionModalOverflow;
|
|
40974
40995
|
ModalOverflow3.displayName = "ModalOverflow";
|
|
40975
40996
|
function ModalFrame(props) {
|
|
@@ -40994,16 +41015,16 @@ function DialogFrame(props) {
|
|
|
40994
41015
|
DialogFrame.displayName = "DialogFrame";
|
|
40995
41016
|
|
|
40996
41017
|
// src/components/Divider/Divider.tsx
|
|
40997
|
-
import { motion as
|
|
40998
|
-
var MotionDivider =
|
|
41018
|
+
import { motion as motion18 } from "framer-motion";
|
|
41019
|
+
var MotionDivider = motion18(Divider_default);
|
|
40999
41020
|
var Divider3 = (props) => {
|
|
41000
41021
|
return /* @__PURE__ */ jsx2(MotionDivider, __spreadValues({}, props));
|
|
41001
41022
|
};
|
|
41002
41023
|
Divider3.displayName = "Divider";
|
|
41003
41024
|
|
|
41004
41025
|
// src/components/InsetDrawer/InsetDrawer.tsx
|
|
41005
|
-
import { motion as
|
|
41006
|
-
var MotionDrawer =
|
|
41026
|
+
import { motion as motion19 } from "framer-motion";
|
|
41027
|
+
var MotionDrawer = motion19(Drawer_default);
|
|
41007
41028
|
var InsetDrawer = (props) => {
|
|
41008
41029
|
var _b;
|
|
41009
41030
|
const _a = props, { children } = _a, innerProps = __objRest(_a, ["children"]);
|
|
@@ -41026,17 +41047,11 @@ var InsetDrawer = (props) => {
|
|
|
41026
41047
|
InsetDrawer.displayName = "InsetDrawer";
|
|
41027
41048
|
|
|
41028
41049
|
// src/components/Dropdown/Dropdown.tsx
|
|
41029
|
-
import { motion as
|
|
41030
|
-
var MotionDropdown =
|
|
41050
|
+
import { motion as motion20 } from "framer-motion";
|
|
41051
|
+
var MotionDropdown = motion20(Dropdown);
|
|
41031
41052
|
var Dropdown2 = MotionDropdown;
|
|
41032
41053
|
Dropdown2.displayName = "Dropdown";
|
|
41033
41054
|
|
|
41034
|
-
// src/components/FormHelperText/FormHelperText.tsx
|
|
41035
|
-
import { motion as motion20 } from "framer-motion";
|
|
41036
|
-
var MotionFormHelperText = motion20(FormHelperText_default);
|
|
41037
|
-
var FormHelperText3 = MotionFormHelperText;
|
|
41038
|
-
FormHelperText3.displayName = "FormHelperText";
|
|
41039
|
-
|
|
41040
41055
|
// src/components/Grid/Grid.tsx
|
|
41041
41056
|
import { motion as motion21 } from "framer-motion";
|
|
41042
41057
|
var MotionGrid = motion21(Grid_default);
|
|
@@ -41085,10 +41100,15 @@ Option3.displayName = "Option";
|
|
|
41085
41100
|
function Select3(props) {
|
|
41086
41101
|
const _a = props, { label, helperText, error } = _a, innerProps = __objRest(_a, ["label", "helperText", "error"]);
|
|
41087
41102
|
if (label) {
|
|
41088
|
-
return /* @__PURE__ */ jsxs2(
|
|
41089
|
-
/* @__PURE__ */ jsx2(
|
|
41090
|
-
/* @__PURE__ */ jsx2(
|
|
41091
|
-
|
|
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 })
|
|
41092
41112
|
] });
|
|
41093
41113
|
}
|
|
41094
41114
|
return /* @__PURE__ */ jsx2(Select_default, __spreadValues({}, innerProps));
|
|
@@ -41617,25 +41637,35 @@ var datePickerPropertyControls = {
|
|
|
41617
41637
|
title: "Label",
|
|
41618
41638
|
type: ControlType10.String,
|
|
41619
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
|
|
41620
41668
|
}
|
|
41621
|
-
// color: {
|
|
41622
|
-
// title: "Color",
|
|
41623
|
-
// type: ControlType.Enum,
|
|
41624
|
-
// options: ["primary", "neutral", "danger", "success", "warning"],
|
|
41625
|
-
// optionTitles: ["Primary", "Neutral", "Danger", "Success", "Warning"],
|
|
41626
|
-
// },
|
|
41627
|
-
// variant: {
|
|
41628
|
-
// title: "Variant",
|
|
41629
|
-
// type: ControlType.Enum,
|
|
41630
|
-
// options: ["solid", "outlined", "soft", "plain"],
|
|
41631
|
-
// defaultValue: undefined,
|
|
41632
|
-
// },
|
|
41633
|
-
// size: {
|
|
41634
|
-
// title: "Size",
|
|
41635
|
-
// type: ControlType.Enum,
|
|
41636
|
-
// options: ["sm", "md", "lg"],
|
|
41637
|
-
// defaultValue: "md",
|
|
41638
|
-
// },
|
|
41639
41669
|
};
|
|
41640
41670
|
|
|
41641
41671
|
// src/components/DateRangePicker/DateRangePicker.framer.ts
|
|
@@ -41659,25 +41689,35 @@ var dateRangePickerPropertyControls = {
|
|
|
41659
41689
|
title: "Label",
|
|
41660
41690
|
type: ControlType11.String,
|
|
41661
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
|
|
41662
41720
|
}
|
|
41663
|
-
// color: {
|
|
41664
|
-
// title: "Color",
|
|
41665
|
-
// type: ControlType.Enum,
|
|
41666
|
-
// options: ["primary", "neutral", "danger", "success", "warning"],
|
|
41667
|
-
// optionTitles: ["Primary", "Neutral", "Danger", "Success", "Warning"],
|
|
41668
|
-
// },
|
|
41669
|
-
// variant: {
|
|
41670
|
-
// title: "Variant",
|
|
41671
|
-
// type: ControlType.Enum,
|
|
41672
|
-
// options: ["solid", "outlined", "soft", "plain"],
|
|
41673
|
-
// defaultValue: undefined,
|
|
41674
|
-
// },
|
|
41675
|
-
// size: {
|
|
41676
|
-
// title: "Size",
|
|
41677
|
-
// type: ControlType.Enum,
|
|
41678
|
-
// options: ["sm", "md", "lg"],
|
|
41679
|
-
// defaultValue: "md",
|
|
41680
|
-
// },
|
|
41681
41721
|
};
|
|
41682
41722
|
|
|
41683
41723
|
// src/components/DialogFrame/DialogFrame.framer.ts
|