@fattureincloud/fic-design-system 0.17.0 → 0.17.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/components/form/datepicker/components/DatePickerHeader.d.ts +2 -2
- package/dist/components/form/datepicker/components/hooks/useDatePickerHeaderShowLogic.d.ts +1 -1
- package/dist/components/form/datepicker/components/yearPicker/YearPicker.d.ts +7 -0
- package/dist/components/form/datepicker/components/yearPicker/styled.d.ts +1 -0
- package/dist/components/form/datepicker/datePickerPalette.d.ts +0 -1
- package/dist/components/form/datepicker/datepicker.stories.d.ts +5 -0
- package/dist/components/form/datepicker/types.d.ts +4 -2
- package/dist/components/form/inputText/InputText.d.ts +1 -0
- package/dist/components/form/inputText/components/InputElement.d.ts +1 -0
- package/dist/components/form/inputText/inputText.stories.d.ts +1 -0
- package/dist/components/form/inputText/types.d.ts +1 -1
- package/dist/components/tableV3/TableV3.d.ts +112 -0
- package/dist/components/tableV3/components/body/Body.d.ts +9 -0
- package/dist/components/tableV3/components/body/styled.d.ts +1 -0
- package/dist/components/tableV3/components/bulkBar/BulkBar.d.ts +10 -0
- package/dist/components/tableV3/components/bulkBar/styled.d.ts +4 -0
- package/dist/components/tableV3/components/cell/Cell.d.ts +12 -0
- package/dist/components/tableV3/components/cell/actionsCell/ActionsCell.d.ts +14 -0
- package/dist/components/tableV3/components/cell/actionsCell/DropdownAction.d.ts +9 -0
- package/dist/components/tableV3/components/cell/actionsCell/PrimaryActionButton.d.ts +9 -0
- package/dist/components/tableV3/components/cell/actionsCell/styled.d.ts +11 -0
- package/dist/components/tableV3/components/cell/checkboxCell/CheckboxCell.d.ts +13 -0
- package/dist/components/tableV3/components/cell/checkboxCell/styled.d.ts +10 -0
- package/dist/components/tableV3/components/cell/editableCell/CustomInput.d.ts +11 -0
- package/dist/components/tableV3/components/cell/editableCell/styled.d.ts +2 -0
- package/dist/components/tableV3/components/cell/editableCell/textAreaPopup/TableTextArea.d.ts +4 -0
- package/dist/components/tableV3/components/cell/editableCell/textAreaPopup/TextAreaPopup.d.ts +4 -0
- package/dist/components/tableV3/components/cell/editableCell/textAreaPopup/styled.d.ts +3 -0
- package/dist/components/tableV3/components/cell/editableCell/textAreaPopup/types.d.ts +16 -0
- package/dist/components/tableV3/components/cell/hooks/useCellValues.d.ts +12 -0
- package/dist/components/tableV3/components/cell/loadingCell/LoadingCell.d.ts +3 -0
- package/dist/components/tableV3/components/cell/styled.d.ts +19 -0
- package/dist/components/tableV3/components/footer/Footer.d.ts +7 -0
- package/dist/components/tableV3/components/footer/footerCell/FooterCell.d.ts +7 -0
- package/dist/components/tableV3/components/footer/footerCell/styled.d.ts +19 -0
- package/dist/components/tableV3/components/footer/hooks/useFooterValues.d.ts +8 -0
- package/dist/components/tableV3/components/footer/styled.d.ts +12 -0
- package/dist/components/tableV3/components/header/Header.d.ts +12 -0
- package/dist/components/tableV3/components/header/actionsHeader/ActionsHeader.d.ts +6 -0
- package/dist/components/tableV3/components/header/actionsHeader/styled.d.ts +5 -0
- package/dist/components/tableV3/components/header/checkboxHeader/CheckboxHeader.d.ts +9 -0
- package/dist/components/tableV3/components/header/checkboxHeader/styled.d.ts +1 -0
- package/dist/components/tableV3/components/header/headerCell/HeaderCell.d.ts +11 -0
- package/dist/components/tableV3/components/header/headerCell/styled.d.ts +19 -0
- package/dist/components/tableV3/components/header/hooks/useHeaderValues.d.ts +14 -0
- package/dist/components/tableV3/components/header/styled.d.ts +8 -0
- package/dist/components/tableV3/components/row/Row.d.ts +8 -0
- package/dist/components/tableV3/components/row/styled.d.ts +14 -0
- package/dist/components/tableV3/components/settings/Settings.d.ts +8 -0
- package/dist/components/tableV3/components/settings/settingsDropdownContent/DraggableColumn.d.ts +11 -0
- package/dist/components/tableV3/components/settings/settingsDropdownContent/SettingsDropdownContent.d.ts +7 -0
- package/dist/components/tableV3/components/settings/settingsDropdownContent/styled.d.ts +9 -0
- package/dist/components/tableV3/components/settings/styled.d.ts +2 -0
- package/dist/components/tableV3/components/toggle/Toggle.d.ts +14 -0
- package/dist/components/tableV3/components/toggle/constants.d.ts +3 -0
- package/dist/components/tableV3/components/toggle/index.d.ts +1 -0
- package/dist/components/tableV3/components/toggle/styled.d.ts +5 -0
- package/dist/components/tableV3/constants.d.ts +9 -0
- package/dist/components/tableV3/customCells/BooleanCell.d.ts +6 -0
- package/dist/components/tableV3/customCells/DateCell.d.ts +9 -0
- package/dist/components/tableV3/customCells/MicroTagCell.d.ts +10 -0
- package/dist/components/tableV3/customCells/TagCell.d.ts +10 -0
- package/dist/components/tableV3/customCells/TwoRowsCell.d.ts +9 -0
- package/dist/components/tableV3/customCells/ValueWithUnitCell.d.ts +9 -0
- package/dist/components/tableV3/customCells/index.d.ts +4 -0
- package/dist/components/tableV3/hooks/useClassNames.d.ts +6 -0
- package/dist/components/tableV3/hooks/useColumnHelper.d.ts +7 -0
- package/dist/components/tableV3/hooks/useColumnPinning.d.ts +8 -0
- package/dist/components/tableV3/hooks/usePagination.d.ts +8 -0
- package/dist/components/tableV3/index.d.ts +3 -0
- package/dist/components/tableV3/providers/TableProvider/TableProvider.d.ts +5 -0
- package/dist/components/tableV3/providers/TableProvider/index.d.ts +3 -0
- package/dist/components/tableV3/providers/TableProvider/types.d.ts +27 -0
- package/dist/components/tableV3/stories/actions.d.ts +5 -0
- package/dist/components/tableV3/stories/columns.d.ts +3 -0
- package/dist/components/tableV3/stories/data.d.ts +2 -0
- package/dist/components/tableV3/stories/styled.d.ts +1 -0
- package/dist/components/tableV3/stories/types.d.ts +10 -0
- package/dist/components/tableV3/styled.d.ts +8 -0
- package/dist/components/{table → tableV3}/table.stories.d.ts +2 -2
- package/dist/components/tableV3/types/cellsTypes.d.ts +1 -0
- package/dist/components/tableV3/types/columnsTypes.d.ts +49 -0
- package/dist/components/tableV3/types/enums.d.ts +16 -0
- package/dist/components/tableV3/types/features/actions.d.ts +40 -0
- package/dist/components/tableV3/types/features/highlight.d.ts +5 -0
- package/dist/components/tableV3/types/features/pagination.d.ts +20 -0
- package/dist/components/tableV3/types/features/selectRow.d.ts +16 -0
- package/dist/components/tableV3/types/features/settings.d.ts +27 -0
- package/dist/components/tableV3/types/features/sort.d.ts +15 -0
- package/dist/components/tableV3/types/index.d.ts +10 -0
- package/dist/components/tableV3/types/tableTypes.d.ts +33 -0
- package/dist/components/tableV3/utils.d.ts +29 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.esm.js +9 -9
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +9 -9
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/assets/index-0788b002.css +0 -626
- package/dist/assets/index.esm-7d789d8e.css +0 -626
- package/dist/common/components/Label.d.ts +0 -3
- package/dist/common/types/label.d.ts +0 -12
- package/dist/common/utils/label.d.ts +0 -5
- package/dist/components/accordion-new/Accordion.d.ts +0 -12
- package/dist/components/accordion-new/accordion-new.stories.d.ts +0 -4
- package/dist/components/accordion-new/components/AccordionIcon.d.ts +0 -3
- package/dist/components/accordion-new/components/AccordionItem.d.ts +0 -3
- package/dist/components/accordion-new/components/styled.d.ts +0 -8
- package/dist/components/accordion-new/index.d.ts +0 -3
- package/dist/components/accordion-new/types.d.ts +0 -58
- package/dist/components/accordion-new/utils.d.ts +0 -10
- package/dist/components/accordions/accordions.d.ts +0 -9
- package/dist/components/accordions/accordions.stories.d.ts +0 -8
- package/dist/components/accordions/components/styledAccordionWrapper.d.ts +0 -1
- package/dist/components/accordions/index.d.ts +0 -1
- package/dist/components/accordions/types.d.ts +0 -19
- package/dist/components/banner/utils.d.ts +0 -8
- package/dist/components/carousel/components/common/styled.d.ts +0 -2
- package/dist/components/chart/components/styled.d.ts +0 -13
- package/dist/components/checkbox/Checkbox.d.ts +0 -15
- package/dist/components/checkbox/checkbox.stories.d.ts +0 -1
- package/dist/components/checkbox/checkboxPalette.d.ts +0 -16
- package/dist/components/checkbox/components/Input.d.ts +0 -9
- package/dist/components/checkbox/components/Label.d.ts +0 -8
- package/dist/components/checkbox/hooks/useCheckboxValue.d.ts +0 -11
- package/dist/components/checkbox/index.d.ts +0 -4
- package/dist/components/checkbox/types.d.ts +0 -19
- package/dist/components/checkbox/utils.d.ts +0 -24
- package/dist/components/chips/chips.d.ts +0 -7
- package/dist/components/chips/chips.stories.d.ts +0 -6
- package/dist/components/chips/components/styledChipWrapper.d.ts +0 -4
- package/dist/components/chips/index.d.ts +0 -2
- package/dist/components/chips/types.d.ts +0 -11
- package/dist/components/drawer/types.d.ts +0 -14
- package/dist/components/form/checkbox/components/Input.d.ts +0 -9
- package/dist/components/form/checkbox/components/Label.d.ts +0 -8
- package/dist/components/form/datepicker/StyledDatePicker.d.ts +0 -1
- package/dist/components/form/datepicker/components/MonthPicker.d.ts +0 -5
- package/dist/components/form/fileUploader/fileTypes.d.ts +0 -3
- package/dist/components/form/fileUploader/hooks/useIcon.d.ts +0 -4
- package/dist/components/form/fileUploader/hooks/useTexts.d.ts +0 -3
- package/dist/components/form/select/components/Placeholder.d.ts +0 -4
- package/dist/components/form/select/components/types.d.ts +0 -10
- package/dist/components/groupRadioButton/index.d.ts +0 -23
- package/dist/components/groupRadioButton/radio-group.stories.d.ts +0 -6
- package/dist/components/inlineMessages/components/styledInlineMessageWrapper.d.ts +0 -8
- package/dist/components/inlineMessages/index.d.ts +0 -2
- package/dist/components/inlineMessages/inlineMessages.d.ts +0 -4
- package/dist/components/inlineMessages/inlineMessages.stories.d.ts +0 -7
- package/dist/components/inlineMessages/types.d.ts +0 -29
- package/dist/components/inputText/components/icons.d.ts +0 -8
- package/dist/components/inputText/components/inputContainer.d.ts +0 -1
- package/dist/components/inputText/components/messages.d.ts +0 -2
- package/dist/components/inputText/components/wrapperTextArea.d.ts +0 -1
- package/dist/components/inputText/icons.d.ts +0 -9
- package/dist/components/inputText/index.d.ts +0 -3
- package/dist/components/inputText/inputText.stories.d.ts +0 -1
- package/dist/components/inputText/inputTextStyledWrapper.d.ts +0 -2
- package/dist/components/inputText/sideText.d.ts +0 -6
- package/dist/components/inputText/typings/enums.d.ts +0 -17
- package/dist/components/inputText/typings/inputText.d.ts +0 -43
- package/dist/components/inputText/utils.d.ts +0 -8
- package/dist/components/newTable/components/action/favorite/Favorite.d.ts +0 -13
- package/dist/components/newTable/components/action/favorite/index.d.ts +0 -1
- package/dist/components/newTable/components/action/favorite/styled.d.ts +0 -3
- package/dist/components/pagination/paginationStyledWrapper.d.ts +0 -1
- package/dist/components/progressbar/components/styledProgressbarWrapper.d.ts +0 -2
- package/dist/components/radioButton/components/label.d.ts +0 -2
- package/dist/components/radioButton/components/radio.d.ts +0 -2
- package/dist/components/radioButton/index.d.ts +0 -2
- package/dist/components/radioButton/radio.stories.d.ts +0 -6
- package/dist/components/radioButton/typings/radioButton.d.ts +0 -21
- package/dist/components/select/hooks/constants.d.ts +0 -4613
- package/dist/components/select/hooks/useCustomSelectStyle.d.ts +0 -4
- package/dist/components/select/index.d.ts +0 -4
- package/dist/components/select/select.stories.d.ts +0 -1
- package/dist/components/select/typings/select.d.ts +0 -22
- package/dist/components/stepBar/components/singleStep.d.ts +0 -3
- package/dist/components/stepBar/components/styledStepBarWrapper.d.ts +0 -2
- package/dist/components/stepBar/index.d.ts +0 -2
- package/dist/components/stepBar/stepBar.d.ts +0 -7
- package/dist/components/stepBar/stepBar.stories.d.ts +0 -1
- package/dist/components/stepBar/types.d.ts +0 -15
- package/dist/components/table/components/EmptyState.d.ts +0 -7
- package/dist/components/table/components/SelectedRowsCount.d.ts +0 -7
- package/dist/components/table/components/actionLink.d.ts +0 -3
- package/dist/components/table/components/actions/ActionsCell.d.ts +0 -10
- package/dist/components/table/components/actions/DropdownActions.d.ts +0 -10
- package/dist/components/table/components/actions/PrimaryAction.d.ts +0 -12
- package/dist/components/table/components/actions/actionsContainer.d.ts +0 -1
- package/dist/components/table/components/actions/actionsPopUp.d.ts +0 -12
- package/dist/components/table/components/actions/actionsPopUpButton.d.ts +0 -8
- package/dist/components/table/components/actions/actionsPopUpUnderlay.d.ts +0 -3
- package/dist/components/table/components/checkboxes/Cell.d.ts +0 -5
- package/dist/components/table/components/checkboxes/Header.d.ts +0 -5
- package/dist/components/table/components/checkboxes/useHeaderCheckboxProps.d.ts +0 -12
- package/dist/components/table/components/components/headDesktop.d.ts +0 -15
- package/dist/components/table/components/components/listMobile.d.ts +0 -15
- package/dist/components/table/components/components/rowDesktop.d.ts +0 -18
- package/dist/components/table/components/customizationModal/customizationsModal.d.ts +0 -10
- package/dist/components/table/components/customizationModal/index.d.ts +0 -2
- package/dist/components/table/components/customizationModal/styledWrapper.d.ts +0 -3
- package/dist/components/table/components/customizationModal/useDnd.d.ts +0 -8
- package/dist/components/table/components/customizationModal/utils.d.ts +0 -6
- package/dist/components/table/components/emptySet.d.ts +0 -10
- package/dist/components/table/components/linearBackground.d.ts +0 -1
- package/dist/components/table/components/loadingCell/LoadingCell.d.ts +0 -8
- package/dist/components/table/components/loadingContent.d.ts +0 -7
- package/dist/components/table/components/pagination/PageButton.d.ts +0 -10
- package/dist/components/table/components/pagination/PaginationButtons.d.ts +0 -10
- package/dist/components/table/components/pagination/utils.d.ts +0 -14
- package/dist/components/table/components/pagination.d.ts +0 -8
- package/dist/components/table/components/sortIcon.d.ts +0 -2
- package/dist/components/table/components/styledWrapper.d.ts +0 -3
- package/dist/components/table/components/tableBody/TableBody.d.ts +0 -17
- package/dist/components/table/components/tableBody/TableBodyTr.d.ts +0 -8
- package/dist/components/table/components/tableHeader/SortIndicator.d.ts +0 -7
- package/dist/components/table/components/tableHeader/TableHeader.d.ts +0 -12
- package/dist/components/table/components/tableParts/TableTd.d.ts +0 -8
- package/dist/components/table/components/tableParts/TableTh.d.ts +0 -4
- package/dist/components/table/components/tableParts/styled.d.ts +0 -17
- package/dist/components/table/components/unstyledTable.d.ts +0 -11
- package/dist/components/table/constants.d.ts +0 -2
- package/dist/components/table/hooks/useCheckboxesComponents.d.ts +0 -4
- package/dist/components/table/hooks/useRowsSelection.d.ts +0 -4
- package/dist/components/table/hooks/useTableHooks.d.ts +0 -6
- package/dist/components/table/hooks/useTableValues.d.ts +0 -14
- package/dist/components/table/index.d.ts +0 -7
- package/dist/components/table/stories/columns.d.ts +0 -3
- package/dist/components/table/stories/components/CustomPerson.d.ts +0 -7
- package/dist/components/table/stories/components/Role.d.ts +0 -8
- package/dist/components/table/stories/components/types.d.ts +0 -14
- package/dist/components/table/stories/data.d.ts +0 -2
- package/dist/components/table/table.d.ts +0 -57
- package/dist/components/table/tablePalette.d.ts +0 -33
- package/dist/components/table/types.d.ts +0 -28
- package/dist/components/table/typings/main.d.ts +0 -92
- package/dist/components/table/utils/configPersistency.d.ts +0 -14
- package/dist/components/table/utils.d.ts +0 -16
- package/dist/components/textButton/TextButton.d.ts +0 -12
- package/dist/components/textButton/index.d.ts +0 -2
- package/dist/components/textButton/textButton.stories.d.ts +0 -1
- package/dist/components/tip/components/styledTip.d.ts +0 -4
- package/dist/components/toast/ToastContainer.d.ts +0 -9
- package/dist/components/toast/typings/toast.d.ts +0 -32
- package/dist/components/tooltips/components/message.d.ts +0 -12
- package/dist/components/tooltips/components/styledTooltipWrapper.d.ts +0 -1
- package/dist/components/tooltips/index.d.ts +0 -2
- package/dist/components/tooltips/tooltips.d.ts +0 -15
- package/dist/components/tooltips/tooltips.stories.d.ts +0 -1
- package/dist/components/tooltips/types.d.ts +0 -25
- package/dist/components/verticalTab/VerticalTab.d.ts +0 -4
- package/dist/components/verticalTab/components/VerticalTabSelector/VerticalTabSelector.d.ts +0 -13
- package/dist/components/verticalTab/components/VerticalTabSelector/index.d.ts +0 -5
- package/dist/components/verticalTab/components/VerticalTabSelector/styled.d.ts +0 -11
- package/dist/components/verticalTab/components/VerticalTabSelector/types.d.ts +0 -37
- package/dist/components/verticalTab/components/VerticalTabSelector/verticalTabSelector.stories.d.ts +0 -5
- package/dist/components/verticalTab/components/VerticalTabSelector/verticalTabSelectorPalette.d.ts +0 -3
- package/dist/components/verticalTab/index.d.ts +0 -2
- package/dist/components/verticalTab/styled.d.ts +0 -6
- package/dist/components/verticalTab/types.d.ts +0 -6
- package/dist/components/verticalTab/verticalTab.stories.d.ts +0 -8
- package/dist/styles/elevations.d.ts +0 -7
- package/dist/utils/FICNumbers.d.ts +0 -11
- /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/{toast.d.ts → Toast.d.ts} +0 -0
- /package/dist/components/toast/components/{toastContent.d.ts → ToastContent.d.ts} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ReactDatePickerCustomHeaderProps } from 'react-datepicker';
|
|
3
3
|
export interface DatePickerHeaderProps extends ReactDatePickerCustomHeaderProps {
|
|
4
|
-
yearsDisplayed: number;
|
|
5
|
-
setHideMonth: (value: boolean) => void;
|
|
6
4
|
hideYearSelection: boolean;
|
|
5
|
+
setHideMonth: (value: boolean) => void;
|
|
6
|
+
yearsRange?: number;
|
|
7
7
|
}
|
|
8
8
|
declare const DatePickerHeader: (props: DatePickerHeaderProps) => JSX.Element;
|
|
9
9
|
export default DatePickerHeader;
|
|
@@ -11,5 +11,5 @@ interface ReturnType {
|
|
|
11
11
|
showBottomArrow: boolean;
|
|
12
12
|
showLRArrows: boolean;
|
|
13
13
|
}
|
|
14
|
-
declare const useDatePickerHeaderShowLogic: ({ date, decreaseMonth, increaseMonth,
|
|
14
|
+
declare const useDatePickerHeaderShowLogic: ({ date, decreaseMonth, decreaseYear, increaseMonth, increaseYear, nextMonthButtonDisabled, nextYearButtonDisabled, prevMonthButtonDisabled, prevYearButtonDisabled, }: DatePickerHeaderProps) => ReturnType;
|
|
15
15
|
export default useDatePickerHeaderShowLogic;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ReactDatePickerCustomHeaderProps } from 'react-datepicker';
|
|
3
|
+
interface Props extends Pick<ReactDatePickerCustomHeaderProps, 'date' | 'changeYear'> {
|
|
4
|
+
yearsRange?: number;
|
|
5
|
+
}
|
|
6
|
+
declare const YearPicker: ({ changeYear, date, yearsRange }: Props) => JSX.Element;
|
|
7
|
+
export default YearPicker;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Wrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -10,6 +10,11 @@ export declare const WithCustomButton: Story<DatePickerProps & {
|
|
|
10
10
|
containerWidth: number;
|
|
11
11
|
containerHeight: number;
|
|
12
12
|
}>;
|
|
13
|
+
export declare const Range: Story<DatePickerProps & {
|
|
14
|
+
renderWrapper: boolean;
|
|
15
|
+
containerWidth: number;
|
|
16
|
+
containerHeight: number;
|
|
17
|
+
}>;
|
|
13
18
|
declare const DatePickerStories: Meta<DatePickerProps & {
|
|
14
19
|
renderWrapper: boolean;
|
|
15
20
|
containerWidth: number;
|
|
@@ -12,12 +12,11 @@ export interface RenderCustomFooterProps extends DatePickerImplProps {
|
|
|
12
12
|
isOpen: boolean;
|
|
13
13
|
setIsOpen: Dispatch<SetStateAction<boolean>>;
|
|
14
14
|
}
|
|
15
|
-
export interface DatePickerImplProps extends Omit<ReactDatePickerProps, 'onChange'>, CommonFormTypes {
|
|
15
|
+
export interface DatePickerImplProps extends Omit<ReactDatePickerProps<never, true>, 'onChange'>, CommonFormTypes {
|
|
16
16
|
date?: Date | null;
|
|
17
17
|
startDate?: Date | null;
|
|
18
18
|
endDate?: Date | null;
|
|
19
19
|
setDate: Dispatch<SetStateAction<Date | null>>;
|
|
20
|
-
yearsDisplayed?: number;
|
|
21
20
|
hasTodayButton?: boolean;
|
|
22
21
|
customButtons?: CustomButtonProps[];
|
|
23
22
|
renderCustomFooter?: RenderCustomFooterType;
|
|
@@ -28,5 +27,8 @@ export interface DatePickerImplProps extends Omit<ReactDatePickerProps, 'onChang
|
|
|
28
27
|
includeDates?: Date[];
|
|
29
28
|
excludeDates?: Date[];
|
|
30
29
|
hideYearSelection?: boolean;
|
|
30
|
+
yearsRange?: number;
|
|
31
|
+
dateRange?: [Date | null, Date | null];
|
|
32
|
+
setDateRange?: Dispatch<SetStateAction<[Date | null, Date | null]>>;
|
|
31
33
|
}
|
|
32
34
|
export declare type DatePickerProps = LabelProps & DatePickerImplProps;
|
|
@@ -10,6 +10,7 @@ declare const _default: React.ForwardRefExoticComponent<import("../label").Label
|
|
|
10
10
|
onKeyDown?: React.KeyboardEventHandler<HTMLInputElement> | undefined;
|
|
11
11
|
onKeyPress?: React.KeyboardEventHandler<HTMLInputElement> | undefined;
|
|
12
12
|
onKeyUp?: React.KeyboardEventHandler<HTMLInputElement> | undefined;
|
|
13
|
+
readOnly?: boolean | undefined;
|
|
13
14
|
required?: boolean | undefined;
|
|
14
15
|
} & {
|
|
15
16
|
actionIcon?: import("../../icon").IconProps | undefined;
|
|
@@ -15,6 +15,7 @@ declare const _default: React.ForwardRefExoticComponent<import("../../common/typ
|
|
|
15
15
|
onKeyDown?: React.KeyboardEventHandler<HTMLInputElement> | undefined;
|
|
16
16
|
onKeyPress?: React.KeyboardEventHandler<HTMLInputElement> | undefined;
|
|
17
17
|
onKeyUp?: React.KeyboardEventHandler<HTMLInputElement> | undefined;
|
|
18
|
+
readOnly?: boolean | undefined;
|
|
18
19
|
required?: boolean | undefined;
|
|
19
20
|
} & {
|
|
20
21
|
actionIcon?: import("../../../icon").IconProps | undefined;
|
|
@@ -5,5 +5,6 @@ export declare const WithKnobs: Story<InputTextProps>;
|
|
|
5
5
|
export declare const WithUnitDropdown: Story<InputTextProps>;
|
|
6
6
|
export declare const CodeInputExample: Story<InputCodeProps>;
|
|
7
7
|
export declare const TelephoneInputExample: Story<InputTelephoneProps>;
|
|
8
|
+
export declare const Readonly: Story<InputTextProps>;
|
|
8
9
|
declare const InputTextStories: Meta<InputTextProps>;
|
|
9
10
|
export default InputTextStories;
|
|
@@ -6,7 +6,7 @@ import { LabelProps } from '../label';
|
|
|
6
6
|
import { UnitDropdownProps } from './components/UnitDropdown';
|
|
7
7
|
export declare const inputTypesArray: readonly ["password", "text", "number", "code", "telephone"];
|
|
8
8
|
export declare type inputTypes = (typeof inputTypesArray)[number];
|
|
9
|
-
declare type HTMLInputProps = Pick<InputHTMLAttributes<HTMLInputElement>, 'autoFocus' | 'className' | 'name' | 'onBlur' | 'onChange' | 'onFocus' | 'onKeyDown' | 'onKeyPress' | 'onKeyUp' | 'required' | 'style'>;
|
|
9
|
+
declare type HTMLInputProps = Pick<InputHTMLAttributes<HTMLInputElement>, 'autoFocus' | 'className' | 'name' | 'onBlur' | 'onChange' | 'onFocus' | 'onKeyDown' | 'onKeyPress' | 'onKeyUp' | 'required' | 'style' | 'readOnly'>;
|
|
10
10
|
export declare type InputElementProps = CommonFormTypes & HTMLInputProps & {
|
|
11
11
|
actionIcon?: IconProps;
|
|
12
12
|
autoComplete?: string;
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { TableProps } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* @callback IsRowDisabledCallback
|
|
5
|
+
* @param {Row<TData>} row
|
|
6
|
+
* @returns {boolean}
|
|
7
|
+
*
|
|
8
|
+
* @typedef {Object} LoadingStyle
|
|
9
|
+
* @property {string} [backgroundColor]
|
|
10
|
+
* @property {string} [foregroundColor]
|
|
11
|
+
* @property {number|string} [height]
|
|
12
|
+
* @property {number|string} [width]
|
|
13
|
+
*
|
|
14
|
+
* @callback OnRowClickCallback
|
|
15
|
+
* @param {Row<TData>} row
|
|
16
|
+
* @returns {void}
|
|
17
|
+
*
|
|
18
|
+
* @callback RenderEmptyStateCallback
|
|
19
|
+
* @returns {JSX.Element}
|
|
20
|
+
*
|
|
21
|
+
* @callback RowTooltipCallback
|
|
22
|
+
* @param {Row<TData>} row
|
|
23
|
+
* @returns {string}
|
|
24
|
+
*
|
|
25
|
+
* @callback OnRowSelectionCallback
|
|
26
|
+
* @param {string[]} rowSelection
|
|
27
|
+
* @returns {void}
|
|
28
|
+
*
|
|
29
|
+
* @typedef {Object} AllSelectedCTA
|
|
30
|
+
* @property {string} [description]
|
|
31
|
+
* @property {function} onClick
|
|
32
|
+
* @property {string} text
|
|
33
|
+
*
|
|
34
|
+
* @callback OnPaginationChangeCallback
|
|
35
|
+
* @param {PaginationState} pagination
|
|
36
|
+
* @returns {void}
|
|
37
|
+
*
|
|
38
|
+
* @callback OnSortCallback
|
|
39
|
+
* @param {{ sortBy: keyof TData; direction: false | SortDirection }} sortParams
|
|
40
|
+
* @returns {void}
|
|
41
|
+
*
|
|
42
|
+
* @typedef {Object} SettingsLabels
|
|
43
|
+
* @property {string} [main]
|
|
44
|
+
* @property {string} [rowSizeLabel]
|
|
45
|
+
* @property {string} [rowSizeSmallLabel]
|
|
46
|
+
* @property {string} [rowSizeLargeLabel]
|
|
47
|
+
* @property {string} [columnsLabel]
|
|
48
|
+
*
|
|
49
|
+
* @callback OnSettingsChangeCallback
|
|
50
|
+
* @param {SettingsEvent} event
|
|
51
|
+
* @param {VariableSettings} settings
|
|
52
|
+
* @returns {void}
|
|
53
|
+
*
|
|
54
|
+
* @callback IsRowHighlightedCallback
|
|
55
|
+
* @param {Row<TData>} row
|
|
56
|
+
* @returns {boolean}
|
|
57
|
+
*
|
|
58
|
+
* @callback RowActionsCallback
|
|
59
|
+
* @param {Row<TData>} row
|
|
60
|
+
* @returns {RowActions<TData>}
|
|
61
|
+
*
|
|
62
|
+
* @callback RenderBulkActionsCallback
|
|
63
|
+
* @param {string[]} rows
|
|
64
|
+
* @returns {JSX.Element}
|
|
65
|
+
*/
|
|
66
|
+
/**
|
|
67
|
+
* @component
|
|
68
|
+
* Table component props list:
|
|
69
|
+
* @param {HTMLElement} [absoluteElementsPortal] - Used to render some components relative to this node, instead of using the table components
|
|
70
|
+
* @param {number} [actionColumnWidth] - The width of the action column, if present
|
|
71
|
+
* @param {number} [bodyHeight] - The height of the table body
|
|
72
|
+
* @param {ColumnsType<TData>[]} columns - The columns configuration
|
|
73
|
+
* @param {TData[]} data - The data to be displayed
|
|
74
|
+
* @param {RowSize} [headerSize] - Determines the height of the header
|
|
75
|
+
* @param {boolean} [isLoading] - If true, the table will display a loading state
|
|
76
|
+
* @param {IsRowDisabledCallback} [isRowDisabled] - A function that receives a row and returns a boolean to determine if the row is disabled
|
|
77
|
+
* @param {LoadingStyle} [loadingStyle] - The style of the rows and cells on loading state
|
|
78
|
+
* @param {OnRowClickCallback} [onRowClick] - A function that is called when the row is clicked
|
|
79
|
+
* @param {RenderEmptyStateCallback} [renderEmptyState] - A function that returns a JSX element to be displayed when the table is empty
|
|
80
|
+
* @param {RowTooltipCallback} [rowTooltip - A function that returns a string to be displayed as a tooltip over the row
|
|
81
|
+
* @param {boolean} [showFooter] - If true, the table will display a footer
|
|
82
|
+
* @param {keyof TData} uniqueId - The unique identifier of the data row
|
|
83
|
+
* @param {boolean} [isSelectable] - If true, the table will display a checkbox in the first column to allow row selection
|
|
84
|
+
* @param {string[]} [rowSelection] - The list of selected rows, obligatory if isSelectable is true
|
|
85
|
+
* @param {OnRowSelectionCallback} [onRowSelection] - A function that receives the updated row selection, obligatory if isSelectable is true
|
|
86
|
+
* @param {AllSelectedCTA} [allSelectedCTA] - The call to action to be displayed when multiple rows are selected
|
|
87
|
+
* @param {boolean} [noPagination] - If true, the table will not display a pagination component and data won't be paginated
|
|
88
|
+
* @param {number} [pageSize] - The number of rows per page, obligatory if noPagination is false
|
|
89
|
+
* @param {number} [listSize] - The total number of rows, obligatory if noPagination is false
|
|
90
|
+
* @param {string} [paginationPreviousText] - The text to be displayed in the previous page button
|
|
91
|
+
* @param {string} [paginationNextText] - The text to be displayed in the next page button
|
|
92
|
+
* @param {OnPaginationChangeCallback} [onPaginationChange] - A function that receives the updated pagination state, obligatory if noPagination is false
|
|
93
|
+
* @param {number} [totalPages] - The total number of pages, obligatory if noPagination is false
|
|
94
|
+
* @param {boolean} [resetPageIndex] - When this prop changes, the pageIndex will be reset to 1
|
|
95
|
+
* @param {boolean} [sortable] - If true, the table will be sortable
|
|
96
|
+
* @param {boolean} [sortDescFirst] - If true, the table will sort in descending order first
|
|
97
|
+
* @param {OnSortCallback} [onSort] - A function that receives the updated sort state, obligatory if sortable is true
|
|
98
|
+
* @param {boolean} [enableSettings] - If true, the table will display a settings button to allow column visibility and order customization
|
|
99
|
+
* @param {SettingsLabels} [settingsLabels] - The labels to be displayed in the settings popover
|
|
100
|
+
* @param {TooltipProps} [settingsTooltip] - The props passed to a tooltip component, shown when hovering the settings button
|
|
101
|
+
* @param {OnSettingsChangeCallback} [onSettingsChange] - A function that receives the updated settings state
|
|
102
|
+
* @param {string[]} [hideableColumns] - The columns ids that can be hidden, default is all columns
|
|
103
|
+
* @param {string[]} [sortableColumns] - The columns ids that can be sorted, default is all columns
|
|
104
|
+
* @param {IsRowHighlightedCallback} [isRowHighlighted] - A function that receives a row and returns a boolean to determine if the row is highlighted
|
|
105
|
+
* @param {string} [rowHighlightColor] - The color of the highlighted rows
|
|
106
|
+
* @param {string|JSX.Element} [actionsHeader] - The header of the action column
|
|
107
|
+
* @param {RowActions<TData>|RowActionsCallback} [rowActions] - The actions to be displayed in the action column
|
|
108
|
+
* @param {BulkAction[]} [bulkActions] - The actions to be displayed in the bulk bar, when selecting multiple rows
|
|
109
|
+
* @param {RenderBulkActionsCallback} [renderBulkActions] - A function that receives the selected rows and returns a JSX element
|
|
110
|
+
*/
|
|
111
|
+
declare const TableV3: <T>(props: TableProps<T>) => JSX.Element;
|
|
112
|
+
export default TableV3;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Row as RowType } from '@tanstack/react-table';
|
|
3
|
+
import { TableProps } from '../../types';
|
|
4
|
+
interface BodyProps<T> extends Pick<TableProps<T>, 'isLoading' | 'isRowDisabled' | 'isRowHighlighted' | 'onRowClick' | 'rowActions' | 'rowHighlightColor' | 'rowSelection' | 'rowTooltip'> {
|
|
5
|
+
pageIndex: number;
|
|
6
|
+
rows: RowType<T>[];
|
|
7
|
+
}
|
|
8
|
+
declare const Body: <T>({ isLoading, isRowDisabled, isRowHighlighted, onRowClick, pageIndex, rowActions, rowHighlightColor, rowSelection, rowTooltip, rows, }: BodyProps<T>) => JSX.Element;
|
|
9
|
+
export default Body;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DSTBody: import("styled-components").StyledComponent<"tbody", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { AllSelectedCTA, BulkAction } from '../../types';
|
|
3
|
+
interface BulkBarProps {
|
|
4
|
+
selectedRowData: string[];
|
|
5
|
+
bulkBarActions?: BulkAction[];
|
|
6
|
+
allSelectedCTA?: AllSelectedCTA;
|
|
7
|
+
renderBulkActions?: (rows: string[]) => JSX.Element;
|
|
8
|
+
}
|
|
9
|
+
declare const BulkBar: ({ allSelectedCTA, bulkBarActions, renderBulkActions, selectedRowData }: BulkBarProps) => JSX.Element;
|
|
10
|
+
export default BulkBar;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const BulkBarWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
2
|
+
export declare const BulkBarContent: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
3
|
+
export declare const AllSelectedCTAContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
4
|
+
export declare const BulkActionsWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Cell as RTCell, Row } from '@tanstack/react-table';
|
|
3
|
+
interface Props<T> {
|
|
4
|
+
cell: RTCell<T, unknown>;
|
|
5
|
+
disableRow: boolean;
|
|
6
|
+
hover?: boolean;
|
|
7
|
+
isLoading?: boolean;
|
|
8
|
+
onClick?: () => void;
|
|
9
|
+
row: Row<T>;
|
|
10
|
+
}
|
|
11
|
+
declare const Cell: <T>({ cell, disableRow, hover, isLoading, onClick, row }: Props<T>) => JSX.Element;
|
|
12
|
+
export default Cell;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Row } from '@tanstack/react-table';
|
|
3
|
+
import { TableProps } from '../../../types';
|
|
4
|
+
declare type Props<T> = {
|
|
5
|
+
disableRow: boolean;
|
|
6
|
+
mouseHover: boolean;
|
|
7
|
+
isRowHighlighted?: boolean;
|
|
8
|
+
row: Row<T>;
|
|
9
|
+
rowActions?: TableProps<T>['rowActions'];
|
|
10
|
+
rowHighlightColor?: string;
|
|
11
|
+
selected: boolean;
|
|
12
|
+
};
|
|
13
|
+
declare const ActionsCell: <T>({ disableRow, isRowHighlighted, mouseHover, row, rowActions, rowHighlightColor, selected, }: Props<T>) => JSX.Element;
|
|
14
|
+
export default ActionsCell;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Row } from '@tanstack/react-table';
|
|
3
|
+
import { DropdownActions } from '../../../types';
|
|
4
|
+
declare type Props<T> = DropdownActions<T> & {
|
|
5
|
+
isDisabled: boolean;
|
|
6
|
+
row: Row<T>;
|
|
7
|
+
};
|
|
8
|
+
declare const DropdownAction: <T>({ isDisabled, items, row, tooltip }: Props<T>) => JSX.Element;
|
|
9
|
+
export default DropdownAction;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Row } from '@tanstack/react-table';
|
|
3
|
+
import { PrimaryAction } from '../../../types';
|
|
4
|
+
declare type Props<T> = PrimaryAction<T> & {
|
|
5
|
+
isDisabled: boolean;
|
|
6
|
+
row: Row<T>;
|
|
7
|
+
};
|
|
8
|
+
declare const PrimaryActionButton: <T>({ className, color, icon, isDisabled, onClick, row, text, tooltip, }: Props<T>) => JSX.Element;
|
|
9
|
+
export default PrimaryActionButton;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { MappedProps } from '../../../utils';
|
|
2
|
+
declare type ActionsTdProps = {
|
|
3
|
+
actionColumnWidth: number;
|
|
4
|
+
isDisabled: boolean;
|
|
5
|
+
isRowHighlighted?: boolean;
|
|
6
|
+
mouseHover: boolean;
|
|
7
|
+
rowHighlightColor?: string;
|
|
8
|
+
selected: boolean;
|
|
9
|
+
};
|
|
10
|
+
export declare const ActionsTd: import("styled-components").StyledComponent<"td", import("styled-components").DefaultTheme, MappedProps & ActionsTdProps, keyof MappedProps>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Row } from '@tanstack/react-table';
|
|
3
|
+
declare type Props<T> = {
|
|
4
|
+
disableRow: boolean;
|
|
5
|
+
mouseHover: boolean;
|
|
6
|
+
isRowHighlighted?: boolean;
|
|
7
|
+
row: Row<T>;
|
|
8
|
+
rowHighlightColor?: string;
|
|
9
|
+
rowSelection?: string[];
|
|
10
|
+
selected: boolean;
|
|
11
|
+
};
|
|
12
|
+
declare const CheckboxCell: <T>({ disableRow, isRowHighlighted, mouseHover, row, rowHighlightColor, rowSelection, selected, }: Props<T>) => JSX.Element;
|
|
13
|
+
export default CheckboxCell;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { MappedProps } from '../../../utils';
|
|
2
|
+
declare type CheckboxTdProps = {
|
|
3
|
+
isDisabled: boolean;
|
|
4
|
+
isRowHighlighted?: boolean;
|
|
5
|
+
mouseHover: boolean;
|
|
6
|
+
rowHighlightColor?: string;
|
|
7
|
+
selected: boolean;
|
|
8
|
+
};
|
|
9
|
+
export declare const CheckboxTd: import("styled-components").StyledComponent<"td", import("styled-components").DefaultTheme, MappedProps & CheckboxTdProps, keyof MappedProps>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Row } from '@tanstack/react-table';
|
|
3
|
+
import { EditableCellsColumn } from '../../../types';
|
|
4
|
+
declare type CustomInputProps<T> = EditableCellsColumn<T> & {
|
|
5
|
+
disableRow: boolean;
|
|
6
|
+
hover?: boolean;
|
|
7
|
+
row: Row<T>;
|
|
8
|
+
content: string | number | null | undefined;
|
|
9
|
+
};
|
|
10
|
+
declare const CustomInput: <T>({ content, disableRow, hover, inputProps, onChange, row, }: CustomInputProps<T>) => JSX.Element;
|
|
11
|
+
export default CustomInput;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const BaseCellWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
2
|
+
export declare const InputsWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { Coordinates, Dimensions } from '../../../../../../common/types';
|
|
2
|
+
export declare const TextAreaWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, Coordinates & Partial<Dimensions>, never>;
|
|
3
|
+
export declare const IconsWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Row } from '@tanstack/react-table';
|
|
2
|
+
import { Dispatch, SetStateAction } from 'react';
|
|
3
|
+
import { Coordinates, DSRect } from '../../../../../../common/types';
|
|
4
|
+
import { EditableCellsColumn } from '../../../../types';
|
|
5
|
+
declare type CommonProps<T> = EditableCellsColumn<T> & {
|
|
6
|
+
content: string | number | null | undefined;
|
|
7
|
+
row: Row<T>;
|
|
8
|
+
setFocus: Dispatch<SetStateAction<boolean>>;
|
|
9
|
+
};
|
|
10
|
+
export declare type TextAreaPopupProps<T> = CommonProps<T> & {
|
|
11
|
+
parentRect?: DOMRect;
|
|
12
|
+
};
|
|
13
|
+
export declare type TableTextAreaProps<T> = CommonProps<T> & {
|
|
14
|
+
rect: DSRect | Coordinates;
|
|
15
|
+
};
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Cell as RTCell } from '@tanstack/react-table';
|
|
2
|
+
import { CellValue } from '../../../types';
|
|
3
|
+
interface CellValues {
|
|
4
|
+
align: 'center' | 'left' | 'right';
|
|
5
|
+
content?: Exclude<CellValue, Record<string, unknown>>;
|
|
6
|
+
fixedWidth?: number;
|
|
7
|
+
isEditable: boolean;
|
|
8
|
+
maxWidth?: number;
|
|
9
|
+
minWidth?: number;
|
|
10
|
+
}
|
|
11
|
+
declare const useCellValues: <T>(cell: RTCell<T, unknown>) => CellValues;
|
|
12
|
+
export default useCellValues;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare type DSTdProps = {
|
|
3
|
+
fixedWidth?: number;
|
|
4
|
+
justifyContent: 'center' | 'left' | 'right';
|
|
5
|
+
maxWidth?: number;
|
|
6
|
+
minWidth?: number;
|
|
7
|
+
};
|
|
8
|
+
export declare const BaseTd: import("styled-components").StyledComponent<"td", import("styled-components").DefaultTheme, {}, never>;
|
|
9
|
+
export declare const DSTd: import("styled-components").StyledComponent<"td", import("styled-components").DefaultTheme, Partial<Pick<import("react").DetailedHTMLProps<import("react").TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, "key" | keyof import("react").TdHTMLAttributes<HTMLTableDataCellElement>> & {
|
|
10
|
+
ref?: ((instance: HTMLTableDataCellElement | null) => void) | import("react").RefObject<HTMLTableDataCellElement> | null | undefined;
|
|
11
|
+
} & {
|
|
12
|
+
minWidth?: number | undefined;
|
|
13
|
+
maxWidth?: number | undefined;
|
|
14
|
+
fixedWidth?: number | undefined;
|
|
15
|
+
}> & {
|
|
16
|
+
[others: string]: any;
|
|
17
|
+
} & DSTdProps, string | number>;
|
|
18
|
+
export declare const CutText: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { HeaderGroup } from '@tanstack/react-table';
|
|
3
|
+
interface FooterProps<T> {
|
|
4
|
+
getFooterGroups: () => HeaderGroup<T>[];
|
|
5
|
+
}
|
|
6
|
+
declare const Footer: <T>({ getFooterGroups }: FooterProps<T>) => JSX.Element;
|
|
7
|
+
export default Footer;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ColumnPinningPosition } from '@tanstack/react-table';
|
|
3
|
+
import { RowSize } from '../../../types';
|
|
4
|
+
declare type DSThProps = {
|
|
5
|
+
footerSize?: RowSize;
|
|
6
|
+
isPinned: ColumnPinningPosition;
|
|
7
|
+
minWidth?: number;
|
|
8
|
+
maxWidth?: number;
|
|
9
|
+
};
|
|
10
|
+
export declare const DSThFooter: import("styled-components").StyledComponent<"th", import("styled-components").DefaultTheme, Partial<Pick<import("react").DetailedHTMLProps<import("react").ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, "key" | keyof import("react").ThHTMLAttributes<HTMLTableHeaderCellElement>> & {
|
|
11
|
+
ref?: ((instance: HTMLTableHeaderCellElement | null) => void) | import("react").RefObject<HTMLTableHeaderCellElement> | null | undefined;
|
|
12
|
+
} & {
|
|
13
|
+
minWidth?: number | undefined;
|
|
14
|
+
maxWidth?: number | undefined;
|
|
15
|
+
fixedWidth?: number | undefined;
|
|
16
|
+
}> & {
|
|
17
|
+
[others: string]: any;
|
|
18
|
+
} & DSThProps, string | number>;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ColumnPinningPosition, Header } from '@tanstack/react-table';
|
|
2
|
+
interface FooterValues {
|
|
3
|
+
isPinned: ColumnPinningPosition;
|
|
4
|
+
maxWidth?: number;
|
|
5
|
+
minWidth?: number;
|
|
6
|
+
}
|
|
7
|
+
declare const useFooterValues: <T>(header: Header<T, unknown>) => FooterValues;
|
|
8
|
+
export default useFooterValues;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { RowSize } from '../../types';
|
|
2
|
+
export declare const DSTFoot: import("styled-components").StyledComponent<"tfoot", import("styled-components").DefaultTheme, {}, never>;
|
|
3
|
+
declare type DSTHeadProps = {
|
|
4
|
+
footerSize?: RowSize;
|
|
5
|
+
};
|
|
6
|
+
export declare const DSTrFooter: import("styled-components").StyledComponent<"tr", import("styled-components").DefaultTheme, DSTHeadProps, never>;
|
|
7
|
+
export declare const CheckboxFooter: import("styled-components").StyledComponent<"th", import("styled-components").DefaultTheme, {}, never>;
|
|
8
|
+
declare type ActionsFooterProps = {
|
|
9
|
+
actionColumnWidth: number;
|
|
10
|
+
};
|
|
11
|
+
export declare const ActionsFooter: import("styled-components").StyledComponent<"th", import("styled-components").DefaultTheme, ActionsFooterProps, never>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { HeaderGroup, Table } from '@tanstack/react-table';
|
|
3
|
+
import { TableProps } from '../../types';
|
|
4
|
+
declare type HeaderProps<T> = Pick<TableProps<T>, 'headerSize' | 'onSort'> & {
|
|
5
|
+
actionsHeader?: string | JSX.Element;
|
|
6
|
+
headerGroups: HeaderGroup<T>[];
|
|
7
|
+
onRowSelection?: (e: string[]) => void;
|
|
8
|
+
rowSelection?: string[];
|
|
9
|
+
table: Table<T>;
|
|
10
|
+
};
|
|
11
|
+
declare const Header: <T>({ actionsHeader, headerGroups, headerSize, onRowSelection, onSort, rowSelection, table, }: HeaderProps<T>) => JSX.Element;
|
|
12
|
+
export default Header;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Table } from '@tanstack/react-table';
|
|
3
|
+
declare type Props<T> = {
|
|
4
|
+
onRowSelection?: (e: string[]) => void;
|
|
5
|
+
rowSelection: string[];
|
|
6
|
+
table: Table<T>;
|
|
7
|
+
};
|
|
8
|
+
declare const CheckboxHeader: <T>({ onRowSelection, rowSelection, table }: Props<T>) => JSX.Element;
|
|
9
|
+
export default CheckboxHeader;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const CheckboxThHeader: import("styled-components").StyledComponent<"th", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Header, SortDirection } from '@tanstack/react-table';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { CustomSorted, OnSort } from '../../../types';
|
|
4
|
+
interface HeaderCellProps<T> {
|
|
5
|
+
customSorted?: false | SortDirection;
|
|
6
|
+
header: Header<T, unknown>;
|
|
7
|
+
onSort?: OnSort<T>;
|
|
8
|
+
setCustomSorted?: React.Dispatch<React.SetStateAction<CustomSorted | undefined>>;
|
|
9
|
+
}
|
|
10
|
+
declare const HeaderCell: <T>({ customSorted, header, onSort, setCustomSorted }: HeaderCellProps<T>) => JSX.Element;
|
|
11
|
+
export default HeaderCell;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ColumnPinningPosition } from '@tanstack/react-table';
|
|
3
|
+
declare type DSThProps = {
|
|
4
|
+
fixedWidth?: number;
|
|
5
|
+
isPinned: ColumnPinningPosition;
|
|
6
|
+
minWidth?: number;
|
|
7
|
+
maxWidth?: number;
|
|
8
|
+
sortable: boolean;
|
|
9
|
+
};
|
|
10
|
+
export declare const DSThHeader: import("styled-components").StyledComponent<"th", import("styled-components").DefaultTheme, Partial<Pick<import("react").DetailedHTMLProps<import("react").ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, "key" | keyof import("react").ThHTMLAttributes<HTMLTableHeaderCellElement>> & {
|
|
11
|
+
ref?: ((instance: HTMLTableHeaderCellElement | null) => void) | import("react").RefObject<HTMLTableHeaderCellElement> | null | undefined;
|
|
12
|
+
} & {
|
|
13
|
+
minWidth?: number | undefined;
|
|
14
|
+
maxWidth?: number | undefined;
|
|
15
|
+
fixedWidth?: number | undefined;
|
|
16
|
+
}> & {
|
|
17
|
+
[others: string]: any;
|
|
18
|
+
} & DSThProps, string | number>;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Column, Header } from '@tanstack/react-table';
|
|
2
|
+
import { TooltipProps } from '../../../../tooltip';
|
|
3
|
+
interface HeaderValues<T> {
|
|
4
|
+
canSort: boolean;
|
|
5
|
+
column: Column<T, unknown>;
|
|
6
|
+
fixedWidth?: number;
|
|
7
|
+
isSorted: boolean;
|
|
8
|
+
isSortedDesc: string | null;
|
|
9
|
+
maxWidth?: number;
|
|
10
|
+
minWidth?: number;
|
|
11
|
+
tooltip?: TooltipProps;
|
|
12
|
+
}
|
|
13
|
+
declare const useHeaderValues: <T>(header: Header<T, unknown>) => HeaderValues<T>;
|
|
14
|
+
export default useHeaderValues;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { RowSize } from '../../types';
|
|
2
|
+
export declare const DSTHead: import("styled-components").StyledComponent<"thead", import("styled-components").DefaultTheme, {}, never>;
|
|
3
|
+
declare type DSTrHeaderProps = {
|
|
4
|
+
headerSize?: RowSize;
|
|
5
|
+
};
|
|
6
|
+
export declare const DSTrHeader: import("styled-components").StyledComponent<"tr", import("styled-components").DefaultTheme, DSTrHeaderProps, never>;
|
|
7
|
+
export declare const BaseThHeader: import("styled-components").StyledComponent<"th", import("styled-components").DefaultTheme, {}, never>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Row as RowType } from '@tanstack/react-table';
|
|
3
|
+
import { TableProps } from '../../types';
|
|
4
|
+
declare type TrProps<T> = Pick<TableProps<T>, 'isLoading' | 'isRowDisabled' | 'isRowHighlighted' | 'onRowClick' | 'rowActions' | 'rowHighlightColor' | 'rowSelection' | 'rowTooltip'> & {
|
|
5
|
+
row: RowType<T>;
|
|
6
|
+
};
|
|
7
|
+
declare const Row: <T>({ isLoading, isRowDisabled, isRowHighlighted, onRowClick, row, rowActions, rowHighlightColor, rowSelection, rowTooltip, }: TrProps<T>) => JSX.Element;
|
|
8
|
+
export default Row;
|