@splunk/react-ui 4.6.0 → 4.9.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 +7 -7
- package/Anchor.js +2 -2
- package/Animation.js +2 -2
- package/AnimationToggle.js +2 -2
- package/Box.js +2 -2
- package/Button.js +13 -13
- package/ButtonGroup.js +4 -4
- package/ButtonSimple.js +6 -6
- package/CHANGELOG.md +41 -3
- package/Calendar.js +35 -35
- package/Card.js +49 -49
- package/CardLayout.js +4 -4
- package/Chip.js +10 -10
- package/Clickable.js +5 -4
- package/CloseButton.js +8 -8
- package/Code.js +4 -4
- package/CollapsiblePanel.js +9 -9
- package/Color.js +20 -20
- package/ColumnLayout.js +4 -4
- package/ComboBox.js +8 -8
- package/Concertina.js +15 -15
- package/ControlGroup.js +12 -12
- package/Date.js +10 -10
- package/DefinitionList.js +2 -2
- package/Dropdown.js +4 -4
- package/EventListener.js +4 -4
- package/FetchOptions.js +8 -8
- package/File.js +26 -26
- package/FormRows.js +13 -13
- package/Heading.js +2 -2
- package/Image.js +14 -14
- package/JSONTree.js +4 -4
- package/Layer.js +10 -10
- package/Link.js +6 -6
- package/List.js +2 -2
- package/Markdown.js +50 -15
- package/Menu.js +140 -75
- package/Message.js +246 -305
- package/MessageBar.d.ts +2 -0
- package/MessageBar.js +789 -0
- package/Modal.js +58 -53
- package/ModalLayer.js +5 -4
- package/Monogram.js +4 -4
- package/Multiselect.js +50 -41
- package/Number.js +8 -8
- package/Paginator.js +43 -43
- package/Paragraph.js +2 -2
- package/Popover.js +12 -12
- package/Progress.js +6 -6
- package/RadioBar.js +25 -12
- package/RadioList.js +2 -2
- package/Resize.js +8 -8
- package/ResultsMenu.js +25 -23
- package/ScreenReaderContent.js +2 -2
- package/Scroll.js +6 -6
- package/ScrollContainerContext.js +2 -2
- package/Search.js +14 -14
- package/Select.js +44 -35
- package/SidePanel.js +6 -6
- package/Slider.js +14 -14
- package/SlidingPanels.js +4 -4
- package/StaticContent.js +2 -2
- package/StepBar.js +18 -18
- package/Switch.js +17 -31
- package/TabBar.js +60 -46
- package/TabLayout.js +4 -4
- package/Table.js +57 -50
- package/Text.js +31 -30
- package/Tooltip.js +20 -16
- package/TransitionOpen.js +9 -9
- package/WaitSpinner.js +2 -2
- package/cypress/support/index.ts +1 -0
- package/package.json +16 -6
- package/stubs-splunkui.d.ts +1 -0
- package/types/src/Accordion/docs/examples/Controlled.d.ts +2 -0
- package/types/src/Accordion/docs/examples/FixedHeight.d.ts +2 -0
- package/types/src/Accordion/docs/examples/InDropdown.d.ts +2 -0
- package/types/src/Accordion/docs/examples/Inset.d.ts +2 -0
- package/types/src/Accordion/docs/examples/Uncontrolled.d.ts +2 -0
- package/types/src/Anchor/docs/examples/Basic.d.ts +2 -0
- package/types/src/Animation/Animation.d.ts +0 -1
- package/types/src/AnimationToggle/docs/examples/Provider.d.ts +11 -0
- package/types/src/AnimationToggle/docs/examples/ReducedMotionComponent.d.ts +2 -0
- package/types/src/AnimationToggle/docs/examples/ReducedMotionHook.d.ts +2 -0
- package/types/src/AnimationToggle/docs/examples/ToggleComponent.d.ts +9 -0
- package/types/src/AnimationToggle/docs/examples/ToggleHook.d.ts +2 -0
- package/types/src/Button/docs/examples/Basic.d.ts +2 -0
- package/types/src/Button/docs/examples/Block.d.ts +2 -0
- package/types/src/Button/docs/examples/Disabled.d.ts +2 -0
- package/types/src/Button/docs/examples/Icons.d.ts +2 -0
- package/types/src/Button/docs/examples/Menus.d.ts +2 -0
- package/types/src/Button/docs/examples/Selected.d.ts +2 -0
- package/types/src/Button/docs/examples/To.d.ts +2 -0
- package/types/src/Button/docs/examples/Truncated.d.ts +2 -0
- package/types/src/Button/docs/examples/prisma/Basic.d.ts +2 -0
- package/types/src/Button/docs/examples/prisma/Block.d.ts +2 -0
- package/types/src/Button/docs/examples/prisma/Disabled.d.ts +2 -0
- package/types/src/Button/docs/examples/prisma/Icons.d.ts +2 -0
- package/types/src/Button/docs/examples/prisma/Menus.d.ts +2 -0
- package/types/src/Button/docs/examples/prisma/To.d.ts +2 -0
- package/types/src/Button/docs/examples/prisma/Truncated.d.ts +2 -0
- package/types/src/ButtonGroup/docs/examples/Basic.d.ts +1 -0
- package/types/src/ButtonGroup/docs/examples/prisma/Basic.d.ts +1 -0
- package/types/src/ButtonSimple/ButtonSimple.d.ts +2 -6
- package/types/src/Calendar/DateTable.d.ts +0 -1
- package/types/src/Card/docs/examples/Basic.d.ts +2 -0
- package/types/src/Card/docs/examples/Clickable.d.ts +2 -0
- package/types/src/Card/docs/examples/Full.d.ts +2 -0
- package/types/src/Card/docs/examples/Images.d.ts +2 -0
- package/types/src/Card/docs/examples/Selectable.d.ts +2 -0
- package/types/src/Card/docs/examples/prisma/Actions.d.ts +2 -0
- package/types/src/CardLayout/docs/examples/Basic.d.ts +2 -0
- package/types/src/CardLayout/docs/examples/Interactive.d.ts +28 -0
- package/types/src/Chip/docs/examples/Appearance.d.ts +2 -0
- package/types/src/Chip/docs/examples/Basic.d.ts +2 -0
- package/types/src/Chip/docs/examples/CustomColors.d.ts +2 -0
- package/types/src/Chip/docs/examples/Disabled.d.ts +2 -0
- package/types/src/Chip/docs/examples/Icon.d.ts +2 -0
- package/types/src/Chip/docs/examples/Removable.d.ts +2 -0
- package/types/src/Chip/docs/examples/prisma/Appearance.d.ts +2 -0
- package/types/src/Clickable/NavigationProvider.d.ts +1 -0
- package/types/src/Clickable/docs/examples/Basic.d.ts +2 -0
- package/types/src/Clickable/docs/examples/NavigationProvider.d.ts +2 -0
- package/types/src/Code/docs/examples/Default.d.ts +2 -0
- package/types/src/Code/docs/examples/HideIndent.d.ts +2 -0
- package/types/src/Code/docs/examples/Language.d.ts +2 -0
- package/types/src/CollapsiblePanel/docs/examples/BasicControlled.d.ts +2 -0
- package/types/src/CollapsiblePanel/docs/examples/BasicUncontrolled.d.ts +2 -0
- package/types/src/CollapsiblePanel/docs/examples/MultiControlled.d.ts +2 -0
- package/types/src/CollapsiblePanel/docs/examples/MultiUncontrolled.d.ts +2 -0
- package/types/src/CollapsiblePanel/docs/examples/TitleWithActions.d.ts +2 -0
- package/types/src/CollapsiblePanel/docs/examples/prisma/BasicControlled.d.ts +2 -0
- package/types/src/CollapsiblePanel/docs/examples/prisma/BasicUncontrolled.d.ts +2 -0
- package/types/src/CollapsiblePanel/docs/examples/prisma/Content.d.ts +1 -0
- package/types/src/CollapsiblePanel/docs/examples/prisma/MultiControlled.d.ts +2 -0
- package/types/src/CollapsiblePanel/docs/examples/prisma/MultiUncontrolled.d.ts +2 -0
- package/types/src/Color/Color.d.ts +3 -3
- package/types/src/Color/docs/examples/Controlled.d.ts +2 -0
- package/types/src/Color/docs/examples/Null.d.ts +2 -0
- package/types/src/Color/docs/examples/ThemeVariables.d.ts +1 -0
- package/types/src/Color/docs/examples/Transparent.d.ts +2 -0
- package/types/src/Color/docs/examples/Uncontrolled.d.ts +2 -0
- package/types/src/Color/docs/examples/prisma/Controlled.d.ts +2 -0
- package/types/src/Color/docs/examples/prisma/CustomizedPalette.d.ts +1 -0
- package/types/src/Color/docs/examples/prisma/HideInput.d.ts +2 -0
- package/types/src/Color/docs/examples/prisma/ThemeVariables.d.ts +1 -0
- package/types/src/Color/docs/examples/prisma/Uncontrolled.d.ts +2 -0
- package/types/src/ColumnLayout/docs/examples/AlignItems.d.ts +2 -0
- package/types/src/ColumnLayout/docs/examples/Basic.d.ts +2 -0
- package/types/src/ColumnLayout/docs/examples/Dividers.d.ts +2 -0
- package/types/src/ColumnLayout/docs/examples/Gutters.d.ts +2 -0
- package/types/src/ComboBox/docs/examples/Controlled.d.ts +2 -0
- package/types/src/ComboBox/docs/examples/Fetching.d.ts +2 -0
- package/types/src/ComboBox/docs/examples/Headings.d.ts +1 -0
- package/types/src/ComboBox/docs/examples/Label.d.ts +2 -0
- package/types/src/ComboBox/docs/examples/LoadMoreOnScrollBottom.d.ts +2 -0
- package/types/src/ComboBox/docs/examples/Uncontrolled.d.ts +2 -0
- package/types/src/Concertina/docs/examples/Basic.d.ts +2 -0
- package/types/src/Concertina/docs/examples/Disabled.d.ts +9 -0
- package/types/src/Concertina/docs/examples/Status.d.ts +2 -0
- package/types/src/ControlGroup/docs/examples/Basic.d.ts +2 -0
- package/types/src/ControlGroup/docs/examples/CustomizedLabelTarget.d.ts +10 -0
- package/types/src/ControlGroup/docs/examples/Error.d.ts +2 -0
- package/types/src/ControlGroup/docs/examples/HelpWithLinks.d.ts +2 -0
- package/types/src/ControlGroup/docs/examples/LabelTop.d.ts +2 -0
- package/types/src/ControlGroup/docs/examples/LayoutFill.d.ts +2 -0
- package/types/src/ControlGroup/docs/examples/LayoutFillJoin.d.ts +2 -0
- package/types/src/ControlGroup/docs/examples/LayoutNone.d.ts +2 -0
- package/types/src/Date/Icon.d.ts +0 -1
- package/types/src/Date/docs/examples/Basic.d.ts +2 -0
- package/types/src/Date/docs/examples/Controlled.d.ts +10 -0
- package/types/src/Date/docs/examples/CustomDate.d.ts +2 -0
- package/types/src/Date/docs/examples/Disabled.d.ts +2 -0
- package/types/src/Date/docs/examples/HighlightToday.d.ts +10 -0
- package/types/src/DefinitionList/docs/examples/Basic.d.ts +2 -0
- package/types/src/DefinitionList/docs/examples/Customize.d.ts +2 -0
- package/types/src/Dropdown/docs/examples/Basic.d.ts +2 -0
- package/types/src/Dropdown/docs/examples/BasicMenu.d.ts +2 -0
- package/types/src/Dropdown/docs/examples/ControlledDropdown.d.ts +2 -0
- package/types/src/Dropdown/docs/examples/Dialog.d.ts +2 -0
- package/types/src/Dropdown/docs/examples/OtherToggles.d.ts +2 -0
- package/types/src/Dropdown/docs/examples/ScrollContainer.d.ts +2 -0
- package/types/src/Dropdown/docs/examples/ScrollingMenu.d.ts +2 -0
- package/types/src/Dropdown/docs/examples/prisma/Basic.d.ts +2 -0
- package/types/src/Dropdown/docs/examples/prisma/BasicMenu.d.ts +2 -0
- package/types/src/Dropdown/docs/examples/prisma/ControlledDropdown.d.ts +2 -0
- package/types/src/Dropdown/docs/examples/prisma/Dialog.d.ts +2 -0
- package/types/src/Dropdown/docs/examples/prisma/OtherToggles.d.ts +2 -0
- package/types/src/Dropdown/docs/examples/prisma/ScrollingMenu.d.ts +2 -0
- package/types/src/File/Icon.d.ts +0 -1
- package/types/src/File/IconCloud.d.ts +0 -1
- package/types/src/File/PaperClip.d.ts +0 -1
- package/types/src/File/Retry.d.ts +0 -1
- package/types/src/File/Trash.d.ts +0 -1
- package/types/src/File/docs/examples/CustomChildren.d.ts +12 -0
- package/types/src/File/docs/examples/CustomizedMessages.d.ts +1 -0
- package/types/src/File/docs/examples/Disabled.d.ts +12 -0
- package/types/src/File/docs/examples/DropAnywhere.d.ts +15 -0
- package/types/src/File/docs/examples/Error.d.ts +1 -0
- package/types/src/File/docs/examples/FullScreen.d.ts +15 -0
- package/types/src/File/docs/examples/Multi.d.ts +16 -0
- package/types/src/File/docs/examples/Progress.d.ts +15 -0
- package/types/src/File/docs/examples/Single.d.ts +12 -0
- package/types/src/File/docs/examples/prisma/Disabled.d.ts +12 -0
- package/types/src/File/docs/examples/prisma/Error.d.ts +1 -0
- package/types/src/File/docs/examples/prisma/Progress.d.ts +1 -0
- package/types/src/FormRows/docs/examples/Basic.d.ts +12 -0
- package/types/src/FormRows/docs/examples/Header.d.ts +12 -0
- package/types/src/FormRows/docs/examples/Menu.d.ts +13 -0
- package/types/src/FormRows/docs/examples/ReorderOnly.d.ts +10 -0
- package/types/src/Heading/docs/examples/Basic.d.ts +2 -0
- package/types/src/Image/docs/examples/Basic.d.ts +2 -0
- package/types/src/JSONTree/docs/examples/Basic.d.ts +1 -0
- package/types/src/JSONTree/docs/examples/Events.d.ts +13 -0
- package/types/src/Layer/docs/examples/Basic.d.ts +2 -0
- package/types/src/Link/docs/examples/Basic.d.ts +2 -0
- package/types/src/Link/docs/examples/Disabled.d.ts +2 -0
- package/types/src/Link/docs/examples/Inline.d.ts +2 -0
- package/types/src/Link/docs/examples/NewTab.d.ts +2 -0
- package/types/src/List/docs/examples/Decimal.d.ts +2 -0
- package/types/src/List/docs/examples/Disc.d.ts +2 -0
- package/types/src/List/docs/examples/LowerAlpha.d.ts +2 -0
- package/types/src/List/docs/examples/UpperAlpha.d.ts +2 -0
- package/types/src/Markdown/Markdown.d.ts +7 -1
- package/types/src/Markdown/docs/examples/Basic.d.ts +2 -0
- package/types/src/Markdown/docs/examples/I18n.d.ts +2 -0
- package/types/src/Markdown/docs/examples/RenderProps.d.ts +2 -0
- package/types/src/Markdown/renderers/MarkdownAnchorHeading.d.ts +15 -0
- package/types/src/Markdown/renderers/MarkdownCode.d.ts +0 -1
- package/types/src/Markdown/renderers/MarkdownCodeBlock.d.ts +0 -1
- package/types/src/Markdown/renderers/MarkdownImage.d.ts +0 -1
- package/types/src/Markdown/renderers/index.d.ts +2 -1
- package/types/src/Menu/Divider.d.ts +0 -1
- package/types/src/Menu/docs/examples/Basic.d.ts +2 -0
- package/types/src/Menu/docs/examples/Complex.d.ts +2 -0
- package/types/src/Menu/docs/examples/Descriptions.d.ts +2 -0
- package/types/src/Menu/docs/examples/Disabled.d.ts +2 -0
- package/types/src/Menu/docs/examples/Dividers.d.ts +2 -0
- package/types/src/Menu/docs/examples/Headings.d.ts +2 -0
- package/types/src/Menu/docs/examples/Icons.d.ts +2 -0
- package/types/src/Menu/docs/examples/Links.d.ts +2 -0
- package/types/src/Menu/docs/examples/MatchRanges.d.ts +2 -0
- package/types/src/Menu/docs/examples/Selectable.d.ts +2 -0
- package/types/src/Menu/docs/examples/SelectableWithIcons.d.ts +2 -0
- package/types/src/Menu/docs/examples/Truncate.d.ts +2 -0
- package/types/src/Message/Link.d.ts +2 -0
- package/types/src/Message/Message.d.ts +6 -1
- package/types/src/Message/docs/examples/Basic.d.ts +2 -0
- package/types/src/Message/docs/examples/Content.d.ts +2 -0
- package/types/src/Message/docs/examples/Fill.d.ts +2 -0
- package/types/src/Message/docs/examples/Removable.d.ts +2 -0
- package/types/src/Message/docs/examples/prisma/Title.d.ts +2 -0
- package/types/src/MessageBar/MessageBar.d.ts +28 -0
- package/types/src/MessageBar/docs/examples/Types.d.ts +2 -0
- package/types/src/MessageBar/index.d.ts +2 -0
- package/types/src/Modal/Modal.d.ts +1 -0
- package/types/src/Modal/docs/examples/Basic.d.ts +2 -0
- package/types/src/Modal/docs/examples/InitialFocus.d.ts +2 -0
- package/types/src/Modal/docs/examples/TypicalUsage.d.ts +2 -0
- package/types/src/Modal/docs/examples/Undismissable.d.ts +2 -0
- package/types/src/Modal/docs/examples/prisma/TypicalUsage.d.ts +2 -0
- package/types/src/Monogram/Monogram.d.ts +2 -2
- package/types/src/Monogram/docs/examples/BackgroundAuto.d.ts +1 -0
- package/types/src/Monogram/docs/examples/BackgroundCustom.d.ts +1 -0
- package/types/src/Monogram/docs/examples/Basic.d.ts +1 -0
- package/types/src/Monogram/docs/examples/Interactive.d.ts +1 -0
- package/types/src/Monogram/docs/examples/Size.d.ts +1 -0
- package/types/src/Multiselect/docs/examples/Children.d.ts +10 -0
- package/types/src/Multiselect/docs/examples/Compact.d.ts +2 -0
- package/types/src/Multiselect/docs/examples/Controlled.d.ts +10 -0
- package/types/src/Multiselect/docs/examples/CustomizeSelected.d.ts +10 -0
- package/types/src/Multiselect/docs/examples/Disabled.d.ts +10 -0
- package/types/src/Multiselect/docs/examples/Error.d.ts +10 -0
- package/types/src/Multiselect/docs/examples/Fetching.d.ts +23 -0
- package/types/src/Multiselect/docs/examples/Headings.d.ts +1 -0
- package/types/src/Multiselect/docs/examples/Icons.d.ts +2 -0
- package/types/src/Multiselect/docs/examples/LoadMoreOnScrollBottom.d.ts +26 -0
- package/types/src/Multiselect/docs/examples/NewValues.d.ts +10 -0
- package/types/src/Multiselect/docs/examples/TabInput.d.ts +10 -0
- package/types/src/Multiselect/docs/examples/Uncontrolled.d.ts +2 -0
- package/types/src/Number/IncrementIcon.d.ts +0 -1
- package/types/src/Number/Number.d.ts +3 -3
- package/types/src/Number/docs/examples/Basic.d.ts +10 -0
- package/types/src/Number/docs/examples/Disabled.d.ts +2 -0
- package/types/src/Number/docs/examples/Error.d.ts +2 -0
- package/types/src/Number/docs/examples/Limits.d.ts +10 -0
- package/types/src/Number/docs/examples/Locale.d.ts +10 -0
- package/types/src/Number/docs/examples/Uncontrolled.d.ts +2 -0
- package/types/src/Paginator/PageSeparator.d.ts +0 -1
- package/types/src/Paginator/docs/examples/Basic.d.ts +2 -0
- package/types/src/Paragraph/docs/examples/Basic.d.ts +2 -0
- package/types/src/Popover/Popover.d.ts +1 -2
- package/types/src/Popover/docs/examples/Basic.d.ts +2 -0
- package/types/src/Progress/docs/examples/Basic.d.ts +2 -0
- package/types/src/Progress/docs/examples/prisma/Type.d.ts +2 -0
- package/types/src/RadioBar/Option.d.ts +13 -3
- package/types/src/RadioBar/RadioBar.d.ts +2 -0
- package/types/src/RadioBar/docs/examples/AdornmentAriaExamples.d.ts +2 -0
- package/types/src/RadioBar/docs/examples/Basic.d.ts +2 -0
- package/types/src/RadioBar/docs/examples/Disabled.d.ts +2 -0
- package/types/src/RadioBar/docs/examples/Error.d.ts +2 -0
- package/types/src/RadioBar/docs/examples/Uncontrolled.d.ts +2 -0
- package/types/src/RadioList/docs/examples/Basic.d.ts +2 -0
- package/types/src/RadioList/docs/examples/Composing.d.ts +2 -0
- package/types/src/RadioList/docs/examples/Disabled.d.ts +2 -0
- package/types/src/RadioList/docs/examples/Error.d.ts +2 -0
- package/types/src/RadioList/docs/examples/Row.d.ts +2 -0
- package/types/src/RadioList/docs/examples/Uncontrolled.d.ts +2 -0
- package/types/src/Resize/docs/examples/Appearance.d.ts +2 -0
- package/types/src/Resize/docs/examples/Percentage.d.ts +2 -0
- package/types/src/Resize/docs/examples/SizingInner.d.ts +2 -0
- package/types/src/Resize/docs/examples/SizingOuter.d.ts +2 -0
- package/types/src/Resize/docs/examples/Typical.d.ts +2 -0
- package/types/src/ScreenReaderContent/docs/examples/Basic.d.ts +2 -0
- package/types/src/Scroll/docs/examples/Controlled.d.ts +13 -0
- package/types/src/Scroll/docs/examples/Uncontrolled.d.ts +2 -0
- package/types/src/ScrollContainerContext/docs/examples/Consumer.d.ts +2 -0
- package/types/src/ScrollContainerContext/docs/examples/Provider.d.ts +2 -0
- package/types/src/Search/docs/examples/Controlled.d.ts +2 -0
- package/types/src/Search/docs/examples/Loading.d.ts +2 -0
- package/types/src/Search/docs/examples/Options.d.ts +2 -0
- package/types/src/Search/docs/examples/Results.d.ts +2 -0
- package/types/src/Select/Select.d.ts +2 -2
- package/types/src/Select/SelectBase.d.ts +3 -3
- package/types/src/Select/docs/examples/Appearance.d.ts +14 -0
- package/types/src/Select/docs/examples/Basic.d.ts +10 -0
- package/types/src/Select/docs/examples/Children.d.ts +10 -0
- package/types/src/Select/docs/examples/Descriptions.d.ts +10 -0
- package/types/src/Select/docs/examples/Error.d.ts +2 -0
- package/types/src/Select/docs/examples/Fetching.d.ts +23 -0
- package/types/src/Select/docs/examples/Filter.d.ts +10 -0
- package/types/src/Select/docs/examples/Headings.d.ts +10 -0
- package/types/src/Select/docs/examples/Icons.d.ts +10 -0
- package/types/src/Select/docs/examples/LoadMoreOnScrollBottom.d.ts +25 -0
- package/types/src/Select/docs/examples/Prefix.d.ts +10 -0
- package/types/src/Select/docs/examples/Truncate.d.ts +10 -0
- package/types/src/Select/docs/examples/Uncontrolled.d.ts +2 -0
- package/types/src/Select/docs/examples/prisma/Appearance.d.ts +14 -0
- package/types/src/SidePanel/docs/examples/Basic.d.ts +2 -0
- package/types/src/SidePanel/docs/examples/ChangeSize.d.ts +2 -0
- package/types/src/SidePanel/docs/examples/Composition.d.ts +2 -0
- package/types/src/Slider/docs/examples/Basic.d.ts +2 -0
- package/types/src/Slider/docs/examples/Controlled.d.ts +12 -0
- package/types/src/Slider/docs/examples/CustomLabels.d.ts +12 -0
- package/types/src/Slider/docs/examples/Disabled.d.ts +2 -0
- package/types/src/Slider/docs/examples/StepMarks.d.ts +2 -0
- package/types/src/Slider/docs/examples/prisma/Error.d.ts +2 -0
- package/types/src/SlidingPanels/docs/examples/Basic.d.ts +11 -0
- package/types/src/SlidingPanels/docs/examples/Dropdown.d.ts +11 -0
- package/types/src/SlidingPanels/docs/examples/Modal.d.ts +14 -0
- package/types/src/StaticContent/docs/examples/Basic.d.ts +2 -0
- package/types/src/StaticContent/docs/examples/FieldValue.d.ts +2 -0
- package/types/src/StepBar/docs/examples/Basic.d.ts +2 -0
- package/types/src/StepBar/docs/examples/prisma/Error.d.ts +2 -0
- package/types/src/Switch/CheckIcon.d.ts +0 -1
- package/types/src/Switch/Switch.d.ts +7 -7
- package/types/src/Switch/docs/examples/Basic.d.ts +10 -0
- package/types/src/Switch/docs/examples/Disabled.d.ts +10 -0
- package/types/src/Switch/docs/examples/Error.d.ts +2 -0
- package/types/src/TabBar/docs/examples/Basic.d.ts +2 -0
- package/types/src/TabBar/docs/examples/IconsInline.d.ts +2 -0
- package/types/src/TabBar/docs/examples/IconsSmall.d.ts +2 -0
- package/types/src/TabBar/docs/examples/Tooltips.d.ts +2 -0
- package/types/src/TabBar/docs/examples/Vertical.d.ts +2 -0
- package/types/src/TabBar/docs/examples/VerticalSmallIcons.d.ts +2 -0
- package/types/src/TabBar/docs/examples/WithCount.d.ts +2 -0
- package/types/src/TabBar/docs/examples/prisma/Context.d.ts +2 -0
- package/types/src/TabBar/docs/examples/prisma/Disabled.d.ts +2 -0
- package/types/src/TabLayout/docs/examples/AutoActivate.d.ts +2 -0
- package/types/src/TabLayout/docs/examples/Controlled.d.ts +2 -0
- package/types/src/TabLayout/docs/examples/Icons.d.ts +2 -0
- package/types/src/TabLayout/docs/examples/Uncontrolled.d.ts +2 -0
- package/types/src/TabLayout/docs/examples/Vertical.d.ts +2 -0
- package/types/src/TabLayout/docs/examples/VerticalIcons.d.ts +2 -0
- package/types/src/TabLayout/docs/examples/prisma/Context.d.ts +2 -0
- package/types/src/Table/DragHandle.d.ts +0 -1
- package/types/src/Table/HeadExpandRowsIcon.d.ts +0 -1
- package/types/src/Table/Toggle.d.ts +0 -1
- package/types/src/Table/docs/examples/Basic.d.ts +2 -0
- package/types/src/Table/docs/examples/Click.d.ts +16 -0
- package/types/src/Table/docs/examples/ClickRows.d.ts +16 -0
- package/types/src/Table/docs/examples/Complex.d.ts +39 -0
- package/types/src/Table/docs/examples/DockedHeader.d.ts +2 -0
- package/types/src/Table/docs/examples/ExpandableRows.d.ts +2 -0
- package/types/src/Table/docs/examples/ExpandableRowsControlled.d.ts +2 -0
- package/types/src/Table/docs/examples/FixedHeader.d.ts +2 -0
- package/types/src/Table/docs/examples/HeadDropdownCell.d.ts +18 -0
- package/types/src/Table/docs/examples/ReorderColumns.d.ts +21 -0
- package/types/src/Table/docs/examples/ReorderRows.d.ts +21 -0
- package/types/src/Table/docs/examples/Resizable.d.ts +23 -0
- package/types/src/Table/docs/examples/ResizableFill.d.ts +23 -0
- package/types/src/Table/docs/examples/Selectable.d.ts +18 -0
- package/types/src/Table/docs/examples/SortableColumns.d.ts +12 -0
- package/types/src/Table/docs/examples/prisma/Basic.d.ts +2 -0
- package/types/src/Table/docs/examples/prisma/Complex.d.ts +48 -0
- package/types/src/Table/docs/examples/prisma/DockedHeader.d.ts +2 -0
- package/types/src/Table/docs/examples/prisma/RowActions.d.ts +39 -0
- package/types/src/Text/IconOutlinedHide.d.ts +0 -1
- package/types/src/Text/IconOutlinedView.d.ts +0 -1
- package/types/src/Text/Text.d.ts +5 -5
- package/types/src/Text/docs/examples/Basic.d.ts +10 -0
- package/types/src/Text/docs/examples/CustomizedIcon.d.ts +2 -0
- package/types/src/Text/docs/examples/Disabled.d.ts +2 -0
- package/types/src/Text/docs/examples/Error.d.ts +10 -0
- package/types/src/Text/docs/examples/Inline.d.ts +10 -0
- package/types/src/Text/docs/examples/Multiline.d.ts +10 -0
- package/types/src/Text/docs/examples/Password.d.ts +10 -0
- package/types/src/Text/docs/examples/Search.d.ts +10 -0
- package/types/src/Text/docs/examples/Uncontrolled.d.ts +2 -0
- package/types/src/Text/docs/examples/prisma/Multiline.d.ts +10 -0
- package/types/src/Text/docs/examples/prisma/Search.d.ts +10 -0
- package/types/src/Tooltip/InfoIcon.d.ts +0 -1
- package/types/src/Tooltip/Tooltip.d.ts +7 -5
- package/types/src/Tooltip/docs/examples/Basic.d.ts +2 -0
- package/types/src/Tooltip/docs/examples/ContentRelationship.d.ts +2 -0
- package/types/src/Tooltip/docs/examples/Controlled.d.ts +12 -0
- package/types/src/Tooltip/docs/examples/CustomContent.d.ts +2 -0
- package/types/src/Tooltip/docs/examples/CustomDelay.d.ts +2 -0
- package/types/src/TransitionOpen/docs/examples/ExpandHeight.d.ts +2 -0
- package/types/src/TransitionOpen/docs/examples/ExpandWidth.d.ts +2 -0
- package/types/src/TransitionOpen/docs/examples/None.d.ts +2 -0
- package/types/src/TransitionOpen/docs/examples/SlideFromBottom.d.ts +2 -0
- package/types/src/TransitionOpen/docs/examples/SlideFromLeft.d.ts +2 -0
- package/types/src/TransitionOpen/docs/examples/SlideFromRight.d.ts +2 -0
- package/types/src/TransitionOpen/docs/examples/SlideFromTop.d.ts +2 -0
- package/types/src/WaitSpinner/docs/examples/Basic.d.ts +2 -0
- package/types/src/WaitSpinner/docs/examples/prisma/Basic.d.ts +2 -0
- package/types/src/fixtures/FetchOptions.d.ts +2 -0
- package/types/src/fixtures/text.d.ts +1 -0
- package/types/src/icons/Alert.d.ts +0 -1
- package/types/src/icons/AlertFilled.d.ts +0 -1
- package/types/src/icons/CaretDown.d.ts +0 -1
- package/types/src/icons/CaretRight.d.ts +0 -1
- package/types/src/icons/Check.d.ts +0 -1
- package/types/src/icons/ChevronDown.d.ts +0 -1
- package/types/src/icons/ChevronLeft.d.ts +0 -1
- package/types/src/icons/ChevronRight.d.ts +0 -1
- package/types/src/icons/CrossMark.d.ts +0 -1
- package/types/src/icons/External.d.ts +0 -1
- package/types/src/icons/InfoFilled.d.ts +0 -1
- package/types/src/icons/More.d.ts +0 -1
- package/types/src/icons/MoreVertical.d.ts +0 -1
- package/types/src/icons/Plus.d.ts +0 -1
- package/types/src/icons/SVG.d.ts +0 -1
- package/types/src/icons/Search.d.ts +0 -1
- package/types/src/icons/Sort.d.ts +0 -1
- package/types/src/icons/SortedDown.d.ts +0 -1
- package/types/src/icons/SortedUp.d.ts +0 -1
- package/types/src/icons/Success.d.ts +0 -1
- package/types/src/icons/SuccessFilled.d.ts +0 -1
- package/types/src/icons/WarningFilled.d.ts +0 -1
- package/types/src/utils/types.d.ts +0 -1
- package/unit-test-setup-testing-library.ts +9 -0
- package/usePrevious.js +2 -2
- package/types/src/Message/Banner.d.ts +0 -8
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Component } from 'react';
|
|
2
|
+
import { SliderChangeHandler } from '@splunk/react-ui/Slider';
|
|
3
|
+
import { NumberChangeHandler } from '@splunk/react-ui/Number';
|
|
4
|
+
declare class Controlled extends Component<{}, {
|
|
5
|
+
value?: number;
|
|
6
|
+
}> {
|
|
7
|
+
constructor(props: {});
|
|
8
|
+
handleSliderChange: SliderChangeHandler;
|
|
9
|
+
handleNumberChange: NumberChangeHandler;
|
|
10
|
+
render(): JSX.Element;
|
|
11
|
+
}
|
|
12
|
+
export default Controlled;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Component } from 'react';
|
|
2
|
+
import { SliderChangeHandler } from '@splunk/react-ui/Slider';
|
|
3
|
+
declare class CustomLabels extends Component<{}, {
|
|
4
|
+
displayValue: string;
|
|
5
|
+
value: number;
|
|
6
|
+
}> {
|
|
7
|
+
static convertValueToLabel(value: number): string;
|
|
8
|
+
constructor(props: {});
|
|
9
|
+
handleChange: SliderChangeHandler;
|
|
10
|
+
render(): JSX.Element;
|
|
11
|
+
}
|
|
12
|
+
export default CustomLabels;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Component } from 'react';
|
|
2
|
+
declare class Basic extends Component<{}, {
|
|
3
|
+
activePanelId: string;
|
|
4
|
+
transition: 'forward' | 'backward';
|
|
5
|
+
}> {
|
|
6
|
+
constructor(props: {});
|
|
7
|
+
goBack: () => void;
|
|
8
|
+
goForward: () => void;
|
|
9
|
+
render(): JSX.Element;
|
|
10
|
+
}
|
|
11
|
+
export default Basic;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Component } from 'react';
|
|
2
|
+
declare class DropdownExample extends Component<{}, {
|
|
3
|
+
activePanelId: string;
|
|
4
|
+
transition: 'forward' | 'backward';
|
|
5
|
+
}> {
|
|
6
|
+
constructor(props: {});
|
|
7
|
+
goBack: () => void;
|
|
8
|
+
goForward: () => void;
|
|
9
|
+
render(): JSX.Element;
|
|
10
|
+
}
|
|
11
|
+
export default DropdownExample;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Component } from 'react';
|
|
2
|
+
declare class ModalExample extends Component<{}, {
|
|
3
|
+
activePanelId: string;
|
|
4
|
+
modalOpen: boolean;
|
|
5
|
+
transition: 'forward' | 'backward';
|
|
6
|
+
}> {
|
|
7
|
+
constructor(props: {});
|
|
8
|
+
goBack: () => void;
|
|
9
|
+
goForward: () => void;
|
|
10
|
+
open: () => void;
|
|
11
|
+
close: () => void;
|
|
12
|
+
render(): JSX.Element;
|
|
13
|
+
}
|
|
14
|
+
export default ModalExample;
|
|
@@ -47,15 +47,15 @@ interface SwitchPropsBase {
|
|
|
47
47
|
*/
|
|
48
48
|
selected?: boolean | 'some';
|
|
49
49
|
/**
|
|
50
|
-
* The
|
|
50
|
+
* The customized content presented to screen readers when selected.
|
|
51
51
|
*/
|
|
52
52
|
selectedLabel?: string;
|
|
53
53
|
/**
|
|
54
|
-
* The
|
|
54
|
+
* The customized content presented to screen readers when selected="some".
|
|
55
55
|
*/
|
|
56
56
|
someSelectedLabel?: string;
|
|
57
57
|
/**
|
|
58
|
-
* The
|
|
58
|
+
* The customized content presented to screen readers when unselected.
|
|
59
59
|
*/
|
|
60
60
|
unselectedLabel?: string;
|
|
61
61
|
/**
|
|
@@ -64,7 +64,7 @@ interface SwitchPropsBase {
|
|
|
64
64
|
*/
|
|
65
65
|
value?: any;
|
|
66
66
|
}
|
|
67
|
-
declare const defaultProps: Required<Pick<SwitchPropsBase, 'appearance' | 'disabled' | 'error' | 'inline' | 'interactive' | 'selected'
|
|
67
|
+
declare const defaultProps: Required<Pick<SwitchPropsBase, 'appearance' | 'disabled' | 'error' | 'inline' | 'interactive' | 'selected'>>;
|
|
68
68
|
interface SwitchCheckboxWithSomePropsBase extends SwitchPropsBase {
|
|
69
69
|
appearance?: 'checkbox';
|
|
70
70
|
onClick?: SwitchCheckboxWithSomeClickHandler;
|
|
@@ -84,12 +84,12 @@ declare class Switch extends Component<SwitchProps> {
|
|
|
84
84
|
private clickableId;
|
|
85
85
|
private labelId;
|
|
86
86
|
private toggle;
|
|
87
|
-
static propTypes: React.WeakValidationMap<SwitchCheckboxWithSomePropsBase & Required<Pick<SwitchPropsBase, "disabled" | "selected" | "appearance" | "inline" | "error" | "interactive"
|
|
87
|
+
static propTypes: React.WeakValidationMap<SwitchCheckboxWithSomePropsBase & Required<Pick<SwitchPropsBase, "disabled" | "selected" | "appearance" | "inline" | "error" | "interactive">> & Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "slot" | "style" | "title" | "onChange" | "onPause" | "className" | "color" | "lang" | "role" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is"> & {
|
|
88
88
|
ref?: ((instance: Switch | null) => void) | React.RefObject<Switch> | null | undefined;
|
|
89
|
-
}> | React.WeakValidationMap<SwitchNoSomePropsBase & Required<Pick<SwitchPropsBase, "disabled" | "selected" | "appearance" | "inline" | "error" | "interactive"
|
|
89
|
+
}> | React.WeakValidationMap<SwitchNoSomePropsBase & Required<Pick<SwitchPropsBase, "disabled" | "selected" | "appearance" | "inline" | "error" | "interactive">> & Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "slot" | "style" | "title" | "onChange" | "onPause" | "className" | "color" | "lang" | "role" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is"> & {
|
|
90
90
|
ref?: ((instance: Switch | null) => void) | React.RefObject<Switch> | null | undefined;
|
|
91
91
|
}>;
|
|
92
|
-
static defaultProps: Required<Pick<SwitchPropsBase, "disabled" | "selected" | "appearance" | "inline" | "error" | "interactive"
|
|
92
|
+
static defaultProps: Required<Pick<SwitchPropsBase, "disabled" | "selected" | "appearance" | "inline" | "error" | "interactive">>;
|
|
93
93
|
static validateProps({ selected, appearance }: Readonly<SwitchProps>): void;
|
|
94
94
|
constructor(props: Readonly<SwitchProps>);
|
|
95
95
|
componentDidUpdate: typeof Switch.validateProps;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Component } from 'react';
|
|
2
|
+
import { SwitchClickHandler } from '@splunk/react-ui/Switch';
|
|
3
|
+
declare class Basic extends Component<{}, {
|
|
4
|
+
values: number[];
|
|
5
|
+
}> {
|
|
6
|
+
constructor(props: {});
|
|
7
|
+
handleClick: SwitchClickHandler;
|
|
8
|
+
render(): JSX.Element;
|
|
9
|
+
}
|
|
10
|
+
export default Basic;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Component } from 'react';
|
|
2
|
+
import { SwitchClickHandler } from '@splunk/react-ui/Switch';
|
|
3
|
+
declare class Disabled extends Component<{}, {
|
|
4
|
+
values: number[];
|
|
5
|
+
}> {
|
|
6
|
+
constructor(props: {});
|
|
7
|
+
handleClick: SwitchClickHandler;
|
|
8
|
+
render(): JSX.Element;
|
|
9
|
+
}
|
|
10
|
+
export default Disabled;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Component } from 'react';
|
|
2
|
+
import { CellClickHandler } from '@splunk/react-ui/Table';
|
|
3
|
+
interface Row {
|
|
4
|
+
email: string;
|
|
5
|
+
name: string;
|
|
6
|
+
}
|
|
7
|
+
interface ExampleState {
|
|
8
|
+
clickedRow?: string;
|
|
9
|
+
data: Row[];
|
|
10
|
+
}
|
|
11
|
+
export default class Click extends Component<{}, ExampleState> {
|
|
12
|
+
constructor(props: {});
|
|
13
|
+
handlerClick: CellClickHandler;
|
|
14
|
+
render(): JSX.Element;
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Component } from 'react';
|
|
2
|
+
import { RowClickHandler } from '@splunk/react-ui/Table';
|
|
3
|
+
interface Row {
|
|
4
|
+
email: string;
|
|
5
|
+
name: string;
|
|
6
|
+
}
|
|
7
|
+
interface ExampleState {
|
|
8
|
+
clickedRow?: string;
|
|
9
|
+
data: Row[];
|
|
10
|
+
}
|
|
11
|
+
export default class ClickRows extends Component<{}, ExampleState> {
|
|
12
|
+
constructor(props: {});
|
|
13
|
+
handleClick: RowClickHandler;
|
|
14
|
+
render(): JSX.Element;
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Component } from 'react';
|
|
2
|
+
import { HeadCellSortHandler, RowRequestToggleHandler, TableRequestMoveColumnHandler, TableRequestResizeColumnHandler, 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
|
+
align: 'left' | 'center' | 'right';
|
|
14
|
+
key: 'age' | 'birthState' | 'email' | 'name' | 'status';
|
|
15
|
+
label: string;
|
|
16
|
+
minWidth: number;
|
|
17
|
+
width: number;
|
|
18
|
+
}
|
|
19
|
+
interface ExampleState {
|
|
20
|
+
data: Row[];
|
|
21
|
+
headers: Header[];
|
|
22
|
+
sortDir: 'asc' | 'desc';
|
|
23
|
+
sortKey: 'age' | 'birthState' | 'email' | 'name' | 'status';
|
|
24
|
+
activeRow?: string;
|
|
25
|
+
activeRowData?: string;
|
|
26
|
+
}
|
|
27
|
+
export default class Complex extends Component<{}, ExampleState> {
|
|
28
|
+
constructor(props: {});
|
|
29
|
+
getExpansionRow(row: Row): JSX.Element;
|
|
30
|
+
handleRequestMoveColumn: TableRequestMoveColumnHandler;
|
|
31
|
+
handleSort: HeadCellSortHandler;
|
|
32
|
+
handleResizeColumn: TableRequestResizeColumnHandler;
|
|
33
|
+
handleToggle: RowRequestToggleHandler;
|
|
34
|
+
handleToggleAll: () => void;
|
|
35
|
+
handleRowClick: RowClickHandler;
|
|
36
|
+
rowSelectionState(data: Row[]): "none" | "all" | "some";
|
|
37
|
+
render(): JSX.Element;
|
|
38
|
+
}
|
|
39
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
interface Column {
|
|
3
|
+
align: 'left' | 'right';
|
|
4
|
+
label: string;
|
|
5
|
+
sortKey: 'email' | 'name';
|
|
6
|
+
}
|
|
7
|
+
interface ExampleState {
|
|
8
|
+
columns: Column[];
|
|
9
|
+
sortDir: 'asc' | 'desc';
|
|
10
|
+
sortKey: 'email' | 'name';
|
|
11
|
+
}
|
|
12
|
+
declare class HeadDropdownCell extends Component<{}, ExampleState> {
|
|
13
|
+
constructor(props: {});
|
|
14
|
+
handleSort: (e: React.MouseEvent, { sortKey, sortDir }: Pick<ExampleState, 'sortKey' | 'sortDir'>) => void;
|
|
15
|
+
handleAlign: (e: React.MouseEvent, { sortKey, align }: Pick<ExampleState, 'sortKey'> & Pick<Column, 'align'>) => void;
|
|
16
|
+
render(): JSX.Element;
|
|
17
|
+
}
|
|
18
|
+
export default HeadDropdownCell;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Component } from 'react';
|
|
2
|
+
import { TableRequestMoveColumnHandler } from '@splunk/react-ui/Table';
|
|
3
|
+
interface Row {
|
|
4
|
+
age: number;
|
|
5
|
+
email: string;
|
|
6
|
+
name: string;
|
|
7
|
+
}
|
|
8
|
+
interface Header {
|
|
9
|
+
key: 'age' | 'email' | 'name';
|
|
10
|
+
label: string;
|
|
11
|
+
}
|
|
12
|
+
interface ExampleState {
|
|
13
|
+
data: Row[];
|
|
14
|
+
headers: Header[];
|
|
15
|
+
}
|
|
16
|
+
export default class ReorderColumns extends Component<{}, ExampleState> {
|
|
17
|
+
constructor(props: {});
|
|
18
|
+
handleRequestMoveColumn: TableRequestMoveColumnHandler;
|
|
19
|
+
render(): JSX.Element;
|
|
20
|
+
}
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Component } from 'react';
|
|
2
|
+
import { TableRequestMoveRowHandler } from '@splunk/react-ui/Table';
|
|
3
|
+
interface Row {
|
|
4
|
+
age: number;
|
|
5
|
+
email: string;
|
|
6
|
+
name: string;
|
|
7
|
+
}
|
|
8
|
+
interface Header {
|
|
9
|
+
key: 'age' | 'email' | 'name';
|
|
10
|
+
label: string;
|
|
11
|
+
}
|
|
12
|
+
interface ExampleState {
|
|
13
|
+
data: Row[];
|
|
14
|
+
headers: Header[];
|
|
15
|
+
}
|
|
16
|
+
export default class ReorderRows extends Component<{}, ExampleState> {
|
|
17
|
+
constructor(props: {});
|
|
18
|
+
handleRequestMoveRow: TableRequestMoveRowHandler;
|
|
19
|
+
render(): JSX.Element;
|
|
20
|
+
}
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Component } from 'react';
|
|
2
|
+
import { TableRequestResizeColumnHandler } from '@splunk/react-ui/Table';
|
|
3
|
+
interface Row {
|
|
4
|
+
age: number;
|
|
5
|
+
email: string;
|
|
6
|
+
name: string;
|
|
7
|
+
}
|
|
8
|
+
interface Header {
|
|
9
|
+
key: 'age' | 'email' | 'name';
|
|
10
|
+
label: string;
|
|
11
|
+
minWidth: number;
|
|
12
|
+
width: number;
|
|
13
|
+
}
|
|
14
|
+
interface ExampleState {
|
|
15
|
+
data: Row[];
|
|
16
|
+
headers: Header[];
|
|
17
|
+
}
|
|
18
|
+
export default class Resizable extends Component<{}, ExampleState> {
|
|
19
|
+
constructor(props: {});
|
|
20
|
+
handleResizeColumn: TableRequestResizeColumnHandler;
|
|
21
|
+
render(): JSX.Element;
|
|
22
|
+
}
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Component } from 'react';
|
|
2
|
+
import { TableRequestResizeColumnHandler } from '@splunk/react-ui/Table';
|
|
3
|
+
interface Row {
|
|
4
|
+
age: number;
|
|
5
|
+
email: string;
|
|
6
|
+
name: string;
|
|
7
|
+
}
|
|
8
|
+
interface Header {
|
|
9
|
+
key: 'age' | 'email' | 'name';
|
|
10
|
+
label: string;
|
|
11
|
+
minWidth: number;
|
|
12
|
+
width: number | 'auto';
|
|
13
|
+
}
|
|
14
|
+
interface ExampleState {
|
|
15
|
+
data: Row[];
|
|
16
|
+
headers: Header[];
|
|
17
|
+
}
|
|
18
|
+
export default class Resizable extends Component<{}, ExampleState> {
|
|
19
|
+
constructor(props: {});
|
|
20
|
+
handleResizeColumn: TableRequestResizeColumnHandler;
|
|
21
|
+
render(): JSX.Element;
|
|
22
|
+
}
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Component } from 'react';
|
|
2
|
+
import { RowRequestToggleHandler } from '@splunk/react-ui/Table';
|
|
3
|
+
interface Row {
|
|
4
|
+
email: string;
|
|
5
|
+
name: string;
|
|
6
|
+
selected: boolean;
|
|
7
|
+
}
|
|
8
|
+
interface ExampleState {
|
|
9
|
+
data: Row[];
|
|
10
|
+
}
|
|
11
|
+
export default class Selectable extends Component<{}, ExampleState> {
|
|
12
|
+
constructor(props: {});
|
|
13
|
+
handleToggle: RowRequestToggleHandler;
|
|
14
|
+
handleToggleAll: () => void;
|
|
15
|
+
rowSelectionState(data: Row[]): "none" | "all" | "some";
|
|
16
|
+
render(): JSX.Element;
|
|
17
|
+
}
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Component } from 'react';
|
|
2
|
+
import { HeadCellSortHandler } from '@splunk/react-ui/Table';
|
|
3
|
+
interface ExampleState {
|
|
4
|
+
sortDir: 'asc' | 'desc';
|
|
5
|
+
sortKey: 'email' | 'name';
|
|
6
|
+
}
|
|
7
|
+
declare class SortableColumns extends Component<{}, ExampleState> {
|
|
8
|
+
constructor(props: {});
|
|
9
|
+
handleSort: HeadCellSortHandler;
|
|
10
|
+
render(): JSX.Element;
|
|
11
|
+
}
|
|
12
|
+
export default SortableColumns;
|
|
@@ -0,0 +1,48 @@
|
|
|
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 {};
|