@ceed/ads 0.0.50 → 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.
- package/dist/index.js +15 -23
- package/framer/index.js +8 -8
- package/package.json +2 -1
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
|
|
1439
|
-
|
|
1433
|
+
var FormControl = MotionFormControl;
|
|
1434
|
+
FormControl.displayName = "FormControl";
|
|
1440
1435
|
|
|
1441
1436
|
// src/components/FormControl/index.ts
|
|
1442
|
-
var FormControl_default =
|
|
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
|
|
1449
|
-
|
|
1443
|
+
var FormLabel = MotionFormLabel;
|
|
1444
|
+
FormLabel.displayName = "FormLabel";
|
|
1450
1445
|
|
|
1451
1446
|
// src/components/FormLabel/index.ts
|
|
1452
|
-
var FormLabel_default =
|
|
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
|
|
1918
|
-
|
|
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(
|
|
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
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2152
|
+
FormControl,
|
|
2153
|
+
FormHelperText,
|
|
2154
|
+
FormLabel,
|
|
2163
2155
|
Grid,
|
|
2164
2156
|
IconButton,
|
|
2165
2157
|
Input,
|
package/framer/index.js
CHANGED
|
@@ -40510,10 +40510,10 @@ 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
40512
|
if (label) {
|
|
40513
|
-
return /* @__PURE__ */ jsxs2(
|
|
40514
|
-
/* @__PURE__ */ jsx2(
|
|
40515
|
-
/* @__PURE__ */ jsx2(MotionInput, __spreadValues({}, innerProps)),
|
|
40516
|
-
helperText && /* @__PURE__ */ jsx2(
|
|
40513
|
+
return /* @__PURE__ */ jsxs2(FormControl3, { error, children: [
|
|
40514
|
+
/* @__PURE__ */ jsx2(FormLabel3, { children: label }),
|
|
40515
|
+
/* @__PURE__ */ jsx2(MotionInput, __spreadValues({ color: error ? "danger" : innerProps.color }, innerProps)),
|
|
40516
|
+
helperText && /* @__PURE__ */ jsx2(FormHelperText3, { children: helperText })
|
|
40517
40517
|
] });
|
|
40518
40518
|
}
|
|
40519
40519
|
return /* @__PURE__ */ jsx2(MotionInput, __spreadValues({}, innerProps));
|
|
@@ -41062,10 +41062,10 @@ Option3.displayName = "Option";
|
|
|
41062
41062
|
function Select3(props) {
|
|
41063
41063
|
const _a = props, { label, helperText, error } = _a, innerProps = __objRest(_a, ["label", "helperText", "error"]);
|
|
41064
41064
|
if (label) {
|
|
41065
|
-
return /* @__PURE__ */ jsxs2(
|
|
41066
|
-
/* @__PURE__ */ jsx2(
|
|
41067
|
-
/* @__PURE__ */ jsx2(Select_default, __spreadValues({}, innerProps)),
|
|
41068
|
-
helperText && /* @__PURE__ */ jsx2(
|
|
41065
|
+
return /* @__PURE__ */ jsxs2(FormControl3, { error, children: [
|
|
41066
|
+
/* @__PURE__ */ jsx2(FormLabel3, { children: label }),
|
|
41067
|
+
/* @__PURE__ */ jsx2(Select_default, __spreadValues({ color: error ? "danger" : innerProps.color }, innerProps)),
|
|
41068
|
+
helperText && /* @__PURE__ */ jsx2(FormHelperText3, { children: helperText })
|
|
41069
41069
|
] });
|
|
41070
41070
|
}
|
|
41071
41071
|
return /* @__PURE__ */ jsx2(Select_default, __spreadValues({}, innerProps));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ceed/ads",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.52",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"type": "module",
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@emotion/react": "^11.11.0",
|
|
34
34
|
"@emotion/styled": "^11.11.0",
|
|
35
|
+
"@mui/base": "5.0.0-beta.40",
|
|
35
36
|
"@mui/icons-material": "^5.0.0",
|
|
36
37
|
"@mui/joy": "^5.0.0-beta.32",
|
|
37
38
|
"framer-motion": "^11.0.3",
|