@splunk/react-ui 4.17.1 → 4.18.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 +2 -2
- package/AnimationToggle.js +5 -5
- package/Button.js +2 -2
- package/ButtonSimple.js +2 -2
- package/CHANGELOG.md +18 -2
- package/Calendar.js +2 -2
- package/Code.js +4 -4
- package/Color.js +202 -175
- package/ColumnLayout.js +6 -6
- package/Concertina.js +6 -6
- package/DefinitionList.js +2 -2
- package/Dropdown.js +4 -4
- package/DualListbox.js +9 -6
- package/File.js +7 -7
- package/FormRows.js +4 -4
- package/Heading.js +8 -4
- package/JSONTree.js +30 -28
- package/Layer.js +10 -10
- package/Link.js +2 -2
- package/List.js +7 -4
- package/MIGRATION.mdx +295 -0
- package/Markdown.js +12 -7
- package/Menu.js +15 -15
- package/Message.js +19 -19
- package/MessageBar.js +17 -17
- package/Modal.js +7 -7
- package/Multiselect.js +11 -11
- package/Number.js +3 -2
- package/Paginator.js +2 -2
- package/Popover.js +15 -11
- package/RadioBar.js +2 -2
- package/RadioList.js +2 -2
- package/Resize.js +2 -2
- package/Scroll.js +2 -2
- package/Select.js +6 -6
- package/SidePanel.js +2 -2
- package/Slider.js +5 -5
- package/StepBar.js +2 -2
- package/Switch.js +2 -2
- package/TabBar.js +66 -49
- package/Table.js +10 -10
- package/Text.js +5 -5
- package/TextArea.js +4 -4
- package/Typography.js +2 -2
- package/package.json +6 -11
- package/stubs-dependencies.d.ts +0 -9
- package/types/src/Button/Button.d.ts +5 -3
- package/types/src/Clickable/Clickable.d.ts +2 -1
- package/types/src/CollapsiblePanel/CollapsiblePanel.d.ts +1 -0
- package/types/src/Color/Color.d.ts +6 -6
- package/types/src/Color/Palette.d.ts +46 -0
- package/types/src/Concertina/Panel.d.ts +1 -0
- package/types/src/FormRows/Row.d.ts +1 -0
- package/types/src/Heading/Heading.d.ts +7 -2
- package/types/src/JSONTree/JSONTree.d.ts +2 -1
- package/types/src/Layer/Layer.d.ts +2 -0
- package/types/src/List/List.d.ts +9 -1
- package/types/src/List/docs/examples/CustomizedList.d.ts +2 -0
- package/types/src/List/docs/examples/OrderedList.d.ts +2 -0
- package/types/src/List/docs/examples/UnorderedList.d.ts +2 -0
- package/types/src/Markdown/Markdown.d.ts +1 -0
- package/types/src/Markdown/renderers/MarkdownList.d.ts +2 -0
- package/types/src/Number/Number.d.ts +9 -4
- package/types/src/Popover/Popover.d.ts +2 -0
- package/types/src/TabBar/Tab.d.ts +2 -0
- package/types/src/Table/Head.d.ts +1 -0
- package/types/src/Table/HeadCell.d.ts +1 -0
- package/types/src/Table/HeadDropdownCell.d.ts +1 -0
- package/types/src/Table/Table.d.ts +3 -1
- package/types/src/Text/Text.d.ts +3 -1
- package/types/src/TextArea/TextArea.d.ts +2 -0
- package/MIGRATION.md +0 -49
- package/types/src/List/docs/examples/Decimal.d.ts +0 -2
- package/types/src/List/docs/examples/Disc.d.ts +0 -2
- package/types/src/List/docs/examples/LowerAlpha.d.ts +0 -2
- package/types/src/List/docs/examples/UpperAlpha.d.ts +0 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { Component } from 'react';
|
|
2
2
|
import { legacyRefMode } from '@splunk/react-ui/Dropdown';
|
|
3
|
-
import { NavigationProviderClickHandler } from './NavigationProvider';
|
|
3
|
+
import { NavigationContext, NavigationProviderClickHandler } from './NavigationProvider';
|
|
4
4
|
import { ClassComponentProps } from '../utils/types';
|
|
5
5
|
export declare const isInternalLink: (to: string | undefined) => boolean;
|
|
6
6
|
interface ClickablePropsBase {
|
|
@@ -53,6 +53,7 @@ declare type ClickableProps = ClickableButtonProps | ClickableLinkProps;
|
|
|
53
53
|
*/
|
|
54
54
|
declare class Clickable extends Component<ClickableProps> {
|
|
55
55
|
private el;
|
|
56
|
+
context: React.ContextType<typeof NavigationContext>;
|
|
56
57
|
static contextType: React.Context<{
|
|
57
58
|
onClick?: NavigationProviderClickHandler | undefined;
|
|
58
59
|
prefix?: string | undefined;
|
|
@@ -67,6 +67,7 @@ interface CollapsiblePanelPropsBase {
|
|
|
67
67
|
overflow?: string;
|
|
68
68
|
/**
|
|
69
69
|
* When true, children are always rendered whether collapsed or not.
|
|
70
|
+
* Setting this to `true` can improve the performance of expanding panels at the cost of initial loading performance.
|
|
70
71
|
*/
|
|
71
72
|
renderChildrenWhenCollapsed?: boolean;
|
|
72
73
|
/**
|