@fattureincloud/fic-design-system 0.10.0 → 0.10.2-tmp
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/assets/index-7ee742e8.css +154 -0
- package/dist/assets/index-9fc4893a.css +155 -0
- package/dist/assets/index.esm-bff8cd71.css +155 -0
- package/dist/assets/index.esm-c9d742c9.css +154 -0
- package/dist/components/carousel/Carousel.d.ts +4 -0
- package/dist/components/carousel/carousel.stories.d.ts +6 -0
- package/dist/components/carousel/components/carouselMainMedia/CarouselMainMedia.d.ts +7 -0
- package/dist/components/carousel/components/carouselMainMedia/styled.d.ts +4 -0
- package/dist/components/carousel/components/carouselThumbnails/CarouselThumbnails.d.ts +8 -0
- package/dist/components/carousel/components/carouselThumbnails/components/carouselThumbnail/CarouselThumbnail.d.ts +8 -0
- package/dist/components/carousel/components/carouselThumbnails/components/carouselThumbnail/styled.d.ts +5 -0
- package/dist/components/carousel/components/carouselThumbnails/styled.d.ts +7 -0
- package/dist/components/carousel/components/carouselThumbnails/utils.d.ts +2 -0
- package/dist/components/carousel/components/common/media/Media.d.ts +8 -0
- package/dist/components/carousel/components/common/media/utils.d.ts +1 -0
- package/dist/components/carousel/components/common/styled.d.ts +2 -0
- package/dist/components/carousel/components/fullscreenMedia/FullscreenMedia.d.ts +8 -0
- package/dist/components/carousel/components/fullscreenMedia/styled.d.ts +9 -0
- package/dist/components/carousel/index.d.ts +2 -0
- package/dist/components/carousel/styled.d.ts +1 -0
- package/dist/components/carousel/types.d.ts +3 -0
- package/dist/components/dropdown/DropdownImpl.d.ts +1 -1
- package/dist/components/dropdown/dropdown.stories.d.ts +1 -0
- package/dist/components/dropdown/styled.d.ts +4 -0
- package/dist/components/dropdown/types.d.ts +2 -0
- package/dist/components/newTable/Table.d.ts +3 -1
- package/dist/components/newTable/components/body/Body.d.ts +3 -2
- package/dist/components/newTable/components/cell/Cell.d.ts +3 -1
- package/dist/components/newTable/components/cell/customCell/CustomCell.d.ts +3 -1
- package/dist/components/newTable/components/cell/styled.d.ts +2 -0
- package/dist/components/newTable/components/header/Header.d.ts +3 -1
- package/dist/components/newTable/components/header/headerCell/HeaderCell.d.ts +3 -1
- package/dist/components/newTable/components/header/headerCell/styled.d.ts +3 -0
- package/dist/components/newTable/components/row/Row.d.ts +3 -1
- package/dist/components/newTable/styled.d.ts +1 -0
- package/dist/components/newTable/types.d.ts +2 -1
- package/dist/index.css +130 -104
- package/dist/index.d.ts +1 -0
- 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/components/banner/utils.d.ts +0 -8
- 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/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/form/select/components/Placeholder.d.ts +0 -4
- package/dist/components/gridCard/GridCard.d.ts +0 -4
- package/dist/components/gridCard/gridCard.stories.d.ts +0 -8
- package/dist/components/gridCard/index.d.ts +0 -2
- package/dist/components/gridCard/stories/data.d.ts +0 -3
- package/dist/components/gridCard/styled.d.ts +0 -15
- package/dist/components/gridCard/types.d.ts +0 -16
- package/dist/components/gridCard/utils.d.ts +0 -2
- 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/newTable/components/header/styled.d.ts +0 -1
- 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/table/Table.d.ts +0 -57
- package/dist/components/table/components/ActionsCell.d.ts +0 -10
- package/dist/components/table/components/EmptyState.d.ts +0 -7
- package/dist/components/table/components/Pagination.d.ts +0 -8
- package/dist/components/table/components/SelectedRowsCount.d.ts +0 -7
- 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/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/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/loadingCell/LoadingCell.d.ts +0 -8
- 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/tableBody/TableBody.d.ts +0 -17
- package/dist/components/table/components/tableBody/TableBodyLoader.d.ts +0 -7
- package/dist/components/table/components/tableBody/TableBodyTr.d.ts +0 -8
- package/dist/components/table/components/tableBody/styled.d.ts +0 -3
- 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/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.stories.d.ts +0 -6
- package/dist/components/table/tablePalette.d.ts +0 -33
- package/dist/components/table/types.d.ts +0 -28
- package/dist/components/table/utils.d.ts +0 -16
- 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 -34
- 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/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
@@ -0,0 +1 @@
|
|
1
|
+
export declare const isVideo: (src: string) => boolean;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { ModalPropsInterface } from 'components/modals/types';
|
3
|
+
import { Modal } from '../../../modals';
|
4
|
+
export declare const ImageModal: import("styled-components").StyledComponent<typeof Modal, import("styled-components").DefaultTheme, ModalPropsInterface & {
|
5
|
+
children: React.ReactNode;
|
6
|
+
}, never>;
|
7
|
+
export declare const CloseButton: import("styled-components").StyledComponent<({ className, color, icon, isDisabled, onClick, type }: import("../../../buttons").IconButtonProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
8
|
+
export declare const ImageWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
9
|
+
export declare const Image: import("styled-components").StyledComponent<({ src, className, showVideoControls }: import("../common/media/Media").MediaProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const Wrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import { DropdownProps } from './types';
|
3
|
-
declare const DropdownImpl: ({ className, content, fullWidth, maxWidth, maxHeight, minWidthAsTrigger, placement, renderContent, renderTrigger, triggerStyles, title, forceOpen, disableArrowNavigation, isDisabled, emptyState, onOpen, withPadding, offsetY, forceClose, onClose, }: DropdownProps) => JSX.Element;
|
3
|
+
declare const DropdownImpl: ({ className, content, fullWidth, maxWidth, maxHeight, minWidthAsTrigger, placement, renderContent, renderTrigger, triggerStyles, title, forceOpen, disableArrowNavigation, isDisabled, emptyState, onOpen, withPadding, offsetY, forceClose, onClose, sideButton, }: DropdownProps) => JSX.Element;
|
4
4
|
export default DropdownImpl;
|
@@ -3,5 +3,6 @@ import { Meta } from '@storybook/react';
|
|
3
3
|
import { DropdownProps } from './types';
|
4
4
|
export declare const Simple: () => JSX.Element;
|
5
5
|
export declare const WithKnobs: () => JSX.Element;
|
6
|
+
export declare const WithButton: () => JSX.Element;
|
6
7
|
declare const DropdownStories: Meta<DropdownProps>;
|
7
8
|
export default DropdownStories;
|
@@ -0,0 +1,4 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
export declare const WithButtonWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
3
|
+
export declare const LeftButton: import("styled-components").StyledComponent<({ className, color, fullWidth, href, iconLeft, iconRight, isDisabled, isLoading, onClick, size, target, text, type, }: import("../buttons").ButtonProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
4
|
+
export declare const RightButton: import("styled-components").StyledComponent<({ className, color, fullWidth, href, iconLeft, iconRight, isDisabled, isLoading, onClick, size, target, text, type, }: import("../buttons").ButtonProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { Placement } from '@popperjs/core/lib/enums';
|
2
2
|
import React, { CSSProperties, MouseEventHandler, ReactNode } from 'react';
|
3
|
+
import { ButtonProps } from '../buttons';
|
3
4
|
import { IconProps } from '../icon';
|
4
5
|
export declare type TitleProps = {
|
5
6
|
text: string;
|
@@ -27,6 +28,7 @@ export declare type DropdownProps = {
|
|
27
28
|
withPadding?: boolean;
|
28
29
|
offsetY?: number;
|
29
30
|
forceClose?: boolean;
|
31
|
+
sideButton?: Pick<ButtonProps, 'text' | 'iconLeft' | 'iconRight' | 'onClick'>;
|
30
32
|
};
|
31
33
|
export declare type DropdownItemType = 'default' | 'danger' | 'success' | 'warning' | 'link';
|
32
34
|
export interface DropdownItemProps {
|
@@ -29,6 +29,8 @@ import { TableProps } from './types';
|
|
29
29
|
* @param {function} onRowClick Callback called after a click on a row, returns the row
|
30
30
|
* @param {number} rowIdHighlight id of the row that will be highlighted
|
31
31
|
* @param {number} actionColumnWidth used to determine the width of the action column
|
32
|
+
* @param {string} columnsBreakpointWidth fixed length that columns get below the breakpoint set with {tableBreakpoint} prop
|
33
|
+
* @param {string} tableBreakpoint table breakpoint below which the columns of the table get a fixed length
|
32
34
|
*/
|
33
|
-
declare const Table: <T>({ data, columns, isSelectable, toggles, onTogglesChange, headerSize, isTogglesSortable, sortable, sortDescFirst, enableSettings, settingsDropdownConfig, rowActions, bulkActions, isLoading, allSelectedCTA, noPagination, pageSize: pageLength, listSize, paginationPreviousText, paginationNextText, onPaginationChange, uniqueId, onSort, renderEmptyState, onRowClick, bodyHeight, totalPages, rowIdHighlight, rowHighlightColor, rowSelection, onRowSelection, forceHideSettings, renderBulkActions, preSettedTableSettings, onChangeTableSettings, notRemovableColumns, rowSize, actionColumnWidth,
|
35
|
+
declare const Table: <T>({ data, columns, isSelectable, toggles, onTogglesChange, headerSize, isTogglesSortable, sortable, sortDescFirst, enableSettings, settingsDropdownConfig, rowActions, bulkActions, isLoading, allSelectedCTA, noPagination, pageSize: pageLength, listSize, paginationPreviousText, paginationNextText, onPaginationChange, uniqueId, onSort, renderEmptyState, onRowClick, bodyHeight, totalPages, rowIdHighlight, rowHighlightColor, rowSelection, onRowSelection, forceHideSettings, renderBulkActions, preSettedTableSettings, onChangeTableSettings, notRemovableColumns, rowSize, actionColumnWidth, resetPageIndex, columnsBreakpointWidth, tableBreakpoint, }: TableProps<T>) => JSX.Element;
|
34
36
|
export default Table;
|
@@ -7,7 +7,8 @@ interface BodyProps<T> extends Pick<TableProps<T>, 'rowSize' | 'bodyHeight' | 'r
|
|
7
7
|
onRowClick?: (row: Row<T>) => void;
|
8
8
|
pageIndex: number;
|
9
9
|
actionColumnWidth: number;
|
10
|
-
|
10
|
+
fixedWidthCells: boolean;
|
11
|
+
columnsBreakpointWidth: string;
|
11
12
|
}
|
12
|
-
declare const Body: <T>({ rows, rowSize, isLoading, onRowClick, bodyHeight, rowIdHighlight, rowHighlightColor, pageIndex, actionColumnWidth,
|
13
|
+
declare const Body: <T>({ rows, rowSize, isLoading, onRowClick, bodyHeight, rowIdHighlight, rowHighlightColor, pageIndex, actionColumnWidth, fixedWidthCells, columnsBreakpointWidth, }: BodyProps<T>) => JSX.Element;
|
13
14
|
export default Body;
|
@@ -9,6 +9,8 @@ interface Props<T> {
|
|
9
9
|
isLoading?: boolean;
|
10
10
|
onRowClick?: (row: Row<T>) => void;
|
11
11
|
actionColumnWidth: number;
|
12
|
+
fixedWidthCells: boolean;
|
13
|
+
columnsBreakpointWidth: string;
|
12
14
|
}
|
13
|
-
declare const Cell: <T>({ cell, row, hover, rowSize, isLoading, onRowClick, actionColumnWidth }: Props<T>) => JSX.Element;
|
15
|
+
declare const Cell: <T>({ cell, row, hover, rowSize, isLoading, onRowClick, actionColumnWidth, fixedWidthCells, columnsBreakpointWidth, }: Props<T>) => JSX.Element;
|
14
16
|
export default Cell;
|
@@ -8,6 +8,8 @@ declare type Props<CellProps> = {
|
|
8
8
|
rowSize?: RowSize;
|
9
9
|
actionColumnWidth: number;
|
10
10
|
onRowClick?: (row: Row<CellProps>) => void;
|
11
|
+
fixedWidthCells: boolean;
|
12
|
+
columnsBreakpointWidth: string;
|
11
13
|
} & CustomCellProps & AccessorColumnDef<CellProps> & ActionColumnDef<CellProps> & AdditionalColumnDef<CellProps>;
|
12
|
-
declare const CustomCell: <CellProps>({ content, isEditable, tag, unitSymbol, headline, leadingIcon, avatar, actionType, row, rowSize, onActionChange, isToggled, hover, onChange, trailingMicroTag, minWidth, rowActions, context, onRowClick, maxWidth, align, disableClick, actionColumnWidth, }: Props<CellProps>) => JSX.Element;
|
14
|
+
declare const CustomCell: <CellProps>({ content, isEditable, tag, unitSymbol, headline, leadingIcon, avatar, actionType, row, rowSize, onActionChange, isToggled, hover, onChange, trailingMicroTag, minWidth, rowActions, context, onRowClick, maxWidth, align, disableClick, actionColumnWidth, fixedWidthCells, columnsBreakpointWidth, }: Props<CellProps>) => JSX.Element;
|
13
15
|
export default CustomCell;
|
@@ -3,6 +3,8 @@ export declare const Td: import("styled-components").StyledComponent<"div", impo
|
|
3
3
|
minWidth?: number | undefined;
|
4
4
|
maxWidth?: number | undefined;
|
5
5
|
align?: "center" | "left" | "right" | undefined;
|
6
|
+
fixedWidthCells: boolean;
|
7
|
+
columnsBreakpointWidth: string;
|
6
8
|
}, never>;
|
7
9
|
export declare const Wrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
8
10
|
export declare const LeadingIconContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
@@ -17,6 +17,8 @@ interface HeaderProps<T> {
|
|
17
17
|
onChangeTableSettings?: onChangeTableSettings;
|
18
18
|
isLoading: boolean;
|
19
19
|
actionColumnWidth: number;
|
20
|
+
fixedWidthCells: boolean;
|
21
|
+
columnsBreakpointWidth: string;
|
20
22
|
}
|
21
|
-
declare const Header: <T>({ headerGroup, headerSize, onSort, forceHideSettings, rowSelection, setRowSelection, preSettedTableSettings, onChangeTableSettings, notRemovableColumns, isLoading, actionColumnWidth, }: HeaderProps<T>) => JSX.Element;
|
23
|
+
declare const Header: <T>({ headerGroup, headerSize, onSort, forceHideSettings, rowSelection, setRowSelection, preSettedTableSettings, onChangeTableSettings, notRemovableColumns, isLoading, actionColumnWidth, fixedWidthCells, columnsBreakpointWidth, }: HeaderProps<T>) => JSX.Element;
|
22
24
|
export default Header;
|
@@ -15,6 +15,8 @@ interface HeaderCellProps<T> {
|
|
15
15
|
onChangeTableSettings?: onChangeTableSettings;
|
16
16
|
isLoading: boolean;
|
17
17
|
actionColumnWidth: number;
|
18
|
+
fixedWidthCells: boolean;
|
19
|
+
columnsBreakpointWidth: string;
|
18
20
|
}
|
19
|
-
declare const HeaderCell: <T>({ header, headerSize, onSort, customSorted, setCustomSorted, forceHideSettings, rowSelection, setRowSelection, notRemovableColumns, dimensionRow, onChangeTableSettings, isLoading, actionColumnWidth, }: HeaderCellProps<T>) => JSX.Element;
|
21
|
+
declare const HeaderCell: <T>({ header, headerSize, onSort, customSorted, setCustomSorted, forceHideSettings, rowSelection, setRowSelection, notRemovableColumns, dimensionRow, onChangeTableSettings, isLoading, actionColumnWidth, fixedWidthCells, columnsBreakpointWidth, }: HeaderCellProps<T>) => JSX.Element;
|
20
22
|
export default HeaderCell;
|
@@ -6,6 +6,9 @@ export declare const Th: import("styled-components").StyledComponent<"div", impo
|
|
6
6
|
maxWidth?: number | undefined;
|
7
7
|
sortable: boolean;
|
8
8
|
isActionColumn: boolean;
|
9
|
+
isCheckboxColumn: boolean;
|
10
|
+
fixedWidthCells: boolean;
|
11
|
+
columnsBreakpointWidth: string;
|
9
12
|
}, never>;
|
10
13
|
export declare const TextHeaderCellWrapper: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
|
11
14
|
export declare const ActionCell: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
@@ -9,6 +9,8 @@ interface TrProps<T> extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLTa
|
|
9
9
|
isRowHighlighted: boolean;
|
10
10
|
rowHighlightColor?: TableProps<T>['rowHighlightColor'];
|
11
11
|
actionColumnWidth: number;
|
12
|
+
fixedWidthCells: boolean;
|
13
|
+
columnsBreakpointWidth: string;
|
12
14
|
}
|
13
|
-
declare const Tr: <T>({ row, isLoading, onRowClick, isRowHighlighted, rowHighlightColor, defaultRowSize, actionColumnWidth, }: TrProps<T>) => JSX.Element;
|
15
|
+
declare const Tr: <T>({ row, isLoading, onRowClick, isRowHighlighted, rowHighlightColor, defaultRowSize, actionColumnWidth, fixedWidthCells, columnsBreakpointWidth, }: TrProps<T>) => JSX.Element;
|
14
16
|
export default Tr;
|
@@ -4,3 +4,4 @@ export declare const ScrollableContent: import("styled-components").StyledCompon
|
|
4
4
|
export declare const TableWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
5
5
|
export declare const SortIndicator: import("styled-components").StyledComponent<({ onClick, isDisabled, ...props }: import("../icon").IconProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
|
6
6
|
export declare const PaginationContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
7
|
+
export declare const HeaderBodyWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
@@ -52,8 +52,9 @@ export interface TableProps<T> {
|
|
52
52
|
notRemovableColumns?: string[];
|
53
53
|
onChangeTableSettings?: onChangeTableSettings;
|
54
54
|
actionColumnWidth?: number;
|
55
|
-
disableScrollX?: boolean;
|
56
55
|
resetPageIndex?: boolean;
|
56
|
+
columnsBreakpointWidth?: string;
|
57
|
+
tableBreakpoint?: number;
|
57
58
|
}
|
58
59
|
export declare type onChangeTableSettings = (key: keyof PreSettedTableSettings, valueChange: Pick<PreSettedTableSettings, 'orderColumns' | 'dimensionRow' | 'notVisibleColumns'>) => void;
|
59
60
|
export interface PreSettedTableSettings {
|
package/dist/index.css
CHANGED
@@ -1,128 +1,154 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
display: -ms-flexbox;
|
5
|
-
display: flex;
|
6
|
-
-webkit-box-orient: vertical;
|
7
|
-
-webkit-box-direction: normal;
|
8
|
-
-ms-flex-direction: column;
|
9
|
-
flex-direction: column;
|
10
|
-
overflow: hidden;
|
1
|
+
:root {
|
2
|
+
--columns-breakpoint-width: 100px; /* default value */
|
3
|
+
--table-breakpoint: px100; /* relates to TableBreakpoints enum */
|
11
4
|
}
|
12
5
|
|
13
|
-
.
|
14
|
-
|
15
|
-
|
16
|
-
flex: 1;
|
17
|
-
display: -webkit-box;
|
18
|
-
display: -ms-flexbox;
|
19
|
-
display: flex;
|
20
|
-
-webkit-box-orient: vertical;
|
21
|
-
-webkit-box-direction: normal;
|
22
|
-
-ms-flex-direction: column;
|
23
|
-
flex-direction: column;
|
24
|
-
-webkit-box-align: stretch;
|
25
|
-
-ms-flex-align: stretch;
|
26
|
-
align-items: stretch;
|
27
|
-
width: 100%;
|
28
|
-
border-collapse: collapse;
|
29
|
-
overflow-x: auto;
|
30
|
-
overflow-y: hidden;
|
6
|
+
.Table-container {
|
7
|
+
container-type: inline-size;
|
8
|
+
container-name: var(--table-breakpoint);
|
31
9
|
}
|
32
10
|
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
display: flex;
|
40
|
-
-webkit-box-orient: vertical;
|
41
|
-
-webkit-box-direction: normal;
|
42
|
-
-ms-flex-direction: column;
|
43
|
-
flex-direction: column;
|
44
|
-
-webkit-user-select: none;
|
45
|
-
-moz-user-select: none;
|
46
|
-
-ms-user-select: none;
|
47
|
-
user-select: none;
|
48
|
-
cursor: default;
|
49
|
-
}
|
11
|
+
/* width breakpoints corresponds to TableBreakpoints enum */
|
12
|
+
@container px100 (width < 100px) {
|
13
|
+
.DS-rt-th:not(.DS-header-tour-checkbox, .DS-header-row-actions) {
|
14
|
+
min-width: var(--columns-breakpoint-width);
|
15
|
+
max-width: var(--columns-breakpoint-width);
|
16
|
+
}
|
50
17
|
|
51
|
-
.DS-
|
52
|
-
|
18
|
+
.DS-rt-td:not(.DS-tour-checkbox, .DS-row-actions) {
|
19
|
+
min-width: var(--columns-breakpoint-width);
|
20
|
+
max-width: var(--columns-breakpoint-width);
|
21
|
+
}
|
53
22
|
}
|
54
|
-
|
55
|
-
|
56
|
-
|
23
|
+
|
24
|
+
@container px200 (width < 200px) {
|
25
|
+
.DS-rt-th:not(.DS-header-tour-checkbox, .DS-header-row-actions) {
|
26
|
+
min-width: var(--columns-breakpoint-width);
|
27
|
+
max-width: var(--columns-breakpoint-width);
|
28
|
+
}
|
29
|
+
|
30
|
+
.DS-rt-td:not(.DS-tour-checkbox, .DS-row-actions) {
|
31
|
+
min-width: var(--columns-breakpoint-width);
|
32
|
+
max-width: var(--columns-breakpoint-width);
|
33
|
+
}
|
57
34
|
}
|
58
35
|
|
59
|
-
|
60
|
-
|
36
|
+
@container px300 (width < 300px) {
|
37
|
+
.DS-rt-th:not(.DS-header-tour-checkbox, .DS-header-row-actions) {
|
38
|
+
min-width: var(--columns-breakpoint-width);
|
39
|
+
max-width: var(--columns-breakpoint-width);
|
40
|
+
}
|
41
|
+
|
42
|
+
.DS-rt-td:not(.DS-tour-checkbox, .DS-row-actions) {
|
43
|
+
min-width: var(--columns-breakpoint-width);
|
44
|
+
max-width: var(--columns-breakpoint-width);
|
45
|
+
}
|
61
46
|
}
|
62
|
-
|
63
|
-
|
64
|
-
|
47
|
+
|
48
|
+
@container px400 (width < 400px) {
|
49
|
+
.DS-rt-th:not(.DS-header-tour-checkbox, .DS-header-row-actions) {
|
50
|
+
min-width: var(--columns-breakpoint-width);
|
51
|
+
max-width: var(--columns-breakpoint-width);
|
52
|
+
}
|
53
|
+
|
54
|
+
.DS-rt-td:not(.DS-tour-checkbox, .DS-row-actions) {
|
55
|
+
min-width: var(--columns-breakpoint-width);
|
56
|
+
max-width: var(--columns-breakpoint-width);
|
57
|
+
}
|
65
58
|
}
|
66
59
|
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
60
|
+
@container px500 (width < 500px) {
|
61
|
+
.DS-rt-th:not(.DS-header-tour-checkbox, .DS-header-row-actions) {
|
62
|
+
min-width: var(--columns-breakpoint-width);
|
63
|
+
max-width: var(--columns-breakpoint-width);
|
64
|
+
}
|
65
|
+
|
66
|
+
.DS-rt-td:not(.DS-tour-checkbox, .DS-row-actions) {
|
67
|
+
min-width: var(--columns-breakpoint-width);
|
68
|
+
max-width: var(--columns-breakpoint-width);
|
69
|
+
}
|
71
70
|
}
|
72
71
|
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
72
|
+
@container px600 (width < 600px) {
|
73
|
+
.DS-rt-th:not(.DS-header-tour-checkbox, .DS-header-row-actions) {
|
74
|
+
min-width: var(--columns-breakpoint-width);
|
75
|
+
max-width: var(--columns-breakpoint-width);
|
76
|
+
}
|
77
|
+
|
78
|
+
.DS-rt-td:not(.DS-tour-checkbox, .DS-row-actions) {
|
79
|
+
min-width: var(--columns-breakpoint-width);
|
80
|
+
max-width: var(--columns-breakpoint-width);
|
81
|
+
}
|
77
82
|
}
|
78
83
|
|
79
|
-
|
80
|
-
|
84
|
+
@container px700 (width < 700px) {
|
85
|
+
.DS-rt-th:not(.DS-header-tour-checkbox, .DS-header-row-actions) {
|
86
|
+
min-width: var(--columns-breakpoint-width);
|
87
|
+
max-width: var(--columns-breakpoint-width);
|
88
|
+
}
|
89
|
+
|
90
|
+
.DS-rt-td:not(.DS-tour-checkbox, .DS-row-actions) {
|
91
|
+
min-width: var(--columns-breakpoint-width);
|
92
|
+
max-width: var(--columns-breakpoint-width);
|
93
|
+
}
|
81
94
|
}
|
82
95
|
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
flex-direction: column;
|
94
|
-
-webkit-box-align: stretch;
|
95
|
-
-ms-flex-align: stretch;
|
96
|
-
align-items: stretch;
|
97
|
-
cursor: pointer;
|
96
|
+
@container px800 (width < 800px) {
|
97
|
+
.DS-rt-th:not(.DS-header-tour-checkbox, .DS-header-row-actions) {
|
98
|
+
min-width: var(--columns-breakpoint-width);
|
99
|
+
max-width: var(--columns-breakpoint-width);
|
100
|
+
}
|
101
|
+
|
102
|
+
.DS-rt-td:not(.DS-tour-checkbox, .DS-row-actions) {
|
103
|
+
min-width: var(--columns-breakpoint-width);
|
104
|
+
max-width: var(--columns-breakpoint-width);
|
105
|
+
}
|
98
106
|
}
|
99
107
|
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
+
@container px900 (width < 900px) {
|
109
|
+
.DS-rt-th:not(.DS-header-tour-checkbox, .DS-header-row-actions) {
|
110
|
+
min-width: var(--columns-breakpoint-width);
|
111
|
+
max-width: var(--columns-breakpoint-width);
|
112
|
+
}
|
113
|
+
|
114
|
+
.DS-rt-td:not(.DS-tour-checkbox, .DS-row-actions) {
|
115
|
+
min-width: var(--columns-breakpoint-width);
|
116
|
+
max-width: var(--columns-breakpoint-width);
|
117
|
+
}
|
108
118
|
}
|
109
119
|
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
120
|
+
@container px1000 (width < 1000px) {
|
121
|
+
.DS-rt-th:not(.DS-header-tour-checkbox, .DS-header-row-actions) {
|
122
|
+
min-width: var(--columns-breakpoint-width);
|
123
|
+
max-width: var(--columns-breakpoint-width);
|
124
|
+
}
|
125
|
+
|
126
|
+
.DS-rt-td:not(.DS-tour-checkbox, .DS-row-actions) {
|
127
|
+
min-width: var(--columns-breakpoint-width);
|
128
|
+
max-width: var(--columns-breakpoint-width);
|
129
|
+
}
|
118
130
|
}
|
119
131
|
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
132
|
+
@container px1100 (width < 1100px) {
|
133
|
+
.DS-rt-th:not(.DS-header-tour-checkbox, .DS-header-row-actions) {
|
134
|
+
min-width: var(--columns-breakpoint-width);
|
135
|
+
max-width: var(--columns-breakpoint-width);
|
136
|
+
}
|
137
|
+
|
138
|
+
.DS-rt-td:not(.DS-tour-checkbox, .DS-row-actions) {
|
139
|
+
min-width: var(--columns-breakpoint-width);
|
140
|
+
max-width: var(--columns-breakpoint-width);
|
141
|
+
}
|
128
142
|
}
|
143
|
+
|
144
|
+
@container px1200 (width < 1200px) {
|
145
|
+
.DS-rt-th:not(.DS-header-tour-checkbox, .DS-header-row-actions) {
|
146
|
+
min-width: var(--columns-breakpoint-width);
|
147
|
+
max-width: var(--columns-breakpoint-width);
|
148
|
+
}
|
149
|
+
|
150
|
+
.DS-rt-td:not(.DS-tour-checkbox, .DS-row-actions) {
|
151
|
+
min-width: var(--columns-breakpoint-width);
|
152
|
+
max-width: var(--columns-breakpoint-width);
|
153
|
+
}
|
154
|
+
}
|
package/dist/index.d.ts
CHANGED
@@ -49,6 +49,7 @@ export { ThemeProvider } from './components/themeProvider';
|
|
49
49
|
export { ShortcutTip, ShortcutTipProps, Tip, TipPalette, TipProps, TipType } from './components/tip';
|
50
50
|
export { Toast, ToastPalette, toastPalette, ToastProps, ToastType } from './components/toast';
|
51
51
|
export { Tooltip, TooltipPalette, TooltipProps } from './components/tooltip';
|
52
|
+
export { Carousel } from './components/carousel';
|
52
53
|
export * from './components/verticalTabs';
|
53
54
|
export { autocompleteYellow } from './styles/defaultPalette/colors/others';
|
54
55
|
export { Theme } from './styles/theme';
|