@ceed/ads 0.0.72 → 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.
- package/dist/components/Modal/Modal.d.ts +1 -1
- package/dist/components/Textarea/Textarea.d.ts +19 -1
- package/dist/index.js +5 -1
- package/framer/index.js +7643 -9025
- package/package.json +1 -1
|
@@ -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: "
|
|
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:
|
|
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 };
|
package/dist/index.js
CHANGED
|
@@ -2407,7 +2407,11 @@ import { Textarea as JoyTextarea } from "@mui/joy";
|
|
|
2407
2407
|
import { motion as motion27 } from "framer-motion";
|
|
2408
2408
|
var MotionTextarea = motion27(JoyTextarea);
|
|
2409
2409
|
var Textarea = (props) => {
|
|
2410
|
-
|
|
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 });
|
|
2411
2415
|
};
|
|
2412
2416
|
Textarea.displayName = "Textarea";
|
|
2413
2417
|
|