@ceed/ads 0.0.54 → 0.0.56

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/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: "long" });
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 _a, _b;
35891
- (_a = ownerState.onViewChange) == null ? void 0 : _a.call(ownerState, "day");
35892
- (_b = ownerState.onMonthChange) == null ? void 0 : _b.call(ownerState, thisMonth);
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("td", { children: /* @__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
  {
@@ -40560,15 +40641,15 @@ var FormHelperText_default2 = FormHelperText3;
40560
40641
  // src/components/Input/Input.tsx
40561
40642
  var MotionInput = motion13(Input_default);
40562
40643
  var Input3 = (props) => {
40563
- const _a = props, { label, helperText, error, style: style4 } = _a, innerProps = __objRest(_a, ["label", "helperText", "error", "style"]);
40644
+ const _a = props, { label, helperText, error, style: style4, size, color: color2 } = _a, innerProps = __objRest(_a, ["label", "helperText", "error", "style", "size", "color"]);
40564
40645
  if (label) {
40565
- return /* @__PURE__ */ jsxs2(FormControl_default2, { error, children: [
40646
+ return /* @__PURE__ */ jsxs2(FormControl_default2, { color: color2, size, error, children: [
40566
40647
  /* @__PURE__ */ jsx2(FormLabel_default2, { children: label }),
40567
- /* @__PURE__ */ jsx2(MotionInput, __spreadProps(__spreadValues({}, innerProps), { color: error ? "danger" : innerProps.color })),
40648
+ /* @__PURE__ */ jsx2(MotionInput, __spreadValues({}, innerProps)),
40568
40649
  helperText && /* @__PURE__ */ jsx2(FormHelperText_default2, { children: helperText })
40569
40650
  ] });
40570
40651
  }
40571
- return /* @__PURE__ */ jsx2(MotionInput, __spreadValues({}, innerProps));
40652
+ return /* @__PURE__ */ jsx2(MotionInput, __spreadValues({ color: color2, size }, innerProps));
40572
40653
  };
40573
40654
  Input3.displayName = "Input";
40574
40655
 
@@ -41076,6 +41157,199 @@ var MenuItem3 = (props) => {
41076
41157
  };
41077
41158
  MenuItem3.displayName = "MenuItem";
41078
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
+
41079
41353
  // src/components/Radio/Radio.tsx
41080
41354
  import { motion as motion23 } from "framer-motion";
41081
41355
  var MotionRadio = motion23(Radio_default);
@@ -41098,20 +41372,18 @@ var MotionOption = motion24(Option_default);
41098
41372
  var Option3 = MotionOption;
41099
41373
  Option3.displayName = "Option";
41100
41374
  function Select3(props) {
41101
- const _a = props, { label, helperText, error } = _a, innerProps = __objRest(_a, ["label", "helperText", "error"]);
41375
+ const _a = props, { label, helperText, error, size, color: color2 } = _a, innerProps = __objRest(_a, ["label", "helperText", "error", "size", "color"]);
41102
41376
  if (label) {
41103
- return /* @__PURE__ */ jsxs2(FormControl_default2, { error, children: [
41377
+ return /* @__PURE__ */ jsxs2(FormControl_default2, { size, color: color2, error, children: [
41104
41378
  /* @__PURE__ */ jsx2(FormLabel_default2, { children: label }),
41105
41379
  /* @__PURE__ */ jsx2(
41106
41380
  Select_default,
41107
- __spreadProps(__spreadValues({}, innerProps), {
41108
- color: error ? "danger" : innerProps.color
41109
- })
41381
+ __spreadValues({}, innerProps)
41110
41382
  ),
41111
41383
  helperText && /* @__PURE__ */ jsx2(FormHelperText_default2, { children: helperText })
41112
41384
  ] });
41113
41385
  }
41114
- return /* @__PURE__ */ jsx2(Select_default, __spreadValues({}, innerProps));
41386
+ return /* @__PURE__ */ jsx2(Select_default, __spreadValues({ size, color: color2 }, innerProps));
41115
41387
  }
41116
41388
  Select3.displayName = "Select";
41117
41389
 
@@ -41867,6 +42139,11 @@ var menuButtonPropertyControls = {
41867
42139
  type: ControlType16.Boolean,
41868
42140
  defaultValue: false
41869
42141
  },
42142
+ size: {
42143
+ type: ControlType16.Enum,
42144
+ options: ["sm", "md", "lg"],
42145
+ defaultValue: "sm"
42146
+ },
41870
42147
  items: {
41871
42148
  title: "Items",
41872
42149
  type: ControlType16.Array,
@@ -41901,34 +42178,86 @@ var modalFramePropertyControls = {
41901
42178
  }
41902
42179
  };
41903
42180
 
41904
- // src/components/RadioList/RadioList.framer.ts
42181
+ // src/components/MonthRangePicker/MonthRangePicker.framer.ts
41905
42182
  import { ControlType as ControlType18 } from "framer";
42183
+ var monthRangePickerPropertyControls = {
42184
+ onChange: {
42185
+ title: "onChange",
42186
+ type: ControlType18.EventHandler
42187
+ },
42188
+ disabled: {
42189
+ title: "Disabled",
42190
+ type: ControlType18.Boolean,
42191
+ defaultValue: false
42192
+ },
42193
+ value: {
42194
+ title: "Value",
42195
+ type: ControlType18.String,
42196
+ defaultValue: "2024/04 - 2024/07"
42197
+ },
42198
+ label: {
42199
+ title: "Label",
42200
+ type: ControlType18.String,
42201
+ defaultValue: ""
42202
+ },
42203
+ error: {
42204
+ title: "Error",
42205
+ type: ControlType18.Boolean,
42206
+ defaultValue: false
42207
+ },
42208
+ helperText: {
42209
+ title: "Helper Text",
42210
+ type: ControlType18.String,
42211
+ defaultValue: ""
42212
+ },
42213
+ minDate: {
42214
+ title: "Minimum Date",
42215
+ type: ControlType18.Date
42216
+ },
42217
+ maxDate: {
42218
+ title: "Maximum Date",
42219
+ type: ControlType18.Date
42220
+ },
42221
+ disableFuture: {
42222
+ title: "Disable Future",
42223
+ type: ControlType18.Boolean,
42224
+ defaultValue: false
42225
+ },
42226
+ disablePast: {
42227
+ title: "Disable Past",
42228
+ type: ControlType18.Boolean,
42229
+ defaultValue: false
42230
+ }
42231
+ };
42232
+
42233
+ // src/components/RadioList/RadioList.framer.ts
42234
+ import { ControlType as ControlType19 } from "framer";
41906
42235
  var radioListPropertyControls = {
41907
42236
  orientation: {
41908
42237
  title: "Orientation",
41909
- type: ControlType18.Enum,
42238
+ type: ControlType19.Enum,
41910
42239
  options: ["vertical", "horizontal"],
41911
42240
  defaultValue: "vertical"
41912
42241
  },
41913
42242
  defaultValue: {
41914
42243
  title: "Checked Value",
41915
- type: ControlType18.String,
42244
+ type: ControlType19.String,
41916
42245
  defaultValue: "value1"
41917
42246
  },
41918
42247
  items: {
41919
42248
  title: "Items",
41920
- type: ControlType18.Array,
42249
+ type: ControlType19.Array,
41921
42250
  control: {
41922
- type: ControlType18.Object,
42251
+ type: ControlType19.Object,
41923
42252
  controls: {
41924
42253
  displayName: {
41925
42254
  title: "Display Name",
41926
- type: ControlType18.String
42255
+ type: ControlType19.String
41927
42256
  },
41928
- value: { title: "Value", type: ControlType18.String },
42257
+ value: { title: "Value", type: ControlType19.String },
41929
42258
  color: {
41930
42259
  title: "Color",
41931
- type: ControlType18.Enum,
42260
+ type: ControlType19.Enum,
41932
42261
  options: ["primary", "neutral", "danger", "success", "warning"],
41933
42262
  optionTitles: ["Primary", "Neutral", "Danger", "Success", "Warning"]
41934
42263
  }
@@ -41946,73 +42275,73 @@ var radioListPropertyControls = {
41946
42275
  };
41947
42276
 
41948
42277
  // src/components/Select/Select.framer.ts
41949
- import { ControlType as ControlType19 } from "framer";
42278
+ import { ControlType as ControlType20 } from "framer";
41950
42279
  var selectPropertyControls = {
41951
42280
  label: {
41952
42281
  title: "Label",
41953
- type: ControlType19.String
42282
+ type: ControlType20.String
41954
42283
  },
41955
42284
  helperText: {
41956
42285
  title: "Helper Text",
41957
- type: ControlType19.String
42286
+ type: ControlType20.String
41958
42287
  },
41959
42288
  error: {
41960
42289
  title: "Error",
41961
- type: ControlType19.Boolean,
42290
+ type: ControlType20.Boolean,
41962
42291
  defaultValue: false
41963
42292
  },
41964
42293
  onChange: {
41965
42294
  title: "onChange",
41966
- type: ControlType19.EventHandler
42295
+ type: ControlType20.EventHandler
41967
42296
  },
41968
42297
  defaultListboxOpen: {
41969
42298
  title: "Opened",
41970
- type: ControlType19.Boolean,
42299
+ type: ControlType20.Boolean,
41971
42300
  defaultValue: false
41972
42301
  },
41973
42302
  defaultValue: {
41974
42303
  title: "Selected Option",
41975
- type: ControlType19.String
42304
+ type: ControlType20.String
41976
42305
  },
41977
42306
  disabled: {
41978
42307
  title: "Disabled",
41979
- type: ControlType19.Boolean,
42308
+ type: ControlType20.Boolean,
41980
42309
  defaultValue: false
41981
42310
  },
41982
42311
  placeholder: {
41983
42312
  title: "Placeholder",
41984
- type: ControlType19.String,
42313
+ type: ControlType20.String,
41985
42314
  defaultValue: "Choose one..."
41986
42315
  },
41987
42316
  color: {
41988
42317
  title: "Color",
41989
- type: ControlType19.Enum,
42318
+ type: ControlType20.Enum,
41990
42319
  options: ["primary", "neutral", "danger", "success", "warning"],
41991
42320
  optionTitles: ["Primary", "Neutral", "Danger", "Success", "Warning"]
41992
42321
  },
41993
42322
  size: {
41994
42323
  title: "Size",
41995
- type: ControlType19.Enum,
42324
+ type: ControlType20.Enum,
41996
42325
  options: ["sm", "md", "lg"],
41997
42326
  defaultValue: "md"
41998
42327
  },
41999
42328
  variant: {
42000
42329
  title: "Variant",
42001
- type: ControlType19.Enum,
42330
+ type: ControlType20.Enum,
42002
42331
  options: ["outlined", "plain", "solid", "soft"],
42003
42332
  defaultValue: void 0
42004
42333
  },
42005
42334
  options: {
42006
42335
  title: "Options",
42007
- type: ControlType19.Array,
42336
+ type: ControlType20.Array,
42008
42337
  control: {
42009
- type: ControlType19.Object,
42338
+ type: ControlType20.Object,
42010
42339
  controls: {
42011
42340
  text: {
42012
42341
  title: "Text",
42013
- type: ControlType19.String
42342
+ type: ControlType20.String
42014
42343
  },
42015
- value: { title: "Value", type: ControlType19.String }
42344
+ value: { title: "Value", type: ControlType20.String }
42016
42345
  }
42017
42346
  },
42018
42347
  defaultValue: [
@@ -42023,126 +42352,126 @@ var selectPropertyControls = {
42023
42352
  };
42024
42353
 
42025
42354
  // src/components/Sheet/Sheet.framer.ts
42026
- import { ControlType as ControlType20 } from "framer";
42355
+ import { ControlType as ControlType21 } from "framer";
42027
42356
  var sheetPropertyControls = {
42028
42357
  color: {
42029
42358
  title: "Color",
42030
- type: ControlType20.Enum,
42359
+ type: ControlType21.Enum,
42031
42360
  options: ["primary", "neutral", "danger", "success", "warning"],
42032
42361
  optionTitles: ["Primary", "Neutral", "Danger", "Success", "Warning"]
42033
42362
  },
42034
42363
  variant: {
42035
42364
  title: "Variant",
42036
- type: ControlType20.Enum,
42365
+ type: ControlType21.Enum,
42037
42366
  options: ["solid", "outlined", "soft", "plain"],
42038
42367
  defaultValue: "outlined"
42039
42368
  }
42040
42369
  };
42041
42370
 
42042
42371
  // src/components/Skeleton/Skeleton.framer.ts
42043
- import { ControlType as ControlType21 } from "framer";
42372
+ import { ControlType as ControlType22 } from "framer";
42044
42373
  var skeletonPropertyControls = {
42045
42374
  animation: {
42046
42375
  title: "Animation type",
42047
- type: ControlType21.Enum,
42376
+ type: ControlType22.Enum,
42048
42377
  options: ["wave", "pulse"]
42049
42378
  },
42050
42379
  variant: {
42051
42380
  title: "Variant",
42052
- type: ControlType21.Enum,
42381
+ type: ControlType22.Enum,
42053
42382
  options: ["circular", "rectangular"],
42054
42383
  defaultValue: "rectangular"
42055
42384
  },
42056
42385
  target: {
42057
42386
  title: "Target",
42058
- type: ControlType21.ComponentInstance
42387
+ type: ControlType22.ComponentInstance
42059
42388
  },
42060
42389
  loading: {
42061
42390
  title: "Loading",
42062
- type: ControlType21.Boolean,
42391
+ type: ControlType22.Boolean,
42063
42392
  defaultValue: false
42064
42393
  }
42065
42394
  };
42066
42395
 
42067
42396
  // src/components/Switch/Switch.framer.ts
42068
- import { ControlType as ControlType22 } from "framer";
42397
+ import { ControlType as ControlType23 } from "framer";
42069
42398
  var switchPropertyControls = {
42070
42399
  onChange: {
42071
42400
  title: "onChange",
42072
- type: ControlType22.EventHandler
42401
+ type: ControlType23.EventHandler
42073
42402
  },
42074
42403
  disabled: {
42075
42404
  title: "Disabled",
42076
- type: ControlType22.Boolean,
42405
+ type: ControlType23.Boolean,
42077
42406
  defaultValue: false
42078
42407
  },
42079
42408
  color: {
42080
42409
  title: "Color",
42081
- type: ControlType22.Enum,
42410
+ type: ControlType23.Enum,
42082
42411
  options: ["primary", "neutral", "danger", "success", "warning"],
42083
42412
  optionTitles: ["Primary", "Neutral", "Danger", "Success", "Warning"]
42084
42413
  },
42085
42414
  variant: {
42086
42415
  title: "Variant",
42087
- type: ControlType22.Enum,
42416
+ type: ControlType23.Enum,
42088
42417
  options: ["solid", "outlined", "soft", "plain"],
42089
42418
  defaultValue: void 0
42090
42419
  },
42091
42420
  size: {
42092
42421
  title: "Size",
42093
- type: ControlType22.Enum,
42422
+ type: ControlType23.Enum,
42094
42423
  options: ["sm", "md", "lg"],
42095
42424
  defaultValue: "md"
42096
42425
  }
42097
42426
  };
42098
42427
 
42099
42428
  // src/components/Tabs/Tabs.framer.ts
42100
- import { ControlType as ControlType23 } from "framer";
42429
+ import { ControlType as ControlType24 } from "framer";
42101
42430
  var tabsPropertyControls = {
42102
42431
  color: {
42103
42432
  title: "Color",
42104
- type: ControlType23.Enum,
42433
+ type: ControlType24.Enum,
42105
42434
  options: ["primary", "neutral", "danger", "success", "warning"],
42106
42435
  optionTitles: ["Primary", "Neutral", "Danger", "Success", "Warning"]
42107
42436
  },
42108
42437
  size: {
42109
42438
  title: "Size",
42110
- type: ControlType23.Enum,
42439
+ type: ControlType24.Enum,
42111
42440
  options: ["sm", "md", "lg"],
42112
42441
  defaultValue: "md"
42113
42442
  },
42114
42443
  variant: {
42115
42444
  title: "Variant",
42116
- type: ControlType23.Enum,
42445
+ type: ControlType24.Enum,
42117
42446
  options: ["outlined", "plain", "solid", "soft"],
42118
42447
  defaultValue: "plain"
42119
42448
  },
42120
42449
  orientation: {
42121
- type: ControlType23.Enum,
42450
+ type: ControlType24.Enum,
42122
42451
  options: ["horizontal", "vertical"]
42123
42452
  },
42124
42453
  disableUnderline: {
42125
- type: ControlType23.Boolean,
42454
+ type: ControlType24.Boolean,
42126
42455
  defaultValue: false
42127
42456
  },
42128
42457
  disableIndicator: {
42129
- type: ControlType23.Boolean,
42458
+ type: ControlType24.Boolean,
42130
42459
  defaultValue: false
42131
42460
  },
42132
42461
  indicatorInset: {
42133
- type: ControlType23.Boolean,
42462
+ type: ControlType24.Boolean,
42134
42463
  defaultValue: false
42135
42464
  },
42136
42465
  tabs: {
42137
- type: ControlType23.Array,
42466
+ type: ControlType24.Array,
42138
42467
  control: {
42139
- type: ControlType23.Object,
42468
+ type: ControlType24.Object,
42140
42469
  controls: {
42141
42470
  title: {
42142
- type: ControlType23.String
42471
+ type: ControlType24.String
42143
42472
  },
42144
42473
  disabled: {
42145
- type: ControlType23.Boolean,
42474
+ type: ControlType24.Boolean,
42146
42475
  defaultValue: false
42147
42476
  }
42148
42477
  }
@@ -42150,65 +42479,65 @@ var tabsPropertyControls = {
42150
42479
  },
42151
42480
  contents: {
42152
42481
  title: "Contents",
42153
- type: ControlType23.Array,
42482
+ type: ControlType24.Array,
42154
42483
  control: {
42155
- type: ControlType23.ComponentInstance
42484
+ type: ControlType24.ComponentInstance
42156
42485
  }
42157
42486
  }
42158
42487
  };
42159
42488
 
42160
42489
  // src/components/Textarea/Textarea.framer.ts
42161
- import { ControlType as ControlType24 } from "framer";
42490
+ import { ControlType as ControlType25 } from "framer";
42162
42491
  var textareaPropertyControls = {
42163
42492
  onChange: {
42164
- type: ControlType24.EventHandler
42493
+ type: ControlType25.EventHandler
42165
42494
  },
42166
42495
  disabled: {
42167
42496
  title: "Disabled",
42168
- type: ControlType24.Boolean,
42497
+ type: ControlType25.Boolean,
42169
42498
  defaultValue: false
42170
42499
  },
42171
42500
  color: {
42172
42501
  title: "Color",
42173
- type: ControlType24.Enum,
42502
+ type: ControlType25.Enum,
42174
42503
  options: ["primary", "neutral", "danger", "success", "warning"],
42175
42504
  optionTitles: ["Primary", "Neutral", "Danger", "Success", "Warning"],
42176
42505
  defaultValue: "neutral"
42177
42506
  },
42178
42507
  variant: {
42179
42508
  title: "Variant",
42180
- type: ControlType24.Enum,
42509
+ type: ControlType25.Enum,
42181
42510
  options: ["solid", "outlined", "soft", "plain"],
42182
42511
  defaultValue: "outlined"
42183
42512
  },
42184
42513
  defaultValue: {
42185
42514
  title: "Value",
42186
- type: ControlType24.String,
42515
+ type: ControlType25.String,
42187
42516
  defaultValue: ""
42188
42517
  },
42189
42518
  placeholder: {
42190
42519
  title: "Placeholder",
42191
- type: ControlType24.String,
42520
+ type: ControlType25.String,
42192
42521
  defaultValue: "Type in here..."
42193
42522
  },
42194
42523
  endDecorator: {
42195
42524
  title: "End Decorator",
42196
- type: ControlType24.ComponentInstance
42525
+ type: ControlType25.ComponentInstance
42197
42526
  },
42198
42527
  startDecorator: {
42199
42528
  title: "Start Decorator",
42200
- type: ControlType24.ComponentInstance
42529
+ type: ControlType25.ComponentInstance
42201
42530
  },
42202
42531
  size: {
42203
42532
  title: "Size",
42204
- type: ControlType24.Enum,
42533
+ type: ControlType25.Enum,
42205
42534
  options: ["sm", "md", "lg"],
42206
42535
  defaultValue: "md"
42207
42536
  }
42208
42537
  };
42209
42538
 
42210
42539
  // src/components/Typography/Typography.framer.ts
42211
- import { ControlType as ControlType25 } from "framer";
42540
+ import { ControlType as ControlType26 } from "framer";
42212
42541
  var typographyPropertyControls = {
42213
42542
  // color: {
42214
42543
  // title: "Color",
@@ -42218,7 +42547,7 @@ var typographyPropertyControls = {
42218
42547
  // },
42219
42548
  level: {
42220
42549
  title: "Level",
42221
- type: ControlType25.Enum,
42550
+ type: ControlType26.Enum,
42222
42551
  options: [
42223
42552
  "h1",
42224
42553
  "h2",
@@ -42237,23 +42566,31 @@ var typographyPropertyControls = {
42237
42566
  },
42238
42567
  textColor: {
42239
42568
  title: "Text Color",
42240
- type: ControlType25.Enum,
42241
- options: ["text.tertiary", "inherit"],
42569
+ type: ControlType26.Enum,
42570
+ options: [
42571
+ "text.primary",
42572
+ "text.secondary",
42573
+ "text.icon",
42574
+ "text.tertiary",
42575
+ "inherit",
42576
+ "common.white",
42577
+ "common.black"
42578
+ ],
42242
42579
  defaultValue: "inherit"
42243
42580
  },
42244
42581
  text: {
42245
42582
  title: "Text",
42246
- type: ControlType25.String,
42583
+ type: ControlType26.String,
42247
42584
  defaultValue: "Typography",
42248
42585
  displayTextArea: true
42249
42586
  },
42250
42587
  endDecorator: {
42251
42588
  title: "End Decorator",
42252
- type: ControlType25.ComponentInstance
42589
+ type: ControlType26.ComponentInstance
42253
42590
  },
42254
42591
  startDecorator: {
42255
42592
  title: "Start Decorator",
42256
- type: ControlType25.ComponentInstance
42593
+ type: ControlType26.ComponentInstance
42257
42594
  }
42258
42595
  };
42259
42596
  export {
@@ -42315,6 +42652,7 @@ export {
42315
42652
  ModalDialog3 as ModalDialog,
42316
42653
  ModalFrame,
42317
42654
  ModalOverflow3 as ModalOverflow,
42655
+ MonthRangePicker,
42318
42656
  Option3 as Option,
42319
42657
  Radio3 as Radio,
42320
42658
  RadioGroup3 as RadioGroup,
@@ -42406,6 +42744,7 @@ export {
42406
42744
  modalDialogClasses_default as modalDialogClasses,
42407
42745
  modalFramePropertyControls,
42408
42746
  modalOverflowClasses_default as modalOverflowClasses,
42747
+ monthRangePickerPropertyControls,
42409
42748
  optionClasses_default as optionClasses,
42410
42749
  radioClasses_default as radioClasses,
42411
42750
  radioGroupClasses_default as radioGroupClasses,