Skip to content

Commit eea859e

Browse files
committed
Renamed components name from Sui to Soft
1 parent d6934a8 commit eea859e

File tree

105 files changed

+1771
-1771
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+1771
-1771
lines changed

CHANGELOG.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
### Bug fixing
66

77
- Momoized the context provider values
8-
- Fix the conditionally used of useContext for SuiPagination component
8+
- Fix the conditionally used of useContext for SoftPagination component
99
- Fix the import/no-anonymouse-default-export
1010

1111
### Major style changes
@@ -54,12 +54,12 @@ There is a warnings related to the stylis-plugin-rtl dependency that won't affec
5454
- The `box-shadow`, `border-radius` and `typography` `regular` size renamed to `md` for theme
5555
- The `backgroundColor` prop renamed to `bgColor` for components
5656
- The `boxShadow` prop renamed to `shadow` for components
57-
- SuiBox `backgroundGradient` prop replaced with `variant: ["contained", "gradient"]`
58-
- SuiButton `buttonColor` prop renamed to `color`
59-
- SuiBadge `size` prop updated to ["xs", "sm", "md", "lg"]
60-
- SuiInput `withIcon` prop renamed to `icon`
61-
- SuiProgress `gradient` prop replaced with `variant: ["contained", "gradient"]`
62-
- SuiTypography `textColor` prop renamed to `color`
57+
- SoftBox `backgroundGradient` prop replaced with `variant: ["contained", "gradient"]`
58+
- SoftButton `buttonColor` prop renamed to `color`
59+
- SoftBadge `size` prop updated to ["xs", "sm", "md", "lg"]
60+
- SoftInput `withIcon` prop renamed to `icon`
61+
- SoftProgress `gradient` prop replaced with `variant: ["contained", "gradient"]`
62+
- SoftTypography `textColor` prop renamed to `color`
6363
- Sidenav is more dynamic now, color, brand, brandName props are added
6464

6565
### Deleted components

README.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -110,15 +110,15 @@ soft-ui-dashboard-react
110110
│ │  ├── index.js
111111
│ │ └── theme-rtl.js
112112
│   ├── components
113-
│ │   ├── SuiAlert
114-
│ │   ├── SuiAvatar
115-
│ │   ├── SuiBadge
116-
│ │   ├── SuiBox
117-
│ │   ├── SuiButton
118-
│ │   ├── SuiInput
119-
│ │   ├── SuiPagination
120-
│ │   ├── SuiProgress
121-
│ │   └── SuiTypography
113+
│ │   ├── SoftAlert
114+
│ │   ├── SoftAvatar
115+
│ │   ├── SoftBadge
116+
│ │   ├── SoftBox
117+
│ │   ├── SoftButton
118+
│ │   ├── SoftInput
119+
│ │   ├── SoftPagination
120+
│ │   ├── SoftProgress
121+
│ │   └── SoftTypography
122122
│   ├── context
123123
│   ├── examples
124124
│ │   ├── Breadcrumbs

src/App.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import CssBaseline from "@mui/material/CssBaseline";
2424
import Icon from "@mui/material/Icon";
2525

2626
// Soft UI Dashboard React components
27-
import SuiBox from "components/SuiBox";
27+
import SoftBox from "components/SoftBox";
2828

2929
// Soft UI Dashboard React examples
3030
import Sidenav from "examples/Sidenav";
@@ -109,7 +109,7 @@ export default function App() {
109109
});
110110

