@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/StepBar.js
CHANGED
|
@@ -72,81 +72,81 @@
|
|
|
72
72
|
var o = e.n(a);
|
|
73
73
|
// CONCATENATED MODULE: external "@splunk/ui-utils/id"
|
|
74
74
|
const i = require("@splunk/ui-utils/id");
|
|
75
|
+
// CONCATENATED MODULE: ./src/StepBar/StepBarContext.tsx
|
|
76
|
+
var l = (0, r.createContext)({
|
|
77
|
+
activeStepId: 0
|
|
78
|
+
});
|
|
79
|
+
l.displayName = "StepBar";
|
|
80
|
+
/* harmony default export */ const c = l;
|
|
75
81
|
// CONCATENATED MODULE: external "styled-components"
|
|
76
|
-
const
|
|
77
|
-
var c = e.n(l);
|
|
78
|
-
// CONCATENATED MODULE: external "@splunk/react-icons/CheckCircle"
|
|
79
|
-
const s = require("@splunk/react-icons/CheckCircle");
|
|
82
|
+
const s = require("styled-components");
|
|
80
83
|
var p = e.n(s);
|
|
81
|
-
// CONCATENATED MODULE: external "@splunk/react-icons/
|
|
82
|
-
const d = require("@splunk/react-icons/
|
|
84
|
+
// CONCATENATED MODULE: external "@splunk/react-icons/CheckCircle"
|
|
85
|
+
const d = require("@splunk/react-icons/CheckCircle");
|
|
83
86
|
var u = e.n(d);
|
|
87
|
+
// CONCATENATED MODULE: external "@splunk/react-icons/ExclamationCircle"
|
|
88
|
+
const v = require("@splunk/react-icons/ExclamationCircle");
|
|
89
|
+
var f = e.n(v);
|
|
84
90
|
// CONCATENATED MODULE: external "@splunk/themes"
|
|
85
|
-
const
|
|
91
|
+
const b = require("@splunk/themes");
|
|
86
92
|
// CONCATENATED MODULE: ./src/StepBar/StepStyles.ts
|
|
87
|
-
var
|
|
88
|
-
var
|
|
89
|
-
var
|
|
90
|
-
/* half of the actual rendered svg size (20px) */ var
|
|
91
|
-
|
|
92
|
-
var
|
|
93
|
+
var y = "2px";
|
|
94
|
+
var m = "24px";
|
|
95
|
+
var g = "10px";
|
|
96
|
+
/* half of the actual rendered svg size (20px) */ var h = (0,
|
|
97
|
+
s.css)([ "height:", ";width:", ";" ], m, m);
|
|
98
|
+
var C = p().div.withConfig({
|
|
93
99
|
displayName: "StepStyles__StyledBar",
|
|
94
100
|
componentId: "sc-756fxp-0"
|
|
95
|
-
})([ "position:absolute;top:10px;height:", ";width:100%;&::before,&::after{content:'';display:block;height:", ";}" ],
|
|
96
|
-
var
|
|
101
|
+
})([ "position:absolute;top:10px;height:", ";width:100%;&::before,&::after{content:'';display:block;height:", ";}" ], y, y);
|
|
102
|
+
var S = p().li.withConfig({
|
|
97
103
|
displayName: "StepStyles__Styled",
|
|
98
104
|
componentId: "sc-756fxp-1"
|
|
99
|
-
})([ "", ";display:grid;gap:", ";grid-template-rows:auto 1fr;justify-items:center;min-width:min-content;position:relative;overflow:hidden;text-align:center;color:", ";counter-increment:", ";&:not(:first-of-type){", "{&::before{box-shadow:inset 500px 0 ", ";width:calc(50% - ", ");}}}&:not(:last-of-type){", "{&::after{width:50%;position:absolute;top:0;box-shadow:inset 500px 0 ", ";left:calc(50% + ", ");}}}" ],
|
|
105
|
+
})([ "", ";display:grid;gap:", ";grid-template-rows:auto 1fr;justify-items:center;min-width:min-content;position:relative;overflow:hidden;text-align:center;color:", ";counter-increment:", ";&:not(:first-of-type){", "{&::before{box-shadow:inset 500px 0 ", ";width:calc(50% - ", ");}}}&:not(:last-of-type){", "{&::after{width:50%;position:absolute;top:0;box-shadow:inset 500px 0 ", ";left:calc(50% + ", ");}}}" ], b.mixins.typography("body", {
|
|
100
106
|
weight: "semiBold"
|
|
101
|
-
}),
|
|
102
|
-
error:
|
|
103
|
-
active:
|
|
104
|
-
next:
|
|
105
|
-
prev:
|
|
107
|
+
}), b.variables.spacingXSmall, (0, b.pickVariant)("$status", {
|
|
108
|
+
error: b.variables.contentColorActive,
|
|
109
|
+
active: b.variables.contentColorAccent,
|
|
110
|
+
next: b.variables.contentColorDefault,
|
|
111
|
+
prev: b.variables.contentColorActive
|
|
106
112
|
}), (function(e) {
|
|
107
113
|
var t = e.$idCounter;
|
|
108
114
|
return t;
|
|
109
|
-
}), /* sc-sel */
|
|
110
|
-
error:
|
|
111
|
-
active:
|
|
112
|
-
next:
|
|
113
|
-
prev:
|
|
114
|
-
}),
|
|
115
|
-
error:
|
|
116
|
-
active:
|
|
117
|
-
next:
|
|
118
|
-
prev:
|
|
119
|
-
}),
|
|
120
|
-
var
|
|
121
|
-
var
|
|
115
|
+
}), /* sc-sel */ C, (0, b.pickVariant)("$status", {
|
|
116
|
+
error: b.variables.contentColorAccent,
|
|
117
|
+
active: b.variables.contentColorAccent,
|
|
118
|
+
next: b.variables.borderColor,
|
|
119
|
+
prev: b.variables.contentColorAccent
|
|
120
|
+
}), g, /* sc-sel */ C, (0, b.pickVariant)("$status", {
|
|
121
|
+
error: b.variables.borderColor,
|
|
122
|
+
active: b.variables.borderColor,
|
|
123
|
+
next: b.variables.borderColor,
|
|
124
|
+
prev: b.variables.contentColorAccent
|
|
125
|
+
}), g);
|
|
126
|
+
var x = "16px";
|
|
127
|
+
var w = p().span.withConfig({
|
|
122
128
|
displayName: "StepStyles__StyledCircle",
|
|
123
129
|
componentId: "sc-756fxp-2"
|
|
124
|
-
})([ "display:grid;height:", ";width:", ";border-radius:50%;margin:2px;", " &::before{content:counter(", ");line-height:", ";}" ],
|
|
125
|
-
|
|
126
|
-
active: (0,
|
|
127
|
-
next: (0,
|
|
130
|
+
})([ "display:grid;height:", ";width:", ";border-radius:50%;margin:2px;", " &::before{content:counter(", ");line-height:", ";}" ], x, x, (0,
|
|
131
|
+
b.pickVariant)("$status", {
|
|
132
|
+
active: (0, s.css)([ "background-color:", ";border:2px solid ", ";color:", ";" ], b.variables.contentColorAccent, b.variables.contentColorAccent, b.variables.contentColorInverted),
|
|
133
|
+
next: (0, s.css)([ "border:2px solid ", ";color:", ";" ], b.variables.contentColorDefault, b.variables.contentColorDefault)
|
|
128
134
|
}), (function(e) {
|
|
129
135
|
var t = e.$idCounter;
|
|
130
136
|
return t;
|
|
131
|
-
}),
|
|
132
|
-
var
|
|
137
|
+
}), x);
|
|
138
|
+
var O = p()(u()).withConfig({
|
|
133
139
|
displayName: "StepStyles__StyledCheckCircleIcon",
|
|
134
140
|
componentId: "sc-756fxp-3"
|
|
135
|
-
})([ "", ";color:", ";" ],
|
|
136
|
-
var
|
|
141
|
+
})([ "", ";color:", ";" ], h, b.variables.contentColorAccent);
|
|
142
|
+
var I = p()(f()).withConfig({
|
|
137
143
|
displayName: "StepStyles__StyledExclamationCircleIcon",
|
|
138
144
|
componentId: "sc-756fxp-4"
|
|
139
|
-
})([ "", ";color:", ";" ],
|
|
140
|
-
var
|
|
145
|
+
})([ "", ";color:", ";" ], h, b.variables.contentColorNegative);
|
|
146
|
+
var _ = p().span.withConfig({
|
|
141
147
|
displayName: "StepStyles__StyledStepLabel",
|
|
142
148
|
componentId: "sc-756fxp-5"
|
|
143
|
-
})([ "padding-inline:calc(", " / 2);" ],
|
|
144
|
-
// CONCATENATED MODULE: ./src/StepBar/StepBarContext.tsx
|
|
145
|
-
var O = (0, r.createContext)({
|
|
146
|
-
activeStepId: 0
|
|
147
|
-
});
|
|
148
|
-
O.displayName = "StepBar";
|
|
149
|
-
/* harmony default export */ const _ = O;
|
|
149
|
+
})([ "padding-inline:calc(", " / 2);" ], b.variables.spacingXXLarge);
|
|
150
150
|
// CONCATENATED MODULE: ./src/StepBar/Step.tsx
|
|
151
151
|
function $() {
|
|
152
152
|
return $ = Object.assign ? Object.assign.bind() : function(e) {
|
|
@@ -165,7 +165,7 @@
|
|
|
165
165
|
if (Object.getOwnPropertySymbols) {
|
|
166
166
|
var o = Object.getOwnPropertySymbols(e);
|
|
167
167
|
for (n = 0; n < o.length; n++) {
|
|
168
|
-
r = o[n], t.
|
|
168
|
+
r = o[n], -1 === t.indexOf(r) && {}.propertyIsEnumerable.call(e, r) && (a[r] = e[r]);
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
171
|
return a;
|
|
@@ -175,7 +175,7 @@
|
|
|
175
175
|
var r = {};
|
|
176
176
|
for (var n in e) {
|
|
177
177
|
if ({}.hasOwnProperty.call(e, n)) {
|
|
178
|
-
if (t.
|
|
178
|
+
if (-1 !== t.indexOf(n)) continue;
|
|
179
179
|
r[n] = e[n];
|
|
180
180
|
}
|
|
181
181
|
}
|
|
@@ -188,57 +188,57 @@
|
|
|
188
188
|
stepId: o().any
|
|
189
189
|
};
|
|
190
190
|
function k(e) {
|
|
191
|
-
var t = e.children, a = e.elementRef, o = e.error, i = o === void 0 ? false : o,
|
|
191
|
+
var t = e.children, a = e.elementRef, o = e.error, i = o === void 0 ? false : o, c = e.stepId, s = E(e, [ "children", "elementRef", "error", "stepId" ]);
|
|
192
192
|
// @docs-props-type StepPropsBase
|
|
193
|
-
var
|
|
194
|
-
var
|
|
195
|
-
var
|
|
196
|
-
if (
|
|
197
|
-
|
|
193
|
+
var p = (0, r.useContext)(l), d = p.activeStepId, u = p.idCounter;
|
|
194
|
+
var v = "next";
|
|
195
|
+
var f = d === c;
|
|
196
|
+
if (c != null && c < d) {
|
|
197
|
+
v = "prev";
|
|
198
198
|
}
|
|
199
|
-
if (
|
|
200
|
-
|
|
199
|
+
if (f && !i) {
|
|
200
|
+
v = "active";
|
|
201
201
|
}
|
|
202
|
-
if (
|
|
203
|
-
|
|
202
|
+
if (f && i) {
|
|
203
|
+
v = "error";
|
|
204
204
|
}
|
|
205
|
-
var
|
|
206
|
-
error: n().createElement(
|
|
207
|
-
prev: n().createElement(
|
|
208
|
-
next: n().createElement(
|
|
209
|
-
$status:
|
|
210
|
-
$idCounter:
|
|
205
|
+
var b = {
|
|
206
|
+
error: n().createElement(I, null),
|
|
207
|
+
prev: n().createElement(O, null),
|
|
208
|
+
next: n().createElement(w, {
|
|
209
|
+
$status: v,
|
|
210
|
+
$idCounter: u
|
|
211
211
|
}),
|
|
212
|
-
active: n().createElement(
|
|
213
|
-
$status:
|
|
214
|
-
$idCounter:
|
|
212
|
+
active: n().createElement(w, {
|
|
213
|
+
$status: v,
|
|
214
|
+
$idCounter: u
|
|
215
215
|
})
|
|
216
216
|
};
|
|
217
217
|
|
|
218
|
-
return n().createElement(
|
|
219
|
-
$status:
|
|
220
|
-
"data-test-status":
|
|
218
|
+
return n().createElement(S, $({
|
|
219
|
+
$status: v,
|
|
220
|
+
"data-test-status": v,
|
|
221
221
|
"data-test": "step",
|
|
222
|
-
"data-test-step-id":
|
|
222
|
+
"data-test-step-id": c,
|
|
223
223
|
ref: a
|
|
224
|
-
},
|
|
225
|
-
$idCounter:
|
|
226
|
-
}), n().createElement(
|
|
227
|
-
$status:
|
|
228
|
-
}), n().createElement("div", null,
|
|
224
|
+
}, s, {
|
|
225
|
+
$idCounter: u
|
|
226
|
+
}), n().createElement(C, {
|
|
227
|
+
$status: v
|
|
228
|
+
}), n().createElement("div", null, b[v]), n().createElement(_, null, t));
|
|
229
229
|
}
|
|
230
230
|
k.propTypes = P;
|
|
231
231
|
/* harmony default export */ const A = k;
|
|
232
232
|
// CONCATENATED MODULE: ./src/StepBar/StepBarStyles.ts
|
|
233
|
-
var N =
|
|
233
|
+
var N = p().ul.withConfig({
|
|
234
234
|
displayName: "StepBarStyles__Styled",
|
|
235
235
|
componentId: "sc-13bf2x4-0"
|
|
236
|
-
})([ "", ";grid-auto-flow:column;padding:", ";counter-reset:", ";", ";" ],
|
|
236
|
+
})([ "", ";grid-auto-flow:column;padding:", ";counter-reset:", ";", ";" ], b.mixins.reset("grid"), b.variables.spacingXLarge, (function(e) {
|
|
237
237
|
var t = e.$idCounter;
|
|
238
238
|
return t;
|
|
239
239
|
}), (function(e) {
|
|
240
240
|
var t = e.$inline;
|
|
241
|
-
return t && (0,
|
|
241
|
+
return t && (0, s.css)([ "display:inline-flex;" ]);
|
|
242
242
|
}));
|
|
243
243
|
// CONCATENATED MODULE: ./src/StepBar/StepBar.tsx
|
|
244
244
|
function q() {
|
|
@@ -258,7 +258,7 @@
|
|
|
258
258
|
if (Object.getOwnPropertySymbols) {
|
|
259
259
|
var o = Object.getOwnPropertySymbols(e);
|
|
260
260
|
for (n = 0; n < o.length; n++) {
|
|
261
|
-
r = o[n], t.
|
|
261
|
+
r = o[n], -1 === t.indexOf(r) && {}.propertyIsEnumerable.call(e, r) && (a[r] = e[r]);
|
|
262
262
|
}
|
|
263
263
|
}
|
|
264
264
|
return a;
|
|
@@ -268,7 +268,7 @@
|
|
|
268
268
|
var r = {};
|
|
269
269
|
for (var n in e) {
|
|
270
270
|
if ({}.hasOwnProperty.call(e, n)) {
|
|
271
|
-
if (t.
|
|
271
|
+
if (-1 !== t.indexOf(n)) continue;
|
|
272
272
|
r[n] = e[n];
|
|
273
273
|
}
|
|
274
274
|
}
|
|
@@ -281,17 +281,17 @@
|
|
|
281
281
|
inline: o().bool
|
|
282
282
|
};
|
|
283
283
|
function M(e) {
|
|
284
|
-
var t = e.activeStepId, a = e.children, o = e.elementRef, l = e.inline,
|
|
284
|
+
var t = e.activeStepId, a = e.children, o = e.elementRef, l = e.inline, s = l === void 0 ? false : l, p = R(e, [ "activeStepId", "children", "elementRef", "inline" ]);
|
|
285
285
|
// @docs-props-type StepBarPropsBase
|
|
286
|
-
var
|
|
287
|
-
var
|
|
288
|
-
var
|
|
289
|
-
var
|
|
290
|
-
var
|
|
286
|
+
var d = (0, r.useRef)((0, i.createDOMID)("stepbar")), u = d.current;
|
|
287
|
+
var v = 0;
|
|
288
|
+
var f = r.Children.toArray(a).filter(r.isValidElement);
|
|
289
|
+
var b = f.length - 1;
|
|
290
|
+
var y = f.map((function(e, n) {
|
|
291
291
|
var a = e.props.stepId || n;
|
|
292
292
|
var o = e.props.error;
|
|
293
293
|
if (a === t) {
|
|
294
|
-
|
|
294
|
+
v = n;
|
|
295
295
|
}
|
|
296
296
|
|
|
297
297
|
return (0, r.cloneElement)(e, {
|
|
@@ -299,27 +299,27 @@
|
|
|
299
299
|
error: o
|
|
300
300
|
});
|
|
301
301
|
}));
|
|
302
|
-
var
|
|
302
|
+
var m = (0, r.useMemo)((function() {
|
|
303
303
|
return {
|
|
304
|
-
idCounter:
|
|
305
|
-
lastChildIndex:
|
|
304
|
+
idCounter: u,
|
|
305
|
+
lastChildIndex: b,
|
|
306
306
|
activeStepId: t
|
|
307
307
|
};
|
|
308
|
-
}), [ t,
|
|
308
|
+
}), [ t, u, b ]);
|
|
309
309
|
|
|
310
310
|
return n().createElement(N, q({
|
|
311
|
-
$inline:
|
|
311
|
+
$inline: s,
|
|
312
312
|
"data-test": "step-bar",
|
|
313
313
|
"data-test-active-step-id": t,
|
|
314
314
|
role: "progressbar",
|
|
315
315
|
"aria-valuemin": 1,
|
|
316
|
-
"aria-valuemax":
|
|
317
|
-
"aria-valuenow":
|
|
318
|
-
$idCounter:
|
|
316
|
+
"aria-valuemax": b + 1,
|
|
317
|
+
"aria-valuenow": v + 1,
|
|
318
|
+
$idCounter: u,
|
|
319
319
|
ref: o
|
|
320
|
-
},
|
|
321
|
-
value:
|
|
322
|
-
},
|
|
320
|
+
}, p), n().createElement(c.Provider, {
|
|
321
|
+
value: m
|
|
322
|
+
}, y));
|
|
323
323
|
}
|
|
324
324
|
M.propTypes = D;
|
|
325
325
|
M.Step = A;
|
package/Switch.js
CHANGED
|
@@ -79,108 +79,108 @@
|
|
|
79
79
|
// CONCATENATED MODULE: external "styled-components"
|
|
80
80
|
const d = require("styled-components");
|
|
81
81
|
var u = e.n(d);
|
|
82
|
-
// CONCATENATED MODULE: external "@splunk/react-
|
|
83
|
-
const b = require("@splunk/react-
|
|
82
|
+
// CONCATENATED MODULE: external "@splunk/react-icons/CheckBoxCompleted"
|
|
83
|
+
const b = require("@splunk/react-icons/CheckBoxCompleted");
|
|
84
84
|
var v = e.n(b);
|
|
85
|
-
// CONCATENATED MODULE: external "@splunk/react-
|
|
86
|
-
const f = require("@splunk/react-
|
|
85
|
+
// CONCATENATED MODULE: external "@splunk/react-icons/CheckBoxIndeterminate"
|
|
86
|
+
const f = require("@splunk/react-icons/CheckBoxIndeterminate");
|
|
87
87
|
var p = e.n(f);
|
|
88
|
+
// CONCATENATED MODULE: external "@splunk/react-ui/Box"
|
|
89
|
+
const g = require("@splunk/react-ui/Box");
|
|
90
|
+
var y = e.n(g);
|
|
91
|
+
// CONCATENATED MODULE: external "@splunk/react-ui/Clickable"
|
|
92
|
+
const m = require("@splunk/react-ui/Clickable");
|
|
93
|
+
var h = e.n(m);
|
|
88
94
|
// CONCATENATED MODULE: external "@splunk/themes"
|
|
89
|
-
const
|
|
90
|
-
// CONCATENATED MODULE: external "@splunk/react-icons/CheckBoxCompleted"
|
|
91
|
-
const y = require("@splunk/react-icons/CheckBoxCompleted");
|
|
92
|
-
var m = e.n(y);
|
|
93
|
-
// CONCATENATED MODULE: external "@splunk/react-icons/CheckBoxIndeterminate"
|
|
94
|
-
const h = require("@splunk/react-icons/CheckBoxIndeterminate");
|
|
95
|
-
var k = e.n(h);
|
|
95
|
+
const k = require("@splunk/themes");
|
|
96
96
|
// CONCATENATED MODULE: ./src/Switch/SwitchStyles.ts
|
|
97
97
|
var C = "20px";
|
|
98
98
|
var S = "12px";
|
|
99
99
|
var w = "4px";
|
|
100
100
|
// diameter - toggleIndicatorDiameter / 2
|
|
101
|
-
var O = u()(
|
|
101
|
+
var O = u()(y()).withConfig({
|
|
102
102
|
displayName: "SwitchStyles__StyledBox",
|
|
103
103
|
componentId: "sc-844ieu-0"
|
|
104
|
-
})([ "display:inline;position:relative;flex-shrink:0;gap:", ";min-height:", ";align-items:center;color:", ";", "" ],
|
|
104
|
+
})([ "display:inline;position:relative;flex-shrink:0;gap:", ";min-height:", ";align-items:center;color:", ";", "" ], k.variables.spacingSmall, k.variables.inputHeight, k.variables.contentColorActive, (function(e) {
|
|
105
105
|
var r = e.$disabled;
|
|
106
|
-
return r && (0, d.css)([ "color:", ";" ],
|
|
106
|
+
return r && (0, d.css)([ "color:", ";" ], k.variables.contentColorDisabled);
|
|
107
107
|
}));
|
|
108
|
-
var x = (0, d.css)([ "", " position:relative;width:", ";height:", ";line-height:", ";border-radius:", ";border:", " solid ", ";background-color:", ";cursor:pointer;flex:0 0 auto;&:not([disabled]){&:focus{box-shadow:", ";}color:", ";", "}&[disabled]{border-color:", ";background-color:", ";color:", ";cursor:not-allowed;", ";}" ],
|
|
109
|
-
|
|
110
|
-
light:
|
|
111
|
-
dark:
|
|
108
|
+
var x = (0, d.css)([ "", " position:relative;width:", ";height:", ";line-height:", ";border-radius:", ";border:", " solid ", ";background-color:", ";cursor:pointer;flex:0 0 auto;&:not([disabled]){&:focus{box-shadow:", ";}color:", ";", "}&[disabled]{border-color:", ";background-color:", ";color:", ";cursor:not-allowed;", ";}" ], k.mixins.reset("inline"), C, C, C, k.variables.borderRadius, k.variables.inputBorderWidth, k.variables.interactiveColorBorder, k.variables.interactiveColorBackground, k.variables.focusShadow, (0,
|
|
109
|
+
k.pick)({
|
|
110
|
+
light: k.variables.white,
|
|
111
|
+
dark: k.variables.black
|
|
112
112
|
}), (function(e) {
|
|
113
113
|
var r = e.$error, a = e.$selected;
|
|
114
114
|
if (a && !r) {
|
|
115
|
-
return (0, d.css)([ "background-color:", ";border:none;" ],
|
|
115
|
+
return (0, d.css)([ "background-color:", ";border:none;" ], k.variables.interactiveColorAccent);
|
|
116
116
|
}
|
|
117
117
|
if (!a && r) {
|
|
118
|
-
return (0, d.css)([ "border-color:", ";&:hover{border-color:", ";background-color:", ";}" ],
|
|
118
|
+
return (0, d.css)([ "border-color:", ";&:hover{border-color:", ";background-color:", ";}" ], k.variables.interactiveColorAccentError, k.mixins.overlayColors(k.variables.interactiveColorAccentError, k.variables.interactiveColorBorderHover), k.mixins.overlayColors(k.variables.interactiveColorBackground, k.variables.interactiveColorOverlayHover));
|
|
119
119
|
}
|
|
120
120
|
if (a && r) {
|
|
121
|
-
return (0, d.css)([ "background-color:", ";border:none;" ],
|
|
121
|
+
return (0, d.css)([ "background-color:", ";border:none;" ], k.variables.interactiveColorAccentError);
|
|
122
122
|
}
|
|
123
|
-
return (0, d.css)([ "&:hover{border-color:", ";background-color:", ";}" ],
|
|
124
|
-
}),
|
|
123
|
+
return (0, d.css)([ "&:hover{border-color:", ";background-color:", ";}" ], k.variables.interactiveColorBorderHover, k.mixins.overlayColors(k.variables.interactiveColorBackground, k.variables.interactiveColorOverlayHover));
|
|
124
|
+
}), k.variables.interactiveColorBorderDisabled, k.variables.interactiveColorBackgroundDisabled, k.variables.contentColorDisabled, (function(e) {
|
|
125
125
|
var r = e.$selected;
|
|
126
|
-
return r && (0, d.css)([ "border:none;background-color:", ";" ],
|
|
126
|
+
return r && (0, d.css)([ "border:none;background-color:", ";" ], k.variables.neutral100);
|
|
127
127
|
}));
|
|
128
|
-
var B = u()(
|
|
128
|
+
var B = u()(h()).withConfig({
|
|
129
129
|
displayName: "SwitchStyles__StyledCheckboxClickable",
|
|
130
130
|
componentId: "sc-844ieu-1"
|
|
131
131
|
})([ "", "" ], x);
|
|
132
132
|
var j = (0, d.css)([ "display:block;height:", ";width:", ";" ], C, C);
|
|
133
|
-
var $ = u()(
|
|
133
|
+
var $ = u()(v()).withConfig({
|
|
134
134
|
displayName: "SwitchStyles__StyledCheck",
|
|
135
135
|
componentId: "sc-844ieu-2"
|
|
136
136
|
})([ "", "" ], j);
|
|
137
|
-
var I = u()(
|
|
137
|
+
var I = u()(p()).withConfig({
|
|
138
138
|
displayName: "SwitchStyles__StyledSome",
|
|
139
139
|
componentId: "sc-844ieu-3"
|
|
140
140
|
})([ "", "" ], j);
|
|
141
141
|
var q = u().div.withConfig({
|
|
142
142
|
displayName: "SwitchStyles__StyledToggleIndicator",
|
|
143
143
|
componentId: "sc-844ieu-4"
|
|
144
|
-
})([ "--toggle-indicator-margin:calc(", " - ", ");background-color:", ";border-radius:50%;box-sizing:border-box;width:", ";height:", ";position:absolute;left:var(--toggle-indicator-margin);top:var(--toggle-indicator-margin);", ";", " ", " ", ";" ], w,
|
|
145
|
-
|
|
146
|
-
light:
|
|
147
|
-
dark:
|
|
144
|
+
})([ "--toggle-indicator-margin:calc(", " - ", ");background-color:", ";border-radius:50%;box-sizing:border-box;width:", ";height:", ";position:absolute;left:var(--toggle-indicator-margin);top:var(--toggle-indicator-margin);", ";", " ", " ", ";" ], w, k.variables.inputBorderWidth, (0,
|
|
145
|
+
k.pick)({
|
|
146
|
+
light: k.variables.black,
|
|
147
|
+
dark: k.variables.white
|
|
148
148
|
}), S, S, (function(e) {
|
|
149
149
|
var r = e.$delay;
|
|
150
150
|
return r && (0, d.css)([ "transition:left ", ";" ], r);
|
|
151
|
-
}), (0,
|
|
152
|
-
prisma: (0, d.css)([ "box-shadow:", ";" ],
|
|
151
|
+
}), (0, k.pick)({
|
|
152
|
+
prisma: (0, d.css)([ "box-shadow:", ";" ], k.variables.embossShadow)
|
|
153
153
|
}), (function(e) {
|
|
154
154
|
var r = e.$selected, a = e.$disabled;
|
|
155
155
|
return (0, d.css)([ "", " ", "" ], r && (0, d.css)([ "left:calc(100% - (", " + var(--toggle-indicator-margin)));" ], S), !a && r && (0,
|
|
156
|
-
d.css)([ "background-color:", ";" ], (0,
|
|
157
|
-
light:
|
|
158
|
-
dark:
|
|
156
|
+
d.css)([ "background-color:", ";" ], (0, k.pick)({
|
|
157
|
+
light: k.variables.white,
|
|
158
|
+
dark: k.variables.black
|
|
159
159
|
})));
|
|
160
160
|
}), (function(e) {
|
|
161
161
|
var r = e.$disabled;
|
|
162
|
-
return r && (0, d.css)([ "background-color:", ";" ],
|
|
162
|
+
return r && (0, d.css)([ "background-color:", ";" ], k.variables.neutral400);
|
|
163
163
|
}));
|
|
164
|
-
var E = (0, d.css)([ "position:relative;width:calc(", " * 2);height:", ";background-color:", ";transition:background-color ", ";flex:0 0 auto;border-radius:calc(", " / 2);border:", " solid ", ";&:not([disabled]){&:focus{box-shadow:", ";}", "}&[disabled]{border:", " solid ", ";background-color:", ";", "}" ], C, C,
|
|
164
|
+
var E = (0, d.css)([ "position:relative;width:calc(", " * 2);height:", ";background-color:", ";transition:background-color ", ";flex:0 0 auto;border-radius:calc(", " / 2);border:", " solid ", ";&:not([disabled]){&:focus{box-shadow:", ";}", "}&[disabled]{border:", " solid ", ";background-color:", ";", "}" ], C, C, k.variables.interactiveColorBackground, (function(e) {
|
|
165
165
|
return e.$delay;
|
|
166
|
-
}), C,
|
|
166
|
+
}), C, k.variables.inputBorderWidth, k.variables.interactiveColorBorder, k.variables.focusShadow, (function(e) {
|
|
167
167
|
var r = e.$selected;
|
|
168
168
|
if (!r) {
|
|
169
|
-
return (0, d.css)([ "&:hover{border-color:", ";background-color:", ";}" ],
|
|
169
|
+
return (0, d.css)([ "&:hover{border-color:", ";background-color:", ";}" ], k.variables.interactiveColorBorderHover, k.mixins.overlayColors(k.variables.interactiveColorBackground, k.variables.interactiveColorOverlayHover));
|
|
170
170
|
}
|
|
171
|
-
return (0, d.css)([ "border-color:transparent;background-color:", ";" ],
|
|
172
|
-
}),
|
|
171
|
+
return (0, d.css)([ "border-color:transparent;background-color:", ";" ], k.variables.interactiveColorAccent);
|
|
172
|
+
}), k.variables.inputBorderWidth, k.variables.interactiveColorBorderDisabled, k.variables.interactiveColorBackgroundDisabled, (function(e) {
|
|
173
173
|
var r = e.$selected;
|
|
174
|
-
return r && (0, d.css)([ "background-color:", ";" ],
|
|
174
|
+
return r && (0, d.css)([ "background-color:", ";" ], k.variables.neutral100);
|
|
175
175
|
}));
|
|
176
|
-
var P = u()(
|
|
176
|
+
var P = u()(h()).withConfig({
|
|
177
177
|
displayName: "SwitchStyles__StyledToggleClickable",
|
|
178
178
|
componentId: "sc-844ieu-5"
|
|
179
179
|
})([ "", "" ], E);
|
|
180
180
|
var _ = u().label.withConfig({
|
|
181
181
|
displayName: "SwitchStyles__StyledLabel",
|
|
182
182
|
componentId: "sc-844ieu-6"
|
|
183
|
-
})([ "", " flex:1 1 auto;color:inherit;line-height:", ";", ";" ],
|
|
183
|
+
})([ "", " flex:1 1 auto;color:inherit;line-height:", ";", ";" ], k.mixins.reset("inline-block"), k.variables.lineHeight, (function(e) {
|
|
184
184
|
var r = e.$disabled;
|
|
185
185
|
return !r && (0, d.css)([ "cursor:pointer;" ]);
|
|
186
186
|
}));
|
|
@@ -261,7 +261,7 @@
|
|
|
261
261
|
if (Object.getOwnPropertySymbols) {
|
|
262
262
|
var o = Object.getOwnPropertySymbols(e);
|
|
263
263
|
for (t = 0; t < o.length; t++) {
|
|
264
|
-
a = o[t], r.
|
|
264
|
+
a = o[t], -1 === r.indexOf(a) && {}.propertyIsEnumerable.call(e, a) && (i[a] = e[a]);
|
|
265
265
|
}
|
|
266
266
|
}
|
|
267
267
|
return i;
|
|
@@ -271,7 +271,7 @@
|
|
|
271
271
|
var a = {};
|
|
272
272
|
for (var t in e) {
|
|
273
273
|
if ({}.hasOwnProperty.call(e, t)) {
|
|
274
|
-
if (r.
|
|
274
|
+
if (-1 !== r.indexOf(t)) continue;
|
|
275
275
|
a[t] = e[t];
|
|
276
276
|
}
|
|
277
277
|
}
|