@fattureincloud/fic-design-system 0.17.6 → 0.18.0
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/assets/index-0788b002.css +626 -0
- package/dist/assets/index.esm-7d789d8e.css +626 -0
- package/dist/common/components/Label.d.ts +3 -0
- package/dist/common/components/typography/Typography.d.ts +100 -12
- package/dist/common/components/typography/types.d.ts +1 -1
- package/dist/common/types/label.d.ts +12 -0
- package/dist/common/utils/label.d.ts +5 -0
- package/dist/common/utils/stringUtils.d.ts +2 -2
- package/dist/components/accordion/components/accordionItem/styled.d.ts +10 -1
- package/dist/components/accordion-new/Accordion.d.ts +12 -0
- package/dist/components/accordion-new/accordion-new.stories.d.ts +4 -0
- package/dist/components/accordion-new/components/AccordionIcon.d.ts +3 -0
- package/dist/components/accordion-new/components/AccordionItem.d.ts +3 -0
- package/dist/components/accordion-new/components/styled.d.ts +8 -0
- package/dist/components/accordion-new/index.d.ts +3 -0
- package/dist/components/accordion-new/types.d.ts +58 -0
- package/dist/components/accordion-new/utils.d.ts +10 -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 +1 -0
- package/dist/components/accordions/types.d.ts +19 -0
- package/dist/components/banner/utils.d.ts +8 -0
- package/dist/components/carousel/components/common/styled.d.ts +2 -0
- package/dist/components/chart/areaChart/AreaChart.d.ts +4 -0
- package/dist/components/chart/barChart/BarChart.d.ts +4 -0
- package/dist/components/chart/chart.stories.d.ts +6 -5
- package/dist/components/chart/common/components/ChartEmptyState.d.ts +5 -0
- package/dist/components/chart/common/components/Legend.d.ts +3 -0
- package/dist/components/chart/common/components/Tooltip.d.ts +3 -0
- package/dist/components/chart/common/types.d.ts +25 -0
- package/dist/components/chart/common/useChartData.d.ts +6 -0
- package/dist/components/chart/common/utils.d.ts +4 -0
- package/dist/components/chart/components/styled.d.ts +13 -0
- package/dist/components/chart/index.d.ts +6 -2
- package/dist/components/chart/lineChart/LineChart.d.ts +4 -0
- package/dist/components/chart/pieChart/PieChart.d.ts +4 -0
- package/dist/components/chart/pieChart/types.d.ts +27 -0
- package/dist/components/checkbox/Checkbox.d.ts +15 -0
- package/dist/components/checkbox/checkbox.stories.d.ts +1 -0
- package/dist/components/checkbox/checkboxPalette.d.ts +16 -0
- package/dist/components/checkbox/components/Input.d.ts +9 -0
- package/dist/components/checkbox/components/Label.d.ts +8 -0
- package/dist/components/checkbox/hooks/useCheckboxValue.d.ts +11 -0
- package/dist/components/checkbox/index.d.ts +4 -0
- package/dist/components/checkbox/types.d.ts +19 -0
- package/dist/components/checkbox/utils.d.ts +24 -0
- package/dist/components/chips/chips.d.ts +7 -0
- package/dist/components/chips/chips.stories.d.ts +6 -0
- package/dist/components/chips/components/styledChipWrapper.d.ts +4 -0
- package/dist/components/chips/index.d.ts +2 -0
- package/dist/components/chips/types.d.ts +11 -0
- package/dist/components/circularProgressBar/styled.d.ts +10 -1
- package/dist/components/closableCard/styled.d.ts +20 -2
- package/dist/components/drawer/types.d.ts +14 -0
- package/dist/components/ficFeatures/components/feature/styled.d.ts +10 -1
- package/dist/components/form/checkbox/components/Input.d.ts +9 -0
- package/dist/components/form/checkbox/components/Label.d.ts +8 -0
- package/dist/components/form/datepicker/StyledDatePicker.d.ts +1 -0
- package/dist/components/form/datepicker/components/MonthPicker.d.ts +5 -0
- package/dist/components/form/fileUploader/fileTypes.d.ts +3 -0
- package/dist/components/form/fileUploader/hooks/useIcon.d.ts +4 -0
- package/dist/components/form/fileUploader/hooks/useTexts.d.ts +3 -0
- package/dist/components/form/select/components/Placeholder.d.ts +4 -0
- package/dist/components/form/select/components/types.d.ts +10 -0
- package/dist/components/gridCard/GridCard.d.ts +4 -2
- package/dist/components/gridCard/types.d.ts +2 -1
- package/dist/components/groupRadioButton/index.d.ts +23 -0
- package/dist/components/groupRadioButton/radio-group.stories.d.ts +6 -0
- package/dist/components/inlineMessages/components/styledInlineMessageWrapper.d.ts +8 -0
- package/dist/components/inlineMessages/index.d.ts +2 -0
- package/dist/components/inlineMessages/inlineMessages.d.ts +4 -0
- package/dist/components/inlineMessages/inlineMessages.stories.d.ts +7 -0
- package/dist/components/inlineMessages/types.d.ts +29 -0
- package/dist/components/inputText/components/icons.d.ts +8 -0
- package/dist/components/inputText/components/inputContainer.d.ts +1 -0
- package/dist/components/inputText/components/messages.d.ts +2 -0
- package/dist/components/inputText/components/wrapperTextArea.d.ts +1 -0
- package/dist/components/inputText/icons.d.ts +9 -0
- package/dist/components/inputText/index.d.ts +3 -0
- package/dist/components/inputText/inputText.stories.d.ts +1 -0
- package/dist/components/inputText/inputTextStyledWrapper.d.ts +2 -0
- package/dist/components/inputText/sideText.d.ts +6 -0
- package/dist/components/inputText/typings/enums.d.ts +17 -0
- package/dist/components/inputText/typings/inputText.d.ts +43 -0
- package/dist/components/inputText/utils.d.ts +8 -0
- package/dist/components/monthlyTab/components/month/styled.d.ts +30 -3
- package/dist/components/monthlyTab/styled.d.ts +10 -1
- package/dist/components/newTable/components/action/favorite/Favorite.d.ts +13 -0
- package/dist/components/newTable/components/action/favorite/index.d.ts +1 -0
- package/dist/components/newTable/components/action/favorite/styled.d.ts +3 -0
- package/dist/components/pagination/paginationStyledWrapper.d.ts +1 -0
- package/dist/components/progressbar/components/styledProgressbarWrapper.d.ts +2 -0
- package/dist/components/radioButton/components/label.d.ts +2 -0
- package/dist/components/radioButton/components/radio.d.ts +2 -0
- package/dist/components/radioButton/index.d.ts +2 -0
- package/dist/components/radioButton/radio.stories.d.ts +6 -0
- package/dist/components/radioButton/typings/radioButton.d.ts +21 -0
- package/dist/components/select/hooks/constants.d.ts +4613 -0
- package/dist/components/select/hooks/useCustomSelectStyle.d.ts +4 -0
- package/dist/components/select/index.d.ts +4 -0
- package/dist/components/select/select.stories.d.ts +1 -0
- package/dist/components/select/typings/select.d.ts +22 -0
- package/dist/components/stepBar/components/singleStep.d.ts +3 -0
- package/dist/components/stepBar/components/styledStepBarWrapper.d.ts +2 -0
- package/dist/components/stepBar/index.d.ts +2 -0
- package/dist/components/stepBar/stepBar.d.ts +7 -0
- package/dist/components/stepBar/stepBar.stories.d.ts +1 -0
- package/dist/components/stepBar/types.d.ts +15 -0
- package/dist/components/table/components/EmptyState.d.ts +7 -0
- package/dist/components/table/components/SelectedRowsCount.d.ts +7 -0
- package/dist/components/table/components/actionLink.d.ts +3 -0
- package/dist/components/table/components/actions/ActionsCell.d.ts +10 -0
- package/dist/components/table/components/actions/DropdownActions.d.ts +10 -0
- package/dist/components/table/components/actions/PrimaryAction.d.ts +12 -0
- package/dist/components/table/components/actions/actionsContainer.d.ts +1 -0
- package/dist/components/table/components/actions/actionsPopUp.d.ts +12 -0
- package/dist/components/table/components/actions/actionsPopUpButton.d.ts +8 -0
- package/dist/components/table/components/actions/actionsPopUpUnderlay.d.ts +3 -0
- package/dist/components/table/components/checkboxes/Cell.d.ts +5 -0
- package/dist/components/table/components/checkboxes/Header.d.ts +5 -0
- package/dist/components/table/components/checkboxes/useHeaderCheckboxProps.d.ts +12 -0
- package/dist/components/table/components/components/headDesktop.d.ts +15 -0
- package/dist/components/table/components/components/listMobile.d.ts +15 -0
- package/dist/components/table/components/components/rowDesktop.d.ts +18 -0
- package/dist/components/table/components/customizationModal/customizationsModal.d.ts +10 -0
- package/dist/components/table/components/customizationModal/index.d.ts +2 -0
- package/dist/components/table/components/customizationModal/styledWrapper.d.ts +3 -0
- package/dist/components/table/components/customizationModal/useDnd.d.ts +8 -0
- package/dist/components/table/components/customizationModal/utils.d.ts +6 -0
- package/dist/components/table/components/emptySet.d.ts +10 -0
- package/dist/components/table/components/linearBackground.d.ts +1 -0
- package/dist/components/table/components/loadingCell/LoadingCell.d.ts +8 -0
- package/dist/components/table/components/loadingContent.d.ts +7 -0
- package/dist/components/table/components/pagination/PageButton.d.ts +10 -0
- package/dist/components/table/components/pagination/PaginationButtons.d.ts +10 -0
- package/dist/components/table/components/pagination/utils.d.ts +14 -0
- package/dist/components/table/components/pagination.d.ts +8 -0
- package/dist/components/table/components/sortIcon.d.ts +2 -0
- package/dist/components/table/components/styledWrapper.d.ts +3 -0
- package/dist/components/table/components/tableBody/TableBody.d.ts +17 -0
- package/dist/components/table/components/tableBody/TableBodyTr.d.ts +8 -0
- package/dist/components/table/components/tableHeader/SortIndicator.d.ts +7 -0
- package/dist/components/table/components/tableHeader/TableHeader.d.ts +12 -0
- package/dist/components/table/components/tableParts/TableTd.d.ts +8 -0
- package/dist/components/table/components/tableParts/TableTh.d.ts +4 -0
- package/dist/components/table/components/tableParts/styled.d.ts +17 -0
- package/dist/components/table/components/unstyledTable.d.ts +11 -0
- package/dist/components/table/constants.d.ts +2 -0
- package/dist/components/table/hooks/useCheckboxesComponents.d.ts +4 -0
- package/dist/components/table/hooks/useRowsSelection.d.ts +4 -0
- package/dist/components/table/hooks/useTableHooks.d.ts +6 -0
- package/dist/components/table/hooks/useTableValues.d.ts +14 -0
- package/dist/components/table/index.d.ts +7 -0
- package/dist/components/table/stories/columns.d.ts +3 -0
- package/dist/components/table/stories/components/CustomPerson.d.ts +7 -0
- package/dist/components/table/stories/components/Role.d.ts +8 -0
- package/dist/components/table/stories/components/types.d.ts +14 -0
- package/dist/components/table/stories/data.d.ts +2 -0
- package/dist/components/table/table.d.ts +57 -0
- package/dist/components/table/table.stories.d.ts +6 -0
- package/dist/components/table/tablePalette.d.ts +33 -0
- package/dist/components/table/types.d.ts +28 -0
- package/dist/components/table/typings/main.d.ts +92 -0
- package/dist/components/table/utils/configPersistency.d.ts +14 -0
- package/dist/components/table/utils.d.ts +16 -0
- package/dist/components/tableV3/customCells/DateCell.d.ts +1 -1
- package/dist/components/tableV3/customCells/ValueWithUnitCell.d.ts +1 -1
- package/dist/components/tableV3/types/features/selectRow.d.ts +8 -5
- package/dist/components/tableV3/types/tableTypes.d.ts +1 -1
- package/dist/components/tableV3/utils.d.ts +1 -0
- package/dist/components/textButton/TextButton.d.ts +12 -0
- package/dist/components/textButton/index.d.ts +2 -0
- package/dist/components/textButton/textButton.stories.d.ts +1 -0
- package/dist/components/tip/components/styledTip.d.ts +4 -0
- package/dist/components/toast/ToastContainer.d.ts +9 -0
- package/dist/components/toast/typings/toast.d.ts +32 -0
- package/dist/components/tooltips/components/message.d.ts +12 -0
- package/dist/components/tooltips/components/styledTooltipWrapper.d.ts +1 -0
- package/dist/components/tooltips/index.d.ts +2 -0
- package/dist/components/tooltips/tooltips.d.ts +15 -0
- package/dist/components/tooltips/tooltips.stories.d.ts +1 -0
- package/dist/components/tooltips/types.d.ts +25 -0
- 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/components/verticalTabs/components/verticalTabsSelector/styled.d.ts +10 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +17 -9
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +17 -9
- package/dist/index.js.map +1 -1
- package/dist/styles/elevations.d.ts +7 -0
- package/dist/utils/FICNumbers.d.ts +11 -0
- package/package.json +3 -3
- /package/dist/components/floatingBadge/{FloatingBadge.d.ts → floatingBadge.d.ts} +0 -0
- /package/dist/components/floatingBadge/{WithBadge.d.ts → withBadge.d.ts} +0 -0
- /package/dist/components/progressbar/{ProgressBar.d.ts → progressbar.d.ts} +0 -0
- /package/dist/components/progressbar/{progressBar.stories.d.ts → progressbar.stories.d.ts} +0 -0
- /package/dist/components/tip/{ShortcutTip.d.ts → shortcutTip.d.ts} +0 -0
- /package/dist/components/tip/{Tip.d.ts → tip.d.ts} +0 -0
- /package/dist/components/toast/components/{ToastContent.d.ts → toastContent.d.ts} +0 -0
- /package/dist/components/toast/{Toast.d.ts → toast.d.ts} +0 -0
|
@@ -1,13 +1,101 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
export declare const
|
|
13
|
-
|
|
2
|
+
export declare const Title1: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
3
|
+
bold?: boolean | undefined;
|
|
4
|
+
centered?: boolean | undefined;
|
|
5
|
+
children: React.ReactNode | React.ReactNode[];
|
|
6
|
+
clamp?: number | undefined;
|
|
7
|
+
className?: string | undefined;
|
|
8
|
+
color?: string | undefined;
|
|
9
|
+
type?: "date" | "currency" | undefined;
|
|
10
|
+
style?: React.CSSProperties | undefined;
|
|
11
|
+
} & React.RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
|
|
12
|
+
export declare const Title2: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
13
|
+
bold?: boolean | undefined;
|
|
14
|
+
centered?: boolean | undefined;
|
|
15
|
+
children: React.ReactNode | React.ReactNode[];
|
|
16
|
+
clamp?: number | undefined;
|
|
17
|
+
className?: string | undefined;
|
|
18
|
+
color?: string | undefined;
|
|
19
|
+
type?: "date" | "currency" | undefined;
|
|
20
|
+
style?: React.CSSProperties | undefined;
|
|
21
|
+
} & React.RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
|
|
22
|
+
export declare const Title3: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
23
|
+
bold?: boolean | undefined;
|
|
24
|
+
centered?: boolean | undefined;
|
|
25
|
+
children: React.ReactNode | React.ReactNode[];
|
|
26
|
+
clamp?: number | undefined;
|
|
27
|
+
className?: string | undefined;
|
|
28
|
+
color?: string | undefined;
|
|
29
|
+
type?: "date" | "currency" | undefined;
|
|
30
|
+
style?: React.CSSProperties | undefined;
|
|
31
|
+
} & React.RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
|
|
32
|
+
export declare const Title4: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
33
|
+
bold?: boolean | undefined;
|
|
34
|
+
centered?: boolean | undefined;
|
|
35
|
+
children: React.ReactNode | React.ReactNode[];
|
|
36
|
+
clamp?: number | undefined;
|
|
37
|
+
className?: string | undefined;
|
|
38
|
+
color?: string | undefined;
|
|
39
|
+
type?: "date" | "currency" | undefined;
|
|
40
|
+
style?: React.CSSProperties | undefined;
|
|
41
|
+
} & React.RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
|
|
42
|
+
export declare const Title5: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
43
|
+
bold?: boolean | undefined;
|
|
44
|
+
centered?: boolean | undefined;
|
|
45
|
+
children: React.ReactNode | React.ReactNode[];
|
|
46
|
+
clamp?: number | undefined;
|
|
47
|
+
className?: string | undefined;
|
|
48
|
+
color?: string | undefined;
|
|
49
|
+
type?: "date" | "currency" | undefined;
|
|
50
|
+
style?: React.CSSProperties | undefined;
|
|
51
|
+
} & React.RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
|
|
52
|
+
export declare const Title6: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
53
|
+
bold?: boolean | undefined;
|
|
54
|
+
centered?: boolean | undefined;
|
|
55
|
+
children: React.ReactNode | React.ReactNode[];
|
|
56
|
+
clamp?: number | undefined;
|
|
57
|
+
className?: string | undefined;
|
|
58
|
+
color?: string | undefined;
|
|
59
|
+
type?: "date" | "currency" | undefined;
|
|
60
|
+
style?: React.CSSProperties | undefined;
|
|
61
|
+
} & React.RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
|
|
62
|
+
export declare const Headline: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
63
|
+
bold?: boolean | undefined;
|
|
64
|
+
centered?: boolean | undefined;
|
|
65
|
+
children: React.ReactNode | React.ReactNode[];
|
|
66
|
+
clamp?: number | undefined;
|
|
67
|
+
className?: string | undefined;
|
|
68
|
+
color?: string | undefined;
|
|
69
|
+
type?: "date" | "currency" | undefined;
|
|
70
|
+
style?: React.CSSProperties | undefined;
|
|
71
|
+
} & React.RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
|
|
72
|
+
export declare const Body: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
73
|
+
bold?: boolean | undefined;
|
|
74
|
+
centered?: boolean | undefined;
|
|
75
|
+
children: React.ReactNode | React.ReactNode[];
|
|
76
|
+
clamp?: number | undefined;
|
|
77
|
+
className?: string | undefined;
|
|
78
|
+
color?: string | undefined;
|
|
79
|
+
type?: "date" | "currency" | undefined;
|
|
80
|
+
style?: React.CSSProperties | undefined;
|
|
81
|
+
} & React.RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
|
|
82
|
+
export declare const Caption: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
83
|
+
bold?: boolean | undefined;
|
|
84
|
+
centered?: boolean | undefined;
|
|
85
|
+
children: React.ReactNode | React.ReactNode[];
|
|
86
|
+
clamp?: number | undefined;
|
|
87
|
+
className?: string | undefined;
|
|
88
|
+
color?: string | undefined;
|
|
89
|
+
type?: "date" | "currency" | undefined;
|
|
90
|
+
style?: React.CSSProperties | undefined;
|
|
91
|
+
} & React.RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
|
|
92
|
+
export declare const TableText: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
93
|
+
bold?: boolean | undefined;
|
|
94
|
+
centered?: boolean | undefined;
|
|
95
|
+
children: React.ReactNode | React.ReactNode[];
|
|
96
|
+
clamp?: number | undefined;
|
|
97
|
+
className?: string | undefined;
|
|
98
|
+
color?: string | undefined;
|
|
99
|
+
type?: "date" | "currency" | undefined;
|
|
100
|
+
style?: React.CSSProperties | undefined;
|
|
101
|
+
} & React.RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { DefaultTheme } from 'styled-components';
|
|
3
3
|
import { colors } from '../../../styles/types';
|
|
4
4
|
import { paletteColor } from '../../../styles/types';
|
|
5
|
-
export declare type TextProps = {
|
|
5
|
+
export declare type TextProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
6
6
|
bold?: boolean;
|
|
7
7
|
centered?: boolean;
|
|
8
8
|
children: React.ReactNode | React.ReactNode[];
|
|
@@ -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
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare type UnitConfig = {
|
|
2
2
|
side?: 'left' | 'right';
|
|
3
3
|
symbol?: string;
|
|
4
|
-
locale?:
|
|
4
|
+
locale?: string;
|
|
5
5
|
};
|
|
6
|
-
export declare const withUnit: (number: number | string,
|
|
6
|
+
export declare const withUnit: (number: number | string, unit?: UnitConfig | undefined) => string;
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { AccordionHeaderProps } from '../../types';
|
|
3
|
-
export declare const Header: import("styled-components").StyledComponent<
|
|
3
|
+
export declare const Header: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & {
|
|
4
|
+
bold?: boolean | undefined;
|
|
5
|
+
centered?: boolean | undefined;
|
|
6
|
+
children: import("react").ReactNode | import("react").ReactNode[];
|
|
7
|
+
clamp?: number | undefined;
|
|
8
|
+
className?: string | undefined;
|
|
9
|
+
color?: string | undefined;
|
|
10
|
+
type?: "date" | "currency" | undefined;
|
|
11
|
+
style?: import("react").CSSProperties | undefined;
|
|
12
|
+
} & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
|
|
4
13
|
export declare const HeaderContent: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, AccordionHeaderProps, never>;
|
|
5
14
|
export declare const Content: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
6
15
|
contentHeight: number | undefined;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AccordionProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* Component props
|
|
4
|
+
* @param {boolean} multipleOpen Allows to open multiple accordion items at the same time
|
|
5
|
+
* @param {AnimatedIcon} leftIcon Left icon on the header of the accorion
|
|
6
|
+
* @param {AnimatedIcon} rightIcon Right icon on the header of the accordion
|
|
7
|
+
* @param {ReactChild} divider Component used to divide accordion items
|
|
8
|
+
* @param {ItemListProps} items List of the accordion items
|
|
9
|
+
* @param {object} style Styles for header and content of each accordion item
|
|
10
|
+
*/
|
|
11
|
+
declare const AccordionNew: ({ divider, items, leftIcon, multipleOpen, rightIcon, style }: AccordionProps) => JSX.Element;
|
|
12
|
+
export default AccordionNew;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IconContainerProps, MappedProps } from '../types';
|
|
2
|
+
export declare const Header: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
3
|
+
export declare const HeaderContent: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
4
|
+
leftPad: boolean;
|
|
5
|
+
rightPad: boolean;
|
|
6
|
+
}, never>;
|
|
7
|
+
export declare const Content: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
8
|
+
export declare const IconContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, MappedProps & IconContainerProps, keyof MappedProps>;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { CSSProperties, ReactChild } from 'react';
|
|
2
|
+
import { IconProps } from '../icon';
|
|
3
|
+
export declare const rotate45 = "rotate45";
|
|
4
|
+
export declare const rotate90 = "rotate90";
|
|
5
|
+
export declare const rotate180 = "rotate180";
|
|
6
|
+
export declare type Animations = typeof rotate45 | typeof rotate90 | typeof rotate180;
|
|
7
|
+
export interface AnimatedIcon extends Omit<IconProps, 'rotation'> {
|
|
8
|
+
animation?: Animations;
|
|
9
|
+
changeColor?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface AccordionProps {
|
|
12
|
+
multipleOpen?: boolean;
|
|
13
|
+
leftIcon?: AnimatedIcon;
|
|
14
|
+
rightIcon?: IconProps;
|
|
15
|
+
divider?: ReactChild;
|
|
16
|
+
items: ItemListProps[];
|
|
17
|
+
style?: {
|
|
18
|
+
header?: Record<string, unknown>;
|
|
19
|
+
content?: Record<string, unknown>;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
export interface ItemListProps {
|
|
23
|
+
header: React.ReactChild;
|
|
24
|
+
content: React.ReactChild;
|
|
25
|
+
style?: {
|
|
26
|
+
header?: CSSProperties;
|
|
27
|
+
content?: CSSProperties;
|
|
28
|
+
};
|
|
29
|
+
defaultOpen?: boolean;
|
|
30
|
+
leftIcon?: AnimatedIcon;
|
|
31
|
+
rightIcon?: AnimatedIcon;
|
|
32
|
+
}
|
|
33
|
+
export interface AccordionItemProps {
|
|
34
|
+
index: number;
|
|
35
|
+
header: React.ReactChild;
|
|
36
|
+
content: React.ReactChild;
|
|
37
|
+
style?: {
|
|
38
|
+
header?: CSSProperties;
|
|
39
|
+
content?: CSSProperties;
|
|
40
|
+
};
|
|
41
|
+
open: boolean;
|
|
42
|
+
toggleOpen: (index: number) => void;
|
|
43
|
+
leftIcon?: AnimatedIcon;
|
|
44
|
+
rightIcon?: AnimatedIcon;
|
|
45
|
+
}
|
|
46
|
+
export interface AccordionIconProps {
|
|
47
|
+
iconProps: AnimatedIcon;
|
|
48
|
+
open: boolean;
|
|
49
|
+
}
|
|
50
|
+
export interface MappedProps {
|
|
51
|
+
animation: string;
|
|
52
|
+
iconColor: string;
|
|
53
|
+
}
|
|
54
|
+
export interface IconContainerProps {
|
|
55
|
+
animation?: Animations;
|
|
56
|
+
changeColor?: boolean;
|
|
57
|
+
open: boolean;
|
|
58
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DefaultTheme } from 'styled-components';
|
|
2
|
+
import { Animations, MappedProps } from './types';
|
|
3
|
+
interface MapParams {
|
|
4
|
+
animation?: Animations;
|
|
5
|
+
changeColor?: boolean;
|
|
6
|
+
open: boolean;
|
|
7
|
+
theme: DefaultTheme;
|
|
8
|
+
}
|
|
9
|
+
export declare const mapAnimation: ({ animation, changeColor, open, theme }: MapParams) => MappedProps;
|
|
10
|
+
export {};
|
|
@@ -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 @@
|
|
|
1
|
+
export { default as Accordion } from './accordions';
|
|
@@ -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 {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DefaultTheme } from 'styled-components';
|
|
2
|
+
import { bannerColorType } from './Banner';
|
|
3
|
+
interface MappedColors {
|
|
4
|
+
bgColor: string;
|
|
5
|
+
textColor: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const mapColors: (theme: DefaultTheme, color: bannerColorType) => MappedColors;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ChartProps } from '../common/types';
|
|
3
|
+
declare const AreaChart: ({ data, emptyStateMessage, formatTooltipLabel, formatTooltipValues, height, renderEmptyState, renderXAxis, showLegend, showTooltip, width, }: ChartProps) => JSX.Element;
|
|
4
|
+
export default AreaChart;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ChartProps } from '../common/types';
|
|
3
|
+
declare const BarChart: ({ data, emptyStateMessage, formatTooltipLabel, formatTooltipValues, height, renderEmptyState, renderXAxis, showLegend, showTooltip, width, }: ChartProps) => JSX.Element;
|
|
4
|
+
export default BarChart;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Meta, Story } from '@storybook/react';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
6
|
-
declare const
|
|
2
|
+
import { ChartProps } from './common/types';
|
|
3
|
+
export declare const AreaChart: Story<ChartProps>;
|
|
4
|
+
export declare const BarChart: Story<ChartProps>;
|
|
5
|
+
export declare const LineChart: Story<ChartProps>;
|
|
6
|
+
export declare const PieChart: Story<ChartProps>;
|
|
7
|
+
declare const ChartStories: Meta<ChartProps>;
|
|
7
8
|
export default ChartStories;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CommonChartProps } from '../types';
|
|
3
|
+
declare const ChartEmptyState: ({ emptyStateMessage, height, renderEmptyState, width }: CommonChartProps) => JSX.Element;
|
|
4
|
+
export declare const EmptyStateWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
5
|
+
export default ChartEmptyState;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const Tooltip: (params_0: boolean | undefined, params_1: ((value: number, name: string | number) => [string, string]) | undefined, params_2: ((value: string | number) => string) | undefined) => JSX.Element | null;
|
|
3
|
+
export default Tooltip;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare type ChartData = {
|
|
3
|
+
x: string | number;
|
|
4
|
+
y: number;
|
|
5
|
+
};
|
|
6
|
+
export declare type CommonChartProps = {
|
|
7
|
+
height?: number;
|
|
8
|
+
width?: number;
|
|
9
|
+
emptyStateMessage?: string;
|
|
10
|
+
renderEmptyState?: () => JSX.Element;
|
|
11
|
+
showLegend?: boolean;
|
|
12
|
+
showTooltip?: boolean;
|
|
13
|
+
};
|
|
14
|
+
declare type RenderAxisProps = [string | number, number];
|
|
15
|
+
export declare type ChartProps = CommonChartProps & {
|
|
16
|
+
data: {
|
|
17
|
+
name: string;
|
|
18
|
+
color?: string;
|
|
19
|
+
points: ChartData[];
|
|
20
|
+
}[];
|
|
21
|
+
formatTooltipLabel?: (value: string | number) => string;
|
|
22
|
+
formatTooltipValues?: (value: number, name: string | number) => [string, string];
|
|
23
|
+
renderXAxis?: (...params: RenderAxisProps) => string;
|
|
24
|
+
};
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ChartProps } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* This hook can be used to transform data into a suitable dataset array for AreaChart, LineChart and BarChart components
|
|
4
|
+
*/
|
|
5
|
+
declare const useChartData: (data: ChartProps['data'], type: 'line' | 'bar') => Record<string, string | number>[];
|
|
6
|
+
export default useChartData;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const ButtonContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
3
|
+
export declare const ButtonText: import("styled-components").StyledComponent<({ children, type, ...otherProps }: import("../../../common/components/typography/types").TextProps & import("react").HTMLAttributes<HTMLDivElement>) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
|
4
|
+
export declare const IndicatorContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
5
|
+
export declare const IndicatorButtonContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
6
|
+
export declare const LegendContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
7
|
+
export declare const LegendItemContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
8
|
+
disabled: boolean;
|
|
9
|
+
}, never>;
|
|
10
|
+
export declare const LegendSquare: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
11
|
+
color?: string | undefined;
|
|
12
|
+
}, never>;
|
|
13
|
+
export declare const LegendIcon: import("styled-components").StyledComponent<({ onClick, isDisabled, ...props }: import("../../icon").IconProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
export { default as
|
|
2
|
-
export {
|
|
1
|
+
export { default as AreaChart } from './areaChart/AreaChart';
|
|
2
|
+
export { default as BarChart } from './barChart/BarChart';
|
|
3
|
+
export { default as LineChart } from './lineChart/LineChart';
|
|
4
|
+
export { default as PieChart } from './pieChart/PieChart';
|
|
5
|
+
export { ChartProps } from './common/types';
|
|
6
|
+
export { PieChartProps } from './pieChart/types';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ChartProps } from '../common/types';
|
|
3
|
+
declare const LineChart: ({ data, emptyStateMessage, formatTooltipLabel, formatTooltipValues, height, renderEmptyState, renderXAxis, showLegend, showTooltip, width, }: ChartProps) => JSX.Element;
|
|
4
|
+
export default LineChart;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { PieChartProps } from './types';
|
|
3
|
+
declare const PieChart: ({ color, data, emptyStateMessage, formatLabel, gap, height, innerRadius, monochrome, outerRadius, renderEmptyState, showLabels, showLegend, showTooltip, width, }: PieChartProps) => JSX.Element;
|
|
4
|
+
export default PieChart;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { CommonChartProps } from '../common/types';
|
|
2
|
+
export declare type PieChartData = {
|
|
3
|
+
name: string;
|
|
4
|
+
value: number;
|
|
5
|
+
color?: string;
|
|
6
|
+
};
|
|
7
|
+
declare type FormatLabelProps = {
|
|
8
|
+
cx: number;
|
|
9
|
+
cy: number;
|
|
10
|
+
index: number;
|
|
11
|
+
innerRadius: number;
|
|
12
|
+
midAngle: number;
|
|
13
|
+
outerRadius: number;
|
|
14
|
+
percent: number;
|
|
15
|
+
value: number;
|
|
16
|
+
};
|
|
17
|
+
export declare type PieChartProps = CommonChartProps & {
|
|
18
|
+
color?: string;
|
|
19
|
+
data: PieChartData[];
|
|
20
|
+
formatLabel?: (props: FormatLabelProps) => string;
|
|
21
|
+
gap?: number;
|
|
22
|
+
innerRadius?: number;
|
|
23
|
+
monochrome?: boolean;
|
|
24
|
+
outerRadius?: number;
|
|
25
|
+
showLabels?: boolean;
|
|
26
|
+
};
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ChangeEvent, InputHTMLAttributes } from 'react';
|
|
2
|
+
import { CheckboxInputProps } from './components/Input';
|
|
3
|
+
import { CheckboxLabelProps } from './components/Label';
|
|
4
|
+
interface CheckboxImplProps extends Omit<CheckboxInputProps, 'hasError'>, Omit<CheckboxLabelProps, 'hasError'> {
|
|
5
|
+
onClick?: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
6
|
+
text?: string;
|
|
7
|
+
error?: string;
|
|
8
|
+
className?: string;
|
|
9
|
+
onChange?: InputHTMLAttributes<HTMLInputElement>['onChange'];
|
|
10
|
+
}
|
|
11
|
+
export interface CheckboxProps extends Omit<CheckboxImplProps, 'value'> {
|
|
12
|
+
value: CheckboxImplProps['value'] | boolean;
|
|
13
|
+
}
|
|
14
|
+
declare const Checkbox: ({ value, ...rest }: CheckboxProps) => JSX.Element;
|
|
15
|
+
export default Checkbox;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { paletteColor } from '../../styles/types';
|
|
2
|
+
import { checkboxParts, checkboxState, checkboxStatus } from './types';
|
|
3
|
+
export declare type CheckboxPalette = {
|
|
4
|
+
input: {
|
|
5
|
+
[k in checkboxState]: {
|
|
6
|
+
[k in checkboxStatus]: {
|
|
7
|
+
[k in checkboxParts]: paletteColor;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
label: {
|
|
12
|
+
[k in checkboxState]: paletteColor;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
declare const checkboxPalette: CheckboxPalette;
|
|
16
|
+
export default checkboxPalette;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { checkboxStatus, CheckboxStyles } from '../types';
|
|
2
|
+
export interface CheckboxInputProps {
|
|
3
|
+
value: checkboxStatus;
|
|
4
|
+
isDisabled?: boolean;
|
|
5
|
+
large?: boolean;
|
|
6
|
+
hasError: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare const Input: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, CheckboxStyles & CheckboxInputProps, "height" | "width" | "backgroundColor" | "tickColor" | "borderColor" | "cursor" | "opacity">;
|
|
9
|
+
export default Input;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { MappedLabelProps } from '../types';
|
|
2
|
+
export interface CheckboxLabelProps {
|
|
3
|
+
large?: boolean;
|
|
4
|
+
isDisabled?: boolean;
|
|
5
|
+
hasError: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare const Label: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, MappedLabelProps & CheckboxLabelProps, "color" | "fontSize" | "cursor" | "opacity">;
|
|
8
|
+
export default Label;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { checkboxStatus } from '../types';
|
|
2
|
+
interface UseCheckboxValueReturn {
|
|
3
|
+
status: checkboxStatus;
|
|
4
|
+
value: boolean;
|
|
5
|
+
setCheck: () => void;
|
|
6
|
+
setUncheck: () => void;
|
|
7
|
+
setIndeterminate: () => void;
|
|
8
|
+
toggleCheckbox: () => void;
|
|
9
|
+
}
|
|
10
|
+
declare const useCheckboxValue: (initialValue?: boolean | "checked" | "unchecked" | "indeterminate") => UseCheckboxValueReturn;
|
|
11
|
+
export default useCheckboxValue;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import Checkbox, { CheckboxProps } from './Checkbox';
|
|
2
|
+
import checkboxPalette, { CheckboxPalette } from './checkboxPalette';
|
|
3
|
+
import useCheckboxValue from './hooks/useCheckboxValue';
|
|
4
|
+
export { Checkbox, useCheckboxValue, CheckboxProps, checkboxPalette, CheckboxPalette };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { paletteColor } from '../../styles/types';
|
|
2
|
+
export declare type checkboxStatus = 'checked' | 'unchecked' | 'indeterminate';
|
|
3
|
+
export declare type checkboxState = 'normal' | 'error';
|
|
4
|
+
export declare type checkboxParts = 'tickColor' | 'backgroundColor' | 'borderColor';
|
|
5
|
+
export interface CheckboxStyles {
|
|
6
|
+
height: string;
|
|
7
|
+
width: string;
|
|
8
|
+
backgroundColor: paletteColor;
|
|
9
|
+
tickColor: paletteColor;
|
|
10
|
+
borderColor: paletteColor;
|
|
11
|
+
cursor: string;
|
|
12
|
+
opacity: number;
|
|
13
|
+
}
|
|
14
|
+
export interface MappedLabelProps {
|
|
15
|
+
fontSize: string;
|
|
16
|
+
cursor: string;
|
|
17
|
+
color: paletteColor;
|
|
18
|
+
opacity: number;
|
|
19
|
+
}
|