@fattureincloud/fic-design-system 0.19.30 → 0.19.32

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 (75) hide show
  1. package/dist/common/components/Label.d.ts +3 -0
  2. package/dist/common/components/iframeClickBlocker/iframeClickBlocker.stories.d.ts +6 -0
  3. package/dist/common/components/iframeClickBlocker/index.d.ts +1 -0
  4. package/dist/common/types/label.d.ts +12 -0
  5. package/dist/common/utils/label.d.ts +5 -0
  6. package/dist/components/accordion/accordion.d.ts +4 -0
  7. package/dist/components/accordion/components/accordionItem/AccordionItem.d.ts +1 -1
  8. package/dist/components/accordion/components/accordionItem/styled.d.ts +1 -1
  9. package/dist/components/accordion/styled.d.ts +5 -0
  10. package/dist/components/accordion/types.d.ts +2 -0
  11. package/dist/components/accordions/accordions.d.ts +9 -0
  12. package/dist/components/accordions/accordions.stories.d.ts +8 -0
  13. package/dist/components/accordions/components/styledAccordionWrapper.d.ts +1 -0
  14. package/dist/components/accordions/index.d.ts +2 -0
  15. package/dist/components/accordions/types.d.ts +19 -0
  16. package/dist/components/chart/stories/styled.d.ts +2 -20
  17. package/dist/components/form/datepicker/components/MonthPicker.d.ts +5 -0
  18. package/dist/components/form/datepickerNew/DatePicker.d.ts +12 -0
  19. package/dist/components/form/datepickerNew/DatePickerImpl.d.ts +4 -0
  20. package/dist/components/form/datepickerNew/NewDatePicker.d.ts +12 -0
  21. package/dist/components/form/datepickerNew/components/CustomButton.d.ts +8 -0
  22. package/dist/components/form/datepickerNew/components/DatePickerDay.d.ts +3 -0
  23. package/dist/components/form/datepickerNew/components/DatePickerHeader.d.ts +8 -0
  24. package/dist/components/form/datepickerNew/components/YearPicker.d.ts +7 -0
  25. package/dist/components/form/datepickerNew/components/hooks/useDatePickerHeaderShowLogic.d.ts +15 -0
  26. package/dist/components/form/datepickerNew/components/styled.d.ts +5 -0
  27. package/dist/components/form/datepickerNew/datePickerPalette.d.ts +33 -0
  28. package/dist/components/form/datepickerNew/datepicker.stories.d.ts +18 -0
  29. package/dist/components/form/datepickerNew/hooks/useFormattedDate.d.ts +12 -0
  30. package/dist/components/form/datepickerNew/hooks/useYearsList.d.ts +2 -0
  31. package/dist/components/form/datepickerNew/index.d.ts +5 -0
  32. package/dist/components/form/datepickerNew/newDatePickerPalette.d.ts +33 -0
  33. package/dist/components/form/datepickerNew/styled.d.ts +6 -0
  34. package/dist/components/form/datepickerNew/types.d.ts +31 -0
  35. package/dist/components/form/datepickerNew/utils.d.ts +3 -0
  36. package/dist/components/newTable_v2/components/body/Body.d.ts +2 -2
  37. package/dist/components/newTable_v2/components/cell/hooks/useCellValues.d.ts +0 -1
  38. package/dist/components/newTable_v2/components/cell/styled.d.ts +1 -11
  39. package/dist/components/newTable_v2/components/footer/footerCell/styled.d.ts +1 -10
  40. package/dist/components/newTable_v2/components/footer/styled.d.ts +0 -5
  41. package/dist/components/newTable_v2/components/header/Header.d.ts +2 -1
  42. package/dist/components/newTable_v2/components/header/actionsHeader/styled.d.ts +1 -0
  43. package/dist/components/newTable_v2/components/header/headerCell/styled.d.ts +1 -11
  44. package/dist/components/newTable_v2/components/header/hooks/useHeaderValues.d.ts +0 -1
  45. package/dist/components/newTable_v2/components/header/styled.d.ts +4 -1
  46. package/dist/components/newTable_v2/constants.d.ts +1 -1
  47. package/dist/components/newTable_v2/index.d.ts +1 -1
  48. package/dist/components/newTable_v2/styled.d.ts +1 -3
  49. package/dist/components/newTable_v2/types/columnsTypes.d.ts +0 -1
  50. package/dist/components/newTable_v2/types/features/actions.d.ts +1 -1
  51. package/dist/components/newTable_v2/types/tableTypes.d.ts +1 -1
  52. package/dist/components/newTable_v2/utils.d.ts +0 -11
  53. package/dist/components/verticalTab/VerticalTab.d.ts +4 -0
  54. package/dist/components/verticalTab/components/VerticalTabSelector/VerticalTabSelector.d.ts +13 -0
  55. package/dist/components/verticalTab/components/VerticalTabSelector/index.d.ts +5 -0
  56. package/dist/components/verticalTab/components/VerticalTabSelector/styled.d.ts +11 -0
  57. package/dist/components/verticalTab/components/VerticalTabSelector/types.d.ts +37 -0
  58. package/dist/components/verticalTab/components/VerticalTabSelector/verticalTabSelector.stories.d.ts +5 -0
  59. package/dist/components/verticalTab/components/VerticalTabSelector/verticalTabSelectorPalette.d.ts +3 -0
  60. package/dist/components/verticalTab/index.d.ts +2 -0
  61. package/dist/components/verticalTab/styled.d.ts +6 -0
  62. package/dist/components/verticalTab/types.d.ts +6 -0
  63. package/dist/components/verticalTab/verticalTab.stories.d.ts +8 -0
  64. package/dist/index.esm.js +7 -7
  65. package/dist/index.esm.js.map +1 -1
  66. package/dist/index.js +6 -6
  67. package/dist/index.js.map +1 -1
  68. package/package.json +1 -1
  69. package/dist/components/accordion/Accordion.d.ts +0 -4
  70. package/dist/components/ficFeatures/components/featureCategory/IconSelector.d.ts +0 -10
  71. package/dist/components/ficFeatures/configExample.d.ts +0 -3
  72. package/dist/components/ficFeatures/icons.d.ts +0 -6
  73. package/dist/components/ficFeatures/styled.d.ts +0 -2
  74. package/dist/components/inlineMessage/const.d.ts +0 -2
  75. package/dist/components/tableV3/hooks/usePagination.d.ts +0 -8
