@ceed/ads 0.0.44 → 0.0.46

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/index.js CHANGED
@@ -1401,17 +1401,15 @@ 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
- 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
+ if (label) {
1410
+ 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));
1411
+ }
1412
+ return /* @__PURE__ */ React11.createElement(MotionInput, { ...innerProps });
1415
1413
  };
1416
1414
  Input.displayName = "Input";
1417
1415
 
@@ -1432,21 +1430,21 @@ var DialogActions_default = DialogActions;
1432
1430
  import { FormControl as JoyFormControl } from "@mui/joy";
1433
1431
  import { motion as motion12 } from "framer-motion";
1434
1432
  var MotionFormControl = motion12(JoyFormControl);
1435
- var FormControl2 = MotionFormControl;
1436
- FormControl2.displayName = "FormControl";
1433
+ var FormControl = MotionFormControl;
1434
+ FormControl.displayName = "FormControl";
1437
1435
 
1438
1436
  // src/components/FormControl/index.ts
1439
- var FormControl_default = FormControl2;
1437
+ var FormControl_default = FormControl;
1440
1438
 
1441
1439
  // src/components/FormLabel/FormLabel.tsx
1442
1440
  import { FormLabel as JoyFormLabel } from "@mui/joy";
1443
1441
  import { motion as motion13 } from "framer-motion";
1444
1442
  var MotionFormLabel = motion13(JoyFormLabel);
1445
- var FormLabel2 = MotionFormLabel;
1446
- FormLabel2.displayName = "FormLabel";
1443
+ var FormLabel = MotionFormLabel;
1444
+ FormLabel.displayName = "FormLabel";
1447
1445
 
1448
1446
  // src/components/FormLabel/index.ts
1449
- var FormLabel_default = FormLabel2;
1447
+ var FormLabel_default = FormLabel;
1450
1448
 
1451
1449
  // src/components/DatePicker/DatePicker.tsx
1452
1450
  var StyledPopper = styled3(Popper, {
@@ -1911,8 +1909,8 @@ Dropdown.displayName = "Dropdown";
1911
1909
  import { FormHelperText as JoyFormHelperText } from "@mui/joy";
1912
1910
  import { motion as motion20 } from "framer-motion";
1913
1911
  var MotionFormHelperText = motion20(JoyFormHelperText);
1914
- var FormHelperText2 = MotionFormHelperText;
1915
- FormHelperText2.displayName = "FormHelperText";
1912
+ var FormHelperText = MotionFormHelperText;
1913
+ FormHelperText.displayName = "FormHelperText";
1916
1914
 
1917
1915
  // src/components/Grid/Grid.tsx
1918
1916
  import { Grid as JoyGrid } from "@mui/joy";
@@ -1967,10 +1965,7 @@ RadioList.displayName = "RadioList";
1967
1965
  import React20 from "react";
1968
1966
  import {
1969
1967
  Select as JoySelect,
1970
- Option as JoyOption,
1971
- FormControl as FormControl3,
1972
- FormLabel as FormLabel3,
1973
- FormHelperText as FormHelperText3
1968
+ Option as JoyOption
1974
1969
  } from "@mui/joy";
1975
1970
  import { motion as motion24 } from "framer-motion";
1976
1971
  var MotionSelect = motion24(JoySelect);
@@ -1979,7 +1974,10 @@ var Option = MotionOption;
1979
1974
  Option.displayName = "Option";
1980
1975
  function Select(props) {
1981
1976
  const { label, helperText, error, ...innerProps } = props;
1982
- return /* @__PURE__ */ React20.createElement(FormControl3, { error }, label && /* @__PURE__ */ React20.createElement(FormLabel3, null, label), /* @__PURE__ */ React20.createElement(JoySelect, { ...innerProps }), helperText && /* @__PURE__ */ React20.createElement(FormHelperText3, null, helperText));
1977
+ if (label) {
1978
+ 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));
1979
+ }
1980
+ return /* @__PURE__ */ React20.createElement(JoySelect, { ...innerProps });
1983
1981
  }
1984
1982
  Select.displayName = "Select";
1985
1983
 
@@ -2152,9 +2150,9 @@ export {
2152
2150
  Divider,
2153
2151
  Drawer,
2154
2152
  Dropdown,
2155
- FormControl2 as FormControl,
2156
- FormHelperText2 as FormHelperText,
2157
- FormLabel2 as FormLabel,
2153
+ FormControl,
2154
+ FormHelperText,
2155
+ FormLabel,
2158
2156
  Grid,
2159
2157
  IconButton,
2160
2158
  Input,
package/framer/index.js CHANGED
@@ -40509,11 +40509,14 @@ import { motion as motion10 } from "framer-motion";
40509
40509
  var MotionInput = motion10(Input_default);
40510
40510
  var Input3 = (props) => {
40511
40511
  const _a = props, { label, helperText, error, style: style4 } = _a, innerProps = __objRest(_a, ["label", "helperText", "error", "style"]);
40512
- return /* @__PURE__ */ jsxs2(FormControl_default, { error, children: [
40513
- label && /* @__PURE__ */ jsx2(FormLabel_default, { children: label }),
40514
- /* @__PURE__ */ jsx2(MotionInput, __spreadValues({}, innerProps)),
40515
- helperText && /* @__PURE__ */ jsx2(FormHelperText_default, { children: helperText })
40516
- ] });
40512
+ if (label) {
40513
+ return /* @__PURE__ */ jsxs2(FormControl3, { error, children: [
40514
+ label && /* @__PURE__ */ jsx2(FormLabel3, { children: label }),
40515
+ /* @__PURE__ */ jsx2(MotionInput, __spreadValues({}, innerProps)),
40516
+ helperText && /* @__PURE__ */ jsx2(FormHelperText3, { children: helperText })
40517
+ ] });
40518
+ }
40519
+ return /* @__PURE__ */ jsx2(MotionInput, __spreadValues({}, innerProps));
40517
40520
  };
40518
40521
  Input3.displayName = "Input";
40519
40522
 
@@ -41059,11 +41062,14 @@ var Option3 = MotionOption;
41059
41062
  Option3.displayName = "Option";
41060
41063
  function Select3(props) {
41061
41064
  const _a = props, { label, helperText, error } = _a, innerProps = __objRest(_a, ["label", "helperText", "error"]);
41062
- return /* @__PURE__ */ jsxs2(FormControl_default, { error, children: [
41063
- label && /* @__PURE__ */ jsx2(FormLabel_default, { children: label }),
41064
- /* @__PURE__ */ jsx2(Select_default, __spreadValues({}, innerProps)),
41065
- helperText && /* @__PURE__ */ jsx2(FormHelperText_default, { children: helperText })
41066
- ] });
41065
+ if (label) {
41066
+ return /* @__PURE__ */ jsxs2(FormControl3, { error, children: [
41067
+ label && /* @__PURE__ */ jsx2(FormLabel3, { children: label }),
41068
+ /* @__PURE__ */ jsx2(Select_default, __spreadValues({}, innerProps)),
41069
+ helperText && /* @__PURE__ */ jsx2(FormHelperText3, { children: helperText })
41070
+ ] });
41071
+ }
41072
+ return /* @__PURE__ */ jsx2(Select_default, __spreadValues({}, innerProps));
41067
41073
  }
41068
41074
  Select3.displayName = "Select";
41069
41075
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ceed/ads",
3
- "version": "0.0.44",
3
+ "version": "0.0.46",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",