fis-component 0.0.40 → 0.0.42

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
@@ -71020,7 +71020,8 @@ const DivTableContainerSC = styled.div `
71020
71020
  vertical-align: ${(props) => props?.$verticalHeader || "center"};
71021
71021
  border-bottom: ${getTheme("com/table/row-cell/divider/stroke-width")}
71022
71022
  solid ${getTheme("com/table/title-cell/divider/color-stroke")};
71023
- padding: ${getTheme("com/table/title-cell/vertical-padding")} 0
71023
+ padding: ${getTheme("com/table/title-cell/vertical-padding")}
71024
+ ${getTheme("com/table/title-cell/horizontal-padding")}
71024
71025
  ${getTheme("com/table/title-cell/vertical-padding")}
71025
71026
  ${getTheme("com/table/title-cell/horizontal-padding")} !important;
71026
71027
  background-color: ${getTheme("com/table/title-cell/default/background-color")};
@@ -71205,7 +71206,6 @@ const DivHeaderCellContainerSC = styled.div `
71205
71206
  align-items: flex-start;
71206
71207
  box-sizing: border-box;
71207
71208
  gap: ${getTheme("com/table/title-cell/vertical-gap")};
71208
- padding-right: ${getTheme("com/table/title-cell/horizontal-padding")};
71209
71209
  ${(props) => {
71210
71210
  if (props.$onlyIcon) {
71211
71211
  return styled.css `
@@ -71217,7 +71217,7 @@ const DivHeaderCellContainerSC = styled.div `
71217
71217
 
71218
71218
  .cell-content {
71219
71219
  display: flex;
71220
- justify-content: ${(props) => props.$align === "right" ? "flex-end" : "space-between"};
71220
+ justify-content: ${(props) => props.$textAlign === "right" ? "flex-end" : "space-between"};
71221
71221
  min-height: ${getTheme("com/segmented/item/active-surface/size-sm/height")};
71222
71222
  width: 100%;
71223
71223
  gap: ${getTheme("com/table/title-cell/default/label/vertical-gap")};
@@ -71226,7 +71226,7 @@ const DivHeaderCellContainerSC = styled.div `
71226
71226
  ${getTheme("Label/XS")};
71227
71227
  width: 100%;
71228
71228
  display: inline-block;
71229
- ${(props) => (props.$align === "right" ? "text-align: end" : "")};
71229
+ ${(props) => (props.$textAlign === "right" ? "text-align: end" : "")};
71230
71230
  color: ${(props) => getTheme(`com/table/title-cell/${props?.$disabled ? "disable" : "default"}/label/color-text`)};
71231
71231
 
71232
71232
  ${(props) => {
@@ -71279,8 +71279,8 @@ const DivHeaderCellContainerSC = styled.div `
71279
71279
  }
71280
71280
  `;
71281
71281
 
71282
- const FISTableHeaderCell = React.forwardRef(({ className, textAlign, label, description, rightComponent, disabled, hasRightDivider = true, hasTruncateLabel = false, onlyIcon = false, align = "left", ...rest }, ref) => {
71283
- return (jsxRuntime.jsx(DivHeaderCellContainerSC, { ref: ref, className: classNames("header-cell-container", className), "$textAlign": textAlign, "$disabled": disabled, "$hasTruncateLabel": hasTruncateLabel, "$hasRightDivider": hasRightDivider, "$align": align, "$onlyIcon": onlyIcon, ...rest, children: jsxRuntime.jsxs("div", { className: "header-cell-content", children: [jsxRuntime.jsxs("div", { className: "cell-content", children: [label && jsxRuntime.jsx("div", { className: "label", children: label }), jsxRuntime.jsx("div", { className: "right-component-father", children: jsxRuntime.jsx("div", { className: "right-component-child", children: rightComponent }) })] }), jsxRuntime.jsx("div", { className: "cell-content", children: description && jsxRuntime.jsx("div", { className: "description", children: description }) })] }) }));
71282
+ const FISTableHeaderCell = React.forwardRef(({ className, label, description, rightComponent, disabled, hasRightDivider = true, hasTruncateLabel = false, onlyIcon = false, textAlign = "left", ...rest }, ref) => {
71283
+ return (jsxRuntime.jsx(DivHeaderCellContainerSC, { ref: ref, className: classNames("header-cell-container", className), "$textAlign": textAlign, "$disabled": disabled, "$hasTruncateLabel": hasTruncateLabel, "$hasRightDivider": hasRightDivider, "$onlyIcon": onlyIcon, ...rest, children: jsxRuntime.jsxs("div", { className: "header-cell-content", children: [jsxRuntime.jsxs("div", { className: "cell-content", children: [label && jsxRuntime.jsx("div", { className: "label", children: label }), rightComponent && (jsxRuntime.jsx("div", { className: "right-component-father", children: jsxRuntime.jsx("div", { className: "right-component-child", children: rightComponent }) }))] }), jsxRuntime.jsx("div", { className: "cell-content", children: description && jsxRuntime.jsx("div", { className: "description", children: description }) })] }) }));
71284
71284
  });
71285
71285
  FISTableHeaderCell.displayName = "FISTableHeaderCell";
71286
71286
 
@@ -71390,10 +71390,6 @@ const DivColumnCellContainerSC = styled.div `
71390
71390
  border-bottom: ${getTheme("com/table/title-cell/stroke-width")} solid
71391
71391
  ${getTheme("com/table/row-cell/divider/color-stroke")};
71392
71392
  gap: ${getTheme("com/table/row-cell/horizontal-gap")};
71393
- padding-top: ${getTheme("com/table/row-cell/vertical-padding")};
71394
- padding-bottom: ${getTheme("com/table/row-cell/vertical-padding")};
71395
- padding-left: ${getTheme("com/table/row-cell/horizontal-padding")};
71396
- padding-right: ${getTheme("com/table/row-cell/horizontal-padding")};
71397
71393
 
71398
71394
  &:hover {
71399
71395
  background-color: ${getTheme("com/table/row-cell/background-color/hover")} !important;