@ceed/ads 0.0.53 → 0.0.55
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.d.ts +7 -0
- package/dist/components/DatePicker/DatePicker.d.ts +6 -0
- package/dist/components/DateRangePicker/DateRangePicker.d.ts +6 -0
- package/dist/components/MonthRangePicker/MonthRangePicker.d.ts +21 -0
- package/dist/components/MonthRangePicker/index.d.ts +3 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +369 -80
- package/framer/index.js +553 -172
- package/package.json +1 -1
package/framer/index.js
CHANGED
|
@@ -35634,7 +35634,7 @@ var getMonthName = (date, locale) => {
|
|
|
35634
35634
|
return date.toLocaleString(locale, { year: "numeric", month: "long" });
|
|
35635
35635
|
};
|
|
35636
35636
|
var getMonthNameFromIndex = (index, locale) => {
|
|
35637
|
-
return new Date(0, index).toLocaleString(locale, { month: "
|
|
35637
|
+
return new Date(0, index).toLocaleString(locale, { month: "short" });
|
|
35638
35638
|
};
|
|
35639
35639
|
var getWeekdayNames = (locale) => {
|
|
35640
35640
|
const currentDay = (/* @__PURE__ */ new Date()).getDay();
|
|
@@ -35765,6 +35765,7 @@ var useCalendarProps = (inProps) => {
|
|
|
35765
35765
|
import { useCallback as useCallback25, useState as useState24 } from "react";
|
|
35766
35766
|
var useCalendar = (ownerState) => {
|
|
35767
35767
|
const [hoverDay, setHoverDay] = useState24(null);
|
|
35768
|
+
const [hoverMonth, setHoverMonth] = useState24(null);
|
|
35768
35769
|
return {
|
|
35769
35770
|
calendarTitle: ownerState.view === "month" ? getYearName(ownerState.viewMonth, ownerState.locale || "default") : getMonthName(ownerState.viewMonth, ownerState.locale || "default"),
|
|
35770
35771
|
onPrev: useCallback25(() => {
|
|
@@ -35815,6 +35816,33 @@ var useCalendar = (ownerState) => {
|
|
|
35815
35816
|
hoverDay
|
|
35816
35817
|
]
|
|
35817
35818
|
),
|
|
35819
|
+
getMonthCellProps: useCallback25(
|
|
35820
|
+
(monthIndex) => {
|
|
35821
|
+
var _a;
|
|
35822
|
+
const thisMonth = new Date(ownerState.viewMonth || /* @__PURE__ */ new Date());
|
|
35823
|
+
thisMonth.setDate(1);
|
|
35824
|
+
thisMonth.setHours(0, 0, 0, 0);
|
|
35825
|
+
thisMonth.setMonth(monthIndex);
|
|
35826
|
+
const isMonthRangeSelection = !((_a = ownerState.views) == null ? void 0 : _a.find((view) => view === "day")) && ownerState.rangeSelection;
|
|
35827
|
+
const inRange = isMonthRangeSelection && ownerState.value && ownerState.value[0] && // NOTE: hover day is not included in the range
|
|
35828
|
+
(hoverMonth && isWithinRange(ownerState.value[0], hoverMonth, thisMonth) || // NOTE: Selected range is included in the range
|
|
35829
|
+
ownerState.value[1] && isWithinRange(
|
|
35830
|
+
ownerState.value[0],
|
|
35831
|
+
ownerState.value[1],
|
|
35832
|
+
thisMonth
|
|
35833
|
+
));
|
|
35834
|
+
return {
|
|
35835
|
+
"aria-label": thisMonth.toLocaleDateString(),
|
|
35836
|
+
"aria-current": inRange ? "date" : void 0
|
|
35837
|
+
};
|
|
35838
|
+
},
|
|
35839
|
+
[
|
|
35840
|
+
ownerState.rangeSelection,
|
|
35841
|
+
ownerState.value,
|
|
35842
|
+
ownerState.viewMonth,
|
|
35843
|
+
hoverMonth
|
|
35844
|
+
]
|
|
35845
|
+
),
|
|
35818
35846
|
getPickerDayProps: useCallback25(
|
|
35819
35847
|
(day) => {
|
|
35820
35848
|
var _a, _b;
|
|
@@ -35881,18 +35909,46 @@ var useCalendar = (ownerState) => {
|
|
|
35881
35909
|
),
|
|
35882
35910
|
getPickerMonthProps: useCallback25(
|
|
35883
35911
|
(monthIndex) => {
|
|
35912
|
+
var _a, _b, _c;
|
|
35884
35913
|
const thisMonth = new Date(ownerState.viewMonth || /* @__PURE__ */ new Date());
|
|
35885
35914
|
thisMonth.setDate(1);
|
|
35886
35915
|
thisMonth.setHours(0, 0, 0, 0);
|
|
35887
35916
|
thisMonth.setMonth(monthIndex);
|
|
35917
|
+
const isMonthRangeSelection = !((_a = ownerState.views) == null ? void 0 : _a.find((view) => view === "day")) && ownerState.rangeSelection;
|
|
35888
35918
|
const isSelected = !!ownerState.value && (isSameMonth(thisMonth, ownerState.value[0]) || ownerState.value[1] && isSameMonth(thisMonth, ownerState.value[1]));
|
|
35919
|
+
const inRange = isMonthRangeSelection && ownerState.value && ownerState.value[0] && // NOTE: hover day is not included in the range
|
|
35920
|
+
(hoverMonth && isWithinRange(ownerState.value[0], hoverMonth, thisMonth) || // NOTE: Selected range is included in the range
|
|
35921
|
+
ownerState.value[1] && isWithinRange(
|
|
35922
|
+
ownerState.value[0],
|
|
35923
|
+
ownerState.value[1],
|
|
35924
|
+
thisMonth
|
|
35925
|
+
));
|
|
35889
35926
|
const handleMonthClick = () => {
|
|
35890
|
-
var
|
|
35891
|
-
(
|
|
35892
|
-
|
|
35927
|
+
var _a2, _b2, _c2, _d, _e;
|
|
35928
|
+
if (isMonthRangeSelection) {
|
|
35929
|
+
if (!ownerState.value) {
|
|
35930
|
+
(_a2 = ownerState.onChange) == null ? void 0 : _a2.call(ownerState, [thisMonth, void 0]);
|
|
35931
|
+
} else if (ownerState.value[0] && !ownerState.value[1]) {
|
|
35932
|
+
(_b2 = ownerState.onChange) == null ? void 0 : _b2.call(ownerState, [
|
|
35933
|
+
new Date(
|
|
35934
|
+
Math.min(ownerState.value[0].getTime(), thisMonth.getTime())
|
|
35935
|
+
),
|
|
35936
|
+
new Date(
|
|
35937
|
+
Math.max(ownerState.value[0].getTime(), thisMonth.getTime())
|
|
35938
|
+
)
|
|
35939
|
+
]);
|
|
35940
|
+
} else {
|
|
35941
|
+
(_c2 = ownerState.onChange) == null ? void 0 : _c2.call(ownerState, [thisMonth, void 0]);
|
|
35942
|
+
}
|
|
35943
|
+
} else {
|
|
35944
|
+
(_d = ownerState.onViewChange) == null ? void 0 : _d.call(ownerState, "day");
|
|
35945
|
+
(_e = ownerState.onMonthChange) == null ? void 0 : _e.call(ownerState, thisMonth);
|
|
35946
|
+
}
|
|
35947
|
+
setHoverMonth(null);
|
|
35893
35948
|
};
|
|
35894
35949
|
return {
|
|
35895
35950
|
isSelected,
|
|
35951
|
+
onMouseEnter: isMonthRangeSelection && ((_b = ownerState.value) == null ? void 0 : _b[0]) && !((_c = ownerState.value) == null ? void 0 : _c[1]) ? () => setHoverMonth(thisMonth) : void 0,
|
|
35896
35952
|
disabled: ownerState.minDate && (() => {
|
|
35897
35953
|
const lastDay = new Date(thisMonth);
|
|
35898
35954
|
lastDay.setMonth(lastDay.getMonth() + 1);
|
|
@@ -35902,10 +35958,12 @@ var useCalendar = (ownerState) => {
|
|
|
35902
35958
|
const lastDay = new Date(thisMonth);
|
|
35903
35959
|
lastDay.setDate(0);
|
|
35904
35960
|
return lastDay > ownerState.maxDate;
|
|
35905
|
-
})() || ownerState.disableFuture && thisMonth > /* @__PURE__ */ new Date() || ownerState.disablePast && thisMonth < /* @__PURE__ */ new Date(),
|
|
35961
|
+
})() || ownerState.disableFuture && thisMonth > /* @__PURE__ */ new Date() || ownerState.disablePast && thisMonth < /* @__PURE__ */ new Date() && !isSameMonth(thisMonth, /* @__PURE__ */ new Date()),
|
|
35906
35962
|
onClick: handleMonthClick,
|
|
35907
35963
|
tabIndex: -1,
|
|
35908
|
-
"aria-label": getMonthName(thisMonth, ownerState.locale || "default")
|
|
35964
|
+
"aria-label": getMonthName(thisMonth, ownerState.locale || "default"),
|
|
35965
|
+
"aria-selected": isSelected ? "true" : void 0,
|
|
35966
|
+
"aria-current": inRange ? "date" : void 0
|
|
35909
35967
|
};
|
|
35910
35968
|
},
|
|
35911
35969
|
[
|
|
@@ -35918,7 +35976,8 @@ var useCalendar = (ownerState) => {
|
|
|
35918
35976
|
ownerState.minDate,
|
|
35919
35977
|
ownerState.maxDate,
|
|
35920
35978
|
ownerState.disableFuture,
|
|
35921
|
-
ownerState.disablePast
|
|
35979
|
+
ownerState.disablePast,
|
|
35980
|
+
hoverMonth
|
|
35922
35981
|
]
|
|
35923
35982
|
)
|
|
35924
35983
|
};
|
|
@@ -36002,6 +36061,28 @@ var CalendarDayCell = styled_default2("td", {
|
|
|
36002
36061
|
}
|
|
36003
36062
|
}
|
|
36004
36063
|
}));
|
|
36064
|
+
var CalendarMonthCell = styled_default2("td", {
|
|
36065
|
+
name: "Calendar",
|
|
36066
|
+
slot: "monthCell"
|
|
36067
|
+
})(({ theme }) => ({
|
|
36068
|
+
// aria-current=date === range에 포함된 버튼
|
|
36069
|
+
"&[aria-current=date]": {
|
|
36070
|
+
position: "relative",
|
|
36071
|
+
"& button[aria-current=date]:not([aria-selected=true]):not(:hover):not(:active)": {
|
|
36072
|
+
backgroundColor: `rgb(${theme.palette.primary.lightChannel})`
|
|
36073
|
+
},
|
|
36074
|
+
'& + td[aria-hidden] + td[aria-current="date"]::before': {
|
|
36075
|
+
content: '""',
|
|
36076
|
+
position: "absolute",
|
|
36077
|
+
top: 0,
|
|
36078
|
+
left: "-10px",
|
|
36079
|
+
bottom: 0,
|
|
36080
|
+
width: "16px",
|
|
36081
|
+
backgroundColor: `rgb(${theme.palette.primary.lightChannel})`,
|
|
36082
|
+
zIndex: -1
|
|
36083
|
+
}
|
|
36084
|
+
}
|
|
36085
|
+
}));
|
|
36005
36086
|
var CalendarMonth = styled_default2(Button_default2, {
|
|
36006
36087
|
name: "Calendar",
|
|
36007
36088
|
slot: "month"
|
|
@@ -36179,7 +36260,7 @@ var PickerDays = (props) => {
|
|
|
36179
36260
|
};
|
|
36180
36261
|
var PickerMonths = (props) => {
|
|
36181
36262
|
const { ownerState } = props;
|
|
36182
|
-
const { getPickerMonthProps } = useCalendar(ownerState);
|
|
36263
|
+
const { getPickerMonthProps, getMonthCellProps } = useCalendar(ownerState);
|
|
36183
36264
|
const chunkedMonths = Array.from({ length: 12 }, (_4, i) => i).reduce(
|
|
36184
36265
|
(acc, month) => {
|
|
36185
36266
|
if (acc[acc.length - 1].length === 4) {
|
|
@@ -36220,7 +36301,7 @@ var PickerMonths = (props) => {
|
|
|
36220
36301
|
},
|
|
36221
36302
|
children: /* @__PURE__ */ jsx2("tbody", { children: chunkedMonths.map((months, i) => /* @__PURE__ */ jsxs2(Fragment17, { children: [
|
|
36222
36303
|
/* @__PURE__ */ jsx2("tr", { children: months.map((monthIndex, j) => /* @__PURE__ */ jsxs2(Fragment17, { children: [
|
|
36223
|
-
/* @__PURE__ */ jsx2(
|
|
36304
|
+
/* @__PURE__ */ jsx2(CalendarMonthCell, __spreadProps(__spreadValues({}, getMonthCellProps(monthIndex)), { children: /* @__PURE__ */ jsx2(
|
|
36224
36305
|
CalendarMonth,
|
|
36225
36306
|
__spreadProps(__spreadValues({
|
|
36226
36307
|
size: "sm",
|
|
@@ -36232,7 +36313,7 @@ var PickerMonths = (props) => {
|
|
|
36232
36313
|
ownerState.locale
|
|
36233
36314
|
)
|
|
36234
36315
|
})
|
|
36235
|
-
) }),
|
|
36316
|
+
) })),
|
|
36236
36317
|
j < 3 && /* @__PURE__ */ jsx2(
|
|
36237
36318
|
"td",
|
|
36238
36319
|
{
|
|
@@ -40528,15 +40609,44 @@ var CalendarToday_default = createSvgIcon2(/* @__PURE__ */ _jsx106("path", {
|
|
|
40528
40609
|
}), "CalendarToday");
|
|
40529
40610
|
|
|
40530
40611
|
// src/components/Input/Input.tsx
|
|
40612
|
+
import { motion as motion13 } from "framer-motion";
|
|
40613
|
+
|
|
40614
|
+
// src/components/FormControl/FormControl.tsx
|
|
40531
40615
|
import { motion as motion10 } from "framer-motion";
|
|
40532
|
-
var
|
|
40616
|
+
var MotionFormControl = motion10(FormControl_default);
|
|
40617
|
+
var FormControl3 = MotionFormControl;
|
|
40618
|
+
FormControl3.displayName = "FormControl";
|
|
40619
|
+
|
|
40620
|
+
// src/components/FormControl/index.ts
|
|
40621
|
+
var FormControl_default2 = FormControl3;
|
|
40622
|
+
|
|
40623
|
+
// src/components/FormLabel/FormLabel.tsx
|
|
40624
|
+
import { motion as motion11 } from "framer-motion";
|
|
40625
|
+
var MotionFormLabel = motion11(FormLabel_default);
|
|
40626
|
+
var FormLabel3 = MotionFormLabel;
|
|
40627
|
+
FormLabel3.displayName = "FormLabel";
|
|
40628
|
+
|
|
40629
|
+
// src/components/FormLabel/index.ts
|
|
40630
|
+
var FormLabel_default2 = FormLabel3;
|
|
40631
|
+
|
|
40632
|
+
// src/components/FormHelperText/FormHelperText.tsx
|
|
40633
|
+
import { motion as motion12 } from "framer-motion";
|
|
40634
|
+
var MotionFormHelperText = motion12(FormHelperText_default);
|
|
40635
|
+
var FormHelperText3 = MotionFormHelperText;
|
|
40636
|
+
FormHelperText3.displayName = "FormHelperText";
|
|
40637
|
+
|
|
40638
|
+
// src/components/FormHelperText/index.ts
|
|
40639
|
+
var FormHelperText_default2 = FormHelperText3;
|
|
40640
|
+
|
|
40641
|
+
// src/components/Input/Input.tsx
|
|
40642
|
+
var MotionInput = motion13(Input_default);
|
|
40533
40643
|
var Input3 = (props) => {
|
|
40534
40644
|
const _a = props, { label, helperText, error, style: style4 } = _a, innerProps = __objRest(_a, ["label", "helperText", "error", "style"]);
|
|
40535
40645
|
if (label) {
|
|
40536
|
-
return /* @__PURE__ */ jsxs2(
|
|
40537
|
-
/* @__PURE__ */ jsx2(
|
|
40646
|
+
return /* @__PURE__ */ jsxs2(FormControl_default2, { error, children: [
|
|
40647
|
+
/* @__PURE__ */ jsx2(FormLabel_default2, { children: label }),
|
|
40538
40648
|
/* @__PURE__ */ jsx2(MotionInput, __spreadProps(__spreadValues({}, innerProps), { color: error ? "danger" : innerProps.color })),
|
|
40539
|
-
helperText && /* @__PURE__ */ jsx2(
|
|
40649
|
+
helperText && /* @__PURE__ */ jsx2(FormHelperText_default2, { children: helperText })
|
|
40540
40650
|
] });
|
|
40541
40651
|
}
|
|
40542
40652
|
return /* @__PURE__ */ jsx2(MotionInput, __spreadValues({}, innerProps));
|
|
@@ -40547,32 +40657,14 @@ Input3.displayName = "Input";
|
|
|
40547
40657
|
var Input_default2 = Input3;
|
|
40548
40658
|
|
|
40549
40659
|
// src/components/DialogActions/DialogActions.tsx
|
|
40550
|
-
import { motion as
|
|
40551
|
-
var MotionDialogActions =
|
|
40660
|
+
import { motion as motion14 } from "framer-motion";
|
|
40661
|
+
var MotionDialogActions = motion14(DialogActions_default);
|
|
40552
40662
|
var DialogActions3 = MotionDialogActions;
|
|
40553
40663
|
DialogActions3.displayName = "DialogActions";
|
|
40554
40664
|
|
|
40555
40665
|
// src/components/DialogActions/index.ts
|
|
40556
40666
|
var DialogActions_default2 = DialogActions3;
|
|
40557
40667
|
|
|
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
40668
|
// src/components/DatePicker/DatePicker.tsx
|
|
40577
40669
|
var StyledPopper = styled_default2(Popper, {
|
|
40578
40670
|
name: "DatePicker",
|
|
@@ -40646,7 +40738,7 @@ var TextMaskAdapter = React178.forwardRef(
|
|
|
40646
40738
|
);
|
|
40647
40739
|
var DatePicker = forwardRef84(
|
|
40648
40740
|
(props, ref) => {
|
|
40649
|
-
const { onChange, disabled, label } = props;
|
|
40741
|
+
const { onChange, disabled, label, error, helperText, minDate, maxDate, disableFuture, disablePast } = props;
|
|
40650
40742
|
const [value, setValue] = useState27(props.value || "");
|
|
40651
40743
|
const [anchorEl, setAnchorEl] = useState27(null);
|
|
40652
40744
|
const open = Boolean(anchorEl);
|
|
@@ -40704,7 +40796,11 @@ var DatePicker = forwardRef84(
|
|
|
40704
40796
|
onChange: ([date]) => {
|
|
40705
40797
|
setValue(formatValueString(date));
|
|
40706
40798
|
setAnchorEl(null);
|
|
40707
|
-
}
|
|
40799
|
+
},
|
|
40800
|
+
minDate,
|
|
40801
|
+
maxDate,
|
|
40802
|
+
disableFuture,
|
|
40803
|
+
disablePast
|
|
40708
40804
|
}
|
|
40709
40805
|
),
|
|
40710
40806
|
/* @__PURE__ */ jsx2(
|
|
@@ -40733,9 +40829,10 @@ var DatePicker = forwardRef84(
|
|
|
40733
40829
|
) })
|
|
40734
40830
|
] });
|
|
40735
40831
|
if (label) {
|
|
40736
|
-
return /* @__PURE__ */ jsxs2(FormControl_default2, { size: "sm", children: [
|
|
40832
|
+
return /* @__PURE__ */ jsxs2(FormControl_default2, { error, size: "sm", children: [
|
|
40737
40833
|
/* @__PURE__ */ jsx2(FormLabel_default2, { children: label }),
|
|
40738
|
-
picker
|
|
40834
|
+
picker,
|
|
40835
|
+
helperText && /* @__PURE__ */ jsx2(FormHelperText_default2, { children: helperText })
|
|
40739
40836
|
] });
|
|
40740
40837
|
}
|
|
40741
40838
|
return picker;
|
|
@@ -40832,7 +40929,7 @@ var TextMaskAdapter3 = React179.forwardRef(
|
|
|
40832
40929
|
);
|
|
40833
40930
|
var DateRangePicker = forwardRef85(
|
|
40834
40931
|
(props, ref) => {
|
|
40835
|
-
const { onChange, disabled, label } = props;
|
|
40932
|
+
const { onChange, disabled, label, error, helperText, minDate, maxDate, disableFuture, disablePast } = props;
|
|
40836
40933
|
const [value, setValue] = useState28(props.value || "");
|
|
40837
40934
|
const [anchorEl, setAnchorEl] = useState28(null);
|
|
40838
40935
|
const open = Boolean(anchorEl);
|
|
@@ -40901,7 +40998,11 @@ var DateRangePicker = forwardRef85(
|
|
|
40901
40998
|
{
|
|
40902
40999
|
rangeSelection: true,
|
|
40903
41000
|
defaultValue: calendarValue,
|
|
40904
|
-
onChange: handleCalendarChange
|
|
41001
|
+
onChange: handleCalendarChange,
|
|
41002
|
+
minDate,
|
|
41003
|
+
maxDate,
|
|
41004
|
+
disableFuture,
|
|
41005
|
+
disablePast
|
|
40905
41006
|
}
|
|
40906
41007
|
),
|
|
40907
41008
|
/* @__PURE__ */ jsx2(
|
|
@@ -40930,9 +41031,10 @@ var DateRangePicker = forwardRef85(
|
|
|
40930
41031
|
) })
|
|
40931
41032
|
] });
|
|
40932
41033
|
if (label) {
|
|
40933
|
-
return /* @__PURE__ */ jsxs2(FormControl_default2, { size: "sm", children: [
|
|
41034
|
+
return /* @__PURE__ */ jsxs2(FormControl_default2, { error, size: "sm", children: [
|
|
40934
41035
|
/* @__PURE__ */ jsx2(FormLabel_default2, { children: label }),
|
|
40935
|
-
picker
|
|
41036
|
+
picker,
|
|
41037
|
+
helperText && /* @__PURE__ */ jsx2(FormHelperText_default2, { children: helperText })
|
|
40936
41038
|
] });
|
|
40937
41039
|
}
|
|
40938
41040
|
return picker;
|
|
@@ -40941,8 +41043,8 @@ var DateRangePicker = forwardRef85(
|
|
|
40941
41043
|
DateRangePicker.displayName = "DateRangePicker";
|
|
40942
41044
|
|
|
40943
41045
|
// src/components/DialogContent/DialogContent.tsx
|
|
40944
|
-
import { motion as
|
|
40945
|
-
var MotionDialogContent =
|
|
41046
|
+
import { motion as motion15 } from "framer-motion";
|
|
41047
|
+
var MotionDialogContent = motion15(DialogContent_default);
|
|
40946
41048
|
var DialogContent3 = MotionDialogContent;
|
|
40947
41049
|
DialogContent3.displayName = "DialogContent";
|
|
40948
41050
|
|
|
@@ -40950,8 +41052,8 @@ DialogContent3.displayName = "DialogContent";
|
|
|
40950
41052
|
var DialogContent_default2 = DialogContent3;
|
|
40951
41053
|
|
|
40952
41054
|
// src/components/DialogTitle/DialogTitle.tsx
|
|
40953
|
-
import { motion as
|
|
40954
|
-
var MotionDialogTitle =
|
|
41055
|
+
import { motion as motion16 } from "framer-motion";
|
|
41056
|
+
var MotionDialogTitle = motion16(DialogTitle_default);
|
|
40955
41057
|
var DialogTitle3 = MotionDialogTitle;
|
|
40956
41058
|
DialogTitle3.displayName = "DialogTitle";
|
|
40957
41059
|
|
|
@@ -40959,17 +41061,17 @@ DialogTitle3.displayName = "DialogTitle";
|
|
|
40959
41061
|
var DialogTitle_default2 = DialogTitle3;
|
|
40960
41062
|
|
|
40961
41063
|
// src/components/Modal/Modal.tsx
|
|
40962
|
-
import { motion as
|
|
40963
|
-
var MotionModal =
|
|
41064
|
+
import { motion as motion17 } from "framer-motion";
|
|
41065
|
+
var MotionModal = motion17(Modal_default);
|
|
40964
41066
|
var Modal3 = MotionModal;
|
|
40965
41067
|
Modal3.displayName = "Modal";
|
|
40966
|
-
var MotionModalDialog =
|
|
41068
|
+
var MotionModalDialog = motion17(ModalDialog_default);
|
|
40967
41069
|
var ModalDialog3 = MotionModalDialog;
|
|
40968
41070
|
ModalDialog3.displayName = "ModalDialog";
|
|
40969
|
-
var MotionModalClose =
|
|
41071
|
+
var MotionModalClose = motion17(ModalClose_default);
|
|
40970
41072
|
var ModalClose3 = MotionModalClose;
|
|
40971
41073
|
ModalClose3.displayName = "ModalClose";
|
|
40972
|
-
var MotionModalOverflow =
|
|
41074
|
+
var MotionModalOverflow = motion17(ModalOverflow_default);
|
|
40973
41075
|
var ModalOverflow3 = MotionModalOverflow;
|
|
40974
41076
|
ModalOverflow3.displayName = "ModalOverflow";
|
|
40975
41077
|
function ModalFrame(props) {
|
|
@@ -40994,16 +41096,16 @@ function DialogFrame(props) {
|
|
|
40994
41096
|
DialogFrame.displayName = "DialogFrame";
|
|
40995
41097
|
|
|
40996
41098
|
// src/components/Divider/Divider.tsx
|
|
40997
|
-
import { motion as
|
|
40998
|
-
var MotionDivider =
|
|
41099
|
+
import { motion as motion18 } from "framer-motion";
|
|
41100
|
+
var MotionDivider = motion18(Divider_default);
|
|
40999
41101
|
var Divider3 = (props) => {
|
|
41000
41102
|
return /* @__PURE__ */ jsx2(MotionDivider, __spreadValues({}, props));
|
|
41001
41103
|
};
|
|
41002
41104
|
Divider3.displayName = "Divider";
|
|
41003
41105
|
|
|
41004
41106
|
// src/components/InsetDrawer/InsetDrawer.tsx
|
|
41005
|
-
import { motion as
|
|
41006
|
-
var MotionDrawer =
|
|
41107
|
+
import { motion as motion19 } from "framer-motion";
|
|
41108
|
+
var MotionDrawer = motion19(Drawer_default);
|
|
41007
41109
|
var InsetDrawer = (props) => {
|
|
41008
41110
|
var _b;
|
|
41009
41111
|
const _a = props, { children } = _a, innerProps = __objRest(_a, ["children"]);
|
|
@@ -41026,17 +41128,11 @@ var InsetDrawer = (props) => {
|
|
|
41026
41128
|
InsetDrawer.displayName = "InsetDrawer";
|
|
41027
41129
|
|
|
41028
41130
|
// src/components/Dropdown/Dropdown.tsx
|
|
41029
|
-
import { motion as
|
|
41030
|
-
var MotionDropdown =
|
|
41131
|
+
import { motion as motion20 } from "framer-motion";
|
|
41132
|
+
var MotionDropdown = motion20(Dropdown);
|
|
41031
41133
|
var Dropdown2 = MotionDropdown;
|
|
41032
41134
|
Dropdown2.displayName = "Dropdown";
|
|
41033
41135
|
|
|
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
41136
|
// src/components/Grid/Grid.tsx
|
|
41041
41137
|
import { motion as motion21 } from "framer-motion";
|
|
41042
41138
|
var MotionGrid = motion21(Grid_default);
|
|
@@ -41061,6 +41157,199 @@ var MenuItem3 = (props) => {
|
|
|
41061
41157
|
};
|
|
41062
41158
|
MenuItem3.displayName = "MenuItem";
|
|
41063
41159
|
|
|
41160
|
+
// src/components/MonthRangePicker/MonthRangePicker.tsx
|
|
41161
|
+
import React180, { forwardRef as forwardRef86, useCallback as useCallback30, useMemo as useMemo37, useState as useState29 } from "react";
|
|
41162
|
+
var StyledPopper3 = styled_default2(Popper, {
|
|
41163
|
+
name: "MonthRangePicker",
|
|
41164
|
+
slot: "popper"
|
|
41165
|
+
})(({ theme }) => ({
|
|
41166
|
+
zIndex: theme.zIndex.popup
|
|
41167
|
+
}));
|
|
41168
|
+
var CalendarSheet3 = styled_default2(Sheet_default2, {
|
|
41169
|
+
name: "MonthRangePicker",
|
|
41170
|
+
slot: "sheet",
|
|
41171
|
+
overridesResolver: (props, styles2) => styles2.root
|
|
41172
|
+
})(({ theme }) => ({
|
|
41173
|
+
zIndex: theme.zIndex.popup,
|
|
41174
|
+
width: "264px",
|
|
41175
|
+
boxShadow: theme.shadow.md,
|
|
41176
|
+
borderRadius: theme.radius.md
|
|
41177
|
+
}));
|
|
41178
|
+
var formatValueString3 = ([date1, date2]) => {
|
|
41179
|
+
const getStr = (date) => {
|
|
41180
|
+
let month = `${date.getMonth() + 1}`;
|
|
41181
|
+
const year = date.getFullYear();
|
|
41182
|
+
if (Number(month) < 10)
|
|
41183
|
+
month = "0" + month;
|
|
41184
|
+
return [year, month].join("/");
|
|
41185
|
+
};
|
|
41186
|
+
return [getStr(date1), date2 ? getStr(date2) : ""].join(" - ");
|
|
41187
|
+
};
|
|
41188
|
+
var parseDate2 = (str) => {
|
|
41189
|
+
const date1 = str.split(" - ")[0] || "";
|
|
41190
|
+
const date2 = str.split(" - ")[1] || "";
|
|
41191
|
+
const yearMonthDay1 = date1.split("/");
|
|
41192
|
+
const yearMonthDay2 = date2.split("/");
|
|
41193
|
+
return [
|
|
41194
|
+
new Date(
|
|
41195
|
+
Number(yearMonthDay1[0]),
|
|
41196
|
+
Number(yearMonthDay1[1]) - 1
|
|
41197
|
+
),
|
|
41198
|
+
new Date(
|
|
41199
|
+
Number(yearMonthDay2[0]),
|
|
41200
|
+
Number(yearMonthDay2[1]) - 1
|
|
41201
|
+
)
|
|
41202
|
+
];
|
|
41203
|
+
};
|
|
41204
|
+
var TextMaskAdapter5 = React180.forwardRef(
|
|
41205
|
+
function TextMaskAdapter6(props, ref) {
|
|
41206
|
+
const _a = props, { onChange } = _a, other = __objRest(_a, ["onChange"]);
|
|
41207
|
+
return /* @__PURE__ */ jsx2(
|
|
41208
|
+
IMaskInput,
|
|
41209
|
+
__spreadProps(__spreadValues({}, other), {
|
|
41210
|
+
inputRef: ref,
|
|
41211
|
+
onAccept: (value) => onChange({ target: { name: props.name, value } }),
|
|
41212
|
+
mask: Date,
|
|
41213
|
+
pattern: "Y/`m - Y/`m",
|
|
41214
|
+
blocks: {
|
|
41215
|
+
m: {
|
|
41216
|
+
mask: IMask.MaskedRange,
|
|
41217
|
+
from: 1,
|
|
41218
|
+
to: 12,
|
|
41219
|
+
maxLength: 2
|
|
41220
|
+
},
|
|
41221
|
+
Y: {
|
|
41222
|
+
mask: IMask.MaskedRange,
|
|
41223
|
+
from: 1900,
|
|
41224
|
+
to: 9999
|
|
41225
|
+
}
|
|
41226
|
+
},
|
|
41227
|
+
format: formatValueString3,
|
|
41228
|
+
parse: parseDate2,
|
|
41229
|
+
autofix: "pad",
|
|
41230
|
+
overwrite: true,
|
|
41231
|
+
placeholderChar: " "
|
|
41232
|
+
})
|
|
41233
|
+
);
|
|
41234
|
+
}
|
|
41235
|
+
);
|
|
41236
|
+
var MonthRangePicker = forwardRef86(
|
|
41237
|
+
(props, ref) => {
|
|
41238
|
+
const { onChange, disabled, label, error, helperText, minDate, maxDate, disableFuture, disablePast } = props;
|
|
41239
|
+
const [value, setValue] = useState29(props.value || "");
|
|
41240
|
+
const [anchorEl, setAnchorEl] = useState29(null);
|
|
41241
|
+
const open = Boolean(anchorEl);
|
|
41242
|
+
const calendarValue = useMemo37(
|
|
41243
|
+
() => value ? parseDate2(value) : void 0,
|
|
41244
|
+
[value]
|
|
41245
|
+
);
|
|
41246
|
+
const handleChange = useCallback30(
|
|
41247
|
+
(event) => {
|
|
41248
|
+
setValue(event.target.value);
|
|
41249
|
+
onChange == null ? void 0 : onChange(event);
|
|
41250
|
+
},
|
|
41251
|
+
[onChange]
|
|
41252
|
+
);
|
|
41253
|
+
const handleCalendarToggle = useCallback30(
|
|
41254
|
+
(event) => {
|
|
41255
|
+
setAnchorEl(anchorEl ? null : event.currentTarget);
|
|
41256
|
+
},
|
|
41257
|
+
[anchorEl, setAnchorEl]
|
|
41258
|
+
);
|
|
41259
|
+
const handleCalendarChange = useCallback30(
|
|
41260
|
+
([date1, date2]) => {
|
|
41261
|
+
if (!date1 || !date2)
|
|
41262
|
+
return;
|
|
41263
|
+
setValue(formatValueString3([date1, date2]));
|
|
41264
|
+
setAnchorEl(null);
|
|
41265
|
+
},
|
|
41266
|
+
[setValue, setAnchorEl]
|
|
41267
|
+
);
|
|
41268
|
+
const picker = /* @__PURE__ */ jsxs2(Fragment16, { children: [
|
|
41269
|
+
/* @__PURE__ */ jsx2(
|
|
41270
|
+
Input_default2,
|
|
41271
|
+
{
|
|
41272
|
+
ref,
|
|
41273
|
+
size: "sm",
|
|
41274
|
+
value,
|
|
41275
|
+
onChange: handleChange,
|
|
41276
|
+
disabled,
|
|
41277
|
+
placeholder: "YYYY/MM - YYYY/MM",
|
|
41278
|
+
slotProps: { input: { component: TextMaskAdapter5 } },
|
|
41279
|
+
sx: {
|
|
41280
|
+
// NOTE: placeholder char 를 텍스트로 표시하므로 동일한 너비를 가지는 mono font 를 사용해야 이질감이 없다.
|
|
41281
|
+
fontFamily: "monospace"
|
|
41282
|
+
},
|
|
41283
|
+
endDecorator: /* @__PURE__ */ jsx2(IconButton_default2, { variant: "plain", onClick: handleCalendarToggle, children: /* @__PURE__ */ jsx2(CalendarToday_default, {}) })
|
|
41284
|
+
}
|
|
41285
|
+
),
|
|
41286
|
+
open && /* @__PURE__ */ jsx2(ClickAwayListener, { onClickAway: () => setAnchorEl(null), children: /* @__PURE__ */ jsx2(
|
|
41287
|
+
StyledPopper3,
|
|
41288
|
+
{
|
|
41289
|
+
id: "date-range-picker-popper",
|
|
41290
|
+
open: true,
|
|
41291
|
+
anchorEl,
|
|
41292
|
+
placement: "bottom-end",
|
|
41293
|
+
modifiers: [
|
|
41294
|
+
{
|
|
41295
|
+
name: "offset",
|
|
41296
|
+
options: {
|
|
41297
|
+
offset: [4, 4]
|
|
41298
|
+
}
|
|
41299
|
+
}
|
|
41300
|
+
],
|
|
41301
|
+
children: /* @__PURE__ */ jsx2(FocusTrap, { open: true, children: /* @__PURE__ */ jsxs2(CalendarSheet3, { tabIndex: -1, role: "presentation", children: [
|
|
41302
|
+
/* @__PURE__ */ jsx2(
|
|
41303
|
+
Calendar_default,
|
|
41304
|
+
{
|
|
41305
|
+
view: "month",
|
|
41306
|
+
views: ["month"],
|
|
41307
|
+
rangeSelection: true,
|
|
41308
|
+
defaultValue: calendarValue,
|
|
41309
|
+
onChange: handleCalendarChange,
|
|
41310
|
+
minDate,
|
|
41311
|
+
maxDate,
|
|
41312
|
+
disableFuture,
|
|
41313
|
+
disablePast
|
|
41314
|
+
}
|
|
41315
|
+
),
|
|
41316
|
+
/* @__PURE__ */ jsx2(
|
|
41317
|
+
DialogActions_default2,
|
|
41318
|
+
{
|
|
41319
|
+
sx: {
|
|
41320
|
+
p: 1
|
|
41321
|
+
},
|
|
41322
|
+
children: /* @__PURE__ */ jsx2(
|
|
41323
|
+
Button_default2,
|
|
41324
|
+
{
|
|
41325
|
+
size: "sm",
|
|
41326
|
+
variant: "plain",
|
|
41327
|
+
color: "neutral",
|
|
41328
|
+
onClick: () => {
|
|
41329
|
+
setValue("");
|
|
41330
|
+
setAnchorEl(null);
|
|
41331
|
+
},
|
|
41332
|
+
children: "Clear"
|
|
41333
|
+
}
|
|
41334
|
+
)
|
|
41335
|
+
}
|
|
41336
|
+
)
|
|
41337
|
+
] }) })
|
|
41338
|
+
}
|
|
41339
|
+
) })
|
|
41340
|
+
] });
|
|
41341
|
+
if (label) {
|
|
41342
|
+
return /* @__PURE__ */ jsxs2(FormControl_default2, { error, size: "sm", children: [
|
|
41343
|
+
/* @__PURE__ */ jsx2(FormLabel_default2, { children: label }),
|
|
41344
|
+
picker,
|
|
41345
|
+
helperText && /* @__PURE__ */ jsx2(FormHelperText_default2, { children: helperText })
|
|
41346
|
+
] });
|
|
41347
|
+
}
|
|
41348
|
+
return picker;
|
|
41349
|
+
}
|
|
41350
|
+
);
|
|
41351
|
+
MonthRangePicker.displayName = "MonthRangePicker";
|
|
41352
|
+
|
|
41064
41353
|
// src/components/Radio/Radio.tsx
|
|
41065
41354
|
import { motion as motion23 } from "framer-motion";
|
|
41066
41355
|
var MotionRadio = motion23(Radio_default);
|
|
@@ -41085,10 +41374,15 @@ Option3.displayName = "Option";
|
|
|
41085
41374
|
function Select3(props) {
|
|
41086
41375
|
const _a = props, { label, helperText, error } = _a, innerProps = __objRest(_a, ["label", "helperText", "error"]);
|
|
41087
41376
|
if (label) {
|
|
41088
|
-
return /* @__PURE__ */ jsxs2(
|
|
41089
|
-
/* @__PURE__ */ jsx2(
|
|
41090
|
-
/* @__PURE__ */ jsx2(
|
|
41091
|
-
|
|
41377
|
+
return /* @__PURE__ */ jsxs2(FormControl_default2, { error, children: [
|
|
41378
|
+
/* @__PURE__ */ jsx2(FormLabel_default2, { children: label }),
|
|
41379
|
+
/* @__PURE__ */ jsx2(
|
|
41380
|
+
Select_default,
|
|
41381
|
+
__spreadProps(__spreadValues({}, innerProps), {
|
|
41382
|
+
color: error ? "danger" : innerProps.color
|
|
41383
|
+
})
|
|
41384
|
+
),
|
|
41385
|
+
helperText && /* @__PURE__ */ jsx2(FormHelperText_default2, { children: helperText })
|
|
41092
41386
|
] });
|
|
41093
41387
|
}
|
|
41094
41388
|
return /* @__PURE__ */ jsx2(Select_default, __spreadValues({}, innerProps));
|
|
@@ -41617,25 +41911,35 @@ var datePickerPropertyControls = {
|
|
|
41617
41911
|
title: "Label",
|
|
41618
41912
|
type: ControlType10.String,
|
|
41619
41913
|
defaultValue: ""
|
|
41914
|
+
},
|
|
41915
|
+
error: {
|
|
41916
|
+
title: "Error",
|
|
41917
|
+
type: ControlType10.Boolean,
|
|
41918
|
+
defaultValue: false
|
|
41919
|
+
},
|
|
41920
|
+
helperText: {
|
|
41921
|
+
title: "Helper Text",
|
|
41922
|
+
type: ControlType10.String,
|
|
41923
|
+
defaultValue: ""
|
|
41924
|
+
},
|
|
41925
|
+
minDate: {
|
|
41926
|
+
title: "Minimum Date",
|
|
41927
|
+
type: ControlType10.Date
|
|
41928
|
+
},
|
|
41929
|
+
maxDate: {
|
|
41930
|
+
title: "Maximum Date",
|
|
41931
|
+
type: ControlType10.Date
|
|
41932
|
+
},
|
|
41933
|
+
disableFuture: {
|
|
41934
|
+
title: "Disable Future",
|
|
41935
|
+
type: ControlType10.Boolean,
|
|
41936
|
+
defaultValue: false
|
|
41937
|
+
},
|
|
41938
|
+
disablePast: {
|
|
41939
|
+
title: "Disable Past",
|
|
41940
|
+
type: ControlType10.Boolean,
|
|
41941
|
+
defaultValue: false
|
|
41620
41942
|
}
|
|
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
41943
|
};
|
|
41640
41944
|
|
|
41641
41945
|
// src/components/DateRangePicker/DateRangePicker.framer.ts
|
|
@@ -41659,25 +41963,35 @@ var dateRangePickerPropertyControls = {
|
|
|
41659
41963
|
title: "Label",
|
|
41660
41964
|
type: ControlType11.String,
|
|
41661
41965
|
defaultValue: ""
|
|
41966
|
+
},
|
|
41967
|
+
error: {
|
|
41968
|
+
title: "Error",
|
|
41969
|
+
type: ControlType11.Boolean,
|
|
41970
|
+
defaultValue: false
|
|
41971
|
+
},
|
|
41972
|
+
helperText: {
|
|
41973
|
+
title: "Helper Text",
|
|
41974
|
+
type: ControlType11.String,
|
|
41975
|
+
defaultValue: ""
|
|
41976
|
+
},
|
|
41977
|
+
minDate: {
|
|
41978
|
+
title: "Minimum Date",
|
|
41979
|
+
type: ControlType11.Date
|
|
41980
|
+
},
|
|
41981
|
+
maxDate: {
|
|
41982
|
+
title: "Maximum Date",
|
|
41983
|
+
type: ControlType11.Date
|
|
41984
|
+
},
|
|
41985
|
+
disableFuture: {
|
|
41986
|
+
title: "Disable Future",
|
|
41987
|
+
type: ControlType11.Boolean,
|
|
41988
|
+
defaultValue: false
|
|
41989
|
+
},
|
|
41990
|
+
disablePast: {
|
|
41991
|
+
title: "Disable Past",
|
|
41992
|
+
type: ControlType11.Boolean,
|
|
41993
|
+
defaultValue: false
|
|
41662
41994
|
}
|
|
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
41995
|
};
|
|
41682
41996
|
|
|
41683
41997
|
// src/components/DialogFrame/DialogFrame.framer.ts
|
|
@@ -41827,6 +42141,11 @@ var menuButtonPropertyControls = {
|
|
|
41827
42141
|
type: ControlType16.Boolean,
|
|
41828
42142
|
defaultValue: false
|
|
41829
42143
|
},
|
|
42144
|
+
size: {
|
|
42145
|
+
type: ControlType16.Enum,
|
|
42146
|
+
options: ["sm", "md", "lg"],
|
|
42147
|
+
defaultValue: "sm"
|
|
42148
|
+
},
|
|
41830
42149
|
items: {
|
|
41831
42150
|
title: "Items",
|
|
41832
42151
|
type: ControlType16.Array,
|
|
@@ -41861,34 +42180,86 @@ var modalFramePropertyControls = {
|
|
|
41861
42180
|
}
|
|
41862
42181
|
};
|
|
41863
42182
|
|
|
41864
|
-
// src/components/
|
|
42183
|
+
// src/components/MonthRangePicker/MonthRangePicker.framer.ts
|
|
41865
42184
|
import { ControlType as ControlType18 } from "framer";
|
|
42185
|
+
var monthRangePickerPropertyControls = {
|
|
42186
|
+
onChange: {
|
|
42187
|
+
title: "onChange",
|
|
42188
|
+
type: ControlType18.EventHandler
|
|
42189
|
+
},
|
|
42190
|
+
disabled: {
|
|
42191
|
+
title: "Disabled",
|
|
42192
|
+
type: ControlType18.Boolean,
|
|
42193
|
+
defaultValue: false
|
|
42194
|
+
},
|
|
42195
|
+
value: {
|
|
42196
|
+
title: "Value",
|
|
42197
|
+
type: ControlType18.String,
|
|
42198
|
+
defaultValue: "2024/04 - 2024/07"
|
|
42199
|
+
},
|
|
42200
|
+
label: {
|
|
42201
|
+
title: "Label",
|
|
42202
|
+
type: ControlType18.String,
|
|
42203
|
+
defaultValue: ""
|
|
42204
|
+
},
|
|
42205
|
+
error: {
|
|
42206
|
+
title: "Error",
|
|
42207
|
+
type: ControlType18.Boolean,
|
|
42208
|
+
defaultValue: false
|
|
42209
|
+
},
|
|
42210
|
+
helperText: {
|
|
42211
|
+
title: "Helper Text",
|
|
42212
|
+
type: ControlType18.String,
|
|
42213
|
+
defaultValue: ""
|
|
42214
|
+
},
|
|
42215
|
+
minDate: {
|
|
42216
|
+
title: "Minimum Date",
|
|
42217
|
+
type: ControlType18.Date
|
|
42218
|
+
},
|
|
42219
|
+
maxDate: {
|
|
42220
|
+
title: "Maximum Date",
|
|
42221
|
+
type: ControlType18.Date
|
|
42222
|
+
},
|
|
42223
|
+
disableFuture: {
|
|
42224
|
+
title: "Disable Future",
|
|
42225
|
+
type: ControlType18.Boolean,
|
|
42226
|
+
defaultValue: false
|
|
42227
|
+
},
|
|
42228
|
+
disablePast: {
|
|
42229
|
+
title: "Disable Past",
|
|
42230
|
+
type: ControlType18.Boolean,
|
|
42231
|
+
defaultValue: false
|
|
42232
|
+
}
|
|
42233
|
+
};
|
|
42234
|
+
|
|
42235
|
+
// src/components/RadioList/RadioList.framer.ts
|
|
42236
|
+
import { ControlType as ControlType19 } from "framer";
|
|
41866
42237
|
var radioListPropertyControls = {
|
|
41867
42238
|
orientation: {
|
|
41868
42239
|
title: "Orientation",
|
|
41869
|
-
type:
|
|
42240
|
+
type: ControlType19.Enum,
|
|
41870
42241
|
options: ["vertical", "horizontal"],
|
|
41871
42242
|
defaultValue: "vertical"
|
|
41872
42243
|
},
|
|
41873
42244
|
defaultValue: {
|
|
41874
42245
|
title: "Checked Value",
|
|
41875
|
-
type:
|
|
42246
|
+
type: ControlType19.String,
|
|
41876
42247
|
defaultValue: "value1"
|
|
41877
42248
|
},
|
|
41878
42249
|
items: {
|
|
41879
42250
|
title: "Items",
|
|
41880
|
-
type:
|
|
42251
|
+
type: ControlType19.Array,
|
|
41881
42252
|
control: {
|
|
41882
|
-
type:
|
|
42253
|
+
type: ControlType19.Object,
|
|
41883
42254
|
controls: {
|
|
41884
42255
|
displayName: {
|
|
41885
42256
|
title: "Display Name",
|
|
41886
|
-
type:
|
|
42257
|
+
type: ControlType19.String
|
|
41887
42258
|
},
|
|
41888
|
-
value: { title: "Value", type:
|
|
42259
|
+
value: { title: "Value", type: ControlType19.String },
|
|
41889
42260
|
color: {
|
|
41890
42261
|
title: "Color",
|
|
41891
|
-
type:
|
|
42262
|
+
type: ControlType19.Enum,
|
|
41892
42263
|
options: ["primary", "neutral", "danger", "success", "warning"],
|
|
41893
42264
|
optionTitles: ["Primary", "Neutral", "Danger", "Success", "Warning"]
|
|
41894
42265
|
}
|
|
@@ -41906,73 +42277,73 @@ var radioListPropertyControls = {
|
|
|
41906
42277
|
};
|
|
41907
42278
|
|
|
41908
42279
|
// src/components/Select/Select.framer.ts
|
|
41909
|
-
import { ControlType as
|
|
42280
|
+
import { ControlType as ControlType20 } from "framer";
|
|
41910
42281
|
var selectPropertyControls = {
|
|
41911
42282
|
label: {
|
|
41912
42283
|
title: "Label",
|
|
41913
|
-
type:
|
|
42284
|
+
type: ControlType20.String
|
|
41914
42285
|
},
|
|
41915
42286
|
helperText: {
|
|
41916
42287
|
title: "Helper Text",
|
|
41917
|
-
type:
|
|
42288
|
+
type: ControlType20.String
|
|
41918
42289
|
},
|
|
41919
42290
|
error: {
|
|
41920
42291
|
title: "Error",
|
|
41921
|
-
type:
|
|
42292
|
+
type: ControlType20.Boolean,
|
|
41922
42293
|
defaultValue: false
|
|
41923
42294
|
},
|
|
41924
42295
|
onChange: {
|
|
41925
42296
|
title: "onChange",
|
|
41926
|
-
type:
|
|
42297
|
+
type: ControlType20.EventHandler
|
|
41927
42298
|
},
|
|
41928
42299
|
defaultListboxOpen: {
|
|
41929
42300
|
title: "Opened",
|
|
41930
|
-
type:
|
|
42301
|
+
type: ControlType20.Boolean,
|
|
41931
42302
|
defaultValue: false
|
|
41932
42303
|
},
|
|
41933
42304
|
defaultValue: {
|
|
41934
42305
|
title: "Selected Option",
|
|
41935
|
-
type:
|
|
42306
|
+
type: ControlType20.String
|
|
41936
42307
|
},
|
|
41937
42308
|
disabled: {
|
|
41938
42309
|
title: "Disabled",
|
|
41939
|
-
type:
|
|
42310
|
+
type: ControlType20.Boolean,
|
|
41940
42311
|
defaultValue: false
|
|
41941
42312
|
},
|
|
41942
42313
|
placeholder: {
|
|
41943
42314
|
title: "Placeholder",
|
|
41944
|
-
type:
|
|
42315
|
+
type: ControlType20.String,
|
|
41945
42316
|
defaultValue: "Choose one..."
|
|
41946
42317
|
},
|
|
41947
42318
|
color: {
|
|
41948
42319
|
title: "Color",
|
|
41949
|
-
type:
|
|
42320
|
+
type: ControlType20.Enum,
|
|
41950
42321
|
options: ["primary", "neutral", "danger", "success", "warning"],
|
|
41951
42322
|
optionTitles: ["Primary", "Neutral", "Danger", "Success", "Warning"]
|
|
41952
42323
|
},
|
|
41953
42324
|
size: {
|
|
41954
42325
|
title: "Size",
|
|
41955
|
-
type:
|
|
42326
|
+
type: ControlType20.Enum,
|
|
41956
42327
|
options: ["sm", "md", "lg"],
|
|
41957
42328
|
defaultValue: "md"
|
|
41958
42329
|
},
|
|
41959
42330
|
variant: {
|
|
41960
42331
|
title: "Variant",
|
|
41961
|
-
type:
|
|
42332
|
+
type: ControlType20.Enum,
|
|
41962
42333
|
options: ["outlined", "plain", "solid", "soft"],
|
|
41963
42334
|
defaultValue: void 0
|
|
41964
42335
|
},
|
|
41965
42336
|
options: {
|
|
41966
42337
|
title: "Options",
|
|
41967
|
-
type:
|
|
42338
|
+
type: ControlType20.Array,
|
|
41968
42339
|
control: {
|
|
41969
|
-
type:
|
|
42340
|
+
type: ControlType20.Object,
|
|
41970
42341
|
controls: {
|
|
41971
42342
|
text: {
|
|
41972
42343
|
title: "Text",
|
|
41973
|
-
type:
|
|
42344
|
+
type: ControlType20.String
|
|
41974
42345
|
},
|
|
41975
|
-
value: { title: "Value", type:
|
|
42346
|
+
value: { title: "Value", type: ControlType20.String }
|
|
41976
42347
|
}
|
|
41977
42348
|
},
|
|
41978
42349
|
defaultValue: [
|
|
@@ -41983,126 +42354,126 @@ var selectPropertyControls = {
|
|
|
41983
42354
|
};
|
|
41984
42355
|
|
|
41985
42356
|
// src/components/Sheet/Sheet.framer.ts
|
|
41986
|
-
import { ControlType as
|
|
42357
|
+
import { ControlType as ControlType21 } from "framer";
|
|
41987
42358
|
var sheetPropertyControls = {
|
|
41988
42359
|
color: {
|
|
41989
42360
|
title: "Color",
|
|
41990
|
-
type:
|
|
42361
|
+
type: ControlType21.Enum,
|
|
41991
42362
|
options: ["primary", "neutral", "danger", "success", "warning"],
|
|
41992
42363
|
optionTitles: ["Primary", "Neutral", "Danger", "Success", "Warning"]
|
|
41993
42364
|
},
|
|
41994
42365
|
variant: {
|
|
41995
42366
|
title: "Variant",
|
|
41996
|
-
type:
|
|
42367
|
+
type: ControlType21.Enum,
|
|
41997
42368
|
options: ["solid", "outlined", "soft", "plain"],
|
|
41998
42369
|
defaultValue: "outlined"
|
|
41999
42370
|
}
|
|
42000
42371
|
};
|
|
42001
42372
|
|
|
42002
42373
|
// src/components/Skeleton/Skeleton.framer.ts
|
|
42003
|
-
import { ControlType as
|
|
42374
|
+
import { ControlType as ControlType22 } from "framer";
|
|
42004
42375
|
var skeletonPropertyControls = {
|
|
42005
42376
|
animation: {
|
|
42006
42377
|
title: "Animation type",
|
|
42007
|
-
type:
|
|
42378
|
+
type: ControlType22.Enum,
|
|
42008
42379
|
options: ["wave", "pulse"]
|
|
42009
42380
|
},
|
|
42010
42381
|
variant: {
|
|
42011
42382
|
title: "Variant",
|
|
42012
|
-
type:
|
|
42383
|
+
type: ControlType22.Enum,
|
|
42013
42384
|
options: ["circular", "rectangular"],
|
|
42014
42385
|
defaultValue: "rectangular"
|
|
42015
42386
|
},
|
|
42016
42387
|
target: {
|
|
42017
42388
|
title: "Target",
|
|
42018
|
-
type:
|
|
42389
|
+
type: ControlType22.ComponentInstance
|
|
42019
42390
|
},
|
|
42020
42391
|
loading: {
|
|
42021
42392
|
title: "Loading",
|
|
42022
|
-
type:
|
|
42393
|
+
type: ControlType22.Boolean,
|
|
42023
42394
|
defaultValue: false
|
|
42024
42395
|
}
|
|
42025
42396
|
};
|
|
42026
42397
|
|
|
42027
42398
|
// src/components/Switch/Switch.framer.ts
|
|
42028
|
-
import { ControlType as
|
|
42399
|
+
import { ControlType as ControlType23 } from "framer";
|
|
42029
42400
|
var switchPropertyControls = {
|
|
42030
42401
|
onChange: {
|
|
42031
42402
|
title: "onChange",
|
|
42032
|
-
type:
|
|
42403
|
+
type: ControlType23.EventHandler
|
|
42033
42404
|
},
|
|
42034
42405
|
disabled: {
|
|
42035
42406
|
title: "Disabled",
|
|
42036
|
-
type:
|
|
42407
|
+
type: ControlType23.Boolean,
|
|
42037
42408
|
defaultValue: false
|
|
42038
42409
|
},
|
|
42039
42410
|
color: {
|
|
42040
42411
|
title: "Color",
|
|
42041
|
-
type:
|
|
42412
|
+
type: ControlType23.Enum,
|
|
42042
42413
|
options: ["primary", "neutral", "danger", "success", "warning"],
|
|
42043
42414
|
optionTitles: ["Primary", "Neutral", "Danger", "Success", "Warning"]
|
|
42044
42415
|
},
|
|
42045
42416
|
variant: {
|
|
42046
42417
|
title: "Variant",
|
|
42047
|
-
type:
|
|
42418
|
+
type: ControlType23.Enum,
|
|
42048
42419
|
options: ["solid", "outlined", "soft", "plain"],
|
|
42049
42420
|
defaultValue: void 0
|
|
42050
42421
|
},
|
|
42051
42422
|
size: {
|
|
42052
42423
|
title: "Size",
|
|
42053
|
-
type:
|
|
42424
|
+
type: ControlType23.Enum,
|
|
42054
42425
|
options: ["sm", "md", "lg"],
|
|
42055
42426
|
defaultValue: "md"
|
|
42056
42427
|
}
|
|
42057
42428
|
};
|
|
42058
42429
|
|
|
42059
42430
|
// src/components/Tabs/Tabs.framer.ts
|
|
42060
|
-
import { ControlType as
|
|
42431
|
+
import { ControlType as ControlType24 } from "framer";
|
|
42061
42432
|
var tabsPropertyControls = {
|
|
42062
42433
|
color: {
|
|
42063
42434
|
title: "Color",
|
|
42064
|
-
type:
|
|
42435
|
+
type: ControlType24.Enum,
|
|
42065
42436
|
options: ["primary", "neutral", "danger", "success", "warning"],
|
|
42066
42437
|
optionTitles: ["Primary", "Neutral", "Danger", "Success", "Warning"]
|
|
42067
42438
|
},
|
|
42068
42439
|
size: {
|
|
42069
42440
|
title: "Size",
|
|
42070
|
-
type:
|
|
42441
|
+
type: ControlType24.Enum,
|
|
42071
42442
|
options: ["sm", "md", "lg"],
|
|
42072
42443
|
defaultValue: "md"
|
|
42073
42444
|
},
|
|
42074
42445
|
variant: {
|
|
42075
42446
|
title: "Variant",
|
|
42076
|
-
type:
|
|
42447
|
+
type: ControlType24.Enum,
|
|
42077
42448
|
options: ["outlined", "plain", "solid", "soft"],
|
|
42078
42449
|
defaultValue: "plain"
|
|
42079
42450
|
},
|
|
42080
42451
|
orientation: {
|
|
42081
|
-
type:
|
|
42452
|
+
type: ControlType24.Enum,
|
|
42082
42453
|
options: ["horizontal", "vertical"]
|
|
42083
42454
|
},
|
|
42084
42455
|
disableUnderline: {
|
|
42085
|
-
type:
|
|
42456
|
+
type: ControlType24.Boolean,
|
|
42086
42457
|
defaultValue: false
|
|
42087
42458
|
},
|
|
42088
42459
|
disableIndicator: {
|
|
42089
|
-
type:
|
|
42460
|
+
type: ControlType24.Boolean,
|
|
42090
42461
|
defaultValue: false
|
|
42091
42462
|
},
|
|
42092
42463
|
indicatorInset: {
|
|
42093
|
-
type:
|
|
42464
|
+
type: ControlType24.Boolean,
|
|
42094
42465
|
defaultValue: false
|
|
42095
42466
|
},
|
|
42096
42467
|
tabs: {
|
|
42097
|
-
type:
|
|
42468
|
+
type: ControlType24.Array,
|
|
42098
42469
|
control: {
|
|
42099
|
-
type:
|
|
42470
|
+
type: ControlType24.Object,
|
|
42100
42471
|
controls: {
|
|
42101
42472
|
title: {
|
|
42102
|
-
type:
|
|
42473
|
+
type: ControlType24.String
|
|
42103
42474
|
},
|
|
42104
42475
|
disabled: {
|
|
42105
|
-
type:
|
|
42476
|
+
type: ControlType24.Boolean,
|
|
42106
42477
|
defaultValue: false
|
|
42107
42478
|
}
|
|
42108
42479
|
}
|
|
@@ -42110,65 +42481,65 @@ var tabsPropertyControls = {
|
|
|
42110
42481
|
},
|
|
42111
42482
|
contents: {
|
|
42112
42483
|
title: "Contents",
|
|
42113
|
-
type:
|
|
42484
|
+
type: ControlType24.Array,
|
|
42114
42485
|
control: {
|
|
42115
|
-
type:
|
|
42486
|
+
type: ControlType24.ComponentInstance
|
|
42116
42487
|
}
|
|
42117
42488
|
}
|
|
42118
42489
|
};
|
|
42119
42490
|
|
|
42120
42491
|
// src/components/Textarea/Textarea.framer.ts
|
|
42121
|
-
import { ControlType as
|
|
42492
|
+
import { ControlType as ControlType25 } from "framer";
|
|
42122
42493
|
var textareaPropertyControls = {
|
|
42123
42494
|
onChange: {
|
|
42124
|
-
type:
|
|
42495
|
+
type: ControlType25.EventHandler
|
|
42125
42496
|
},
|
|
42126
42497
|
disabled: {
|
|
42127
42498
|
title: "Disabled",
|
|
42128
|
-
type:
|
|
42499
|
+
type: ControlType25.Boolean,
|
|
42129
42500
|
defaultValue: false
|
|
42130
42501
|
},
|
|
42131
42502
|
color: {
|
|
42132
42503
|
title: "Color",
|
|
42133
|
-
type:
|
|
42504
|
+
type: ControlType25.Enum,
|
|
42134
42505
|
options: ["primary", "neutral", "danger", "success", "warning"],
|
|
42135
42506
|
optionTitles: ["Primary", "Neutral", "Danger", "Success", "Warning"],
|
|
42136
42507
|
defaultValue: "neutral"
|
|
42137
42508
|
},
|
|
42138
42509
|
variant: {
|
|
42139
42510
|
title: "Variant",
|
|
42140
|
-
type:
|
|
42511
|
+
type: ControlType25.Enum,
|
|
42141
42512
|
options: ["solid", "outlined", "soft", "plain"],
|
|
42142
42513
|
defaultValue: "outlined"
|
|
42143
42514
|
},
|
|
42144
42515
|
defaultValue: {
|
|
42145
42516
|
title: "Value",
|
|
42146
|
-
type:
|
|
42517
|
+
type: ControlType25.String,
|
|
42147
42518
|
defaultValue: ""
|
|
42148
42519
|
},
|
|
42149
42520
|
placeholder: {
|
|
42150
42521
|
title: "Placeholder",
|
|
42151
|
-
type:
|
|
42522
|
+
type: ControlType25.String,
|
|
42152
42523
|
defaultValue: "Type in here..."
|
|
42153
42524
|
},
|
|
42154
42525
|
endDecorator: {
|
|
42155
42526
|
title: "End Decorator",
|
|
42156
|
-
type:
|
|
42527
|
+
type: ControlType25.ComponentInstance
|
|
42157
42528
|
},
|
|
42158
42529
|
startDecorator: {
|
|
42159
42530
|
title: "Start Decorator",
|
|
42160
|
-
type:
|
|
42531
|
+
type: ControlType25.ComponentInstance
|
|
42161
42532
|
},
|
|
42162
42533
|
size: {
|
|
42163
42534
|
title: "Size",
|
|
42164
|
-
type:
|
|
42535
|
+
type: ControlType25.Enum,
|
|
42165
42536
|
options: ["sm", "md", "lg"],
|
|
42166
42537
|
defaultValue: "md"
|
|
42167
42538
|
}
|
|
42168
42539
|
};
|
|
42169
42540
|
|
|
42170
42541
|
// src/components/Typography/Typography.framer.ts
|
|
42171
|
-
import { ControlType as
|
|
42542
|
+
import { ControlType as ControlType26 } from "framer";
|
|
42172
42543
|
var typographyPropertyControls = {
|
|
42173
42544
|
// color: {
|
|
42174
42545
|
// title: "Color",
|
|
@@ -42178,7 +42549,7 @@ var typographyPropertyControls = {
|
|
|
42178
42549
|
// },
|
|
42179
42550
|
level: {
|
|
42180
42551
|
title: "Level",
|
|
42181
|
-
type:
|
|
42552
|
+
type: ControlType26.Enum,
|
|
42182
42553
|
options: [
|
|
42183
42554
|
"h1",
|
|
42184
42555
|
"h2",
|
|
@@ -42197,23 +42568,31 @@ var typographyPropertyControls = {
|
|
|
42197
42568
|
},
|
|
42198
42569
|
textColor: {
|
|
42199
42570
|
title: "Text Color",
|
|
42200
|
-
type:
|
|
42201
|
-
options: [
|
|
42571
|
+
type: ControlType26.Enum,
|
|
42572
|
+
options: [
|
|
42573
|
+
"text.primary",
|
|
42574
|
+
"text.secondary",
|
|
42575
|
+
"text.icon",
|
|
42576
|
+
"text.tertiary",
|
|
42577
|
+
"inherit",
|
|
42578
|
+
"common.white",
|
|
42579
|
+
"common.black"
|
|
42580
|
+
],
|
|
42202
42581
|
defaultValue: "inherit"
|
|
42203
42582
|
},
|
|
42204
42583
|
text: {
|
|
42205
42584
|
title: "Text",
|
|
42206
|
-
type:
|
|
42585
|
+
type: ControlType26.String,
|
|
42207
42586
|
defaultValue: "Typography",
|
|
42208
42587
|
displayTextArea: true
|
|
42209
42588
|
},
|
|
42210
42589
|
endDecorator: {
|
|
42211
42590
|
title: "End Decorator",
|
|
42212
|
-
type:
|
|
42591
|
+
type: ControlType26.ComponentInstance
|
|
42213
42592
|
},
|
|
42214
42593
|
startDecorator: {
|
|
42215
42594
|
title: "Start Decorator",
|
|
42216
|
-
type:
|
|
42595
|
+
type: ControlType26.ComponentInstance
|
|
42217
42596
|
}
|
|
42218
42597
|
};
|
|
42219
42598
|
export {
|
|
@@ -42275,6 +42654,7 @@ export {
|
|
|
42275
42654
|
ModalDialog3 as ModalDialog,
|
|
42276
42655
|
ModalFrame,
|
|
42277
42656
|
ModalOverflow3 as ModalOverflow,
|
|
42657
|
+
MonthRangePicker,
|
|
42278
42658
|
Option3 as Option,
|
|
42279
42659
|
Radio3 as Radio,
|
|
42280
42660
|
RadioGroup3 as RadioGroup,
|
|
@@ -42366,6 +42746,7 @@ export {
|
|
|
42366
42746
|
modalDialogClasses_default as modalDialogClasses,
|
|
42367
42747
|
modalFramePropertyControls,
|
|
42368
42748
|
modalOverflowClasses_default as modalOverflowClasses,
|
|
42749
|
+
monthRangePickerPropertyControls,
|
|
42369
42750
|
optionClasses_default as optionClasses,
|
|
42370
42751
|
radioClasses_default as radioClasses,
|
|
42371
42752
|
radioGroupClasses_default as radioGroupClasses,
|