@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/SlidingPanels.js
CHANGED
|
@@ -61,17 +61,17 @@
|
|
|
61
61
|
e.r(n);
|
|
62
62
|
// EXPORTS
|
|
63
63
|
e.d(n, {
|
|
64
|
-
Panel: () => /* reexport */
|
|
64
|
+
Panel: () => /* reexport */ A,
|
|
65
65
|
default: () => /* reexport */ L
|
|
66
66
|
});
|
|
67
67
|
// CONCATENATED MODULE: external "react"
|
|
68
68
|
const r = require("react");
|
|
69
69
|
var t = e.n(r);
|
|
70
|
-
// CONCATENATED MODULE: external "prop-types"
|
|
71
|
-
const o = require("prop-types");
|
|
72
|
-
var i = e.n(o);
|
|
73
70
|
// CONCATENATED MODULE: external "@react-spring/web"
|
|
74
|
-
const
|
|
71
|
+
const o = require("@react-spring/web");
|
|
72
|
+
// CONCATENATED MODULE: external "prop-types"
|
|
73
|
+
const i = require("prop-types");
|
|
74
|
+
var a = e.n(i);
|
|
75
75
|
// CONCATENATED MODULE: external "@splunk/react-ui/Animation"
|
|
76
76
|
const u = require("@splunk/react-ui/Animation");
|
|
77
77
|
// CONCATENATED MODULE: external "styled-components"
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
displayName: "SlidingPanelsStyles__StyledBox",
|
|
88
88
|
componentId: "su6isq-0"
|
|
89
89
|
})([ "overflow:hidden;position:relative;" ]);
|
|
90
|
-
var v = c()(
|
|
90
|
+
var v = c()(o.animated.div).withConfig({
|
|
91
91
|
displayName: "SlidingPanelsStyles__StyledAnimatedDiv",
|
|
92
92
|
componentId: "su6isq-1"
|
|
93
93
|
})([ "", ";", ";" ], y.mixins.reset("block"), y.mixins.clearfix());
|
|
@@ -123,12 +123,12 @@
|
|
|
123
123
|
}, m.apply(null, arguments);
|
|
124
124
|
}
|
|
125
125
|
function b(e, n) {
|
|
126
|
-
return j(e) || S(e, n) ||
|
|
126
|
+
return j(e) || S(e, n) || g(e, n) || O();
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function O() {
|
|
129
129
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function g(e, n) {
|
|
132
132
|
if (e) {
|
|
133
133
|
if ("string" == typeof e) return h(e, n);
|
|
134
134
|
var r = {}.toString.call(e).slice(8, -1);
|
|
@@ -173,7 +173,7 @@
|
|
|
173
173
|
if (Object.getOwnPropertySymbols) {
|
|
174
174
|
var i = Object.getOwnPropertySymbols(e);
|
|
175
175
|
for (t = 0; t < i.length; t++) {
|
|
176
|
-
r = i[t], n.
|
|
176
|
+
r = i[t], -1 === n.indexOf(r) && {}.propertyIsEnumerable.call(e, r) && (o[r] = e[r]);
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
179
|
return o;
|
|
@@ -183,24 +183,24 @@
|
|
|
183
183
|
var r = {};
|
|
184
184
|
for (var t in e) {
|
|
185
185
|
if ({}.hasOwnProperty.call(e, t)) {
|
|
186
|
-
if (n.
|
|
186
|
+
if (-1 !== n.indexOf(t)) continue;
|
|
187
187
|
r[t] = e[t];
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
190
|
return r;
|
|
191
191
|
}
|
|
192
|
-
var
|
|
193
|
-
children:
|
|
194
|
-
elementRef:
|
|
192
|
+
var x = {
|
|
193
|
+
children: a().node,
|
|
194
|
+
elementRef: a().oneOfType([ a().func, a().object ]),
|
|
195
195
|
/** @private */
|
|
196
|
-
onMount:
|
|
196
|
+
onMount: a().func,
|
|
197
197
|
/** @private */
|
|
198
|
-
onUnmount:
|
|
199
|
-
panelId:
|
|
198
|
+
onUnmount: a().func,
|
|
199
|
+
panelId: a().oneOfType([ a().string, a().number ]).isRequired
|
|
200
200
|
};
|
|
201
201
|
/**
|
|
202
202
|
* Container for arbitrary content.
|
|
203
|
-
*/ function
|
|
203
|
+
*/ function E(e) {
|
|
204
204
|
var n = e.children, o = e.elementRef, i = e.onMount, a = e.onUnmount, u = e.panelId, l = w(e, [ "children", "elementRef", "onMount", "onUnmount", "panelId" ]);
|
|
205
205
|
// @docs-props-type PanelPropsBase
|
|
206
206
|
var c = (0, r.useState)(null), f = b(c, 2), s = f[0], y = f[1];
|
|
@@ -222,16 +222,16 @@
|
|
|
222
222
|
ref: d
|
|
223
223
|
}), n);
|
|
224
224
|
}
|
|
225
|
-
|
|
226
|
-
/* harmony default export */ const
|
|
225
|
+
E.propTypes = x;
|
|
226
|
+
/* harmony default export */ const A = E;
|
|
227
227
|
// CONCATENATED MODULE: ./src/SlidingPanels/SlidingPanels.tsx
|
|
228
|
-
function
|
|
228
|
+
function I(e) {
|
|
229
229
|
"@babel/helpers - typeof";
|
|
230
|
-
return
|
|
230
|
+
return I = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
|
|
231
231
|
return typeof e;
|
|
232
232
|
} : function(e) {
|
|
233
233
|
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
234
|
-
},
|
|
234
|
+
}, I(e);
|
|
235
235
|
}
|
|
236
236
|
function C() {
|
|
237
237
|
return C = Object.assign ? Object.assign.bind() : function(e) {
|
|
@@ -295,7 +295,7 @@
|
|
|
295
295
|
if (Object.getOwnPropertySymbols) {
|
|
296
296
|
var i = Object.getOwnPropertySymbols(e);
|
|
297
297
|
for (t = 0; t < i.length; t++) {
|
|
298
|
-
r = i[t], n.
|
|
298
|
+
r = i[t], -1 === n.indexOf(r) && {}.propertyIsEnumerable.call(e, r) && (o[r] = e[r]);
|
|
299
299
|
}
|
|
300
300
|
}
|
|
301
301
|
return o;
|
|
@@ -305,7 +305,7 @@
|
|
|
305
305
|
var r = {};
|
|
306
306
|
for (var t in e) {
|
|
307
307
|
if ({}.hasOwnProperty.call(e, t)) {
|
|
308
|
-
if (n.
|
|
308
|
+
if (-1 !== n.indexOf(t)) continue;
|
|
309
309
|
r[t] = e[t];
|
|
310
310
|
}
|
|
311
311
|
}
|
|
@@ -342,29 +342,29 @@
|
|
|
342
342
|
}
|
|
343
343
|
function $(e) {
|
|
344
344
|
var n = W(e, "string");
|
|
345
|
-
return "symbol" ==
|
|
345
|
+
return "symbol" == I(n) ? n : n + "";
|
|
346
346
|
}
|
|
347
347
|
function W(e, n) {
|
|
348
|
-
if ("object" !=
|
|
348
|
+
if ("object" != I(e) || !e) return e;
|
|
349
349
|
var r = e[Symbol.toPrimitive];
|
|
350
350
|
if (void 0 !== r) {
|
|
351
351
|
var t = r.call(e, n || "default");
|
|
352
|
-
if ("object" !=
|
|
352
|
+
if ("object" != I(t)) return t;
|
|
353
353
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
354
354
|
}
|
|
355
355
|
return ("string" === n ? String : Number)(e);
|
|
356
356
|
}
|
|
357
357
|
// can't use PanelId as key type, because an index signature parameter type must be 'string', 'number', 'symbol', or a template literal type.
|
|
358
358
|
var z = {
|
|
359
|
-
activePanelId:
|
|
360
|
-
children:
|
|
361
|
-
elementRef:
|
|
362
|
-
innerClassName:
|
|
363
|
-
innerStyle:
|
|
364
|
-
onAnimationEnd:
|
|
365
|
-
outerClassName:
|
|
366
|
-
outerStyle:
|
|
367
|
-
transition:
|
|
359
|
+
activePanelId: a().oneOfType([ a().string, a().number ]).isRequired,
|
|
360
|
+
children: a().node,
|
|
361
|
+
elementRef: a().oneOfType([ a().func, a().object ]),
|
|
362
|
+
innerClassName: a().string,
|
|
363
|
+
innerStyle: a().object,
|
|
364
|
+
onAnimationEnd: a().func,
|
|
365
|
+
outerClassName: a().string,
|
|
366
|
+
outerStyle: a().object,
|
|
367
|
+
transition: a().oneOf([ "forward", "backward" ])
|
|
368
368
|
};
|
|
369
369
|
var F = {
|
|
370
370
|
enter: {
|
|
@@ -428,28 +428,28 @@
|
|
|
428
428
|
}));
|
|
429
429
|
};
|
|
430
430
|
function K(e) {
|
|
431
|
-
var n = e.activePanelId,
|
|
431
|
+
var n = e.activePanelId, i = e.children, a = e.elementRef, l = e.innerClassName, c = e.innerStyle, f = e.onAnimationEnd, s = e.outerClassName, y = e.outerStyle, v = e.transition, p = v === void 0 ? "forward" : v, m = U(e, [ "activePanelId", "children", "elementRef", "innerClassName", "innerStyle", "onAnimationEnd", "outerClassName", "outerStyle", "transition" ]);
|
|
432
432
|
// @docs-props-type SlidingPanelsPropsBase
|
|
433
|
-
var b = (0, r.useState)(0),
|
|
433
|
+
var b = (0, r.useState)(0), O = M(b, 2), g = O[0], h = O[1];
|
|
434
434
|
var S = (0, r.useState)([]), j = M(S, 2), w = j[0], P = j[1];
|
|
435
|
-
var
|
|
436
|
-
var N = (0,
|
|
435
|
+
var x = (0, r.useState)({}), E = M(x, 2), A = E[0], I = E[1];
|
|
436
|
+
var N = (0, o.useSpringRef)();
|
|
437
437
|
var T = (0, r.useMemo)((function() {
|
|
438
|
-
return r.Children.toArray(
|
|
439
|
-
}), [
|
|
438
|
+
return r.Children.toArray(i).filter(r.isValidElement);
|
|
439
|
+
}), [ i ]);
|
|
440
440
|
/**
|
|
441
441
|
* maxWidth is used to determine how far to translate the x value of the animated panels.
|
|
442
442
|
* Without maxWidth, we run into a problem if the leaving panel width > the arriving panel width.
|
|
443
443
|
* In this case, useAnimationTransition will only know to shift the leaving panel by the width of the arriving panel,
|
|
444
444
|
* which would result in seeing part of the leaving panel's content on screen at the same time as the arriving panel's content.
|
|
445
445
|
*/ var q = (0, r.useMemo)((function() {
|
|
446
|
-
return H(
|
|
447
|
-
}), [
|
|
446
|
+
return H(A);
|
|
447
|
+
}), [ A ]);
|
|
448
448
|
/* determines what our transform translateX will look like based on is it transitioning forward or backward */ var R = (0,
|
|
449
449
|
r.useMemo)((function() {
|
|
450
450
|
return G(q, p);
|
|
451
451
|
}), [ q, p ]);
|
|
452
|
-
var k = (0, u.useAnimationTransition)(
|
|
452
|
+
var k = (0, u.useAnimationTransition)(g, B(B(B({
|
|
453
453
|
ref: N
|
|
454
454
|
}, F), R), {}, {
|
|
455
455
|
onRest: function e() {
|
|
@@ -459,11 +459,11 @@
|
|
|
459
459
|
(0, r.useEffect)((function() {
|
|
460
460
|
/* if it can't find activePanelId it will set currentPanelIndex to -1 */
|
|
461
461
|
if (false) {}
|
|
462
|
-
}), [
|
|
462
|
+
}), [ g ]);
|
|
463
463
|
(0, r.useEffect)((function() {
|
|
464
464
|
/* starts animation */
|
|
465
465
|
N.start();
|
|
466
|
-
}), [ N,
|
|
466
|
+
}), [ N, g ]);
|
|
467
467
|
(0, r.useEffect)((function() {
|
|
468
468
|
/* sets the currentPanelIndex in state whenever activePanelId or children changes */
|
|
469
469
|
var e = T.findIndex((function(e) {
|
|
@@ -474,13 +474,13 @@
|
|
|
474
474
|
}), [ n, T ]);
|
|
475
475
|
var _ = (0, r.useCallback)((function(e, n) {
|
|
476
476
|
if (e != null && n != null) {
|
|
477
|
-
|
|
477
|
+
I((function(r) {
|
|
478
478
|
return B(B({}, r), {}, V({}, n, e));
|
|
479
479
|
}));
|
|
480
480
|
}
|
|
481
481
|
}), []);
|
|
482
482
|
var D = (0, r.useCallback)((function(e) {
|
|
483
|
-
|
|
483
|
+
I((function(n) {
|
|
484
484
|
var r = B({}, n);
|
|
485
485
|
delete r[e];
|
|
486
486
|
return r;
|
|
@@ -504,7 +504,7 @@
|
|
|
504
504
|
className: s,
|
|
505
505
|
"data-test-active-panel-id": n,
|
|
506
506
|
"data-test": "sliding-panels",
|
|
507
|
-
elementRef:
|
|
507
|
+
elementRef: a,
|
|
508
508
|
style: y
|
|
509
509
|
}, m), k((function(e, n) {
|
|
510
510
|
var r = w[n];
|
|
@@ -515,7 +515,7 @@
|
|
|
515
515
|
})));
|
|
516
516
|
}
|
|
517
517
|
K.propTypes = z;
|
|
518
|
-
K.Panel =
|
|
518
|
+
K.Panel = A;
|
|
519
519
|
/* harmony default export */ const L = K;
|
|
520
520
|
// CONCATENATED MODULE: ./src/SlidingPanels/index.ts
|
|
521
521
|
module.exports = n;
|
package/SplitButton.js
CHANGED
|
@@ -61,8 +61,8 @@
|
|
|
61
61
|
e.r(n);
|
|
62
62
|
// EXPORTS
|
|
63
63
|
e.d(n, {
|
|
64
|
-
Item: () => /* reexport */
|
|
65
|
-
default: () => /* reexport */
|
|
64
|
+
Item: () => /* reexport */ k,
|
|
65
|
+
default: () => /* reexport */ B
|
|
66
66
|
});
|
|
67
67
|
// CONCATENATED MODULE: external "react"
|
|
68
68
|
const r = require("react");
|
|
@@ -71,45 +71,25 @@
|
|
|
71
71
|
const a = require("prop-types");
|
|
72
72
|
var i = e.n(a);
|
|
73
73
|
// CONCATENATED MODULE: external "@splunk/react-icons/CaretSmallDown"
|
|
74
|
-
const
|
|
75
|
-
var
|
|
74
|
+
const o = require("@splunk/react-icons/CaretSmallDown");
|
|
75
|
+
var l = e.n(o);
|
|
76
76
|
// CONCATENATED MODULE: external "@splunk/react-ui/Dropdown"
|
|
77
77
|
const c = require("@splunk/react-ui/Dropdown");
|
|
78
78
|
var u = e.n(c);
|
|
79
79
|
// CONCATENATED MODULE: external "@splunk/react-ui/Menu"
|
|
80
|
-
const
|
|
81
|
-
var
|
|
80
|
+
const p = require("@splunk/react-ui/Menu");
|
|
81
|
+
var s = e.n(p);
|
|
82
82
|
// CONCATENATED MODULE: external "@splunk/ui-utils/i18n"
|
|
83
|
-
const
|
|
84
|
-
// CONCATENATED MODULE: external "
|
|
85
|
-
const f = require("
|
|
83
|
+
const d = require("@splunk/ui-utils/i18n");
|
|
84
|
+
// CONCATENATED MODULE: external "lodash/omit"
|
|
85
|
+
const f = require("lodash/omit");
|
|
86
86
|
var v = e.n(f);
|
|
87
87
|
// CONCATENATED MODULE: external "@splunk/react-ui/Button"
|
|
88
|
-
const
|
|
89
|
-
var
|
|
90
|
-
// CONCATENATED MODULE: external "@splunk/themes"
|
|
91
|
-
const m = require("@splunk/themes");
|
|
92
|
-
// CONCATENATED MODULE: ./src/SplitButton/SplitButtonStyles.ts
|
|
93
|
-
var g = v()(y()).withConfig({
|
|
94
|
-
displayName: "SplitButtonStyles__StyledToggle",
|
|
95
|
-
componentId: "sc-9igsyh-0"
|
|
96
|
-
})([ "min-width:0;width:24px;" ]);
|
|
97
|
-
var h = v().div.withConfig({
|
|
98
|
-
displayName: "SplitButtonStyles__StyledDiv",
|
|
99
|
-
componentId: "sc-9igsyh-1"
|
|
100
|
-
})([ "", " ", " ", "" ], m.mixins.reset("inline-flex"), (function(e) {
|
|
101
|
-
var n = e.$appearance;
|
|
102
|
-
return (n === "primary" || n === "destructive") && (0, f.css)([ "gap:1px;" ]);
|
|
103
|
-
}), (function(e) {
|
|
104
|
-
var n = e.$inline;
|
|
105
|
-
return !n && (0, f.css)([ "width:100%;" ]);
|
|
106
|
-
}));
|
|
107
|
-
// CONCATENATED MODULE: external "lodash/omit"
|
|
108
|
-
const O = require("lodash/omit");
|
|
109
|
-
var S = e.n(O);
|
|
88
|
+
const m = require("@splunk/react-ui/Button");
|
|
89
|
+
var b = e.n(m);
|
|
110
90
|
// CONCATENATED MODULE: ./src/SplitButton/Item.tsx
|
|
111
|
-
function
|
|
112
|
-
return
|
|
91
|
+
function y() {
|
|
92
|
+
return y = Object.assign ? Object.assign.bind() : function(e) {
|
|
113
93
|
for (var n = 1; n < arguments.length; n++) {
|
|
114
94
|
var r = arguments[n];
|
|
115
95
|
for (var t in r) {
|
|
@@ -117,31 +97,31 @@
|
|
|
117
97
|
}
|
|
118
98
|
}
|
|
119
99
|
return e;
|
|
120
|
-
},
|
|
100
|
+
}, y.apply(null, arguments);
|
|
121
101
|
}
|
|
122
|
-
function
|
|
102
|
+
function g(e, n) {
|
|
123
103
|
if (null == e) return {};
|
|
124
|
-
var r, t, a =
|
|
104
|
+
var r, t, a = O(e, n);
|
|
125
105
|
if (Object.getOwnPropertySymbols) {
|
|
126
106
|
var i = Object.getOwnPropertySymbols(e);
|
|
127
107
|
for (t = 0; t < i.length; t++) {
|
|
128
|
-
r = i[t], n.
|
|
108
|
+
r = i[t], -1 === n.indexOf(r) && {}.propertyIsEnumerable.call(e, r) && (a[r] = e[r]);
|
|
129
109
|
}
|
|
130
110
|
}
|
|
131
111
|
return a;
|
|
132
112
|
}
|
|
133
|
-
function
|
|
113
|
+
function O(e, n) {
|
|
134
114
|
if (null == e) return {};
|
|
135
115
|
var r = {};
|
|
136
116
|
for (var t in e) {
|
|
137
117
|
if ({}.hasOwnProperty.call(e, t)) {
|
|
138
|
-
if (n.
|
|
118
|
+
if (-1 !== n.indexOf(t)) continue;
|
|
139
119
|
r[t] = e[t];
|
|
140
120
|
}
|
|
141
121
|
}
|
|
142
122
|
return r;
|
|
143
123
|
}
|
|
144
|
-
/** @public */ var
|
|
124
|
+
/** @public */ var h = {
|
|
145
125
|
appearance: i().oneOf([ "default", "secondary", "primary", "destructive", "destructiveSecondary" ]),
|
|
146
126
|
children: i().node,
|
|
147
127
|
disabled: i().bool,
|
|
@@ -152,49 +132,89 @@
|
|
|
152
132
|
};
|
|
153
133
|
/**
|
|
154
134
|
* An item within a `SplitButton`.
|
|
155
|
-
*/ function
|
|
156
|
-
var n = e.appearance, a = n === void 0 ? "secondary" : n, i = e.disabled,
|
|
135
|
+
*/ function S(e) {
|
|
136
|
+
var n = e.appearance, a = n === void 0 ? "secondary" : n, i = e.disabled, o = e.elementRef, l = e.icon, c = e.isMain, u = e.children, p = e.onClick, d = g(e, [ "appearance", "disabled", "elementRef", "icon", "isMain", "children", "onClick" ]);
|
|
157
137
|
// @docs-props-type ItemPropsBase
|
|
158
138
|
var f = (0, r.useCallback)((function(e) {
|
|
159
139
|
if (!i) {
|
|
160
|
-
|
|
140
|
+
p === null || p === void 0 ? void 0 : p(e, {});
|
|
161
141
|
}
|
|
162
|
-
}), [ i,
|
|
163
|
-
var
|
|
164
|
-
var r = n.action, t = n.icon, a = n.label,
|
|
142
|
+
}), [ i, p ]);
|
|
143
|
+
var m = (0, r.useCallback)((function(e, n) {
|
|
144
|
+
var r = n.action, t = n.icon, a = n.label, o = n.value;
|
|
165
145
|
if (!i) {
|
|
166
|
-
|
|
146
|
+
p === null || p === void 0 ? void 0 : p(e, {
|
|
167
147
|
action: r,
|
|
168
148
|
icon: t,
|
|
169
149
|
label: a,
|
|
170
|
-
value:
|
|
150
|
+
value: o
|
|
171
151
|
});
|
|
172
152
|
}
|
|
173
|
-
}), [ i,
|
|
153
|
+
}), [ i, p ]);
|
|
174
154
|
if (c) {
|
|
175
155
|
|
|
176
|
-
return t().createElement(
|
|
156
|
+
return t().createElement(b(), y({
|
|
177
157
|
appearance: a,
|
|
178
158
|
append: true,
|
|
179
159
|
disabled: i,
|
|
180
|
-
elementRef:
|
|
181
|
-
icon:
|
|
182
|
-
onClick:
|
|
183
|
-
},
|
|
160
|
+
elementRef: o,
|
|
161
|
+
icon: l,
|
|
162
|
+
onClick: m
|
|
163
|
+
}, d), u);
|
|
184
164
|
}
|
|
185
165
|
|
|
186
|
-
return t().createElement(
|
|
166
|
+
return t().createElement(s().Item, y({
|
|
187
167
|
disabled: i,
|
|
188
|
-
elementRef:
|
|
168
|
+
elementRef: o,
|
|
189
169
|
onClick: f,
|
|
190
|
-
startAdornment:
|
|
191
|
-
},
|
|
170
|
+
startAdornment: l
|
|
171
|
+
}, v()(d, [ "role" ])), u);
|
|
192
172
|
}
|
|
193
|
-
|
|
194
|
-
/* harmony default export */ const
|
|
173
|
+
S.propTypes = h;
|
|
174
|
+
/* harmony default export */ const k = S;
|
|
175
|
+
// CONCATENATED MODULE: external "styled-components"
|
|
176
|
+
const w = require("styled-components");
|
|
177
|
+
var j = e.n(w);
|
|
178
|
+
// CONCATENATED MODULE: external "@splunk/themes"
|
|
179
|
+
const E = require("@splunk/themes");
|
|
180
|
+
// CONCATENATED MODULE: ./src/SplitButton/SplitButtonStyles.ts
|
|
181
|
+
var C = j()(b()).withConfig({
|
|
182
|
+
displayName: "SplitButtonStyles__StyledToggle",
|
|
183
|
+
componentId: "sc-9igsyh-0"
|
|
184
|
+
})([ "min-width:0;width:24px;" ]);
|
|
185
|
+
var P = j().div.withConfig({
|
|
186
|
+
displayName: "SplitButtonStyles__StyledDiv",
|
|
187
|
+
componentId: "sc-9igsyh-1"
|
|
188
|
+
})([ "", " ", " ", "" ], E.mixins.reset("inline-flex"), (function(e) {
|
|
189
|
+
var n = e.$appearance;
|
|
190
|
+
return (n === "primary" || n === "destructive") && (0, w.css)([ "gap:1px;" ]);
|
|
191
|
+
}), (function(e) {
|
|
192
|
+
var n = e.$inline;
|
|
193
|
+
return !n && (0, w.css)([ "width:100%;" ]);
|
|
194
|
+
}));
|
|
195
|
+
// CONCATENATED MODULE: ./src/utils/useDeprecate.tsx
|
|
196
|
+
var M = "is deprecated and will be removed in the next major version.";
|
|
197
|
+
var R = function e(n) {
|
|
198
|
+
var r = n.additionalMessage, t = r === void 0 ? "" : r, a = n.componentName;
|
|
199
|
+
useEffect((function() {
|
|
200
|
+
if (false) {}
|
|
201
|
+
}), [ t, a ]);
|
|
202
|
+
};
|
|
203
|
+
var q = function e(n) {
|
|
204
|
+
var r = n.additionalMessage, t = r === void 0 ? "" : r, a = n.componentName, i = n.propName, o = n.propValue;
|
|
205
|
+
useEffect((function() {
|
|
206
|
+
if (false) {}
|
|
207
|
+
}), [ t, a, i, o ]);
|
|
208
|
+
};
|
|
209
|
+
var x = function e(n) {
|
|
210
|
+
var t = n.additionalMessage, a = t === void 0 ? "" : t, i = n.componentName, o = n.deprecatedPropValue, l = n.propName, c = n.propValue;
|
|
211
|
+
(0, r.useEffect)((function() {
|
|
212
|
+
if (false) {}
|
|
213
|
+
}), [ a, i, l, c, o ]);
|
|
214
|
+
};
|
|
195
215
|
// CONCATENATED MODULE: ./src/SplitButton/SplitButton.tsx
|
|
196
|
-
function
|
|
197
|
-
return
|
|
216
|
+
function _() {
|
|
217
|
+
return _ = Object.assign ? Object.assign.bind() : function(e) {
|
|
198
218
|
for (var n = 1; n < arguments.length; n++) {
|
|
199
219
|
var r = arguments[n];
|
|
200
220
|
for (var t in r) {
|
|
@@ -202,86 +222,94 @@
|
|
|
202
222
|
}
|
|
203
223
|
}
|
|
204
224
|
return e;
|
|
205
|
-
},
|
|
225
|
+
}, _.apply(null, arguments);
|
|
206
226
|
}
|
|
207
|
-
function
|
|
227
|
+
function N(e, n) {
|
|
208
228
|
if (null == e) return {};
|
|
209
|
-
var r, t, a =
|
|
229
|
+
var r, t, a = T(e, n);
|
|
210
230
|
if (Object.getOwnPropertySymbols) {
|
|
211
231
|
var i = Object.getOwnPropertySymbols(e);
|
|
212
232
|
for (t = 0; t < i.length; t++) {
|
|
213
|
-
r = i[t], n.
|
|
233
|
+
r = i[t], -1 === n.indexOf(r) && {}.propertyIsEnumerable.call(e, r) && (a[r] = e[r]);
|
|
214
234
|
}
|
|
215
235
|
}
|
|
216
236
|
return a;
|
|
217
237
|
}
|
|
218
|
-
function
|
|
238
|
+
function T(e, n) {
|
|
219
239
|
if (null == e) return {};
|
|
220
240
|
var r = {};
|
|
221
241
|
for (var t in e) {
|
|
222
242
|
if ({}.hasOwnProperty.call(e, t)) {
|
|
223
|
-
if (n.
|
|
243
|
+
if (-1 !== n.indexOf(t)) continue;
|
|
224
244
|
r[t] = e[t];
|
|
225
245
|
}
|
|
226
246
|
}
|
|
227
247
|
return r;
|
|
228
248
|
}
|
|
229
|
-
var
|
|
249
|
+
var I = {
|
|
230
250
|
appearance: i().oneOf([ "default", "secondary", "primary", "destructive", "destructiveSecondary" ]),
|
|
231
251
|
children: i().node,
|
|
232
252
|
disabled: i().bool,
|
|
233
253
|
elementRef: i().oneOfType([ i().func, i().object ]),
|
|
234
254
|
onClick: i().func,
|
|
235
|
-
inline: i().bool
|
|
255
|
+
inline: i().bool,
|
|
256
|
+
toggleRef: i().oneOfType([ i().func, i().object ])
|
|
236
257
|
};
|
|
237
|
-
function
|
|
238
|
-
var n = e.appearance, a = n === void 0 ? "secondary" : n, i = e.children,
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
258
|
+
function V(e) {
|
|
259
|
+
var n = e.appearance, a = n === void 0 ? "secondary" : n, i = e.children, o = e.disabled, c = e.elementRef, p = e.inline, f = p === void 0 ? true : p, v = e.onClick, m = e.toggleRef, b = N(e, [ "appearance", "children", "disabled", "elementRef", "inline", "onClick", "toggleRef" ]);
|
|
260
|
+
// @docs-props-type SplitButtonPropsBase
|
|
261
|
+
x({
|
|
262
|
+
componentName: "SplitButton",
|
|
263
|
+
deprecatedPropValue: "default",
|
|
264
|
+
propName: "appearance",
|
|
265
|
+
propValue: a
|
|
266
|
+
});
|
|
267
|
+
var y = r.Children.toArray(i).filter(r.isValidElement);
|
|
268
|
+
var g = 0;
|
|
242
269
|
var O = 0;
|
|
243
270
|
y.forEach((function(e, n) {
|
|
244
271
|
var r = e.props, t = r.disabled, a = r.isMain;
|
|
245
272
|
if (a) {
|
|
246
|
-
|
|
273
|
+
g = n;
|
|
247
274
|
}
|
|
248
275
|
if (t) {
|
|
249
276
|
O += 1;
|
|
250
277
|
}
|
|
251
278
|
}));
|
|
252
|
-
var
|
|
279
|
+
var h = (0, r.cloneElement)(y[g], {
|
|
253
280
|
isMain: true,
|
|
254
281
|
appearance: a,
|
|
255
|
-
disabled:
|
|
282
|
+
disabled: o || y[g].props.disabled
|
|
256
283
|
});
|
|
257
284
|
// Remove mainButton from array of dropdown items
|
|
258
|
-
y.splice(
|
|
259
|
-
var
|
|
260
|
-
var
|
|
285
|
+
y.splice(g, 1);
|
|
286
|
+
var S = y;
|
|
287
|
+
var k = t().createElement(C, {
|
|
261
288
|
prepend: true,
|
|
262
|
-
disabled:
|
|
289
|
+
disabled: o || O === S.length,
|
|
290
|
+
elementRef: m,
|
|
263
291
|
appearance: a,
|
|
264
292
|
"data-test": "split-button-toggle",
|
|
265
|
-
"aria-label": (0,
|
|
266
|
-
icon: t().createElement(
|
|
293
|
+
"aria-label": (0, d._)("Open more options"),
|
|
294
|
+
icon: t().createElement(l(), null)
|
|
267
295
|
});
|
|
268
296
|
|
|
269
|
-
return t().createElement(
|
|
270
|
-
"aria-label": (0,
|
|
297
|
+
return t().createElement(P, _({
|
|
298
|
+
"aria-label": (0, d._)("Split button"),
|
|
271
299
|
"data-inline": f || null,
|
|
272
300
|
"data-test": "split-button-container",
|
|
273
301
|
$inline: f,
|
|
274
302
|
ref: c,
|
|
275
303
|
role: "group",
|
|
276
|
-
onClick:
|
|
304
|
+
onClick: o ? undefined : v,
|
|
277
305
|
$appearance: a
|
|
278
|
-
}, b),
|
|
279
|
-
toggle:
|
|
280
|
-
}, t().createElement(
|
|
306
|
+
}, b), h, t().createElement("div", null, t().createElement(u(), {
|
|
307
|
+
toggle: k
|
|
308
|
+
}, t().createElement(s(), null, S))));
|
|
281
309
|
}
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
/* harmony default export */ const
|
|
310
|
+
V.propTypes = I;
|
|
311
|
+
V.Item = k;
|
|
312
|
+
/* harmony default export */ const B = V;
|
|
285
313
|
// CONCATENATED MODULE: ./src/SplitButton/index.ts
|
|
286
314
|
module.exports = n;
|
|
287
315
|
/******/})();
|
package/StaticContent.js
CHANGED
|
@@ -94,23 +94,23 @@
|
|
|
94
94
|
return e;
|
|
95
95
|
}, c.apply(null, arguments);
|
|
96
96
|
}
|
|
97
|
-
function
|
|
97
|
+
function f(e, n) {
|
|
98
98
|
if (null == e) return {};
|
|
99
|
-
var r, t, i =
|
|
99
|
+
var r, t, i = d(e, n);
|
|
100
100
|
if (Object.getOwnPropertySymbols) {
|
|
101
101
|
var l = Object.getOwnPropertySymbols(e);
|
|
102
102
|
for (t = 0; t < l.length; t++) {
|
|
103
|
-
r = l[t], n.
|
|
103
|
+
r = l[t], -1 === n.indexOf(r) && {}.propertyIsEnumerable.call(e, r) && (i[r] = e[r]);
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
return i;
|
|
107
107
|
}
|
|
108
|
-
function
|
|
108
|
+
function d(e, n) {
|
|
109
109
|
if (null == e) return {};
|
|
110
110
|
var r = {};
|
|
111
111
|
for (var t in e) {
|
|
112
112
|
if ({}.hasOwnProperty.call(e, t)) {
|
|
113
|
-
if (n.
|
|
113
|
+
if (-1 !== n.indexOf(t)) continue;
|
|
114
114
|
r[t] = e[t];
|
|
115
115
|
}
|
|
116
116
|
}
|
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
* This component is intended for use in a control group, either to display a static value or
|
|
127
127
|
* between two controls.
|
|
128
128
|
*/ function y(e) {
|
|
129
|
-
var n = e.children, r = e.elementRef, i = e.inline, l = i === void 0 ? false : i, a = e.labelledBy, o =
|
|
129
|
+
var n = e.children, r = e.elementRef, i = e.inline, l = i === void 0 ? false : i, a = e.labelledBy, o = f(e, [ "children", "elementRef", "inline", "labelledBy" ]);
|
|
130
130
|
// @docs-props-type StaticContentPropsBase
|
|
131
131
|
|
|
132
132
|
return t().createElement(u, c({
|