@ceed/ads 0.0.71 → 0.0.73

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.
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  declare const Modal: import("framer-motion").CustomDomComponent<Pick<import("@mui/base").ModalOwnProps, "children" | "container" | "open" | "disablePortal" | "keepMounted" | "disableAutoFocus" | "disableEnforceFocus" | "disableRestoreFocus" | "disableEscapeKeyDown" | "disableScrollLock" | "hideBackdrop"> & {
3
- onClose?: ((event: {}, reason: "escapeKeyDown" | "backdropClick" | "closeClick") => void) | undefined;
3
+ onClose?: ((event: {}, reason: "backdropClick" | "escapeKeyDown" | "closeClick") => void) | undefined;
4
4
  sx?: import("@mui/joy/styles/types").SxProps | undefined;
5
5
  } & import("@mui/joy").ModalSlotsAndSlotProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
6
6
  ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
@@ -2,7 +2,25 @@ import React from "react";
2
2
  import { TextareaProps } from "@mui/joy";
3
3
  import { MotionProps } from "framer-motion";
4
4
  declare const Textarea: {
5
- (props: TextareaProps & MotionProps): React.JSX.Element;
5
+ (props: {
6
+ label?: string | undefined;
7
+ error?: boolean | undefined;
8
+ helperText?: React.ReactNode;
9
+ } & {
10
+ component?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
11
+ } & import("@mui/joy").TextareaSlotsAndSlotProps & Pick<React.TextareaHTMLAttributes<HTMLTextAreaElement>, "defaultValue" | "autoFocus" | "id" | "onFocus" | "onBlur" | "onChange" | "onKeyDown" | "onKeyUp" | "onClick" | "disabled" | "required" | "autoComplete" | "readOnly" | "value" | "name" | "placeholder"> & {
12
+ color?: import("@mui/types").OverridableStringUnion<import("@mui/joy").ColorPaletteProp, import("@mui/joy").TextareaPropsColorOverrides> | undefined;
13
+ endDecorator?: React.ReactNode;
14
+ error?: boolean | undefined;
15
+ maxRows?: string | number | undefined;
16
+ minRows?: string | number | undefined;
17
+ startDecorator?: React.ReactNode;
18
+ size?: import("@mui/types").OverridableStringUnion<"sm" | "md" | "lg", import("@mui/joy").TextareaPropsSizeOverrides> | undefined;
19
+ sx?: import("@mui/joy/styles/types").SxProps | undefined;
20
+ variant?: import("@mui/types").OverridableStringUnion<import("@mui/joy").VariantProp, import("@mui/joy").TextareaPropsVariantOverrides> | undefined;
21
+ } & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
22
+ ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
23
+ }, "color" | "defaultValue" | "autoFocus" | "id" | "onFocus" | "onBlur" | "onChange" | "onKeyDown" | "onKeyUp" | "onClick" | "variant" | "sx" | "disabled" | "size" | "error" | "required" | "autoComplete" | "readOnly" | "value" | "endDecorator" | "name" | "placeholder" | "startDecorator" | "component" | keyof import("@mui/joy").TextareaSlotsAndSlotProps | "maxRows" | "minRows"> & MotionProps): React.JSX.Element;
6
24
  displayName: string;
7
25
  };
8
26
  export { Textarea };
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { StyleOverrides, Theme } from "@mui/joy/styles";
2
+ import { StyleOverrides, Theme } from "@mui/joy";
3
3
  import { CalendarOwnerState, CalendarProps, CalendarSlot } from "../Calendar/types";
