@ceed/ads 0.0.45 → 0.0.47

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
@@ -1406,7 +1406,10 @@ 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
+ 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 });
1410
1413
  };
1411
1414
  Input.displayName = "Input";
1412
1415
 
@@ -1561,7 +1564,7 @@ var DatePicker = forwardRef4(
1561
1564
  {
1562
1565
  name: "offset",
1563
1566
  options: {
1564
- offset: [0, 4]
1567
+ offset: [4, 4]
1565
1568
  }
1566
1569
  }
1567
1570
  ]
@@ -1971,7 +1974,10 @@ var Option = MotionOption;
1971
1974
  Option.displayName = "Option";
1972
1975
  function Select(props) {
1973
1976
  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));
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 });
1975
1981
  }
1976
1982
  Select.displayName = "Select";
1977
1983
 
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(FormControl3, { error, children: [
40513
- label && /* @__PURE__ */ jsx2(FormLabel3, { children: label }),
40514
- /* @__PURE__ */ jsx2(MotionInput, __spreadValues({}, innerProps)),
40515
- helperText && /* @__PURE__ */ jsx2(FormHelperText3, { 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
 
@@ -40666,7 +40669,7 @@ var DatePicker = forwardRef84(
40666
40669
  {
40667
40670
  name: "offset",
40668
40671
  options: {
40669
- offset: [0, 4]
40672
+ offset: [4, 4]
40670
40673
  }
40671
40674
  }
40672
40675
  ],
@@ -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(FormControl3, { error, children: [
41063
- label && /* @__PURE__ */ jsx2(FormLabel3, { children: label }),
41064
- /* @__PURE__ */ jsx2(Select_default, __spreadValues({}, innerProps)),
41065
- helperText && /* @__PURE__ */ jsx2(FormHelperText3, { 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.45",
3
+ "version": "0.0.47",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",