@ceed/ads 0.0.43 → 0.0.45
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/Input/Input.d.ts +21 -3
- package/dist/components/Modal/Modal.d.ts +1 -1
- package/dist/components/Select/Select.d.ts +11 -13
- package/dist/index.js +21 -13
- package/framer/index.js +7654 -9019
- package/package.json +1 -1
|
@@ -1,8 +1,26 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { InputProps } from "@mui/joy";
|
|
3
|
-
import { MotionProps } from "framer-motion";
|
|
2
|
+
import { type InputProps } from "@mui/joy";
|
|
3
|
+
import { type MotionProps } from "framer-motion";
|
|
4
4
|
declare const Input: {
|
|
5
|
-
(props:
|
|
5
|
+
(props: {
|
|
6
|
+
label?: string | undefined;
|
|
7
|
+
helperText?: React.ReactNode;
|
|
8
|
+
error?: boolean | undefined;
|
|
9
|
+
} & {
|
|
10
|
+
component?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
|
|
11
|
+
} & Pick<React.InputHTMLAttributes<HTMLInputElement>, "defaultValue" | "autoFocus" | "id" | "onFocus" | "onBlur" | "onChange" | "onKeyDown" | "onKeyUp" | "onClick" | "disabled" | "type" | "name" | "value" | "readOnly" | "required" | "autoComplete" | "placeholder"> & {
|
|
12
|
+
className?: string | undefined;
|
|
13
|
+
color?: import("@mui/types").OverridableStringUnion<import("@mui/joy").ColorPaletteProp, import("@mui/joy").InputPropsColorOverrides> | undefined;
|
|
14
|
+
endDecorator?: React.ReactNode;
|
|
15
|
+
error?: boolean | undefined;
|
|
16
|
+
fullWidth?: boolean | undefined;
|
|
17
|
+
startDecorator?: React.ReactNode;
|
|
18
|
+
size?: import("@mui/types").OverridableStringUnion<"sm" | "md" | "lg", import("@mui/joy").InputPropsSizeOverrides> | undefined;
|
|
19
|
+
sx?: import("@mui/joy/styles/types").SxProps | undefined;
|
|
20
|
+
variant?: import("@mui/types").OverridableStringUnion<import("@mui/joy").VariantProp, import("@mui/joy").InputPropsVariantOverrides> | undefined;
|
|
21
|
+
} & import("@mui/joy").InputSlotsAndSlotProps & Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
22
|
+
ref?: ((instance: HTMLDivElement | null) => void) | React.RefObject<HTMLDivElement> | null | undefined;
|
|
23
|
+
}, "color" | "defaultValue" | "autoFocus" | "className" | "id" | "onFocus" | "onBlur" | "onChange" | "onKeyDown" | "onKeyUp" | "onClick" | "variant" | "sx" | "disabled" | "size" | "component" | "type" | "endDecorator" | "fullWidth" | "startDecorator" | "name" | "value" | "readOnly" | "required" | "autoComplete" | "placeholder" | "error" | keyof import("@mui/joy").InputSlotsAndSlotProps> & MotionProps): React.JSX.Element;
|
|
6
24
|
displayName: string;
|
|
7
25
|
};
|
|
8
26
|
export { Input };
|
|
@@ -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;
|
|
@@ -1,17 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} & import("@mui/joy").SelectStaticProps & import("@mui/joy").SelectSlotsAndSlotProps<boolean> & {
|
|
5
|
-
defaultValue?: {} | {}[] | null | undefined;
|
|
6
|
-
multiple?: boolean | undefined;
|
|
7
|
-
getSerializedValue?: ((option: import("@mui/joy").SelectOption<{}> | import("@mui/joy").SelectOption<{}>[] | null) => string | number | readonly string[] | undefined) | undefined;
|
|
8
|
-
onChange?: ((event: React.MouseEvent<Element, MouseEvent> | React.KeyboardEvent<Element> | React.FocusEvent<Element, Element> | null, value: {} | {}[] | null) => void) | undefined;
|
|
9
|
-
renderValue?: ((option: import("@mui/joy").SelectOption<{}> | import("@mui/joy").SelectOption<{}>[] | null) => React.ReactNode) | undefined;
|
|
10
|
-
value?: {} | {}[] | null | undefined;
|
|
11
|
-
} & Omit<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
12
|
-
ref?: ((instance: HTMLButtonElement | null) => void) | React.RefObject<HTMLButtonElement> | null | undefined;
|
|
13
|
-
}, "defaultValue" | "onChange" | "value" | "multiple" | keyof import("@mui/joy").SelectStaticProps | keyof import("@mui/joy").SelectSlotsAndSlotProps<Multiple> | "getSerializedValue" | "renderValue">>;
|
|
14
|
-
export { Select };
|
|
2
|
+
import { type SelectProps } from "@mui/joy";
|
|
3
|
+
import { type MotionProps } from "framer-motion";
|
|
15
4
|
declare const Option: import("framer-motion").CustomDomComponent<{
|
|
16
5
|
color?: import("@mui/types").OverridableStringUnion<import("@mui/joy").ColorPaletteProp, import("@mui/joy").OptionPropsColorOverrides> | undefined;
|
|
17
6
|
children?: React.ReactNode;
|
|
@@ -24,3 +13,12 @@ declare const Option: import("framer-motion").CustomDomComponent<{
|
|
|
24
13
|
ref?: ((instance: HTMLLIElement | null) => void) | React.RefObject<HTMLLIElement> | null | undefined;
|
|
25
14
|
}, "label" | "children" | "color" | "variant" | "sx" | "disabled" | "value" | keyof import("@mui/joy").OptionSlotsAndSlotProps>>;
|
|
26
15
|
export { Option };
|
|
16
|
+
declare function Select<OptionValue extends {}, Multiple extends boolean = false>(props: {
|
|
17
|
+
label?: string;
|
|
18
|
+
helperText?: string;
|
|
19
|
+
error?: boolean;
|
|
20
|
+
} & SelectProps<OptionValue, Multiple> & MotionProps): React.JSX.Element;
|
|
21
|
+
declare namespace Select {
|
|
22
|
+
var displayName: string;
|
|
23
|
+
}
|
|
24
|
+
export { Select };
|
package/dist/index.js
CHANGED
|
@@ -1405,7 +1405,8 @@ import { Input as JoyInput } from "@mui/joy";
|
|
|
1405
1405
|
import { motion as motion10 } from "framer-motion";
|
|
1406
1406
|
var MotionInput = motion10(JoyInput);
|
|
1407
1407
|
var Input = (props) => {
|
|
1408
|
-
|
|
1408
|
+
const { label, helperText, error, style, ...innerProps } = props;
|
|
1409
|
+
return /* @__PURE__ */ React11.createElement(FormControl, { error }, label && /* @__PURE__ */ React11.createElement(FormLabel, null, label), /* @__PURE__ */ React11.createElement(MotionInput, { ...innerProps }), helperText && /* @__PURE__ */ React11.createElement(FormHelperText, null, helperText));
|
|
1409
1410
|
};
|
|
1410
1411
|
Input.displayName = "Input";
|
|
1411
1412
|
|
|
@@ -1958,17 +1959,24 @@ function RadioList(props) {
|
|
|
1958
1959
|
RadioList.displayName = "RadioList";
|
|
1959
1960
|
|
|
1960
1961
|
// src/components/Select/Select.tsx
|
|
1961
|
-
import
|
|
1962
|
+
import React20 from "react";
|
|
1963
|
+
import {
|
|
1964
|
+
Select as JoySelect,
|
|
1965
|
+
Option as JoyOption
|
|
1966
|
+
} from "@mui/joy";
|
|
1962
1967
|
import { motion as motion24 } from "framer-motion";
|
|
1963
1968
|
var MotionSelect = motion24(JoySelect);
|
|
1964
|
-
var Select = MotionSelect;
|
|
1965
|
-
Select.displayName = "Select";
|
|
1966
1969
|
var MotionOption = motion24(JoyOption);
|
|
1967
1970
|
var Option = MotionOption;
|
|
1968
1971
|
Option.displayName = "Option";
|
|
1972
|
+
function Select(props) {
|
|
1973
|
+
const { label, helperText, error, ...innerProps } = props;
|
|
1974
|
+
return /* @__PURE__ */ React20.createElement(FormControl, { error }, label && /* @__PURE__ */ React20.createElement(FormLabel, null, label), /* @__PURE__ */ React20.createElement(JoySelect, { ...innerProps }), helperText && /* @__PURE__ */ React20.createElement(FormHelperText, null, helperText));
|
|
1975
|
+
}
|
|
1976
|
+
Select.displayName = "Select";
|
|
1969
1977
|
|
|
1970
1978
|
// src/components/Switch/Switch.tsx
|
|
1971
|
-
import
|
|
1979
|
+
import React21 from "react";
|
|
1972
1980
|
import {
|
|
1973
1981
|
Switch as JoySwitch,
|
|
1974
1982
|
styled as styled5,
|
|
@@ -1994,14 +2002,14 @@ var StyledThumb = styled5(motion25.div)({
|
|
|
1994
2002
|
right: "var(--Switch-thumbOffset)"
|
|
1995
2003
|
}
|
|
1996
2004
|
});
|
|
1997
|
-
var Thumb = (props) => /* @__PURE__ */
|
|
2005
|
+
var Thumb = (props) => /* @__PURE__ */ React21.createElement(StyledThumb, { ...props, layout: true, transition: spring });
|
|
1998
2006
|
var spring = {
|
|
1999
2007
|
type: "spring",
|
|
2000
2008
|
stiffness: 700,
|
|
2001
2009
|
damping: 30
|
|
2002
2010
|
};
|
|
2003
2011
|
var Switch = (props) => {
|
|
2004
|
-
return /* @__PURE__ */
|
|
2012
|
+
return /* @__PURE__ */ React21.createElement(
|
|
2005
2013
|
MotionSwitch,
|
|
2006
2014
|
{
|
|
2007
2015
|
...props,
|
|
@@ -2031,17 +2039,17 @@ var TabPanel = MotionTabPanel;
|
|
|
2031
2039
|
TabPanel.displayName = "TabPanel";
|
|
2032
2040
|
|
|
2033
2041
|
// src/components/Textarea/Textarea.tsx
|
|
2034
|
-
import
|
|
2042
|
+
import React22 from "react";
|
|
2035
2043
|
import { Textarea as JoyTextarea } from "@mui/joy";
|
|
2036
2044
|
import { motion as motion27 } from "framer-motion";
|
|
2037
2045
|
var MotionTextarea = motion27(JoyTextarea);
|
|
2038
2046
|
var Textarea = (props) => {
|
|
2039
|
-
return /* @__PURE__ */
|
|
2047
|
+
return /* @__PURE__ */ React22.createElement(MotionTextarea, { ...props });
|
|
2040
2048
|
};
|
|
2041
2049
|
Textarea.displayName = "Textarea";
|
|
2042
2050
|
|
|
2043
2051
|
// src/components/ThemeProvider/ThemeProvider.tsx
|
|
2044
|
-
import
|
|
2052
|
+
import React23 from "react";
|
|
2045
2053
|
import {
|
|
2046
2054
|
CssBaseline,
|
|
2047
2055
|
CssVarsProvider,
|
|
@@ -2088,17 +2096,17 @@ var defaultTheme = extendTheme({
|
|
|
2088
2096
|
}
|
|
2089
2097
|
});
|
|
2090
2098
|
function ThemeProvider(props) {
|
|
2091
|
-
return /* @__PURE__ */
|
|
2099
|
+
return /* @__PURE__ */ React23.createElement(React23.Fragment, null, /* @__PURE__ */ React23.createElement(CssVarsProvider, { theme: defaultTheme }, /* @__PURE__ */ React23.createElement(CssBaseline, null), props.children));
|
|
2092
2100
|
}
|
|
2093
2101
|
ThemeProvider.displayName = "ThemeProvider";
|
|
2094
2102
|
|
|
2095
2103
|
// src/components/Tooltip/Tooltip.tsx
|
|
2096
|
-
import
|
|
2104
|
+
import React24 from "react";
|
|
2097
2105
|
import { Tooltip as JoyTooltip } from "@mui/joy";
|
|
2098
2106
|
import { motion as motion28 } from "framer-motion";
|
|
2099
2107
|
var MotionTooltip = motion28(JoyTooltip);
|
|
2100
2108
|
var Tooltip = (props) => {
|
|
2101
|
-
return /* @__PURE__ */
|
|
2109
|
+
return /* @__PURE__ */ React24.createElement(MotionTooltip, { ...props });
|
|
2102
2110
|
};
|
|
2103
2111
|
Tooltip.displayName = "Tooltip";
|
|
2104
2112
|
export {
|