@fattureincloud/fic-design-system 0.19.32 → 0.19.34

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.
Files changed (85) hide show
  1. package/dist/components/chart/stories/styled.d.ts +20 -2
  2. package/dist/components/ficFeatures/components/featureCategory/IconSelector.d.ts +10 -0
  3. package/dist/components/ficFeatures/configExample.d.ts +3 -0
  4. package/dist/components/ficFeatures/icons.d.ts +6 -0
  5. package/dist/components/ficFeatures/styled.d.ts +2 -0
  6. package/dist/components/inlineMessage/const.d.ts +2 -0
  7. package/dist/components/layout/sidebarItem/styled.d.ts +0 -1
  8. package/dist/components/layout/sidebarItem/types.d.ts +2 -14
  9. package/dist/components/modals/modalStyled.d.ts +4 -1
  10. package/dist/components/modals/stepModal/StepModal.d.ts +3 -0
  11. package/dist/components/modals/stepModal/components/StepModalBody.d.ts +1 -1
  12. package/dist/components/modals/stepModal/components/StepModalFooter.d.ts +1 -1
  13. package/dist/components/modals/stepModal/components/StepModalHeader.d.ts +1 -1
  14. package/dist/components/modals/stepModal/components/styled.d.ts +9 -1
  15. package/dist/components/modals/stepModal/components/utils.d.ts +1 -1
  16. package/dist/components/modals/stepModal/styled.d.ts +1 -0
  17. package/dist/components/modals/stepModal/types.d.ts +3 -0
  18. package/dist/components/modals/types.d.ts +1 -0
  19. package/dist/components/newTable_v2/components/body/Body.d.ts +2 -2
  20. package/dist/components/newTable_v2/components/cell/hooks/useCellValues.d.ts +1 -0
  21. package/dist/components/newTable_v2/components/cell/styled.d.ts +11 -1
  22. package/dist/components/newTable_v2/components/footer/footerCell/styled.d.ts +10 -1
  23. package/dist/components/newTable_v2/components/footer/styled.d.ts +5 -0
  24. package/dist/components/newTable_v2/components/header/Header.d.ts +1 -2
  25. package/dist/components/newTable_v2/components/header/actionsHeader/styled.d.ts +0 -1
  26. package/dist/components/newTable_v2/components/header/headerCell/styled.d.ts +11 -1
  27. package/dist/components/newTable_v2/components/header/hooks/useHeaderValues.d.ts +1 -0
  28. package/dist/components/newTable_v2/components/header/styled.d.ts +1 -4
  29. package/dist/components/newTable_v2/constants.d.ts +1 -1
  30. package/dist/components/newTable_v2/index.d.ts +1 -1
  31. package/dist/components/newTable_v2/styled.d.ts +3 -1
  32. package/dist/components/newTable_v2/types/columnsTypes.d.ts +1 -0
  33. package/dist/components/newTable_v2/types/features/actions.d.ts +1 -1
  34. package/dist/components/newTable_v2/types/tableTypes.d.ts +1 -1
  35. package/dist/components/newTable_v2/utils.d.ts +11 -0
  36. package/dist/components/tableV3/components/body/Body.d.ts +2 -4
  37. package/dist/components/tableV3/hooks/usePagination.d.ts +8 -0
  38. package/dist/components/tableV3/styled.d.ts +0 -1
  39. package/dist/index.esm.js +9 -9
  40. package/dist/index.esm.js.map +1 -1
  41. package/dist/index.js +6 -6
  42. package/dist/index.js.map +1 -1
  43. package/package.json +1 -1
  44. package/dist/common/components/Label.d.ts +0 -3
  45. package/dist/common/components/iframeClickBlocker/iframeClickBlocker.stories.d.ts +0 -6
  46. package/dist/common/components/iframeClickBlocker/index.d.ts +0 -1
  47. package/dist/common/types/label.d.ts +0 -12
  48. package/dist/common/utils/label.d.ts +0 -5
  49. package/dist/components/accordion/styled.d.ts +0 -5
  50. package/dist/components/accordions/accordions.d.ts +0 -9
  51. package/dist/components/accordions/accordions.stories.d.ts +0 -8
  52. package/dist/components/accordions/components/styledAccordionWrapper.d.ts +0 -1
  53. package/dist/components/accordions/index.d.ts +0 -2
  54. package/dist/components/accordions/types.d.ts +0 -19
  55. package/dist/components/form/datepicker/components/MonthPicker.d.ts +0 -5
  56. package/dist/components/form/datepickerNew/DatePicker.d.ts +0 -12
  57. package/dist/components/form/datepickerNew/DatePickerImpl.d.ts +0 -4
  58. package/dist/components/form/datepickerNew/NewDatePicker.d.ts +0 -12
  59. package/dist/components/form/datepickerNew/components/CustomButton.d.ts +0 -8
  60. package/dist/components/form/datepickerNew/components/DatePickerDay.d.ts +0 -3
  61. package/dist/components/form/datepickerNew/components/DatePickerHeader.d.ts +0 -8
  62. package/dist/components/form/datepickerNew/components/YearPicker.d.ts +0 -7
  63. package/dist/components/form/datepickerNew/components/hooks/useDatePickerHeaderShowLogic.d.ts +0 -15
  64. package/dist/components/form/datepickerNew/components/styled.d.ts +0 -5
  65. package/dist/components/form/datepickerNew/datePickerPalette.d.ts +0 -33
  66. package/dist/components/form/datepickerNew/datepicker.stories.d.ts +0 -18
  67. package/dist/components/form/datepickerNew/hooks/useFormattedDate.d.ts +0 -12
  68. package/dist/components/form/datepickerNew/hooks/useYearsList.d.ts +0 -2
  69. package/dist/components/form/datepickerNew/index.d.ts +0 -5
  70. package/dist/components/form/datepickerNew/newDatePickerPalette.d.ts +0 -33
  71. package/dist/components/form/datepickerNew/styled.d.ts +0 -6
  72. package/dist/components/form/datepickerNew/types.d.ts +0 -31
  73. package/dist/components/form/datepickerNew/utils.d.ts +0 -3
  74. package/dist/components/verticalTab/VerticalTab.d.ts +0 -4
  75. package/dist/components/verticalTab/components/VerticalTabSelector/VerticalTabSelector.d.ts +0 -13
  76. package/dist/components/verticalTab/components/VerticalTabSelector/index.d.ts +0 -5
  77. package/dist/components/verticalTab/components/VerticalTabSelector/styled.d.ts +0 -11
  78. package/dist/components/verticalTab/components/VerticalTabSelector/types.d.ts +0 -37
  79. package/dist/components/verticalTab/components/VerticalTabSelector/verticalTabSelector.stories.d.ts +0 -5
  80. package/dist/components/verticalTab/components/VerticalTabSelector/verticalTabSelectorPalette.d.ts +0 -3
  81. package/dist/components/verticalTab/index.d.ts +0 -2
  82. package/dist/components/verticalTab/styled.d.ts +0 -6
  83. package/dist/components/verticalTab/types.d.ts +0 -6
  84. package/dist/components/verticalTab/verticalTab.stories.d.ts +0 -8
  85. /package/dist/components/accordion/{accordion.d.ts → Accordion.d.ts} +0 -0
