fis-component 0.0.38 → 0.0.40
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 +6 -6
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/src/components/Table/ColumnCell/index.d.ts +2 -2
- package/dist/cjs/types/src/components/Table/HeaderCell/index.d.ts +2 -2
- package/dist/esm/index.js +5 -5
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/src/components/Table/ColumnCell/index.d.ts +2 -2
- package/dist/esm/types/src/components/Table/HeaderCell/index.d.ts +2 -2
- package/dist/index.d.ts +3 -3
- package/package.json +1 -1
|
@@ -10,6 +10,6 @@ interface ColumnCellProps extends Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivE
|
|
|
10
10
|
disabled?: boolean;
|
|
11
11
|
hasBorder?: boolean;
|
|
12
12
|
}
|
|
13
|
-
declare const
|
|
14
|
-
export default
|
|
13
|
+
declare const FISTableCell: import("react").ForwardRefExoticComponent<ColumnCellProps & import("react").RefAttributes<HTMLLabelElement>>;
|
|
14
|
+
export default FISTableCell;
|
|
15
15
|
export type { ColumnCellProps };
|
|
@@ -11,6 +11,6 @@ interface HeaderCellProps extends Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivE
|
|
|
11
11
|
hasTruncateLabel?: boolean;
|
|
12
12
|
onlyIcon?: boolean;
|
|
13
13
|
}
|
|
14
|
-
declare const
|
|
15
|
-
export default
|
|
14
|
+
declare const FISTableHeaderCell: import("react").ForwardRefExoticComponent<HeaderCellProps & import("react").RefAttributes<HTMLLabelElement>>;
|
|
15
|
+
export default FISTableHeaderCell;
|
|
16
16
|
export type { HeaderCellProps };
|
package/dist/esm/index.js
CHANGED
|
@@ -71259,10 +71259,10 @@ const DivHeaderCellContainerSC = styled.div `
|
|
|
71259
71259
|
}
|
|
71260
71260
|
`;
|
|
71261
71261
|
|
|
71262
|
-
const
|
|
71262
|
+
const FISTableHeaderCell = forwardRef(({ className, textAlign, label, description, rightComponent, disabled, hasRightDivider = true, hasTruncateLabel = false, onlyIcon = false, align = "left", ...rest }, ref) => {
|
|
71263
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 }) })] }) }));
|
|
71264
71264
|
});
|
|
71265
|
-
|
|
71265
|
+
FISTableHeaderCell.displayName = "FISTableHeaderCell";
|
|
71266
71266
|
|
|
71267
71267
|
const COLUMN_TEXT_ALIGN = {
|
|
71268
71268
|
RIGHT: "right",
|
|
@@ -71561,10 +71561,10 @@ const DivIconSC = styled.div `
|
|
|
71561
71561
|
}}
|
|
71562
71562
|
`;
|
|
71563
71563
|
|
|
71564
|
-
const
|
|
71564
|
+
const FISTableCell = forwardRef(({ className, textAlign, variant = COLUMN_VARIANT.PRIMARY, content, description, icon, disabled, hasBorder, onChange, contentWrapText = false, ...rest }, ref) => {
|
|
71565
71565
|
return (jsx(DivColumnCellContainerSC, { "$hasBorder": hasBorder, "$disabled": disabled, "$variant": variant, "$textAlign": textAlign, "$contentWrapText": contentWrapText, "$hasContent": content, "$hasDescription": description, ref: ref, className: classNames("column-cell-container", className), ...rest, children: textAlign === COLUMN_TEXT_ALIGN.SINGLE_LINE ? (jsxs("div", { className: "single-line-content", children: [icon && (jsx("div", { className: "icon-box", children: jsx(DivIconSC, { "$textAlign": textAlign, "$variant": variant, "$disabled": disabled, "$hasContent": content, "$hasDescription": description, children: icon }) })), (content || description) && (jsxs("div", { className: "content-box", children: [content && jsx("div", { className: "content", children: content }), description && (jsx("div", { className: "description", children: description }))] }))] })) : (jsxs("div", { className: "left-right-content", children: [(icon || content) && (jsxs("div", { className: "content-box", children: [icon && (jsx(DivIconSC, { "$textAlign": textAlign, "$variant": variant, "$disabled": disabled, "$hasContent": content, "$hasDescription": description, children: icon })), content && jsx("div", { className: "content", children: content })] })), description && jsx("div", { className: "description", children: description })] })) }));
|
|
71566
71566
|
});
|
|
71567
|
-
|
|
71567
|
+
FISTableCell.displayName = "FISTableCell";
|
|
71568
71568
|
|
|
71569
71569
|
const SORT_ORDERS = {
|
|
71570
71570
|
ASCEND: "ascend",
|
|
@@ -73498,5 +73498,5 @@ const FISPagination = ({ pageSize = LIMIT_DEFAULT, current = 1, total = 0, minim
|
|
|
73498
73498
|
} })] })] }));
|
|
73499
73499
|
};
|
|
73500
73500
|
|
|
73501
|
-
export { FISAlertBanner, FISAvatar, FISBadge, FISBreadcrumb, FISButton, FISButtonGroup, FISCheckbox, FISCheckboxGroup, FISChipButton, FISCollapse, FISCombobox, FISDateRange, FISDivider, FISIconButton, FISInputArea, FISInputDate, FISInputField, FISInputLabel, FISInputStepper, FISInputText, FISInputTime, FISLinkButton, FISMenuItem, FISMenuSection, FISMenuSelect, FISPagination, FISProgressCircular, FISProgressLinear, FISRadio, RadioGroup as FISRadioGroup, FISSegmented, FISSelect, FISSelectItem, FISSorter, FISSplitButton, FISSwitch, FISTab, FISTable,
|
|
73501
|
+
export { FISAlertBanner, FISAvatar, FISBadge, FISBreadcrumb, FISButton, FISButtonGroup, FISCheckbox, FISCheckboxGroup, FISChipButton, FISCollapse, FISCombobox, FISDateRange, FISDivider, FISIconButton, FISInputArea, FISInputDate, FISInputField, FISInputLabel, FISInputStepper, FISInputText, FISInputTime, FISLinkButton, FISMenuItem, FISMenuSection, FISMenuSelect, FISPagination, FISProgressCircular, FISProgressLinear, FISRadio, RadioGroup as FISRadioGroup, FISSegmented, FISSelect, FISSelectItem, FISSorter, FISSplitButton, FISSwitch, FISTab, FISTable, FISTableCell, FISTableHeaderCell, FISThemeProvider, FISToast, FISTooltip, SegmentedPanelItem, TabPanelItem, useNotification, useToast };
|
|
73502
73502
|
//# sourceMappingURL=index.js.map
|