4
4
  declare module "@mui/joy/styles" {
5
5
  interface Components {
package/dist/index.js CHANGED
@@ -230,7 +230,7 @@ Breadcrumbs.displayName = "Breadcrumbs";
230
230
 
231
231
  // src/components/Calendar/Calendar.tsx
232
232
  import React8, { Fragment, forwardRef as forwardRef2, useMemo as useMemo2 } from "react";
233
- import { styled } from "@mui/joy/styles";
233
+ import { styled } from "@mui/joy";
234
234
  import ChevronLeftIcon from "@mui/icons-material/esm/ChevronLeft.js";
235
235
  import ChevronRightIcon from "@mui/icons-material/esm/ChevronRight.js";
236
236
  import { AnimatePresence, motion as motion9 } from "framer-motion";
@@ -333,7 +333,7 @@ var IconButton_default = IconButton;
333
333
 
334
334
  // src/components/Calendar/hooks/use-calendar-props.ts
335
335
  import { useCallback, useMemo, useState as useState2 } from "react";
336
- import { useThemeProps } from "@mui/joy/styles";
336
+ import { useThemeProps } from "@mui/joy";
337
337
  var resolveView = (view, views) => {
338
338
  return views.includes(view) ? view : views[0];
339
339
  };
@@ -1042,8 +1042,7 @@ import React12, {
1042
1042
  useRef,
1043
1043
  useState as useState4
1044
1044
  } from "react";
1045
- import { styled as styled3 } from "@mui/joy/styles";
1046
- import LinearProgress from "@mui/joy/LinearProgress";
1045
+ import { styled as styled3, LinearProgress } from "@mui/joy";
1047
1046
  import PreviousIcon from "@mui/icons-material/esm/ChevronLeft.js";
1048
1047
  import NextIcon from "@mui/icons-material/esm/ChevronRight.js";
1049
1048
 
@@ -1579,10 +1578,8 @@ DataTable.displayName = "DataTable";
1579
1578
  import React14, { forwardRef as forwardRef4, useCallback as useCallback4, useState as useState5 } from "react";
1580
1579
  import { IMaskInput, IMask } from "react-imask";
1581
1580
  import CalendarTodayIcon from "@mui/icons-material/esm/CalendarToday.js";
1582
- import { styled as styled4 } from "@mui/joy/styles";
1583
- import { FocusTrap } from "@mui/base/FocusTrap";
1584
- import { ClickAwayListener } from "@mui/base/ClickAwayListener";
1585
- import { Popper } from "@mui/base/Popper";
1581
+ import { styled as styled4 } from "@mui/joy";
1582
+ import { FocusTrap, ClickAwayListener, Popper } from "@mui/base";
1586
1583
 
1587
1584
  // src/components/Input/Input.tsx
1588
1585
  import React13 from "react";
@@ -1781,10 +1778,8 @@ DatePicker.displayName = "DatePicker";
1781
1778
  import React15, { forwardRef as forwardRef5, useCallback as useCallback5, useMemo as useMemo4, useState as useState6 } from "react";
1782
1779
  import { IMaskInput as IMaskInput2, IMask as IMask2 } from "react-imask";
1783
1780
  import CalendarTodayIcon2 from "@mui/icons-material/esm/CalendarToday.js";
1784
- import { styled as styled5 } from "@mui/joy/styles";
1785
- import { FocusTrap as FocusTrap2 } from "@mui/base/FocusTrap";
1786
- import { ClickAwayListener as ClickAwayListener2 } from "@mui/base/ClickAwayListener";
1787
- import { Popper as Popper2 } from "@mui/base/Popper";
1781
+ import { styled as styled5 } from "@mui/joy";
1782
+ import { FocusTrap as FocusTrap2, ClickAwayListener as ClickAwayListener2, Popper as Popper2 } from "@mui/base";
1788
1783
  var StyledPopper2 = styled5(Popper2, {
1789
1784
  name: "DateRangePicker",
1790
1785
  slot: "popper"
@@ -2113,10 +2108,8 @@ MenuItem.displayName = "MenuItem";
2113
2108
  import React21, { forwardRef as forwardRef6, useCallback as useCallback6, useMemo as useMemo5, useState as useState7 } from "react";
2114
2109
  import { IMaskInput as IMaskInput3, IMask as IMask3 } from "react-imask";
2115
2110
  import CalendarTodayIcon3 from "@mui/icons-material/esm/CalendarToday.js";
2116
- import { styled as styled6 } from "@mui/joy/styles";
2117
- import { FocusTrap as FocusTrap3 } from "@mui/base/FocusTrap";
2118
- import { ClickAwayListener as ClickAwayListener3 } from "@mui/base/ClickAwayListener";
2119
- import { Popper as Popper3 } from "@mui/base/Popper";
2111
+ import { styled as styled6 } from "@mui/joy";
2112
+ import { FocusTrap as FocusTrap3, ClickAwayListener as ClickAwayListener3, Popper as Popper3 } from "@mui/base";
2120
2113
  var StyledPopper3 = styled6(Popper3, {
2121
2114
  name: "MonthRangePicker",
2122
2115
  slot: "popper"
@@ -2149,14 +2142,8 @@ var parseDate2 = (str) => {
2149
2142
  const yearMonthDay1 = date1.split("/");
2150
2143
  const yearMonthDay2 = date2.split("/");
2151
2144
  return [
2152
- new Date(
2153
- Number(yearMonthDay1[0]),
2154
- Number(yearMonthDay1[1]) - 1
2155
- ),
2156
- new Date(
2157
- Number(yearMonthDay2[0]),
2158
- Number(yearMonthDay2[1]) - 1
2159
- )
2145
+ new Date(Number(yearMonthDay1[0]), Number(yearMonthDay1[1]) - 1),
2146
+ new Date(Number(yearMonthDay2[0]), Number(yearMonthDay2[1]) - 1)
2160
2147
  ];
2161
2148
  };
2162
2149
  var TextMaskAdapter5 = React21.forwardRef(
@@ -2194,7 +2181,17 @@ var TextMaskAdapter5 = React21.forwardRef(
2194
2181
  );
2195
2182
  var MonthRangePicker = forwardRef6(
2196
2183
  (props, ref) => {
2197
- const { onChange, disabled, label, error, helperText, minDate, maxDate, disableFuture, disablePast } = props;
2184
+ const {
2185
+ onChange,
2186
+ disabled,
2187
+ label,
2188
+ error,
2189
+ helperText,
2190
+ minDate,
2191
+ maxDate,
2192
+ disableFuture,
2193
+ disablePast
2194
+ } = props;
2198
2195
  const [value, setValue] = useState7(props.value || "");
2199
2196
  const [anchorEl, setAnchorEl] = useState7(null);
2200
2197
  const open = Boolean(anchorEl);
@@ -2410,7 +2407,11 @@ import { Textarea as JoyTextarea } from "@mui/joy";
2410
2407
  import { motion as motion27 } from "framer-motion";
2411
2408
  var MotionTextarea = motion27(JoyTextarea);
2412
2409
  var Textarea = (props) => {
2413
- return /* @__PURE__ */ React25.createElement(MotionTextarea, { ...props });
2410
+ const { label, error, helperText, color, size, ...innerProps } = props;
2411
+ if (label) {
2412
+ return /* @__PURE__ */ React25.createElement(FormControl_default, { color, size, error }, /* @__PURE__ */ React25.createElement(FormLabel_default, null, label), /* @__PURE__ */ React25.createElement(MotionTextarea, { ...innerProps }), helperText && /* @__PURE__ */ React25.createElement(FormHelperText_default, null, helperText));
2413
+ }
2414
+ return /* @__PURE__ */ React25.createElement(MotionTextarea, { color, size, ...innerProps });
2414
2415
  };
2415
2416
  Textarea.displayName = "Textarea";
2416
2417