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.
@@ -11,7 +11,6 @@ declare const meta: {
11
11
  disabled: false;
12
12
  hasBorder: true;
13
13
  icon: import("react/jsx-runtime").JSX.Element;
14
- textAlign: string;
15
14
  contentWrapText: false;
16
15
  };
17
16
  argTypes: {
@@ -1,7 +1,7 @@
1
1
  import { DetailedHTMLProps, HTMLAttributes, ReactElement } from "react";
2
2
  interface ColumnCellProps extends Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> {
3
3
  className?: string;
4
- textAlign?: string;
4
+ textAlign?: "left" | "right";
5
5
  contentWrapText?: boolean;
6
6
  variant?: string;
7
7
  content?: string;
@@ -9,7 +9,7 @@ declare const meta: {
9
9
  label: string;
10
10
  description: string;
11
11
  rightComponent: import("react/jsx-runtime").JSX.Element;
12
- align: "left";
12
+ textAlign: "left";
13
13
  disabled: false;
14
14
  hasRightDivider: true;
15
15
  hasTruncateLabel: false;
@@ -1,8 +1,7 @@
1
1
  import { DetailedHTMLProps, HTMLAttributes, ReactNode } from "react";
2
2
  interface HeaderCellProps extends Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> {
3
3
  className?: string;
4
- align?: "left" | "right";
5
- textAlign?: string;
4
+ textAlign?: "left" | "right";
6
5
  label: string | null | undefined;
7
6
  description?: string;
8
7
  rightComponent?: ReactNode;
@@ -1,9 +1,8 @@
1
1
  interface HeaderCellStyleProps {
2
- $textAlign?: string;
3
2
  $disabled?: boolean;
4
3
  $hasRightDivider?: boolean;
5
4
  $hasTruncateLabel?: boolean;
6
- $align?: "left" | "right";
5
+ $textAlign?: "left" | "right";
7
6
  $onlyIcon?: boolean;
8
7
  }
9
8
  export declare const DivHeaderCellContainerSC: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, HeaderCellStyleProps>> & string;
package/dist/esm/index.js CHANGED
@@ -71000,7 +71000,8 @@ const DivTableContainerSC = styled.div `
71000
71000
  vertical-align: ${(props) => props?.$verticalHeader || "center"};
71001
71001
  border-bottom: ${getTheme("com/table/row-cell/divider/stroke-width")}
71002
71002
  solid ${getTheme("com/table/title-cell/divider/color-stroke")};
71003
- padding: ${getTheme("com/table/title-cell/vertical-padding")} 0
71003
+ padding: ${getTheme("com/table/title-cell/vertical-padding")}
71004
+ ${getTheme("com/table/title-cell/horizontal-padding")}
71004
71005
  ${getTheme("com/table/title-cell/vertical-padding")}
71005
71006
  ${getTheme("com/table/title-cell/horizontal-padding")} !important;
71006
71007
  background-color: ${getTheme("com/table/title-cell/default/background-color")};
@@ -71185,7 +71186,6 @@ const DivHeaderCellContainerSC = styled.div `
71185
71186
  align-items: flex-start;
71186
71187
  box-sizing: border-box;
71187
71188
  gap: ${getTheme("com/table/title-cell/vertical-gap")};
71188
- padding-right: ${getTheme("com/table/title-cell/horizontal-padding")};
71189
71189
  ${(props) => {
71190
71190
  if (props.$onlyIcon) {
71191
71191
  return css `
@@ -71197,7 +71197,7 @@ const DivHeaderCellContainerSC = styled.div `
71197
71197
 
71198
71198
  .cell-content {
71199
71199
  display: flex;
71200
- justify-content: ${(props) => props.$align === "right" ? "flex-end" : "space-between"};
71200
+ justify-content: ${(props) => props.$textAlign === "right" ? "flex-end" : "space-between"};
71201
71201
  min-height: ${getTheme("com/segmented/item/active-surface/size-sm/height")};
71202
71202
  width: 100%;
71203
71203
  gap: ${getTheme("com/table/title-cell/default/label/vertical-gap")};
@@ -71206,7 +71206,7 @@ const DivHeaderCellContainerSC = styled.div `
71206
71206
  ${getTheme("Label/XS")};
71207
71207
  width: 100%;
71208
71208
  display: inline-block;
71209
- ${(props) => (props.$align === "right" ? "text-align: end" : "")};
71209
+ ${(props) => (props.$textAlign === "right" ? "text-align: end" : "")};
71210
71210
  color: ${(props) => getTheme(`com/table/title-cell/${props?.$disabled ? "disable" : "default"}/label/color-text`)};
71211
71211
 
71212
71212
  ${(props) => {
@@ -71259,8 +71259,8 @@ const DivHeaderCellContainerSC = styled.div `
71259
71259
  }
71260
71260
  `;
71261
71261
 
71262
- const FISTableHeaderCell = forwardRef(({ className, textAlign, label, description, rightComponent, disabled, hasRightDivider = true, hasTruncateLabel = false, onlyIcon = false, align = "left", ...rest }, ref) => {
71263
- return (jsx(DivHeaderCellContainerSC, { ref: ref, className: classNames("header-cell-container", className), "$textAlign": textAlign, "$disabled": disabled, "$hasTruncateLabel": hasTruncateLabel, "$hasRightDivider": hasRightDivider, "$align": align, "$onlyIcon": onlyIcon, ...rest, children: jsxs("div", { className: "header-cell-content", children: [jsxs("div", { className: "cell-content", children: [label && jsx("div", { className: "label", children: label }), jsx("div", { className: "right-component-father", children: jsx("div", { className: "right-component-child", children: rightComponent }) })] }), jsx("div", { className: "cell-content", children: description && jsx("div", { className: "description", children: description }) })] }) }));
71262
+ const FISTableHeaderCell = forwardRef(({ className, label, description, rightComponent, disabled, hasRightDivider = true, hasTruncateLabel = false, onlyIcon = false, textAlign = "left", ...rest }, ref) => {
71263
+ return (jsx(DivHeaderCellContainerSC, { ref: ref, className: classNames("header-cell-container", className), "$textAlign": textAlign, "$disabled": disabled, "$hasTruncateLabel": hasTruncateLabel, "$hasRightDivider": hasRightDivider, "$onlyIcon": onlyIcon, ...rest, children: jsxs("div", { className: "header-cell-content", children: [jsxs("div", { className: "cell-content", children: [label && jsx("div", { className: "label", children: label }), rightComponent && (jsx("div", { className: "right-component-father", children: jsx("div", { className: "right-component-child", children: rightComponent }) }))] }), jsx("div", { className: "cell-content", children: description && jsx("div", { className: "description", children: description }) })] }) }));
71264
71264
  });
71265
71265
  FISTableHeaderCell.displayName = "FISTableHeaderCell";
71266
71266
 
@@ -71370,10 +71370,6 @@ const DivColumnCellContainerSC = styled.div `
71370
71370
  border-bottom: ${getTheme("com/table/title-cell/stroke-width")} solid
71371
71371
  ${getTheme("com/table/row-cell/divider/color-stroke")};
71372
71372
  gap: ${getTheme("com/table/row-cell/horizontal-gap")};
71373
- padding-top: ${getTheme("com/table/row-cell/vertical-padding")};
71374
- padding-bottom: ${getTheme("com/table/row-cell/vertical-padding")};
71375
- padding-left: ${getTheme("com/table/row-cell/horizontal-padding")};
71376
- padding-right: ${getTheme("com/table/row-cell/horizontal-padding")};
71377
71373
 
71378
71374
  &:hover {
71379
71375
  background-color: ${getTheme("com/table/row-cell/background-color/hover")} !important;