@@ -0,0 +1,3 @@
1
+ import { LabelProps, MappedLabelProps } from '../types/label';
2
+ declare const Label: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, MappedLabelProps & LabelProps, keyof MappedLabelProps>;
3
+ export default Label;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import { Meta } from '@storybook/react';
3
+ import { DropdownProps } from 'components/dropdown/types';
4
+ export declare const DropdownWithIflameClickBlocker: () => JSX.Element;
5
+ declare const DropdownStories: Meta<DropdownProps>;
6
+ export default DropdownStories;
@@ -0,0 +1 @@
1
+ export { IframeClickBlocker } from './IframeClickBlocker';
@@ -0,0 +1,12 @@
1
+ import { paletteColor } from '../../styles/types';
2
+ export interface LabelProps {
3
+ large?: boolean;
4
+ disabled?: boolean;
5
+ hasError: boolean;
6
+ }
7
+ export interface MappedLabelProps {
8
+ fontSize: string;
9
+ cursor: string;
10
+ color: paletteColor;
11
+ opacity: number;
12
+ }
@@ -0,0 +1,5 @@
1
+ import { DefaultTheme } from 'styled-components';
2
+ import { LabelProps, MappedLabelProps } from '../types/label';
3
+ export declare const getLabelStyle: ({ disabled, large, theme, hasError, }: LabelProps & {
4
+ theme: DefaultTheme;
5
+ }) => MappedLabelProps;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { AccordionProps } from './types';
3
+ declare const Accordion: ({ customOpenContentHeight, defaultOpen, divider, items, leftIcon, multipleOpen, openItem, rightIcon, setOpenItem, showItemsOnFirstRender, style, }: AccordionProps) => JSX.Element;
4
+ export default Accordion;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { AccordionItemProps } from '../../types';
3
- declare const AccordionItem: ({ content, header, index, leftIcon, open, rightIcon, style, toggle, }: AccordionItemProps) => JSX.Element;
3
+ declare const AccordionItem: ({ content, customOpenContentHeight, header, index, leftIcon, open, rightIcon, style, toggle, }: AccordionItemProps) => JSX.Element;
4
4
  export default AccordionItem;
@@ -12,5 +12,5 @@ export declare const Header: import("styled-components").StyledComponent<import(
12
12
  } & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
