@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
|
@@ -15,7 +15,7 @@ interface DateTablePropsBase {
|
|
|
15
15
|
todayValue?: string;
|
|
16
16
|
}
|
|
17
17
|
type DateTableProps = ComponentProps<DateTablePropsBase, 'table'>;
|
|
18
|
-
declare function DateTable({ displayValue, highlightToday, labelledBy, locale, onChange, onInternalChange, selectedValue, todayValue, ...otherProps }: DateTableProps): JSX.Element;
|
|
18
|
+
declare function DateTable({ displayValue, highlightToday, labelledBy, locale, onChange, onInternalChange, selectedValue, todayValue, ...otherProps }: DateTableProps): React.JSX.Element;
|
|
19
19
|
declare namespace DateTable {
|
|
20
20
|
var propTypes: {
|
|
21
21
|
displayValue: PropTypes.Validator<string>;
|
|
@@ -24,7 +24,7 @@ interface DayPropsBase {
|
|
|
24
24
|
value: string;
|
|
25
25
|
}
|
|
26
26
|
type DayProps = ComponentProps<DayPropsBase, 'td'>;
|
|
27
|
-
declare function Day({ active, locale, onClick, onKeyDown, selected, today, value, ...otherProps }: DayProps): JSX.Element;
|
|
27
|
+
declare function Day({ active, locale, onClick, onKeyDown, selected, today, value, ...otherProps }: DayProps): React.JSX.Element;
|
|
28
28
|
declare namespace Day {
|
|
29
29
|
var propTypes: {
|
|
30
30
|
active: PropTypes.Requireable<boolean>;
|
|
@@ -11,7 +11,7 @@ interface MonthHeaderPropsBase {
|
|
|
11
11
|
value: string;
|
|
12
12
|
}
|
|
13
13
|
type MonthHeaderProps = ComponentProps<MonthHeaderPropsBase, 'div'>;
|
|
14
|
-
declare function MonthHeader({ headingId, locale, onChange, value, ...otherProps }: MonthHeaderProps): JSX.Element;
|
|
14
|
+
declare function MonthHeader({ headingId, locale, onChange, value, ...otherProps }: MonthHeaderProps): React.JSX.Element;
|
|
15
15
|
declare namespace MonthHeader {
|
|
16
16
|
var propTypes: {
|
|
17
17
|
headingId: PropTypes.Requireable<string>;
|
package/types/src/Card/Body.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ type BodyProps = ComponentProps<BodyPropsBase, 'div'>;
|
|
|
16
16
|
/**
|
|
17
17
|
* A styled container for `Card` body content.
|
|
18
18
|
*/
|
|
19
|
-
declare function Body({ children, inset, ...otherProps }: BodyProps): JSX.Element;
|
|
19
|
+
declare function Body({ children, inset, ...otherProps }: BodyProps): React.JSX.Element;
|
|
20
20
|
declare namespace Body {
|
|
21
21
|
var propTypes: {
|
|
22
22
|
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
package/types/src/Card/Card.d.ts
CHANGED
|
@@ -36,14 +36,9 @@ interface CardPropsBase {
|
|
|
36
36
|
openInNewContext?: boolean;
|
|
37
37
|
/**
|
|
38
38
|
* Renders `Card` as selected if set to `true`. Use only when `onClick` is also provided.
|
|
39
|
+
* @deprecated This prop is deprecated and will be removed in the next major version.
|
|
39
40
|
*/
|
|
40
41
|
selected?: boolean;
|
|
41
|
-
/**
|
|
42
|
-
* Includes a border on the `Card` if set to `true`.
|
|
43
|
-
* @excludeTheme prisma
|
|
44
|
-
* @deprecated
|
|
45
|
-
* */
|
|
46
|
-
showBorder?: boolean;
|
|
47
42
|
/**
|
|
48
43
|
* Takes a URL to go to when the `Card` is clicked.
|
|
49
44
|
*/
|
|
@@ -53,7 +48,7 @@ interface CardPropsBase {
|
|
|
53
48
|
/** Overrides the HTML tag for the Card component. Defaults to `article`. */
|
|
54
49
|
tag?: 'article' | 'div' | 'aside' | 'section';
|
|
55
50
|
}
|
|
56
|
-
declare const defaultProps: Required<Pick<CardPropsBase, 'openInNewContext'
|
|
51
|
+
declare const defaultProps: Required<Pick<CardPropsBase, 'openInNewContext'>>;
|
|
57
52
|
interface CardPropsBaseNonClickable extends CardPropsBase {
|
|
58
53
|
elementRef?: React.Ref<HTMLDivElement>;
|
|
59
54
|
onClick?: never;
|
|
@@ -78,12 +73,12 @@ type CardClickableLinkProps = ClassComponentProps<CardPropsBaseOnClickClickable
|
|
|
78
73
|
type CardProps = CardNonClickableProps | CardClickableButtonProps | CardClickableLinkProps;
|
|
79
74
|
declare class Card extends Component<CardProps, {}> {
|
|
80
75
|
static propTypes: React.WeakValidationMap<CardProps>;
|
|
81
|
-
static defaultProps: Required<Pick<CardPropsBase, "openInNewContext"
|
|
76
|
+
static defaultProps: Required<Pick<CardPropsBase, "openInNewContext">>;
|
|
82
77
|
static Header: typeof Header;
|
|
83
78
|
static Body: typeof Body;
|
|
84
79
|
static Footer: typeof Footer;
|
|
85
80
|
private handleCardClick;
|
|
86
|
-
render(): JSX.Element;
|
|
81
|
+
render(): React.JSX.Element;
|
|
87
82
|
}
|
|
88
83
|
export default Card;
|
|
89
84
|
export { CardClickHandler, Header, Body, Footer };
|
|
@@ -7,23 +7,16 @@ interface FooterPropsBase {
|
|
|
7
7
|
* A React ref which is set to the DOM element when the component mounts and null when it unmounts.
|
|
8
8
|
*/
|
|
9
9
|
elementRef?: React.Ref<HTMLDivElement>;
|
|
10
|
-
/**
|
|
11
|
-
* Shows top border of footer.
|
|
12
|
-
* @excludeTheme prisma
|
|
13
|
-
* @deprecated
|
|
14
|
-
* */
|
|
15
|
-
showBorder?: boolean;
|
|
16
10
|
}
|
|
17
11
|
type FooterProps = ComponentProps<FooterPropsBase, 'div'>;
|
|
18
12
|
/**
|
|
19
13
|
* A styled container for `Card` footer content.
|
|
20
14
|
*/
|
|
21
|
-
declare function Footer({ children,
|
|
15
|
+
declare function Footer({ children, ...otherProps }: FooterProps): React.JSX.Element;
|
|
22
16
|
declare namespace Footer {
|
|
23
17
|
var propTypes: {
|
|
24
18
|
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
25
19
|
elementRef: PropTypes.Requireable<object>;
|
|
26
|
-
showBorder: PropTypes.Requireable<boolean>;
|
|
27
20
|
};
|
|
28
21
|
}
|
|
29
22
|
export default Footer;
|
|
@@ -16,7 +16,7 @@ interface HeaderPropsBase {
|
|
|
16
16
|
/**
|
|
17
17
|
* Adds a secondary actions dropdown menu to the header with an "Actions" label. Make this prop a `Menu`.
|
|
18
18
|
*
|
|
19
|
-
* The `actions` prop is preferred so that a
|
|
19
|
+
* The `actions` prop is preferred so that a custom and unambiguous label can be added.
|
|
20
20
|
*/
|
|
21
21
|
actionsSecondary?: React.ReactNode;
|
|
22
22
|
/**
|
|
@@ -55,7 +55,7 @@ type HeaderProps = ComponentProps<HeaderWithActions | HeaderWithActionsRenderPro
|
|
|
55
55
|
/**
|
|
56
56
|
* A styled container for `Card` header content.
|
|
57
57
|
*/
|
|
58
|
-
declare function Header({ actions, actionPrimary, actionsSecondary, anchor, children, subtitle, title, truncateTitle, ...otherProps }: HeaderProps): JSX.Element;
|
|
58
|
+
declare function Header({ actions, actionPrimary, actionsSecondary, anchor, children, subtitle, title, truncateTitle, ...otherProps }: HeaderProps): React.JSX.Element;
|
|
59
59
|
declare namespace Header {
|
|
60
60
|
var propTypes: {
|
|
61
61
|
actionPrimary: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
@@ -24,7 +24,7 @@ interface CardLayoutPropsBase {
|
|
|
24
24
|
wrapCards?: boolean;
|
|
25
25
|
}
|
|
26
26
|
type CardLayoutProps = ComponentProps<CardLayoutPropsBase, 'div'>;
|
|
27
|
-
declare function CardLayout({ alignCards, cardMaxWidth, cardMinWidth, cardWidth, children, elementRef, gutterSize, style, wrapCards, ...otherProps }: CardLayoutProps): JSX.Element;
|
|
27
|
+
declare function CardLayout({ alignCards, cardMaxWidth, cardMinWidth, cardWidth, children, elementRef, gutterSize, style, wrapCards, ...otherProps }: CardLayoutProps): React.JSX.Element;
|
|
28
28
|
declare namespace CardLayout {
|
|
29
29
|
var propTypes: {
|
|
30
30
|
alignCards: PropTypes.Requireable<string>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Component } from 'react';
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
2
|
import { NumberChangeHandler } from '@splunk/react-ui/Number';
|
|
3
3
|
import { SwitchClickHandler } from '@splunk/react-ui/Switch';
|
|
4
4
|
interface InteractiveState {
|
|
@@ -23,6 +23,6 @@ declare class Interactive extends Component<{}, InteractiveState> {
|
|
|
23
23
|
}) => void;
|
|
24
24
|
handleSetAsWidth: SwitchClickHandler;
|
|
25
25
|
handleHasMaxWidth: SwitchClickHandler;
|
|
26
|
-
render(): JSX.Element;
|
|
26
|
+
render(): React.JSX.Element;
|
|
27
27
|
}
|
|
28
28
|
export default Interactive;
|
package/types/src/Chip/Chip.d.ts
CHANGED
|
@@ -43,7 +43,7 @@ type ChipNonInteractiveProps = ComponentProps<ChipPropsBase, 'div'> & {
|
|
|
43
43
|
onRequestRemove?: never;
|
|
44
44
|
};
|
|
45
45
|
type ChipProps = ChipInteractiveProps | ChipNonInteractiveProps;
|
|
46
|
-
declare function Chip(props: ChipProps): JSX.Element;
|
|
46
|
+
declare function Chip(props: ChipProps): React.JSX.Element;
|
|
47
47
|
declare namespace Chip {
|
|
48
48
|
var propTypes: {
|
|
49
49
|
appearance: PropTypes.Requireable<string>;
|
|
@@ -1,21 +1,18 @@
|
|
|
1
|
-
import React
|
|
2
|
-
import {
|
|
3
|
-
import { NavigationContext } from './NavigationProvider';
|
|
4
|
-
import { ClassComponentProps } from '../utils/types';
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ComponentProps } from '../utils/types';
|
|
5
3
|
export declare const isRootRelativeLink: (to: string | undefined) => boolean;
|
|
6
4
|
export declare const isInternalLink: (to: string | undefined) => boolean;
|
|
7
5
|
interface ClickablePropsBase {
|
|
8
|
-
/**
|
|
9
|
-
* Links may need to be rendered as "disabled": e.g. last link in a breadcrumb. Disabled links, must have the `to` (ideally to '') and `disabled` props set.
|
|
10
|
-
* @private
|
|
11
|
-
*/
|
|
12
|
-
allowDisabledLink?: boolean;
|
|
13
6
|
children?: React.ReactNode;
|
|
14
7
|
/**
|
|
15
|
-
*
|
|
16
|
-
*
|
|
8
|
+
* Prevents user from activating the component and adds disabled styling.
|
|
9
|
+
*
|
|
10
|
+
* If set to `dimmed`, the component is able to receive focus.
|
|
11
|
+
* If set to `disabled`, the component is unable to receive focus (as a result of setting the html `disabled` attribute).
|
|
12
|
+
*
|
|
13
|
+
* The default behavior when `disabled={true}` is `dimmed`.
|
|
17
14
|
*/
|
|
18
|
-
disabled?: boolean | 'dimmed';
|
|
15
|
+
disabled?: boolean | 'dimmed' | 'disabled';
|
|
19
16
|
/**
|
|
20
17
|
* A React ref which is set to the DOM element when the component mounts and null when it unmounts.
|
|
21
18
|
*
|
|
@@ -45,34 +42,13 @@ interface ClickablePropsBase {
|
|
|
45
42
|
*/
|
|
46
43
|
to?: string;
|
|
47
44
|
}
|
|
48
|
-
|
|
49
|
-
type
|
|
50
|
-
type ClickableLinkProps = ClassComponentProps<ClickablePropsBase, typeof defaultProps, 'a', 'href'>;
|
|
45
|
+
type ClickableButtonProps = ComponentProps<ClickablePropsBase, 'button'>;
|
|
46
|
+
type ClickableLinkProps = ComponentProps<ClickablePropsBase, 'a', 'href'>;
|
|
51
47
|
type ClickableProps = ClickableButtonProps | ClickableLinkProps;
|
|
52
48
|
/**
|
|
53
49
|
* `Clickable` renders as a `button` element, or as an `a` element if the `to` prop is set
|
|
54
50
|
* and the `disabled` prop is `false`. This is called link mode.
|
|
55
51
|
*/
|
|
56
|
-
declare
|
|
57
|
-
private el;
|
|
58
|
-
context: React.ContextType<typeof NavigationContext>;
|
|
59
|
-
static contextType: React.Context<{
|
|
60
|
-
onClick?: import("./NavigationProvider").NavigationProviderClickHandler | undefined;
|
|
61
|
-
onLinkClick?: import("./NavigationProvider").NavigationProviderClickHandler | undefined;
|
|
62
|
-
prefix?: string | undefined;
|
|
63
|
-
transformUrl?: import("./NavigationProvider").NavigationProviderTransformUrl | undefined;
|
|
64
|
-
}>;
|
|
65
|
-
static propTypes: React.WeakValidationMap<ClickableProps>;
|
|
66
|
-
static defaultProps: Required<Pick<ClickablePropsBase, "disabled" | "openInNewContext">>;
|
|
67
|
-
static [legacyRefMode]: boolean;
|
|
68
|
-
constructor(props: Readonly<ClickableProps>);
|
|
69
|
-
private handleMount;
|
|
70
|
-
private createHandleOnClick;
|
|
71
|
-
private getTransformedUrl;
|
|
72
|
-
/**
|
|
73
|
-
* Place focus on the element.
|
|
74
|
-
*/
|
|
75
|
-
focus(): void;
|
|
76
|
-
render(): JSX.Element;
|
|
77
|
-
}
|
|
52
|
+
declare const Clickable: React.ForwardRefExoticComponent<ClickableProps & React.RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
78
53
|
export default Clickable;
|
|
54
|
+
export { ClickableProps };
|
|
@@ -11,7 +11,7 @@ type NavigationProviderTransformUrl = (url: string, data: {
|
|
|
11
11
|
isInternal?: boolean;
|
|
12
12
|
isRootRelative?: boolean;
|
|
13
13
|
}) => string;
|
|
14
|
-
interface
|
|
14
|
+
interface NavigationProviderProps {
|
|
15
15
|
children?: React.ReactNode;
|
|
16
16
|
/**
|
|
17
17
|
* An `onClick` handler to use when a link is clicked if no other `onClick` handler is supplied.
|
|
@@ -23,44 +23,27 @@ interface NavigationProviderPropsBase {
|
|
|
23
23
|
* The function takes the event and an options argument with `to` and `openInNewContext`
|
|
24
24
|
*/
|
|
25
25
|
onLinkClick?: NavigationProviderClickHandler;
|
|
26
|
-
/**
|
|
27
|
-
* @deprecated Use the `transformUrl` prop instead.
|
|
28
|
-
* If set, all links that use the NavigationProvider's context will have this prepended to them.
|
|
29
|
-
* This is ignored if `transformUrl` is set.
|
|
30
|
-
*/
|
|
31
|
-
prefix?: string;
|
|
32
26
|
/**
|
|
33
27
|
* If set, all links that use the NavigationProvider's context will be transformed using this function.
|
|
34
28
|
*/
|
|
35
29
|
transformUrl?: NavigationProviderTransformUrl;
|
|
36
30
|
}
|
|
37
|
-
interface NavigationProviderPropsWithPrefix extends NavigationProviderPropsBase {
|
|
38
|
-
prefix?: never;
|
|
39
|
-
transformUrl?: NavigationProviderTransformUrl;
|
|
40
|
-
}
|
|
41
|
-
interface NavigationProviderPropsWithoutPrefix extends NavigationProviderPropsBase {
|
|
42
|
-
prefix?: string;
|
|
43
|
-
transformUrl?: never;
|
|
44
|
-
}
|
|
45
31
|
type NavigationContextValue = {
|
|
46
32
|
onClick?: NavigationProviderClickHandler;
|
|
47
33
|
onLinkClick?: NavigationProviderClickHandler;
|
|
48
|
-
prefix?: string;
|
|
49
34
|
transformUrl?: NavigationProviderTransformUrl;
|
|
50
35
|
};
|
|
51
36
|
declare const NavigationContext: React.Context<NavigationContextValue>;
|
|
52
|
-
type NavigationProviderProps = NavigationProviderPropsWithPrefix | NavigationProviderPropsWithoutPrefix;
|
|
53
37
|
/**
|
|
54
38
|
* Used to provide an override for the `onClick` for links for single page applications so that
|
|
55
39
|
* internal links can navigate without a page reload.
|
|
56
40
|
*/
|
|
57
|
-
declare function NavigationProvider({ children, onClick, onLinkClick,
|
|
41
|
+
declare function NavigationProvider({ children, onClick, onLinkClick, transformUrl, }: NavigationProviderProps): React.JSX.Element;
|
|
58
42
|
declare namespace NavigationProvider {
|
|
59
43
|
var propTypes: {
|
|
60
44
|
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
61
45
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
62
46
|
onLinkClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
63
|
-
prefix: PropTypes.Requireable<string>;
|
|
64
47
|
transformUrl: PropTypes.Requireable<(...args: any[]) => any>;
|
|
65
48
|
};
|
|
66
49
|
}
|
package/types/src/Code/Code.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ interface CodePropsBase {
|
|
|
8
8
|
*/
|
|
9
9
|
elementRef?: React.Ref<HTMLPreElement>;
|
|
10
10
|
/**
|
|
11
|
-
* Sets the length of the left-indent. Use only when the value of
|
|
11
|
+
* @private. Sets the length of the left-indent. Use only when the value of
|
|
12
12
|
`showIndentGuide` is `true`.
|
|
13
13
|
*/
|
|
14
14
|
indentChars?: number;
|
|
@@ -30,7 +30,7 @@ interface CodePropsBase {
|
|
|
30
30
|
value?: string;
|
|
31
31
|
}
|
|
32
32
|
type CodeProps = ComponentProps<CodePropsBase, 'pre'>;
|
|
33
|
-
declare function Code({ elementRef, indentChars, language, languageFallback, showIndentGuide, value, ...otherProps }: CodeProps): JSX.Element;
|
|
33
|
+
declare function Code({ elementRef, indentChars, language, languageFallback, showIndentGuide, value, ...otherProps }: CodeProps): React.JSX.Element;
|
|
34
34
|
declare namespace Code {
|
|
35
35
|
var propTypes: {
|
|
36
36
|
elementRef: PropTypes.Requireable<object>;
|
|
@@ -1,19 +1,7 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
2
3
|
import SingleOpenPanelGroup, { SingleOpenPanelGroupChangeHandler } from './SingleOpenPanelGroup';
|
|
3
|
-
import
|
|
4
|
-
import { ClassComponentProps } from '../utils/types';
|
|
5
|
-
/** @public @deprecated Use `CollapsiblePanelChangeHandler` */
|
|
6
|
-
type CollapsiblePanelRequestCloseHandler = (data: {
|
|
7
|
-
event: React.MouseEvent<HTMLButtonElement>;
|
|
8
|
-
panelId?: string | number;
|
|
9
|
-
reason: 'toggleClick';
|
|
10
|
-
}) => void;
|
|
11
|
-
/** @public @deprecated Use `CollapsiblePanelChangeHandler` */
|
|
12
|
-
type CollapsiblePanelRequestOpenHandler = (data: {
|
|
13
|
-
event: React.MouseEvent<HTMLButtonElement>;
|
|
14
|
-
panelId?: string | number;
|
|
15
|
-
reason: 'toggleClick';
|
|
16
|
-
}) => void;
|
|
4
|
+
import { ComponentProps } from '../utils/types';
|
|
17
5
|
/** @public */
|
|
18
6
|
type CollapsiblePanelChangeHandler = (event: React.MouseEvent<HTMLButtonElement>, data: {
|
|
19
7
|
action: 'open' | 'close';
|
|
@@ -29,6 +17,10 @@ interface CollapsiblePanelPropsBase {
|
|
|
29
17
|
* Renders the toggle button and interactive elements separate from `title`, reserving the `title` prop for text only.
|
|
30
18
|
*/
|
|
31
19
|
actions?: React.ReactNode;
|
|
20
|
+
/**
|
|
21
|
+
* Changes the style of the panel.
|
|
22
|
+
*/
|
|
23
|
+
appearance?: 'default' | 'subtle';
|
|
32
24
|
children?: React.ReactNode;
|
|
33
25
|
/**
|
|
34
26
|
* Sets the initial state of a panel to expanded. Incompatible with
|
|
@@ -41,7 +33,7 @@ interface CollapsiblePanelPropsBase {
|
|
|
41
33
|
/**
|
|
42
34
|
* Prevents the panel from expanding or collapsing.
|
|
43
35
|
*/
|
|
44
|
-
disabled?: boolean;
|
|
36
|
+
disabled?: boolean | 'dimmed' | 'disabled';
|
|
45
37
|
/**
|
|
46
38
|
* A React ref which is set to the DOM element when the component mounts and null when it unmounts.
|
|
47
39
|
*/
|
|
@@ -52,7 +44,7 @@ interface CollapsiblePanelPropsBase {
|
|
|
52
44
|
*/
|
|
53
45
|
headingLevel?: number;
|
|
54
46
|
/**
|
|
55
|
-
*
|
|
47
|
+
* By default, adds padding to panel content. If set to false, renders panel content without padding.
|
|
56
48
|
*/
|
|
57
49
|
inset?: boolean;
|
|
58
50
|
/**
|
|
@@ -60,16 +52,6 @@ interface CollapsiblePanelPropsBase {
|
|
|
60
52
|
and managing expanded and collapsed states.
|
|
61
53
|
*/
|
|
62
54
|
panelId?: string | number;
|
|
63
|
-
/**
|
|
64
|
-
* @deprecated `onRequestClose` option has been marked for deprecation and will be removed in the next major version.
|
|
65
|
-
* Use the `onChange` prop instead.
|
|
66
|
-
*/
|
|
67
|
-
onRequestClose?: CollapsiblePanelRequestCloseHandler;
|
|
68
|
-
/**
|
|
69
|
-
* @deprecated `onRequestOpen` option has been marked for deprecation and will be removed in the next major version.
|
|
70
|
-
* Use the `onChange` prop instead.
|
|
71
|
-
*/
|
|
72
|
-
onRequestOpen?: CollapsiblePanelRequestOpenHandler;
|
|
73
55
|
/**
|
|
74
56
|
* Invoked on a change of the open panel.
|
|
75
57
|
* Callback is passed the `panelId` of the `CollapsiblePanel` that originated the expand request and the `action` ("open" or "close")
|
|
@@ -97,23 +79,9 @@ interface CollapsiblePanelPropsBase {
|
|
|
97
79
|
* Displays the name of the panel in its title bar.
|
|
98
80
|
*/
|
|
99
81
|
title: React.ReactNode;
|
|
100
|
-
/**
|
|
101
|
-
* Renders toggle button separate from `title`, allowing `title` to contain interactive elements.
|
|
102
|
-
* @deprecated This prop is deprecated and will be removed in the next major version. Use the `actions` prop instead.
|
|
103
|
-
*/
|
|
104
|
-
titleWithActions?: boolean;
|
|
105
|
-
}
|
|
106
|
-
interface CollapsiblePanelDeprecatedControlledProps extends CollapsiblePanelPropsBase {
|
|
107
|
-
defaultOpen?: never;
|
|
108
|
-
onRequestOpen?: CollapsiblePanelRequestOpenHandler;
|
|
109
|
-
onRequestClose?: CollapsiblePanelRequestCloseHandler;
|
|
110
|
-
onChange?: never;
|
|
111
|
-
open?: boolean;
|
|
112
82
|
}
|
|
113
83
|
interface CollapsiblePanelControlledProps extends CollapsiblePanelPropsBase {
|
|
114
84
|
defaultOpen?: never;
|
|
115
|
-
onRequestOpen?: never;
|
|
116
|
-
onRequestClose?: never;
|
|
117
85
|
onChange: CollapsiblePanelChangeHandler;
|
|
118
86
|
open?: boolean;
|
|
119
87
|
}
|
|
@@ -121,35 +89,28 @@ interface CollapsiblePanelUncontrolledProps extends CollapsiblePanelPropsBase {
|
|
|
121
89
|
defaultOpen?: boolean;
|
|
122
90
|
open?: never;
|
|
123
91
|
}
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
private isOpen;
|
|
146
|
-
private handleRequestClose;
|
|
147
|
-
private handleRequestOpen;
|
|
148
|
-
private handleChange;
|
|
149
|
-
private handleAnimationEnd;
|
|
150
|
-
private isControlled;
|
|
151
|
-
render(): JSX.Element;
|
|
92
|
+
type CollapsiblePanelProps = ComponentProps<CollapsiblePanelUncontrolledProps | CollapsiblePanelControlledProps, 'div'>;
|
|
93
|
+
declare function CollapsiblePanel({ innerBodyStyles, actions, appearance, children, defaultOpen, description, disabled, elementRef, headingLevel, onChange, open, overflow, panelId, renderChildrenWhenCollapsed, title, inset, ...otherProps }: CollapsiblePanelProps): React.JSX.Element;
|
|
94
|
+
declare namespace CollapsiblePanel {
|
|
95
|
+
var propTypes: {
|
|
96
|
+
innerBodyStyles: PropTypes.Requireable<object>;
|
|
97
|
+
actions: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
98
|
+
appearance: PropTypes.Requireable<string>;
|
|
99
|
+
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
100
|
+
defaultOpen: PropTypes.Requireable<boolean>;
|
|
101
|
+
description: PropTypes.Requireable<string>;
|
|
102
|
+
disabled: PropTypes.Requireable<NonNullable<string | boolean | null | undefined>>;
|
|
103
|
+
elementRef: PropTypes.Requireable<object>;
|
|
104
|
+
headingLevel: PropTypes.Requireable<number>;
|
|
105
|
+
inset: PropTypes.Requireable<boolean>;
|
|
106
|
+
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
107
|
+
open: PropTypes.Requireable<boolean>;
|
|
108
|
+
overflow: PropTypes.Requireable<string>;
|
|
109
|
+
panelId: PropTypes.Requireable<any>;
|
|
110
|
+
renderChildrenWhenCollapsed: PropTypes.Requireable<boolean>;
|
|
111
|
+
title: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
112
|
+
};
|
|
152
113
|
}
|
|
153
114
|
export default CollapsiblePanel;
|
|
154
115
|
export { SingleOpenPanelGroup };
|
|
155
|
-
export type {
|
|
116
|
+
export type { CollapsiblePanelChangeHandler, SingleOpenPanelGroupChangeHandler };
|
|
@@ -23,7 +23,7 @@ interface SingleOpenPanelGroupPropsBase {
|
|
|
23
23
|
*/
|
|
24
24
|
elementRef?: React.Ref<HTMLDivElement>;
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* By default, adds padding to panel content. If set to false, renders panel content without padding.
|
|
27
27
|
*/
|
|
28
28
|
inset?: boolean;
|
|
29
29
|
/**
|
|
@@ -47,7 +47,7 @@ interface SingleOpenPanelGroupUncontrolledProps extends SingleOpenPanelGroupProp
|
|
|
47
47
|
openPanelId?: never;
|
|
48
48
|
}
|
|
49
49
|
type SingleOpenPanelGroupProps = ComponentProps<SingleOpenPanelGroupControlledProps | SingleOpenPanelGroupUncontrolledProps, 'div'>;
|
|
50
|
-
declare function SingleOpenPanelGroup(
|
|
50
|
+
declare function SingleOpenPanelGroup({ children, defaultOpenPanelId, elementRef, inset, onChange, openPanelId, ...otherProps }: SingleOpenPanelGroupProps): React.JSX.Element;
|
|
51
51
|
declare namespace SingleOpenPanelGroup {
|
|
52
52
|
var propTypes: {
|
|
53
53
|
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|