@@ -1,4 +1,22 @@
1
1
  /// <reference types="react" />
2
- export declare const DropdownText: import("styled-components").StyledComponent<({ children, type, ...otherProps }: import("../../../common/components/typography/types").TextProps & import("react").HTMLAttributes<HTMLDivElement>) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
3
- export declare const DropdownParagraph: import("styled-components").StyledComponent<({ children, type, ...otherProps }: import("../../../common/components/typography/types").TextProps & import("react").HTMLAttributes<HTMLDivElement>) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
2
+ export declare const DropdownText: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & {
3
+ bold?: boolean | undefined;
4
+ centered?: boolean | undefined;
5
+ children: import("react").ReactNode | import("react").ReactNode[];
6
+ clamp?: number | undefined;
7
+ className?: string | undefined;
8
+ color?: string | undefined;
9
+ type?: "date" | "currency" | undefined;
10
+ style?: import("react").CSSProperties | undefined;
11
+ } & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
12
+ export declare const DropdownParagraph: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & {
13
+ bold?: boolean | undefined;
14
+ centered?: boolean | undefined;
15
+ children: import("react").ReactNode | import("react").ReactNode[];
16
+ clamp?: number | undefined;
17
+ className?: string | undefined;
18
+ color?: string | undefined;
19
+ type?: "date" | "currency" | undefined;
20
+ style?: import("react").CSSProperties | undefined;
21
+ } & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
4
22
  export declare const Divider: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { TFeaturesConfig } from '../../types';
