@splunk/react-ui 5.1.0 → 5.3.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 +60 -39
- package/Anchor.js +9 -9
- package/Animation.js +2 -2
- package/Avatar.js +63 -58
- package/Box.js +4 -3
- package/Breadcrumbs.js +13 -13
- package/Button.js +12 -12
- package/ButtonGroup.js +9 -9
- package/ButtonSimple.js +2 -2
- package/CHANGELOG.md +54 -0
- package/Calendar.js +69 -65
- package/Card.js +286 -255
- package/CardLayout.js +10 -10
- package/Checkbox.d.ts +2 -0
- package/Checkbox.js +350 -0
- package/Chip.js +31 -31
- package/Clickable.js +29 -29
- package/Code.js +161 -142
- package/CollapsiblePanel.js +200 -224
- package/Color.js +14 -12
- package/ColumnLayout.js +16 -16
- package/ComboBox.js +110 -110
- package/ControlGroup.js +101 -100
- package/Date.js +144 -140
- package/DefinitionList.js +137 -94
- package/Divider.js +2 -2
- package/Dropdown.js +2 -2
- package/DualListbox.js +446 -385
- package/File.js +121 -118
- package/FormRows.js +15 -15
- package/Heading.js +15 -15
- package/Image.js +31 -31
- package/JSONTree.js +543 -513
- package/Layer.js +4 -1
- package/Layout.js +10 -10
- package/Link.js +13 -13
- package/List.js +24 -24
- package/MIGRATION.md +27 -0
- package/Markdown.js +237 -226
- package/Menu.js +63 -60
- package/Message.js +20 -20
- package/MessageBar.js +13 -13
- package/Modal.js +36 -36
- package/Monogram.js +94 -68
- package/Multiselect.js +1032 -910
- package/Number.js +18 -18
- package/Paginator.js +41 -40
- package/Paragraph.js +10 -10
- package/Popover.js +243 -208
- package/Progress.js +6 -6
- package/Prose.js +16 -16
- package/RadioBar.js +118 -118
- package/RadioList.js +137 -113
- package/Resize.js +20 -20
- package/ResultsMenu.js +50 -49
- package/ScreenReaderContent.js +13 -13
- package/Scroll.js +25 -24
- package/Search.js +143 -139
- package/Select.js +942 -838
- package/SidePanel.js +29 -29
- package/Slider.js +30 -30
- package/SlidingPanels.js +28 -28
- package/SplitButton.js +100 -72
- package/StaticContent.js +6 -6
- package/StepBar.js +8 -8
- package/Switch.js +197 -229
- package/TabBar.js +293 -270
- package/TabLayout.js +68 -68
- package/Table.js +825 -800
- package/Text.js +182 -208
- package/TextArea.js +235 -226
- package/Tooltip.js +149 -144
- package/TransitionOpen.js +11 -11
- package/Tree.js +194 -189
- package/Typography.js +15 -15
- package/WaitSpinner.js +6 -6
- package/package.json +19 -23
- package/tsconfig.check-docs.json +8 -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/Checkbox/Checkbox.d.ts +90 -0
- package/types/src/Checkbox/docs/examples/Basic.d.ts +7 -0
- package/types/src/Checkbox/docs/examples/Disabled.d.ts +6 -0
- package/types/src/Checkbox/docs/examples/Error.d.ts +6 -0
- package/types/src/Checkbox/docs/examples/Uncontrolled.d.ts +7 -0
- package/types/src/Checkbox/index.d.ts +2 -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 +4 -1
- package/types/src/Code/LineHighlights.d.ts +1 -0
- package/types/src/Code/LineNumbers.d.ts +2 -1
- package/types/src/Code/docs/examples/CustomizeContainer.d.ts +7 -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 +4 -0
- package/types/src/Code/docs/examples/LineNumbers.d.ts +4 -0
- package/types/src/Code/docs/examples/LineNumbersCustomStart.d.ts +4 -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 +7 -3
- 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 +7 -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 +27 -4
- 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/StackedLayout.d.ts +6 -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/DualListbox.d.ts +1 -1
- package/types/src/DualListbox/Label.d.ts +7 -7
- package/types/src/DualListbox/Listbox.d.ts +2 -2
- package/types/src/DualListbox/ListboxContext.d.ts +1 -1
- 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/File.d.ts +7 -1
- 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/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 +4 -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/JSONTree/renderTreeItems.d.ts +2 -1
- 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/docs/examples/Basic.d.ts +4 -0
- package/types/src/Markdown/docs/examples/I18n.d.ts +4 -0
- package/types/src/Markdown/renderers/MarkdownCodeBlock.d.ts +2 -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 +4 -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 +8 -2
- package/types/src/Multiselect/Multiselect.d.ts +8 -2
- package/types/src/Multiselect/Normal.d.ts +7 -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/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/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/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 +4 -0
- 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/Search.d.ts +5 -1
- 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/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 +4 -0
- 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/Switch.d.ts +7 -1
- package/types/src/Switch/docs/examples/Basic.d.ts +5 -9
- package/types/src/Switch/docs/examples/Disabled.d.ts +5 -9
- 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/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/ExpandButton.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 +14 -1
- 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 +4 -4
- 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/Typography/docs/examples/Basic.d.ts +4 -0
- package/types/src/WaitSpinner/docs/examples/Basic.d.ts +3 -0
- package/useResizeObserver.js +2 -2
- package/NonInteractiveCheckbox.js +0 -101
- package/types/src/CollapsiblePanel/icons/ExpandPanel.d.ts +0 -12
- package/types/src/DefinitionList/docs/examples/Customize.d.ts +0 -3
- package/types/src/NonInteractiveCheckbox/NonInteractiveCheckbox.d.ts +0 -22
- package/types/src/NonInteractiveCheckbox/index.d.ts +0 -1
- package/types/src/Switch/docs/examples/Error.d.ts +0 -3
- package/types/src/Text/IconOutlinedHide.d.ts +0 -3
- package/types/src/Text/IconOutlinedView.d.ts +0 -3
- /package/cypress/{tsconfig.cypress.json → tsconfig.check-cypress.json} +0 -0
package/Menu.js
CHANGED
|
@@ -61,10 +61,10 @@
|
|
|
61
61
|
e.r(t);
|
|
62
62
|
// EXPORTS
|
|
63
63
|
e.d(t, {
|
|
64
|
-
Divider: () => /* reexport */
|
|
64
|
+
Divider: () => /* reexport */ R,
|
|
65
65
|
Heading: () => /* reexport */ Z,
|
|
66
66
|
Item: () => /* reexport */ Se,
|
|
67
|
-
MenuContext: () => /* reexport */
|
|
67
|
+
MenuContext: () => /* reexport */ N,
|
|
68
68
|
default: () => /* reexport */ qe
|
|
69
69
|
});
|
|
70
70
|
// CONCATENATED MODULE: external "react"
|
|
@@ -86,11 +86,11 @@
|
|
|
86
86
|
var v = e.n(d);
|
|
87
87
|
// CONCATENATED MODULE: external "@splunk/themes"
|
|
88
88
|
const p = require("@splunk/themes");
|
|
89
|
-
// CONCATENATED MODULE: external "@splunk/react-ui/
|
|
90
|
-
const f = require("@splunk/react-ui/
|
|
89
|
+
// CONCATENATED MODULE: external "@splunk/react-ui/Checkbox"
|
|
90
|
+
const f = require("@splunk/react-ui/Checkbox");
|
|
91
91
|
var m = e.n(f);
|
|
92
|
-
// CONCATENATED MODULE: external "@splunk/react-ui/
|
|
93
|
-
const b = require("@splunk/react-ui/
|
|
92
|
+
// CONCATENATED MODULE: external "@splunk/react-ui/Clickable"
|
|
93
|
+
const b = require("@splunk/react-ui/Clickable");
|
|
94
94
|
var g = e.n(b);
|
|
95
95
|
// CONCATENATED MODULE: ./src/Menu/ItemStyles.ts
|
|
96
96
|
var y = (0, c.css)([ "", " overflow:inherit;white-space:inherit;text-overflow:inherit;" ], p.mixins.typography("smallBody"));
|
|
@@ -103,42 +103,43 @@
|
|
|
103
103
|
componentId: "sc-4kc053-1"
|
|
104
104
|
})([ "", ";display:flex;align-self:flex-start;align-items:center;float:right;padding-left:", ";max-width:50%;min-height:20px;text-align:right;" ], y, p.variables.spacingLarge);
|
|
105
105
|
var w = (0, c.css)([ "", " flex:0 0 auto;& > svg{height:20px;}" ], p.mixins.reset("inline-flex"));
|
|
106
|
-
var
|
|
106
|
+
var O = u().div.withConfig({
|
|
107
107
|
displayName: "ItemStyles__StyledItemSelectedAdornment",
|
|
108
108
|
componentId: "sc-4kc053-2"
|
|
109
109
|
})([ "", ";padding-left:", ";align-items:flex-start;color:", ";" ], w, p.variables.spacingLarge, p.variables.contentColorActive);
|
|
110
|
-
var
|
|
110
|
+
var k = u().span.withConfig({
|
|
111
111
|
displayName: "ItemStyles__StyledItemAdornment",
|
|
112
112
|
componentId: "sc-4kc053-3"
|
|
113
113
|
})([ "", ";", " padding-right:", ";align-items:center;color:", ";" ], w, (function(e) {
|
|
114
114
|
var t = e.endAdornment;
|
|
115
115
|
return t && (0, c.css)([ "padding-left:", ";" ], p.variables.spacingSmall);
|
|
116
116
|
}), p.variables.spacingSmall, p.variables.contentColorMuted);
|
|
117
|
-
var x = u()(
|
|
118
|
-
displayName: "
|
|
117
|
+
var x = u()(m()).withConfig({
|
|
118
|
+
displayName: "ItemStyles__StyledCheckbox",
|
|
119
119
|
componentId: "sc-4kc053-4"
|
|
120
120
|
})([ "min-height:0;padding-right:", ";" ], p.variables.spacingSmall);
|
|
121
|
-
var C = u()(
|
|
121
|
+
var C = u()(g()).withConfig({
|
|
122
122
|
displayName: "ItemStyles__StyledClickable",
|
|
123
123
|
componentId: "sc-4kc053-5"
|
|
124
|
-
})([ "display:block;position:relative;cursor:pointer;color:", ";word-wrap:break-word;max-width:100%;width:100%;min-height:", ";padding:", " ", ";
|
|
124
|
+
})([ "line-height:", ";display:block;position:relative;cursor:pointer;color:", ";word-wrap:break-word;max-width:100%;width:100%;min-height:", ";padding:", " ", ";", " ", " ", " &:not([disabled],[aria-disabled='true']){&:hover{background:", ";", "}&:active{background:", ";}", "}&:focus{outline:0;box-shadow:", ";background:", ";}&[disabled],&[aria-disabled='true']{color:", ";", ",", ",", ",", "{color:", ";}}" ], p.variables.lineHeightSpacious, p.variables.contentColorActive, p.variables.inputHeight, p.variables.spacingXSmall, p.variables.spacingLarge, (function(e) {
|
|
125
125
|
var t = e.$active, r = e.$preventFocus;
|
|
126
126
|
return t && !r && (0, c.css)([ "box-shadow:", ";" ], p.variables.focusShadowInset);
|
|
127
127
|
}), (function(e) {
|
|
128
128
|
var t = e.$active;
|
|
129
|
-
return t && (0, c.css)([ "background:", ";font-weight:", ";" ], p.variables.
|
|
129
|
+
return t && (0, c.css)([ "background:", ";font-weight:", ";" ], p.variables.interactiveColorOverlayActive, p.variables.fontWeightBold);
|
|
130
130
|
}), (function(e) {
|
|
131
131
|
var t = e.$isSelectable, r = e.$selectableAppearance, n = e.$selected;
|
|
132
132
|
return t && !n && r === "checkmark" && // Adds whitespace to right to reserve space for checkmark for selectable Items
|
|
133
133
|
// spacingLarge x 3 = padding-left + icon size + padding-right
|
|
134
134
|
(0, c.css)([ "padding-right:calc(", " * 3);" ], p.variables.spacingLarge);
|
|
135
135
|
}), p.variables.interactiveColorOverlayHover, (function(e) {
|
|
136
|
-
var t = e.$
|
|
137
|
-
return t && (0, c.css)([ "background:", ";" ], p.mixins.overlayColors(p.variables.
|
|
136
|
+
var t = e.$active;
|
|
137
|
+
return t && (0, c.css)([ "background:", ";" ], p.mixins.overlayColors(p.variables.interactiveColorOverlayActive, p.variables.interactiveColorOverlayHover));
|
|
138
138
|
}), p.variables.interactiveColorOverlayActive, (function(e) {
|
|
139
|
-
var t = e.$selected;
|
|
140
|
-
return t && (0, c.css)([ "
|
|
141
|
-
|
|
139
|
+
var t = e.$selected, r = e.$active;
|
|
140
|
+
return t && (0, c.css)([ "font-weight:", ";", "" ], p.variables.fontWeightSemiBold, r && (0,
|
|
141
|
+
c.css)([ "font-weight:", ";" ], p.variables.fontWeightBold));
|
|
142
|
+
}), p.variables.focusShadowInset, p.variables.interactiveColorOverlayHover, p.variables.contentColorDisabled, /* sc-sel */ h, /* sc-sel */ S, /* sc-sel */ O, /* sc-sel */ k, p.variables.contentColorDisabled);
|
|
142
143
|
var I = u().span.withConfig({
|
|
143
144
|
displayName: "ItemStyles__StyledInnerWrapper",
|
|
144
145
|
componentId: "sc-4kc053-6"
|
|
@@ -170,7 +171,7 @@
|
|
|
170
171
|
})([ "float:right;padding-left:", ";color:", ";" ], p.variables.spacingSmall, p.variables.contentColorDefault);
|
|
171
172
|
// CONCATENATED MODULE: ./src/Menu/DividerStyles.ts
|
|
172
173
|
// Adds margin if direct sibling is a Menu.Item to provide spacing between Divider and Item
|
|
173
|
-
var
|
|
174
|
+
var A = u()(v()).withConfig({
|
|
174
175
|
displayName: "DividerStyles__Styled",
|
|
175
176
|
componentId: "l3zfh3-0"
|
|
176
177
|
})([ "", " + &,& + ", "{margin-block-start:", ";}" ], C, C, p.variables.spacingSmall);
|
|
@@ -179,7 +180,7 @@
|
|
|
179
180
|
role: "menu",
|
|
180
181
|
preventFocus: false
|
|
181
182
|
});
|
|
182
|
-
/* harmony default export */ const
|
|
183
|
+
/* harmony default export */ const N = D;
|
|
183
184
|
// CONCATENATED MODULE: ./src/Menu/Divider.tsx
|
|
184
185
|
function T() {
|
|
185
186
|
return T = Object.assign ? Object.assign.bind() : function(e) {
|
|
@@ -195,23 +196,22 @@
|
|
|
195
196
|
var q = {};
|
|
196
197
|
/**
|
|
197
198
|
* A non-interactive menu item used to visually separate groups of items in the menu.
|
|
198
|
-
*/ function
|
|
199
|
+
*/ function $(e) {
|
|
199
200
|
var t = T({}, e);
|
|
200
|
-
|
|
201
|
-
var a = (0, r.useContext)(A), i = a.role;
|
|
201
|
+
var a = (0, r.useContext)(N), i = a.role;
|
|
202
202
|
|
|
203
|
-
return n().createElement(
|
|
203
|
+
return n().createElement(A, T({
|
|
204
204
|
"aria-hidden": i === "listbox",
|
|
205
205
|
"data-test": "divider",
|
|
206
206
|
role: "separator"
|
|
207
207
|
}, t));
|
|
208
208
|
}
|
|
209
|
-
|
|
210
|
-
/* Remove the item if it is the first item after filtering */
|
|
211
|
-
/* Remove consecutive items with filterConsecutive = true (Dividers and Headings) */
|
|
212
|
-
/* Remove the item if it is the last item after filtering. */
|
|
213
|
-
/* Tag the item as Divider */
|
|
214
|
-
/* harmony default export */ const
|
|
209
|
+
$.propTypes = q;
|
|
210
|
+
/* Remove the item if it is the first item after filtering */ $.filterFirst = true;
|
|
211
|
+
/* Remove consecutive items with filterConsecutive = true (Dividers and Headings) */ $.filterConsecutive = true;
|
|
212
|
+
/* Remove the item if it is the last item after filtering. */ $.filterLast = true;
|
|
213
|
+
/* Tag the item as Divider */ $.as = "Divider";
|
|
214
|
+
/* harmony default export */ const R = $;
|
|
215
215
|
// CONCATENATED MODULE: external "@splunk/react-ui/Heading"
|
|
216
216
|
const H = require("@splunk/react-ui/Heading");
|
|
217
217
|
var F = e.n(H);
|
|
@@ -293,7 +293,7 @@
|
|
|
293
293
|
if (Object.getOwnPropertySymbols) {
|
|
294
294
|
var i = Object.getOwnPropertySymbols(e);
|
|
295
295
|
for (n = 0; n < i.length; n++) {
|
|
296
|
-
r = i[n], t.
|
|
296
|
+
r = i[n], -1 === t.indexOf(r) && {}.propertyIsEnumerable.call(e, r) && (a[r] = e[r]);
|
|
297
297
|
}
|
|
298
298
|
}
|
|
299
299
|
return a;
|
|
@@ -303,7 +303,7 @@
|
|
|
303
303
|
var r = {};
|
|
304
304
|
for (var n in e) {
|
|
305
305
|
if ({}.hasOwnProperty.call(e, n)) {
|
|
306
|
-
if (t.
|
|
306
|
+
if (-1 !== t.indexOf(n)) continue;
|
|
307
307
|
r[n] = e[n];
|
|
308
308
|
}
|
|
309
309
|
}
|
|
@@ -318,7 +318,8 @@
|
|
|
318
318
|
* A non-interactive `Menu` item used to separate and label groups of `Menu` items.
|
|
319
319
|
*/ function Y(e) {
|
|
320
320
|
var t = e.children, a = e.outerStyle, i = e.title, o = J(e, [ "children", "outerStyle", "title" ]);
|
|
321
|
-
|
|
321
|
+
// @docs-props-type HeadingPropsBase
|
|
322
|
+
var l = (0, r.useContext)(N), s = l.role;
|
|
322
323
|
var c = (0, r.useMemo)((function() {
|
|
323
324
|
return z(z({}, a), {}, {
|
|
324
325
|
margin: 0
|
|
@@ -388,7 +389,7 @@
|
|
|
388
389
|
if (Object.getOwnPropertySymbols) {
|
|
389
390
|
var i = Object.getOwnPropertySymbols(e);
|
|
390
391
|
for (n = 0; n < i.length; n++) {
|
|
391
|
-
r = i[n], t.
|
|
392
|
+
r = i[n], -1 === t.indexOf(r) && {}.propertyIsEnumerable.call(e, r) && (a[r] = e[r]);
|
|
392
393
|
}
|
|
393
394
|
}
|
|
394
395
|
return a;
|
|
@@ -398,7 +399,7 @@
|
|
|
398
399
|
var r = {};
|
|
399
400
|
for (var n in e) {
|
|
400
401
|
if ({}.hasOwnProperty.call(e, n)) {
|
|
401
|
-
if (t.
|
|
402
|
+
if (-1 !== t.indexOf(n)) continue;
|
|
402
403
|
r[n] = e[n];
|
|
403
404
|
}
|
|
404
405
|
}
|
|
@@ -435,11 +436,12 @@
|
|
|
435
436
|
};
|
|
436
437
|
var ye = (0, se._)("(Opens new window)");
|
|
437
438
|
function he(e) {
|
|
438
|
-
var t = e.active, a = e.children, o = e.description, l = e.descriptionPosition, s = l === void 0 ? "bottom" : l, c = e.disabled, u = e.endAdornment, d = e.elementRef, v = e.hasSubmenu, p = e.itemKey, f = e.matchRanges, m = e.onClick, b = e.onFocus, g = e.openInNewContext, y = e.role, w = e.selectable,
|
|
439
|
-
|
|
439
|
+
var t = e.active, a = e.children, o = e.description, l = e.descriptionPosition, s = l === void 0 ? "bottom" : l, c = e.disabled, u = e.endAdornment, d = e.elementRef, v = e.hasSubmenu, p = e.itemKey, f = e.matchRanges, m = e.onClick, b = e.onFocus, g = e.openInNewContext, y = e.role, w = e.selectable, A = e.selectableAppearance, D = A === void 0 ? "checkmark" : A, T = e.selected, q = e.startAdornment, $ = e.to, R = e.truncate, H = me(e, [ "active", "children", "description", "descriptionPosition", "disabled", "endAdornment", "elementRef", "hasSubmenu", "itemKey", "matchRanges", "onClick", "onFocus", "openInNewContext", "role", "selectable", "selectableAppearance", "selected", "startAdornment", "to", "truncate" ]);
|
|
440
|
+
// @docs-props-type ItemPropsBase
|
|
441
|
+
var F = (0, r.useContext)(N), M = F.preventFocus;
|
|
440
442
|
(0, r.useEffect)((function() {
|
|
441
443
|
if (false) {}
|
|
442
|
-
}), [
|
|
444
|
+
}), [ R, s, f, a, T, w, D ]);
|
|
443
445
|
var L = (0, r.useCallback)((function(e) {
|
|
444
446
|
b === null || b === void 0 ? void 0 : b(e, {
|
|
445
447
|
itemKey: p
|
|
@@ -490,7 +492,7 @@
|
|
|
490
492
|
}
|
|
491
493
|
var G = o && s === "right";
|
|
492
494
|
var J = o && !G;
|
|
493
|
-
var Q = T && D === "checkmark" && n().createElement(
|
|
495
|
+
var Q = T && D === "checkmark" && n().createElement(O, null, n().createElement(ne(), {
|
|
494
496
|
"data-test": "selected-checkmark",
|
|
495
497
|
inline: true
|
|
496
498
|
}));
|
|
@@ -518,22 +520,23 @@
|
|
|
518
520
|
openInNewContext: U,
|
|
519
521
|
role: V,
|
|
520
522
|
tabIndex: M ? -1 : undefined,
|
|
521
|
-
to:
|
|
522
|
-
title:
|
|
523
|
+
to: $,
|
|
524
|
+
title: R && te()(a) ? a : undefined
|
|
523
525
|
}, X, i()(H, "onFocus")), v && n().createElement(j, null, n().createElement(ie(), null)), n().createElement(I, null, w && D === "checkbox" && n().createElement(x, {
|
|
526
|
+
checked: T === "some" ? "indeterminate" : T,
|
|
524
527
|
disabled: !!c,
|
|
525
|
-
|
|
526
|
-
}), q && n().createElement(
|
|
528
|
+
inert: true
|
|
529
|
+
}), q && n().createElement(k, null, q), n().createElement(E, {
|
|
527
530
|
$descriptionBottom: !!J,
|
|
528
|
-
$truncate:
|
|
531
|
+
$truncate: R !== null && R !== void 0 ? R : false
|
|
529
532
|
}, n().createElement(_, {
|
|
530
|
-
$truncate:
|
|
533
|
+
$truncate: R !== null && R !== void 0 ? R : false,
|
|
531
534
|
"data-test": "label"
|
|
532
535
|
}, B, g && n().createElement(n().Fragment, null, n().createElement(pe, null), n().createElement(le(), null, Y))), J && n().createElement(h, {
|
|
533
536
|
"data-test": "description"
|
|
534
537
|
}, o), G && n().createElement(S, {
|
|
535
538
|
"data-test": "description"
|
|
536
|
-
}, o)), u && n().createElement(
|
|
539
|
+
}, o)), u && n().createElement(k, {
|
|
537
540
|
endAdornment: u
|
|
538
541
|
}, u), Q));
|
|
539
542
|
}
|
|
@@ -543,18 +546,18 @@
|
|
|
543
546
|
// only for styled components using Item
|
|
544
547
|
// CONCATENATED MODULE: external "@splunk/react-ui/Scroll"
|
|
545
548
|
const we = require("@splunk/react-ui/Scroll");
|
|
546
|
-
var
|
|
549
|
+
var Oe = e.n(we);
|
|
547
550
|
// CONCATENATED MODULE: ./src/Menu/MenuStyles.ts
|
|
548
|
-
var
|
|
549
|
-
var xe = (0, c.css)([ "", ";background-color:", ";border-radius:", ";min-width:60px;overflow:auto;position:relative;padding:", " 0;&:focus{outline:0;box-shadow:", ";background:", ";}& + &{", "}" ], p.mixins.reset("block"), p.variables.backgroundColorPopup, p.variables.borderRadius, p.variables.spacingSmall, p.variables.focusShadowInset, p.variables.interactiveColorOverlayHover,
|
|
551
|
+
var ke = (0, c.css)([ "border-top:1px solid ", ";" ], p.variables.borderColor);
|
|
552
|
+
var xe = (0, c.css)([ "", ";background-color:", ";border-radius:", ";min-width:60px;overflow:auto;position:relative;padding:", " 0;&:focus{outline:0;box-shadow:", ";background:", ";}& + &{", "}" ], p.mixins.reset("block"), p.variables.backgroundColorPopup, p.variables.borderRadius, p.variables.spacingSmall, p.variables.focusShadowInset, p.variables.interactiveColorOverlayHover, ke);
|
|
550
553
|
var Ce = u().div.withConfig({
|
|
551
554
|
displayName: "MenuStyles__Styled",
|
|
552
555
|
componentId: "sc-1olffp9-0"
|
|
553
556
|
})([ "", "" ], xe);
|
|
554
|
-
var Ie = u()(
|
|
557
|
+
var Ie = u()(Oe()).withConfig({
|
|
555
558
|
displayName: "MenuStyles__StyledScroll",
|
|
556
559
|
componentId: "sc-1olffp9-1"
|
|
557
|
-
})([ "", " ", " + &,& + ", "{", "}" ], xe, /* sc-sel */ Ce, /* sc-sel */ Ce,
|
|
560
|
+
})([ "", " ", " + &,& + ", "{", "}" ], xe, /* sc-sel */ Ce, /* sc-sel */ Ce, ke);
|
|
558
561
|
// CONCATENATED MODULE: ./src/utils/updateReactRef.ts
|
|
559
562
|
/**
|
|
560
563
|
* Updates a React ref. Callback refs and object refs (from `createRef` and `useRef`) are supported.
|
|
@@ -592,7 +595,7 @@
|
|
|
592
595
|
if (Object.getOwnPropertySymbols) {
|
|
593
596
|
var i = Object.getOwnPropertySymbols(e);
|
|
594
597
|
for (n = 0; n < i.length; n++) {
|
|
595
|
-
r = i[n], t.
|
|
598
|
+
r = i[n], -1 === t.indexOf(r) && {}.propertyIsEnumerable.call(e, r) && (a[r] = e[r]);
|
|
596
599
|
}
|
|
597
600
|
}
|
|
598
601
|
return a;
|
|
@@ -602,13 +605,13 @@
|
|
|
602
605
|
var r = {};
|
|
603
606
|
for (var n in e) {
|
|
604
607
|
if ({}.hasOwnProperty.call(e, n)) {
|
|
605
|
-
if (t.
|
|
608
|
+
if (-1 !== t.indexOf(n)) continue;
|
|
606
609
|
r[n] = e[n];
|
|
607
610
|
}
|
|
608
611
|
}
|
|
609
612
|
return r;
|
|
610
613
|
}
|
|
611
|
-
var
|
|
614
|
+
var Ae = {
|
|
612
615
|
children: l().node,
|
|
613
616
|
elementRef: l().oneOfType([ l().func, l().object ]),
|
|
614
617
|
focusMode: l().oneOf([ "roving", "normal", "never" ]),
|
|
@@ -623,7 +626,7 @@
|
|
|
623
626
|
enableHomeEnd: true
|
|
624
627
|
};
|
|
625
628
|
};
|
|
626
|
-
var
|
|
629
|
+
var Ne = function e(t) {
|
|
627
630
|
var r = t.key;
|
|
628
631
|
// Handle special case for tab navigation
|
|
629
632
|
if (r === "Tab" && (0, s.isTabKey)(t)) {
|
|
@@ -634,7 +637,7 @@
|
|
|
634
637
|
function Te(e) {
|
|
635
638
|
var t = e.children, a = e.elementRef, o = e.focusMode, l = o === void 0 ? "roving" : o, c = e.stopScrollPropagation, u = Pe(e, [ "children", "elementRef", "focusMode", "stopScrollPropagation" ]);
|
|
636
639
|
// @docs-props-type MenuPropsBase
|
|
637
|
-
var d = (0, r.useContext)(
|
|
640
|
+
var d = (0, r.useContext)(N), v = d.role, p = v === void 0 ? "menu" : v;
|
|
638
641
|
var f = (0, r.useRef)(null);
|
|
639
642
|
var m = r.Children.toArray(t).filter(r.isValidElement).reduce((function(e, t, r, n) {
|
|
640
643
|
/* Filter out initial Dividers
|
|
@@ -669,7 +672,7 @@
|
|
|
669
672
|
if (e.nativeEvent.metaKey) {
|
|
670
673
|
return;
|
|
671
674
|
}
|
|
672
|
-
var t =
|
|
675
|
+
var t = Ne(e);
|
|
673
676
|
var r = t === "Tab" || t === "tabShift";
|
|
674
677
|
var n = t === "Enter";
|
|
675
678
|
// Allow default behavior for the enter key.
|
|
@@ -708,13 +711,13 @@
|
|
|
708
711
|
stopScrollPropagation: true
|
|
709
712
|
}, i()(u, "tagName")), m) : n().createElement(Ce, _e({}, w, {
|
|
710
713
|
ref: b
|
|
711
|
-
}, u), n().createElement(
|
|
714
|
+
}, u), n().createElement(N.Provider, {
|
|
712
715
|
value: h()
|
|
713
716
|
}, m));
|
|
714
717
|
}
|
|
715
|
-
Te.propTypes =
|
|
718
|
+
Te.propTypes = Ae;
|
|
716
719
|
Te.Item = Se;
|
|
717
|
-
Te.Divider =
|
|
720
|
+
Te.Divider = R;
|
|
718
721
|
Te.Heading = Z;
|
|
719
722
|
/* harmony default export */ const qe = Te;
|
|
720
723
|
// CONCATENATED MODULE: ./src/Menu/index.ts
|
package/Message.js
CHANGED
|
@@ -96,28 +96,28 @@
|
|
|
96
96
|
const S = require("@splunk/react-ui/Button");
|
|
97
97
|
var O = e.n(S);
|
|
98
98
|
// CONCATENATED MODULE: external "@splunk/themes"
|
|
99
|
-
const
|
|
99
|
+
const x = require("@splunk/themes");
|
|
100
100
|
// CONCATENATED MODULE: ./src/Message/MessageStyles.ts
|
|
101
|
-
var
|
|
102
|
-
info:
|
|
103
|
-
success:
|
|
104
|
-
warning:
|
|
105
|
-
error:
|
|
101
|
+
var C = {
|
|
102
|
+
info: x.variables.notificationColorInfo,
|
|
103
|
+
success: x.variables.notificationColorPositive,
|
|
104
|
+
warning: x.variables.notificationColorCaution,
|
|
105
|
+
error: x.variables.notificationColorNegative
|
|
106
106
|
};
|
|
107
|
-
var
|
|
107
|
+
var _ = w().div.withConfig({
|
|
108
108
|
displayName: "MessageStyles__StyledTitle",
|
|
109
109
|
componentId: "eg66af-0"
|
|
110
|
-
})([ "", ";" ],
|
|
110
|
+
})([ "", ";" ], x.mixins.typography("title4"));
|
|
111
111
|
var k = w().div.withConfig({
|
|
112
112
|
displayName: "MessageStyles__StyledContent",
|
|
113
113
|
componentId: "eg66af-1"
|
|
114
|
-
})([ "", ";grid-row:1 / -1;grid-column:content;max-width:", ";word-wrap:break-word;&:not(:has(> ", ")){", ";}" ],
|
|
114
|
+
})([ "", ";grid-row:1 / -1;grid-column:content;max-width:", ";word-wrap:break-word;&:not(:has(> ", ")){", ";}" ], x.mixins.typography("body"), x.variables.lineLength, _, x.mixins.typography("body", {
|
|
115
115
|
color: "active"
|
|
116
116
|
}));
|
|
117
117
|
var R = w().span.withConfig({
|
|
118
118
|
displayName: "MessageStyles__StyledIcon",
|
|
119
119
|
componentId: "eg66af-2"
|
|
120
|
-
})([ "fill:", ";grid-row:1;height:20px;width:20px;" ], (0,
|
|
120
|
+
})([ "fill:", ";grid-row:1;height:20px;width:20px;" ], (0, x.pickVariant)("$type", C));
|
|
121
121
|
var q = w()(O()).withConfig({
|
|
122
122
|
displayName: "MessageStyles__StyledRemove",
|
|
123
123
|
componentId: "eg66af-3"
|
|
@@ -125,14 +125,14 @@
|
|
|
125
125
|
var I = w().div.withConfig({
|
|
126
126
|
displayName: "MessageStyles__Styled",
|
|
127
127
|
componentId: "eg66af-4"
|
|
128
|
-
})([ "", ";grid-template-rows:1lh auto;align-items:center;padding:", ";", ";", "" ],
|
|
128
|
+
})([ "", ";grid-template-rows:1lh auto;align-items:center;padding:", ";", ";", "" ], x.mixins.reset("grid"), x.variables.spacingSmall, (function(e) {
|
|
129
129
|
var n = e.$hasRemoveIcon;
|
|
130
|
-
return (0, h.css)([ "grid-template-columns:[icon] 20px ", " [content] auto ", " [remove] min-content;" ],
|
|
130
|
+
return (0, h.css)([ "grid-template-columns:[icon] 20px ", " [content] auto ", " [remove] min-content;" ], x.variables.spacingSmall, n ? x.variables.spacingSmall : "0");
|
|
131
131
|
}), (function(e) {
|
|
132
132
|
var n = e.$appearance, r = e.$hasRemoveIcon, t = e.$type;
|
|
133
|
-
var a =
|
|
134
|
-
return n === "fill" && (0, h.css)([ "background-color:", ";border-left:8px solid ", ";border-radius:", ";box-shadow:", ";grid-template-columns:[icon] 20px ", " [content] fit-content(", ");padding-inline:", ";", "" ],
|
|
135
|
-
h.css)([ "grid-template-columns:[icon] 20px ", " [content] fit-content(", ") minmax(", ",1fr) [remove] min-content;" ],
|
|
133
|
+
var a = C[t];
|
|
134
|
+
return n === "fill" && (0, h.css)([ "background-color:", ";border-left:8px solid ", ";border-radius:", ";box-shadow:", ";grid-template-columns:[icon] 20px ", " [content] fit-content(", ");padding-inline:", ";", "" ], x.variables.backgroundColorPopup, a, x.variables.borderRadius, x.variables.embossShadow, x.variables.spacingSmall, x.variables.lineLength, x.variables.spacingMedium, r && (0,
|
|
135
|
+
h.css)([ "grid-template-columns:[icon] 20px ", " [content] fit-content(", ") minmax(", ",1fr) [remove] min-content;" ], x.variables.spacingSmall, x.variables.lineLength, x.variables.spacingSmall));
|
|
136
136
|
}));
|
|
137
137
|
// CONCATENATED MODULE: ./src/Message/Title.tsx
|
|
138
138
|
function j(e, n) {
|
|
@@ -141,7 +141,7 @@
|
|
|
141
141
|
if (Object.getOwnPropertySymbols) {
|
|
142
142
|
var o = Object.getOwnPropertySymbols(e);
|
|
143
143
|
for (t = 0; t < o.length; t++) {
|
|
144
|
-
r = o[t], n.
|
|
144
|
+
r = o[t], -1 === n.indexOf(r) && {}.propertyIsEnumerable.call(e, r) && (a[r] = e[r]);
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
147
|
return a;
|
|
@@ -151,7 +151,7 @@
|
|
|
151
151
|
var r = {};
|
|
152
152
|
for (var t in e) {
|
|
153
153
|
if ({}.hasOwnProperty.call(e, t)) {
|
|
154
|
-
if (n.
|
|
154
|
+
if (-1 !== n.indexOf(t)) continue;
|
|
155
155
|
r[t] = e[t];
|
|
156
156
|
}
|
|
157
157
|
}
|
|
@@ -166,7 +166,7 @@
|
|
|
166
166
|
var n = e.children, r = j(e, [ "children" ]);
|
|
167
167
|
// @docs-props-type TitleProps
|
|
168
168
|
|
|
169
|
-
return t().createElement(
|
|
169
|
+
return t().createElement(_, r, n);
|
|
170
170
|
}
|
|
171
171
|
M.propTypes = E;
|
|
172
172
|
/* harmony default export */ const $ = M;
|
|
@@ -188,7 +188,7 @@
|
|
|
188
188
|
if (Object.getOwnPropertySymbols) {
|
|
189
189
|
var o = Object.getOwnPropertySymbols(e);
|
|
190
190
|
for (t = 0; t < o.length; t++) {
|
|
191
|
-
r = o[t], n.
|
|
191
|
+
r = o[t], -1 === n.indexOf(r) && {}.propertyIsEnumerable.call(e, r) && (a[r] = e[r]);
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
194
|
return a;
|
|
@@ -198,7 +198,7 @@
|
|
|
198
198
|
var r = {};
|
|
199
199
|
for (var t in e) {
|
|
200
200
|
if ({}.hasOwnProperty.call(e, t)) {
|
|
201
|
-
if (n.
|
|
201
|
+
if (-1 !== n.indexOf(t)) continue;
|
|
202
202
|
r[t] = e[t];
|
|
203
203
|
}
|
|
204
204
|
}
|
package/MessageBar.js
CHANGED
|
@@ -98,15 +98,15 @@
|
|
|
98
98
|
// CONCATENATED MODULE: external "@splunk/themes"
|
|
99
99
|
const k = require("@splunk/themes");
|
|
100
100
|
// CONCATENATED MODULE: ./src/MessageBar/MessageBarStyles.ts
|
|
101
|
-
var
|
|
101
|
+
var O = h().div.withConfig({
|
|
102
102
|
displayName: "MessageBarStyles__MessageBarContent",
|
|
103
103
|
componentId: "sc-1uyhzza-0"
|
|
104
104
|
})([ "", ";", ";grid-column:content;grid-row:1 / -1;max-width:", ";word-wrap:break-word;" ], k.mixins.reset("inline"), k.mixins.typography("body"), k.variables.lineLength);
|
|
105
|
-
var
|
|
105
|
+
var q = h()(S()).withConfig({
|
|
106
106
|
displayName: "MessageBarStyles__StyledCloseButton",
|
|
107
107
|
componentId: "sc-1uyhzza-1"
|
|
108
108
|
})([ "grid-column:close;" ]);
|
|
109
|
-
var
|
|
109
|
+
var _ = h().span.withConfig({
|
|
110
110
|
displayName: "MessageBarStyles__StyledIcon",
|
|
111
111
|
componentId: "sc-1uyhzza-2"
|
|
112
112
|
})([ "width:20px;height:20px;margin-left:auto;fill:", ";grid-row:1;grid-column:icon;" ], (0,
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
warning: k.variables.notificationColorCaution,
|
|
117
117
|
error: k.variables.notificationColorNegative
|
|
118
118
|
}));
|
|
119
|
-
var
|
|
119
|
+
var x = h().div.withConfig({
|
|
120
120
|
displayName: "MessageBarStyles__MessageBarWrapper",
|
|
121
121
|
componentId: "sc-1uyhzza-3"
|
|
122
122
|
})([ "", ";grid-template-columns:[icon] 20px ", " [content] fit-content(", ") minmax(", ",1fr) [close] min-content;grid-template-rows:1lh auto;align-items:center;border:1px solid ", ";border-radius:", ";background-color:", ";padding:", " ", ";width:100%;" ], k.mixins.reset("grid"), k.variables.spacingSmall, k.variables.lineLength, k.variables.spacingSmall, (0,
|
|
@@ -132,8 +132,8 @@
|
|
|
132
132
|
error: k.variables.notificationColorNegativeWeak
|
|
133
133
|
}), k.variables.spacingSmall, k.variables.spacingMedium);
|
|
134
134
|
// CONCATENATED MODULE: ./src/MessageBar/MessageBar.tsx
|
|
135
|
-
function
|
|
136
|
-
return
|
|
135
|
+
function I() {
|
|
136
|
+
return I = Object.assign ? Object.assign.bind() : function(e) {
|
|
137
137
|
for (var r = 1; r < arguments.length; r++) {
|
|
138
138
|
var n = arguments[r];
|
|
139
139
|
for (var t in n) {
|
|
@@ -141,7 +141,7 @@
|
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
return e;
|
|
144
|
-
},
|
|
144
|
+
}, I.apply(null, arguments);
|
|
145
145
|
}
|
|
146
146
|
function P(e, r) {
|
|
147
147
|
if (null == e) return {};
|
|
@@ -149,7 +149,7 @@
|
|
|
149
149
|
if (Object.getOwnPropertySymbols) {
|
|
150
150
|
var i = Object.getOwnPropertySymbols(e);
|
|
151
151
|
for (t = 0; t < i.length; t++) {
|
|
152
|
-
n = i[t], r.
|
|
152
|
+
n = i[t], -1 === r.indexOf(n) && {}.propertyIsEnumerable.call(e, n) && (a[n] = e[n]);
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
return a;
|
|
@@ -159,7 +159,7 @@
|
|
|
159
159
|
var n = {};
|
|
160
160
|
for (var t in e) {
|
|
161
161
|
if ({}.hasOwnProperty.call(e, t)) {
|
|
162
|
-
if (r.
|
|
162
|
+
if (-1 !== r.indexOf(t)) continue;
|
|
163
163
|
n[t] = e[t];
|
|
164
164
|
}
|
|
165
165
|
}
|
|
@@ -188,22 +188,22 @@
|
|
|
188
188
|
var s = E[i];
|
|
189
189
|
var l = M[i];
|
|
190
190
|
|
|
191
|
-
return t().createElement(
|
|
191
|
+
return t().createElement(x, I({
|
|
192
192
|
ref: n,
|
|
193
193
|
$type: i,
|
|
194
194
|
"data-test": "message-bar",
|
|
195
195
|
"data-test-type": i
|
|
196
196
|
}, o, {
|
|
197
197
|
role: "region"
|
|
198
|
-
}), t().createElement(
|
|
198
|
+
}), t().createElement(_, {
|
|
199
199
|
as: s,
|
|
200
200
|
$type: i,
|
|
201
201
|
variant: "filled",
|
|
202
202
|
"aria-hidden": true,
|
|
203
203
|
"data-test": "icon"
|
|
204
|
-
}), t().createElement(y(), null, l), t().createElement(
|
|
204
|
+
}), t().createElement(y(), null, l), t().createElement(O, {
|
|
205
205
|
"data-test": "content"
|
|
206
|
-
}, r), a && t().createElement(
|
|
206
|
+
}, r), a && t().createElement(q, {
|
|
207
207
|
appearance: "subtle",
|
|
208
208
|
onClick: a
|
|
209
209
|
}, t().createElement(c(), null), t().createElement(y(), null, (0, b._)("Close"))));
|