13
13
  export declare const HeaderContent: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, AccordionHeaderProps, never>;
14
14
  export declare const Content: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
15
- contentHeight: number | undefined;
15
+ contentHeight: number | string | undefined;
16
16
  }, never>;
@@ -0,0 +1,5 @@
1
+ export declare const TitleContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
2
+ export declare const Title: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
3
+ export declare const ActionIcon: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
4
+ export declare const HeaderElement: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
5
+ export declare const Body: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
@@ -19,6 +19,7 @@ export interface AccordionProps {
19
19
  header?: Record<string, unknown>;
20
20
  content?: Record<string, unknown>;
21
21
  };
22
+ customOpenContentHeight?: string;
22
23
  }
23
24
  export interface AccordionItemListProps {
24
25
  content: ReactNode;
@@ -42,6 +43,7 @@ export interface AccordionItemProps {
42
43
  content?: CSSProperties;
43
44
  };
44
45
  toggle: (index: number) => void;
46
+ customOpenContentHeight?: string;
45
47
  }
46
48
  export interface AccordionHeaderProps {
47
49
  leftPadding: string;
@@ -0,0 +1,9 @@
1
+ import React, { Component } from 'react';
2
+ import { TAccordion, UnstyledAccordionProps, UnstyledAccordionState } from './types';
3
+ export declare class UnstyledAccordion extends Component<UnstyledAccordionProps, UnstyledAccordionState> {
4
+ constructor(props: UnstyledAccordionProps);
5
+ handleOpenAccordion: () => void;
6
+ render(): React.JSX.Element;
7
+ }
8
+ declare const Accordion: TAccordion;
9
+ export default Accordion;
@@ -0,0 +1,8 @@
1
+ import { Meta } from '@storybook/react';
2
+ import React, { ComponentProps } from 'react';
3
+ import { TAccordion } from './types';
4
+ export declare const Normal: () => React.JSX.Element;
5
+ export declare const NormalThemed: () => React.JSX.Element;
6
+ export declare const ShowingBodyAtFirstRender: () => React.JSX.Element;
7
+ declare const AccordionStories: Meta<ComponentProps<TAccordion>>;
8
+ export default AccordionStories;
@@ -0,0 +1 @@
1
+ export declare const StyledAccordionWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
@@ -0,0 +1,2 @@
1
+ import Accordion from './accordions';
2
+ export { Accordion };
@@ -0,0 +1,19 @@
1
+ /// <reference types="react" />
2
+ interface Props {
3
+ title?: string;
4
+ renderTitle?: () => JSX.Element;
5
+ renderBody: () => JSX.Element;
6
+ renderLateralActions?: JSX.Element;
7
+ lateralActions?: Array<{
8
+ icon: JSX.Element;
9
+ action: () => void;
10
+ }>;
11
+ showBodyAtFirstRender?: boolean;
12
+ }
13
+ export declare type TAccordion = React.FunctionComponent<Props>;
14
+ export interface UnstyledAccordionProps extends Props {
15
+ }
16
+ export interface UnstyledAccordionState {
17
+ show: boolean;
18
+ }
19
+ export {};
@@ -1,22 +1,4 @@
1
1
  /// <reference types="react" />
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>;
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>;
22
4
  export declare const Divider: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { ReactDatePickerCustomHeaderProps } from 'react-datepicker';
3
+ declare type Props = Pick<ReactDatePickerCustomHeaderProps, 'changeMonth' | 'date'>;
4
+ declare const MonthPicker: ({ changeMonth, date }: Props) => JSX.Element;
5
+ export default MonthPicker;
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ import { DatePickerProps } from './types';
3
+ /**
4
+ * Component Props:
5
+ * @param {Date | null} date selected date
6
+ * @param {function} placeholderText text to show as placeholder
7
+ * @param {string|ReactNode} minDate minimum selectable date
8
+ * @param {string|ReactNode} maxDate maximum selectable date
9
+ * @others ReactDatePickerProps
10
+ */
11
+ declare const DatePicker: (props: DatePickerProps) => JSX.Element;
12
+ export default DatePicker;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { DatePickerImplProps } from './types';
3
+ declare const DatePickerImpl: (props: DatePickerImplProps) => JSX.Element;
4
+ export default DatePickerImpl;
@@ -0,0 +1,12 @@
1
+ /// <reference types="react" />
2
+ import { DatePickerProps } from './types';
3
+ /**
4
+ * Component Props:
5
+ * @param {Date | null} date selected date
6
+ * @param {function} placeholderText text to show as placeholder
7
+ * @param {string|ReactNode} minDate minimum selectable date
8
+ * @param {string|ReactNode} maxDate maximum selectable date
9
+ * @others ReactDatePickerProps
10
+ */
11
+ declare const NewDatePicker: (props: DatePickerProps) => JSX.Element;
12
+ export default NewDatePicker;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ interface Props {
3
+ onClick: () => void;
4
+ selected?: boolean;
5
+ text: string;
6
+ }
7
+ declare const CustomButton: ({ onClick, selected, text }: Props) => JSX.Element;
8
+ export default CustomButton;
@@ -0,0 +1,3 @@
1
+ import { ReactDatePickerProps } from 'react-datepicker';
2
+ declare const DatePickerDay: ReactDatePickerProps['renderDayContents'];
3
+ export default DatePickerDay;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ import { ReactDatePickerCustomHeaderProps } from 'react-datepicker';
3
+ export interface DatePickerHeaderProps extends ReactDatePickerCustomHeaderProps {
4
+ yearsDisplayed: number;
5
+ setHideMonth: (value: boolean) => void;
6
+ }
7
+ declare const DatePickerHeader: (props: DatePickerHeaderProps) => JSX.Element;
8
+ export default DatePickerHeader;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { ReactDatePickerCustomHeaderProps } from 'react-datepicker';
3
+ interface Props extends Pick<ReactDatePickerCustomHeaderProps, 'date' | 'changeYear'> {
4
+ yearsDisplayed: number;
5
+ }
6
+ declare const YearPicker: ({ date, changeYear, yearsDisplayed }: Props) => JSX.Element;
7
+ export default YearPicker;
@@ -0,0 +1,15 @@
1
+ import { DatePickerStatus } from '../../types';
2
+ import { DatePickerHeaderProps } from '../DatePickerHeader';
3
+ interface ReturnType {
4
+ status: DatePickerStatus;
5
+ title: string;
6
+ leftArrowOnClick: () => void;
7
+ leftArrowIsDisabled: boolean;
8
+ rightArrowOnClick: () => void;
9
+ rightArrowIsDisabled: boolean;
10
+ onBottomArrowClick: () => void;
11
+ showBottomArrow: boolean;
12
+ showLRArrows: boolean;
13
+ }
14
+ declare const useDatePickerHeaderShowLogic: ({ date, decreaseMonth, increaseMonth, prevMonthButtonDisabled, nextMonthButtonDisabled, nextYearButtonDisabled, prevYearButtonDisabled, decreaseYear, increaseYear, }: DatePickerHeaderProps) => ReturnType;
15
+ export default useDatePickerHeaderShowLogic;
@@ -0,0 +1,5 @@
1
+ interface DatePickerItemProps {
2
+ isActive: boolean;
3
+ }
4
+ export declare const DatePickerItem: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, DatePickerItemProps, never>;
5
+ export {};
@@ -0,0 +1,33 @@
1
+ import { colorsPalette } from '../../../common/types/colorsPalette';
2
+ import { paletteColor } from '../../../styles/types';
3
+ declare type ItemStatus = 'normal' | 'active' | 'normalHover' | 'activeHover' | 'disabled';
4
+ declare type DayPalette = {
5
+ borderRadius: string;
6
+ today: {
7
+ [k in Exclude<ItemStatus, 'disabled'>]: colorsPalette;
8
+ };
9
+ inMonth: {
10
+ [k in ItemStatus]: colorsPalette;
11
+ };
12
+ outMonth: {
13
+ [k in Exclude<ItemStatus, 'active' | 'activeHover' | 'disabled'>]: colorsPalette;
14
+ };
15
+ };
16
+ declare type ItemStatusPalette = {
17
+ [k in ItemStatus]: colorsPalette;
18
+ };
19
+ interface ItemPalette extends ItemStatusPalette {
20
+ borderRadius: string;
21
+ }
22
+ interface DaysNamesPalette {
23
+ color: paletteColor;
24
+ }
25
+ export interface DatePickerPalette {
26
+ background: paletteColor;
27
+ weekDaysNames: DaysNamesPalette;
28
+ days: DayPalette;
29
+ item: ItemPalette;
30
+ defaultYearsDisplayed: number;
31
+ }
32
+ declare const datePickerPalette: DatePickerPalette;
33
+ export default datePickerPalette;
@@ -0,0 +1,18 @@
1
+ import { Meta, Story } from '@storybook/react';
2
+ import { DatePickerProps } from './types';
3
+ export declare const Normal: Story<DatePickerProps & {
4
+ renderWrapper: boolean;
5
+ containerWidth: number;
6
+ containerHeight: number;
7
+ }>;
8
+ export declare const WithCustomButton: Story<DatePickerProps & {
9
+ renderWrapper: boolean;
10
+ containerWidth: number;
11
+ containerHeight: number;
12
+ }>;
13
+ declare const DatePickerStories: Meta<DatePickerProps & {
14
+ renderWrapper: boolean;
15
+ containerWidth: number;
16
+ containerHeight: number;
17
+ }>;
18
+ export default DatePickerStories;
@@ -0,0 +1,12 @@
1
+ import { Dispatch, SetStateAction } from 'react';
2
+ import { DateFormats } from '../../../../common/types/dateTypes';
3
+ declare type ReturnType = [Date | null, Dispatch<SetStateAction<Date | null>>, string | null, string];
4
+ /**
5
+ * Hook to manage a date in string format
6
+ * @param {string|null} initialValue Initial string value representing a date
7
+ * @param {DateFormats} allowedFormats Array of allowed formats, the hook will try to parse the initial value using this formats
8
+ * @param {dateFormat} outputFormat The string value returned by the hook will be formatted with this format
9
+ * @returns {[Date|null, function, string|null, string]} Returns an array with a Date object, the function to update it, a string representation of the date (formatted using the third parameter of the hook) and the currently used format
10
+ */
11
+ declare const useFormattedDate: (initialValue?: string | null | undefined, allowedFormats?: DateFormats | null | undefined, outputFormat?: string | undefined) => ReturnType;
12
+ export default useFormattedDate;
@@ -0,0 +1,2 @@
1
+ declare const useYearsList: (dateYear: number, page: number, yearsCount: number) => number[];
2
+ export default useYearsList;
@@ -0,0 +1,5 @@
1
+ export { default as NewDatePicker } from './NewDatePicker';
2
+ export { default as newDatePickerPalette, DatePickerPalette } from './newDatePickerPalette';
3
+ export { default as useFormattedDate } from './hooks/useFormattedDate';
4
+ export { DatePickerProps as NewDatepickerProps } from './types';
5
+ export { timeConversionOptions } from './utils';
@@ -0,0 +1,33 @@
1
+ import { colorsPalette } from '../../../common/types/colorsPalette';
2
+ import { paletteColor } from '../../../styles/types';
3
+ declare type ItemStatus = 'normal' | 'active' | 'normalHover' | 'activeHover' | 'disabled';
4
+ declare type DayPalette = {
5
+ borderRadius: string;
6
+ today: {
7
+ [k in Exclude<ItemStatus, 'disabled'>]: colorsPalette;
8
+ };
9
+ inMonth: {
10
+ [k in ItemStatus]: colorsPalette;
11
+ };
12
+ outMonth: {
13
+ [k in Exclude<ItemStatus, 'active' | 'activeHover' | 'disabled'>]: colorsPalette;
14
+ };
15
+ };
16
+ declare type ItemStatusPalette = {
17
+ [k in ItemStatus]: colorsPalette;
18
+ };
19
+ interface ItemPalette extends ItemStatusPalette {
20
+ borderRadius: string;
21
+ }
22
+ interface DaysNamesPalette {
23
+ color: paletteColor;
24
+ }
25
+ export interface DatePickerPalette {
26
+ background: paletteColor;
27
+ weekDaysNames: DaysNamesPalette;
28
+ days: DayPalette;
29
+ item: ItemPalette;
30
+ defaultYearsDisplayed: number;
31
+ }
32
+ declare const datePickerPalette: DatePickerPalette;
33
+ export default datePickerPalette;
@@ -0,0 +1,6 @@
1
+ export declare const StyledDatePicker: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
2
+ fitBiggerContainer?: boolean | undefined;
3
+ hideMonth: boolean;
4
+ }, never>;
5
+ export declare const FooterWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
6
+ export declare const SelectedOption: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
@@ -0,0 +1,31 @@
1
+ import { Dispatch, ReactNode, SetStateAction } from 'react';
2
+ import { ReactDatePickerProps } from 'react-datepicker';
3
+ import { CommonFormTypes } from '../common/types';
4
+ import { LabelProps } from '../label';
5
+ export declare type DatePickerStatus = 'dayPicker' | 'yearPicker';
6
+ export declare type RenderCustomFooterType = (props: RenderCustomFooterProps) => ReactNode;
7
+ export declare type CustomButtonProps = {
8
+ text: string;
9
+ onClick: (props: RenderCustomFooterProps) => void;
10
+ };
11
+ export interface RenderCustomFooterProps extends DatePickerImplProps {
12
+ isOpen: boolean;
13
+ setIsOpen: Dispatch<SetStateAction<boolean>>;
14
+ }
15
+ export interface DatePickerImplProps extends Omit<ReactDatePickerProps, 'onChange'>, CommonFormTypes {
16
+ date?: Date | null;
17
+ startDate?: Date | null;
18
+ endDate?: Date | null;
19
+ setDate: Dispatch<SetStateAction<Date | null>>;
20
+ yearsDisplayed?: number;
21
+ hasTodayButton?: boolean;
22
+ customButtons?: CustomButtonProps[];
23
+ renderCustomFooter?: RenderCustomFooterType;
24
+ isPrefilled?: boolean;
25
+ onChangeManually?: (date: Date | null) => void;
26
+ inline?: boolean;
27
+ fitBiggerContainer?: boolean;
28
+ includeDates?: Date[];
29
+ excludeDates?: Date[];
30
+ }
31
+ export declare type DatePickerProps = LabelProps & DatePickerImplProps;
@@ -0,0 +1,3 @@
1
+ import { DateFormats } from '../../../common/types/dateTypes';
2
+ export declare const timeConversionOptions: Intl.DateTimeFormatOptions;
3
+ export declare const findFormat: (value: string | null | undefined, formats: DateFormats) => string;
@@ -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>, 'isLoading' | 'isRowDisabled' | 'isRowHighlighted' | 'onRowClick' | 'rowActions' | 'rowHighlightColor' | 'rowSelection' | 'rowTooltip'> {
4
+ interface BodyProps<T> extends Pick<TableProps<T>, 'bodyHeight' | 'isLoading' | 'isRowDisabled' | 'isRowHighlighted' | 'onRowClick' | 'rowActions' | 'rowHighlightColor' | 'rowSelection' | 'rowTooltip'> {
5
5
  pageIndex: number;
6
6
  rows: RowType<T>[];
7
7
  }
8
- declare const Body: <T>({ isLoading, isRowDisabled, isRowHighlighted, onRowClick, pageIndex, rowActions, rowHighlightColor, rowSelection, rowTooltip, rows, }: BodyProps<T>) => JSX.Element;
8
+ declare const Body: <T>({ bodyHeight, isLoading, isRowDisabled, isRowHighlighted, onRowClick, pageIndex, rowActions, rowHighlightColor, rowSelection, rowTooltip, rows, }: BodyProps<T>) => JSX.Element;
9
9
  export default Body;
@@ -3,7 +3,6 @@ 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;
7
6
  isEditable: boolean;
8
7
  maxWidth?: number;
9
8
  minWidth?: number;
@@ -1,19 +1,9 @@
1
- /// <reference types="react" />
2
1
  declare type DSTdProps = {
3
- fixedWidth?: number;
4
2
  justifyContent: 'center' | 'left' | 'right';
5
3
  maxWidth?: number;
6
4
  minWidth?: number;
7
5
  };
8
6
  export declare const BaseTd: import("styled-components").StyledComponent<"td", import("styled-components").DefaultTheme, {}, 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>;
7
+ export declare const DSTd: import("styled-components").StyledComponent<"td", import("styled-components").DefaultTheme, DSTdProps, never>;
18
8
  export declare const CutText: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
19
9
  export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ColumnPinningPosition } from '@tanstack/react-table';
