@splunk/react-ui 4.39.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 +42 -0
- package/Calendar.js +548 -744
- package/Card.js +3 -1
- package/Chip.js +133 -125
- package/ControlGroup.js +27 -30
- package/Date.js +158 -161
- package/FormRows.js +93 -97
- package/Link.js +21 -19
- package/MIGRATION.mdx +54 -2
- package/Menu.js +1 -1
- package/Message.js +136 -123
- package/MessageBar.js +59 -57
- package/Multiselect.js +2985 -3085
- package/Number.js +23 -18
- package/Popover.js +2 -1
- package/RadioBar.js +19 -15
- package/ResultsMenu.js +1208 -1028
- package/Select.js +1906 -1998
- package/Slider.js +346 -300
- package/SlidingPanels.js +166 -148
- package/SplitButton.d.ts +2 -0
- package/TabBar.js +193 -175
- package/TabLayout.js +16 -10
- package/Table.js +236 -227
- package/TransitionOpen.js +44 -65
- package/WaitSpinner.js +1 -1
- 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/Card/Card.d.ts +1 -0
- package/types/src/Card/Footer.d.ts +1 -0
- package/types/src/Chip/Chip.d.ts +3 -6
- package/types/src/Color/Color.d.ts +2 -2
- package/types/src/ComboBox/ComboBox.d.ts +1 -1
- 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/Compact.d.ts +1 -1
- package/types/src/Multiselect/Multiselect.d.ts +1 -1
- package/types/src/Multiselect/Normal.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/Select.d.ts +3 -1
- package/types/src/Select/SelectAllOption.d.ts +8 -4
- package/types/src/Select/SelectBase.d.ts +76 -66
- package/types/src/Select/docs/examples/Appearance.d.ts +0 -2
- 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/Cell.d.ts +0 -2
- package/types/src/Table/HeadInner.d.ts +5 -1
- 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/WaitSpinner/WaitSpinner.d.ts +0 -1
- package/types/src/useControlled/index.d.ts +2 -0
- package/types/src/useControlled/useControlled.d.ts +21 -0
- package/types/src/useResizeObserver/index.d.ts +2 -0
- package/types/src/useResizeObserver/useResizeObserver.d.ts +12 -0
- package/useControlled.js +112 -0
- package/useKeyPress.d.ts +2 -0
- package/useResizeObserver.d.ts +2 -0
- package/useResizeObserver.js +137 -0
- package/types/src/Chip/docs/examples/Basic.d.ts +0 -2
- package/types/src/Chip/docs/examples/prisma/Appearance.d.ts +0 -2
- package/types/src/Color/docs/examples/prisma/Controlled.d.ts +0 -2
- package/types/src/Color/docs/examples/prisma/ThemeVariables.d.ts +0 -1
- package/types/src/Color/docs/examples/prisma/Uncontrolled.d.ts +0 -2
- package/types/src/Dropdown/docs/examples/prisma/Basic.d.ts +0 -2
- package/types/src/Dropdown/docs/examples/prisma/BasicMenu.d.ts +0 -2
- package/types/src/Dropdown/docs/examples/prisma/ControlledDropdown.d.ts +0 -2
- package/types/src/Dropdown/docs/examples/prisma/Dialog.d.ts +0 -2
- package/types/src/Dropdown/docs/examples/prisma/OtherToggles.d.ts +0 -2
- package/types/src/Dropdown/docs/examples/prisma/ScrollingMenu.d.ts +0 -2
- package/types/src/File/docs/examples/prisma/Disabled.d.ts +0 -12
- package/types/src/Message/docs/examples/Title.d.ts +0 -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/WaitSpinner/docs/examples/prisma/Basic.d.ts +0 -2
- /package/types/src/Color/docs/examples/{prisma/CustomizedPalette.d.ts → CustomizedPalette.d.ts} +0 -0
- /package/types/src/Color/docs/examples/{prisma/HideInput.d.ts → HideInput.d.ts} +0 -0
- /package/types/src/Table/docs/examples/{prisma/RowActions.d.ts → RowActions.d.ts} +0 -0
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Component } from 'react';
|
|
2
|
-
import { FileRequestAddHandler } from '@splunk/react-ui/File';
|
|
3
|
-
declare class Disabled extends Component<{}, {
|
|
4
|
-
filename?: string;
|
|
5
|
-
}> {
|
|
6
|
-
private fileReader;
|
|
7
|
-
constructor(props: {});
|
|
8
|
-
handleAddFiles: FileRequestAddHandler;
|
|
9
|
-
handleRemoveFile: () => void;
|
|
10
|
-
render(): JSX.Element;
|
|
11
|
-
}
|
|
12
|
-
export default Disabled;
|
|
@@ -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 {};
|
/package/types/src/Color/docs/examples/{prisma/CustomizedPalette.d.ts → CustomizedPalette.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|