fis-component 0.1.34 → 0.1.35

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 CHANGED
@@ -67196,10 +67196,6 @@ const DivContainerSC$4 = styled.div `
67196
67196
  background-color: ${getTheme("com/input/field/disable/background-color")};
67197
67197
  }
67198
67198
 
67199
- &:has(${InputSC$1}:disabled) {
67200
- pointer-events: none;
67201
- }
67202
-
67203
67199
  &.negative {
67204
67200
  outline-color: ${getTheme("com/input/field/negative/border/default")};
67205
67201
  background-color: ${getTheme("com/input/field/negative/background/default")};
@@ -72344,7 +72340,7 @@ const DivContainer = styled.div `
72344
72340
  }
72345
72341
  }}
72346
72342
 
72347
- &:hover:not(:has(.button-icon:hover)) {
72343
+ &:hover:not(:has(.button-icon:hover)):not(.disabled) {
72348
72344
  outline-offset: -${getTheme("com/chips-button/stroke-width/hover")};
72349
72345
  ${(props) => {
72350
72346
  switch (props.$theme) {
@@ -72589,7 +72585,6 @@ const DivContainer = styled.div `
72589
72585
  if ($disabled) {
72590
72586
  return styled.css `
72591
72587
  cursor: not-allowed;
72592
- pointer-events: none;
72593
72588
  background-color: ${getTheme("com/chips-button/disable/background-color")};
72594
72589
  outline: ${getTheme("com/chips-button/stroke-width/default")} solid
72595
72590
  ${getTheme("com/chips-button/disable/color-stroke")};
@@ -72680,11 +72675,11 @@ const DivIcon$1 = styled.div `
72680
72675
  }
72681
72676
  }}
72682
72677
 
72683
- ${DivContainer}:hover:not(:has(.button-icon:hover)) & {
72678
+ ${DivContainer}:hover:not(:has(.button-icon:hover)):not(.disabled) & {
72684
72679
  ${iconStateColor("hover")}
72685
72680
  }
72686
72681
 
72687
- ${DivContainer}:active & {
72682
+ ${DivContainer}:active:not(.disabled) & {
72688
72683
  ${iconStateColor("pressed")}
72689
72684
  }
72690
72685
 
@@ -72795,11 +72790,11 @@ const SpanLabel$1 = styled.span `
72795
72790
  }
72796
72791
  }}
72797
72792
 
72798
- ${DivContainer}:hover:not(:has(.button-icon:hover)) & {
72793
+ ${DivContainer}:hover:not(:has(.button-icon:hover)):not(.disabled) & {
72799
72794
  ${labelStateColor("hover")}
72800
72795
  }
72801
72796
 
72802
- ${DivContainer}:active & {
72797
+ ${DivContainer}:active:not(.disabled) & {
72803
72798
  ${labelStateColor("pressed")}
72804
72799
  }
72805
72800
 
@@ -72868,7 +72863,8 @@ const FISChipButton = React.forwardRef((props, ref) => {
72868
72863
  : size === "md"
72869
72864
  ? "sm"
72870
72865
  : "md";
72871
- return (jsxRuntime.jsxs(DivContainer, { ...rest, ref: ref, "$size": size, "$theme": theme, "$rounded": rounded, "$disabled": disabled, className: classNames(className, {
72866
+ return (jsxRuntime.jsxs(DivContainer, { ...rest, ref: ref, "$size": size, "$theme": theme, "$rounded": rounded, "$disabled": disabled, onClick: disabled ? undefined : rest.onClick, className: classNames(className, {
72867
+ disabled,
72872
72868
  selected,
72873
72869
  "no-padding": closeable,
72874
72870
  // "no-padding-horizontal": !closeable && !icon && !srcAvatar,
@@ -73804,8 +73800,10 @@ const DivColumnCellContainerSC = styled.div `
73804
73800
  background-color: transparent;
73805
73801
  }
73806
73802
  background-color: ${getTheme("com/table/row-cell/disable/background-color")};
73807
- pointer-events: none;
73808
73803
  cursor: not-allowed;
73804
+ .icon-box {
73805
+ pointer-events: none;
73806
+ }
73809
73807
  .content {
73810
73808
  color: ${getTheme("com/table/row-cell/disable/label/color-text")};
73811
73809
  }
@@ -73911,7 +73909,7 @@ const DivIconSC = styled.div `
73911
73909
  `;
73912
73910
 
73913
73911
  const FISTableCell = React.forwardRef(({ className, textAlign, variant = COLUMN_VARIANT.PRIMARY, content, description, icon, disabled, hasBorder, onChange, contentWrapText = false, tooltip = false, placement = "top", variantTooltip = "primary", ...rest }, ref) => {
73914
- return (jsxRuntime.jsx(FISTooltip, { variant: variantTooltip, placement: placement, title: tooltip ? content || "" : undefined, children: jsxRuntime.jsx(DivColumnCellContainerSC, { "$hasBorder": hasBorder, "$disabled": disabled, "$variant": variant, "$textAlign": textAlign, "$contentWrapText": contentWrapText, "$hasContent": content ? "true" : undefined, "$hasDescription": description, ref: ref, className: classNames("column-cell-container", className), ...rest, children: textAlign === COLUMN_TEXT_ALIGN.SINGLE_LINE ? (jsxRuntime.jsxs("div", { className: "single-line-content", children: [icon && (jsxRuntime.jsx("div", { className: "icon-box", children: jsxRuntime.jsx(DivIconSC, { "$textAlign": textAlign, "$variant": variant, "$disabled": disabled, "$hasContent": content ? "true" : undefined, "$hasDescription": description, children: icon }) })), (content || description) && (jsxRuntime.jsxs("div", { className: "content-box", children: [content && jsxRuntime.jsx("div", { className: "content", children: content }), description && (jsxRuntime.jsx("div", { className: "description", children: description }))] }))] })) : (jsxRuntime.jsxs("div", { className: "left-right-content", children: [(icon || content) && (jsxRuntime.jsxs("div", { className: "content-box", children: [icon && (jsxRuntime.jsx(DivIconSC, { "$textAlign": textAlign, "$variant": variant, "$disabled": disabled, "$hasContent": content ? "true" : undefined, "$hasDescription": description, children: icon })), content && jsxRuntime.jsx("div", { className: "content", children: content })] })), description && jsxRuntime.jsx("div", { className: "description", children: description })] })) }) }));
73912
+ return (jsxRuntime.jsx(FISTooltip, { variant: variantTooltip, placement: placement, title: tooltip ? content || "" : undefined, children: jsxRuntime.jsx(DivColumnCellContainerSC, { "$hasBorder": hasBorder, "$disabled": disabled, "$variant": variant, "$textAlign": textAlign, "$contentWrapText": contentWrapText, "$hasContent": content ? "true" : undefined, "$hasDescription": description, ref: ref, className: classNames("column-cell-container", className), ...rest, onClick: disabled ? undefined : rest.onClick, children: textAlign === COLUMN_TEXT_ALIGN.SINGLE_LINE ? (jsxRuntime.jsxs("div", { className: "single-line-content", children: [icon && (jsxRuntime.jsx("div", { className: "icon-box", children: jsxRuntime.jsx(DivIconSC, { "$textAlign": textAlign, "$variant": variant, "$disabled": disabled, "$hasContent": content ? "true" : undefined, "$hasDescription": description, children: icon }) })), (content || description) && (jsxRuntime.jsxs("div", { className: "content-box", children: [content && jsxRuntime.jsx("div", { className: "content", children: content }), description && (jsxRuntime.jsx("div", { className: "description", children: description }))] }))] })) : (jsxRuntime.jsxs("div", { className: "left-right-content", children: [(icon || content) && (jsxRuntime.jsxs("div", { className: "content-box", children: [icon && (jsxRuntime.jsx(DivIconSC, { "$textAlign": textAlign, "$variant": variant, "$disabled": disabled, "$hasContent": content ? "true" : undefined, "$hasDescription": description, children: icon })), content && jsxRuntime.jsx("div", { className: "content", children: content })] })), description && jsxRuntime.jsx("div", { className: "description", children: description })] })) }) }));
73915
73913
  });
73916
73914
  FISTableCell.displayName = "FISTableCell";
73917
73915
 
@@ -75966,7 +75964,7 @@ const FISSelect = React.forwardRef(({ className, style, size = "md", options, va
75966
75964
  }
75967
75965
  }, [isOpen, multi]);
75968
75966
  const renderSelectInput = () => {
75969
- const selectInput = (jsxRuntime.jsx(DivInputWrapperSC, { ref: setReferenceElement, onClick: handleToggle, "$hasValue": !!value, children: jsxRuntime.jsx(FISSelectItem, { ...restProps, onBlur: handleBlur, ref: inputRef, size: size, placeholder: placeholder, iconSuffix: isOpen ? jsxRuntime.jsx(ArrowUpIcon, {}) : jsxRuntime.jsx(ArrowDownIcon, {}), value: computedDisplayValue, onChange: () => undefined, disabled: disabled, activeDropdown: isOpen, negative: negative }) }));
75967
+ const selectInput = (jsxRuntime.jsx(DivInputWrapperSC, { ref: setReferenceElement, onClick: handleToggle, "$hasValue": !!value && !disabled, children: jsxRuntime.jsx(FISSelectItem, { ...restProps, onBlur: handleBlur, ref: inputRef, size: size, placeholder: placeholder, iconSuffix: isOpen ? jsxRuntime.jsx(ArrowUpIcon, {}) : jsxRuntime.jsx(ArrowDownIcon, {}), value: computedDisplayValue, onChange: () => undefined, disabled: disabled, activeDropdown: isOpen, negative: negative }) }));
75970
75968
  if (tooltipTitle) {
75971
75969
  return (jsxRuntime.jsx(FISTooltip, { title: tooltipTitle, variant: tooltipVariant, smartPlacement: true, children: selectInput }));
75972
75970
  }