3
+ declare type IconSelectorProps = {
4
+ close: () => void;
5
+ icon: string;
6
+ index: number;
7
+ setEditedConfig: React.Dispatch<React.SetStateAction<TFeaturesConfig>>;
8
+ };
9
+ declare const IconSelector: ({ close, icon, index, setEditedConfig }: IconSelectorProps) => JSX.Element;
10
+ export default IconSelector;
@@ -0,0 +1,3 @@
1
+ import { TFeaturesConfig } from './types';
2
+ declare const defaultConfig: TFeaturesConfig;
3
+ export default defaultConfig;
@@ -0,0 +1,6 @@
1
+ import { IconProps } from '../icon';
2
+ export declare const greenPlusIcon: IconProps;
3
+ export declare const sortIcon: IconProps;
4
+ export declare const redBackwardIcon: IconProps;
5
+ export declare const greenCheckIcon: IconProps;
6
+ export declare const greyTimesIcon: IconProps;
@@ -0,0 +1,2 @@
1
+ export declare const FICFeaturesContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
2
+ export declare const FlexRow: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
@@ -0,0 +1,2 @@
1
+ import { TypeToCardMap } from './types';
2
+ export declare const TYPE_TO_CARD_MAP: TypeToCardMap;
@@ -6,7 +6,6 @@ export interface WrapperProps {
6
6
  isDisabled: boolean;
7
7
  customColor?: paletteColor;
8
8
  withoutPadding: boolean;
9
- isTemporary: boolean;
10
9
  }
11
10
  export declare const sidebarItemHeight = 44;
12
11
  export declare const Dropdown: import("styled-components").StyledComponent<({ className, content }: import("./types").SidebarItemDropdownProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
@@ -19,8 +19,6 @@ export interface SidebarItemProps {
19
19
  customProps?: CustomSidebarItemProps;
20
20
  href?: string;
21
21
  badgeConfig?: SidebarBadgeConfigProps;
22
- isTemporary?: boolean;
23
- onClose?: () => void;
24
22
  }
25
23
  export interface CustomSidebarItemProps {
26
24
  color?: paletteColor;
@@ -36,9 +34,7 @@ export declare enum SidebarBadgeConfigType {
36
34
  COUNTER = 0,
37
35
  ICON = 1,
38
36
  DOT = 2,
39
- COUNTER_ICON = 3,
40
- TEXT_TAG = 4,
41
- CLOSING_ICON = 5
37
+ COUNTER_ICON = 3
42
38
  }
43
39
  declare type BadgeBaseConfig = {
44
40
  size?: BadgeSize;
@@ -60,15 +56,7 @@ interface BadgeCounterIconConfig extends BadgeBaseConfig {
60
56
  icon: IconProps;
61
57
  counter: number | string;
62
58
  }
63
- interface BadgeTextTagConfig extends BadgeBaseConfig {
64
- type: SidebarBadgeConfigType.TEXT_TAG;
65
- text: string;
66
- }
67
- interface BadgeClosingIconConfig extends BadgeBaseConfig {
68
- type: SidebarBadgeConfigType.CLOSING_ICON;
69
- icon: IconProps;
70
- }
71
- export declare type SidebarBadgeConfigProps = BadgeCounterConfig | BadgeIconConfig | BadgeDotConfig | BadgeCounterIconConfig | BadgeTextTagConfig | BadgeClosingIconConfig;
59
+ export declare type SidebarBadgeConfigProps = BadgeCounterConfig | BadgeIconConfig | BadgeDotConfig | BadgeCounterIconConfig;
72
60
  declare type StatusType = 'normal' | 'active' | 'disabled';
73
61
  export interface SidebarItemStyles extends colorsPalette {
74
62
  hoverColor: paletteColor;
@@ -11,11 +11,14 @@ export declare const ModalBody: import("styled-components").StyledComponent<"div
11
11
  export declare const ModalIcon: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
12
12
  export declare const ModalHeaderClose: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
13
13
  export declare const H3: import("styled-components").StyledComponent<"h3", import("styled-components").DefaultTheme, {}, never>;
14
- export declare const ModalHeader: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
14
+ export declare const ModalHeader: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
15
+ headerFooterCustomHeight?: number | undefined;
16
+ }, never>;
15
17
  export declare const ModalSimpleHeader: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
16
18
  export declare const ModalSimpleFooter: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
17
19
  export declare const ModalFooter: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
18
20
  hideFooterTopBorder?: boolean | undefined;
21
+ headerFooterCustomHeight?: number | undefined;
19
22
  }, never>;
20
23
  export declare const TopAttachment: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
21
24
  height: number | null;
@@ -1,4 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { StepModalProps, UknObj } from './types';
3
+ export declare const useStepModalContext: () => {
4
+ headerFooterCustomHeight?: number | undefined;
5
+ };
3
6
  declare const StepModal: <T extends UknObj>({ allowBackdropClose, className, steps, ...otherProps }: StepModalProps<T>) => JSX.Element | null;
4
7
  export default StepModal;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { StepModalBodyProps } from '../types';
3
- declare const StepModalBody: ({ children, ...otherProps }: StepModalBodyProps) => JSX.Element;
3
+ declare const StepModalBody: ({ children, headerFooterCustomHeight, ...otherProps }: StepModalBodyProps) => JSX.Element;
4
4
  export default StepModalBody;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { StepModalFooterProps } from '../types';
3
- declare const StepModalFooter: ({ buttons, children, className }: StepModalFooterProps) => JSX.Element;
3
+ declare const StepModalFooter: ({ buttons, children, className, headerFooterCustomHeight, }: StepModalFooterProps) => JSX.Element;
4
4
  export default StepModalFooter;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { StepModalHeaderProps } from '../types';
3
- declare const StepModalHeader: ({ children, className, currentStep, setIsOpen, setStep, subtitle, title, customAction, }: StepModalHeaderProps) => JSX.Element;
3
+ declare const StepModalHeader: ({ children, className, currentStep, customAction, headerFooterCustomHeight, setIsOpen, setStep, subtitle, title, }: StepModalHeaderProps) => JSX.Element;
4
4
  export default StepModalHeader;
@@ -1,11 +1,19 @@
1
1
  import { MappedHeight } from './utils';
2
- export declare const StepModalHeaderWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
2
+ export declare const StepModalHeaderWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
3
+ headerFooterCustomHeight?: number | undefined;
4
+ } & {
5
+ headerFooterCustomHeight?: number | undefined;
6
+ }, never>;
3
7
  export declare const StepModalHeaderTitle: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
4
8
  export declare const FooterButtonsWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
5
9
  hideFooterTopBorder?: boolean | undefined;
10
+ headerFooterCustomHeight?: number | undefined;
11
+ } & {
12
+ headerFooterCustomHeight?: number | undefined;
6
13
  }, never>;
