@ceed/ads 0.0.54 → 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/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
  {
@@ -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);
@@ -41867,6 +42141,11 @@ var menuButtonPropertyControls = {
41867
42141
  type: ControlType16.Boolean,
41868
42142
  defaultValue: false
41869
42143
  },
42144
+ size: {
42145
+ type: ControlType16.Enum,
42146
+ options: ["sm", "md", "lg"],
42147
+ defaultValue: "sm"
42148
+ },
41870
42149
  items: {
41871
42150
  title: "Items",
41872
42151
  type: ControlType16.Array,
@@ -41901,34 +42180,86 @@ var modalFramePropertyControls = {
41901
42180
  }
41902
42181
  };
41903
42182
 
41904
- // src/components/RadioList/RadioList.framer.ts
42183
+ // src/components/MonthRangePicker/MonthRangePicker.framer.ts
41905
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";
41906
42237
  var radioListPropertyControls = {
41907
42238
  orientation: {
41908
42239
  title: "Orientation",
41909
- type: ControlType18.Enum,
42240
+ type: ControlType19.Enum,
41910
42241
  options: ["vertical", "horizontal"],
41911
42242
  defaultValue: "vertical"
41912
42243
  },
41913
42244
  defaultValue: {
41914
42245
  title: "Checked Value",
41915
- type: ControlType18.String,
42246
+ type: ControlType19.String,
41916
42247
  defaultValue: "value1"
41917
42248
  },
41918
42249
  items: {
41919
42250
  title: "Items",
41920
- type: ControlType18.Array,
42251
+ type: ControlType19.Array,
41921
42252
  control: {
41922
- type: ControlType18.Object,
42253
+ type: ControlType19.Object,
41923
42254
  controls: {
41924
42255
  displayName: {
41925
42256
  title: "Display Name",
41926
- type: ControlType18.String
42257
+ type: ControlType19.String
41927
42258
  },
41928
- value: { title: "Value", type: ControlType18.String },
42259
+ value: { title: "Value", type: ControlType19.String },
41929
42260
  color: {
41930
42261
  title: "Color",
41931
- type: ControlType18.Enum,
42262
+ type: ControlType19.Enum,
41932
42263
  options: ["primary", "neutral", "danger", "success", "warning"],
41933
42264
  optionTitles: ["Primary", "Neutral", "Danger", "Success", "Warning"]
41934
42265
  }
@@ -41946,73 +42277,73 @@ var radioListPropertyControls = {
41946
42277
  };
41947
42278
 
41948
42279
  // src/components/Select/Select.framer.ts
41949
- import { ControlType as ControlType19 } from "framer";
42280
+ import { ControlType as ControlType20 } from "framer";
41950
42281
  var selectPropertyControls = {
41951
42282
  label: {
41952
42283
  title: "Label",
41953
- type: ControlType19.String
42284
+ type: ControlType20.String
41954
42285
  },
41955
42286
  helperText: {
41956
42287
  title: "Helper Text",
41957
- type: ControlType19.String
42288
+ type: ControlType20.String
41958
42289
  },
41959
42290
  error: {
41960
42291
  title: "Error",
41961
- type: ControlType19.Boolean,
42292
+ type: ControlType20.Boolean,
41962
42293
  defaultValue: false
41963
42294
  },
41964
42295
  onChange: {
41965
42296
  title: "onChange",
41966
- type: ControlType19.EventHandler
42297
+ type: ControlType20.EventHandler
41967
42298
  },
41968
42299
  defaultListboxOpen: {
41969
42300
  title: "Opened",
41970
- type: ControlType19.Boolean,
42301
+ type: ControlType20.Boolean,
41971
42302
  defaultValue: false
41972
42303
  },
41973
42304
  defaultValue: {
41974
42305
  title: "Selected Option",
41975
- type: ControlType19.String
42306
+ type: ControlType20.String
41976
42307
  },
41977
42308
  disabled: {
41978
42309
  title: "Disabled",
41979
- type: ControlType19.Boolean,
42310
+ type: ControlType20.Boolean,
41980
42311
  defaultValue: false
41981
42312
  },
41982
42313
  placeholder: {
41983
42314
  title: "Placeholder",
41984
- type: ControlType19.String,
42315
+ type: ControlType20.String,
41985
42316
  defaultValue: "Choose one..."
41986
42317
  },
41987
42318
  color: {
41988
42319
  title: "Color",
41989
- type: ControlType19.Enum,
42320
+ type: ControlType20.Enum,
41990
42321
  options: ["primary", "neutral", "danger", "success", "warning"],
41991
42322
  optionTitles: ["Primary", "Neutral", "Danger", "Success", "Warning"]
41992
42323
  },
41993
42324
  size: {
41994
42325
  title: "Size",
41995
- type: ControlType19.Enum,
42326
+ type: ControlType20.Enum,
41996
42327
  options: ["sm", "md", "lg"],
41997
42328
  defaultValue: "md"
41998
42329
  },
41999
42330
  variant: {
42000
42331
  title: "Variant",
42001
- type: ControlType19.Enum,
42332
+ type: ControlType20.Enum,
42002
42333
  options: ["outlined", "plain", "solid", "soft"],
42003
42334
  defaultValue: void 0
42004
42335
  },
42005
42336
  options: {
42006
42337
  title: "Options",
42007
- type: ControlType19.Array,
42338
+ type: ControlType20.Array,
42008
42339
  control: {
42009
- type: ControlType19.Object,
42340
+ type: ControlType20.Object,
42010
42341
  controls: {
42011
42342
  text: {
42012
42343
  title: "Text",
42013
- type: ControlType19.String
42344
+ type: ControlType20.String
42014
42345
  },
42015
- value: { title: "Value", type: ControlType19.String }
42346
+ value: { title: "Value", type: ControlType20.String }
42016
42347
  }
42017
42348
  },
42018
42349
  defaultValue: [
@@ -42023,126 +42354,126 @@ var selectPropertyControls = {
42023
42354
  };
42024
42355
 
42025
42356
  // src/components/Sheet/Sheet.framer.ts
42026
- import { ControlType as ControlType20 } from "framer";
42357
+ import { ControlType as ControlType21 } from "framer";
42027
42358
  var sheetPropertyControls = {
42028
42359
  color: {
42029
42360
  title: "Color",
42030
- type: ControlType20.Enum,
42361
+ type: ControlType21.Enum,
42031
42362
  options: ["primary", "neutral", "danger", "success", "warning"],
42032
42363
  optionTitles: ["Primary", "Neutral", "Danger", "Success", "Warning"]
42033
42364
  },
42034
42365
  variant: {
42035
42366
  title: "Variant",
42036
- type: ControlType20.Enum,
42367
+ type: ControlType21.Enum,
42037
42368
  options: ["solid", "outlined", "soft", "plain"],
42038
42369
  defaultValue: "outlined"
42039
42370
  }
42040
42371
  };
42041
42372
 
42042
42373
  // src/components/Skeleton/Skeleton.framer.ts
42043
- import { ControlType as ControlType21 } from "framer";
42374
+ import { ControlType as ControlType22 } from "framer";
42044
42375
  var skeletonPropertyControls = {
42045
42376
  animation: {
42046
42377
  title: "Animation type",
42047
- type: ControlType21.Enum,
42378
+ type: ControlType22.Enum,
42048
42379
  options: ["wave", "pulse"]
42049
42380
  },
42050
42381
  variant: {
42051
42382
  title: "Variant",
42052
- type: ControlType21.Enum,
42383
+ type: ControlType22.Enum,
42053
42384
  options: ["circular", "rectangular"],
42054
42385
  defaultValue: "rectangular"
42055
42386
  },
42056
42387
  target: {
42057
42388
  title: "Target",
42058
- type: ControlType21.ComponentInstance
42389
+ type: ControlType22.ComponentInstance
42059
42390
  },
42060
42391
  loading: {
42061
42392
  title: "Loading",
42062
- type: ControlType21.Boolean,
42393
+ type: ControlType22.Boolean,
42063
42394
  defaultValue: false
42064
42395
  }
42065
42396
  };
42066
42397
 
42067
42398
  // src/components/Switch/Switch.framer.ts
42068
- import { ControlType as ControlType22 } from "framer";
42399
+ import { ControlType as ControlType23 } from "framer";
42069
42400
  var switchPropertyControls = {
42070
42401
  onChange: {
42071
42402
  title: "onChange",
42072
- type: ControlType22.EventHandler
42403
+ type: ControlType23.EventHandler
42073
42404
  },
42074
42405
  disabled: {
42075
42406
  title: "Disabled",
42076
- type: ControlType22.Boolean,
42407
+ type: ControlType23.Boolean,
42077
42408
  defaultValue: false
42078
42409
  },
42079
42410
  color: {
42080
42411
  title: "Color",
42081
- type: ControlType22.Enum,
42412
+ type: ControlType23.Enum,
42082
42413
  options: ["primary", "neutral", "danger", "success", "warning"],
42083
42414
  optionTitles: ["Primary", "Neutral", "Danger", "Success", "Warning"]
42084
42415
  },
42085
42416
  variant: {
42086
42417
  title: "Variant",
42087
- type: ControlType22.Enum,
42418
+ type: ControlType23.Enum,
42088
42419
  options: ["solid", "outlined", "soft", "plain"],
42089
42420
  defaultValue: void 0
42090
42421
  },
42091
42422
  size: {
42092
42423
  title: "Size",
42093
- type: ControlType22.Enum,
42424
+ type: ControlType23.Enum,
42094
42425
  options: ["sm", "md", "lg"],
42095
42426
  defaultValue: "md"
42096
42427
  }
42097
42428
  };
42098
42429
 
42099
42430
  // src/components/Tabs/Tabs.framer.ts
42100
- import { ControlType as ControlType23 } from "framer";
42431
+ import { ControlType as ControlType24 } from "framer";
42101
42432
  var tabsPropertyControls = {
42102
42433
  color: {
42103
42434
  title: "Color",
42104
- type: ControlType23.Enum,
42435
+ type: ControlType24.Enum,
42105
42436
  options: ["primary", "neutral", "danger", "success", "warning"],
42106
42437
  optionTitles: ["Primary", "Neutral", "Danger", "Success", "Warning"]
42107
42438
  },
42108
42439
  size: {
42109
42440
  title: "Size",
42110
- type: ControlType23.Enum,
42441
+ type: ControlType24.Enum,
42111
42442
  options: ["sm", "md", "lg"],
42112
42443
  defaultValue: "md"
42113
42444
  },
42114
42445
  variant: {
42115
42446
  title: "Variant",
42116
- type: ControlType23.Enum,
42447
+ type: ControlType24.Enum,
42117
42448
  options: ["outlined", "plain", "solid", "soft"],
42118
42449
  defaultValue: "plain"
42119
42450
  },
42120
42451
  orientation: {
42121
- type: ControlType23.Enum,
42452
+ type: ControlType24.Enum,
42122
42453
  options: ["horizontal", "vertical"]
42123
42454
  },
42124
42455
  disableUnderline: {
42125
- type: ControlType23.Boolean,
42456
+ type: ControlType24.Boolean,
42126
42457
  defaultValue: false
42127
42458
  },
42128
42459
  disableIndicator: {
42129
- type: ControlType23.Boolean,
42460
+ type: ControlType24.Boolean,
42130
42461
  defaultValue: false
42131
42462
  },
42132
42463
  indicatorInset: {
42133
- type: ControlType23.Boolean,
42464
+ type: ControlType24.Boolean,
42134
42465
  defaultValue: false
42135
42466
  },
42136
42467
  tabs: {
42137
- type: ControlType23.Array,
42468
+ type: ControlType24.Array,
42138
42469
  control: {
42139
- type: ControlType23.Object,
42470
+ type: ControlType24.Object,
42140
42471
  controls: {
42141
42472
  title: {
42142
- type: ControlType23.String
42473
+ type: ControlType24.String
42143
42474
  },
42144
42475
  disabled: {
42145
- type: ControlType23.Boolean,
42476
+ type: ControlType24.Boolean,
42146
42477
  defaultValue: false
42147
42478
  }
42148
42479
  }
@@ -42150,65 +42481,65 @@ var tabsPropertyControls = {
42150
42481
  },
42151
42482
  contents: {
42152
42483
  title: "Contents",
42153
- type: ControlType23.Array,
42484
+ type: ControlType24.Array,
42154
42485
  control: {
42155
- type: ControlType23.ComponentInstance
42486
+ type: ControlType24.ComponentInstance
42156
42487
  }
42157
42488
  }
42158
42489
  };
42159
42490
 
42160
42491
  // src/components/Textarea/Textarea.framer.ts
42161
- import { ControlType as ControlType24 } from "framer";
42492
+ import { ControlType as ControlType25 } from "framer";
42162
42493
  var textareaPropertyControls = {
42163
42494
  onChange: {
42164
- type: ControlType24.EventHandler
42495
+ type: ControlType25.EventHandler
42165
42496
  },
42166
42497
  disabled: {
42167
42498
  title: "Disabled",
42168
- type: ControlType24.Boolean,
42499
+ type: ControlType25.Boolean,
42169
42500
  defaultValue: false
42170
42501
  },
42171
42502
  color: {
42172
42503
  title: "Color",
42173
- type: ControlType24.Enum,
42504
+ type: ControlType25.Enum,
42174
42505
  options: ["primary", "neutral", "danger", "success", "warning"],
42175
42506
  optionTitles: ["Primary", "Neutral", "Danger", "Success", "Warning"],
42176
42507
  defaultValue: "neutral"
42177
42508
  },
42178
42509
  variant: {
42179
42510
  title: "Variant",
42180
- type: ControlType24.Enum,
42511
+ type: ControlType25.Enum,
42181
42512
  options: ["solid", "outlined", "soft", "plain"],
42182
42513
  defaultValue: "outlined"
42183
42514
  },
42184
42515
  defaultValue: {
42185
42516
  title: "Value",
42186
- type: ControlType24.String,
42517
+ type: ControlType25.String,
42187
42518
  defaultValue: ""
42188
42519
  },
42189
42520
  placeholder: {
42190
42521
  title: "Placeholder",
42191
- type: ControlType24.String,
42522
+ type: ControlType25.String,
42192
42523
  defaultValue: "Type in here..."
42193
42524
  },
42194
42525
  endDecorator: {
42195
42526
  title: "End Decorator",
42196
- type: ControlType24.ComponentInstance
42527
+ type: ControlType25.ComponentInstance
42197
42528
  },
42198
42529
  startDecorator: {
42199
42530
  title: "Start Decorator",
42200
- type: ControlType24.ComponentInstance
42531
+ type: ControlType25.ComponentInstance
42201
42532
  },
42202
42533
  size: {
42203
42534
  title: "Size",
42204
- type: ControlType24.Enum,
42535
+ type: ControlType25.Enum,
42205
42536
  options: ["sm", "md", "lg"],
42206
42537
  defaultValue: "md"
42207
42538
  }
42208
42539
  };
42209
42540
 
42210
42541
  // src/components/Typography/Typography.framer.ts
42211
- import { ControlType as ControlType25 } from "framer";
42542
+ import { ControlType as ControlType26 } from "framer";
42212
42543
  var typographyPropertyControls = {
42213
42544
  // color: {
42214
42545
  // title: "Color",
@@ -42218,7 +42549,7 @@ var typographyPropertyControls = {
42218
42549
  // },
42219
42550
  level: {
42220
42551
  title: "Level",
42221
- type: ControlType25.Enum,
42552
+ type: ControlType26.Enum,
42222
42553
  options: [
42223
42554
  "h1",
42224
42555
  "h2",
@@ -42237,23 +42568,31 @@ var typographyPropertyControls = {
42237
42568
  },
42238
42569
  textColor: {
42239
42570
  title: "Text Color",
42240
- type: ControlType25.Enum,
42241
- options: ["text.tertiary", "inherit"],
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
+ ],
42242
42581
  defaultValue: "inherit"
42243
42582
  },
42244
42583
  text: {
42245
42584
  title: "Text",
42246
- type: ControlType25.String,
42585
+ type: ControlType26.String,
42247
42586
  defaultValue: "Typography",
42248
42587
  displayTextArea: true
42249
42588
  },
42250
42589
  endDecorator: {
42251
42590
  title: "End Decorator",
42252
- type: ControlType25.ComponentInstance
42591
+ type: ControlType26.ComponentInstance
42253
42592
  },
42254
42593
  startDecorator: {
42255
42594
  title: "Start Decorator",
42256
- type: ControlType25.ComponentInstance
42595
+ type: ControlType26.ComponentInstance
42257
42596
  }
42258
42597
  };
42259
42598
  export {
@@ -42315,6 +42654,7 @@ export {
42315
42654
  ModalDialog3 as ModalDialog,
42316
42655
  ModalFrame,
42317
42656
  ModalOverflow3 as ModalOverflow,
42657
+ MonthRangePicker,
42318
42658
  Option3 as Option,
42319
42659
  Radio3 as Radio,
42320
42660
  RadioGroup3 as RadioGroup,
@@ -42406,6 +42746,7 @@ export {
42406
42746
  modalDialogClasses_default as modalDialogClasses,
42407
42747
  modalFramePropertyControls,
42408
42748
  modalOverflowClasses_default as modalOverflowClasses,
42749
+ monthRangePickerPropertyControls,
42409
42750
  optionClasses_default as optionClasses,
42410
42751
  radioClasses_default as radioClasses,
42411
42752
  radioGroupClasses_default as radioGroupClasses,