@splunk/react-ui 4.5.3 → 4.8.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 +47 -1
- package/Calendar.js +16 -16
- package/Card.js +48 -53
- package/CardLayout.js +4 -4
- package/Chip.js +10 -10
- package/Clickable.js +42 -15
- package/CloseButton.js +8 -8
- package/Code.js +8 -7
- package/CollapsiblePanel.js +11 -14
- package/Color.js +48 -48
- package/ColumnLayout.js +4 -4
- package/ComboBox.js +8 -8
- package/Concertina.js +15 -15
- package/ControlGroup.js +30 -37
- 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 +27 -27
- package/FormRows.js +21 -23
- 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 +28 -16
- package/Menu.js +135 -70
- package/Message.js +246 -305
- package/MessageBar.d.ts +2 -0
- package/MessageBar.js +789 -0
- package/Modal.js +95 -61
- package/ModalLayer.js +5 -4
- package/Monogram.js +4 -4
- package/Multiselect.js +293 -42
- package/Number.js +8 -8
- package/Paginator.js +24 -24
- 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 +286 -36
- package/SidePanel.js +6 -6
- package/Slider.js +20 -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 +63 -55
- package/Text.js +163 -146
- package/Tooltip.js +14 -14
- package/TransitionOpen.js +69 -44
- package/WaitSpinner.js +2 -2
- package/cypress/plugins/index.ts +15 -0
- package/cypress/support/commands.ts +1 -0
- package/cypress/support/index.ts +10 -0
- package/cypress.json +12 -0
- package/package.json +27 -8
- 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/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/Clickable.d.ts +12 -2
- package/types/src/Clickable/NavigationProvider.d.ts +13 -2
- 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/Date.d.ts +3 -3
- 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/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/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/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 +3 -0
- package/types/src/Modal/ModalContext.d.ts +6 -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/Multiselect.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 +5 -3
- 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 +8 -3
- package/types/src/Select/SelectBase.d.ts +17 -5
- 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/Select/matchUtils.d.ts +12 -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/Slider.d.ts +3 -3
- 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 +10 -3
- 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/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/TransitionOpen.d.ts +1 -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,13 @@
|
|
|
1
|
+
import { Component } from 'react';
|
|
2
|
+
declare class Basic extends Component<{}, {
|
|
3
|
+
top?: number;
|
|
4
|
+
}> {
|
|
5
|
+
private scrollEl;
|
|
6
|
+
constructor(props: {});
|
|
7
|
+
handleClickDown: () => void;
|
|
8
|
+
handleClickUp: () => void;
|
|
9
|
+
handleScrollComplete: () => void;
|
|
10
|
+
handleScrollElMount: (el: Element | null) => void;
|
|
11
|
+
render(): JSX.Element;
|
|
12
|
+
}
|
|
13
|
+
export default Basic;
|
|
@@ -12,6 +12,11 @@ declare type SelectFilterChangeHandler = (event: React.ChangeEvent<HTMLInputElem
|
|
|
12
12
|
keyword: string;
|
|
13
13
|
}) => void;
|
|
14
14
|
interface SelectPropsBase {
|
|
15
|
+
/**
|
|
16
|
+
* Whether or not to allow entered keyboard printable characters to match options.
|
|
17
|
+
* Keymatching is disabled when using filtering or loading.
|
|
18
|
+
*/
|
|
19
|
+
allowKeyMatching?: boolean;
|
|
15
20
|
/**
|
|
16
21
|
* Whether or not to show the wait spinner when loading. It's recommended to set this to
|
|
17
22
|
* `true` when loading may take more than one second.
|
|
@@ -148,7 +153,7 @@ interface SelectPropsBase {
|
|
|
148
153
|
*/
|
|
149
154
|
value?: string | number | boolean;
|
|
150
155
|
}
|
|
151
|
-
declare const defaultProps: Required<Pick<SelectPropsBase, 'animateLoading' | 'appearance' | 'append' | 'children' | 'defaultPlacement' | 'disabled' | 'error' | 'filter' | 'inline' | 'isLoadingOptions' | 'menuStyle' | 'noOptionsMessage' | 'placeholder' | 'prepend'>>;
|
|
156
|
+
declare const defaultProps: Required<Pick<SelectPropsBase, 'allowKeyMatching' | 'animateLoading' | 'appearance' | 'append' | 'children' | 'defaultPlacement' | 'disabled' | 'error' | 'filter' | 'inline' | 'isLoadingOptions' | 'menuStyle' | 'noOptionsMessage' | 'placeholder' | 'prepend'>>;
|
|
152
157
|
interface SelectPropsBaseControlled extends SelectPropsBase {
|
|
153
158
|
defaultValue?: never;
|
|
154
159
|
onChange: SelectChangeHandler;
|
|
@@ -163,8 +168,8 @@ interface SelectState {
|
|
|
163
168
|
defaultValues?: (string | number | boolean)[];
|
|
164
169
|
}
|
|
165
170
|
declare class Select extends Component<SelectProps, SelectState> {
|
|
166
|
-
static propTypes: React.WeakValidationMap<SelectPropsBaseControlled & Required<Pick<SelectPropsBase, "filter" | "children" | "placeholder" | "disabled" | "appearance" | "inline" | "error" | "defaultPlacement" | "append" | "prepend" | "animateLoading" | "noOptionsMessage" | "isLoadingOptions" | "menuStyle">> & Pick<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "form" | "slot" | "style" | "title" | "onPause" | "className" | "color" | "id" | "lang" | "type" | "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" | "onClick" | "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" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget">> | React.WeakValidationMap<SelectPropsBaseUncontrolled & Required<Pick<SelectPropsBase, "filter" | "children" | "placeholder" | "disabled" | "appearance" | "inline" | "error" | "defaultPlacement" | "append" | "prepend" | "animateLoading" | "noOptionsMessage" | "isLoadingOptions" | "menuStyle">> & Pick<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "form" | "slot" | "style" | "title" | "onPause" | "className" | "color" | "id" | "lang" | "type" | "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" | "onClick" | "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" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget">>;
|
|
167
|
-
static defaultProps: Required<Pick<SelectPropsBase, "filter" | "children" | "placeholder" | "disabled" | "appearance" | "inline" | "error" | "defaultPlacement" | "append" | "prepend" | "animateLoading" | "noOptionsMessage" | "isLoadingOptions" | "menuStyle">>;
|
|
171
|
+
static propTypes: React.WeakValidationMap<SelectPropsBaseControlled & Required<Pick<SelectPropsBase, "filter" | "children" | "placeholder" | "disabled" | "appearance" | "inline" | "error" | "defaultPlacement" | "append" | "prepend" | "animateLoading" | "noOptionsMessage" | "allowKeyMatching" | "isLoadingOptions" | "menuStyle">> & Pick<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "form" | "slot" | "style" | "title" | "onPause" | "className" | "color" | "id" | "lang" | "type" | "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" | "onClick" | "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" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget">> | React.WeakValidationMap<SelectPropsBaseUncontrolled & Required<Pick<SelectPropsBase, "filter" | "children" | "placeholder" | "disabled" | "appearance" | "inline" | "error" | "defaultPlacement" | "append" | "prepend" | "animateLoading" | "noOptionsMessage" | "allowKeyMatching" | "isLoadingOptions" | "menuStyle">> & Pick<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "form" | "slot" | "style" | "title" | "onPause" | "className" | "color" | "id" | "lang" | "type" | "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" | "onClick" | "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" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget">>;
|
|
172
|
+
static defaultProps: Required<Pick<SelectPropsBase, "filter" | "children" | "placeholder" | "disabled" | "appearance" | "inline" | "error" | "defaultPlacement" | "append" | "prepend" | "animateLoading" | "noOptionsMessage" | "allowKeyMatching" | "isLoadingOptions" | "menuStyle">>;
|
|
168
173
|
static Option: typeof Option;
|
|
169
174
|
static Heading: typeof BaseHeading;
|
|
170
175
|
static Divider: typeof BaseDivider;
|
|
@@ -10,6 +10,11 @@ declare type SelectBaseChangeHandler = (event: React.MouseEvent<HTMLButtonElemen
|
|
|
10
10
|
values: (string | number | boolean)[];
|
|
11
11
|
}) => void;
|
|
12
12
|
interface SelectBasePropsBase {
|
|
13
|
+
/**
|
|
14
|
+
* Whether or not to allow entered keyboard printable characters to match options.
|
|
15
|
+
* Keymatching is disabled when using filtering, multiselect, or loading.
|
|
16
|
+
*/
|
|
17
|
+
allowKeyMatching?: boolean;
|
|
13
18
|
animateLoading?: boolean;
|
|
14
19
|
/**
|
|
15
20
|
* Change the style of the button or link.
|
|
@@ -155,7 +160,7 @@ interface SelectBasePropsBase {
|
|
|
155
160
|
*/
|
|
156
161
|
values?: (string | number | boolean)[];
|
|
157
162
|
}
|
|
158
|
-
declare const defaultProps: Required<Pick<SelectBasePropsBase, 'allowNewValues' | 'animateLoading' | 'appearance' | 'append' | 'defaultPlacement' | 'disabled' | 'filter' | 'inline' | 'isLoadingOptions' | 'menuStyle' | 'multiple' | 'noOptionsMessage' | 'placeholder' | 'prepend' | 'repositionMode' | 'tabConfirmsNewValue'>>;
|
|
163
|
+
declare const defaultProps: Required<Pick<SelectBasePropsBase, 'allowKeyMatching' | 'allowNewValues' | 'animateLoading' | 'appearance' | 'append' | 'defaultPlacement' | 'disabled' | 'filter' | 'inline' | 'isLoadingOptions' | 'menuStyle' | 'multiple' | 'noOptionsMessage' | 'placeholder' | 'prepend' | 'repositionMode' | 'tabConfirmsNewValue'>>;
|
|
159
164
|
interface SelectBasePropsBaseControlled extends SelectBasePropsBase {
|
|
160
165
|
defaultValues?: never;
|
|
161
166
|
onChange: SelectBaseChangeHandler;
|
|
@@ -184,13 +189,18 @@ declare class SelectBase extends Component<SelectBaseProps, SelectBaseState> {
|
|
|
184
189
|
private controlledExternally;
|
|
185
190
|
private displayedValues;
|
|
186
191
|
private dropdown;
|
|
187
|
-
private
|
|
192
|
+
private firstSelectedEnabledOption;
|
|
188
193
|
private firstSelectedOptionIndex?;
|
|
189
194
|
private menuId;
|
|
190
195
|
private previousActiveIndex;
|
|
191
196
|
private selectedOptionCount;
|
|
192
|
-
static propTypes: React.WeakValidationMap<SelectBasePropsBaseControlled & Required<Pick<SelectBasePropsBase, "filter" | "placeholder" | "disabled" | "multiple" | "appearance" | "inline" | "defaultPlacement" | "repositionMode" | "append" | "prepend" | "animateLoading" | "noOptionsMessage" | "allowNewValues" | "isLoadingOptions" | "menuStyle" | "tabConfirmsNewValue">> & Pick<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "form" | "slot" | "style" | "title" | "value" | "onPause" | "className" | "color" | "id" | "lang" | "type" | "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" | "onClick" | "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" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget">> | React.WeakValidationMap<SelectBasePropsBaseUncontrolled & Required<Pick<SelectBasePropsBase, "filter" | "placeholder" | "disabled" | "multiple" | "appearance" | "inline" | "defaultPlacement" | "repositionMode" | "append" | "prepend" | "animateLoading" | "noOptionsMessage" | "allowNewValues" | "isLoadingOptions" | "menuStyle" | "tabConfirmsNewValue">> & Pick<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "form" | "slot" | "style" | "title" | "value" | "onPause" | "className" | "color" | "id" | "lang" | "type" | "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" | "onClick" | "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" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget">>;
|
|
193
|
-
|
|
197
|
+
private optionRefsByKey;
|
|
198
|
+
private matchCharacter;
|
|
199
|
+
private matchTimeout;
|
|
200
|
+
private currentMatchOptions;
|
|
201
|
+
private availableMatchOptions;
|
|
202
|
+
static propTypes: React.WeakValidationMap<SelectBasePropsBaseControlled & Required<Pick<SelectBasePropsBase, "filter" | "placeholder" | "disabled" | "multiple" | "appearance" | "inline" | "defaultPlacement" | "repositionMode" | "append" | "prepend" | "animateLoading" | "noOptionsMessage" | "allowKeyMatching" | "allowNewValues" | "isLoadingOptions" | "menuStyle" | "tabConfirmsNewValue">> & Pick<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "form" | "slot" | "style" | "title" | "value" | "onPause" | "className" | "color" | "id" | "lang" | "type" | "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" | "onClick" | "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" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget">> | React.WeakValidationMap<SelectBasePropsBaseUncontrolled & Required<Pick<SelectBasePropsBase, "filter" | "placeholder" | "disabled" | "multiple" | "appearance" | "inline" | "defaultPlacement" | "repositionMode" | "append" | "prepend" | "animateLoading" | "noOptionsMessage" | "allowKeyMatching" | "allowNewValues" | "isLoadingOptions" | "menuStyle" | "tabConfirmsNewValue">> & Pick<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "form" | "slot" | "style" | "title" | "value" | "onPause" | "className" | "color" | "id" | "lang" | "type" | "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" | "onClick" | "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" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget">>;
|
|
203
|
+
static defaultProps: Required<Pick<SelectBasePropsBase, "filter" | "placeholder" | "disabled" | "multiple" | "appearance" | "inline" | "defaultPlacement" | "repositionMode" | "append" | "prepend" | "animateLoading" | "noOptionsMessage" | "allowKeyMatching" | "allowNewValues" | "isLoadingOptions" | "menuStyle" | "tabConfirmsNewValue">>;
|
|
194
204
|
static Option: typeof Option;
|
|
195
205
|
static Divider: typeof Divider;
|
|
196
206
|
static Heading: typeof Heading;
|
|
@@ -200,10 +210,12 @@ declare class SelectBase extends Component<SelectBaseProps, SelectBaseState> {
|
|
|
200
210
|
componentDidUpdate(prevProps: Readonly<SelectBaseProps>, prevState: Readonly<SelectBaseState>): void;
|
|
201
211
|
private getCurrentValues;
|
|
202
212
|
private getTopValues;
|
|
213
|
+
private resetMatches;
|
|
203
214
|
private handleSelectAll;
|
|
204
215
|
private handleClearAll;
|
|
205
216
|
private handleTextKeyDown;
|
|
206
217
|
private handleMenuOptionClick;
|
|
218
|
+
private handleMenuOptionKeyDown;
|
|
207
219
|
private handleTextChange;
|
|
208
220
|
private handleTextFocus;
|
|
209
221
|
private handleTextBlur;
|
|
@@ -211,7 +223,7 @@ declare class SelectBase extends Component<SelectBaseProps, SelectBaseState> {
|
|
|
211
223
|
private handleRequestClose;
|
|
212
224
|
private handleScrollBottom;
|
|
213
225
|
private handleActiveOptionMount;
|
|
214
|
-
private
|
|
226
|
+
private handleOptionMount;
|
|
215
227
|
private isControlled;
|
|
216
228
|
private hasFilter;
|
|
217
229
|
private toggleValue;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Component } from 'react';
|
|
2
|
+
import { SelectChangeHandler } from '@splunk/react-ui/Select';
|
|
3
|
+
declare class Appearance extends Component<{}, {
|
|
4
|
+
valueA: string | number | boolean;
|
|
5
|
+
valueB: string | number | boolean;
|
|
6
|
+
valueC: string | number | boolean;
|
|
7
|
+
}> {
|
|
8
|
+
constructor(props: {});
|
|
9
|
+
handleChangeA: SelectChangeHandler;
|
|
10
|
+
handleChangeB: SelectChangeHandler;
|
|
11
|
+
handleChangeC: SelectChangeHandler;
|
|
12
|
+
render(): JSX.Element;
|
|
13
|
+
}
|
|
14
|
+
export default Appearance;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Component } from 'react';
|
|
2
|
+
import { SelectChangeHandler } from '@splunk/react-ui/Select';
|
|
3
|
+
declare class Basic extends Component<{}, {
|
|
4
|
+
value: string | number | boolean;
|
|
5
|
+
}> {
|
|
6
|
+
constructor(props: {});
|
|
7
|
+
handleChange: SelectChangeHandler;
|
|
8
|
+
render(): JSX.Element;
|
|
9
|
+
}
|
|
10
|
+
export default Basic;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Component } from 'react';
|
|
2
|
+
import { SelectChangeHandler } from '@splunk/react-ui/Select';
|
|
3
|
+
declare class Children extends Component<{}, {
|
|
4
|
+
value: string | number | boolean;
|
|
5
|
+
}> {
|
|
6
|
+
constructor(props: {});
|
|
7
|
+
handleChange: SelectChangeHandler;
|
|
8
|
+
render(): JSX.Element;
|
|
9
|
+
}
|
|
10
|
+
export default Children;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Component } from 'react';
|
|
2
|
+
import { SelectChangeHandler } from '@splunk/react-ui/Select';
|
|
3
|
+
declare class Descriptions extends Component<{}, {
|
|
4
|
+
value: string | number | boolean;
|
|
5
|
+
}> {
|
|
6
|
+
constructor(props: {});
|
|
7
|
+
handleChange: SelectChangeHandler;
|
|
8
|
+
render(): JSX.Element;
|
|
9
|
+
}
|
|
10
|
+
export default Descriptions;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Component } from 'react';
|
|
2
|
+
import { SelectChangeHandler, SelectFilterChangeHandler } from '@splunk/react-ui/Select';
|
|
3
|
+
import { Movie, MovieOption } from '@splunk/react-ui/fixtures/FetchOptions';
|
|
4
|
+
interface ExampleState {
|
|
5
|
+
fullCount: number;
|
|
6
|
+
isLoading: boolean;
|
|
7
|
+
options: MovieOption[];
|
|
8
|
+
value: string | number | boolean;
|
|
9
|
+
}
|
|
10
|
+
declare class Fetching extends Component<{}, ExampleState> {
|
|
11
|
+
private fetchOptions;
|
|
12
|
+
constructor(props: {});
|
|
13
|
+
componentDidMount(): void;
|
|
14
|
+
componentWillUnmount(): void;
|
|
15
|
+
handleChange: SelectChangeHandler;
|
|
16
|
+
handleFetch: (keyword?: string) => void;
|
|
17
|
+
handleFilterChange: SelectFilterChangeHandler;
|
|
18
|
+
createOption: (movie: Movie | MovieOption, isSelected?: boolean) => JSX.Element;
|
|
19
|
+
generateOptions: () => JSX.Element | JSX.Element[] | undefined;
|
|
20
|
+
footerMessage: () => string | null;
|
|
21
|
+
render(): JSX.Element;
|
|
22
|
+
}
|
|
23
|
+
export default Fetching;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Component } from 'react';
|
|
2
|
+
import { SelectChangeHandler } from '@splunk/react-ui/Select';
|
|
3
|
+
declare class Filter extends Component<{}, {
|
|
4
|
+
value: string | number | boolean;
|
|
5
|
+
}> {
|
|
6
|
+
constructor(props: {});
|
|
7
|
+
handleChange: SelectChangeHandler;
|
|
8
|
+
render(): JSX.Element;
|
|
9
|
+
}
|
|
10
|
+
export default Filter;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Component } from 'react';
|
|
2
|
+
import { SelectChangeHandler } from '@splunk/react-ui/Select';
|
|
3
|
+
declare class Headings extends Component<{}, {
|
|
4
|
+
value: string | number | boolean;
|
|
5
|
+
}> {
|
|
6
|
+
constructor(props: {});
|
|
7
|
+
handleChange: SelectChangeHandler;
|
|
8
|
+
render(): JSX.Element;
|
|
9
|
+
}
|
|
10
|
+
export default Headings;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Component } from 'react';
|
|
2
|
+
import { SelectChangeHandler } from '@splunk/react-ui/Select';
|
|
3
|
+
declare class Icons extends Component<{}, {
|
|
4
|
+
value: string | number | boolean;
|
|
5
|
+
}> {
|
|
6
|
+
constructor(props: {});
|
|
7
|
+
handleChange: SelectChangeHandler;
|
|
8
|
+
render(): JSX.Element;
|
|
9
|
+
}
|
|
10
|
+
export default Icons;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Component } from 'react';
|
|
2
|
+
import { SelectChangeHandler, SelectFilterChangeHandler } from '@splunk/react-ui/Select';
|
|
3
|
+
import { Movie, MovieOption } from '@splunk/react-ui/fixtures/FetchOptions';
|
|
4
|
+
interface ExampleState {
|
|
5
|
+
isLoading: boolean;
|
|
6
|
+
isLoadingMore: boolean;
|
|
7
|
+
options: MovieOption[];
|
|
8
|
+
value: string | number | boolean;
|
|
9
|
+
}
|
|
10
|
+
declare class LoadMoreOnScrollBottom extends Component<{}, ExampleState> {
|
|
11
|
+
private fetchOptions;
|
|
12
|
+
constructor(props: {});
|
|
13
|
+
componentDidMount(): void;
|
|
14
|
+
componentWillUnmount(): void;
|
|
15
|
+
handleChange: SelectChangeHandler;
|
|
16
|
+
handleFetch: (keyword: string) => void;
|
|
17
|
+
handleFetchMore: (currentOptions: MovieOption[]) => void;
|
|
18
|
+
handleFilterChange: SelectFilterChangeHandler;
|
|
19
|
+
handleScrollBottom: () => void;
|
|
20
|
+
createOption: (movie: Movie, isSelected?: boolean) => JSX.Element;
|
|
21
|
+
generateOptions: () => JSX.Element | JSX.Element[] | undefined;
|
|
22
|
+
footerMessage: () => string;
|
|
23
|
+
render(): JSX.Element;
|
|
24
|
+
}
|
|
25
|
+
export default LoadMoreOnScrollBottom;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Component } from 'react';
|
|
2
|
+
import { SelectChangeHandler } from '@splunk/react-ui/Select';
|
|
3
|
+
declare class Prefix extends Component<{}, {
|
|
4
|
+
value: string | number | boolean;
|
|
5
|
+
}> {
|
|
6
|
+
constructor(props: {});
|
|
7
|
+
handleChange: SelectChangeHandler;
|
|
8
|
+
render(): JSX.Element;
|
|
9
|
+
}
|
|
10
|
+
export default Prefix;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Component } from 'react';
|
|
2
|
+
import { SelectChangeHandler } from '@splunk/react-ui/Select';
|
|
3
|
+
declare class Truncate extends Component<{}, {
|
|
4
|
+
value: string | number | boolean;
|
|
5
|
+
}> {
|
|
6
|
+
constructor(props: {});
|
|
7
|
+
handleChange: SelectChangeHandler;
|
|
8
|
+
render(): JSX.Element;
|
|
9
|
+
}
|
|
10
|
+
export default Truncate;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Component } from 'react';
|
|
2
|
+
import { SelectChangeHandler } from '@splunk/react-ui/Select';
|
|
3
|
+
declare class Example extends Component<{}, {
|
|
4
|
+
valueA: string | number | boolean;
|
|
5
|
+
valueB: string | number | boolean;
|
|
6
|
+
valueC: string | number | boolean;
|
|
7
|
+
}> {
|
|
8
|
+
constructor(props: {});
|
|
9
|
+
handleChangeA: SelectChangeHandler;
|
|
10
|
+
handleChangeB: SelectChangeHandler;
|
|
11
|
+
handleChangeC: SelectChangeHandler;
|
|
12
|
+
render(): JSX.Element;
|
|
13
|
+
}
|
|
14
|
+
export default Example;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface MatchCharacter {
|
|
2
|
+
index: number;
|
|
3
|
+
value: string;
|
|
4
|
+
}
|
|
5
|
+
export interface MatchOption {
|
|
6
|
+
itemKey: string;
|
|
7
|
+
label: string;
|
|
8
|
+
value: string | number | boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const charFromMatchOption: (option: MatchOption | null, charIndex: number) => string;
|
|
11
|
+
declare const fuzzyMatch: (options: MatchOption[], matchChar: MatchCharacter) => MatchOption[];
|
|
12
|
+
export { charFromMatchOption, fuzzyMatch };
|