@fattureincloud/fic-design-system 0.19.33 → 0.19.35
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/common/components/Label.d.ts +3 -0
- package/dist/common/components/iframeClickBlocker/iframeClickBlocker.stories.d.ts +6 -0
- package/dist/common/components/iframeClickBlocker/index.d.ts +1 -0
- package/dist/common/types/label.d.ts +12 -0
- package/dist/common/utils/label.d.ts +5 -0
- package/dist/components/accordion/styled.d.ts +5 -0
- package/dist/components/accordions/accordions.d.ts +9 -0
- package/dist/components/accordions/accordions.stories.d.ts +8 -0
- package/dist/components/accordions/components/styledAccordionWrapper.d.ts +1 -0
- package/dist/components/accordions/index.d.ts +2 -0
- package/dist/components/accordions/types.d.ts +19 -0
- package/dist/components/chart/stories/styled.d.ts +2 -20
- package/dist/components/form/datepicker/components/MonthPicker.d.ts +5 -0
- package/dist/components/form/datepickerNew/DatePicker.d.ts +12 -0
- package/dist/components/form/datepickerNew/DatePickerImpl.d.ts +4 -0
- package/dist/components/form/datepickerNew/NewDatePicker.d.ts +12 -0
- package/dist/components/form/datepickerNew/components/CustomButton.d.ts +8 -0
- package/dist/components/form/datepickerNew/components/DatePickerDay.d.ts +3 -0
- package/dist/components/form/datepickerNew/components/DatePickerHeader.d.ts +8 -0
- package/dist/components/form/datepickerNew/components/YearPicker.d.ts +7 -0
- package/dist/components/form/datepickerNew/components/hooks/useDatePickerHeaderShowLogic.d.ts +15 -0
- package/dist/components/form/datepickerNew/components/styled.d.ts +5 -0
- package/dist/components/form/datepickerNew/datePickerPalette.d.ts +33 -0
- package/dist/components/form/datepickerNew/datepicker.stories.d.ts +18 -0
- package/dist/components/form/datepickerNew/hooks/useFormattedDate.d.ts +12 -0
- package/dist/components/form/datepickerNew/hooks/useYearsList.d.ts +2 -0
- package/dist/components/form/datepickerNew/index.d.ts +5 -0
- package/dist/components/form/datepickerNew/newDatePickerPalette.d.ts +33 -0
- package/dist/components/form/datepickerNew/styled.d.ts +6 -0
- package/dist/components/form/datepickerNew/types.d.ts +31 -0
- package/dist/components/form/datepickerNew/utils.d.ts +3 -0
- package/dist/components/layout/sidebarItem/sidebarItem.stories.d.ts +1 -0
- package/dist/components/layout/sidebarItem/styled.d.ts +4 -0
- package/dist/components/layout/sidebarItem/types.d.ts +9 -3
- package/dist/components/layout/sidebarItem/utils.d.ts +1 -1
- package/dist/components/modals/modalStyled.d.ts +4 -1
- package/dist/components/modals/stepModal/StepModal.d.ts +3 -0
- package/dist/components/modals/stepModal/components/StepModalBody.d.ts +1 -1
- package/dist/components/modals/stepModal/components/StepModalFooter.d.ts +1 -1
- package/dist/components/modals/stepModal/components/StepModalHeader.d.ts +1 -1
- package/dist/components/modals/stepModal/components/styled.d.ts +9 -1
- package/dist/components/modals/stepModal/components/utils.d.ts +1 -1
- package/dist/components/modals/stepModal/styled.d.ts +1 -0
- package/dist/components/modals/stepModal/types.d.ts +3 -0
- package/dist/components/modals/types.d.ts +1 -0
- package/dist/components/newTable_v2/components/body/Body.d.ts +2 -2
- package/dist/components/newTable_v2/components/cell/hooks/useCellValues.d.ts +0 -1
- package/dist/components/newTable_v2/components/cell/styled.d.ts +1 -11
- package/dist/components/newTable_v2/components/footer/footerCell/styled.d.ts +1 -10
- package/dist/components/newTable_v2/components/footer/styled.d.ts +0 -5
- package/dist/components/newTable_v2/components/header/Header.d.ts +2 -1
- package/dist/components/newTable_v2/components/header/actionsHeader/styled.d.ts +1 -0
- package/dist/components/newTable_v2/components/header/headerCell/styled.d.ts +1 -11
- package/dist/components/newTable_v2/components/header/hooks/useHeaderValues.d.ts +0 -1
- package/dist/components/newTable_v2/components/header/styled.d.ts +4 -1
- package/dist/components/newTable_v2/constants.d.ts +1 -1
- package/dist/components/newTable_v2/index.d.ts +1 -1
- package/dist/components/newTable_v2/styled.d.ts +1 -3
- package/dist/components/newTable_v2/types/columnsTypes.d.ts +0 -1
- package/dist/components/newTable_v2/types/features/actions.d.ts +1 -1
- package/dist/components/newTable_v2/types/tableTypes.d.ts +1 -1
- package/dist/components/newTable_v2/utils.d.ts +0 -11
- package/dist/components/tableV3/components/body/Body.d.ts +2 -4
- package/dist/components/tableV3/styled.d.ts +0 -1
- package/dist/components/verticalTab/VerticalTab.d.ts +4 -0
- package/dist/components/verticalTab/components/VerticalTabSelector/VerticalTabSelector.d.ts +13 -0
- package/dist/components/verticalTab/components/VerticalTabSelector/index.d.ts +5 -0
- package/dist/components/verticalTab/components/VerticalTabSelector/styled.d.ts +11 -0
- package/dist/components/verticalTab/components/VerticalTabSelector/types.d.ts +37 -0
- package/dist/components/verticalTab/components/VerticalTabSelector/verticalTabSelector.stories.d.ts +5 -0
- package/dist/components/verticalTab/components/VerticalTabSelector/verticalTabSelectorPalette.d.ts +3 -0
- package/dist/components/verticalTab/index.d.ts +2 -0
- package/dist/components/verticalTab/styled.d.ts +6 -0
- package/dist/components/verticalTab/types.d.ts +6 -0
- package/dist/components/verticalTab/verticalTab.stories.d.ts +8 -0
- package/dist/index.esm.js +9 -9
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +8 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/components/ficFeatures/components/featureCategory/IconSelector.d.ts +0 -10
- package/dist/components/ficFeatures/configExample.d.ts +0 -3
- package/dist/components/ficFeatures/icons.d.ts +0 -6
- package/dist/components/ficFeatures/styled.d.ts +0 -2
- package/dist/components/inlineMessage/const.d.ts +0 -2
- package/dist/components/tableV3/hooks/usePagination.d.ts +0 -8
- /package/dist/components/accordion/{Accordion.d.ts → accordion.d.ts} +0 -0
|
@@ -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
|
+
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>;
|
|
@@ -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,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("
|
|
3
|
-
|
|
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,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
|
+
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,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,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;
|
|
@@ -2,5 +2,6 @@ import { Meta, Story } from '@storybook/react';
|
|
|
2
2
|
import { SidebarItemProps } from '.';
|
|
3
3
|
export declare const Template: Story<SidebarItemProps>;
|
|
4
4
|
export declare const Normal: Story<SidebarItemProps>;
|
|
5
|
+
export declare const TemporaryItem: Story<SidebarItemProps>;
|
|
5
6
|
declare const SidebarItemStory: Meta<SidebarItemProps>;
|
|
6
7
|
export default SidebarItemStory;
|
|
@@ -4,11 +4,15 @@ import { SidebarItemStyles } from './types';
|
|
|
4
4
|
export interface WrapperProps {
|
|
5
5
|
isActive: boolean;
|
|
6
6
|
isDisabled: boolean;
|
|
7
|
+
isTemporary?: boolean;
|
|
7
8
|
customColor?: paletteColor;
|
|
8
9
|
withoutPadding: boolean;
|
|
9
10
|
}
|
|
10
11
|
export declare const sidebarItemHeight = 44;
|
|
11
12
|
export declare const Dropdown: import("styled-components").StyledComponent<({ className, content }: import("./types").SidebarItemDropdownProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
|
13
|
+
export declare const DismissButton: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {
|
|
14
|
+
isActive?: boolean | undefined;
|
|
15
|
+
}, never>;
|
|
12
16
|
export declare const SidebarItemWrapper: import("styled-components").StyledComponent<"a", import("styled-components").DefaultTheme, SidebarItemStyles & WrapperProps, keyof SidebarItemStyles>;
|
|
13
17
|
export declare const Title: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
14
18
|
export declare const NoIcon: import("styled-components").StyledComponent<({ isDisabled, onClick, ...props }: import("../../icon").IconProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -19,6 +19,8 @@ export interface SidebarItemProps {
|
|
|
19
19
|
customProps?: CustomSidebarItemProps;
|
|
20
20
|
href?: string;
|
|
21
21
|
badgeConfig?: SidebarBadgeConfigProps;
|
|
22
|
+
isTemporary?: boolean;
|
|
23
|
+
onDismiss?: () => void;
|
|
22
24
|
}
|
|
23
25
|
export interface CustomSidebarItemProps {
|
|
24
26
|
color?: paletteColor;
|
|
@@ -34,12 +36,16 @@ export declare enum SidebarBadgeConfigType {
|
|
|
34
36
|
COUNTER = 0,
|
|
35
37
|
ICON = 1,
|
|
36
38
|
DOT = 2,
|
|
37
|
-
COUNTER_ICON = 3
|
|
39
|
+
COUNTER_ICON = 3,
|
|
40
|
+
NEW = 4
|
|
38
41
|
}
|
|
39
42
|
declare type BadgeBaseConfig = {
|
|
40
43
|
size?: BadgeSize;
|
|
41
44
|
variant?: FloatingBadgeType;
|
|
42
45
|
};
|
|
46
|
+
interface BadgeNewConfig extends BadgeBaseConfig {
|
|
47
|
+
type: SidebarBadgeConfigType.NEW;
|
|
48
|
+
}
|
|
43
49
|
interface BadgeCounterConfig extends BadgeBaseConfig {
|
|
44
50
|
type: SidebarBadgeConfigType.COUNTER;
|
|
45
51
|
counter: number | string;
|
|
@@ -56,8 +62,8 @@ interface BadgeCounterIconConfig extends BadgeBaseConfig {
|
|
|
56
62
|
icon: IconProps;
|
|
57
63
|
counter: number | string;
|
|
58
64
|
}
|
|
59
|
-
export declare type SidebarBadgeConfigProps = BadgeCounterConfig | BadgeIconConfig | BadgeDotConfig | BadgeCounterIconConfig;
|
|
60
|
-
declare type StatusType = 'normal' | 'active' | 'disabled';
|
|
65
|
+
export declare type SidebarBadgeConfigProps = BadgeCounterConfig | BadgeIconConfig | BadgeDotConfig | BadgeCounterIconConfig | BadgeNewConfig;
|
|
66
|
+
declare type StatusType = 'normal' | 'active' | 'disabled' | 'temporary';
|
|
61
67
|
export interface SidebarItemStyles extends colorsPalette {
|
|
62
68
|
hoverColor: paletteColor;
|
|
63
69
|
hoverBackground: paletteColor;
|
|
@@ -4,5 +4,5 @@ import { SidebarItemStyles } from './types';
|
|
|
4
4
|
interface GetSidebarItemStylesParams extends WrapperProps {
|
|
5
5
|
theme: DefaultTheme;
|
|
6
6
|
}
|
|
7
|
-
export declare const getSidebarItemStyles: ({ isActive, isDisabled, theme, }: GetSidebarItemStylesParams) => SidebarItemStyles;
|
|
7
|
+
export declare const getSidebarItemStyles: ({ isActive, isDisabled, isTemporary, theme, }: GetSidebarItemStylesParams) => SidebarItemStyles;
|
|
8
8
|
export {};
|
|
@@ -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, {
|
|
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,
|
|
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, {
|
|
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;
|
|
@@ -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;
|
|
@@ -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,
|
|
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 {};
|