@splunk/react-ui 4.10.0 → 4.11.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 +2 -2
- package/AnimationToggle.js +2 -2
- package/Box.js +2 -2
- package/Button.js +4 -4
- package/ButtonGroup.js +2 -2
- package/ButtonSimple.js +4 -4
- package/CHANGELOG.md +21 -5
- package/Calendar.js +12 -12
- package/Card.js +35 -23
- package/CardLayout.js +2 -2
- package/Chip.js +4 -4
- package/Clickable.js +23 -8
- package/CloseButton.js +2 -2
- package/Code.js +4 -4
- package/CollapsiblePanel.js +4 -4
- package/Color.js +10 -10
- package/ColumnLayout.js +2 -2
- package/ComboBox.js +9 -5
- package/Concertina.js +13 -13
- package/ControlGroup.js +19 -9
- package/Date.js +6 -6
- package/DefinitionList.js +2 -2
- package/Dropdown.js +4 -4
- package/EventListener.js +4 -4
- package/File.js +14 -14
- package/FormRows.js +6 -6
- package/Heading.js +2 -2
- package/Image.js +8 -8
- package/JSONTree.js +4 -4
- package/Layer.js +72 -22
- package/Link.js +6 -6
- package/List.js +2 -2
- package/Markdown.js +14 -14
- package/Menu.js +32 -32
- package/Message.js +6 -6
- package/MessageBar.js +16 -9
- package/Modal.js +4 -4
- package/ModalLayer.js +2 -2
- package/Monogram.js +27 -15
- package/Multiselect.js +6 -6
- package/Number.js +4 -4
- package/Paginator.js +14 -14
- package/Paragraph.js +2 -2
- package/Popover.js +6 -6
- package/Progress.js +2 -2
- package/RadioBar.js +4 -4
- package/RadioList.js +2 -2
- package/Resize.js +4 -4
- package/ResultsMenu.js +20 -20
- package/ScreenReaderContent.js +2 -2
- package/Scroll.js +4 -4
- package/ScrollContainerContext.js +2 -2
- package/Search.js +6 -6
- package/Select.js +2 -2
- package/SidePanel.js +2 -2
- package/Slider.js +4 -4
- package/SlidingPanels.js +4 -4
- package/StaticContent.js +2 -2
- package/StepBar.js +2 -2
- package/Switch.js +4 -4
- package/TabBar.js +11 -11
- package/TabLayout.js +4 -4
- package/Table.js +27 -30
- package/Text.js +17 -10
- package/Tooltip.js +15 -4
- package/TransitionOpen.js +2 -2
- package/WaitSpinner.js +2 -2
- package/package.json +9 -6
- package/stubs-splunkui.d.ts +13 -0
- package/types/src/Card/Body.d.ts +6 -1
- package/types/src/Clickable/Clickable.d.ts +5 -0
- package/types/src/ComboBox/ComboBox.d.ts +2 -1
- package/types/src/ControlGroup/ControlGroup.d.ts +9 -2
- package/types/src/Date/Date.d.ts +3 -3
- package/types/src/FormRows/FormRows.d.ts +1 -1
- package/types/src/FormRows/Row.d.ts +1 -1
- package/types/src/Layer/LayerStack.d.ts +8 -2
- package/types/src/Monogram/Monogram.d.ts +2 -2
- package/types/src/Number/Number.d.ts +3 -3
- package/types/src/Slider/Slider.d.ts +3 -3
- package/types/src/Text/Text.d.ts +4 -3
- package/types/src/Tooltip/Tooltip.d.ts +8 -5
- 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
|
@@ -33,7 +33,7 @@ declare type FormRowsProps = ClassComponentProps<FormRowsPropsBase, typeof defau
|
|
|
33
33
|
declare class FormRows extends Component<FormRowsProps, {}> {
|
|
34
34
|
static propTypes: React.WeakValidationMap<ClassComponentProps<FormRowsPropsBase, Required<Pick<FormRowsPropsBase, "header" | "disabled" | "addLabel">>, "div", never>>;
|
|
35
35
|
static defaultProps: Required<Pick<FormRowsPropsBase, "header" | "disabled" | "addLabel">>;
|
|
36
|
-
static Row: React.ComponentClass<Pick<import("./Row").RowPropsBase, "children" | "value" | "elementRef" | "
|
|
36
|
+
static Row: React.ComponentClass<Pick<import("./Row").RowPropsBase, "children" | "value" | "elementRef" | "index" | "onRequestRemove" | "rowIndex"> & Pick<PropTypes.InferProps<React.WeakValidationMap<import("./Row").RowPropsBase>>, never> & Pick<import("./Row").RowPropsBase, never>, any>;
|
|
37
37
|
/**
|
|
38
38
|
* Static function for adding a row.
|
|
39
39
|
*
|
|
@@ -34,6 +34,6 @@ declare class Row extends Component<RowPropsBase, {}> {
|
|
|
34
34
|
private handleRequestRemove;
|
|
35
35
|
render(): JSX.Element;
|
|
36
36
|
}
|
|
37
|
-
declare const SortableRow: React.ComponentClass<Pick<RowPropsBase, "children" | "value" | "elementRef" | "
|
|
37
|
+
declare const SortableRow: React.ComponentClass<Pick<RowPropsBase, "children" | "value" | "elementRef" | "index" | "onRequestRemove" | "rowIndex"> & Pick<PropTypes.InferProps<React.WeakValidationMap<RowPropsBase>>, never> & Pick<RowPropsBase, never>, any>;
|
|
38
38
|
export default SortableRow;
|
|
39
39
|
export type { Row as RowWithoutSortable, RowKeyDownHandler, RowPropsBase, RowRequestRemoveHandler };
|
|
@@ -7,7 +7,12 @@ import Layer from './Layer';
|
|
|
7
7
|
* @public
|
|
8
8
|
*/
|
|
9
9
|
export declare const LayerStackContext: React.Context<Layer[]>;
|
|
10
|
-
interface
|
|
10
|
+
interface LayerContextProps {
|
|
11
|
+
/** Whether or not to have each layer create its own CSS stacking context. */
|
|
12
|
+
separateStackingContexts?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare const LayerContext: React.Context<LayerContextProps>;
|
|
15
|
+
interface LayerStackGlobalProviderProps extends LayerContextProps {
|
|
11
16
|
children?: React.ReactNode;
|
|
12
17
|
/** The object used to store the layer stack variable, for example `window`. */
|
|
13
18
|
scope?: {
|
|
@@ -21,12 +26,13 @@ interface LayerStackGlobalProviderProps {
|
|
|
21
26
|
* Applications should only use this provider if there's a known need to support multiple
|
|
22
27
|
* instances of this library on the same page.
|
|
23
28
|
*/
|
|
24
|
-
declare function LayerStackGlobalProvider({ children, name, scope, }: LayerStackGlobalProviderProps): JSX.Element;
|
|
29
|
+
declare function LayerStackGlobalProvider({ children, name, scope, separateStackingContexts, }: LayerStackGlobalProviderProps): JSX.Element;
|
|
25
30
|
declare namespace LayerStackGlobalProvider {
|
|
26
31
|
var propTypes: {
|
|
27
32
|
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
28
33
|
name: PropTypes.Requireable<string>;
|
|
29
34
|
scope: PropTypes.Requireable<object>;
|
|
35
|
+
separateStackingContexts: PropTypes.Requireable<boolean>;
|
|
30
36
|
};
|
|
31
37
|
}
|
|
32
38
|
export { LayerStackGlobalProvider };
|
|
@@ -28,7 +28,7 @@ interface MonogramPropsBase {
|
|
|
28
28
|
*
|
|
29
29
|
* Adjusts the size of the `Monogram`.
|
|
30
30
|
*/
|
|
31
|
-
size?: 'small' | 'medium' | 'large' | 'xlarge';
|
|
31
|
+
size?: 'small' | 'medium' | 'large' | 'xlarge' | number;
|
|
32
32
|
}
|
|
33
33
|
declare const defaultProps: Required<Pick<MonogramPropsBase, 'backgroundColor' | 'size'>>;
|
|
34
34
|
declare type MonogramInteractiveProps = ComponentProps<MonogramPropsBase, 'button'> & typeof defaultProps & {
|
|
@@ -56,7 +56,7 @@ declare namespace Monogram {
|
|
|
56
56
|
initials: PropTypes.Validator<string>;
|
|
57
57
|
name: PropTypes.Requireable<string>;
|
|
58
58
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
59
|
-
size: PropTypes.Requireable<
|
|
59
|
+
size: PropTypes.Requireable<React.ReactText>;
|
|
60
60
|
};
|
|
61
61
|
var defaultProps: Required<Pick<MonogramPropsBase, "size" | "backgroundColor">>;
|
|
62
62
|
}
|