111111
const configsButton = (
112-
<SuiBox
112+
<SoftBox
113113
display="flex"
114114
justifyContent="center"
115115
alignItems="center"
@@ -129,7 +129,7 @@ export default function App() {
129129
<Icon fontSize="default" color="inherit">
130130
settings
131131
</Icon>
132-
</SuiBox>
132+
</SoftBox>
133133
);
134134

135135
return direction === "rtl" ? (

src/components/SuiAlert/index.js renamed to src/components/SoftAlert/index.js

+15-15
Original file line numberDiff line numberDiff line change
@@ -22,28 +22,28 @@ import PropTypes from "prop-types";
2222
import Fade from "@mui/material/Fade";
2323

2424
// Soft UI Dashboard React components
25-
import SuiBox from "components/SuiBox";
25+
import SoftBox from "components/SoftBox";
2626

27-
// Custom styles for the SuiAlert
28-
import SuiAlertRoot from "components/SuiAlert/SuiAlertRoot";
29-
import SuiAlertCloseIcon from "components/SuiAlert/SuiAlertCloseIcon";
27+
// Custom styles for the SoftAlert
28+
import SoftAlertRoot from "components/SoftAlert/SoftAlertRoot";
29+
import SoftAlertCloseIcon from "components/SoftAlert/SoftAlertCloseIcon";
3030

31-
function SuiAlert({ color, dismissible, children, ...rest }) {
31+
function SoftAlert({ color, dismissible, children, ...rest }) {
3232
const [alertStatus, setAlertStatus] = useState("mount");
3333

3434
const handleAlertStatus = () => setAlertStatus("fadeOut");
3535

3636
// The base template for the alert
3737
const alertTemplate = (mount = true) => (
3838
<Fade in={mount} timeout={300}>
39-
<SuiAlertRoot ownerState={{ color }} {...rest}>
40-
<SuiBox display="flex" alignItems="center" color="white">
39+
<SoftAlertRoot ownerState={{ color }} {...rest}>
40+
<SoftBox display="flex" alignItems="center" color="white">
4141
{children}
42-
</SuiBox>
42+
</SoftBox>
4343
{dismissible ? (
44-
<SuiAlertCloseIcon onClick={mount ? handleAlertStatus : null}>&times;</SuiAlertCloseIcon>
44+
<SoftAlertCloseIcon onClick={mount ? handleAlertStatus : null}>&times;</SoftAlertCloseIcon>
4545
) : null}
46-
</SuiAlertRoot>
46+
</SoftAlertRoot>
4747
</Fade>
4848
);
4949

@@ -61,14 +61,14 @@ function SuiAlert({ color, dismissible, children, ...rest }) {
6161
return null;
6262
}
6363

64-
// Setting default values for the props of SuiAlert
65-
SuiAlert.defaultProps = {
64+
// Setting default values for the props of SoftAlert
65+
SoftAlert.defaultProps = {
6666
color: "info",
6767
dismissible: false,
6868
};
6969

70-
// Typechecking props of the SuiAlert
71-
SuiAlert.propTypes = {
70+
// Typechecking props of the SoftAlert
71+
SoftAlert.propTypes = {
7272
color: PropTypes.oneOf([
7373
"primary",
7474
"secondary",
@@ -83,4 +83,4 @@ SuiAlert.propTypes = {
8383
children: PropTypes.node.isRequired,
8484
};
8585

86-
export default SuiAlert;
86+
export default SoftAlert;

src/components/SuiAvatar/index.js renamed to src/components/SoftAvatar/index.js

+9-9
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,22 @@ import { forwardRef } from "react";
1818
// prop-types is a library for typechecking of props
1919
import PropTypes from "prop-types";
2020

21-
// Custom styles for SuiAvatar
22-
import SuiAvatarRoot from "components/SuiAvatar/SuiAvatarRoot";
21+
// Custom styles for SoftAvatar
22+
import SoftAvatarRoot from "components/SoftAvatar/SoftAvatarRoot";
2323

24-
const SuiAvatar = forwardRef(({ bgColor, size, shadow, ...rest }, ref) => (
25-
<SuiAvatarRoot ref={ref} ownerState={{ shadow, bgColor, size }} {...rest} />
24+
const SoftAvatar = forwardRef(({ bgColor, size, shadow, ...rest }, ref) => (
25+
<SoftAvatarRoot ref={ref} ownerState={{ shadow, bgColor, size }} {...rest} />
2626
));
2727

28-
// Setting default values for the props of SuiAvatar
29-
SuiAvatar.defaultProps = {
28+
// Setting default values for the props of SoftAvatar
29+
SoftAvatar.defaultProps = {
3030
bgColor: "transparent",
3131
size: "md",
3232
shadow: "none",
3333
};
3434

35-
// Typechecking props for the SuiAvatar
36-
SuiAvatar.propTypes = {
35+
// Typechecking props for the SoftAvatar
36+
SoftAvatar.propTypes = {
3737
bgColor: PropTypes.oneOf([
3838
"transparent",
3939
"primary",
@@ -49,4 +49,4 @@ SuiAvatar.propTypes = {
4949
shadow: PropTypes.oneOf(["none", "xs", "sm", "md", "lg", "xl", "xxl", "inset"]),
5050
};
5151

52-
export default SuiAvatar;
52+
export default SoftAvatar;

src/components/SuiBadge/index.js renamed to src/components/SoftBadge/index.js

+10-10
Original file line numberDiff line numberDiff line change
@@ -18,24 +18,24 @@ import { forwardRef } from "react";
1818
// prop-types is a library for typechecking of props
1919
import PropTypes from "prop-types";
2020

21-
// Custom styles for the SuiBadge
22-
import SuiBadgeRoot from "components/SuiBadge/SuiBadgeRoot";
21+
// Custom styles for the SoftBadge
22+
import SoftBadgeRoot from "components/SoftBadge/SoftBadgeRoot";
2323

24-
const SuiBadge = forwardRef(
24+
const SoftBadge = forwardRef(
2525
({ color, variant, size, circular, indicator, border, container, children, ...rest }, ref) => (
26-
<SuiBadgeRoot
26+
<SoftBadgeRoot
2727
{...rest}
2828
ownerState={{ color, variant, size, circular, indicator, border, container, children }}
2929
ref={ref}
3030
color="default"
3131
>
3232
{children}
33-
</SuiBadgeRoot>
33+
</SoftBadgeRoot>
3434
)
3535
);
3636

37-
// Setting default values for the props of SuiBadge
38-
SuiBadge.defaultProps = {
37+
// Setting default values for the props of SoftBadge
38+
SoftBadge.defaultProps = {
3939
color: "info",
4040
variant: "gradient",
4141
size: "sm",
@@ -46,8 +46,8 @@ SuiBadge.defaultProps = {
4646
container: false,
4747
};
4848

49-
// Typechecking props of the SuiBadge
50-
SuiBadge.propTypes = {
49+
// Typechecking props of the SoftBadge
50+
SoftBadge.propTypes = {
5151
color: PropTypes.oneOf([
5252
"primary",
5353
"secondary",
@@ -67,4 +67,4 @@ SuiBadge.propTypes = {
6767
container: PropTypes.bool,
6868
};
6969

70-
export default SuiBadge;
70+
export default SoftBadge;

src/components/SuiBox/index.js renamed to src/components/SoftBox/index.js

+9-9
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,21 @@ import { forwardRef } from "react";
1818
// prop-types is a library for typechecking of props
1919
import PropTypes from "prop-types";
2020

21-
// Custom styles for SuiBox
22-
import SuiBoxRoot from "components/SuiBox/SuiBoxRoot";
21+
// Custom styles for SoftBox
22+
import SoftBoxRoot from "components/SoftBox/SoftBoxRoot";
2323

24-
const SuiBox = forwardRef(
24+
const SoftBox = forwardRef(
2525
({ variant, bgColor, color, opacity, borderRadius, shadow, ...rest }, ref) => (
26-
<SuiBoxRoot
26+
<SoftBoxRoot
2727
{...rest}
2828
ref={ref}
2929
ownerState={{ variant, bgColor, color, opacity, borderRadius, shadow }}
3030
/>
3131
)
3232
);
3333

34-
// Setting default values for the props of SuiBox
35-
SuiBox.defaultProps = {
34+
// Setting default values for the props of SoftBox
35+
SoftBox.defaultProps = {
3636
variant: "contained",
3737
bgColor: "transparent",
3838
color: "dark",
@@ -41,8 +41,8 @@ SuiBox.defaultProps = {
4141
shadow: "none",
4242
};
4343

44-
// Typechecking props for the SuiBox
45-
SuiBox.propTypes = {
44+
// Typechecking props for the SoftBox
45+
SoftBox.propTypes = {
4646
variant: PropTypes.oneOf(["contained", "gradient"]),
4747
bgColor: PropTypes.string,
4848
color: PropTypes.string,
@@ -51,4 +51,4 @@ SuiBox.propTypes = {
5151
shadow: PropTypes.string,
5252
};
5353

54-
export default SuiBox;
54+
export default SoftBox;

src/components/SuiButton/index.js renamed to src/components/SoftButton/index.js

+10-10
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ import { forwardRef } from "react";
1818
// prop-types is a library for typechecking of props
1919
import PropTypes from "prop-types";
2020

21-
// Custom styles for SuiButton
22-
import SuiButtonRoot from "components/SuiButton/SuiButtonRoot";
21+
// Custom styles for SoftButton
22+
import SoftButtonRoot from "components/SoftButton/SoftButtonRoot";
2323

24-
const SuiButton = forwardRef(
24+
const SoftButton = forwardRef(
2525
({ color, variant, size, circular, iconOnly, children, ...rest }, ref) => (
26-
<SuiButtonRoot
26+
<SoftButtonRoot
2727
{...rest}
2828
ref={ref}
2929
color="primary"
@@ -32,21 +32,21 @@ const SuiButton = forwardRef(
3232
ownerState={{ color, variant, size, circular, iconOnly }}
3333
>
3434
{children}
35-
</SuiButtonRoot>
35+
</SoftButtonRoot>
3636
)
3737
);
3838

39-
// Setting default values for the props of SuiButton
40-
SuiButton.defaultProps = {
39+
// Setting default values for the props of SoftButton
40+
SoftButton.defaultProps = {
4141
size: "medium",
4242
variant: "contained",
4343
color: "white",
4444
circular: false,
4545
iconOnly: false,
4646
};
4747

48-
// Typechecking props for the SuiButton
49-
SuiButton.propTypes = {
48+
// Typechecking props for the SoftButton
49+
SoftButton.propTypes = {
5050
size: PropTypes.oneOf(["small", "medium", "large"]),
5151
variant: PropTypes.oneOf(["text", "contained", "outlined", "gradient"]),
5252
color: PropTypes.oneOf([
@@ -65,4 +65,4 @@ SuiButton.propTypes = {
6565
children: PropTypes.node.isRequired,
6666
};
6767

68-
export default SuiButton;
68+
export default SoftButton;

0 commit comments

Comments
 (0)