@unitedstatespowersquadrons/components 1.2.18-3 → 1.2.18-4

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.
Files changed (2) hide show
  1. package/ActionButton.tsx +8 -2
  2. package/package.json +1 -1
package/ActionButton.tsx CHANGED
@@ -33,6 +33,11 @@ const useStyles = createUseStyles({
33
33
  margin: "0 auto",
34
34
  width: "fit-content",
35
35
  },
36
+ wrapperLinkInline: {
37
+ display: "inline-block",
38
+ margin: "0 auto",
39
+ width: "fit-content",
40
+ },
36
41
  });
37
42
 
38
43
  export interface CoreActionButtonProps extends FontAwesomeProps {
@@ -40,6 +45,7 @@ export interface CoreActionButtonProps extends FontAwesomeProps {
40
45
  color: ButtonColorName;
41
46
  grayMode?: boolean | undefined;
42
47
  id?: string;
48
+ inline?: boolean;
43
49
  rightIcon?: boolean;
44
50
  size?: "big" | "mediumWithMargin" | "medium" | "small" | undefined;
45
51
  subtext?: string;
@@ -129,14 +135,14 @@ const ActionButton = (props: ActionButtonProps) => {
129
135
  </BaseActionButton>
130
136
  );
131
137
  } else if ("href" in props) {
132
- const { href, linkClassName } = props;
138
+ const { href, inline, linkClassName } = props;
133
139
 
134
140
  return(
135
141
  <BaseActionButton
136
142
  className={classNames(classes.button, colorClassName, sizeClassName(), className)}
137
143
  href={href}
138
144
  id={id}
139
- linkClassName={classNames(classes.wrapperLink, linkClassName)}
145
+ linkClassName={classNames(inline ? classes.wrapperLinkInline : classes.wrapperLink, linkClassName)}
140
146
  title={title}
141
147
  >
142
148
  {buttonContents()}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unitedstatespowersquadrons/components",
3
- "version": "1.2.18-3",
3
+ "version": "1.2.18-4",
4
4
  "description": "USPS shared React components library",
5
5
  "main": "index.tsx",
6
6
  "scripts": {