@splunk/react-ui 4.43.0 → 5.0.0-beta.2
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 +87 -109
- package/Animation.js +48 -31
- package/Avatar.d.ts +2 -0
- package/Avatar.js +478 -0
- package/Box.js +8 -8
- package/Breadcrumbs.js +45 -49
- package/Button.js +144 -399
- package/ButtonGroup.js +22 -26
- package/ButtonSimple.js +239 -605
- package/CHANGELOG.md +4 -0
- package/CHANGELOG.v5.mdx +195 -0
- package/Calendar.js +55 -68
- package/Card.js +162 -200
- package/Chip.js +108 -96
- package/Clickable.js +174 -310
- package/Code.js +393 -422
- package/CollapsiblePanel.js +439 -601
- package/Color.js +727 -967
- package/ColumnLayout.js +190 -234
- package/ComboBox.js +147 -135
- package/ControlGroup.js +502 -531
- package/Date.js +315 -416
- package/DefinitionList.js +128 -140
- package/Dropdown.js +201 -358
- package/DualListbox.js +26 -26
- package/File.js +479 -558
- package/FormRows.js +339 -569
- package/Heading.js +53 -99
- package/Image.js +254 -305
- package/JSONTree.js +105 -107
- package/Layer.js +187 -269
- package/{CloseButton.js → Layout.js} +39 -61
- package/Link.js +91 -244
- package/List.js +68 -74
- package/MIGRATION.v5.mdx +428 -0
- package/Markdown.js +439 -385
- package/Menu.js +383 -741
- package/Message.js +150 -322
- package/MessageBar.js +15 -15
- package/Modal.js +444 -587
- package/Monogram.js +1 -1
- package/Multiselect.js +1207 -1256
- package/NonInteractiveCheckbox.js +189 -0
- package/Number.js +495 -604
- package/Paginator.js +294 -406
- package/Paragraph.js +12 -15
- package/Popover.js +582 -744
- package/Progress.js +141 -244
- package/Prose.d.ts +2 -0
- package/Prose.js +213 -0
- package/RadioBar.js +328 -450
- package/RadioList.js +132 -216
- package/Resize.js +351 -402
- package/ResultsMenu.js +255 -358
- package/Scroll.js +159 -238
- package/Search.js +358 -437
- package/Select.js +1097 -1380
- package/SidePanel.js +179 -223
- package/Slider.js +440 -542
- package/SlidingPanels.js +377 -504
- package/SplitButton.js +114 -102
- package/StaticContent.js +58 -74
- package/StepBar.js +193 -258
- package/Switch.js +246 -552
- package/TabBar.js +438 -622
- package/TabLayout.js +197 -251
- package/Table.js +2355 -3673
- package/Text.js +422 -909
- package/TextArea.js +537 -959
- package/Tooltip.js +35 -41
- package/TransitionOpen.js +296 -336
- package/Typography.js +35 -50
- package/WaitSpinner.js +93 -124
- package/package.json +14 -15
- package/stubs-dependencies.d.ts +0 -7
- package/stubs-splunkui.d.ts +6 -1
- package/types/src/Accordion/Accordion.d.ts +5 -1
- package/types/src/Accordion/Panel.d.ts +1 -2
- package/types/src/Accordion/docs/examples/Controlled.d.ts +2 -1
- package/types/src/Accordion/docs/examples/Inset.d.ts +2 -1
- package/types/src/Accordion/docs/examples/Uncontrolled.d.ts +2 -1
- package/types/src/Anchor/Anchor.d.ts +1 -1
- package/types/src/Anchor/docs/examples/Basic.d.ts +2 -1
- package/types/src/Animation/Animation.d.ts +12 -2
- package/types/src/AnimationToggle/AnimationToggleProvider.d.ts +1 -1
- package/types/src/AnimationToggle/docs/examples/Provider.d.ts +2 -2
- package/types/src/AnimationToggle/docs/examples/ReducedMotionComponent.d.ts +2 -1
- package/types/src/AnimationToggle/docs/examples/ReducedMotionHook.d.ts +2 -1
- package/types/src/AnimationToggle/docs/examples/ToggleComponent.d.ts +2 -2
- package/types/src/AnimationToggle/docs/examples/ToggleHook.d.ts +2 -1
- package/types/src/Avatar/Avatar.d.ts +65 -0
- package/types/src/Avatar/docs/examples/BackgroundColor.d.ts +2 -0
- package/types/src/Avatar/docs/examples/Basic.d.ts +2 -0
- package/types/src/Avatar/docs/examples/Image.d.ts +2 -0
- package/types/src/Avatar/docs/examples/Interactive.d.ts +2 -0
- package/types/src/Avatar/docs/examples/Size.d.ts +2 -0
- package/types/src/Avatar/getInitials.d.ts +9 -0
- package/types/src/Avatar/index.d.ts +2 -0
- package/types/src/Box/Box.d.ts +1 -1
- package/types/src/Breadcrumbs/Breadcrumbs.d.ts +1 -1
- package/types/src/Breadcrumbs/Item.d.ts +1 -1
- package/types/src/Breadcrumbs/docs/examples/Adornments.d.ts +2 -1
- package/types/src/Breadcrumbs/docs/examples/Basic.d.ts +2 -1
- package/types/src/Breadcrumbs/docs/examples/CustomizedClick.d.ts +2 -1
- package/types/src/Button/Button.d.ts +19 -34
- package/types/src/Button/docs/examples/Basic.d.ts +2 -1
- package/types/src/Button/docs/examples/Block.d.ts +2 -1
- package/types/src/Button/docs/examples/Disabled.d.ts +2 -1
- package/types/src/Button/docs/examples/Icons.d.ts +2 -1
- package/types/src/Button/docs/examples/Menus.d.ts +2 -1
- package/types/src/Button/docs/examples/To.d.ts +2 -1
- package/types/src/Button/docs/examples/Truncated.d.ts +2 -1
- package/types/src/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/types/src/ButtonGroup/docs/examples/Basic.d.ts +2 -1
- package/types/src/ButtonSimple/ButtonSimple.d.ts +22 -41
- package/types/src/ButtonSimple/mixin.d.ts +6 -2
- package/types/src/Calendar/Calendar.d.ts +2 -2
- package/types/src/Calendar/DateTable.d.ts +1 -1
- package/types/src/Calendar/Day.d.ts +1 -1
- package/types/src/Calendar/MonthHeader.d.ts +1 -1
- package/types/src/Card/Body.d.ts +1 -1
- package/types/src/Card/Card.d.ts +4 -9
- package/types/src/Card/Footer.d.ts +1 -8
- package/types/src/Card/Header.d.ts +2 -2
- package/types/src/Card/docs/examples/Actions.d.ts +2 -1
- package/types/src/Card/docs/examples/Basic.d.ts +2 -1
- package/types/src/Card/docs/examples/Clickable.d.ts +2 -1
- package/types/src/Card/docs/examples/Full.d.ts +2 -1
- package/types/src/Card/docs/examples/Images.d.ts +2 -1
- package/types/src/Card/docs/examples/Selectable.d.ts +2 -1
- package/types/src/CardLayout/CardLayout.d.ts +1 -1
- package/types/src/CardLayout/docs/examples/Basic.d.ts +2 -1
- package/types/src/CardLayout/docs/examples/Interactive.d.ts +2 -2
- package/types/src/Chip/Chip.d.ts +1 -1
- package/types/src/Chip/docs/examples/Appearance.d.ts +2 -1
- package/types/src/Chip/docs/examples/CustomColors.d.ts +2 -1
- package/types/src/Chip/docs/examples/Disabled.d.ts +2 -1
- package/types/src/Chip/docs/examples/Icon.d.ts +2 -1
- package/types/src/Chip/docs/examples/Removable.d.ts +2 -1
- package/types/src/Chip/docs/examples/RemovableWithNonStringChildren.d.ts +2 -1
- package/types/src/Clickable/Clickable.d.ts +13 -37
- package/types/src/Clickable/NavigationProvider.d.ts +2 -19
- package/types/src/Clickable/docs/examples/Basic.d.ts +2 -1
- package/types/src/Clickable/docs/examples/Disabled.d.ts +3 -0
- package/types/src/Clickable/docs/examples/NavigationProvider.d.ts +2 -1
- package/types/src/Code/Code.d.ts +2 -2
- package/types/src/Code/docs/examples/Default.d.ts +2 -1
- package/types/src/Code/docs/examples/HideIndent.d.ts +2 -1
- package/types/src/Code/docs/examples/Language.d.ts +2 -1
- package/types/src/CollapsiblePanel/CollapsiblePanel.d.ts +31 -70
- package/types/src/CollapsiblePanel/SingleOpenPanelGroup.d.ts +2 -2
- package/types/src/CollapsiblePanel/docs/examples/Actions.d.ts +3 -0
- package/types/src/CollapsiblePanel/docs/examples/BasicControlled.d.ts +2 -1
- package/types/src/CollapsiblePanel/docs/examples/BasicUncontrolled.d.ts +2 -1
- package/types/src/CollapsiblePanel/docs/examples/Disabled.d.ts +3 -0
- package/types/src/CollapsiblePanel/docs/examples/MultiControlled.d.ts +2 -1
- package/types/src/CollapsiblePanel/docs/examples/MultiUncontrolled.d.ts +2 -1
- package/types/src/CollapsiblePanel/docs/examples/SingleOpenPanelGroupControlled.d.ts +2 -1
- package/types/src/CollapsiblePanel/docs/examples/SingleOpenPanelGroupInset.d.ts +2 -1
- package/types/src/CollapsiblePanel/docs/examples/SingleOpenPanelGroupUncontrolled.d.ts +2 -1
- package/types/src/CollapsiblePanel/docs/examples/Subtle.d.ts +3 -0
- package/types/src/CollapsiblePanel/icons/ExpandPanel.d.ts +2 -1
- package/types/src/Color/Color.d.ts +24 -59
- package/types/src/Color/Palette.d.ts +3 -18
- package/types/src/Color/Swatch.d.ts +1 -4
- package/types/src/Color/docs/examples/Controlled.d.ts +2 -1
- package/types/src/Color/docs/examples/CustomizedPalette.d.ts +2 -1
- package/types/src/Color/docs/examples/HideInput.d.ts +2 -1
- package/types/src/Color/docs/examples/Null.d.ts +2 -1
- package/types/src/Color/docs/examples/ThemeVariables.d.ts +2 -1
- package/types/src/Color/docs/examples/Transparent.d.ts +2 -1
- package/types/src/Color/docs/examples/Uncontrolled.d.ts +2 -1
- package/types/src/ColumnLayout/Column.d.ts +1 -11
- package/types/src/ColumnLayout/ColumnLayout.d.ts +1 -1
- package/types/src/ColumnLayout/Row.d.ts +1 -11
- package/types/src/ColumnLayout/docs/examples/AlignItems.d.ts +2 -1
- package/types/src/ColumnLayout/docs/examples/Basic.d.ts +2 -1
- package/types/src/ColumnLayout/docs/examples/Dividers.d.ts +2 -1
- package/types/src/ColumnLayout/docs/examples/Gutters.d.ts +2 -1
- package/types/src/ComboBox/ComboBox.d.ts +4 -11
- package/types/src/ComboBox/Option.d.ts +2 -2
- package/types/src/ComboBox/docs/examples/Controlled.d.ts +2 -1
- package/types/src/ComboBox/docs/examples/Fetching.d.ts +2 -1
- package/types/src/ComboBox/docs/examples/Headings.d.ts +2 -1
- package/types/src/ComboBox/docs/examples/Label.d.ts +2 -1
- package/types/src/ComboBox/docs/examples/LoadMoreOnScrollBottom.d.ts +2 -1
- package/types/src/ComboBox/docs/examples/Uncontrolled.d.ts +2 -1
- package/types/src/ControlGroup/ControlGroup.d.ts +22 -38
- package/types/src/ControlGroup/ErrorMessageBar.d.ts +18 -0
- package/types/src/ControlGroup/docs/examples/Basic.d.ts +2 -1
- package/types/src/ControlGroup/docs/examples/CustomizedLabelTarget.d.ts +2 -2
- package/types/src/ControlGroup/docs/examples/Error.d.ts +2 -1
- package/types/src/ControlGroup/docs/examples/HelpWithErrorText.d.ts +2 -1
- package/types/src/ControlGroup/docs/examples/HelpWithLinks.d.ts +2 -1
- package/types/src/ControlGroup/docs/examples/LabelLeft.d.ts +3 -0
- package/types/src/ControlGroup/docs/examples/LayoutFill.d.ts +2 -1
- package/types/src/ControlGroup/docs/examples/LayoutFillJoin.d.ts +2 -1
- package/types/src/ControlGroup/docs/examples/LayoutNone.d.ts +2 -1
- package/types/src/ControlGroup/docs/examples/Required.d.ts +2 -1
- package/types/src/Date/Date.d.ts +30 -64
- package/types/src/Date/Icon.d.ts +2 -1
- package/types/src/Date/docs/examples/Basic.d.ts +2 -1
- package/types/src/Date/docs/examples/Controlled.d.ts +2 -2
- package/types/src/Date/docs/examples/CustomDate.d.ts +2 -1
- package/types/src/Date/docs/examples/Disabled.d.ts +2 -1
- package/types/src/Date/docs/examples/Error.d.ts +2 -1
- package/types/src/Date/docs/examples/HighlightToday.d.ts +2 -2
- package/types/src/Date/docs/examples/WithoutCalendar.d.ts +2 -1
- package/types/src/DefinitionList/DefinitionList.d.ts +8 -3
- package/types/src/DefinitionList/DefinitionListContext.d.ts +7 -0
- package/types/src/DefinitionList/Description.d.ts +3 -3
- package/types/src/DefinitionList/Term.d.ts +3 -3
- package/types/src/DefinitionList/docs/examples/Basic.d.ts +2 -1
- package/types/src/DefinitionList/docs/examples/Customize.d.ts +2 -1
- package/types/src/DefinitionList/docs/examples/EmptyDescription.d.ts +3 -0
- package/types/src/DefinitionList/docs/examples/WithSeparator.d.ts +3 -0
- package/types/src/Divider/Divider.d.ts +1 -1
- package/types/src/Divider/docs/examples/Basic.d.ts +2 -1
- package/types/src/Divider/docs/examples/CustomStyle.d.ts +2 -1
- package/types/src/Divider/docs/examples/Decorative.d.ts +2 -1
- package/types/src/Divider/docs/examples/Vertical.d.ts +2 -1
- package/types/src/Dropdown/Dropdown.d.ts +29 -44
- package/types/src/Dropdown/docs/examples/Basic.d.ts +2 -1
- package/types/src/Dropdown/docs/examples/BasicMenu.d.ts +2 -1
- package/types/src/Dropdown/docs/examples/ControlledDropdown.d.ts +2 -1
- package/types/src/Dropdown/docs/examples/Dialog.d.ts +2 -1
- package/types/src/Dropdown/docs/examples/ScrollContainer.d.ts +2 -1
- package/types/src/Dropdown/docs/examples/ScrollingMenu.d.ts +2 -1
- package/types/src/Dropdown/docs/examples/Submenu.d.ts +2 -1
- package/types/src/Dropdown/docs/examples/TooltipButtonToggle.d.ts +2 -1
- package/types/src/DualListbox/DualListbox.d.ts +1 -1
- package/types/src/DualListbox/Label.d.ts +1 -1
- package/types/src/DualListbox/Listbox.d.ts +1 -1
- package/types/src/DualListbox/Option.d.ts +1 -1
- package/types/src/DualListbox/ScreenReaderWrapper.d.ts +2 -1
- package/types/src/DualListbox/ToolbarButton.d.ts +1 -1
- package/types/src/DualListbox/docs/examples/Basic.d.ts +2 -1
- package/types/src/DualListbox/docs/examples/Controlled.d.ts +2 -1
- package/types/src/DualListbox/docs/examples/Fill.d.ts +2 -1
- package/types/src/EventListener/EventListener.d.ts +1 -1
- package/types/src/File/File.d.ts +26 -33
- package/types/src/File/Icon.d.ts +2 -1
- package/types/src/File/IconCloud.d.ts +2 -1
- package/types/src/File/Item.d.ts +1 -1
- package/types/src/File/PaperClip.d.ts +2 -1
- package/types/src/File/Retry.d.ts +2 -1
- package/types/src/File/Trash.d.ts +2 -1
- package/types/src/File/docs/examples/CustomizedMessages.d.ts +2 -1
- package/types/src/File/docs/examples/Disabled.d.ts +2 -2
- package/types/src/File/docs/examples/DropAnywhere.d.ts +2 -2
- package/types/src/File/docs/examples/Error.d.ts +2 -1
- package/types/src/File/docs/examples/FullScreen.d.ts +2 -1
- package/types/src/File/docs/examples/Multi.d.ts +2 -2
- package/types/src/File/docs/examples/Progress.d.ts +2 -1
- package/types/src/File/docs/examples/Single.d.ts +2 -2
- package/types/src/FormRows/FormRows.d.ts +20 -14
- package/types/src/FormRows/Row.d.ts +11 -7
- package/types/src/FormRows/SortableList.d.ts +1 -1
- package/types/src/FormRows/docs/examples/Basic.d.ts +1 -1
- package/types/src/FormRows/docs/examples/Header.d.ts +1 -1
- package/types/src/FormRows/docs/examples/Menu.d.ts +1 -1
- package/types/src/FormRows/docs/examples/ReorderOnly.d.ts +1 -1
- package/types/src/FormRows/icons/FormRowsPlusIcon.d.ts +2 -1
- package/types/src/Heading/Heading.d.ts +8 -20
- package/types/src/Heading/docs/examples/Basic.d.ts +2 -1
- package/types/src/Heading/docs/examples/Variant.d.ts +2 -1
- package/types/src/Heading/index.d.ts +1 -0
- package/types/src/Image/Image.d.ts +8 -19
- package/types/src/Image/docs/examples/Basic.d.ts +2 -1
- package/types/src/Image/icons/Cross.d.ts +2 -1
- package/types/src/JSONTree/JSONTree.d.ts +6 -10
- package/types/src/JSONTree/JSONTreeItem.d.ts +1 -1
- package/types/src/JSONTree/docs/examples/Basic.d.ts +2 -1
- package/types/src/JSONTree/docs/examples/Events.d.ts +2 -2
- package/types/src/JSONTree/docs/examples/ExpandChildrenOnShiftKey.d.ts +2 -1
- package/types/src/JSONTree/renderTreeItems.d.ts +3 -2
- package/types/src/Layer/Layer.d.ts +8 -25
- package/types/src/Layer/LayerStack.d.ts +2 -3
- package/types/src/Layer/docs/examples/Basic.d.ts +2 -1
- package/types/src/Layout/Layout.d.ts +22 -0
- package/types/src/Layout/docs/examples/Basic.d.ts +3 -0
- package/types/src/Layout/index.d.ts +2 -0
- package/types/src/Layout/test/Layout.unit.d.ts +1 -0
- package/types/src/Link/Link.d.ts +9 -22
- package/types/src/Link/docs/examples/Basic.d.ts +2 -1
- package/types/src/Link/docs/examples/Disabled.d.ts +2 -1
- package/types/src/Link/docs/examples/NewWindow.d.ts +2 -1
- package/types/src/Link/docs/examples/Standalone.d.ts +3 -0
- package/types/src/Link/icons/External.d.ts +2 -1
- package/types/src/List/Item.d.ts +1 -1
- package/types/src/List/List.d.ts +5 -17
- package/types/src/List/docs/examples/CustomizedList.d.ts +2 -1
- package/types/src/List/docs/examples/OrderedList.d.ts +2 -1
- package/types/src/List/docs/examples/UnorderedList.d.ts +2 -1
- package/types/src/Markdown/Markdown.d.ts +50 -59
- package/types/src/Markdown/docs/examples/Basic.d.ts +2 -1
- package/types/src/Markdown/docs/examples/I18n.d.ts +2 -1
- package/types/src/Markdown/docs/examples/RenderProps.d.ts +2 -1
- package/types/src/Markdown/renderers/MarkdownAnchorHeading.d.ts +2 -8
- package/types/src/Markdown/renderers/MarkdownBlockquote.d.ts +3 -7
- package/types/src/Markdown/renderers/MarkdownCode.d.ts +3 -9
- package/types/src/Markdown/renderers/MarkdownCodeBlock.d.ts +5 -9
- package/types/src/Markdown/renderers/MarkdownHeading.d.ts +3 -9
- package/types/src/Markdown/renderers/MarkdownImage.d.ts +4 -11
- package/types/src/Markdown/renderers/MarkdownItem.d.ts +4 -8
- package/types/src/Markdown/renderers/MarkdownLink.d.ts +3 -11
- package/types/src/Markdown/renderers/MarkdownList.d.ts +6 -22
- package/types/src/Markdown/renderers/MarkdownParagraph.d.ts +1 -7
- package/types/src/Markdown/renderers/MarkdownTable.d.ts +40 -0
- package/types/src/Markdown/renderers/index.d.ts +5 -4
- package/types/src/Menu/Divider.d.ts +2 -1
- package/types/src/Menu/Heading.d.ts +3 -3
- package/types/src/Menu/Item.d.ts +14 -47
- package/types/src/Menu/Menu.d.ts +4 -19
- package/types/src/Menu/docs/examples/Adornments.d.ts +2 -1
- package/types/src/Menu/docs/examples/Basic.d.ts +2 -1
- package/types/src/Menu/docs/examples/Complex.d.ts +2 -1
- package/types/src/Menu/docs/examples/Descriptions.d.ts +2 -1
- package/types/src/Menu/docs/examples/Dimmed.d.ts +2 -1
- package/types/src/Menu/docs/examples/Disabled.d.ts +2 -1
- package/types/src/Menu/docs/examples/Dividers.d.ts +2 -1
- package/types/src/Menu/docs/examples/Headings.d.ts +2 -1
- package/types/src/Menu/docs/examples/Links.d.ts +2 -1
- package/types/src/Menu/docs/examples/MatchRanges.d.ts +2 -1
- package/types/src/Menu/docs/examples/Selectable.d.ts +2 -1
- package/types/src/Menu/docs/examples/SelectableWithAdornments.d.ts +2 -1
- package/types/src/Menu/docs/examples/Truncate.d.ts +2 -1
- package/types/src/Menu/icons/External.d.ts +2 -1
- package/types/src/Message/Message.d.ts +4 -11
- package/types/src/Message/Title.d.ts +1 -1
- package/types/src/Message/docs/examples/Basic.d.ts +2 -1
- package/types/src/Message/docs/examples/Content.d.ts +2 -1
- package/types/src/Message/docs/examples/Fill.d.ts +2 -1
- package/types/src/Message/docs/examples/Removable.d.ts +2 -1
- package/types/src/MessageBar/MessageBar.d.ts +1 -1
- package/types/src/MessageBar/docs/examples/Basic.d.ts +2 -1
- package/types/src/MessageBar/docs/examples/Types.d.ts +2 -1
- package/types/src/MessageBar/docs/examples/WithActions.d.ts +2 -1
- package/types/src/Modal/Body.d.ts +1 -1
- package/types/src/Modal/Footer.d.ts +9 -1
- package/types/src/Modal/Header.d.ts +7 -11
- package/types/src/Modal/Modal.d.ts +26 -32
- package/types/src/Modal/ModalContext.d.ts +2 -0
- package/types/src/Modal/docs/examples/Basic.d.ts +2 -1
- package/types/src/Modal/docs/examples/InitialFocus.d.ts +2 -1
- package/types/src/Modal/docs/examples/TypicalUsage.d.ts +2 -1
- package/types/src/Modal/docs/examples/Undismissable.d.ts +2 -1
- package/types/src/ModalLayer/ModalLayer.d.ts +1 -1
- package/types/src/Monogram/Monogram.d.ts +3 -7
- package/types/src/Monogram/docs/examples/BackgroundAuto.d.ts +2 -1
- package/types/src/Monogram/docs/examples/BackgroundCustom.d.ts +2 -1
- package/types/src/Monogram/docs/examples/Basic.d.ts +2 -1
- package/types/src/Monogram/docs/examples/Interactive.d.ts +2 -1
- package/types/src/Monogram/docs/examples/Size.d.ts +2 -1
- package/types/src/Multiselect/Compact.d.ts +1 -1
- package/types/src/Multiselect/Multiselect.d.ts +2 -2
- package/types/src/Multiselect/Normal.d.ts +1 -1
- package/types/src/Multiselect/Option.d.ts +1 -1
- package/types/src/Multiselect/docs/examples/Children.d.ts +2 -2
- package/types/src/Multiselect/docs/examples/Compact.d.ts +2 -1
- package/types/src/Multiselect/docs/examples/CompactSelectAll.d.ts +2 -1
- package/types/src/Multiselect/docs/examples/Controlled.d.ts +2 -2
- package/types/src/Multiselect/docs/examples/CustomizeSelected.d.ts +2 -2
- package/types/src/Multiselect/docs/examples/Disabled.d.ts +2 -2
- package/types/src/Multiselect/docs/examples/Error.d.ts +2 -2
- package/types/src/Multiselect/docs/examples/Fetching.d.ts +4 -4
- package/types/src/Multiselect/docs/examples/Headings.d.ts +2 -1
- package/types/src/Multiselect/docs/examples/Icons.d.ts +2 -1
- package/types/src/Multiselect/docs/examples/LoadMoreOnScrollBottom.d.ts +4 -4
- package/types/src/Multiselect/docs/examples/NewValues.d.ts +2 -2
- package/types/src/Multiselect/docs/examples/TabInput.d.ts +2 -2
- package/types/src/Multiselect/docs/examples/Uncontrolled.d.ts +2 -1
- package/types/src/NonInteractiveCheckbox/NonInteractiveCheckbox.d.ts +21 -0
- package/types/src/NonInteractiveCheckbox/index.d.ts +1 -0
- package/types/src/Number/Number.d.ts +46 -61
- package/types/src/Number/docs/examples/Basic.d.ts +2 -2
- package/types/src/Number/docs/examples/Disabled.d.ts +2 -1
- package/types/src/Number/docs/examples/Error.d.ts +2 -1
- package/types/src/Number/docs/examples/Limits.d.ts +2 -2
- package/types/src/Number/docs/examples/Locale.d.ts +2 -2
- package/types/src/Number/docs/examples/Uncontrolled.d.ts +2 -1
- package/types/src/Number/utils.d.ts +1 -2
- package/types/src/Paginator/Button.d.ts +4 -8
- package/types/src/Paginator/Compact.d.ts +1 -1
- package/types/src/Paginator/PageControl.d.ts +1 -1
- package/types/src/Paginator/PageSelect.d.ts +1 -1
- package/types/src/Paginator/PageSeparator.d.ts +2 -1
- package/types/src/Paginator/Paginator.d.ts +1 -1
- package/types/src/Paginator/docs/examples/Basic.d.ts +2 -1
- package/types/src/Paginator/docs/examples/Compact.d.ts +2 -1
- package/types/src/Paginator/docs/examples/CompactCustomLabel.d.ts +2 -1
- package/types/src/Paginator/docs/examples/CompactWithLabel.d.ts +2 -1
- package/types/src/Paginator/docs/examples/CustomPages.d.ts +2 -1
- package/types/src/Paginator/docs/examples/Labelled.d.ts +2 -1
- package/types/src/Paginator/docs/examples/PageControl.d.ts +2 -1
- package/types/src/Paragraph/Paragraph.d.ts +3 -1
- package/types/src/Paragraph/docs/examples/Basic.d.ts +2 -1
- package/types/src/Paragraph/index.d.ts +1 -0
- package/types/src/Popover/Popover.d.ts +38 -69
- package/types/src/Popover/PopoverProvider.d.ts +1 -1
- package/types/src/Popover/docs/examples/Basic.d.ts +2 -1
- package/types/src/Popover/getPlacement.d.ts +1 -1
- package/types/src/Progress/Progress.d.ts +3 -4
- package/types/src/Progress/docs/examples/Basic.d.ts +2 -1
- package/types/src/Progress/docs/examples/Type.d.ts +2 -1
- package/types/src/Prose/Prose.d.ts +29 -0
- package/types/src/Prose/docs/examples/Basic.d.ts +3 -0
- package/types/src/Prose/docs/examples/Customize.d.ts +3 -0
- package/types/src/Prose/index.d.ts +2 -0
- package/types/src/Prose/test/Prose.unit.d.ts +1 -0
- package/types/src/RadioBar/Option.d.ts +2 -18
- package/types/src/RadioBar/RadioBar.d.ts +22 -39
- package/types/src/RadioBar/RadioBarContext.d.ts +0 -1
- package/types/src/RadioBar/docs/examples/AdornmentAriaExamples.d.ts +2 -1
- package/types/src/RadioBar/docs/examples/Basic.d.ts +2 -1
- package/types/src/RadioBar/docs/examples/Disabled.d.ts +2 -1
- package/types/src/RadioBar/docs/examples/Error.d.ts +2 -1
- package/types/src/RadioBar/docs/examples/MenuBar.d.ts +2 -1
- package/types/src/RadioBar/docs/examples/Uncontrolled.d.ts +2 -1
- package/types/src/RadioList/Option.d.ts +1 -1
- package/types/src/RadioList/RadioList.d.ts +5 -2
- package/types/src/RadioList/docs/examples/Basic.d.ts +2 -1
- package/types/src/RadioList/docs/examples/Disabled.d.ts +2 -1
- package/types/src/RadioList/docs/examples/Error.d.ts +2 -1
- package/types/src/RadioList/docs/examples/Row.d.ts +2 -1
- package/types/src/RadioList/docs/examples/Uncontrolled.d.ts +2 -1
- package/types/src/Resize/Resize.d.ts +15 -23
- package/types/src/Resize/docs/examples/Appearance.d.ts +2 -1
- package/types/src/Resize/docs/examples/Basic.d.ts +2 -1
- package/types/src/Resize/docs/examples/Percentage.d.ts +2 -1
- package/types/src/Resize/docs/examples/SizingInner.d.ts +2 -1
- package/types/src/Resize/docs/examples/SizingOuter.d.ts +2 -1
- package/types/src/ResultsMenu/ResultsMenu.d.ts +1 -1
- package/types/src/ResultsMenu/VirtualizedResultsMenu/VirtualizedResultsMenu.d.ts +1 -1
- package/types/src/ScreenReaderContent/ScreenReaderContent.d.ts +1 -1
- package/types/src/ScreenReaderContent/docs/examples/Basic.d.ts +2 -1
- package/types/src/Scroll/Inner.d.ts +1 -1
- package/types/src/Scroll/Scroll.d.ts +37 -27
- package/types/src/Scroll/docs/examples/Controlled.d.ts +2 -2
- package/types/src/Scroll/docs/examples/Uncontrolled.d.ts +2 -1
- package/types/src/ScrollContainerContext/docs/examples/Consumer.d.ts +2 -1
- package/types/src/ScrollContainerContext/docs/examples/Provider.d.ts +2 -1
- package/types/src/Search/Option.d.ts +32 -32
- package/types/src/Search/Search.d.ts +4 -4
- package/types/src/Search/docs/examples/Controlled.d.ts +2 -1
- package/types/src/Search/docs/examples/Loading.d.ts +2 -1
- package/types/src/Search/docs/examples/Options.d.ts +2 -1
- package/types/src/Search/docs/examples/OptionsLinks.d.ts +2 -1
- package/types/src/Search/docs/examples/Results.d.ts +2 -1
- package/types/src/Select/Option.d.ts +8 -21
- package/types/src/Select/OptionBase.d.ts +3 -8
- package/types/src/Select/Select.d.ts +62 -22
- package/types/src/Select/SelectAllOption.d.ts +1 -1
- package/types/src/Select/SelectBase.d.ts +4 -7
- package/types/src/Select/docs/examples/Appearance.d.ts +2 -1
- package/types/src/Select/docs/examples/Basic.d.ts +2 -1
- package/types/src/Select/docs/examples/Children.d.ts +2 -1
- package/types/src/Select/docs/examples/Descriptions.d.ts +2 -1
- package/types/src/Select/docs/examples/Error.d.ts +2 -1
- package/types/src/Select/docs/examples/Fetching.d.ts +2 -1
- package/types/src/Select/docs/examples/Filter.d.ts +2 -1
- package/types/src/Select/docs/examples/Headings.d.ts +2 -1
- package/types/src/Select/docs/examples/Icons.d.ts +2 -1
- package/types/src/Select/docs/examples/LoadMoreOnScrollBottom.d.ts +2 -1
- package/types/src/Select/docs/examples/Prefix.d.ts +2 -1
- package/types/src/Select/docs/examples/Truncate.d.ts +2 -1
- package/types/src/Select/docs/examples/Uncontrolled.d.ts +2 -1
- package/types/src/SidePanel/SidePanel.d.ts +18 -16
- package/types/src/SidePanel/docs/examples/Basic.d.ts +2 -1
- package/types/src/SidePanel/docs/examples/ChangeSize.d.ts +2 -1
- package/types/src/SidePanel/docs/examples/Composition.d.ts +2 -1
- package/types/src/Slider/Slider.d.ts +32 -46
- package/types/src/Slider/docs/examples/Basic.d.ts +2 -1
- package/types/src/Slider/docs/examples/Controlled.d.ts +2 -2
- package/types/src/Slider/docs/examples/CustomLabels.d.ts +2 -2
- package/types/src/Slider/docs/examples/Disabled.d.ts +2 -1
- package/types/src/Slider/docs/examples/Error.d.ts +2 -1
- package/types/src/Slider/docs/examples/StepMarks.d.ts +2 -1
- package/types/src/SlidingPanels/Panel.d.ts +23 -20
- package/types/src/SlidingPanels/SlidingPanels.d.ts +18 -25
- package/types/src/SlidingPanels/docs/examples/Basic.d.ts +2 -2
- package/types/src/SlidingPanels/docs/examples/Dropdown.d.ts +2 -2
- package/types/src/SlidingPanels/docs/examples/Modal.d.ts +2 -1
- package/types/src/SplitButton/Item.d.ts +2 -2
- package/types/src/SplitButton/SplitButton.d.ts +1 -1
- package/types/src/SplitButton/docs/examples/Basic.d.ts +2 -1
- package/types/src/SplitButton/docs/examples/Block.d.ts +2 -1
- package/types/src/SplitButton/docs/examples/ChangeLabel.d.ts +2 -1
- package/types/src/SplitButton/docs/examples/Disabled.d.ts +2 -1
- package/types/src/StaticContent/StaticContent.d.ts +1 -8
- package/types/src/StaticContent/docs/examples/Basic.d.ts +2 -1
- package/types/src/StaticContent/docs/examples/FieldValue.d.ts +2 -1
- package/types/src/StepBar/Step.d.ts +1 -1
- package/types/src/StepBar/StepBar.d.ts +2 -3
- package/types/src/StepBar/docs/examples/Basic.d.ts +2 -1
- package/types/src/StepBar/docs/examples/Error.d.ts +2 -1
- package/types/src/StepBar/types.d.ts +2 -0
- package/types/src/Switch/Switch.d.ts +37 -23
- package/types/src/Switch/docs/examples/Basic.d.ts +2 -2
- package/types/src/Switch/docs/examples/Disabled.d.ts +2 -2
- package/types/src/Switch/docs/examples/Error.d.ts +2 -1
- package/types/src/TabBar/Tab.d.ts +37 -44
- package/types/src/TabBar/TabBar.d.ts +21 -22
- package/types/src/TabBar/TabBarContext.d.ts +3 -5
- package/types/src/TabBar/docs/examples/Basic.d.ts +2 -1
- package/types/src/TabBar/docs/examples/Disabled.d.ts +2 -1
- package/types/src/TabBar/docs/examples/IconsAbove.d.ts +2 -1
- package/types/src/TabBar/docs/examples/IconsLeft.d.ts +2 -1
- package/types/src/TabBar/docs/examples/Tooltips.d.ts +2 -1
- package/types/src/TabBar/docs/examples/Vertical.d.ts +2 -1
- package/types/src/TabBar/docs/examples/VerticalIconsAbove.d.ts +2 -1
- package/types/src/TabBar/docs/examples/VerticalIconsLeft.d.ts +2 -1
- package/types/src/TabBar/docs/examples/WithCount.d.ts +2 -1
- package/types/src/TabLayout/Panel.d.ts +6 -1
- package/types/src/TabLayout/TabLayout.d.ts +18 -31
- package/types/src/TabLayout/docs/examples/AutoActivate.d.ts +2 -1
- package/types/src/TabLayout/docs/examples/Controlled.d.ts +2 -1
- package/types/src/TabLayout/docs/examples/Icons.d.ts +2 -1
- package/types/src/TabLayout/docs/examples/Uncontrolled.d.ts +2 -1
- package/types/src/TabLayout/docs/examples/Vertical.d.ts +2 -1
- package/types/src/TabLayout/docs/examples/VerticalIcons.d.ts +2 -1
- package/types/src/Table/Body.d.ts +6 -13
- package/types/src/Table/Caption.d.ts +1 -1
- package/types/src/Table/Cell.d.ts +40 -18
- package/types/src/Table/ExpandButton.d.ts +9 -3
- package/types/src/Table/Head.d.ts +40 -40
- package/types/src/Table/HeadCell.d.ts +49 -23
- package/types/src/Table/HeadDropdownCell.d.ts +58 -51
- package/types/src/Table/HeadInner.d.ts +1 -3
- package/types/src/Table/HeadTable.d.ts +23 -12
- package/types/src/Table/Row.d.ts +7 -14
- package/types/src/Table/RowDragCell.d.ts +2 -1
- package/types/src/Table/Table.d.ts +13 -19
- package/types/src/Table/Toggle.d.ts +1 -3
- package/types/src/Table/docs/examples/Basic.d.ts +2 -1
- package/types/src/Table/docs/examples/Click.d.ts +2 -1
- package/types/src/Table/docs/examples/ClickRows.d.ts +2 -1
- package/types/src/Table/docs/examples/Complex.d.ts +2 -1
- package/types/src/Table/docs/examples/DockedHeaderScrollbar.d.ts +2 -1
- package/types/src/Table/docs/examples/ExpandableRows.d.ts +2 -1
- package/types/src/Table/docs/examples/ExpandableRowsControlled.d.ts +2 -1
- package/types/src/Table/docs/examples/FilterColumnValues.d.ts +2 -1
- package/types/src/Table/docs/examples/FixedHeader.d.ts +2 -1
- package/types/src/Table/docs/examples/HeadDropdownCell.d.ts +2 -1
- package/types/src/Table/docs/examples/ReorderColumns.d.ts +2 -1
- package/types/src/Table/docs/examples/ReorderRows.d.ts +2 -1
- package/types/src/Table/docs/examples/Resizable.d.ts +2 -1
- package/types/src/Table/docs/examples/ResizableFill.d.ts +2 -1
- package/types/src/Table/docs/examples/RowActions.d.ts +2 -1
- package/types/src/Table/docs/examples/Selectable.d.ts +2 -1
- package/types/src/Table/docs/examples/SortableColumns.d.ts +2 -1
- package/types/src/Table/docs/examples/StripeRows.d.ts +2 -1
- package/types/src/Table/docs/examples/prisma/DockedHeaderScrollbar.d.ts +2 -1
- package/types/src/Text/IconOutlinedHide.d.ts +2 -1
- package/types/src/Text/IconOutlinedView.d.ts +2 -1
- package/types/src/Text/Text.d.ts +62 -112
- package/types/src/Text/docs/examples/Basic.d.ts +2 -1
- package/types/src/Text/docs/examples/CustomizedIcon.d.ts +2 -1
- package/types/src/Text/docs/examples/Dimmed.d.ts +2 -1
- package/types/src/Text/docs/examples/Disabled.d.ts +2 -1
- package/types/src/Text/docs/examples/Error.d.ts +2 -1
- package/types/src/Text/docs/examples/Inline.d.ts +2 -1
- package/types/src/Text/docs/examples/Password.d.ts +2 -1
- package/types/src/Text/docs/examples/Uncontrolled.d.ts +2 -1
- package/types/src/TextArea/TextArea.d.ts +49 -87
- package/types/src/TextArea/docs/examples/Basic.d.ts +2 -1
- package/types/src/TextArea/docs/examples/Disabled.d.ts +2 -1
- package/types/src/TextArea/docs/examples/Error.d.ts +2 -1
- package/types/src/TextArea/docs/examples/Inline.d.ts +2 -1
- package/types/src/TextArea/docs/examples/Uncontrolled.d.ts +2 -1
- package/types/src/TextArea/syncHeightWithShadow.d.ts +1 -1
- package/types/src/Tooltip/InfoIcon.d.ts +2 -1
- package/types/src/Tooltip/Tooltip.d.ts +9 -3
- package/types/src/Tooltip/docs/examples/Basic.d.ts +2 -1
- package/types/src/Tooltip/docs/examples/ContentRelationship.d.ts +2 -1
- package/types/src/Tooltip/docs/examples/Controlled.d.ts +2 -2
- package/types/src/Tooltip/docs/examples/CustomDelay.d.ts +2 -1
- package/types/src/Tooltip/docs/examples/CustomProps.d.ts +2 -1
- package/types/src/Tooltip/docs/examples/Toggletip.d.ts +2 -1
- package/types/src/TransitionOpen/TransitionOpen.d.ts +23 -25
- package/types/src/TransitionOpen/docs/examples/ExpandHeight.d.ts +2 -1
- package/types/src/TransitionOpen/docs/examples/ExpandWidth.d.ts +2 -1
- package/types/src/TransitionOpen/docs/examples/None.d.ts +2 -1
- package/types/src/TransitionOpen/docs/examples/SlideFromBottom.d.ts +2 -1
- package/types/src/TransitionOpen/docs/examples/SlideFromLeft.d.ts +2 -1
- package/types/src/TransitionOpen/docs/examples/SlideFromRight.d.ts +2 -1
- package/types/src/TransitionOpen/docs/examples/SlideFromTop.d.ts +2 -1
- package/types/src/Tree/Tree.d.ts +1 -1
- package/types/src/Tree/TreeItem.d.ts +1 -1
- package/types/src/Typography/Typography.d.ts +10 -19
- package/types/src/Typography/docs/examples/Basic.d.ts +2 -1
- package/types/src/WaitSpinner/WaitSpinner.d.ts +2 -3
- package/types/src/WaitSpinner/docs/examples/Basic.d.ts +2 -1
- package/types/src/utils/types.d.ts +1 -0
- package/Concertina.d.ts +0 -2
- package/Concertina.js +0 -963
- package/types/src/Accordion/docs/examples/FixedHeight.d.ts +0 -2
- package/types/src/Accordion/docs/examples/InDropdown.d.ts +0 -2
- package/types/src/Button/docs/examples/Dimmed.d.ts +0 -2
- package/types/src/Button/icons/CaretSmallDown.d.ts +0 -2
- package/types/src/Button/icons/External.d.ts +0 -2
- package/types/src/Clickable/docs/examples/Dimmed.d.ts +0 -2
- package/types/src/CloseButton/CloseButton.d.ts +0 -21
- package/types/src/CloseButton/index.d.ts +0 -1
- package/types/src/CollapsiblePanel/docs/examples/TitleWithActions.d.ts +0 -2
- package/types/src/Concertina/Concertina.d.ts +0 -46
- package/types/src/Concertina/ConcertinaContext.d.ts +0 -8
- package/types/src/Concertina/Heading.d.ts +0 -35
- package/types/src/Concertina/Panel.d.ts +0 -59
- package/types/src/Concertina/docs/examples/Basic.d.ts +0 -2
- package/types/src/Concertina/docs/examples/Disabled.d.ts +0 -9
- package/types/src/Concertina/docs/examples/Status.d.ts +0 -2
- package/types/src/Concertina/index.d.ts +0 -2
- package/types/src/Concertina/types.d.ts +0 -1
- package/types/src/ControlGroup/docs/examples/LabelTop.d.ts +0 -2
- package/types/src/Link/docs/examples/Inline.d.ts +0 -2
- package/types/src/Message/Link.d.ts +0 -37
- package/types/src/Number/IncrementIcon.d.ts +0 -2
- package/types/src/Paginator/icons/ChevronLeft.d.ts +0 -5
- package/types/src/Paginator/icons/ChevronRight.d.ts +0 -5
- package/types/src/RadioList/docs/examples/Composing.d.ts +0 -2
- package/types/src/Select/icons/CaretSmallDown.d.ts +0 -2
- package/types/src/Select/icons/Search.d.ts +0 -2
- package/types/src/Switch/CheckIcon.d.ts +0 -1
- package/types/src/Table/DragHandle.d.ts +0 -12
- package/types/src/Table/icons/HeadExpandRows.d.ts +0 -1
- package/types/src/Text/docs/examples/Multiline.d.ts +0 -2
- package/types/src/Text/docs/examples/Search.d.ts +0 -2
- package/types/src/TextArea/docs/examples/ClearContent.d.ts +0 -2
- package/types/src/TextArea/icons/ClearButton.d.ts +0 -3
- package/types/src/TextArea/icons/SearchIcon.d.ts +0 -1
package/Dropdown.js
CHANGED
|
@@ -9,26 +9,26 @@
|
|
|
9
9
|
/******/ (() => {
|
|
10
10
|
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
11
11
|
/******/ e.n = o => {
|
|
12
|
-
/******/ var
|
|
12
|
+
/******/ var n = o && o.__esModule ?
|
|
13
13
|
/******/ () => o["default"]
|
|
14
14
|
/******/ : () => o
|
|
15
15
|
/******/;
|
|
16
|
-
e.d(
|
|
17
|
-
a:
|
|
16
|
+
e.d(n, {
|
|
17
|
+
a: n
|
|
18
18
|
});
|
|
19
|
-
/******/ return
|
|
19
|
+
/******/ return n;
|
|
20
20
|
/******/ };
|
|
21
21
|
/******/ })();
|
|
22
22
|
/******/
|
|
23
23
|
/******/ /* webpack/runtime/define property getters */
|
|
24
24
|
/******/ (() => {
|
|
25
25
|
/******/ // define getter functions for harmony exports
|
|
26
|
-
/******/ e.d = (o,
|
|
27
|
-
/******/ for (var
|
|
28
|
-
/******/ if (e.o(
|
|
29
|
-
/******/ Object.defineProperty(o,
|
|
26
|
+
/******/ e.d = (o, n) => {
|
|
27
|
+
/******/ for (var r in n) {
|
|
28
|
+
/******/ if (e.o(n, r) && !e.o(o, r)) {
|
|
29
|
+
/******/ Object.defineProperty(o, r, {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get:
|
|
31
|
+
get: n[r]
|
|
32
32
|
});
|
|
33
33
|
/******/ }
|
|
34
34
|
/******/ }
|
|
@@ -61,39 +61,24 @@
|
|
|
61
61
|
e.r(o);
|
|
62
62
|
// EXPORTS
|
|
63
63
|
e.d(o, {
|
|
64
|
-
default: () => /* reexport */
|
|
65
|
-
legacyRefMode: () => /* reexport */ N
|
|
64
|
+
default: () => /* reexport */ w
|
|
66
65
|
});
|
|
67
66
|
// CONCATENATED MODULE: external "react"
|
|
68
|
-
const
|
|
69
|
-
var
|
|
67
|
+
const n = require("react");
|
|
68
|
+
var r = e.n(n);
|
|
70
69
|
// CONCATENATED MODULE: external "prop-types"
|
|
71
|
-
const
|
|
72
|
-
var
|
|
73
|
-
// CONCATENATED MODULE: external "lodash/has"
|
|
74
|
-
const l = require("lodash/has");
|
|
75
|
-
var a = e.n(l);
|
|
76
|
-
// CONCATENATED MODULE: external "lodash/includes"
|
|
77
|
-
const s = require("lodash/includes");
|
|
78
|
-
var c = e.n(s);
|
|
79
|
-
// CONCATENATED MODULE: external "lodash/isEmpty"
|
|
80
|
-
const p = require("lodash/isEmpty");
|
|
81
|
-
// CONCATENATED MODULE: external "lodash/isFunction"
|
|
82
|
-
const u = require("lodash/isFunction");
|
|
83
|
-
var f = e.n(u);
|
|
84
|
-
// CONCATENATED MODULE: external "lodash/keys"
|
|
85
|
-
const d = require("lodash/keys");
|
|
86
|
-
var v = e.n(d);
|
|
87
|
-
// CONCATENATED MODULE: external "lodash/omit"
|
|
88
|
-
const g = require("lodash/omit");
|
|
89
|
-
var y = e.n(g);
|
|
70
|
+
const t = require("prop-types");
|
|
71
|
+
var a = e.n(t);
|
|
90
72
|
// CONCATENATED MODULE: external "@splunk/ui-utils/id"
|
|
91
|
-
const
|
|
73
|
+
const l = require("@splunk/ui-utils/id");
|
|
92
74
|
// CONCATENATED MODULE: external "@splunk/ui-utils/keyboard"
|
|
93
|
-
const
|
|
75
|
+
const i = require("@splunk/ui-utils/keyboard");
|
|
94
76
|
// CONCATENATED MODULE: external "@splunk/react-ui/Popover"
|
|
95
|
-
const
|
|
96
|
-
var
|
|
77
|
+
const u = require("@splunk/react-ui/Popover");
|
|
78
|
+
var c = e.n(u);
|
|
79
|
+
// CONCATENATED MODULE: external "@splunk/react-ui/useControlled"
|
|
80
|
+
const s = require("@splunk/react-ui/useControlled");
|
|
81
|
+
var f = e.n(s);
|
|
97
82
|
// CONCATENATED MODULE: ./src/utils/updateReactRef.ts
|
|
98
83
|
/**
|
|
99
84
|
* Updates a React ref. Callback refs and object refs (from `createRef` and `useRef`) are supported.
|
|
@@ -101,7 +86,7 @@
|
|
|
101
86
|
* @param ref - The React callback or object ref. Can be `null` or `undefined`.
|
|
102
87
|
* @param current - The new value of the ref.
|
|
103
88
|
*/
|
|
104
|
-
function
|
|
89
|
+
function d(e, o) {
|
|
105
90
|
if (e) {
|
|
106
91
|
if (typeof e === "function") {
|
|
107
92
|
e(o);
|
|
@@ -114,121 +99,50 @@
|
|
|
114
99
|
}
|
|
115
100
|
}
|
|
116
101
|
// CONCATENATED MODULE: ./src/Dropdown/Dropdown.tsx
|
|
117
|
-
function
|
|
118
|
-
|
|
119
|
-
return C = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
|
|
120
|
-
return typeof e;
|
|
121
|
-
} : function(e) {
|
|
122
|
-
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
123
|
-
}, C(e);
|
|
102
|
+
function p(e, o) {
|
|
103
|
+
return m(e) || b(e, o) || y(e, o) || v();
|
|
124
104
|
}
|
|
125
|
-
function
|
|
126
|
-
|
|
127
|
-
if (Object.getOwnPropertySymbols) {
|
|
128
|
-
var n = Object.getOwnPropertySymbols(e);
|
|
129
|
-
o && (n = n.filter((function(o) {
|
|
130
|
-
return Object.getOwnPropertyDescriptor(e, o).enumerable;
|
|
131
|
-
}))), t.push.apply(t, n);
|
|
132
|
-
}
|
|
133
|
-
return t;
|
|
105
|
+
function v() {
|
|
106
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
134
107
|
}
|
|
135
|
-
function
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : k(Object(t)).forEach((function(o) {
|
|
141
|
-
Object.defineProperty(e, o, Object.getOwnPropertyDescriptor(t, o));
|
|
142
|
-
}));
|
|
108
|
+
function y(e, o) {
|
|
109
|
+
if (e) {
|
|
110
|
+
if ("string" == typeof e) return g(e, o);
|
|
111
|
+
var n = {}.toString.call(e).slice(8, -1);
|
|
112
|
+
return "Object" === n && e.constructor && (n = e.constructor.name), "Map" === n || "Set" === n ? Array.from(e) : "Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? g(e, o) : void 0;
|
|
143
113
|
}
|
|
144
|
-
return e;
|
|
145
|
-
}
|
|
146
|
-
function j(e, o) {
|
|
147
|
-
if (!(e instanceof o)) throw new TypeError("Cannot call a class as a function");
|
|
148
114
|
}
|
|
149
|
-
function
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
n
|
|
153
|
-
Object.defineProperty(e, F(n.key), n);
|
|
115
|
+
function g(e, o) {
|
|
116
|
+
(null == o || o > e.length) && (o = e.length);
|
|
117
|
+
for (var n = 0, r = Array(o); n < o; n++) {
|
|
118
|
+
r[n] = e[n];
|
|
154
119
|
}
|
|
120
|
+
return r;
|
|
155
121
|
}
|
|
156
|
-
function
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
122
|
+
function b(e, o) {
|
|
123
|
+
var n = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
|
|
124
|
+
if (null != n) {
|
|
125
|
+
var r, t, a, l, i = [], u = !0, c = !1;
|
|
126
|
+
try {
|
|
127
|
+
if (a = (n = n.call(e)).next, 0 === o) {
|
|
128
|
+
if (Object(n) !== n) return;
|
|
129
|
+
u = !1;
|
|
130
|
+
} else for (;!(u = (r = a.call(n)).done) && (i.push(r.value), i.length !== o); u = !0) {
|
|
131
|
+
}
|
|
132
|
+
} catch (e) {
|
|
133
|
+
c = !0, t = e;
|
|
134
|
+
} finally {
|
|
135
|
+
try {
|
|
136
|
+
if (!u && null != n["return"] && (l = n["return"](), Object(l) !== l)) return;
|
|
137
|
+
} finally {
|
|
138
|
+
if (c) throw t;
|
|
139
|
+
}
|
|
168
140
|
}
|
|
169
|
-
|
|
170
|
-
writable: !1
|
|
171
|
-
}), o && T(e, o);
|
|
172
|
-
}
|
|
173
|
-
function T(e, o) {
|
|
174
|
-
return T = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, o) {
|
|
175
|
-
return e.__proto__ = o, e;
|
|
176
|
-
}, T(e, o);
|
|
177
|
-
}
|
|
178
|
-
function E(e) {
|
|
179
|
-
var o = K();
|
|
180
|
-
return function() {
|
|
181
|
-
var t, n = M(e);
|
|
182
|
-
if (o) {
|
|
183
|
-
var r = M(this).constructor;
|
|
184
|
-
t = Reflect.construct(n, arguments, r);
|
|
185
|
-
} else t = n.apply(this, arguments);
|
|
186
|
-
return D(this, t);
|
|
187
|
-
};
|
|
188
|
-
}
|
|
189
|
-
function D(e, o) {
|
|
190
|
-
if (o && ("object" == C(o) || "function" == typeof o)) return o;
|
|
191
|
-
if (void 0 !== o) throw new TypeError("Derived constructors may only return object or undefined");
|
|
192
|
-
return I(e);
|
|
193
|
-
}
|
|
194
|
-
function I(e) {
|
|
195
|
-
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
196
|
-
return e;
|
|
197
|
-
}
|
|
198
|
-
function K() {
|
|
199
|
-
try {
|
|
200
|
-
var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function() {})));
|
|
201
|
-
} catch (e) {}
|
|
202
|
-
return (K = function o() {
|
|
203
|
-
return !!e;
|
|
204
|
-
})();
|
|
205
|
-
}
|
|
206
|
-
function M(e) {
|
|
207
|
-
return M = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
|
|
208
|
-
return e.__proto__ || Object.getPrototypeOf(e);
|
|
209
|
-
}, M(e);
|
|
210
|
-
}
|
|
211
|
-
function _(e, o, t) {
|
|
212
|
-
return (o = F(o)) in e ? Object.defineProperty(e, o, {
|
|
213
|
-
value: t,
|
|
214
|
-
enumerable: !0,
|
|
215
|
-
configurable: !0,
|
|
216
|
-
writable: !0
|
|
217
|
-
}) : e[o] = t, e;
|
|
218
|
-
}
|
|
219
|
-
function F(e) {
|
|
220
|
-
var o = A(e, "string");
|
|
221
|
-
return "symbol" == C(o) ? o : o + "";
|
|
222
|
-
}
|
|
223
|
-
function A(e, o) {
|
|
224
|
-
if ("object" != C(e) || !e) return e;
|
|
225
|
-
var t = e[Symbol.toPrimitive];
|
|
226
|
-
if (void 0 !== t) {
|
|
227
|
-
var n = t.call(e, o || "default");
|
|
228
|
-
if ("object" != C(n)) return n;
|
|
229
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
141
|
+
return i;
|
|
230
142
|
}
|
|
231
|
-
|
|
143
|
+
}
|
|
144
|
+
function m(e) {
|
|
145
|
+
if (Array.isArray(e)) return e;
|
|
232
146
|
}
|
|
233
147
|
/** @public */
|
|
234
148
|
/** @public */
|
|
@@ -236,231 +150,160 @@
|
|
|
236
150
|
/** @public */
|
|
237
151
|
/** @public */
|
|
238
152
|
/** @public */
|
|
239
|
-
/** @public */
|
|
240
|
-
|
|
241
|
-
var
|
|
242
|
-
align:
|
|
243
|
-
canCoverAnchor:
|
|
244
|
-
children:
|
|
245
|
-
closeReasons:
|
|
246
|
-
defaultPlacement:
|
|
247
|
-
elementRef:
|
|
248
|
-
focusToggleReasons:
|
|
249
|
-
inputId:
|
|
250
|
-
onRequestClose:
|
|
251
|
-
onRequestOpen:
|
|
252
|
-
open:
|
|
253
|
-
openWithArrowKeys:
|
|
254
|
-
repositionMode:
|
|
255
|
-
retainFocus:
|
|
256
|
-
takeFocus:
|
|
257
|
-
toggle:
|
|
153
|
+
/** @public */ var k = [ "clickAway", "contentClick", "escapeKey", "offScreen", "tabKey", "toggleClick" ];
|
|
154
|
+
var C = [ "contentClick", "escapeKey", "tabKey", "toggleClick" ];
|
|
155
|
+
var h = {
|
|
156
|
+
align: a().oneOf([ "center", "edge", "end" ]),
|
|
157
|
+
canCoverAnchor: a().bool,
|
|
158
|
+
children: a().oneOfType([ a().node, a().func ]),
|
|
159
|
+
closeReasons: a().arrayOf(a().oneOf(k)),
|
|
160
|
+
defaultPlacement: a().oneOf([ "above", "below", "left", "right", "vertical", "horizontal" ]),
|
|
161
|
+
elementRef: a().oneOfType([ a().func, a().object ]),
|
|
162
|
+
focusToggleReasons: a().arrayOf(a().oneOf(k)),
|
|
163
|
+
inputId: a().string,
|
|
164
|
+
onRequestClose: a().func,
|
|
165
|
+
onRequestOpen: a().func,
|
|
166
|
+
open: a().bool,
|
|
167
|
+
openWithArrowKeys: a().bool,
|
|
168
|
+
repositionMode: a().oneOf([ "none", "flip", "any" ]),
|
|
169
|
+
retainFocus: a().bool,
|
|
170
|
+
takeFocus: a().bool,
|
|
171
|
+
toggle: a().element.isRequired
|
|
258
172
|
};
|
|
259
|
-
|
|
260
|
-
align: "
|
|
261
|
-
canCoverAnchor: true,
|
|
262
|
-
closeReasons: x,
|
|
263
|
-
defaultPlacement: "below",
|
|
264
|
-
focusToggleReasons: [ "contentClick", "escapeKey", "tabKey", "toggleClick" ],
|
|
265
|
-
repositionMode: "flip",
|
|
266
|
-
retainFocus: false,
|
|
267
|
-
openWithArrowKeys: false,
|
|
268
|
-
takeFocus: true
|
|
269
|
-
};
|
|
270
|
-
var N = Symbol("Dropdown legacy ref mode marker");
|
|
271
|
-
var z = function(e) {
|
|
272
|
-
q(r, e);
|
|
273
|
-
var o = E(r);
|
|
173
|
+
function O(e) {
|
|
174
|
+
var o = e["aria-labelledby"], t = e.align, a = t === void 0 ? "center" : t, u = e.canCoverAnchor, s = u === void 0 ? true : u, v = e.children, y = e.closeReasons, g = y === void 0 ? k : y, b = e.defaultPlacement, m = b === void 0 ? "below" : b, h = e.elementRef, O = e.focusToggleReasons, w = O === void 0 ? C : O, S = e.inputId, R = e.open, A = e.openWithArrowKeys, q = e.onRequestClose, I = e.onRequestOpen, P = e.repositionMode, j = P === void 0 ? "flip" : P, K = e.retainFocus, M = K === void 0 ? false : K, D = e.takeFocus, T = D === void 0 ? true : D, E = e.toggle;
|
|
274
175
|
// @docs-props-type DropdownPropsBase
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
176
|
+
var F = (0, n.useState)(null), N = p(F, 2), _ = N[0], x = N[1];
|
|
177
|
+
var W = (0, n.useState)(false), z = p(W, 2), U = z[0], V = z[1];
|
|
178
|
+
var $ = (0, n.useRef)(null);
|
|
179
|
+
var B = f()({
|
|
180
|
+
componentName: "Dropdown",
|
|
181
|
+
/* eslint-disable-next-line prefer-rest-params */
|
|
182
|
+
componentProps: arguments[0],
|
|
183
|
+
// see SUI-7028
|
|
184
|
+
defaultValuePropName: "defaultOpen",
|
|
185
|
+
valuePropName: "open"
|
|
186
|
+
});
|
|
187
|
+
var G = B ? R : U;
|
|
188
|
+
var H = (0, n.useState)((function() {
|
|
189
|
+
return {
|
|
190
|
+
popoverId: (0, l.createDOMID)("popover"),
|
|
191
|
+
toggleId: (0, l.createDOMID)("toggle")
|
|
192
|
+
};
|
|
193
|
+
})), J = p(H, 1), L = J[0], Q = L.popoverId, X = L.toggleId;
|
|
194
|
+
var Y = S || E.props.id || X;
|
|
195
|
+
var Z = (0, n.useCallback)((function(e) {
|
|
196
|
+
$.current = e;
|
|
197
|
+
x(e);
|
|
198
|
+
// TS: ref does not exist on React.ReactElement - technically, this is undocumented API
|
|
199
|
+
d(E.ref, e);
|
|
200
|
+
}), [ E ]);
|
|
201
|
+
var ee = (0, n.useCallback)((function(e) {
|
|
202
|
+
var o, n;
|
|
203
|
+
(o = (n = E.props).onKeyDown) === null || o === void 0 ? void 0 : o.call(n, e);
|
|
204
|
+
if (!A) {
|
|
205
|
+
return;
|
|
206
|
+
}
|
|
207
|
+
var r = (0, i.keycode)(e.nativeEvent);
|
|
208
|
+
if (r === "up" || r === "down") {
|
|
209
|
+
e.preventDefault();
|
|
210
|
+
I === null || I === void 0 ? void 0 : I(e, {
|
|
211
|
+
reason: "toggleKeydown"
|
|
291
212
|
});
|
|
292
|
-
if (
|
|
293
|
-
|
|
294
|
-
w(t.props.toggle.props.elementRef, e);
|
|
295
|
-
} else {
|
|
296
|
-
// TS: ref does not exist on React.ReactElement - technically, this is undocumented API
|
|
297
|
-
w(t.props.toggle.ref, e);
|
|
213
|
+
if (!B) {
|
|
214
|
+
V(true);
|
|
298
215
|
}
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
var r, i;
|
|
310
|
-
(r = (i = t.props).onRequestOpen) === null || r === void 0 ? void 0 : r.call(i, e, {
|
|
311
|
-
reason: "toggleClick"
|
|
312
|
-
});
|
|
313
|
-
if (!t.isControlled()) {
|
|
314
|
-
t.setState({
|
|
315
|
-
open: true
|
|
316
|
-
});
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
}));
|
|
320
|
-
_(I(t), "handleToggleKeyDownOpen", (function(e) {
|
|
321
|
-
var o, n;
|
|
322
|
-
(o = (n = t.props.toggle.props).onKeyDown) === null || o === void 0 ? void 0 : o.call(n, e);
|
|
323
|
-
if (!t.props.openWithArrowKeys) {
|
|
324
|
-
return;
|
|
325
|
-
}
|
|
326
|
-
var r = (0, b.keycode)(e.nativeEvent);
|
|
327
|
-
if (r === "up" || r === "down") {
|
|
328
|
-
var i, l;
|
|
329
|
-
e.preventDefault();
|
|
330
|
-
(i = (l = t.props).onRequestOpen) === null || i === void 0 ? void 0 : i.call(l, e, {
|
|
331
|
-
reason: "toggleKeydown"
|
|
332
|
-
});
|
|
333
|
-
if (!t.isControlled()) {
|
|
334
|
-
t.setState({
|
|
335
|
-
open: true
|
|
336
|
-
});
|
|
216
|
+
}
|
|
217
|
+
}), [ B, A, I, E ]);
|
|
218
|
+
var oe = (0, n.useCallback)((function(e) {
|
|
219
|
+
var o = e.event, n = e.reason;
|
|
220
|
+
if (o && n === "clickAway") {
|
|
221
|
+
var r = o.target;
|
|
222
|
+
while (r) {
|
|
223
|
+
// Ignore clicks on toggle.
|
|
224
|
+
if (r.id === Y) {
|
|
225
|
+
return;
|
|
337
226
|
}
|
|
227
|
+
r = r.parentNode;
|
|
338
228
|
}
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
var s = o.target;
|
|
345
|
-
var p = t.props.inputId || t.props.toggle.props.id || t.toggleId;
|
|
346
|
-
while (s) {
|
|
347
|
-
// Ignore clicks on toggle.
|
|
348
|
-
if (s.id === p) {
|
|
349
|
-
return;
|
|
350
|
-
}
|
|
351
|
-
s = s.parentNode;
|
|
352
|
-
}
|
|
229
|
+
}
|
|
230
|
+
if (G && g.includes(n)) {
|
|
231
|
+
if (w.includes(n)) {
|
|
232
|
+
var t;
|
|
233
|
+
(t = $.current) === null || t === void 0 ? void 0 : t.focus();
|
|
353
234
|
}
|
|
354
|
-
if (
|
|
355
|
-
|
|
356
|
-
t.focus();
|
|
357
|
-
}
|
|
358
|
-
if (!t.isControlled()) {
|
|
359
|
-
t.setState({
|
|
360
|
-
open: false
|
|
361
|
-
});
|
|
362
|
-
}
|
|
363
|
-
a === null || a === void 0 ? void 0 : a(e);
|
|
235
|
+
if (!B) {
|
|
236
|
+
V(false);
|
|
364
237
|
}
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
238
|
+
q === null || q === void 0 ? void 0 : q(e);
|
|
239
|
+
}
|
|
240
|
+
}), [ g, w, B, G, q, Y ]);
|
|
241
|
+
var ne = (0, n.useCallback)((function(e) {
|
|
242
|
+
oe({
|
|
243
|
+
reason: "contentClick",
|
|
244
|
+
event: e
|
|
245
|
+
});
|
|
246
|
+
}), [ oe ]);
|
|
247
|
+
var re = (0, n.useCallback)((function(e) {
|
|
248
|
+
var o, n;
|
|
249
|
+
(o = (n = E.props).onClick) === null || o === void 0 ? void 0 : o.call(n, e);
|
|
250
|
+
if (G) {
|
|
251
|
+
oe({
|
|
252
|
+
reason: "toggleClick",
|
|
369
253
|
event: e
|
|
370
254
|
});
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
t.toggleId = (0, h.createDOMID)("toggle");
|
|
379
|
-
return t;
|
|
380
|
-
}
|
|
381
|
-
S(r, [ {
|
|
382
|
-
key: "componentDidUpdate",
|
|
383
|
-
value: function e() {
|
|
384
|
-
if (false) {}
|
|
385
|
-
var o = R({}, y()(this.props, v()(r.propTypes), "aria-labelledby", "id", "value"));
|
|
386
|
-
if (false) {}
|
|
387
|
-
}
|
|
388
|
-
}, {
|
|
389
|
-
key: "isOpen",
|
|
390
|
-
value: function e() {
|
|
391
|
-
return this.isControlled() ? this.props.open : this.state.open;
|
|
392
|
-
}
|
|
393
|
-
/**
|
|
394
|
-
* Places focus on the toggle.
|
|
395
|
-
*/ }, {
|
|
396
|
-
key: "focus",
|
|
397
|
-
value: function e() {
|
|
398
|
-
var o;
|
|
399
|
-
(o = this.toggleRef) === null || o === void 0 ? void 0 : o.focus();
|
|
400
|
-
}
|
|
401
|
-
}, {
|
|
402
|
-
key: "isControlled",
|
|
403
|
-
value: function e() {
|
|
404
|
-
return this.controlledExternally;
|
|
405
|
-
}
|
|
406
|
-
}, {
|
|
407
|
-
key: "renderToggle",
|
|
408
|
-
value: function e() {
|
|
409
|
-
var o;
|
|
410
|
-
|
|
411
|
-
return (0, t.cloneElement)(this.props.toggle, (o = {
|
|
412
|
-
onClick: this.handleToggleClick,
|
|
413
|
-
onKeyDown: this.handleToggleKeyDownOpen
|
|
414
|
-
}, _(o, this.props.toggle.type[N] ? "elementRef" : "ref", this.handleToggleMount),
|
|
415
|
-
_(o, "aria-controls", this.isOpen() ? this.popoverId : undefined), _(o, "aria-haspopup", this.props.toggle.props["aria-haspopup"] || true),
|
|
416
|
-
_(o, "aria-expanded", this.isOpen()), _(o, "data-test", this.props.toggle.props["data-test"] || "dropdown"),
|
|
417
|
-
_(o, "data-test-popover-id", this.popoverId), _(o, "id", this.props.inputId || this.props.toggle.props.id || this.toggleId),
|
|
418
|
-
o));
|
|
419
|
-
}
|
|
420
|
-
}, {
|
|
421
|
-
key: "render",
|
|
422
|
-
value: function e() {
|
|
423
|
-
var o;
|
|
424
|
-
var t = this.props, r = t.align, i = t.canCoverAnchor, l = t.children, a = t.closeReasons, s = t.defaultPlacement, p = t.elementRef, u = t.repositionMode, d = t.retainFocus, v = t.takeFocus;
|
|
425
|
-
var g = this.state.anchor;
|
|
426
|
-
var y = this.handleRequestClose, h = this.handleContentClick;
|
|
427
|
-
var b = this.renderToggle();
|
|
428
|
-
|
|
429
|
-
return n().createElement(n().Fragment, null, b, n().createElement(m(), {
|
|
430
|
-
align: r,
|
|
431
|
-
open: !!g && this.isOpen(),
|
|
432
|
-
autoCloseWhenOffScreen: c()(a, "offScreen"),
|
|
433
|
-
anchor: g,
|
|
434
|
-
canCoverAnchor: i,
|
|
435
|
-
elementRef: p,
|
|
436
|
-
retainFocus: d,
|
|
437
|
-
defaultPlacement: s,
|
|
438
|
-
onRequestClose: y,
|
|
439
|
-
repositionMode: u,
|
|
440
|
-
id: this.popoverId,
|
|
441
|
-
"aria-labelledby": "".concat((o = this.props["aria-labelledby"]) !== null && o !== void 0 ? o : "", " ").concat(this.props.inputId || this.props.toggle.props.id || this.toggleId).trim(),
|
|
442
|
-
takeFocus: v
|
|
443
|
-
}, f()(l) ?
|
|
444
|
-
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
|
|
445
|
-
function() {
|
|
446
|
-
|
|
447
|
-
return n().createElement("div", {
|
|
448
|
-
onClick: h
|
|
449
|
-
}, l.apply(void 0, arguments));
|
|
450
|
-
} :
|
|
451
|
-
|
|
452
|
-
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
|
|
453
|
-
n().createElement("div", {
|
|
454
|
-
onClick: h
|
|
455
|
-
}, l)));
|
|
255
|
+
} else {
|
|
256
|
+
I === null || I === void 0 ? void 0 : I(e, {
|
|
257
|
+
reason: "toggleClick"
|
|
258
|
+
});
|
|
259
|
+
if (!B) {
|
|
260
|
+
V(true);
|
|
261
|
+
}
|
|
456
262
|
}
|
|
457
|
-
} ]);
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
263
|
+
}), [ oe, B, G, I, E ]);
|
|
264
|
+
var te = (0, n.cloneElement)(E, {
|
|
265
|
+
onClick: re,
|
|
266
|
+
onKeyDown: ee,
|
|
267
|
+
ref: Z,
|
|
268
|
+
"aria-controls": G ? Q : undefined,
|
|
269
|
+
"aria-haspopup": E.props["aria-haspopup"] || true,
|
|
270
|
+
"aria-expanded": G,
|
|
271
|
+
"data-test": E.props["data-test"] || "dropdown",
|
|
272
|
+
"data-test-popover-id": Q,
|
|
273
|
+
id: Y
|
|
274
|
+
});
|
|
275
|
+
|
|
276
|
+
return r().createElement(r().Fragment, null, te, r().createElement(c(), {
|
|
277
|
+
align: a,
|
|
278
|
+
open: !!_ && G,
|
|
279
|
+
autoCloseWhenOffScreen: g.includes("offScreen"),
|
|
280
|
+
anchor: _,
|
|
281
|
+
canCoverAnchor: s,
|
|
282
|
+
elementRef: h,
|
|
283
|
+
retainFocus: M,
|
|
284
|
+
defaultPlacement: m,
|
|
285
|
+
onRequestClose: oe,
|
|
286
|
+
repositionMode: j,
|
|
287
|
+
id: Q,
|
|
288
|
+
"aria-labelledby": "".concat(o !== null && o !== void 0 ? o : "", " ").concat(Y).trim(),
|
|
289
|
+
takeFocus: T
|
|
290
|
+
}, typeof v === "function" ?
|
|
291
|
+
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
|
|
292
|
+
function() {
|
|
293
|
+
|
|
294
|
+
return r().createElement("div", {
|
|
295
|
+
onClick: ne
|
|
296
|
+
}, v.apply(void 0, arguments));
|
|
297
|
+
} :
|
|
298
|
+
|
|
299
|
+
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
|
|
300
|
+
r().createElement("div", {
|
|
301
|
+
onClick: ne
|
|
302
|
+
}, v)));
|
|
303
|
+
}
|
|
304
|
+
O.propTypes = h;
|
|
305
|
+
O.possibleCloseReasons = k;
|
|
306
|
+
/* harmony default export */ const w = O;
|
|
464
307
|
// CONCATENATED MODULE: ./src/Dropdown/index.ts
|
|
465
308
|
module.exports = o;
|
|
466
309
|
/******/})();
|