fis-component 0.0.63 → 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 +17 -8
- 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 +17 -8
- 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,8 +61485,8 @@ function FISProgressCircular({ variant, ...rest }) {
|
|
|
61476
61485
|
FISProgressCircular.displayName = "FISProgressCircular";
|
|
61477
61486
|
|
|
61478
61487
|
const FISIconButton = React.forwardRef((props, ref) => {
|
|
61479
|
-
const {
|
|
61480
|
-
return (jsxRuntime.jsx(ButtonStyled, { ...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" ||
|
|
61488
|
+
const { children, active = false, size = "md", variant = "primary", icon: iconProp, loading = false, disabled = false, ...rest } = props;
|
|
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) }));
|
|
61483
61492
|
});
|
|
@@ -62397,7 +62406,7 @@ 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
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] }));
|
|
@@ -63709,7 +63718,7 @@ const DivIconDotSC = styled.div `
|
|
|
63709
63718
|
|
|
63710
63719
|
const MAX_VISIBLE_ITEMS = 4;
|
|
63711
63720
|
const BreadcrumbItem = React.forwardRef(({ label, icon, active, onClick, ...rest }, ref) => {
|
|
63712
|
-
return (jsxRuntime.jsxs(ButtonItemSC, { ...rest, ref: ref, onClick: onClick, "$active": active, children: [icon && jsxRuntime.jsx(DivIconSC$3, { children: icon }), label && jsxRuntime.jsx(SpanLabelSC$1, { children: label })] }));
|
|
63721
|
+
return (jsxRuntime.jsxs(ButtonItemSC, { type: "button", ...rest, ref: ref, onClick: onClick, "$active": active, children: [icon && jsxRuntime.jsx(DivIconSC$3, { children: icon }), label && jsxRuntime.jsx(SpanLabelSC$1, { children: label })] }));
|
|
63713
63722
|
});
|
|
63714
63723
|
const BreadcrumbEllipsis = () => (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(DivIconDotSC, { children: jsxRuntime.jsx(DotIcon, {}) }), jsxRuntime.jsx(SeparatorIcon, {})] }));
|
|
63715
63724
|
const FISBreadcrumb = ({ items, className }) => {
|
|
@@ -73043,7 +73052,7 @@ const ProgressCircularSC = styled(FISProgressCircular) `
|
|
|
73043
73052
|
`;
|
|
73044
73053
|
|
|
73045
73054
|
const SplitButtonItem = ({ icon, label, size, variant, onButtonClick, disabled = false, activeButton = false, loading = false, ...props }) => {
|
|
73046
|
-
return (jsxRuntime.jsxs(ButtonItem, { ...props, onClick: onButtonClick, "$size": size, disabled: disabled, "$variant": variant, "$active": activeButton, "$loading": loading, children: [loading && (jsxRuntime.jsx(ProgressCircularSC, { size: size, variant: "indeterminate", invert: variant === "primary-white" || variant === "secondary-white", "aria-label": "Loading" })), icon && !(size === "xs") && (jsxRuntime.jsx(DivIcon, { "$size": size, "$variant": variant, "$loading": loading, children: icon })), label && (jsxRuntime.jsx(SpanLabel, { "$size": size, "$variant": variant, "$loading": loading, children: label }))] }));
|
|
73055
|
+
return (jsxRuntime.jsxs(ButtonItem, { type: "button", ...props, onClick: onButtonClick, "$size": size, disabled: disabled, "$variant": variant, "$active": activeButton, "$loading": loading, children: [loading && (jsxRuntime.jsx(ProgressCircularSC, { size: size, variant: "indeterminate", invert: variant === "primary-white" || variant === "secondary-white", "aria-label": "Loading" })), icon && !(size === "xs") && (jsxRuntime.jsx(DivIcon, { "$size": size, "$variant": variant, "$loading": loading, children: icon })), label && (jsxRuntime.jsx(SpanLabel, { "$size": size, "$variant": variant, "$loading": loading, children: label }))] }));
|
|
73047
73056
|
};
|
|
73048
73057
|
var SplitButtonItem$1 = React.memo(SplitButtonItem);
|
|
73049
73058
|
|
|
@@ -73639,7 +73648,7 @@ const FISPagination = ({ pageSize = LIMIT_DEFAULT, current = 1, total = 0, minim
|
|
|
73639
73648
|
}
|
|
73640
73649
|
return originalElement;
|
|
73641
73650
|
};
|
|
73642
|
-
return (jsxRuntime.jsxs(DivPaginationContainer, { children: [jsxRuntime.jsx(SpanTotalSC, { children: showTotal ? showTotal(total, rangeRecords) : defaultShowTotal }), jsxRuntime.jsxs(DivPaginationContent, { children: [jsxRuntime.jsx(PaginationAntdSC, { ...mergedProps, "$minimize": Boolean(minimize), showSizeChanger: false, itemRender: itemRender }), jsxRuntime.jsx(FISSelect, { style: { width: "
|
|
73651
|
+
return (jsxRuntime.jsxs(DivPaginationContainer, { children: [jsxRuntime.jsx(SpanTotalSC, { children: showTotal ? showTotal(total, rangeRecords) : defaultShowTotal }), jsxRuntime.jsxs(DivPaginationContent, { children: [jsxRuntime.jsx(PaginationAntdSC, { ...mergedProps, "$minimize": Boolean(minimize), showSizeChanger: false, itemRender: itemRender }), jsxRuntime.jsx(FISSelect, { style: { width: "100px" }, size: "xs", options: [
|
|
73643
73652
|
{
|
|
73644
73653
|
groupLabel: "",
|
|
73645
73654
|
items: (rest.pageSizeOptions || [10, 20, 50, 100]).map((size) => ({
|