@fattureincloud/fic-design-system 0.7.47 → 1.0.2
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/typography/types.d.ts +3 -3
- package/dist/common/hooks/useOutsideClick.d.ts +1 -1
- package/dist/common/hooks/useUpDownKeyNavigation.d.ts +2 -2
- package/dist/common/types/colorsPalette.d.ts +1 -1
- package/dist/common/types/dateTypes.d.ts +2 -2
- 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/types.d.ts +1 -1
- package/dist/components/avatar/types.d.ts +2 -2
- package/dist/components/badge/badge.stories.d.ts +2 -2
- package/dist/components/badge/types.d.ts +3 -3
- package/dist/components/banner/banner.stories.d.ts +2 -2
- package/dist/components/banner/types.d.ts +1 -1
- package/dist/components/buttons/button/button.stories.d.ts +2 -2
- package/dist/components/buttons/button/buttonPalette.d.ts +3 -3
- package/dist/components/buttons/button/types.d.ts +5 -5
- package/dist/components/buttons/iconButton/iconButton.stories.d.ts +4 -0
- package/dist/components/buttons/iconButton/iconButtonPalette.d.ts +3 -3
- package/dist/components/buttons/iconButton/types.d.ts +4 -4
- package/dist/components/buttons/iconButton/utils.d.ts +1 -1
- package/dist/components/card/card.stories.d.ts +2 -2
- package/dist/components/card/types.d.ts +5 -5
- package/dist/components/chart/types.d.ts +3 -3
- 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/chip/chip.stories.d.ts +3 -3
- package/dist/components/chip/types.d.ts +1 -1
- package/dist/components/circularProgressBar/types.d.ts +1 -1
- package/dist/components/closableCard/types.d.ts +1 -1
- package/dist/components/drawer/utils.d.ts +1 -1
- package/dist/components/dropdown/dropdownPalette.d.ts +1 -1
- package/dist/components/dropdown/types.d.ts +6 -6
- package/dist/components/floatingBadge/floatingBadge.stories.d.ts +2 -2
- package/dist/components/floatingBadge/types.d.ts +2 -2
- package/dist/components/form/checkbox/checkbox.stories.d.ts +3 -3
- package/dist/components/form/checkbox/types.d.ts +3 -3
- package/dist/components/form/checkbox/utils.d.ts +1 -1
- package/dist/components/form/common/types.d.ts +2 -2
- package/dist/components/form/datepicker/components/MonthPicker.d.ts +1 -1
- package/dist/components/form/datepicker/datePickerPalette.d.ts +3 -3
- package/dist/components/form/datepicker/datepicker.stories.d.ts +3 -3
- package/dist/components/form/datepicker/hooks/useFormattedDate.d.ts +3 -3
- package/dist/components/form/datepicker/types.d.ts +5 -5
- package/dist/components/form/fileUploader/FileUploader.d.ts +1 -1
- package/dist/components/form/fileUploader/components/FileUploaderContent.d.ts +2 -2
- package/dist/components/form/fileUploader/fileTypes.d.ts +3 -0
- package/dist/components/form/fileUploader/fileUploader.stories.d.ts +2 -2
- package/dist/components/form/fileUploader/fileUploaderPalette.d.ts +4 -4
- package/dist/components/form/fileUploader/hooks/useCustomPalette.d.ts +1 -1
- 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/fileUploader/types.d.ts +8 -8
- package/dist/components/form/inputHelper/InputHelper.d.ts +2 -2
- package/dist/components/form/inputHelper/hooks/useHelperIcon.d.ts +1 -1
- package/dist/components/form/inputHelper/inputHelper.stories.d.ts +2 -2
- package/dist/components/form/inputHelper/inputHelperPalette.d.ts +1 -1
- package/dist/components/form/inputHelper/types.d.ts +1 -1
- package/dist/components/form/inputText/components/InputElement.d.ts +3 -3
- package/dist/components/form/inputText/countriesTelephonePrefixes.d.ts +1 -1
- package/dist/components/form/inputText/hooks/useCodeInputHooks.d.ts +1 -1
- package/dist/components/form/inputText/inputText.stories.d.ts +5 -5
- package/dist/components/form/inputText/inputTextPalette.d.ts +2 -2
- package/dist/components/form/inputText/types.d.ts +6 -6
- package/dist/components/form/label/types.d.ts +1 -1
- package/dist/components/form/radio/radio.stories.d.ts +3 -3
- package/dist/components/form/radio/types.d.ts +3 -3
- package/dist/components/form/radioGroup/radioGroup.stories.d.ts +2 -2
- package/dist/components/form/radioGroup/types.d.ts +1 -1
- package/dist/components/form/select/Select.d.ts +1 -1
- package/dist/components/form/select/SelectWrapper.d.ts +2 -2
- package/dist/components/form/select/components/ClearIndicator.d.ts +2 -2
- package/dist/components/form/select/components/Control.d.ts +1 -1
- package/dist/components/form/select/components/DropdownIndicator.d.ts +1 -1
- package/dist/components/form/select/components/MenuList.d.ts +1 -1
- package/dist/components/form/select/components/SingleValue.d.ts +1 -1
- package/dist/components/form/select/components/types.d.ts +10 -0
- package/dist/components/form/select/hooks/useSelectGeneric.d.ts +1 -1
- package/dist/components/form/select/hooks/useSelectSimpleValue.d.ts +1 -1
- package/dist/components/form/select/hooks/useSelectThemeStyles.d.ts +1 -1
- package/dist/components/form/select/hooks/useSelectValue.d.ts +2 -2
- package/dist/components/form/select/index.d.ts +1 -1
- package/dist/components/form/select/select.stories.d.ts +4 -4
- package/dist/components/form/select/selectPalette.d.ts +1 -1
- package/dist/components/form/select/types.d.ts +5 -5
- package/dist/components/form/textArea/TextArea.d.ts +3 -3
- package/dist/components/form/textArea/components/TextAreaElement.d.ts +2 -2
- package/dist/components/form/textArea/textArea.stories.d.ts +2 -2
- package/dist/components/form/textArea/textAreaPalette.d.ts +1 -1
- package/dist/components/form/textArea/types.d.ts +1 -1
- package/dist/components/icon/Icon.d.ts +1 -1
- package/dist/components/icon/components/iconBackground/iconBackgroundPalette.d.ts +1 -1
- package/dist/components/icon/components/iconBackground/utils.d.ts +1 -1
- package/dist/components/icon/iconPalette.d.ts +4 -4
- package/dist/components/inlineMessage/inlineMessage.stories.d.ts +2 -2
- package/dist/components/inlineMessage/types.d.ts +2 -2
- 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/layout/sidebarItem/sidebarItem.stories.d.ts +3 -3
- package/dist/components/layout/sidebarItem/types.d.ts +4 -4
- package/dist/components/microTag/microTagPalette.d.ts +3 -3
- package/dist/components/microTag/types.d.ts +1 -1
- package/dist/components/modals/components/ModalSearchable.d.ts +3 -3
- package/dist/components/modals/index.d.ts +2 -0
- package/dist/components/modals/modalStyled.d.ts +1 -1
- package/dist/components/modals/stepModal/components/styled.d.ts +1 -1
- package/dist/components/modals/stepModal/components/utils.d.ts +1 -1
- package/dist/components/modals/stepModal/types.d.ts +10 -10
- package/dist/components/modals/styleCreators/styledModalBoxWidth.d.ts +1 -1
- package/dist/components/modals/types.d.ts +14 -13
- package/dist/components/monthlyTab/types.d.ts +4 -4
- package/dist/components/newTable/components/action/favorite/Favorite.d.ts +0 -1
- package/dist/components/newTable/components/action/favorite/styled.d.ts +0 -1
- package/dist/components/newTable/components/action/settings/ColumnsSettings/ColumnItem/ColumnItem.d.ts +1 -1
- package/dist/components/newTable/components/cell/customCell/CustomCell.d.ts +1 -1
- package/dist/components/newTable/components/cell/customCell/CustomInput.d.ts +1 -1
- package/dist/components/newTable/components/cell/customCell/TextAreaPopup.d.ts +1 -1
- package/dist/components/newTable/hooks/useColumnPinning.d.ts +1 -1
- package/dist/components/newTable/index.d.ts +1 -1
- package/dist/components/newTable/table.stories.d.ts +2 -2
- package/dist/components/newTable/types.d.ts +20 -15
- package/dist/components/newTable/utils.d.ts +1 -1
- package/dist/components/oldTable/components/checkboxes/Cell.d.ts +1 -1
- package/dist/components/oldTable/components/tableParts/TableTd.d.ts +1 -1
- package/dist/components/oldTable/components/tableParts/TableTh.d.ts +1 -1
- package/dist/components/oldTable/hooks/useTableHooks.d.ts +1 -1
- package/dist/components/oldTable/stories/components/Role.d.ts +1 -1
- package/dist/components/oldTable/table.stories.d.ts +2 -2
- package/dist/components/oldTable/tablePalette.d.ts +6 -6
- package/dist/components/oldTable/types.d.ts +3 -3
- package/dist/components/pagination/pagination.stories.d.ts +3 -3
- package/dist/components/pagination/types.d.ts +4 -4
- package/dist/components/progressbar/progressbar.stories.d.ts +2 -2
- package/dist/components/progressbar/types.d.ts +1 -1
- package/dist/components/segmentButton/segmentButton.stories.d.ts +2 -2
- package/dist/components/segmentButton/styled.d.ts +1 -1
- package/dist/components/segmentButton/types.d.ts +3 -3
- 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/stepper/components/StepItem.d.ts +1 -1
- package/dist/components/stepper/stepperPalette.d.ts +1 -1
- package/dist/components/stepper/types.d.ts +1 -1
- package/dist/components/switch/types.d.ts +1 -1
- package/dist/components/table/components/actionLink.d.ts +3 -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/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/loadingContent.d.ts +7 -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/unstyledTable.d.ts +11 -0
- package/dist/components/table/typings/main.d.ts +92 -0
- package/dist/components/table/utils/configPersistency.d.ts +14 -0
- package/dist/components/tabs/common/types.d.ts +1 -1
- package/dist/components/tag/tagPalette.d.ts +5 -5
- 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/tip.stories.d.ts +3 -3
- package/dist/components/tip/types.d.ts +3 -3
- package/dist/components/toast/styled.d.ts +3 -2
- package/dist/components/toast/toast.stories.d.ts +4 -4
- package/dist/components/toast/types.d.ts +3 -3
- package/dist/components/toast/typings/toast.d.ts +0 -2
- package/dist/components/tooltip/tooltipPalette.d.ts +2 -2
- 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/components/VerticalTabSelector/types.d.ts +1 -1
- package/dist/components/verticalTab/index.d.ts +2 -2
- package/dist/index.d.ts +38 -45
- package/dist/index.esm.js +8 -14
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +8 -14
- package/dist/index.js.map +1 -1
- package/dist/styles/elevations.d.ts +7 -0
- package/dist/styles/types.d.ts +11 -11
- package/dist/utils/FICNumbers.d.ts +11 -0
- package/package.json +70 -61
- package/dist/components/form/datepicker/hooks/useDatePickerValues.d.ts +0 -13
- package/dist/components/form/inputText/components/codeInput/CodeInput.d.ts +0 -4
- package/dist/components/form/inputText/components/codeInput/styled.d.ts +0 -29
- package/dist/components/form/inputText/components/codeInput/useCodeInputHooks.d.ts +0 -11
- package/dist/components/form/inputText/components/telephoneInput/TelephoneInput.d.ts +0 -4
- package/dist/components/form/inputText/components/telephoneInput/countriesTelephonePrefixes.d.ts +0 -7
- package/dist/components/form/inputText/components/telephoneInput/styled.d.ts +0 -2
- package/dist/components/graphic/Graphic.d.ts +0 -4
- package/dist/components/graphic/components/ChartLegend.d.ts +0 -9
- package/dist/components/graphic/components/GraphButton.d.ts +0 -8
- package/dist/components/graphic/components/GraphIndicators.d.ts +0 -14
- package/dist/components/graphic/graphic.stories.d.ts +0 -7
- package/dist/components/graphic/index.d.ts +0 -2
- package/dist/components/graphic/stories/data.d.ts +0 -2
- package/dist/components/graphic/stories/styled.d.ts +0 -4
- package/dist/components/graphic/styled.d.ts +0 -3
- package/dist/components/graphic/types.d.ts +0 -52
- package/dist/components/graphic/utils.d.ts +0 -6
- package/dist/components/newTable/components/header/styled.d.ts +0 -1
- package/dist/components/newTable/components/row/LoadingRow.d.ts +0 -9
- package/dist/components/table/components/ActionsCell.d.ts +0 -10
- package/dist/components/table/components/SortIndicator.d.ts +0 -6
- package/dist/components/table/components/TableBody.d.ts +0 -14
- package/dist/components/table/components/TableFoot.d.ts +0 -2
- package/dist/components/table/components/TableHeader.d.ts +0 -7
- package/dist/components/table/components/tableBody/TableBodyLoader.d.ts +0 -7
- package/dist/components/table/components/tableBody/styled.d.ts +0 -3
- package/dist/index.css +0 -128
- package/dist/index.esm.css +0 -128
- package/dist/styles/defaultPalette/colors/azure.d.ts +0 -2
- package/dist/styles/defaultPalette/colors/purple.d.ts +0 -2
- /package/dist/components/table/components/{Pagination.d.ts → pagination.d.ts} +0 -0
- /package/dist/components/table/{Table.d.ts → table.d.ts} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { DisplayColumnDef, GroupColumnDef, IdentifiedColumnDef, PaginationState, Row, SortDirection } from '@tanstack/react-table';
|
|
2
|
+
import { Column, DisplayColumnDef, GroupColumnDef, IdentifiedColumnDef, PaginationState, Row, SortDirection } from '@tanstack/react-table';
|
|
3
3
|
import { buttonColors } from 'components/buttons/button/types';
|
|
4
4
|
import { AvatarProps } from '../avatar';
|
|
5
5
|
import { ButtonProps } from '../buttons';
|
|
@@ -55,7 +55,7 @@ export interface TableProps<T> {
|
|
|
55
55
|
disableScrollX?: boolean;
|
|
56
56
|
resetPageIndex?: boolean;
|
|
57
57
|
}
|
|
58
|
-
export
|
|
58
|
+
export type onChangeTableSettings = (key: keyof PreSettedTableSettings, valueChange: Pick<PreSettedTableSettings, 'orderColumns' | 'dimensionRow' | 'notVisibleColumns'>) => void;
|
|
59
59
|
export interface PreSettedTableSettings {
|
|
60
60
|
orderColumns?: string[];
|
|
61
61
|
dimensionRow?: number;
|
|
@@ -72,8 +72,8 @@ interface SettingsDropdownConfig {
|
|
|
72
72
|
}
|
|
73
73
|
export declare enum RowSize {
|
|
74
74
|
UNSPECIFIED = 0,
|
|
75
|
-
SMALL,
|
|
76
|
-
LARGE
|
|
75
|
+
SMALL = 42,
|
|
76
|
+
LARGE = 56
|
|
77
77
|
}
|
|
78
78
|
export declare enum ColumnDefType {
|
|
79
79
|
ACCESSOR = "accessor",
|
|
@@ -93,14 +93,14 @@ interface InitalColumnDef<T> extends Omit<IdentifiedColumnDef<T, CellProps>, 'he
|
|
|
93
93
|
header?: IdentifiedColumnDef<T, CellProps>['header'] | JSX.Element;
|
|
94
94
|
disableClick?: boolean;
|
|
95
95
|
}
|
|
96
|
-
export
|
|
96
|
+
export type AccessorColumnDef<T> = InitalColumnDef<T> | ExtraColumnDef<T>;
|
|
97
97
|
export declare enum ActionType {
|
|
98
98
|
CHECKBOX = "checkbox",
|
|
99
99
|
TOGGLE = "toggle",
|
|
100
100
|
ROW_ACTIONS = "row_actions",
|
|
101
101
|
SETTINGS = "settings"
|
|
102
102
|
}
|
|
103
|
-
export
|
|
103
|
+
export type ActionColumnDef<T> = {
|
|
104
104
|
onActionChange?: (id: string) => void;
|
|
105
105
|
actionType: ActionType;
|
|
106
106
|
toggles?: string[];
|
|
@@ -109,7 +109,7 @@ export declare type ActionColumnDef<T> = {
|
|
|
109
109
|
rowActions?: RowActions<T>;
|
|
110
110
|
settingsDropdownConfig?: SettingsDropdownConfig;
|
|
111
111
|
} & IdentifiedColumnDef<T, CellProps>;
|
|
112
|
-
export
|
|
112
|
+
export type AdditionalColumnDef<T> = {
|
|
113
113
|
unitSymbol?: string;
|
|
114
114
|
minWidth?: number;
|
|
115
115
|
maxWidth?: number;
|
|
@@ -118,7 +118,7 @@ export declare type AdditionalColumnDef<T> = {
|
|
|
118
118
|
align?: 'center' | 'left' | 'right';
|
|
119
119
|
headerTitle?: string;
|
|
120
120
|
};
|
|
121
|
-
export
|
|
121
|
+
export type ColumnsType<T> = ({
|
|
122
122
|
columnDefType: ColumnDefType.ACCESSOR;
|
|
123
123
|
columnDef: AccessorColumnDef<T> & AdditionalColumnDef<T>;
|
|
124
124
|
} & BaseColumnsType<T>) | ({
|
|
@@ -152,8 +152,8 @@ export interface BasicCustomCell {
|
|
|
152
152
|
tag?: TagProps;
|
|
153
153
|
isToggled?: boolean;
|
|
154
154
|
}
|
|
155
|
-
export
|
|
156
|
-
export
|
|
155
|
+
export type CustomCellProps = CustomCellWithIcon | CustomCellWithAvatar;
|
|
156
|
+
export type CellProps = CustomCellProps | string | number;
|
|
157
157
|
export interface RowActions<T> {
|
|
158
158
|
headerTitle?: string | number;
|
|
159
159
|
primary?: PrimaryAction<T>[];
|
|
@@ -165,7 +165,7 @@ export interface RowAction<T> {
|
|
|
165
165
|
type?: DropdownItemType;
|
|
166
166
|
onClick: (row: Row<T>) => void;
|
|
167
167
|
}
|
|
168
|
-
|
|
168
|
+
type BasicPrimaryAction<T> = {
|
|
169
169
|
tooltip?: TooltipProps;
|
|
170
170
|
onClick: (row: Row<T>) => void;
|
|
171
171
|
};
|
|
@@ -181,8 +181,8 @@ interface PrimaryIconAction<T> extends BasicPrimaryAction<T> {
|
|
|
181
181
|
color?: buttonColors;
|
|
182
182
|
className?: string;
|
|
183
183
|
}
|
|
184
|
-
export
|
|
185
|
-
export
|
|
184
|
+
export type PrimaryAction<T> = PrimaryTextAction<T> | PrimaryIconAction<T>;
|
|
185
|
+
export type DropdownAction<T> = {
|
|
186
186
|
items: RowAction<T>[];
|
|
187
187
|
tooltip?: TooltipProps;
|
|
188
188
|
};
|
|
@@ -195,11 +195,16 @@ export interface AllSelectedCTA {
|
|
|
195
195
|
onClick: () => void;
|
|
196
196
|
text: string;
|
|
197
197
|
}
|
|
198
|
-
export
|
|
198
|
+
export type OnSort<T> = (sortParams: {
|
|
199
199
|
sortBy: keyof T;
|
|
200
200
|
direction: false | SortDirection;
|
|
201
201
|
}) => void;
|
|
202
|
-
export
|
|
202
|
+
export type CustomSorted<T> = {
|
|
203
203
|
[key in keyof T]: false | SortDirection;
|
|
204
204
|
};
|
|
205
|
+
export type CustomColumn<T> = Column<T, unknown> & {
|
|
206
|
+
columnDef: Pick<Column<T, unknown>, 'columnDef'> & {
|
|
207
|
+
headerTitle?: string;
|
|
208
|
+
};
|
|
209
|
+
};
|
|
205
210
|
export {};
|
|
@@ -9,5 +9,5 @@ interface ColumnsHelperProps<T> extends Omit<TableProps<T>, 'data' | 'uniqueId'>
|
|
|
9
9
|
};
|
|
10
10
|
}
|
|
11
11
|
export declare const useColumnsHelper: <T>({ columns, isSelectable, toggles, isTogglesSortable, onTogglesChange, rowActions, enableSettings, settingsDropdownConfig, preSettedTableSettings, actionColumnWidth, }: ColumnsHelperProps<T>) => ColumnDef<T, CellProps>[];
|
|
12
|
-
export declare const getNextSortingDirection: (direction?: false | SortDirection
|
|
12
|
+
export declare const getNextSortingDirection: (direction?: false | SortDirection) => false | SortDirection;
|
|
13
13
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { CellProps } from 'react-table';
|
|
3
3
|
import { TableData } from '../../types';
|
|
4
|
-
declare const Cell: <T extends TableData>({ row }: CellProps<T
|
|
4
|
+
declare const Cell: <T extends TableData>({ row }: CellProps<T>) => JSX.Element;
|
|
5
5
|
export default Cell;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
type Props = React.HTMLAttributes<HTMLTableHeaderCellElement>;
|
|
3
3
|
export declare const TableTh: import("styled-components").StyledComponent<({ children, ...rest }: Props) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
|
4
4
|
export default TableTh;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PluginHook } from 'react-table';
|
|
2
2
|
import { TableProps } from '../Table';
|
|
3
3
|
import { TableData } from '../types';
|
|
4
|
-
|
|
4
|
+
type Props<T extends TableData> = Pick<TableProps<T>, 'actions' | 'withCheckbox' | 'renderActions' | 'selectableRows' | 'actionsHeader'>;
|
|
5
5
|
declare const useTableHooks: <T extends TableData>({ actions, renderActions, withCheckbox, selectableRows, actionsHeader, }: Props<T>) => PluginHook<T>[];
|
|
6
6
|
export default useTableHooks;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Meta,
|
|
1
|
+
import { Meta, StoryFn } from '@storybook/react';
|
|
2
2
|
import { DataType } from './stories/components/types';
|
|
3
3
|
import { TableProps } from './Table';
|
|
4
|
-
export declare const Template:
|
|
4
|
+
export declare const Template: StoryFn<TableProps<DataType>>;
|
|
5
5
|
declare const TableStories: Meta<TableProps<DataType>>;
|
|
6
6
|
export default TableStories;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { colorsPalette } from '../../common/types/colorsPalette';
|
|
2
2
|
import { ButtonProps, IconButtonProps } from '../buttons';
|
|
3
3
|
import { DropdownItemType } from '../dropdown';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
type TableHeaderPalette = colorsPalette;
|
|
5
|
+
type rowStatus = 'normal' | 'hover' | 'selected' | 'disabled';
|
|
6
|
+
type TableRowsPalette = {
|
|
7
7
|
[k in rowStatus]: colorsPalette;
|
|
8
8
|
};
|
|
9
9
|
interface SelectedRowsCountPalette extends colorsPalette {
|
|
10
10
|
resetButtonColor: ButtonProps['color'];
|
|
11
11
|
}
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
type paginationItemStatus = 'normal' | 'hover' | 'active';
|
|
13
|
+
type PaginationPalette = {
|
|
14
14
|
numbers: {
|
|
15
15
|
[k in paginationItemStatus]: colorsPalette;
|
|
16
16
|
};
|
|
17
17
|
buttons: ButtonProps['color'];
|
|
18
18
|
};
|
|
19
|
-
|
|
19
|
+
type ActionsPalette = {
|
|
20
20
|
colors: {
|
|
21
21
|
[k in DropdownItemType]: ButtonProps['color'];
|
|
22
22
|
};
|
|
@@ -22,7 +22,7 @@ interface ManualPaginationConfig {
|
|
|
22
22
|
pageCount: number;
|
|
23
23
|
setCurrentPage: (page: number) => void;
|
|
24
24
|
}
|
|
25
|
-
export
|
|
26
|
-
export
|
|
27
|
-
export
|
|
25
|
+
export type ManualPagination = ManualPaginationConfig | undefined;
|
|
26
|
+
export type OnSort<T extends TableData> = (sortBy: Array<SortingRule<T>>) => void;
|
|
27
|
+
export type OnSelectionChange<T extends TableData> = (rows: Row<T>[], addedRows: Row<T>[], removedRows: Row<T>[]) => void;
|
|
28
28
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Meta,
|
|
1
|
+
import { Meta, StoryFn } from '@storybook/react';
|
|
2
2
|
import { PaginationProps } from './types';
|
|
3
|
-
export declare const Template:
|
|
4
|
-
export declare const Normal:
|
|
3
|
+
export declare const Template: StoryFn<PaginationProps>;
|
|
4
|
+
export declare const Normal: StoryFn<PaginationProps>;
|
|
5
5
|
declare const PaginationStories: Meta<PaginationProps>;
|
|
6
6
|
export default PaginationStories;
|
|
@@ -6,7 +6,7 @@ export declare enum PaginationType {
|
|
|
6
6
|
YELLOW = "yellow",
|
|
7
7
|
GREEN = "green"
|
|
8
8
|
}
|
|
9
|
-
export
|
|
9
|
+
export type PaginationProps = {
|
|
10
10
|
pageSize: number;
|
|
11
11
|
listSize: number;
|
|
12
12
|
changePageAction: (pageNumber: number) => void;
|
|
@@ -17,9 +17,9 @@ export declare type PaginationProps = {
|
|
|
17
17
|
nextText: string;
|
|
18
18
|
totalPages?: number;
|
|
19
19
|
};
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
export
|
|
20
|
+
type PaginationNumbersStatus = 'normal' | 'hover' | 'active';
|
|
21
|
+
type PaginationButtonsStatus = 'normal' | 'disabled';
|
|
22
|
+
export type PaginationPalette = {
|
|
23
23
|
numbers: {
|
|
24
24
|
[k in PaginationNumbersStatus]: {
|
|
25
25
|
backgroundColor: paletteColor;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Meta,
|
|
1
|
+
import { Meta, StoryFn } from '@storybook/react';
|
|
2
2
|
import React, { ComponentProps } from 'react';
|
|
3
3
|
import { ProgressBar } from '.';
|
|
4
4
|
import { ProgressBarProps } from './';
|
|
5
|
-
export declare const Template:
|
|
5
|
+
export declare const Template: StoryFn<ProgressBarProps>;
|
|
6
6
|
export declare const Editable: () => React.JSX.Element;
|
|
7
7
|
export declare const Autocomplete: () => React.JSX.Element;
|
|
8
8
|
export declare const AllColors: () => React.JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Meta,
|
|
1
|
+
import { Meta, StoryFn } from '@storybook/react';
|
|
2
2
|
import { SegmentButtonProps } from './types';
|
|
3
|
-
export declare const Standard:
|
|
3
|
+
export declare const Standard: StoryFn<SegmentButtonProps>;
|
|
4
4
|
declare const SegmentButtonStories: Meta<SegmentButtonProps>;
|
|
5
5
|
export default SegmentButtonStories;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { paletteColor } from '../../styles/types';
|
|
2
2
|
import { IconProps } from '../icon';
|
|
3
|
-
export
|
|
3
|
+
export type SegmentButtonPalette = {
|
|
4
4
|
selected: {
|
|
5
5
|
background: paletteColor;
|
|
6
6
|
border: paletteColor;
|
|
@@ -14,12 +14,12 @@ export declare type SegmentButtonPalette = {
|
|
|
14
14
|
secondary: paletteColor;
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
|
-
export
|
|
17
|
+
export type Segment = {
|
|
18
18
|
counter?: number;
|
|
19
19
|
icon?: IconProps;
|
|
20
20
|
text?: string;
|
|
21
21
|
};
|
|
22
|
-
export
|
|
22
|
+
export type SegmentButtonProps = {
|
|
23
23
|
onChange?: (i: number, s: Segment) => void;
|
|
24
24
|
preselected?: number;
|
|
25
25
|
segments: Segment[];
|