@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/CHANGELOG.md
CHANGED
|
@@ -22,9 +22,12 @@ Bug Fixes:
|
|
|
22
22
|
|
|
23
23
|
Typescript:
|
|
24
24
|
* `MultiselectChangeHandler` type now includes optional `reason` property in callback data (SUI-7222).
|
|
25
|
+
* `Message` now correctly handles whitespace around `Link` (SUI-6271).
|
|
25
26
|
|
|
26
27
|
Docs:
|
|
27
28
|
* Added missing documentation for `ComboBox`'s `inputId` prop (SUI-7090).
|
|
29
|
+
Bug Fixes:
|
|
30
|
+
* `Select`'s `filter` no longer has `aria-owns` attribute when blurred (SUI-7208).
|
|
28
31
|
|
|
29
32
|
4.42.0 - February 5, 2025
|
|
30
33
|
----------
|
|
@@ -287,6 +290,7 @@ Bug Fixes:
|
|
|
287
290
|
Deprecations:
|
|
288
291
|
* `NavigationProvider`'s `prefix` prop has been deprecated and will be removed in the next major version. Use the `transformUrl` prop instead. (SUI-6239)
|
|
289
292
|
|
|
293
|
+
|
|
290
294
|
4.29.0 - April 2, 2024
|
|
291
295
|
----------
|
|
292
296
|
Bug Fixes:
|
package/CHANGELOG.v5.mdx
ADDED
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
Change Log
|
|
2
|
+
============
|
|
3
|
+
|
|
4
|
+
5.0.0-beta.2 - March 5, 2025
|
|
5
|
+
----------
|
|
6
|
+
API Changes:
|
|
7
|
+
* `Popover` now defaults `hideArrow` to `false` in all themes (SUI-7061).
|
|
8
|
+
* `Select` now supports `defaultPlacement` when `filter` is not set (SUI-7326).
|
|
9
|
+
* `Card`'s `selected` prop has been deprecated. See migration guide for details (SUI-7292).
|
|
10
|
+
* `Code`'s `indentChars` prop has been removed (SUI-5989).
|
|
11
|
+
* `Color` no longer exports method `isValidHex`. Instead use `@splunk/ui-utils/color/isValidHexColor` (SUI-2552).
|
|
12
|
+
* `RadioList`'s `direction` prop has been deprecated. See migration guide for details (SUI-7342).
|
|
13
|
+
* `Dropdown` no longer supports a `focus` method. See migration guide for details (SUI-7364).
|
|
14
|
+
* `ControlGroup` now defaults `labelPosition` to `top` (SUI-7331).
|
|
15
|
+
|
|
16
|
+
Bug Fixes:
|
|
17
|
+
* `Table`'s `actions` now correctly applies focus style in the `HeadCell`(SUI-7310).
|
|
18
|
+
|
|
19
|
+
TypeScript:
|
|
20
|
+
* `Select`'s type now matches component functionality by supporting the `repositionMode` prop (SUI-7326).
|
|
21
|
+
|
|
22
|
+
5.0.0-beta.1 - February 20, 2025
|
|
23
|
+
----------
|
|
24
|
+
`react-ui@5.0.0` is a major release with significant design updates.
|
|
25
|
+
* Many components have been updated to have similar appearance and behaviors across themes.
|
|
26
|
+
* As a result of a unified approach to spacing and layout, layout changes are expected. See the migration guide for specific details and guidance.
|
|
27
|
+
|
|
28
|
+
New Features:
|
|
29
|
+
* `Avatar` is now available to use instead of `Monogram` and supports images (SUI-3227).
|
|
30
|
+
* `CollapsiblePanel` now supports a new `appearance` prop with `"default"` and `"subtle"` values (SUI-5098).
|
|
31
|
+
* `DefinitionList` can configure the separator character used to separate key-value pairs with the new `separatorCharacter` prop (SUI-5557).
|
|
32
|
+
* Enterprise themes no has a default value for the separator character (SUI-5557).
|
|
33
|
+
* `Link` now supports a new `appearance` prop with `"default"` and `"inline"` values (SUI-6003).
|
|
34
|
+
* `Markdown` uses `react-markdown` for rendering markdown content.
|
|
35
|
+
* `Markdown` supports rendering tables (SUI-5624).
|
|
36
|
+
* `Markdown` now can render heading levels 5 and 6.
|
|
37
|
+
* Blockquotes are now rendered by default
|
|
38
|
+
* All types for custom renderers have been adapted to match types of `react-markdown`.
|
|
39
|
+
* Renderers do not support `propTypes` due to an incompatibility with `react-markdown` types.
|
|
40
|
+
* `Modal.Footer` supports a new prop `layout` with `"auto"`(default) and `"none"` values (SUI-6678).
|
|
41
|
+
* `Modal` no longer closes when clicking outside (SUI-5898).
|
|
42
|
+
* `Number` supports a new `onClick` prop (SUI-3418).
|
|
43
|
+
* `Select` now has a consistent visual error design across themes (SUI-6432).
|
|
44
|
+
* `Slider` supports new `thumbRef` prop to target the slider thumb element (SUI-7101).
|
|
45
|
+
* `Switch` supports a new `toggleRef` prop to target the underlying toggle element (SUI-7101).
|
|
46
|
+
* `TabBar.Tab` now generates a `tabId` automatically if `tabId` prop is not passed (SUI-7033).
|
|
47
|
+
* `TabLayout.Panel`s support a new `inset` prop (default `true`) to control padding in the panel (SUI-5705).
|
|
48
|
+
* `Text` now always displays the clear button when the `canClear` prop is present and a value is entered (SUI-6986).
|
|
49
|
+
* `Typography`'s `lineHeight` supports a new scale: `"single"`, `"tight"`, `"snug"`, `
|
|
50
|
+
* `WaitSpinner` now supports prop `size="large"` for Enterprise themes (SUI-6080)."comfortable"`, `"relaxed"`, `"spacious"`, `"normal"`.
|
|
51
|
+
* New `Layout` component can be used to arrange components with standard spacing between them (SUI-6678).
|
|
52
|
+
* New `Prose` component can be used to style content components for long-form text content (SUI-5504).
|
|
53
|
+
|
|
54
|
+
API Changes:
|
|
55
|
+
* `react` and `react-dom` peer dependencies are now `"^16.8.0 || ^17.0.0 || ^18.0.0"`.
|
|
56
|
+
* Adopt `@splunk/themes@1.0.0`
|
|
57
|
+
* `Paragraph`, `Heading`, and `List` no longer have margin outside their border box (SUI-5683).
|
|
58
|
+
* Components that support the `inline` prop no longer add margin-left when a sibling to another `inline` element. See the migration guide for details. (SUI-6678).
|
|
59
|
+
* `Button`, `Clickable`, `CollapsiblePanel`, and `Menu.Item` default behavior for the `disabled` prop is now `"dimmed"` (SUI-7200).
|
|
60
|
+
* The `disabled` prop supports a new `"disabled"` value.
|
|
61
|
+
* A new `data-test-disabled` test hook has been added for testing.
|
|
62
|
+
|
|
63
|
+
* `Accordion`'s `inset` prop now defaults to `true`. Unified `Accordion`'s `inset` padding values to match `CollapsiblePanel` (SUI-2559).
|
|
64
|
+
|
|
65
|
+
* `Button`'s `appearance` prop no longer supports the `"flat"`, `"pill"`, or `"toggle"` values (SUI-6561).
|
|
66
|
+
* `Button`'s `selected` prop has been removed (SUI-6058).
|
|
67
|
+
* `Button` no longer supports the `error` prop.
|
|
68
|
+
|
|
69
|
+
* `Card` and `Card.Footer`'s `showBorder` prop has been removed (SUI-6577).
|
|
70
|
+
|
|
71
|
+
* `Clickable`'s `NavigationProvider` `prefix` prop has been removed (SUI-7103).
|
|
72
|
+
|
|
73
|
+
* `CollapsiblePanel`'s `inset` prop now defaults to `true` (SUI-5760).
|
|
74
|
+
* `CollapsiblePanel`'s `onRequestClose` and `onRequestOpen` props have been removed. Use `onChange` instead (SUI-6226).
|
|
75
|
+
* `CollapsiblePanel`'s `titleWithActions` prop has been removed. Use `actions` prop instead (SUI-6355).
|
|
76
|
+
|
|
77
|
+
* `Color`'s `hideInput` prop now defaults to `false` in both Enterprise and Prisma themes, making the input field always visible by default (SUI-6459).
|
|
78
|
+
* `Color`'s `defaultPalette` is now equal to the data viz static colors (SUI-6405).
|
|
79
|
+
|
|
80
|
+
* `ComboBox`, `ControlGroup`, and `StaticContent`'s `size` prop has been removed (SUI-6400).
|
|
81
|
+
|
|
82
|
+
* `Concertina` has been removed (SUI-5741).
|
|
83
|
+
|
|
84
|
+
* `ControlGroup`'s label text is now left aligned in Enterprise theme when `labelPosition="left"` (SUI-6408).
|
|
85
|
+
|
|
86
|
+
* `DefinitionList`'s `termWidth` prop now requires fully qualified style value as a string, eg. `"120px"` (SUI-5557).
|
|
87
|
+
* `DefinitionList.Term` and `DefinitionList.Description` now require the `children` prop.
|
|
88
|
+
|
|
89
|
+
* `Dropdown`'s `toggle` prop no longer accepts React class components or functional components without `React.forwardRef` (SUI-3532).
|
|
90
|
+
|
|
91
|
+
* `Heading`'s `level='s'` and `level='ss'` have been removed. See migration guide for details (SUI-5583).
|
|
92
|
+
* `Heading` now requires the `children` prop (SUI-5665).
|
|
93
|
+
|
|
94
|
+
* `JSONTree`'s `expandChildren="withShiftModifier"` value has been removed. Use the `expandChildrenOnShiftKey` prop instead (SUI-5808).
|
|
95
|
+
* `JSONTree`'s `expandChildrenOnShiftKey` prop now defaults to `true` (SUI-5841).
|
|
96
|
+
* `JSONTree`'s `expandChildren` prop has been renamed to `defaultExpanded` and no longer affects node expansion behavior after the initial render (SUI-5813).
|
|
97
|
+
|
|
98
|
+
* `Link` now renders an `a` element instead of a `button` element when disabled (SUI-6007).
|
|
99
|
+
|
|
100
|
+
* `List`'s `type` prop has been removed. Use CSS to style the `list-style-type` property (SUI-5622).
|
|
101
|
+
|
|
102
|
+
* `Menu`'s `retainFocus` prop has been removed. Use `focusMode` prop instead (SUI-6164).
|
|
103
|
+
* `Menu`'s `focusMode` prop now defaults to `roving` (SUI-6164).
|
|
104
|
+
* `Menu.Item` and `Search.Option`'s `icon` prop has been removed. Use `startAdornment` and/or `endAdornment` instead (SUI-6762).
|
|
105
|
+
|
|
106
|
+
* `Message` no longer supports `appearance="banner"` (SUI-6123).
|
|
107
|
+
* `Message.Link` has been removed. Use `Link` instead (SUI-6124).
|
|
108
|
+
* `Message` now has a maximum width (SUI-6122).
|
|
109
|
+
|
|
110
|
+
* `Modal`'s `returnFocus` prop is now required (SUI-5996).
|
|
111
|
+
* `Modal.Header` no longer supports the `onRequestClose` prop (SUI-5933).
|
|
112
|
+
* The close button in `Modal.Header` now calls the `onRequestClose` handler from `Modal`.
|
|
113
|
+
* If closed with the close button in `Modal.Header`, the `reason` parameter of `Modal`'s `onRequestClose` prop will be set to `"clickCloseButton"`.
|
|
114
|
+
* `Modal` with on `onRequestClose` set will display the close button in the `Modal.Header` by default.
|
|
115
|
+
* This can be hidden by passing the `hideCloseButton` prop to `Modal.Header` (SUI-5933).
|
|
116
|
+
* `Modal.Footer` has updated default styling. This can be reverted by setting `layout="none"` (SUI-6678).
|
|
117
|
+
|
|
118
|
+
* `Monogram`'s `xlarge` option for `size` prop has been removed (SUI-3222).
|
|
119
|
+
|
|
120
|
+
* `Number`'s `placeholder` and `useSyntheticPlaceholder` props have been removed (SUI-7070).
|
|
121
|
+
|
|
122
|
+
* `Popover`'s `anchor` prop now requires a ref to a HTML element and no longer accepts refs to React class component instances (SUI-3532).
|
|
123
|
+
* `Popover` is now center-aligned in both Enterprise and Prisma themes (SUI-7038).
|
|
124
|
+
|
|
125
|
+
* `Progress` has been redesigned:
|
|
126
|
+
* Native HTML `<progress>` element is used
|
|
127
|
+
* New visual design to allow all parts of the component to hit required contrast ratios.
|
|
128
|
+
* `Progress` `type="warning"` has been removed (SUI-6491).
|
|
129
|
+
|
|
130
|
+
* `RadioBar`'s `appearance` prop has been removed (SUI-6386).
|
|
131
|
+
* `RadioBar`'s `icon` prop has been removed (SUI-7104).
|
|
132
|
+
|
|
133
|
+
* `Search`'s icon placement is now at the start of the input in all themes (SUI-6242).
|
|
134
|
+
|
|
135
|
+
* `Select`'s `appearance` prop no longer supports the `"primary"`, `"pill"`, `"flat"`, or `"toggle"` values. (SUI-6440, SUI-6866).
|
|
136
|
+
* The default value of `appearance` is now `"default"`.
|
|
137
|
+
|
|
138
|
+
* `Slider`'s test hook `[data-test="handle"]` has been renamed to `[data-test="thumb"]` (SUI-7101).
|
|
139
|
+
|
|
140
|
+
* `Switch`'s test hook `[data-test="button"]` has been renamed to `[data-test="toggle"]` (SUI-7101).
|
|
141
|
+
|
|
142
|
+
* `Table.HeadDropdownCell`'s `defaultPlacement` prop has been removed (SUI-6742).
|
|
143
|
+
* `Table.HeadDropdownCell` supports a new `buttonRef` prop to target the underlying button (SUI-6843).
|
|
144
|
+
|
|
145
|
+
* `TabBar`'s and `TabLayout`'s `appearance` prop has been removed (SUI-6835).
|
|
146
|
+
* `TabBar`'s and `TabLayout`'s `iconSize` prop has been removed (SUI-6960).
|
|
147
|
+
|
|
148
|
+
* `TabLayout`'s unused `count` prop was removed (SUI-7047).
|
|
149
|
+
|
|
150
|
+
* `Text`'s `appearance` prop has been removed. Use `Search` component instead of `appearance="search"` (SUI-5978).
|
|
151
|
+
* `Text`'s `placeholder` and `useSyntheticPlaceholder` props have been removed (SUI-5979, SUI-5977).
|
|
152
|
+
* `Text`'s `multiline`, `rowsMax`, `rowsMin` props have been removed (SUI-5975).
|
|
153
|
+
* `Text`'s `onInputClick` prop has been renamed to `onClick` (SUI-5952).
|
|
154
|
+
* `Text` and `TextArea` now only apply the `className` prop to the root element (SUI-6214).
|
|
155
|
+
|
|
156
|
+
* `TextArea`'s `canClear` prop has been removed (SUI-6061).
|
|
157
|
+
* `TextArea`'s `placeholder` prop has been removed (SUI-6061).
|
|
158
|
+
|
|
159
|
+
* `Tooltip` prop `defaultPlacement` no longer supports value `"theme"`.
|
|
160
|
+
* `defaultPlacement` now defaults to `"above"` for all themes.
|
|
161
|
+
* `Tooltip` `appearance` is now `"normal"` for all themes.
|
|
162
|
+
|
|
163
|
+
* `Typography`'s `weight` prop no longer supports numeric values. Use the equivalent keyword value instead (SUI-5679).
|
|
164
|
+
* `Typography`'s `withReset` prop has been removed (SUI-5686).
|
|
165
|
+
* `Typography` has been updated to align with the themes mixin:
|
|
166
|
+
* `variant` no longer supports `"title7"` and `"footnote"`.
|
|
167
|
+
* `size` no longer supports `56`, `36`, `32`, and `10`.
|
|
168
|
+
* `lineHeight` no longer supports pixel values.
|
|
169
|
+
|
|
170
|
+
* `WaitSpinner` can now be styled with `styled-components` (SUI-6213).
|
|
171
|
+
* `WaitSpinner`'s `elementRef` is now set to the component's root element (SUI-6213).
|
|
172
|
+
|
|
173
|
+
Bug Fixes:
|
|
174
|
+
* `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).
|
|
175
|
+
* `Link`s are now underlined on focus and hover to improve accessibility (SUI-2835).
|
|
176
|
+
* `ControlGroup`'s error text now has a new visual style and renders an icon to improve accessibility (SUI-6395).
|
|
177
|
+
* `Color`'s selected swatch checkmark color is now white or black based on the swatch value to have improved contrast (SUI-6404).
|
|
178
|
+
* `Popover`'s arrow border color in Enterprise themes now matches `Popover`'s content background color (SUI-6671).
|
|
179
|
+
* `Number`'s step buttons now show in Enterprise themes when disabled (SUI-7073).
|
|
180
|
+
* `Card.Header` no longer erroneously adds extra padding-bottom when it is the last child within its parent (SUI-6818).
|
|
181
|
+
|
|
182
|
+
Docs:
|
|
183
|
+
* `WaitSpinner`'s `children` prop was improperly documented in PropTypes as being allowed. This has been fixed (SUI-6081).
|
|
184
|
+
|
|
185
|
+
TypeScript:
|
|
186
|
+
* `Color`'s `ExpandClickHandler` type has been removed (SUI-6405).
|
|
187
|
+
* `ComboBox`, `Date`, `Multiselect`, `Number`, `Search`, `Select`, and `Text` no longer use the TypeScript `HTMLTextAreaElement` type in event handlers and refs (SUI-6206).
|
|
188
|
+
* `Date`'s `onClick` prop now uses TypeScript `HTMLInputElement` type (SUI-5952).
|
|
189
|
+
* `TextArea`'s `inputRef` prop is now `HTMLTextAreaElement`.
|
|
190
|
+
* `TextArea`'s `TextAreaChangeHandler` `event` type is now `React.ChangeEvent<HTMLTextAreaElement>`.
|
|
191
|
+
|
|
192
|
+
Deprecations:
|
|
193
|
+
* `Accordion` has been deprecated and will be removed in a future major version. Use `CollapsiblePanel`'s `SingleOpenPanelGroup` API instead (SUI-5827).
|
|
194
|
+
* `Monogram` has been deprecated and will be removed in a future major version. Use `Avatar` instead (SUI-5608).
|
|
195
|
+
* `Select`'s `"link"` value of the `appearance` prop has been deprecated and will be removed in the next major version. See the migration guide for details (SUI-6724).
|
package/Calendar.js
CHANGED
|
@@ -88,17 +88,17 @@
|
|
|
88
88
|
var p = e.n(f);
|
|
89
89
|
// CONCATENATED MODULE: external "styled-components"
|
|
90
90
|
const y = require("styled-components");
|
|
91
|
-
var
|
|
91
|
+
var Y = e.n(y);
|
|
92
92
|
// CONCATENATED MODULE: ./src/Calendar/DayStyles.ts
|
|
93
93
|
/* Element used to prevent vertical shift on firefox when the font-weight is increased with $selected */
|
|
94
|
-
var
|
|
94
|
+
var h = Y().div.withConfig({
|
|
95
95
|
displayName: "DayStyles__StyledValue",
|
|
96
96
|
componentId: "sc-1nryhyt-0"
|
|
97
97
|
})([ "left:0;line-height:", ";position:absolute;top:0;width:100%;" ], (0, d.pick)({
|
|
98
98
|
enterprise: "2em",
|
|
99
99
|
prisma: "36px "
|
|
100
100
|
}));
|
|
101
|
-
var m =
|
|
101
|
+
var m = Y().div.withConfig({
|
|
102
102
|
displayName: "DayStyles__StyledInner",
|
|
103
103
|
componentId: "sc-1nryhyt-1"
|
|
104
104
|
})([ "border:", ";border-radius:", ";color:", ";height:", ";position:relative;text-align:center;width:", ";" ], (0,
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
enterprise: "calc(2em - 2px)",
|
|
122
122
|
prisma: "36px"
|
|
123
123
|
}));
|
|
124
|
-
var b =
|
|
124
|
+
var b = Y().td.withConfig({
|
|
125
125
|
displayName: "DayStyles__StyledCell",
|
|
126
126
|
componentId: "sc-1nryhyt-2"
|
|
127
127
|
})([ "", ";cursor:pointer;", ";", ";" ], d.mixins.reset("table-cell"), (0, d.pickVariant)("$today", {
|
|
@@ -136,11 +136,11 @@
|
|
|
136
136
|
false: (0, y.css)([ "&:focus{& > ", "{box-shadow:", ";}}" ], /* sc-sel */ m, d.variables.focusShadow)
|
|
137
137
|
}), (0, d.pickVariant)("$selected", {
|
|
138
138
|
true: (0, d.pick)({
|
|
139
|
-
enterprise: (0, y.css)([ "& > ", "{border-color:", ";}" ], /* sc-sel */ m, d.variables.
|
|
139
|
+
enterprise: (0, y.css)([ "& > ", "{border-color:", ";}" ], /* sc-sel */ m, d.variables.contentColorAccent),
|
|
140
140
|
prisma: (0, y.css)([ "& > ", "{background-color:", ";font-weight:", ";}" ], /* sc-sel */ m, d.variables.interactiveColorOverlaySelected, d.variables.fontWeightBold)
|
|
141
141
|
}),
|
|
142
142
|
false: (0, d.pick)({
|
|
143
|
-
enterprise: (0, y.css)([ "&:hover{& > ", "{background-color:", ";color:", ";}}" ], /* sc-sel */ m, d.variables.backgroundColorHover, d.variables.
|
|
143
|
+
enterprise: (0, y.css)([ "&:hover{& > ", "{background-color:", ";color:", ";}}" ], /* sc-sel */ m, d.variables.backgroundColorHover, d.variables.contentColorLink),
|
|
144
144
|
prisma: (0, y.css)([ "&:hover{& > ", "{background-color:", ";}}" ], /* sc-sel */ m, d.variables.interactiveColorOverlayHover)
|
|
145
145
|
})
|
|
146
146
|
}));
|
|
@@ -189,7 +189,7 @@
|
|
|
189
189
|
};
|
|
190
190
|
function w(e) {
|
|
191
191
|
var a = e.active, n = a === void 0 ? false : a, l = e.locale, o = l === void 0 ? "en_US" : l, c = e.onClick, u = e.onKeyDown, s = e.selected, d = s === void 0 ? false : s, v = e.today, f = v === void 0 ? false : v, p = e.value, y = M(e, [ "active", "locale", "onClick", "onKeyDown", "selected", "today", "value" ]);
|
|
192
|
-
var
|
|
192
|
+
var Y = (0, r.useCallback)((function(e) {
|
|
193
193
|
e.preventDefault();
|
|
194
194
|
c === null || c === void 0 ? void 0 : c(e, {
|
|
195
195
|
value: p
|
|
@@ -210,16 +210,16 @@
|
|
|
210
210
|
"data-test": "day-of-month",
|
|
211
211
|
"data-active-day": n,
|
|
212
212
|
"data-is-today": f,
|
|
213
|
-
onClick:
|
|
213
|
+
onClick: Y,
|
|
214
214
|
onKeyDown: D,
|
|
215
215
|
$today: f,
|
|
216
216
|
$selected: d
|
|
217
|
-
}, y), t().createElement(m, null, t().createElement(
|
|
217
|
+
}, y), t().createElement(m, null, t().createElement(h, null, k)));
|
|
218
218
|
}
|
|
219
219
|
w.propTypes = k;
|
|
220
220
|
/* harmony default export */ const C = w;
|
|
221
221
|
// CONCATENATED MODULE: ./src/Calendar/DateTableStyles.ts
|
|
222
|
-
var S =
|
|
222
|
+
var S = Y().table.withConfig({
|
|
223
223
|
displayName: "DateTableStyles__Styled",
|
|
224
224
|
componentId: "sc-1lbrjq0-0"
|
|
225
225
|
})([ "", ";table-layout:fixed;border-spacing:", ";width:", ";margin:", ";" ], d.mixins.reset("table"), (0,
|
|
@@ -233,7 +233,7 @@
|
|
|
233
233
|
enterprise: "0",
|
|
234
234
|
prisma: "-8px"
|
|
235
235
|
}));
|
|
236
|
-
var O =
|
|
236
|
+
var O = Y().th.withConfig({
|
|
237
237
|
displayName: "DateTableStyles__StyledTableHeader",
|
|
238
238
|
componentId: "sc-1lbrjq0-1"
|
|
239
239
|
})([ "", ";text-align:center;padding-bottom:", ";color:", ";font-size:", ";" ], d.mixins.reset("table-cell"), (0,
|
|
@@ -302,18 +302,18 @@
|
|
|
302
302
|
var p = [];
|
|
303
303
|
while (f.isSameOrBefore(r)) {
|
|
304
304
|
var y = f.format("YYYY-MM-DD");
|
|
305
|
-
var
|
|
306
|
-
var
|
|
305
|
+
var Y = y === v;
|
|
306
|
+
var h = y === s;
|
|
307
307
|
var m = y === a;
|
|
308
308
|
p.push( t().createElement(C, {
|
|
309
309
|
key: y,
|
|
310
310
|
locale: l,
|
|
311
311
|
onClick: o,
|
|
312
312
|
onKeyDown: c,
|
|
313
|
-
active: u ? m :
|
|
314
|
-
today: n &&
|
|
313
|
+
active: u ? m : Y,
|
|
314
|
+
today: n && Y,
|
|
315
315
|
value: y,
|
|
316
|
-
selected:
|
|
316
|
+
selected: h
|
|
317
317
|
}));
|
|
318
318
|
f.add(1, "day");
|
|
319
319
|
}
|
|
@@ -349,8 +349,8 @@
|
|
|
349
349
|
}
|
|
350
350
|
function V(e) {
|
|
351
351
|
var a = e.displayValue, r = e.highlightToday, n = r === void 0 ? false : r, l = e.labelledBy, o = e.locale, c = o === void 0 ? "en_US" : o, u = e.onChange, s = e.onInternalChange, f = e.selectedValue, p = e.todayValue, y = E(e, [ "displayValue", "highlightToday", "labelledBy", "locale", "onChange", "onInternalChange", "selectedValue", "todayValue" ]);
|
|
352
|
-
var
|
|
353
|
-
var m =
|
|
352
|
+
var Y = (0, d.useSplunkTheme)(), h = Y.family;
|
|
353
|
+
var m = h === "prisma" ? "dd" : "ddd";
|
|
354
354
|
var b = i()(a, "YYYY-MM-DD", c);
|
|
355
355
|
var g = i()(f, "YYYY-MM-DD", c);
|
|
356
356
|
var M = i()(b).startOf("month");
|
|
@@ -415,21 +415,21 @@
|
|
|
415
415
|
value: i()(t, "YYYY-MM-DD").add(1, "y").format("YYYY-MM-DD")
|
|
416
416
|
});
|
|
417
417
|
};
|
|
418
|
-
var
|
|
418
|
+
var A = function e(a, r) {
|
|
419
419
|
var t = r.value;
|
|
420
420
|
a.preventDefault();
|
|
421
421
|
s === null || s === void 0 ? void 0 : s(a, {
|
|
422
422
|
value: i()(t, "YYYY-MM-DD").startOf("week").format("YYYY-MM-DD")
|
|
423
423
|
});
|
|
424
424
|
};
|
|
425
|
-
var
|
|
425
|
+
var N = function e(a, r) {
|
|
426
426
|
var t = r.value;
|
|
427
427
|
a.preventDefault();
|
|
428
428
|
s === null || s === void 0 ? void 0 : s(a, {
|
|
429
429
|
value: i()(t, "YYYY-MM-DD").endOf("week").format("YYYY-MM-DD")
|
|
430
430
|
});
|
|
431
431
|
};
|
|
432
|
-
var
|
|
432
|
+
var z = function e(a, r) {
|
|
433
433
|
var t = (0, v.keycode)(a.nativeEvent);
|
|
434
434
|
switch (t) {
|
|
435
435
|
case "enter":
|
|
@@ -470,11 +470,11 @@
|
|
|
470
470
|
break;
|
|
471
471
|
|
|
472
472
|
case "home":
|
|
473
|
-
|
|
473
|
+
A(a, r);
|
|
474
474
|
break;
|
|
475
475
|
|
|
476
476
|
case "end":
|
|
477
|
-
|
|
477
|
+
N(a, r);
|
|
478
478
|
break;
|
|
479
479
|
|
|
480
480
|
default:
|
|
@@ -487,7 +487,7 @@
|
|
|
487
487
|
highlightToday: n,
|
|
488
488
|
locale: c,
|
|
489
489
|
onChange: u,
|
|
490
|
-
onKeyDown:
|
|
490
|
+
onKeyDown: z,
|
|
491
491
|
selectedDate: g,
|
|
492
492
|
selectedValue: f,
|
|
493
493
|
startDate: M,
|
|
@@ -503,40 +503,34 @@
|
|
|
503
503
|
/* harmony default export */ const B = V;
|
|
504
504
|
// CONCATENATED MODULE: external "lodash/omit"
|
|
505
505
|
const R = require("lodash/omit");
|
|
506
|
-
var
|
|
506
|
+
var A = e.n(R);
|
|
507
507
|
// CONCATENATED MODULE: external "@splunk/react-icons/ChevronLeft"
|
|
508
|
-
const
|
|
509
|
-
var
|
|
508
|
+
const N = require("@splunk/react-icons/ChevronLeft");
|
|
509
|
+
var z = e.n(N);
|
|
510
510
|
// CONCATENATED MODULE: external "@splunk/react-icons/ChevronRight"
|
|
511
511
|
const K = require("@splunk/react-icons/ChevronRight");
|
|
512
512
|
var H = e.n(K);
|
|
513
513
|
// CONCATENATED MODULE: external "@splunk/react-icons/enterprise/ChevronLeft"
|
|
514
514
|
const $ = require("@splunk/react-icons/enterprise/ChevronLeft");
|
|
515
|
-
var
|
|
515
|
+
var L = e.n($);
|
|
516
516
|
// CONCATENATED MODULE: external "@splunk/react-icons/enterprise/ChevronRight"
|
|
517
|
-
const
|
|
518
|
-
var W = e.n(
|
|
517
|
+
const U = require("@splunk/react-icons/enterprise/ChevronRight");
|
|
518
|
+
var W = e.n(U);
|
|
519
519
|
// CONCATENATED MODULE: external "@splunk/ui-utils/i18n"
|
|
520
520
|
const X = require("@splunk/ui-utils/i18n");
|
|
521
521
|
// CONCATENATED MODULE: external "@splunk/react-ui/Button"
|
|
522
522
|
const F = require("@splunk/react-ui/Button");
|
|
523
523
|
var G = e.n(F);
|
|
524
524
|
// CONCATENATED MODULE: ./src/Calendar/MonthHeaderStyles.ts
|
|
525
|
-
var J =
|
|
525
|
+
var J = Y().div.withConfig({
|
|
526
526
|
displayName: "MonthHeaderStyles__StyledBox",
|
|
527
527
|
componentId: "sc-18bmbh7-0"
|
|
528
|
-
})([ "display:flex;position:relative;
|
|
529
|
-
var Q =
|
|
528
|
+
})([ "display:flex;align-items:center;position:relative;padding:0 2px;margin-bottom:", ";" ], d.variables.spacingSmall);
|
|
529
|
+
var Q = Y().span.withConfig({
|
|
530
530
|
displayName: "MonthHeaderStyles__StyledHeading",
|
|
531
531
|
componentId: "sc-18bmbh7-1"
|
|
532
|
-
})([ "display:block;text-align:center;
|
|
533
|
-
|
|
534
|
-
enterprise: "capitalize",
|
|
535
|
-
prisma: "uppercase"
|
|
536
|
-
}), (0, d.pick)({
|
|
537
|
-
prisma: (0, y.css)([ "font-size:20px;font-weight:bold;color:", ";" ], d.variables.contentColorActive)
|
|
538
|
-
}));
|
|
539
|
-
var Z = h()(G()).withConfig({
|
|
532
|
+
})([ "", " display:block;text-align:center;flex:1 0 1px;" ], d.mixins.typography("title2"));
|
|
533
|
+
var Z = Y()(G()).withConfig({
|
|
540
534
|
displayName: "MonthHeaderStyles__StyledButton",
|
|
541
535
|
componentId: "sc-18bmbh7-2"
|
|
542
536
|
})([ "flex:0 0 auto;" ]);
|
|
@@ -607,10 +601,10 @@
|
|
|
607
601
|
value: r
|
|
608
602
|
});
|
|
609
603
|
}), [ o, c ]);
|
|
610
|
-
var
|
|
604
|
+
var Y = (0, r.useCallback)((function(e) {
|
|
611
605
|
y(e, -1);
|
|
612
606
|
}), [ y ]);
|
|
613
|
-
var
|
|
607
|
+
var h = (0, r.useCallback)((function(e) {
|
|
614
608
|
y(e, 1);
|
|
615
609
|
}), [ y ]);
|
|
616
610
|
var m = i()(c, "YYYY-MM-DD", l);
|
|
@@ -620,19 +614,19 @@
|
|
|
620
614
|
|
|
621
615
|
return t().createElement(d.SplunkThemeProvider, {
|
|
622
616
|
density: f ? "comfortable" : p
|
|
623
|
-
}, t().createElement(J,
|
|
617
|
+
}, t().createElement(J, A()(u, "onChange"), t().createElement(Z, {
|
|
624
618
|
appearance: "subtle",
|
|
625
|
-
icon: v ? t().createElement(
|
|
619
|
+
icon: v ? t().createElement(L(), {
|
|
626
620
|
hideDefaultTooltip: true,
|
|
627
621
|
screenReaderText: g,
|
|
628
622
|
size: 1
|
|
629
|
-
}) : t().createElement(
|
|
623
|
+
}) : t().createElement(z(), {
|
|
630
624
|
"aria-label": g,
|
|
631
625
|
height: "24",
|
|
632
626
|
width: "24"
|
|
633
627
|
}),
|
|
634
628
|
"data-test": "previous-month",
|
|
635
|
-
onClick:
|
|
629
|
+
onClick: Y
|
|
636
630
|
}), t().createElement(Q, {
|
|
637
631
|
id: a,
|
|
638
632
|
"data-test": "header-label"
|
|
@@ -648,7 +642,7 @@
|
|
|
648
642
|
width: "24"
|
|
649
643
|
}),
|
|
650
644
|
"data-test": "next-month",
|
|
651
|
-
onClick:
|
|
645
|
+
onClick: h
|
|
652
646
|
})));
|
|
653
647
|
}
|
|
654
648
|
oe.propTypes = re;
|
|
@@ -657,16 +651,10 @@
|
|
|
657
651
|
const ce = require("@splunk/react-ui/Box");
|
|
658
652
|
var ue = e.n(ce);
|
|
659
653
|
// CONCATENATED MODULE: ./src/Calendar/CalendarStyles.ts
|
|
660
|
-
var se =
|
|
654
|
+
var se = Y()(ue()).withConfig({
|
|
661
655
|
displayName: "CalendarStyles__StyledBox",
|
|
662
656
|
componentId: "sc-18925wt-0"
|
|
663
|
-
})([ "width:
|
|
664
|
-
enterprise: "220px",
|
|
665
|
-
prisma: "332px"
|
|
666
|
-
}), (0, d.pick)({
|
|
667
|
-
enterprise: "8px",
|
|
668
|
-
prisma: d.variables.spacingLarge
|
|
669
|
-
}));
|
|
657
|
+
})([ "width:332px;padding:", ";" ], d.variables.spacingLarge);
|
|
670
658
|
// CONCATENATED MODULE: ./src/utils/updateReactRef.ts
|
|
671
659
|
/**
|
|
672
660
|
* Updates a React ref. Callback refs and object refs (from `createRef` and `useRef`) are supported.
|
|
@@ -699,26 +687,26 @@
|
|
|
699
687
|
}, ve.apply(null, arguments);
|
|
700
688
|
}
|
|
701
689
|
function fe(e, a) {
|
|
702
|
-
return me(e) ||
|
|
690
|
+
return me(e) || he(e, a) || ye(e, a) || pe();
|
|
703
691
|
}
|
|
704
692
|
function pe() {
|
|
705
693
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
706
694
|
}
|
|
707
695
|
function ye(e, a) {
|
|
708
696
|
if (e) {
|
|
709
|
-
if ("string" == typeof e) return
|
|
697
|
+
if ("string" == typeof e) return Ye(e, a);
|
|
710
698
|
var r = {}.toString.call(e).slice(8, -1);
|
|
711
|
-
return "Object" === r && e.constructor && (r = e.constructor.name), "Map" === r || "Set" === r ? Array.from(e) : "Arguments" === r || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ?
|
|
699
|
+
return "Object" === r && e.constructor && (r = e.constructor.name), "Map" === r || "Set" === r ? Array.from(e) : "Arguments" === r || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? Ye(e, a) : void 0;
|
|
712
700
|
}
|
|
713
701
|
}
|
|
714
|
-
function
|
|
702
|
+
function Ye(e, a) {
|
|
715
703
|
(null == a || a > e.length) && (a = e.length);
|
|
716
704
|
for (var r = 0, t = Array(a); r < a; r++) {
|
|
717
705
|
t[r] = e[r];
|
|
718
706
|
}
|
|
719
707
|
return t;
|
|
720
708
|
}
|
|
721
|
-
function
|
|
709
|
+
function he(e, a) {
|
|
722
710
|
var r = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
|
|
723
711
|
if (null != r) {
|
|
724
712
|
var t, n, l, o, i = [], c = !0, u = !1;
|
|
@@ -790,13 +778,12 @@
|
|
|
790
778
|
/**
|
|
791
779
|
* Place focus on the active day.
|
|
792
780
|
*/ var Ce = function e(a) {
|
|
793
|
-
var r;
|
|
794
|
-
|
|
795
|
-
t === null || t === void 0 ? void 0 : t.focus();
|
|
781
|
+
var r = a === null || a === void 0 ? void 0 : a.querySelector(Me);
|
|
782
|
+
r === null || r === void 0 ? void 0 : r.focus();
|
|
796
783
|
};
|
|
797
784
|
function Se(e) {
|
|
798
|
-
var a = e.describedBy, n = e.elementRef, l = e.highlightToday, o = e.labelledBy, u = e.locale, s = u === void 0 ? "en_US" : u, d = e.mockDate, v = e.onChange, f = e.required, p = e.value, y = p === void 0 ? i()().format("YYYY-MM-DD") : p,
|
|
799
|
-
var
|
|
785
|
+
var a = e.describedBy, n = e.elementRef, l = e.highlightToday, o = e.labelledBy, u = e.locale, s = u === void 0 ? "en_US" : u, d = e.mockDate, v = e.onChange, f = e.required, p = e.value, y = p === void 0 ? i()().format("YYYY-MM-DD") : p, Y = be(e, [ "describedBy", "elementRef", "highlightToday", "labelledBy", "locale", "mockDate", "onChange", "required", "value" ]);
|
|
786
|
+
var h = (0, r.useState)(y), m = fe(h, 2), b = m[0], g = m[1];
|
|
800
787
|
var M = (0, r.useState)(d || ke(s)), D = fe(M, 2), k = D[0], w = D[1];
|
|
801
788
|
var C = (0, r.useState)(null), S = fe(C, 2), O = S[0], x = S[1];
|
|
802
789
|
var E = (0, r.useRef)((0, c.createDOMID)("header"));
|
|
@@ -822,7 +809,7 @@
|
|
|
822
809
|
}), [ s, d, k ]);
|
|
823
810
|
(0, r.useEffect)((function() {
|
|
824
811
|
if (O === "day") {
|
|
825
|
-
Ce(I);
|
|
812
|
+
Ce(I.current);
|
|
826
813
|
}
|
|
827
814
|
}), [ b, O ]);
|
|
828
815
|
var _ = (0, r.useCallback)((function(e, a) {
|
|
@@ -846,7 +833,7 @@
|
|
|
846
833
|
"aria-describedby": a,
|
|
847
834
|
"aria-required": f,
|
|
848
835
|
"data-test": "calendar"
|
|
849
|
-
},
|
|
836
|
+
}, Y, {
|
|
850
837
|
elementRef: q
|
|
851
838
|
}), t().createElement(ie, {
|
|
852
839
|
headingId: E.current,
|