@splunk/react-ui 4.9.0 → 4.12.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/Accordion.js +4 -4
- package/Anchor.js +2 -2
- package/Animation.js +4 -4
- package/AnimationToggle.js +2 -2
- package/Box.js +2 -2
- package/Button.js +24 -48
- package/ButtonGroup.js +6 -27
- package/ButtonSimple.js +4 -4
- package/CHANGELOG.md +63 -6
- package/Calendar.js +39 -39
- package/Card.js +54 -68
- package/CardLayout.js +14 -35
- package/Chip.js +19 -19
- package/Clickable.js +28 -13
- package/CloseButton.js +15 -15
- package/Code.js +8 -5
- package/CollapsiblePanel.js +6 -6
- package/Color.js +21 -21
- package/ColumnLayout.js +7 -7
- package/ComboBox.js +19 -14
- package/Concertina.js +13 -13
- package/ControlGroup.js +28 -18
- package/Date.js +10 -10
- package/DefinitionList.js +2 -2
- package/Dropdown.js +6 -6
- package/EventListener.js +4 -4
- package/File.js +31 -31
- package/FormRows.js +11 -11
- package/Heading.js +2 -2
- package/Image.js +21 -21
- package/JSONTree.js +40 -22
- package/Layer.js +72 -22
- package/Link.js +9 -9
- package/List.js +2 -2
- package/Markdown.js +26 -29
- package/Menu.js +53 -53
- package/Message.js +33 -33
- package/MessageBar.js +46 -39
- package/Modal.js +8 -8
- package/ModalLayer.js +16 -7
- package/Monogram.js +27 -15
- package/Multiselect.js +101 -97
- package/Number.js +6 -6
- package/Paginator.js +46 -49
- package/Paragraph.js +2 -2
- package/Popover.js +18 -13
- package/Progress.js +8 -8
- package/RadioBar.js +145 -41
- package/RadioList.js +2 -2
- package/Resize.js +4 -4
- package/ResultsMenu.js +62 -41
- package/ScreenReaderContent.js +2 -2
- package/Scroll.js +6 -6
- package/ScrollContainerContext.js +2 -2
- package/Search.js +19 -18
- package/Select.js +81 -79
- package/SidePanel.js +4 -4
- package/Slider.js +8 -8
- package/SlidingPanels.js +16 -7
- package/StaticContent.js +2 -2
- package/StepBar.js +8 -8
- package/Switch.js +8 -8
- package/TabBar.js +15 -15
- package/TabLayout.js +4 -4
- package/Table.js +119 -92
- package/Text.js +121 -241
- package/TextArea.js +1444 -0
- package/Tooltip.js +17 -6
- package/TransitionOpen.js +20 -10
- package/Typography.js +225 -0
- package/WaitSpinner.js +4 -4
- package/cypress.json +1 -0
- package/package.json +21 -8
- package/stubs-splunkui.d.ts +13 -0
- package/test-runner-jest.config.js +38 -0
- package/types/src/Accordion/AccordionContext.d.ts +0 -1
- package/types/src/Button/Button.d.ts +0 -2
- package/types/src/ButtonGroup/ButtonGroupContext.d.ts +0 -1
- package/types/src/Card/Body.d.ts +6 -1
- package/types/src/Card/Card.d.ts +0 -2
- package/types/src/CardLayout/CardLayoutContext.d.ts +0 -1
- package/types/src/Clickable/Clickable.d.ts +5 -0
- package/types/src/ComboBox/ComboBox.d.ts +15 -5
- package/types/src/Concertina/ConcertinaContext.d.ts +0 -1
- package/types/src/ControlGroup/ControlGroup.d.ts +9 -2
- package/types/src/Date/Date.d.ts +3 -3
- package/types/src/File/FileContext.d.ts +0 -1
- package/types/src/FormRows/FormRows.d.ts +1 -1
- package/types/src/FormRows/FormRowsContext.d.ts +0 -1
- package/types/src/FormRows/Row.d.ts +1 -1
- package/types/src/JSONTree/JSONTree.d.ts +2 -2
- package/types/src/JSONTree/TreeNode.d.ts +1 -1
- package/types/src/JSONTree/docs/examples/WithShiftModifier.d.ts +1 -0
- package/types/src/Layer/LayerStack.d.ts +8 -2
- package/types/src/Markdown/Markdown.d.ts +2 -3
- package/types/src/Menu/MenuContext.d.ts +0 -1
- package/types/src/Modal/ModalContext.d.ts +0 -1
- package/types/src/ModalLayer/ModalLayer.d.ts +2 -0
- package/types/src/Monogram/Monogram.d.ts +2 -2
- package/types/src/Multiselect/Compact.d.ts +11 -4
- package/types/src/Multiselect/Multiselect.d.ts +14 -5
- package/types/src/Multiselect/Normal.d.ts +11 -4
- package/types/src/Number/Number.d.ts +3 -3
- package/types/src/Popover/Popover.d.ts +1 -0
- package/types/src/Popover/PopoverContext.d.ts +0 -1
- package/types/src/RadioBar/Option.d.ts +10 -2
- package/types/src/RadioBar/RadioBar.d.ts +4 -1
- package/types/src/RadioBar/RadioBarContext.d.ts +4 -2
- package/types/src/RadioList/RadioListContext.d.ts +0 -1
- package/types/src/ResultsMenu/ResultsMenu.d.ts +8 -2
- package/types/src/Search/Search.d.ts +4 -0
- package/types/src/Select/Select.d.ts +13 -4
- package/types/src/Select/SelectBase.d.ts +12 -4
- package/types/src/SidePanel/SidePanel.d.ts +2 -1
- package/types/src/Slider/Slider.d.ts +3 -3
- package/types/src/SlidingPanels/SlidingPanels.d.ts +2 -0
- package/types/src/StepBar/StepBarContext.d.ts +0 -1
- package/types/src/TabBar/TabBarContext.d.ts +0 -1
- package/types/src/Table/HeadCell.d.ts +7 -3
- package/types/src/Table/Table.d.ts +2 -3
- package/types/src/Table/TableContext.d.ts +5 -0
- package/types/src/Text/Text.d.ts +22 -12
- package/types/src/TextArea/TextArea.d.ts +190 -0
- package/types/src/TextArea/docs/examples/Basic.d.ts +2 -0
- package/types/src/TextArea/docs/examples/Disabled.d.ts +2 -0
- package/types/src/TextArea/docs/examples/Error.d.ts +2 -0
- package/types/src/TextArea/docs/examples/Inline.d.ts +2 -0
- package/types/src/TextArea/docs/examples/Uncontrolled.d.ts +2 -0
- package/types/src/TextArea/index.d.ts +2 -0
- package/types/src/{Text → TextArea}/syncHeightWithShadow.d.ts +1 -2
- package/types/src/Tooltip/Tooltip.d.ts +8 -5
- package/types/src/TransitionOpen/TransitionOpen.d.ts +3 -0
- package/types/src/TransitionOpen/index.d.ts +1 -0
- package/types/src/Typography/Typography.d.ts +78 -0
- package/types/src/Typography/docs/examples/Basic.d.ts +2 -0
- package/types/src/Typography/docs/examples/Variants.d.ts +2 -0
- package/types/src/Typography/index.d.ts +2 -0
- package/types/src/Typography/test/Typography.unit.d.ts +1 -0
- package/types/src/fixtures/FetchOptions.d.ts +82 -2
- package/usePrevious.js +2 -2
- package/FetchOptions.js +0 -359
- package/types/src/FetchOptions/FetchOptions.d.ts +0 -82
- package/types/src/FetchOptions/index.d.ts +0 -2
|
@@ -28,8 +28,10 @@ declare class SlidingPanels extends Component<SlidingPanelsProps, SlidingPanelsS
|
|
|
28
28
|
static defaultProps: Required<Pick<SlidingPanelsPropsBase, "transition">>;
|
|
29
29
|
static Panel: typeof Panel;
|
|
30
30
|
private panelInstances;
|
|
31
|
+
private allowAnimationUpdates;
|
|
31
32
|
static getDerivedStateFromProps: React.GetDerivedStateFromProps<SlidingPanelsProps, SlidingPanelsState>;
|
|
32
33
|
constructor(props: Readonly<SlidingPanelsProps>);
|
|
34
|
+
componentWillUnmount(): void;
|
|
33
35
|
private willEnter;
|
|
34
36
|
private willLeave;
|
|
35
37
|
private handlePanelMount;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React, { Component } from 'react';
|
|
2
2
|
import { HeadAutosizeColumnHandler, HeadRequestMoveColumnHandler, HeadRequestResizeColumnHandler } from './Head';
|
|
3
3
|
import { ClassComponentProps } from '../utils/types';
|
|
4
|
+
import TableContext from './TableContext';
|
|
4
5
|
declare type HeadCellAutosizeColumnHandler = HeadAutosizeColumnHandler;
|
|
5
6
|
declare type HeadCellDragStartHandler = (index: number | undefined, columnId: any) => void;
|
|
6
7
|
declare type HeadCellKeyDownHandler = (event: React.KeyboardEvent<HTMLTableCellElement>, data: {
|
|
@@ -85,16 +86,19 @@ interface HeadCellPropsBase {
|
|
|
85
86
|
width?: number | 'auto';
|
|
86
87
|
/** @private. */
|
|
87
88
|
variant?: 'toggleAll' | 'info' | 'actions';
|
|
89
|
+
/** @private. */
|
|
90
|
+
zIndex?: number;
|
|
88
91
|
}
|
|
89
|
-
declare const defaultProps: Required<Pick<HeadCellPropsBase, 'align' | 'resizable' | 'showGuideline' | 'sortDir' | 'truncate' | 'visible'>>;
|
|
92
|
+
declare const defaultProps: Required<Pick<HeadCellPropsBase, 'align' | 'resizable' | 'showGuideline' | 'sortDir' | 'truncate' | 'visible' | 'zIndex'>>;
|
|
90
93
|
declare type HeadCellProps = ClassComponentProps<HeadCellPropsBase, typeof defaultProps, 'th'>;
|
|
91
94
|
interface HeadCellState {
|
|
92
95
|
isDragging: boolean;
|
|
93
96
|
}
|
|
94
97
|
declare class HeadCell extends Component<HeadCellProps, HeadCellState> {
|
|
95
98
|
static splunkUiType: string;
|
|
96
|
-
static propTypes: React.WeakValidationMap<ClassComponentProps<HeadCellPropsBase, Required<Pick<HeadCellPropsBase, "align" | "visible" | "truncate" | "resizable" | "sortDir" | "showGuideline">>, "th", never>>;
|
|
97
|
-
static defaultProps: Required<Pick<HeadCellPropsBase, "align" | "visible" | "truncate" | "resizable" | "sortDir" | "showGuideline">>;
|
|
99
|
+
static propTypes: React.WeakValidationMap<ClassComponentProps<HeadCellPropsBase, Required<Pick<HeadCellPropsBase, "align" | "zIndex" | "visible" | "truncate" | "resizable" | "sortDir" | "showGuideline">>, "th", never>>;
|
|
100
|
+
static defaultProps: Required<Pick<HeadCellPropsBase, "align" | "zIndex" | "visible" | "truncate" | "resizable" | "sortDir" | "showGuideline">>;
|
|
101
|
+
static contextType: React.Context<TableContext>;
|
|
98
102
|
constructor(props: Readonly<HeadCellProps>);
|
|
99
103
|
private handleClick;
|
|
100
104
|
private handleKeyDown;
|
|
@@ -148,9 +148,9 @@ declare class Table extends Component<TableProps, TableState> {
|
|
|
148
148
|
private scrollSource?;
|
|
149
149
|
private table;
|
|
150
150
|
private tableContainer;
|
|
151
|
-
static propTypes: React.WeakValidationMap<ClassComponentProps<TablePropsBase, Required<Pick<TablePropsBase, "actions" | "
|
|
151
|
+
static propTypes: React.WeakValidationMap<ClassComponentProps<TablePropsBase, Required<Pick<TablePropsBase, "actions" | "headType" | "rowSelection" | "resizableFillLayout" | "dockOffset" | "rowExpansion">>, "div", never>>;
|
|
152
152
|
static contextType: React.Context<Window | Document | HTMLElement | null | undefined>;
|
|
153
|
-
static defaultProps: Required<Pick<TablePropsBase, "actions" | "
|
|
153
|
+
static defaultProps: Required<Pick<TablePropsBase, "actions" | "headType" | "rowSelection" | "resizableFillLayout" | "dockOffset" | "rowExpansion">>;
|
|
154
154
|
static Caption: typeof Caption;
|
|
155
155
|
static Head: typeof Head;
|
|
156
156
|
static HeadCell: typeof HeadCell;
|
|
@@ -205,7 +205,6 @@ declare class Table extends Component<TableProps, TableState> {
|
|
|
205
205
|
private isFixed;
|
|
206
206
|
private showDockedHeader;
|
|
207
207
|
private showDockedScrollBar;
|
|
208
|
-
private showFixed;
|
|
209
208
|
private updateDragPositionImpl;
|
|
210
209
|
private updateDragPosition;
|
|
211
210
|
private cleanupDrag;
|