@unitedstatespowersquadrons/components 1.2.18-5 → 1.2.18-6

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 +13 -1
  2. package/package.json +1 -1
package/ActionButton.tsx CHANGED
@@ -23,6 +23,10 @@ const useStyles = createUseStyles({
23
23
  purpleGray: { ...Styles.purple },
24
24
  redColored: { ...Styles.colorizeButton("red") },
25
25
  redGray: { ...Styles.red },
26
+ rightIcon: {
27
+ justifyContent: "flex-end",
28
+ padding: "0 0.3em 0 0.7em",
29
+ },
26
30
  small: { fontSize: "0.8em" },
27
31
  subText: {
28
32
  fontSize: "0.75em",
@@ -136,9 +140,17 @@ const ActionButton = (props: ActionButtonProps) => {
136
140
  } else if ("href" in props) {
137
141
  const { href, inline, linkClassName } = props;
138
142
 
143
+ const buttonClassNames = classNames(
144
+ classes.button,
145
+ colorClassName,
146
+ sizeClassName(),
147
+ rightIcon ? classes.rightIcon : "",
148
+ className
149
+ );
150
+
139
151
  return(
140
152
  <BaseActionButton
141
- className={classNames(classes.button, colorClassName, sizeClassName(), className)}
153
+ className={buttonClassNames}
142
154
  href={href}
143
155
  id={id}
144
156
  linkClassName={classNames(inline ? classes.wrapperLinkInline : classes.wrapperLink, linkClassName)}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unitedstatespowersquadrons/components",
3
- "version": "1.2.18-5",
3
+ "version": "1.2.18-6",
4
4
  "description": "USPS shared React components library",
5
5
  "main": "index.tsx",
6
6
  "scripts": {