@unitedstatespowersquadrons/components 1.2.18-4 → 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.
- package/ActionButton.tsx +13 -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",
|
|
@@ -35,7 +39,6 @@ const useStyles = createUseStyles({
|
|
|
35
39
|
},
|
|
36
40
|
wrapperLinkInline: {
|
|
37
41
|
display: "inline-block",
|
|
38
|
-
margin: "0 auto",
|
|
39
42
|
width: "fit-content",
|
|
40
43
|
},
|
|
41
44
|
});
|
|
@@ -137,9 +140,17 @@ const ActionButton = (props: ActionButtonProps) => {
|
|
|
137
140
|
} else if ("href" in props) {
|
|
138
141
|
const { href, inline, linkClassName } = props;
|
|
139
142
|
|
|
143
|
+
const buttonClassNames = classNames(
|
|
144
|
+
classes.button,
|
|
145
|
+
colorClassName,
|
|
146
|
+
sizeClassName(),
|
|
147
|
+
rightIcon ? classes.rightIcon : "",
|
|
148
|
+
className
|
|
149
|
+
);
|
|
150
|
+
|
|
140
151
|
return(
|
|
141
152
|
<BaseActionButton
|
|
142
|
-
className={
|
|
153
|
+
className={buttonClassNames}
|
|
143
154
|
href={href}
|
|
144
155
|
id={id}
|
|
145
156
|
linkClassName={classNames(inline ? classes.wrapperLinkInline : classes.wrapperLink, linkClassName)}
|