@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/TransitionOpen.js
CHANGED
|
@@ -8,27 +8,27 @@
|
|
|
8
8
|
/******/ /* webpack/runtime/compat get default export */
|
|
9
9
|
/******/ (() => {
|
|
10
10
|
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
11
|
-
/******/ e.n =
|
|
12
|
-
/******/ var
|
|
13
|
-
/******/ () =>
|
|
14
|
-
/******/ : () =>
|
|
11
|
+
/******/ e.n = r => {
|
|
12
|
+
/******/ var t = r && r.__esModule ?
|
|
13
|
+
/******/ () => r["default"]
|
|
14
|
+
/******/ : () => r
|
|
15
15
|
/******/;
|
|
16
|
-
e.d(
|
|
17
|
-
a:
|
|
16
|
+
e.d(t, {
|
|
17
|
+
a: t
|
|
18
18
|
});
|
|
19
|
-
/******/ return
|
|
19
|
+
/******/ return t;
|
|
20
20
|
/******/ };
|
|
21
21
|
/******/ })();
|
|
22
22
|
/******/
|
|
23
23
|
/******/ /* webpack/runtime/define property getters */
|
|
24
24
|
/******/ (() => {
|
|
25
25
|
/******/ // define getter functions for harmony exports
|
|
26
|
-
/******/ e.d = (
|
|
27
|
-
/******/ for (var
|
|
28
|
-
/******/ if (e.o(
|
|
29
|
-
/******/ Object.defineProperty(
|
|
26
|
+
/******/ e.d = (r, t) => {
|
|
27
|
+
/******/ for (var n in t) {
|
|
28
|
+
/******/ if (e.o(t, n) && !e.o(r, n)) {
|
|
29
|
+
/******/ Object.defineProperty(r, n, {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get: n
|
|
31
|
+
get: t[n]
|
|
32
32
|
});
|
|
33
33
|
/******/ }
|
|
34
34
|
/******/ }
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
/******/
|
|
38
38
|
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
39
39
|
/******/ (() => {
|
|
40
|
-
/******/ e.o = (e,
|
|
40
|
+
/******/ e.o = (e, r) => Object.prototype.hasOwnProperty.call(e, r)
|
|
41
41
|
/******/;
|
|
42
42
|
})();
|
|
43
43
|
/******/
|
|
@@ -56,179 +56,178 @@
|
|
|
56
56
|
/******/ };
|
|
57
57
|
/******/ })();
|
|
58
58
|
/******/
|
|
59
|
-
/************************************************************************/ var
|
|
59
|
+
/************************************************************************/ var r = {};
|
|
60
60
|
// ESM COMPAT FLAG
|
|
61
|
-
e.r(
|
|
61
|
+
e.r(r);
|
|
62
62
|
// EXPORTS
|
|
63
|
-
e.d(
|
|
63
|
+
e.d(r, {
|
|
64
64
|
default: () => /* reexport */ H
|
|
65
65
|
});
|
|
66
66
|
// CONCATENATED MODULE: external "react"
|
|
67
|
-
const
|
|
68
|
-
var
|
|
67
|
+
const t = require("react");
|
|
68
|
+
var n = e.n(t);
|
|
69
69
|
// CONCATENATED MODULE: external "prop-types"
|
|
70
70
|
const o = require("prop-types");
|
|
71
71
|
var i = e.n(o);
|
|
72
|
-
// CONCATENATED MODULE: external "lodash/keys"
|
|
73
|
-
const a = require("lodash/keys");
|
|
74
|
-
var s = e.n(a);
|
|
75
|
-
// CONCATENATED MODULE: external "lodash/omit"
|
|
76
|
-
const l = require("lodash/omit");
|
|
77
|
-
var u = e.n(l);
|
|
78
72
|
// CONCATENATED MODULE: external "@splunk/react-ui/Animation"
|
|
79
|
-
const
|
|
73
|
+
const a = require("@splunk/react-ui/Animation");
|
|
74
|
+
// CONCATENATED MODULE: external "@splunk/react-ui/usePrevious"
|
|
75
|
+
const u = require("@splunk/react-ui/usePrevious");
|
|
76
|
+
var l = e.n(u);
|
|
80
77
|
// CONCATENATED MODULE: external "@splunk/ui-utils/focus"
|
|
81
|
-
const
|
|
78
|
+
const s = require("@splunk/ui-utils/focus");
|
|
82
79
|
// CONCATENATED MODULE: external "@splunk/ui-utils/style"
|
|
83
|
-
const
|
|
80
|
+
const c = require("@splunk/ui-utils/style");
|
|
84
81
|
// CONCATENATED MODULE: external "react-spring"
|
|
85
|
-
const
|
|
82
|
+
const f = require("react-spring");
|
|
86
83
|
// CONCATENATED MODULE: external "styled-components"
|
|
87
|
-
const
|
|
88
|
-
var
|
|
84
|
+
const d = require("styled-components");
|
|
85
|
+
var m = e.n(d);
|
|
89
86
|
// CONCATENATED MODULE: external "@splunk/themes"
|
|
90
|
-
const
|
|
87
|
+
const p = require("@splunk/themes");
|
|
91
88
|
// CONCATENATED MODULE: ./src/TransitionOpen/TransitionOpenStyles.ts
|
|
92
|
-
var
|
|
89
|
+
var v = m()(f.animated.div).withConfig({
|
|
93
90
|
displayName: "TransitionOpenStyles__Styled",
|
|
94
91
|
componentId: "sc-1x58s0g-0"
|
|
95
|
-
})([ "", ";", ";" ],
|
|
96
|
-
var
|
|
97
|
-
return
|
|
92
|
+
})([ "", ";", ";" ], p.mixins.reset("block"), (function(e) {
|
|
93
|
+
var r = e.$hideOverflow;
|
|
94
|
+
return r && (0, d.css)([ "overflow:hidden;" ]);
|
|
98
95
|
}));
|
|
99
|
-
var
|
|
96
|
+
var y = m()(f.animated.div).withConfig({
|
|
100
97
|
displayName: "TransitionOpenStyles__StyledInner",
|
|
101
98
|
componentId: "sc-1x58s0g-1"
|
|
102
|
-
})([ "", ";", ";width:100%;" ],
|
|
99
|
+
})([ "", ";", ";width:100%;" ], p.mixins.reset("table"), p.mixins.clearfix());
|
|
103
100
|
// CONCATENATED MODULE: ./src/TransitionOpen/TransitionOpen.tsx
|
|
104
|
-
function
|
|
101
|
+
function b(e) {
|
|
105
102
|
"@babel/helpers - typeof";
|
|
106
|
-
return
|
|
103
|
+
return b = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
|
|
107
104
|
return typeof e;
|
|
108
105
|
} : function(e) {
|
|
109
106
|
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
110
|
-
},
|
|
107
|
+
}, b(e);
|
|
111
108
|
}
|
|
112
|
-
function
|
|
113
|
-
return
|
|
114
|
-
for (var
|
|
115
|
-
var
|
|
116
|
-
for (var
|
|
117
|
-
({}).hasOwnProperty.call(
|
|
109
|
+
function h() {
|
|
110
|
+
return h = Object.assign ? Object.assign.bind() : function(e) {
|
|
111
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
112
|
+
var t = arguments[r];
|
|
113
|
+
for (var n in t) {
|
|
114
|
+
({}).hasOwnProperty.call(t, n) && (e[n] = t[n]);
|
|
118
115
|
}
|
|
119
116
|
}
|
|
120
117
|
return e;
|
|
121
|
-
},
|
|
118
|
+
}, h.apply(null, arguments);
|
|
122
119
|
}
|
|
123
|
-
function
|
|
124
|
-
|
|
125
|
-
if (Object.getOwnPropertySymbols) {
|
|
126
|
-
var r = Object.getOwnPropertySymbols(e);
|
|
127
|
-
t && (r = r.filter((function(t) {
|
|
128
|
-
return Object.getOwnPropertyDescriptor(e, t).enumerable;
|
|
129
|
-
}))), n.push.apply(n, r);
|
|
130
|
-
}
|
|
131
|
-
return n;
|
|
120
|
+
function g(e, r) {
|
|
121
|
+
return P(e) || w(e, r) || S(e, r) || O();
|
|
132
122
|
}
|
|
133
|
-
function
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
123
|
+
function O() {
|
|
124
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
125
|
+
}
|
|
126
|
+
function S(e, r) {
|
|
127
|
+
if (e) {
|
|
128
|
+
if ("string" == typeof e) return j(e, r);
|
|
129
|
+
var t = {}.toString.call(e).slice(8, -1);
|
|
130
|
+
return "Object" === t && e.constructor && (t = e.constructor.name), "Map" === t || "Set" === t ? Array.from(e) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? j(e, r) : void 0;
|
|
141
131
|
}
|
|
142
|
-
return e;
|
|
143
132
|
}
|
|
144
|
-
function
|
|
145
|
-
|
|
133
|
+
function j(e, r) {
|
|
134
|
+
(null == r || r > e.length) && (r = e.length);
|
|
135
|
+
for (var t = 0, n = Array(r); t < r; t++) {
|
|
136
|
+
n[t] = e[t];
|
|
137
|
+
}
|
|
138
|
+
return n;
|
|
146
139
|
}
|
|
147
|
-
function
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
140
|
+
function w(e, r) {
|
|
141
|
+
var t = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
|
|
142
|
+
if (null != t) {
|
|
143
|
+
var n, o, i, a, u = [], l = !0, s = !1;
|
|
144
|
+
try {
|
|
145
|
+
if (i = (t = t.call(e)).next, 0 === r) {
|
|
146
|
+
if (Object(t) !== t) return;
|
|
147
|
+
l = !1;
|
|
148
|
+
} else for (;!(l = (n = i.call(t)).done) && (u.push(n.value), u.length !== r); l = !0) {
|
|
149
|
+
}
|
|
150
|
+
} catch (e) {
|
|
151
|
+
s = !0, o = e;
|
|
152
|
+
} finally {
|
|
153
|
+
try {
|
|
154
|
+
if (!l && null != t["return"] && (a = t["return"](), Object(a) !== a)) return;
|
|
155
|
+
} finally {
|
|
156
|
+
if (s) throw o;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
return u;
|
|
152
160
|
}
|
|
153
161
|
}
|
|
154
|
-
function
|
|
155
|
-
|
|
156
|
-
writable: !1
|
|
157
|
-
}), e;
|
|
162
|
+
function P(e) {
|
|
163
|
+
if (Array.isArray(e)) return e;
|
|
158
164
|
}
|
|
159
|
-
function k(e,
|
|
160
|
-
if (
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
165
|
+
function k(e, r) {
|
|
166
|
+
if (null == e) return {};
|
|
167
|
+
var t, n, o = F(e, r);
|
|
168
|
+
if (Object.getOwnPropertySymbols) {
|
|
169
|
+
var i = Object.getOwnPropertySymbols(e);
|
|
170
|
+
for (n = 0; n < i.length; n++) {
|
|
171
|
+
t = i[n], r.includes(t) || {}.propertyIsEnumerable.call(e, t) && (o[t] = e[t]);
|
|
166
172
|
}
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
}), t && x(e, t);
|
|
170
|
-
}
|
|
171
|
-
function x(e, t) {
|
|
172
|
-
return x = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
|
|
173
|
-
return e.__proto__ = t, e;
|
|
174
|
-
}, x(e, t);
|
|
173
|
+
}
|
|
174
|
+
return o;
|
|
175
175
|
}
|
|
176
|
-
function
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
if (
|
|
181
|
-
|
|
182
|
-
n =
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
|
|
176
|
+
function F(e, r) {
|
|
177
|
+
if (null == e) return {};
|
|
178
|
+
var t = {};
|
|
179
|
+
for (var n in e) {
|
|
180
|
+
if ({}.hasOwnProperty.call(e, n)) {
|
|
181
|
+
if (r.includes(n)) continue;
|
|
182
|
+
t[n] = e[n];
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
return t;
|
|
186
186
|
}
|
|
187
|
-
function
|
|
188
|
-
|
|
189
|
-
if (
|
|
190
|
-
|
|
187
|
+
function C(e, r) {
|
|
188
|
+
var t = Object.keys(e);
|
|
189
|
+
if (Object.getOwnPropertySymbols) {
|
|
190
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
191
|
+
r && (n = n.filter((function(r) {
|
|
192
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
193
|
+
}))), t.push.apply(t, n);
|
|
194
|
+
}
|
|
195
|
+
return t;
|
|
191
196
|
}
|
|
192
|
-
function
|
|
193
|
-
|
|
197
|
+
function x(e) {
|
|
198
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
199
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
200
|
+
r % 2 ? C(Object(t), !0).forEach((function(r) {
|
|
201
|
+
N(e, r, t[r]);
|
|
202
|
+
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : C(Object(t)).forEach((function(r) {
|
|
203
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
204
|
+
}));
|
|
205
|
+
}
|
|
194
206
|
return e;
|
|
195
207
|
}
|
|
196
|
-
function
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
} catch (e) {}
|
|
200
|
-
return (C = function t() {
|
|
201
|
-
return !!e;
|
|
202
|
-
})();
|
|
203
|
-
}
|
|
204
|
-
function N(e) {
|
|
205
|
-
return N = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
|
|
206
|
-
return e.__proto__ || Object.getPrototypeOf(e);
|
|
207
|
-
}, N(e);
|
|
208
|
-
}
|
|
209
|
-
function R(e, t, n) {
|
|
210
|
-
return (t = q(t)) in e ? Object.defineProperty(e, t, {
|
|
211
|
-
value: n,
|
|
208
|
+
function N(e, r, t) {
|
|
209
|
+
return (r = E(r)) in e ? Object.defineProperty(e, r, {
|
|
210
|
+
value: t,
|
|
212
211
|
enumerable: !0,
|
|
213
212
|
configurable: !0,
|
|
214
213
|
writable: !0
|
|
215
|
-
}) : e[
|
|
214
|
+
}) : e[r] = t, e;
|
|
216
215
|
}
|
|
217
|
-
function
|
|
218
|
-
var
|
|
219
|
-
return "symbol" ==
|
|
216
|
+
function E(e) {
|
|
217
|
+
var r = T(e, "string");
|
|
218
|
+
return "symbol" == b(r) ? r : r + "";
|
|
220
219
|
}
|
|
221
|
-
function
|
|
222
|
-
if ("object" !=
|
|
223
|
-
var
|
|
224
|
-
if (void 0 !==
|
|
225
|
-
var
|
|
226
|
-
if ("object" !=
|
|
220
|
+
function T(e, r) {
|
|
221
|
+
if ("object" != b(e) || !e) return e;
|
|
222
|
+
var t = e[Symbol.toPrimitive];
|
|
223
|
+
if (void 0 !== t) {
|
|
224
|
+
var n = t.call(e, r || "default");
|
|
225
|
+
if ("object" != b(n)) return n;
|
|
227
226
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
228
227
|
}
|
|
229
|
-
return ("string" ===
|
|
228
|
+
return ("string" === r ? String : Number)(e);
|
|
230
229
|
}
|
|
231
|
-
var
|
|
230
|
+
var A = {
|
|
232
231
|
animation: i().oneOf([ "slideFromTop", "slideFromRight", "slideFromBottom", "slideFromLeft", "expandHeight", "expandWidth", "none" ]),
|
|
233
232
|
animateOnMount: i().bool,
|
|
234
233
|
children: i().node,
|
|
@@ -245,215 +244,178 @@
|
|
|
245
244
|
retainFocus: i().bool,
|
|
246
245
|
takeFocus: i().bool
|
|
247
246
|
};
|
|
248
|
-
var
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
};
|
|
258
|
-
var A = function(e) {
|
|
259
|
-
k(n, e);
|
|
260
|
-
var t = T(n);
|
|
261
|
-
F(n, null, [ {
|
|
262
|
-
key: "getDerivedStateFromProps",
|
|
263
|
-
// @docs-props-type TransitionOpenPropsBase
|
|
264
|
-
value: function e(t, n) {
|
|
265
|
-
if (t.open !== n.prevOpen) {
|
|
266
|
-
return {
|
|
267
|
-
animating: true,
|
|
268
|
-
prevOpen: t.open
|
|
269
|
-
};
|
|
270
|
-
}
|
|
271
|
-
return null;
|
|
272
|
-
}
|
|
273
|
-
} ]);
|
|
274
|
-
function n(e) {
|
|
275
|
-
var o;
|
|
276
|
-
S(this, n);
|
|
277
|
-
o = t.call(this, e);
|
|
278
|
-
R(_(o), "allowAnimationUpdates", true);
|
|
279
|
-
R(_(o), "getValue", (function(e) {
|
|
280
|
-
var t = o.props.animation;
|
|
281
|
-
var n = 0;
|
|
282
|
-
if (e) {
|
|
283
|
-
if (o.props.takeFocus) {
|
|
284
|
-
(0, p.takeFocus)(e, "container");
|
|
285
|
-
}
|
|
286
|
-
switch (t) {
|
|
287
|
-
case "slideFromTop":
|
|
288
|
-
case "slideFromBottom":
|
|
289
|
-
case "expandHeight":
|
|
290
|
-
case "none":
|
|
291
|
-
n = e.offsetHeight;
|
|
292
|
-
break;
|
|
247
|
+
var I = function e(r) {
|
|
248
|
+
var t;
|
|
249
|
+
switch (r) {
|
|
250
|
+
case "slideFromTop":
|
|
251
|
+
case "slideFromBottom":
|
|
252
|
+
case "expandHeight":
|
|
253
|
+
case "none":
|
|
254
|
+
t = "height";
|
|
255
|
+
break;
|
|
293
256
|
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
257
|
+
case "slideFromLeft":
|
|
258
|
+
case "slideFromRight":
|
|
259
|
+
case "expandWidth":
|
|
260
|
+
t = "width";
|
|
261
|
+
break;
|
|
299
262
|
|
|
300
|
-
|
|
263
|
+
default:
|
|
301
264
|
// Intentionally left empty.
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
return n;
|
|
305
|
-
}));
|
|
306
|
-
R(_(o), "handleMount", (function(e) {
|
|
307
|
-
var t = o.getValue(e);
|
|
308
|
-
o.setState({
|
|
309
|
-
value: t,
|
|
310
|
-
innerEl: e
|
|
311
|
-
});
|
|
312
|
-
}));
|
|
313
|
-
R(_(o), "handleRest", (function() {
|
|
314
|
-
var e, t;
|
|
315
|
-
if (o.allowAnimationUpdates) {
|
|
316
|
-
o.setState({
|
|
317
|
-
animating: false
|
|
318
|
-
});
|
|
319
|
-
}
|
|
320
|
-
(e = (t = o.props).onAnimationEnd) === null || e === void 0 ? void 0 : e.call(t);
|
|
321
|
-
}));
|
|
322
|
-
R(_(o), "handleTab", (function(e) {
|
|
323
|
-
if (o.state.innerEl) {
|
|
324
|
-
(0, p.handleTab)(o.state.innerEl, e);
|
|
325
265
|
}
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
266
|
+
return t;
|
|
267
|
+
};
|
|
268
|
+
var q = function e(r) {
|
|
269
|
+
var t = r.animation, n = r.open, o = r.value;
|
|
270
|
+
var i = {
|
|
271
|
+
value: n ? o : 0
|
|
272
|
+
};
|
|
273
|
+
var a = {
|
|
274
|
+
value: n ? 0 : o
|
|
275
|
+
};
|
|
276
|
+
var u = {
|
|
277
|
+
precision: 1
|
|
278
|
+
};
|
|
279
|
+
// Only use precision when not using transform, otherwise transform animation will break
|
|
280
|
+
// Expansion doesn't require a valid value; the subsequent render animates it.
|
|
281
|
+
if (t === "expandWidth" || t === "expandHeight" || t === "none") {
|
|
282
|
+
return {
|
|
283
|
+
to: i,
|
|
284
|
+
config: u
|
|
285
|
+
};
|
|
286
|
+
}
|
|
287
|
+
// Slide transitions require a valid value, render without transition first.
|
|
288
|
+
if (!o) {
|
|
289
|
+
return null;
|
|
290
|
+
}
|
|
291
|
+
if (t !== "slideFromTop" && t !== "slideFromLeft") {
|
|
292
|
+
// Return the standard transition if not using a transform.
|
|
293
|
+
return {
|
|
294
|
+
to: i,
|
|
295
|
+
from: a,
|
|
296
|
+
config: u
|
|
297
|
+
};
|
|
298
|
+
}
|
|
299
|
+
// The top and left directions require an additional transform of their inner content to match the outer dimension animation.
|
|
300
|
+
// This is needed to achieve a clipping effect from the outer div, rather than the consumer providing their own.
|
|
301
|
+
var l = t === "slideFromTop" ? "Y" : "X";
|
|
302
|
+
var s = "translate".concat(l, "(").concat(n ? 0 : -o, "px)");
|
|
303
|
+
var c = "translate".concat(l, "(").concat(n ? -o : 0, "px)");
|
|
304
|
+
return {
|
|
305
|
+
to: x({
|
|
306
|
+
transform: s
|
|
307
|
+
}, i),
|
|
308
|
+
from: x({
|
|
309
|
+
transform: c
|
|
310
|
+
}, a)
|
|
311
|
+
};
|
|
312
|
+
};
|
|
313
|
+
var M = function e(r) {
|
|
314
|
+
var t = r.animation, n = r.el, o = r.takeFocusProp;
|
|
315
|
+
var i = 0;
|
|
316
|
+
if (n) {
|
|
317
|
+
if (o) {
|
|
318
|
+
(0, s.takeFocus)(n, "container");
|
|
319
|
+
}
|
|
320
|
+
var a = I(t);
|
|
321
|
+
switch (a) {
|
|
322
|
+
case "height":
|
|
323
|
+
i = n.offsetHeight;
|
|
324
|
+
break;
|
|
339
325
|
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
k = "width";
|
|
344
|
-
break;
|
|
326
|
+
case "width":
|
|
327
|
+
i = n.offsetWidth;
|
|
328
|
+
break;
|
|
345
329
|
|
|
346
|
-
|
|
330
|
+
default:
|
|
347
331
|
// Intentionally left empty.
|
|
348
|
-
|
|
349
|
-
// if renderChildrenWhenCollapsed is true, we hide the content by setting the height of the wrapper to 0
|
|
350
|
-
var x = P && !v && !F ? 0 : t;
|
|
351
|
-
/* eslint-disable jsx-a11y/no-static-element-interactions */
|
|
352
|
-
return r().createElement(b, {
|
|
353
|
-
$hideOverflow: !v || F,
|
|
354
|
-
className: (0, f.toClassName)(c, g),
|
|
355
|
-
style: j(j({}, S), k && R({}, k, x)),
|
|
356
|
-
id: w
|
|
357
|
-
}, (v || F || P) && r().createElement(h, O({
|
|
358
|
-
"data-test": "transition-open"
|
|
359
|
-
}, u()(o.props, s()(n.propTypes)), {
|
|
360
|
-
ref: o.handleMount,
|
|
361
|
-
tabIndex: -1,
|
|
362
|
-
className: m,
|
|
363
|
-
id: d,
|
|
364
|
-
onKeyDown: o.props.retainFocus ? o.handleTab : undefined,
|
|
365
|
-
style: j(j({}, y), {}, {
|
|
366
|
-
transform: i
|
|
367
|
-
})
|
|
368
|
-
}), p));
|
|
369
|
-
}));
|
|
370
|
-
R(_(o), "getSpringTransition", (function() {
|
|
371
|
-
var e = o.props, t = e.open, n = e.animation;
|
|
372
|
-
var r = o.state.value;
|
|
373
|
-
var i = {
|
|
374
|
-
value: t ? r : 0
|
|
375
|
-
};
|
|
376
|
-
var a = {
|
|
377
|
-
value: t ? 0 : r
|
|
378
|
-
};
|
|
379
|
-
var s = {
|
|
380
|
-
precision: 1
|
|
381
|
-
};
|
|
382
|
-
// Only use precision when not using transform, otherwise transform animation will break
|
|
383
|
-
// Expansion doesn't require a valid value; the subsequent render animates it.
|
|
384
|
-
if (n === "expandWidth" || n === "expandHeight" || n === "none") {
|
|
385
|
-
return {
|
|
386
|
-
to: i,
|
|
387
|
-
config: s
|
|
388
|
-
};
|
|
389
|
-
}
|
|
390
|
-
// Slide transitions require a valid value, render without transition first.
|
|
391
|
-
if (!r) {
|
|
392
|
-
return null;
|
|
393
|
-
}
|
|
394
|
-
if (n !== "slideFromTop" && n !== "slideFromLeft") {
|
|
395
|
-
// Return the standard transition if not using a transform.
|
|
396
|
-
return {
|
|
397
|
-
to: i,
|
|
398
|
-
from: a,
|
|
399
|
-
config: s
|
|
400
|
-
};
|
|
401
|
-
}
|
|
402
|
-
// The top and left directions require an additional transform of their inner content to match the outer dimension animation.
|
|
403
|
-
// This is needed to achieve a clipping effect from the outer div, rather than the consumer providing their own.
|
|
404
|
-
var l = n === "slideFromTop" ? "Y" : "X";
|
|
405
|
-
var u = "translate".concat(l, "(").concat(t ? 0 : -r, "px)");
|
|
406
|
-
var c = "translate".concat(l, "(").concat(t ? -r : 0, "px)");
|
|
407
|
-
return {
|
|
408
|
-
to: j({
|
|
409
|
-
transform: u
|
|
410
|
-
}, i),
|
|
411
|
-
from: j({
|
|
412
|
-
transform: c
|
|
413
|
-
}, a)
|
|
414
|
-
};
|
|
415
|
-
}));
|
|
416
|
-
o.state = {
|
|
417
|
-
animating: e.animateOnMount ? e.open : false,
|
|
418
|
-
innerEl: null,
|
|
419
|
-
prevOpen: e.open
|
|
420
|
-
};
|
|
421
|
-
return o;
|
|
332
|
+
}
|
|
422
333
|
}
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
334
|
+
return i;
|
|
335
|
+
};
|
|
336
|
+
var _ = {};
|
|
337
|
+
var W = {};
|
|
338
|
+
function D(e) {
|
|
339
|
+
var r = e.animation, o = r === void 0 ? "expandHeight" : r, i = e.animateOnMount, u = e.children, f = e.className, d = e.id, m = e.innerClassName, p = e.innerStyle, b = p === void 0 ? _ : p, O = e.onAnimationEnd, S = e.open, j = e.outerClassName, w = e.outerId, P = e.outerStyle, F = P === void 0 ? W : P, C = e.renderChildrenWhenCollapsed, E = e.retainFocus, T = e.takeFocus, A = k(e, [ "animation", "animateOnMount", "children", "className", "id", "innerClassName", "innerStyle", "onAnimationEnd", "open", "outerClassName", "outerId", "outerStyle", "renderChildrenWhenCollapsed", "retainFocus", "takeFocus" ]);
|
|
340
|
+
// @docs-props-type TransitionOpenPropsBase
|
|
341
|
+
var D = l()(S);
|
|
342
|
+
var H = (0, t.useRef)(true);
|
|
343
|
+
var R = (0, t.useState)(i ? S : false), L = g(R, 2), $ = L[0], B = L[1];
|
|
344
|
+
var K = (0, t.useState)(null), U = g(K, 2), X = U[0], Y = U[1];
|
|
345
|
+
var z = (0, t.useState)(0), G = g(z, 2), J = G[0], Q = G[1];
|
|
346
|
+
(0, t.useEffect)((function() {
|
|
347
|
+
// prevOpen starts undefined, and we don't want to make the comparison in that situation
|
|
348
|
+
if (D !== undefined && S !== D) {
|
|
349
|
+
B(true);
|
|
433
350
|
}
|
|
434
|
-
},
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
351
|
+
}), [ S, D ]);
|
|
352
|
+
// equivalent to componentWillUnmount
|
|
353
|
+
(0, t.useEffect)((function() {
|
|
354
|
+
return function() {
|
|
355
|
+
H.current = false;
|
|
356
|
+
};
|
|
357
|
+
}), []);
|
|
358
|
+
var V = (0, t.useCallback)((function(e) {
|
|
359
|
+
Y(e);
|
|
360
|
+
Q(M({
|
|
361
|
+
animation: o,
|
|
362
|
+
el: e,
|
|
363
|
+
takeFocusProp: T
|
|
364
|
+
}));
|
|
365
|
+
}), [ o, T ]);
|
|
366
|
+
var Z = (0, t.useCallback)((function() {
|
|
367
|
+
if (H.current) {
|
|
368
|
+
B(false);
|
|
438
369
|
}
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
return r().createElement(c.Spring, O({}, this.getSpringTransition(), {
|
|
445
|
-
immediate: t === "none",
|
|
446
|
-
onRest: this.handleRest
|
|
447
|
-
}),
|
|
448
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
449
|
-
this.internalRender);
|
|
370
|
+
O === null || O === void 0 ? void 0 : O();
|
|
371
|
+
}), [ O ]);
|
|
372
|
+
var ee = (0, t.useCallback)((function(e) {
|
|
373
|
+
if (X) {
|
|
374
|
+
(0, s.handleTab)(X, e);
|
|
450
375
|
}
|
|
451
|
-
} ]);
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
376
|
+
}), [ X ]);
|
|
377
|
+
var re = (0, a.useAnimation)(x(x({}, q({
|
|
378
|
+
animation: o,
|
|
379
|
+
open: S,
|
|
380
|
+
value: J
|
|
381
|
+
})), {}, {
|
|
382
|
+
immediate: o === "none",
|
|
383
|
+
onRest: Z
|
|
384
|
+
})), te = re.value, ne = re.transform;
|
|
385
|
+
var oe;
|
|
386
|
+
if ($ || C) {
|
|
387
|
+
oe = I(o);
|
|
388
|
+
}
|
|
389
|
+
// if renderChildrenWhenCollapsed is true, we hide the content by setting the height of the wrapper to 0
|
|
390
|
+
var ie = C && !S && !$ ? 0 : te;
|
|
391
|
+
var ae = (0, t.useMemo)((function() {
|
|
392
|
+
return x(x({}, F), oe && N({}, oe, ie));
|
|
393
|
+
}), [ oe, ie, F ]);
|
|
394
|
+
var ue = (0, t.useMemo)((function() {
|
|
395
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
396
|
+
return x(x({}, b), {}, {
|
|
397
|
+
transform: ne
|
|
398
|
+
});
|
|
399
|
+
}), [ b, ne ]);
|
|
400
|
+
|
|
401
|
+
return n().createElement(v, {
|
|
402
|
+
$hideOverflow: !S || $ || false,
|
|
403
|
+
className: (0, c.toClassName)(f, j),
|
|
404
|
+
style: ae,
|
|
405
|
+
id: w
|
|
406
|
+
}, (S || $ || C) && n().createElement(y, h({
|
|
407
|
+
"data-test": "transition-open"
|
|
408
|
+
}, A, {
|
|
409
|
+
ref: V,
|
|
410
|
+
tabIndex: -1,
|
|
411
|
+
className: m,
|
|
412
|
+
id: d,
|
|
413
|
+
onKeyDown: E ? ee : undefined,
|
|
414
|
+
style: ue
|
|
415
|
+
}), u));
|
|
416
|
+
}
|
|
417
|
+
D.propTypes = A;
|
|
418
|
+
/* harmony default export */ const H = D;
|
|
457
419
|
// CONCATENATED MODULE: ./src/TransitionOpen/index.ts
|
|
458
|
-
module.exports =
|
|
420
|
+
module.exports = r;
|
|
459
421
|
/******/})();
|