@splunk/react-ui 4.42.0 → 5.0.0-beta.2
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 +87 -109
- package/Animation.js +48 -31
- package/Avatar.d.ts +2 -0
- package/Avatar.js +478 -0
- package/Box.js +8 -8
- package/Breadcrumbs.js +45 -49
- package/Button.js +144 -399
- package/ButtonGroup.js +22 -26
- package/ButtonSimple.js +239 -605
- package/CHANGELOG.md +29 -0
- package/CHANGELOG.v5.mdx +195 -0
- package/Calendar.js +55 -68
- package/Card.js +162 -200
- package/Chip.js +108 -96
- package/Clickable.js +174 -310
- package/Code.js +528 -372
- package/CollapsiblePanel.js +439 -601
- package/Color.js +727 -967
- package/ColumnLayout.js +190 -234
- package/ComboBox.js +166 -161
- package/ControlGroup.js +502 -531
- package/Date.js +314 -420
- package/DefinitionList.js +128 -140
- package/Dropdown.js +201 -358
- package/DualListbox.js +26 -26
- package/File.js +479 -558
- package/FormRows.js +339 -569
- package/Heading.js +53 -99
- package/Image.js +254 -305
- package/JSONTree.js +135 -131
- package/Layer.js +187 -269
- package/{CloseButton.js → Layout.js} +39 -61
- package/Link.js +91 -244
- package/List.js +68 -74
- package/MIGRATION.mdx +48 -53
- package/MIGRATION.v5.mdx +428 -0
- package/Markdown.js +439 -385
- package/Menu.js +387 -741
- package/Message.js +150 -322
- package/MessageBar.js +15 -15
- package/Modal.js +444 -587
- package/Monogram.js +1 -1
- package/Multiselect.js +1207 -1256
- package/NonInteractiveCheckbox.js +189 -0
- package/Number.js +538 -621
- package/Paginator.js +354 -448
- package/Paragraph.js +12 -15
- package/Popover.js +588 -683
- package/Progress.js +141 -244
- package/Prose.d.ts +2 -0
- package/Prose.js +213 -0
- package/RadioBar.js +328 -450
- package/RadioList.js +129 -212
- package/Resize.js +351 -402
- package/ResultsMenu.d.ts +2 -0
- package/ResultsMenu.js +255 -358
- package/Scroll.js +159 -238
- package/Search.js +365 -453
- package/Select.js +1097 -1380
- package/SidePanel.js +179 -223
- package/Slider.js +440 -542
- package/SlidingPanels.js +377 -504
- package/SplitButton.js +114 -102
- package/StaticContent.js +58 -74
- package/StepBar.js +193 -258
- package/Switch.js +246 -552
- package/TabBar.js +442 -622
- package/TabLayout.js +197 -251
- package/Table.js +2373 -3691
- package/Text.js +422 -909
- package/TextArea.js +537 -959
- package/Tooltip.js +35 -41
- package/TransitionOpen.js +296 -334
- package/Tree.js +20 -14
- package/Typography.js +35 -50
- package/WaitSpinner.js +93 -124
- package/package.json +16 -17
- package/stubs-dependencies.d.ts +0 -7
- package/stubs-splunkui.d.ts +6 -1
- package/types/src/Accordion/Accordion.d.ts +5 -1
- package/types/src/Accordion/Panel.d.ts +1 -2
- package/types/src/Accordion/docs/examples/Controlled.d.ts +2 -1
- package/types/src/Accordion/docs/examples/Inset.d.ts +2 -1
- package/types/src/Accordion/docs/examples/Uncontrolled.d.ts +2 -1
- package/types/src/Anchor/Anchor.d.ts +1 -1
- package/types/src/Anchor/docs/examples/Basic.d.ts +2 -1
- package/types/src/Animation/Animation.d.ts +12 -2
- package/types/src/AnimationToggle/AnimationToggleProvider.d.ts +1 -1
- package/types/src/AnimationToggle/docs/examples/Provider.d.ts +2 -2
- package/types/src/AnimationToggle/docs/examples/ReducedMotionComponent.d.ts +2 -1
- package/types/src/AnimationToggle/docs/examples/ReducedMotionHook.d.ts +2 -1
- package/types/src/AnimationToggle/docs/examples/ToggleComponent.d.ts +2 -2
- package/types/src/AnimationToggle/docs/examples/ToggleHook.d.ts +2 -1
- package/types/src/Avatar/Avatar.d.ts +65 -0
- package/types/src/Avatar/docs/examples/BackgroundColor.d.ts +2 -0
- package/types/src/Avatar/docs/examples/Basic.d.ts +2 -0
- package/types/src/Avatar/docs/examples/Image.d.ts +2 -0
- package/types/src/Avatar/docs/examples/Interactive.d.ts +2 -0
- package/types/src/Avatar/docs/examples/Size.d.ts +2 -0
- package/types/src/Avatar/getInitials.d.ts +9 -0
- package/types/src/Avatar/index.d.ts +2 -0
- package/types/src/Box/Box.d.ts +1 -1
- package/types/src/Breadcrumbs/Breadcrumbs.d.ts +1 -1
- package/types/src/Breadcrumbs/Item.d.ts +1 -1
- package/types/src/Breadcrumbs/docs/examples/Adornments.d.ts +2 -1
- package/types/src/Breadcrumbs/docs/examples/Basic.d.ts +2 -1
- package/types/src/Breadcrumbs/docs/examples/CustomizedClick.d.ts +2 -1
- package/types/src/Button/Button.d.ts +20 -34
- package/types/src/Button/docs/examples/Basic.d.ts +2 -1
- package/types/src/Button/docs/examples/Block.d.ts +2 -1
- package/types/src/Button/docs/examples/Disabled.d.ts +2 -1
- package/types/src/Button/docs/examples/Icons.d.ts +2 -1
- package/types/src/Button/docs/examples/Menus.d.ts +2 -1
- package/types/src/Button/docs/examples/To.d.ts +2 -1
- package/types/src/Button/docs/examples/Truncated.d.ts +2 -1
- package/types/src/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/types/src/ButtonGroup/docs/examples/Basic.d.ts +2 -1
- package/types/src/ButtonSimple/ButtonSimple.d.ts +22 -41
- package/types/src/ButtonSimple/mixin.d.ts +6 -2
- package/types/src/Calendar/Calendar.d.ts +2 -2
- package/types/src/Calendar/DateTable.d.ts +1 -1
- package/types/src/Calendar/Day.d.ts +1 -1
- package/types/src/Calendar/MonthHeader.d.ts +1 -1
- package/types/src/Card/Body.d.ts +1 -1
- package/types/src/Card/Card.d.ts +4 -9
- package/types/src/Card/Footer.d.ts +1 -8
- package/types/src/Card/Header.d.ts +2 -2
- package/types/src/Card/docs/examples/Actions.d.ts +2 -1
- package/types/src/Card/docs/examples/Basic.d.ts +2 -1
- package/types/src/Card/docs/examples/Clickable.d.ts +2 -1
- package/types/src/Card/docs/examples/Full.d.ts +2 -1
- package/types/src/Card/docs/examples/Images.d.ts +2 -1
- package/types/src/Card/docs/examples/Selectable.d.ts +2 -1
- package/types/src/CardLayout/CardLayout.d.ts +1 -1
- package/types/src/CardLayout/docs/examples/Basic.d.ts +2 -1
- package/types/src/CardLayout/docs/examples/Interactive.d.ts +2 -2
- package/types/src/Chip/Chip.d.ts +1 -1
- package/types/src/Chip/docs/examples/Appearance.d.ts +2 -1
- package/types/src/Chip/docs/examples/CustomColors.d.ts +2 -1
- package/types/src/Chip/docs/examples/Disabled.d.ts +2 -1
- package/types/src/Chip/docs/examples/Icon.d.ts +2 -1
- package/types/src/Chip/docs/examples/Removable.d.ts +2 -1
- package/types/src/Chip/docs/examples/RemovableWithNonStringChildren.d.ts +2 -1
- package/types/src/Clickable/Clickable.d.ts +13 -37
- package/types/src/Clickable/NavigationProvider.d.ts +2 -19
- package/types/src/Clickable/docs/examples/Basic.d.ts +2 -1
- package/types/src/Clickable/docs/examples/Disabled.d.ts +3 -0
- package/types/src/Clickable/docs/examples/NavigationProvider.d.ts +2 -1
- package/types/src/Code/Code.d.ts +3 -3
- package/types/src/Code/docs/examples/Default.d.ts +2 -1
- package/types/src/Code/docs/examples/HideIndent.d.ts +2 -1
- package/types/src/Code/docs/examples/Language.d.ts +2 -1
- package/types/src/CollapsiblePanel/CollapsiblePanel.d.ts +31 -70
- package/types/src/CollapsiblePanel/SingleOpenPanelGroup.d.ts +2 -2
- package/types/src/CollapsiblePanel/docs/examples/Actions.d.ts +3 -0
- package/types/src/CollapsiblePanel/docs/examples/BasicControlled.d.ts +2 -1
- package/types/src/CollapsiblePanel/docs/examples/BasicUncontrolled.d.ts +2 -1
- package/types/src/CollapsiblePanel/docs/examples/Disabled.d.ts +3 -0
- package/types/src/CollapsiblePanel/docs/examples/MultiControlled.d.ts +2 -1
- package/types/src/CollapsiblePanel/docs/examples/MultiUncontrolled.d.ts +2 -1
- package/types/src/CollapsiblePanel/docs/examples/SingleOpenPanelGroupControlled.d.ts +2 -1
- package/types/src/CollapsiblePanel/docs/examples/SingleOpenPanelGroupInset.d.ts +2 -1
- package/types/src/CollapsiblePanel/docs/examples/SingleOpenPanelGroupUncontrolled.d.ts +2 -1
- package/types/src/CollapsiblePanel/docs/examples/Subtle.d.ts +3 -0
- package/types/src/CollapsiblePanel/icons/ExpandPanel.d.ts +2 -1
- package/types/src/Color/Color.d.ts +24 -59
- package/types/src/Color/Palette.d.ts +3 -18
- package/types/src/Color/Swatch.d.ts +1 -4
- package/types/src/Color/docs/examples/Controlled.d.ts +2 -1
- package/types/src/Color/docs/examples/CustomizedPalette.d.ts +2 -1
- package/types/src/Color/docs/examples/HideInput.d.ts +2 -1
- package/types/src/Color/docs/examples/Null.d.ts +2 -1
- package/types/src/Color/docs/examples/ThemeVariables.d.ts +2 -1
- package/types/src/Color/docs/examples/Transparent.d.ts +2 -1
- package/types/src/Color/docs/examples/Uncontrolled.d.ts +2 -1
- package/types/src/ColumnLayout/Column.d.ts +1 -11
- package/types/src/ColumnLayout/ColumnLayout.d.ts +1 -1
- package/types/src/ColumnLayout/Row.d.ts +1 -11
- package/types/src/ColumnLayout/docs/examples/AlignItems.d.ts +2 -1
- package/types/src/ColumnLayout/docs/examples/Basic.d.ts +2 -1
- package/types/src/ColumnLayout/docs/examples/Dividers.d.ts +2 -1
- package/types/src/ColumnLayout/docs/examples/Gutters.d.ts +2 -1
- package/types/src/ComboBox/ComboBox.d.ts +10 -14
- package/types/src/ComboBox/Option.d.ts +2 -2
- package/types/src/ComboBox/docs/examples/Controlled.d.ts +2 -1
- package/types/src/ComboBox/docs/examples/Fetching.d.ts +2 -1
- package/types/src/ComboBox/docs/examples/Headings.d.ts +2 -1
- package/types/src/ComboBox/docs/examples/Label.d.ts +2 -1
- package/types/src/ComboBox/docs/examples/LoadMoreOnScrollBottom.d.ts +2 -1
- package/types/src/ComboBox/docs/examples/Uncontrolled.d.ts +2 -1
- package/types/src/ControlGroup/ControlGroup.d.ts +22 -38
- package/types/src/ControlGroup/ErrorMessageBar.d.ts +18 -0
- package/types/src/ControlGroup/docs/examples/Basic.d.ts +2 -1
- package/types/src/ControlGroup/docs/examples/CustomizedLabelTarget.d.ts +2 -2
- package/types/src/ControlGroup/docs/examples/Error.d.ts +2 -1
- package/types/src/ControlGroup/docs/examples/HelpWithErrorText.d.ts +2 -1
- package/types/src/ControlGroup/docs/examples/HelpWithLinks.d.ts +2 -1
- package/types/src/ControlGroup/docs/examples/LabelLeft.d.ts +3 -0
- package/types/src/ControlGroup/docs/examples/LayoutFill.d.ts +2 -1
- package/types/src/ControlGroup/docs/examples/LayoutFillJoin.d.ts +2 -1
- package/types/src/ControlGroup/docs/examples/LayoutNone.d.ts +2 -1
- package/types/src/ControlGroup/docs/examples/Required.d.ts +2 -1
- package/types/src/Date/Date.d.ts +30 -65
- package/types/src/Date/Icon.d.ts +2 -1
- package/types/src/Date/docs/examples/Basic.d.ts +2 -1
- package/types/src/Date/docs/examples/Controlled.d.ts +2 -2
- package/types/src/Date/docs/examples/CustomDate.d.ts +2 -1
- package/types/src/Date/docs/examples/Disabled.d.ts +2 -1
- package/types/src/Date/docs/examples/Error.d.ts +2 -1
- package/types/src/Date/docs/examples/HighlightToday.d.ts +2 -2
- package/types/src/Date/docs/examples/WithoutCalendar.d.ts +2 -1
- package/types/src/DefinitionList/DefinitionList.d.ts +8 -3
- package/types/src/DefinitionList/DefinitionListContext.d.ts +7 -0
- package/types/src/DefinitionList/Description.d.ts +3 -3
- package/types/src/DefinitionList/Term.d.ts +3 -3
- package/types/src/DefinitionList/docs/examples/Basic.d.ts +2 -1
- package/types/src/DefinitionList/docs/examples/Customize.d.ts +2 -1
- package/types/src/DefinitionList/docs/examples/EmptyDescription.d.ts +3 -0
- package/types/src/DefinitionList/docs/examples/WithSeparator.d.ts +3 -0
- package/types/src/Divider/Divider.d.ts +1 -1
- package/types/src/Divider/docs/examples/Basic.d.ts +2 -1
- package/types/src/Divider/docs/examples/CustomStyle.d.ts +2 -1
- package/types/src/Divider/docs/examples/Decorative.d.ts +2 -1
- package/types/src/Divider/docs/examples/Vertical.d.ts +2 -1
- package/types/src/Dropdown/Dropdown.d.ts +29 -44
- package/types/src/Dropdown/docs/examples/Basic.d.ts +2 -1
- package/types/src/Dropdown/docs/examples/BasicMenu.d.ts +2 -1
- package/types/src/Dropdown/docs/examples/ControlledDropdown.d.ts +2 -1
- package/types/src/Dropdown/docs/examples/Dialog.d.ts +2 -1
- package/types/src/Dropdown/docs/examples/ScrollContainer.d.ts +2 -1
- package/types/src/Dropdown/docs/examples/ScrollingMenu.d.ts +2 -1
- package/types/src/Dropdown/docs/examples/Submenu.d.ts +2 -1
- package/types/src/Dropdown/docs/examples/TooltipButtonToggle.d.ts +3 -0
- package/types/src/DualListbox/DualListbox.d.ts +1 -1
- package/types/src/DualListbox/Label.d.ts +1 -1
- package/types/src/DualListbox/Listbox.d.ts +1 -1
- package/types/src/DualListbox/Option.d.ts +1 -1
- package/types/src/DualListbox/ScreenReaderWrapper.d.ts +2 -1
- package/types/src/DualListbox/ToolbarButton.d.ts +1 -1
- package/types/src/DualListbox/docs/examples/Basic.d.ts +2 -1
- package/types/src/DualListbox/docs/examples/Controlled.d.ts +2 -1
- package/types/src/DualListbox/docs/examples/Fill.d.ts +2 -1
- package/types/src/EventListener/EventListener.d.ts +1 -1
- package/types/src/File/File.d.ts +26 -33
- package/types/src/File/Icon.d.ts +2 -1
- package/types/src/File/IconCloud.d.ts +2 -1
- package/types/src/File/Item.d.ts +1 -1
- package/types/src/File/PaperClip.d.ts +2 -1
- package/types/src/File/Retry.d.ts +2 -1
- package/types/src/File/Trash.d.ts +2 -1
- package/types/src/File/docs/examples/CustomizedMessages.d.ts +2 -1
- package/types/src/File/docs/examples/Disabled.d.ts +2 -2
- package/types/src/File/docs/examples/DropAnywhere.d.ts +2 -2
- package/types/src/File/docs/examples/Error.d.ts +2 -1
- package/types/src/File/docs/examples/FullScreen.d.ts +2 -1
- package/types/src/File/docs/examples/Multi.d.ts +2 -2
- package/types/src/File/docs/examples/Progress.d.ts +2 -1
- package/types/src/File/docs/examples/Single.d.ts +2 -2
- package/types/src/FormRows/FormRows.d.ts +20 -14
- package/types/src/FormRows/Row.d.ts +11 -7
- package/types/src/FormRows/SortableList.d.ts +1 -1
- package/types/src/FormRows/docs/examples/Basic.d.ts +1 -1
- package/types/src/FormRows/docs/examples/Header.d.ts +1 -1
- package/types/src/FormRows/docs/examples/Menu.d.ts +1 -1
- package/types/src/FormRows/docs/examples/ReorderOnly.d.ts +1 -1
- package/types/src/FormRows/icons/FormRowsPlusIcon.d.ts +2 -1
- package/types/src/Heading/Heading.d.ts +8 -20
- package/types/src/Heading/docs/examples/Basic.d.ts +2 -1
- package/types/src/Heading/docs/examples/Variant.d.ts +2 -1
- package/types/src/Heading/index.d.ts +1 -0
- package/types/src/Image/Image.d.ts +8 -19
- package/types/src/Image/docs/examples/Basic.d.ts +2 -1
- package/types/src/Image/icons/Cross.d.ts +2 -1
- package/types/src/JSONTree/JSONTree.d.ts +6 -10
- package/types/src/JSONTree/JSONTreeItem.d.ts +1 -1
- package/types/src/JSONTree/docs/examples/Basic.d.ts +2 -1
- package/types/src/JSONTree/docs/examples/Events.d.ts +2 -2
- package/types/src/JSONTree/docs/examples/ExpandChildrenOnShiftKey.d.ts +2 -1
- package/types/src/JSONTree/renderTreeItems.d.ts +3 -2
- package/types/src/Layer/Layer.d.ts +8 -25
- package/types/src/Layer/LayerStack.d.ts +2 -3
- package/types/src/Layer/docs/examples/Basic.d.ts +2 -1
- package/types/src/Layout/Layout.d.ts +22 -0
- package/types/src/Layout/docs/examples/Basic.d.ts +3 -0
- package/types/src/Layout/index.d.ts +2 -0
- package/types/src/Layout/test/Layout.unit.d.ts +1 -0
- package/types/src/Link/Link.d.ts +9 -22
- package/types/src/Link/docs/examples/Basic.d.ts +2 -1
- package/types/src/Link/docs/examples/Disabled.d.ts +2 -1
- package/types/src/Link/docs/examples/NewWindow.d.ts +2 -1
- package/types/src/Link/docs/examples/Standalone.d.ts +3 -0
- package/types/src/Link/icons/External.d.ts +2 -1
- package/types/src/List/Item.d.ts +1 -1
- package/types/src/List/List.d.ts +5 -17
- package/types/src/List/docs/examples/CustomizedList.d.ts +2 -1
- package/types/src/List/docs/examples/OrderedList.d.ts +2 -1
- package/types/src/List/docs/examples/UnorderedList.d.ts +2 -1
- package/types/src/Markdown/Markdown.d.ts +50 -59
- package/types/src/Markdown/docs/examples/Basic.d.ts +2 -1
- package/types/src/Markdown/docs/examples/I18n.d.ts +2 -1
- package/types/src/Markdown/docs/examples/RenderProps.d.ts +2 -1
- package/types/src/Markdown/renderers/MarkdownAnchorHeading.d.ts +2 -8
- package/types/src/Markdown/renderers/MarkdownBlockquote.d.ts +3 -7
- package/types/src/Markdown/renderers/MarkdownCode.d.ts +3 -9
- package/types/src/Markdown/renderers/MarkdownCodeBlock.d.ts +5 -9
- package/types/src/Markdown/renderers/MarkdownHeading.d.ts +3 -9
- package/types/src/Markdown/renderers/MarkdownImage.d.ts +4 -11
- package/types/src/Markdown/renderers/MarkdownItem.d.ts +4 -8
- package/types/src/Markdown/renderers/MarkdownLink.d.ts +3 -11
- package/types/src/Markdown/renderers/MarkdownList.d.ts +6 -22
- package/types/src/Markdown/renderers/MarkdownParagraph.d.ts +1 -7
- package/types/src/Markdown/renderers/MarkdownTable.d.ts +40 -0
- package/types/src/Markdown/renderers/index.d.ts +5 -4
- package/types/src/Menu/Divider.d.ts +2 -1
- package/types/src/Menu/Heading.d.ts +3 -3
- package/types/src/Menu/Item.d.ts +14 -47
- package/types/src/Menu/Menu.d.ts +4 -19
- package/types/src/Menu/docs/examples/Adornments.d.ts +2 -1
- package/types/src/Menu/docs/examples/Basic.d.ts +2 -1
- package/types/src/Menu/docs/examples/Complex.d.ts +2 -1
- package/types/src/Menu/docs/examples/Descriptions.d.ts +2 -1
- package/types/src/Menu/docs/examples/Dimmed.d.ts +2 -1
- package/types/src/Menu/docs/examples/Disabled.d.ts +2 -1
- package/types/src/Menu/docs/examples/Dividers.d.ts +2 -1
- package/types/src/Menu/docs/examples/Headings.d.ts +2 -1
- package/types/src/Menu/docs/examples/Links.d.ts +2 -1
- package/types/src/Menu/docs/examples/MatchRanges.d.ts +2 -1
- package/types/src/Menu/docs/examples/Selectable.d.ts +2 -1
- package/types/src/Menu/docs/examples/SelectableWithAdornments.d.ts +2 -1
- package/types/src/Menu/docs/examples/Truncate.d.ts +2 -1
- package/types/src/Menu/icons/External.d.ts +2 -1
- package/types/src/Message/Message.d.ts +4 -11
- package/types/src/Message/Title.d.ts +1 -1
- package/types/src/Message/docs/examples/Basic.d.ts +2 -1
- package/types/src/Message/docs/examples/Content.d.ts +2 -1
- package/types/src/Message/docs/examples/Fill.d.ts +2 -1
- package/types/src/Message/docs/examples/Removable.d.ts +2 -1
- package/types/src/MessageBar/MessageBar.d.ts +1 -1
- package/types/src/MessageBar/docs/examples/Basic.d.ts +2 -1
- package/types/src/MessageBar/docs/examples/Types.d.ts +2 -1
- package/types/src/MessageBar/docs/examples/WithActions.d.ts +2 -1
- package/types/src/Modal/Body.d.ts +1 -1
- package/types/src/Modal/Footer.d.ts +9 -1
- package/types/src/Modal/Header.d.ts +7 -11
- package/types/src/Modal/Modal.d.ts +26 -32
- package/types/src/Modal/ModalContext.d.ts +2 -0
- package/types/src/Modal/docs/examples/Basic.d.ts +2 -1
- package/types/src/Modal/docs/examples/InitialFocus.d.ts +2 -1
- package/types/src/Modal/docs/examples/TypicalUsage.d.ts +2 -1
- package/types/src/Modal/docs/examples/Undismissable.d.ts +2 -1
- package/types/src/ModalLayer/ModalLayer.d.ts +1 -1
- package/types/src/Monogram/Monogram.d.ts +3 -7
- package/types/src/Monogram/docs/examples/BackgroundAuto.d.ts +2 -1
- package/types/src/Monogram/docs/examples/BackgroundCustom.d.ts +2 -1
- package/types/src/Monogram/docs/examples/Basic.d.ts +2 -1
- package/types/src/Monogram/docs/examples/Interactive.d.ts +2 -1
- package/types/src/Monogram/docs/examples/Size.d.ts +2 -1
- package/types/src/Multiselect/Compact.d.ts +1 -1
- package/types/src/Multiselect/Multiselect.d.ts +4 -2
- package/types/src/Multiselect/Normal.d.ts +1 -1
- package/types/src/Multiselect/Option.d.ts +1 -1
- package/types/src/Multiselect/docs/examples/Children.d.ts +2 -2
- package/types/src/Multiselect/docs/examples/Compact.d.ts +2 -1
- package/types/src/Multiselect/docs/examples/CompactSelectAll.d.ts +2 -1
- package/types/src/Multiselect/docs/examples/Controlled.d.ts +2 -2
- package/types/src/Multiselect/docs/examples/CustomizeSelected.d.ts +2 -2
- package/types/src/Multiselect/docs/examples/Disabled.d.ts +2 -2
- package/types/src/Multiselect/docs/examples/Error.d.ts +2 -2
- package/types/src/Multiselect/docs/examples/Fetching.d.ts +4 -4
- package/types/src/Multiselect/docs/examples/Headings.d.ts +2 -1
- package/types/src/Multiselect/docs/examples/Icons.d.ts +2 -1
- package/types/src/Multiselect/docs/examples/LoadMoreOnScrollBottom.d.ts +4 -4
- package/types/src/Multiselect/docs/examples/NewValues.d.ts +2 -2
- package/types/src/Multiselect/docs/examples/TabInput.d.ts +2 -2
- package/types/src/Multiselect/docs/examples/Uncontrolled.d.ts +2 -1
- package/types/src/NonInteractiveCheckbox/NonInteractiveCheckbox.d.ts +21 -0
- package/types/src/NonInteractiveCheckbox/index.d.ts +1 -0
- package/types/src/Number/Number.d.ts +46 -68
- package/types/src/Number/docs/examples/Basic.d.ts +2 -2
- package/types/src/Number/docs/examples/Disabled.d.ts +2 -1
- package/types/src/Number/docs/examples/Error.d.ts +2 -1
- package/types/src/Number/docs/examples/Limits.d.ts +2 -2
- package/types/src/Number/docs/examples/Locale.d.ts +2 -2
- package/types/src/Number/docs/examples/Uncontrolled.d.ts +2 -1
- package/types/src/Number/utils.d.ts +28 -0
- package/types/src/Paginator/Button.d.ts +4 -8
- package/types/src/Paginator/Compact.d.ts +1 -1
- package/types/src/Paginator/PageControl.d.ts +1 -1
- package/types/src/Paginator/PageSelect.d.ts +1 -1
- package/types/src/Paginator/PageSeparator.d.ts +2 -1
- package/types/src/Paginator/Paginator.d.ts +15 -2
- package/types/src/Paginator/docs/examples/Basic.d.ts +2 -1
- package/types/src/Paginator/docs/examples/Compact.d.ts +2 -1
- package/types/src/Paginator/docs/examples/CompactCustomLabel.d.ts +2 -1
- package/types/src/Paginator/docs/examples/CompactWithLabel.d.ts +2 -1
- package/types/src/Paginator/docs/examples/CustomPages.d.ts +3 -0
- package/types/src/Paginator/docs/examples/Labelled.d.ts +2 -1
- package/types/src/Paginator/docs/examples/PageControl.d.ts +2 -1
- package/types/src/Paragraph/Paragraph.d.ts +3 -1
- package/types/src/Paragraph/docs/examples/Basic.d.ts +2 -1
- package/types/src/Paragraph/index.d.ts +1 -0
- package/types/src/Popover/Popover.d.ts +50 -72
- package/types/src/Popover/PopoverMenuContext.d.ts +6 -0
- package/types/src/Popover/PopoverProvider.d.ts +23 -0
- package/types/src/Popover/docs/examples/Basic.d.ts +2 -1
- package/types/src/Popover/getPlacement.d.ts +1 -1
- package/types/src/Popover/index.d.ts +2 -1
- package/types/src/Progress/Progress.d.ts +3 -4
- package/types/src/Progress/docs/examples/Basic.d.ts +2 -1
- package/types/src/Progress/docs/examples/Type.d.ts +2 -1
- package/types/src/Prose/Prose.d.ts +29 -0
- package/types/src/Prose/docs/examples/Basic.d.ts +3 -0
- package/types/src/Prose/docs/examples/Customize.d.ts +3 -0
- package/types/src/Prose/index.d.ts +2 -0
- package/types/src/Prose/test/Prose.unit.d.ts +1 -0
- package/types/src/RadioBar/Option.d.ts +2 -18
- package/types/src/RadioBar/RadioBar.d.ts +22 -39
- package/types/src/RadioBar/RadioBarContext.d.ts +0 -1
- package/types/src/RadioBar/docs/examples/AdornmentAriaExamples.d.ts +2 -1
- package/types/src/RadioBar/docs/examples/Basic.d.ts +2 -1
- package/types/src/RadioBar/docs/examples/Disabled.d.ts +2 -1
- package/types/src/RadioBar/docs/examples/Error.d.ts +2 -1
- package/types/src/RadioBar/docs/examples/MenuBar.d.ts +2 -1
- package/types/src/RadioBar/docs/examples/Uncontrolled.d.ts +2 -1
- package/types/src/RadioList/Option.d.ts +1 -1
- package/types/src/RadioList/RadioList.d.ts +5 -2
- package/types/src/RadioList/docs/examples/Basic.d.ts +2 -1
- package/types/src/RadioList/docs/examples/Disabled.d.ts +2 -1
- package/types/src/RadioList/docs/examples/Error.d.ts +2 -1
- package/types/src/RadioList/docs/examples/Row.d.ts +2 -1
- package/types/src/RadioList/docs/examples/Uncontrolled.d.ts +2 -1
- package/types/src/Resize/Resize.d.ts +15 -23
- package/types/src/Resize/docs/examples/Appearance.d.ts +2 -1
- package/types/src/Resize/docs/examples/Basic.d.ts +2 -1
- package/types/src/Resize/docs/examples/Percentage.d.ts +2 -1
- package/types/src/Resize/docs/examples/SizingInner.d.ts +2 -1
- package/types/src/Resize/docs/examples/SizingOuter.d.ts +2 -1
- package/types/src/ResultsMenu/ResultsMenu.d.ts +1 -1
- package/types/src/ResultsMenu/VirtualizedResultsMenu/VirtualizedResultsMenu.d.ts +1 -1
- package/types/src/ScreenReaderContent/ScreenReaderContent.d.ts +1 -1
- package/types/src/ScreenReaderContent/docs/examples/Basic.d.ts +2 -1
- package/types/src/Scroll/Inner.d.ts +1 -1
- package/types/src/Scroll/Scroll.d.ts +37 -27
- package/types/src/Scroll/docs/examples/Controlled.d.ts +2 -2
- package/types/src/Scroll/docs/examples/Uncontrolled.d.ts +2 -1
- package/types/src/ScrollContainerContext/docs/examples/Consumer.d.ts +2 -1
- package/types/src/ScrollContainerContext/docs/examples/Provider.d.ts +2 -1
- package/types/src/Search/Option.d.ts +32 -32
- package/types/src/Search/Search.d.ts +4 -4
- package/types/src/Search/docs/examples/Controlled.d.ts +2 -1
- package/types/src/Search/docs/examples/Loading.d.ts +2 -1
- package/types/src/Search/docs/examples/Options.d.ts +2 -1
- package/types/src/Search/docs/examples/OptionsLinks.d.ts +2 -1
- package/types/src/Search/docs/examples/Results.d.ts +2 -1
- package/types/src/Select/Option.d.ts +8 -21
- package/types/src/Select/OptionBase.d.ts +3 -8
- package/types/src/Select/Select.d.ts +62 -22
- package/types/src/Select/SelectAllOption.d.ts +1 -1
- package/types/src/Select/SelectBase.d.ts +5 -8
- package/types/src/Select/docs/examples/Appearance.d.ts +2 -11
- package/types/src/Select/docs/examples/Basic.d.ts +2 -9
- package/types/src/Select/docs/examples/Children.d.ts +2 -9
- package/types/src/Select/docs/examples/Descriptions.d.ts +2 -9
- package/types/src/Select/docs/examples/Error.d.ts +2 -1
- package/types/src/Select/docs/examples/Fetching.d.ts +2 -22
- package/types/src/Select/docs/examples/Filter.d.ts +2 -9
- package/types/src/Select/docs/examples/Headings.d.ts +2 -9
- package/types/src/Select/docs/examples/Icons.d.ts +2 -1
- package/types/src/Select/docs/examples/LoadMoreOnScrollBottom.d.ts +2 -24
- package/types/src/Select/docs/examples/Prefix.d.ts +2 -9
- package/types/src/Select/docs/examples/Truncate.d.ts +2 -9
- package/types/src/Select/docs/examples/Uncontrolled.d.ts +2 -1
- package/types/src/SidePanel/SidePanel.d.ts +18 -16
- package/types/src/SidePanel/docs/examples/Basic.d.ts +2 -1
- package/types/src/SidePanel/docs/examples/ChangeSize.d.ts +2 -1
- package/types/src/SidePanel/docs/examples/Composition.d.ts +2 -1
- package/types/src/Slider/Slider.d.ts +32 -46
- package/types/src/Slider/docs/examples/Basic.d.ts +2 -1
- package/types/src/Slider/docs/examples/Controlled.d.ts +2 -2
- package/types/src/Slider/docs/examples/CustomLabels.d.ts +2 -2
- package/types/src/Slider/docs/examples/Disabled.d.ts +2 -1
- package/types/src/Slider/docs/examples/Error.d.ts +2 -1
- package/types/src/Slider/docs/examples/StepMarks.d.ts +2 -1
- package/types/src/SlidingPanels/Panel.d.ts +23 -20
- package/types/src/SlidingPanels/SlidingPanels.d.ts +18 -25
- package/types/src/SlidingPanels/docs/examples/Basic.d.ts +2 -2
- package/types/src/SlidingPanels/docs/examples/Dropdown.d.ts +2 -2
- package/types/src/SlidingPanels/docs/examples/Modal.d.ts +2 -1
- package/types/src/SplitButton/Item.d.ts +2 -2
- package/types/src/SplitButton/SplitButton.d.ts +1 -1
- package/types/src/SplitButton/docs/examples/Basic.d.ts +2 -1
- package/types/src/SplitButton/docs/examples/Block.d.ts +2 -1
- package/types/src/SplitButton/docs/examples/ChangeLabel.d.ts +2 -1
- package/types/src/SplitButton/docs/examples/Disabled.d.ts +2 -1
- package/types/src/StaticContent/StaticContent.d.ts +1 -8
- package/types/src/StaticContent/docs/examples/Basic.d.ts +2 -1
- package/types/src/StaticContent/docs/examples/FieldValue.d.ts +2 -1
- package/types/src/StepBar/Step.d.ts +1 -1
- package/types/src/StepBar/StepBar.d.ts +2 -3
- package/types/src/StepBar/docs/examples/Basic.d.ts +2 -1
- package/types/src/StepBar/docs/examples/Error.d.ts +2 -1
- package/types/src/StepBar/types.d.ts +2 -0
- package/types/src/Switch/Switch.d.ts +37 -23
- package/types/src/Switch/docs/examples/Basic.d.ts +2 -2
- package/types/src/Switch/docs/examples/Disabled.d.ts +2 -2
- package/types/src/Switch/docs/examples/Error.d.ts +2 -1
- package/types/src/TabBar/Tab.d.ts +37 -44
- package/types/src/TabBar/TabBar.d.ts +21 -22
- package/types/src/TabBar/TabBarContext.d.ts +3 -5
- package/types/src/TabBar/docs/examples/Basic.d.ts +2 -1
- package/types/src/TabBar/docs/examples/Disabled.d.ts +2 -1
- package/types/src/TabBar/docs/examples/IconsAbove.d.ts +2 -1
- package/types/src/TabBar/docs/examples/IconsLeft.d.ts +2 -1
- package/types/src/TabBar/docs/examples/Tooltips.d.ts +2 -1
- package/types/src/TabBar/docs/examples/Vertical.d.ts +2 -1
- package/types/src/TabBar/docs/examples/VerticalIconsAbove.d.ts +2 -1
- package/types/src/TabBar/docs/examples/VerticalIconsLeft.d.ts +2 -1
- package/types/src/TabBar/docs/examples/WithCount.d.ts +2 -1
- package/types/src/TabLayout/Panel.d.ts +6 -1
- package/types/src/TabLayout/TabLayout.d.ts +18 -31
- package/types/src/TabLayout/docs/examples/AutoActivate.d.ts +2 -1
- package/types/src/TabLayout/docs/examples/Controlled.d.ts +2 -1
- package/types/src/TabLayout/docs/examples/Icons.d.ts +2 -1
- package/types/src/TabLayout/docs/examples/Uncontrolled.d.ts +2 -1
- package/types/src/TabLayout/docs/examples/Vertical.d.ts +2 -1
- package/types/src/TabLayout/docs/examples/VerticalIcons.d.ts +2 -1
- package/types/src/Table/Body.d.ts +6 -13
- package/types/src/Table/Caption.d.ts +1 -1
- package/types/src/Table/Cell.d.ts +40 -18
- package/types/src/Table/ExpandButton.d.ts +9 -3
- package/types/src/Table/Head.d.ts +40 -40
- package/types/src/Table/HeadCell.d.ts +49 -23
- package/types/src/Table/HeadDropdownCell.d.ts +58 -51
- package/types/src/Table/HeadInner.d.ts +1 -3
- package/types/src/Table/HeadTable.d.ts +23 -12
- package/types/src/Table/Row.d.ts +7 -14
- package/types/src/Table/RowDragCell.d.ts +2 -1
- package/types/src/Table/Table.d.ts +13 -19
- package/types/src/Table/Toggle.d.ts +1 -3
- package/types/src/Table/docs/examples/Basic.d.ts +2 -1
- package/types/src/Table/docs/examples/Click.d.ts +3 -16
- package/types/src/Table/docs/examples/ClickRows.d.ts +3 -16
- package/types/src/Table/docs/examples/Complex.d.ts +3 -50
- package/types/src/Table/docs/examples/DockedHeaderScrollbar.d.ts +2 -1
- package/types/src/Table/docs/examples/ExpandableRows.d.ts +2 -1
- package/types/src/Table/docs/examples/ExpandableRowsControlled.d.ts +2 -1
- package/types/src/Table/docs/examples/FilterColumnValues.d.ts +2 -13
- package/types/src/Table/docs/examples/FixedHeader.d.ts +2 -1
- package/types/src/Table/docs/examples/HeadDropdownCell.d.ts +2 -17
- package/types/src/Table/docs/examples/ReorderColumns.d.ts +3 -21
- package/types/src/Table/docs/examples/ReorderRows.d.ts +3 -21
- package/types/src/Table/docs/examples/Resizable.d.ts +3 -23
- package/types/src/Table/docs/examples/ResizableFill.d.ts +3 -23
- package/types/src/Table/docs/examples/RowActions.d.ts +3 -39
- package/types/src/Table/docs/examples/Selectable.d.ts +3 -18
- package/types/src/Table/docs/examples/SortableColumns.d.ts +2 -11
- package/types/src/Table/docs/examples/StripeRows.d.ts +2 -1
- package/types/src/Table/docs/examples/prisma/DockedHeaderScrollbar.d.ts +2 -1
- package/types/src/Text/IconOutlinedHide.d.ts +2 -1
- package/types/src/Text/IconOutlinedView.d.ts +2 -1
- package/types/src/Text/Text.d.ts +62 -112
- package/types/src/Text/docs/examples/Basic.d.ts +2 -1
- package/types/src/Text/docs/examples/CustomizedIcon.d.ts +2 -1
- package/types/src/Text/docs/examples/Dimmed.d.ts +2 -1
- package/types/src/Text/docs/examples/Disabled.d.ts +2 -1
- package/types/src/Text/docs/examples/Error.d.ts +2 -1
- package/types/src/Text/docs/examples/Inline.d.ts +2 -1
- package/types/src/Text/docs/examples/Password.d.ts +2 -1
- package/types/src/Text/docs/examples/Uncontrolled.d.ts +2 -1
- package/types/src/TextArea/TextArea.d.ts +49 -87
- package/types/src/TextArea/docs/examples/Basic.d.ts +2 -1
- package/types/src/TextArea/docs/examples/Disabled.d.ts +2 -1
- package/types/src/TextArea/docs/examples/Error.d.ts +2 -1
- package/types/src/TextArea/docs/examples/Inline.d.ts +2 -1
- package/types/src/TextArea/docs/examples/Uncontrolled.d.ts +2 -1
- package/types/src/TextArea/syncHeightWithShadow.d.ts +1 -1
- package/types/src/Tooltip/InfoIcon.d.ts +2 -1
- package/types/src/Tooltip/Tooltip.d.ts +9 -3
- package/types/src/Tooltip/docs/examples/Basic.d.ts +2 -1
- package/types/src/Tooltip/docs/examples/ContentRelationship.d.ts +2 -1
- package/types/src/Tooltip/docs/examples/Controlled.d.ts +2 -2
- package/types/src/Tooltip/docs/examples/CustomDelay.d.ts +2 -1
- package/types/src/Tooltip/docs/examples/CustomProps.d.ts +2 -1
- package/types/src/Tooltip/docs/examples/Toggletip.d.ts +2 -1
- package/types/src/TransitionOpen/TransitionOpen.d.ts +23 -25
- package/types/src/TransitionOpen/docs/examples/ExpandHeight.d.ts +2 -1
- package/types/src/TransitionOpen/docs/examples/ExpandWidth.d.ts +2 -1
- package/types/src/TransitionOpen/docs/examples/None.d.ts +2 -1
- package/types/src/TransitionOpen/docs/examples/SlideFromBottom.d.ts +2 -1
- package/types/src/TransitionOpen/docs/examples/SlideFromLeft.d.ts +2 -1
- package/types/src/TransitionOpen/docs/examples/SlideFromRight.d.ts +2 -1
- package/types/src/TransitionOpen/docs/examples/SlideFromTop.d.ts +2 -1
- package/types/src/Tree/Tree.d.ts +1 -1
- package/types/src/Tree/TreeItem.d.ts +1 -1
- package/types/src/Typography/Typography.d.ts +10 -19
- package/types/src/Typography/docs/examples/Basic.d.ts +2 -1
- package/types/src/WaitSpinner/WaitSpinner.d.ts +2 -3
- package/types/src/WaitSpinner/docs/examples/Basic.d.ts +2 -1
- package/types/src/utils/types.d.ts +1 -0
- package/useResizeObserver.js +122 -90
- package/Concertina.d.ts +0 -2
- package/Concertina.js +0 -963
- package/types/src/Accordion/docs/examples/FixedHeight.d.ts +0 -2
- package/types/src/Accordion/docs/examples/InDropdown.d.ts +0 -2
- package/types/src/Button/docs/examples/Dimmed.d.ts +0 -2
- package/types/src/Button/icons/CaretSmallDown.d.ts +0 -2
- package/types/src/Button/icons/External.d.ts +0 -2
- package/types/src/Clickable/docs/examples/Dimmed.d.ts +0 -2
- package/types/src/CloseButton/CloseButton.d.ts +0 -21
- package/types/src/CloseButton/index.d.ts +0 -1
- package/types/src/CollapsiblePanel/docs/examples/TitleWithActions.d.ts +0 -2
- package/types/src/Concertina/Concertina.d.ts +0 -46
- package/types/src/Concertina/ConcertinaContext.d.ts +0 -8
- package/types/src/Concertina/Heading.d.ts +0 -35
- package/types/src/Concertina/Panel.d.ts +0 -59
- package/types/src/Concertina/docs/examples/Basic.d.ts +0 -2
- package/types/src/Concertina/docs/examples/Disabled.d.ts +0 -9
- package/types/src/Concertina/docs/examples/Status.d.ts +0 -2
- package/types/src/Concertina/index.d.ts +0 -2
- package/types/src/Concertina/types.d.ts +0 -1
- package/types/src/ControlGroup/docs/examples/LabelTop.d.ts +0 -2
- package/types/src/Dropdown/docs/examples/OtherToggles.d.ts +0 -2
- package/types/src/Link/docs/examples/Inline.d.ts +0 -2
- package/types/src/Message/Link.d.ts +0 -37
- package/types/src/Number/IncrementIcon.d.ts +0 -2
- package/types/src/Paginator/icons/ChevronLeft.d.ts +0 -5
- package/types/src/Paginator/icons/ChevronRight.d.ts +0 -5
- package/types/src/Popover/PopoverContext.d.ts +0 -6
- package/types/src/RadioList/docs/examples/Composing.d.ts +0 -2
- package/types/src/Select/icons/CaretSmallDown.d.ts +0 -2
- package/types/src/Select/icons/Search.d.ts +0 -2
- package/types/src/Switch/CheckIcon.d.ts +0 -1
- package/types/src/Table/DragHandle.d.ts +0 -12
- package/types/src/Table/icons/HeadExpandRows.d.ts +0 -1
- package/types/src/Text/docs/examples/Multiline.d.ts +0 -2
- package/types/src/Text/docs/examples/Search.d.ts +0 -2
- package/types/src/TextArea/docs/examples/ClearContent.d.ts +0 -2
- package/types/src/TextArea/icons/ClearButton.d.ts +0 -3
- package/types/src/TextArea/icons/SearchIcon.d.ts +0 -1
package/TabLayout.js
CHANGED
|
@@ -62,48 +62,48 @@
|
|
|
62
62
|
// EXPORTS
|
|
63
63
|
e.d(t, {
|
|
64
64
|
Panel: () => /* reexport */ S,
|
|
65
|
-
default: () => /* reexport */
|
|
65
|
+
default: () => /* reexport */ M
|
|
66
66
|
});
|
|
67
67
|
// CONCATENATED MODULE: external "react"
|
|
68
68
|
const n = require("react");
|
|
69
69
|
var r = e.n(n);
|
|
70
70
|
// CONCATENATED MODULE: external "prop-types"
|
|
71
|
-
const
|
|
72
|
-
var
|
|
73
|
-
// CONCATENATED MODULE: external "lodash/has"
|
|
74
|
-
const i = require("lodash/has");
|
|
75
|
-
var l = e.n(i);
|
|
76
|
-
// CONCATENATED MODULE: external "lodash/keys"
|
|
77
|
-
const c = require("lodash/keys");
|
|
78
|
-
var u = e.n(c);
|
|
79
|
-
// CONCATENATED MODULE: external "lodash/omit"
|
|
80
|
-
const s = require("lodash/omit");
|
|
81
|
-
var p = e.n(s);
|
|
71
|
+
const a = require("prop-types");
|
|
72
|
+
var l = e.n(a);
|
|
82
73
|
// CONCATENATED MODULE: external "@splunk/ui-utils/id"
|
|
83
|
-
const
|
|
74
|
+
const o = require("@splunk/ui-utils/id");
|
|
84
75
|
// CONCATENATED MODULE: external "@splunk/react-ui/TabBar"
|
|
85
|
-
const
|
|
86
|
-
var
|
|
76
|
+
const i = require("@splunk/react-ui/TabBar");
|
|
77
|
+
var u = e.n(i);
|
|
78
|
+
// CONCATENATED MODULE: external "@splunk/react-ui/useControlled"
|
|
79
|
+
const c = require("@splunk/react-ui/useControlled");
|
|
80
|
+
var s = e.n(c);
|
|
81
|
+
// CONCATENATED MODULE: external "lodash/omit"
|
|
82
|
+
const d = require("lodash/omit");
|
|
83
|
+
var f = e.n(d);
|
|
87
84
|
// CONCATENATED MODULE: external "styled-components"
|
|
88
|
-
const
|
|
89
|
-
var
|
|
85
|
+
const v = require("styled-components");
|
|
86
|
+
var p = e.n(v);
|
|
90
87
|
// CONCATENATED MODULE: external "@splunk/themes"
|
|
91
|
-
const
|
|
88
|
+
const b = require("@splunk/themes");
|
|
92
89
|
// CONCATENATED MODULE: ./src/TabLayout/TabLayoutStyles.ts
|
|
93
|
-
var
|
|
90
|
+
var y = p().div.withConfig({
|
|
94
91
|
displayName: "TabLayoutStyles__StyledPanel",
|
|
95
92
|
componentId: "lf0quy-0"
|
|
96
|
-
})([ "", "" ],
|
|
97
|
-
|
|
93
|
+
})([ "", " ", "" ], b.mixins.reset("block"), (function(e) {
|
|
94
|
+
var t = e.$inset;
|
|
95
|
+
return t && (0, v.css)([ "padding:", ";" ], b.variables.spacingLarge);
|
|
96
|
+
}));
|
|
97
|
+
var m = p().div.withConfig({
|
|
98
98
|
displayName: "TabLayoutStyles__Styled",
|
|
99
99
|
componentId: "lf0quy-1"
|
|
100
|
-
})([ "text-align:center;margin-top:", ";", "" ],
|
|
100
|
+
})([ "text-align:center;margin-top:", ";", "" ], b.variables.spacingLarge, (function(e) {
|
|
101
101
|
var t = e.$layout;
|
|
102
|
-
return t === "vertical" && (0,
|
|
102
|
+
return t === "vertical" && (0, v.css)([ "display:flex;& > [role='tablist']{flex:0 0 auto;}& > ", "{width:100%;}" ], /* sc-sel */ y);
|
|
103
103
|
}));
|
|
104
104
|
// CONCATENATED MODULE: ./src/TabLayout/Panel.tsx
|
|
105
|
-
function
|
|
106
|
-
return
|
|
105
|
+
function g() {
|
|
106
|
+
return g = Object.assign ? Object.assign.bind() : function(e) {
|
|
107
107
|
for (var t = 1; t < arguments.length; t++) {
|
|
108
108
|
var n = arguments[t];
|
|
109
109
|
for (var r in n) {
|
|
@@ -111,20 +111,20 @@
|
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
return e;
|
|
114
|
-
},
|
|
114
|
+
}, g.apply(null, arguments);
|
|
115
115
|
}
|
|
116
|
-
function
|
|
116
|
+
function h(e, t) {
|
|
117
117
|
if (null == e) return {};
|
|
118
|
-
var n, r,
|
|
118
|
+
var n, r, a = P(e, t);
|
|
119
119
|
if (Object.getOwnPropertySymbols) {
|
|
120
|
-
var
|
|
121
|
-
for (r = 0; r <
|
|
122
|
-
n =
|
|
120
|
+
var l = Object.getOwnPropertySymbols(e);
|
|
121
|
+
for (r = 0; r < l.length; r++) {
|
|
122
|
+
n = l[r], t.includes(n) || {}.propertyIsEnumerable.call(e, n) && (a[n] = e[n]);
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
|
-
return
|
|
125
|
+
return a;
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function P(e, t) {
|
|
128
128
|
if (null == e) return {};
|
|
129
129
|
var n = {};
|
|
130
130
|
for (var r in e) {
|
|
@@ -135,40 +135,34 @@
|
|
|
135
135
|
}
|
|
136
136
|
return n;
|
|
137
137
|
}
|
|
138
|
-
var
|
|
139
|
-
children:
|
|
140
|
-
count:
|
|
141
|
-
disabled:
|
|
142
|
-
elementRef:
|
|
143
|
-
icon:
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
138
|
+
var O = {
|
|
139
|
+
children: l().node,
|
|
140
|
+
count: l().number,
|
|
141
|
+
disabled: l().bool,
|
|
142
|
+
elementRef: l().oneOfType([ l().func, l().object ]),
|
|
143
|
+
icon: l().node,
|
|
144
|
+
inset: l().bool,
|
|
145
|
+
label: l().oneOfType([ l().string, l().element ]),
|
|
146
|
+
panelId: l().string.isRequired,
|
|
147
|
+
tooltip: l().node
|
|
147
148
|
};
|
|
148
149
|
function I(e) {
|
|
149
|
-
var t = e.children, n = e.disabled,
|
|
150
|
+
var t = e.children, n = e.disabled, a = n === void 0 ? false : n, l = e.elementRef, o = e.inset, i = o === void 0 ? true : o, u = e.panelId, c = h(e, [ "children", "disabled", "elementRef", "inset", "panelId" ]);
|
|
150
151
|
// @docs-props-type PanelPropsBase
|
|
151
152
|
|
|
152
|
-
return r().createElement(
|
|
153
|
-
|
|
153
|
+
return r().createElement(y, g({
|
|
154
|
+
$inset: i,
|
|
155
|
+
"data-test-panel-id": u,
|
|
154
156
|
"data-test": "panel",
|
|
155
|
-
ref:
|
|
157
|
+
ref: l,
|
|
156
158
|
role: "tabpanel"
|
|
157
|
-
},
|
|
159
|
+
}, f()(c, [ "icon", "label", "tooltip" ])), t);
|
|
158
160
|
}
|
|
159
|
-
I.propTypes =
|
|
161
|
+
I.propTypes = O;
|
|
160
162
|
/* harmony default export */ const S = I;
|
|
161
163
|
// CONCATENATED MODULE: ./src/TabLayout/TabLayout.tsx
|
|
162
|
-
function
|
|
163
|
-
|
|
164
|
-
return T = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
|
|
165
|
-
return typeof e;
|
|
166
|
-
} : function(e) {
|
|
167
|
-
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
168
|
-
}, T(e);
|
|
169
|
-
}
|
|
170
|
-
function _() {
|
|
171
|
-
return _ = Object.assign ? Object.assign.bind() : function(e) {
|
|
164
|
+
function j() {
|
|
165
|
+
return j = Object.assign ? Object.assign.bind() : function(e) {
|
|
172
166
|
for (var t = 1; t < arguments.length; t++) {
|
|
173
167
|
var n = arguments[t];
|
|
174
168
|
for (var r in n) {
|
|
@@ -176,219 +170,171 @@
|
|
|
176
170
|
}
|
|
177
171
|
}
|
|
178
172
|
return e;
|
|
179
|
-
},
|
|
173
|
+
}, j.apply(null, arguments);
|
|
180
174
|
}
|
|
181
|
-
function
|
|
182
|
-
|
|
175
|
+
function w(e, t) {
|
|
176
|
+
return E(e) || C(e, t) || T(e, t) || A();
|
|
177
|
+
}
|
|
178
|
+
function A() {
|
|
179
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
183
180
|
}
|
|
184
|
-
function
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
Object.
|
|
181
|
+
function T(e, t) {
|
|
182
|
+
if (e) {
|
|
183
|
+
if ("string" == typeof e) return q(e, t);
|
|
184
|
+
var n = {}.toString.call(e).slice(8, -1);
|
|
185
|
+
return "Object" === n && e.constructor && (n = e.constructor.name), "Map" === n || "Set" === n ? Array.from(e) : "Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? q(e, t) : void 0;
|
|
189
186
|
}
|
|
190
187
|
}
|
|
191
|
-
function q(e, t
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
188
|
+
function q(e, t) {
|
|
189
|
+
(null == t || t > e.length) && (t = e.length);
|
|
190
|
+
for (var n = 0, r = Array(t); n < t; n++) {
|
|
191
|
+
r[n] = e[n];
|
|
192
|
+
}
|
|
193
|
+
return r;
|
|
195
194
|
}
|
|
196
|
-
function
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
195
|
+
function C(e, t) {
|
|
196
|
+
var n = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
|
|
197
|
+
if (null != n) {
|
|
198
|
+
var r, a, l, o, i = [], u = !0, c = !1;
|
|
199
|
+
try {
|
|
200
|
+
if (l = (n = n.call(e)).next, 0 === t) {
|
|
201
|
+
if (Object(n) !== n) return;
|
|
202
|
+
u = !1;
|
|
203
|
+
} else for (;!(u = (r = l.call(n)).done) && (i.push(r.value), i.length !== t); u = !0) {
|
|
204
|
+
}
|
|
205
|
+
} catch (e) {
|
|
206
|
+
c = !0, a = e;
|
|
207
|
+
} finally {
|
|
208
|
+
try {
|
|
209
|
+
if (!u && null != n["return"] && (o = n["return"](), Object(o) !== o)) return;
|
|
210
|
+
} finally {
|
|
211
|
+
if (c) throw a;
|
|
212
|
+
}
|
|
203
213
|
}
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
}), t && x(e, t);
|
|
207
|
-
}
|
|
208
|
-
function x(e, t) {
|
|
209
|
-
return x = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
|
|
210
|
-
return e.__proto__ = t, e;
|
|
211
|
-
}, x(e, t);
|
|
212
|
-
}
|
|
213
|
-
function R(e) {
|
|
214
|
-
var t = D();
|
|
215
|
-
return function() {
|
|
216
|
-
var n, r = M(e);
|
|
217
|
-
if (t) {
|
|
218
|
-
var o = M(this).constructor;
|
|
219
|
-
n = Reflect.construct(r, arguments, o);
|
|
220
|
-
} else n = r.apply(this, arguments);
|
|
221
|
-
return A(this, n);
|
|
222
|
-
};
|
|
223
|
-
}
|
|
224
|
-
function A(e, t) {
|
|
225
|
-
if (t && ("object" == T(t) || "function" == typeof t)) return t;
|
|
226
|
-
if (void 0 !== t) throw new TypeError("Derived constructors may only return object or undefined");
|
|
227
|
-
return z(e);
|
|
228
|
-
}
|
|
229
|
-
function z(e) {
|
|
230
|
-
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
231
|
-
return e;
|
|
232
|
-
}
|
|
233
|
-
function D() {
|
|
234
|
-
try {
|
|
235
|
-
var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function() {})));
|
|
236
|
-
} catch (e) {}
|
|
237
|
-
return (D = function t() {
|
|
238
|
-
return !!e;
|
|
239
|
-
})();
|
|
240
|
-
}
|
|
241
|
-
function M(e) {
|
|
242
|
-
return M = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
|
|
243
|
-
return e.__proto__ || Object.getPrototypeOf(e);
|
|
244
|
-
}, M(e);
|
|
214
|
+
return i;
|
|
215
|
+
}
|
|
245
216
|
}
|
|
246
|
-
function
|
|
247
|
-
|
|
248
|
-
value: n,
|
|
249
|
-
enumerable: !0,
|
|
250
|
-
configurable: !0,
|
|
251
|
-
writable: !0
|
|
252
|
-
}) : e[t] = n, e;
|
|
217
|
+
function E(e) {
|
|
218
|
+
if (Array.isArray(e)) return e;
|
|
253
219
|
}
|
|
254
|
-
function
|
|
255
|
-
|
|
256
|
-
|
|
220
|
+
function _(e, t) {
|
|
221
|
+
if (null == e) return {};
|
|
222
|
+
var n, r, a = k(e, t);
|
|
223
|
+
if (Object.getOwnPropertySymbols) {
|
|
224
|
+
var l = Object.getOwnPropertySymbols(e);
|
|
225
|
+
for (r = 0; r < l.length; r++) {
|
|
226
|
+
n = l[r], t.includes(n) || {}.propertyIsEnumerable.call(e, n) && (a[n] = e[n]);
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
return a;
|
|
257
230
|
}
|
|
258
|
-
function
|
|
259
|
-
if (
|
|
260
|
-
var n =
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
231
|
+
function k(e, t) {
|
|
232
|
+
if (null == e) return {};
|
|
233
|
+
var n = {};
|
|
234
|
+
for (var r in e) {
|
|
235
|
+
if ({}.hasOwnProperty.call(e, r)) {
|
|
236
|
+
if (t.includes(r)) continue;
|
|
237
|
+
n[r] = e[r];
|
|
238
|
+
}
|
|
265
239
|
}
|
|
266
|
-
return
|
|
240
|
+
return n;
|
|
267
241
|
}
|
|
268
|
-
/** @public */ var
|
|
269
|
-
autoActivate:
|
|
270
|
-
activePanelId:
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
onChange: a().func,
|
|
279
|
-
tabWidth: a().number
|
|
280
|
-
};
|
|
281
|
-
var $ = {
|
|
282
|
-
appearance: "navigation",
|
|
283
|
-
layout: "horizontal"
|
|
242
|
+
/** @public */ var R = {
|
|
243
|
+
autoActivate: l().bool,
|
|
244
|
+
activePanelId: l().string,
|
|
245
|
+
children: l().node,
|
|
246
|
+
defaultActivePanelId: l().string,
|
|
247
|
+
elementRef: l().oneOfType([ l().func, l().object ]),
|
|
248
|
+
iconPosition: l().oneOf([ "above", "left" ]),
|
|
249
|
+
layout: l().oneOf([ "horizontal", "vertical" ]),
|
|
250
|
+
onChange: l().func,
|
|
251
|
+
tabWidth: l().number
|
|
284
252
|
};
|
|
285
253
|
/**
|
|
286
254
|
* The `TabLayout` is a group of managed `Panels`. Only one panel can be open at a time.
|
|
287
255
|
* `TabLayout` supports both the controlled and uncontrolled patterns.
|
|
288
|
-
*/
|
|
289
|
-
|
|
290
|
-
var t = R(o);
|
|
256
|
+
*/ function x(e) {
|
|
257
|
+
var t = e.autoActivate, a = e.activePanelId, l = e.children, i = e.defaultActivePanelId, c = e.elementRef, d = e.iconPosition, f = e.layout, v = f === void 0 ? "horizontal" : f, p = e.onChange, b = e.tabWidth, y = _(e, [ "autoActivate", "activePanelId", "children", "defaultActivePanelId", "elementRef", "iconPosition", "layout", "onChange", "tabWidth" ]);
|
|
291
258
|
// @docs-props-type TabLayoutPropsBase
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
259
|
+
var g = s()({
|
|
260
|
+
componentName: "TabLayout",
|
|
261
|
+
/* eslint-disable-next-line prefer-rest-params */
|
|
262
|
+
componentProps: arguments[0],
|
|
263
|
+
// see SUI-7028
|
|
264
|
+
defaultValuePropName: "defaultActivePanelId",
|
|
265
|
+
valuePropName: "activePanelId"
|
|
266
|
+
});
|
|
267
|
+
var h = (0, n.useState)(), P = w(h, 2), O = P[0], I = P[1];
|
|
268
|
+
var S = (0, n.useState)(g ? undefined : i), A = w(S, 2), T = A[0], q = A[1];
|
|
269
|
+
// Could use activePanelIdProp for isControlled route but chose not to b/c we always favor direct prop access in below logic in that scenario
|
|
270
|
+
var C = (0, n.useMemo)((function() {
|
|
271
|
+
return g ? a : T;
|
|
272
|
+
}), [ g, a, T ]);
|
|
273
|
+
var E = (0, n.useState)((0, o.createGUID)()), k = w(E, 1), R = k[0];
|
|
274
|
+
var x = (0, n.useCallback)((function(e, t) {
|
|
275
|
+
var n = t.selectedTabId;
|
|
276
|
+
if (!g) {
|
|
277
|
+
q(n);
|
|
278
|
+
}
|
|
279
|
+
p === null || p === void 0 ? void 0 : p(e, {
|
|
280
|
+
activePanelId: n
|
|
281
|
+
});
|
|
282
|
+
}), [ g, p ]);
|
|
283
|
+
var M = (0, n.useMemo)((function() {
|
|
284
|
+
var e = null;
|
|
285
|
+
var t = n.Children.toArray(l).filter(n.isValidElement).map((function(t) {
|
|
286
|
+
var a = t.props;
|
|
287
|
+
var l = "".concat(R, "-").concat(a.panelId);
|
|
288
|
+
var o = "".concat(R, "-").concat(a.panelId, "-tab");
|
|
289
|
+
if (a.panelId === C) {
|
|
290
|
+
e = (0, n.cloneElement)(t, {
|
|
291
|
+
"aria-labelledby": o,
|
|
292
|
+
id: l
|
|
304
293
|
});
|
|
305
294
|
}
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
295
|
+
var i = {};
|
|
296
|
+
// tell TS that PanelProps can contain `data-title`
|
|
297
|
+
var c = a["data-title"];
|
|
298
|
+
if (c != null) {
|
|
299
|
+
i["data-title"] = c;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
return r().createElement(u().Tab, j({
|
|
303
|
+
count: a.count,
|
|
304
|
+
icon: a.icon,
|
|
305
|
+
key: a.panelId,
|
|
306
|
+
label: a.label,
|
|
307
|
+
tabId: a.panelId,
|
|
308
|
+
id: o,
|
|
309
|
+
ariaControls: l,
|
|
310
|
+
tooltip: a.tooltip,
|
|
311
|
+
disabled: a.disabled
|
|
312
|
+
}, i));
|
|
309
313
|
}));
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
activePanelId: e.defaultActivePanelId
|
|
315
|
-
};
|
|
316
|
-
}
|
|
314
|
+
I(e);
|
|
315
|
+
return t;
|
|
316
|
+
}), [ C, l, R ]);
|
|
317
|
+
(0, n.useEffect)((function() {
|
|
317
318
|
if (false) {}
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
var s;
|
|
338
|
-
var f = n.Children.toArray(i).filter(n.isValidElement).map((function(e) {
|
|
339
|
-
var o = e.props;
|
|
340
|
-
var a = "".concat(t.guid, "-").concat(o.panelId);
|
|
341
|
-
var i = "".concat(t.guid, "-").concat(o.panelId, "-tab");
|
|
342
|
-
if (o.panelId === c) {
|
|
343
|
-
s = (0, n.cloneElement)(e, {
|
|
344
|
-
"aria-labelledby": i,
|
|
345
|
-
id: a
|
|
346
|
-
});
|
|
347
|
-
}
|
|
348
|
-
var l = {};
|
|
349
|
-
// tell TS that PanelProps can contain `data-title`
|
|
350
|
-
var u = o["data-title"];
|
|
351
|
-
if (u != null) {
|
|
352
|
-
l["data-title"] = u;
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
return r().createElement(y().Tab, _({
|
|
356
|
-
count: o.count,
|
|
357
|
-
icon: o.icon,
|
|
358
|
-
key: o.panelId,
|
|
359
|
-
label: o.label,
|
|
360
|
-
tabId: o.panelId,
|
|
361
|
-
id: i,
|
|
362
|
-
ariaControls: a,
|
|
363
|
-
tooltip: o.tooltip,
|
|
364
|
-
disabled: o.disabled
|
|
365
|
-
}, l));
|
|
366
|
-
}));
|
|
367
|
-
if (false) {}
|
|
368
|
-
|
|
369
|
-
return r().createElement(g, _({
|
|
370
|
-
"data-test-active-panel-id": c,
|
|
371
|
-
"data-test": "tab-layout",
|
|
372
|
-
ref: this.props.elementRef,
|
|
373
|
-
$layout: l
|
|
374
|
-
}, p()(this.props, u()(o.propTypes))), r().createElement(y(), {
|
|
375
|
-
autoActivate: this.props.autoActivate,
|
|
376
|
-
activeTabId: c,
|
|
377
|
-
appearance: this.props.appearance,
|
|
378
|
-
iconPosition: this.props.iconPosition,
|
|
379
|
-
iconSize: this.props.iconSize,
|
|
380
|
-
layout: this.props.layout,
|
|
381
|
-
onChange: this.handleChange,
|
|
382
|
-
tabWidth: this.props.tabWidth
|
|
383
|
-
}, f), s);
|
|
384
|
-
}
|
|
385
|
-
} ]);
|
|
386
|
-
return o;
|
|
387
|
-
}(n.Component);
|
|
388
|
-
B(U, "propTypes", W);
|
|
389
|
-
B(U, "defaultProps", $);
|
|
390
|
-
B(U, "Panel", S);
|
|
391
|
-
/* harmony default export */ const V = U;
|
|
319
|
+
}), [ O ]);
|
|
320
|
+
|
|
321
|
+
return r().createElement(m, j({
|
|
322
|
+
"data-test-active-panel-id": C,
|
|
323
|
+
"data-test": "tab-layout",
|
|
324
|
+
ref: c,
|
|
325
|
+
$layout: v
|
|
326
|
+
}, y), r().createElement(u(), {
|
|
327
|
+
autoActivate: t,
|
|
328
|
+
activeTabId: C,
|
|
329
|
+
iconPosition: d,
|
|
330
|
+
layout: v,
|
|
331
|
+
onChange: x,
|
|
332
|
+
tabWidth: b
|
|
333
|
+
}, M), O);
|
|
334
|
+
}
|
|
335
|
+
x.Panel = S;
|
|
336
|
+
x.propTypes = R;
|
|
337
|
+
/* harmony default export */ const M = x;
|
|
392
338
|
// CONCATENATED MODULE: ./src/TabLayout/index.ts
|
|
393
339
|
module.exports = t;
|
|
394
340
|
/******/})();
|