3
2
  import { RowSize } from '../../../types';
4
3
  declare type DSThProps = {
@@ -7,13 +6,5 @@ declare type DSThProps = {
7
6
  minWidth?: number;
8
7
  maxWidth?: number;
9
8
  };
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>;
9
+ export declare const DSThFooter: import("styled-components").StyledComponent<"th", import("styled-components").DefaultTheme, DSThProps, never>;
19
10
  export {};
@@ -4,9 +4,4 @@ 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>;
12
7
  export {};
@@ -4,9 +4,10 @@ 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;
7
8
  onRowSelection?: (e: string[]) => void;
8
9
  rowSelection?: string[];
9
10
  table: Table<T>;
10
11
  };
11
- declare const Header: <T>({ actionsHeader, headerGroups, headerSize, onRowSelection, onSort, rowSelection, table, }: HeaderProps<T>) => JSX.Element;
12
+ declare const Header: <T>({ actionsHeader, headerGroups, headerSize, isSelectable, onRowSelection, onSort, rowSelection, table, }: HeaderProps<T>) => JSX.Element;
12
13
  export default Header;
@@ -1,4 +1,5 @@
1
1
  declare type ActionsThHeaderProps = {
2
+ hasContent: boolean;
2
3
  actionColumnWidth: number;
3
4
  };
