@ceed/ads 0.0.45 → 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 +8 -2
- package/framer/index.js +16 -10
- package/package.json +1 -1
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
|
-
|
|
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
|
|
|
@@ -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
|
-
|
|
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
|
-
|
|
40513
|
-
|
|
40514
|
-
|
|
40515
|
-
|
|
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
|
-
|
|
41063
|
-
|
|
41064
|
-
|
|
41065
|
-
|
|
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
|
|