@splunk/react-ui 4.40.0 → 4.41.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/CHANGELOG.md +21 -0
- package/Calendar.js +548 -744
- package/Date.js +158 -161
- package/FormRows.js +93 -97
- package/Link.js +21 -19
- package/MIGRATION.mdx +24 -3
- package/Menu.js +1 -1
- package/MessageBar.js +59 -57
- package/Multiselect.js +1161 -1278
- package/RadioBar.js +19 -15
- package/ResultsMenu.js +1208 -1028
- package/Select.js +857 -957
- package/Slider.js +346 -300
- package/SlidingPanels.js +166 -148
- package/TabBar.js +187 -172
- package/TabLayout.js +8 -8
- package/Table.js +7 -3
- package/TransitionOpen.js +44 -65
- package/package.json +2 -2
- package/types/src/ButtonSimple/ButtonSimple.d.ts +1 -1
- package/types/src/Calendar/Calendar.d.ts +28 -30
- package/types/src/Calendar/MonthHeader.d.ts +12 -22
- package/types/src/Color/Color.d.ts +2 -2
- package/types/src/Date/Date.d.ts +18 -19
- package/types/src/File/File.d.ts +1 -1
- package/types/src/FormRows/FormRows.d.ts +5 -60
- package/types/src/FormRows/Row.d.ts +1 -1
- package/types/src/Link/Link.d.ts +7 -0
- package/types/src/Link/index.d.ts +1 -0
- package/types/src/Menu/Item.d.ts +1 -1
- package/types/src/Menu/Menu.d.ts +1 -1
- package/types/src/Multiselect/Option.d.ts +1 -1
- package/types/src/Number/Number.d.ts +2 -2
- package/types/src/RadioBar/RadioBar.d.ts +2 -2
- package/types/src/ResultsMenu/VirtualizedResultsMenu/VirtualizedResultsMenu.d.ts +1 -1
- package/types/src/ResultsMenu/VirtualizedResultsMenu/injectVirtualizedItem.d.ts +2 -0
- package/types/src/Search/Option.d.ts +1 -1
- package/types/src/Select/Option.d.ts +5 -1
- package/types/src/Select/OptionBase.d.ts +41 -23
- package/types/src/Select/SelectAllOption.d.ts +6 -2
- package/types/src/Select/SelectBase.d.ts +2 -30
- package/types/src/Slider/Slider.d.ts +7 -16
- package/types/src/SlidingPanels/SlidingPanels.d.ts +4 -3
- package/types/src/TabBar/TabBar.d.ts +10 -2
- package/types/src/TabBar/TabBarContext.d.ts +1 -0
- package/types/src/TabBar/docs/examples/IconsAbove.d.ts +2 -0
- package/types/src/TabBar/docs/examples/IconsLeft.d.ts +2 -0
- package/types/src/TabBar/docs/examples/VerticalIconsAbove.d.ts +2 -0
- package/types/src/TabBar/docs/examples/VerticalIconsLeft.d.ts +2 -0
- package/types/src/TabLayout/TabLayout.d.ts +4 -2
- package/types/src/Table/Row.d.ts +0 -2
- package/types/src/Table/Table.d.ts +0 -2
- package/types/src/Table/docs/examples/Complex.d.ts +14 -3
- package/types/src/Text/Text.d.ts +2 -2
- package/types/src/TextArea/TextArea.d.ts +2 -2
- package/types/src/Typography/Typography.d.ts +4 -2
- package/types/src/TabBar/docs/examples/IconsInline.d.ts +0 -2
- package/types/src/TabBar/docs/examples/IconsSmall.d.ts +0 -2
- package/types/src/TabBar/docs/examples/VerticalSmallIcons.d.ts +0 -2
- package/types/src/Table/docs/examples/prisma/Complex.d.ts +0 -48
- /package/types/src/Table/docs/examples/{prisma/RowActions.d.ts → RowActions.d.ts} +0 -0
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import React, { Component } from 'react';
|
|
2
|
-
import { HeadCellSortHandler, RowActionPrimaryClickHandler, RowActionSecondaryClickHandler, RowRequestToggleHandler, TableRequestMoveColumnHandler, RowClickHandler } from '@splunk/react-ui/Table';
|
|
3
|
-
interface Row {
|
|
4
|
-
age: number;
|
|
5
|
-
birthState: string;
|
|
6
|
-
disabled: boolean;
|
|
7
|
-
email: string;
|
|
8
|
-
name: string;
|
|
9
|
-
selected: boolean;
|
|
10
|
-
status: string;
|
|
11
|
-
}
|
|
12
|
-
interface Header {
|
|
13
|
-
key: 'age' | 'birthState' | 'email' | 'name' | 'status';
|
|
14
|
-
label: string;
|
|
15
|
-
minWidth: number;
|
|
16
|
-
visible: boolean;
|
|
17
|
-
width: number;
|
|
18
|
-
}
|
|
19
|
-
interface ExampleState {
|
|
20
|
-
data: Row[];
|
|
21
|
-
headers: Header[];
|
|
22
|
-
primaryAction?: string;
|
|
23
|
-
primaryActionRowData?: string;
|
|
24
|
-
secondaryAction?: string;
|
|
25
|
-
secondaryActionRowData?: string;
|
|
26
|
-
sortDir: 'asc' | 'desc';
|
|
27
|
-
sortKey: 'age' | 'birthState' | 'email' | 'name' | 'status';
|
|
28
|
-
activeRow?: string;
|
|
29
|
-
activeRowData?: string;
|
|
30
|
-
}
|
|
31
|
-
export default class Complex extends Component<{}, ExampleState> {
|
|
32
|
-
constructor(props: {});
|
|
33
|
-
handleRequestMoveColumn: TableRequestMoveColumnHandler;
|
|
34
|
-
handleSort: HeadCellSortHandler;
|
|
35
|
-
handleToggle: RowRequestToggleHandler;
|
|
36
|
-
handleToggleAll: () => void;
|
|
37
|
-
handleRowClick: RowClickHandler;
|
|
38
|
-
handleShowHide: (e: React.MouseEvent, { label }: {
|
|
39
|
-
label: string;
|
|
40
|
-
}) => void;
|
|
41
|
-
handleEditActionClick: RowActionPrimaryClickHandler;
|
|
42
|
-
handleSaveActionClick: RowActionSecondaryClickHandler;
|
|
43
|
-
handleAddActionClick: RowActionSecondaryClickHandler;
|
|
44
|
-
handleDeleteActionClick: RowActionSecondaryClickHandler;
|
|
45
|
-
rowSelectionState(data: Row[]): "none" | "all" | "some";
|
|
46
|
-
render(): JSX.Element;
|
|
47
|
-
}
|
|
48
|
-
export {};
|
|
File without changes
|