@splunk/react-ui 5.0.0 → 5.2.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 +105 -84
- package/Anchor.js +9 -9
- package/Animation.js +2 -2
- package/Avatar.js +30 -30
- package/Box.js +2 -2
- package/Breadcrumbs.js +54 -54
- package/Button.js +36 -36
- package/ButtonGroup.js +9 -9
- package/ButtonSimple.js +2 -2
- package/CHANGELOG.md +44 -2
- package/Calendar.js +130 -130
- package/Card.js +308 -277
- package/CardLayout.js +10 -10
- package/Chip.js +44 -44
- package/Clickable.js +51 -51
- package/Code.js +654 -519
- package/CollapsiblePanel.js +158 -156
- package/Color.js +117 -117
- package/ColumnLayout.js +41 -41
- package/ComboBox.js +183 -199
- package/ControlGroup.js +186 -178
- package/Date.js +152 -150
- package/DefinitionList.js +124 -104
- package/Divider.js +2 -2
- package/DualListbox.js +706 -717
- package/File.js +407 -407
- package/FormRows.js +74 -71
- package/Heading.js +15 -15
- package/Image.js +38 -38
- package/JSONTree.js +695 -578
- package/Layer.js +64 -73
- package/Layout.js +10 -10
- package/Link.js +2 -2
- package/List.js +24 -24
- package/Markdown.js +150 -150
- package/Menu.js +64 -63
- package/Message.js +20 -20
- package/MessageBar.js +13 -13
- package/Modal.js +76 -76
- package/ModalLayer.js +6 -6
- package/Monogram.js +104 -78
- package/Multiselect.js +1181 -1080
- package/Number.js +115 -115
- package/Paginator.js +46 -46
- package/Paragraph.js +10 -10
- package/Popover.js +527 -446
- package/Progress.js +17 -17
- package/Prose.js +19 -19
- package/RadioBar.js +242 -228
- package/RadioList.js +175 -150
- package/Resize.js +20 -20
- package/ResultsMenu.js +63 -63
- package/ScreenReaderContent.js +13 -13
- package/Scroll.js +70 -70
- package/Search.js +155 -171
- package/Select.js +1150 -1049
- package/SidePanel.js +29 -29
- package/Slider.js +60 -60
- package/SlidingPanels.js +52 -52
- package/SplitButton.js +121 -93
- package/StaticContent.js +6 -6
- package/StepBar.js +104 -104
- package/Switch.js +47 -47
- package/TabBar.js +346 -323
- package/TabLayout.js +78 -78
- package/Table.js +1408 -1377
- package/Text.js +67 -67
- package/TextArea.js +100 -85
- package/Tooltip.js +209 -203
- package/TransitionOpen.js +11 -11
- package/Tree.js +452 -349
- package/Typography.js +15 -15
- package/WaitSpinner.js +6 -6
- package/package.json +17 -20
- package/stubs-dependencies.d.ts +0 -70
- package/stubs-splunkui.d.ts +4 -0
- package/types/src/Accordion/docs/examples/Controlled.d.ts +3 -0
- package/types/src/Accordion/docs/examples/Inset.d.ts +4 -0
- package/types/src/Accordion/docs/examples/Uncontrolled.d.ts +3 -0
- package/types/src/Anchor/docs/examples/Basic.d.ts +4 -0
- package/types/src/AnimationToggle/docs/examples/Provider.d.ts +4 -0
- package/types/src/AnimationToggle/docs/examples/ReducedMotionComponent.d.ts +4 -0
- package/types/src/AnimationToggle/docs/examples/ReducedMotionHook.d.ts +4 -0
- package/types/src/AnimationToggle/docs/examples/ToggleComponent.d.ts +4 -0
- package/types/src/Avatar/docs/examples/BackgroundColor.d.ts +4 -0
- package/types/src/Avatar/docs/examples/Basic.d.ts +4 -0
- package/types/src/Avatar/docs/examples/Image.d.ts +4 -0
- package/types/src/Avatar/docs/examples/Interactive.d.ts +4 -0
- package/types/src/Avatar/docs/examples/Size.d.ts +4 -0
- package/types/src/Breadcrumbs/docs/examples/Adornments.d.ts +4 -0
- package/types/src/Breadcrumbs/docs/examples/Basic.d.ts +3 -0
- package/types/src/Breadcrumbs/docs/examples/CustomizedClick.d.ts +4 -0
- package/types/src/Button/docs/examples/Basic.d.ts +3 -0
- package/types/src/Button/docs/examples/Block.d.ts +4 -0
- package/types/src/Button/docs/examples/Disabled.d.ts +4 -0
- package/types/src/Button/docs/examples/Icons.d.ts +4 -0
- package/types/src/Button/docs/examples/Menus.d.ts +4 -0
- package/types/src/Button/docs/examples/To.d.ts +4 -0
- package/types/src/ButtonGroup/docs/examples/Basic.d.ts +3 -0
- package/types/src/Card/docs/examples/Basic.d.ts +4 -0
- package/types/src/Card/docs/examples/Clickable.d.ts +4 -0
- package/types/src/Card/docs/examples/Full.d.ts +4 -0
- package/types/src/Card/docs/examples/HeadingTitle.d.ts +4 -0
- package/types/src/Card/docs/examples/Images.d.ts +4 -0
- package/types/src/Card/docs/examples/Selectable.d.ts +4 -0
- package/types/src/CardLayout/docs/examples/Basic.d.ts +3 -0
- package/types/src/CardLayout/docs/examples/Interactive.d.ts +4 -0
- package/types/src/Chip/docs/examples/Appearance.d.ts +3 -0
- package/types/src/Chip/docs/examples/CustomColors.d.ts +4 -0
- package/types/src/Chip/docs/examples/Disabled.d.ts +3 -0
- package/types/src/Chip/docs/examples/Icon.d.ts +3 -0
- package/types/src/Chip/docs/examples/Removable.d.ts +3 -0
- package/types/src/Chip/docs/examples/RemovableWithNonStringChildren.d.ts +4 -0
- package/types/src/Clickable/docs/examples/Disabled.d.ts +4 -0
- package/types/src/Code/Code.d.ts +17 -1
- package/types/src/Code/LineHighlights.d.ts +11 -0
- package/types/src/Code/LineNumbers.d.ts +6 -0
- package/types/src/Code/docs/examples/Default.d.ts +3 -0
- package/types/src/Code/docs/examples/HideIndent.d.ts +4 -0
- package/types/src/Code/docs/examples/Language.d.ts +4 -0
- package/types/src/Code/docs/examples/LineHighlights.d.ts +7 -0
- package/types/src/Code/docs/examples/LineNumbers.d.ts +7 -0
- package/types/src/Code/docs/examples/LineNumbersCustomStart.d.ts +7 -0
- package/types/src/CollapsiblePanel/docs/examples/Actions.d.ts +4 -0
- package/types/src/CollapsiblePanel/docs/examples/BasicControlled.d.ts +3 -0
- package/types/src/CollapsiblePanel/docs/examples/BasicUncontrolled.d.ts +3 -0
- package/types/src/CollapsiblePanel/docs/examples/Disabled.d.ts +7 -0
- package/types/src/CollapsiblePanel/docs/examples/MultiControlled.d.ts +3 -0
- package/types/src/CollapsiblePanel/docs/examples/MultiUncontrolled.d.ts +3 -0
- package/types/src/CollapsiblePanel/docs/examples/SingleOpenPanelGroupControlled.d.ts +4 -0
- package/types/src/CollapsiblePanel/docs/examples/SingleOpenPanelGroupInset.d.ts +4 -0
- package/types/src/CollapsiblePanel/docs/examples/SingleOpenPanelGroupUncontrolled.d.ts +4 -0
- package/types/src/CollapsiblePanel/docs/examples/Subtle.d.ts +4 -0
- package/types/src/Color/docs/examples/Controlled.d.ts +3 -0
- package/types/src/Color/docs/examples/CustomizedPalette.d.ts +4 -0
- package/types/src/Color/docs/examples/HideInput.d.ts +4 -0
- package/types/src/Color/docs/examples/Null.d.ts +4 -0
- package/types/src/Color/docs/examples/ThemeVariables.d.ts +4 -0
- package/types/src/Color/docs/examples/Transparent.d.ts +4 -0
- package/types/src/Color/docs/examples/Uncontrolled.d.ts +3 -0
- package/types/src/ColumnLayout/docs/examples/AlignItems.d.ts +4 -0
- package/types/src/ColumnLayout/docs/examples/Basic.d.ts +4 -0
- package/types/src/ColumnLayout/docs/examples/Dividers.d.ts +4 -0
- package/types/src/ColumnLayout/docs/examples/Gutters.d.ts +4 -0
- package/types/src/ComboBox/docs/examples/Controlled.d.ts +4 -0
- package/types/src/ComboBox/docs/examples/Fetching.d.ts +4 -0
- package/types/src/ComboBox/docs/examples/Headings.d.ts +3 -0
- package/types/src/ComboBox/docs/examples/Label.d.ts +4 -0
- package/types/src/ComboBox/docs/examples/Uncontrolled.d.ts +4 -0
- package/types/src/ControlGroup/docs/examples/Basic.d.ts +4 -0
- package/types/src/ControlGroup/docs/examples/CustomizedLabelTarget.d.ts +4 -0
- package/types/src/ControlGroup/docs/examples/Error.d.ts +4 -0
- package/types/src/ControlGroup/docs/examples/HelpWithErrorText.d.ts +4 -0
- package/types/src/ControlGroup/docs/examples/HelpWithLinks.d.ts +4 -0
- package/types/src/ControlGroup/docs/examples/LabelLeft.d.ts +4 -0
- package/types/src/ControlGroup/docs/examples/LayoutFill.d.ts +4 -0
- package/types/src/ControlGroup/docs/examples/LayoutFillJoin.d.ts +4 -0
- package/types/src/ControlGroup/docs/examples/LayoutNone.d.ts +4 -0
- package/types/src/ControlGroup/docs/examples/Required.d.ts +4 -0
- package/types/src/Date/Date.d.ts +6 -1
- package/types/src/Date/docs/examples/Basic.d.ts +3 -0
- package/types/src/Date/docs/examples/Controlled.d.ts +3 -0
- package/types/src/Date/docs/examples/CustomDate.d.ts +4 -0
- package/types/src/Date/docs/examples/Disabled.d.ts +3 -0
- package/types/src/Date/docs/examples/Error.d.ts +3 -0
- package/types/src/Date/docs/examples/HighlightToday.d.ts +4 -0
- package/types/src/Date/docs/examples/WithoutCalendar.d.ts +4 -0
- package/types/src/DefinitionList/DefinitionList.d.ts +23 -5
- package/types/src/DefinitionList/DefinitionListContext.d.ts +2 -0
- package/types/src/DefinitionList/docs/examples/Basic.d.ts +3 -0
- package/types/src/DefinitionList/docs/examples/CustomizedWidths.d.ts +7 -0
- package/types/src/DefinitionList/docs/examples/EmptyDescription.d.ts +4 -0
- package/types/src/DefinitionList/docs/examples/WithSeparator.d.ts +4 -0
- package/types/src/Divider/docs/examples/Appearance.d.ts +4 -0
- package/types/src/Divider/docs/examples/Basic.d.ts +3 -0
- package/types/src/Divider/docs/examples/CustomStyle.d.ts +4 -0
- package/types/src/Divider/docs/examples/Decorative.d.ts +4 -0
- package/types/src/Divider/docs/examples/Vertical.d.ts +3 -0
- package/types/src/Dropdown/docs/examples/Basic.d.ts +4 -0
- package/types/src/Dropdown/docs/examples/BasicMenu.d.ts +3 -0
- package/types/src/Dropdown/docs/examples/ControlledDropdown.d.ts +4 -0
- package/types/src/Dropdown/docs/examples/Dialog.d.ts +4 -0
- package/types/src/Dropdown/docs/examples/ScrollContainer.d.ts +4 -0
- package/types/src/Dropdown/docs/examples/ScrollingMenu.d.ts +4 -0
- package/types/src/Dropdown/docs/examples/Submenu.d.ts +3 -0
- package/types/src/Dropdown/docs/examples/TooltipButtonToggle.d.ts +4 -0
- package/types/src/DualListbox/Option.d.ts +1 -1
- package/types/src/DualListbox/docs/examples/Basic.d.ts +3 -0
- package/types/src/DualListbox/docs/examples/Controlled.d.ts +3 -0
- package/types/src/DualListbox/docs/examples/Fill.d.ts +4 -0
- package/types/src/File/docs/examples/CustomizedMessages.d.ts +4 -0
- package/types/src/File/docs/examples/Disabled.d.ts +3 -0
- package/types/src/File/docs/examples/DropAnywhere.d.ts +4 -0
- package/types/src/File/docs/examples/Error.d.ts +4 -0
- package/types/src/File/docs/examples/FullScreen.d.ts +4 -0
- package/types/src/File/docs/examples/Multi.d.ts +4 -0
- package/types/src/File/docs/examples/Progress.d.ts +4 -0
- package/types/src/File/docs/examples/Single.d.ts +4 -0
- package/types/src/FormRows/FormRows.d.ts +1 -1
- package/types/src/FormRows/docs/examples/Basic.d.ts +3 -0
- package/types/src/FormRows/docs/examples/Header.d.ts +4 -0
- package/types/src/FormRows/docs/examples/Menu.d.ts +4 -0
- package/types/src/FormRows/docs/examples/ReorderOnly.d.ts +4 -0
- package/types/src/Heading/docs/examples/Basic.d.ts +3 -0
- package/types/src/Heading/docs/examples/Variant.d.ts +4 -0
- package/types/src/Image/docs/examples/Basic.d.ts +3 -0
- package/types/src/JSONTree/JSONTreeItem.d.ts +5 -2
- package/types/src/JSONTree/docs/examples/Basic.d.ts +3 -0
- package/types/src/JSONTree/docs/examples/Events.d.ts +4 -0
- package/types/src/JSONTree/docs/examples/ExpandChildrenOnShiftKey.d.ts +4 -0
- package/types/src/Layer/docs/examples/Basic.d.ts +4 -0
- package/types/src/Layout/docs/examples/Basic.d.ts +3 -0
- package/types/src/Link/docs/examples/Basic.d.ts +4 -0
- package/types/src/Link/docs/examples/Disabled.d.ts +4 -0
- package/types/src/Link/docs/examples/NewWindow.d.ts +4 -0
- package/types/src/Link/docs/examples/Standalone.d.ts +4 -0
- package/types/src/List/docs/examples/CustomizedList.d.ts +4 -0
- package/types/src/List/docs/examples/OrderedList.d.ts +4 -0
- package/types/src/List/docs/examples/UnorderedList.d.ts +3 -0
- package/types/src/Markdown/Markdown.d.ts +1 -1
- package/types/src/Markdown/docs/examples/Basic.d.ts +4 -0
- package/types/src/Markdown/docs/examples/I18n.d.ts +4 -0
- package/types/src/Markdown/renderers/MarkdownBlockquote.d.ts +1 -1
- package/types/src/Markdown/renderers/MarkdownCodeBlock.d.ts +1 -1
- package/types/src/Markdown/renderers/index.d.ts +1 -1
- package/types/src/Menu/Item.d.ts +27 -10
- package/types/src/Menu/docs/examples/Adornments.d.ts +4 -0
- package/types/src/Menu/docs/examples/Basic.d.ts +3 -0
- package/types/src/Menu/docs/examples/Complex.d.ts +4 -0
- package/types/src/Menu/docs/examples/Descriptions.d.ts +4 -0
- package/types/src/Menu/docs/examples/Dimmed.d.ts +4 -0
- package/types/src/Menu/docs/examples/Disabled.d.ts +3 -0
- package/types/src/Menu/docs/examples/Dividers.d.ts +3 -0
- package/types/src/Menu/docs/examples/Headings.d.ts +4 -0
- package/types/src/Menu/docs/examples/Links.d.ts +4 -0
- package/types/src/Menu/docs/examples/MatchRanges.d.ts +4 -0
- package/types/src/Menu/docs/examples/Selectable.d.ts +4 -0
- package/types/src/Menu/docs/examples/SelectableWithAdornments.d.ts +4 -0
- package/types/src/Menu/docs/examples/Truncate.d.ts +4 -0
- package/types/src/Message/docs/examples/Basic.d.ts +3 -0
- package/types/src/Message/docs/examples/Content.d.ts +4 -0
- package/types/src/Message/docs/examples/Fill.d.ts +3 -0
- package/types/src/Message/docs/examples/Removable.d.ts +3 -0
- package/types/src/MessageBar/docs/examples/Basic.d.ts +4 -0
- package/types/src/MessageBar/docs/examples/Types.d.ts +4 -0
- package/types/src/MessageBar/docs/examples/WithActions.d.ts +3 -0
- package/types/src/Modal/Modal.d.ts +10 -3
- package/types/src/Modal/docs/examples/Basic.d.ts +3 -0
- package/types/src/Modal/docs/examples/InitialFocus.d.ts +4 -0
- package/types/src/Modal/docs/examples/TypicalUsage.d.ts +4 -0
- package/types/src/Modal/docs/examples/Undismissable.d.ts +4 -0
- package/types/src/Monogram/Monogram.d.ts +4 -0
- package/types/src/Monogram/docs/examples/BackgroundAuto.d.ts +4 -0
- package/types/src/Monogram/docs/examples/BackgroundCustom.d.ts +3 -0
- package/types/src/Monogram/docs/examples/Basic.d.ts +4 -0
- package/types/src/Monogram/docs/examples/Interactive.d.ts +4 -0
- package/types/src/Monogram/docs/examples/Size.d.ts +4 -0
- package/types/src/Multiselect/Compact.d.ts +1 -1
- package/types/src/Multiselect/Multiselect.d.ts +1 -1
- package/types/src/Multiselect/docs/examples/Children.d.ts +4 -0
- package/types/src/Multiselect/docs/examples/Compact.d.ts +4 -0
- package/types/src/Multiselect/docs/examples/Controlled.d.ts +3 -0
- package/types/src/Multiselect/docs/examples/CustomizeSelected.d.ts +4 -0
- package/types/src/Multiselect/docs/examples/Disabled.d.ts +3 -0
- package/types/src/Multiselect/docs/examples/Error.d.ts +3 -0
- package/types/src/Multiselect/docs/examples/Fetching.d.ts +4 -0
- package/types/src/Multiselect/docs/examples/Headings.d.ts +3 -0
- package/types/src/Multiselect/docs/examples/Icons.d.ts +3 -0
- package/types/src/Multiselect/docs/examples/LoadMoreOnScrollBottom.d.ts +4 -0
- package/types/src/Multiselect/docs/examples/NewValues.d.ts +4 -0
- package/types/src/Multiselect/docs/examples/TabInput.d.ts +4 -0
- package/types/src/Multiselect/docs/examples/Uncontrolled.d.ts +3 -0
- package/types/src/Number/docs/examples/Basic.d.ts +4 -0
- package/types/src/Number/docs/examples/Disabled.d.ts +3 -0
- package/types/src/Number/docs/examples/Error.d.ts +3 -0
- package/types/src/Number/docs/examples/Limits.d.ts +4 -0
- package/types/src/Number/docs/examples/Locale.d.ts +4 -0
- package/types/src/Number/docs/examples/Uncontrolled.d.ts +4 -0
- package/types/src/Paginator/docs/examples/Basic.d.ts +3 -0
- package/types/src/Paginator/docs/examples/Compact.d.ts +4 -0
- package/types/src/Paginator/docs/examples/CompactCustomLabel.d.ts +3 -0
- package/types/src/Paginator/docs/examples/CompactWithLabel.d.ts +3 -0
- package/types/src/Paginator/docs/examples/CustomPages.d.ts +4 -0
- package/types/src/Paginator/docs/examples/Labelled.d.ts +4 -0
- package/types/src/Paginator/docs/examples/PageControl.d.ts +4 -0
- package/types/src/Paragraph/docs/examples/Basic.d.ts +4 -0
- package/types/src/Popover/Popover.d.ts +1 -1
- package/types/src/Popover/PopoverProvider.d.ts +9 -1
- package/types/src/Popover/docs/examples/Basic.d.ts +4 -0
- package/types/src/Progress/docs/examples/Basic.d.ts +3 -0
- package/types/src/Progress/docs/examples/Type.d.ts +3 -0
- package/types/src/Prose/docs/examples/Basic.d.ts +3 -0
- package/types/src/Prose/docs/examples/Customize.d.ts +4 -0
- package/types/src/RadioBar/Option.d.ts +1 -1
- package/types/src/RadioBar/RadioBar.d.ts +13 -6
- package/types/src/RadioBar/RadioBarContext.d.ts +4 -2
- package/types/src/RadioBar/docs/examples/AdornmentAriaExamples.d.ts +5 -0
- package/types/src/RadioBar/docs/examples/Basic.d.ts +3 -0
- package/types/src/RadioBar/docs/examples/Disabled.d.ts +4 -0
- package/types/src/RadioBar/docs/examples/Error.d.ts +3 -0
- package/types/src/RadioBar/docs/examples/MenuBar.d.ts +4 -0
- package/types/src/RadioBar/docs/examples/Uncontrolled.d.ts +3 -0
- package/types/src/RadioList/RadioList.d.ts +2 -1
- package/types/src/RadioList/docs/examples/Basic.d.ts +4 -0
- package/types/src/RadioList/docs/examples/Disabled.d.ts +3 -0
- package/types/src/RadioList/docs/examples/Error.d.ts +3 -0
- package/types/src/RadioList/docs/examples/Row.d.ts +3 -0
- package/types/src/RadioList/docs/examples/Uncontrolled.d.ts +4 -0
- package/types/src/Resize/docs/examples/Appearance.d.ts +4 -0
- package/types/src/Resize/docs/examples/Basic.d.ts +4 -0
- package/types/src/Resize/docs/examples/Percentage.d.ts +4 -0
- package/types/src/Resize/docs/examples/SizingInner.d.ts +4 -0
- package/types/src/Resize/docs/examples/SizingOuter.d.ts +4 -0
- package/types/src/ScreenReaderContent/docs/examples/Basic.d.ts +4 -0
- package/types/src/ScreenReaderContent/docs/examples/SkipLink.d.ts +7 -0
- package/types/src/Scroll/Inner.d.ts +1 -1
- package/types/src/Scroll/docs/examples/Controlled.d.ts +4 -0
- package/types/src/Scroll/docs/examples/Uncontrolled.d.ts +4 -0
- package/types/src/ScrollContainerContext/docs/examples/Provider.d.ts +4 -0
- package/types/src/Search/docs/examples/Controlled.d.ts +4 -0
- package/types/src/Search/docs/examples/Loading.d.ts +4 -0
- package/types/src/Search/docs/examples/Options.d.ts +4 -0
- package/types/src/Search/docs/examples/OptionsLinks.d.ts +4 -0
- package/types/src/Select/Option.d.ts +1 -1
- package/types/src/Select/Select.d.ts +1 -1
- package/types/src/Select/SelectAllOption.d.ts +5 -10
- package/types/src/Select/SelectBase.d.ts +1 -1
- package/types/src/Select/docs/examples/Appearance.d.ts +4 -0
- package/types/src/Select/docs/examples/Basic.d.ts +4 -0
- package/types/src/Select/docs/examples/Children.d.ts +4 -0
- package/types/src/Select/docs/examples/Descriptions.d.ts +4 -0
- package/types/src/Select/docs/examples/Error.d.ts +3 -0
- package/types/src/Select/docs/examples/Fetching.d.ts +4 -0
- package/types/src/Select/docs/examples/Filter.d.ts +4 -0
- package/types/src/Select/docs/examples/Headings.d.ts +3 -0
- package/types/src/Select/docs/examples/Icons.d.ts +3 -0
- package/types/src/Select/docs/examples/LoadMoreOnScrollBottom.d.ts +4 -0
- package/types/src/Select/docs/examples/Prefix.d.ts +4 -0
- package/types/src/Select/docs/examples/Truncate.d.ts +4 -0
- package/types/src/Select/docs/examples/Uncontrolled.d.ts +4 -0
- package/types/src/SidePanel/docs/examples/Basic.d.ts +4 -0
- package/types/src/SidePanel/docs/examples/ChangeSize.d.ts +3 -0
- package/types/src/SidePanel/docs/examples/Composition.d.ts +4 -0
- package/types/src/Slider/docs/examples/Basic.d.ts +3 -0
- package/types/src/Slider/docs/examples/Controlled.d.ts +5 -1
- package/types/src/Slider/docs/examples/CustomLabels.d.ts +4 -0
- package/types/src/Slider/docs/examples/Disabled.d.ts +3 -0
- package/types/src/Slider/docs/examples/Error.d.ts +3 -0
- package/types/src/Slider/docs/examples/StepMarks.d.ts +4 -0
- package/types/src/SlidingPanels/docs/examples/Basic.d.ts +3 -0
- package/types/src/SlidingPanels/docs/examples/Dropdown.d.ts +3 -0
- package/types/src/SlidingPanels/docs/examples/Modal.d.ts +3 -0
- package/types/src/SplitButton/SplitButton.d.ts +6 -1
- package/types/src/SplitButton/docs/examples/Basic.d.ts +3 -0
- package/types/src/SplitButton/docs/examples/Block.d.ts +4 -0
- package/types/src/SplitButton/docs/examples/ChangeLabel.d.ts +4 -0
- package/types/src/SplitButton/docs/examples/Disabled.d.ts +3 -0
- package/types/src/StaticContent/docs/examples/Basic.d.ts +4 -0
- package/types/src/StaticContent/docs/examples/FieldValue.d.ts +4 -0
- package/types/src/StepBar/docs/examples/Basic.d.ts +3 -0
- package/types/src/StepBar/docs/examples/Error.d.ts +3 -0
- package/types/src/Switch/docs/examples/Basic.d.ts +4 -0
- package/types/src/Switch/docs/examples/Disabled.d.ts +3 -0
- package/types/src/Switch/docs/examples/Error.d.ts +3 -0
- package/types/src/TabBar/docs/examples/Basic.d.ts +3 -0
- package/types/src/TabBar/docs/examples/Disabled.d.ts +3 -0
- package/types/src/TabBar/docs/examples/Icons.d.ts +3 -0
- package/types/src/TabBar/docs/examples/Tooltips.d.ts +3 -0
- package/types/src/TabBar/docs/examples/Vertical.d.ts +3 -0
- package/types/src/TabBar/docs/examples/VerticalIcons.d.ts +3 -0
- package/types/src/TabBar/docs/examples/WithCount.d.ts +3 -0
- package/types/src/TabBar/tabBarUtils.d.ts +4 -0
- package/types/src/TabBar/types.d.ts +5 -0
- package/types/src/TabLayout/Panel.d.ts +0 -1
- package/types/src/TabLayout/docs/examples/AutoActivate.d.ts +4 -0
- package/types/src/TabLayout/docs/examples/Controlled.d.ts +4 -0
- package/types/src/TabLayout/docs/examples/Icons.d.ts +3 -0
- package/types/src/TabLayout/docs/examples/Uncontrolled.d.ts +3 -0
- package/types/src/TabLayout/docs/examples/Vertical.d.ts +3 -0
- package/types/src/TabLayout/docs/examples/VerticalIcons.d.ts +3 -0
- package/types/src/Table/Head.d.ts +1 -0
- package/types/src/Table/HeadCell.d.ts +2 -3
- package/types/src/Table/HeadDropdownCell.d.ts +2 -2
- package/types/src/Table/HeadInner.d.ts +4 -4
- package/types/src/Table/KeyboardSensor.d.ts +1 -1
- package/types/src/Table/RowDragCell.d.ts +1 -1
- package/types/src/Table/docs/examples/Basic.d.ts +3 -0
- package/types/src/Table/docs/examples/Click.d.ts +4 -0
- package/types/src/Table/docs/examples/ClickRows.d.ts +4 -0
- package/types/src/Table/docs/examples/Complex.d.ts +4 -0
- package/types/src/Table/docs/examples/DockedHeaderScrollbar.d.ts +4 -0
- package/types/src/Table/docs/examples/FilterColumnValues.d.ts +4 -0
- package/types/src/Table/docs/examples/FixedHeader.d.ts +4 -0
- package/types/src/Table/docs/examples/HeadDropdownCell.d.ts +4 -0
- package/types/src/Table/docs/examples/ReorderColumns.d.ts +4 -0
- package/types/src/Table/docs/examples/ReorderRows.d.ts +4 -0
- package/types/src/Table/docs/examples/Resizable.d.ts +4 -0
- package/types/src/Table/docs/examples/ResizableFill.d.ts +4 -0
- package/types/src/Table/docs/examples/RowActions.d.ts +4 -0
- package/types/src/Table/docs/examples/Selectable.d.ts +4 -0
- package/types/src/Table/docs/examples/SortableColumns.d.ts +4 -0
- package/types/src/Table/docs/examples/StripeRows.d.ts +3 -0
- package/types/src/Text/docs/examples/Basic.d.ts +4 -0
- package/types/src/Text/docs/examples/CustomizedIcon.d.ts +4 -0
- package/types/src/Text/docs/examples/Dimmed.d.ts +4 -0
- package/types/src/Text/docs/examples/Disabled.d.ts +4 -0
- package/types/src/Text/docs/examples/Error.d.ts +4 -0
- package/types/src/Text/docs/examples/Inline.d.ts +4 -0
- package/types/src/Text/docs/examples/Password.d.ts +4 -0
- package/types/src/Text/docs/examples/Uncontrolled.d.ts +4 -0
- package/types/src/TextArea/docs/examples/Basic.d.ts +4 -0
- package/types/src/TextArea/docs/examples/Disabled.d.ts +3 -0
- package/types/src/TextArea/docs/examples/Error.d.ts +4 -0
- package/types/src/TextArea/docs/examples/Inline.d.ts +4 -0
- package/types/src/TextArea/docs/examples/Uncontrolled.d.ts +4 -0
- package/types/src/Tooltip/Tooltip.d.ts +10 -5
- package/types/src/Tooltip/docs/examples/Basic.d.ts +4 -0
- package/types/src/Tooltip/docs/examples/ContentRelationship.d.ts +4 -0
- package/types/src/Tooltip/docs/examples/Controlled.d.ts +4 -0
- package/types/src/Tooltip/docs/examples/CustomDelay.d.ts +4 -0
- package/types/src/Tooltip/docs/examples/CustomProps.d.ts +4 -0
- package/types/src/Tooltip/docs/examples/Toggletip.d.ts +4 -0
- package/types/src/TransitionOpen/docs/examples/ExpandHeight.d.ts +3 -0
- package/types/src/TransitionOpen/docs/examples/ExpandWidth.d.ts +3 -0
- package/types/src/TransitionOpen/docs/examples/None.d.ts +4 -0
- package/types/src/TransitionOpen/docs/examples/SlideFromBottom.d.ts +4 -0
- package/types/src/TransitionOpen/docs/examples/SlideFromLeft.d.ts +4 -0
- package/types/src/TransitionOpen/docs/examples/SlideFromRight.d.ts +4 -0
- package/types/src/TransitionOpen/docs/examples/SlideFromTop.d.ts +4 -0
- package/types/src/Tree/Item.d.ts +63 -0
- package/types/src/Tree/Tree.d.ts +13 -6
- package/types/src/Tree/TreeContext.d.ts +1 -1
- package/types/src/Tree/docs/examples/Basic.d.ts +5 -0
- package/types/src/Tree/docs/examples/ClickableExpansion.d.ts +2 -0
- package/types/src/Tree/docs/examples/ClickableExpansionWithSelection.d.ts +2 -0
- package/types/src/Tree/index.d.ts +1 -1
- package/types/src/Typography/docs/examples/Basic.d.ts +4 -0
- package/types/src/WaitSpinner/docs/examples/Basic.d.ts +3 -0
- package/types/src/useControlled/useControlled.d.ts +3 -1
- package/useControlled.js +29 -13
- package/useResizeObserver.js +2 -2
- package/types/src/DefinitionList/docs/examples/Customize.d.ts +0 -3
- package/types/src/Tree/TreeItem.d.ts +0 -44
package/Modal.js
CHANGED
|
@@ -69,25 +69,25 @@
|
|
|
69
69
|
// CONCATENATED MODULE: external "react"
|
|
70
70
|
const t = require("react");
|
|
71
71
|
var n = e.n(t);
|
|
72
|
-
// CONCATENATED MODULE: external "prop-types"
|
|
73
|
-
const o = require("prop-types");
|
|
74
|
-
var i = e.n(o);
|
|
75
72
|
// CONCATENATED MODULE: external "lodash/defer"
|
|
76
|
-
const
|
|
77
|
-
var
|
|
73
|
+
const o = require("lodash/defer");
|
|
74
|
+
var i = e.n(o);
|
|
78
75
|
// CONCATENATED MODULE: external "lodash/memoize"
|
|
79
|
-
const
|
|
76
|
+
const a = require("lodash/memoize");
|
|
77
|
+
var l = e.n(a);
|
|
78
|
+
// CONCATENATED MODULE: external "prop-types"
|
|
79
|
+
const u = require("prop-types");
|
|
80
80
|
var c = e.n(u);
|
|
81
81
|
// CONCATENATED MODULE: external "@splunk/react-ui/ModalLayer"
|
|
82
82
|
const s = require("@splunk/react-ui/ModalLayer");
|
|
83
83
|
var f = e.n(s);
|
|
84
|
+
// CONCATENATED MODULE: external "@splunk/react-ui/usePrevious"
|
|
85
|
+
const d = require("@splunk/react-ui/usePrevious");
|
|
86
|
+
var p = e.n(d);
|
|
84
87
|
// CONCATENATED MODULE: external "@splunk/ui-utils/focus"
|
|
85
|
-
const
|
|
88
|
+
const v = require("@splunk/ui-utils/focus");
|
|
86
89
|
// CONCATENATED MODULE: external "@splunk/ui-utils/id"
|
|
87
|
-
const
|
|
88
|
-
// CONCATENATED MODULE: external "@splunk/react-ui/usePrevious"
|
|
89
|
-
const v = require("@splunk/react-ui/usePrevious");
|
|
90
|
-
var b = e.n(v);
|
|
90
|
+
const b = require("@splunk/ui-utils/id");
|
|
91
91
|
// CONCATENATED MODULE: external "@splunk/react-ui/ScrollContainerContext"
|
|
92
92
|
const y = require("@splunk/react-ui/ScrollContainerContext");
|
|
93
93
|
// CONCATENATED MODULE: external "styled-components"
|
|
@@ -108,8 +108,8 @@
|
|
|
108
108
|
prisma: w.variables.backgroundColorDialog
|
|
109
109
|
}), w.variables.spacingMedium, w.variables.spacingXLarge);
|
|
110
110
|
// CONCATENATED MODULE: ./src/Modal/Body.tsx
|
|
111
|
-
function
|
|
112
|
-
return
|
|
111
|
+
function x() {
|
|
112
|
+
return x = Object.assign ? Object.assign.bind() : function(e) {
|
|
113
113
|
for (var r = 1; r < arguments.length; r++) {
|
|
114
114
|
var t = arguments[r];
|
|
115
115
|
for (var n in t) {
|
|
@@ -117,12 +117,12 @@
|
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
return e;
|
|
120
|
-
},
|
|
120
|
+
}, x.apply(null, arguments);
|
|
121
121
|
}
|
|
122
|
-
function
|
|
123
|
-
return I(e) || E(e, r) || k(e, r) ||
|
|
122
|
+
function j(e, r) {
|
|
123
|
+
return I(e) || E(e, r) || k(e, r) || C();
|
|
124
124
|
}
|
|
125
|
-
function
|
|
125
|
+
function C() {
|
|
126
126
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
127
127
|
}
|
|
128
128
|
function k(e, r) {
|
|
@@ -170,7 +170,7 @@
|
|
|
170
170
|
if (Object.getOwnPropertySymbols) {
|
|
171
171
|
var i = Object.getOwnPropertySymbols(e);
|
|
172
172
|
for (n = 0; n < i.length; n++) {
|
|
173
|
-
t = i[n], r.
|
|
173
|
+
t = i[n], -1 === r.indexOf(t) && {}.propertyIsEnumerable.call(e, t) && (o[t] = e[t]);
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
176
|
return o;
|
|
@@ -180,26 +180,26 @@
|
|
|
180
180
|
var t = {};
|
|
181
181
|
for (var n in e) {
|
|
182
182
|
if ({}.hasOwnProperty.call(e, n)) {
|
|
183
|
-
if (r.
|
|
183
|
+
if (-1 !== r.indexOf(n)) continue;
|
|
184
184
|
t[n] = e[n];
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
187
|
return t;
|
|
188
188
|
}
|
|
189
189
|
var T = {
|
|
190
|
-
children:
|
|
190
|
+
children: c().node
|
|
191
191
|
};
|
|
192
192
|
/**
|
|
193
193
|
* A styled container for `Modal` body content.
|
|
194
194
|
*/ function A(e) {
|
|
195
195
|
var r = e.children, o = q(e, [ "children" ]);
|
|
196
196
|
// @docs-props-type BodyPropsBase
|
|
197
|
-
var i = (0, t.useState)(), a =
|
|
197
|
+
var i = (0, t.useState)(), a = j(i, 2), l = a[0], u = a[1];
|
|
198
198
|
var c = (0, t.useCallback)((function(e) {
|
|
199
199
|
u(e);
|
|
200
200
|
}), []);
|
|
201
201
|
|
|
202
|
-
return n().createElement(S,
|
|
202
|
+
return n().createElement(S, x({
|
|
203
203
|
"data-test": "body"
|
|
204
204
|
}, o, {
|
|
205
205
|
elementRef: c
|
|
@@ -242,7 +242,7 @@
|
|
|
242
242
|
if (Object.getOwnPropertySymbols) {
|
|
243
243
|
var i = Object.getOwnPropertySymbols(e);
|
|
244
244
|
for (n = 0; n < i.length; n++) {
|
|
245
|
-
t = i[n], r.
|
|
245
|
+
t = i[n], -1 === r.indexOf(t) && {}.propertyIsEnumerable.call(e, t) && (o[t] = e[t]);
|
|
246
246
|
}
|
|
247
247
|
}
|
|
248
248
|
return o;
|
|
@@ -252,15 +252,15 @@
|
|
|
252
252
|
var t = {};
|
|
253
253
|
for (var n in e) {
|
|
254
254
|
if ({}.hasOwnProperty.call(e, n)) {
|
|
255
|
-
if (r.
|
|
255
|
+
if (-1 !== r.indexOf(n)) continue;
|
|
256
256
|
t[n] = e[n];
|
|
257
257
|
}
|
|
258
258
|
}
|
|
259
259
|
return t;
|
|
260
260
|
}
|
|
261
261
|
var z = {
|
|
262
|
-
children:
|
|
263
|
-
layout:
|
|
262
|
+
children: c().node,
|
|
263
|
+
layout: c().oneOf([ "auto", "none" ])
|
|
264
264
|
};
|
|
265
265
|
/**
|
|
266
266
|
* A styled container for `Modal` footer content.
|
|
@@ -337,7 +337,7 @@
|
|
|
337
337
|
if (Object.getOwnPropertySymbols) {
|
|
338
338
|
var i = Object.getOwnPropertySymbols(e);
|
|
339
339
|
for (n = 0; n < i.length; n++) {
|
|
340
|
-
t = i[n], r.
|
|
340
|
+
t = i[n], -1 === r.indexOf(t) && {}.propertyIsEnumerable.call(e, t) && (o[t] = e[t]);
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
343
|
return o;
|
|
@@ -347,18 +347,18 @@
|
|
|
347
347
|
var t = {};
|
|
348
348
|
for (var n in e) {
|
|
349
349
|
if ({}.hasOwnProperty.call(e, n)) {
|
|
350
|
-
if (r.
|
|
350
|
+
if (-1 !== r.indexOf(n)) continue;
|
|
351
351
|
t[n] = e[n];
|
|
352
352
|
}
|
|
353
353
|
}
|
|
354
354
|
return t;
|
|
355
355
|
}
|
|
356
356
|
var ie = {
|
|
357
|
-
children:
|
|
358
|
-
icon:
|
|
359
|
-
hideCloseButton:
|
|
360
|
-
title:
|
|
361
|
-
subtitle:
|
|
357
|
+
children: c().node,
|
|
358
|
+
icon: c().node,
|
|
359
|
+
hideCloseButton: c().bool,
|
|
360
|
+
title: c().string,
|
|
361
|
+
subtitle: c().node
|
|
362
362
|
};
|
|
363
363
|
var ae = n().createElement(K(), {
|
|
364
364
|
width: "20px",
|
|
@@ -493,7 +493,7 @@
|
|
|
493
493
|
}, ge(e);
|
|
494
494
|
}
|
|
495
495
|
function he(e, r) {
|
|
496
|
-
return
|
|
496
|
+
return je(e) || xe(e, r) || we(e, r) || Oe();
|
|
497
497
|
}
|
|
498
498
|
function Oe() {
|
|
499
499
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
@@ -512,7 +512,7 @@
|
|
|
512
512
|
}
|
|
513
513
|
return n;
|
|
514
514
|
}
|
|
515
|
-
function
|
|
515
|
+
function xe(e, r) {
|
|
516
516
|
var t = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
|
|
517
517
|
if (null != t) {
|
|
518
518
|
var n, o, i, a, l = [], u = !0, c = !1;
|
|
@@ -534,16 +534,16 @@
|
|
|
534
534
|
return l;
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
|
-
function
|
|
537
|
+
function je(e) {
|
|
538
538
|
if (Array.isArray(e)) return e;
|
|
539
539
|
}
|
|
540
|
-
function
|
|
540
|
+
function Ce(e, r) {
|
|
541
541
|
if (null == e) return {};
|
|
542
542
|
var t, n, o = ke(e, r);
|
|
543
543
|
if (Object.getOwnPropertySymbols) {
|
|
544
544
|
var i = Object.getOwnPropertySymbols(e);
|
|
545
545
|
for (n = 0; n < i.length; n++) {
|
|
546
|
-
t = i[n], r.
|
|
546
|
+
t = i[n], -1 === r.indexOf(t) && {}.propertyIsEnumerable.call(e, t) && (o[t] = e[t]);
|
|
547
547
|
}
|
|
548
548
|
}
|
|
549
549
|
return o;
|
|
@@ -553,37 +553,37 @@
|
|
|
553
553
|
var t = {};
|
|
554
554
|
for (var n in e) {
|
|
555
555
|
if ({}.hasOwnProperty.call(e, n)) {
|
|
556
|
-
if (r.
|
|
556
|
+
if (-1 !== r.indexOf(n)) continue;
|
|
557
557
|
t[n] = e[n];
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
560
|
return t;
|
|
561
561
|
}
|
|
562
562
|
/** @public */ var Pe = {
|
|
563
|
-
children:
|
|
564
|
-
closeOnClickAway:
|
|
565
|
-
divider:
|
|
566
|
-
elementRef:
|
|
567
|
-
initialFocus:
|
|
568
|
-
onRequestClose:
|
|
569
|
-
open:
|
|
570
|
-
returnFocus:
|
|
563
|
+
children: c().node,
|
|
564
|
+
closeOnClickAway: c().bool,
|
|
565
|
+
divider: c().oneOf([ "header", "footer", "both", "none" ]),
|
|
566
|
+
elementRef: c().oneOfType([ c().func, c().object ]),
|
|
567
|
+
initialFocus: c().oneOfType([ c().object, c().oneOf([ "first", "container" ]) ]),
|
|
568
|
+
onRequestClose: c().func,
|
|
569
|
+
open: c().bool,
|
|
570
|
+
returnFocus: c().oneOfType([ c().func, c().object ]).isRequired
|
|
571
571
|
};
|
|
572
572
|
function Ee(e) {
|
|
573
|
-
var r = e.children, o = e.closeOnClickAway,
|
|
573
|
+
var r = e.children, o = e.closeOnClickAway, a = e.elementRef, u = e.divider, c = u === void 0 ? "both" : u, s = e.initialFocus, d = s === void 0 ? "first" : s, y = e.onRequestClose, m = e.open, g = m === void 0 ? false : m, h = e.returnFocus, O = e.style, w = Ce(e, [ "children", "closeOnClickAway", "elementRef", "divider", "initialFocus", "onRequestClose", "open", "returnFocus", "style" ]);
|
|
574
574
|
// @docs-props-type ModalPropsBase
|
|
575
575
|
var S = (0, t.useRef)(null);
|
|
576
576
|
// this timeout ensures that the Modal is finished rendering before setting the focus
|
|
577
|
-
var
|
|
578
|
-
var
|
|
579
|
-
var
|
|
577
|
+
var x;
|
|
578
|
+
var j = (0, t.useRef)(undefined);
|
|
579
|
+
var C = (0, t.useRef)(null);
|
|
580
580
|
var k = (0, t.useState)((function() {
|
|
581
581
|
return {
|
|
582
|
-
headerTitleId: (0,
|
|
583
|
-
headerSubtitleId: (0,
|
|
582
|
+
headerTitleId: (0, b.createDOMID)("titleId"),
|
|
583
|
+
headerSubtitleId: (0, b.createDOMID)("subtitleId")
|
|
584
584
|
};
|
|
585
585
|
})), P = he(k, 1), E = P[0], I = E.headerTitleId, q = E.headerSubtitleId;
|
|
586
|
-
var _ =
|
|
586
|
+
var _ = p()(g);
|
|
587
587
|
var T = (0, t.useCallback)((function() {
|
|
588
588
|
return {
|
|
589
589
|
top: 0
|
|
@@ -601,33 +601,33 @@
|
|
|
601
601
|
}), [ g ]);
|
|
602
602
|
var D = (0, t.useCallback)((function(e) {
|
|
603
603
|
if (g) {
|
|
604
|
-
|
|
604
|
+
j.current = i()((function() {
|
|
605
605
|
var e;
|
|
606
606
|
// not using the takeFocus() util here because it
|
|
607
607
|
// doesn't work for all values of "initialFocus"
|
|
608
608
|
// and it has a nested defer() call, which we want to avoid
|
|
609
|
-
if (
|
|
610
|
-
if (
|
|
609
|
+
if (C.current !== d) {
|
|
610
|
+
if (d === "first") {
|
|
611
611
|
if (S.current) {
|
|
612
612
|
/* eslint-disable prefer-destructuring */
|
|
613
613
|
/* prefer-desturucting leads to harder-to-read syntax in this case */
|
|
614
|
-
e = (0,
|
|
614
|
+
e = (0, v.getSortedTabbableElements)(S.current)[0];
|
|
615
615
|
/* eslint-enable prefer-destructuring */ }
|
|
616
|
-
} else if (
|
|
616
|
+
} else if (d === "container") {
|
|
617
617
|
e = S.current;
|
|
618
|
-
} else if (ge(
|
|
619
|
-
e =
|
|
618
|
+
} else if (ge(d) === "object") {
|
|
619
|
+
e = d;
|
|
620
620
|
}
|
|
621
621
|
// Typescript isn't happy with optional chaining here
|
|
622
622
|
if (e != null && "focus" in e) {
|
|
623
623
|
e.focus();
|
|
624
624
|
}
|
|
625
|
-
|
|
625
|
+
C.current = d;
|
|
626
626
|
}
|
|
627
627
|
}));
|
|
628
628
|
} else {
|
|
629
|
-
|
|
630
|
-
clearTimeout(
|
|
629
|
+
C.current = null;
|
|
630
|
+
clearTimeout(j.current);
|
|
631
631
|
if (e) {
|
|
632
632
|
/**
|
|
633
633
|
* We return focus to the invoking element here instead of in `handleRequestClose` because users can
|
|
@@ -637,7 +637,7 @@
|
|
|
637
637
|
if (typeof h === "function") {
|
|
638
638
|
h();
|
|
639
639
|
} else {
|
|
640
|
-
|
|
640
|
+
i()((function() {
|
|
641
641
|
var e, r;
|
|
642
642
|
(e = h.current) === null || e === void 0 ? void 0 : (r = e.focus) === null || r === void 0 ? void 0 : r.call(e);
|
|
643
643
|
}));
|
|
@@ -645,37 +645,37 @@
|
|
|
645
645
|
}
|
|
646
646
|
}
|
|
647
647
|
}
|
|
648
|
-
}), [
|
|
648
|
+
}), [ d, g, h ]);
|
|
649
649
|
(0, t.useEffect)((function() {
|
|
650
|
-
if (
|
|
650
|
+
if (C.current !== d) {
|
|
651
651
|
// cancel the defer() set up in handleInitialFocus()
|
|
652
652
|
// so that focus won't jump around if "initialFocus" changes
|
|
653
|
-
clearTimeout(
|
|
653
|
+
clearTimeout(j.current);
|
|
654
654
|
}
|
|
655
655
|
D(_);
|
|
656
|
-
}), [ D,
|
|
656
|
+
}), [ D, d, g, x, _ ]);
|
|
657
657
|
var M = (0, t.useCallback)((function(e) {
|
|
658
658
|
S.current = e;
|
|
659
|
-
fe(
|
|
660
|
-
}), [
|
|
659
|
+
fe(a, e);
|
|
660
|
+
}), [ a, S ]);
|
|
661
661
|
var R = function e(r) {
|
|
662
662
|
if (S.current !== null) {
|
|
663
|
-
(0,
|
|
663
|
+
(0, v.handleTab)(S.current, r.nativeEvent);
|
|
664
664
|
}
|
|
665
665
|
};
|
|
666
666
|
var B = (0, t.useCallback)((function(e) {
|
|
667
|
-
|
|
667
|
+
C.current = null;
|
|
668
668
|
y === null || y === void 0 ? void 0 : y(e);
|
|
669
669
|
}), [ y ]);
|
|
670
670
|
var F = (0, t.useMemo)((function() {
|
|
671
671
|
return {
|
|
672
|
-
divider:
|
|
672
|
+
divider: c,
|
|
673
673
|
onRequestClose: y,
|
|
674
674
|
subtitleId: q,
|
|
675
675
|
titleId: I
|
|
676
676
|
};
|
|
677
|
-
}), [
|
|
678
|
-
var L =
|
|
677
|
+
}), [ c, y, I, q ]);
|
|
678
|
+
var L = l()((function(e) {
|
|
679
679
|
var r = e.opacity, t = e.modalStyle, n = e.top;
|
|
680
680
|
return ve(ve({}, t), {}, {
|
|
681
681
|
opacity: r,
|
package/ModalLayer.js
CHANGED
|
@@ -74,16 +74,16 @@
|
|
|
74
74
|
// CONCATENATED MODULE: external "@splunk/react-ui/Layer"
|
|
75
75
|
const u = require("@splunk/react-ui/Layer");
|
|
76
76
|
var l = e.n(u);
|
|
77
|
-
// CONCATENATED MODULE: external "styled-components"
|
|
78
|
-
const c = require("styled-components");
|
|
79
|
-
var s = e.n(c);
|
|
80
77
|
// CONCATENATED MODULE: external "@react-spring/web"
|
|
81
|
-
const
|
|
78
|
+
const c = require("@react-spring/web");
|
|
79
|
+
// CONCATENATED MODULE: external "styled-components"
|
|
80
|
+
const s = require("styled-components");
|
|
81
|
+
var f = e.n(s);
|
|
82
82
|
// CONCATENATED MODULE: external "@splunk/themes"
|
|
83
83
|
const y = require("@splunk/themes");
|
|
84
84
|
// CONCATENATED MODULE: ./src/ModalLayer/ModalLayerStyles.ts
|
|
85
|
-
var v = (0,
|
|
86
|
-
var p =
|
|
85
|
+
var v = (0, s.css)([ "", ";position:fixed;top:0;right:0;bottom:0;left:0;" ], y.mixins.reset("block"));
|
|
86
|
+
var p = f()(c.animated.div).withConfig({
|
|
87
87
|
displayName: "ModalLayerStyles__StyledClickAwayOverlay",
|
|
88
88
|
componentId: "sc-1sa3n1j-0"
|
|
89
89
|
})([ "", ";background-color:", ";z-index:", ";" ], v, y.variables.backgroundColorScrim, y.variables.zindexModalBackdrop);
|