@symply.io/basic-components 1.4.0-alpha.2 → 1.4.0-alpha.3
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/CheckBox/CheckBox.d.ts +1 -1
- package/CheckBox/CheckBox.js +1 -1
- package/CheckBox/CheckBoxGroup.d.ts +1 -1
- package/CheckBox/CheckBoxGroup.js +1 -1
- package/CheckBox/index.d.ts +2 -4
- package/CheckBox/index.js +3 -4
- package/LoadingModal/index.d.ts +1 -2
- package/LoadingModal/index.js +2 -2
- package/package.json +1 -1
package/CheckBox/CheckBox.d.ts
CHANGED
package/CheckBox/CheckBox.js
CHANGED
@@ -25,7 +25,7 @@ import Checkbox from "@mui/material/Checkbox";
|
|
25
25
|
import FormControlLabel from "@mui/material/FormControlLabel";
|
26
26
|
import ThemeProvider from "@mui/material/styles/ThemeProvider";
|
27
27
|
import useCustomTheme from "../useCustomTheme";
|
28
|
-
|
28
|
+
function CheckBox(props) {
|
29
29
|
var label = props.label, onChange = props.onChange, primaryColor = props.primaryColor, secondaryColor = props.secondaryColor, rest = __rest(props, ["label", "onChange", "primaryColor", "secondaryColor"]);
|
30
30
|
var theme = useCustomTheme({ primaryColor: primaryColor, secondaryColor: secondaryColor });
|
31
31
|
return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: _jsx(FormControlLabel, { control: _jsx(Checkbox, __assign({ onChange: function (event) {
|
@@ -23,7 +23,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
23
23
|
import { jsx as _jsx } from "react/jsx-runtime";
|
24
24
|
import FormGroup from "@mui/material/FormGroup";
|
25
25
|
import CheckBox from "./CheckBox";
|
26
|
-
|
26
|
+
function CheckBoxGroup(props) {
|
27
27
|
var checkboxes = props.checkboxes, rest = __rest(props, ["checkboxes"]);
|
28
28
|
return (_jsx(FormGroup, __assign({}, rest, { children: checkboxes.map(function (checkbox, index) { return (_jsx(CheckBox, __assign({}, checkbox), index)); }) })));
|
29
29
|
}
|
package/CheckBox/index.d.ts
CHANGED
@@ -1,5 +1,3 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
export { default as CheckBox } from "./CheckBox";
|
2
|
+
export { default as CheckBoxGroup } from "./CheckBoxGroup";
|
3
3
|
export * from "./types";
|
4
|
-
export { CheckBox, CheckBoxGroup };
|
5
|
-
export default CheckBox;
|
package/CheckBox/index.js
CHANGED
@@ -1,5 +1,4 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
"use client";
|
2
|
+
export { default as CheckBox } from "./CheckBox";
|
3
|
+
export { default as CheckBoxGroup } from "./CheckBoxGroup";
|
3
4
|
export * from "./types";
|
4
|
-
export { CheckBox, CheckBoxGroup };
|
5
|
-
export default CheckBox;
|
package/LoadingModal/index.d.ts
CHANGED
package/LoadingModal/index.js
CHANGED