fis-component 0.0.63 → 0.0.64
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 +5 -5
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +5 -5
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -61477,7 +61477,7 @@ FISProgressCircular.displayName = "FISProgressCircular";
|
|
|
61477
61477
|
|
|
61478
61478
|
const FISIconButton = React.forwardRef((props, ref) => {
|
|
61479
61479
|
const { type, children, active = false, size = "md", variant = "primary", icon: iconProp, loading = false, disabled = false, ...rest } = props;
|
|
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" ||
|
|
61480
|
+
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
61481
|
variant === "secondary-white" ||
|
|
61482
61482
|
variant === "secondary-invisible-white" })) : (iconProp) }));
|
|
61483
61483
|
});
|
|
@@ -62400,7 +62400,7 @@ const FISButton = React.forwardRef((props, ref) => {
|
|
|
62400
62400
|
const { active, type, children, size = "md", variant = "primary", loading, disabled = false, startIcon: startIconProp, endIcon: endIconProp, ...rest } = props;
|
|
62401
62401
|
const startIcon = startIconProp && jsxRuntime.jsx(SpanIconSC$2, { children: startIconProp });
|
|
62402
62402
|
const endIcon = endIconProp && jsxRuntime.jsx(SpanIconSC$2, { children: endIconProp });
|
|
62403
|
-
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] }));
|
|
62403
|
+
return (jsxRuntime.jsxs(ButtonSC, { type: "button", ...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
62404
|
});
|
|
62405
62405
|
FISButton.displayName = "FISButton";
|
|
62406
62406
|
|
|
@@ -63709,7 +63709,7 @@ const DivIconDotSC = styled.div `
|
|
|
63709
63709
|
|
|
63710
63710
|
const MAX_VISIBLE_ITEMS = 4;
|
|
63711
63711
|
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 })] }));
|
|
63712
|
+
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
63713
|
});
|
|
63714
63714
|
const BreadcrumbEllipsis = () => (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(DivIconDotSC, { children: jsxRuntime.jsx(DotIcon, {}) }), jsxRuntime.jsx(SeparatorIcon, {})] }));
|
|
63715
63715
|
const FISBreadcrumb = ({ items, className }) => {
|
|
@@ -73043,7 +73043,7 @@ const ProgressCircularSC = styled(FISProgressCircular) `
|
|
|
73043
73043
|
`;
|
|
73044
73044
|
|
|
73045
73045
|
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 }))] }));
|
|
73046
|
+
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
73047
|
};
|
|
73048
73048
|
var SplitButtonItem$1 = React.memo(SplitButtonItem);
|
|
73049
73049
|
|
|
@@ -73639,7 +73639,7 @@ const FISPagination = ({ pageSize = LIMIT_DEFAULT, current = 1, total = 0, minim
|
|
|
73639
73639
|
}
|
|
73640
73640
|
return originalElement;
|
|
73641
73641
|
};
|
|
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: "
|
|
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: "100px" }, size: "xs", options: [
|
|
73643
73643
|
{
|
|
73644
73644
|
groupLabel: "",
|
|
73645
73645
|
items: (rest.pageSizeOptions || [10, 20, 50, 100]).map((size) => ({
|