@ceed/ads 0.0.51 → 0.0.52

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;
package/dist/index.js CHANGED
@@ -1401,18 +1401,13 @@ import { Popper } from "@mui/base/Popper";
1401
1401
 
1402
1402
  // src/components/Input/Input.tsx
1403
1403
  import React11 from "react";
1404
- import {
1405
- Input as JoyInput,
1406
- FormControl,
1407
- FormLabel,
1408
- FormHelperText
1409
- } from "@mui/joy";
1404
+ import { Input as JoyInput } from "@mui/joy";
1410
1405
  import { motion as motion10 } from "framer-motion";
1411
1406
  var MotionInput = motion10(JoyInput);
1412
1407
  var Input = (props) => {
1413
1408
  const { label, helperText, error, style, ...innerProps } = props;
1414
1409
  if (label) {
1415
- return /* @__PURE__ */ React11.createElement(FormControl, { error }, /* @__PURE__ */ React11.createElement(FormLabel, null, label), /* @__PURE__ */ React11.createElement(MotionInput, { ...innerProps }), helperText && /* @__PURE__ */ React11.createElement(FormHelperText, null, helperText));
1410
+ return /* @__PURE__ */ React11.createElement(FormControl, { error }, /* @__PURE__ */ React11.createElement(FormLabel, null, label), /* @__PURE__ */ React11.createElement(MotionInput, { color: error ? "danger" : innerProps.color, ...innerProps }), helperText && /* @__PURE__ */ React11.createElement(FormHelperText, null, helperText));
1416
1411
  }
1417
1412
  return /* @__PURE__ */ React11.createElement(MotionInput, { ...innerProps });
1418
1413
  };
@@ -1435,21 +1430,21 @@ var DialogActions_default = DialogActions;
1435
1430
  import { FormControl as JoyFormControl } from "@mui/joy";
1436
1431
  import { motion as motion12 } from "framer-motion";
1437
1432
  var MotionFormControl = motion12(JoyFormControl);
1438
- var FormControl2 = MotionFormControl;
1439
- FormControl2.displayName = "FormControl";
1433
+ var FormControl = MotionFormControl;
1434
+ FormControl.displayName = "FormControl";
1440
1435
 
1441
1436
  // src/components/FormControl/index.ts
1442
- var FormControl_default = FormControl2;
1437
+ var FormControl_default = FormControl;
1443
1438
 
1444
1439
  // src/components/FormLabel/FormLabel.tsx
1445
1440
  import { FormLabel as JoyFormLabel } from "@mui/joy";
1446
1441
  import { motion as motion13 } from "framer-motion";
1447
1442
  var MotionFormLabel = motion13(JoyFormLabel);
1448
- var FormLabel2 = MotionFormLabel;
1449
- FormLabel2.displayName = "FormLabel";
1443
+ var FormLabel = MotionFormLabel;
1444
+ FormLabel.displayName = "FormLabel";
1450
1445
 
1451
1446
  // src/components/FormLabel/index.ts
1452
- var FormLabel_default = FormLabel2;
1447
+ var FormLabel_default = FormLabel;
1453
1448
 
1454
1449
  // src/components/DatePicker/DatePicker.tsx
1455
1450
  var StyledPopper = styled3(Popper, {
@@ -1914,8 +1909,8 @@ Dropdown.displayName = "Dropdown";
1914
1909
  import { FormHelperText as JoyFormHelperText } from "@mui/joy";
1915
1910
  import { motion as motion20 } from "framer-motion";
1916
1911
  var MotionFormHelperText = motion20(JoyFormHelperText);
1917
- var FormHelperText2 = MotionFormHelperText;
1918
- FormHelperText2.displayName = "FormHelperText";
1912
+ var FormHelperText = MotionFormHelperText;
1913
+ FormHelperText.displayName = "FormHelperText";
1919
1914
 
1920
1915
  // src/components/Grid/Grid.tsx
1921
1916
  import { Grid as JoyGrid } from "@mui/joy";
@@ -1970,10 +1965,7 @@ RadioList.displayName = "RadioList";
1970
1965
  import React20 from "react";
1971
1966
  import {
1972
1967
  Select as JoySelect,
1973
- Option as JoyOption,
1974
- FormControl as FormControl3,
1975
- FormLabel as FormLabel3,
1976
- FormHelperText as FormHelperText3
1968
+ Option as JoyOption
1977
1969
  } from "@mui/joy";
1978
1970
  import { motion as motion24 } from "framer-motion";
1979
1971
  var MotionOption = motion24(JoyOption);
@@ -1982,7 +1974,7 @@ Option.displayName = "Option";
1982
1974
  function Select(props) {
1983
1975
  const { label, helperText, error, ...innerProps } = props;
1984
1976
  if (label) {
1985
- return /* @__PURE__ */ React20.createElement(FormControl3, { error }, /* @__PURE__ */ React20.createElement(FormLabel3, null, label), /* @__PURE__ */ React20.createElement(JoySelect, { ...innerProps }), helperText && /* @__PURE__ */ React20.createElement(FormHelperText3, null, helperText));
1977
+ return /* @__PURE__ */ React20.createElement(FormControl, { error }, /* @__PURE__ */ React20.createElement(FormLabel, null, label), /* @__PURE__ */ React20.createElement(JoySelect, { color: error ? "danger" : innerProps.color, ...innerProps }), helperText && /* @__PURE__ */ React20.createElement(FormHelperText, null, helperText));
1986
1978
  }
1987
1979
  return /* @__PURE__ */ React20.createElement(JoySelect, { ...innerProps });
1988
1980
  }
@@ -2157,9 +2149,9 @@ export {
2157
2149
  Divider,
2158
2150
  Drawer,
2159
2151
  Dropdown,
2160
- FormControl2 as FormControl,
2161
- FormHelperText2 as FormHelperText,
2162
- FormLabel2 as FormLabel,
2152
+ FormControl,
2153
+ FormHelperText,
2154
+ FormLabel,
2163
2155
  Grid,
2164
2156
  IconButton,
2165
2157
  Input,