7
14
  export declare type BodyProps = {
8
15
  height?: number;
16
+ headerFooterCustomHeight?: number;
9
17
  minHeight?: number;
10
18
  withoutFooter?: boolean;
11
19
  withoutHeader?: boolean;
@@ -5,4 +5,4 @@ export declare type MappedHeight = {
5
5
  height?: number;
6
6
  minHeight?: number;
7
7
  };
8
- export declare const mapStepModalHeight: ({ height, minHeight, withoutFooter, withoutHeader }: BodyProps) => MappedHeight;
8
+ export declare const mapStepModalHeight: ({ headerFooterCustomHeight, height, minHeight, withoutFooter, withoutHeader, }: BodyProps) => MappedHeight;
@@ -4,4 +4,5 @@ import { ContentWrapperProps } from './types';
4
4
  export declare const ModalBodyWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, ContentWrapperProps, never>;
5
5
  export declare const StyledModal: import("styled-components").StyledComponent<typeof Modal, import("styled-components").DefaultTheme, {
6
6
  children: ReactNode;
7
+ headerFooterCustomHeight?: number | undefined;
7
8
  }, never>;
@@ -4,6 +4,7 @@ export declare type UknObj = Record<string, unknown>;
4
4
  export declare type StepModalCommonProps = {
5
5
  currentStep: number;
6
6
  height?: number;
7
+ headerFooterCustomHeight?: number;
7
8
  isOpen: boolean;
8
9
  minHeight?: number;
9
10
  setIsOpen?: (o: boolean) => void;
@@ -38,10 +39,12 @@ export declare type ContentWrapperProps = {
38
39
  export declare type StepModalFooterProps = HasChildren & {
39
40
  className?: string;
40
41
  buttons?: ButtonProps[];
42
+ headerFooterCustomHeight?: number;
41
43
  hideFooterTopBorder?: boolean;
42
44
  };
43
45
  export declare type StepModalHeaderProps = Partial<StepModalCommonProps> & HasChildren & {
44
46
  className?: string;
47
+ headerFooterCustomHeight?: number;
45
48
  subtitle?: string;
46
49
  title?: string;
47
50
  customAction?: JSX.Element;
@@ -16,6 +16,7 @@ export interface ModalPropsInterface {
16
16
  footer?: () => JSX.Element;
17
17
  footerButtons?: ButtonProps[];
18
18
  header?: () => JSX.Element;
19
+ headerFooterCustomHeight?: number;
19
20
  height?: number;
20
21
  hideFooterTopBorder?: boolean;
21
22
  hideOverlay?: boolean;
@@ -1,9 +1,9 @@
1
1
  /// <reference types="react" />
2
2
  import { Row as RowType } from '@tanstack/react-table';
3
3
  import { TableProps } from '../../types';
4
- interface BodyProps<T> extends Pick<TableProps<T>, 'bodyHeight' | 'isLoading' | 'isRowDisabled' | 'isRowHighlighted' | 'onRowClick' | 'rowActions' | 'rowHighlightColor' | 'rowSelection' | 'rowTooltip'> {
4
+ interface BodyProps<T> extends Pick<TableProps<T>, 'isLoading' | 'isRowDisabled' | 'isRowHighlighted' | 'onRowClick' | 'rowActions' | 'rowHighlightColor' | 'rowSelection' | 'rowTooltip'> {
5
5
  pageIndex: number;
6
6
  rows: RowType<T>[];
7
7
  }
8
- declare const Body: <T>({ bodyHeight, isLoading, isRowDisabled, isRowHighlighted, onRowClick, pageIndex, rowActions, rowHighlightColor, rowSelection, rowTooltip, rows, }: BodyProps<T>) => JSX.Element;
8
+ declare const Body: <T>({ isLoading, isRowDisabled, isRowHighlighted, onRowClick, pageIndex, rowActions, rowHighlightColor, rowSelection, rowTooltip, rows, }: BodyProps<T>) => JSX.Element;
9
9
  export default Body;
@@ -3,6 +3,7 @@ import { CellValue } from '../../../types';
3
3
  interface CellValues {
4
4
  align: 'center' | 'left' | 'right';
5
5
  content?: Exclude<CellValue, Record<string, unknown>>;
6
+ fixedWidth?: number;
6
7
  isEditable: boolean;
7
8
  maxWidth?: number;
8
9
  minWidth?: number;
@@ -1,9 +1,19 @@
1
+ /// <reference types="react" />
1
2
  declare type DSTdProps = {
3
+ fixedWidth?: number;
2
4
  justifyContent: 'center' | 'left' | 'right';
3
5
  maxWidth?: number;
4
6
  minWidth?: number;
5
7
  };
6
8
  export declare const BaseTd: import("styled-components").StyledComponent<"td", import("styled-components").DefaultTheme, {}, never>;
7
- export declare const DSTd: import("styled-components").StyledComponent<"td", import("styled-components").DefaultTheme, DSTdProps, never>;
9
+ export declare const DSTd: import("styled-components").StyledComponent<"td", import("styled-components").DefaultTheme, Partial<Pick<import("react").DetailedHTMLProps<import("react").TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, "key" | keyof import("react").TdHTMLAttributes<HTMLTableDataCellElement>> & {
10
+ ref?: ((instance: HTMLTableDataCellElement | null) => void) | import("react").RefObject<HTMLTableDataCellElement> | null | undefined;
11
+ } & {
12
+ minWidth?: number | undefined;
13
+ maxWidth?: number | undefined;
14
+ fixedWidth?: number | undefined;
15
+ }> & {
16
+ [others: string]: any;
17
+ } & DSTdProps, string | number>;
8
18
  export declare const CutText: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
9
19
  export {};
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ColumnPinningPosition } from '@tanstack/react-table';
2
3
  import { RowSize } from '../../../types';
3
4
  declare type DSThProps = {
@@ -6,5 +7,13 @@ declare type DSThProps = {
6
7
  minWidth?: number;
7
8
  maxWidth?: number;
8
9
  };
9
- export declare const DSThFooter: import("styled-components").StyledComponent<"th", import("styled-components").DefaultTheme, DSThProps, never>;
10
+ export declare const DSThFooter: import("styled-components").StyledComponent<"th", import("styled-components").DefaultTheme, Partial<Pick<import("react").DetailedHTMLProps<import("react").ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, "key" | keyof import("react").ThHTMLAttributes<HTMLTableHeaderCellElement>> & {
11
+ ref?: ((instance: HTMLTableHeaderCellElement | null) => void) | import("react").RefObject<HTMLTableHeaderCellElement> | null | undefined;
12
+ } & {
13
+ minWidth?: number | undefined;
14
+ maxWidth?: number | undefined;
15
+ fixedWidth?: number | undefined;
16
+ }> & {
17
+ [others: string]: any;
18
+ } & DSThProps, string | number>;
10
19
  export {};
@@ -4,4 +4,9 @@ declare type DSTHeadProps = {
4
4
  footerSize?: RowSize;
5
5
  };
6
6
  export declare const DSTrFooter: import("styled-components").StyledComponent<"tr", import("styled-components").DefaultTheme, DSTHeadProps, never>;
7
+ export declare const CheckboxFooter: import("styled-components").StyledComponent<"th", import("styled-components").DefaultTheme, {}, never>;
8
+ declare type ActionsFooterProps = {
9
+ actionColumnWidth: number;
10
+ };
11
+ export declare const ActionsFooter: import("styled-components").StyledComponent<"th", import("styled-components").DefaultTheme, ActionsFooterProps, never>;
7
12
  export {};
@@ -4,10 +4,9 @@ import { TableProps } from '../../types';
4
4
  declare type HeaderProps<T> = Pick<TableProps<T>, 'headerSize' | 'onSort'> & {
5
5
  actionsHeader?: string | JSX.Element;
6
6
  headerGroups: HeaderGroup<T>[];
7
- isSelectable?: boolean;
8
7
  onRowSelection?: (e: string[]) => void;
9
8
  rowSelection?: string[];
10
9
  table: Table<T>;
11
10
  };
12
- declare const Header: <T>({ actionsHeader, headerGroups, headerSize, isSelectable, onRowSelection, onSort, rowSelection, table, }: HeaderProps<T>) => JSX.Element;
11
+ declare const Header: <T>({ actionsHeader, headerGroups, headerSize, onRowSelection, onSort, rowSelection, table, }: HeaderProps<T>) => JSX.Element;
13
12
  export default Header;
@@ -1,5 +1,4 @@
1
1
  declare type ActionsThHeaderProps = {
2
- hasContent: boolean;
3
2
  actionColumnWidth: number;
4
3
  };
5
4
  export declare const ActionsThHeader: import("styled-components").StyledComponent<"th", import("styled-components").DefaultTheme, ActionsThHeaderProps, never>;
@@ -1,9 +1,19 @@
1
+ /// <reference types="react" />
1
2
  import { ColumnPinningPosition } from '@tanstack/react-table';
2
3
  declare type DSThProps = {
4
+ fixedWidth?: number;
3
5
  isPinned: ColumnPinningPosition;
4
6
  minWidth?: number;
5
7
  maxWidth?: number;
6
8
  sortable: boolean;
7
9
  };
8
- export declare const DSThHeader: import("styled-components").StyledComponent<"th", import("styled-components").DefaultTheme, DSThProps, never>;
10
+ export declare const DSThHeader: import("styled-components").StyledComponent<"th", import("styled-components").DefaultTheme, Partial<Pick<import("react").DetailedHTMLProps<import("react").ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, "key" | keyof import("react").ThHTMLAttributes<HTMLTableHeaderCellElement>> & {
11
+ ref?: ((instance: HTMLTableHeaderCellElement | null) => void) | import("react").RefObject<HTMLTableHeaderCellElement> | null | undefined;
12
+ } & {
13
+ minWidth?: number | undefined;
14
+ maxWidth?: number | undefined;
15
+ fixedWidth?: number | undefined;
16
+ }> & {
17
+ [others: string]: any;
18
+ } & DSThProps, string | number>;
9
19
  export {};
@@ -3,6 +3,7 @@ import { TooltipProps } from '../../../../tooltip';
3
3
  interface HeaderValues<T> {
4
4
  canSort: boolean;
5
5
  column: Column<T, unknown>;
6
+ fixedWidth?: number;
6
7
  isSorted: boolean;
7
8
  isSortedDesc: string | null;
8
9
  maxWidth?: number;
@@ -1,8 +1,5 @@
1
1
  import { RowSize } from '../../types';
2
- declare type DSTHeadProps = {
3
- scrollbarPadding: number;
4
- };
5
- export declare const DSTHead: import("styled-components").StyledComponent<"thead", import("styled-components").DefaultTheme, DSTHeadProps, never>;
2
+ export declare const DSTHead: import("styled-components").StyledComponent<"thead", import("styled-components").DefaultTheme, {}, never>;
6
3
  declare type DSTrHeaderProps = {
7
4
  headerSize?: RowSize;
8
5
  };
@@ -2,7 +2,7 @@ import { SettingsLabels, TableComponent } from './types';
2
2
  export declare const HEIGHT_SMALL = 42;
3
3
  export declare const HEIGHT_LARGE = 56;
4
4
  export declare const TEXTAREA_HEIGHT = 100;
5
- export declare const CHECKBOX_WIDTH = 35;
5
+ export declare const CHECKBOX_WIDTH = 18;
6
6
  export declare const CLASS_PREFIX = "DS-table";
7
7
  export declare const DS_PREFIX = "dstbl";
8
8
  export declare const COMPONENTS: Record<TableComponent, string[]>;
@@ -1,3 +1,3 @@
1
1
  export { default as TableV3 } from './Table';
2
- export * from './types';
2
+ export { CellValue as CellValueV3, BaseColumnsType as BaseColumnsTypeV3, BaseColumnDef as BaseColumnDefV3, EditableCellsColumn as EditableCellsColumnV3, AccessorColumnDef as AccessorColumnDefV3, AccessorColumn as AccessorColumnV3, DisplayColumnDef as DisplayColumnDefV3, DisplayColumn as DisplayColumnV3, GroupColumnDef as GroupColumnDefV3, GroupColumn as GroupColumnV3, ColumnDef as ColumnDefV3, ColumnsType as ColumnsTypeV3, RowSize as RowSizeV3, ColumnDefType as ColumnDefTypeV3, ActionType as ActionTypeV3, TableProps as TablePropsV3, LoadingStyle as LoadingStyleV3, TableComponent as TableComponentV3, TableActions as TableActionsV3, RowActions as RowActionsV3, PrimaryAction as PrimaryActionV3, TableActionsDropdowItem as TableActionsDropdowItemV3, DropdownActions as DropdownActionsV3, BulkAction as BulkActionV3, AllSelectedCTA as AllSelectedCTAV3, ColumnsSettings as ColumnsSettingsV3, SettingsLabels as SettingsLabelsV3, SettingsEvent as SettingsEventV3, TableSettings as TableSettingsV3, OnSort as OnSortV3, CustomSorted as CustomSortedV3, } from './types';
3
3
  export * from './customCells';
@@ -1,6 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  export declare const Container: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
3
- export declare const HorizontalScroll: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
3
+ export declare const HorizontalScroll: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
4
+ maxHeight?: number | undefined;
5
+ }, never>;
4
6
  export declare const DSTable: import("styled-components").StyledComponent<"table", import("styled-components").DefaultTheme, {}, never>;
5
7
  export declare const SortIndicator: import("styled-components").StyledComponent<({ isDisabled, onClick, ...props }: import("../icon").IconProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
6
8
  export declare const PaginationContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
@@ -18,6 +18,7 @@ export declare type BaseColumnDef<T> = IdentifiedColumnDef<T> & {
18
18
  id?: string;
19
19
  maxWidth?: number;
20
20
  minWidth?: number;
21
+ fixedWidth?: number;
21
22
  multiline?: boolean;
22
23
  };
23
24
  export declare type EditableCellsColumn<T> = {
@@ -26,7 +26,7 @@ export declare type PrimaryAction<T> = RequireAtLeastOne<BaseAction> & {
26
26
  onClick: (row: Row<T>) => void;
27
27
  tooltip?: TooltipProps;
28
28
  };
29
- export declare type TableActionsDropdowItem<T> = DropdownItemProps & {
29
+ export declare type TableActionsDropdowItem<T> = Omit<DropdownItemProps, 'onClick'> & {
30
30
  onClick: (row: Row<T>) => void;
31
31
  };
32
32
  export declare type DropdownActions<T> = {
@@ -11,13 +11,13 @@ import { SortableTable } from './features/sort';
11
11
  export declare type TableProps<T> = SelectableTable & PaginatedTable & SortableTable<T> & TableSettings & HighlightRow<T> & TableActions<T> & {
12
12
  absoluteElementsPortal?: HTMLElement;
13
13
  actionColumnWidth?: number;
14
- bodyHeight?: number;
15
14
  columns: ColumnsType<T>[];
16
15
  data: T[];
17
16
  headerSize?: RowSize;
18
17
  isLoading?: boolean;
19
18
  isRowDisabled?: (row: Row<T>) => boolean;
20
19
  loadingStyle?: LoadingStyle;
20
+ maxHeight?: number;
21
21
  onRowClick?: (row: Row<T>) => void;
22
22
  renderEmptyState?: () => JSX.Element;
23
23
  rowTooltip?: (row: Row<T>) => string;
@@ -15,4 +15,15 @@ export declare type MappedProps = {
15
15
  };
16
16
  export declare const mapBackground: ({ isDisabled, isRowHighlighted, rowHighlightColor, selected, theme, }: MapBackgrounProps) => MappedProps;
17
17
  export declare const getColumnId: <T>(column: ColumnsType<T>) => string;
18
+ declare type MapColumnWidthParams = {
19
+ minWidth?: number;
20
+ maxWidth?: number;
21
+ fixedWidth?: number;
22
+ };
23
+ declare type MappedColumnWidth = {
24
+ width: string;
25
+ minWidth: string;
26
+ maxWidth: string;
27
+ };
28
+ export declare const mapColumnWidth: ({ fixedWidth, maxWidth, minWidth }: MapColumnWidthParams) => MappedColumnWidth;
18
29
  export {};
@@ -1,11 +1,9 @@
1
1
  /// <reference types="react" />
2
2
  import { Row as RowType } from '@tanstack/react-table';
3
3
  import { TableProps } from '../../types';
4
- interface BodyProps<T> extends Pick<TableProps<T>, 'isLoading' | 'isRowDisabled' | 'isRowHighlighted' | 'onRowClick' | 'rowActions' | 'rowHighlightColor' | 'rowSelection' | 'rowTooltip' | 'renderEmptyState' | 'isRowActionDisabled' | 'customAction'> {
4
+ interface BodyProps<T> extends Pick<TableProps<T>, 'isLoading' | 'isRowDisabled' | 'isRowHighlighted' | 'onRowClick' | 'rowActions' | 'rowHighlightColor' | 'rowSelection' | 'rowTooltip' | 'isRowActionDisabled' | 'customAction'> {
5
5
  pageIndex: number;
6
6
  rows: RowType<T>[];
7
- columnsCount: number;
8
- isTableEmpty?: boolean;
9
7
  }
10
- declare const Body: <T>({ columnsCount, customAction, isLoading, isRowActionDisabled, isRowDisabled, isRowHighlighted, isTableEmpty, onRowClick, pageIndex, renderEmptyState, rowActions, rowHighlightColor, rowSelection, rowTooltip, rows, }: BodyProps<T>) => JSX.Element;
8
+ declare const Body: <T>({ customAction, isLoading, isRowActionDisabled, isRowDisabled, isRowHighlighted, onRowClick, pageIndex, rowActions, rowHighlightColor, rowSelection, rowTooltip, rows, }: BodyProps<T>) => JSX.Element;
11
9
  export default Body;
@@ -0,0 +1,8 @@
1
+ import { PaginationState } from '@tanstack/react-table';
2
+ import { Dispatch, SetStateAction } from 'react';
3
+ interface ReturnType {
4
+ pagination: PaginationState;
5
+ setPagination: Dispatch<SetStateAction<PaginationState>>;
6
+ }
7
+ export declare const usePagination: (size: number | undefined) => ReturnType;
8
+ export {};
@@ -8,4 +8,3 @@ export declare const HorizontalScroll: import("styled-components").StyledCompone
8
8
  export declare const DSTable: import("styled-components").StyledComponent<"table", import("styled-components").DefaultTheme, {}, never>;
9
9
  export declare const SortIndicator: import("styled-components").StyledComponent<({ isDisabled, onClick, ...props }: import("../icon").IconProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
10
10
  export declare const PaginationContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
11
- export declare const EmptyStateContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;