@splunk/react-ui 5.0.0 → 5.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Accordion.js +105 -84
- package/Anchor.js +9 -9
- package/Animation.js +2 -2
- package/Avatar.js +30 -30
- package/Box.js +2 -2
- package/Breadcrumbs.js +54 -54
- package/Button.js +36 -36
- package/ButtonGroup.js +9 -9
- package/ButtonSimple.js +2 -2
- package/CHANGELOG.md +44 -2
- package/Calendar.js +130 -130
- package/Card.js +308 -277
- package/CardLayout.js +10 -10
- package/Chip.js +44 -44
- package/Clickable.js +51 -51
- package/Code.js +654 -519
- package/CollapsiblePanel.js +158 -156
- package/Color.js +117 -117
- package/ColumnLayout.js +41 -41
- package/ComboBox.js +183 -199
- package/ControlGroup.js +186 -178
- package/Date.js +152 -150
- package/DefinitionList.js +124 -104
- package/Divider.js +2 -2
- package/DualListbox.js +706 -717
- package/File.js +407 -407
- package/FormRows.js +74 -71
- package/Heading.js +15 -15
- package/Image.js +38 -38
- package/JSONTree.js +695 -578
- package/Layer.js +64 -73
- package/Layout.js +10 -10
- package/Link.js +2 -2
- package/List.js +24 -24
- package/Markdown.js +150 -150
- package/Menu.js +64 -63
- package/Message.js +20 -20
- package/MessageBar.js +13 -13
- package/Modal.js +76 -76
- package/ModalLayer.js +6 -6
- package/Monogram.js +104 -78
- package/Multiselect.js +1181 -1080
- package/Number.js +115 -115
- package/Paginator.js +46 -46
- package/Paragraph.js +10 -10
- package/Popover.js +527 -446
- package/Progress.js +17 -17
- package/Prose.js +19 -19
- package/RadioBar.js +242 -228
- package/RadioList.js +175 -150
- package/Resize.js +20 -20
- package/ResultsMenu.js +63 -63
- package/ScreenReaderContent.js +13 -13
- package/Scroll.js +70 -70
- package/Search.js +155 -171
- package/Select.js +1150 -1049
- package/SidePanel.js +29 -29
- package/Slider.js +60 -60
- package/SlidingPanels.js +52 -52
- package/SplitButton.js +121 -93
- package/StaticContent.js +6 -6
- package/StepBar.js +104 -104
- package/Switch.js +47 -47
- package/TabBar.js +346 -323
- package/TabLayout.js +78 -78
- package/Table.js +1408 -1377
- package/Text.js +67 -67
- package/TextArea.js +100 -85
- package/Tooltip.js +209 -203
- package/TransitionOpen.js +11 -11
- package/Tree.js +452 -349
- package/Typography.js +15 -15
- package/WaitSpinner.js +6 -6
- package/package.json +17 -20
- package/stubs-dependencies.d.ts +0 -70
- package/stubs-splunkui.d.ts +4 -0
- package/types/src/Accordion/docs/examples/Controlled.d.ts +3 -0
- package/types/src/Accordion/docs/examples/Inset.d.ts +4 -0
- package/types/src/Accordion/docs/examples/Uncontrolled.d.ts +3 -0
- package/types/src/Anchor/docs/examples/Basic.d.ts +4 -0
- package/types/src/AnimationToggle/docs/examples/Provider.d.ts +4 -0
- package/types/src/AnimationToggle/docs/examples/ReducedMotionComponent.d.ts +4 -0
- package/types/src/AnimationToggle/docs/examples/ReducedMotionHook.d.ts +4 -0
- package/types/src/AnimationToggle/docs/examples/ToggleComponent.d.ts +4 -0
- package/types/src/Avatar/docs/examples/BackgroundColor.d.ts +4 -0
- package/types/src/Avatar/docs/examples/Basic.d.ts +4 -0
- package/types/src/Avatar/docs/examples/Image.d.ts +4 -0
- package/types/src/Avatar/docs/examples/Interactive.d.ts +4 -0
- package/types/src/Avatar/docs/examples/Size.d.ts +4 -0
- package/types/src/Breadcrumbs/docs/examples/Adornments.d.ts +4 -0
- package/types/src/Breadcrumbs/docs/examples/Basic.d.ts +3 -0
- package/types/src/Breadcrumbs/docs/examples/CustomizedClick.d.ts +4 -0
- package/types/src/Button/docs/examples/Basic.d.ts +3 -0
- package/types/src/Button/docs/examples/Block.d.ts +4 -0
- package/types/src/Button/docs/examples/Disabled.d.ts +4 -0
- package/types/src/Button/docs/examples/Icons.d.ts +4 -0
- package/types/src/Button/docs/examples/Menus.d.ts +4 -0
- package/types/src/Button/docs/examples/To.d.ts +4 -0
- package/types/src/ButtonGroup/docs/examples/Basic.d.ts +3 -0
- package/types/src/Card/docs/examples/Basic.d.ts +4 -0
- package/types/src/Card/docs/examples/Clickable.d.ts +4 -0
- package/types/src/Card/docs/examples/Full.d.ts +4 -0
- package/types/src/Card/docs/examples/HeadingTitle.d.ts +4 -0
- package/types/src/Card/docs/examples/Images.d.ts +4 -0
- package/types/src/Card/docs/examples/Selectable.d.ts +4 -0
- package/types/src/CardLayout/docs/examples/Basic.d.ts +3 -0
- package/types/src/CardLayout/docs/examples/Interactive.d.ts +4 -0
- package/types/src/Chip/docs/examples/Appearance.d.ts +3 -0
- package/types/src/Chip/docs/examples/CustomColors.d.ts +4 -0
- package/types/src/Chip/docs/examples/Disabled.d.ts +3 -0
- package/types/src/Chip/docs/examples/Icon.d.ts +3 -0
- package/types/src/Chip/docs/examples/Removable.d.ts +3 -0
- package/types/src/Chip/docs/examples/RemovableWithNonStringChildren.d.ts +4 -0
- package/types/src/Clickable/docs/examples/Disabled.d.ts +4 -0
- package/types/src/Code/Code.d.ts +17 -1
- package/types/src/Code/LineHighlights.d.ts +11 -0
- package/types/src/Code/LineNumbers.d.ts +6 -0
- package/types/src/Code/docs/examples/Default.d.ts +3 -0
- package/types/src/Code/docs/examples/HideIndent.d.ts +4 -0
- package/types/src/Code/docs/examples/Language.d.ts +4 -0
- package/types/src/Code/docs/examples/LineHighlights.d.ts +7 -0
- package/types/src/Code/docs/examples/LineNumbers.d.ts +7 -0
- package/types/src/Code/docs/examples/LineNumbersCustomStart.d.ts +7 -0
- package/types/src/CollapsiblePanel/docs/examples/Actions.d.ts +4 -0
- package/types/src/CollapsiblePanel/docs/examples/BasicControlled.d.ts +3 -0
- package/types/src/CollapsiblePanel/docs/examples/BasicUncontrolled.d.ts +3 -0
- package/types/src/CollapsiblePanel/docs/examples/Disabled.d.ts +7 -0
- package/types/src/CollapsiblePanel/docs/examples/MultiControlled.d.ts +3 -0
- package/types/src/CollapsiblePanel/docs/examples/MultiUncontrolled.d.ts +3 -0
- package/types/src/CollapsiblePanel/docs/examples/SingleOpenPanelGroupControlled.d.ts +4 -0
- package/types/src/CollapsiblePanel/docs/examples/SingleOpenPanelGroupInset.d.ts +4 -0
- package/types/src/CollapsiblePanel/docs/examples/SingleOpenPanelGroupUncontrolled.d.ts +4 -0
- package/types/src/CollapsiblePanel/docs/examples/Subtle.d.ts +4 -0
- package/types/src/Color/docs/examples/Controlled.d.ts +3 -0
- package/types/src/Color/docs/examples/CustomizedPalette.d.ts +4 -0
- package/types/src/Color/docs/examples/HideInput.d.ts +4 -0
- package/types/src/Color/docs/examples/Null.d.ts +4 -0
- package/types/src/Color/docs/examples/ThemeVariables.d.ts +4 -0
- package/types/src/Color/docs/examples/Transparent.d.ts +4 -0
- package/types/src/Color/docs/examples/Uncontrolled.d.ts +3 -0
- package/types/src/ColumnLayout/docs/examples/AlignItems.d.ts +4 -0
- package/types/src/ColumnLayout/docs/examples/Basic.d.ts +4 -0
- package/types/src/ColumnLayout/docs/examples/Dividers.d.ts +4 -0
- package/types/src/ColumnLayout/docs/examples/Gutters.d.ts +4 -0
- package/types/src/ComboBox/docs/examples/Controlled.d.ts +4 -0
- package/types/src/ComboBox/docs/examples/Fetching.d.ts +4 -0
- package/types/src/ComboBox/docs/examples/Headings.d.ts +3 -0
- package/types/src/ComboBox/docs/examples/Label.d.ts +4 -0
- package/types/src/ComboBox/docs/examples/Uncontrolled.d.ts +4 -0
- package/types/src/ControlGroup/docs/examples/Basic.d.ts +4 -0
- package/types/src/ControlGroup/docs/examples/CustomizedLabelTarget.d.ts +4 -0
- package/types/src/ControlGroup/docs/examples/Error.d.ts +4 -0
- package/types/src/ControlGroup/docs/examples/HelpWithErrorText.d.ts +4 -0
- package/types/src/ControlGroup/docs/examples/HelpWithLinks.d.ts +4 -0
- package/types/src/ControlGroup/docs/examples/LabelLeft.d.ts +4 -0
- package/types/src/ControlGroup/docs/examples/LayoutFill.d.ts +4 -0
- package/types/src/ControlGroup/docs/examples/LayoutFillJoin.d.ts +4 -0
- package/types/src/ControlGroup/docs/examples/LayoutNone.d.ts +4 -0
- package/types/src/ControlGroup/docs/examples/Required.d.ts +4 -0
- package/types/src/Date/Date.d.ts +6 -1
- package/types/src/Date/docs/examples/Basic.d.ts +3 -0
- package/types/src/Date/docs/examples/Controlled.d.ts +3 -0
- package/types/src/Date/docs/examples/CustomDate.d.ts +4 -0
- package/types/src/Date/docs/examples/Disabled.d.ts +3 -0
- package/types/src/Date/docs/examples/Error.d.ts +3 -0
- package/types/src/Date/docs/examples/HighlightToday.d.ts +4 -0
- package/types/src/Date/docs/examples/WithoutCalendar.d.ts +4 -0
- package/types/src/DefinitionList/DefinitionList.d.ts +23 -5
- package/types/src/DefinitionList/DefinitionListContext.d.ts +2 -0
- package/types/src/DefinitionList/docs/examples/Basic.d.ts +3 -0
- package/types/src/DefinitionList/docs/examples/CustomizedWidths.d.ts +7 -0
- package/types/src/DefinitionList/docs/examples/EmptyDescription.d.ts +4 -0
- package/types/src/DefinitionList/docs/examples/WithSeparator.d.ts +4 -0
- package/types/src/Divider/docs/examples/Appearance.d.ts +4 -0
- package/types/src/Divider/docs/examples/Basic.d.ts +3 -0
- package/types/src/Divider/docs/examples/CustomStyle.d.ts +4 -0
- package/types/src/Divider/docs/examples/Decorative.d.ts +4 -0
- package/types/src/Divider/docs/examples/Vertical.d.ts +3 -0
- package/types/src/Dropdown/docs/examples/Basic.d.ts +4 -0
- package/types/src/Dropdown/docs/examples/BasicMenu.d.ts +3 -0
- package/types/src/Dropdown/docs/examples/ControlledDropdown.d.ts +4 -0
- package/types/src/Dropdown/docs/examples/Dialog.d.ts +4 -0
- package/types/src/Dropdown/docs/examples/ScrollContainer.d.ts +4 -0
- package/types/src/Dropdown/docs/examples/ScrollingMenu.d.ts +4 -0
- package/types/src/Dropdown/docs/examples/Submenu.d.ts +3 -0
- package/types/src/Dropdown/docs/examples/TooltipButtonToggle.d.ts +4 -0
- package/types/src/DualListbox/Option.d.ts +1 -1
- package/types/src/DualListbox/docs/examples/Basic.d.ts +3 -0
- package/types/src/DualListbox/docs/examples/Controlled.d.ts +3 -0
- package/types/src/DualListbox/docs/examples/Fill.d.ts +4 -0
- package/types/src/File/docs/examples/CustomizedMessages.d.ts +4 -0
- package/types/src/File/docs/examples/Disabled.d.ts +3 -0
- package/types/src/File/docs/examples/DropAnywhere.d.ts +4 -0
- package/types/src/File/docs/examples/Error.d.ts +4 -0
- package/types/src/File/docs/examples/FullScreen.d.ts +4 -0
- package/types/src/File/docs/examples/Multi.d.ts +4 -0
- package/types/src/File/docs/examples/Progress.d.ts +4 -0
- package/types/src/File/docs/examples/Single.d.ts +4 -0
- package/types/src/FormRows/FormRows.d.ts +1 -1
- package/types/src/FormRows/docs/examples/Basic.d.ts +3 -0
- package/types/src/FormRows/docs/examples/Header.d.ts +4 -0
- package/types/src/FormRows/docs/examples/Menu.d.ts +4 -0
- package/types/src/FormRows/docs/examples/ReorderOnly.d.ts +4 -0
- package/types/src/Heading/docs/examples/Basic.d.ts +3 -0
- package/types/src/Heading/docs/examples/Variant.d.ts +4 -0
- package/types/src/Image/docs/examples/Basic.d.ts +3 -0
- package/types/src/JSONTree/JSONTreeItem.d.ts +5 -2
- package/types/src/JSONTree/docs/examples/Basic.d.ts +3 -0
- package/types/src/JSONTree/docs/examples/Events.d.ts +4 -0
- package/types/src/JSONTree/docs/examples/ExpandChildrenOnShiftKey.d.ts +4 -0
- package/types/src/Layer/docs/examples/Basic.d.ts +4 -0
- package/types/src/Layout/docs/examples/Basic.d.ts +3 -0
- package/types/src/Link/docs/examples/Basic.d.ts +4 -0
- package/types/src/Link/docs/examples/Disabled.d.ts +4 -0
- package/types/src/Link/docs/examples/NewWindow.d.ts +4 -0
- package/types/src/Link/docs/examples/Standalone.d.ts +4 -0
- package/types/src/List/docs/examples/CustomizedList.d.ts +4 -0
- package/types/src/List/docs/examples/OrderedList.d.ts +4 -0
- package/types/src/List/docs/examples/UnorderedList.d.ts +3 -0
- package/types/src/Markdown/Markdown.d.ts +1 -1
- package/types/src/Markdown/docs/examples/Basic.d.ts +4 -0
- package/types/src/Markdown/docs/examples/I18n.d.ts +4 -0
- package/types/src/Markdown/renderers/MarkdownBlockquote.d.ts +1 -1
- package/types/src/Markdown/renderers/MarkdownCodeBlock.d.ts +1 -1
- package/types/src/Markdown/renderers/index.d.ts +1 -1
- package/types/src/Menu/Item.d.ts +27 -10
- package/types/src/Menu/docs/examples/Adornments.d.ts +4 -0
- package/types/src/Menu/docs/examples/Basic.d.ts +3 -0
- package/types/src/Menu/docs/examples/Complex.d.ts +4 -0
- package/types/src/Menu/docs/examples/Descriptions.d.ts +4 -0
- package/types/src/Menu/docs/examples/Dimmed.d.ts +4 -0
- package/types/src/Menu/docs/examples/Disabled.d.ts +3 -0
- package/types/src/Menu/docs/examples/Dividers.d.ts +3 -0
- package/types/src/Menu/docs/examples/Headings.d.ts +4 -0
- package/types/src/Menu/docs/examples/Links.d.ts +4 -0
- package/types/src/Menu/docs/examples/MatchRanges.d.ts +4 -0
- package/types/src/Menu/docs/examples/Selectable.d.ts +4 -0
- package/types/src/Menu/docs/examples/SelectableWithAdornments.d.ts +4 -0
- package/types/src/Menu/docs/examples/Truncate.d.ts +4 -0
- package/types/src/Message/docs/examples/Basic.d.ts +3 -0
- package/types/src/Message/docs/examples/Content.d.ts +4 -0
- package/types/src/Message/docs/examples/Fill.d.ts +3 -0
- package/types/src/Message/docs/examples/Removable.d.ts +3 -0
- package/types/src/MessageBar/docs/examples/Basic.d.ts +4 -0
- package/types/src/MessageBar/docs/examples/Types.d.ts +4 -0
- package/types/src/MessageBar/docs/examples/WithActions.d.ts +3 -0
- package/types/src/Modal/Modal.d.ts +10 -3
- package/types/src/Modal/docs/examples/Basic.d.ts +3 -0
- package/types/src/Modal/docs/examples/InitialFocus.d.ts +4 -0
- package/types/src/Modal/docs/examples/TypicalUsage.d.ts +4 -0
- package/types/src/Modal/docs/examples/Undismissable.d.ts +4 -0
- package/types/src/Monogram/Monogram.d.ts +4 -0
- package/types/src/Monogram/docs/examples/BackgroundAuto.d.ts +4 -0
- package/types/src/Monogram/docs/examples/BackgroundCustom.d.ts +3 -0
- package/types/src/Monogram/docs/examples/Basic.d.ts +4 -0
- package/types/src/Monogram/docs/examples/Interactive.d.ts +4 -0
- package/types/src/Monogram/docs/examples/Size.d.ts +4 -0
- package/types/src/Multiselect/Compact.d.ts +1 -1
- package/types/src/Multiselect/Multiselect.d.ts +1 -1
- package/types/src/Multiselect/docs/examples/Children.d.ts +4 -0
- package/types/src/Multiselect/docs/examples/Compact.d.ts +4 -0
- package/types/src/Multiselect/docs/examples/Controlled.d.ts +3 -0
- package/types/src/Multiselect/docs/examples/CustomizeSelected.d.ts +4 -0
- package/types/src/Multiselect/docs/examples/Disabled.d.ts +3 -0
- package/types/src/Multiselect/docs/examples/Error.d.ts +3 -0
- package/types/src/Multiselect/docs/examples/Fetching.d.ts +4 -0
- package/types/src/Multiselect/docs/examples/Headings.d.ts +3 -0
- package/types/src/Multiselect/docs/examples/Icons.d.ts +3 -0
- package/types/src/Multiselect/docs/examples/LoadMoreOnScrollBottom.d.ts +4 -0
- package/types/src/Multiselect/docs/examples/NewValues.d.ts +4 -0
- package/types/src/Multiselect/docs/examples/TabInput.d.ts +4 -0
- package/types/src/Multiselect/docs/examples/Uncontrolled.d.ts +3 -0
- package/types/src/Number/docs/examples/Basic.d.ts +4 -0
- package/types/src/Number/docs/examples/Disabled.d.ts +3 -0
- package/types/src/Number/docs/examples/Error.d.ts +3 -0
- package/types/src/Number/docs/examples/Limits.d.ts +4 -0
- package/types/src/Number/docs/examples/Locale.d.ts +4 -0
- package/types/src/Number/docs/examples/Uncontrolled.d.ts +4 -0
- package/types/src/Paginator/docs/examples/Basic.d.ts +3 -0
- package/types/src/Paginator/docs/examples/Compact.d.ts +4 -0
- package/types/src/Paginator/docs/examples/CompactCustomLabel.d.ts +3 -0
- package/types/src/Paginator/docs/examples/CompactWithLabel.d.ts +3 -0
- package/types/src/Paginator/docs/examples/CustomPages.d.ts +4 -0
- package/types/src/Paginator/docs/examples/Labelled.d.ts +4 -0
- package/types/src/Paginator/docs/examples/PageControl.d.ts +4 -0
- package/types/src/Paragraph/docs/examples/Basic.d.ts +4 -0
- package/types/src/Popover/Popover.d.ts +1 -1
- package/types/src/Popover/PopoverProvider.d.ts +9 -1
- package/types/src/Popover/docs/examples/Basic.d.ts +4 -0
- package/types/src/Progress/docs/examples/Basic.d.ts +3 -0
- package/types/src/Progress/docs/examples/Type.d.ts +3 -0
- package/types/src/Prose/docs/examples/Basic.d.ts +3 -0
- package/types/src/Prose/docs/examples/Customize.d.ts +4 -0
- package/types/src/RadioBar/Option.d.ts +1 -1
- package/types/src/RadioBar/RadioBar.d.ts +13 -6
- package/types/src/RadioBar/RadioBarContext.d.ts +4 -2
- package/types/src/RadioBar/docs/examples/AdornmentAriaExamples.d.ts +5 -0
- package/types/src/RadioBar/docs/examples/Basic.d.ts +3 -0
- package/types/src/RadioBar/docs/examples/Disabled.d.ts +4 -0
- package/types/src/RadioBar/docs/examples/Error.d.ts +3 -0
- package/types/src/RadioBar/docs/examples/MenuBar.d.ts +4 -0
- package/types/src/RadioBar/docs/examples/Uncontrolled.d.ts +3 -0
- package/types/src/RadioList/RadioList.d.ts +2 -1
- package/types/src/RadioList/docs/examples/Basic.d.ts +4 -0
- package/types/src/RadioList/docs/examples/Disabled.d.ts +3 -0
- package/types/src/RadioList/docs/examples/Error.d.ts +3 -0
- package/types/src/RadioList/docs/examples/Row.d.ts +3 -0
- package/types/src/RadioList/docs/examples/Uncontrolled.d.ts +4 -0
- package/types/src/Resize/docs/examples/Appearance.d.ts +4 -0
- package/types/src/Resize/docs/examples/Basic.d.ts +4 -0
- package/types/src/Resize/docs/examples/Percentage.d.ts +4 -0
- package/types/src/Resize/docs/examples/SizingInner.d.ts +4 -0
- package/types/src/Resize/docs/examples/SizingOuter.d.ts +4 -0
- package/types/src/ScreenReaderContent/docs/examples/Basic.d.ts +4 -0
- package/types/src/ScreenReaderContent/docs/examples/SkipLink.d.ts +7 -0
- package/types/src/Scroll/Inner.d.ts +1 -1
- package/types/src/Scroll/docs/examples/Controlled.d.ts +4 -0
- package/types/src/Scroll/docs/examples/Uncontrolled.d.ts +4 -0
- package/types/src/ScrollContainerContext/docs/examples/Provider.d.ts +4 -0
- package/types/src/Search/docs/examples/Controlled.d.ts +4 -0
- package/types/src/Search/docs/examples/Loading.d.ts +4 -0
- package/types/src/Search/docs/examples/Options.d.ts +4 -0
- package/types/src/Search/docs/examples/OptionsLinks.d.ts +4 -0
- package/types/src/Select/Option.d.ts +1 -1
- package/types/src/Select/Select.d.ts +1 -1
- package/types/src/Select/SelectAllOption.d.ts +5 -10
- package/types/src/Select/SelectBase.d.ts +1 -1
- package/types/src/Select/docs/examples/Appearance.d.ts +4 -0
- package/types/src/Select/docs/examples/Basic.d.ts +4 -0
- package/types/src/Select/docs/examples/Children.d.ts +4 -0
- package/types/src/Select/docs/examples/Descriptions.d.ts +4 -0
- package/types/src/Select/docs/examples/Error.d.ts +3 -0
- package/types/src/Select/docs/examples/Fetching.d.ts +4 -0
- package/types/src/Select/docs/examples/Filter.d.ts +4 -0
- package/types/src/Select/docs/examples/Headings.d.ts +3 -0
- package/types/src/Select/docs/examples/Icons.d.ts +3 -0
- package/types/src/Select/docs/examples/LoadMoreOnScrollBottom.d.ts +4 -0
- package/types/src/Select/docs/examples/Prefix.d.ts +4 -0
- package/types/src/Select/docs/examples/Truncate.d.ts +4 -0
- package/types/src/Select/docs/examples/Uncontrolled.d.ts +4 -0
- package/types/src/SidePanel/docs/examples/Basic.d.ts +4 -0
- package/types/src/SidePanel/docs/examples/ChangeSize.d.ts +3 -0
- package/types/src/SidePanel/docs/examples/Composition.d.ts +4 -0
- package/types/src/Slider/docs/examples/Basic.d.ts +3 -0
- package/types/src/Slider/docs/examples/Controlled.d.ts +5 -1
- package/types/src/Slider/docs/examples/CustomLabels.d.ts +4 -0
- package/types/src/Slider/docs/examples/Disabled.d.ts +3 -0
- package/types/src/Slider/docs/examples/Error.d.ts +3 -0
- package/types/src/Slider/docs/examples/StepMarks.d.ts +4 -0
- package/types/src/SlidingPanels/docs/examples/Basic.d.ts +3 -0
- package/types/src/SlidingPanels/docs/examples/Dropdown.d.ts +3 -0
- package/types/src/SlidingPanels/docs/examples/Modal.d.ts +3 -0
- package/types/src/SplitButton/SplitButton.d.ts +6 -1
- package/types/src/SplitButton/docs/examples/Basic.d.ts +3 -0
- package/types/src/SplitButton/docs/examples/Block.d.ts +4 -0
- package/types/src/SplitButton/docs/examples/ChangeLabel.d.ts +4 -0
- package/types/src/SplitButton/docs/examples/Disabled.d.ts +3 -0
- package/types/src/StaticContent/docs/examples/Basic.d.ts +4 -0
- package/types/src/StaticContent/docs/examples/FieldValue.d.ts +4 -0
- package/types/src/StepBar/docs/examples/Basic.d.ts +3 -0
- package/types/src/StepBar/docs/examples/Error.d.ts +3 -0
- package/types/src/Switch/docs/examples/Basic.d.ts +4 -0
- package/types/src/Switch/docs/examples/Disabled.d.ts +3 -0
- package/types/src/Switch/docs/examples/Error.d.ts +3 -0
- package/types/src/TabBar/docs/examples/Basic.d.ts +3 -0
- package/types/src/TabBar/docs/examples/Disabled.d.ts +3 -0
- package/types/src/TabBar/docs/examples/Icons.d.ts +3 -0
- package/types/src/TabBar/docs/examples/Tooltips.d.ts +3 -0
- package/types/src/TabBar/docs/examples/Vertical.d.ts +3 -0
- package/types/src/TabBar/docs/examples/VerticalIcons.d.ts +3 -0
- package/types/src/TabBar/docs/examples/WithCount.d.ts +3 -0
- package/types/src/TabBar/tabBarUtils.d.ts +4 -0
- package/types/src/TabBar/types.d.ts +5 -0
- package/types/src/TabLayout/Panel.d.ts +0 -1
- package/types/src/TabLayout/docs/examples/AutoActivate.d.ts +4 -0
- package/types/src/TabLayout/docs/examples/Controlled.d.ts +4 -0
- package/types/src/TabLayout/docs/examples/Icons.d.ts +3 -0
- package/types/src/TabLayout/docs/examples/Uncontrolled.d.ts +3 -0
- package/types/src/TabLayout/docs/examples/Vertical.d.ts +3 -0
- package/types/src/TabLayout/docs/examples/VerticalIcons.d.ts +3 -0
- package/types/src/Table/Head.d.ts +1 -0
- package/types/src/Table/HeadCell.d.ts +2 -3
- package/types/src/Table/HeadDropdownCell.d.ts +2 -2
- package/types/src/Table/HeadInner.d.ts +4 -4
- package/types/src/Table/KeyboardSensor.d.ts +1 -1
- package/types/src/Table/RowDragCell.d.ts +1 -1
- package/types/src/Table/docs/examples/Basic.d.ts +3 -0
- package/types/src/Table/docs/examples/Click.d.ts +4 -0
- package/types/src/Table/docs/examples/ClickRows.d.ts +4 -0
- package/types/src/Table/docs/examples/Complex.d.ts +4 -0
- package/types/src/Table/docs/examples/DockedHeaderScrollbar.d.ts +4 -0
- package/types/src/Table/docs/examples/FilterColumnValues.d.ts +4 -0
- package/types/src/Table/docs/examples/FixedHeader.d.ts +4 -0
- package/types/src/Table/docs/examples/HeadDropdownCell.d.ts +4 -0
- package/types/src/Table/docs/examples/ReorderColumns.d.ts +4 -0
- package/types/src/Table/docs/examples/ReorderRows.d.ts +4 -0
- package/types/src/Table/docs/examples/Resizable.d.ts +4 -0
- package/types/src/Table/docs/examples/ResizableFill.d.ts +4 -0
- package/types/src/Table/docs/examples/RowActions.d.ts +4 -0
- package/types/src/Table/docs/examples/Selectable.d.ts +4 -0
- package/types/src/Table/docs/examples/SortableColumns.d.ts +4 -0
- package/types/src/Table/docs/examples/StripeRows.d.ts +3 -0
- package/types/src/Text/docs/examples/Basic.d.ts +4 -0
- package/types/src/Text/docs/examples/CustomizedIcon.d.ts +4 -0
- package/types/src/Text/docs/examples/Dimmed.d.ts +4 -0
- package/types/src/Text/docs/examples/Disabled.d.ts +4 -0
- package/types/src/Text/docs/examples/Error.d.ts +4 -0
- package/types/src/Text/docs/examples/Inline.d.ts +4 -0
- package/types/src/Text/docs/examples/Password.d.ts +4 -0
- package/types/src/Text/docs/examples/Uncontrolled.d.ts +4 -0
- package/types/src/TextArea/docs/examples/Basic.d.ts +4 -0
- package/types/src/TextArea/docs/examples/Disabled.d.ts +3 -0
- package/types/src/TextArea/docs/examples/Error.d.ts +4 -0
- package/types/src/TextArea/docs/examples/Inline.d.ts +4 -0
- package/types/src/TextArea/docs/examples/Uncontrolled.d.ts +4 -0
- package/types/src/Tooltip/Tooltip.d.ts +10 -5
- package/types/src/Tooltip/docs/examples/Basic.d.ts +4 -0
- package/types/src/Tooltip/docs/examples/ContentRelationship.d.ts +4 -0
- package/types/src/Tooltip/docs/examples/Controlled.d.ts +4 -0
- package/types/src/Tooltip/docs/examples/CustomDelay.d.ts +4 -0
- package/types/src/Tooltip/docs/examples/CustomProps.d.ts +4 -0
- package/types/src/Tooltip/docs/examples/Toggletip.d.ts +4 -0
- package/types/src/TransitionOpen/docs/examples/ExpandHeight.d.ts +3 -0
- package/types/src/TransitionOpen/docs/examples/ExpandWidth.d.ts +3 -0
- package/types/src/TransitionOpen/docs/examples/None.d.ts +4 -0
- package/types/src/TransitionOpen/docs/examples/SlideFromBottom.d.ts +4 -0
- package/types/src/TransitionOpen/docs/examples/SlideFromLeft.d.ts +4 -0
- package/types/src/TransitionOpen/docs/examples/SlideFromRight.d.ts +4 -0
- package/types/src/TransitionOpen/docs/examples/SlideFromTop.d.ts +4 -0
- package/types/src/Tree/Item.d.ts +63 -0
- package/types/src/Tree/Tree.d.ts +13 -6
- package/types/src/Tree/TreeContext.d.ts +1 -1
- package/types/src/Tree/docs/examples/Basic.d.ts +5 -0
- package/types/src/Tree/docs/examples/ClickableExpansion.d.ts +2 -0
- package/types/src/Tree/docs/examples/ClickableExpansionWithSelection.d.ts +2 -0
- package/types/src/Tree/index.d.ts +1 -1
- package/types/src/Typography/docs/examples/Basic.d.ts +4 -0
- package/types/src/WaitSpinner/docs/examples/Basic.d.ts +3 -0
- package/types/src/useControlled/useControlled.d.ts +3 -1
- package/useControlled.js +29 -13
- package/useResizeObserver.js +2 -2
- package/types/src/DefinitionList/docs/examples/Customize.d.ts +0 -3
- package/types/src/Tree/TreeItem.d.ts +0 -44
package/Layer.js
CHANGED
|
@@ -35,18 +35,6 @@
|
|
|
35
35
|
/******/ };
|
|
36
36
|
/******/ })();
|
|
37
37
|
/******/
|
|
38
|
-
/******/ /* webpack/runtime/global */
|
|
39
|
-
/******/ (() => {
|
|
40
|
-
/******/ e.g = function() {
|
|
41
|
-
/******/ if (typeof globalThis === "object") return globalThis;
|
|
42
|
-
/******/ try {
|
|
43
|
-
/******/ return this || new Function("return this")();
|
|
44
|
-
/******/ } catch (e) {
|
|
45
|
-
/******/ if (typeof window === "object") return window;
|
|
46
|
-
/******/ }
|
|
47
|
-
/******/ }();
|
|
48
|
-
/******/ })();
|
|
49
|
-
/******/
|
|
50
38
|
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
51
39
|
/******/ (() => {
|
|
52
40
|
/******/ e.o = (e, t) => Object.prototype.hasOwnProperty.call(e, t)
|
|
@@ -81,20 +69,20 @@
|
|
|
81
69
|
// CONCATENATED MODULE: external "react"
|
|
82
70
|
const n = require("react");
|
|
83
71
|
var r = e.n(n);
|
|
84
|
-
// CONCATENATED MODULE: external "react-dom"
|
|
85
|
-
const o = require("react-dom");
|
|
86
|
-
// CONCATENATED MODULE: external "prop-types"
|
|
87
|
-
const a = require("prop-types");
|
|
88
|
-
var i = e.n(a);
|
|
89
72
|
// CONCATENATED MODULE: external "lodash/includes"
|
|
90
|
-
const
|
|
91
|
-
var
|
|
73
|
+
const o = require("lodash/includes");
|
|
74
|
+
var a = e.n(o);
|
|
92
75
|
// CONCATENATED MODULE: external "lodash/last"
|
|
93
|
-
const
|
|
94
|
-
var
|
|
76
|
+
const i = require("lodash/last");
|
|
77
|
+
var u = e.n(i);
|
|
95
78
|
// CONCATENATED MODULE: external "lodash/pull"
|
|
96
|
-
const
|
|
97
|
-
var
|
|
79
|
+
const l = require("lodash/pull");
|
|
80
|
+
var c = e.n(l);
|
|
81
|
+
// CONCATENATED MODULE: external "prop-types"
|
|
82
|
+
const s = require("prop-types");
|
|
83
|
+
var f = e.n(s);
|
|
84
|
+
// CONCATENATED MODULE: external "react-dom"
|
|
85
|
+
const d = require("react-dom");
|
|
98
86
|
// CONCATENATED MODULE: external "@splunk/react-ui/EventListener"
|
|
99
87
|
const v = require("@splunk/react-ui/EventListener");
|
|
100
88
|
var y = e.n(v);
|
|
@@ -104,6 +92,7 @@
|
|
|
104
92
|
// CONCATENATED MODULE: external "@splunk/ui-utils/id"
|
|
105
93
|
const h = require("@splunk/ui-utils/id");
|
|
106
94
|
// CONCATENATED MODULE: ./src/Layer/LayerStack.tsx
|
|
95
|
+
/* global globalThis */
|
|
107
96
|
/**
|
|
108
97
|
* `LayerStackContext` is used to manage the array that `Layer` (and components that
|
|
109
98
|
* depend on it, such as `Modal`) uses to determine the order of open layers.
|
|
@@ -112,33 +101,32 @@
|
|
|
112
101
|
var g = r().createContext([]);
|
|
113
102
|
var b = r().createContext({});
|
|
114
103
|
var C = {
|
|
115
|
-
children:
|
|
116
|
-
name:
|
|
117
|
-
scope:
|
|
118
|
-
separateStackingContexts:
|
|
104
|
+
children: f().node,
|
|
105
|
+
name: f().string,
|
|
106
|
+
scope: f().object,
|
|
107
|
+
separateStackingContexts: f().bool
|
|
119
108
|
};
|
|
120
|
-
/* global global */
|
|
121
109
|
/**
|
|
122
110
|
* A `LayerStackContext` provider that stores a shared layer stack using a global variable.
|
|
123
111
|
* Applications should only use this provider if there's a known need to support multiple
|
|
124
112
|
* instances of this library on the same page.
|
|
125
|
-
*/ function E(
|
|
126
|
-
var
|
|
127
|
-
if (!
|
|
128
|
-
|
|
113
|
+
*/ function E(e) {
|
|
114
|
+
var t = e.children, o = e.name, a = o === void 0 ? "__splunkui_layer_instances__" : o, i = e.scope, u = i === void 0 ? typeof window !== "undefined" ? window : globalThis : i, l = e.separateStackingContexts, c = l === void 0 ? false : l;
|
|
115
|
+
if (!u[a]) {
|
|
116
|
+
u[a] = [];
|
|
129
117
|
// eslint-disable-line no-param-reassign
|
|
130
118
|
}
|
|
131
|
-
var
|
|
119
|
+
var s = (0, n.useMemo)((function() {
|
|
132
120
|
return {
|
|
133
|
-
separateStackingContexts:
|
|
121
|
+
separateStackingContexts: c
|
|
134
122
|
};
|
|
135
|
-
}), [
|
|
123
|
+
}), [ c ]);
|
|
136
124
|
|
|
137
125
|
return r().createElement(g.Provider, {
|
|
138
|
-
value:
|
|
126
|
+
value: u[a]
|
|
139
127
|
}, r().createElement(b.Provider, {
|
|
140
|
-
value:
|
|
141
|
-
},
|
|
128
|
+
value: s
|
|
129
|
+
}, t));
|
|
142
130
|
}
|
|
143
131
|
E.propTypes = C;
|
|
144
132
|
// CONCATENATED MODULE: external "styled-components"
|
|
@@ -273,15 +261,15 @@
|
|
|
273
261
|
clearTimeout(t);
|
|
274
262
|
}
|
|
275
263
|
};
|
|
276
|
-
function
|
|
264
|
+
function O() {
|
|
277
265
|
var e = typeof window !== "undefined" ? window : _;
|
|
278
266
|
return e;
|
|
279
267
|
}
|
|
280
|
-
var
|
|
281
|
-
/* harmony default export */ const
|
|
268
|
+
var P = O();
|
|
269
|
+
/* harmony default export */ const j = P;
|
|
282
270
|
// CONCATENATED MODULE: ./src/Layer/Layer.tsx
|
|
283
271
|
function M(e, t) {
|
|
284
|
-
return
|
|
272
|
+
return F(e) || D(e, t) || N(e, t) || I();
|
|
285
273
|
}
|
|
286
274
|
function I() {
|
|
287
275
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
@@ -300,7 +288,7 @@
|
|
|
300
288
|
}
|
|
301
289
|
return r;
|
|
302
290
|
}
|
|
303
|
-
function
|
|
291
|
+
function D(e, t) {
|
|
304
292
|
var n = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
|
|
305
293
|
if (null != n) {
|
|
306
294
|
var r, o, a, i, u = [], l = !0, c = !1;
|
|
@@ -322,40 +310,40 @@
|
|
|
322
310
|
return u;
|
|
323
311
|
}
|
|
324
312
|
}
|
|
325
|
-
function
|
|
313
|
+
function F(e) {
|
|
326
314
|
if (Array.isArray(e)) return e;
|
|
327
315
|
}
|
|
328
316
|
/** @public */
|
|
329
317
|
/** @public */ var K = [ "clickAway", "escapeKey" ];
|
|
330
318
|
var $ = {
|
|
331
|
-
children:
|
|
332
|
-
closeReasons:
|
|
333
|
-
onRequestClose:
|
|
334
|
-
open:
|
|
319
|
+
children: f().node,
|
|
320
|
+
closeReasons: f().arrayOf(f().oneOf(K)),
|
|
321
|
+
onRequestClose: f().func,
|
|
322
|
+
open: f().bool
|
|
335
323
|
};
|
|
336
324
|
var z = {
|
|
337
325
|
passive: true
|
|
338
326
|
};
|
|
339
327
|
// we need a custom type here in order to set layerContainer as a property
|
|
340
328
|
var B = function e(t) {
|
|
341
|
-
var
|
|
329
|
+
var o = t.children, i = t.closeReasons, l = i === void 0 ? K : i, s = t.open, f = t.onRequestClose;
|
|
342
330
|
var v = (0, n.useContext)(b), p = v.separateStackingContexts;
|
|
343
331
|
var C = (0, n.useContext)(g);
|
|
344
332
|
var E = (0, n.useRef)(null);
|
|
345
333
|
var S = (0, n.useState)((0, h.createGUID)()), k = M(S, 1), w = k[0];
|
|
346
|
-
var q = m()(
|
|
334
|
+
var q = m()(s);
|
|
347
335
|
(0, n.useEffect)((function() {
|
|
348
|
-
if (
|
|
336
|
+
if (s && !q) {
|
|
349
337
|
C.push(w);
|
|
350
|
-
} else if (q && !
|
|
351
|
-
|
|
338
|
+
} else if (q && !s) {
|
|
339
|
+
c()(C, w);
|
|
352
340
|
}
|
|
353
|
-
}), [ w, C,
|
|
341
|
+
}), [ w, C, s, q ]);
|
|
354
342
|
// it is not part of the previous useEffect because it needs to be equivalent to componentWillUnmount
|
|
355
343
|
// the previous useEffect will get re-run every time open and prevOpen change which is not what we want
|
|
356
344
|
(0, n.useEffect)((function() {
|
|
357
345
|
return function() {
|
|
358
|
-
|
|
346
|
+
c()(C, w);
|
|
359
347
|
};
|
|
360
348
|
}), [ w, C ]);
|
|
361
349
|
if (!e.layerContainer) {
|
|
@@ -371,63 +359,66 @@
|
|
|
371
359
|
var _ = (0, n.useCallback)((function() {
|
|
372
360
|
if (e.layerContainer) {
|
|
373
361
|
var t = x();
|
|
362
|
+
var n = e.layerContainer.contains(t.fullscreenElement);
|
|
374
363
|
if (t.fullscreenElement != null) {
|
|
375
|
-
|
|
364
|
+
if (!n) {
|
|
365
|
+
t.fullscreenElement.appendChild(e.layerContainer);
|
|
366
|
+
}
|
|
376
367
|
} else {
|
|
377
368
|
t.body.appendChild(e.layerContainer);
|
|
378
369
|
}
|
|
379
370
|
}
|
|
380
371
|
}), []);
|
|
381
|
-
var
|
|
372
|
+
var O = (0, n.useCallback)((function(e) {
|
|
382
373
|
var t = e.nativeEvent;
|
|
383
374
|
E.current = t;
|
|
384
375
|
}), []);
|
|
385
|
-
var
|
|
376
|
+
var P = (0, n.useCallback)((function(e) {
|
|
386
377
|
// clicks inside the layer should not be considered clickAways
|
|
387
|
-
if (!
|
|
378
|
+
if (!s || !a()(l, "clickAway") || E.current === e) {
|
|
388
379
|
return;
|
|
389
380
|
}
|
|
390
381
|
f === null || f === void 0 ? void 0 : f({
|
|
391
382
|
event: e,
|
|
392
383
|
reason: "clickAway"
|
|
393
384
|
});
|
|
394
|
-
}), [
|
|
385
|
+
}), [ l, s, f ]);
|
|
395
386
|
var I = (0, n.useCallback)((function(e) {
|
|
396
|
-
if (
|
|
387
|
+
if (s && e.key === "Escape" && u()(C) === w && a()(l, "escapeKey")) {
|
|
397
388
|
f === null || f === void 0 ? void 0 : f({
|
|
398
389
|
event: e,
|
|
399
390
|
reason: "escapeKey"
|
|
400
391
|
});
|
|
401
392
|
}
|
|
402
|
-
}), [
|
|
393
|
+
}), [ l, w, C, s, f ]);
|
|
403
394
|
var N = r().createElement(y(), {
|
|
404
|
-
target:
|
|
395
|
+
target: j,
|
|
405
396
|
eventType: "fullscreenchange",
|
|
406
397
|
listener: _,
|
|
407
398
|
key: "fullScreenChange"
|
|
408
399
|
});
|
|
409
|
-
if (
|
|
410
|
-
var R = (0,
|
|
400
|
+
if (s) {
|
|
401
|
+
var R = (0, d.createPortal)( r().createElement(T, {
|
|
411
402
|
$separateStackingContexts: p,
|
|
412
403
|
"data-test": "layer",
|
|
413
|
-
onMouseDown:
|
|
414
|
-
onTouchStart:
|
|
415
|
-
},
|
|
404
|
+
onMouseDown: O,
|
|
405
|
+
onTouchStart: O
|
|
406
|
+
}, o), e.layerContainer);
|
|
416
407
|
|
|
417
408
|
return r().createElement(r().Fragment, null, r().createElement(y(), {
|
|
418
|
-
target:
|
|
409
|
+
target: j,
|
|
419
410
|
eventType: "keydown",
|
|
420
411
|
listener: I,
|
|
421
412
|
key: "eventListenerKeydown"
|
|
422
413
|
}), r().createElement(y(), {
|
|
423
|
-
target:
|
|
414
|
+
target: j,
|
|
424
415
|
eventType: "mousedown",
|
|
425
|
-
listener:
|
|
416
|
+
listener: P,
|
|
426
417
|
key: "eventListenerMouseDown"
|
|
427
418
|
}), r().createElement(y(), {
|
|
428
|
-
target:
|
|
419
|
+
target: j,
|
|
429
420
|
eventType: "touchstart",
|
|
430
|
-
listener:
|
|
421
|
+
listener: P,
|
|
431
422
|
key: "eventListenerTouchStart",
|
|
432
423
|
options: z
|
|
433
424
|
}), N, R);
|
package/Layout.js
CHANGED
|
@@ -72,9 +72,9 @@
|
|
|
72
72
|
var a = e.n(o);
|
|
73
73
|
// CONCATENATED MODULE: external "styled-components"
|
|
74
74
|
const l = require("styled-components");
|
|
75
|
-
var
|
|
75
|
+
var i = e.n(l);
|
|
76
76
|
// CONCATENATED MODULE: external "@splunk/themes/mixins"
|
|
77
|
-
const
|
|
77
|
+
const u = require("@splunk/themes/mixins");
|
|
78
78
|
// CONCATENATED MODULE: ./src/Layout/Layout.tsx
|
|
79
79
|
function c() {
|
|
80
80
|
return c = Object.assign ? Object.assign.bind() : function(e) {
|
|
@@ -87,23 +87,23 @@
|
|
|
87
87
|
return e;
|
|
88
88
|
}, c.apply(null, arguments);
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function f(e, r) {
|
|
91
91
|
if (null == e) return {};
|
|
92
|
-
var t, n, o =
|
|
92
|
+
var t, n, o = s(e, r);
|
|
93
93
|
if (Object.getOwnPropertySymbols) {
|
|
94
94
|
var a = Object.getOwnPropertySymbols(e);
|
|
95
95
|
for (n = 0; n < a.length; n++) {
|
|
96
|
-
t = a[n], r.
|
|
96
|
+
t = a[n], -1 === r.indexOf(t) && {}.propertyIsEnumerable.call(e, t) && (o[t] = e[t]);
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
return o;
|
|
100
100
|
}
|
|
101
|
-
function
|
|
101
|
+
function s(e, r) {
|
|
102
102
|
if (null == e) return {};
|
|
103
103
|
var t = {};
|
|
104
104
|
for (var n in e) {
|
|
105
105
|
if ({}.hasOwnProperty.call(e, n)) {
|
|
106
|
-
if (r.
|
|
106
|
+
if (-1 !== r.indexOf(n)) continue;
|
|
107
107
|
t[n] = e[n];
|
|
108
108
|
}
|
|
109
109
|
}
|
|
@@ -113,14 +113,14 @@
|
|
|
113
113
|
children: a().node.isRequired,
|
|
114
114
|
elementRef: a().oneOfType([ a().func, a().object ])
|
|
115
115
|
};
|
|
116
|
-
var y =
|
|
116
|
+
var y = i().div.withConfig({
|
|
117
117
|
displayName: "Layout__StyledLayout",
|
|
118
118
|
componentId: "sc-1imtojn-0"
|
|
119
|
-
})([ "", "" ], (0,
|
|
119
|
+
})([ "", "" ], (0, u.layout)());
|
|
120
120
|
/**
|
|
121
121
|
* Renders a container to layout children using standard spacing values.
|
|
122
122
|
*/ function p(e) {
|
|
123
|
-
var r = e.children, t = e.elementRef, o =
|
|
123
|
+
var r = e.children, t = e.elementRef, o = f(e, [ "children", "elementRef" ]);
|
|
124
124
|
// @docs-props-type LayoutPropsBase
|
|
125
125
|
|
|
126
126
|
return n().createElement(y, c({
|
package/Link.js
CHANGED
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
if (Object.getOwnPropertySymbols) {
|
|
119
119
|
var a = Object.getOwnPropertySymbols(e);
|
|
120
120
|
for (r = 0; r < a.length; r++) {
|
|
121
|
-
t = a[r], n.
|
|
121
|
+
t = a[r], -1 === n.indexOf(t) && {}.propertyIsEnumerable.call(e, t) && (o[t] = e[t]);
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
return o;
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
var t = {};
|
|
129
129
|
for (var r in e) {
|
|
130
130
|
if ({}.hasOwnProperty.call(e, r)) {
|
|
131
|
-
if (n.
|
|
131
|
+
if (-1 !== n.indexOf(r)) continue;
|
|
132
132
|
t[r] = e[r];
|
|
133
133
|
}
|
|
134
134
|
}
|
package/List.js
CHANGED
|
@@ -69,8 +69,8 @@
|
|
|
69
69
|
const t = require("react");
|
|
70
70
|
var n = e.n(t);
|
|
71
71
|
// CONCATENATED MODULE: external "prop-types"
|
|
72
|
-
const
|
|
73
|
-
var
|
|
72
|
+
const o = require("prop-types");
|
|
73
|
+
var l = e.n(o);
|
|
74
74
|
// CONCATENATED MODULE: external "styled-components"
|
|
75
75
|
const i = require("styled-components");
|
|
76
76
|
var a = e.n(i);
|
|
@@ -99,40 +99,40 @@
|
|
|
99
99
|
}
|
|
100
100
|
function d(e, r) {
|
|
101
101
|
if (null == e) return {};
|
|
102
|
-
var t, n,
|
|
102
|
+
var t, n, o = y(e, r);
|
|
103
103
|
if (Object.getOwnPropertySymbols) {
|
|
104
|
-
var
|
|
105
|
-
for (n = 0; n <
|
|
106
|
-
t =
|
|
104
|
+
var l = Object.getOwnPropertySymbols(e);
|
|
105
|
+
for (n = 0; n < l.length; n++) {
|
|
106
|
+
t = l[n], -1 === r.indexOf(t) && {}.propertyIsEnumerable.call(e, t) && (o[t] = e[t]);
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
|
-
return
|
|
109
|
+
return o;
|
|
110
110
|
}
|
|
111
111
|
function y(e, r) {
|
|
112
112
|
if (null == e) return {};
|
|
113
113
|
var t = {};
|
|
114
114
|
for (var n in e) {
|
|
115
115
|
if ({}.hasOwnProperty.call(e, n)) {
|
|
116
|
-
if (r.
|
|
116
|
+
if (-1 !== r.indexOf(n)) continue;
|
|
117
117
|
t[n] = e[n];
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
return t;
|
|
121
121
|
}
|
|
122
122
|
var p = {
|
|
123
|
-
children:
|
|
124
|
-
elementRef:
|
|
123
|
+
children: l().node,
|
|
124
|
+
elementRef: l().oneOfType([ l().func, l().object ])
|
|
125
125
|
};
|
|
126
126
|
/**
|
|
127
127
|
* A container for items of a `List`.
|
|
128
128
|
*/ function m(e) {
|
|
129
|
-
var r = e.children, t = e.elementRef,
|
|
129
|
+
var r = e.children, t = e.elementRef, o = d(e, [ "children", "elementRef" ]);
|
|
130
130
|
// @docs-props-type ItemPropsBase
|
|
131
131
|
|
|
132
132
|
return n().createElement(u, f({
|
|
133
133
|
"data-test": "item",
|
|
134
134
|
ref: t
|
|
135
|
-
},
|
|
135
|
+
}, o), r);
|
|
136
136
|
}
|
|
137
137
|
m.propTypes = p;
|
|
138
138
|
/* harmony default export */ const b = m;
|
|
@@ -150,40 +150,40 @@
|
|
|
150
150
|
}
|
|
151
151
|
function O(e, r) {
|
|
152
152
|
if (null == e) return {};
|
|
153
|
-
var t, n,
|
|
153
|
+
var t, n, o = h(e, r);
|
|
154
154
|
if (Object.getOwnPropertySymbols) {
|
|
155
|
-
var
|
|
156
|
-
for (n = 0; n <
|
|
157
|
-
t =
|
|
155
|
+
var l = Object.getOwnPropertySymbols(e);
|
|
156
|
+
for (n = 0; n < l.length; n++) {
|
|
157
|
+
t = l[n], -1 === r.indexOf(t) && {}.propertyIsEnumerable.call(e, t) && (o[t] = e[t]);
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
|
-
return
|
|
160
|
+
return o;
|
|
161
161
|
}
|
|
162
162
|
function h(e, r) {
|
|
163
163
|
if (null == e) return {};
|
|
164
164
|
var t = {};
|
|
165
165
|
for (var n in e) {
|
|
166
166
|
if ({}.hasOwnProperty.call(e, n)) {
|
|
167
|
-
if (r.
|
|
167
|
+
if (-1 !== r.indexOf(n)) continue;
|
|
168
168
|
t[n] = e[n];
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
171
|
return t;
|
|
172
172
|
}
|
|
173
173
|
var g = {
|
|
174
|
-
children:
|
|
175
|
-
elementRef:
|
|
176
|
-
ordered:
|
|
174
|
+
children: l().node,
|
|
175
|
+
elementRef: l().oneOfType([ l().func, l().object ]),
|
|
176
|
+
ordered: l().bool
|
|
177
177
|
};
|
|
178
178
|
function j(e) {
|
|
179
|
-
var r = e.children, t = e.elementRef,
|
|
179
|
+
var r = e.children, t = e.elementRef, o = e.ordered, l = O(e, [ "children", "elementRef", "ordered" ]);
|
|
180
180
|
// @docs-props-type ListPropsBase
|
|
181
181
|
|
|
182
182
|
return n().createElement(c, v({
|
|
183
|
-
as:
|
|
183
|
+
as: o ? "ol" : "ul",
|
|
184
184
|
"data-test": "list",
|
|
185
185
|
ref: t
|
|
186
|
-
},
|
|
186
|
+
}, l), r);
|
|
187
187
|
}
|
|
188
188
|
j.propTypes = g;
|
|
189
189
|
j.Item = b;
|