4
5
  export declare const ActionsThHeader: import("styled-components").StyledComponent<"th", import("styled-components").DefaultTheme, ActionsThHeaderProps, never>;
@@ -1,19 +1,9 @@
1
- /// <reference types="react" />
2
1
  import { ColumnPinningPosition } from '@tanstack/react-table';
3
2
  declare type DSThProps = {
4
- fixedWidth?: number;
5
3
  isPinned: ColumnPinningPosition;
6
4
  minWidth?: number;
7
5
  maxWidth?: number;
8
6
  sortable: boolean;
9
7
  };
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>;
8
+ export declare const DSThHeader: import("styled-components").StyledComponent<"th", import("styled-components").DefaultTheme, DSThProps, never>;
19
9
  export {};
@@ -3,7 +3,6 @@ import { TooltipProps } from '../../../../tooltip';
3
3
  interface HeaderValues<T> {
4
4
  canSort: boolean;
5
5
  column: Column<T, unknown>;
6
- fixedWidth?: number;
7
6
  isSorted: boolean;
8
7
  isSortedDesc: string | null;
9
8
  maxWidth?: number;
@@ -1,5 +1,8 @@
1
1
  import { RowSize } from '../../types';
2
- export declare const DSTHead: import("styled-components").StyledComponent<"thead", import("styled-components").DefaultTheme, {}, never>;
2
+ declare type DSTHeadProps = {
3
+ scrollbarPadding: number;
4
+ };
5
+ export declare const DSTHead: import("styled-components").StyledComponent<"thead", import("styled-components").DefaultTheme, DSTHeadProps, never>;
3
6
  declare type DSTrHeaderProps = {
4
7
  headerSize?: RowSize;
5
8
  };
@@ -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 = 18;
5
+ export declare const CHECKBOX_WIDTH = 35;
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 { 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';
2
+ export * from './types';
3
3
  export * from './customCells';
@@ -1,8 +1,6 @@
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, {
4
- maxHeight?: number | undefined;
5
- }, never>;
3
+ export declare const HorizontalScroll: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
6
4
  export declare const DSTable: import("styled-components").StyledComponent<"table", import("styled-components").DefaultTheme, {}, never>;
7
5
  export declare const SortIndicator: import("styled-components").StyledComponent<({ isDisabled, onClick, ...props }: import("../icon").IconProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
8
6
  export declare const PaginationContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
@@ -18,7 +18,6 @@ export declare type BaseColumnDef<T> = IdentifiedColumnDef<T> & {
18
18
  id?: string;
19
19
  maxWidth?: number;
20
20
  minWidth?: number;
21
- fixedWidth?: number;
22
21
  multiline?: boolean;
23
22
  };
24
23
  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> = Omit<DropdownItemProps, 'onClick'> & {
29
+ export declare type TableActionsDropdowItem<T> = DropdownItemProps & {
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;
14
15
  columns: ColumnsType<T>[];
15
16
  data: T[];
16
17
  headerSize?: RowSize;
17
18
  isLoading?: boolean;
18
19
  isRowDisabled?: (row: Row<T>) => boolean;
19
20
  loadingStyle?: LoadingStyle;
20
- maxHeight?: number;
21
21
  onRowClick?: (row: Row<T>) => void;
22
22
  renderEmptyState?: () => JSX.Element;
23
23
  rowTooltip?: (row: Row<T>) => string;