@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/SplitButton.js
CHANGED
|
@@ -61,8 +61,8 @@
|
|
|
61
61
|
e.r(r);
|
|
62
62
|
// EXPORTS
|
|
63
63
|
e.d(r, {
|
|
64
|
-
Item: () => /* reexport */
|
|
65
|
-
default: () => /* reexport */
|
|
64
|
+
Item: () => /* reexport */ K,
|
|
65
|
+
default: () => /* reexport */ Y
|
|
66
66
|
});
|
|
67
67
|
// CONCATENATED MODULE: external "react"
|
|
68
68
|
const t = require("react");
|
|
@@ -83,17 +83,17 @@
|
|
|
83
83
|
const f = require("@splunk/ui-utils/i18n");
|
|
84
84
|
// CONCATENATED MODULE: external "styled-components"
|
|
85
85
|
const d = require("styled-components");
|
|
86
|
-
var
|
|
86
|
+
var v = e.n(d);
|
|
87
87
|
// CONCATENATED MODULE: external "@splunk/react-ui/Button"
|
|
88
|
-
const
|
|
89
|
-
var y = e.n(
|
|
88
|
+
const b = require("@splunk/react-ui/Button");
|
|
89
|
+
var y = e.n(b);
|
|
90
90
|
// CONCATENATED MODULE: external "@splunk/react-ui/Box"
|
|
91
|
-
const
|
|
92
|
-
var
|
|
91
|
+
const h = require("@splunk/react-ui/Box");
|
|
92
|
+
var m = e.n(h);
|
|
93
93
|
// CONCATENATED MODULE: external "@splunk/themes"
|
|
94
94
|
const g = require("@splunk/themes");
|
|
95
95
|
// CONCATENATED MODULE: ./src/SplitButton/SplitButtonStyles.ts
|
|
96
|
-
var O =
|
|
96
|
+
var O = v()(y()).withConfig({
|
|
97
97
|
displayName: "SplitButtonStyles__StyledButton",
|
|
98
98
|
componentId: "sc-9igsyh-0"
|
|
99
99
|
})([ "", "" ], (0, g.pick)({
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
return t === "default" && (0, d.css)([ "&:first-child{border-right:1px solid ", ";}" ], g.variables.interactiveColorBorder);
|
|
103
103
|
}
|
|
104
104
|
}));
|
|
105
|
-
var w =
|
|
105
|
+
var w = v()(m()).withConfig({
|
|
106
106
|
displayName: "SplitButtonStyles__StyledSeparator",
|
|
107
107
|
componentId: "sc-9igsyh-1"
|
|
108
108
|
})([ "width:", ";height:", ";background-color:", ";" ], (0, g.pick)({
|
|
@@ -130,27 +130,45 @@
|
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
132
|
}));
|
|
133
|
-
var k =
|
|
134
|
-
displayName: "
|
|
133
|
+
var k = v().div.withConfig({
|
|
134
|
+
displayName: "SplitButtonStyles__StyledDiv",
|
|
135
135
|
componentId: "sc-9igsyh-2"
|
|
136
|
-
})([ "", "
|
|
136
|
+
})([ "", " ", "" ], g.mixins.reset("inline-flex"), (function(e) {
|
|
137
137
|
var r = e.$inline;
|
|
138
138
|
return !r && (0, d.css)([ "width:100%;" ]);
|
|
139
|
-
})
|
|
139
|
+
}));
|
|
140
140
|
// CONCATENATED MODULE: external "lodash/omit"
|
|
141
141
|
const S = require("lodash/omit");
|
|
142
142
|
var j = e.n(S);
|
|
143
|
+
// CONCATENATED MODULE: ./src/utils/scrollIntoViewIfNeeded.ts
|
|
144
|
+
// A utility that attempts to move an element into view by scrolling it's derived parent.
|
|
145
|
+
var P = function e(r) {
|
|
146
|
+
if (!r) {
|
|
147
|
+
return;
|
|
148
|
+
}
|
|
149
|
+
var t = r.offsetParent;
|
|
150
|
+
if (!t) {
|
|
151
|
+
return;
|
|
152
|
+
}
|
|
153
|
+
// Below the bottom of the container.
|
|
154
|
+
if (t.scrollTop + t.clientHeight < r.offsetTop + r.clientHeight) {
|
|
155
|
+
t.scrollTop = r.offsetTop + r.clientHeight - t.clientHeight;
|
|
156
|
+
// Above the top of the container.
|
|
157
|
+
} else if (t.scrollTop > r.offsetTop) {
|
|
158
|
+
t.scrollTop = r.offsetTop;
|
|
159
|
+
}
|
|
160
|
+
};
|
|
143
161
|
// CONCATENATED MODULE: ./src/SplitButton/Item.tsx
|
|
144
|
-
function
|
|
162
|
+
function _(e) {
|
|
145
163
|
"@babel/helpers - typeof";
|
|
146
|
-
return
|
|
164
|
+
return _ = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
|
|
147
165
|
return typeof e;
|
|
148
166
|
} : function(e) {
|
|
149
167
|
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
150
|
-
},
|
|
168
|
+
}, _(e);
|
|
151
169
|
}
|
|
152
|
-
function
|
|
153
|
-
return
|
|
170
|
+
function C() {
|
|
171
|
+
return C = Object.assign ? Object.assign.bind() : function(e) {
|
|
154
172
|
for (var r = 1; r < arguments.length; r++) {
|
|
155
173
|
var t = arguments[r];
|
|
156
174
|
for (var n in t) {
|
|
@@ -158,11 +176,11 @@
|
|
|
158
176
|
}
|
|
159
177
|
}
|
|
160
178
|
return e;
|
|
161
|
-
},
|
|
179
|
+
}, C.apply(null, arguments);
|
|
162
180
|
}
|
|
163
|
-
function
|
|
181
|
+
function E(e, r) {
|
|
164
182
|
if (null == e) return {};
|
|
165
|
-
var t, n, i =
|
|
183
|
+
var t, n, i = T(e, r);
|
|
166
184
|
if (Object.getOwnPropertySymbols) {
|
|
167
185
|
var o = Object.getOwnPropertySymbols(e);
|
|
168
186
|
for (n = 0; n < o.length; n++) {
|
|
@@ -171,7 +189,7 @@
|
|
|
171
189
|
}
|
|
172
190
|
return i;
|
|
173
191
|
}
|
|
174
|
-
function
|
|
192
|
+
function T(e, r) {
|
|
175
193
|
if (null == e) return {};
|
|
176
194
|
var t = {};
|
|
177
195
|
for (var n in e) {
|
|
@@ -182,7 +200,7 @@
|
|
|
182
200
|
}
|
|
183
201
|
return t;
|
|
184
202
|
}
|
|
185
|
-
function
|
|
203
|
+
function R(e, r) {
|
|
186
204
|
if (!(e instanceof r)) throw new TypeError("Cannot call a class as a function");
|
|
187
205
|
}
|
|
188
206
|
function q(e, r) {
|
|
@@ -192,7 +210,7 @@
|
|
|
192
210
|
Object.defineProperty(e, A(n.key), n);
|
|
193
211
|
}
|
|
194
212
|
}
|
|
195
|
-
function
|
|
213
|
+
function I(e, r, t) {
|
|
196
214
|
return r && q(e.prototype, r), t && q(e, t), Object.defineProperty(e, "prototype", {
|
|
197
215
|
writable: !1
|
|
198
216
|
}), e;
|
|
@@ -207,26 +225,26 @@
|
|
|
207
225
|
}
|
|
208
226
|
}), Object.defineProperty(e, "prototype", {
|
|
209
227
|
writable: !1
|
|
210
|
-
}), r &&
|
|
228
|
+
}), r && B(e, r);
|
|
211
229
|
}
|
|
212
|
-
function
|
|
213
|
-
return
|
|
230
|
+
function B(e, r) {
|
|
231
|
+
return B = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, r) {
|
|
214
232
|
return e.__proto__ = r, e;
|
|
215
|
-
},
|
|
233
|
+
}, B(e, r);
|
|
216
234
|
}
|
|
217
|
-
function
|
|
218
|
-
var r =
|
|
235
|
+
function M(e) {
|
|
236
|
+
var r = $();
|
|
219
237
|
return function() {
|
|
220
|
-
var t, n =
|
|
238
|
+
var t, n = D(e);
|
|
221
239
|
if (r) {
|
|
222
|
-
var i =
|
|
240
|
+
var i = D(this).constructor;
|
|
223
241
|
t = Reflect.construct(n, arguments, i);
|
|
224
242
|
} else t = n.apply(this, arguments);
|
|
225
|
-
return
|
|
243
|
+
return H(this, t);
|
|
226
244
|
};
|
|
227
245
|
}
|
|
228
|
-
function
|
|
229
|
-
if (r && ("object" ==
|
|
246
|
+
function H(e, r) {
|
|
247
|
+
if (r && ("object" == _(r) || "function" == typeof r)) return r;
|
|
230
248
|
if (void 0 !== r) throw new TypeError("Derived constructors may only return object or undefined");
|
|
231
249
|
return N(e);
|
|
232
250
|
}
|
|
@@ -234,20 +252,20 @@
|
|
|
234
252
|
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
235
253
|
return e;
|
|
236
254
|
}
|
|
237
|
-
function
|
|
255
|
+
function $() {
|
|
238
256
|
try {
|
|
239
257
|
var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function() {})));
|
|
240
258
|
} catch (e) {}
|
|
241
|
-
return (
|
|
259
|
+
return ($ = function r() {
|
|
242
260
|
return !!e;
|
|
243
261
|
})();
|
|
244
262
|
}
|
|
245
|
-
function
|
|
246
|
-
return
|
|
263
|
+
function D(e) {
|
|
264
|
+
return D = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
|
|
247
265
|
return e.__proto__ || Object.getPrototypeOf(e);
|
|
248
|
-
},
|
|
266
|
+
}, D(e);
|
|
249
267
|
}
|
|
250
|
-
function
|
|
268
|
+
function V(e, r, t) {
|
|
251
269
|
return (r = A(r)) in e ? Object.defineProperty(e, r, {
|
|
252
270
|
value: t,
|
|
253
271
|
enumerable: !0,
|
|
@@ -256,45 +274,45 @@
|
|
|
256
274
|
}) : e[r] = t, e;
|
|
257
275
|
}
|
|
258
276
|
function A(e) {
|
|
259
|
-
var r =
|
|
260
|
-
return "symbol" ==
|
|
277
|
+
var r = z(e, "string");
|
|
278
|
+
return "symbol" == _(r) ? r : r + "";
|
|
261
279
|
}
|
|
262
|
-
function
|
|
263
|
-
if ("object" !=
|
|
280
|
+
function z(e, r) {
|
|
281
|
+
if ("object" != _(e) || !e) return e;
|
|
264
282
|
var t = e[Symbol.toPrimitive];
|
|
265
283
|
if (void 0 !== t) {
|
|
266
284
|
var n = t.call(e, r || "default");
|
|
267
|
-
if ("object" !=
|
|
285
|
+
if ("object" != _(n)) return n;
|
|
268
286
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
269
287
|
}
|
|
270
288
|
return ("string" === r ? String : Number)(e);
|
|
271
289
|
}
|
|
272
|
-
var
|
|
290
|
+
var F = {
|
|
273
291
|
appearance: o().oneOf([ "default", "primary", "destructive" ]),
|
|
274
292
|
children: o().node,
|
|
275
293
|
disabled: o().bool,
|
|
276
294
|
isMain: o().bool,
|
|
277
295
|
onClick: o().func
|
|
278
296
|
};
|
|
279
|
-
var
|
|
297
|
+
var G = {
|
|
280
298
|
appearance: "default"
|
|
281
299
|
};
|
|
282
300
|
/**
|
|
283
301
|
* An item within a `SplitButton`. This inherits from
|
|
284
302
|
* [PureComponent](https://reactjs.org/docs/react-api.html#reactpurecomponent)
|
|
285
303
|
* so any elements passed to it must also be pure.
|
|
286
|
-
*/ var
|
|
304
|
+
*/ var J = function(e) {
|
|
287
305
|
x(t, e);
|
|
288
|
-
var r =
|
|
306
|
+
var r = M(t);
|
|
289
307
|
function t() {
|
|
290
308
|
var e;
|
|
291
|
-
|
|
292
|
-
for (var
|
|
293
|
-
|
|
309
|
+
R(this, t);
|
|
310
|
+
for (var i = arguments.length, o = new Array(i), a = 0; a < i; a++) {
|
|
311
|
+
o[a] = arguments[a];
|
|
294
312
|
}
|
|
295
|
-
e = r.call.apply(r, [ this ].concat(
|
|
296
|
-
|
|
297
|
-
|
|
313
|
+
e = r.call.apply(r, [ this ].concat(o));
|
|
314
|
+
V(N(e), "itemRef", n().createRef());
|
|
315
|
+
V(N(e), "handleClick", (function(r) {
|
|
298
316
|
var t = e.props, n = t.disabled, i = t.onClick;
|
|
299
317
|
if (!n) {
|
|
300
318
|
i === null || i === void 0 ? void 0 : i(r);
|
|
@@ -303,12 +321,11 @@
|
|
|
303
321
|
return e;
|
|
304
322
|
}
|
|
305
323
|
// @docs-props-type ItemPropsBase
|
|
306
|
-
|
|
324
|
+
I(t, [ {
|
|
307
325
|
key: "scrollIntoViewIfNeeded",
|
|
308
326
|
// eslint-disable-next-line react/no-unused-class-component-methods
|
|
309
327
|
value: function e() {
|
|
310
|
-
|
|
311
|
-
(r = this.item) === null || r === void 0 ? void 0 : r.scrollIntoViewIfNeeded();
|
|
328
|
+
P(this.itemRef.current);
|
|
312
329
|
}
|
|
313
330
|
/**
|
|
314
331
|
* Place focus on the item.
|
|
@@ -317,41 +334,38 @@
|
|
|
317
334
|
}, {
|
|
318
335
|
key: "focus",
|
|
319
336
|
value: function e() {
|
|
320
|
-
var r;
|
|
321
|
-
(r = this.
|
|
337
|
+
var r, t;
|
|
338
|
+
(r = this.itemRef) === null || r === void 0 ? void 0 : (t = r.current) === null || t === void 0 ? void 0 : t.focus();
|
|
322
339
|
}
|
|
323
340
|
}, {
|
|
324
341
|
key: "render",
|
|
325
342
|
value: function e() {
|
|
326
|
-
var r = this;
|
|
327
|
-
|
|
328
|
-
if (o) {
|
|
343
|
+
var r = this.props, t = r.disabled, i = r.isMain, o = r.children, a = r.appearance, l = E(r, [ "disabled", "isMain", "children", "appearance" ]);
|
|
344
|
+
if (i) {
|
|
329
345
|
|
|
330
|
-
return n().createElement(O,
|
|
346
|
+
return n().createElement(O, C({
|
|
331
347
|
onClick: this.handleClick,
|
|
332
|
-
disabled:
|
|
348
|
+
disabled: t,
|
|
333
349
|
append: true,
|
|
334
|
-
appearance:
|
|
335
|
-
},
|
|
350
|
+
appearance: a
|
|
351
|
+
}, l), o);
|
|
336
352
|
}
|
|
337
353
|
|
|
338
|
-
return n().createElement(p().Item,
|
|
339
|
-
|
|
340
|
-
r.item = t;
|
|
341
|
-
},
|
|
354
|
+
return n().createElement(p().Item, C({
|
|
355
|
+
elementRef: this.itemRef,
|
|
342
356
|
onClick: this.handleClick,
|
|
343
|
-
disabled:
|
|
344
|
-
}, j()(
|
|
357
|
+
disabled: t
|
|
358
|
+
}, j()(l, [ "role" ])), o);
|
|
345
359
|
}
|
|
346
360
|
} ]);
|
|
347
361
|
return t;
|
|
348
362
|
}(t.PureComponent);
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
/* harmony default export */ const
|
|
363
|
+
V(J, "propTypes", F);
|
|
364
|
+
V(J, "defaultProps", G);
|
|
365
|
+
/* harmony default export */ const K = J;
|
|
352
366
|
// CONCATENATED MODULE: ./src/SplitButton/SplitButton.tsx
|
|
353
|
-
function
|
|
354
|
-
return
|
|
367
|
+
function L() {
|
|
368
|
+
return L = Object.assign ? Object.assign.bind() : function(e) {
|
|
355
369
|
for (var r = 1; r < arguments.length; r++) {
|
|
356
370
|
var t = arguments[r];
|
|
357
371
|
for (var n in t) {
|
|
@@ -359,11 +373,11 @@
|
|
|
359
373
|
}
|
|
360
374
|
}
|
|
361
375
|
return e;
|
|
362
|
-
},
|
|
376
|
+
}, L.apply(null, arguments);
|
|
363
377
|
}
|
|
364
|
-
function
|
|
378
|
+
function Q(e, r) {
|
|
365
379
|
if (null == e) return {};
|
|
366
|
-
var t, n, i =
|
|
380
|
+
var t, n, i = U(e, r);
|
|
367
381
|
if (Object.getOwnPropertySymbols) {
|
|
368
382
|
var o = Object.getOwnPropertySymbols(e);
|
|
369
383
|
for (n = 0; n < o.length; n++) {
|
|
@@ -372,7 +386,7 @@
|
|
|
372
386
|
}
|
|
373
387
|
return i;
|
|
374
388
|
}
|
|
375
|
-
function
|
|
389
|
+
function U(e, r) {
|
|
376
390
|
if (null == e) return {};
|
|
377
391
|
var t = {};
|
|
378
392
|
for (var n in e) {
|
|
@@ -383,7 +397,7 @@
|
|
|
383
397
|
}
|
|
384
398
|
return t;
|
|
385
399
|
}
|
|
386
|
-
var
|
|
400
|
+
var W = {
|
|
387
401
|
appearance: o().oneOf([ "default", "primary", "destructive" ]),
|
|
388
402
|
children: o().node,
|
|
389
403
|
disabled: o().bool,
|
|
@@ -391,58 +405,56 @@
|
|
|
391
405
|
onClick: o().func,
|
|
392
406
|
inline: o().bool
|
|
393
407
|
};
|
|
394
|
-
function
|
|
395
|
-
var r = e.appearance, i = r === void 0 ? "default" : r, o = e.children, a = e.disabled, c = e.elementRef, s = e.inline, d = s === void 0 ? true : s,
|
|
408
|
+
function X(e) {
|
|
409
|
+
var r = e.appearance, i = r === void 0 ? "default" : r, o = e.children, a = e.disabled, c = e.elementRef, s = e.inline, d = s === void 0 ? true : s, v = e.onClick, b = Q(e, [ "appearance", "children", "disabled", "elementRef", "inline", "onClick" ]);
|
|
396
410
|
// @docs-props-type SplitButtonPropsBase
|
|
397
411
|
var y = t.Children.toArray(o).filter(t.isValidElement);
|
|
398
|
-
var m = 0;
|
|
399
412
|
var h = 0;
|
|
413
|
+
var m = 0;
|
|
400
414
|
y.forEach((function(e, r) {
|
|
401
415
|
var t = e.props, n = t.disabled, i = t.isMain;
|
|
402
416
|
if (i) {
|
|
403
|
-
|
|
417
|
+
h = r;
|
|
404
418
|
}
|
|
405
419
|
if (n) {
|
|
406
|
-
|
|
420
|
+
m += 1;
|
|
407
421
|
}
|
|
408
422
|
}));
|
|
409
|
-
var g = (0, t.cloneElement)(y[
|
|
423
|
+
var g = (0, t.cloneElement)(y[h], {
|
|
410
424
|
isMain: true,
|
|
411
425
|
appearance: i,
|
|
412
|
-
disabled: a || y[
|
|
426
|
+
disabled: a || y[h].props.disabled
|
|
413
427
|
});
|
|
414
428
|
// Remove mainButton from array of dropdown items
|
|
415
|
-
y.splice(
|
|
429
|
+
y.splice(h, 1);
|
|
416
430
|
var S = y;
|
|
417
431
|
var j = n().createElement(O, {
|
|
418
432
|
prepend: true,
|
|
419
|
-
disabled: a ||
|
|
433
|
+
disabled: a || m === S.length,
|
|
420
434
|
appearance: i,
|
|
421
435
|
"data-test": "split-button-toggle",
|
|
422
436
|
"aria-label": (0, f._)("Open more options"),
|
|
423
437
|
icon: n().createElement(l(), null)
|
|
424
438
|
});
|
|
425
439
|
|
|
426
|
-
return n().createElement(k,
|
|
440
|
+
return n().createElement(k, L({
|
|
427
441
|
"aria-label": (0, f._)("Split button"),
|
|
428
442
|
"data-inline": d || null,
|
|
429
443
|
"data-test": "split-button-container",
|
|
430
|
-
elementRef: c,
|
|
431
444
|
$inline: d,
|
|
432
|
-
|
|
433
|
-
flex: true,
|
|
445
|
+
ref: c,
|
|
434
446
|
role: "group",
|
|
435
|
-
onClick: a ? undefined :
|
|
436
|
-
},
|
|
447
|
+
onClick: a ? undefined : v
|
|
448
|
+
}, b), g, i !== "default" && n().createElement(w, {
|
|
437
449
|
inline: true,
|
|
438
450
|
$appearance: i
|
|
439
451
|
}), n().createElement("div", null, n().createElement(u(), {
|
|
440
452
|
toggle: j
|
|
441
453
|
}, n().createElement(p(), null, S))));
|
|
442
454
|
}
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
/* harmony default export */ const
|
|
455
|
+
X.propTypes = W;
|
|
456
|
+
X.Item = K;
|
|
457
|
+
/* harmony default export */ const Y = X;
|
|
446
458
|
// CONCATENATED MODULE: ./src/SplitButton/index.ts
|
|
447
459
|
module.exports = r;
|
|
448
460
|
/******/})();
|
package/StaticContent.js
CHANGED
|
@@ -8,27 +8,27 @@
|
|
|
8
8
|
/******/ /* webpack/runtime/compat get default export */
|
|
9
9
|
/******/ (() => {
|
|
10
10
|
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
11
|
-
/******/ e.n =
|
|
12
|
-
/******/ var
|
|
13
|
-
/******/ () =>
|
|
14
|
-
/******/ : () =>
|
|
11
|
+
/******/ e.n = n => {
|
|
12
|
+
/******/ var r = n && n.__esModule ?
|
|
13
|
+
/******/ () => n["default"]
|
|
14
|
+
/******/ : () => n
|
|
15
15
|
/******/;
|
|
16
|
-
e.d(
|
|
17
|
-
a:
|
|
16
|
+
e.d(r, {
|
|
17
|
+
a: r
|
|
18
18
|
});
|
|
19
|
-
/******/ return
|
|
19
|
+
/******/ return r;
|
|
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 = (
|
|
27
|
-
/******/ for (var t in
|
|
28
|
-
/******/ if (e.o(
|
|
29
|
-
/******/ Object.defineProperty(
|
|
26
|
+
/******/ e.d = (n, r) => {
|
|
27
|
+
/******/ for (var t in r) {
|
|
28
|
+
/******/ if (e.o(r, t) && !e.o(n, t)) {
|
|
29
|
+
/******/ Object.defineProperty(n, t, {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get:
|
|
31
|
+
get: r[t]
|
|
32
32
|
});
|
|
33
33
|
/******/ }
|
|
34
34
|
/******/ }
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
/******/
|
|
38
38
|
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
39
39
|
/******/ (() => {
|
|
40
|
-
/******/ e.o = (e,
|
|
40
|
+
/******/ e.o = (e, n) => Object.prototype.hasOwnProperty.call(e, n)
|
|
41
41
|
/******/;
|
|
42
42
|
})();
|
|
43
43
|
/******/
|
|
@@ -56,102 +56,86 @@
|
|
|
56
56
|
/******/ };
|
|
57
57
|
/******/ })();
|
|
58
58
|
/******/
|
|
59
|
-
/************************************************************************/ var
|
|
59
|
+
/************************************************************************/ var n = {};
|
|
60
60
|
// ESM COMPAT FLAG
|
|
61
|
-
e.r(
|
|
61
|
+
e.r(n);
|
|
62
62
|
// EXPORTS
|
|
63
|
-
e.d(
|
|
63
|
+
e.d(n, {
|
|
64
64
|
default: () => /* reexport */ y
|
|
65
65
|
});
|
|
66
66
|
// CONCATENATED MODULE: external "react"
|
|
67
|
-
const
|
|
68
|
-
var t = e.n(
|
|
67
|
+
const r = require("react");
|
|
68
|
+
var t = e.n(r);
|
|
69
69
|
// CONCATENATED MODULE: external "prop-types"
|
|
70
70
|
const i = require("prop-types");
|
|
71
|
-
var
|
|
71
|
+
var l = e.n(i);
|
|
72
72
|
// CONCATENATED MODULE: external "styled-components"
|
|
73
73
|
const o = require("styled-components");
|
|
74
|
-
var
|
|
75
|
-
// CONCATENATED MODULE: external "@splunk/react-ui/Box"
|
|
76
|
-
const s = require("@splunk/react-ui/Box");
|
|
77
|
-
var c = e.n(s);
|
|
74
|
+
var a = e.n(o);
|
|
78
75
|
// CONCATENATED MODULE: external "@splunk/themes"
|
|
79
|
-
const
|
|
76
|
+
const s = require("@splunk/themes");
|
|
80
77
|
// CONCATENATED MODULE: ./src/StaticContent/StaticContentStyles.ts
|
|
81
|
-
var u =
|
|
82
|
-
displayName: "
|
|
78
|
+
var u = a().div.withConfig({
|
|
79
|
+
displayName: "StaticContentStyles__StyledDiv",
|
|
83
80
|
componentId: "sxqyrp-0"
|
|
84
|
-
})([ "", "
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
compact: "4px 5px"
|
|
89
|
-
},
|
|
90
|
-
prisma: {
|
|
91
|
-
comfortable: "10px 0",
|
|
92
|
-
compact: "6px 0"
|
|
93
|
-
}
|
|
94
|
-
}), (0, p.pick)({
|
|
95
|
-
enterprise: p.variables.spacingXSmall,
|
|
96
|
-
prisma: p.variables.spacingLarge
|
|
97
|
-
}));
|
|
81
|
+
})([ "", " position:relative;margin:0;font-weight:", ";word-wrap:break-word;min-height:", ";padding:0 ", ";align-items:center;" ], (function(e) {
|
|
82
|
+
var n = e.$inline;
|
|
83
|
+
return n ? s.mixins.reset("inline-flex") : s.mixins.reset("flex");
|
|
84
|
+
}), s.variables.fontWeightSemiBold, s.variables.inputHeight, s.variables.spacingXSmall);
|
|
98
85
|
// CONCATENATED MODULE: ./src/StaticContent/StaticContent.tsx
|
|
99
|
-
function
|
|
100
|
-
return
|
|
101
|
-
for (var
|
|
102
|
-
var
|
|
103
|
-
for (var t in
|
|
104
|
-
({}).hasOwnProperty.call(
|
|
86
|
+
function c() {
|
|
87
|
+
return c = Object.assign ? Object.assign.bind() : function(e) {
|
|
88
|
+
for (var n = 1; n < arguments.length; n++) {
|
|
89
|
+
var r = arguments[n];
|
|
90
|
+
for (var t in r) {
|
|
91
|
+
({}).hasOwnProperty.call(r, t) && (e[t] = r[t]);
|
|
105
92
|
}
|
|
106
93
|
}
|
|
107
94
|
return e;
|
|
108
|
-
},
|
|
95
|
+
}, c.apply(null, arguments);
|
|
109
96
|
}
|
|
110
|
-
function
|
|
97
|
+
function f(e, n) {
|
|
111
98
|
if (null == e) return {};
|
|
112
|
-
var
|
|
99
|
+
var r, t, i = p(e, n);
|
|
113
100
|
if (Object.getOwnPropertySymbols) {
|
|
114
|
-
var
|
|
115
|
-
for (t = 0; t <
|
|
116
|
-
|
|
101
|
+
var l = Object.getOwnPropertySymbols(e);
|
|
102
|
+
for (t = 0; t < l.length; t++) {
|
|
103
|
+
r = l[t], n.includes(r) || {}.propertyIsEnumerable.call(e, r) && (i[r] = e[r]);
|
|
117
104
|
}
|
|
118
105
|
}
|
|
119
106
|
return i;
|
|
120
107
|
}
|
|
121
|
-
function
|
|
108
|
+
function p(e, n) {
|
|
122
109
|
if (null == e) return {};
|
|
123
|
-
var
|
|
110
|
+
var r = {};
|
|
124
111
|
for (var t in e) {
|
|
125
112
|
if ({}.hasOwnProperty.call(e, t)) {
|
|
126
|
-
if (
|
|
127
|
-
|
|
113
|
+
if (n.includes(t)) continue;
|
|
114
|
+
r[t] = e[t];
|
|
128
115
|
}
|
|
129
116
|
}
|
|
130
|
-
return
|
|
117
|
+
return r;
|
|
131
118
|
}
|
|
132
|
-
var
|
|
133
|
-
children:
|
|
134
|
-
elementRef:
|
|
135
|
-
inline:
|
|
136
|
-
size: a().oneOf([ "small", "medium" ])
|
|
119
|
+
var d = {
|
|
120
|
+
children: l().node,
|
|
121
|
+
elementRef: l().oneOfType([ l().func, l().object ]),
|
|
122
|
+
inline: l().bool
|
|
137
123
|
};
|
|
138
124
|
/**
|
|
139
125
|
* This component is intended for use in a control group, either to display a static value or
|
|
140
126
|
* between two controls.
|
|
141
|
-
*/ function
|
|
142
|
-
var
|
|
127
|
+
*/ function v(e) {
|
|
128
|
+
var n = e.children, r = e.elementRef, i = e.inline, l = i === void 0 ? false : i, o = f(e, [ "children", "elementRef", "inline" ]);
|
|
143
129
|
// @docs-props-type StaticContentPropsBase
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
}), [ o ]);
|
|
147
|
-
|
|
148
|
-
return t().createElement(u, f({
|
|
130
|
+
|
|
131
|
+
return t().createElement(u, c({
|
|
149
132
|
"data-test": "static-content",
|
|
150
|
-
inline:
|
|
151
|
-
|
|
133
|
+
$inline: l,
|
|
134
|
+
ref: r
|
|
135
|
+
}, o), t().createElement("span", null, n));
|
|
152
136
|
}
|
|
153
|
-
|
|
154
|
-
/* harmony default export */ const y =
|
|
137
|
+
v.propTypes = d;
|
|
138
|
+
/* harmony default export */ const y = v;
|
|
155
139
|
// CONCATENATED MODULE: ./src/StaticContent/index.ts
|
|
156
|
-
module.exports =
|
|
140
|
+
module.exports = n;
|
|
157
141
|
/******/})();
|