@symply.io/basic-components 1.8.1-alpha.2 → 1.8.1-beta.1
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/Copyright/index.js +2 -2
- package/Copyright/types.d.ts +1 -1
- package/README.md +7 -7
- package/package.json +1 -1
package/Copyright/index.js
CHANGED
|
@@ -15,9 +15,9 @@ import Typography from "@mui/material/Typography";
|
|
|
15
15
|
import ThemeProvider from "@mui/material/styles/ThemeProvider";
|
|
16
16
|
import useCustomTheme from "../useCustomTheme";
|
|
17
17
|
function Copyright(props) {
|
|
18
|
-
var year = props.year, ownerHref = props.ownerHref, ownerLabel = props.ownerLabel,
|
|
18
|
+
var year = props.year, ownerHref = props.ownerHref, ownerLabel = props.ownerLabel, showAllRightsReserved = props.showAllRightsReserved, allRightsReservedLabel = props.allRightsReservedLabel, primaryColor = props.primaryColor, secondaryColor = props.secondaryColor;
|
|
19
19
|
var theme = useCustomTheme({ primaryColor: primaryColor, secondaryColor: secondaryColor });
|
|
20
|
-
return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: _jsxs(Typography, __assign({ sx: { fontSize: 16, fontWeight: 400 }, color: "textSecondary", align: "center" }, { children: ["Copyright © ", year !== null && year !== void 0 ? year : new Date().getFullYear(), "\u00A0", ownerHref ? (_jsx(Link, __assign({ color: "inherit", href: ownerHref }, { children: ownerLabel !== null && ownerLabel !== void 0 ? ownerLabel : "Symply Software Inc" }))) : (ownerLabel !== null && ownerLabel !== void 0 ? ownerLabel : "Symply Software Inc"), ".",
|
|
20
|
+
return (_jsx(ThemeProvider, __assign({ theme: theme }, { children: _jsxs(Typography, __assign({ sx: { fontSize: 16, fontWeight: 400 }, color: "textSecondary", align: "center" }, { children: ["Copyright © ", year !== null && year !== void 0 ? year : new Date().getFullYear(), "\u00A0", ownerHref ? (_jsx(Link, __assign({ color: "inherit", href: ownerHref }, { children: ownerLabel !== null && ownerLabel !== void 0 ? ownerLabel : "Symply Software Inc" }))) : (ownerLabel !== null && ownerLabel !== void 0 ? ownerLabel : "Symply Software Inc"), ".", showAllRightsReserved
|
|
21
21
|
? " ".concat(allRightsReservedLabel || "All Rights Reserved", ".")
|
|
22
22
|
: ""] })) })));
|
|
23
23
|
}
|
package/Copyright/types.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export interface CopyrightProps {
|
|
|
4
4
|
ownerLabel?: string;
|
|
5
5
|
ownerHref?: string;
|
|
6
6
|
allRightsReservedLabel?: string;
|
|
7
|
-
|
|
7
|
+
showAllRightsReserved?: boolean;
|
|
8
8
|
primaryColor?: CSSProperties["color"];
|
|
9
9
|
secondaryColor?: CSSProperties["color"];
|
|
10
10
|
}
|
package/README.md
CHANGED
|
@@ -317,13 +317,13 @@ import Copyright from '@symply.io/basic-components/Copyright';
|
|
|
317
317
|
|
|
318
318
|
<h5>Props</h5>
|
|
319
319
|
|
|
320
|
-
| Name
|
|
321
|
-
|
|
|
322
|
-
| allRightsReservedLabel
|
|
323
|
-
|
|
|
324
|
-
| ownerHref
|
|
325
|
-
| ownerLabel
|
|
326
|
-
| year
|
|
320
|
+
| Name | Type | Default | Required | Description |
|
|
321
|
+
| ---------------------- | ------ | -------------------- | -------- | -------------------------------------------------------- |
|
|
322
|
+
| allRightsReservedLabel | string | All Rights Reserved. | false | The customized label for "All Rights Reserved". |
|
|
323
|
+
| showAllRightsReserved | bool | false | false | If `true` , the "All Rights Reserved" will be displayed. |
|
|
324
|
+
| ownerHref | string | | false | The href ot the owner. |
|
|
325
|
+
| ownerLabel | string | Symply Software Inc | false | The owner of the copyright. |
|
|
326
|
+
| year | string | current year | false | The year of the copyright. |
|
|
327
327
|
|
|
328
328
|
|
|
329
329
|
|