@unitedstatespowersquadrons/components 1.4.14 → 1.4.16

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/Badges/Branch.tsx CHANGED
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { github, shields } from "./remotes";
2
+ import { githubOrg, shields } from "./remotes";
3
3
  import { badgeify } from "./helpers";
4
4
 
5
5
  interface Props {
@@ -18,7 +18,9 @@ const BranchBadge = (props: Props) => {
18
18
  const img = <img src={`${shields}/badge/${name}-${color}?logo=git&logoColor=white`} />;
19
19
  if (!effectiveRepo) return img;
20
20
 
21
- return <a href={`${github}/${effectiveRepo}/compare/${branch}?expand=1`} rel="noreferrer" target="_blank">{img}</a>;
21
+ return(
22
+ <a href={`${githubOrg}/${effectiveRepo}/compare/${branch}?expand=1`} rel="noreferrer" target="_blank">{img}</a>
23
+ );
22
24
  };
23
25
 
24
26
  export default BranchBadge;
package/Badges/Commit.tsx CHANGED
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { github, shields } from "./remotes";
2
+ import { githubOrg, shields } from "./remotes";
3
3
 
4
4
  interface Props {
5
5
  commit: string;
@@ -12,7 +12,7 @@ const CommitBadge = (props: Props) => {
12
12
  const img = <img src={`${shields}/badge/sha-${commit.slice(0, 12)}-purple`} />;
13
13
  if (!repo) return img;
14
14
 
15
- return <a href={`${github}/${repo}/commit/${commit}`} rel="noreferrer" target="_blank">{img}</a>;
15
+ return <a href={`${githubOrg}/${repo}/commit/${commit}`} rel="noreferrer" target="_blank">{img}</a>;
16
16
  };
17
17
 
18
18
  export default CommitBadge;
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import Badge from "./Badge";
3
- import { github } from "./remotes";
3
+ import { githubOrg } from "./remotes";
4
4
  import { versionColor } from "./helpers";
5
5
 
6
6
  interface Props {
@@ -12,7 +12,7 @@ const PhpLibraryBadge = (props: Props) => {
12
12
  const { php, version } = props;
13
13
 
14
14
  return(
15
- <a href={`${github}/${php}`} rel="noreferrer" target="_blank">
15
+ <a href={`${githubOrg}/${php}`} rel="noreferrer" target="_blank">
16
16
  <Badge
17
17
  color={versionColor(version)}
18
18
  content={version}
package/Badges/Repo.tsx CHANGED
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { github, shields } from "./remotes";
2
+ import { githubOrg, shields } from "./remotes";
3
3
 
4
4
  interface Props {
5
5
  repo: string;
@@ -9,7 +9,7 @@ const RepoBadge = (props: Props) => {
9
9
  const { repo } = props;
10
10
 
11
11
  return(
12
- <a href={`${github}/${repo}`} rel="noreferrer" target="_blank">
12
+ <a href={`${githubOrg}/${repo}`} rel="noreferrer" target="_blank">
13
13
  <img src={`${shields}/badge/repo-gray?logo=github`} />
14
14
  </a>
15
15
  );
package/Badges/Tag.tsx CHANGED
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import Badge from "./Badge";
3
3
  import { badgeify, versionColor } from "./helpers";
4
- import { github } from "./remotes";
4
+ import { githubOrg } from "./remotes";
5
5
 
6
6
  interface Props {
7
7
  version: string;
@@ -22,7 +22,7 @@ const TagBadge = (props: Props) => {
22
22
  />);
23
23
 
24
24
  if (repo) {
25
- return <a href={`${github}/${repo}`} rel="noreferrer" target="_blank">{badge}</a>;
25
+ return <a href={`${githubOrg}/${repo}`} rel="noreferrer" target="_blank">{badge}</a>;
26
26
  } else {
27
27
  return badge;
28
28
  }
package/Badges/remotes.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  export const shields = "https://img.shields.io";
2
- export const github = "https://github.com/unitedstatespowersquadrons";
2
+ export const github = "https://github.com";
3
+ export const githubOrg = `${github}/unitedstatespowersquadrons`;
package/Colors.tsx CHANGED
@@ -142,8 +142,8 @@ const specificColors = {
142
142
  toast: {
143
143
  broadcast: hoverColors.purple,
144
144
  error: "#CC0000",
145
- notice: "#009900",
146
- success: "#000099",
145
+ notice: "#000099",
146
+ success: "#009900",
147
147
  },
148
148
  };
149
149
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unitedstatespowersquadrons/components",
3
- "version": "1.4.14",
3
+ "version": "1.4.16",
4
4
  "description": "USPS shared React components library",
5
5
  "main": "index.tsx",
6
6
  "scripts": {