@splunk/react-ui 4.43.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 +4 -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 +393 -422
- package/CollapsiblePanel.js +439 -601
- package/Color.js +727 -967
- package/ColumnLayout.js +190 -234
- package/ComboBox.js +147 -135
- package/ControlGroup.js +502 -531
- package/Date.js +315 -416
- 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 +105 -107
- package/Layer.js +187 -269
- package/{CloseButton.js → Layout.js} +39 -61
- package/Link.js +91 -244
- package/List.js +68 -74
- package/MIGRATION.v5.mdx +428 -0
- package/Markdown.js +439 -385
- package/Menu.js +383 -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 +495 -604
- package/Paginator.js +294 -406
- package/Paragraph.js +12 -15
- package/Popover.js +582 -744
- package/Progress.js +141 -244
- package/Prose.d.ts +2 -0
- package/Prose.js +213 -0
- package/RadioBar.js +328 -450
- package/RadioList.js +132 -216
- package/Resize.js +351 -402
- package/ResultsMenu.js +255 -358
- package/Scroll.js +159 -238
- package/Search.js +358 -437
- 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 +438 -622
- package/TabLayout.js +197 -251
- package/Table.js +2355 -3673
- package/Text.js +422 -909
- package/TextArea.js +537 -959
- package/Tooltip.js +35 -41
- package/TransitionOpen.js +296 -336
- package/Typography.js +35 -50
- package/WaitSpinner.js +93 -124
- package/package.json +14 -15
- 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 +19 -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 +2 -2
- 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 +4 -11
- 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 -64
- 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 +2 -1
- 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 +2 -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 -61
- 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 +1 -2
- 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 +1 -1
- 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 +2 -1
- 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 +38 -69
- package/types/src/Popover/PopoverProvider.d.ts +1 -1
- package/types/src/Popover/docs/examples/Basic.d.ts +2 -1
- package/types/src/Popover/getPlacement.d.ts +1 -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 +4 -7
- package/types/src/Select/docs/examples/Appearance.d.ts +2 -1
- package/types/src/Select/docs/examples/Basic.d.ts +2 -1
- package/types/src/Select/docs/examples/Children.d.ts +2 -1
- package/types/src/Select/docs/examples/Descriptions.d.ts +2 -1
- package/types/src/Select/docs/examples/Error.d.ts +2 -1
- package/types/src/Select/docs/examples/Fetching.d.ts +2 -1
- package/types/src/Select/docs/examples/Filter.d.ts +2 -1
- package/types/src/Select/docs/examples/Headings.d.ts +2 -1
- package/types/src/Select/docs/examples/Icons.d.ts +2 -1
- package/types/src/Select/docs/examples/LoadMoreOnScrollBottom.d.ts +2 -1
- package/types/src/Select/docs/examples/Prefix.d.ts +2 -1
- package/types/src/Select/docs/examples/Truncate.d.ts +2 -1
- 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 +2 -1
- package/types/src/Table/docs/examples/ClickRows.d.ts +2 -1
- package/types/src/Table/docs/examples/Complex.d.ts +2 -1
- 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 -1
- package/types/src/Table/docs/examples/FixedHeader.d.ts +2 -1
- package/types/src/Table/docs/examples/HeadDropdownCell.d.ts +2 -1
- package/types/src/Table/docs/examples/ReorderColumns.d.ts +2 -1
- package/types/src/Table/docs/examples/ReorderRows.d.ts +2 -1
- package/types/src/Table/docs/examples/Resizable.d.ts +2 -1
- package/types/src/Table/docs/examples/ResizableFill.d.ts +2 -1
- package/types/src/Table/docs/examples/RowActions.d.ts +2 -1
- package/types/src/Table/docs/examples/Selectable.d.ts +2 -1
- package/types/src/Table/docs/examples/SortableColumns.d.ts +2 -1
- 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/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/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/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/Scroll.js
CHANGED
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
r.r(n);
|
|
121
121
|
// EXPORTS
|
|
122
122
|
r.d(n, {
|
|
123
|
-
default: () => /* reexport */
|
|
123
|
+
default: () => /* reexport */ B
|
|
124
124
|
});
|
|
125
125
|
// EXTERNAL MODULE: external "react"
|
|
126
126
|
var e = r(9497);
|
|
@@ -129,8 +129,8 @@
|
|
|
129
129
|
const o = require("prop-types");
|
|
130
130
|
var l = r.n(o);
|
|
131
131
|
// CONCATENATED MODULE: external "lodash/isFinite"
|
|
132
|
-
const
|
|
133
|
-
var
|
|
132
|
+
const a = require("lodash/isFinite");
|
|
133
|
+
var i = r.n(a);
|
|
134
134
|
// CONCATENATED MODULE: external "@splunk/react-ui/Animation"
|
|
135
135
|
const u = require("@splunk/react-ui/Animation");
|
|
136
136
|
// CONCATENATED MODULE: external "styled-components"
|
|
@@ -139,18 +139,18 @@
|
|
|
139
139
|
// CONCATENATED MODULE: external "@splunk/themes"
|
|
140
140
|
const s = require("@splunk/themes");
|
|
141
141
|
// CONCATENATED MODULE: external "lodash/keys"
|
|
142
|
-
const
|
|
143
|
-
var
|
|
142
|
+
const d = require("lodash/keys");
|
|
143
|
+
var p = r.n(d);
|
|
144
144
|
// CONCATENATED MODULE: external "lodash/omit"
|
|
145
145
|
const v = require("lodash/omit");
|
|
146
146
|
var y = r.n(v);
|
|
147
147
|
// CONCATENATED MODULE: external "react-spring"
|
|
148
|
-
const
|
|
148
|
+
const m = require("react-spring");
|
|
149
149
|
// CONCATENATED MODULE: external "@splunk/react-ui/EventListener"
|
|
150
|
-
const
|
|
151
|
-
var
|
|
150
|
+
const b = require("@splunk/react-ui/EventListener");
|
|
151
|
+
var g = r.n(b);
|
|
152
152
|
// CONCATENATED MODULE: external "@splunk/react-ui/ScrollContainerContext"
|
|
153
|
-
const
|
|
153
|
+
const h = require("@splunk/react-ui/ScrollContainerContext");
|
|
154
154
|
// CONCATENATED MODULE: ./src/utils/updateReactRef.ts
|
|
155
155
|
/**
|
|
156
156
|
* Updates a React ref. Callback refs and object refs (from `createRef` and `useRef`) are supported.
|
|
@@ -185,53 +185,53 @@
|
|
|
185
185
|
}, O.apply(null, arguments);
|
|
186
186
|
}
|
|
187
187
|
function j(e, t) {
|
|
188
|
-
return
|
|
188
|
+
return k(e) || A(e, t) || T(e, t) || P();
|
|
189
189
|
}
|
|
190
190
|
function P() {
|
|
191
191
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
192
192
|
}
|
|
193
193
|
function T(e, t) {
|
|
194
194
|
if (e) {
|
|
195
|
-
if ("string" == typeof e) return
|
|
195
|
+
if ("string" == typeof e) return C(e, t);
|
|
196
196
|
var r = {}.toString.call(e).slice(8, -1);
|
|
197
|
-
return "Object" === r && e.constructor && (r = e.constructor.name), "Map" === r || "Set" === r ? Array.from(e) : "Arguments" === r || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ?
|
|
197
|
+
return "Object" === r && e.constructor && (r = e.constructor.name), "Map" === r || "Set" === r ? Array.from(e) : "Arguments" === r || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? C(e, t) : void 0;
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
|
-
function
|
|
200
|
+
function C(e, t) {
|
|
201
201
|
(null == t || t > e.length) && (t = e.length);
|
|
202
202
|
for (var r = 0, n = Array(t); r < t; r++) {
|
|
203
203
|
n[r] = e[r];
|
|
204
204
|
}
|
|
205
205
|
return n;
|
|
206
206
|
}
|
|
207
|
-
function
|
|
207
|
+
function A(e, t) {
|
|
208
208
|
var r = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
|
|
209
209
|
if (null != r) {
|
|
210
|
-
var n, o, l,
|
|
210
|
+
var n, o, l, a, i = [], u = !0, c = !1;
|
|
211
211
|
try {
|
|
212
212
|
if (l = (r = r.call(e)).next, 0 === t) {
|
|
213
213
|
if (Object(r) !== r) return;
|
|
214
214
|
u = !1;
|
|
215
|
-
} else for (;!(u = (n = l.call(r)).done) && (
|
|
215
|
+
} else for (;!(u = (n = l.call(r)).done) && (i.push(n.value), i.length !== t); u = !0) {
|
|
216
216
|
}
|
|
217
217
|
} catch (e) {
|
|
218
218
|
c = !0, o = e;
|
|
219
219
|
} finally {
|
|
220
220
|
try {
|
|
221
|
-
if (!u && null != r["return"] && (
|
|
221
|
+
if (!u && null != r["return"] && (a = r["return"](), Object(a) !== a)) return;
|
|
222
222
|
} finally {
|
|
223
223
|
if (c) throw o;
|
|
224
224
|
}
|
|
225
225
|
}
|
|
226
|
-
return
|
|
226
|
+
return i;
|
|
227
227
|
}
|
|
228
228
|
}
|
|
229
|
-
function
|
|
229
|
+
function k(e) {
|
|
230
230
|
if (Array.isArray(e)) return e;
|
|
231
231
|
}
|
|
232
|
-
function
|
|
232
|
+
function E(e, t) {
|
|
233
233
|
if (null == e) return {};
|
|
234
|
-
var r, n, o =
|
|
234
|
+
var r, n, o = L(e, t);
|
|
235
235
|
if (Object.getOwnPropertySymbols) {
|
|
236
236
|
var l = Object.getOwnPropertySymbols(e);
|
|
237
237
|
for (n = 0; n < l.length; n++) {
|
|
@@ -240,7 +240,7 @@
|
|
|
240
240
|
}
|
|
241
241
|
return o;
|
|
242
242
|
}
|
|
243
|
-
function
|
|
243
|
+
function L(e, t) {
|
|
244
244
|
if (null == e) return {};
|
|
245
245
|
var r = {};
|
|
246
246
|
for (var n in e) {
|
|
@@ -251,7 +251,7 @@
|
|
|
251
251
|
}
|
|
252
252
|
return r;
|
|
253
253
|
}
|
|
254
|
-
var
|
|
254
|
+
var x = {
|
|
255
255
|
children: l().node,
|
|
256
256
|
defaultLeft: l().number,
|
|
257
257
|
defaultTop: l().number,
|
|
@@ -262,31 +262,31 @@
|
|
|
262
262
|
tagName: l().string,
|
|
263
263
|
top: l().object
|
|
264
264
|
};
|
|
265
|
-
var
|
|
265
|
+
var q = {
|
|
266
266
|
passive: false
|
|
267
267
|
};
|
|
268
|
-
function
|
|
269
|
-
var n = r.children, o = r.defaultLeft, l = o === void 0 ? 0 : o,
|
|
270
|
-
var
|
|
271
|
-
var
|
|
272
|
-
var
|
|
273
|
-
var
|
|
268
|
+
function I(r) {
|
|
269
|
+
var n = r.children, o = r.defaultLeft, l = o === void 0 ? 0 : o, a = r.defaultTop, u = a === void 0 ? 0 : a, c = r.elementRef, f = r.left, s = r.onScroll, d = r.stopScrollPropagation, v = r.tagName, b = v === void 0 ? "div" : v, P = r.top, T = E(r, [ "children", "defaultLeft", "defaultTop", "elementRef", "left", "onScroll", "stopScrollPropagation", "tagName", "top" ]);
|
|
270
|
+
var C = (0, e.useState)("visible"), A = j(C, 2), k = A[0], L = A[1];
|
|
271
|
+
var I = (0, e.useState)("visible"), M = j(I, 2), R = M[0], N = M[1];
|
|
272
|
+
var X = (0, e.useState)(null), Y = j(X, 2), H = Y[0], W = Y[1];
|
|
273
|
+
var _ = (0, w["default"])(H);
|
|
274
274
|
(0, e.useEffect)((function() {
|
|
275
|
-
if (
|
|
276
|
-
if (!
|
|
277
|
-
|
|
278
|
-
|
|
275
|
+
if (H) {
|
|
276
|
+
if (!_) {
|
|
277
|
+
H.scrollTop = u;
|
|
278
|
+
H.scrollLeft = l;
|
|
279
279
|
}
|
|
280
|
-
if (
|
|
281
|
-
|
|
280
|
+
if (i()(P)) {
|
|
281
|
+
H.scrollTop = (P === null || P === void 0 ? void 0 : P.get()) || 0;
|
|
282
282
|
}
|
|
283
|
-
if (
|
|
284
|
-
|
|
283
|
+
if (i()(f)) {
|
|
284
|
+
H.scrollLeft = (f === null || f === void 0 ? void 0 : f.get()) || 0;
|
|
285
285
|
}
|
|
286
286
|
}
|
|
287
|
-
}), [
|
|
287
|
+
}), [ H, _, u, l, P, f ]);
|
|
288
288
|
var D = (0, e.useCallback)((function(e) {
|
|
289
|
-
var t =
|
|
289
|
+
var t = H;
|
|
290
290
|
if (!t) {
|
|
291
291
|
return;
|
|
292
292
|
}
|
|
@@ -322,55 +322,47 @@
|
|
|
322
322
|
e.preventDefault();
|
|
323
323
|
}
|
|
324
324
|
}
|
|
325
|
-
}), [
|
|
326
|
-
var
|
|
327
|
-
|
|
325
|
+
}), [ H ]);
|
|
326
|
+
var F = (0, e.useCallback)((function(e) {
|
|
327
|
+
W(e);
|
|
328
328
|
S(c, e);
|
|
329
329
|
}), [ c ]);
|
|
330
|
-
var
|
|
331
|
-
|
|
332
|
-
|
|
330
|
+
var U = (0, e.useCallback)((function() {
|
|
331
|
+
L(document.body.style.overflowX);
|
|
332
|
+
N(document.body.style.overflowY);
|
|
333
333
|
document.body.style.overflowX = "hidden";
|
|
334
334
|
document.body.style.overflowY = "hidden";
|
|
335
335
|
}), []);
|
|
336
|
-
var
|
|
337
|
-
document.body.style.overflowX =
|
|
338
|
-
document.body.style.overflowY =
|
|
339
|
-
}), [
|
|
340
|
-
var
|
|
336
|
+
var $ = (0, e.useCallback)((function() {
|
|
337
|
+
document.body.style.overflowX = k;
|
|
338
|
+
document.body.style.overflowY = R;
|
|
339
|
+
}), [ k, R ]);
|
|
340
|
+
var z = m.animated[b];
|
|
341
341
|
|
|
342
|
-
return t().createElement(t().Fragment, null, t().createElement(
|
|
343
|
-
ref:
|
|
344
|
-
onMouseEnter:
|
|
345
|
-
onMouseLeave:
|
|
342
|
+
return t().createElement(t().Fragment, null, t().createElement(z, O({}, y()(T, p()(x)), {
|
|
343
|
+
ref: F,
|
|
344
|
+
onMouseEnter: d === "window" ? U : undefined,
|
|
345
|
+
onMouseLeave: d === "window" ? $ : undefined,
|
|
346
346
|
onScroll: s,
|
|
347
347
|
scrollTop: P,
|
|
348
348
|
scrollLeft: f
|
|
349
|
-
}), t().createElement(
|
|
350
|
-
value:
|
|
351
|
-
}, n)),
|
|
352
|
-
target:
|
|
349
|
+
}), t().createElement(h.ScrollContainerProvider, {
|
|
350
|
+
value: H
|
|
351
|
+
}, n)), d === true && H && t().createElement(g(), {
|
|
352
|
+
target: H,
|
|
353
353
|
eventType: "wheel",
|
|
354
354
|
listener: D,
|
|
355
|
-
options:
|
|
355
|
+
options: q
|
|
356
356
|
}));
|
|
357
357
|
}
|
|
358
|
-
|
|
359
|
-
/* harmony default export */ const
|
|
358
|
+
I.propTypes = x;
|
|
359
|
+
/* harmony default export */ const M = I;
|
|
360
360
|
// CONCATENATED MODULE: ./src/Scroll/ScrollStyles.ts
|
|
361
|
-
var
|
|
361
|
+
var R = f()(M).withConfig({
|
|
362
362
|
displayName: "ScrollStyles__StyledInner",
|
|
363
363
|
componentId: "sc-1xspttf-0"
|
|
364
364
|
})([ "", ";overflow:auto;overflow-y:auto;overflow-x:hidden;" ], s.mixins.reset("block"));
|
|
365
365
|
// CONCATENATED MODULE: ./src/Scroll/Scroll.tsx
|
|
366
|
-
function A(e) {
|
|
367
|
-
"@babel/helpers - typeof";
|
|
368
|
-
return A = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
|
|
369
|
-
return typeof e;
|
|
370
|
-
} : function(e) {
|
|
371
|
-
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
372
|
-
}, A(e);
|
|
373
|
-
}
|
|
374
366
|
function N() {
|
|
375
367
|
return N = Object.assign ? Object.assign.bind() : function(e) {
|
|
376
368
|
for (var t = 1; t < arguments.length; t++) {
|
|
@@ -383,8 +375,53 @@
|
|
|
383
375
|
}, N.apply(null, arguments);
|
|
384
376
|
}
|
|
385
377
|
function X(e, t) {
|
|
378
|
+
return D(e) || _(e, t) || H(e, t) || Y();
|
|
379
|
+
}
|
|
380
|
+
function Y() {
|
|
381
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
382
|
+
}
|
|
383
|
+
function H(e, t) {
|
|
384
|
+
if (e) {
|
|
385
|
+
if ("string" == typeof e) return W(e, t);
|
|
386
|
+
var r = {}.toString.call(e).slice(8, -1);
|
|
387
|
+
return "Object" === r && e.constructor && (r = e.constructor.name), "Map" === r || "Set" === r ? Array.from(e) : "Arguments" === r || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? W(e, t) : void 0;
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
function W(e, t) {
|
|
391
|
+
(null == t || t > e.length) && (t = e.length);
|
|
392
|
+
for (var r = 0, n = Array(t); r < t; r++) {
|
|
393
|
+
n[r] = e[r];
|
|
394
|
+
}
|
|
395
|
+
return n;
|
|
396
|
+
}
|
|
397
|
+
function _(e, t) {
|
|
398
|
+
var r = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
|
|
399
|
+
if (null != r) {
|
|
400
|
+
var n, o, l, a, i = [], u = !0, c = !1;
|
|
401
|
+
try {
|
|
402
|
+
if (l = (r = r.call(e)).next, 0 === t) {
|
|
403
|
+
if (Object(r) !== r) return;
|
|
404
|
+
u = !1;
|
|
405
|
+
} else for (;!(u = (n = l.call(r)).done) && (i.push(n.value), i.length !== t); u = !0) {
|
|
406
|
+
}
|
|
407
|
+
} catch (e) {
|
|
408
|
+
c = !0, o = e;
|
|
409
|
+
} finally {
|
|
410
|
+
try {
|
|
411
|
+
if (!u && null != r["return"] && (a = r["return"](), Object(a) !== a)) return;
|
|
412
|
+
} finally {
|
|
413
|
+
if (c) throw o;
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
return i;
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
function D(e) {
|
|
420
|
+
if (Array.isArray(e)) return e;
|
|
421
|
+
}
|
|
422
|
+
function F(e, t) {
|
|
386
423
|
if (null == e) return {};
|
|
387
|
-
var r, n, o =
|
|
424
|
+
var r, n, o = U(e, t);
|
|
388
425
|
if (Object.getOwnPropertySymbols) {
|
|
389
426
|
var l = Object.getOwnPropertySymbols(e);
|
|
390
427
|
for (n = 0; n < l.length; n++) {
|
|
@@ -393,7 +430,7 @@
|
|
|
393
430
|
}
|
|
394
431
|
return o;
|
|
395
432
|
}
|
|
396
|
-
function
|
|
433
|
+
function U(e, t) {
|
|
397
434
|
if (null == e) return {};
|
|
398
435
|
var r = {};
|
|
399
436
|
for (var n in e) {
|
|
@@ -404,94 +441,7 @@
|
|
|
404
441
|
}
|
|
405
442
|
return r;
|
|
406
443
|
}
|
|
407
|
-
|
|
408
|
-
if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
|
|
409
|
-
}
|
|
410
|
-
function W(e, t) {
|
|
411
|
-
for (var r = 0; r < t.length; r++) {
|
|
412
|
-
var n = t[r];
|
|
413
|
-
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0),
|
|
414
|
-
Object.defineProperty(e, Q(n.key), n);
|
|
415
|
-
}
|
|
416
|
-
}
|
|
417
|
-
function D(e, t, r) {
|
|
418
|
-
return t && W(e.prototype, t), r && W(e, r), Object.defineProperty(e, "prototype", {
|
|
419
|
-
writable: !1
|
|
420
|
-
}), e;
|
|
421
|
-
}
|
|
422
|
-
function B(e, t) {
|
|
423
|
-
if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function");
|
|
424
|
-
e.prototype = Object.create(t && t.prototype, {
|
|
425
|
-
constructor: {
|
|
426
|
-
value: e,
|
|
427
|
-
writable: !0,
|
|
428
|
-
configurable: !0
|
|
429
|
-
}
|
|
430
|
-
}), Object.defineProperty(e, "prototype", {
|
|
431
|
-
writable: !1
|
|
432
|
-
}), t && F(e, t);
|
|
433
|
-
}
|
|
434
|
-
function F(e, t) {
|
|
435
|
-
return F = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
|
|
436
|
-
return e.__proto__ = t, e;
|
|
437
|
-
}, F(e, t);
|
|
438
|
-
}
|
|
439
|
-
function U(e) {
|
|
440
|
-
var t = G();
|
|
441
|
-
return function() {
|
|
442
|
-
var r, n = J(e);
|
|
443
|
-
if (t) {
|
|
444
|
-
var o = J(this).constructor;
|
|
445
|
-
r = Reflect.construct(n, arguments, o);
|
|
446
|
-
} else r = n.apply(this, arguments);
|
|
447
|
-
return $(this, r);
|
|
448
|
-
};
|
|
449
|
-
}
|
|
450
|
-
function $(e, t) {
|
|
451
|
-
if (t && ("object" == A(t) || "function" == typeof t)) return t;
|
|
452
|
-
if (void 0 !== t) throw new TypeError("Derived constructors may only return object or undefined");
|
|
453
|
-
return z(e);
|
|
454
|
-
}
|
|
455
|
-
function z(e) {
|
|
456
|
-
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
457
|
-
return e;
|
|
458
|
-
}
|
|
459
|
-
function G() {
|
|
460
|
-
try {
|
|
461
|
-
var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function() {})));
|
|
462
|
-
} catch (e) {}
|
|
463
|
-
return (G = function t() {
|
|
464
|
-
return !!e;
|
|
465
|
-
})();
|
|
466
|
-
}
|
|
467
|
-
function J(e) {
|
|
468
|
-
return J = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
|
|
469
|
-
return e.__proto__ || Object.getPrototypeOf(e);
|
|
470
|
-
}, J(e);
|
|
471
|
-
}
|
|
472
|
-
function K(e, t, r) {
|
|
473
|
-
return (t = Q(t)) in e ? Object.defineProperty(e, t, {
|
|
474
|
-
value: r,
|
|
475
|
-
enumerable: !0,
|
|
476
|
-
configurable: !0,
|
|
477
|
-
writable: !0
|
|
478
|
-
}) : e[t] = r, e;
|
|
479
|
-
}
|
|
480
|
-
function Q(e) {
|
|
481
|
-
var t = V(e, "string");
|
|
482
|
-
return "symbol" == A(t) ? t : t + "";
|
|
483
|
-
}
|
|
484
|
-
function V(e, t) {
|
|
485
|
-
if ("object" != A(e) || !e) return e;
|
|
486
|
-
var r = e[Symbol.toPrimitive];
|
|
487
|
-
if (void 0 !== r) {
|
|
488
|
-
var n = r.call(e, t || "default");
|
|
489
|
-
if ("object" != A(n)) return n;
|
|
490
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
491
|
-
}
|
|
492
|
-
return ("string" === t ? String : Number)(e);
|
|
493
|
-
}
|
|
494
|
-
var Z = {
|
|
444
|
+
var $ = {
|
|
495
445
|
children: l().node,
|
|
496
446
|
elementRef: l().oneOfType([ l().func, l().object ]),
|
|
497
447
|
left: l().number,
|
|
@@ -501,85 +451,56 @@
|
|
|
501
451
|
tagName: l().string,
|
|
502
452
|
top: l().number
|
|
503
453
|
};
|
|
504
|
-
|
|
505
|
-
stopScrollPropagation:
|
|
506
|
-
tagName: "div"
|
|
507
|
-
};
|
|
508
|
-
var te = function(e) {
|
|
509
|
-
B(n, e);
|
|
510
|
-
var r = U(n);
|
|
454
|
+
function z(r) {
|
|
455
|
+
var n = r.children, o = r.elementRef, l = r.left, a = r.onScroll, c = r.onScrollComplete, f = r.stopScrollPropagation, s = r.tagName, d = s === void 0 ? "div" : s, p = r.top, v = F(r, [ "children", "elementRef", "left", "onScroll", "onScrollComplete", "stopScrollPropagation", "tagName", "top" ]);
|
|
511
456
|
// @docs-props-type ScrollPropsBase
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
}), n);
|
|
540
|
-
}));
|
|
541
|
-
o.state = {
|
|
542
|
-
currentLeft: 0,
|
|
543
|
-
currentTop: 0
|
|
544
|
-
};
|
|
545
|
-
return o;
|
|
457
|
+
var y = (0, e.useState)(0), m = X(y, 2), b = m[0], g = m[1];
|
|
458
|
+
var h = (0, e.useState)(0), S = X(h, 2), w = S[0], O = S[1];
|
|
459
|
+
var j = (0, e.useCallback)((function() {
|
|
460
|
+
c === null || c === void 0 ? void 0 : c();
|
|
461
|
+
}), [ c ]);
|
|
462
|
+
var P = (0, e.useCallback)((function(e) {
|
|
463
|
+
g(e.currentTarget.scrollLeft);
|
|
464
|
+
O(e.currentTarget.scrollTop);
|
|
465
|
+
a === null || a === void 0 ? void 0 : a(e);
|
|
466
|
+
}), [ a ]);
|
|
467
|
+
var T = {};
|
|
468
|
+
var C = (0, u.useAnimation)({
|
|
469
|
+
config: {
|
|
470
|
+
precision: 10
|
|
471
|
+
},
|
|
472
|
+
from: {
|
|
473
|
+
left: 0,
|
|
474
|
+
top: 0
|
|
475
|
+
},
|
|
476
|
+
to: T,
|
|
477
|
+
onRest: j
|
|
478
|
+
});
|
|
479
|
+
// When isFinite, the prop is defined and therefore animating.
|
|
480
|
+
if (i()(l)) {
|
|
481
|
+
T.left = l;
|
|
482
|
+
} else {
|
|
483
|
+
T.left = b;
|
|
546
484
|
}
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
from: {
|
|
567
|
-
left: 0,
|
|
568
|
-
top: 0
|
|
569
|
-
},
|
|
570
|
-
to: f,
|
|
571
|
-
onRest: this.handleRest,
|
|
572
|
-
config: {
|
|
573
|
-
precision: 10
|
|
574
|
-
}
|
|
575
|
-
}, this.renderInner);
|
|
576
|
-
}
|
|
577
|
-
} ]);
|
|
578
|
-
return n;
|
|
579
|
-
}(e.Component);
|
|
580
|
-
K(te, "propTypes", Z);
|
|
581
|
-
K(te, "defaultProps", ee);
|
|
582
|
-
/* harmony default export */ const re = te;
|
|
485
|
+
if (i()(p)) {
|
|
486
|
+
T.top = p;
|
|
487
|
+
} else {
|
|
488
|
+
T.top = w;
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
return t().createElement(R, N({
|
|
492
|
+
"data-test": "scroll",
|
|
493
|
+
key: "inner",
|
|
494
|
+
top: i()(p) ? C.top : undefined,
|
|
495
|
+
left: i()(l) ? C.left : undefined,
|
|
496
|
+
elementRef: o,
|
|
497
|
+
onScroll: P,
|
|
498
|
+
stopScrollPropagation: f,
|
|
499
|
+
tagName: d
|
|
500
|
+
}, v), n);
|
|
501
|
+
}
|
|
502
|
+
z.propTypes = $;
|
|
503
|
+
/* harmony default export */ const B = z;
|
|
583
504
|
}) // CONCATENATED MODULE: ./src/Scroll/index.ts
|
|
584
505
|
();
|
|
585
506
|
module.exports = n;
|