fis-component 0.0.64 → 0.0.65
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/dist/cjs/index.js +14 -5
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/src/components/LinkButton/index.d.ts +4 -0
- package/dist/cjs/types/src/components/LinkButton/styles.d.ts +1 -0
- package/dist/esm/index.js +14 -5
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/src/components/LinkButton/index.d.ts +4 -0
- package/dist/esm/types/src/components/LinkButton/styles.d.ts +1 -0
- package/dist/index.d.ts +4 -0
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -60852,6 +60852,15 @@ const LinkButtonStyled = styled.button `
|
|
|
60852
60852
|
styled.css `
|
|
60853
60853
|
text-decoration: underline;
|
|
60854
60854
|
`}
|
|
60855
|
+
|
|
60856
|
+
${(props) => props.$singleLine &&
|
|
60857
|
+
styled.css `
|
|
60858
|
+
.button-content {
|
|
60859
|
+
white-space: nowrap;
|
|
60860
|
+
overflow: hidden;
|
|
60861
|
+
text-overflow: ellipsis;
|
|
60862
|
+
}
|
|
60863
|
+
`}
|
|
60855
60864
|
`;
|
|
60856
60865
|
const IconStyled$1 = styled.span `
|
|
60857
60866
|
display: inline-flex;
|
|
@@ -60859,10 +60868,10 @@ const IconStyled$1 = styled.span `
|
|
|
60859
60868
|
`;
|
|
60860
60869
|
|
|
60861
60870
|
const FISLinkButton = React.forwardRef((props, ref) => {
|
|
60862
|
-
const {
|
|
60871
|
+
const { children, size = "sm", variant = "default", underline, startIcon: startIconProp, endIcon: endIconProp, singleLine = false, ...rest } = props;
|
|
60863
60872
|
const startIcon = startIconProp && (jsxRuntime.jsx(IconStyled$1, { className: "button-icon", children: startIconProp }));
|
|
60864
60873
|
const endIcon = endIconProp && (jsxRuntime.jsx(IconStyled$1, { className: "button-icon", children: endIconProp }));
|
|
60865
|
-
return (jsxRuntime.jsxs(LinkButtonStyled, { ...rest, ref: ref, "$variant": variant, "$size": size, "$underline": underline, children: [startIcon, jsxRuntime.jsx("span", { className: "button-content", children: children }), endIcon] }));
|
|
60874
|
+
return (jsxRuntime.jsxs(LinkButtonStyled, { ...rest, ref: ref, "$variant": variant, "$size": size, "$underline": underline, "$singleLine": singleLine, children: [startIcon, jsxRuntime.jsx("span", { className: "button-content", children: children }), endIcon] }));
|
|
60866
60875
|
});
|
|
60867
60876
|
FISLinkButton.displayName = "FISLinkButton";
|
|
60868
60877
|
|
|
@@ -61476,7 +61485,7 @@ function FISProgressCircular({ variant, ...rest }) {
|
|
|
61476
61485
|
FISProgressCircular.displayName = "FISProgressCircular";
|
|
61477
61486
|
|
|
61478
61487
|
const FISIconButton = React.forwardRef((props, ref) => {
|
|
61479
|
-
const {
|
|
61488
|
+
const { children, active = false, size = "md", variant = "primary", icon: iconProp, loading = false, disabled = false, ...rest } = props;
|
|
61480
61489
|
return (jsxRuntime.jsx(ButtonStyled, { type: "button", ...rest, ref: ref, "$variant": variant, "$size": size, "$active": active, "$loading": loading, disabled: disabled || loading, children: loading ? (jsxRuntime.jsx(FISProgressCircular, { size: size, variant: "indeterminate", invert: variant === "primary-white" ||
|
|
61481
61490
|
variant === "secondary-white" ||
|
|
61482
61491
|
variant === "secondary-invisible-white" })) : (iconProp) }));
|
|
@@ -62397,10 +62406,10 @@ const ProgressCircularSC$1 = styled(FISProgressCircular) `
|
|
|
62397
62406
|
`;
|
|
62398
62407
|
|
|
62399
62408
|
const FISButton = React.forwardRef((props, ref) => {
|
|
62400
|
-
const { active,
|
|
62409
|
+
const { active, children, size = "md", variant = "primary", loading, disabled = false, startIcon: startIconProp, endIcon: endIconProp, ...rest } = props;
|
|
62401
62410
|
const startIcon = startIconProp && jsxRuntime.jsx(SpanIconSC$2, { children: startIconProp });
|
|
62402
62411
|
const endIcon = endIconProp && jsxRuntime.jsx(SpanIconSC$2, { children: endIconProp });
|
|
62403
|
-
return (jsxRuntime.jsxs(ButtonSC, {
|
|
62412
|
+
return (jsxRuntime.jsxs(ButtonSC, { ...rest, ref: ref, "$variant": variant, "$size": size, "$active": active, "$loading": loading, disabled: disabled || loading, children: [loading && (jsxRuntime.jsx(ProgressCircularSC$1, { size: size, variant: "indeterminate", invert: variant === "primary-white" || variant === "secondary-white" })), startIcon, jsxRuntime.jsx("span", { className: "button-content", children: children }), endIcon] }));
|
|
62404
62413
|
});
|
|
62405
62414
|
FISButton.displayName = "FISButton";
|
|
62406
62415
|
|