@splunk/react-ui 4.16.0 → 4.16.1
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/Button.js +10 -10
- package/CHANGELOG.md +10 -1
- package/Calendar.js +12 -12
- package/Card.js +8 -8
- package/Chip.js +8 -8
- package/CloseButton.js +8 -8
- package/CollapsiblePanel.js +8 -8
- package/Color.js +12 -12
- package/ControlGroup.js +24 -14
- package/Dropdown.js +56 -15
- package/File.js +16 -16
- package/FormRows.js +6 -6
- package/Heading.js +10 -46
- package/Image.js +8 -8
- package/Link.js +2 -2
- package/Menu.js +16 -16
- package/Message.js +24 -24
- package/MessageBar.js +24 -24
- package/Multiselect.js +13 -12
- package/Number.js +5 -5
- package/Paginator.js +14 -14
- package/Select.js +13 -12
- package/SplitButton.js +2 -2
- package/StepBar.js +8 -8
- package/Switch.js +2 -2
- package/Table.js +28 -28
- package/Text.js +18 -18
- package/TextArea.js +12 -12
- package/Tooltip.js +5 -5
- package/package.json +3 -3
- package/types/src/Date/Icon.d.ts +1 -1
- package/types/src/Dropdown/Dropdown.d.ts +12 -7
- package/types/src/File/Icon.d.ts +1 -1
- package/types/src/File/IconCloud.d.ts +1 -1
- package/types/src/File/PaperClip.d.ts +1 -1
- package/types/src/File/Retry.d.ts +1 -1
- package/types/src/File/Trash.d.ts +1 -1
- package/types/src/Multiselect/Multiselect.d.ts +1 -1
- package/types/src/Number/IncrementIcon.d.ts +1 -1
- package/types/src/Select/Select.d.ts +1 -1
- package/types/src/Select/SelectBase.d.ts +1 -1
- package/types/src/Text/IconOutlinedHide.d.ts +1 -1
- package/types/src/Text/IconOutlinedView.d.ts +1 -1
- package/types/src/Tooltip/InfoIcon.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@splunk/react-ui",
|
|
3
|
-
"version": "4.16.
|
|
3
|
+
"version": "4.16.1",
|
|
4
4
|
"description": "Library of React components that implement the Splunk design language",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Splunk Inc.",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@splunk/react-icons": "^3.3.1",
|
|
42
|
-
"@splunk/themes": "^0.
|
|
42
|
+
"@splunk/themes": "^0.15.0",
|
|
43
43
|
"@splunk/ui-utils": "^1.5.2",
|
|
44
44
|
"@types/commonmark": "^0.27.0",
|
|
45
45
|
"@types/lodash": "^4.14.156",
|
|
@@ -48,7 +48,6 @@
|
|
|
48
48
|
"@types/react-resize-detector": "^3.1.1",
|
|
49
49
|
"@types/styled-components": "^5.1.0",
|
|
50
50
|
"@types/tinycolor2": "^1.4.2",
|
|
51
|
-
"axe-html-reporter": "^2.2.3",
|
|
52
51
|
"commonmark": "^0.27.0",
|
|
53
52
|
"commonmark-react-renderer": "^4.3.2",
|
|
54
53
|
"decimal.js-light": "^2.2.3",
|
|
@@ -97,6 +96,7 @@
|
|
|
97
96
|
"@types/webpack-env": "^1.15.2",
|
|
98
97
|
"@typescript-eslint/eslint-plugin": "^4.8.2",
|
|
99
98
|
"@typescript-eslint/parser": "^4.8.2",
|
|
99
|
+
"axe-html-reporter": "^2.2.3",
|
|
100
100
|
"axe-playwright": "^1.1.11",
|
|
101
101
|
"babel-loader": "^8.0.4",
|
|
102
102
|
"babel-plugin-istanbul": "^5.1.0",
|
package/types/src/Date/Icon.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { SVGPropsOptionalViewBox } from '@splunk/react-icons/
|
|
1
|
+
import { SVGPropsOptionalViewBox } from '@splunk/react-icons/SVGEnterprise';
|
|
2
2
|
export default function CalendarIcon(props: SVGPropsOptionalViewBox): JSX.Element;
|
|
@@ -21,8 +21,8 @@ declare type DropdownRequestCloseHandler = (data: {
|
|
|
21
21
|
reason: DropdownPossibleCloseReason;
|
|
22
22
|
}) => void;
|
|
23
23
|
/** @public */
|
|
24
|
-
declare type DropdownRequestOpenHandler = (event: React.MouseEvent<HTMLElement>, data: {
|
|
25
|
-
reason: 'toggleClick';
|
|
24
|
+
declare type DropdownRequestOpenHandler = (event: React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLElement>, data: {
|
|
25
|
+
reason: 'toggleClick' | 'toggleKeydown';
|
|
26
26
|
}) => void;
|
|
27
27
|
/** @public */
|
|
28
28
|
declare type DropdownToggleElement = React.ReactElement<React.HTMLAttributes<HTMLElement> & {
|
|
@@ -80,8 +80,7 @@ interface DropdownPropsBase {
|
|
|
80
80
|
*/
|
|
81
81
|
onRequestClose?: DropdownRequestCloseHandler;
|
|
82
82
|
/**
|
|
83
|
-
* A callback function invoked with a data object containing the event.
|
|
84
|
-
* always toggleClick.
|
|
83
|
+
* A callback function invoked with a data object containing the event.
|
|
85
84
|
*/
|
|
86
85
|
onRequestOpen?: DropdownRequestOpenHandler;
|
|
87
86
|
/**
|
|
@@ -91,6 +90,11 @@ interface DropdownPropsBase {
|
|
|
91
90
|
* open prop is provided, the component handles the open/close state internally.
|
|
92
91
|
*/
|
|
93
92
|
open?: boolean;
|
|
93
|
+
/**
|
|
94
|
+
* A private prop to support up and down arrow key navigation for `Select` and `Multiselect`.
|
|
95
|
+
* @private
|
|
96
|
+
*/
|
|
97
|
+
openWithArrowKeys?: boolean;
|
|
94
98
|
/**
|
|
95
99
|
* See `repositionMode` on `Popover` for details.
|
|
96
100
|
*/
|
|
@@ -114,7 +118,7 @@ interface DropdownPropsBase {
|
|
|
114
118
|
*/
|
|
115
119
|
toggle: DropdownToggleElement;
|
|
116
120
|
}
|
|
117
|
-
declare const defaultProps: Required<Pick<DropdownPropsBase, 'align' | 'canCoverAnchor' | 'closeReasons' | 'defaultPlacement' | 'focusToggleReasons' | 'repositionMode' | 'retainFocus' | 'takeFocus'>>;
|
|
121
|
+
declare const defaultProps: Required<Pick<DropdownPropsBase, 'align' | 'canCoverAnchor' | 'closeReasons' | 'defaultPlacement' | 'focusToggleReasons' | 'repositionMode' | 'retainFocus' | 'openWithArrowKeys' | 'takeFocus'>>;
|
|
118
122
|
interface DropdownPropsBaseControlled extends DropdownPropsBase {
|
|
119
123
|
onRequestClose: DropdownRequestCloseHandler;
|
|
120
124
|
onRequestOpen: DropdownRequestOpenHandler;
|
|
@@ -140,12 +144,13 @@ declare class Dropdown extends Component<DropdownProps, DropdownState> {
|
|
|
140
144
|
* docs extraction.
|
|
141
145
|
*/
|
|
142
146
|
static possibleCloseReasons: DropdownPossibleCloseReason[];
|
|
143
|
-
static propTypes: React.WeakValidationMap<DropdownPropsBaseControlled & Required<Pick<DropdownPropsBase, "align" | "retainFocus" | "takeFocus" | "closeReasons" | "canCoverAnchor" | "defaultPlacement" | "repositionMode" | "focusToggleReasons">>> | React.WeakValidationMap<DropdownPropsBaseUncontrolled & Required<Pick<DropdownPropsBase, "align" | "retainFocus" | "takeFocus" | "closeReasons" | "canCoverAnchor" | "defaultPlacement" | "repositionMode" | "focusToggleReasons">>>;
|
|
144
|
-
static defaultProps: Required<Pick<DropdownPropsBase, "align" | "retainFocus" | "takeFocus" | "closeReasons" | "canCoverAnchor" | "defaultPlacement" | "repositionMode" | "focusToggleReasons">>;
|
|
147
|
+
static propTypes: React.WeakValidationMap<DropdownPropsBaseControlled & Required<Pick<DropdownPropsBase, "align" | "retainFocus" | "takeFocus" | "closeReasons" | "canCoverAnchor" | "defaultPlacement" | "repositionMode" | "focusToggleReasons" | "openWithArrowKeys">>> | React.WeakValidationMap<DropdownPropsBaseUncontrolled & Required<Pick<DropdownPropsBase, "align" | "retainFocus" | "takeFocus" | "closeReasons" | "canCoverAnchor" | "defaultPlacement" | "repositionMode" | "focusToggleReasons" | "openWithArrowKeys">>>;
|
|
148
|
+
static defaultProps: Required<Pick<DropdownPropsBase, "align" | "retainFocus" | "takeFocus" | "closeReasons" | "canCoverAnchor" | "defaultPlacement" | "repositionMode" | "focusToggleReasons" | "openWithArrowKeys">>;
|
|
145
149
|
constructor(props: Readonly<DropdownProps>);
|
|
146
150
|
componentDidUpdate(): void;
|
|
147
151
|
private handleToggleMount;
|
|
148
152
|
private handleToggleClick;
|
|
153
|
+
private handleToggleKeyDownOpen;
|
|
149
154
|
private handleRequestClose;
|
|
150
155
|
private handleContentClick;
|
|
151
156
|
private isOpen;
|
package/types/src/File/Icon.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { SVGPropsOptionalViewBox } from '@splunk/react-icons/
|
|
1
|
+
import { SVGPropsOptionalViewBox } from '@splunk/react-icons/SVGEnterprise';
|
|
2
2
|
export default function FileIcon(props: SVGPropsOptionalViewBox): JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { SVGPropsOptionalViewBox } from '@splunk/react-icons/
|
|
1
|
+
import { SVGPropsOptionalViewBox } from '@splunk/react-icons/SVGEnterprise';
|
|
2
2
|
export default function FileIconCloud(props: SVGPropsOptionalViewBox): JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { SVGPropsOptionalViewBox } from '@splunk/react-icons/
|
|
1
|
+
import { SVGPropsOptionalViewBox } from '@splunk/react-icons/SVGEnterprise';
|
|
2
2
|
export default function PaperClip(props: SVGPropsOptionalViewBox): JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { SVGPropsOptionalViewBox } from '@splunk/react-icons/
|
|
1
|
+
import { SVGPropsOptionalViewBox } from '@splunk/react-icons/SVGEnterprise';
|
|
2
2
|
export default function Retry(props: SVGPropsOptionalViewBox): JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { SVGPropsOptionalViewBox } from '@splunk/react-icons/
|
|
1
|
+
import { SVGPropsOptionalViewBox } from '@splunk/react-icons/SVGEnterprise';
|
|
2
2
|
export default function Trash(props: SVGPropsOptionalViewBox): JSX.Element;
|
|
@@ -4,7 +4,7 @@ import { CompactPropsBase } from './Compact';
|
|
|
4
4
|
import Option from './Option';
|
|
5
5
|
import { ClassComponentProps } from '../utils/types';
|
|
6
6
|
/** @public */
|
|
7
|
-
declare type MultiselectFilterChangeHandler = (event: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement> | React.FocusEvent<HTMLInputElement> | React.MouseEvent<HTMLSpanElement
|
|
7
|
+
declare type MultiselectFilterChangeHandler = (event: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement> | React.FocusEvent<HTMLInputElement> | React.MouseEvent<HTMLSpanElement> | React.KeyboardEvent, data: {
|
|
8
8
|
keyword: string;
|
|
9
9
|
}) => void;
|
|
10
10
|
/** @public */
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { SVGPropsOptionalViewBox } from '@splunk/react-icons/
|
|
1
|
+
import { SVGPropsOptionalViewBox } from '@splunk/react-icons/SVGEnterprise';
|
|
2
2
|
export default function SortedUp(props: SVGPropsOptionalViewBox): JSX.Element;
|
|
@@ -8,7 +8,7 @@ declare type SelectChangeHandler = (event: React.MouseEvent<HTMLButtonElement> |
|
|
|
8
8
|
value: string | number | boolean;
|
|
9
9
|
}) => void;
|
|
10
10
|
/** @public */
|
|
11
|
-
declare type SelectFilterChangeHandler = (event: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement> | React.MouseEvent<HTMLSpanElement
|
|
11
|
+
declare type SelectFilterChangeHandler = (event: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement> | React.MouseEvent<HTMLSpanElement> | React.KeyboardEvent, data: {
|
|
12
12
|
keyword: string;
|
|
13
13
|
}) => void;
|
|
14
14
|
/** @public */
|
|
@@ -2,7 +2,7 @@ import React, { Component } from 'react';
|
|
|
2
2
|
import { Divider, Heading } from '@splunk/react-ui/Menu';
|
|
3
3
|
import Option from './OptionBase';
|
|
4
4
|
import { ClassComponentProps } from '../utils/types';
|
|
5
|
-
declare type SelectBaseFilterChangeHandler = (event: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement> | React.FocusEvent<HTMLInputElement> | React.MouseEvent<HTMLSpanElement
|
|
5
|
+
declare type SelectBaseFilterChangeHandler = (event: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement> | React.FocusEvent<HTMLInputElement> | React.MouseEvent<HTMLSpanElement> | React.KeyboardEvent, data: {
|
|
6
6
|
keyword: string;
|
|
7
7
|
}) => void;
|
|
8
8
|
declare type SelectBaseChangeHandler = (event: React.MouseEvent<HTMLButtonElement> | React.KeyboardEvent<HTMLInputElement>, data: {
|