@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/Typography.js
CHANGED
|
@@ -77,8 +77,8 @@
|
|
|
77
77
|
const s = require("@splunk/themes/mixins");
|
|
78
78
|
var u = e.n(s);
|
|
79
79
|
// CONCATENATED MODULE: ./src/Typography/Typography.tsx
|
|
80
|
-
function
|
|
81
|
-
return
|
|
80
|
+
function f() {
|
|
81
|
+
return f = Object.assign ? Object.assign.bind() : function(e) {
|
|
82
82
|
for (var r = 1; r < arguments.length; r++) {
|
|
83
83
|
var t = arguments[r];
|
|
84
84
|
for (var n in t) {
|
|
@@ -86,31 +86,31 @@
|
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
return e;
|
|
89
|
-
},
|
|
89
|
+
}, f.apply(null, arguments);
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function p(e, r) {
|
|
92
92
|
if (null == e) return {};
|
|
93
|
-
var t, n, o =
|
|
93
|
+
var t, n, o = y(e, r);
|
|
94
94
|
if (Object.getOwnPropertySymbols) {
|
|
95
95
|
var a = Object.getOwnPropertySymbols(e);
|
|
96
96
|
for (n = 0; n < a.length; n++) {
|
|
97
|
-
t = a[n], r.
|
|
97
|
+
t = a[n], -1 === r.indexOf(t) && {}.propertyIsEnumerable.call(e, t) && (o[t] = e[t]);
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
return o;
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function y(e, r) {
|
|
103
103
|
if (null == e) return {};
|
|
104
104
|
var t = {};
|
|
105
105
|
for (var n in e) {
|
|
106
106
|
if ({}.hasOwnProperty.call(e, n)) {
|
|
107
|
-
if (r.
|
|
107
|
+
if (-1 !== r.indexOf(n)) continue;
|
|
108
108
|
t[n] = e[n];
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
return t;
|
|
112
112
|
}
|
|
113
|
-
var
|
|
113
|
+
var c = {
|
|
114
114
|
as: a().string.isRequired,
|
|
115
115
|
children: a().node.isRequired,
|
|
116
116
|
color: a().oneOf([ "active", "default", "disabled", "inverted", "muted", "inherit" ]),
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
/**
|
|
133
133
|
* Typography renders text content with styling based on the Splunk Design System.
|
|
134
134
|
*/ function g(e) {
|
|
135
|
-
var r = e.as, o = e.children, a = e.color, i = e.elementRef, l = e.family, s = e.lineHeight, u = e.size,
|
|
135
|
+
var r = e.as, o = e.children, a = e.color, i = e.elementRef, l = e.family, s = e.lineHeight, u = e.size, y = e.variant, c = e.weight, g = e.withReset, h = g === void 0 ? true : g, v = p(e, [ "as", "children", "color", "elementRef", "family", "lineHeight", "size", "variant", "weight", "withReset" ]);
|
|
136
136
|
// @docs-props-type TypographyPropsBase
|
|
137
137
|
var m = (0, t.useMemo)((function() {
|
|
138
138
|
return {
|
|
@@ -140,20 +140,20 @@
|
|
|
140
140
|
family: l,
|
|
141
141
|
lineHeight: s,
|
|
142
142
|
size: u,
|
|
143
|
-
weight:
|
|
143
|
+
weight: c,
|
|
144
144
|
withReset: h
|
|
145
145
|
};
|
|
146
|
-
}), [ a, l, s, u,
|
|
146
|
+
}), [ a, l, s, u, c, h ]);
|
|
147
147
|
|
|
148
|
-
return n().createElement(d,
|
|
148
|
+
return n().createElement(d, f({
|
|
149
149
|
as: r,
|
|
150
150
|
"data-test": "typography",
|
|
151
151
|
ref: i,
|
|
152
152
|
$typographyParams: m,
|
|
153
|
-
$variant:
|
|
153
|
+
$variant: y
|
|
154
154
|
}, v), o);
|
|
155
155
|
}
|
|
156
|
-
g.propTypes =
|
|
156
|
+
g.propTypes = c;
|
|
157
157
|
/* harmony default export */ const h = g;
|
|
158
158
|
// CONCATENATED MODULE: ./src/Typography/index.ts
|
|
159
159
|
module.exports = r;
|
package/WaitSpinner.js
CHANGED
|
@@ -79,11 +79,11 @@
|
|
|
79
79
|
// CONCATENATED MODULE: external "@splunk/themes"
|
|
80
80
|
const f = require("@splunk/themes");
|
|
81
81
|
// CONCATENATED MODULE: ./src/WaitSpinner/WaitSpinnerStyles.ts
|
|
82
|
-
var
|
|
82
|
+
var d = c().div.withConfig({
|
|
83
83
|
displayName: "WaitSpinnerStyles__Styled",
|
|
84
84
|
componentId: "sc-1nu971z-0"
|
|
85
85
|
})([ "", ";align-items:center;" ], f.mixins.reset("inline-flex"));
|
|
86
|
-
var
|
|
86
|
+
var u = (0, l.keyframes)([ "100%{transform:rotate(360deg);}" ]);
|
|
87
87
|
var m = (0, l.keyframes)([ "0%{transform:scale(0);opacity:0;}100%{transform:scale(1);opacity:1;}" ]);
|
|
88
88
|
var p = "2.07s";
|
|
89
89
|
var y = c().svg.withConfig({
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
large: (0, l.css)([ "width:40px;height:40px;" ])
|
|
96
96
|
}), (function(e) {
|
|
97
97
|
var t = e.$animated;
|
|
98
|
-
return t && (0, l.css)([ "animation:", " ", " infinite linear,", " 500ms cubic-bezier(0.01,0,0,1);" ],
|
|
98
|
+
return t && (0, l.css)([ "animation:", " ", " infinite linear,", " 500ms cubic-bezier(0.01,0,0,1);" ], u, p, m);
|
|
99
99
|
}));
|
|
100
100
|
var v = (0, l.keyframes)([ "0%{stroke-dasharray:110 10;stroke-dashoffset:-5.5;animation-timing-function:cubic-bezier(0.8,0,0.83,1);}50%{stroke-dasharray:26 94;stroke-dashoffset:-152;}100%{stroke-dasharray:110 10;stroke-dashoffset:-246.5;animation-timing-function:cubic-bezier(0.33,0,0.67,1);}" ]);
|
|
101
101
|
var h = (0, l.keyframes)([ "0%{stroke-dasharray:7 113;stroke-dashoffset:3;animation-timing-function:cubic-bezier(0.8,0,0.83,1);}50%{stroke-dasharray:90 30;stroke-dashoffset:-60;}100%{stroke-dasharray:7 113;stroke-dashoffset:-238;animation-timing-function:cubic-bezier(0.33,0,0.67,1);}" ]);
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
if (Object.getOwnPropertySymbols) {
|
|
132
132
|
var i = Object.getOwnPropertySymbols(e);
|
|
133
133
|
for (n = 0; n < i.length; n++) {
|
|
134
|
-
r = i[n], t.
|
|
134
|
+
r = i[n], -1 === t.indexOf(r) && {}.propertyIsEnumerable.call(e, r) && (a[r] = e[r]);
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
return a;
|
|
@@ -141,7 +141,7 @@
|
|
|
141
141
|
var r = {};
|
|
142
142
|
for (var n in e) {
|
|
143
143
|
if ({}.hasOwnProperty.call(e, n)) {
|
|
144
|
-
if (t.
|
|
144
|
+
if (-1 !== t.indexOf(n)) continue;
|
|
145
145
|
r[n] = e[n];
|
|
146
146
|
}
|
|
147
147
|
}
|
|
@@ -157,7 +157,7 @@
|
|
|
157
157
|
// @docs-props-type WaitSpinnerPropsBase
|
|
158
158
|
var f = (0, s.useAnimationToggle)() === "on";
|
|
159
159
|
|
|
160
|
-
return n().createElement(
|
|
160
|
+
return n().createElement(d, k({
|
|
161
161
|
"data-test": "wait-spinner",
|
|
162
162
|
ref: t
|
|
163
163
|
}, c), n().createElement(y, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@splunk/react-ui",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.2.0",
|
|
4
4
|
"description": "Library of React components that implement the Splunk design language",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Splunk Inc.",
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
"@dnd-kit/sortable": "^8.0.0",
|
|
45
45
|
"@dnd-kit/utilities": "^3.2.2",
|
|
46
46
|
"@react-spring/web": "^9.7.5",
|
|
47
|
-
"@splunk/react-icons": "^5.
|
|
48
|
-
"@splunk/themes": "^1.
|
|
49
|
-
"@splunk/ui-utils": "^1.
|
|
47
|
+
"@splunk/react-icons": "^5.2.0",
|
|
48
|
+
"@splunk/themes": "^1.2.0",
|
|
49
|
+
"@splunk/ui-utils": "^1.10.0",
|
|
50
50
|
"decimal.js-light": "^2.2.3",
|
|
51
51
|
"lodash": "^4.17.14",
|
|
52
52
|
"moment": "^2.29.4",
|
|
@@ -57,21 +57,21 @@
|
|
|
57
57
|
"use-typed-event-listener": "^3.0.0"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
|
-
"@babel/core": "^7.
|
|
61
|
-
"@babel/plugin-transform-runtime": "^7.
|
|
60
|
+
"@babel/core": "^7.28.0",
|
|
61
|
+
"@babel/plugin-transform-runtime": "^7.28.0",
|
|
62
62
|
"@splunk/babel-preset": "^4.0.0",
|
|
63
|
-
"@splunk/docs-gen": "^1.
|
|
63
|
+
"@splunk/docs-gen": "^1.1.0",
|
|
64
64
|
"@splunk/eslint-config": "^5.0.0",
|
|
65
|
-
"@splunk/react-docs": "^1.
|
|
65
|
+
"@splunk/react-docs": "^1.2.0",
|
|
66
66
|
"@splunk/stylelint-config": "^5.0.0",
|
|
67
67
|
"@splunk/test-runner-utils": "^0.4.1",
|
|
68
68
|
"@splunk/webpack-configs": "^7.0.2",
|
|
69
|
-
"@storybook/addon-a11y": "^7.6.
|
|
70
|
-
"@storybook/addon-essentials": "^7.6.
|
|
71
|
-
"@storybook/addon-interactions": "^7.6.
|
|
69
|
+
"@storybook/addon-a11y": "^7.6.20",
|
|
70
|
+
"@storybook/addon-essentials": "^7.6.20",
|
|
71
|
+
"@storybook/addon-interactions": "^7.6.20",
|
|
72
72
|
"@storybook/csf": "^0.0.1",
|
|
73
|
-
"@storybook/manager-api": "^7.6.
|
|
74
|
-
"@storybook/react-webpack5": "^7.6.
|
|
73
|
+
"@storybook/manager-api": "^7.6.20",
|
|
74
|
+
"@storybook/react-webpack5": "^7.6.20",
|
|
75
75
|
"@storybook/test-runner": "0.16.0",
|
|
76
76
|
"@testing-library/cypress": "^9.0.0",
|
|
77
77
|
"@testing-library/dom": "^10.4.0",
|
|
@@ -81,18 +81,17 @@
|
|
|
81
81
|
"@testing-library/user-event": "^14.6.1",
|
|
82
82
|
"@types/jest": "^29.5.14",
|
|
83
83
|
"@types/lodash": "^4.14.156",
|
|
84
|
-
"@types/node": "^
|
|
84
|
+
"@types/node": "^18.16.0",
|
|
85
85
|
"@types/prismjs": "^1.26.3",
|
|
86
86
|
"@types/react": "^18.2.0",
|
|
87
87
|
"@types/react-dom": "^18.2.0",
|
|
88
|
-
"@types/sinon": "^4.3.3",
|
|
89
88
|
"@types/styled-components": "^5.1.0",
|
|
90
89
|
"@types/tinycolor2": "^1.4.2",
|
|
91
90
|
"@types/webdriverio": "^5.0.0",
|
|
92
91
|
"@types/webpack-env": "^1.15.2",
|
|
93
92
|
"@typescript-eslint/eslint-plugin": "^8.29.1",
|
|
94
93
|
"@typescript-eslint/parser": "^8.29.1",
|
|
95
|
-
"axe-html-reporter": "^2.2.
|
|
94
|
+
"axe-html-reporter": "^2.2.11",
|
|
96
95
|
"axe-playwright": "^1.1.11",
|
|
97
96
|
"babel-loader": "^8.3.0",
|
|
98
97
|
"babel-plugin-istanbul": "^5.1.0",
|
|
@@ -128,20 +127,18 @@
|
|
|
128
127
|
"mkdirp": "^0.5.1",
|
|
129
128
|
"playwright": "^1.45.0",
|
|
130
129
|
"prismjs": "^1.29.0",
|
|
131
|
-
"prompt": "^1.0.0",
|
|
132
130
|
"raw-loader": "^4.0.2",
|
|
133
131
|
"react": "^18.2.0",
|
|
134
132
|
"react-docgen": "^5.4.0",
|
|
135
133
|
"react-dom": "^18.2.0",
|
|
136
134
|
"react-test-renderer": "^16.13.1",
|
|
137
|
-
"
|
|
138
|
-
"storybook": "^7.6.17",
|
|
135
|
+
"storybook": "^7.6.20",
|
|
139
136
|
"styled-components": "^5.3.10",
|
|
140
137
|
"stylelint": "^15.11.0",
|
|
141
138
|
"typescript": "^5.8.3",
|
|
142
139
|
"webpack": "^5.88.2",
|
|
143
140
|
"webpack-cli": "^5.1.4",
|
|
144
|
-
"webpack-dev-server": "^
|
|
141
|
+
"webpack-dev-server": "^5.2.2",
|
|
145
142
|
"webpack-merge": "^5.9.0"
|
|
146
143
|
},
|
|
147
144
|
"engines": {
|
package/stubs-dependencies.d.ts
CHANGED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
// https://github.com/storybookjs/storybook/issues/7677
|
|
2
|
-
// https://github.com/ComponentDriven/csf/blob/next/src/story.test.ts
|
|
3
|
-
declare module '@storybook/react' {
|
|
4
|
-
type Context = {
|
|
5
|
-
id: StoryId;
|
|
6
|
-
kind: StoryKind;
|
|
7
|
-
name: StoryName;
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
type StoryId = string;
|
|
11
|
-
type StoryKind = string;
|
|
12
|
-
type StoryName = string;
|
|
13
|
-
|
|
14
|
-
type StoryFnType<Context, ReturnType> = (context?: Context) => ReturnType;
|
|
15
|
-
|
|
16
|
-
type DecoratorFunctionBase<Context, StoryFn extends StoryFnType<Context, any>> = (
|
|
17
|
-
fn: StoryFn,
|
|
18
|
-
context: Context
|
|
19
|
-
) => ReturnType<StoryFn>;
|
|
20
|
-
|
|
21
|
-
type DefaultParameters = { [name: string]: any };
|
|
22
|
-
|
|
23
|
-
type ParametersType<T extends { [P: string]: any } = DefaultParameters> = {
|
|
24
|
-
[P in keyof T]: T[P];
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
interface KindMetaBase<
|
|
28
|
-
Decorator extends DecoratorFunctionBase<any, any>,
|
|
29
|
-
Parameters extends ParametersType,
|
|
30
|
-
Component = unknown
|
|
31
|
-
> {
|
|
32
|
-
id?: StoryId;
|
|
33
|
-
title: StoryKind;
|
|
34
|
-
component?: Component;
|
|
35
|
-
subcomponents?: Record<string, Component>;
|
|
36
|
-
decorators?: Decorator[];
|
|
37
|
-
parameters?: Parameters;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
interface StoryMetaBase<
|
|
41
|
-
Context,
|
|
42
|
-
StoryFn extends StoryFnType<Context, any>,
|
|
43
|
-
Decorator extends DecoratorFunctionBase<Context, StoryFn>,
|
|
44
|
-
Parameters extends ParametersType
|
|
45
|
-
> {
|
|
46
|
-
(context?: Context): ReturnType<StoryFn>;
|
|
47
|
-
storyName?: StoryName;
|
|
48
|
-
decorators?: Decorator[];
|
|
49
|
-
parameters?: Parameters;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export type StoryFn = (c?: Context) => JSXElementConstructor<Record<string, unknown>>;
|
|
53
|
-
|
|
54
|
-
export type DecoratorFunction = DecoratorFunctionBase<Context, StoryFn>;
|
|
55
|
-
|
|
56
|
-
export type KindMetaWithParams<Parameters, Component = unknown> = KindMetaBase<
|
|
57
|
-
DecoratorFunction,
|
|
58
|
-
Parameters,
|
|
59
|
-
Component
|
|
60
|
-
>;
|
|
61
|
-
|
|
62
|
-
export type KindMeta<Component = unknown> = KindMetaWithParams<DefaultParameters, Component>;
|
|
63
|
-
|
|
64
|
-
export type StoryMeta<Parameters = DefaultParameters> = StoryMetaBase<
|
|
65
|
-
Context,
|
|
66
|
-
StoryFn,
|
|
67
|
-
DecoratorFunction,
|
|
68
|
-
Parameters
|
|
69
|
-
>;
|
|
70
|
-
}
|
package/stubs-splunkui.d.ts
CHANGED
|
@@ -85,6 +85,10 @@ declare module '@splunk/ui-utils/promise' {
|
|
|
85
85
|
function makeCancelable<T>(arg: Promise<T>): CancelablePromise<T>;
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
+
declare module '@splunk/ui-utils/scroll' {
|
|
89
|
+
export function scrollIntoViewIfNeeded(el?: HTMLElement | null): void;
|
|
90
|
+
}
|
|
91
|
+
|
|
88
92
|
declare module '@splunk/ui-utils/style' {
|
|
89
93
|
type ClassNameArg = ClassNameArg | Record<string, unknown> | string | undefined | null;
|
|
90
94
|
function toClassName(...args: ClassNameArg[]): string;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @name Inset
|
|
4
|
+
* @description inset adds padding to the Accordion Panel. This can be set on the Accordion, or individual Panels. Individual Panels can override inset from their parent Accordion.
|
|
5
|
+
*/
|
|
2
6
|
declare const Inset: () => React.JSX.Element;
|
|
3
7
|
export default Inset;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import React, { Component } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @name Controlling animation via a provider
|
|
4
|
+
* @description Shows how to control animation using an AnimationToggleProvider. This can be used to disable animation for most components included in this library.
|
|
5
|
+
*/
|
|
2
6
|
declare class Provider extends Component<object, {
|
|
3
7
|
animatedTransitions: boolean;
|
|
4
8
|
open: boolean;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @name Support reduced motion with a component
|
|
4
|
+
* @description Shows how to use the Animation Toggle component to offer an alternative when the user prefers reduced motion. If reduced motion is preferred but animations are disabled or no reduced motion alternative is set, Animation Toggle considers animations to be disabled.
|
|
5
|
+
*/
|
|
2
6
|
declare const ReducedMotionComponent: () => React.JSX.Element;
|
|
3
7
|
export default ReducedMotionComponent;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @name Support reduced motion with a hook
|
|
4
|
+
* @description Shows how to use the useAnimationToggle hook to offer an alternative when the user prefers reduced motion. If reduced motion is preferred but animations are disabled useAnimationToggle returns 'off'.
|
|
5
|
+
*/
|
|
2
6
|
declare const ReducedMotionHook: () => React.JSX.Element;
|
|
3
7
|
export default ReducedMotionHook;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import React, { Component } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @name Offering animation control with a component
|
|
4
|
+
* @description Shows how to use the Animation Toggle component to render different content based on current animation settings.
|
|
5
|
+
*/
|
|
2
6
|
declare class ToggleComponent extends Component<object, {
|
|
3
7
|
animatedTransitions: boolean;
|
|
4
8
|
}> {
|
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @name Background color
|
|
4
|
+
* @description An Avatar can render a provided background color and will automatically change the text color to satisfy accessibility contrast requirements. For the automatic text color change, backgroundColor must be provided as a string without a represented alpha value.
|
|
5
|
+
*/
|
|
2
6
|
export default function BackgroundColor(): React.JSX.Element;
|
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @name Size
|
|
4
|
+
* @description Avatars can be one of three standard sizes: small, medium (default), or large. The size prop can also be a string if the standard size doesn't fit your use case. Note: using a non-standard size may have unexpected layouts when combined with other components.
|
|
5
|
+
*/
|
|
2
6
|
export default function Size(): React.JSX.Element;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @name Customized click
|
|
4
|
+
* @description A custom onClick handler can be set on the root Breadcrumbs component or individual Breadcrumbs.Item components. If both components have onClick handlers, both handlers will be called when the Breadcrumbs.Item is clicked.
|
|
5
|
+
*/
|
|
2
6
|
declare function CustomizedClick(): React.JSX.Element;
|
|
3
7
|
export default CustomizedClick;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @name Block sized
|
|
4
|
+
* @description By default, Buttons exist in inline blocks. Set inline to false to make the Button the full width of the parent container.
|
|
5
|
+
*/
|
|
2
6
|
declare function Block(): React.JSX.Element;
|
|
3
7
|
export default Block;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @name Disabled
|
|
4
|
+
* @description Consider keeping Buttons enabled and inform the user why the action may have failed or can't be completed. Disabling buttons creates barriers for all users and can exclude people with disabilities. If a Button is passed disabled the default behavior is to render a 'dimmed' button. This ensures the button is still discoverable and can receive focus, but the button cannot not be activated by the user. If necessary, a Button can be completely disabled by setting disabled='disabled'. In these cases, consider contacting us to collaborate on alternatives for a more inclusive experience.
|
|
5
|
+
*/
|
|
2
6
|
declare function Disabled(): React.JSX.Element;
|
|
3
7
|
export default Disabled;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @name With icons
|
|
4
|
+
* @description By default, icons appear to the left of Button text. If you want an icon to appear the right of Button text, add it as a child and correct margins or other positioning as necessary.
|
|
5
|
+
*/
|
|
2
6
|
declare function Icons(): React.JSX.Element;
|
|
3
7
|
export default Icons;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @name With menu indicator
|
|
4
|
+
* @description Add the isMenu prop to display the menu indicator to the right of Button text. See [Dropdown](Dropdown) to learn how to create a dropdown menu.
|
|
5
|
+
*/
|
|
2
6
|
declare function Menus(): React.JSX.Element;
|
|
3
7
|
export default Menus;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @name As a link
|
|
4
|
+
* @description Add the to prop to indicate that the Button behaves as a link. The openInNewContext prop will open the link in a new window or tab and display the external link indicator
|
|
5
|
+
*/
|
|
2
6
|
declare function To(): React.JSX.Element;
|
|
3
7
|
export default To;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @name Basic
|
|
4
|
+
* @description A Card with a title and body. In this example, the content determines the width of the Card. Otherwise, pass in a width to fix the Card width.
|
|
5
|
+
*/
|
|
2
6
|
declare function Basic(): React.JSX.Element;
|
|
3
7
|
export default Basic;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @name Full card
|
|
4
|
+
* @description A Card with a header, body, and footer. In this example, the height and width of the Card are set. Card.Footer must always be last in a Card.
|
|
5
|
+
*/
|
|
2
6
|
declare function FullCard(): React.JSX.Element;
|
|
3
7
|
export default FullCard;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @name Card with heading
|
|
4
|
+
* @description Pass the Heading component into the title prop when there is content underneath to satisfy accessibility requirements.
|
|
5
|
+
*/
|
|
2
6
|
declare function HeadingTitle(): React.JSX.Element;
|
|
3
7
|
export default HeadingTitle;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @name Selectable card
|
|
4
|
+
* @description A Card that is selected when clicked. The card must be provided an onClick in order to use the selected prop.
|
|
5
|
+
*/
|
|
2
6
|
declare function Selectable(): React.JSX.Element;
|
|
3
7
|
export default Selectable;
|
|
@@ -11,6 +11,10 @@ interface InteractiveState {
|
|
|
11
11
|
setAsWidth: boolean;
|
|
12
12
|
hasMaxWidth: boolean;
|
|
13
13
|
}
|
|
14
|
+
/**
|
|
15
|
+
* @name Interactive card layout
|
|
16
|
+
* @description The default layout scales cards equally and wraps them. As a best practice, pass in a minWidth style to each Card to prevent an overly narrow width when the screen is resized. You can pass in a maxWidth style so the Card doesn't get too wide. In this example, the minWidth is initially set to 200.
|
|
17
|
+
*/
|
|
14
18
|
declare class Interactive extends Component<object, InteractiveState> {
|
|
15
19
|
constructor(props: object);
|
|
16
20
|
handleChangeAmount: NumberChangeHandler;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @name Custom colors
|
|
4
|
+
* @description When using custom colors, ensure you are following the WCAG guideline of a contrast ratio >= 4.5:1 between text and background.
|
|
5
|
+
*/
|
|
2
6
|
declare function CustomColors(): React.JSX.Element;
|
|
3
7
|
export default CustomColors;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @name Removable with non-string children
|
|
4
|
+
* @description The descriptive label for a Chip can be overridden by applying an aria-label attribute. This is necessary if passing children that are not of type string.
|
|
5
|
+
*/
|
|
2
6
|
declare const RemovableWithNonStringChildren: () => React.JSX.Element;
|
|
3
7
|
export default RemovableWithNonStringChildren;
|