@splunk/react-ui 4.5.3 → 4.8.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 +7 -7
- package/Anchor.js +2 -2
- package/Animation.js +2 -2
- package/AnimationToggle.js +2 -2
- package/Box.js +2 -2
- package/Button.js +13 -13
- package/ButtonGroup.js +4 -4
- package/ButtonSimple.js +6 -6
- package/CHANGELOG.md +47 -1
- package/Calendar.js +16 -16
- package/Card.js +48 -53
- package/CardLayout.js +4 -4
- package/Chip.js +10 -10
- package/Clickable.js +42 -15
- package/CloseButton.js +8 -8
- package/Code.js +8 -7
- package/CollapsiblePanel.js +11 -14
- package/Color.js +48 -48
- package/ColumnLayout.js +4 -4
- package/ComboBox.js +8 -8
- package/Concertina.js +15 -15
- package/ControlGroup.js +30 -37
- package/Date.js +10 -10
- package/DefinitionList.js +2 -2
- package/Dropdown.js +4 -4
- package/EventListener.js +4 -4
- package/FetchOptions.js +8 -8
- package/File.js +27 -27
- package/FormRows.js +21 -23
- package/Heading.js +2 -2
- package/Image.js +14 -14
- package/JSONTree.js +4 -4
- package/Layer.js +10 -10
- package/Link.js +6 -6
- package/List.js +2 -2
- package/Markdown.js +28 -16
- package/Menu.js +135 -70
- package/Message.js +246 -305
- package/MessageBar.d.ts +2 -0
- package/MessageBar.js +789 -0
- package/Modal.js +95 -61
- package/ModalLayer.js +5 -4
- package/Monogram.js +4 -4
- package/Multiselect.js +293 -42
- package/Number.js +8 -8
- package/Paginator.js +24 -24
- package/Paragraph.js +2 -2
- package/Popover.js +12 -12
- package/Progress.js +6 -6
- package/RadioBar.js +25 -12
- package/RadioList.js +2 -2
- package/Resize.js +8 -8
- package/ResultsMenu.js +25 -23
- package/ScreenReaderContent.js +2 -2
- package/Scroll.js +6 -6
- package/ScrollContainerContext.js +2 -2
- package/Search.js +14 -14
- package/Select.js +286 -36
- package/SidePanel.js +6 -6
- package/Slider.js +20 -14
- package/SlidingPanels.js +4 -4
- package/StaticContent.js +2 -2
- package/StepBar.js +18 -18
- package/Switch.js +17 -31
- package/TabBar.js +60 -46
- package/TabLayout.js +4 -4
- package/Table.js +63 -55
- package/Text.js +163 -146
- package/Tooltip.js +14 -14
- package/TransitionOpen.js +69 -44
- package/WaitSpinner.js +2 -2
- package/cypress/plugins/index.ts +15 -0
- package/cypress/support/commands.ts +1 -0
- package/cypress/support/index.ts +10 -0
- package/cypress.json +12 -0
- package/package.json +27 -8
- package/stubs-splunkui.d.ts +1 -0
- package/types/src/Accordion/docs/examples/Controlled.d.ts +2 -0
- package/types/src/Accordion/docs/examples/FixedHeight.d.ts +2 -0
- package/types/src/Accordion/docs/examples/InDropdown.d.ts +2 -0
- package/types/src/Accordion/docs/examples/Inset.d.ts +2 -0
- package/types/src/Accordion/docs/examples/Uncontrolled.d.ts +2 -0
- package/types/src/Anchor/docs/examples/Basic.d.ts +2 -0
- package/types/src/Animation/Animation.d.ts +0 -1
- package/types/src/AnimationToggle/docs/examples/Provider.d.ts +11 -0
- package/types/src/AnimationToggle/docs/examples/ReducedMotionComponent.d.ts +2 -0
- package/types/src/AnimationToggle/docs/examples/ReducedMotionHook.d.ts +2 -0
- package/types/src/AnimationToggle/docs/examples/ToggleComponent.d.ts +9 -0
- package/types/src/AnimationToggle/docs/examples/ToggleHook.d.ts +2 -0
- package/types/src/Button/docs/examples/Basic.d.ts +2 -0
- package/types/src/Button/docs/examples/Block.d.ts +2 -0
- package/types/src/Button/docs/examples/Disabled.d.ts +2 -0
- package/types/src/Button/docs/examples/Icons.d.ts +2 -0
- package/types/src/Button/docs/examples/Menus.d.ts +2 -0
- package/types/src/Button/docs/examples/Selected.d.ts +2 -0
- package/types/src/Button/docs/examples/To.d.ts +2 -0
- package/types/src/Button/docs/examples/Truncated.d.ts +2 -0
- package/types/src/Button/docs/examples/prisma/Basic.d.ts +2 -0
- package/types/src/Button/docs/examples/prisma/Block.d.ts +2 -0
- package/types/src/Button/docs/examples/prisma/Disabled.d.ts +2 -0
- package/types/src/Button/docs/examples/prisma/Icons.d.ts +2 -0
- package/types/src/Button/docs/examples/prisma/Menus.d.ts +2 -0
- package/types/src/Button/docs/examples/prisma/To.d.ts +2 -0
- package/types/src/Button/docs/examples/prisma/Truncated.d.ts +2 -0
- package/types/src/ButtonGroup/docs/examples/Basic.d.ts +1 -0
- package/types/src/ButtonGroup/docs/examples/prisma/Basic.d.ts +1 -0
- package/types/src/Calendar/DateTable.d.ts +0 -1
- package/types/src/Card/docs/examples/Basic.d.ts +2 -0
- package/types/src/Card/docs/examples/Clickable.d.ts +2 -0
- package/types/src/Card/docs/examples/Full.d.ts +2 -0
- package/types/src/Card/docs/examples/Images.d.ts +2 -0
- package/types/src/Card/docs/examples/Selectable.d.ts +2 -0
- package/types/src/Card/docs/examples/prisma/Actions.d.ts +2 -0
- package/types/src/CardLayout/docs/examples/Basic.d.ts +2 -0
- package/types/src/CardLayout/docs/examples/Interactive.d.ts +28 -0
- package/types/src/Chip/docs/examples/Appearance.d.ts +2 -0
- package/types/src/Chip/docs/examples/Basic.d.ts +2 -0
- package/types/src/Chip/docs/examples/CustomColors.d.ts +2 -0
- package/types/src/Chip/docs/examples/Disabled.d.ts +2 -0
- package/types/src/Chip/docs/examples/Icon.d.ts +2 -0
- package/types/src/Chip/docs/examples/Removable.d.ts +2 -0
- package/types/src/Chip/docs/examples/prisma/Appearance.d.ts +2 -0
- package/types/src/Clickable/Clickable.d.ts +12 -2
- package/types/src/Clickable/NavigationProvider.d.ts +13 -2
- package/types/src/Clickable/docs/examples/Basic.d.ts +2 -0
- package/types/src/Clickable/docs/examples/NavigationProvider.d.ts +2 -0
- package/types/src/Code/docs/examples/Default.d.ts +2 -0
- package/types/src/Code/docs/examples/HideIndent.d.ts +2 -0
- package/types/src/Code/docs/examples/Language.d.ts +2 -0
- package/types/src/CollapsiblePanel/docs/examples/BasicControlled.d.ts +2 -0
- package/types/src/CollapsiblePanel/docs/examples/BasicUncontrolled.d.ts +2 -0
- package/types/src/CollapsiblePanel/docs/examples/MultiControlled.d.ts +2 -0
- package/types/src/CollapsiblePanel/docs/examples/MultiUncontrolled.d.ts +2 -0
- package/types/src/CollapsiblePanel/docs/examples/TitleWithActions.d.ts +2 -0
- package/types/src/CollapsiblePanel/docs/examples/prisma/BasicControlled.d.ts +2 -0
- package/types/src/CollapsiblePanel/docs/examples/prisma/BasicUncontrolled.d.ts +2 -0
- package/types/src/CollapsiblePanel/docs/examples/prisma/Content.d.ts +1 -0
- package/types/src/CollapsiblePanel/docs/examples/prisma/MultiControlled.d.ts +2 -0
- package/types/src/CollapsiblePanel/docs/examples/prisma/MultiUncontrolled.d.ts +2 -0
- package/types/src/Color/Color.d.ts +3 -3
- package/types/src/Color/docs/examples/Controlled.d.ts +2 -0
- package/types/src/Color/docs/examples/Null.d.ts +2 -0
- package/types/src/Color/docs/examples/ThemeVariables.d.ts +1 -0
- package/types/src/Color/docs/examples/Transparent.d.ts +2 -0
- package/types/src/Color/docs/examples/Uncontrolled.d.ts +2 -0
- package/types/src/Color/docs/examples/prisma/Controlled.d.ts +2 -0
- package/types/src/Color/docs/examples/prisma/CustomizedPalette.d.ts +1 -0
- package/types/src/Color/docs/examples/prisma/HideInput.d.ts +2 -0
- package/types/src/Color/docs/examples/prisma/ThemeVariables.d.ts +1 -0
- package/types/src/Color/docs/examples/prisma/Uncontrolled.d.ts +2 -0
- package/types/src/ColumnLayout/docs/examples/AlignItems.d.ts +2 -0
- package/types/src/ColumnLayout/docs/examples/Basic.d.ts +2 -0
- package/types/src/ColumnLayout/docs/examples/Dividers.d.ts +2 -0
- package/types/src/ColumnLayout/docs/examples/Gutters.d.ts +2 -0
- package/types/src/ComboBox/docs/examples/Controlled.d.ts +2 -0
- package/types/src/ComboBox/docs/examples/Fetching.d.ts +2 -0
- package/types/src/ComboBox/docs/examples/Headings.d.ts +1 -0
- package/types/src/ComboBox/docs/examples/Label.d.ts +2 -0
- package/types/src/ComboBox/docs/examples/LoadMoreOnScrollBottom.d.ts +2 -0
- package/types/src/ComboBox/docs/examples/Uncontrolled.d.ts +2 -0
- package/types/src/Concertina/docs/examples/Basic.d.ts +2 -0
- package/types/src/Concertina/docs/examples/Disabled.d.ts +9 -0
- package/types/src/Concertina/docs/examples/Status.d.ts +2 -0
- package/types/src/ControlGroup/docs/examples/Basic.d.ts +2 -0
- package/types/src/ControlGroup/docs/examples/CustomizedLabelTarget.d.ts +10 -0
- package/types/src/ControlGroup/docs/examples/Error.d.ts +2 -0
- package/types/src/ControlGroup/docs/examples/HelpWithLinks.d.ts +2 -0
- package/types/src/ControlGroup/docs/examples/LabelTop.d.ts +2 -0
- package/types/src/ControlGroup/docs/examples/LayoutFill.d.ts +2 -0
- package/types/src/ControlGroup/docs/examples/LayoutFillJoin.d.ts +2 -0
- package/types/src/ControlGroup/docs/examples/LayoutNone.d.ts +2 -0
- package/types/src/Date/Date.d.ts +3 -3
- package/types/src/Date/Icon.d.ts +0 -1
- package/types/src/Date/docs/examples/Basic.d.ts +2 -0
- package/types/src/Date/docs/examples/Controlled.d.ts +10 -0
- package/types/src/Date/docs/examples/CustomDate.d.ts +2 -0
- package/types/src/Date/docs/examples/Disabled.d.ts +2 -0
- package/types/src/Date/docs/examples/HighlightToday.d.ts +10 -0
- package/types/src/DefinitionList/docs/examples/Basic.d.ts +2 -0
- package/types/src/DefinitionList/docs/examples/Customize.d.ts +2 -0
- package/types/src/Dropdown/docs/examples/Basic.d.ts +2 -0
- package/types/src/Dropdown/docs/examples/BasicMenu.d.ts +2 -0
- package/types/src/Dropdown/docs/examples/ControlledDropdown.d.ts +2 -0
- package/types/src/Dropdown/docs/examples/Dialog.d.ts +2 -0
- package/types/src/Dropdown/docs/examples/OtherToggles.d.ts +2 -0
- package/types/src/Dropdown/docs/examples/ScrollContainer.d.ts +2 -0
- package/types/src/Dropdown/docs/examples/ScrollingMenu.d.ts +2 -0
- package/types/src/Dropdown/docs/examples/prisma/Basic.d.ts +2 -0
- package/types/src/Dropdown/docs/examples/prisma/BasicMenu.d.ts +2 -0
- package/types/src/Dropdown/docs/examples/prisma/ControlledDropdown.d.ts +2 -0
- package/types/src/Dropdown/docs/examples/prisma/Dialog.d.ts +2 -0
- package/types/src/Dropdown/docs/examples/prisma/OtherToggles.d.ts +2 -0
- package/types/src/Dropdown/docs/examples/prisma/ScrollingMenu.d.ts +2 -0
- package/types/src/File/Icon.d.ts +0 -1
- package/types/src/File/IconCloud.d.ts +0 -1
- package/types/src/File/PaperClip.d.ts +0 -1
- package/types/src/File/Retry.d.ts +0 -1
- package/types/src/File/Trash.d.ts +0 -1
- package/types/src/File/docs/examples/CustomChildren.d.ts +12 -0
- package/types/src/File/docs/examples/CustomizedMessages.d.ts +1 -0
- package/types/src/File/docs/examples/Disabled.d.ts +12 -0
- package/types/src/File/docs/examples/DropAnywhere.d.ts +15 -0
- package/types/src/File/docs/examples/Error.d.ts +1 -0
- package/types/src/File/docs/examples/FullScreen.d.ts +15 -0
- package/types/src/File/docs/examples/Multi.d.ts +16 -0
- package/types/src/File/docs/examples/Progress.d.ts +15 -0
- package/types/src/File/docs/examples/Single.d.ts +12 -0
- package/types/src/File/docs/examples/prisma/Disabled.d.ts +12 -0
- package/types/src/File/docs/examples/prisma/Error.d.ts +1 -0
- package/types/src/File/docs/examples/prisma/Progress.d.ts +1 -0
- package/types/src/FormRows/docs/examples/Basic.d.ts +12 -0
- package/types/src/FormRows/docs/examples/Header.d.ts +12 -0
- package/types/src/FormRows/docs/examples/Menu.d.ts +13 -0
- package/types/src/FormRows/docs/examples/ReorderOnly.d.ts +10 -0
- package/types/src/Heading/docs/examples/Basic.d.ts +2 -0
- package/types/src/Image/docs/examples/Basic.d.ts +2 -0
- package/types/src/JSONTree/docs/examples/Basic.d.ts +1 -0
- package/types/src/JSONTree/docs/examples/Events.d.ts +13 -0
- package/types/src/Layer/docs/examples/Basic.d.ts +2 -0
- package/types/src/Link/docs/examples/Basic.d.ts +2 -0
- package/types/src/Link/docs/examples/Disabled.d.ts +2 -0
- package/types/src/Link/docs/examples/Inline.d.ts +2 -0
- package/types/src/Link/docs/examples/NewTab.d.ts +2 -0
- package/types/src/List/docs/examples/Decimal.d.ts +2 -0
- package/types/src/List/docs/examples/Disc.d.ts +2 -0
- package/types/src/List/docs/examples/LowerAlpha.d.ts +2 -0
- package/types/src/List/docs/examples/UpperAlpha.d.ts +2 -0
- package/types/src/Markdown/docs/examples/Basic.d.ts +2 -0
- package/types/src/Markdown/docs/examples/I18n.d.ts +2 -0
- package/types/src/Markdown/docs/examples/RenderProps.d.ts +2 -0
- package/types/src/Markdown/renderers/MarkdownCode.d.ts +0 -1
- package/types/src/Markdown/renderers/MarkdownCodeBlock.d.ts +0 -1
- package/types/src/Markdown/renderers/MarkdownImage.d.ts +0 -1
- package/types/src/Menu/Divider.d.ts +0 -1
- package/types/src/Menu/docs/examples/Basic.d.ts +2 -0
- package/types/src/Menu/docs/examples/Complex.d.ts +2 -0
- package/types/src/Menu/docs/examples/Descriptions.d.ts +2 -0
- package/types/src/Menu/docs/examples/Disabled.d.ts +2 -0
- package/types/src/Menu/docs/examples/Dividers.d.ts +2 -0
- package/types/src/Menu/docs/examples/Headings.d.ts +2 -0
- package/types/src/Menu/docs/examples/Icons.d.ts +2 -0
- package/types/src/Menu/docs/examples/Links.d.ts +2 -0
- package/types/src/Menu/docs/examples/MatchRanges.d.ts +2 -0
- package/types/src/Menu/docs/examples/Selectable.d.ts +2 -0
- package/types/src/Menu/docs/examples/SelectableWithIcons.d.ts +2 -0
- package/types/src/Menu/docs/examples/Truncate.d.ts +2 -0
- package/types/src/Message/Link.d.ts +2 -0
- package/types/src/Message/Message.d.ts +6 -1
- package/types/src/Message/docs/examples/Basic.d.ts +2 -0
- package/types/src/Message/docs/examples/Content.d.ts +2 -0
- package/types/src/Message/docs/examples/Fill.d.ts +2 -0
- package/types/src/Message/docs/examples/Removable.d.ts +2 -0
- package/types/src/Message/docs/examples/prisma/Title.d.ts +2 -0
- package/types/src/MessageBar/MessageBar.d.ts +28 -0
- package/types/src/MessageBar/docs/examples/Types.d.ts +2 -0
- package/types/src/MessageBar/index.d.ts +2 -0
- package/types/src/Modal/Modal.d.ts +3 -0
- package/types/src/Modal/ModalContext.d.ts +6 -0
- package/types/src/Modal/docs/examples/Basic.d.ts +2 -0
- package/types/src/Modal/docs/examples/InitialFocus.d.ts +2 -0
- package/types/src/Modal/docs/examples/TypicalUsage.d.ts +2 -0
- package/types/src/Modal/docs/examples/Undismissable.d.ts +2 -0
- package/types/src/Modal/docs/examples/prisma/TypicalUsage.d.ts +2 -0
- package/types/src/Monogram/Monogram.d.ts +2 -2
- package/types/src/Monogram/docs/examples/BackgroundAuto.d.ts +1 -0
- package/types/src/Monogram/docs/examples/BackgroundCustom.d.ts +1 -0
- package/types/src/Monogram/docs/examples/Basic.d.ts +1 -0
- package/types/src/Monogram/docs/examples/Interactive.d.ts +1 -0
- package/types/src/Monogram/docs/examples/Size.d.ts +1 -0
- package/types/src/Multiselect/Multiselect.d.ts +1 -0
- package/types/src/Multiselect/docs/examples/Children.d.ts +10 -0
- package/types/src/Multiselect/docs/examples/Compact.d.ts +2 -0
- package/types/src/Multiselect/docs/examples/Controlled.d.ts +10 -0
- package/types/src/Multiselect/docs/examples/CustomizeSelected.d.ts +10 -0
- package/types/src/Multiselect/docs/examples/Disabled.d.ts +10 -0
- package/types/src/Multiselect/docs/examples/Error.d.ts +10 -0
- package/types/src/Multiselect/docs/examples/Fetching.d.ts +23 -0
- package/types/src/Multiselect/docs/examples/Headings.d.ts +1 -0
- package/types/src/Multiselect/docs/examples/Icons.d.ts +2 -0
- package/types/src/Multiselect/docs/examples/LoadMoreOnScrollBottom.d.ts +26 -0
- package/types/src/Multiselect/docs/examples/NewValues.d.ts +10 -0
- package/types/src/Multiselect/docs/examples/TabInput.d.ts +10 -0
- package/types/src/Multiselect/docs/examples/Uncontrolled.d.ts +2 -0
- package/types/src/Number/IncrementIcon.d.ts +0 -1
- package/types/src/Number/Number.d.ts +3 -3
- package/types/src/Number/docs/examples/Basic.d.ts +10 -0
- package/types/src/Number/docs/examples/Disabled.d.ts +2 -0
- package/types/src/Number/docs/examples/Error.d.ts +2 -0
- package/types/src/Number/docs/examples/Limits.d.ts +10 -0
- package/types/src/Number/docs/examples/Locale.d.ts +10 -0
- package/types/src/Number/docs/examples/Uncontrolled.d.ts +2 -0
- package/types/src/Paginator/PageSeparator.d.ts +0 -1
- package/types/src/Paginator/docs/examples/Basic.d.ts +2 -0
- package/types/src/Paragraph/docs/examples/Basic.d.ts +2 -0
- package/types/src/Popover/Popover.d.ts +1 -2
- package/types/src/Popover/docs/examples/Basic.d.ts +2 -0
- package/types/src/Progress/docs/examples/Basic.d.ts +2 -0
- package/types/src/Progress/docs/examples/prisma/Type.d.ts +2 -0
- package/types/src/RadioBar/Option.d.ts +13 -3
- package/types/src/RadioBar/RadioBar.d.ts +5 -3
- package/types/src/RadioBar/docs/examples/AdornmentAriaExamples.d.ts +2 -0
- package/types/src/RadioBar/docs/examples/Basic.d.ts +2 -0
- package/types/src/RadioBar/docs/examples/Disabled.d.ts +2 -0
- package/types/src/RadioBar/docs/examples/Error.d.ts +2 -0
- package/types/src/RadioBar/docs/examples/Uncontrolled.d.ts +2 -0
- package/types/src/RadioList/docs/examples/Basic.d.ts +2 -0
- package/types/src/RadioList/docs/examples/Composing.d.ts +2 -0
- package/types/src/RadioList/docs/examples/Disabled.d.ts +2 -0
- package/types/src/RadioList/docs/examples/Error.d.ts +2 -0
- package/types/src/RadioList/docs/examples/Row.d.ts +2 -0
- package/types/src/RadioList/docs/examples/Uncontrolled.d.ts +2 -0
- package/types/src/Resize/docs/examples/Appearance.d.ts +2 -0
- package/types/src/Resize/docs/examples/Percentage.d.ts +2 -0
- package/types/src/Resize/docs/examples/SizingInner.d.ts +2 -0
- package/types/src/Resize/docs/examples/SizingOuter.d.ts +2 -0
- package/types/src/Resize/docs/examples/Typical.d.ts +2 -0
- package/types/src/ScreenReaderContent/docs/examples/Basic.d.ts +2 -0
- package/types/src/Scroll/docs/examples/Controlled.d.ts +13 -0
- package/types/src/Scroll/docs/examples/Uncontrolled.d.ts +2 -0
- package/types/src/ScrollContainerContext/docs/examples/Consumer.d.ts +2 -0
- package/types/src/ScrollContainerContext/docs/examples/Provider.d.ts +2 -0
- package/types/src/Search/docs/examples/Controlled.d.ts +2 -0
- package/types/src/Search/docs/examples/Loading.d.ts +2 -0
- package/types/src/Search/docs/examples/Options.d.ts +2 -0
- package/types/src/Search/docs/examples/Results.d.ts +2 -0
- package/types/src/Select/Select.d.ts +8 -3
- package/types/src/Select/SelectBase.d.ts +17 -5
- package/types/src/Select/docs/examples/Appearance.d.ts +14 -0
- package/types/src/Select/docs/examples/Basic.d.ts +10 -0
- package/types/src/Select/docs/examples/Children.d.ts +10 -0
- package/types/src/Select/docs/examples/Descriptions.d.ts +10 -0
- package/types/src/Select/docs/examples/Error.d.ts +2 -0
- package/types/src/Select/docs/examples/Fetching.d.ts +23 -0
- package/types/src/Select/docs/examples/Filter.d.ts +10 -0
- package/types/src/Select/docs/examples/Headings.d.ts +10 -0
- package/types/src/Select/docs/examples/Icons.d.ts +10 -0
- package/types/src/Select/docs/examples/LoadMoreOnScrollBottom.d.ts +25 -0
- package/types/src/Select/docs/examples/Prefix.d.ts +10 -0
- package/types/src/Select/docs/examples/Truncate.d.ts +10 -0
- package/types/src/Select/docs/examples/Uncontrolled.d.ts +2 -0
- package/types/src/Select/docs/examples/prisma/Appearance.d.ts +14 -0
- package/types/src/Select/matchUtils.d.ts +12 -0
- package/types/src/SidePanel/docs/examples/Basic.d.ts +2 -0
- package/types/src/SidePanel/docs/examples/ChangeSize.d.ts +2 -0
- package/types/src/SidePanel/docs/examples/Composition.d.ts +2 -0
- package/types/src/Slider/Slider.d.ts +3 -3
- package/types/src/Slider/docs/examples/Basic.d.ts +2 -0
- package/types/src/Slider/docs/examples/Controlled.d.ts +12 -0
- package/types/src/Slider/docs/examples/CustomLabels.d.ts +12 -0
- package/types/src/Slider/docs/examples/Disabled.d.ts +2 -0
- package/types/src/Slider/docs/examples/StepMarks.d.ts +2 -0
- package/types/src/Slider/docs/examples/prisma/Error.d.ts +2 -0
- package/types/src/SlidingPanels/docs/examples/Basic.d.ts +11 -0
- package/types/src/SlidingPanels/docs/examples/Dropdown.d.ts +11 -0
- package/types/src/SlidingPanels/docs/examples/Modal.d.ts +14 -0
- package/types/src/StaticContent/docs/examples/Basic.d.ts +2 -0
- package/types/src/StaticContent/docs/examples/FieldValue.d.ts +2 -0
- package/types/src/StepBar/docs/examples/Basic.d.ts +2 -0
- package/types/src/StepBar/docs/examples/prisma/Error.d.ts +2 -0
- package/types/src/Switch/CheckIcon.d.ts +0 -1
- package/types/src/Switch/Switch.d.ts +7 -7
- package/types/src/Switch/docs/examples/Basic.d.ts +10 -0
- package/types/src/Switch/docs/examples/Disabled.d.ts +10 -0
- package/types/src/Switch/docs/examples/Error.d.ts +2 -0
- package/types/src/TabBar/docs/examples/Basic.d.ts +2 -0
- package/types/src/TabBar/docs/examples/IconsInline.d.ts +2 -0
- package/types/src/TabBar/docs/examples/IconsSmall.d.ts +2 -0
- package/types/src/TabBar/docs/examples/Tooltips.d.ts +2 -0
- package/types/src/TabBar/docs/examples/Vertical.d.ts +2 -0
- package/types/src/TabBar/docs/examples/VerticalSmallIcons.d.ts +2 -0
- package/types/src/TabBar/docs/examples/WithCount.d.ts +2 -0
- package/types/src/TabBar/docs/examples/prisma/Context.d.ts +2 -0
- package/types/src/TabBar/docs/examples/prisma/Disabled.d.ts +2 -0
- package/types/src/TabLayout/docs/examples/AutoActivate.d.ts +2 -0
- package/types/src/TabLayout/docs/examples/Controlled.d.ts +2 -0
- package/types/src/TabLayout/docs/examples/Icons.d.ts +2 -0
- package/types/src/TabLayout/docs/examples/Uncontrolled.d.ts +2 -0
- package/types/src/TabLayout/docs/examples/Vertical.d.ts +2 -0
- package/types/src/TabLayout/docs/examples/VerticalIcons.d.ts +2 -0
- package/types/src/TabLayout/docs/examples/prisma/Context.d.ts +2 -0
- package/types/src/Table/DragHandle.d.ts +0 -1
- package/types/src/Table/HeadExpandRowsIcon.d.ts +0 -1
- package/types/src/Table/Toggle.d.ts +0 -1
- package/types/src/Table/docs/examples/Basic.d.ts +2 -0
- package/types/src/Table/docs/examples/Click.d.ts +16 -0
- package/types/src/Table/docs/examples/ClickRows.d.ts +16 -0
- package/types/src/Table/docs/examples/Complex.d.ts +39 -0
- package/types/src/Table/docs/examples/DockedHeader.d.ts +2 -0
- package/types/src/Table/docs/examples/ExpandableRows.d.ts +2 -0
- package/types/src/Table/docs/examples/ExpandableRowsControlled.d.ts +2 -0
- package/types/src/Table/docs/examples/FixedHeader.d.ts +2 -0
- package/types/src/Table/docs/examples/HeadDropdownCell.d.ts +18 -0
- package/types/src/Table/docs/examples/ReorderColumns.d.ts +21 -0
- package/types/src/Table/docs/examples/ReorderRows.d.ts +21 -0
- package/types/src/Table/docs/examples/Resizable.d.ts +23 -0
- package/types/src/Table/docs/examples/ResizableFill.d.ts +23 -0
- package/types/src/Table/docs/examples/Selectable.d.ts +18 -0
- package/types/src/Table/docs/examples/SortableColumns.d.ts +12 -0
- package/types/src/Table/docs/examples/prisma/Basic.d.ts +2 -0
- package/types/src/Table/docs/examples/prisma/Complex.d.ts +48 -0
- package/types/src/Table/docs/examples/prisma/DockedHeader.d.ts +2 -0
- package/types/src/Table/docs/examples/prisma/RowActions.d.ts +39 -0
- package/types/src/Text/IconOutlinedHide.d.ts +0 -1
- package/types/src/Text/IconOutlinedView.d.ts +0 -1
- package/types/src/Text/Text.d.ts +10 -3
- package/types/src/Text/docs/examples/Basic.d.ts +10 -0
- package/types/src/Text/docs/examples/CustomizedIcon.d.ts +2 -0
- package/types/src/Text/docs/examples/Disabled.d.ts +2 -0
- package/types/src/Text/docs/examples/Error.d.ts +10 -0
- package/types/src/Text/docs/examples/Inline.d.ts +10 -0
- package/types/src/Text/docs/examples/Multiline.d.ts +10 -0
- package/types/src/Text/docs/examples/Password.d.ts +10 -0
- package/types/src/Text/docs/examples/Search.d.ts +10 -0
- package/types/src/Text/docs/examples/Uncontrolled.d.ts +2 -0
- package/types/src/Text/docs/examples/prisma/Multiline.d.ts +10 -0
- package/types/src/Text/docs/examples/prisma/Search.d.ts +10 -0
- package/types/src/Tooltip/InfoIcon.d.ts +0 -1
- package/types/src/Tooltip/docs/examples/Basic.d.ts +2 -0
- package/types/src/Tooltip/docs/examples/ContentRelationship.d.ts +2 -0
- package/types/src/Tooltip/docs/examples/Controlled.d.ts +12 -0
- package/types/src/Tooltip/docs/examples/CustomContent.d.ts +2 -0
- package/types/src/Tooltip/docs/examples/CustomDelay.d.ts +2 -0
- package/types/src/TransitionOpen/TransitionOpen.d.ts +1 -0
- package/types/src/TransitionOpen/docs/examples/ExpandHeight.d.ts +2 -0
- package/types/src/TransitionOpen/docs/examples/ExpandWidth.d.ts +2 -0
- package/types/src/TransitionOpen/docs/examples/None.d.ts +2 -0
- package/types/src/TransitionOpen/docs/examples/SlideFromBottom.d.ts +2 -0
- package/types/src/TransitionOpen/docs/examples/SlideFromLeft.d.ts +2 -0
- package/types/src/TransitionOpen/docs/examples/SlideFromRight.d.ts +2 -0
- package/types/src/TransitionOpen/docs/examples/SlideFromTop.d.ts +2 -0
- package/types/src/WaitSpinner/docs/examples/Basic.d.ts +2 -0
- package/types/src/WaitSpinner/docs/examples/prisma/Basic.d.ts +2 -0
- package/types/src/fixtures/FetchOptions.d.ts +2 -0
- package/types/src/fixtures/text.d.ts +1 -0
- package/types/src/icons/Alert.d.ts +0 -1
- package/types/src/icons/AlertFilled.d.ts +0 -1
- package/types/src/icons/CaretDown.d.ts +0 -1
- package/types/src/icons/CaretRight.d.ts +0 -1
- package/types/src/icons/Check.d.ts +0 -1
- package/types/src/icons/ChevronDown.d.ts +0 -1
- package/types/src/icons/ChevronLeft.d.ts +0 -1
- package/types/src/icons/ChevronRight.d.ts +0 -1
- package/types/src/icons/CrossMark.d.ts +0 -1
- package/types/src/icons/External.d.ts +0 -1
- package/types/src/icons/InfoFilled.d.ts +0 -1
- package/types/src/icons/More.d.ts +0 -1
- package/types/src/icons/MoreVertical.d.ts +0 -1
- package/types/src/icons/Plus.d.ts +0 -1
- package/types/src/icons/SVG.d.ts +0 -1
- package/types/src/icons/Search.d.ts +0 -1
- package/types/src/icons/Sort.d.ts +0 -1
- package/types/src/icons/SortedDown.d.ts +0 -1
- package/types/src/icons/SortedUp.d.ts +0 -1
- package/types/src/icons/Success.d.ts +0 -1
- package/types/src/icons/SuccessFilled.d.ts +0 -1
- package/types/src/icons/WarningFilled.d.ts +0 -1
- package/types/src/utils/types.d.ts +0 -1
- package/unit-test-setup-testing-library.ts +9 -0
- package/usePrevious.js +2 -2
- package/types/src/Message/Banner.d.ts +0 -8
package/TransitionOpen.js
CHANGED
|
@@ -82,7 +82,7 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 175);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 175:
|
|
105
105
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
106
106
|
|
|
107
107
|
"use strict";
|
|
@@ -126,10 +126,10 @@ var external_lodash_ = __webpack_require__(4);
|
|
|
126
126
|
var Animation_ = __webpack_require__(30);
|
|
127
127
|
|
|
128
128
|
// EXTERNAL MODULE: external "@splunk/ui-utils/focus"
|
|
129
|
-
var focus_ = __webpack_require__(
|
|
129
|
+
var focus_ = __webpack_require__(26);
|
|
130
130
|
|
|
131
131
|
// EXTERNAL MODULE: external "@splunk/ui-utils/style"
|
|
132
|
-
var style_ = __webpack_require__(
|
|
132
|
+
var style_ = __webpack_require__(40);
|
|
133
133
|
|
|
134
134
|
// EXTERNAL MODULE: external "react-spring"
|
|
135
135
|
var external_react_spring_ = __webpack_require__(18);
|
|
@@ -291,7 +291,8 @@ var TransitionOpen_TransitionOpen = /*#__PURE__*/function (_Component) {
|
|
|
291
291
|
});
|
|
292
292
|
|
|
293
293
|
_defineProperty(_assertThisInitialized(_this), "internalRender", function (_ref) {
|
|
294
|
-
var value = _ref.value
|
|
294
|
+
var value = _ref.value,
|
|
295
|
+
transform = _ref.transform;
|
|
295
296
|
var _this$props2 = _this.props,
|
|
296
297
|
animation = _this$props2.animation,
|
|
297
298
|
className = _this$props2.className,
|
|
@@ -304,37 +305,19 @@ var TransitionOpen_TransitionOpen = /*#__PURE__*/function (_Component) {
|
|
|
304
305
|
outerId = _this$props2.outerId,
|
|
305
306
|
outerStyle = _this$props2.outerStyle;
|
|
306
307
|
var animating = _this.state.animating;
|
|
307
|
-
var offset = value.to(function (v) {
|
|
308
|
-
return _this.state.value || 0 - v;
|
|
309
|
-
});
|
|
310
|
-
var transform;
|
|
311
308
|
var dimension;
|
|
312
309
|
|
|
313
310
|
if (animating) {
|
|
314
311
|
switch (animation) {
|
|
315
312
|
case 'slideFromTop':
|
|
316
|
-
transform = "translateY(-".concat(offset, "px)");
|
|
317
|
-
dimension = 'height';
|
|
318
|
-
break;
|
|
319
|
-
|
|
320
313
|
case 'slideFromBottom':
|
|
314
|
+
case 'expandHeight':
|
|
321
315
|
case 'none':
|
|
322
316
|
dimension = 'height';
|
|
323
317
|
break;
|
|
324
318
|
|
|
325
319
|
case 'slideFromLeft':
|
|
326
|
-
transform = "translateX(".concat(-offset, "px)");
|
|
327
|
-
dimension = 'width';
|
|
328
|
-
break;
|
|
329
|
-
|
|
330
320
|
case 'slideFromRight':
|
|
331
|
-
dimension = 'width';
|
|
332
|
-
break;
|
|
333
|
-
|
|
334
|
-
case 'expandHeight':
|
|
335
|
-
dimension = 'height';
|
|
336
|
-
break;
|
|
337
|
-
|
|
338
321
|
case 'expandWidth':
|
|
339
322
|
dimension = 'width';
|
|
340
323
|
break;
|
|
@@ -365,6 +348,58 @@ var TransitionOpen_TransitionOpen = /*#__PURE__*/function (_Component) {
|
|
|
365
348
|
}), children));
|
|
366
349
|
});
|
|
367
350
|
|
|
351
|
+
_defineProperty(_assertThisInitialized(_this), "getSpringTransition", function () {
|
|
352
|
+
var _this$props3 = _this.props,
|
|
353
|
+
open = _this$props3.open,
|
|
354
|
+
animation = _this$props3.animation;
|
|
355
|
+
var value = _this.state.value;
|
|
356
|
+
var toValue = {
|
|
357
|
+
value: open ? value : 0
|
|
358
|
+
};
|
|
359
|
+
var fromValue = {
|
|
360
|
+
value: open ? 0 : value
|
|
361
|
+
};
|
|
362
|
+
var config = {
|
|
363
|
+
precision: 1
|
|
364
|
+
}; // Only use precision when not using transform, otherwise transform animation will break
|
|
365
|
+
// Expansion doesn't require a valid value; the subsequent render animates it.
|
|
366
|
+
|
|
367
|
+
if (animation === 'expandWidth' || animation === 'expandHeight' || animation === 'none') {
|
|
368
|
+
return {
|
|
369
|
+
to: toValue,
|
|
370
|
+
config: config
|
|
371
|
+
};
|
|
372
|
+
} // Slide transitions require a valid value, render without transition first.
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
if (!value) {
|
|
376
|
+
return null;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
if (animation !== 'slideFromTop' && animation !== 'slideFromLeft') {
|
|
380
|
+
// Return the standard transition if not using a transform.
|
|
381
|
+
return {
|
|
382
|
+
to: toValue,
|
|
383
|
+
from: fromValue,
|
|
384
|
+
config: config
|
|
385
|
+
};
|
|
386
|
+
} // The top and left directions require an additional transform of their inner content to match the outer dimension animation.
|
|
387
|
+
// This is needed to achieve a clipping effect from the outer div, rather than the consumer providing their own.
|
|
388
|
+
|
|
389
|
+
|
|
390
|
+
var orientation = animation === 'slideFromTop' ? 'Y' : 'X';
|
|
391
|
+
var toTransform = "translate".concat(orientation, "(").concat(open ? 0 : -value, "px)");
|
|
392
|
+
var fromTransform = "translate".concat(orientation, "(").concat(open ? -value : 0, "px)");
|
|
393
|
+
return {
|
|
394
|
+
to: _objectSpread({
|
|
395
|
+
transform: toTransform
|
|
396
|
+
}, toValue),
|
|
397
|
+
from: _objectSpread({
|
|
398
|
+
transform: fromTransform
|
|
399
|
+
}, fromValue)
|
|
400
|
+
};
|
|
401
|
+
});
|
|
402
|
+
|
|
368
403
|
_this.state = {
|
|
369
404
|
animating: props.animateOnMount ? props.open : false,
|
|
370
405
|
innerEl: null,
|
|
@@ -379,7 +414,7 @@ var TransitionOpen_TransitionOpen = /*#__PURE__*/function (_Component) {
|
|
|
379
414
|
value: function componentDidUpdate() {
|
|
380
415
|
var value = this.getValue(this.state.innerEl);
|
|
381
416
|
|
|
382
|
-
if (this.state.value !== value) {
|
|
417
|
+
if (this.state.value !== value && !this.state.animating) {
|
|
383
418
|
this.setState({
|
|
384
419
|
value: value
|
|
385
420
|
}); // eslint-disable-line react/no-did-update-set-state
|
|
@@ -388,21 +423,11 @@ var TransitionOpen_TransitionOpen = /*#__PURE__*/function (_Component) {
|
|
|
388
423
|
}, {
|
|
389
424
|
key: "render",
|
|
390
425
|
value: function render() {
|
|
391
|
-
var
|
|
392
|
-
|
|
393
|
-
animation = _this$props3.animation;
|
|
394
|
-
var value = this.state.value;
|
|
395
|
-
var animateTo = open ? value : 0;
|
|
396
|
-
return /*#__PURE__*/external_react_default.a.createElement(Animation_["Spring"], {
|
|
397
|
-
to: {
|
|
398
|
-
value: animateTo || 0
|
|
399
|
-
},
|
|
426
|
+
var animation = this.props.animation;
|
|
427
|
+
return /*#__PURE__*/external_react_default.a.createElement(Animation_["Spring"], _extends({}, this.getSpringTransition(), {
|
|
400
428
|
immediate: animation === 'none',
|
|
401
|
-
onRest: this.handleRest
|
|
402
|
-
|
|
403
|
-
precision: 1
|
|
404
|
-
}
|
|
405
|
-
}, // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
429
|
+
onRest: this.handleRest
|
|
430
|
+
}), // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
406
431
|
this.internalRender);
|
|
407
432
|
}
|
|
408
433
|
}]);
|
|
@@ -445,7 +470,7 @@ module.exports = require("react");
|
|
|
445
470
|
|
|
446
471
|
/***/ }),
|
|
447
472
|
|
|
448
|
-
/***/
|
|
473
|
+
/***/ 26:
|
|
449
474
|
/***/ (function(module, exports) {
|
|
450
475
|
|
|
451
476
|
module.exports = require("@splunk/ui-utils/focus");
|
|
@@ -466,17 +491,17 @@ module.exports = require("@splunk/react-ui/Animation");
|
|
|
466
491
|
|
|
467
492
|
/***/ }),
|
|
468
493
|
|
|
469
|
-
/***/
|
|
494
|
+
/***/ 4:
|
|
470
495
|
/***/ (function(module, exports) {
|
|
471
496
|
|
|
472
|
-
module.exports = require("
|
|
497
|
+
module.exports = require("lodash");
|
|
473
498
|
|
|
474
499
|
/***/ }),
|
|
475
500
|
|
|
476
|
-
/***/
|
|
501
|
+
/***/ 40:
|
|
477
502
|
/***/ (function(module, exports) {
|
|
478
503
|
|
|
479
|
-
module.exports = require("
|
|
504
|
+
module.exports = require("@splunk/ui-utils/style");
|
|
480
505
|
|
|
481
506
|
/***/ })
|
|
482
507
|
|
package/WaitSpinner.js
CHANGED
|
@@ -82,7 +82,7 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 176);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -101,7 +101,7 @@ module.exports = require("prop-types");
|
|
|
101
101
|
|
|
102
102
|
/***/ }),
|
|
103
103
|
|
|
104
|
-
/***/
|
|
104
|
+
/***/ 176:
|
|
105
105
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
106
106
|
|
|
107
107
|
"use strict";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/* eslint-env node */
|
|
2
|
+
|
|
3
|
+
import { startDevServer } from '@cypress/webpack-dev-server';
|
|
4
|
+
import webpackConfig from '../../webpack.test.config';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* @type {Cypress.PluginConfig}
|
|
8
|
+
*/
|
|
9
|
+
module.exports = (on, config) => {
|
|
10
|
+
if (config.testingType === 'component') {
|
|
11
|
+
on('dev-server:start', (options) => startDevServer({ options, webpackConfig }));
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
return config;
|
|
15
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@testing-library/cypress/add-commands';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { setGlobalConfig } from '@storybook/testing-react';
|
|
2
|
+
import { configure } from '@testing-library/cypress';
|
|
3
|
+
import 'cypress-real-events/support';
|
|
4
|
+
|
|
5
|
+
import './commands';
|
|
6
|
+
import * as sbPreview from '../../.storybook/preview';
|
|
7
|
+
|
|
8
|
+
configure({ testIdAttribute: 'data-test' });
|
|
9
|
+
|
|
10
|
+
setGlobalConfig(sbPreview);
|
package/cypress.json
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"baseUrl": "http://localhost:8080",
|
|
3
|
+
"env": {},
|
|
4
|
+
"defaultCommandTimeout": 1000,
|
|
5
|
+
"fixturesFolder": false,
|
|
6
|
+
"video": false,
|
|
7
|
+
"videoUploadOnPasses": false,
|
|
8
|
+
"component": {
|
|
9
|
+
"componentFolder": "src",
|
|
10
|
+
"testFiles": "**/**/tests/*.spec.tsx"
|
|
11
|
+
}
|
|
12
|
+
}
|
package/package.json
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@splunk/react-ui",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.8.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.",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"build": "cross-env NODE_ENV=production webpack
|
|
8
|
+
"build": "cross-env NODE_ENV=production webpack && yarn types:build && yarn build-storybook",
|
|
9
|
+
"docs": "NODE_ENV=production webpack --config docs.gen.webpack.config.js",
|
|
10
|
+
"docs:start": "webpack serve --config docs.gen.webpack.config.js",
|
|
9
11
|
"eslint": "eslint src .storybook --ext \".ts,.tsx,.js,.jsx\"",
|
|
10
12
|
"eslint:fix": "yarn run eslint --fix",
|
|
11
13
|
"eslint:ci": "yarn run eslint -f junit -o test-reports/lint-results.xml",
|
|
@@ -22,18 +24,20 @@
|
|
|
22
24
|
"test:functional:coverage": "cross-env NODE_ENV=test-coverage splunk-wdio-functional-test-runner functional.local.conf.js --coverage",
|
|
23
25
|
"test:functional:ci": "cross-env NODE_ENV=test-coverage splunk-wdio-functional-test-runner functional.ci.conf.js --coverage-maps",
|
|
24
26
|
"test:functional:cloud": "splunk-wdio-functional-test-runner functional.cloud.conf.js",
|
|
27
|
+
"test:cypress": "yarn cypress open-ct",
|
|
28
|
+
"test:cypress:ci": "yarn cypress run-ct",
|
|
25
29
|
"test:visual:cloud": "splunk-wdio-functional-test-runner functional.visual.conf.js",
|
|
26
30
|
"types:build": "tsc --emitDeclarationOnly --declaration --declarationDir ./types && node ./scripts/pruneTypes.js",
|
|
27
|
-
"types:start": "
|
|
31
|
+
"types:start": "yarn types:build --watch"
|
|
28
32
|
},
|
|
29
33
|
"peerDependencies": {
|
|
30
34
|
"react": "^16.8",
|
|
31
35
|
"react-dom": "^16.8",
|
|
32
|
-
"styled-components": "
|
|
36
|
+
"styled-components": "5.1.1"
|
|
33
37
|
},
|
|
34
38
|
"dependencies": {
|
|
35
|
-
"@splunk/react-icons": "^3.
|
|
36
|
-
"@splunk/themes": "^0.
|
|
39
|
+
"@splunk/react-icons": "^3.2.0",
|
|
40
|
+
"@splunk/themes": "^0.11.0",
|
|
37
41
|
"@splunk/ui-utils": "^1.4.0",
|
|
38
42
|
"@types/commonmark": "^0.27.0",
|
|
39
43
|
"@types/lodash": "^4.14.156",
|
|
@@ -56,8 +60,12 @@
|
|
|
56
60
|
},
|
|
57
61
|
"devDependencies": {
|
|
58
62
|
"@babel/core": "^7.2.0",
|
|
63
|
+
"@cypress/react": "^5.12.4",
|
|
64
|
+
"@cypress/webpack-dev-server": "^1.8.2",
|
|
59
65
|
"@splunk/babel-preset": "^3.0.0",
|
|
66
|
+
"@splunk/docs-gen": "^0.11.1",
|
|
60
67
|
"@splunk/eslint-config": "^4.0.0",
|
|
68
|
+
"@splunk/react-docs": "^0.11.0",
|
|
61
69
|
"@splunk/stylelint-config": "^4.0.0",
|
|
62
70
|
"@splunk/test-runner-utils": "^0.4.0",
|
|
63
71
|
"@splunk/wdio-functional-test-runner": "^10.1.0",
|
|
@@ -66,6 +74,11 @@
|
|
|
66
74
|
"@storybook/addon-essentials": "^6.3.0",
|
|
67
75
|
"@storybook/csf": "^0.0.1",
|
|
68
76
|
"@storybook/react": "^6.3.0",
|
|
77
|
+
"@storybook/testing-react": "^1.2.3",
|
|
78
|
+
"@testing-library/cypress": "^8.0.2",
|
|
79
|
+
"@testing-library/jest-dom": "^5.16.1",
|
|
80
|
+
"@testing-library/react": "^12.1.2",
|
|
81
|
+
"@testing-library/react-hooks": "^7.0.2",
|
|
69
82
|
"@types/chai": "^3.5.2",
|
|
70
83
|
"@types/enzyme": "^3.10.5",
|
|
71
84
|
"@types/jest": "^25.2.1",
|
|
@@ -83,12 +96,16 @@
|
|
|
83
96
|
"chai": "^3.5.0",
|
|
84
97
|
"core-js": "^3.6.4",
|
|
85
98
|
"cross-env": "^6.0.3",
|
|
99
|
+
"cypress": "^9.5.1",
|
|
100
|
+
"cypress-real-events": "^1.7.0",
|
|
101
|
+
"docgen-loader": "^1.3.4",
|
|
86
102
|
"enzyme": "^3.11.0",
|
|
87
103
|
"enzyme-adapter-react-16": "^1.15.2",
|
|
88
104
|
"eslint": "^7.14.0",
|
|
89
105
|
"eslint-config-airbnb": "^18.2.1",
|
|
90
106
|
"eslint-config-prettier": "^6.15.0",
|
|
91
107
|
"eslint-import-resolver-webpack": "^0.13.0",
|
|
108
|
+
"eslint-plugin-cypress": "^2.12.1",
|
|
92
109
|
"eslint-plugin-import": "^2.22.1",
|
|
93
110
|
"eslint-plugin-jsx-a11y": "^6.4.1",
|
|
94
111
|
"eslint-plugin-react": "^7.21.5",
|
|
@@ -104,8 +121,9 @@
|
|
|
104
121
|
"prompt": "^1.0.0",
|
|
105
122
|
"raw-loader": "^0.5.1",
|
|
106
123
|
"react": "^16.12.0",
|
|
124
|
+
"react-docgen": "^5.4.0",
|
|
107
125
|
"react-dom": "^16.12.0",
|
|
108
|
-
"react-test-renderer": "^16.
|
|
126
|
+
"react-test-renderer": "^16.13.1",
|
|
109
127
|
"sinon": "^2.1.0",
|
|
110
128
|
"styled-components": "5.1.1",
|
|
111
129
|
"stylelint": "^13.0.0",
|
|
@@ -113,7 +131,8 @@
|
|
|
113
131
|
"typescript": "^4.0.5",
|
|
114
132
|
"wdio-image-comparison-service": "^1.9.0",
|
|
115
133
|
"webpack": "^4.16.2",
|
|
116
|
-
"webpack-cli": "^
|
|
134
|
+
"webpack-cli": "^4.9.2",
|
|
135
|
+
"webpack-dev-server": "^4.7.4",
|
|
117
136
|
"webpack-merge": "^4.1.3"
|
|
118
137
|
},
|
|
119
138
|
"engines": {
|
package/stubs-splunkui.d.ts
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Component } from 'react';
|
|
2
|
+
declare class Provider extends Component<{}, {
|
|
3
|
+
animatedTransitions: boolean;
|
|
4
|
+
open: boolean;
|
|
5
|
+
}> {
|
|
6
|
+
constructor(props: {});
|
|
7
|
+
handleButtonClick: () => void;
|
|
8
|
+
handleSwitchClick: () => void;
|
|
9
|
+
render(): JSX.Element;
|
|
10
|
+
}
|
|
11
|
+
export default Provider;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function Basic(): JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function Basic(): JSX.Element;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Component } from 'react';
|
|
2
|
+
import { NumberChangeHandler } from '@splunk/react-ui/Number';
|
|
3
|
+
import { SwitchClickHandler } from '@splunk/react-ui/Switch';
|
|
4
|
+
interface InteractiveState {
|
|
5
|
+
value?: number;
|
|
6
|
+
minWidth?: number;
|
|
7
|
+
maxWidth?: number;
|
|
8
|
+
gutterSize?: number;
|
|
9
|
+
wrapCards: boolean;
|
|
10
|
+
alignCards: 'left' | 'center' | 'right';
|
|
11
|
+
setAsWidth: boolean;
|
|
12
|
+
hasMaxWidth: boolean;
|
|
13
|
+
}
|
|
14
|
+
declare class Interactive extends Component<{}, InteractiveState> {
|
|
15
|
+
constructor(props: {});
|
|
16
|
+
handleChangeAmount: NumberChangeHandler;
|
|
17
|
+
handleChangeMinWidth: NumberChangeHandler;
|
|
18
|
+
handleChangeMaxWidth: NumberChangeHandler;
|
|
19
|
+
handleChangeGutter: NumberChangeHandler;
|
|
20
|
+
handleChangeWrap: SwitchClickHandler;
|
|
21
|
+
handleChangeAlign: (e: any, { value }: {
|
|
22
|
+
value: any;
|
|
23
|
+
}) => void;
|
|
24
|
+
handleSetAsWidth: SwitchClickHandler;
|
|
25
|
+
handleHasMaxWidth: SwitchClickHandler;
|
|
26
|
+
render(): JSX.Element;
|
|
27
|
+
}
|
|
28
|
+
export default Interactive;
|
|
@@ -2,7 +2,7 @@ import React, { Component } from 'react';
|
|
|
2
2
|
import { legacyRefMode } from '@splunk/react-ui/Dropdown';
|
|
3
3
|
import { NavigationProviderClickHandler } from './NavigationProvider';
|
|
4
4
|
import { ClassComponentProps } from '../utils/types';
|
|
5
|
-
export declare const isInternalLink: (to: string) => boolean;
|
|
5
|
+
export declare const isInternalLink: (to: string | undefined) => boolean;
|
|
6
6
|
interface ClickablePropsBase {
|
|
7
7
|
children?: React.ReactNode;
|
|
8
8
|
/**
|
|
@@ -25,6 +25,13 @@ interface ClickablePropsBase {
|
|
|
25
25
|
* Ignored if not in link mode.
|
|
26
26
|
*/
|
|
27
27
|
openInNewContext?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* The text representation of the navigational link.
|
|
30
|
+
* This should be provided if child content is not a string.
|
|
31
|
+
*
|
|
32
|
+
* Ignored if not in link mode.
|
|
33
|
+
*/
|
|
34
|
+
navigationLabel?: string;
|
|
28
35
|
/**
|
|
29
36
|
* A URL for a link. If set and not disabled, an `a` element is used instead
|
|
30
37
|
* of a `button` element (link mode).
|
|
@@ -41,7 +48,10 @@ declare type ClickableProps = ClickableButtonProps | ClickableLinkProps;
|
|
|
41
48
|
*/
|
|
42
49
|
declare class Clickable extends Component<ClickableProps> {
|
|
43
50
|
private el;
|
|
44
|
-
static contextType: React.Context<
|
|
51
|
+
static contextType: React.Context<{
|
|
52
|
+
onClick?: NavigationProviderClickHandler | undefined;
|
|
53
|
+
prefix?: string | undefined;
|
|
54
|
+
}>;
|
|
45
55
|
static propTypes: React.WeakValidationMap<ClassComponentProps<ClickablePropsBase, Required<Pick<ClickablePropsBase, "disabled" | "openInNewContext">>, "button", never>> | React.WeakValidationMap<ClassComponentProps<ClickablePropsBase, Required<Pick<ClickablePropsBase, "disabled" | "openInNewContext">>, "a", "href">>;
|
|
46
56
|
static defaultProps: Required<Pick<ClickablePropsBase, "disabled" | "openInNewContext">>;
|
|
47
57
|
static [legacyRefMode]: boolean;
|