@splunk/react-ui 4.43.0 → 5.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Accordion.js +87 -109
- package/Animation.js +48 -31
- package/Avatar.d.ts +2 -0
- package/Avatar.js +478 -0
- package/Box.js +8 -8
- package/Breadcrumbs.js +45 -49
- package/Button.js +144 -399
- package/ButtonGroup.js +22 -26
- package/ButtonSimple.js +239 -605
- package/CHANGELOG.md +4 -0
- package/CHANGELOG.v5.mdx +195 -0
- package/Calendar.js +55 -68
- package/Card.js +162 -200
- package/Chip.js +108 -96
- package/Clickable.js +174 -310
- package/Code.js +393 -422
- package/CollapsiblePanel.js +439 -601
- package/Color.js +727 -967
- package/ColumnLayout.js +190 -234
- package/ComboBox.js +147 -135
- package/ControlGroup.js +502 -531
- package/Date.js +315 -416
- package/DefinitionList.js +128 -140
- package/Dropdown.js +201 -358
- package/DualListbox.js +26 -26
- package/File.js +479 -558
- package/FormRows.js +339 -569
- package/Heading.js +53 -99
- package/Image.js +254 -305
- package/JSONTree.js +105 -107
- package/Layer.js +187 -269
- package/{CloseButton.js → Layout.js} +39 -61
- package/Link.js +91 -244
- package/List.js +68 -74
- package/MIGRATION.v5.mdx +428 -0
- package/Markdown.js +439 -385
- package/Menu.js +383 -741
- package/Message.js +150 -322
- package/MessageBar.js +15 -15
- package/Modal.js +444 -587
- package/Monogram.js +1 -1
- package/Multiselect.js +1207 -1256
- package/NonInteractiveCheckbox.js +189 -0
- package/Number.js +495 -604
- package/Paginator.js +294 -406
- package/Paragraph.js +12 -15
- package/Popover.js +582 -744
- package/Progress.js +141 -244
- package/Prose.d.ts +2 -0
- package/Prose.js +213 -0
- package/RadioBar.js +328 -450
- package/RadioList.js +132 -216
- package/Resize.js +351 -402
- package/ResultsMenu.js +255 -358
- package/Scroll.js +159 -238
- package/Search.js +358 -437
- package/Select.js +1097 -1380
- package/SidePanel.js +179 -223
- package/Slider.js +440 -542
- package/SlidingPanels.js +377 -504
- package/SplitButton.js +114 -102
- package/StaticContent.js +58 -74
- package/StepBar.js +193 -258
- package/Switch.js +246 -552
- package/TabBar.js +438 -622
- package/TabLayout.js +197 -251
- package/Table.js +2355 -3673
- package/Text.js +422 -909
- package/TextArea.js +537 -959
- package/Tooltip.js +35 -41
- package/TransitionOpen.js +296 -336
- package/Typography.js +35 -50
- package/WaitSpinner.js +93 -124
- package/package.json +14 -15
- package/stubs-dependencies.d.ts +0 -7
- package/stubs-splunkui.d.ts +6 -1
- package/types/src/Accordion/Accordion.d.ts +5 -1
- package/types/src/Accordion/Panel.d.ts +1 -2
- package/types/src/Accordion/docs/examples/Controlled.d.ts +2 -1
- package/types/src/Accordion/docs/examples/Inset.d.ts +2 -1
- package/types/src/Accordion/docs/examples/Uncontrolled.d.ts +2 -1
- package/types/src/Anchor/Anchor.d.ts +1 -1
- package/types/src/Anchor/docs/examples/Basic.d.ts +2 -1
- package/types/src/Animation/Animation.d.ts +12 -2
- package/types/src/AnimationToggle/AnimationToggleProvider.d.ts +1 -1
- package/types/src/AnimationToggle/docs/examples/Provider.d.ts +2 -2
- package/types/src/AnimationToggle/docs/examples/ReducedMotionComponent.d.ts +2 -1
- package/types/src/AnimationToggle/docs/examples/ReducedMotionHook.d.ts +2 -1
- package/types/src/AnimationToggle/docs/examples/ToggleComponent.d.ts +2 -2
- package/types/src/AnimationToggle/docs/examples/ToggleHook.d.ts +2 -1
- package/types/src/Avatar/Avatar.d.ts +65 -0
- package/types/src/Avatar/docs/examples/BackgroundColor.d.ts +2 -0
- package/types/src/Avatar/docs/examples/Basic.d.ts +2 -0
- package/types/src/Avatar/docs/examples/Image.d.ts +2 -0
- package/types/src/Avatar/docs/examples/Interactive.d.ts +2 -0
- package/types/src/Avatar/docs/examples/Size.d.ts +2 -0
- package/types/src/Avatar/getInitials.d.ts +9 -0
- package/types/src/Avatar/index.d.ts +2 -0
- package/types/src/Box/Box.d.ts +1 -1
- package/types/src/Breadcrumbs/Breadcrumbs.d.ts +1 -1
- package/types/src/Breadcrumbs/Item.d.ts +1 -1
- package/types/src/Breadcrumbs/docs/examples/Adornments.d.ts +2 -1
- package/types/src/Breadcrumbs/docs/examples/Basic.d.ts +2 -1
- package/types/src/Breadcrumbs/docs/examples/CustomizedClick.d.ts +2 -1
- package/types/src/Button/Button.d.ts +19 -34
- package/types/src/Button/docs/examples/Basic.d.ts +2 -1
- package/types/src/Button/docs/examples/Block.d.ts +2 -1
- package/types/src/Button/docs/examples/Disabled.d.ts +2 -1
- package/types/src/Button/docs/examples/Icons.d.ts +2 -1
- package/types/src/Button/docs/examples/Menus.d.ts +2 -1
- package/types/src/Button/docs/examples/To.d.ts +2 -1
- package/types/src/Button/docs/examples/Truncated.d.ts +2 -1
- package/types/src/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/types/src/ButtonGroup/docs/examples/Basic.d.ts +2 -1
- package/types/src/ButtonSimple/ButtonSimple.d.ts +22 -41
- package/types/src/ButtonSimple/mixin.d.ts +6 -2
- package/types/src/Calendar/Calendar.d.ts +2 -2
- package/types/src/Calendar/DateTable.d.ts +1 -1
- package/types/src/Calendar/Day.d.ts +1 -1
- package/types/src/Calendar/MonthHeader.d.ts +1 -1
- package/types/src/Card/Body.d.ts +1 -1
- package/types/src/Card/Card.d.ts +4 -9
- package/types/src/Card/Footer.d.ts +1 -8
- package/types/src/Card/Header.d.ts +2 -2
- package/types/src/Card/docs/examples/Actions.d.ts +2 -1
- package/types/src/Card/docs/examples/Basic.d.ts +2 -1
- package/types/src/Card/docs/examples/Clickable.d.ts +2 -1
- package/types/src/Card/docs/examples/Full.d.ts +2 -1
- package/types/src/Card/docs/examples/Images.d.ts +2 -1
- package/types/src/Card/docs/examples/Selectable.d.ts +2 -1
- package/types/src/CardLayout/CardLayout.d.ts +1 -1
- package/types/src/CardLayout/docs/examples/Basic.d.ts +2 -1
- package/types/src/CardLayout/docs/examples/Interactive.d.ts +2 -2
- package/types/src/Chip/Chip.d.ts +1 -1
- package/types/src/Chip/docs/examples/Appearance.d.ts +2 -1
- package/types/src/Chip/docs/examples/CustomColors.d.ts +2 -1
- package/types/src/Chip/docs/examples/Disabled.d.ts +2 -1
- package/types/src/Chip/docs/examples/Icon.d.ts +2 -1
- package/types/src/Chip/docs/examples/Removable.d.ts +2 -1
- package/types/src/Chip/docs/examples/RemovableWithNonStringChildren.d.ts +2 -1
- package/types/src/Clickable/Clickable.d.ts +13 -37
- package/types/src/Clickable/NavigationProvider.d.ts +2 -19
- package/types/src/Clickable/docs/examples/Basic.d.ts +2 -1
- package/types/src/Clickable/docs/examples/Disabled.d.ts +3 -0
- package/types/src/Clickable/docs/examples/NavigationProvider.d.ts +2 -1
- package/types/src/Code/Code.d.ts +2 -2
- package/types/src/Code/docs/examples/Default.d.ts +2 -1
- package/types/src/Code/docs/examples/HideIndent.d.ts +2 -1
- package/types/src/Code/docs/examples/Language.d.ts +2 -1
- package/types/src/CollapsiblePanel/CollapsiblePanel.d.ts +31 -70
- package/types/src/CollapsiblePanel/SingleOpenPanelGroup.d.ts +2 -2
- package/types/src/CollapsiblePanel/docs/examples/Actions.d.ts +3 -0
- package/types/src/CollapsiblePanel/docs/examples/BasicControlled.d.ts +2 -1
- package/types/src/CollapsiblePanel/docs/examples/BasicUncontrolled.d.ts +2 -1
- package/types/src/CollapsiblePanel/docs/examples/Disabled.d.ts +3 -0
- package/types/src/CollapsiblePanel/docs/examples/MultiControlled.d.ts +2 -1
- package/types/src/CollapsiblePanel/docs/examples/MultiUncontrolled.d.ts +2 -1
- package/types/src/CollapsiblePanel/docs/examples/SingleOpenPanelGroupControlled.d.ts +2 -1
- package/types/src/CollapsiblePanel/docs/examples/SingleOpenPanelGroupInset.d.ts +2 -1
- package/types/src/CollapsiblePanel/docs/examples/SingleOpenPanelGroupUncontrolled.d.ts +2 -1
- package/types/src/CollapsiblePanel/docs/examples/Subtle.d.ts +3 -0
- package/types/src/CollapsiblePanel/icons/ExpandPanel.d.ts +2 -1
- package/types/src/Color/Color.d.ts +24 -59
- package/types/src/Color/Palette.d.ts +3 -18
- package/types/src/Color/Swatch.d.ts +1 -4
- package/types/src/Color/docs/examples/Controlled.d.ts +2 -1
- package/types/src/Color/docs/examples/CustomizedPalette.d.ts +2 -1
- package/types/src/Color/docs/examples/HideInput.d.ts +2 -1
- package/types/src/Color/docs/examples/Null.d.ts +2 -1
- package/types/src/Color/docs/examples/ThemeVariables.d.ts +2 -1
- package/types/src/Color/docs/examples/Transparent.d.ts +2 -1
- package/types/src/Color/docs/examples/Uncontrolled.d.ts +2 -1
- package/types/src/ColumnLayout/Column.d.ts +1 -11
- package/types/src/ColumnLayout/ColumnLayout.d.ts +1 -1
- package/types/src/ColumnLayout/Row.d.ts +1 -11
- package/types/src/ColumnLayout/docs/examples/AlignItems.d.ts +2 -1
- package/types/src/ColumnLayout/docs/examples/Basic.d.ts +2 -1
- package/types/src/ColumnLayout/docs/examples/Dividers.d.ts +2 -1
- package/types/src/ColumnLayout/docs/examples/Gutters.d.ts +2 -1
- package/types/src/ComboBox/ComboBox.d.ts +4 -11
- package/types/src/ComboBox/Option.d.ts +2 -2
- package/types/src/ComboBox/docs/examples/Controlled.d.ts +2 -1
- package/types/src/ComboBox/docs/examples/Fetching.d.ts +2 -1
- package/types/src/ComboBox/docs/examples/Headings.d.ts +2 -1
- package/types/src/ComboBox/docs/examples/Label.d.ts +2 -1
- package/types/src/ComboBox/docs/examples/LoadMoreOnScrollBottom.d.ts +2 -1
- package/types/src/ComboBox/docs/examples/Uncontrolled.d.ts +2 -1
- package/types/src/ControlGroup/ControlGroup.d.ts +22 -38
- package/types/src/ControlGroup/ErrorMessageBar.d.ts +18 -0
- package/types/src/ControlGroup/docs/examples/Basic.d.ts +2 -1
- package/types/src/ControlGroup/docs/examples/CustomizedLabelTarget.d.ts +2 -2
- package/types/src/ControlGroup/docs/examples/Error.d.ts +2 -1
- package/types/src/ControlGroup/docs/examples/HelpWithErrorText.d.ts +2 -1
- package/types/src/ControlGroup/docs/examples/HelpWithLinks.d.ts +2 -1
- package/types/src/ControlGroup/docs/examples/LabelLeft.d.ts +3 -0
- package/types/src/ControlGroup/docs/examples/LayoutFill.d.ts +2 -1
- package/types/src/ControlGroup/docs/examples/LayoutFillJoin.d.ts +2 -1
- package/types/src/ControlGroup/docs/examples/LayoutNone.d.ts +2 -1
- package/types/src/ControlGroup/docs/examples/Required.d.ts +2 -1
- package/types/src/Date/Date.d.ts +30 -64
- package/types/src/Date/Icon.d.ts +2 -1
- package/types/src/Date/docs/examples/Basic.d.ts +2 -1
- package/types/src/Date/docs/examples/Controlled.d.ts +2 -2
- package/types/src/Date/docs/examples/CustomDate.d.ts +2 -1
- package/types/src/Date/docs/examples/Disabled.d.ts +2 -1
- package/types/src/Date/docs/examples/Error.d.ts +2 -1
- package/types/src/Date/docs/examples/HighlightToday.d.ts +2 -2
- package/types/src/Date/docs/examples/WithoutCalendar.d.ts +2 -1
- package/types/src/DefinitionList/DefinitionList.d.ts +8 -3
- package/types/src/DefinitionList/DefinitionListContext.d.ts +7 -0
- package/types/src/DefinitionList/Description.d.ts +3 -3
- package/types/src/DefinitionList/Term.d.ts +3 -3
- package/types/src/DefinitionList/docs/examples/Basic.d.ts +2 -1
- package/types/src/DefinitionList/docs/examples/Customize.d.ts +2 -1
- package/types/src/DefinitionList/docs/examples/EmptyDescription.d.ts +3 -0
- package/types/src/DefinitionList/docs/examples/WithSeparator.d.ts +3 -0
- package/types/src/Divider/Divider.d.ts +1 -1
- package/types/src/Divider/docs/examples/Basic.d.ts +2 -1
- package/types/src/Divider/docs/examples/CustomStyle.d.ts +2 -1
- package/types/src/Divider/docs/examples/Decorative.d.ts +2 -1
- package/types/src/Divider/docs/examples/Vertical.d.ts +2 -1
- package/types/src/Dropdown/Dropdown.d.ts +29 -44
- package/types/src/Dropdown/docs/examples/Basic.d.ts +2 -1
- package/types/src/Dropdown/docs/examples/BasicMenu.d.ts +2 -1
- package/types/src/Dropdown/docs/examples/ControlledDropdown.d.ts +2 -1
- package/types/src/Dropdown/docs/examples/Dialog.d.ts +2 -1
- package/types/src/Dropdown/docs/examples/ScrollContainer.d.ts +2 -1
- package/types/src/Dropdown/docs/examples/ScrollingMenu.d.ts +2 -1
- package/types/src/Dropdown/docs/examples/Submenu.d.ts +2 -1
- package/types/src/Dropdown/docs/examples/TooltipButtonToggle.d.ts +2 -1
- package/types/src/DualListbox/DualListbox.d.ts +1 -1
- package/types/src/DualListbox/Label.d.ts +1 -1
- package/types/src/DualListbox/Listbox.d.ts +1 -1
- package/types/src/DualListbox/Option.d.ts +1 -1
- package/types/src/DualListbox/ScreenReaderWrapper.d.ts +2 -1
- package/types/src/DualListbox/ToolbarButton.d.ts +1 -1
- package/types/src/DualListbox/docs/examples/Basic.d.ts +2 -1
- package/types/src/DualListbox/docs/examples/Controlled.d.ts +2 -1
- package/types/src/DualListbox/docs/examples/Fill.d.ts +2 -1
- package/types/src/EventListener/EventListener.d.ts +1 -1
- package/types/src/File/File.d.ts +26 -33
- package/types/src/File/Icon.d.ts +2 -1
- package/types/src/File/IconCloud.d.ts +2 -1
- package/types/src/File/Item.d.ts +1 -1
- package/types/src/File/PaperClip.d.ts +2 -1
- package/types/src/File/Retry.d.ts +2 -1
- package/types/src/File/Trash.d.ts +2 -1
- package/types/src/File/docs/examples/CustomizedMessages.d.ts +2 -1
- package/types/src/File/docs/examples/Disabled.d.ts +2 -2
- package/types/src/File/docs/examples/DropAnywhere.d.ts +2 -2
- package/types/src/File/docs/examples/Error.d.ts +2 -1
- package/types/src/File/docs/examples/FullScreen.d.ts +2 -1
- package/types/src/File/docs/examples/Multi.d.ts +2 -2
- package/types/src/File/docs/examples/Progress.d.ts +2 -1
- package/types/src/File/docs/examples/Single.d.ts +2 -2
- package/types/src/FormRows/FormRows.d.ts +20 -14
- package/types/src/FormRows/Row.d.ts +11 -7
- package/types/src/FormRows/SortableList.d.ts +1 -1
- package/types/src/FormRows/docs/examples/Basic.d.ts +1 -1
- package/types/src/FormRows/docs/examples/Header.d.ts +1 -1
- package/types/src/FormRows/docs/examples/Menu.d.ts +1 -1
- package/types/src/FormRows/docs/examples/ReorderOnly.d.ts +1 -1
- package/types/src/FormRows/icons/FormRowsPlusIcon.d.ts +2 -1
- package/types/src/Heading/Heading.d.ts +8 -20
- package/types/src/Heading/docs/examples/Basic.d.ts +2 -1
- package/types/src/Heading/docs/examples/Variant.d.ts +2 -1
- package/types/src/Heading/index.d.ts +1 -0
- package/types/src/Image/Image.d.ts +8 -19
- package/types/src/Image/docs/examples/Basic.d.ts +2 -1
- package/types/src/Image/icons/Cross.d.ts +2 -1
- package/types/src/JSONTree/JSONTree.d.ts +6 -10
- package/types/src/JSONTree/JSONTreeItem.d.ts +1 -1
- package/types/src/JSONTree/docs/examples/Basic.d.ts +2 -1
- package/types/src/JSONTree/docs/examples/Events.d.ts +2 -2
- package/types/src/JSONTree/docs/examples/ExpandChildrenOnShiftKey.d.ts +2 -1
- package/types/src/JSONTree/renderTreeItems.d.ts +3 -2
- package/types/src/Layer/Layer.d.ts +8 -25
- package/types/src/Layer/LayerStack.d.ts +2 -3
- package/types/src/Layer/docs/examples/Basic.d.ts +2 -1
- package/types/src/Layout/Layout.d.ts +22 -0
- package/types/src/Layout/docs/examples/Basic.d.ts +3 -0
- package/types/src/Layout/index.d.ts +2 -0
- package/types/src/Layout/test/Layout.unit.d.ts +1 -0
- package/types/src/Link/Link.d.ts +9 -22
- package/types/src/Link/docs/examples/Basic.d.ts +2 -1
- package/types/src/Link/docs/examples/Disabled.d.ts +2 -1
- package/types/src/Link/docs/examples/NewWindow.d.ts +2 -1
- package/types/src/Link/docs/examples/Standalone.d.ts +3 -0
- package/types/src/Link/icons/External.d.ts +2 -1
- package/types/src/List/Item.d.ts +1 -1
- package/types/src/List/List.d.ts +5 -17
- package/types/src/List/docs/examples/CustomizedList.d.ts +2 -1
- package/types/src/List/docs/examples/OrderedList.d.ts +2 -1
- package/types/src/List/docs/examples/UnorderedList.d.ts +2 -1
- package/types/src/Markdown/Markdown.d.ts +50 -59
- package/types/src/Markdown/docs/examples/Basic.d.ts +2 -1
- package/types/src/Markdown/docs/examples/I18n.d.ts +2 -1
- package/types/src/Markdown/docs/examples/RenderProps.d.ts +2 -1
- package/types/src/Markdown/renderers/MarkdownAnchorHeading.d.ts +2 -8
- package/types/src/Markdown/renderers/MarkdownBlockquote.d.ts +3 -7
- package/types/src/Markdown/renderers/MarkdownCode.d.ts +3 -9
- package/types/src/Markdown/renderers/MarkdownCodeBlock.d.ts +5 -9
- package/types/src/Markdown/renderers/MarkdownHeading.d.ts +3 -9
- package/types/src/Markdown/renderers/MarkdownImage.d.ts +4 -11
- package/types/src/Markdown/renderers/MarkdownItem.d.ts +4 -8
- package/types/src/Markdown/renderers/MarkdownLink.d.ts +3 -11
- package/types/src/Markdown/renderers/MarkdownList.d.ts +6 -22
- package/types/src/Markdown/renderers/MarkdownParagraph.d.ts +1 -7
- package/types/src/Markdown/renderers/MarkdownTable.d.ts +40 -0
- package/types/src/Markdown/renderers/index.d.ts +5 -4
- package/types/src/Menu/Divider.d.ts +2 -1
- package/types/src/Menu/Heading.d.ts +3 -3
- package/types/src/Menu/Item.d.ts +14 -47
- package/types/src/Menu/Menu.d.ts +4 -19
- package/types/src/Menu/docs/examples/Adornments.d.ts +2 -1
- package/types/src/Menu/docs/examples/Basic.d.ts +2 -1
- package/types/src/Menu/docs/examples/Complex.d.ts +2 -1
- package/types/src/Menu/docs/examples/Descriptions.d.ts +2 -1
- package/types/src/Menu/docs/examples/Dimmed.d.ts +2 -1
- package/types/src/Menu/docs/examples/Disabled.d.ts +2 -1
- package/types/src/Menu/docs/examples/Dividers.d.ts +2 -1
- package/types/src/Menu/docs/examples/Headings.d.ts +2 -1
- package/types/src/Menu/docs/examples/Links.d.ts +2 -1
- package/types/src/Menu/docs/examples/MatchRanges.d.ts +2 -1
- package/types/src/Menu/docs/examples/Selectable.d.ts +2 -1
- package/types/src/Menu/docs/examples/SelectableWithAdornments.d.ts +2 -1
- package/types/src/Menu/docs/examples/Truncate.d.ts +2 -1
- package/types/src/Menu/icons/External.d.ts +2 -1
- package/types/src/Message/Message.d.ts +4 -11
- package/types/src/Message/Title.d.ts +1 -1
- package/types/src/Message/docs/examples/Basic.d.ts +2 -1
- package/types/src/Message/docs/examples/Content.d.ts +2 -1
- package/types/src/Message/docs/examples/Fill.d.ts +2 -1
- package/types/src/Message/docs/examples/Removable.d.ts +2 -1
- package/types/src/MessageBar/MessageBar.d.ts +1 -1
- package/types/src/MessageBar/docs/examples/Basic.d.ts +2 -1
- package/types/src/MessageBar/docs/examples/Types.d.ts +2 -1
- package/types/src/MessageBar/docs/examples/WithActions.d.ts +2 -1
- package/types/src/Modal/Body.d.ts +1 -1
- package/types/src/Modal/Footer.d.ts +9 -1
- package/types/src/Modal/Header.d.ts +7 -11
- package/types/src/Modal/Modal.d.ts +26 -32
- package/types/src/Modal/ModalContext.d.ts +2 -0
- package/types/src/Modal/docs/examples/Basic.d.ts +2 -1
- package/types/src/Modal/docs/examples/InitialFocus.d.ts +2 -1
- package/types/src/Modal/docs/examples/TypicalUsage.d.ts +2 -1
- package/types/src/Modal/docs/examples/Undismissable.d.ts +2 -1
- package/types/src/ModalLayer/ModalLayer.d.ts +1 -1
- package/types/src/Monogram/Monogram.d.ts +3 -7
- package/types/src/Monogram/docs/examples/BackgroundAuto.d.ts +2 -1
- package/types/src/Monogram/docs/examples/BackgroundCustom.d.ts +2 -1
- package/types/src/Monogram/docs/examples/Basic.d.ts +2 -1
- package/types/src/Monogram/docs/examples/Interactive.d.ts +2 -1
- package/types/src/Monogram/docs/examples/Size.d.ts +2 -1
- package/types/src/Multiselect/Compact.d.ts +1 -1
- package/types/src/Multiselect/Multiselect.d.ts +2 -2
- package/types/src/Multiselect/Normal.d.ts +1 -1
- package/types/src/Multiselect/Option.d.ts +1 -1
- package/types/src/Multiselect/docs/examples/Children.d.ts +2 -2
- package/types/src/Multiselect/docs/examples/Compact.d.ts +2 -1
- package/types/src/Multiselect/docs/examples/CompactSelectAll.d.ts +2 -1
- package/types/src/Multiselect/docs/examples/Controlled.d.ts +2 -2
- package/types/src/Multiselect/docs/examples/CustomizeSelected.d.ts +2 -2
- package/types/src/Multiselect/docs/examples/Disabled.d.ts +2 -2
- package/types/src/Multiselect/docs/examples/Error.d.ts +2 -2
- package/types/src/Multiselect/docs/examples/Fetching.d.ts +4 -4
- package/types/src/Multiselect/docs/examples/Headings.d.ts +2 -1
- package/types/src/Multiselect/docs/examples/Icons.d.ts +2 -1
- package/types/src/Multiselect/docs/examples/LoadMoreOnScrollBottom.d.ts +4 -4
- package/types/src/Multiselect/docs/examples/NewValues.d.ts +2 -2
- package/types/src/Multiselect/docs/examples/TabInput.d.ts +2 -2
- package/types/src/Multiselect/docs/examples/Uncontrolled.d.ts +2 -1
- package/types/src/NonInteractiveCheckbox/NonInteractiveCheckbox.d.ts +21 -0
- package/types/src/NonInteractiveCheckbox/index.d.ts +1 -0
- package/types/src/Number/Number.d.ts +46 -61
- package/types/src/Number/docs/examples/Basic.d.ts +2 -2
- package/types/src/Number/docs/examples/Disabled.d.ts +2 -1
- package/types/src/Number/docs/examples/Error.d.ts +2 -1
- package/types/src/Number/docs/examples/Limits.d.ts +2 -2
- package/types/src/Number/docs/examples/Locale.d.ts +2 -2
- package/types/src/Number/docs/examples/Uncontrolled.d.ts +2 -1
- package/types/src/Number/utils.d.ts +1 -2
- package/types/src/Paginator/Button.d.ts +4 -8
- package/types/src/Paginator/Compact.d.ts +1 -1
- package/types/src/Paginator/PageControl.d.ts +1 -1
- package/types/src/Paginator/PageSelect.d.ts +1 -1
- package/types/src/Paginator/PageSeparator.d.ts +2 -1
- package/types/src/Paginator/Paginator.d.ts +1 -1
- package/types/src/Paginator/docs/examples/Basic.d.ts +2 -1
- package/types/src/Paginator/docs/examples/Compact.d.ts +2 -1
- package/types/src/Paginator/docs/examples/CompactCustomLabel.d.ts +2 -1
- package/types/src/Paginator/docs/examples/CompactWithLabel.d.ts +2 -1
- package/types/src/Paginator/docs/examples/CustomPages.d.ts +2 -1
- package/types/src/Paginator/docs/examples/Labelled.d.ts +2 -1
- package/types/src/Paginator/docs/examples/PageControl.d.ts +2 -1
- package/types/src/Paragraph/Paragraph.d.ts +3 -1
- package/types/src/Paragraph/docs/examples/Basic.d.ts +2 -1
- package/types/src/Paragraph/index.d.ts +1 -0
- package/types/src/Popover/Popover.d.ts +38 -69
- package/types/src/Popover/PopoverProvider.d.ts +1 -1
- package/types/src/Popover/docs/examples/Basic.d.ts +2 -1
- package/types/src/Popover/getPlacement.d.ts +1 -1
- package/types/src/Progress/Progress.d.ts +3 -4
- package/types/src/Progress/docs/examples/Basic.d.ts +2 -1
- package/types/src/Progress/docs/examples/Type.d.ts +2 -1
- package/types/src/Prose/Prose.d.ts +29 -0
- package/types/src/Prose/docs/examples/Basic.d.ts +3 -0
- package/types/src/Prose/docs/examples/Customize.d.ts +3 -0
- package/types/src/Prose/index.d.ts +2 -0
- package/types/src/Prose/test/Prose.unit.d.ts +1 -0
- package/types/src/RadioBar/Option.d.ts +2 -18
- package/types/src/RadioBar/RadioBar.d.ts +22 -39
- package/types/src/RadioBar/RadioBarContext.d.ts +0 -1
- package/types/src/RadioBar/docs/examples/AdornmentAriaExamples.d.ts +2 -1
- package/types/src/RadioBar/docs/examples/Basic.d.ts +2 -1
- package/types/src/RadioBar/docs/examples/Disabled.d.ts +2 -1
- package/types/src/RadioBar/docs/examples/Error.d.ts +2 -1
- package/types/src/RadioBar/docs/examples/MenuBar.d.ts +2 -1
- package/types/src/RadioBar/docs/examples/Uncontrolled.d.ts +2 -1
- package/types/src/RadioList/Option.d.ts +1 -1
- package/types/src/RadioList/RadioList.d.ts +5 -2
- package/types/src/RadioList/docs/examples/Basic.d.ts +2 -1
- package/types/src/RadioList/docs/examples/Disabled.d.ts +2 -1
- package/types/src/RadioList/docs/examples/Error.d.ts +2 -1
- package/types/src/RadioList/docs/examples/Row.d.ts +2 -1
- package/types/src/RadioList/docs/examples/Uncontrolled.d.ts +2 -1
- package/types/src/Resize/Resize.d.ts +15 -23
- package/types/src/Resize/docs/examples/Appearance.d.ts +2 -1
- package/types/src/Resize/docs/examples/Basic.d.ts +2 -1
- package/types/src/Resize/docs/examples/Percentage.d.ts +2 -1
- package/types/src/Resize/docs/examples/SizingInner.d.ts +2 -1
- package/types/src/Resize/docs/examples/SizingOuter.d.ts +2 -1
- package/types/src/ResultsMenu/ResultsMenu.d.ts +1 -1
- package/types/src/ResultsMenu/VirtualizedResultsMenu/VirtualizedResultsMenu.d.ts +1 -1
- package/types/src/ScreenReaderContent/ScreenReaderContent.d.ts +1 -1
- package/types/src/ScreenReaderContent/docs/examples/Basic.d.ts +2 -1
- package/types/src/Scroll/Inner.d.ts +1 -1
- package/types/src/Scroll/Scroll.d.ts +37 -27
- package/types/src/Scroll/docs/examples/Controlled.d.ts +2 -2
- package/types/src/Scroll/docs/examples/Uncontrolled.d.ts +2 -1
- package/types/src/ScrollContainerContext/docs/examples/Consumer.d.ts +2 -1
- package/types/src/ScrollContainerContext/docs/examples/Provider.d.ts +2 -1
- package/types/src/Search/Option.d.ts +32 -32
- package/types/src/Search/Search.d.ts +4 -4
- package/types/src/Search/docs/examples/Controlled.d.ts +2 -1
- package/types/src/Search/docs/examples/Loading.d.ts +2 -1
- package/types/src/Search/docs/examples/Options.d.ts +2 -1
- package/types/src/Search/docs/examples/OptionsLinks.d.ts +2 -1
- package/types/src/Search/docs/examples/Results.d.ts +2 -1
- package/types/src/Select/Option.d.ts +8 -21
- package/types/src/Select/OptionBase.d.ts +3 -8
- package/types/src/Select/Select.d.ts +62 -22
- package/types/src/Select/SelectAllOption.d.ts +1 -1
- package/types/src/Select/SelectBase.d.ts +4 -7
- package/types/src/Select/docs/examples/Appearance.d.ts +2 -1
- package/types/src/Select/docs/examples/Basic.d.ts +2 -1
- package/types/src/Select/docs/examples/Children.d.ts +2 -1
- package/types/src/Select/docs/examples/Descriptions.d.ts +2 -1
- package/types/src/Select/docs/examples/Error.d.ts +2 -1
- package/types/src/Select/docs/examples/Fetching.d.ts +2 -1
- package/types/src/Select/docs/examples/Filter.d.ts +2 -1
- package/types/src/Select/docs/examples/Headings.d.ts +2 -1
- package/types/src/Select/docs/examples/Icons.d.ts +2 -1
- package/types/src/Select/docs/examples/LoadMoreOnScrollBottom.d.ts +2 -1
- package/types/src/Select/docs/examples/Prefix.d.ts +2 -1
- package/types/src/Select/docs/examples/Truncate.d.ts +2 -1
- package/types/src/Select/docs/examples/Uncontrolled.d.ts +2 -1
- package/types/src/SidePanel/SidePanel.d.ts +18 -16
- package/types/src/SidePanel/docs/examples/Basic.d.ts +2 -1
- package/types/src/SidePanel/docs/examples/ChangeSize.d.ts +2 -1
- package/types/src/SidePanel/docs/examples/Composition.d.ts +2 -1
- package/types/src/Slider/Slider.d.ts +32 -46
- package/types/src/Slider/docs/examples/Basic.d.ts +2 -1
- package/types/src/Slider/docs/examples/Controlled.d.ts +2 -2
- package/types/src/Slider/docs/examples/CustomLabels.d.ts +2 -2
- package/types/src/Slider/docs/examples/Disabled.d.ts +2 -1
- package/types/src/Slider/docs/examples/Error.d.ts +2 -1
- package/types/src/Slider/docs/examples/StepMarks.d.ts +2 -1
- package/types/src/SlidingPanels/Panel.d.ts +23 -20
- package/types/src/SlidingPanels/SlidingPanels.d.ts +18 -25
- package/types/src/SlidingPanels/docs/examples/Basic.d.ts +2 -2
- package/types/src/SlidingPanels/docs/examples/Dropdown.d.ts +2 -2
- package/types/src/SlidingPanels/docs/examples/Modal.d.ts +2 -1
- package/types/src/SplitButton/Item.d.ts +2 -2
- package/types/src/SplitButton/SplitButton.d.ts +1 -1
- package/types/src/SplitButton/docs/examples/Basic.d.ts +2 -1
- package/types/src/SplitButton/docs/examples/Block.d.ts +2 -1
- package/types/src/SplitButton/docs/examples/ChangeLabel.d.ts +2 -1
- package/types/src/SplitButton/docs/examples/Disabled.d.ts +2 -1
- package/types/src/StaticContent/StaticContent.d.ts +1 -8
- package/types/src/StaticContent/docs/examples/Basic.d.ts +2 -1
- package/types/src/StaticContent/docs/examples/FieldValue.d.ts +2 -1
- package/types/src/StepBar/Step.d.ts +1 -1
- package/types/src/StepBar/StepBar.d.ts +2 -3
- package/types/src/StepBar/docs/examples/Basic.d.ts +2 -1
- package/types/src/StepBar/docs/examples/Error.d.ts +2 -1
- package/types/src/StepBar/types.d.ts +2 -0
- package/types/src/Switch/Switch.d.ts +37 -23
- package/types/src/Switch/docs/examples/Basic.d.ts +2 -2
- package/types/src/Switch/docs/examples/Disabled.d.ts +2 -2
- package/types/src/Switch/docs/examples/Error.d.ts +2 -1
- package/types/src/TabBar/Tab.d.ts +37 -44
- package/types/src/TabBar/TabBar.d.ts +21 -22
- package/types/src/TabBar/TabBarContext.d.ts +3 -5
- package/types/src/TabBar/docs/examples/Basic.d.ts +2 -1
- package/types/src/TabBar/docs/examples/Disabled.d.ts +2 -1
- package/types/src/TabBar/docs/examples/IconsAbove.d.ts +2 -1
- package/types/src/TabBar/docs/examples/IconsLeft.d.ts +2 -1
- package/types/src/TabBar/docs/examples/Tooltips.d.ts +2 -1
- package/types/src/TabBar/docs/examples/Vertical.d.ts +2 -1
- package/types/src/TabBar/docs/examples/VerticalIconsAbove.d.ts +2 -1
- package/types/src/TabBar/docs/examples/VerticalIconsLeft.d.ts +2 -1
- package/types/src/TabBar/docs/examples/WithCount.d.ts +2 -1
- package/types/src/TabLayout/Panel.d.ts +6 -1
- package/types/src/TabLayout/TabLayout.d.ts +18 -31
- package/types/src/TabLayout/docs/examples/AutoActivate.d.ts +2 -1
- package/types/src/TabLayout/docs/examples/Controlled.d.ts +2 -1
- package/types/src/TabLayout/docs/examples/Icons.d.ts +2 -1
- package/types/src/TabLayout/docs/examples/Uncontrolled.d.ts +2 -1
- package/types/src/TabLayout/docs/examples/Vertical.d.ts +2 -1
- package/types/src/TabLayout/docs/examples/VerticalIcons.d.ts +2 -1
- package/types/src/Table/Body.d.ts +6 -13
- package/types/src/Table/Caption.d.ts +1 -1
- package/types/src/Table/Cell.d.ts +40 -18
- package/types/src/Table/ExpandButton.d.ts +9 -3
- package/types/src/Table/Head.d.ts +40 -40
- package/types/src/Table/HeadCell.d.ts +49 -23
- package/types/src/Table/HeadDropdownCell.d.ts +58 -51
- package/types/src/Table/HeadInner.d.ts +1 -3
- package/types/src/Table/HeadTable.d.ts +23 -12
- package/types/src/Table/Row.d.ts +7 -14
- package/types/src/Table/RowDragCell.d.ts +2 -1
- package/types/src/Table/Table.d.ts +13 -19
- package/types/src/Table/Toggle.d.ts +1 -3
- package/types/src/Table/docs/examples/Basic.d.ts +2 -1
- package/types/src/Table/docs/examples/Click.d.ts +2 -1
- package/types/src/Table/docs/examples/ClickRows.d.ts +2 -1
- package/types/src/Table/docs/examples/Complex.d.ts +2 -1
- package/types/src/Table/docs/examples/DockedHeaderScrollbar.d.ts +2 -1
- package/types/src/Table/docs/examples/ExpandableRows.d.ts +2 -1
- package/types/src/Table/docs/examples/ExpandableRowsControlled.d.ts +2 -1
- package/types/src/Table/docs/examples/FilterColumnValues.d.ts +2 -1
- package/types/src/Table/docs/examples/FixedHeader.d.ts +2 -1
- package/types/src/Table/docs/examples/HeadDropdownCell.d.ts +2 -1
- package/types/src/Table/docs/examples/ReorderColumns.d.ts +2 -1
- package/types/src/Table/docs/examples/ReorderRows.d.ts +2 -1
- package/types/src/Table/docs/examples/Resizable.d.ts +2 -1
- package/types/src/Table/docs/examples/ResizableFill.d.ts +2 -1
- package/types/src/Table/docs/examples/RowActions.d.ts +2 -1
- package/types/src/Table/docs/examples/Selectable.d.ts +2 -1
- package/types/src/Table/docs/examples/SortableColumns.d.ts +2 -1
- package/types/src/Table/docs/examples/StripeRows.d.ts +2 -1
- package/types/src/Table/docs/examples/prisma/DockedHeaderScrollbar.d.ts +2 -1
- package/types/src/Text/IconOutlinedHide.d.ts +2 -1
- package/types/src/Text/IconOutlinedView.d.ts +2 -1
- package/types/src/Text/Text.d.ts +62 -112
- package/types/src/Text/docs/examples/Basic.d.ts +2 -1
- package/types/src/Text/docs/examples/CustomizedIcon.d.ts +2 -1
- package/types/src/Text/docs/examples/Dimmed.d.ts +2 -1
- package/types/src/Text/docs/examples/Disabled.d.ts +2 -1
- package/types/src/Text/docs/examples/Error.d.ts +2 -1
- package/types/src/Text/docs/examples/Inline.d.ts +2 -1
- package/types/src/Text/docs/examples/Password.d.ts +2 -1
- package/types/src/Text/docs/examples/Uncontrolled.d.ts +2 -1
- package/types/src/TextArea/TextArea.d.ts +49 -87
- package/types/src/TextArea/docs/examples/Basic.d.ts +2 -1
- package/types/src/TextArea/docs/examples/Disabled.d.ts +2 -1
- package/types/src/TextArea/docs/examples/Error.d.ts +2 -1
- package/types/src/TextArea/docs/examples/Inline.d.ts +2 -1
- package/types/src/TextArea/docs/examples/Uncontrolled.d.ts +2 -1
- package/types/src/TextArea/syncHeightWithShadow.d.ts +1 -1
- package/types/src/Tooltip/InfoIcon.d.ts +2 -1
- package/types/src/Tooltip/Tooltip.d.ts +9 -3
- package/types/src/Tooltip/docs/examples/Basic.d.ts +2 -1
- package/types/src/Tooltip/docs/examples/ContentRelationship.d.ts +2 -1
- package/types/src/Tooltip/docs/examples/Controlled.d.ts +2 -2
- package/types/src/Tooltip/docs/examples/CustomDelay.d.ts +2 -1
- package/types/src/Tooltip/docs/examples/CustomProps.d.ts +2 -1
- package/types/src/Tooltip/docs/examples/Toggletip.d.ts +2 -1
- package/types/src/TransitionOpen/TransitionOpen.d.ts +23 -25
- package/types/src/TransitionOpen/docs/examples/ExpandHeight.d.ts +2 -1
- package/types/src/TransitionOpen/docs/examples/ExpandWidth.d.ts +2 -1
- package/types/src/TransitionOpen/docs/examples/None.d.ts +2 -1
- package/types/src/TransitionOpen/docs/examples/SlideFromBottom.d.ts +2 -1
- package/types/src/TransitionOpen/docs/examples/SlideFromLeft.d.ts +2 -1
- package/types/src/TransitionOpen/docs/examples/SlideFromRight.d.ts +2 -1
- package/types/src/TransitionOpen/docs/examples/SlideFromTop.d.ts +2 -1
- package/types/src/Tree/Tree.d.ts +1 -1
- package/types/src/Tree/TreeItem.d.ts +1 -1
- package/types/src/Typography/Typography.d.ts +10 -19
- package/types/src/Typography/docs/examples/Basic.d.ts +2 -1
- package/types/src/WaitSpinner/WaitSpinner.d.ts +2 -3
- package/types/src/WaitSpinner/docs/examples/Basic.d.ts +2 -1
- package/types/src/utils/types.d.ts +1 -0
- package/Concertina.d.ts +0 -2
- package/Concertina.js +0 -963
- package/types/src/Accordion/docs/examples/FixedHeight.d.ts +0 -2
- package/types/src/Accordion/docs/examples/InDropdown.d.ts +0 -2
- package/types/src/Button/docs/examples/Dimmed.d.ts +0 -2
- package/types/src/Button/icons/CaretSmallDown.d.ts +0 -2
- package/types/src/Button/icons/External.d.ts +0 -2
- package/types/src/Clickable/docs/examples/Dimmed.d.ts +0 -2
- package/types/src/CloseButton/CloseButton.d.ts +0 -21
- package/types/src/CloseButton/index.d.ts +0 -1
- package/types/src/CollapsiblePanel/docs/examples/TitleWithActions.d.ts +0 -2
- package/types/src/Concertina/Concertina.d.ts +0 -46
- package/types/src/Concertina/ConcertinaContext.d.ts +0 -8
- package/types/src/Concertina/Heading.d.ts +0 -35
- package/types/src/Concertina/Panel.d.ts +0 -59
- package/types/src/Concertina/docs/examples/Basic.d.ts +0 -2
- package/types/src/Concertina/docs/examples/Disabled.d.ts +0 -9
- package/types/src/Concertina/docs/examples/Status.d.ts +0 -2
- package/types/src/Concertina/index.d.ts +0 -2
- package/types/src/Concertina/types.d.ts +0 -1
- package/types/src/ControlGroup/docs/examples/LabelTop.d.ts +0 -2
- package/types/src/Link/docs/examples/Inline.d.ts +0 -2
- package/types/src/Message/Link.d.ts +0 -37
- package/types/src/Number/IncrementIcon.d.ts +0 -2
- package/types/src/Paginator/icons/ChevronLeft.d.ts +0 -5
- package/types/src/Paginator/icons/ChevronRight.d.ts +0 -5
- package/types/src/RadioList/docs/examples/Composing.d.ts +0 -2
- package/types/src/Select/icons/CaretSmallDown.d.ts +0 -2
- package/types/src/Select/icons/Search.d.ts +0 -2
- package/types/src/Switch/CheckIcon.d.ts +0 -1
- package/types/src/Table/DragHandle.d.ts +0 -12
- package/types/src/Table/icons/HeadExpandRows.d.ts +0 -1
- package/types/src/Text/docs/examples/Multiline.d.ts +0 -2
- package/types/src/Text/docs/examples/Search.d.ts +0 -2
- package/types/src/TextArea/docs/examples/ClearContent.d.ts +0 -2
- package/types/src/TextArea/icons/ClearButton.d.ts +0 -3
- package/types/src/TextArea/icons/SearchIcon.d.ts +0 -1
package/List.js
CHANGED
|
@@ -8,27 +8,27 @@
|
|
|
8
8
|
/******/ /* webpack/runtime/compat get default export */
|
|
9
9
|
/******/ (() => {
|
|
10
10
|
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
11
|
-
/******/ e.n =
|
|
12
|
-
/******/ var
|
|
13
|
-
/******/ () =>
|
|
14
|
-
/******/ : () =>
|
|
11
|
+
/******/ e.n = r => {
|
|
12
|
+
/******/ var t = r && r.__esModule ?
|
|
13
|
+
/******/ () => r["default"]
|
|
14
|
+
/******/ : () => r
|
|
15
15
|
/******/;
|
|
16
|
-
e.d(
|
|
17
|
-
a:
|
|
16
|
+
e.d(t, {
|
|
17
|
+
a: t
|
|
18
18
|
});
|
|
19
|
-
/******/ return
|
|
19
|
+
/******/ return t;
|
|
20
20
|
/******/ };
|
|
21
21
|
/******/ })();
|
|
22
22
|
/******/
|
|
23
23
|
/******/ /* webpack/runtime/define property getters */
|
|
24
24
|
/******/ (() => {
|
|
25
25
|
/******/ // define getter functions for harmony exports
|
|
26
|
-
/******/ e.d = (
|
|
27
|
-
/******/ for (var n in
|
|
28
|
-
/******/ if (e.o(
|
|
29
|
-
/******/ Object.defineProperty(
|
|
26
|
+
/******/ e.d = (r, t) => {
|
|
27
|
+
/******/ for (var n in t) {
|
|
28
|
+
/******/ if (e.o(t, n) && !e.o(r, n)) {
|
|
29
|
+
/******/ Object.defineProperty(r, n, {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get:
|
|
31
|
+
get: t[n]
|
|
32
32
|
});
|
|
33
33
|
/******/ }
|
|
34
34
|
/******/ }
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
/******/
|
|
38
38
|
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
39
39
|
/******/ (() => {
|
|
40
|
-
/******/ e.o = (e,
|
|
40
|
+
/******/ e.o = (e, r) => Object.prototype.hasOwnProperty.call(e, r)
|
|
41
41
|
/******/;
|
|
42
42
|
})();
|
|
43
43
|
/******/
|
|
@@ -56,17 +56,18 @@
|
|
|
56
56
|
/******/ };
|
|
57
57
|
/******/ })();
|
|
58
58
|
/******/
|
|
59
|
-
/************************************************************************/ var
|
|
59
|
+
/************************************************************************/ var r = {};
|
|
60
60
|
// ESM COMPAT FLAG
|
|
61
|
-
e.r(
|
|
61
|
+
e.r(r);
|
|
62
62
|
// EXPORTS
|
|
63
|
-
e.d(
|
|
64
|
-
Item: () => /* reexport */
|
|
65
|
-
|
|
63
|
+
e.d(r, {
|
|
64
|
+
Item: () => /* reexport */ b,
|
|
65
|
+
StyledList: () => /* reexport */ c,
|
|
66
|
+
default: () => /* reexport */ S
|
|
66
67
|
});
|
|
67
68
|
// CONCATENATED MODULE: external "react"
|
|
68
|
-
const
|
|
69
|
-
var n = e.n(
|
|
69
|
+
const t = require("react");
|
|
70
|
+
var n = e.n(t);
|
|
70
71
|
// CONCATENATED MODULE: external "prop-types"
|
|
71
72
|
const l = require("prop-types");
|
|
72
73
|
var o = e.n(l);
|
|
@@ -77,12 +78,9 @@
|
|
|
77
78
|
const s = require("@splunk/themes");
|
|
78
79
|
// CONCATENATED MODULE: ./src/List/ListStyles.ts
|
|
79
80
|
var c = a().ul.withConfig({
|
|
80
|
-
displayName: "
|
|
81
|
+
displayName: "ListStyles__Styled",
|
|
81
82
|
componentId: "sc-1yyh8l9-0"
|
|
82
|
-
})([ "", ";", ";counter-reset:list-item;
|
|
83
|
-
var t = e.$listStyleType;
|
|
84
|
-
return t;
|
|
85
|
-
}));
|
|
83
|
+
})([ "", ";", ";counter-reset:list-item;padding-inline-start:1em;" ], s.mixins.reset("block"), s.mixins.typography("body"));
|
|
86
84
|
var u = a().li.withConfig({
|
|
87
85
|
displayName: "ListStyles__StyledItem",
|
|
88
86
|
componentId: "sc-1yyh8l9-1"
|
|
@@ -90,110 +88,106 @@
|
|
|
90
88
|
// CONCATENATED MODULE: ./src/List/Item.tsx
|
|
91
89
|
function f() {
|
|
92
90
|
return f = Object.assign ? Object.assign.bind() : function(e) {
|
|
93
|
-
for (var
|
|
94
|
-
var
|
|
95
|
-
for (var n in
|
|
96
|
-
({}).hasOwnProperty.call(
|
|
91
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
92
|
+
var t = arguments[r];
|
|
93
|
+
for (var n in t) {
|
|
94
|
+
({}).hasOwnProperty.call(t, n) && (e[n] = t[n]);
|
|
97
95
|
}
|
|
98
96
|
}
|
|
99
97
|
return e;
|
|
100
98
|
}, f.apply(null, arguments);
|
|
101
99
|
}
|
|
102
|
-
function
|
|
100
|
+
function d(e, r) {
|
|
103
101
|
if (null == e) return {};
|
|
104
|
-
var
|
|
102
|
+
var t, n, l = y(e, r);
|
|
105
103
|
if (Object.getOwnPropertySymbols) {
|
|
106
104
|
var o = Object.getOwnPropertySymbols(e);
|
|
107
105
|
for (n = 0; n < o.length; n++) {
|
|
108
|
-
|
|
106
|
+
t = o[n], r.includes(t) || {}.propertyIsEnumerable.call(e, t) && (l[t] = e[t]);
|
|
109
107
|
}
|
|
110
108
|
}
|
|
111
109
|
return l;
|
|
112
110
|
}
|
|
113
|
-
function y(e,
|
|
111
|
+
function y(e, r) {
|
|
114
112
|
if (null == e) return {};
|
|
115
|
-
var
|
|
113
|
+
var t = {};
|
|
116
114
|
for (var n in e) {
|
|
117
115
|
if ({}.hasOwnProperty.call(e, n)) {
|
|
118
|
-
if (
|
|
119
|
-
|
|
116
|
+
if (r.includes(n)) continue;
|
|
117
|
+
t[n] = e[n];
|
|
120
118
|
}
|
|
121
119
|
}
|
|
122
|
-
return
|
|
120
|
+
return t;
|
|
123
121
|
}
|
|
124
|
-
var
|
|
122
|
+
var p = {
|
|
125
123
|
children: o().node,
|
|
126
124
|
elementRef: o().oneOfType([ o().func, o().object ])
|
|
127
125
|
};
|
|
128
126
|
/**
|
|
129
127
|
* A container for items of a `List`.
|
|
130
128
|
*/ function m(e) {
|
|
131
|
-
var
|
|
129
|
+
var r = e.children, t = e.elementRef, l = d(e, [ "children", "elementRef" ]);
|
|
132
130
|
// @docs-props-type ItemPropsBase
|
|
133
131
|
|
|
134
132
|
return n().createElement(u, f({
|
|
135
133
|
"data-test": "item",
|
|
136
|
-
ref:
|
|
137
|
-
}, l),
|
|
134
|
+
ref: t
|
|
135
|
+
}, l), r);
|
|
138
136
|
}
|
|
139
|
-
m.propTypes =
|
|
140
|
-
/* harmony default export */ const
|
|
137
|
+
m.propTypes = p;
|
|
138
|
+
/* harmony default export */ const b = m;
|
|
141
139
|
// CONCATENATED MODULE: ./src/List/List.tsx
|
|
142
|
-
function
|
|
143
|
-
return
|
|
144
|
-
for (var
|
|
145
|
-
var
|
|
146
|
-
for (var n in
|
|
147
|
-
({}).hasOwnProperty.call(
|
|
140
|
+
function v() {
|
|
141
|
+
return v = Object.assign ? Object.assign.bind() : function(e) {
|
|
142
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
143
|
+
var t = arguments[r];
|
|
144
|
+
for (var n in t) {
|
|
145
|
+
({}).hasOwnProperty.call(t, n) && (e[n] = t[n]);
|
|
148
146
|
}
|
|
149
147
|
}
|
|
150
148
|
return e;
|
|
151
|
-
},
|
|
149
|
+
}, v.apply(null, arguments);
|
|
152
150
|
}
|
|
153
|
-
function
|
|
151
|
+
function O(e, r) {
|
|
154
152
|
if (null == e) return {};
|
|
155
|
-
var
|
|
153
|
+
var t, n, l = h(e, r);
|
|
156
154
|
if (Object.getOwnPropertySymbols) {
|
|
157
155
|
var o = Object.getOwnPropertySymbols(e);
|
|
158
156
|
for (n = 0; n < o.length; n++) {
|
|
159
|
-
|
|
157
|
+
t = o[n], r.includes(t) || {}.propertyIsEnumerable.call(e, t) && (l[t] = e[t]);
|
|
160
158
|
}
|
|
161
159
|
}
|
|
162
160
|
return l;
|
|
163
161
|
}
|
|
164
|
-
function
|
|
162
|
+
function h(e, r) {
|
|
165
163
|
if (null == e) return {};
|
|
166
|
-
var
|
|
164
|
+
var t = {};
|
|
167
165
|
for (var n in e) {
|
|
168
166
|
if ({}.hasOwnProperty.call(e, n)) {
|
|
169
|
-
if (
|
|
170
|
-
|
|
167
|
+
if (r.includes(n)) continue;
|
|
168
|
+
t[n] = e[n];
|
|
171
169
|
}
|
|
172
170
|
}
|
|
173
|
-
return
|
|
171
|
+
return t;
|
|
174
172
|
}
|
|
175
173
|
var g = {
|
|
176
174
|
children: o().node,
|
|
177
175
|
elementRef: o().oneOfType([ o().func, o().object ]),
|
|
178
|
-
ordered: o().bool
|
|
179
|
-
type: o().oneOf([ "disc", "decimal", "lower-alpha", "upper-alpha" ])
|
|
176
|
+
ordered: o().bool
|
|
180
177
|
};
|
|
181
|
-
function
|
|
182
|
-
var
|
|
178
|
+
function j(e) {
|
|
179
|
+
var r = e.children, t = e.elementRef, l = e.ordered, o = O(e, [ "children", "elementRef", "ordered" ]);
|
|
183
180
|
// @docs-props-type ListPropsBase
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
return n().createElement(c, b({
|
|
188
|
-
as: i || o !== "disc" ? "ol" : "ul",
|
|
181
|
+
|
|
182
|
+
return n().createElement(c, v({
|
|
183
|
+
as: l ? "ol" : "ul",
|
|
189
184
|
"data-test": "list",
|
|
190
|
-
ref:
|
|
191
|
-
|
|
192
|
-
}, a), t);
|
|
185
|
+
ref: t
|
|
186
|
+
}, o), r);
|
|
193
187
|
}
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
/* harmony default export */ const
|
|
188
|
+
j.propTypes = g;
|
|
189
|
+
j.Item = b;
|
|
190
|
+
/* harmony default export */ const S = j;
|
|
197
191
|
// CONCATENATED MODULE: ./src/List/index.ts
|
|
198
|
-
module.exports =
|
|
192
|
+
module.exports = r;
|
|
199
193
|
/******/})();
|
package/MIGRATION.v5.mdx
ADDED
|
@@ -0,0 +1,428 @@
|
|
|
1
|
+
# Migration
|
|
2
|
+
|
|
3
|
+
This document lists migration guidance for new features and breaking changes in v5.
|
|
4
|
+
|
|
5
|
+
## Component spacing
|
|
6
|
+
|
|
7
|
+
To unify the styling of components margin has been removed and components should not have any spacing outside of its border box.
|
|
8
|
+
|
|
9
|
+
### Content components
|
|
10
|
+
|
|
11
|
+
Some components had `margin-bottom` by default: e.g. `Heading` or `Paragraph`. Although this could
|
|
12
|
+
simplify styling with text content, often it needed to be overridden when using these
|
|
13
|
+
components in an application. Additionally, it was not consistent which components
|
|
14
|
+
would have the additional spacing.
|
|
15
|
+
|
|
16
|
+
When spacing is needed in long-form text content the new `Prose` component can be used to add styling that optimizes for readability.
|
|
17
|
+
|
|
18
|
+
### inline margin
|
|
19
|
+
|
|
20
|
+
Previously, certain components automatically applied a `margin-left` when siblings with other components (e.g., two `Button`s, or a `Text` and a `Button`). This behavior worked fine for basic use cases where no additional styling was needed for spacing.
|
|
21
|
+
|
|
22
|
+
However, it created issues in more complex layouts, especially with modern techniques like flex and grid, requiring developers to manually reset the margin. To be consistent with removing margin outside components' border box and encourage modern layout practices, this automatic margin has been removed. The `inline` attribute remains, and it still affects the display and width of certain components.
|
|
23
|
+
|
|
24
|
+
For spacing between components, use the new `Layout` component, which applies spacing without relying on margin. If you’re already using a wrapper, you can instead use `@splunk/themes/mixins/layout` to manage spacing, allowing you to remove previous margin overrides.
|
|
25
|
+
|
|
26
|
+
## Component font styles
|
|
27
|
+
|
|
28
|
+
### New features and changes
|
|
29
|
+
|
|
30
|
+
- The font size and line height no longer change with density (SUI-5508).
|
|
31
|
+
- The default font-size in Enterprise Compact now is 14px (SUI-5508).
|
|
32
|
+
|
|
33
|
+
### Migration steps for font-size, font-weight and font-family
|
|
34
|
+
|
|
35
|
+
```jsx
|
|
36
|
+
css`font-size: ${variables.fontSizeSmall}`
|
|
37
|
+
is equivalent to
|
|
38
|
+
css`font-size: ${mixins.typography({ size: 12 })}`
|
|
39
|
+
|
|
40
|
+
css`font-size: ${variables.fontWeightSemiBold}`
|
|
41
|
+
is equivalent to
|
|
42
|
+
css`font-weight: ${mixins.typography({ weight: 'semiBold' })}`
|
|
43
|
+
|
|
44
|
+
css`font-family: ${variables.sansFontFamily}`
|
|
45
|
+
is equivalent to
|
|
46
|
+
css`font-family: ${mixins.typography({ family: 'sansSerif' })}`
|
|
47
|
+
|
|
48
|
+
css`line-height: ${variables.lineHeight}`
|
|
49
|
+
is equivalent to
|
|
50
|
+
css`font-size: ${mixins.typography({ lineHeight: 20 })}`
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Monogram to Avatar
|
|
54
|
+
|
|
55
|
+
`Monogram` will be removed in a future major version. Use `Avatar` instead (SUI-5608).
|
|
56
|
+
|
|
57
|
+
### New features and changes
|
|
58
|
+
|
|
59
|
+
- `Avatar` supports images via `image` prop (SUI-3227).
|
|
60
|
+
- `Avatar`'s `value` prop replaces `Monogram`'s `name` prop (SUI-5610).
|
|
61
|
+
- `Avatar`'s `size` prop doesn't have an `"xlarge"` option (SUI-5518).
|
|
62
|
+
- `Avatar`'s `size` prop supports `string` instead of `number` (SUI-5615).
|
|
63
|
+
- `Avatar`'s `"medium"` size is `32px` and `large` size is `48px` (SUI-5615).
|
|
64
|
+
- `Avatar` has the same sizes in Enterprise and Prisma theme (SUI-5617).
|
|
65
|
+
- `Avatar` requires `label` prop (SUI-5611).
|
|
66
|
+
- `Avatar`'s text color will change automatically depending on the background color to comply with accessibility contrast requirements (SUI-5614).
|
|
67
|
+
- `Avatar`'s `backgroundColor` prop doesn't have a `"theme"` option (SUI-5614). No value for `backgroundColor` is needed for the default background colors.
|
|
68
|
+
|
|
69
|
+
### Migration steps
|
|
70
|
+
|
|
71
|
+
#### `size` prop
|
|
72
|
+
|
|
73
|
+
```jsx
|
|
74
|
+
<Monogram size="medium" /> is equivalent to <Avatar size='large'/>
|
|
75
|
+
<Monogram size="large" /> is equivalent to <Avatar size='80px'/>
|
|
76
|
+
<Monogram size="xlarge" /> is equivalent to <Avatar size='144px'/>
|
|
77
|
+
|
|
78
|
+
Convert any usage of a number type to string type:
|
|
79
|
+
<Monogram size={40} /> is equivalent to <Avatar size='40px'/>
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
#### `name` prop
|
|
83
|
+
|
|
84
|
+
```jsx
|
|
85
|
+
<Monogram initials="A" name="Amelia" onClick={() => {}} />
|
|
86
|
+
is equivalent to
|
|
87
|
+
<Avatar initials="A" value="Amelia" onClick={() => {}}/>
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
## Change to `Modal.Header` icon
|
|
91
|
+
|
|
92
|
+
`Modal.Header`'s `icon` prop no longer requires `width="100%" height="100%"` to be set on the icon to render at the correct size (SUI-5931).
|
|
93
|
+
|
|
94
|
+
### Migration steps
|
|
95
|
+
|
|
96
|
+
Remove `width="100%" height="100%"` from the icon.
|
|
97
|
+
|
|
98
|
+
## Changes to `Modal` and `Modal.Header` `onRequestClose` prop
|
|
99
|
+
|
|
100
|
+
`Modal.Header` now uses the `onRequestClose` prop from `Modal` and no longer supports its own `onRequestClose`.
|
|
101
|
+
When the `Modal` is closed by clicking the "close" button in Modal.Header` the `reason` parameter will be `"clickCloseButton"` (SUI-5933).
|
|
102
|
+
|
|
103
|
+
For cases where `onRequestClose` was not set on `Modal.Header`, the "close" button can be hidden with the new `hideCloseButton` prop to maintain prior behavior.
|
|
104
|
+
|
|
105
|
+
### Migration steps
|
|
106
|
+
|
|
107
|
+
If `onRequestClose` was set on `Modal.Header`, remove it and either add the `onRequestClose` to `Modal` or update it if it exists. If it's necessary to determine if the prop was called by the "close" button in `Modal.Header`, the `reason` parameter will be set to `"`clickCloseButton`" in those cases.
|
|
108
|
+
If `onRequestClose` was not set on `Modal.Header`, add the new `hideCloseButton` prop to maintain prior behavior.
|
|
109
|
+
|
|
110
|
+
## `JSONTree`'s `expandChildren` prop renamed to `defaultExpanded` and no longer affects node expansion behavior after the initial render.
|
|
111
|
+
|
|
112
|
+
### Change
|
|
113
|
+
|
|
114
|
+
`JSONTree`'s `expandChildren` prop has been renamed to `defaultExpanded` and no longer affects node expansion behavior after the initial render.
|
|
115
|
+
|
|
116
|
+
### Context
|
|
117
|
+
|
|
118
|
+
The old behavior of `JSONTree`'s `expandChildren` prop was to:
|
|
119
|
+
1. Start with all nodes expanded.
|
|
120
|
+
2. Always expand all descendant nodes when a node is expanded.
|
|
121
|
+
|
|
122
|
+
Now `expandChildren` has been renamed to `defaultExpanded` and the behavior of `defaultExpanded` is to:
|
|
123
|
+
1. Start with all nodes expanded. This behavior remains the same as `expandChildren`.
|
|
124
|
+
2. Subsequent node expansions are not affected by `defaultExpanded` - they only expand one level of nodes. This behavior is different from `expandChildren`'s old behavior.
|
|
125
|
+
|
|
126
|
+
This change in behavior was made because it was likely not a desired behavior and unintuitive that `expandChildren` would always expand all descendant nodes.
|
|
127
|
+
Then `expandChildren` was renamed to `defaultExpanded` to make it clear it does not affect node expansion behavior after the initial render.
|
|
128
|
+
|
|
129
|
+
### Migration steps
|
|
130
|
+
|
|
131
|
+
Replace all usage of `JSONTree`'s `expandChildren` prop with `defaultExpanded`.
|
|
132
|
+
To expand all descendant nodes when a node is expanded, use the `expandChildrenOnShiftKey` prop instead.
|
|
133
|
+
|
|
134
|
+
## `ComboBox`, `Date`, `Multiselect`, `Number`, `Search`, `Select`, and `Text` no longer use the TypeScript `HTMLTextAreaElement` type in event handlers and refs
|
|
135
|
+
|
|
136
|
+
### Change
|
|
137
|
+
|
|
138
|
+
`ComboBox`, `Date`, `Multiselect`, `Number`, `Search`, `Select`, and `Text` no longer use the TypeScript `HTMLTextAreaElement` type in event handlers.
|
|
139
|
+
`Number` and `Text` no longer use the TypeScript `HTMLTextAreaElement` type for the `inputRef` prop (SUI-6206).
|
|
140
|
+
|
|
141
|
+
### Context
|
|
142
|
+
|
|
143
|
+
`Text`'s `multiline` prop was removed. With this change, it is no longer necessary for `Text` and components that use `Text` to
|
|
144
|
+
have props that include the TypeScript `HTMLTextAreaElement` type.
|
|
145
|
+
|
|
146
|
+
### Migration steps
|
|
147
|
+
* Change the callbacks passed into the following props to use an event type that doesn't include `HTMLTextAreaElement`:
|
|
148
|
+
* `ComboBox`
|
|
149
|
+
* `onBlur`
|
|
150
|
+
* `onChange`
|
|
151
|
+
* `onFocus`
|
|
152
|
+
* `Date`
|
|
153
|
+
* `onBlur`
|
|
154
|
+
* `onFocus`
|
|
155
|
+
* `Multiselect`
|
|
156
|
+
* `onFilterChange`
|
|
157
|
+
* `Number`
|
|
158
|
+
* `onBlur`
|
|
159
|
+
* `onChange`
|
|
160
|
+
* `onFocus`
|
|
161
|
+
* `Search`
|
|
162
|
+
* `onBlur`
|
|
163
|
+
* `onChange`
|
|
164
|
+
* `onFocus`
|
|
165
|
+
* `Select`
|
|
166
|
+
* `onFilterChange`
|
|
167
|
+
* `Text`
|
|
168
|
+
* `onBlur`
|
|
169
|
+
* `onClick`
|
|
170
|
+
* `onChange`
|
|
171
|
+
* `onFocus`
|
|
172
|
+
* `onKeyDown`
|
|
173
|
+
* `onSelect`
|
|
174
|
+
* Change any refs passed into `Text` and `Number`'s `inputRef` prop with the TypeScript `HTMLTextAreaElement` type to be of `HTMLInputElement` type instead.
|
|
175
|
+
|
|
176
|
+
## `Text`, `Date`, and `Number` `onClick` prop API changes
|
|
177
|
+
|
|
178
|
+
### Change
|
|
179
|
+
- `Text`'s `onInputClick` prop has been renamed to `onClick`.
|
|
180
|
+
- `Date`'s `onClick` prop now uses Typescript `HTMLInputElement` type.
|
|
181
|
+
- `Number` supports new `onClick` prop with TypeScript `HTMLInputElement` type.
|
|
182
|
+
|
|
183
|
+
### Context
|
|
184
|
+
|
|
185
|
+
`Text`'s `onClick` prop was applied to the wrapping element rather than the `input` element itself.
|
|
186
|
+
This caused difficulty disambiguating clicks on the `input` from clicks on other parts of the component, such as adornments.
|
|
187
|
+
To provide a temporary solution without breaking changes, an `onInputClick` prop was added for clicks on the `input` itself.
|
|
188
|
+
In 5.0, we're fixing the issue and removing the workaround, so `onClick` will now be applied directly to the `input` element,
|
|
189
|
+
which will result in a change to the TypeScript types.
|
|
190
|
+
`Date` and `Number` components will leverage the new callback, so their types will change to match.
|
|
191
|
+
|
|
192
|
+
### Migration steps
|
|
193
|
+
|
|
194
|
+
- Replace all usage of `Text`'s `onInputClick` prop with `onClick`.
|
|
195
|
+
- Change callbacks passed to `Date`'s `onClick` prop to use an event with the TypeScript `HTMLInputElement` type.
|
|
196
|
+
- Change callbacks passed to `Number`'s `onClick` prop to use an event with the TypeScript `HTMLInputElement` type.
|
|
197
|
+
|
|
198
|
+
## `Collapsible Panel`, `Color`, `ControlGroup`, `Dropdown`, `Image`, `Link `, `Menu`, `Modal`, `Switch`, and `Text` converted to functional components
|
|
199
|
+
|
|
200
|
+
### Change
|
|
201
|
+
`Collapsible Panel`, `Color`, `ControlGroup`, `File`, `Image`, `Link `, `Menu`, `Modal`, `Select.Option`, `Slider`, `SlidingPanel.Panel`, `Switch`, `Table.HeadDropdownCell`, and `Text` converted from class to functional components.
|
|
202
|
+
|
|
203
|
+
### Context
|
|
204
|
+
React recommends defining components as functions instead of classes. Functional components don't have `ref` support.
|
|
205
|
+
Components that formerly supported class focus methods (`Color`, `Link`, `Menu`, `Number`, `Select.Option`, `Switch`, `TabBar.Tab`, `Table.HeadDropdownCell`, `Text`) no longer do so.
|
|
206
|
+
|
|
207
|
+
### Migration steps
|
|
208
|
+
- Convert all usage of `ref` to `elementRef`.
|
|
209
|
+
- For `Number` and `Text`: Replace all usage of the class `focus` method with passing a `ref` to the `inputRef` prop and calling `inputRef.current.focus()`.
|
|
210
|
+
- For `Button`, `Color`, `Link`, `Menu`, `Select.Option`, and `TabBar.Tab`: Replace all usage of the class `focus` method with passing a `ref` to the `elementRef` prop and calling `elementRef.current.focus()`.
|
|
211
|
+
- For `Table.HeadDropdownCell`: Replace all usage of the class `focus` method with passing a `ref` to the `buttonRef` prop and calling `buttonRef.current.focus()`.
|
|
212
|
+
- For `Switch`: Replace all usage of the class `focus` method with passing a `ref` to the `toggleRef` prop and calling `toggleRef.current.focus()`.
|
|
213
|
+
- For `Slider`: Replace all usage of the class `focus` method with passing a `ref` to the `thumbRef` prop and calling `thumbRef.current.focus()`.
|
|
214
|
+
- For `Dropdown`: Replace all usage of the class `focus` method with passing `focus()` on the element passed to `toggle`.
|
|
215
|
+
|
|
216
|
+
## `Table.HeadDropdownCell`'s `defaultPlacement` prop has been removed
|
|
217
|
+
|
|
218
|
+
### Change
|
|
219
|
+
`Table.HeadDropdownCell` no longer accepts a `defaultPlacement` prop.
|
|
220
|
+
|
|
221
|
+
### Context
|
|
222
|
+
Previously `Table.HeadDropdownCell` accepted (and passed down to its `Popover` instance) a `defaultPlacement` prop. To avoid layout and positioning issues this is no longer able to be overridden in favor of only supporting `bottom` placement of the `Table.HeadDropdownCell`'s `Popover`.
|
|
223
|
+
|
|
224
|
+
### Migration steps
|
|
225
|
+
- Remove any passing of `defaultPlacement` prop to `Table.HeadDropdownCell`
|
|
226
|
+
|
|
227
|
+
## Deprecation
|
|
228
|
+
|
|
229
|
+
### Deprecated `RadioList`'s `direction` prop
|
|
230
|
+
|
|
231
|
+
#### Change
|
|
232
|
+
`RadioList`'s `direction` prop has been deprecated and will be removed in the next major version.
|
|
233
|
+
|
|
234
|
+
#### Context
|
|
235
|
+
When having a single select option list displayed horizontally, `RadioBar` provides a better user interface and experience.
|
|
236
|
+
|
|
237
|
+
#### Migration steps
|
|
238
|
+
- Replace any instances of `RadioList` that use `direction="row"` with `RadioBar`.
|
|
239
|
+
|
|
240
|
+
### Deprecated `Card`'s `selected` prop
|
|
241
|
+
|
|
242
|
+
#### Change
|
|
243
|
+
`Card`'s `selected` prop has been deprecated and will be removed in the next major version.
|
|
244
|
+
|
|
245
|
+
#### Context
|
|
246
|
+
There was a concept of a `Card` being selected (driven by the `selected` prop) but it failed to meet proper accessibility standards. This was due to the individual `Card` component not having the proper context of how it was being used to correctly apply aria attributes such as `aria-role` and `aria-checked`.
|
|
247
|
+
|
|
248
|
+
#### Migration steps
|
|
249
|
+
- General guidance remains to prefer more purpose specific input components such as `Multiselect`, `RadioList`, or `Switch` over using `Card` in an input context due to the accessibility considerations they contain. If possible consider removing any selectable `Card` usage and migrating to those components instead.
|
|
250
|
+
- If continuing to use `Card` as an input, remove any passing of the `selected` prop to `Card` and provide selected state accessibility affordance instead by using a radio button or checkbox in the `Card` such as in the `Card.Header`. Be sure to handle aria attributes such as [aria-role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles) and [aria-checked](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-checked) as your use case may require.
|
|
251
|
+
|
|
252
|
+
### Deprecated `Select`'s `appearance="link"` value
|
|
253
|
+
|
|
254
|
+
#### Change
|
|
255
|
+
`Select`'s `appearance="link"` value has been deprecated and will be removed in the next major version.
|
|
256
|
+
|
|
257
|
+
#### Context
|
|
258
|
+
Using a `Select` with `appearance="link"` can be misleading because links are primarily used for navigation, while a `Select` is designed for making a choice, which involves a different interaction model.
|
|
259
|
+
This difference can cause confusion and conflict with accessibility expectations, as dropdowns have different interaction requirements compared to inline links.
|
|
260
|
+
|
|
261
|
+
#### Migration steps
|
|
262
|
+
- Replace Select with appearance="link" by using either appearance="default" or appearance="subtle", depending on design requirements.
|
|
263
|
+
|
|
264
|
+
## Markdown users `react-markdown`
|
|
265
|
+
|
|
266
|
+
### Change
|
|
267
|
+
The `commonmark-react-markdown` library has been replaced with `react-markdown` for rendering markdown.
|
|
268
|
+
|
|
269
|
+
### Context
|
|
270
|
+
`commonmark-react-markdown` does not support GitHub flavored markdown (GFM) and is no longer actively-maintained. `react-markdown` supports GFM via plugins. In addition to other features, this primarily enables rendering tables within markdown.
|
|
271
|
+
|
|
272
|
+
`react-markdown` ships as ESM which can cause issues with test runners like `jest`.
|
|
273
|
+
|
|
274
|
+
### Migration steps
|
|
275
|
+
- If using `jest`, add the following to your `jest.config` file:
|
|
276
|
+
```
|
|
277
|
+
moduleNameMapper: {
|
|
278
|
+
'react-markdown': '<rootDir>../../node_modules/react-markdown/react-markdown.min.js',
|
|
279
|
+
},
|
|
280
|
+
```
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
## `Modal.Footer` layout
|
|
284
|
+
|
|
285
|
+
### Change
|
|
286
|
+
|
|
287
|
+
`Modal.Footer` has a new `layout` prop to control the layout and styling of children.
|
|
288
|
+
|
|
289
|
+
### Context
|
|
290
|
+
|
|
291
|
+
Common use cases for content within Modal.Footer include:
|
|
292
|
+
- A single Button
|
|
293
|
+
- A pair of Buttons
|
|
294
|
+
- Documentation links
|
|
295
|
+
- Controls (e.g., Checkbox, Switch)
|
|
296
|
+
- Wizards
|
|
297
|
+
- Static content
|
|
298
|
+
- Combinations of the above
|
|
299
|
+
|
|
300
|
+
In 4.x versions, `Modal.Footer` handled styling for a single `Button` or pair of `Button`s correctly. Other use cases required custom styling. In 5.x `Button`'s no longer have margin from sibling `[data-inline]` elements, which would break the use cases previously supported by `Modal.Footer` in 4.x.
|
|
301
|
+
|
|
302
|
+
To simplify the implementation and ensure consistent design for these common use cases, the default styling for `Modal.Footer` has been updated. Now, these common use cases will display correctly without requiring additional styling.
|
|
303
|
+
|
|
304
|
+
A new prop `layout` has been added to `Modal.Footer` to control styling children.
|
|
305
|
+
The default value, `auto`, uses the updated styling, while `layout="none"` will revert to the 4.x styling, in cases where the new layout is incorrect.
|
|
306
|
+
|
|
307
|
+
### Migration steps
|
|
308
|
+
**For a single Button or pair of Buttons**: No migration is necessary—existing code should work as before.
|
|
309
|
+
|
|
310
|
+
**For other common use cases (e.g., Checkbox, static content, wizards)**: Any custom layout or styling previously applied may no longer be needed and can be removed.
|
|
311
|
+
|
|
312
|
+
**For custom layouts**: If a custom layout is still required, revert to the 4.x styling by setting the `layout="none"` prop and/or refactor styles to work with the `auto` styling.
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
## `Button`, `Clickable', `CollapsiblePanel`, and `Menu.Item`'s default `disabled` behavior is now `dimmed`
|
|
316
|
+
|
|
317
|
+
### Change
|
|
318
|
+
|
|
319
|
+
`Button`, `Clickable`, `CollapsiblePanel`, and `Menu.Item` components with the `disabled` prop will, by default, exhibit the `dimmed` behavior.
|
|
320
|
+
To revert to the original behavior (where the component cannot receive focus), set disabled="disabled".
|
|
321
|
+
|
|
322
|
+
For testing, a new `data-test-disabled` test hook has been added.
|
|
323
|
+
|
|
324
|
+
### Context
|
|
325
|
+
|
|
326
|
+
Whenever possible `disabled` components should be avoided.
|
|
327
|
+
|
|
328
|
+
A `disabled="disabled"` component is less accessible, since it is less discoverable to keyboard users by not receiving focus. Additionally, `Tooltip`s associated with these components become inaccessible, since the component cannot receive focus to activate the `Tooltip`.
|
|
329
|
+
|
|
330
|
+
`disabled="dimmed"` was introduced in v4.25.0 to provide a more inclusive approach to disabling components. Dimmed components remain focusable, are semantically marked as disabled, and still prevent the user from activating the component.
|
|
331
|
+
|
|
332
|
+
By using the `"dimmed"` state as the default, the user experience of these components is more inclusive.
|
|
333
|
+
|
|
334
|
+
### Migration Steps
|
|
335
|
+
|
|
336
|
+
#### Validate new default `dimmed` behavior
|
|
337
|
+
|
|
338
|
+
Validate your application and components work as expected with the new default behavior.
|
|
339
|
+
If the component can benefit from being more discoverable and accessible, leave the `disabled` prop as is.
|
|
340
|
+
|
|
341
|
+
#### Use `disabled="disabled"` sparingly
|
|
342
|
+
Assess whether you want to retain the button’s original disabled behavior (non-focusable, non-interactive, etc.). If that's the case, set disabled="disabled".
|
|
343
|
+
|
|
344
|
+
#### Updating tests
|
|
345
|
+
When testing, it is recommended to test the user interaction rather than component's state or props (e.g. test that the user cannot activate the control).
|
|
346
|
+
|
|
347
|
+
Matchers like `toBeDisabled()` will no longer pass when using `disabled` or `disabled="dimmed"`.
|
|
348
|
+
If it is necessary to test the components state, use the new test hook state attribute.
|
|
349
|
+
|
|
350
|
+
* For `dimmed` components, replace `expect(button).toBeDisabled()` with:
|
|
351
|
+
```
|
|
352
|
+
expect(button).toHaveAttribute('data-test-disabled');
|
|
353
|
+
```
|
|
354
|
+
|
|
355
|
+
* For `disabled="disabled" components, `toBeDisabled` will continue to work.
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
## `Slider`'s test hook `[data-test="handle"]` renamed to `[data-test="thumb"]`
|
|
359
|
+
|
|
360
|
+
### Change
|
|
361
|
+
|
|
362
|
+
`Slider`'s test hook `[data-test="handle"]` has been renamed to `[data-test="thumb"]`.
|
|
363
|
+
|
|
364
|
+
### Context
|
|
365
|
+
|
|
366
|
+
`Slider`'s draggable control has been renamed from "handle" to "thumb" to better align with
|
|
367
|
+
the more commonly used name for this element (e.g. ARIA refers to it as "thumb"). Also,
|
|
368
|
+
the name "handle" can be misleading, as it could be confused with event handlers, etc.
|
|
369
|
+
|
|
370
|
+
### Migration steps
|
|
371
|
+
|
|
372
|
+
Replace all usage of `Slider`'s test hook `[data-test="handle"]` with `[data-test="thumb"]`.
|
|
373
|
+
|
|
374
|
+
## `Dropdown`'s `toggle` prop now requires an HTML Element or `React.forwardRef`
|
|
375
|
+
|
|
376
|
+
### Change
|
|
377
|
+
|
|
378
|
+
`Dropdown`'s `toggle` prop no longer accepts React class components or functional components without `React.forwardRef`.
|
|
379
|
+
Components passed to `Dropdown`'s `toggle` prop must accept a `ref` that returns an HTML element.
|
|
380
|
+
|
|
381
|
+
### Context
|
|
382
|
+
|
|
383
|
+
`Dropdown` previously leveraged `Popover`s usage of `findDOMNode` to find the underlying HTML element for a React component.
|
|
384
|
+
Given that `findDOMNode` is deprecated and scheduled for removal in React 19, we're removing our usages of it.
|
|
385
|
+
|
|
386
|
+
### Migration Steps
|
|
387
|
+
|
|
388
|
+
If you are using `Button`, `Clickable`, or `Link` components as the `toggle`, no migration is necessary.
|
|
389
|
+
|
|
390
|
+
Otherwise:
|
|
391
|
+
- Convert any components passed to `toggle` to `React.forwardRef` components that forward the ref to an HTML element.
|
|
392
|
+
- If you previously passed a component wrapped in `Tooltip` to `toggle`, you need to forward the ref to the wrapped component.
|
|
393
|
+
- Consider using `react-ui`'s `Button`, `Clickable`, or `Link` components for the `toggle` prop.
|
|
394
|
+
- See the React docs for alternatives to `findDOMNode` usage: https://18.react.dev/reference/react-dom/findDOMNode#alternatives
|
|
395
|
+
|
|
396
|
+
## `Popover`'s `anchor` prop now requires an HTML element
|
|
397
|
+
|
|
398
|
+
### Change
|
|
399
|
+
|
|
400
|
+
`Popover`'s `anchor` prop now requires a ref to a HTML element and no longer accepts refs to React class component instances.
|
|
401
|
+
|
|
402
|
+
### Context
|
|
403
|
+
|
|
404
|
+
`Popover`s has previously used `findDOMNode` to find the underlying HTML element for a React component.
|
|
405
|
+
Given that `findDOMNode` is deprecated and scheduled for removal in React 19, we're removing our usages of it.
|
|
406
|
+
|
|
407
|
+
### Migration Steps
|
|
408
|
+
|
|
409
|
+
Pass a `ref` that refers to an HTML Element to the `anchor` prop.
|
|
410
|
+
|
|
411
|
+
- For `react-ui` components, use `elementRef` to get a `ref` to the underlying HTML element.
|
|
412
|
+
- For custom components, use `forwardRef`.
|
|
413
|
+
- See the React docs for alternatives to `findDOMNode` usage: https://18.react.dev/reference/react-dom/findDOMNode#alternatives
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
## `Switch`'s test hook `[data-test="button"]` renamed to `[data-test="toggle"]`
|
|
417
|
+
|
|
418
|
+
### Change
|
|
419
|
+
|
|
420
|
+
`Switch`'s test hook `[data-test="button"]` has been renamed to `[data-test="toggle"]`.
|
|
421
|
+
|
|
422
|
+
### Context
|
|
423
|
+
|
|
424
|
+
`Switch`'s underlying toggle element has been renamed from "button" to "toggle" to be less generic and describe its function of switching between states.
|
|
425
|
+
|
|
426
|
+
### Migration steps
|
|
427
|
+
|
|
428
|
+
Replace all usage of `Switch`'s test hook `[data-test="button"]` with `[data-test="toggle"]`.
|