fis-component 0.0.62 → 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/esm/index.js CHANGED
@@ -61457,7 +61457,7 @@ FISProgressCircular.displayName = "FISProgressCircular";
61457
61457
 
61458
61458
  const FISIconButton = forwardRef((props, ref) => {
61459
61459
  const { type, children, active = false, size = "md", variant = "primary", icon: iconProp, loading = false, disabled = false, ...rest } = props;
61460
- return (jsx(ButtonStyled, { ...rest, ref: ref, "$variant": variant, "$size": size, "$active": active, "$loading": loading, disabled: disabled || loading, children: loading ? (jsx(FISProgressCircular, { size: size, variant: "indeterminate", invert: variant === "primary-white" ||
61460
+ return (jsx(ButtonStyled, { type: "button", ...rest, ref: ref, "$variant": variant, "$size": size, "$active": active, "$loading": loading, disabled: disabled || loading, children: loading ? (jsx(FISProgressCircular, { size: size, variant: "indeterminate", invert: variant === "primary-white" ||
61461
61461
  variant === "secondary-white" ||
61462
61462
  variant === "secondary-invisible-white" })) : (iconProp) }));
61463
61463
  });
@@ -62380,7 +62380,7 @@ const FISButton = forwardRef((props, ref) => {
62380
62380
  const { active, type, children, size = "md", variant = "primary", loading, disabled = false, startIcon: startIconProp, endIcon: endIconProp, ...rest } = props;
62381
62381
  const startIcon = startIconProp && jsx(SpanIconSC$2, { children: startIconProp });
62382
62382
  const endIcon = endIconProp && jsx(SpanIconSC$2, { children: endIconProp });
62383
- return (jsxs(ButtonSC, { ...rest, ref: ref, "$variant": variant, "$size": size, "$active": active, "$loading": loading, disabled: disabled || loading, children: [loading && (jsx(ProgressCircularSC$1, { size: size, variant: "indeterminate", invert: variant === "primary-white" || variant === "secondary-white" })), startIcon, jsx("span", { className: "button-content", children: children }), endIcon] }));
62383
+ return (jsxs(ButtonSC, { type: "button", ...rest, ref: ref, "$variant": variant, "$size": size, "$active": active, "$loading": loading, disabled: disabled || loading, children: [loading && (jsx(ProgressCircularSC$1, { size: size, variant: "indeterminate", invert: variant === "primary-white" || variant === "secondary-white" })), startIcon, jsx("span", { className: "button-content", children: children }), endIcon] }));
62384
62384
  });
62385
62385
  FISButton.displayName = "FISButton";
62386
62386
 
@@ -63689,7 +63689,7 @@ const DivIconDotSC = styled.div `
63689
63689
 
63690
63690
  const MAX_VISIBLE_ITEMS = 4;
63691
63691
  const BreadcrumbItem = forwardRef(({ label, icon, active, onClick, ...rest }, ref) => {
63692
- return (jsxs(ButtonItemSC, { ...rest, ref: ref, onClick: onClick, "$active": active, children: [icon && jsx(DivIconSC$3, { children: icon }), label && jsx(SpanLabelSC$1, { children: label })] }));
63692
+ return (jsxs(ButtonItemSC, { type: "button", ...rest, ref: ref, onClick: onClick, "$active": active, children: [icon && jsx(DivIconSC$3, { children: icon }), label && jsx(SpanLabelSC$1, { children: label })] }));
63693
63693
  });
63694
63694
  const BreadcrumbEllipsis = () => (jsxs(Fragment, { children: [jsx(DivIconDotSC, { children: jsx(DotIcon, {}) }), jsx(SeparatorIcon, {})] }));
63695
63695
  const FISBreadcrumb = ({ items, className }) => {
@@ -73023,7 +73023,7 @@ const ProgressCircularSC = styled(FISProgressCircular) `
73023
73023
  `;
73024
73024
 
73025
73025
  const SplitButtonItem = ({ icon, label, size, variant, onButtonClick, disabled = false, activeButton = false, loading = false, ...props }) => {
73026
- return (jsxs(ButtonItem, { ...props, onClick: onButtonClick, "$size": size, disabled: disabled, "$variant": variant, "$active": activeButton, "$loading": loading, children: [loading && (jsx(ProgressCircularSC, { size: size, variant: "indeterminate", invert: variant === "primary-white" || variant === "secondary-white", "aria-label": "Loading" })), icon && !(size === "xs") && (jsx(DivIcon, { "$size": size, "$variant": variant, "$loading": loading, children: icon })), label && (jsx(SpanLabel, { "$size": size, "$variant": variant, "$loading": loading, children: label }))] }));
73026
+ return (jsxs(ButtonItem, { type: "button", ...props, onClick: onButtonClick, "$size": size, disabled: disabled, "$variant": variant, "$active": activeButton, "$loading": loading, children: [loading && (jsx(ProgressCircularSC, { size: size, variant: "indeterminate", invert: variant === "primary-white" || variant === "secondary-white", "aria-label": "Loading" })), icon && !(size === "xs") && (jsx(DivIcon, { "$size": size, "$variant": variant, "$loading": loading, children: icon })), label && (jsx(SpanLabel, { "$size": size, "$variant": variant, "$loading": loading, children: label }))] }));
73027
73027
  };
73028
73028
  var SplitButtonItem$1 = memo(SplitButtonItem);
73029
73029
 
@@ -73350,7 +73350,7 @@ const FISSelect = forwardRef(({ className, style, size = "md", options, value, d
73350
73350
  ];
73351
73351
  }, [options, value, multi]);
73352
73352
  const selectedItems = useMemo$1(() => {
73353
- const allItems = originalOptionsRef.current.flatMap((group) => group.items);
73353
+ const allItems = options.flatMap((group) => group.items);
73354
73354
  if (multi) {
73355
73355
  return allItems.filter((item) => value.includes(item.value));
73356
73356
  }
@@ -73358,7 +73358,7 @@ const FISSelect = forwardRef(({ className, style, size = "md", options, value, d
73358
73358
  const found = allItems.find((item) => item.value === value);
73359
73359
  return found ? [found] : [];
73360
73360
  }
73361
- }, [value, multi]);
73361
+ }, [value, multi, options]);
73362
73362
  const computedDisplayValue = () => {
73363
73363
  if (multi) {
73364
73364
  const count = value.length;
@@ -73619,7 +73619,7 @@ const FISPagination = ({ pageSize = LIMIT_DEFAULT, current = 1, total = 0, minim
73619
73619
  }
73620
73620
  return originalElement;
73621
73621
  };
73622
- return (jsxs(DivPaginationContainer, { children: [jsx(SpanTotalSC, { children: showTotal ? showTotal(total, rangeRecords) : defaultShowTotal }), jsxs(DivPaginationContent, { children: [jsx(PaginationAntdSC, { ...mergedProps, "$minimize": Boolean(minimize), showSizeChanger: false, itemRender: itemRender }), jsx(FISSelect, { style: { width: "94px" }, size: "xs", options: [
73622
+ return (jsxs(DivPaginationContainer, { children: [jsx(SpanTotalSC, { children: showTotal ? showTotal(total, rangeRecords) : defaultShowTotal }), jsxs(DivPaginationContent, { children: [jsx(PaginationAntdSC, { ...mergedProps, "$minimize": Boolean(minimize), showSizeChanger: false, itemRender: itemRender }), jsx(FISSelect, { style: { width: "100px" }, size: "xs", options: [
73623
73623
  {
73624
73624
  groupLabel: "",
73625
73625
  items: (rest.pageSizeOptions || [10, 20, 50, 100]).map((size) => ({