@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/CollapsiblePanel.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 = n => {
|
|
12
|
+
/******/ var r = n && n.__esModule ?
|
|
13
|
+
/******/ () => n["default"]
|
|
14
|
+
/******/ : () => n
|
|
15
15
|
/******/;
|
|
16
|
-
e.d(
|
|
17
|
-
a:
|
|
16
|
+
e.d(r, {
|
|
17
|
+
a: r
|
|
18
18
|
});
|
|
19
|
-
/******/ return
|
|
19
|
+
/******/ return r;
|
|
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 = (n, r) => {
|
|
27
|
+
/******/ for (var t in r) {
|
|
28
|
+
/******/ if (e.o(r, t) && !e.o(n, t)) {
|
|
29
|
+
/******/ Object.defineProperty(n, t, {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get:
|
|
31
|
+
get: r[t]
|
|
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, n) => Object.prototype.hasOwnProperty.call(e, n)
|
|
41
41
|
/******/;
|
|
42
42
|
})();
|
|
43
43
|
/******/
|
|
@@ -56,739 +56,577 @@
|
|
|
56
56
|
/******/ };
|
|
57
57
|
/******/ })();
|
|
58
58
|
/******/
|
|
59
|
-
/************************************************************************/ var
|
|
59
|
+
/************************************************************************/ var n = {};
|
|
60
60
|
// ESM COMPAT FLAG
|
|
61
|
-
e.r(
|
|
61
|
+
e.r(n);
|
|
62
62
|
// EXPORTS
|
|
63
|
-
e.d(
|
|
64
|
-
SingleOpenPanelGroup: () => /* reexport */
|
|
65
|
-
default: () => /* reexport */
|
|
63
|
+
e.d(n, {
|
|
64
|
+
SingleOpenPanelGroup: () => /* reexport */ oe,
|
|
65
|
+
default: () => /* reexport */ we
|
|
66
66
|
});
|
|
67
67
|
// CONCATENATED MODULE: external "react"
|
|
68
|
-
const
|
|
69
|
-
var
|
|
70
|
-
// CONCATENATED MODULE: external "lodash/has"
|
|
71
|
-
const a = require("lodash/has");
|
|
72
|
-
var o = e.n(a);
|
|
73
|
-
// CONCATENATED MODULE: external "lodash/keys"
|
|
74
|
-
const i = require("lodash/keys");
|
|
75
|
-
var l = e.n(i);
|
|
76
|
-
// CONCATENATED MODULE: external "lodash/omit"
|
|
77
|
-
const s = require("lodash/omit");
|
|
78
|
-
var c = e.n(s);
|
|
68
|
+
const r = require("react");
|
|
69
|
+
var t = e.n(r);
|
|
79
70
|
// CONCATENATED MODULE: external "prop-types"
|
|
80
|
-
const
|
|
81
|
-
var
|
|
71
|
+
const a = require("prop-types");
|
|
72
|
+
var l = e.n(a);
|
|
82
73
|
// CONCATENATED MODULE: external "@splunk/react-ui/TransitionOpen"
|
|
83
|
-
const
|
|
84
|
-
var
|
|
74
|
+
const o = require("@splunk/react-ui/TransitionOpen");
|
|
75
|
+
var i = e.n(o);
|
|
85
76
|
// CONCATENATED MODULE: external "@splunk/ui-utils/id"
|
|
86
|
-
const
|
|
87
|
-
// CONCATENATED MODULE: external "@splunk/ui
|
|
88
|
-
const
|
|
77
|
+
const s = require("@splunk/ui-utils/id");
|
|
78
|
+
// CONCATENATED MODULE: external "@splunk/react-ui/useControlled"
|
|
79
|
+
const c = require("@splunk/react-ui/useControlled");
|
|
80
|
+
var u = e.n(c);
|
|
89
81
|
// CONCATENATED MODULE: external "@splunk/react-ui/usePrevious"
|
|
90
|
-
const
|
|
91
|
-
var
|
|
82
|
+
const p = require("@splunk/react-ui/usePrevious");
|
|
83
|
+
var d = e.n(p);
|
|
84
|
+
// CONCATENATED MODULE: external "lodash/omit"
|
|
85
|
+
const f = require("lodash/omit");
|
|
86
|
+
var b = e.n(f);
|
|
92
87
|
// CONCATENATED MODULE: external "styled-components"
|
|
93
|
-
const
|
|
94
|
-
var
|
|
88
|
+
const v = require("styled-components");
|
|
89
|
+
var y = e.n(v);
|
|
95
90
|
// CONCATENATED MODULE: external "@splunk/react-ui/Box"
|
|
96
|
-
const
|
|
97
|
-
var
|
|
91
|
+
const m = require("@splunk/react-ui/Box");
|
|
92
|
+
var g = e.n(m);
|
|
98
93
|
// CONCATENATED MODULE: external "@splunk/react-ui/ButtonSimple"
|
|
99
|
-
const
|
|
100
|
-
var
|
|
94
|
+
const h = require("@splunk/react-ui/ButtonSimple");
|
|
95
|
+
var S = e.n(h);
|
|
101
96
|
// CONCATENATED MODULE: external "@splunk/react-ui/Clickable"
|
|
102
|
-
const
|
|
103
|
-
var
|
|
97
|
+
const C = require("@splunk/react-ui/Clickable");
|
|
98
|
+
var O = e.n(C);
|
|
104
99
|
// CONCATENATED MODULE: external "@splunk/themes"
|
|
105
100
|
const P = require("@splunk/themes");
|
|
106
101
|
// CONCATENATED MODULE: external "@splunk/react-icons/ChevronRight"
|
|
107
|
-
const
|
|
108
|
-
var
|
|
102
|
+
const w = require("@splunk/react-icons/ChevronRight");
|
|
103
|
+
var k = e.n(w);
|
|
109
104
|
// CONCATENATED MODULE: external "@splunk/react-icons/enterprise/ChevronRight"
|
|
110
|
-
const
|
|
111
|
-
var
|
|
105
|
+
const I = require("@splunk/react-icons/enterprise/ChevronRight");
|
|
106
|
+
var j = e.n(I);
|
|
112
107
|
// CONCATENATED MODULE: ./src/CollapsiblePanel/icons/ExpandPanel.tsx
|
|
113
|
-
var
|
|
114
|
-
className:
|
|
108
|
+
var x = {
|
|
109
|
+
className: l().string
|
|
115
110
|
};
|
|
116
|
-
var
|
|
117
|
-
var
|
|
118
|
-
var a = (0, P.useSplunkTheme)(),
|
|
119
|
-
return
|
|
120
|
-
className:
|
|
111
|
+
var E = function e(n) {
|
|
112
|
+
var r = n.className;
|
|
113
|
+
var a = (0, P.useSplunkTheme)(), l = a.isEnterprise;
|
|
114
|
+
return l ? t().createElement(j(), {
|
|
115
|
+
className: r,
|
|
121
116
|
hideDefaultTooltip: true,
|
|
122
117
|
screenReaderText: null
|
|
123
|
-
}) :
|
|
124
|
-
className:
|
|
118
|
+
}) : t().createElement(k(), {
|
|
119
|
+
className: r
|
|
125
120
|
});
|
|
126
121
|
};
|
|
127
|
-
|
|
128
|
-
/* harmony default export */ const
|
|
122
|
+
E.propTypes = x;
|
|
123
|
+
/* harmony default export */ const _ = E;
|
|
129
124
|
// CONCATENATED MODULE: ./src/CollapsiblePanel/CollapsiblePanelStyles.ts
|
|
130
|
-
var
|
|
125
|
+
var N = y()(g()).withConfig({
|
|
131
126
|
displayName: "CollapsiblePanelStyles__StyledBox",
|
|
132
127
|
componentId: "sc-1phikbp-0"
|
|
133
|
-
})([ "display:flex;flex-direction:column;flex-shrink:1;
|
|
134
|
-
P.
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
enterprise: "2px",
|
|
144
|
-
prisma: "1px"
|
|
128
|
+
})([ "display:flex;flex-direction:column;flex-shrink:1;min-height:28px;background-color:", ";& + &{margin-top:1px;}" ], (0,
|
|
129
|
+
P.pickVariant)("$appearance", {
|
|
130
|
+
default: {
|
|
131
|
+
prisma: P.variables.backgroundColorSection,
|
|
132
|
+
enterprise: {
|
|
133
|
+
dark: P.variables.gray22,
|
|
134
|
+
light: P.variables.white
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
subtle: P.variables.transparent
|
|
145
138
|
}));
|
|
146
|
-
var
|
|
139
|
+
var A = y()(g()).withConfig({
|
|
147
140
|
displayName: "CollapsiblePanelStyles__StyledSingleOpenPanelGroupBox",
|
|
148
141
|
componentId: "sc-1phikbp-1"
|
|
149
|
-
})([ "", ";flex-direction:column;margin-bottom:0;"
|
|
150
|
-
P.pick)({
|
|
151
|
-
enterprise: (0, g.css)([ "background:", ";" ], P.variables.backgroundColor)
|
|
152
|
-
}));
|
|
142
|
+
})([ "", ";flex-direction:column;margin-bottom:0;" ], P.mixins.reset("flex"));
|
|
153
143
|
/*
|
|
154
|
-
these styles are consistent for both regular and
|
|
144
|
+
these styles are consistent for both regular and actions, but applied to different elements
|
|
155
145
|
* in regular mode, they're on the SVG's span wrapper
|
|
156
|
-
* in
|
|
146
|
+
* in actionsMode, they're on the button
|
|
157
147
|
applying them directly to the icon wrapper doesn't work because Enterprise has 1px border around the button
|
|
158
|
-
*/ var
|
|
159
|
-
|
|
160
|
-
prisma: "35px"
|
|
161
|
-
}));
|
|
162
|
-
var X = h().span.withConfig({
|
|
148
|
+
*/ var T = (0, v.css)([ "min-width:16px;" ]);
|
|
149
|
+
var $ = y().span.withConfig({
|
|
163
150
|
displayName: "CollapsiblePanelStyles__StyledIconWrapper",
|
|
164
151
|
componentId: "sc-1phikbp-2"
|
|
165
|
-
})([ "display:inline-block;flex:0 auto;", "" ],
|
|
166
|
-
var
|
|
167
|
-
displayName: "
|
|
152
|
+
})([ "display:inline-block;flex:0 auto;", "" ], T);
|
|
153
|
+
var q = y().div.withConfig({
|
|
154
|
+
displayName: "CollapsiblePanelStyles__StyledActions",
|
|
168
155
|
componentId: "sc-1phikbp-3"
|
|
169
|
-
})([ "display:flex;flex-shrink:0;border-bottom:0;position:relative;padding:", ";transition:background-color 0.2s,border 0.2s,box-shadow 0.2s;color:", ";", "
|
|
170
|
-
P.
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
comfortable: "8px 10px 8px 11px",
|
|
174
|
-
compact: "8px 10px 8px 11px"
|
|
175
|
-
}
|
|
176
|
-
}), (0, P.pick)({
|
|
177
|
-
enterprise: P.variables.textColor,
|
|
178
|
-
prisma: P.variables.contentColorActive
|
|
179
|
-
}), (0, P.pick)({
|
|
180
|
-
prisma: (0, g.css)([ "background-color:", ";" ], P.variables.interactiveColorBackground),
|
|
181
|
-
enterprise: {
|
|
182
|
-
dark: (0, g.css)([ "background-color:", ";" ], P.variables.gray45),
|
|
183
|
-
light: (0, g.css)([ "background-color:", ";" ], P.variables.gray96)
|
|
184
|
-
}
|
|
156
|
+
})([ "display:flex;flex-shrink:0;border-bottom:0;gap:", ";position:relative;padding:", " ", ";transition:background-color 0.2s,border 0.2s,box-shadow 0.2s;color:", ";background-color:", ";", "" ], P.variables.spacingSmall, P.variables.spacingXSmall, P.variables.spacingLarge, P.variables.contentColorActive, (0,
|
|
157
|
+
P.pickVariant)("$appearance", {
|
|
158
|
+
default: P.variables.neutral100,
|
|
159
|
+
subtle: P.variables.transparent
|
|
185
160
|
}), (function(e) {
|
|
186
|
-
var
|
|
187
|
-
return
|
|
188
|
-
enterprise: P.variables.contentColorDefault,
|
|
189
|
-
prisma: P.variables.contentColorDisabled
|
|
190
|
-
}));
|
|
161
|
+
var n = e.$disabled;
|
|
162
|
+
return n && (0, v.css)([ "color:", ";" ], P.variables.contentColorDisabled);
|
|
191
163
|
}));
|
|
192
|
-
var
|
|
164
|
+
var D = y()(S()).withConfig({
|
|
193
165
|
displayName: "CollapsiblePanelStyles__StyledToggleButton",
|
|
194
166
|
componentId: "sc-1phikbp-4"
|
|
195
|
-
})([ "flex:0 auto;padding:0;", "" ],
|
|
196
|
-
var
|
|
167
|
+
})([ "flex:0 auto;padding:0;min-width:28px;line-height:", ";" ], P.variables.lineHeight);
|
|
168
|
+
var R = y()(O()).withConfig({
|
|
197
169
|
displayName: "CollapsiblePanelStyles__StyledTitleClickable",
|
|
198
170
|
componentId: "sc-1phikbp-5"
|
|
199
|
-
})([ "width:100%;flex-shrink:0;border-bottom:0;cursor:pointer;position:relative;display:flex;transition:background-color 0.2s,border 0.2s,box-shadow 0.2s;padding:", "
|
|
200
|
-
P.
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
}
|
|
206
|
-
}), (0, P.pick)({
|
|
207
|
-
enterprise: P.variables.textColor,
|
|
208
|
-
prisma: P.variables.contentColorActive
|
|
209
|
-
}), (0, P.pick)({
|
|
210
|
-
prisma: (0, g.css)([ "background-color:", ";" ], P.variables.interactiveColorBackground)
|
|
211
|
-
}), (0, P.pickVariant)("$open", {
|
|
212
|
-
false: {
|
|
213
|
-
enterprise: {
|
|
214
|
-
dark: (0, g.css)([ "background-color:", ";" ], P.variables.gray45),
|
|
215
|
-
light: (0, g.css)([ "background-color:", ";" ], P.variables.gray96)
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
}), (0, P.pick)({
|
|
219
|
-
enterprise: P.variables.contentColorDefault,
|
|
220
|
-
prisma: P.variables.contentColorDisabled
|
|
221
|
-
}), (0, P.pick)({
|
|
222
|
-
enterprise: P.variables.textColor,
|
|
223
|
-
prisma: P.variables.contentColorActive
|
|
224
|
-
}), P.variables.focusShadowInset, (0, P.pick)({
|
|
225
|
-
enterprise: P.variables.textColor,
|
|
226
|
-
prisma: P.variables.contentColorActive
|
|
227
|
-
}), (0, P.pick)({
|
|
228
|
-
enterprise: {
|
|
229
|
-
light: P.variables.gray92,
|
|
230
|
-
dark: P.variables.gray30
|
|
231
|
-
},
|
|
232
|
-
prisma: P.mixins.overlayColors(P.variables.interactiveColorBackground, P.variables.interactiveColorOverlayHover)
|
|
233
|
-
}));
|
|
234
|
-
var $ = h().span.withConfig({
|
|
171
|
+
})([ "width:100%;flex-shrink:0;border-bottom:0;gap:", ";cursor:pointer;position:relative;display:flex;transition:background-color 0.2s,border 0.2s,box-shadow 0.2s;padding:", " ", ";color:", ";background-color:", ";&[disabled],&[aria-disabled='true']{cursor:not-allowed;color:", ";}&:focus:not([disabled]),&:active:not([disabled],[aria-disabled='true']){box-shadow:", ";z-index:1;}&:hover:not([disabled],[aria-disabled='true']){background-color:", ";}" ], P.variables.spacingSmall, P.variables.spacingXSmall, P.variables.spacingLarge, P.variables.contentColorActive, (0,
|
|
172
|
+
P.pickVariant)("$appearance", {
|
|
173
|
+
default: P.variables.neutral100,
|
|
174
|
+
subtle: P.variables.transparent
|
|
175
|
+
}), P.variables.contentColorDisabled, P.variables.focusShadowInset, P.mixins.overlayColors(P.variables.neutral100, P.variables.interactiveColorOverlayHover));
|
|
176
|
+
var B = y().span.withConfig({
|
|
235
177
|
displayName: "CollapsiblePanelStyles__StyledHeadingContent",
|
|
236
178
|
componentId: "sc-1phikbp-6"
|
|
237
|
-
})([ "display:flex;justify-content:space-between;
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
prisma: "6px"
|
|
241
|
-
}), (0, P.pick)({
|
|
242
|
-
prisma: (0, g.css)([ "font-weight:", ";" ], P.variables.fontWeightSemiBold)
|
|
243
|
-
}), (function(e) {
|
|
244
|
-
var t = e.$titleWithActions;
|
|
245
|
-
return t && (0, g.css)([ "min-height:", ";" ], (0, P.pick)({
|
|
246
|
-
prisma: {
|
|
247
|
-
comfortable: P.variables.spacingXXXLarge,
|
|
248
|
-
compact: P.variables.spacingXXLarge
|
|
249
|
-
}
|
|
250
|
-
}));
|
|
179
|
+
})([ "display:flex;justify-content:space-between;flex:1 1 auto;font-weight:", ";line-height:", ";", "" ], P.variables.fontWeightSemiBold, P.variables.lineHeight, (function(e) {
|
|
180
|
+
var n = e.$disabled;
|
|
181
|
+
return n && (0, v.css)([ "color:", ";" ], P.variables.contentColorDisabled);
|
|
251
182
|
}));
|
|
252
|
-
var
|
|
183
|
+
var L = y().span.withConfig({
|
|
253
184
|
displayName: "CollapsiblePanelStyles__StyledHeadingActions",
|
|
254
185
|
componentId: "sc-1phikbp-7"
|
|
255
|
-
})([ "min-height:", ";flex:1 0 auto;" ],
|
|
256
|
-
|
|
257
|
-
comfortable: P.variables.spacingXXXLarge,
|
|
258
|
-
compact: P.variables.spacingXXLarge
|
|
259
|
-
}
|
|
260
|
-
}));
|
|
261
|
-
var G = h().span.withConfig({
|
|
186
|
+
})([ "min-height:", ";flex:1 0 auto;" ], P.variables.inputHeight);
|
|
187
|
+
var M = y().span.withConfig({
|
|
262
188
|
displayName: "CollapsiblePanelStyles__StyledDescription",
|
|
263
189
|
componentId: "sc-1phikbp-8"
|
|
264
|
-
})([ "font-size:", ";margin-left:", ";" ], P.variables.
|
|
265
|
-
|
|
266
|
-
|
|
190
|
+
})([ "color:", ";font-size:", ";margin-left:", ";line-height:1.8;", "" ], P.variables.contentColorDefault, P.variables.fontSizeSmall, P.variables.spacingSmall, (function(e) {
|
|
191
|
+
var n = e.$disabled;
|
|
192
|
+
return n && (0, v.css)([ "color:", ";" ], P.variables.contentColorDisabled);
|
|
267
193
|
}));
|
|
268
|
-
var
|
|
194
|
+
var W = y().div.withConfig({
|
|
269
195
|
displayName: "CollapsiblePanelStyles__StyledInsetWrapper",
|
|
270
196
|
componentId: "sc-1phikbp-9"
|
|
271
|
-
})([ "", ";
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
compact: P.variables.spacingXSmall,
|
|
275
|
-
comfortable: P.variables.spacingSmall
|
|
276
|
-
},
|
|
277
|
-
prisma: {
|
|
278
|
-
compact: P.variables.spacingMedium,
|
|
279
|
-
comfortable: P.variables.spacingXLarge
|
|
280
|
-
}
|
|
281
|
-
}),
|
|
282
|
-
false: 0
|
|
197
|
+
})([ "", ";gap:", ";", "" ], P.mixins.reset("block"), P.variables.spacingSmall, (function(e) {
|
|
198
|
+
var n = e.$inset;
|
|
199
|
+
return n && (0, v.css)([ "padding:", ";" ], P.variables.spacingLarge);
|
|
283
200
|
}));
|
|
284
|
-
var
|
|
201
|
+
var H = y()(_).withConfig({
|
|
285
202
|
displayName: "CollapsiblePanelStyles__StyledExpandPanelIcon",
|
|
286
203
|
componentId: "sc-1phikbp-10"
|
|
287
|
-
})([ "transition:transform ", ";", "
|
|
288
|
-
P.pick)({
|
|
204
|
+
})([ "transition:transform ", ";", " width:100%;vertical-align:", ";" ], (0, P.pick)({
|
|
289
205
|
enterprise: "300ms",
|
|
290
206
|
prisma: "200ms"
|
|
291
|
-
}), (0, P.pick)({
|
|
292
|
-
enterprise: (0, g.css)([ "[disabled] &{color:", ";}" ], (0, P.pick)({
|
|
293
|
-
dark: P.variables.contentColorDefault,
|
|
294
|
-
light: P.variables.contentColorDisabled
|
|
295
|
-
})),
|
|
296
|
-
prisma: (0, g.css)([ "color:", ";[disabled] &{color:inherit;}" ], P.variables.contentColorDefault)
|
|
297
207
|
}), (function(e) {
|
|
298
|
-
var
|
|
299
|
-
return
|
|
208
|
+
var n = e.open;
|
|
209
|
+
return n && (0, v.css)([ "transform:rotate(90deg);" ]);
|
|
300
210
|
}), (0, P.pick)({
|
|
301
211
|
enterprise: "baseline",
|
|
302
212
|
prisma: "text-bottom"
|
|
303
213
|
}));
|
|
304
214
|
// CONCATENATED MODULE: ./src/CollapsiblePanel/SingleOpenPanelGroupContext.tsx
|
|
305
|
-
var
|
|
306
|
-
/* harmony default export */ const
|
|
215
|
+
var V = (0, r.createContext)({});
|
|
216
|
+
/* harmony default export */ const G = V;
|
|
307
217
|
// CONCATENATED MODULE: ./src/CollapsiblePanel/SingleOpenPanelGroup.tsx
|
|
308
|
-
function
|
|
309
|
-
return
|
|
310
|
-
for (var
|
|
311
|
-
var
|
|
312
|
-
for (var
|
|
313
|
-
({}).hasOwnProperty.call(
|
|
218
|
+
function U() {
|
|
219
|
+
return U = Object.assign ? Object.assign.bind() : function(e) {
|
|
220
|
+
for (var n = 1; n < arguments.length; n++) {
|
|
221
|
+
var r = arguments[n];
|
|
222
|
+
for (var t in r) {
|
|
223
|
+
({}).hasOwnProperty.call(r, t) && (e[t] = r[t]);
|
|
314
224
|
}
|
|
315
225
|
}
|
|
316
226
|
return e;
|
|
317
|
-
},
|
|
227
|
+
}, U.apply(null, arguments);
|
|
318
228
|
}
|
|
319
|
-
function
|
|
320
|
-
return
|
|
229
|
+
function z(e) {
|
|
230
|
+
return J(e) || F(e) || Y(e) || X();
|
|
321
231
|
}
|
|
322
|
-
function
|
|
232
|
+
function X() {
|
|
323
233
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
324
234
|
}
|
|
325
|
-
function
|
|
235
|
+
function F(e) {
|
|
326
236
|
if ("undefined" != typeof Symbol && null != e[Symbol.iterator] || null != e["@@iterator"]) return Array.from(e);
|
|
327
237
|
}
|
|
328
|
-
function
|
|
329
|
-
if (Array.isArray(e)) return
|
|
238
|
+
function J(e) {
|
|
239
|
+
if (Array.isArray(e)) return Z(e);
|
|
330
240
|
}
|
|
331
|
-
function
|
|
332
|
-
return
|
|
241
|
+
function K(e, n) {
|
|
242
|
+
return ne(e) || ee(e, n) || Y(e, n) || Q();
|
|
333
243
|
}
|
|
334
|
-
function
|
|
244
|
+
function Q() {
|
|
335
245
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
336
246
|
}
|
|
337
|
-
function
|
|
247
|
+
function Y(e, n) {
|
|
338
248
|
if (e) {
|
|
339
|
-
if ("string" == typeof e) return
|
|
340
|
-
var
|
|
341
|
-
return "Object" ===
|
|
249
|
+
if ("string" == typeof e) return Z(e, n);
|
|
250
|
+
var r = {}.toString.call(e).slice(8, -1);
|
|
251
|
+
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) ? Z(e, n) : void 0;
|
|
342
252
|
}
|
|
343
253
|
}
|
|
344
|
-
function
|
|
345
|
-
(null ==
|
|
346
|
-
for (var
|
|
347
|
-
r
|
|
254
|
+
function Z(e, n) {
|
|
255
|
+
(null == n || n > e.length) && (n = e.length);
|
|
256
|
+
for (var r = 0, t = Array(n); r < n; r++) {
|
|
257
|
+
t[r] = e[r];
|
|
348
258
|
}
|
|
349
|
-
return
|
|
259
|
+
return t;
|
|
350
260
|
}
|
|
351
|
-
function
|
|
352
|
-
var
|
|
353
|
-
if (null !=
|
|
354
|
-
var
|
|
261
|
+
function ee(e, n) {
|
|
262
|
+
var r = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
|
|
263
|
+
if (null != r) {
|
|
264
|
+
var t, a, l, o, i = [], s = !0, c = !1;
|
|
355
265
|
try {
|
|
356
|
-
if (
|
|
357
|
-
if (Object(
|
|
266
|
+
if (l = (r = r.call(e)).next, 0 === n) {
|
|
267
|
+
if (Object(r) !== r) return;
|
|
358
268
|
s = !1;
|
|
359
|
-
} else for (;!(s = (
|
|
269
|
+
} else for (;!(s = (t = l.call(r)).done) && (i.push(t.value), i.length !== n); s = !0) {
|
|
360
270
|
}
|
|
361
271
|
} catch (e) {
|
|
362
272
|
c = !0, a = e;
|
|
363
273
|
} finally {
|
|
364
274
|
try {
|
|
365
|
-
if (!s && null !=
|
|
275
|
+
if (!s && null != r["return"] && (o = r["return"](), Object(o) !== o)) return;
|
|
366
276
|
} finally {
|
|
367
277
|
if (c) throw a;
|
|
368
278
|
}
|
|
369
279
|
}
|
|
370
|
-
return
|
|
280
|
+
return i;
|
|
371
281
|
}
|
|
372
282
|
}
|
|
373
|
-
function
|
|
283
|
+
function ne(e) {
|
|
374
284
|
if (Array.isArray(e)) return e;
|
|
375
285
|
}
|
|
376
|
-
function
|
|
286
|
+
function re(e, n) {
|
|
377
287
|
if (null == e) return {};
|
|
378
|
-
var
|
|
288
|
+
var r, t, a = te(e, n);
|
|
379
289
|
if (Object.getOwnPropertySymbols) {
|
|
380
|
-
var
|
|
381
|
-
for (
|
|
382
|
-
|
|
290
|
+
var l = Object.getOwnPropertySymbols(e);
|
|
291
|
+
for (t = 0; t < l.length; t++) {
|
|
292
|
+
r = l[t], n.includes(r) || {}.propertyIsEnumerable.call(e, r) && (a[r] = e[r]);
|
|
383
293
|
}
|
|
384
294
|
}
|
|
385
295
|
return a;
|
|
386
296
|
}
|
|
387
|
-
function
|
|
297
|
+
function te(e, n) {
|
|
388
298
|
if (null == e) return {};
|
|
389
|
-
var
|
|
390
|
-
for (var
|
|
391
|
-
if ({}.hasOwnProperty.call(e,
|
|
392
|
-
if (
|
|
393
|
-
|
|
299
|
+
var r = {};
|
|
300
|
+
for (var t in e) {
|
|
301
|
+
if ({}.hasOwnProperty.call(e, t)) {
|
|
302
|
+
if (n.includes(t)) continue;
|
|
303
|
+
r[t] = e[t];
|
|
394
304
|
}
|
|
395
305
|
}
|
|
396
|
-
return
|
|
306
|
+
return r;
|
|
397
307
|
}
|
|
398
|
-
/** @public */ var
|
|
399
|
-
children:
|
|
400
|
-
defaultOpenPanelId:
|
|
401
|
-
elementRef:
|
|
402
|
-
inset:
|
|
403
|
-
onChange:
|
|
404
|
-
openPanelId:
|
|
308
|
+
/** @public */ var ae = {
|
|
309
|
+
children: l().node,
|
|
310
|
+
defaultOpenPanelId: l().any,
|
|
311
|
+
elementRef: l().oneOfType([ l().func, l().object ]),
|
|
312
|
+
inset: l().bool,
|
|
313
|
+
onChange: l().func,
|
|
314
|
+
openPanelId: l().any
|
|
405
315
|
};
|
|
406
|
-
function
|
|
316
|
+
function le(e) {
|
|
317
|
+
var n = e.children, a = e.defaultOpenPanelId, l = e.elementRef, o = e.inset, i = o === void 0 ? true : o, s = e.onChange, c = e.openPanelId, p = re(e, [ "children", "defaultOpenPanelId", "elementRef", "inset", "onChange", "openPanelId" ]);
|
|
407
318
|
// @docs-props-type SingleOpenPanelGroupPropsBase
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
var
|
|
418
|
-
|
|
419
|
-
var r =
|
|
420
|
-
var
|
|
421
|
-
|
|
422
|
-
|
|
319
|
+
var d = u()({
|
|
320
|
+
componentName: "SingleOpenPanelGroup",
|
|
321
|
+
/* eslint-disable-next-line prefer-rest-params */
|
|
322
|
+
componentProps: arguments[0],
|
|
323
|
+
// see SUI-7028
|
|
324
|
+
defaultValuePropName: "defaultOpenPanelId",
|
|
325
|
+
valuePropName: "openPanelId"
|
|
326
|
+
});
|
|
327
|
+
var f = !d ? a : undefined;
|
|
328
|
+
var v = (0, r.useState)(f), y = K(v, 2), m = y[0], g = y[1];
|
|
329
|
+
var h = (0, r.useCallback)((function(e, n) {
|
|
330
|
+
var r = n.panelId;
|
|
331
|
+
var t = d ? c : m;
|
|
332
|
+
var a = t === r ? null : r;
|
|
333
|
+
if (!d) {
|
|
334
|
+
g(a);
|
|
423
335
|
}
|
|
424
|
-
|
|
425
|
-
}), [
|
|
426
|
-
(
|
|
427
|
-
if (false) {}
|
|
428
|
-
// In this functional component, we want the dependencies to be [], but when we do that
|
|
429
|
-
// we get a linting error.
|
|
430
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
431
|
-
}), []);
|
|
432
|
-
(0, n.useEffect)((function() {
|
|
433
|
-
if (false) {}
|
|
434
|
-
}), [ b, f ]);
|
|
435
|
-
(0, n.useEffect)((function() {
|
|
436
|
-
if (false) {}
|
|
437
|
-
}), [ b, a ]);
|
|
438
|
-
var O = n.Children.toArray(t).filter(n.isValidElement);
|
|
336
|
+
s === null || s === void 0 ? void 0 : s(e, n);
|
|
337
|
+
}), [ d, c, m, s ]);
|
|
338
|
+
var S = r.Children.toArray(n).filter(r.isValidElement);
|
|
439
339
|
// remove false, null, 0, etc
|
|
440
|
-
var
|
|
340
|
+
var C = (0, r.useMemo)((function() {
|
|
441
341
|
return {
|
|
442
|
-
onChange:
|
|
443
|
-
openPanelId:
|
|
444
|
-
inset:
|
|
342
|
+
onChange: h,
|
|
343
|
+
openPanelId: d ? c : m,
|
|
344
|
+
inset: i
|
|
445
345
|
};
|
|
446
|
-
}), [
|
|
346
|
+
}), [ h, i, d, c, m ]);
|
|
447
347
|
|
|
448
|
-
return
|
|
348
|
+
return t().createElement(A, U({
|
|
449
349
|
"data-test": "single-open-panel-group",
|
|
450
|
-
"data-test-open-panel-id":
|
|
451
|
-
elementRef:
|
|
452
|
-
},
|
|
453
|
-
value:
|
|
454
|
-
},
|
|
350
|
+
"data-test-open-panel-id": c,
|
|
351
|
+
elementRef: l
|
|
352
|
+
}, b().apply(void 0, [ p ].concat(z(Object.keys(ae))))), t().createElement(G.Provider, {
|
|
353
|
+
value: C
|
|
354
|
+
}, S));
|
|
455
355
|
}
|
|
456
|
-
|
|
457
|
-
/* harmony default export */ const
|
|
356
|
+
le.propTypes = ae;
|
|
357
|
+
/* harmony default export */ const oe = le;
|
|
458
358
|
// CONCATENATED MODULE: ./src/CollapsiblePanel/CollapsiblePanel.tsx
|
|
459
|
-
function
|
|
359
|
+
function ie(e) {
|
|
460
360
|
"@babel/helpers - typeof";
|
|
461
|
-
return
|
|
361
|
+
return ie = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
|
|
462
362
|
return typeof e;
|
|
463
363
|
} : function(e) {
|
|
464
364
|
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
465
|
-
},
|
|
365
|
+
}, ie(e);
|
|
466
366
|
}
|
|
467
|
-
function
|
|
468
|
-
|
|
469
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
470
|
-
var n = arguments[t];
|
|
471
|
-
for (var r in n) {
|
|
472
|
-
({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
473
|
-
}
|
|
474
|
-
}
|
|
475
|
-
return e;
|
|
476
|
-
}, ue.apply(null, arguments);
|
|
477
|
-
}
|
|
478
|
-
function de(e, t) {
|
|
479
|
-
var n = Object.keys(e);
|
|
367
|
+
function se(e, n) {
|
|
368
|
+
var r = Object.keys(e);
|
|
480
369
|
if (Object.getOwnPropertySymbols) {
|
|
481
|
-
var
|
|
482
|
-
|
|
483
|
-
return Object.getOwnPropertyDescriptor(e,
|
|
484
|
-
}))),
|
|
370
|
+
var t = Object.getOwnPropertySymbols(e);
|
|
371
|
+
n && (t = t.filter((function(n) {
|
|
372
|
+
return Object.getOwnPropertyDescriptor(e, n).enumerable;
|
|
373
|
+
}))), r.push.apply(r, t);
|
|
485
374
|
}
|
|
486
|
-
return
|
|
375
|
+
return r;
|
|
487
376
|
}
|
|
488
|
-
function
|
|
489
|
-
for (var
|
|
490
|
-
var
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(
|
|
494
|
-
Object.defineProperty(e,
|
|
377
|
+
function ce(e) {
|
|
378
|
+
for (var n = 1; n < arguments.length; n++) {
|
|
379
|
+
var r = null != arguments[n] ? arguments[n] : {};
|
|
380
|
+
n % 2 ? se(Object(r), !0).forEach((function(n) {
|
|
381
|
+
ue(e, n, r[n]);
|
|
382
|
+
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : se(Object(r)).forEach((function(n) {
|
|
383
|
+
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(r, n));
|
|
495
384
|
}));
|
|
496
385
|
}
|
|
497
386
|
return e;
|
|
498
387
|
}
|
|
499
|
-
function
|
|
500
|
-
|
|
388
|
+
function ue(e, n, r) {
|
|
389
|
+
return (n = pe(n)) in e ? Object.defineProperty(e, n, {
|
|
390
|
+
value: r,
|
|
391
|
+
enumerable: !0,
|
|
392
|
+
configurable: !0,
|
|
393
|
+
writable: !0
|
|
394
|
+
}) : e[n] = r, e;
|
|
501
395
|
}
|
|
502
|
-
function
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
r.enumerable = r.enumerable || !1, r.configurable = !0, "value" in r && (r.writable = !0),
|
|
506
|
-
Object.defineProperty(e, we(r.key), r);
|
|
507
|
-
}
|
|
396
|
+
function pe(e) {
|
|
397
|
+
var n = de(e, "string");
|
|
398
|
+
return "symbol" == ie(n) ? n : n + "";
|
|
508
399
|
}
|
|
509
|
-
function
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
400
|
+
function de(e, n) {
|
|
401
|
+
if ("object" != ie(e) || !e) return e;
|
|
402
|
+
var r = e[Symbol.toPrimitive];
|
|
403
|
+
if (void 0 !== r) {
|
|
404
|
+
var t = r.call(e, n || "default");
|
|
405
|
+
if ("object" != ie(t)) return t;
|
|
406
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
407
|
+
}
|
|
408
|
+
return ("string" === n ? String : Number)(e);
|
|
513
409
|
}
|
|
514
|
-
function
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
410
|
+
function fe() {
|
|
411
|
+
return fe = Object.assign ? Object.assign.bind() : function(e) {
|
|
412
|
+
for (var n = 1; n < arguments.length; n++) {
|
|
413
|
+
var r = arguments[n];
|
|
414
|
+
for (var t in r) {
|
|
415
|
+
({}).hasOwnProperty.call(r, t) && (e[t] = r[t]);
|
|
416
|
+
}
|
|
521
417
|
}
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
}), t && ge(e, t);
|
|
525
|
-
}
|
|
526
|
-
function ge(e, t) {
|
|
527
|
-
return ge = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
|
|
528
|
-
return e.__proto__ = t, e;
|
|
529
|
-
}, ge(e, t);
|
|
418
|
+
return e;
|
|
419
|
+
}, fe.apply(null, arguments);
|
|
530
420
|
}
|
|
531
|
-
function
|
|
532
|
-
|
|
533
|
-
return function() {
|
|
534
|
-
var n, r = Oe(e);
|
|
535
|
-
if (t) {
|
|
536
|
-
var a = Oe(this).constructor;
|
|
537
|
-
n = Reflect.construct(r, arguments, a);
|
|
538
|
-
} else n = r.apply(this, arguments);
|
|
539
|
-
return ke(this, n);
|
|
540
|
-
};
|
|
421
|
+
function be(e, n) {
|
|
422
|
+
return he(e) || ge(e, n) || ye(e, n) || ve();
|
|
541
423
|
}
|
|
542
|
-
function
|
|
543
|
-
|
|
544
|
-
if (void 0 !== t) throw new TypeError("Derived constructors may only return object or undefined");
|
|
545
|
-
return Ce(e);
|
|
424
|
+
function ve() {
|
|
425
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
546
426
|
}
|
|
547
|
-
function
|
|
548
|
-
if (
|
|
549
|
-
|
|
427
|
+
function ye(e, n) {
|
|
428
|
+
if (e) {
|
|
429
|
+
if ("string" == typeof e) return me(e, n);
|
|
430
|
+
var r = {}.toString.call(e).slice(8, -1);
|
|
431
|
+
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) ? me(e, n) : void 0;
|
|
432
|
+
}
|
|
550
433
|
}
|
|
551
|
-
function
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
})();
|
|
434
|
+
function me(e, n) {
|
|
435
|
+
(null == n || n > e.length) && (n = e.length);
|
|
436
|
+
for (var r = 0, t = Array(n); r < n; r++) {
|
|
437
|
+
t[r] = e[r];
|
|
438
|
+
}
|
|
439
|
+
return t;
|
|
558
440
|
}
|
|
559
|
-
function
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
441
|
+
function ge(e, n) {
|
|
442
|
+
var r = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
|
|
443
|
+
if (null != r) {
|
|
444
|
+
var t, a, l, o, i = [], s = !0, c = !1;
|
|
445
|
+
try {
|
|
446
|
+
if (l = (r = r.call(e)).next, 0 === n) {
|
|
447
|
+
if (Object(r) !== r) return;
|
|
448
|
+
s = !1;
|
|
449
|
+
} else for (;!(s = (t = l.call(r)).done) && (i.push(t.value), i.length !== n); s = !0) {
|
|
450
|
+
}
|
|
451
|
+
} catch (e) {
|
|
452
|
+
c = !0, a = e;
|
|
453
|
+
} finally {
|
|
454
|
+
try {
|
|
455
|
+
if (!s && null != r["return"] && (o = r["return"](), Object(o) !== o)) return;
|
|
456
|
+
} finally {
|
|
457
|
+
if (c) throw a;
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
return i;
|
|
461
|
+
}
|
|
563
462
|
}
|
|
564
|
-
function
|
|
565
|
-
|
|
566
|
-
value: n,
|
|
567
|
-
enumerable: !0,
|
|
568
|
-
configurable: !0,
|
|
569
|
-
writable: !0
|
|
570
|
-
}) : e[t] = n, e;
|
|
463
|
+
function he(e) {
|
|
464
|
+
if (Array.isArray(e)) return e;
|
|
571
465
|
}
|
|
572
|
-
function
|
|
573
|
-
|
|
574
|
-
|
|
466
|
+
function Se(e, n) {
|
|
467
|
+
if (null == e) return {};
|
|
468
|
+
var r, t, a = Ce(e, n);
|
|
469
|
+
if (Object.getOwnPropertySymbols) {
|
|
470
|
+
var l = Object.getOwnPropertySymbols(e);
|
|
471
|
+
for (t = 0; t < l.length; t++) {
|
|
472
|
+
r = l[t], n.includes(r) || {}.propertyIsEnumerable.call(e, r) && (a[r] = e[r]);
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
return a;
|
|
575
476
|
}
|
|
576
|
-
function
|
|
577
|
-
if (
|
|
578
|
-
var
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
477
|
+
function Ce(e, n) {
|
|
478
|
+
if (null == e) return {};
|
|
479
|
+
var r = {};
|
|
480
|
+
for (var t in e) {
|
|
481
|
+
if ({}.hasOwnProperty.call(e, t)) {
|
|
482
|
+
if (n.includes(t)) continue;
|
|
483
|
+
r[t] = e[t];
|
|
484
|
+
}
|
|
583
485
|
}
|
|
584
|
-
return
|
|
486
|
+
return r;
|
|
585
487
|
}
|
|
586
|
-
/** @public
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
panelId: u().any,
|
|
604
|
-
renderChildrenWhenCollapsed: u().bool,
|
|
605
|
-
title: u().node.isRequired,
|
|
606
|
-
titleWithActions: u().bool
|
|
607
|
-
};
|
|
608
|
-
var je = {
|
|
609
|
-
disabled: false,
|
|
610
|
-
overflow: "auto",
|
|
611
|
-
renderChildrenWhenCollapsed: false,
|
|
612
|
-
titleWithActions: false,
|
|
613
|
-
inset: false
|
|
488
|
+
/** @public */ var Oe = {
|
|
489
|
+
innerBodyStyles: l().object,
|
|
490
|
+
actions: l().node,
|
|
491
|
+
appearance: l().oneOf([ "default", "subtle" ]),
|
|
492
|
+
children: l().node,
|
|
493
|
+
defaultOpen: l().bool,
|
|
494
|
+
description: l().string,
|
|
495
|
+
disabled: l().oneOfType([ l().bool, l().oneOf([ "dimmed", "disabled" ]) ]),
|
|
496
|
+
elementRef: l().oneOfType([ l().func, l().object ]),
|
|
497
|
+
headingLevel: l().number,
|
|
498
|
+
inset: l().bool,
|
|
499
|
+
onChange: l().func,
|
|
500
|
+
open: l().bool,
|
|
501
|
+
overflow: l().string,
|
|
502
|
+
panelId: l().any,
|
|
503
|
+
renderChildrenWhenCollapsed: l().bool,
|
|
504
|
+
title: l().node.isRequired
|
|
614
505
|
};
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
var t = he(n);
|
|
506
|
+
function Pe(e) {
|
|
507
|
+
var n = e.innerBodyStyles, a = e.actions, l = e.appearance, o = l === void 0 ? "default" : l, c = e.children, p = e.defaultOpen, f = p === void 0 ? undefined : p, b = e.description, v = e.disabled, y = e.elementRef, m = e.headingLevel, g = e.onChange, h = e.open, S = e.overflow, C = S === void 0 ? "auto" : S, O = e.panelId, P = e.renderChildrenWhenCollapsed, w = e.title, k = e.inset, I = k === void 0 ? true : k, j = Se(e, [ "innerBodyStyles", "actions", "appearance", "children", "defaultOpen", "description", "disabled", "elementRef", "headingLevel", "onChange", "open", "overflow", "panelId", "renderChildrenWhenCollapsed", "title", "inset" ]);
|
|
618
508
|
// @docs-props-type CollapsiblePanelPropsBase
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
});
|
|
641
|
-
}));
|
|
642
|
-
Se(Ce(r), "handleChange", (function(e) {
|
|
643
|
-
var t, n;
|
|
644
|
-
var a = r.props, o = a.panelId, i = a.onChange;
|
|
645
|
-
var l = r.isOpen();
|
|
646
|
-
if (!r.isControlled()) {
|
|
647
|
-
r.setState({
|
|
648
|
-
animating: true,
|
|
649
|
-
open: !l
|
|
650
|
-
});
|
|
651
|
-
}
|
|
652
|
-
var s = l ? "close" : "open";
|
|
653
|
-
i === null || i === void 0 ? void 0 : i(e, {
|
|
654
|
-
panelId: o,
|
|
655
|
-
reason: "toggleClick",
|
|
656
|
-
action: s
|
|
657
|
-
});
|
|
658
|
-
(t = (n = r.context).onChange) === null || t === void 0 ? void 0 : t.call(n, e, {
|
|
659
|
-
panelId: o,
|
|
660
|
-
reason: "toggleClick",
|
|
661
|
-
action: s
|
|
662
|
-
});
|
|
663
|
-
// Maintains backwards compatibility until the `handleRequestClose` and `handleRequestOpen` handlers are removed in SUI-5
|
|
664
|
-
if (l) {
|
|
665
|
-
r.handleRequestClose(e);
|
|
666
|
-
} else {
|
|
667
|
-
r.handleRequestOpen(e);
|
|
668
|
-
}
|
|
669
|
-
}));
|
|
670
|
-
Se(Ce(r), "handleAnimationEnd", (function() {
|
|
671
|
-
r.setState({
|
|
672
|
-
animating: false
|
|
673
|
-
});
|
|
674
|
-
}));
|
|
675
|
-
r.controlledExternally = o()(e, "open");
|
|
676
|
-
r.state = fe(fe({}, !r.isControlled() ? {
|
|
677
|
-
open: e.defaultOpen || false
|
|
678
|
-
} : undefined), {}, {
|
|
679
|
-
animating: false
|
|
680
|
-
});
|
|
681
|
-
if (false) {}
|
|
682
|
-
if (false) {}
|
|
683
|
-
if (false) {}
|
|
684
|
-
r.containerId = "container-".concat((0, b.createGUID)());
|
|
685
|
-
r.toggleId = "toggle-".concat((0, b.createGUID)());
|
|
686
|
-
return r;
|
|
687
|
-
}
|
|
688
|
-
// Only testing this in the scenario of a SingleOpenPanelGroup.
|
|
689
|
-
me(n, [ {
|
|
690
|
-
key: "componentDidMount",
|
|
691
|
-
value: function e() {
|
|
692
|
-
if (false) {}
|
|
693
|
-
}
|
|
694
|
-
}, {
|
|
695
|
-
key: "componentDidUpdate",
|
|
696
|
-
value: function e(t) {
|
|
697
|
-
if (this.props.open !== t.open) {
|
|
698
|
-
this.setState({
|
|
699
|
-
animating: true
|
|
700
|
-
});
|
|
701
|
-
// eslint-disable-line react/no-did-update-set-state
|
|
702
|
-
}
|
|
703
|
-
if (false) {}
|
|
704
|
-
if (false) {}
|
|
705
|
-
}
|
|
706
|
-
/**
|
|
707
|
-
* SingleOpenPanelGroup already takes into account if it is controlled or not in determining openPanelId
|
|
708
|
-
* so this.context.openPanelId is used for both the controlled and uncontrolled case.
|
|
709
|
-
*/ }, {
|
|
710
|
-
key: "isOpen",
|
|
711
|
-
value: function e() {
|
|
712
|
-
var e = this.isControlled() ? this.props.open : this.state.open;
|
|
713
|
-
var t = this.context.openPanelId !== undefined ? this.context.openPanelId === this.props.panelId : e;
|
|
714
|
-
return t;
|
|
509
|
+
var x = (0, r.useContext)(G);
|
|
510
|
+
var E = Object.keys(x).length !== 0;
|
|
511
|
+
var _ = u()({
|
|
512
|
+
componentName: "CollapsiblePanel",
|
|
513
|
+
/* eslint-disable-next-line prefer-rest-params */
|
|
514
|
+
componentProps: arguments[0],
|
|
515
|
+
// see SUI-7028
|
|
516
|
+
defaultValuePropName: "defaultOpen",
|
|
517
|
+
valuePropName: "open"
|
|
518
|
+
});
|
|
519
|
+
var A = (0, r.useState)("container-".concat((0, s.createGUID)())), T = be(A, 1), V = T[0];
|
|
520
|
+
var U = (0, r.useState)("toggle-".concat((0, s.createGUID)())), z = be(U, 1), X = z[0];
|
|
521
|
+
var F = !_ ? f || false : undefined;
|
|
522
|
+
var J = (0, r.useState)(F), K = be(J, 2), Q = K[0], Y = K[1];
|
|
523
|
+
var Z = (0, r.useState)(false), ee = be(Z, 2), ne = ee[0], re = ee[1];
|
|
524
|
+
/**
|
|
525
|
+
* SingleOpenPanelGroup already takes into account if it is controlled or not in determining openPanelId
|
|
526
|
+
* so context.openPanelId is used for both the controlled and uncontrolled case.
|
|
527
|
+
*/ var te = (0, r.useCallback)((function() {
|
|
528
|
+
if (E) {
|
|
529
|
+
return x.openPanelId === O;
|
|
715
530
|
}
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
531
|
+
return _ ? h : Q;
|
|
532
|
+
}), [ x.openPanelId, E, _, h, Q, O ]);
|
|
533
|
+
var ae = d()(h);
|
|
534
|
+
// Only testing this in the scenario of a SingleOpenPanelGroup.
|
|
535
|
+
(0, r.useEffect)((function() {
|
|
536
|
+
if (false) {}
|
|
537
|
+
}), [ f, E, h ]);
|
|
538
|
+
(0, r.useEffect)((function() {
|
|
539
|
+
if (ae != null && h !== ae) {
|
|
540
|
+
re(true);
|
|
721
541
|
}
|
|
722
|
-
},
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
var S = {
|
|
730
|
-
disabled: p,
|
|
731
|
-
onClick: this.handleChange,
|
|
732
|
-
id: this.toggleId,
|
|
733
|
-
"aria-controls": this.containerId,
|
|
734
|
-
"aria-expanded": O,
|
|
735
|
-
$open: !!O,
|
|
736
|
-
"data-test": "toggle"
|
|
737
|
-
};
|
|
738
|
-
|
|
739
|
-
return r().createElement(T, ue({
|
|
740
|
-
"data-test": "collapsible-panel",
|
|
741
|
-
elementRef: u
|
|
742
|
-
}, c()(this.props, l()(n.propTypes))), h || o != null ? r().createElement(B, {
|
|
743
|
-
$disabled: p
|
|
744
|
-
}, r().createElement(W, ue({
|
|
745
|
-
appearance: "subtle",
|
|
746
|
-
"aria-label": (0, v._)("Panel"),
|
|
747
|
-
"aria-labelledby": x
|
|
748
|
-
}, S), r().createElement(U, {
|
|
749
|
-
open: !!O
|
|
750
|
-
})), r().createElement($, {
|
|
751
|
-
$titleWithActions: h,
|
|
752
|
-
"data-test": "title",
|
|
753
|
-
id: o != null ? x : undefined
|
|
754
|
-
}, g), o != null && r().createElement(M, null, o)) :
|
|
755
|
-
|
|
756
|
-
/* Clickable component is not allowed to have role="heading" so it is wrapped with a span */
|
|
757
|
-
r().createElement("span", {
|
|
758
|
-
"data-test": "heading",
|
|
759
|
-
role: d ? "heading" : undefined,
|
|
760
|
-
"aria-level": d
|
|
761
|
-
}, r().createElement(L, S, r().createElement(X, null, r().createElement(U, {
|
|
762
|
-
open: !!O
|
|
763
|
-
})), r().createElement($, null, r().createElement("span", {
|
|
764
|
-
"data-test": "title"
|
|
765
|
-
}, g), s && r().createElement(G, {
|
|
766
|
-
"data-test": "description"
|
|
767
|
-
}, s)))), r().createElement(f(), {
|
|
768
|
-
outerId: this.containerId,
|
|
769
|
-
"aria-labelledby": this.toggleId,
|
|
770
|
-
"data-test": "body",
|
|
771
|
-
outerStyle: {
|
|
772
|
-
overflow: C ? "hidden" : m
|
|
773
|
-
},
|
|
774
|
-
innerStyle: fe({
|
|
775
|
-
tableLayout: "fixed"
|
|
776
|
-
}, a),
|
|
777
|
-
open: O,
|
|
778
|
-
onAnimationEnd: this.handleAnimationEnd,
|
|
779
|
-
role: o != null ? "region" : undefined,
|
|
780
|
-
renderChildrenWhenCollapsed: y
|
|
781
|
-
}, r().createElement(H, {
|
|
782
|
-
$inset: k
|
|
783
|
-
}, i)));
|
|
542
|
+
}), [ h, ae ]);
|
|
543
|
+
var le = (0, r.useCallback)((function(e) {
|
|
544
|
+
var n;
|
|
545
|
+
var r = te();
|
|
546
|
+
if (!_) {
|
|
547
|
+
re(true);
|
|
548
|
+
Y(!r);
|
|
784
549
|
}
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
550
|
+
var t = r ? "close" : "open";
|
|
551
|
+
g === null || g === void 0 ? void 0 : g(e, {
|
|
552
|
+
panelId: O,
|
|
553
|
+
reason: "toggleClick",
|
|
554
|
+
action: t
|
|
555
|
+
});
|
|
556
|
+
(n = x.onChange) === null || n === void 0 ? void 0 : n.call(x, e, {
|
|
557
|
+
panelId: O,
|
|
558
|
+
reason: "toggleClick",
|
|
559
|
+
action: t
|
|
560
|
+
});
|
|
561
|
+
}), [ x, _, te, g, O ]);
|
|
562
|
+
var oe = (0, r.useCallback)((function() {
|
|
563
|
+
re(false);
|
|
564
|
+
}), []);
|
|
565
|
+
var ie = (0, s.createDOMID)("panel-toggle");
|
|
566
|
+
var se = te();
|
|
567
|
+
var ue = {
|
|
568
|
+
disabled: v,
|
|
569
|
+
onClick: le,
|
|
570
|
+
id: X,
|
|
571
|
+
"aria-controls": V,
|
|
572
|
+
"aria-expanded": se,
|
|
573
|
+
"data-test": "toggle"
|
|
574
|
+
};
|
|
575
|
+
|
|
576
|
+
return t().createElement(N, fe({
|
|
577
|
+
"data-test": "collapsible-panel",
|
|
578
|
+
elementRef: y,
|
|
579
|
+
$appearance: o
|
|
580
|
+
}, j), a != null ? t().createElement(q, {
|
|
581
|
+
$appearance: o,
|
|
582
|
+
$disabled: !!v
|
|
583
|
+
}, t().createElement(D, fe({
|
|
584
|
+
appearance: "secondary",
|
|
585
|
+
"aria-labelledby": ie
|
|
586
|
+
}, ue), t().createElement(H, {
|
|
587
|
+
open: !!se
|
|
588
|
+
})), t().createElement(B, {
|
|
589
|
+
$disabled: !!v,
|
|
590
|
+
"data-test": "title",
|
|
591
|
+
id: ie
|
|
592
|
+
}, w), t().createElement(L, null, a)) :
|
|
593
|
+
|
|
594
|
+
/* Clickable component is not allowed to have role="heading" so it is wrapped with a span */
|
|
595
|
+
t().createElement("span", {
|
|
596
|
+
"data-test": "heading",
|
|
597
|
+
role: m ? "heading" : undefined,
|
|
598
|
+
"aria-level": m
|
|
599
|
+
}, t().createElement(R, fe({
|
|
600
|
+
$appearance: o
|
|
601
|
+
}, ue), t().createElement($, null, t().createElement(H, {
|
|
602
|
+
open: !!se
|
|
603
|
+
})), t().createElement(B, {
|
|
604
|
+
$disabled: !!v
|
|
605
|
+
}, t().createElement("span", {
|
|
606
|
+
"data-test": "title"
|
|
607
|
+
}, w), b && t().createElement(M, {
|
|
608
|
+
$disabled: !!v,
|
|
609
|
+
"data-test": "description"
|
|
610
|
+
}, b)))), t().createElement(i(), {
|
|
611
|
+
outerId: V,
|
|
612
|
+
"aria-labelledby": X,
|
|
613
|
+
"data-test": "body",
|
|
614
|
+
outerStyle: {
|
|
615
|
+
overflow: ne ? "hidden" : C
|
|
616
|
+
},
|
|
617
|
+
innerStyle: ce({
|
|
618
|
+
tableLayout: "fixed"
|
|
619
|
+
}, n),
|
|
620
|
+
open: se,
|
|
621
|
+
onAnimationEnd: oe,
|
|
622
|
+
role: a != null ? "region" : undefined,
|
|
623
|
+
renderChildrenWhenCollapsed: P
|
|
624
|
+
}, t().createElement(W, {
|
|
625
|
+
$inset: I
|
|
626
|
+
}, c)));
|
|
627
|
+
}
|
|
628
|
+
Pe.propTypes = Oe;
|
|
629
|
+
/* harmony default export */ const we = Pe;
|
|
792
630
|
// CONCATENATED MODULE: ./src/CollapsiblePanel/index.ts
|
|
793
|
-
module.exports =
|
|
631
|
+
module.exports = n;
|
|
794
632
|
/******/})();
|