@carbon/ibm-products 2.41.1-canary.8 → 2.42.0
Sign up to get free protection for your applications and to get access to all the features.
- package/es/components/CreateFullPage/CreateFullPage.d.ts +2 -1
- package/es/components/CreateFullPage/CreateFullPageStep.d.ts +71 -2
- package/es/components/CreateFullPage/CreateFullPageStep.js +3 -0
- package/es/components/DataSpreadsheet/DataSpreadsheet.d.ts +3 -2
- package/es/components/DataSpreadsheet/DataSpreadsheet.js +28 -28
- package/es/components/DataSpreadsheet/DataSpreadsheetBody.d.ts +7 -8
- package/es/components/DataSpreadsheet/DataSpreadsheetBody.js +1 -0
- package/es/components/DataSpreadsheet/DataSpreadsheetHeader.d.ts +4 -3
- package/es/components/DataSpreadsheet/types/index.d.ts +1 -4
- package/es/components/Datagrid/Datagrid/Datagrid.d.ts +24 -2
- package/es/components/Datagrid/Datagrid/Datagrid.js +4 -4
- package/es/components/Datagrid/Datagrid/DatagridBody.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/DatagridBody.js +1 -2
- package/es/components/Datagrid/Datagrid/DatagridContent.d.ts +16 -13
- package/es/components/Datagrid/Datagrid/DatagridContent.js +12 -13
- package/es/components/Datagrid/Datagrid/DatagridEmptyBody.d.ts +8 -1
- package/es/components/Datagrid/Datagrid/DatagridEmptyBody.js +3 -4
- package/es/components/Datagrid/Datagrid/DatagridExpandedRow.d.ts +9 -1
- package/es/components/Datagrid/Datagrid/DatagridExpandedRow.js +10 -5
- package/es/components/Datagrid/Datagrid/DatagridHead.d.ts +8 -1
- package/es/components/Datagrid/Datagrid/DatagridHead.js +3 -5
- package/es/components/Datagrid/Datagrid/DatagridHeaderRow.d.ts +8 -1
- package/es/components/Datagrid/Datagrid/DatagridHeaderRow.js +41 -36
- package/es/components/Datagrid/Datagrid/DatagridRefBody.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/DatagridRefBody.js +4 -4
- package/es/components/Datagrid/Datagrid/DatagridRow.d.ts +8 -1
- package/es/components/Datagrid/Datagrid/DatagridRow.js +12 -16
- package/es/components/Datagrid/Datagrid/DatagridSelectAll.d.ts +9 -1
- package/es/components/Datagrid/Datagrid/DatagridSelectAll.js +10 -8
- package/es/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.d.ts +23 -27
- package/es/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +9 -9
- package/es/components/Datagrid/Datagrid/DatagridSimpleBody.d.ts +2 -1
- package/es/components/Datagrid/Datagrid/DatagridSimpleBody.js +3 -3
- package/es/components/Datagrid/Datagrid/DatagridToolbar.d.ts +17 -10
- package/es/components/Datagrid/Datagrid/DatagridToolbar.js +15 -11
- package/es/components/Datagrid/Datagrid/DatagridVirtualBody.d.ts +8 -1
- package/es/components/Datagrid/Datagrid/DatagridVirtualBody.js +29 -17
- package/es/components/Datagrid/Datagrid/DraggableElement.d.ts +23 -21
- package/es/components/Datagrid/Datagrid/DraggableElement.js +2 -4
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.d.ts +1 -1
- package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +1 -1
- package/es/components/Datagrid/Datagrid/addons/Slug/DatagridSlug.d.ts +12 -2
- package/es/components/Datagrid/Datagrid/index.d.ts +7 -1
- package/es/components/Datagrid/types/index.d.ts +210 -0
- package/es/components/Datagrid/useColumnOrder.d.ts +1 -0
- package/es/components/Datagrid/useDatagrid.d.ts +1 -1
- package/es/components/Datagrid/useFocusRowExpander.js +1 -1
- package/es/components/Datagrid/useInfiniteScroll.d.ts +8 -1
- package/es/components/Datagrid/useInfiniteScroll.js +10 -9
- package/es/components/Datagrid/useSelectRows.js +5 -1
- package/es/components/EditUpdateCards/EditUpdateCards.d.ts +4 -3
- package/es/components/FilterSummary/FilterSummary.d.ts +21 -2
- package/es/components/FilterSummary/FilterSummary.js +10 -11
- package/es/components/Guidebanner/Guidebanner.js +7 -2
- package/es/components/ProductiveCard/ProductiveCard.d.ts +115 -2
- package/es/components/ProductiveCard/ProductiveCard.js +9 -9
- package/es/components/WebTerminal/WebTerminal.js +1 -1
- package/es/global/js/hooks/usePreviousValue.d.ts +1 -1
- package/es/global/js/hooks/usePreviousValue.js +3 -2
- package/es/global/js/hooks/useRetrieveStepData.d.ts +5 -5
- package/es/global/js/hooks/useRetrieveStepData.js +5 -5
- package/lib/components/CreateFullPage/CreateFullPage.d.ts +2 -1
- package/lib/components/CreateFullPage/CreateFullPageStep.d.ts +71 -2
- package/lib/components/CreateFullPage/CreateFullPageStep.js +3 -0
- package/lib/components/DataSpreadsheet/DataSpreadsheet.d.ts +3 -2
- package/lib/components/DataSpreadsheet/DataSpreadsheet.js +28 -28
- package/lib/components/DataSpreadsheet/DataSpreadsheetBody.d.ts +7 -8
- package/lib/components/DataSpreadsheet/DataSpreadsheetBody.js +1 -0
- package/lib/components/DataSpreadsheet/DataSpreadsheetHeader.d.ts +4 -3
- package/lib/components/DataSpreadsheet/types/index.d.ts +1 -4
- package/lib/components/Datagrid/Datagrid/Datagrid.d.ts +24 -2
- package/lib/components/Datagrid/Datagrid/Datagrid.js +4 -4
- package/lib/components/Datagrid/Datagrid/DatagridBody.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/DatagridBody.js +1 -2
- package/lib/components/Datagrid/Datagrid/DatagridContent.d.ts +16 -13
- package/lib/components/Datagrid/Datagrid/DatagridContent.js +44 -45
- package/lib/components/Datagrid/Datagrid/DatagridEmptyBody.d.ts +8 -1
- package/lib/components/Datagrid/Datagrid/DatagridEmptyBody.js +3 -4
- package/lib/components/Datagrid/Datagrid/DatagridExpandedRow.d.ts +9 -1
- package/lib/components/Datagrid/Datagrid/DatagridExpandedRow.js +9 -4
- package/lib/components/Datagrid/Datagrid/DatagridHead.d.ts +8 -1
- package/lib/components/Datagrid/Datagrid/DatagridHead.js +3 -5
- package/lib/components/Datagrid/Datagrid/DatagridHeaderRow.d.ts +8 -1
- package/lib/components/Datagrid/Datagrid/DatagridHeaderRow.js +40 -35
- package/lib/components/Datagrid/Datagrid/DatagridRefBody.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/DatagridRefBody.js +4 -4
- package/lib/components/Datagrid/Datagrid/DatagridRow.d.ts +8 -1
- package/lib/components/Datagrid/Datagrid/DatagridRow.js +12 -16
- package/lib/components/Datagrid/Datagrid/DatagridSelectAll.d.ts +9 -1
- package/lib/components/Datagrid/Datagrid/DatagridSelectAll.js +10 -8
- package/lib/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.d.ts +23 -27
- package/lib/components/Datagrid/Datagrid/DatagridSelectAllWithToggle.js +9 -9
- package/lib/components/Datagrid/Datagrid/DatagridSimpleBody.d.ts +2 -1
- package/lib/components/Datagrid/Datagrid/DatagridSimpleBody.js +3 -3
- package/lib/components/Datagrid/Datagrid/DatagridToolbar.d.ts +17 -10
- package/lib/components/Datagrid/Datagrid/DatagridToolbar.js +15 -11
- package/lib/components/Datagrid/Datagrid/DatagridVirtualBody.d.ts +8 -1
- package/lib/components/Datagrid/Datagrid/DatagridVirtualBody.js +29 -17
- package/lib/components/Datagrid/Datagrid/DraggableElement.d.ts +23 -21
- package/lib/components/Datagrid/Datagrid/DraggableElement.js +2 -4
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.d.ts +1 -1
- package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +1 -1
- package/lib/components/Datagrid/Datagrid/addons/Slug/DatagridSlug.d.ts +12 -2
- package/lib/components/Datagrid/Datagrid/index.d.ts +7 -1
- package/lib/components/Datagrid/types/index.d.ts +210 -0
- package/lib/components/Datagrid/useColumnOrder.d.ts +1 -0
- package/lib/components/Datagrid/useDatagrid.d.ts +1 -1
- package/lib/components/Datagrid/useFocusRowExpander.js +1 -1
- package/lib/components/Datagrid/useInfiniteScroll.d.ts +8 -1
- package/lib/components/Datagrid/useInfiniteScroll.js +10 -9
- package/lib/components/Datagrid/useSelectRows.js +5 -1
- package/lib/components/EditUpdateCards/EditUpdateCards.d.ts +4 -3
- package/lib/components/FilterSummary/FilterSummary.d.ts +21 -2
- package/lib/components/FilterSummary/FilterSummary.js +10 -11
- package/lib/components/Guidebanner/Guidebanner.js +7 -2
- package/lib/components/ProductiveCard/ProductiveCard.d.ts +115 -2
- package/lib/components/ProductiveCard/ProductiveCard.js +9 -9
- package/lib/components/WebTerminal/WebTerminal.js +1 -1
- package/lib/global/js/hooks/usePreviousValue.d.ts +1 -1
- package/lib/global/js/hooks/usePreviousValue.js +3 -2
- package/lib/global/js/hooks/useRetrieveStepData.d.ts +5 -5
- package/lib/global/js/hooks/useRetrieveStepData.js +5 -5
- package/package.json +5 -4
- package/telemetry.yml +67 -6
@@ -0,0 +1,210 @@
|
|
1
|
+
/// <reference path="../../../../src/custom-typings/index.d.ts" />
|
2
|
+
import { MultiSelectProps } from '@carbon/react/lib/components/MultiSelect/MultiSelect';
|
3
|
+
import { FormGroupProps } from '@carbon/react/lib/components/FormGroup/FormGroup';
|
4
|
+
import { RadioButtonProps } from '@carbon/react/lib/components/RadioButton/RadioButton';
|
5
|
+
import { RadioButtonGroupProps } from '@carbon/react/lib/components/RadioButtonGroup/RadioButtonGroup';
|
6
|
+
import { CheckboxProps } from '@carbon/react/lib/components/Checkbox';
|
7
|
+
import { NumberInputProps } from '@carbon/react/lib/components/NumberInput/NumberInput';
|
8
|
+
import { CSSProperties, JSXElementConstructor, MutableRefObject, ReactNode, TouchEventHandler } from 'react';
|
9
|
+
import { Cell, ColumnInstance, FilterValue, Filters, HeaderGroup, Row, TableCommonProps, TableDispatch, TableInstance, TableToggleAllRowsSelectedProps, UseExpandedRowProps, UseFiltersInstanceProps, UsePaginationInstanceProps, UseResizeColumnsColumnProps, UseResizeColumnsState, UseRowSelectInstanceProps, UseRowSelectRowProps, UseRowSelectState, UseSortByColumnProps, UseTableHooks } from 'react-table';
|
10
|
+
import { CarbonIconType } from '@carbon/react/icons';
|
11
|
+
import { type ButtonProps } from '@carbon/react';
|
12
|
+
import { TableBatchActionsProps } from '@carbon/react/lib/components/DataTable/TableBatchActions';
|
13
|
+
export type Size = 'xs' | 'sm' | 'md' | 'lg';
|
14
|
+
export interface ResizerProps {
|
15
|
+
draggable?: boolean;
|
16
|
+
onMouseDown?: (evt: any) => void;
|
17
|
+
onTouchStart?: TouchEventHandler<HTMLElement>;
|
18
|
+
role?: string;
|
19
|
+
style?: CSSProperties;
|
20
|
+
}
|
21
|
+
export type DataGridFilter = ({
|
22
|
+
column?: string;
|
23
|
+
} & {
|
24
|
+
type: 'date';
|
25
|
+
props: {
|
26
|
+
DatePicker?: any;
|
27
|
+
DatePickerInput?: any;
|
28
|
+
};
|
29
|
+
}) | {
|
30
|
+
type: 'number';
|
31
|
+
props: {
|
32
|
+
NumberInput?: NumberInputProps;
|
33
|
+
};
|
34
|
+
} | {
|
35
|
+
type: 'checkbox';
|
36
|
+
props: {
|
37
|
+
FormGroup?: FormGroupProps;
|
38
|
+
Checkbox?: CheckboxProps[];
|
39
|
+
};
|
40
|
+
} | {
|
41
|
+
type: 'radio';
|
42
|
+
props: {
|
43
|
+
FormGroup?: FormGroupProps;
|
44
|
+
RadioButton?: RadioButtonProps[];
|
45
|
+
RadioButtonGroup?: RadioButtonGroupProps;
|
46
|
+
};
|
47
|
+
} | {
|
48
|
+
type: 'multiSelect';
|
49
|
+
props: {
|
50
|
+
MultiSelect?: MultiSelectProps<any>;
|
51
|
+
};
|
52
|
+
};
|
53
|
+
export interface ReactTableFiltersState {
|
54
|
+
id: string;
|
55
|
+
type: string;
|
56
|
+
value: string;
|
57
|
+
}
|
58
|
+
interface Labels {
|
59
|
+
allPageRows?: object;
|
60
|
+
allRows?: object;
|
61
|
+
}
|
62
|
+
interface Section {
|
63
|
+
categoryTitle?: string;
|
64
|
+
filters?: DataGridFilter[];
|
65
|
+
}
|
66
|
+
export interface FilterFlyoutProps {
|
67
|
+
data?: any;
|
68
|
+
filters?: DataGridFilter[];
|
69
|
+
flyoutIconDescription?: string;
|
70
|
+
onFlyoutClose?: () => void;
|
71
|
+
onFlyoutOpen?: () => void;
|
72
|
+
panelIconDescription?: string;
|
73
|
+
primaryActionLabel?: string;
|
74
|
+
reactTableFiltersState?: ReactTableFiltersState[];
|
75
|
+
renderLabel?: () => void;
|
76
|
+
secondaryActionLabel?: string;
|
77
|
+
updateMethod?: string;
|
78
|
+
variation?: string;
|
79
|
+
panelTitle?: string;
|
80
|
+
sections?: Section[];
|
81
|
+
autoHideFilters: boolean;
|
82
|
+
}
|
83
|
+
export interface DataGridToggleAllRowsProps extends TableToggleAllRowsSelectedProps {
|
84
|
+
disabled?: boolean;
|
85
|
+
}
|
86
|
+
export interface DatagridTableHooks<T extends object = any> extends UseTableHooks<T> {
|
87
|
+
}
|
88
|
+
export interface DatagridColumn<T extends object = any> extends ColumnInstance<T> {
|
89
|
+
sticky?: 'left' | 'right';
|
90
|
+
className?: string;
|
91
|
+
}
|
92
|
+
export interface DataGridCell<T extends object = any> extends Omit<Cell<T>, 'column'> {
|
93
|
+
column: DatagridColumn<any>;
|
94
|
+
}
|
95
|
+
export interface DatagridRow<T extends object = any> extends Omit<Row<T>, 'cells'>, UseExpandedRowProps<T>, UseRowSelectRowProps<T> {
|
96
|
+
expandedContentHeight?: number;
|
97
|
+
RowRenderer?: (state?: DataGridState) => ReactNode;
|
98
|
+
RowExpansionRenderer?: (state?: DataGridState) => void;
|
99
|
+
cells: Array<DataGridCell>;
|
100
|
+
isSkeleton?: boolean;
|
101
|
+
}
|
102
|
+
export interface DataGridHeader<T extends object = any> extends ColumnInstance, UseResizeColumnsColumnProps<T>, UseSortByColumnProps<T> {
|
103
|
+
className(className: any, arg1: {
|
104
|
+
[x: string]: any;
|
105
|
+
}): unknown;
|
106
|
+
isAction?: boolean;
|
107
|
+
slug?: any;
|
108
|
+
}
|
109
|
+
export interface DataGridHeaderGroup<T extends object = any> extends HeaderGroup<T>, UseResizeColumnsColumnProps<T> {
|
110
|
+
}
|
111
|
+
export interface TableProps {
|
112
|
+
className?: string;
|
113
|
+
role?: string;
|
114
|
+
style?: CSSStyleDeclaration;
|
115
|
+
}
|
116
|
+
interface DataGridTableState extends UseResizeColumnsState<any>, UseRowSelectState<any> {
|
117
|
+
filters: Filters<DataGridFilter>;
|
118
|
+
}
|
119
|
+
export interface DataGridTableInstance<T extends object = any> extends TableInstance<T> {
|
120
|
+
}
|
121
|
+
export interface DataGridState<T extends object = any> extends TableCommonProps, UsePaginationInstanceProps<T>, Omit<TableInstance<T>, 'state' | 'headers' | 'rows' | 'columns'>, Omit<UseFiltersInstanceProps<T>, 'rows'>, UseRowSelectInstanceProps<T>, Pick<UseRowSelectInstanceProps<T>, 'toggleAllRowsSelected'> {
|
122
|
+
withVirtualScroll?: boolean;
|
123
|
+
DatagridPagination?: JSXElementConstructor<any>;
|
124
|
+
isFetching?: boolean;
|
125
|
+
tableId?: string;
|
126
|
+
filterProps?: FilterFlyoutProps;
|
127
|
+
state: DataGridTableState;
|
128
|
+
getFilterFlyoutProps?: () => FilterFlyoutProps;
|
129
|
+
DatagridActions?: JSXElementConstructor<any>;
|
130
|
+
CustomizeColumnsTearsheet?: JSXElementConstructor<any>;
|
131
|
+
fullHeightDatagrid?: boolean;
|
132
|
+
variableRowHeight?: boolean;
|
133
|
+
useDenseHeader?: boolean;
|
134
|
+
withInlineEdit?: boolean;
|
135
|
+
verticalAlign?: string;
|
136
|
+
gridTitle?: ReactNode;
|
137
|
+
gridDescription?: ReactNode;
|
138
|
+
gridRef?: MutableRefObject<HTMLDivElement>;
|
139
|
+
DatagridBatchActions?: (args: any) => ReactNode;
|
140
|
+
batchActions?: boolean;
|
141
|
+
row: DatagridRow;
|
142
|
+
rows: Array<DatagridRow<any>>;
|
143
|
+
columns: Array<DatagridColumn>;
|
144
|
+
key?: any;
|
145
|
+
rowSize?: Size;
|
146
|
+
headers?: Array<DataGridHeader<T>>;
|
147
|
+
headRef?: MutableRefObject<HTMLDivElement>;
|
148
|
+
HeaderRow?: (state?: object, ref?: MutableRefObject<HTMLDivElement>, group?: HeaderGroup<any>) => ReactNode;
|
149
|
+
withStickyColumn?: boolean;
|
150
|
+
emptyStateTitle?: string | ReactNode;
|
151
|
+
emptyStateDescription?: string;
|
152
|
+
emptyStateSize?: 'lg' | 'sm';
|
153
|
+
emptyStateType?: string;
|
154
|
+
illustrationTheme?: 'light' | 'dark';
|
155
|
+
emptyStateAction: {
|
156
|
+
kind?: 'primary' | 'secondary' | 'tertiary';
|
157
|
+
renderIcon?: CarbonIconType;
|
158
|
+
onClick?: ButtonProps<any>['onClick'];
|
159
|
+
text?: string;
|
160
|
+
};
|
161
|
+
emptyStateLink?: {
|
162
|
+
text?: string | ReactNode;
|
163
|
+
href?: string;
|
164
|
+
};
|
165
|
+
isTableSortable?: boolean;
|
166
|
+
resizerAriaLabel?: string;
|
167
|
+
onColResizeEnd?: () => void;
|
168
|
+
withNestedRows?: boolean;
|
169
|
+
withExpandedRows?: boolean;
|
170
|
+
withMouseHover?: boolean;
|
171
|
+
setMouseOverRowIndex?: (arg: any) => void;
|
172
|
+
hideSelectAll?: boolean;
|
173
|
+
radio?: boolean;
|
174
|
+
onAllRowSelect: (rows: DatagridRow[], evt: any) => void;
|
175
|
+
selectAllToggle?: {
|
176
|
+
onSelectAllRows?: (args: any) => void;
|
177
|
+
labels?: Labels;
|
178
|
+
};
|
179
|
+
allPageRowsLabel?: string | object;
|
180
|
+
allRowsLabel: string | object;
|
181
|
+
onSelectAllRows?: (val?: boolean) => void;
|
182
|
+
toolbarBatchActions?: ButtonProps<any>[];
|
183
|
+
setGlobalFilter?: (filterValue: FilterValue) => void;
|
184
|
+
batchActionMenuButtonLabel?: string;
|
185
|
+
translateWithIdBatchActions?: TableBatchActionsProps['translateWithId'];
|
186
|
+
onScroll?: (evt?: any) => void;
|
187
|
+
innerListRef?: MutableRefObject<HTMLDivElement>;
|
188
|
+
tableHeight?: number;
|
189
|
+
virtualHeight?: number;
|
190
|
+
listRef?: MutableRefObject<any>;
|
191
|
+
handleResize?: () => void;
|
192
|
+
onVirtualScroll?: (evt?: boolean) => void;
|
193
|
+
fetchMoreData?: () => void;
|
194
|
+
loadMoreThreshold?: number;
|
195
|
+
}
|
196
|
+
export interface ResizeHeaderProps {
|
197
|
+
resizerProps?: ResizerProps;
|
198
|
+
header: DataGridHeader;
|
199
|
+
originalCol?: DatagridColumn;
|
200
|
+
handleOnMouseDownResize?: (evt?: any, props?: ResizerProps) => void;
|
201
|
+
columnWidths?: any[];
|
202
|
+
datagridState: DataGridState;
|
203
|
+
incrementAmount: number;
|
204
|
+
minWidth?: number;
|
205
|
+
dispatch?: TableDispatch<any>;
|
206
|
+
onColResizeEnd?: () => void;
|
207
|
+
resizerAriaLabel?: string;
|
208
|
+
isFetching?: boolean;
|
209
|
+
}
|
210
|
+
export {};
|
@@ -1,2 +1,2 @@
|
|
1
1
|
export default useDatagrid;
|
2
|
-
declare function useDatagrid(params: any, ...plugins: any[]): any
|
2
|
+
declare function useDatagrid(params: any, ...plugins: any[]): import("react-table").TableInstance<any>;
|
@@ -38,7 +38,7 @@ var useFocusRowExpander = function useFocusRowExpander(_ref) {
|
|
38
38
|
});
|
39
39
|
if (activeRow.length) {
|
40
40
|
var rowExpander = activeRow[0].querySelector(".".concat(blockClass, "__row-expander"));
|
41
|
-
rowExpander.focus();
|
41
|
+
rowExpander === null || rowExpander === void 0 || rowExpander.focus();
|
42
42
|
}
|
43
43
|
}, [instance === null || instance === void 0 ? void 0 : instance.tableId, instance === null || instance === void 0 ? void 0 : instance.expandedRows, lastExpandedRowIndex, blockClass, activeElement]);
|
44
44
|
};
|
@@ -1,2 +1,9 @@
|
|
1
|
+
/**
|
2
|
+
* Copyright IBM Corp. 2020, 2023
|
3
|
+
*
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
6
|
+
*/
|
7
|
+
import { Hooks } from 'react-table';
|
8
|
+
declare const useInfiniteScroll: (hooks: Hooks) => void;
|
1
9
|
export default useInfiniteScroll;
|
2
|
-
declare function useInfiniteScroll(hooks: any): void;
|
@@ -23,12 +23,13 @@ var useInfiniteScroll = function useInfiniteScroll(hooks) {
|
|
23
23
|
useResizeTable["default"](hooks);
|
24
24
|
var useInstance = function useInstance(instance) {
|
25
25
|
var _tableElement;
|
26
|
-
var
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
26
|
+
var _ref = instance,
|
27
|
+
isFetching = _ref.isFetching,
|
28
|
+
tableHeight = _ref.tableHeight,
|
29
|
+
innerListRef = _ref.innerListRef,
|
30
|
+
fetchMoreData = _ref.fetchMoreData,
|
31
|
+
tableId = _ref.tableId,
|
32
|
+
loadMoreThreshold = _ref.loadMoreThreshold;
|
32
33
|
var tableElement;
|
33
34
|
if (typeof document !== 'undefined') {
|
34
35
|
tableElement = document.querySelector("#".concat(tableId));
|
@@ -41,9 +42,9 @@ var useInfiniteScroll = function useInfiniteScroll(hooks) {
|
|
41
42
|
leading: true,
|
42
43
|
trailing: false
|
43
44
|
}), [fetchMoreData]);
|
44
|
-
var onScroll = function onScroll(
|
45
|
-
var scrollDirection =
|
46
|
-
scrollOffset =
|
45
|
+
var onScroll = function onScroll(_ref2) {
|
46
|
+
var scrollDirection = _ref2.scrollDirection,
|
47
|
+
scrollOffset = _ref2.scrollOffset;
|
47
48
|
if (innerListRef && innerListRef.current) {
|
48
49
|
if (!isFetching && scrollDirection === 'forward' && scrollOffset + totalTableHeight >= innerListRef.current.clientHeight - loadMoreThresholdValue) {
|
49
50
|
if (fetchMoreData) {
|
@@ -128,7 +128,11 @@ var SelectRow = function SelectRow(datagridState) {
|
|
128
128
|
var cellProps = cell.getCellProps();
|
129
129
|
var isFirstColumnStickyLeft = ((_columns$ = columns[0]) === null || _columns$ === void 0 ? void 0 : _columns$.sticky) === 'left' && withStickyColumn;
|
130
130
|
var rowId = "".concat(tableId, "-").concat(row.id, "-").concat(row.index);
|
131
|
-
|
131
|
+
var key = cellProps.key,
|
132
|
+
_cellProps = cellProps._cellProps;
|
133
|
+
return /*#__PURE__*/React__default["default"].createElement(react.TableSelectRow, _rollupPluginBabelHelpers["extends"]({
|
134
|
+
key: key
|
135
|
+
}, _cellProps, selectProps, {
|
132
136
|
radio: radio,
|
133
137
|
onSelect: onSelectHandler,
|
134
138
|
id: rowId,
|
@@ -14,6 +14,7 @@ type ActionIcon = {
|
|
14
14
|
iconDescription: string;
|
15
15
|
href?: string;
|
16
16
|
};
|
17
|
+
type PlacementType = 'top' | 'bottom';
|
17
18
|
interface EditUpdateCardsProps {
|
18
19
|
/**
|
19
20
|
* Icons that are displayed on card. Refer to design documentation for implementation guidelines
|
@@ -22,7 +23,7 @@ interface EditUpdateCardsProps {
|
|
22
23
|
/**
|
23
24
|
* Determines if the action icons are on the top or bottom of the card
|
24
25
|
*/
|
25
|
-
actionsPlacement?:
|
26
|
+
actionsPlacement?: PlacementType;
|
26
27
|
/**
|
27
28
|
* Optional label for the top of the card.
|
28
29
|
*/
|
@@ -66,7 +67,7 @@ interface EditUpdateCardsProps {
|
|
66
67
|
/**
|
67
68
|
* Determines if the primary button is on the top or bottom of the card
|
68
69
|
*/
|
69
|
-
primaryButtonPlacement?:
|
70
|
+
primaryButtonPlacement?: PlacementType;
|
70
71
|
/**
|
71
72
|
* The text that's displayed in the primary button
|
72
73
|
*/
|
@@ -86,7 +87,7 @@ interface EditUpdateCardsProps {
|
|
86
87
|
/**
|
87
88
|
* Determines if the secondary button is on the top or bottom of the card
|
88
89
|
*/
|
89
|
-
secondaryButtonPlacement?:
|
90
|
+
secondaryButtonPlacement?: PlacementType;
|
90
91
|
/**
|
91
92
|
* The text that's displayed in the secondary button
|
92
93
|
*/
|
@@ -1,3 +1,22 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
/**
|
2
|
+
* Copyright IBM Corp. 2022, 2024
|
3
|
+
*
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
6
|
+
*/
|
3
7
|
import React from 'react';
|
8
|
+
export interface Filter {
|
9
|
+
key: string;
|
10
|
+
value: string;
|
11
|
+
}
|
12
|
+
interface FilterSummaryProps {
|
13
|
+
className?: string;
|
14
|
+
clearButtonInline?: boolean;
|
15
|
+
clearFilters: () => void;
|
16
|
+
clearFiltersText?: string;
|
17
|
+
filters: Filter[];
|
18
|
+
overflowType?: 'default' | 'tag';
|
19
|
+
renderLabel?: (key: any, value: any) => void;
|
20
|
+
}
|
21
|
+
declare const FilterSummary: React.ForwardRefExoticComponent<FilterSummaryProps & React.RefAttributes<HTMLDivElement>>;
|
22
|
+
export default FilterSummary;
|
@@ -42,8 +42,7 @@ var FilterSummary = /*#__PURE__*/React__default["default"].forwardRef(function (
|
|
42
42
|
clearFiltersText = _ref$clearFiltersText === void 0 ? 'Clear filters' : _ref$clearFiltersText,
|
43
43
|
clearFilters = _ref.clearFilters,
|
44
44
|
filters = _ref.filters,
|
45
|
-
|
46
|
-
renderLabel = _ref$renderLabel === void 0 ? null : _ref$renderLabel,
|
45
|
+
renderLabel = _ref.renderLabel,
|
47
46
|
_ref$overflowType = _ref.overflowType,
|
48
47
|
overflowType = _ref$overflowType === void 0 ? 'default' : _ref$overflowType,
|
49
48
|
_ref$clearButtonInlin = _ref.clearButtonInline,
|
@@ -60,9 +59,9 @@ var FilterSummary = /*#__PURE__*/React__default["default"].forwardRef(function (
|
|
60
59
|
label: (_renderLabel = renderLabel === null || renderLabel === void 0 ? void 0 : renderLabel(key, value)) !== null && _renderLabel !== void 0 ? _renderLabel : "".concat(key, ": ").concat(value)
|
61
60
|
});
|
62
61
|
});
|
63
|
-
var filterSummaryClearButton = React.useRef();
|
64
|
-
var viewAllButtonRef = React.useRef();
|
65
|
-
var filterSummaryRef = React.useRef();
|
62
|
+
var filterSummaryClearButton = React.useRef(null);
|
63
|
+
var viewAllButtonRef = React.useRef(null);
|
64
|
+
var filterSummaryRef = React.useRef(null);
|
66
65
|
var localRef = filterSummaryRef || ref;
|
67
66
|
var _useState = React.useState(0),
|
68
67
|
_useState2 = _rollupPluginBabelHelpers.slicedToArray(_useState, 2),
|
@@ -74,7 +73,7 @@ var FilterSummary = /*#__PURE__*/React__default["default"].forwardRef(function (
|
|
74
73
|
setMultiline = _useState4[1];
|
75
74
|
var previousState = usePreviousValue.usePreviousValue({
|
76
75
|
multiline: multiline
|
77
|
-
});
|
76
|
+
}) || {};
|
78
77
|
var handleViewAll = function handleViewAll() {
|
79
78
|
if (overflowCount === 0) {
|
80
79
|
setMultiline(false);
|
@@ -85,7 +84,7 @@ var FilterSummary = /*#__PURE__*/React__default["default"].forwardRef(function (
|
|
85
84
|
});
|
86
85
|
};
|
87
86
|
var viewAllWidth = typeof (viewAllButtonRef === null || viewAllButtonRef === void 0 || (_viewAllButtonRef$cur = viewAllButtonRef.current) === null || _viewAllButtonRef$cur === void 0 ? void 0 : _viewAllButtonRef$cur.offsetWidth) === 'undefined' ? 0 : overflowCount > 0 ? 48 : 0;
|
88
|
-
var measurementOffset = (filterSummaryClearButton === null || filterSummaryClearButton === void 0 || (_filterSummaryClearBu = filterSummaryClearButton.current) === null || _filterSummaryClearBu === void 0 ? void 0 : _filterSummaryClearBu.offsetWidth) + viewAllWidth;
|
87
|
+
var measurementOffset = ((filterSummaryClearButton === null || filterSummaryClearButton === void 0 || (_filterSummaryClearBu = filterSummaryClearButton.current) === null || _filterSummaryClearBu === void 0 ? void 0 : _filterSummaryClearBu.offsetWidth) || 0) + viewAllWidth;
|
89
88
|
var renderTagSet = function renderTagSet(type) {
|
90
89
|
return /*#__PURE__*/React__default["default"].createElement(framerMotion.motion.div, {
|
91
90
|
key: type,
|
@@ -116,15 +115,15 @@ var FilterSummary = /*#__PURE__*/React__default["default"].forwardRef(function (
|
|
116
115
|
containingElementRef: localRef,
|
117
116
|
measurementOffset: measurementOffset,
|
118
117
|
onOverflowTagChange: function onOverflowTagChange(overflowTags) {
|
119
|
-
return setOverflowCount(overflowTags.length);
|
118
|
+
return setOverflowCount(overflowTags === null || overflowTags === void 0 ? void 0 : overflowTags.length);
|
120
119
|
},
|
121
120
|
multiline: multiline
|
122
121
|
}));
|
123
122
|
};
|
124
123
|
useWindowResize.useWindowResize(function () {
|
125
124
|
var handleFilterSummaryResize = function handleFilterSummaryResize() {
|
126
|
-
var _localRef$current;
|
127
|
-
if (multiline && (localRef === null || localRef === void 0 || (_localRef$
|
125
|
+
var _localRef$current, _localRef$current2;
|
126
|
+
if (multiline && localRef !== null && localRef !== void 0 && (_localRef$current = localRef.current) !== null && _localRef$current !== void 0 && _localRef$current.offsetHeight && (localRef === null || localRef === void 0 || (_localRef$current2 = localRef.current) === null || _localRef$current2 === void 0 ? void 0 : _localRef$current2.offsetHeight) <= 50) {
|
128
127
|
setMultiline(false);
|
129
128
|
}
|
130
129
|
};
|
@@ -137,7 +136,6 @@ var FilterSummary = /*#__PURE__*/React__default["default"].forwardRef(function (
|
|
137
136
|
ref: localRef,
|
138
137
|
className: cx__default["default"]([blockClass, className], _rollupPluginBabelHelpers.defineProperty({}, "".concat(blockClass, "__expanded"), multiline))
|
139
138
|
}), /*#__PURE__*/React__default["default"].createElement(framerMotion.AnimatePresence, {
|
140
|
-
mode: "wait",
|
141
139
|
exitBeforeEnter: true
|
142
140
|
}, !multiline && renderTagSet('single'), multiline && renderTagSet('multiline')), /*#__PURE__*/React__default["default"].createElement(react.Button, {
|
143
141
|
kind: "ghost",
|
@@ -166,6 +164,7 @@ FilterSummary.propTypes = {
|
|
166
164
|
clearButtonInline: index["default"].bool,
|
167
165
|
clearFilters: index["default"].func.isRequired,
|
168
166
|
clearFiltersText: index["default"].string,
|
167
|
+
/**@ts-ignore */
|
169
168
|
filters: index["default"].arrayOf(index["default"].object).isRequired,
|
170
169
|
overflowType: index["default"].oneOf(['default', 'tag']),
|
171
170
|
renderLabel: index["default"].func
|
@@ -18,6 +18,7 @@ var icons = require('@carbon/react/icons');
|
|
18
18
|
var react = require('@carbon/react');
|
19
19
|
var devtools = require('../../global/js/utils/devtools.js');
|
20
20
|
var settings = require('../../settings.js');
|
21
|
+
var uuidv4 = require('../../global/js/utils/uuidv4.js');
|
21
22
|
var Carousel = require('../Carousel/Carousel.js');
|
22
23
|
|
23
24
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
@@ -85,8 +86,9 @@ exports.Guidebanner = /*#__PURE__*/React__default["default"].forwardRef(function
|
|
85
86
|
return !prevState;
|
86
87
|
});
|
87
88
|
};
|
89
|
+
var carouselContentId = "".concat(uuidv4["default"](), "--carousel-content-id");
|
88
90
|
return /*#__PURE__*/React__default["default"].createElement("div", _rollupPluginBabelHelpers["extends"]({}, rest, {
|
89
|
-
"aria-
|
91
|
+
"aria-owns": !isCollapsed ? carouselContentId : undefined,
|
90
92
|
className: cx__default["default"](blockClass, className, collapsible && "".concat(blockClass, "__collapsible"), isCollapsed && "".concat(blockClass, "__collapsible-collapsed"), withLeftGutter && "".concat(blockClass, "__with-left-gutter")),
|
91
93
|
ref: ref
|
92
94
|
}, devtools.getDevtoolsProps(componentName)), /*#__PURE__*/React__default["default"].createElement(icons.Idea, {
|
@@ -95,6 +97,7 @@ exports.Guidebanner = /*#__PURE__*/React__default["default"].forwardRef(function
|
|
95
97
|
}), /*#__PURE__*/React__default["default"].createElement("div", {
|
96
98
|
className: "".concat(blockClass, "__title")
|
97
99
|
}, title), /*#__PURE__*/React__default["default"].createElement(Carousel.Carousel, {
|
100
|
+
id: carouselContentId,
|
98
101
|
className: "".concat(blockClass, "__carousel")
|
99
102
|
// These colors are to match the Carousel's faded edges
|
100
103
|
// against the Guidebanner's gradient background.
|
@@ -117,7 +120,9 @@ exports.Guidebanner = /*#__PURE__*/React__default["default"].forwardRef(function
|
|
117
120
|
size: "md",
|
118
121
|
className: "".concat(blockClass, "__toggle-button"),
|
119
122
|
onClick: handleClickToggle,
|
120
|
-
ref: toggleRef
|
123
|
+
ref: toggleRef,
|
124
|
+
"aria-controls": !isCollapsed ? carouselContentId : undefined,
|
125
|
+
"aria-expanded": !isCollapsed
|
121
126
|
}, isCollapsed ? expandButtonLabel : collapseButtonLabel), showNavigation && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("span", {
|
122
127
|
className: cx__default["default"]("".concat(blockClass, "__back-button"), [scrollPosition === 0 ? "".concat(blockClass, "__back-button--disabled") : null])
|
123
128
|
}, /*#__PURE__*/React__default["default"].createElement(react.IconButton, {
|
@@ -1,2 +1,115 @@
|
|
1
|
-
|
2
|
-
import
|
1
|
+
import React, { PropsWithChildren, ReactNode } from 'react';
|
2
|
+
import { CarbonIconType } from '@carbon/icons-react/lib/CarbonIcon';
|
3
|
+
type ActionIcon = {
|
4
|
+
id?: string;
|
5
|
+
icon?: CarbonIconType;
|
6
|
+
onKeyDown?(): void;
|
7
|
+
onClick?(): void;
|
8
|
+
iconDescription?: string;
|
9
|
+
href?: string;
|
10
|
+
};
|
11
|
+
type overflowAction = {
|
12
|
+
id?: string;
|
13
|
+
itemText?: string;
|
14
|
+
onClick?: () => void;
|
15
|
+
onKeydown?: () => void;
|
16
|
+
};
|
17
|
+
type PlacementType = 'top' | 'bottom';
|
18
|
+
type ClickZoneType = 'one' | 'two' | 'three';
|
19
|
+
interface ProductiveCardProps extends PropsWithChildren {
|
20
|
+
/**
|
21
|
+
* Icons that are displayed on card. Refer to design documentation for implementation guidelines. Note- href will supersede onClick
|
22
|
+
*/
|
23
|
+
actionIcons?: ActionIcon[];
|
24
|
+
/**
|
25
|
+
* Determines if the action icons are on the top or bottom of the card
|
26
|
+
*/
|
27
|
+
actionsPlacement?: PlacementType;
|
28
|
+
/**
|
29
|
+
* Content that shows in the body of the card
|
30
|
+
*/
|
31
|
+
/**
|
32
|
+
* Optional user provided class
|
33
|
+
*/
|
34
|
+
className?: string;
|
35
|
+
children: ReactNode;
|
36
|
+
/**
|
37
|
+
* Designates which zones of the card are clickable. Refer to design documentation for implementation guidelines
|
38
|
+
*/
|
39
|
+
clickZone?: ClickZoneType;
|
40
|
+
/**
|
41
|
+
* Optional header description
|
42
|
+
*/
|
43
|
+
description?: string | object | ReactNode;
|
44
|
+
/**
|
45
|
+
* Optional label for the top of the card
|
46
|
+
*/
|
47
|
+
label?: string | object | ReactNode;
|
48
|
+
/**
|
49
|
+
* Provides the callback for a clickable card
|
50
|
+
*/
|
51
|
+
onClick?: () => void;
|
52
|
+
/**
|
53
|
+
* Function that's called from the primary button or action icon
|
54
|
+
*/
|
55
|
+
onPrimaryButtonClick?: () => void;
|
56
|
+
/**
|
57
|
+
* Function that's called from the secondary button
|
58
|
+
*/
|
59
|
+
onSecondaryButtonClick?: () => void;
|
60
|
+
/**
|
61
|
+
* Use an overflow menu instead of action icons. Refer to design documentation for implementation guidelines
|
62
|
+
*/
|
63
|
+
overflowActions?: overflowAction[];
|
64
|
+
/**
|
65
|
+
* Aria label prop required for OverflowMenu
|
66
|
+
*/
|
67
|
+
overflowAriaLabel?: string;
|
68
|
+
/**
|
69
|
+
* Optionally specify an href for your Button to become an <a> element
|
70
|
+
*/
|
71
|
+
primaryButtonHref?: string;
|
72
|
+
/**
|
73
|
+
* Optional prop to allow overriding the icon rendering. Can be a React component class
|
74
|
+
*/
|
75
|
+
primaryButtonIcon?: CarbonIconType;
|
76
|
+
/**
|
77
|
+
* Determines if the primary button is on the top or bottom of the card
|
78
|
+
*/
|
79
|
+
primaryButtonPlacement?: PlacementType;
|
80
|
+
/**
|
81
|
+
* The text that's displayed in the primary button
|
82
|
+
*/
|
83
|
+
primaryButtonText?: string;
|
84
|
+
/**
|
85
|
+
* Optionally specify an href for your Button to become an <a> element
|
86
|
+
*/
|
87
|
+
secondaryButtonHref?: string;
|
88
|
+
/**
|
89
|
+
* Optional prop to allow overriding the icon rendering. Can be a React component class
|
90
|
+
*/
|
91
|
+
secondaryButtonIcon?: CarbonIconType;
|
92
|
+
/**
|
93
|
+
* Determines if the secondary button is on the top or bottom of the card
|
94
|
+
*/
|
95
|
+
secondaryButtonPlacement?: PlacementType;
|
96
|
+
/**
|
97
|
+
* The text that's displayed in the secondary button
|
98
|
+
*/
|
99
|
+
secondaryButtonText?: string;
|
100
|
+
/**
|
101
|
+
* **Experimental:** For all cases a `Slug` component can be provided.
|
102
|
+
* Clickable tiles only accept a boolean value of true and display a hollow slug.
|
103
|
+
*/
|
104
|
+
slug?: ReactNode | boolean;
|
105
|
+
/**
|
106
|
+
* Title that's displayed at the top of the card
|
107
|
+
*/
|
108
|
+
title?: string | object | ReactNode;
|
109
|
+
/**
|
110
|
+
* Determines title size
|
111
|
+
*/
|
112
|
+
titleSize?: 'default' | 'large';
|
113
|
+
}
|
114
|
+
export declare let ProductiveCard: React.ForwardRefExoticComponent<ProductiveCardProps & React.RefAttributes<HTMLDivElement>>;
|
115
|
+
export {};
|
@@ -23,22 +23,16 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
23
23
|
|
24
24
|
var _excluded = ["actionsPlacement"];
|
25
25
|
var componentName = 'ProductiveCard';
|
26
|
-
|
27
|
-
// Default values for props
|
28
|
-
var defaults = {
|
29
|
-
actionsPlacement: 'top'
|
30
|
-
};
|
31
26
|
exports.ProductiveCard = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
32
27
|
var _ref$actionsPlacement = _ref.actionsPlacement,
|
33
|
-
actionsPlacement = _ref$actionsPlacement === void 0 ?
|
28
|
+
actionsPlacement = _ref$actionsPlacement === void 0 ? 'top' : _ref$actionsPlacement,
|
34
29
|
rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
|
35
30
|
var validProps = propsHelper.prepareProps(rest, ['media', 'mediaPosition', 'pictogram', 'primaryButtonClick', 'productive', 'secondaryButtonKind']);
|
36
31
|
return /*#__PURE__*/React__default["default"].createElement(Card.Card, _rollupPluginBabelHelpers["extends"]({}, _rollupPluginBabelHelpers.objectSpread2(_rollupPluginBabelHelpers.objectSpread2({}, validProps), {}, {
|
37
32
|
actionsPlacement: actionsPlacement,
|
38
|
-
ref: ref
|
39
|
-
}), {
|
33
|
+
ref: ref,
|
40
34
|
productive: true
|
41
|
-
}, devtools.getDevtoolsProps(componentName)));
|
35
|
+
}), devtools.getDevtoolsProps(componentName)));
|
42
36
|
});
|
43
37
|
|
44
38
|
// Return a placeholder if not released and not enabled by feature flag
|
@@ -47,6 +41,7 @@ exports.ProductiveCard.propTypes = {
|
|
47
41
|
/**
|
48
42
|
* Icons that are displayed on card. Refer to design documentation for implementation guidelines
|
49
43
|
*/
|
44
|
+
/**@ts-ignore */
|
50
45
|
actionIcons: index["default"].arrayOf(index["default"].shape({
|
51
46
|
id: index["default"].string,
|
52
47
|
icon: index["default"].oneOfType([index["default"].func, index["default"].object]),
|
@@ -94,6 +89,7 @@ exports.ProductiveCard.propTypes = {
|
|
94
89
|
/**
|
95
90
|
* Use an overflow menu instead of action icons. Refer to design documentation for implementation guidelines
|
96
91
|
*/
|
92
|
+
/**@ts-ignore */
|
97
93
|
overflowActions: index["default"].arrayOf(index["default"].shape({
|
98
94
|
id: index["default"].string,
|
99
95
|
itemText: index["default"].string,
|
@@ -111,6 +107,7 @@ exports.ProductiveCard.propTypes = {
|
|
111
107
|
/**
|
112
108
|
* Optional prop to allow overriding the icon rendering. Can be a React component class
|
113
109
|
*/
|
110
|
+
/**@ts-ignore */
|
114
111
|
primaryButtonIcon: index["default"].oneOfType([index["default"].func, index["default"].object]),
|
115
112
|
/**
|
116
113
|
* Determines if the primary button is on the top or bottom of the card
|
@@ -119,6 +116,7 @@ exports.ProductiveCard.propTypes = {
|
|
119
116
|
/**
|
120
117
|
* The text that's displayed in the primary button
|
121
118
|
*/
|
119
|
+
/**@ts-ignore */
|
122
120
|
primaryButtonText: index["default"].node,
|
123
121
|
/**
|
124
122
|
* Optionally specify an href for your Button to become an <a> element
|
@@ -127,6 +125,7 @@ exports.ProductiveCard.propTypes = {
|
|
127
125
|
/**
|
128
126
|
* Optional prop to allow overriding the icon rendering. Can be a React component class
|
129
127
|
*/
|
128
|
+
/**@ts-ignore */
|
130
129
|
secondaryButtonIcon: index["default"].oneOfType([index["default"].func, index["default"].object]),
|
131
130
|
/**
|
132
131
|
* Determines if the secondary button is on the top or bottom of the card
|
@@ -135,6 +134,7 @@ exports.ProductiveCard.propTypes = {
|
|
135
134
|
/**
|
136
135
|
* The text that's displayed in the secondary button
|
137
136
|
*/
|
137
|
+
/**@ts-ignore */
|
138
138
|
secondaryButtonText: index["default"].node,
|
139
139
|
/**
|
140
140
|
* **Experimental:** For all cases a `Slug` component can be provided.
|
@@ -69,7 +69,7 @@ exports.WebTerminal = /*#__PURE__*/React__default["default"].forwardRef(function
|
|
69
69
|
matches: true
|
70
70
|
},
|
71
71
|
prefersReducedMotion = _ref2.matches;
|
72
|
-
var webTerminalAnimationName = "".concat(open ? 'web-terminal-entrance' : 'web-terminal-exit', " ").concat(carbonMotion.moderate02);
|
72
|
+
var webTerminalAnimationName = "".concat(open ? 'web-terminal-entrance' : 'web-terminal-exit forwards', " ").concat(carbonMotion.moderate02);
|
73
73
|
var showDocumentationLinks = React.useMemo(function () {
|
74
74
|
return documentationLinks.length > 0;
|
75
75
|
}, [documentationLinks]);
|
@@ -1 +1 @@
|
|
1
|
-
export function usePreviousValue(value: object): undefined;
|
1
|
+
export function usePreviousValue(value: object): T | undefined;
|