@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/Typography.js
CHANGED
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
// EXPORTS
|
|
63
63
|
e.d(r, {
|
|
64
64
|
Typography: () => /* reexport */ g,
|
|
65
|
-
default: () => /* reexport */
|
|
65
|
+
default: () => /* reexport */ h
|
|
66
66
|
});
|
|
67
67
|
// CONCATENATED MODULE: external "react"
|
|
68
68
|
const t = require("react");
|
|
@@ -70,15 +70,15 @@
|
|
|
70
70
|
// CONCATENATED MODULE: external "prop-types"
|
|
71
71
|
const a = require("prop-types");
|
|
72
72
|
var o = e.n(a);
|
|
73
|
-
// CONCATENATED MODULE: external "@splunk/themes/mixins"
|
|
74
|
-
const i = require("@splunk/themes/mixins");
|
|
75
|
-
var l = e.n(i);
|
|
76
73
|
// CONCATENATED MODULE: external "styled-components"
|
|
77
|
-
const
|
|
78
|
-
var
|
|
74
|
+
const i = require("styled-components");
|
|
75
|
+
var l = e.n(i);
|
|
76
|
+
// CONCATENATED MODULE: external "@splunk/themes/mixins"
|
|
77
|
+
const s = require("@splunk/themes/mixins");
|
|
78
|
+
var u = e.n(s);
|
|
79
79
|
// CONCATENATED MODULE: ./src/Typography/Typography.tsx
|
|
80
|
-
function
|
|
81
|
-
return
|
|
80
|
+
function p() {
|
|
81
|
+
return p = Object.assign ? Object.assign.bind() : function(e) {
|
|
82
82
|
for (var r = 1; r < arguments.length; r++) {
|
|
83
83
|
var t = arguments[r];
|
|
84
84
|
for (var n in t) {
|
|
@@ -86,9 +86,9 @@
|
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
return e;
|
|
89
|
-
},
|
|
89
|
+
}, p.apply(null, arguments);
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function c(e, r) {
|
|
92
92
|
if (null == e) return {};
|
|
93
93
|
var t, n, a = f(e, r);
|
|
94
94
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -110,64 +110,49 @@
|
|
|
110
110
|
}
|
|
111
111
|
return t;
|
|
112
112
|
}
|
|
113
|
-
|
|
114
|
-
// TODO: TypographyPropsBase should extend from TypographyParams (SUI-5343)
|
|
115
|
-
// Weight is omitted because the types conflict since weight no longer supports number values in the mixin
|
|
116
|
-
// but they are supported in the component to avoid a breaking change
|
|
117
|
-
var c = {
|
|
113
|
+
var y = {
|
|
118
114
|
children: o().node.isRequired,
|
|
119
115
|
as: o().string.isRequired,
|
|
120
116
|
elementRef: o().oneOfType([ o().func, o().object ]),
|
|
121
|
-
family: o().oneOf([ "sansSerif", "monospace" ]),
|
|
122
|
-
variant: o().oneOf(
|
|
123
|
-
size: o().
|
|
124
|
-
lineHeight: o().
|
|
117
|
+
family: o().oneOf([ "sansSerif", "monospace", "title" ]),
|
|
118
|
+
variant: o().oneOf(s.typographyVariants),
|
|
119
|
+
size: o().oneOf([ 24, 20, 18, 16, 14, 12 ]),
|
|
120
|
+
lineHeight: o().oneOf([ "single", "tight", "snug", "comfortable", "relaxed", "spacious", "normal" ]),
|
|
125
121
|
color: o().oneOf([ "active", "default", "disabled", "inverted", "muted", "inherit" ]),
|
|
126
|
-
weight: o().oneOf([
|
|
127
|
-
withReset: o().bool
|
|
122
|
+
weight: o().oneOf([ "light", "normal", "semiBold", "bold", "extraBold", "heavy" ])
|
|
128
123
|
};
|
|
129
|
-
var d =
|
|
124
|
+
var d = l().p.withConfig({
|
|
130
125
|
displayName: "Typography__StyledTypography",
|
|
131
126
|
componentId: "cgxs34-0"
|
|
132
127
|
})([ "", "" ], (function(e) {
|
|
133
128
|
var r = e.$variant, t = e.$typographyParams;
|
|
134
|
-
return r ?
|
|
129
|
+
return r ? u().typography(r, t) : u().typography(t);
|
|
135
130
|
}));
|
|
136
|
-
var h = {
|
|
137
|
-
300: "light",
|
|
138
|
-
400: "normal",
|
|
139
|
-
500: "semiBold",
|
|
140
|
-
600: "semiBold",
|
|
141
|
-
700: "bold",
|
|
142
|
-
800: "extraBold",
|
|
143
|
-
900: "heavy"
|
|
144
|
-
};
|
|
145
131
|
/**
|
|
146
132
|
* Typography renders text content with styling based on the Splunk Design System.
|
|
147
133
|
*/ function g(e) {
|
|
148
|
-
var r = e.children,
|
|
134
|
+
var r = e.children, a = e.as, o = e.elementRef, i = e.variant, l = e.family, s = e.size, u = e.lineHeight, f = e.color, y = e.weight, g = c(e, [ "children", "as", "elementRef", "variant", "family", "size", "lineHeight", "color", "weight" ]);
|
|
149
135
|
// @docs-props-type TypographyPropsBase
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
};
|
|
136
|
+
var h = (0, t.useMemo)((function() {
|
|
137
|
+
return {
|
|
138
|
+
family: l,
|
|
139
|
+
size: s,
|
|
140
|
+
lineHeight: u,
|
|
141
|
+
color: f,
|
|
142
|
+
weight: y
|
|
143
|
+
};
|
|
144
|
+
}), [ f, l, u, s, y ]);
|
|
160
145
|
|
|
161
|
-
return n().createElement(d,
|
|
162
|
-
as:
|
|
163
|
-
ref:
|
|
146
|
+
return n().createElement(d, p({
|
|
147
|
+
as: a,
|
|
148
|
+
ref: o,
|
|
164
149
|
"data-test": "typography",
|
|
165
|
-
$variant:
|
|
166
|
-
$typographyParams:
|
|
150
|
+
$variant: i,
|
|
151
|
+
$typographyParams: h
|
|
167
152
|
}, g), r);
|
|
168
153
|
}
|
|
169
|
-
g.propTypes =
|
|
170
|
-
/* harmony default export */ const
|
|
154
|
+
g.propTypes = y;
|
|
155
|
+
/* harmony default export */ const h = g;
|
|
171
156
|
// CONCATENATED MODULE: ./src/Typography/index.ts
|
|
172
157
|
module.exports = r;
|
|
173
158
|
/******/})();
|
package/WaitSpinner.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 = t => {
|
|
12
|
+
/******/ var r = t && t.__esModule ?
|
|
13
|
+
/******/ () => t["default"]
|
|
14
|
+
/******/ : () => t
|
|
15
15
|
/******/;
|
|
16
|
-
e.d(
|
|
17
|
-
a:
|
|
16
|
+
e.d(r, {
|
|
17
|
+
a: r
|
|
18
18
|
});
|
|
19
|
-
/******/ return
|
|
19
|
+
/******/ return r;
|
|
20
20
|
/******/ };
|
|
21
21
|
/******/ })();
|
|
22
22
|
/******/
|
|
23
23
|
/******/ /* webpack/runtime/define property getters */
|
|
24
24
|
/******/ (() => {
|
|
25
25
|
/******/ // define getter functions for harmony exports
|
|
26
|
-
/******/ e.d = (
|
|
27
|
-
/******/ for (var
|
|
28
|
-
/******/ if (e.o(
|
|
29
|
-
/******/ Object.defineProperty(
|
|
26
|
+
/******/ e.d = (t, r) => {
|
|
27
|
+
/******/ for (var n in r) {
|
|
28
|
+
/******/ if (e.o(r, n) && !e.o(t, n)) {
|
|
29
|
+
/******/ Object.defineProperty(t, n, {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get:
|
|
31
|
+
get: r[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, t) => Object.prototype.hasOwnProperty.call(e, t)
|
|
41
41
|
/******/;
|
|
42
42
|
})();
|
|
43
43
|
/******/
|
|
@@ -56,168 +56,137 @@
|
|
|
56
56
|
/******/ };
|
|
57
57
|
/******/ })();
|
|
58
58
|
/******/
|
|
59
|
-
/************************************************************************/ var
|
|
59
|
+
/************************************************************************/ var t = {};
|
|
60
60
|
// ESM COMPAT FLAG
|
|
61
|
-
e.r(
|
|
61
|
+
e.r(t);
|
|
62
62
|
// EXPORTS
|
|
63
|
-
e.d(
|
|
64
|
-
default: () => /* reexport */
|
|
63
|
+
e.d(t, {
|
|
64
|
+
default: () => /* reexport */ x
|
|
65
65
|
});
|
|
66
66
|
// CONCATENATED MODULE: external "react"
|
|
67
|
-
const
|
|
68
|
-
var
|
|
67
|
+
const r = require("react");
|
|
68
|
+
var n = e.n(r);
|
|
69
69
|
// CONCATENATED MODULE: external "prop-types"
|
|
70
|
-
const
|
|
71
|
-
var
|
|
70
|
+
const a = require("prop-types");
|
|
71
|
+
var i = e.n(a);
|
|
72
72
|
// CONCATENATED MODULE: external "@splunk/react-ui/AnimationToggle"
|
|
73
73
|
const s = require("@splunk/react-ui/AnimationToggle");
|
|
74
|
-
// CONCATENATED MODULE: external "@splunk/themes"
|
|
75
|
-
const o = require("@splunk/themes");
|
|
76
74
|
// CONCATENATED MODULE: external "@splunk/ui-utils/i18n"
|
|
77
|
-
const
|
|
75
|
+
const o = require("@splunk/ui-utils/i18n");
|
|
78
76
|
// CONCATENATED MODULE: external "styled-components"
|
|
79
|
-
const
|
|
80
|
-
var
|
|
77
|
+
const l = require("styled-components");
|
|
78
|
+
var c = e.n(l);
|
|
79
|
+
// CONCATENATED MODULE: external "@splunk/themes"
|
|
80
|
+
const f = require("@splunk/themes");
|
|
81
81
|
// CONCATENATED MODULE: ./src/WaitSpinner/WaitSpinnerStyles.ts
|
|
82
|
-
var
|
|
82
|
+
var u = c().div.withConfig({
|
|
83
83
|
displayName: "WaitSpinnerStyles__Styled",
|
|
84
84
|
componentId: "sc-1nu971z-0"
|
|
85
|
-
})([ "", ";align-items:center;" ],
|
|
86
|
-
var
|
|
87
|
-
var
|
|
88
|
-
var
|
|
89
|
-
var y =
|
|
85
|
+
})([ "", ";align-items:center;" ], f.mixins.reset("inline-flex"));
|
|
86
|
+
var d = (0, l.keyframes)([ "100%{transform:rotate(360deg);}" ]);
|
|
87
|
+
var m = (0, l.keyframes)([ "0%{transform:scale(0);opacity:0;}100%{transform:scale(1);opacity:1;}" ]);
|
|
88
|
+
var p = "2.07s";
|
|
89
|
+
var y = c().svg.withConfig({
|
|
90
90
|
displayName: "WaitSpinnerStyles__StyledSvg",
|
|
91
91
|
componentId: "sc-1nu971z-1"
|
|
92
|
-
})([ "", " ", "" ], (0,
|
|
93
|
-
small:
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
},
|
|
97
|
-
medium: {
|
|
98
|
-
enterprise: (0, c.css)([ "width:19px;height:19px;" ]),
|
|
99
|
-
prisma: (0, c.css)([ "width:24px;height:24px;" ])
|
|
100
|
-
},
|
|
101
|
-
large: {
|
|
102
|
-
enterprise: (0, c.css)([ "width:28px;height:28px;" ]),
|
|
103
|
-
prisma: (0, c.css)([ "width:40px;height:40px;" ])
|
|
104
|
-
}
|
|
92
|
+
})([ "", " ", "" ], (0, f.pickVariant)("$size", {
|
|
93
|
+
small: (0, l.css)([ "width:16px;height:16px;" ]),
|
|
94
|
+
medium: (0, l.css)([ "width:24px;height:24px;" ]),
|
|
95
|
+
large: (0, l.css)([ "width:40px;height:40px;" ])
|
|
105
96
|
}), (function(e) {
|
|
106
|
-
var
|
|
107
|
-
return
|
|
108
|
-
enterprise: (0, c.css)([ "transform-origin:center;animation:", " 1.2s steps(64) infinite;" ], p),
|
|
109
|
-
prisma: (0, c.css)([ "animation:", " ", " infinite linear,", " 500ms cubic-bezier(0.01,0,0,1);" ], p, u, d)
|
|
110
|
-
});
|
|
97
|
+
var t = e.$animated;
|
|
98
|
+
return t && (0, l.css)([ "animation:", " ", " infinite linear,", " 500ms cubic-bezier(0.01,0,0,1);" ], d, p, m);
|
|
111
99
|
}));
|
|
112
|
-
var
|
|
113
|
-
var
|
|
114
|
-
var g =
|
|
115
|
-
displayName: "
|
|
100
|
+
var v = (0, l.keyframes)([ "0%{stroke-dasharray:110 10;stroke-dashoffset:-5.5;animation-timing-function:cubic-bezier(0.8,0,0.83,1);}50%{stroke-dasharray:26 94;stroke-dashoffset:-152;}100%{stroke-dasharray:110 10;stroke-dashoffset:-246.5;animation-timing-function:cubic-bezier(0.33,0,0.67,1);}" ]);
|
|
101
|
+
var h = (0, l.keyframes)([ "0%{stroke-dasharray:7 113;stroke-dashoffset:3;animation-timing-function:cubic-bezier(0.8,0,0.83,1);}50%{stroke-dasharray:90 30;stroke-dashoffset:-60;}100%{stroke-dasharray:7 113;stroke-dashoffset:-238;animation-timing-function:cubic-bezier(0.33,0,0.67,1);}" ]);
|
|
102
|
+
var g = c().circle.withConfig({
|
|
103
|
+
displayName: "WaitSpinnerStyles__StyledBasePath",
|
|
116
104
|
componentId: "sc-1nu971z-2"
|
|
117
|
-
})([ "stroke:", ";stroke-width:2;fill:transparent;", " stroke-dasharray:110 10;stroke-dashoffset:-5.5;" ],
|
|
118
|
-
var
|
|
119
|
-
return
|
|
105
|
+
})([ "stroke:", ";stroke-width:2;fill:transparent;", " stroke-dasharray:110 10;stroke-dashoffset:-5.5;" ], f.variables.contentColorDisabled, (function(e) {
|
|
106
|
+
var t = e.$animated;
|
|
107
|
+
return t && (0, l.css)([ "animation:", " ", " infinite;animation-fill-mode:backwards;" ], v, p);
|
|
120
108
|
}));
|
|
121
|
-
var
|
|
122
|
-
displayName: "
|
|
109
|
+
var b = c().circle.withConfig({
|
|
110
|
+
displayName: "WaitSpinnerStyles__StyledFillPath",
|
|
123
111
|
componentId: "sc-1nu971z-3"
|
|
124
112
|
})([ "fill:transparent;stroke-width:2;stroke:", ";stroke-dasharray:7 113;stroke-dashoffset:3;", "" ], (0,
|
|
125
|
-
|
|
126
|
-
small:
|
|
127
|
-
medium:
|
|
128
|
-
large:
|
|
113
|
+
f.pickVariant)("$size", {
|
|
114
|
+
small: f.variables.contentColorDefault,
|
|
115
|
+
medium: f.variables.contentColorDefault,
|
|
116
|
+
large: f.variables.interactiveColorPrimary
|
|
129
117
|
}), (function(e) {
|
|
130
|
-
var
|
|
131
|
-
return
|
|
132
|
-
}));
|
|
133
|
-
var b = m().circle.withConfig({
|
|
134
|
-
displayName: "WaitSpinnerStyles__StyledEnterpriseCircle",
|
|
135
|
-
componentId: "sc-1nu971z-4"
|
|
136
|
-
})([ "fill:transparent;stroke:", ";stroke-width:2px;", "" ], (0, o.pick)({
|
|
137
|
-
enterprise: {
|
|
138
|
-
dark: o.variables.white,
|
|
139
|
-
light: o.variables.gray60
|
|
140
|
-
},
|
|
141
|
-
prisma: o.variables.contentColorMuted
|
|
142
|
-
}), (0, o.pick)({
|
|
143
|
-
enterprise: (0, c.css)([ "stroke-dasharray:34 19;" ])
|
|
118
|
+
var t = e.$animated;
|
|
119
|
+
return t && (0, l.css)([ "animation:", " ", " infinite;" ], h, p);
|
|
144
120
|
}));
|
|
145
121
|
// CONCATENATED MODULE: ./src/WaitSpinner/WaitSpinner.tsx
|
|
146
|
-
function
|
|
147
|
-
return
|
|
148
|
-
for (var
|
|
149
|
-
var
|
|
150
|
-
for (var
|
|
151
|
-
({}).hasOwnProperty.call(
|
|
122
|
+
function k() {
|
|
123
|
+
return k = Object.assign ? Object.assign.bind() : function(e) {
|
|
124
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
125
|
+
var r = arguments[t];
|
|
126
|
+
for (var n in r) {
|
|
127
|
+
({}).hasOwnProperty.call(r, n) && (e[n] = r[n]);
|
|
152
128
|
}
|
|
153
129
|
}
|
|
154
130
|
return e;
|
|
155
|
-
},
|
|
131
|
+
}, k.apply(null, arguments);
|
|
156
132
|
}
|
|
157
|
-
function
|
|
133
|
+
function w(e, t) {
|
|
158
134
|
if (null == e) return {};
|
|
159
|
-
var
|
|
135
|
+
var r, n, a = S(e, t);
|
|
160
136
|
if (Object.getOwnPropertySymbols) {
|
|
161
|
-
var
|
|
162
|
-
for (
|
|
163
|
-
|
|
137
|
+
var i = Object.getOwnPropertySymbols(e);
|
|
138
|
+
for (n = 0; n < i.length; n++) {
|
|
139
|
+
r = i[n], t.includes(r) || {}.propertyIsEnumerable.call(e, r) && (a[r] = e[r]);
|
|
164
140
|
}
|
|
165
141
|
}
|
|
166
|
-
return
|
|
142
|
+
return a;
|
|
167
143
|
}
|
|
168
|
-
function S(e,
|
|
144
|
+
function S(e, t) {
|
|
169
145
|
if (null == e) return {};
|
|
170
|
-
var
|
|
171
|
-
for (var
|
|
172
|
-
if ({}.hasOwnProperty.call(e,
|
|
173
|
-
if (
|
|
174
|
-
|
|
146
|
+
var r = {};
|
|
147
|
+
for (var n in e) {
|
|
148
|
+
if ({}.hasOwnProperty.call(e, n)) {
|
|
149
|
+
if (t.includes(n)) continue;
|
|
150
|
+
r[n] = e[n];
|
|
175
151
|
}
|
|
176
152
|
}
|
|
177
|
-
return
|
|
153
|
+
return r;
|
|
178
154
|
}
|
|
179
155
|
var z = {
|
|
180
|
-
elementRef:
|
|
181
|
-
screenReaderText:
|
|
182
|
-
size:
|
|
156
|
+
elementRef: i().oneOfType([ i().func, i().object ]),
|
|
157
|
+
screenReaderText: i().oneOfType([ i().string, i().oneOf([ "null" ]) ]),
|
|
158
|
+
size: i().oneOf([ "small", "medium", "large" ])
|
|
183
159
|
};
|
|
184
160
|
function O(e) {
|
|
185
|
-
var
|
|
161
|
+
var t = e.elementRef, r = e.screenReaderText, a = r === void 0 ? (0, o._)("Waiting") : r, i = e.size, l = i === void 0 ? "small" : i, c = w(e, [ "elementRef", "screenReaderText", "size" ]);
|
|
186
162
|
// @docs-props-type WaitSpinnerPropsBase
|
|
187
|
-
|
|
188
|
-
var p = (0, s.useAnimationToggle)() === "on";
|
|
189
|
-
var d = (0, o.useSplunkTheme)(), u = d.isPrisma;
|
|
190
|
-
var h = u ? "0 0 40 40" : "0 0 19 19";
|
|
163
|
+
var f = (0, s.useAnimationToggle)() === "on";
|
|
191
164
|
|
|
192
|
-
return
|
|
193
|
-
"data-test": "wait-spinner"
|
|
194
|
-
|
|
195
|
-
|
|
165
|
+
return n().createElement(u, k({
|
|
166
|
+
"data-test": "wait-spinner",
|
|
167
|
+
ref: t
|
|
168
|
+
}, c), n().createElement(y, {
|
|
169
|
+
viewBox: "0 0 40 40",
|
|
196
170
|
version: "1.1",
|
|
197
171
|
xmlns: "http://www.w3.org/2000/svg",
|
|
198
|
-
|
|
199
|
-
$
|
|
200
|
-
|
|
201
|
-
}, n && i().createElement("title", null, n), i().createElement("g", null, u ? i().createElement(i().Fragment, null, i().createElement(g, {
|
|
172
|
+
$animated: f,
|
|
173
|
+
$size: l
|
|
174
|
+
}, a && n().createElement("title", null, a), n().createElement("g", null, n().createElement(g, {
|
|
202
175
|
r: "19",
|
|
203
176
|
cx: "20",
|
|
204
177
|
cy: "20",
|
|
205
|
-
$animated:
|
|
206
|
-
$size:
|
|
207
|
-
}),
|
|
178
|
+
$animated: f,
|
|
179
|
+
$size: l
|
|
180
|
+
}), n().createElement(b, {
|
|
208
181
|
r: "19",
|
|
209
182
|
cx: "20",
|
|
210
183
|
cy: "20",
|
|
211
|
-
$animated:
|
|
212
|
-
$size:
|
|
213
|
-
})) : i().createElement(b, {
|
|
214
|
-
cx: "9.5",
|
|
215
|
-
cy: "9.5",
|
|
216
|
-
r: "8.5"
|
|
184
|
+
$animated: f,
|
|
185
|
+
$size: l
|
|
217
186
|
}))));
|
|
218
187
|
}
|
|
219
188
|
O.propTypes = z;
|
|
220
|
-
/* harmony default export */ const
|
|
189
|
+
/* harmony default export */ const x = O;
|
|
221
190
|
// CONCATENATED MODULE: ./src/WaitSpinner/index.ts
|
|
222
|
-
module.exports =
|
|
191
|
+
module.exports = t;
|
|
223
192
|
/******/})();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@splunk/react-ui",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0-beta.2",
|
|
4
4
|
"description": "Library of React components that implement the Splunk design language",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Splunk Inc.",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"types:start": "yarn types:build --watch"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
|
-
"react": "^16.8",
|
|
39
|
-
"react-dom": "^16.8",
|
|
38
|
+
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
|
39
|
+
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
|
40
40
|
"styled-components": "^5.3.10"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
@@ -44,17 +44,17 @@
|
|
|
44
44
|
"@dnd-kit/modifiers": "^7.0.0",
|
|
45
45
|
"@dnd-kit/sortable": "^8.0.0",
|
|
46
46
|
"@dnd-kit/utilities": "^3.2.2",
|
|
47
|
-
"@splunk/react-icons": "
|
|
48
|
-
"@splunk/themes": "
|
|
47
|
+
"@splunk/react-icons": "5.0.0-beta.2",
|
|
48
|
+
"@splunk/themes": "1.0.0-beta.2",
|
|
49
49
|
"@splunk/ui-utils": "^1.8.0",
|
|
50
|
-
"commonmark": "^0.30.0",
|
|
51
|
-
"commonmark-react-renderer": "^4.3.2",
|
|
52
50
|
"decimal.js-light": "^2.2.3",
|
|
53
51
|
"lodash": "^4.17.14",
|
|
54
52
|
"moment": "^2.29.4",
|
|
55
53
|
"prop-types": "^15.6.2",
|
|
54
|
+
"react-markdown": "^8.0.7",
|
|
56
55
|
"react-resize-detector": "^3.2.1",
|
|
57
56
|
"react-spring": "9.2.4",
|
|
57
|
+
"remark-gfm": "^1.0.0",
|
|
58
58
|
"tinycolor2": "^1.4.1",
|
|
59
59
|
"use-typed-event-listener": "^3.0.0"
|
|
60
60
|
},
|
|
@@ -62,9 +62,9 @@
|
|
|
62
62
|
"@babel/core": "^7.2.0",
|
|
63
63
|
"@babel/plugin-transform-runtime": "^7.18.6",
|
|
64
64
|
"@splunk/babel-preset": "^4.0.0",
|
|
65
|
-
"@splunk/docs-gen": "1.0.0-beta.14",
|
|
65
|
+
"@splunk/docs-gen": "1.0.0-beta.14.v5.2",
|
|
66
66
|
"@splunk/eslint-config": "^5.0.0",
|
|
67
|
-
"@splunk/react-docs": "1.0.0-beta.21",
|
|
67
|
+
"@splunk/react-docs": "1.0.0-beta.21.v5.2",
|
|
68
68
|
"@splunk/stylelint-config": "^5.0.0",
|
|
69
69
|
"@splunk/test-runner-utils": "^0.4.1",
|
|
70
70
|
"@splunk/webpack-configs": "^7.0.2",
|
|
@@ -77,16 +77,15 @@
|
|
|
77
77
|
"@storybook/test-runner": "0.16.0",
|
|
78
78
|
"@testing-library/cypress": "^9.0.0",
|
|
79
79
|
"@testing-library/jest-dom": "^5.16.1",
|
|
80
|
-
"@testing-library/react": "^
|
|
80
|
+
"@testing-library/react": "^13.4.0",
|
|
81
81
|
"@testing-library/react-hooks": "^7.0.2",
|
|
82
82
|
"@testing-library/user-event": "^14.4.3",
|
|
83
|
-
"@types/commonmark": "^0.27.6",
|
|
84
83
|
"@types/jest": "^26.0.0",
|
|
85
84
|
"@types/lodash": "^4.14.156",
|
|
86
85
|
"@types/node": "^10.17.26",
|
|
87
86
|
"@types/prismjs": "^1.26.3",
|
|
88
|
-
"@types/react": "^
|
|
89
|
-
"@types/react-dom": "^
|
|
87
|
+
"@types/react": "^18.2.0",
|
|
88
|
+
"@types/react-dom": "^18.2.0",
|
|
90
89
|
"@types/react-resize-detector": "^3.1.1",
|
|
91
90
|
"@types/sinon": "^4.3.3",
|
|
92
91
|
"@types/styled-components": "^5.1.0",
|
|
@@ -132,9 +131,9 @@
|
|
|
132
131
|
"prismjs": "^1.29.0",
|
|
133
132
|
"prompt": "^1.0.0",
|
|
134
133
|
"raw-loader": "^4.0.2",
|
|
135
|
-
"react": "^
|
|
134
|
+
"react": "^18.2.0",
|
|
136
135
|
"react-docgen": "^5.4.0",
|
|
137
|
-
"react-dom": "^
|
|
136
|
+
"react-dom": "^18.2.0",
|
|
138
137
|
"react-test-renderer": "^16.13.1",
|
|
139
138
|
"sinon": "^2.1.0",
|
|
140
139
|
"storybook": "^7.6.17",
|
package/stubs-dependencies.d.ts
CHANGED
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
declare module 'commonmark-react-renderer' {
|
|
2
|
-
export default class Renderer {
|
|
3
|
-
constructor(options: {});
|
|
4
|
-
render(ast: import('commonmark').Node): React.ReactNode[];
|
|
5
|
-
}
|
|
6
|
-
}
|
|
7
|
-
|
|
8
1
|
// https://github.com/storybookjs/storybook/issues/7677
|
|
9
2
|
// https://github.com/ComponentDriven/csf/blob/next/src/story.test.ts
|
|
10
3
|
declare module '@storybook/react' {
|
package/stubs-splunkui.d.ts
CHANGED
|
@@ -10,9 +10,14 @@ declare module '__FONTS_IMPORT__/*' {
|
|
|
10
10
|
|
|
11
11
|
declare module '@splunk/ui-utils/color' {
|
|
12
12
|
function expandShortHandHex<T extends string | null | undefined>(arg: T): T;
|
|
13
|
-
function
|
|
13
|
+
function hexToRgb(hex: string): [number, number, number] | null;
|
|
14
14
|
function isCSSColor(value: string): boolean;
|
|
15
|
+
function isValidHexColor(value: string): boolean;
|
|
16
|
+
function isValidRgb(value: string): boolean;
|
|
17
|
+
function namedColorToHex(colorName: string): string | undefined;
|
|
18
|
+
|
|
15
19
|
const extendedColorKeywords: string[];
|
|
20
|
+
const extendedColorKeywordsToHex: { string: string };
|
|
16
21
|
}
|
|
17
22
|
|
|
18
23
|
declare module '@splunk/ui-utils/filter' {
|
|
@@ -54,6 +54,10 @@ type AccordionProps = ClassComponentProps<AccordionControlledProps | AccordionUn
|
|
|
54
54
|
interface AccordionState {
|
|
55
55
|
openPanelId?: string | number;
|
|
56
56
|
}
|
|
57
|
+
/**
|
|
58
|
+
* @deprecated
|
|
59
|
+
* Accordion has been deprecated and will be removed in a future major version. Use Collapsible Panel's SingleOpenPanelGroup API instead.
|
|
60
|
+
*/
|
|
57
61
|
declare class Accordion extends Component<AccordionProps, AccordionState> {
|
|
58
62
|
private controlledExternally;
|
|
59
63
|
static propTypes: React.WeakValidationMap<AccordionProps>;
|
|
@@ -66,7 +70,7 @@ declare class Accordion extends Component<AccordionProps, AccordionState> {
|
|
|
66
70
|
private getCurrentOpenPanel;
|
|
67
71
|
private handleChange;
|
|
68
72
|
private isControlled;
|
|
69
|
-
render(): JSX.Element;
|
|
73
|
+
render(): React.JSX.Element;
|
|
70
74
|
}
|
|
71
75
|
export default Accordion;
|
|
72
76
|
export { AccordionChangeHandler, Panel };
|
|
@@ -11,7 +11,6 @@ interface AccordionPanelPropsBase {
|
|
|
11
11
|
/**
|
|
12
12
|
* When `true` renders the Panel with padding.
|
|
13
13
|
* When `false` render the Panel without padding.
|
|
14
|
-
* Note: in `v5` this will default to `true`. SUI-2559
|
|
15
14
|
*/
|
|
16
15
|
inset?: boolean;
|
|
17
16
|
/**
|
|
@@ -28,7 +27,7 @@ type AccordionPanelProps = ComponentProps<AccordionPanelPropsBase, 'div'>;
|
|
|
28
27
|
/**
|
|
29
28
|
* `Accordion.Panel` operates as a container component for content in an `Accordion`.
|
|
30
29
|
*/
|
|
31
|
-
declare function Panel({ panelId, inset, ...otherProps }: AccordionPanelProps): JSX.Element;
|
|
30
|
+
declare function Panel({ panelId, inset: insetProp, ...otherProps }: AccordionPanelProps): React.JSX.Element;
|
|
32
31
|
declare namespace Panel {
|
|
33
32
|
var propTypes: {
|
|
34
33
|
description: PropTypes.Requireable<string>;
|
|
@@ -16,7 +16,7 @@ type AnchorProps = ComponentProps<AnchorPropsBase, 'a', 'href'>;
|
|
|
16
16
|
/**
|
|
17
17
|
* `Anchor` is a utility component used to add a fragment link to an element.
|
|
18
18
|
*/
|
|
19
|
-
declare function Anchor({ children, elementRef, name, ...otherProps }: AnchorProps): JSX.Element;
|
|
19
|
+
declare function Anchor({ children, elementRef, name, ...otherProps }: AnchorProps): React.JSX.Element;
|
|
20
20
|
declare namespace Anchor {
|
|
21
21
|
var propTypes: {
|
|
22
22
|
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
@@ -1,8 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SpringComponentProps as RSSpringComponentProps, TransitionComponentProps as RSTransitionComponentProps, UseSpringProps as RSUseSpringProps, UseTransitionProps as RSUseTransitionProps } from 'react-spring';
|
|
3
|
+
declare function useAnimation({ immediate, ...otherProps }: RSUseSpringProps): {
|
|
4
|
+
[x: string]: any;
|
|
5
|
+
[x: number]: any;
|
|
6
|
+
};
|
|
7
|
+
declare function useAnimationTransition(items: any, { immediate, ...otherProps }: RSUseTransitionProps): import("react-spring").TransitionFn<any, {
|
|
8
|
+
[x: string]: any;
|
|
9
|
+
[x: number]: any;
|
|
10
|
+
[Symbol.hasInstance]: (value: any) => boolean;
|
|
11
|
+
}>;
|
|
2
12
|
/**
|
|
3
13
|
* Wrappers to use in place of `Spring` and `Transition` from `react-spring`.
|
|
4
14
|
* Uses `useAnimationToggle` to offer animation control.
|
|
5
15
|
*/
|
|
6
16
|
declare function Spring({ children, immediate, ...otherProps }: RSSpringComponentProps): JSX.Element | null;
|
|
7
17
|
declare function Transition({ items, children, immediate, ...otherProps }: RSTransitionComponentProps<any>): JSX.Element;
|
|
8
|
-
export { Spring, Transition };
|
|
18
|
+
export { Spring, Transition, useAnimation, useAnimationTransition };
|