@orfium/ictinus 5.7.1 → 5.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +7493 -6862
- package/dist/index.umd.cjs +85 -56
- package/dist/src/components/Avatar/Avatar.stories.d.ts +0 -1
- package/dist/src/components/Avatar/Avatar.style.d.ts +1 -1
- package/dist/src/components/Avatar/AvatarStack.stories.d.ts +0 -1
- package/dist/src/components/Box/Box.stories.d.ts +0 -1
- package/dist/src/components/Box/Box.style.d.ts +1 -2
- package/dist/src/components/Breadcrumb/BreadcrumbItem/BreadcrumbItem.style.d.ts +1 -1
- package/dist/src/components/Button/Button.d.ts +3 -3
- package/dist/src/components/Button/Button.stories.d.ts +2 -3
- package/dist/src/components/ButtonBase/ButtonBase.d.ts +1 -1
- package/dist/src/components/ButtonBase/ButtonBase.style.d.ts +2 -2
- package/dist/src/components/ButtonBase/constants.d.ts +1 -1
- package/dist/src/components/Card/Card.stories.d.ts +0 -1
- package/dist/src/components/Controls/CheckBox/CheckBox.stories.d.ts +0 -1
- package/dist/src/components/Controls/CheckBox/CheckBox.style.d.ts +1 -1
- package/dist/src/components/Controls/ControlLabel/ControlLabel.style.d.ts +1 -1
- package/dist/src/components/Controls/Radio/Radio.style.d.ts +1 -1
- package/dist/src/components/Controls/Switch/Switch.style.d.ts +1 -1
- package/dist/src/components/DatePicker/DatePickInput/DatePickInput.d.ts +1 -1
- package/dist/src/components/DatePicker/DatePicker.stories.d.ts +0 -1
- package/dist/src/components/DatePicker/DatePicker.types.d.ts +2 -0
- package/dist/src/components/DatePicker/Month/Month.utils.d.ts +1 -1
- package/dist/src/components/DatePicker/OverlayComponent/components/MonthWrapper/MonthWrapper.style.d.ts +1 -1
- package/dist/src/components/Drawer/Drawer.d.ts +2 -2
- package/dist/src/components/Drawer/Drawer.stories.d.ts +2 -3
- package/dist/src/components/Drawer/Drawer.style.d.ts +3 -3
- package/dist/src/components/Drawer/components/DrawerContent/hooks/useDrawerContentObserver.d.ts +0 -1
- package/dist/src/components/DropdownButton/DropdownButton.stories.d.ts +1 -2
- package/dist/src/components/Filter/components/FilterButton/FilterButton.style.d.ts +2 -2
- package/dist/src/components/Filter/hooks/useFilterWithSelectionUtils.d.ts +1 -1
- package/dist/src/components/Icon/Icon.stories.d.ts +0 -1
- package/dist/src/components/Icon/Icon.style.d.ts +2 -2
- package/dist/src/components/IconButton/IconButton.stories.d.ts +0 -1
- package/dist/src/components/Label/Label.d.ts +1 -1
- package/dist/src/components/Label/Label.style.d.ts +1 -1
- package/dist/src/components/Link/Link.d.ts +1 -1
- package/dist/src/components/Link/Link.stories.d.ts +1 -2
- package/dist/src/components/Link/Link.style.d.ts +1 -1
- package/dist/src/components/List/components/ListItemWrapper/ListItemWrapper.style.d.ts +2 -2
- package/dist/src/components/List/stories/List.stories.d.ts +0 -1
- package/dist/src/components/List/stories/ListItemText.stories.d.ts +0 -1
- package/dist/src/components/List/types.d.ts +1 -1
- package/dist/src/components/List/utils.d.ts +1 -1
- package/dist/src/components/Menu/Menu.d.ts +4 -1
- package/dist/src/components/Menu/Menu.stories.d.ts +8 -0
- package/dist/src/components/Modal/Modal.style.d.ts +1 -1
- package/dist/src/components/Navigation/Navigation.stories.d.ts +0 -1
- package/dist/src/components/Notification/Notification.stories.d.ts +0 -1
- package/dist/src/components/NumberField/NumberField.stories.d.ts +0 -1
- package/dist/src/components/ProgressIndicator/ProgressIndicator.d.ts +1 -1
- package/dist/src/components/ProgressIndicator/ProgressIndicator.stories.d.ts +1 -2
- package/dist/src/components/ProgressIndicator/components/ProgressBar/ProgressBar.style.d.ts +3 -3
- package/dist/src/components/Search/Search.stories.d.ts +0 -1
- package/dist/src/components/Search/Search.style.d.ts +9 -9
- package/dist/src/components/Select/Select.stories.d.ts +0 -1
- package/dist/src/components/Select/components/SelectMenu/SelectMenu.d.ts +1 -1
- package/dist/src/components/Select/components/SelectMenu/SelectMenu.style.d.ts +2 -2
- package/dist/src/components/Slider/Slider.stories.d.ts +0 -1
- package/dist/src/components/Slider/Slider.style.d.ts +3 -4
- package/dist/src/components/Slider/components/SliderMark/SliderMark.style.d.ts +2 -2
- package/dist/src/components/Slider/components/SliderThumb/SliderThumb.style.d.ts +1 -1
- package/dist/src/components/Slider/components/SliderTrack/SliderTrack.style.d.ts +1 -1
- package/dist/src/components/Table/Table.d.ts +3 -68
- package/dist/src/components/Table/Table.style.d.ts +6 -5
- package/dist/src/components/Table/components/TBody/TBody.d.ts +15 -0
- package/dist/src/components/Table/components/TBody/TBody.stories.d.ts +16 -0
- package/dist/src/components/Table/components/TBody/TBody.style.d.ts +6 -0
- package/dist/src/components/Table/components/TBody/index.d.ts +1 -0
- package/dist/src/components/Table/components/TD/TD.d.ts +24 -0
- package/dist/src/components/Table/components/TD/TD.stories.d.ts +22 -0
- package/dist/src/components/Table/components/TD/TD.style.d.ts +14 -0
- package/dist/src/components/Table/components/TD/index.d.ts +1 -0
- package/dist/src/components/Table/components/TH/TH.d.ts +29 -0
- package/dist/src/components/Table/components/TH/TH.stories.d.ts +25 -0
- package/dist/src/components/Table/components/TH/TH.style.d.ts +15 -0
- package/dist/src/components/Table/components/TH/components/SortingButton/SortingButton.d.ts +15 -0
- package/dist/src/components/Table/components/TH/components/SortingButton/SortingButton.style.d.ts +4 -0
- package/dist/src/components/Table/components/TH/components/SortingButton/index.d.ts +1 -0
- package/dist/src/components/Table/components/TH/components/THOptions/THOptions.d.ts +13 -0
- package/dist/src/components/Table/components/TH/components/THOptions/THOptions.style.d.ts +3 -0
- package/dist/src/components/Table/components/TH/components/THOptions/components/SortingOption.d.ts +8 -0
- package/dist/src/components/Table/components/TH/components/THOptions/components/index.d.ts +1 -0
- package/dist/src/components/Table/components/TH/components/THOptions/index.d.ts +1 -0
- package/dist/src/components/Table/components/TH/components/index.d.ts +1 -0
- package/dist/src/components/Table/components/TH/index.d.ts +1 -0
- package/dist/src/components/Table/components/THead/THead.d.ts +12 -0
- package/dist/src/components/Table/components/THead/THead.stories.d.ts +13 -0
- package/dist/src/components/Table/components/THead/THead.style.d.ts +7 -0
- package/dist/src/components/Table/components/THead/index.d.ts +1 -0
- package/dist/src/components/Table/components/TPagination/TPagination.d.ts +9 -0
- package/dist/src/components/Table/components/TPagination/TPagination.style.d.ts +8 -0
- package/dist/src/components/Table/components/TPagination/index.d.ts +1 -0
- package/dist/src/components/Table/components/TR/TR.d.ts +17 -0
- package/dist/src/components/Table/components/TR/TR.stories.d.ts +13 -0
- package/dist/src/components/Table/components/TR/TR.style.d.ts +5 -0
- package/dist/src/components/Table/components/TR/index.d.ts +1 -0
- package/dist/src/components/Table/components/TTitle/TTitle.d.ts +12 -0
- package/dist/src/components/Table/components/TTitle/TTitle.stories.d.ts +16 -0
- package/dist/src/components/Table/components/TTitle/TTitle.style.d.ts +5 -0
- package/dist/src/components/Table/components/TTitle/components/ColumnChooser/ColumnChooser.d.ts +11 -0
- package/dist/src/components/Table/components/TTitle/components/ColumnChooser/ColumnChooser.style.d.ts +3 -0
- package/dist/src/components/Table/components/TTitle/components/ColumnChooser/index.d.ts +1 -0
- package/dist/src/components/Table/components/TTitle/components/utils.d.ts +1 -0
- package/dist/src/components/Table/components/TTitle/index.d.ts +1 -0
- package/dist/src/components/Table/components/index.d.ts +7 -0
- package/dist/src/components/Table/constants.d.ts +35 -0
- package/dist/src/components/Table/docs/Basics/Basics.stories.d.ts +14 -0
- package/dist/src/components/Table/docs/Columns/Columns.stories.d.ts +63 -0
- package/dist/src/components/Table/docs/Header/Header.stories.d.ts +22 -0
- package/dist/src/components/Table/docs/Pagination/Pagination.stories.d.ts +29 -0
- package/dist/src/components/Table/docs/RowsAndCells/RowsAndCells.stories.d.ts +73 -0
- package/dist/src/components/Table/docs/Showcase/Showcase.stories.d.ts +86 -0
- package/dist/src/components/Table/hooks/index.d.ts +1 -0
- package/dist/src/components/Table/hooks/useTable.d.ts +23 -0
- package/dist/src/components/Table/hooks/useTable.stories.d.ts +13 -0
- package/dist/src/components/Table/index.d.ts +4 -1
- package/dist/src/components/Table/types.d.ts +109 -13
- package/dist/src/components/Table/utils/TableStoryComponents.d.ts +12 -8
- package/dist/src/components/{Table → TableV4}/TableRowContext.d.ts +1 -1
- package/dist/src/components/TableV4/TableV4.d.ts +70 -0
- package/dist/src/components/{Table/Table.stories.d.ts → TableV4/TableV4.stories.d.ts} +1 -2
- package/dist/src/components/TableV4/TableV4.style.d.ts +6 -0
- package/dist/src/components/{Table → TableV4}/components/RenderRowOrNestedRow/RenderRowOrNestedRow.d.ts +3 -2
- package/dist/src/components/{Table → TableV4}/components/RenderRowOrNestedRow/components/ContentCell/ContentCell.d.ts +1 -1
- package/dist/src/components/{Table → TableV4}/components/TableCell/utils.d.ts +1 -1
- package/dist/src/components/{Table → TableV4}/components/TableRowWrapper/TableRowWrapper.d.ts +3 -2
- package/dist/src/components/TableV4/index.d.ts +3 -0
- package/dist/src/components/TableV4/types.d.ts +18 -0
- package/dist/src/components/TableV4/utils/TableStoryComponents.d.ts +10 -0
- package/dist/src/components/Tag/Tag.stories.d.ts +0 -1
- package/dist/src/components/Tag/Tag.style.d.ts +1 -1
- package/dist/src/components/Tag/hooks/useGetTagUtils.d.ts +1 -1
- package/dist/src/components/TextArea/TextArea.stories.d.ts +0 -1
- package/dist/src/components/TextArea/TextArea.style.d.ts +1 -1
- package/dist/src/components/TextField/TextField.stories.d.ts +0 -1
- package/dist/src/components/TextField/TextField.style.d.ts +5 -2
- package/dist/src/components/TextInputBase/TextInputBase.d.ts +1 -2
- package/dist/src/components/ThemeProvider/ThemeProvider.d.ts +1 -1
- package/dist/src/components/Tooltip/Tooltip.stories.d.ts +0 -1
- package/dist/src/components/Tooltip/Tooltip.style.d.ts +1 -1
- package/dist/src/components/Tooltip/Tooltip.types.d.ts +2 -1
- package/dist/src/components/TopAppBar/TopAppBar.stories.d.ts +0 -1
- package/dist/src/components/TruncatedContent/TruncatedContent.style.d.ts +1 -2
- package/dist/src/components/Typography/Typography.stories.d.ts +0 -1
- package/dist/src/components/storyUtils/TooltipShowcase/TooltipShowcase.d.ts +1 -1
- package/dist/src/components/utils/PositionInScreen/PositionInScreen.d.ts +1 -0
- package/dist/src/components/utils/PositionInScreen/hooks.d.ts +1 -1
- package/dist/src/index.d.ts +4 -0
- package/dist/src/storybook/Tip/Tip.style.d.ts +1 -2
- package/dist/src/utils/date.d.ts +2 -2
- package/package.json +10 -8
- package/dist/style.css +0 -1
- /package/dist/src/components/{Table/Table.test.d.ts → TableV4/TableV4.test.d.ts} +0 -0
- /package/dist/src/components/{Table → TableV4}/components/ExtendedColumnItem/ExtendedColumnItem.d.ts +0 -0
- /package/dist/src/components/{Table → TableV4}/components/ExtendedColumnItem/ExtendedColumnItem.style.d.ts +0 -0
- /package/dist/src/components/{Table → TableV4}/components/ExtendedColumnItem/index.d.ts +0 -0
- /package/dist/src/components/{Table → TableV4}/components/RenderRowOrNestedRow/RenderRowOrNestedRow.style.d.ts +0 -0
- /package/dist/src/components/{Table → TableV4}/components/RenderRowOrNestedRow/components/ContentCell/ContentCell.style.d.ts +0 -0
- /package/dist/src/components/{Table → TableV4}/components/RenderRowOrNestedRow/components/ContentCell/index.d.ts +0 -0
- /package/dist/src/components/{Table → TableV4}/components/RenderRowOrNestedRow/components/ExpandedButtonCell/ExpandedButtonCell.d.ts +0 -0
- /package/dist/src/components/{Table → TableV4}/components/RenderRowOrNestedRow/components/ExpandedButtonCell/index.d.ts +0 -0
- /package/dist/src/components/{Table → TableV4}/components/RenderRowOrNestedRow/index.d.ts +0 -0
- /package/dist/src/components/{Table → TableV4}/components/TableCell/TableCell.d.ts +0 -0
- /package/dist/src/components/{Table → TableV4}/components/TableCell/TableCell.style.d.ts +0 -0
- /package/dist/src/components/{Table → TableV4}/components/TableCell/index.d.ts +0 -0
- /package/dist/src/components/{Table → TableV4}/components/TableRow/TableRow.d.ts +0 -0
- /package/dist/src/components/{Table → TableV4}/components/TableRow/index.d.ts +0 -0
- /package/dist/src/components/{Table → TableV4}/components/TableRowWrapper/index.d.ts +0 -0
- /package/dist/src/components/{Table → TableV4}/utils/index.d.ts +0 -0
- /package/dist/src/components/{Table → TableV4}/utils/utils.d.ts +0 -0
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ExtendedColumn, Sort, SortingOrder } from './types';
|
|
3
|
+
|
|
4
|
+
export type ContentComponent<T> = (data: Cell<T>) => React.ReactNode;
|
|
5
|
+
export type Cell<T> = {
|
|
6
|
+
/** the content of the cell to be displayed. You can pass also custom component. `ContentComponent: (data: Cell<T>) => React.ReactNode`. The type defines that will be a function that returns cell to use cell data. */
|
|
7
|
+
content: number | string | ContentComponent<T>;
|
|
8
|
+
/** the truncated tooltip content, you can override it or it will take the content @default content */
|
|
9
|
+
tooltipContent?: string;
|
|
10
|
+
/** show or not the truncated tooltip @default true if the text is truncated */
|
|
11
|
+
hasTruncatedTooltip?: boolean;
|
|
12
|
+
/** the colSpan of the cell to be displayed */
|
|
13
|
+
colSpan?: number;
|
|
14
|
+
/** the type of the cell to be displayed @default normal */
|
|
15
|
+
type?: 'financial' | 'normal';
|
|
16
|
+
/** the alignment of the cell to be displayed */
|
|
17
|
+
align?: 'left' | 'right';
|
|
18
|
+
/** the width of the cell to be displayed */
|
|
19
|
+
widthPercentage?: number;
|
|
20
|
+
};
|
|
21
|
+
export type Row<T> = {
|
|
22
|
+
/** the id of the row */
|
|
23
|
+
id: string | number;
|
|
24
|
+
/** the cells of the row, see Cell type for each */
|
|
25
|
+
cells: Cell<T>[];
|
|
26
|
+
/** the expanded content of the row, if its expandable */
|
|
27
|
+
expanded?: ({ row, isSelected, isExpanded, }: {
|
|
28
|
+
row: Row<T>;
|
|
29
|
+
isSelected: boolean;
|
|
30
|
+
isExpanded: boolean;
|
|
31
|
+
}) => React.ReactNode;
|
|
32
|
+
rowSpan?: number;
|
|
33
|
+
};
|
|
34
|
+
export type Selection = string | number;
|
|
35
|
+
export type TableType = 'normal' | 'nested-header';
|
|
36
|
+
export type TablePropsV4<T> = {
|
|
37
|
+
/** The data for the table that needs to display. */
|
|
38
|
+
data: Row<T>[];
|
|
39
|
+
/** An array of titles or objects to define columns. */
|
|
40
|
+
columns: (string | ExtendedColumn)[];
|
|
41
|
+
/** Boolean defining if the header is fixed or not. */
|
|
42
|
+
hasFixedHeader?: boolean;
|
|
43
|
+
/** Boolean defining if the CTA's container is fixed or not. */
|
|
44
|
+
hasFixedCTA?: boolean;
|
|
45
|
+
/** Type of the table which determine the headers display. */
|
|
46
|
+
type?: TableType;
|
|
47
|
+
/** Boolean defining the padding all over the table cells and rows. */
|
|
48
|
+
isPadded?: boolean;
|
|
49
|
+
/** Function that once provided on each check will return the selection. */
|
|
50
|
+
onCheck?: (data: Selection[]) => void;
|
|
51
|
+
/** Function that once provided will provide the currently selected sorting configuration */
|
|
52
|
+
onSort?: (column: string, order: SortingOrder) => void;
|
|
53
|
+
/** Initial sorting column and order. Should be provided along with onSort */
|
|
54
|
+
initialSort?: Sort;
|
|
55
|
+
/** If provided sort will only work with this option (asc or desc only). By default supports bidirectional sort*/
|
|
56
|
+
sortDir?: SortingOrder;
|
|
57
|
+
/** Top left text on the table - showing a counter, text etc. */
|
|
58
|
+
topLeftText?: string | React.ReactElement;
|
|
59
|
+
/** Top right area to define a custom component for buttons or other usage. */
|
|
60
|
+
topRightArea?: (data: Row<T>[], selectionData?: Selection[]) => React.ReactNode;
|
|
61
|
+
/** Action cell width for Table with Expandable Rows (in %)*/
|
|
62
|
+
actionWidth?: number;
|
|
63
|
+
/** If true, table's expandable rows will be expanded on initial render. */
|
|
64
|
+
isInitiallyExpanded?: boolean;
|
|
65
|
+
/** Data test id prefix for all th/td elements */
|
|
66
|
+
dataTestIdPrefix?: string;
|
|
67
|
+
};
|
|
68
|
+
declare function TableV4<T>({ data, columns, type, hasFixedHeader, hasFixedCTA, onCheck, isPadded, onSort, initialSort, sortDir, topLeftText, topRightArea, actionWidth, isInitiallyExpanded, dataTestIdPrefix, }: TablePropsV4<T>): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
69
|
+
declare const _default: React.MemoExoticComponent<typeof TableV4>;
|
|
70
|
+
export default _default;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
declare const _default: {
|
|
3
2
|
title: string;
|
|
4
|
-
component: import('react').MemoExoticComponent<(<T>({ data, columns, type, hasFixedHeader, hasFixedCTA, onCheck, isPadded, onSort, initialSort, sortDir, topLeftText, topRightArea, actionWidth, isInitiallyExpanded, dataTestIdPrefix, }: import('./
|
|
3
|
+
component: import('react').MemoExoticComponent<(<T>({ data, columns, type, hasFixedHeader, hasFixedCTA, onCheck, isPadded, onSort, initialSort, sortDir, topLeftText, topRightArea, actionWidth, isInitiallyExpanded, dataTestIdPrefix, }: import('./TableV4').TablePropsV4<T>) => import("@emotion/react/jsx-runtime").JSX.Element)>;
|
|
5
4
|
parameters: {
|
|
6
5
|
design: {
|
|
7
6
|
type: string;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { SerializedStyles } from '@emotion/react';
|
|
2
|
+
import { Theme } from '../../theme';
|
|
3
|
+
|
|
4
|
+
export declare const tableStyle: () => () => SerializedStyles;
|
|
5
|
+
export declare const tableCTAStyle: (isFixed: boolean) => (theme: Theme) => SerializedStyles;
|
|
6
|
+
export declare const tableRowHeadersStyle: (hasExpandableRows: boolean, hasOnCheck: boolean, hasFixedHeader: boolean) => (theme: Theme) => SerializedStyles;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Row } from '../../
|
|
1
|
+
import { Row } from '../../TableV4';
|
|
2
2
|
|
|
3
|
-
declare const
|
|
3
|
+
declare const RenderRowOrNestedRow: {
|
|
4
4
|
<T extends {
|
|
5
5
|
[key: string]: unknown;
|
|
6
6
|
}>({ row, dataTestIdPrefix, rowIndex, isInitiallyExpanded, }: {
|
|
@@ -11,4 +11,5 @@ declare const _default: {
|
|
|
11
11
|
}): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
12
12
|
displayName: string;
|
|
13
13
|
};
|
|
14
|
+
declare const _default: typeof RenderRowOrNestedRow;
|
|
14
15
|
export default _default;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
|
|
3
|
-
export declare const getTestId: (children: ReactNode, component:
|
|
3
|
+
export declare const getTestId: (children: ReactNode, component: "td" | "th", dataTestIdPrefix?: string, rowIndex?: number, index?: string | number) => string;
|
package/dist/src/components/{Table → TableV4}/components/TableRowWrapper/TableRowWrapper.d.ts
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Row, Selection, TableType } from '../../
|
|
1
|
+
import { Row, Selection, TableType } from '../../TableV4';
|
|
2
2
|
|
|
3
3
|
export type TableRowWrapperProps<T> = {
|
|
4
4
|
row: Row<T>;
|
|
@@ -17,5 +17,6 @@ export type TableRowWrapperProps<T> = {
|
|
|
17
17
|
dataTestIdPrefix?: string;
|
|
18
18
|
rowIndex?: number;
|
|
19
19
|
};
|
|
20
|
-
declare const
|
|
20
|
+
declare const TableRowWrapper: <T extends Record<string, unknown>>(props: TableRowWrapperProps<T>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
21
|
+
declare const _default: typeof TableRowWrapper;
|
|
21
22
|
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { TooltipPlacement } from '../Tooltip/Tooltip.types';
|
|
2
|
+
|
|
3
|
+
export type SortingOrder = 'asc' | 'desc';
|
|
4
|
+
export type ExtendedColumn = {
|
|
5
|
+
content: {
|
|
6
|
+
label: string;
|
|
7
|
+
sortingKey: string;
|
|
8
|
+
};
|
|
9
|
+
tooltip?: {
|
|
10
|
+
content: string;
|
|
11
|
+
placement?: TooltipPlacement;
|
|
12
|
+
};
|
|
13
|
+
isSortable?: boolean;
|
|
14
|
+
};
|
|
15
|
+
export type Sort = {
|
|
16
|
+
column: string;
|
|
17
|
+
order: SortingOrder;
|
|
18
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Cell, Row } from '../TableV4';
|
|
3
|
+
import { ExtendedColumn } from '../types';
|
|
4
|
+
|
|
5
|
+
/** This is just a dummy component to be used in Storybook for showing the Row type on props */
|
|
6
|
+
export declare const RowStory: React.FC<Row<unknown>>;
|
|
7
|
+
/** This is just a dummy component to be used in Storybook for showing the Cell type on props */
|
|
8
|
+
export declare const CellStory: React.FC<Cell<unknown>>;
|
|
9
|
+
/** This is just a dummy component to be used in Storybook for showing the ExtendedColumn type on props */
|
|
10
|
+
export declare const ExtendedColumnStory: React.FC<ExtendedColumn>;
|
|
@@ -2,7 +2,7 @@ import { SerializedStyles } from '@emotion/react';
|
|
|
2
2
|
import { TagProps } from './Tag.types';
|
|
3
3
|
import { Theme } from '../../theme';
|
|
4
4
|
|
|
5
|
-
export declare const tagContainerStyles: ({ size, color, isSelectable, isClearable, isSelected, }: Pick<TagProps,
|
|
5
|
+
export declare const tagContainerStyles: ({ size, color, isSelectable, isClearable, isSelected, }: Pick<TagProps, "size" | "color" | "isSelected"> & {
|
|
6
6
|
isSelectable?: boolean;
|
|
7
7
|
isClearable?: boolean;
|
|
8
8
|
}) => (theme: Theme) => SerializedStyles;
|
|
@@ -2,7 +2,7 @@ import { default as React } from 'react';
|
|
|
2
2
|
import { TestProps } from '../../../utils/types';
|
|
3
3
|
import { TagProps } from '../Tag.types';
|
|
4
4
|
|
|
5
|
-
declare const useGetTagUtils: ({ color, iconName, onSelect, onClear, isSelected, dataTestPrefixId, }: Pick<TagProps,
|
|
5
|
+
declare const useGetTagUtils: ({ color, iconName, onSelect, onClear, isSelected, dataTestPrefixId, }: Pick<TagProps, "iconName" | "color" | "onSelect" | "onClear" | "isSelected"> & TestProps) => {
|
|
6
6
|
isSelectable: boolean;
|
|
7
7
|
isClearable: boolean;
|
|
8
8
|
isInteractive: boolean;
|
|
@@ -8,4 +8,4 @@ export declare const sxProp: ({ isResizeEnabled }: Partial<TextAreaProps>) => (t
|
|
|
8
8
|
textField: CSSObject;
|
|
9
9
|
input: CSSObject;
|
|
10
10
|
};
|
|
11
|
-
export declare const hintMessageStyle: ({ isDisabled }: Pick<TextAreaProps,
|
|
11
|
+
export declare const hintMessageStyle: ({ isDisabled }: Pick<TextAreaProps, "isDisabled">) => (theme: Theme) => SerializedStyles;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { SerializedStyles } from '@emotion/react';
|
|
2
2
|
import { Theme } from 'theme';
|
|
3
|
+
import { TextFieldProps } from '.';
|
|
3
4
|
|
|
4
5
|
export declare const iconWrapperStyle: ({ iconPosition, isClickable }: {
|
|
5
|
-
iconPosition?:
|
|
6
|
+
iconPosition?: "left" | "right";
|
|
6
7
|
isClickable?: boolean;
|
|
7
8
|
}) => (theme: Theme) => SerializedStyles;
|
|
8
|
-
export declare const suffixContainerStyle: (isClickable
|
|
9
|
+
export declare const suffixContainerStyle: ({ size, isClickable }: Pick<TextFieldProps, "size"> & {
|
|
10
|
+
isClickable?: boolean;
|
|
11
|
+
}) => () => SerializedStyles;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { CSSObject } from '@emotion/serialize';
|
|
2
2
|
import { default as React } from 'react';
|
|
3
|
-
import { ComponentSizes } from 'types';
|
|
4
|
-
import { TestProps } from '../../utils/types';
|
|
3
|
+
import { ComponentSizes, TestProps } from '../../utils/types';
|
|
5
4
|
import { AcceptedIconNames } from '../Icon';
|
|
6
5
|
|
|
7
6
|
export type TextInputBaseProps = {
|
|
@@ -2,4 +2,4 @@ import { SerializedStyles } from '@emotion/react';
|
|
|
2
2
|
import { TooltipProps } from './Tooltip.types';
|
|
3
3
|
import { Theme } from '../../theme';
|
|
4
4
|
|
|
5
|
-
export declare const tooltipStyle: ({ isInverted, isInteractive, }: Pick<TooltipProps,
|
|
5
|
+
export declare const tooltipStyle: ({ isInverted, isInteractive, }: Pick<TooltipProps, "isInverted" | "isInteractive">) => (theme: Theme) => SerializedStyles;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export type TooltipPlacement = 'top' | 'right' | 'bottom' | 'left';
|
|
3
2
|
export type InteractiveTooltip = {
|
|
4
3
|
isInteractive: true;
|
|
@@ -25,5 +24,7 @@ export type TooltipProps = TooltipContent & {
|
|
|
25
24
|
/** Hide delay for tooltip */
|
|
26
25
|
/** @default 500 */
|
|
27
26
|
delayOut?: number;
|
|
27
|
+
/** The tooltip can be controlled or uncontrolled, this attribute can be used to handle show and hide tooltip outside tooltip */
|
|
28
|
+
isOpen?: boolean;
|
|
28
29
|
children: React.ReactElement;
|
|
29
30
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const TruncationDiv: import('@emotion/styled').StyledComponent<{
|
|
3
2
|
theme?: import('@emotion/react').Theme;
|
|
4
|
-
as?:
|
|
3
|
+
as?: React.ElementType;
|
|
5
4
|
}, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TooltipProps } from '../../Tooltip/Tooltip.types';
|
|
2
2
|
|
|
3
|
-
declare const TooltipShowcase: ({ buttonText, isInverted, delayIn, delayOut, placement, }: Pick<TooltipProps,
|
|
3
|
+
declare const TooltipShowcase: ({ buttonText, isInverted, delayIn, delayOut, placement, }: Pick<TooltipProps, "isInverted" | "delayIn" | "delayOut" | "placement"> & {
|
|
4
4
|
buttonText?: string;
|
|
5
5
|
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
6
6
|
export default TooltipShowcase;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const usePositionInScreen: (parentRef: React.MutableRefObject<any>, itemRef: React.MutableRefObject<any>, offsetX: number, offsetY: number, isVisible?: boolean) => {
|
|
1
|
+
export declare const usePositionInScreen: (parentRef: React.MutableRefObject<any>, itemRef: React.MutableRefObject<any>, offsetX: number, offsetY: number, isVisible?: boolean, placement?: "top" | "bottom") => {
|
|
2
2
|
x: number;
|
|
3
3
|
y: number;
|
|
4
4
|
};
|
package/dist/src/index.d.ts
CHANGED
|
@@ -87,6 +87,8 @@ export { Switch } from './components/Controls';
|
|
|
87
87
|
export * from './components/Controls/Switch';
|
|
88
88
|
export { default as Table } from './components/Table';
|
|
89
89
|
export * from './components/Table';
|
|
90
|
+
export { default as TableV4 } from './components/TableV4';
|
|
91
|
+
export * from './components/TableV4';
|
|
90
92
|
export { default as Tag } from './components/Tag';
|
|
91
93
|
export * from './components/Tag';
|
|
92
94
|
export { default as TextField } from './components/TextField';
|
|
@@ -95,6 +97,8 @@ export { default as Search } from './components/Search';
|
|
|
95
97
|
export * from './components/Search';
|
|
96
98
|
export { default as TextArea } from './components/TextArea';
|
|
97
99
|
export * from './components/TextArea';
|
|
100
|
+
export { default as NumberField } from './components/NumberField';
|
|
101
|
+
export * from './components/NumberField';
|
|
98
102
|
export { default as ThemeProvider } from './components/ThemeProvider';
|
|
99
103
|
export * from './components/ThemeProvider';
|
|
100
104
|
export { default as Toast } from './components/Toast';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const TipWrapper: import('@emotion/styled').StyledComponent<{
|
|
3
2
|
theme?: import('@emotion/react').Theme;
|
|
4
|
-
as?:
|
|
3
|
+
as?: React.ElementType;
|
|
5
4
|
}, import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
package/dist/src/utils/date.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orfium/ictinus",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.8.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.umd.cjs",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -33,7 +33,6 @@
|
|
|
33
33
|
"@emotion/jest": "^11.11.0",
|
|
34
34
|
"@emotion/react": "^11.11.1",
|
|
35
35
|
"@emotion/styled": "^11.11.0",
|
|
36
|
-
"@optimize-lodash/rollup-plugin": "^4.0.4",
|
|
37
36
|
"@semantic-release/changelog": "^6.0.3",
|
|
38
37
|
"@semantic-release/git": "^10.0.1",
|
|
39
38
|
"@storybook/addon-a11y": "^7.6.11",
|
|
@@ -64,7 +63,7 @@
|
|
|
64
63
|
"@testing-library/react-hooks": "^8.0.1",
|
|
65
64
|
"@testing-library/user-event": "^14.5.1",
|
|
66
65
|
"@types/events": "^3.0.0",
|
|
67
|
-
"@types/lodash": "^4.
|
|
66
|
+
"@types/lodash-es": "^4.17.12",
|
|
68
67
|
"@types/pluralize": "^0.0.29",
|
|
69
68
|
"@types/react": "^18.2.21",
|
|
70
69
|
"@types/react-dom": "^18.2.7",
|
|
@@ -117,15 +116,15 @@
|
|
|
117
116
|
},
|
|
118
117
|
"dependencies": {
|
|
119
118
|
"@storybook/addon-controls": "^7.6.17",
|
|
120
|
-
"@
|
|
121
|
-
"dayjs": "^
|
|
119
|
+
"@tanstack/react-table": "^8.15.3",
|
|
120
|
+
"dayjs": "^2.0.0-alpha.4",
|
|
122
121
|
"emotion-reset": "^3.0.1",
|
|
123
122
|
"eslint-plugin-unused-imports": "^3.0.0",
|
|
124
123
|
"jscodeshift": "^0.15.1",
|
|
125
|
-
"lodash": "^4.17.
|
|
124
|
+
"lodash-es": "^4.17.21",
|
|
126
125
|
"patch-package": "^8.0.0",
|
|
127
126
|
"pluralize": "^8.0.0",
|
|
128
|
-
"polished": "^3.
|
|
127
|
+
"polished": "^4.3.1",
|
|
129
128
|
"postinstall-postinstall": "^2.1.0",
|
|
130
129
|
"react-aria": "^3.30.0",
|
|
131
130
|
"react-aria-components": "^1.0.0-rc.0",
|
|
@@ -136,6 +135,7 @@
|
|
|
136
135
|
"react-responsive": "^10.0.0",
|
|
137
136
|
"react-stately": "^3.28.0",
|
|
138
137
|
"react-textarea-autosize": "^8.5.3",
|
|
138
|
+
"react-tooltip": "^5.26.4",
|
|
139
139
|
"react-window": "^1.8.6",
|
|
140
140
|
"recharts": "^2.8.0",
|
|
141
141
|
"tslib": "^2.4.1",
|
|
@@ -179,7 +179,9 @@
|
|
|
179
179
|
"documentation:up": "node server/docs-server.js",
|
|
180
180
|
"chromatic": "chromatic",
|
|
181
181
|
"build-storybook": "yarn build",
|
|
182
|
-
"yalc:push": "yalc publish --push"
|
|
182
|
+
"yalc:push": "yalc publish --push",
|
|
183
|
+
"lint-staged": "lint-staged --verbose",
|
|
184
|
+
"tsc-check": "tsc -p ."
|
|
183
185
|
},
|
|
184
186
|
"keywords": [
|
|
185
187
|
"Orfium",
|
package/dist/style.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}
|
|
File without changes
|
/package/dist/src/components/{Table → TableV4}/components/ExtendedColumnItem/ExtendedColumnItem.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|