@splunk/react-ui 5.1.0 → 5.3.0
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 +60 -39
- package/Anchor.js +9 -9
- package/Animation.js +2 -2
- package/Avatar.js +63 -58
- package/Box.js +4 -3
- package/Breadcrumbs.js +13 -13
- package/Button.js +12 -12
- package/ButtonGroup.js +9 -9
- package/ButtonSimple.js +2 -2
- package/CHANGELOG.md +54 -0
- package/Calendar.js +69 -65
- package/Card.js +286 -255
- package/CardLayout.js +10 -10
- package/Checkbox.d.ts +2 -0
- package/Checkbox.js +350 -0
- package/Chip.js +31 -31
- package/Clickable.js +29 -29
- package/Code.js +161 -142
- package/CollapsiblePanel.js +200 -224
- package/Color.js +14 -12
- package/ColumnLayout.js +16 -16
- package/ComboBox.js +110 -110
- package/ControlGroup.js +101 -100
- package/Date.js +144 -140
- package/DefinitionList.js +137 -94
- package/Divider.js +2 -2
- package/Dropdown.js +2 -2
- package/DualListbox.js +446 -385
- package/File.js +121 -118
- package/FormRows.js +15 -15
- package/Heading.js +15 -15
- package/Image.js +31 -31
- package/JSONTree.js +543 -513
- package/Layer.js +4 -1
- package/Layout.js +10 -10
- package/Link.js +13 -13
- package/List.js +24 -24
- package/MIGRATION.md +27 -0
- package/Markdown.js +237 -226
- package/Menu.js +63 -60
- package/Message.js +20 -20
- package/MessageBar.js +13 -13
- package/Modal.js +36 -36
- package/Monogram.js +94 -68
- package/Multiselect.js +1032 -910
- package/Number.js +18 -18
- package/Paginator.js +41 -40
- package/Paragraph.js +10 -10
- package/Popover.js +243 -208
- package/Progress.js +6 -6
- package/Prose.js +16 -16
- package/RadioBar.js +118 -118
- package/RadioList.js +137 -113
- package/Resize.js +20 -20
- package/ResultsMenu.js +50 -49
- package/ScreenReaderContent.js +13 -13
- package/Scroll.js +25 -24
- package/Search.js +143 -139
- package/Select.js +942 -838
- package/SidePanel.js +29 -29
- package/Slider.js +30 -30
- package/SlidingPanels.js +28 -28
- package/SplitButton.js +100 -72
- package/StaticContent.js +6 -6
- package/StepBar.js +8 -8
- package/Switch.js +197 -229
- package/TabBar.js +293 -270
- package/TabLayout.js +68 -68
- package/Table.js +825 -800
- package/Text.js +182 -208
- package/TextArea.js +235 -226
- package/Tooltip.js +149 -144
- package/TransitionOpen.js +11 -11
- package/Tree.js +194 -189
- package/Typography.js +15 -15
- package/WaitSpinner.js +6 -6
- package/package.json +19 -23
- package/tsconfig.check-docs.json +8 -0
- package/types/src/Accordion/docs/examples/Controlled.d.ts +3 -0
- package/types/src/Accordion/docs/examples/Inset.d.ts +4 -0
- package/types/src/Accordion/docs/examples/Uncontrolled.d.ts +3 -0
- package/types/src/Anchor/docs/examples/Basic.d.ts +4 -0
- package/types/src/AnimationToggle/docs/examples/Provider.d.ts +4 -0
- package/types/src/AnimationToggle/docs/examples/ReducedMotionComponent.d.ts +4 -0
- package/types/src/AnimationToggle/docs/examples/ReducedMotionHook.d.ts +4 -0
- package/types/src/AnimationToggle/docs/examples/ToggleComponent.d.ts +4 -0
- package/types/src/Avatar/docs/examples/BackgroundColor.d.ts +4 -0
- package/types/src/Avatar/docs/examples/Basic.d.ts +4 -0
- package/types/src/Avatar/docs/examples/Image.d.ts +4 -0
- package/types/src/Avatar/docs/examples/Interactive.d.ts +4 -0
- package/types/src/Avatar/docs/examples/Size.d.ts +4 -0
- package/types/src/Breadcrumbs/docs/examples/Adornments.d.ts +4 -0
- package/types/src/Breadcrumbs/docs/examples/Basic.d.ts +3 -0
- package/types/src/Breadcrumbs/docs/examples/CustomizedClick.d.ts +4 -0
- package/types/src/Button/docs/examples/Basic.d.ts +3 -0
- package/types/src/Button/docs/examples/Block.d.ts +4 -0
- package/types/src/Button/docs/examples/Disabled.d.ts +4 -0
- package/types/src/Button/docs/examples/Icons.d.ts +4 -0
- package/types/src/Button/docs/examples/Menus.d.ts +4 -0
- package/types/src/Button/docs/examples/To.d.ts +4 -0
- package/types/src/ButtonGroup/docs/examples/Basic.d.ts +3 -0
- package/types/src/Card/docs/examples/Basic.d.ts +4 -0
- package/types/src/Card/docs/examples/Clickable.d.ts +4 -0
- package/types/src/Card/docs/examples/Full.d.ts +4 -0
- package/types/src/Card/docs/examples/HeadingTitle.d.ts +4 -0
- package/types/src/Card/docs/examples/Images.d.ts +4 -0
- package/types/src/Card/docs/examples/Selectable.d.ts +4 -0
- package/types/src/CardLayout/docs/examples/Basic.d.ts +3 -0
- package/types/src/CardLayout/docs/examples/Interactive.d.ts +4 -0
- package/types/src/Checkbox/Checkbox.d.ts +90 -0
- package/types/src/Checkbox/docs/examples/Basic.d.ts +7 -0
- package/types/src/Checkbox/docs/examples/Disabled.d.ts +6 -0
- package/types/src/Checkbox/docs/examples/Error.d.ts +6 -0
- package/types/src/Checkbox/docs/examples/Uncontrolled.d.ts +7 -0
- package/types/src/Checkbox/index.d.ts +2 -0
- package/types/src/Chip/docs/examples/Appearance.d.ts +3 -0
- package/types/src/Chip/docs/examples/CustomColors.d.ts +4 -0
- package/types/src/Chip/docs/examples/Disabled.d.ts +3 -0
- package/types/src/Chip/docs/examples/Icon.d.ts +3 -0
- package/types/src/Chip/docs/examples/Removable.d.ts +3 -0
- package/types/src/Chip/docs/examples/RemovableWithNonStringChildren.d.ts +4 -0
- package/types/src/Clickable/docs/examples/Disabled.d.ts +4 -0
- package/types/src/Code/Code.d.ts +4 -1
- package/types/src/Code/LineHighlights.d.ts +1 -0
- package/types/src/Code/LineNumbers.d.ts +2 -1
- package/types/src/Code/docs/examples/CustomizeContainer.d.ts +7 -0
- package/types/src/Code/docs/examples/Default.d.ts +3 -0
- package/types/src/Code/docs/examples/HideIndent.d.ts +4 -0
- package/types/src/Code/docs/examples/Language.d.ts +4 -0
- package/types/src/Code/docs/examples/LineHighlights.d.ts +4 -0
- package/types/src/Code/docs/examples/LineNumbers.d.ts +4 -0
- package/types/src/Code/docs/examples/LineNumbersCustomStart.d.ts +4 -0
- package/types/src/CollapsiblePanel/docs/examples/Actions.d.ts +4 -0
- package/types/src/CollapsiblePanel/docs/examples/BasicControlled.d.ts +3 -0
- package/types/src/CollapsiblePanel/docs/examples/BasicUncontrolled.d.ts +3 -0
- package/types/src/CollapsiblePanel/docs/examples/Disabled.d.ts +7 -0
- package/types/src/CollapsiblePanel/docs/examples/MultiControlled.d.ts +3 -0
- package/types/src/CollapsiblePanel/docs/examples/MultiUncontrolled.d.ts +3 -0
- package/types/src/CollapsiblePanel/docs/examples/SingleOpenPanelGroupControlled.d.ts +4 -0
- package/types/src/CollapsiblePanel/docs/examples/SingleOpenPanelGroupInset.d.ts +4 -0
- package/types/src/CollapsiblePanel/docs/examples/SingleOpenPanelGroupUncontrolled.d.ts +4 -0
- package/types/src/CollapsiblePanel/docs/examples/Subtle.d.ts +4 -0
- package/types/src/Color/docs/examples/Controlled.d.ts +3 -0
- package/types/src/Color/docs/examples/CustomizedPalette.d.ts +4 -0
- package/types/src/Color/docs/examples/HideInput.d.ts +4 -0
- package/types/src/Color/docs/examples/Null.d.ts +4 -0
- package/types/src/Color/docs/examples/ThemeVariables.d.ts +4 -0
- package/types/src/Color/docs/examples/Transparent.d.ts +4 -0
- package/types/src/Color/docs/examples/Uncontrolled.d.ts +3 -0
- package/types/src/ColumnLayout/docs/examples/AlignItems.d.ts +4 -0
- package/types/src/ColumnLayout/docs/examples/Basic.d.ts +4 -0
- package/types/src/ColumnLayout/docs/examples/Dividers.d.ts +4 -0
- package/types/src/ColumnLayout/docs/examples/Gutters.d.ts +4 -0
- package/types/src/ComboBox/docs/examples/Controlled.d.ts +4 -0
- package/types/src/ComboBox/docs/examples/Fetching.d.ts +4 -0
- package/types/src/ComboBox/docs/examples/Headings.d.ts +3 -0
- package/types/src/ComboBox/docs/examples/Label.d.ts +4 -0
- package/types/src/ComboBox/docs/examples/Uncontrolled.d.ts +4 -0
- package/types/src/ControlGroup/docs/examples/Basic.d.ts +4 -0
- package/types/src/ControlGroup/docs/examples/CustomizedLabelTarget.d.ts +7 -3
- package/types/src/ControlGroup/docs/examples/Error.d.ts +4 -0
- package/types/src/ControlGroup/docs/examples/HelpWithErrorText.d.ts +4 -0
- package/types/src/ControlGroup/docs/examples/HelpWithLinks.d.ts +4 -0
- package/types/src/ControlGroup/docs/examples/LabelLeft.d.ts +4 -0
- package/types/src/ControlGroup/docs/examples/LayoutFill.d.ts +4 -0
- package/types/src/ControlGroup/docs/examples/LayoutFillJoin.d.ts +4 -0
- package/types/src/ControlGroup/docs/examples/LayoutNone.d.ts +4 -0
- package/types/src/ControlGroup/docs/examples/Required.d.ts +4 -0
- package/types/src/Date/Date.d.ts +7 -1
- package/types/src/Date/docs/examples/Basic.d.ts +3 -0
- package/types/src/Date/docs/examples/Controlled.d.ts +3 -0
- package/types/src/Date/docs/examples/CustomDate.d.ts +4 -0
- package/types/src/Date/docs/examples/Disabled.d.ts +3 -0
- package/types/src/Date/docs/examples/Error.d.ts +3 -0
- package/types/src/Date/docs/examples/HighlightToday.d.ts +4 -0
- package/types/src/Date/docs/examples/WithoutCalendar.d.ts +4 -0
- package/types/src/DefinitionList/DefinitionList.d.ts +27 -4
- package/types/src/DefinitionList/DefinitionListContext.d.ts +2 -0
- package/types/src/DefinitionList/docs/examples/Basic.d.ts +3 -0
- package/types/src/DefinitionList/docs/examples/CustomizedWidths.d.ts +7 -0
- package/types/src/DefinitionList/docs/examples/EmptyDescription.d.ts +4 -0
- package/types/src/DefinitionList/docs/examples/StackedLayout.d.ts +6 -0
- package/types/src/DefinitionList/docs/examples/WithSeparator.d.ts +4 -0
- package/types/src/Divider/docs/examples/Appearance.d.ts +4 -0
- package/types/src/Divider/docs/examples/Basic.d.ts +3 -0
- package/types/src/Divider/docs/examples/CustomStyle.d.ts +4 -0
- package/types/src/Divider/docs/examples/Decorative.d.ts +4 -0
- package/types/src/Divider/docs/examples/Vertical.d.ts +3 -0
- package/types/src/Dropdown/docs/examples/Basic.d.ts +4 -0
- package/types/src/Dropdown/docs/examples/BasicMenu.d.ts +3 -0
- package/types/src/Dropdown/docs/examples/ControlledDropdown.d.ts +4 -0
- package/types/src/Dropdown/docs/examples/Dialog.d.ts +4 -0
- package/types/src/Dropdown/docs/examples/ScrollContainer.d.ts +4 -0
- package/types/src/Dropdown/docs/examples/ScrollingMenu.d.ts +4 -0
- package/types/src/Dropdown/docs/examples/Submenu.d.ts +3 -0
- package/types/src/Dropdown/docs/examples/TooltipButtonToggle.d.ts +4 -0
- package/types/src/DualListbox/DualListbox.d.ts +1 -1
- package/types/src/DualListbox/Label.d.ts +7 -7
- package/types/src/DualListbox/Listbox.d.ts +2 -2
- package/types/src/DualListbox/ListboxContext.d.ts +1 -1
- package/types/src/DualListbox/Option.d.ts +1 -1
- package/types/src/DualListbox/docs/examples/Basic.d.ts +3 -0
- package/types/src/DualListbox/docs/examples/Controlled.d.ts +3 -0
- package/types/src/DualListbox/docs/examples/Fill.d.ts +4 -0
- package/types/src/File/File.d.ts +7 -1
- package/types/src/File/docs/examples/CustomizedMessages.d.ts +4 -0
- package/types/src/File/docs/examples/Disabled.d.ts +3 -0
- package/types/src/File/docs/examples/DropAnywhere.d.ts +4 -0
- package/types/src/File/docs/examples/Error.d.ts +4 -0
- package/types/src/File/docs/examples/FullScreen.d.ts +4 -0
- package/types/src/File/docs/examples/Multi.d.ts +4 -0
- package/types/src/File/docs/examples/Progress.d.ts +4 -0
- package/types/src/File/docs/examples/Single.d.ts +4 -0
- package/types/src/FormRows/docs/examples/Basic.d.ts +3 -0
- package/types/src/FormRows/docs/examples/Header.d.ts +4 -0
- package/types/src/FormRows/docs/examples/Menu.d.ts +4 -0
- package/types/src/FormRows/docs/examples/ReorderOnly.d.ts +4 -0
- package/types/src/Heading/docs/examples/Basic.d.ts +3 -0
- package/types/src/Heading/docs/examples/Variant.d.ts +4 -0
- package/types/src/Image/docs/examples/Basic.d.ts +3 -0
- package/types/src/JSONTree/JSONTreeItem.d.ts +4 -2
- package/types/src/JSONTree/docs/examples/Basic.d.ts +3 -0
- package/types/src/JSONTree/docs/examples/Events.d.ts +4 -0
- package/types/src/JSONTree/docs/examples/ExpandChildrenOnShiftKey.d.ts +4 -0
- package/types/src/JSONTree/renderTreeItems.d.ts +2 -1
- package/types/src/Layer/docs/examples/Basic.d.ts +4 -0
- package/types/src/Layout/docs/examples/Basic.d.ts +3 -0
- package/types/src/Link/docs/examples/Basic.d.ts +4 -0
- package/types/src/Link/docs/examples/Disabled.d.ts +4 -0
- package/types/src/Link/docs/examples/NewWindow.d.ts +4 -0
- package/types/src/Link/docs/examples/Standalone.d.ts +4 -0
- package/types/src/List/docs/examples/CustomizedList.d.ts +4 -0
- package/types/src/List/docs/examples/OrderedList.d.ts +4 -0
- package/types/src/List/docs/examples/UnorderedList.d.ts +3 -0
- package/types/src/Markdown/docs/examples/Basic.d.ts +4 -0
- package/types/src/Markdown/docs/examples/I18n.d.ts +4 -0
- package/types/src/Markdown/renderers/MarkdownCodeBlock.d.ts +2 -1
- package/types/src/Menu/Item.d.ts +27 -10
- package/types/src/Menu/docs/examples/Adornments.d.ts +4 -0
- package/types/src/Menu/docs/examples/Basic.d.ts +3 -0
- package/types/src/Menu/docs/examples/Complex.d.ts +4 -0
- package/types/src/Menu/docs/examples/Descriptions.d.ts +4 -0
- package/types/src/Menu/docs/examples/Dimmed.d.ts +4 -0
- package/types/src/Menu/docs/examples/Disabled.d.ts +4 -0
- package/types/src/Menu/docs/examples/Dividers.d.ts +3 -0
- package/types/src/Menu/docs/examples/Headings.d.ts +4 -0
- package/types/src/Menu/docs/examples/Links.d.ts +4 -0
- package/types/src/Menu/docs/examples/MatchRanges.d.ts +4 -0
- package/types/src/Menu/docs/examples/Selectable.d.ts +4 -0
- package/types/src/Menu/docs/examples/SelectableWithAdornments.d.ts +4 -0
- package/types/src/Menu/docs/examples/Truncate.d.ts +4 -0
- package/types/src/Message/docs/examples/Basic.d.ts +3 -0
- package/types/src/Message/docs/examples/Content.d.ts +4 -0
- package/types/src/Message/docs/examples/Fill.d.ts +3 -0
- package/types/src/Message/docs/examples/Removable.d.ts +3 -0
- package/types/src/MessageBar/docs/examples/Basic.d.ts +4 -0
- package/types/src/MessageBar/docs/examples/Types.d.ts +4 -0
- package/types/src/MessageBar/docs/examples/WithActions.d.ts +3 -0
- package/types/src/Modal/Modal.d.ts +10 -3
- package/types/src/Modal/docs/examples/Basic.d.ts +3 -0
- package/types/src/Modal/docs/examples/InitialFocus.d.ts +4 -0
- package/types/src/Modal/docs/examples/TypicalUsage.d.ts +4 -0
- package/types/src/Modal/docs/examples/Undismissable.d.ts +4 -0
- package/types/src/Monogram/Monogram.d.ts +4 -0
- package/types/src/Monogram/docs/examples/BackgroundAuto.d.ts +4 -0
- package/types/src/Monogram/docs/examples/BackgroundCustom.d.ts +3 -0
- package/types/src/Monogram/docs/examples/Basic.d.ts +4 -0
- package/types/src/Monogram/docs/examples/Interactive.d.ts +4 -0
- package/types/src/Monogram/docs/examples/Size.d.ts +4 -0
- package/types/src/Multiselect/Compact.d.ts +8 -2
- package/types/src/Multiselect/Multiselect.d.ts +8 -2
- package/types/src/Multiselect/Normal.d.ts +7 -1
- package/types/src/Multiselect/docs/examples/Children.d.ts +4 -0
- package/types/src/Multiselect/docs/examples/Compact.d.ts +4 -0
- package/types/src/Multiselect/docs/examples/Controlled.d.ts +3 -0
- package/types/src/Multiselect/docs/examples/CustomizeSelected.d.ts +4 -0
- package/types/src/Multiselect/docs/examples/Disabled.d.ts +3 -0
- package/types/src/Multiselect/docs/examples/Error.d.ts +3 -0
- package/types/src/Multiselect/docs/examples/Fetching.d.ts +4 -0
- package/types/src/Multiselect/docs/examples/Headings.d.ts +3 -0
- package/types/src/Multiselect/docs/examples/Icons.d.ts +3 -0
- package/types/src/Multiselect/docs/examples/LoadMoreOnScrollBottom.d.ts +4 -0
- package/types/src/Multiselect/docs/examples/NewValues.d.ts +4 -0
- package/types/src/Multiselect/docs/examples/TabInput.d.ts +4 -0
- package/types/src/Multiselect/docs/examples/Uncontrolled.d.ts +3 -0
- package/types/src/Number/docs/examples/Basic.d.ts +4 -0
- package/types/src/Number/docs/examples/Disabled.d.ts +3 -0
- package/types/src/Number/docs/examples/Error.d.ts +3 -0
- package/types/src/Number/docs/examples/Limits.d.ts +4 -0
- package/types/src/Number/docs/examples/Locale.d.ts +4 -0
- package/types/src/Number/docs/examples/Uncontrolled.d.ts +4 -0
- package/types/src/Paginator/docs/examples/Basic.d.ts +3 -0
- package/types/src/Paginator/docs/examples/Compact.d.ts +4 -0
- package/types/src/Paginator/docs/examples/CompactCustomLabel.d.ts +3 -0
- package/types/src/Paginator/docs/examples/CompactWithLabel.d.ts +3 -0
- package/types/src/Paginator/docs/examples/CustomPages.d.ts +4 -0
- package/types/src/Paginator/docs/examples/Labelled.d.ts +4 -0
- package/types/src/Paginator/docs/examples/PageControl.d.ts +4 -0
- package/types/src/Paragraph/docs/examples/Basic.d.ts +4 -0
- package/types/src/Popover/PopoverProvider.d.ts +9 -1
- package/types/src/Popover/docs/examples/Basic.d.ts +4 -0
- package/types/src/Progress/docs/examples/Basic.d.ts +3 -0
- package/types/src/Progress/docs/examples/Type.d.ts +3 -0
- package/types/src/Prose/docs/examples/Basic.d.ts +3 -0
- package/types/src/Prose/docs/examples/Customize.d.ts +4 -0
- package/types/src/RadioBar/docs/examples/AdornmentAriaExamples.d.ts +5 -0
- package/types/src/RadioBar/docs/examples/Basic.d.ts +3 -0
- package/types/src/RadioBar/docs/examples/Disabled.d.ts +4 -0
- package/types/src/RadioBar/docs/examples/Error.d.ts +3 -0
- package/types/src/RadioBar/docs/examples/MenuBar.d.ts +4 -0
- package/types/src/RadioBar/docs/examples/Uncontrolled.d.ts +3 -0
- package/types/src/RadioList/docs/examples/Basic.d.ts +4 -0
- package/types/src/RadioList/docs/examples/Disabled.d.ts +3 -0
- package/types/src/RadioList/docs/examples/Error.d.ts +3 -0
- package/types/src/RadioList/docs/examples/Row.d.ts +3 -0
- package/types/src/RadioList/docs/examples/Uncontrolled.d.ts +4 -0
- package/types/src/Resize/docs/examples/Appearance.d.ts +4 -0
- package/types/src/Resize/docs/examples/Basic.d.ts +4 -0
- package/types/src/Resize/docs/examples/Percentage.d.ts +4 -0
- package/types/src/Resize/docs/examples/SizingInner.d.ts +4 -0
- package/types/src/Resize/docs/examples/SizingOuter.d.ts +4 -0
- package/types/src/ScreenReaderContent/docs/examples/Basic.d.ts +4 -0
- package/types/src/ScreenReaderContent/docs/examples/SkipLink.d.ts +4 -0
- package/types/src/Scroll/docs/examples/Controlled.d.ts +4 -0
- package/types/src/Scroll/docs/examples/Uncontrolled.d.ts +4 -0
- package/types/src/ScrollContainerContext/docs/examples/Provider.d.ts +4 -0
- package/types/src/Search/Search.d.ts +5 -1
- package/types/src/Search/docs/examples/Controlled.d.ts +4 -0
- package/types/src/Search/docs/examples/Loading.d.ts +4 -0
- package/types/src/Search/docs/examples/Options.d.ts +4 -0
- package/types/src/Search/docs/examples/OptionsLinks.d.ts +4 -0
- package/types/src/Select/SelectAllOption.d.ts +5 -10
- package/types/src/Select/SelectBase.d.ts +1 -1
- package/types/src/Select/docs/examples/Appearance.d.ts +4 -0
- package/types/src/Select/docs/examples/Basic.d.ts +4 -0
- package/types/src/Select/docs/examples/Children.d.ts +4 -0
- package/types/src/Select/docs/examples/Descriptions.d.ts +4 -0
- package/types/src/Select/docs/examples/Error.d.ts +3 -0
- package/types/src/Select/docs/examples/Fetching.d.ts +4 -0
- package/types/src/Select/docs/examples/Filter.d.ts +4 -0
- package/types/src/Select/docs/examples/Headings.d.ts +3 -0
- package/types/src/Select/docs/examples/Icons.d.ts +3 -0
- package/types/src/Select/docs/examples/LoadMoreOnScrollBottom.d.ts +4 -0
- package/types/src/Select/docs/examples/Prefix.d.ts +4 -0
- package/types/src/Select/docs/examples/Truncate.d.ts +4 -0
- package/types/src/Select/docs/examples/Uncontrolled.d.ts +4 -0
- package/types/src/SidePanel/docs/examples/Basic.d.ts +4 -0
- package/types/src/SidePanel/docs/examples/ChangeSize.d.ts +3 -0
- package/types/src/SidePanel/docs/examples/Composition.d.ts +4 -0
- package/types/src/Slider/docs/examples/Basic.d.ts +3 -0
- package/types/src/Slider/docs/examples/Controlled.d.ts +4 -0
- package/types/src/Slider/docs/examples/CustomLabels.d.ts +4 -0
- package/types/src/Slider/docs/examples/Disabled.d.ts +3 -0
- package/types/src/Slider/docs/examples/Error.d.ts +3 -0
- package/types/src/Slider/docs/examples/StepMarks.d.ts +4 -0
- package/types/src/SlidingPanels/docs/examples/Basic.d.ts +3 -0
- package/types/src/SlidingPanels/docs/examples/Dropdown.d.ts +3 -0
- package/types/src/SlidingPanels/docs/examples/Modal.d.ts +3 -0
- package/types/src/SplitButton/SplitButton.d.ts +6 -1
- package/types/src/SplitButton/docs/examples/Basic.d.ts +3 -0
- package/types/src/SplitButton/docs/examples/Block.d.ts +4 -0
- package/types/src/SplitButton/docs/examples/ChangeLabel.d.ts +4 -0
- package/types/src/SplitButton/docs/examples/Disabled.d.ts +3 -0
- package/types/src/StaticContent/docs/examples/Basic.d.ts +4 -0
- package/types/src/StaticContent/docs/examples/FieldValue.d.ts +4 -0
- package/types/src/StepBar/docs/examples/Basic.d.ts +3 -0
- package/types/src/StepBar/docs/examples/Error.d.ts +3 -0
- package/types/src/Switch/Switch.d.ts +7 -1
- package/types/src/Switch/docs/examples/Basic.d.ts +5 -9
- package/types/src/Switch/docs/examples/Disabled.d.ts +5 -9
- package/types/src/TabBar/docs/examples/Basic.d.ts +3 -0
- package/types/src/TabBar/docs/examples/Disabled.d.ts +3 -0
- package/types/src/TabBar/docs/examples/Icons.d.ts +3 -0
- package/types/src/TabBar/docs/examples/Tooltips.d.ts +3 -0
- package/types/src/TabBar/docs/examples/Vertical.d.ts +3 -0
- package/types/src/TabBar/docs/examples/VerticalIcons.d.ts +3 -0
- package/types/src/TabBar/docs/examples/WithCount.d.ts +3 -0
- package/types/src/TabBar/tabBarUtils.d.ts +4 -0
- package/types/src/TabBar/types.d.ts +5 -0
- package/types/src/TabLayout/docs/examples/AutoActivate.d.ts +4 -0
- package/types/src/TabLayout/docs/examples/Controlled.d.ts +4 -0
- package/types/src/TabLayout/docs/examples/Icons.d.ts +3 -0
- package/types/src/TabLayout/docs/examples/Uncontrolled.d.ts +3 -0
- package/types/src/TabLayout/docs/examples/Vertical.d.ts +3 -0
- package/types/src/TabLayout/docs/examples/VerticalIcons.d.ts +3 -0
- package/types/src/Table/ExpandButton.d.ts +1 -1
- package/types/src/Table/docs/examples/Basic.d.ts +3 -0
- package/types/src/Table/docs/examples/Click.d.ts +4 -0
- package/types/src/Table/docs/examples/ClickRows.d.ts +4 -0
- package/types/src/Table/docs/examples/Complex.d.ts +4 -0
- package/types/src/Table/docs/examples/DockedHeaderScrollbar.d.ts +4 -0
- package/types/src/Table/docs/examples/FilterColumnValues.d.ts +4 -0
- package/types/src/Table/docs/examples/FixedHeader.d.ts +4 -0
- package/types/src/Table/docs/examples/HeadDropdownCell.d.ts +4 -0
- package/types/src/Table/docs/examples/ReorderColumns.d.ts +4 -0
- package/types/src/Table/docs/examples/ReorderRows.d.ts +4 -0
- package/types/src/Table/docs/examples/Resizable.d.ts +4 -0
- package/types/src/Table/docs/examples/ResizableFill.d.ts +4 -0
- package/types/src/Table/docs/examples/RowActions.d.ts +4 -0
- package/types/src/Table/docs/examples/Selectable.d.ts +4 -0
- package/types/src/Table/docs/examples/SortableColumns.d.ts +4 -0
- package/types/src/Table/docs/examples/StripeRows.d.ts +3 -0
- package/types/src/Text/docs/examples/Basic.d.ts +4 -0
- package/types/src/Text/docs/examples/CustomizedIcon.d.ts +4 -0
- package/types/src/Text/docs/examples/Dimmed.d.ts +4 -0
- package/types/src/Text/docs/examples/Disabled.d.ts +4 -0
- package/types/src/Text/docs/examples/Error.d.ts +4 -0
- package/types/src/Text/docs/examples/Inline.d.ts +4 -0
- package/types/src/Text/docs/examples/Password.d.ts +4 -0
- package/types/src/Text/docs/examples/Uncontrolled.d.ts +4 -0
- package/types/src/TextArea/docs/examples/Basic.d.ts +4 -0
- package/types/src/TextArea/docs/examples/Disabled.d.ts +3 -0
- package/types/src/TextArea/docs/examples/Error.d.ts +4 -0
- package/types/src/TextArea/docs/examples/Inline.d.ts +4 -0
- package/types/src/TextArea/docs/examples/Uncontrolled.d.ts +4 -0
- package/types/src/Tooltip/Tooltip.d.ts +14 -1
- package/types/src/Tooltip/docs/examples/Basic.d.ts +4 -0
- package/types/src/Tooltip/docs/examples/ContentRelationship.d.ts +4 -0
- package/types/src/Tooltip/docs/examples/Controlled.d.ts +4 -0
- package/types/src/Tooltip/docs/examples/CustomDelay.d.ts +4 -0
- package/types/src/Tooltip/docs/examples/CustomProps.d.ts +4 -0
- package/types/src/Tooltip/docs/examples/Toggletip.d.ts +4 -0
- package/types/src/TransitionOpen/docs/examples/ExpandHeight.d.ts +3 -0
- package/types/src/TransitionOpen/docs/examples/ExpandWidth.d.ts +3 -0
- package/types/src/TransitionOpen/docs/examples/None.d.ts +4 -0
- package/types/src/TransitionOpen/docs/examples/SlideFromBottom.d.ts +4 -0
- package/types/src/TransitionOpen/docs/examples/SlideFromLeft.d.ts +4 -0
- package/types/src/TransitionOpen/docs/examples/SlideFromRight.d.ts +4 -0
- package/types/src/TransitionOpen/docs/examples/SlideFromTop.d.ts +4 -0
- package/types/src/Tree/Item.d.ts +4 -4
- package/types/src/Tree/docs/examples/Basic.d.ts +5 -0
- package/types/src/Tree/docs/examples/ClickableExpansion.d.ts +2 -0
- package/types/src/Tree/docs/examples/ClickableExpansionWithSelection.d.ts +2 -0
- package/types/src/Typography/docs/examples/Basic.d.ts +4 -0
- package/types/src/WaitSpinner/docs/examples/Basic.d.ts +3 -0
- package/useResizeObserver.js +2 -2
- package/NonInteractiveCheckbox.js +0 -101
- package/types/src/CollapsiblePanel/icons/ExpandPanel.d.ts +0 -12
- package/types/src/DefinitionList/docs/examples/Customize.d.ts +0 -3
- package/types/src/NonInteractiveCheckbox/NonInteractiveCheckbox.d.ts +0 -22
- package/types/src/NonInteractiveCheckbox/index.d.ts +0 -1
- package/types/src/Switch/docs/examples/Error.d.ts +0 -3
- package/types/src/Text/IconOutlinedHide.d.ts +0 -3
- package/types/src/Text/IconOutlinedView.d.ts +0 -3
- /package/cypress/{tsconfig.cypress.json → tsconfig.check-cypress.json} +0 -0
package/Typography.js
CHANGED
|
@@ -77,8 +77,8 @@
|
|
|
77
77
|
const s = require("@splunk/themes/mixins");
|
|
78
78
|
var u = e.n(s);
|
|
79
79
|
// CONCATENATED MODULE: ./src/Typography/Typography.tsx
|
|
80
|
-
function
|
|
81
|
-
return
|
|
80
|
+
function f() {
|
|
81
|
+
return f = 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,31 +86,31 @@
|
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
return e;
|
|
89
|
-
},
|
|
89
|
+
}, f.apply(null, arguments);
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function p(e, r) {
|
|
92
92
|
if (null == e) return {};
|
|
93
|
-
var t, n, o =
|
|
93
|
+
var t, n, o = y(e, r);
|
|
94
94
|
if (Object.getOwnPropertySymbols) {
|
|
95
95
|
var a = Object.getOwnPropertySymbols(e);
|
|
96
96
|
for (n = 0; n < a.length; n++) {
|
|
97
|
-
t = a[n], r.
|
|
97
|
+
t = a[n], -1 === r.indexOf(t) && {}.propertyIsEnumerable.call(e, t) && (o[t] = e[t]);
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
return o;
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function y(e, r) {
|
|
103
103
|
if (null == e) return {};
|
|
104
104
|
var t = {};
|
|
105
105
|
for (var n in e) {
|
|
106
106
|
if ({}.hasOwnProperty.call(e, n)) {
|
|
107
|
-
if (r.
|
|
107
|
+
if (-1 !== r.indexOf(n)) continue;
|
|
108
108
|
t[n] = e[n];
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
return t;
|
|
112
112
|
}
|
|
113
|
-
var
|
|
113
|
+
var c = {
|
|
114
114
|
as: a().string.isRequired,
|
|
115
115
|
children: a().node.isRequired,
|
|
116
116
|
color: a().oneOf([ "active", "default", "disabled", "inverted", "muted", "inherit" ]),
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
/**
|
|
133
133
|
* Typography renders text content with styling based on the Splunk Design System.
|
|
134
134
|
*/ function g(e) {
|
|
135
|
-
var r = e.as, o = e.children, a = e.color, i = e.elementRef, l = e.family, s = e.lineHeight, u = e.size,
|
|
135
|
+
var r = e.as, o = e.children, a = e.color, i = e.elementRef, l = e.family, s = e.lineHeight, u = e.size, y = e.variant, c = e.weight, g = e.withReset, h = g === void 0 ? true : g, v = p(e, [ "as", "children", "color", "elementRef", "family", "lineHeight", "size", "variant", "weight", "withReset" ]);
|
|
136
136
|
// @docs-props-type TypographyPropsBase
|
|
137
137
|
var m = (0, t.useMemo)((function() {
|
|
138
138
|
return {
|
|
@@ -140,20 +140,20 @@
|
|
|
140
140
|
family: l,
|
|
141
141
|
lineHeight: s,
|
|
142
142
|
size: u,
|
|
143
|
-
weight:
|
|
143
|
+
weight: c,
|
|
144
144
|
withReset: h
|
|
145
145
|
};
|
|
146
|
-
}), [ a, l, s, u,
|
|
146
|
+
}), [ a, l, s, u, c, h ]);
|
|
147
147
|
|
|
148
|
-
return n().createElement(d,
|
|
148
|
+
return n().createElement(d, f({
|
|
149
149
|
as: r,
|
|
150
150
|
"data-test": "typography",
|
|
151
151
|
ref: i,
|
|
152
152
|
$typographyParams: m,
|
|
153
|
-
$variant:
|
|
153
|
+
$variant: y
|
|
154
154
|
}, v), o);
|
|
155
155
|
}
|
|
156
|
-
g.propTypes =
|
|
156
|
+
g.propTypes = c;
|
|
157
157
|
/* harmony default export */ const h = g;
|
|
158
158
|
// CONCATENATED MODULE: ./src/Typography/index.ts
|
|
159
159
|
module.exports = r;
|
package/WaitSpinner.js
CHANGED
|
@@ -79,11 +79,11 @@
|
|
|
79
79
|
// CONCATENATED MODULE: external "@splunk/themes"
|
|
80
80
|
const f = require("@splunk/themes");
|
|
81
81
|
// CONCATENATED MODULE: ./src/WaitSpinner/WaitSpinnerStyles.ts
|
|
82
|
-
var
|
|
82
|
+
var d = c().div.withConfig({
|
|
83
83
|
displayName: "WaitSpinnerStyles__Styled",
|
|
84
84
|
componentId: "sc-1nu971z-0"
|
|
85
85
|
})([ "", ";align-items:center;" ], f.mixins.reset("inline-flex"));
|
|
86
|
-
var
|
|
86
|
+
var u = (0, l.keyframes)([ "100%{transform:rotate(360deg);}" ]);
|
|
87
87
|
var m = (0, l.keyframes)([ "0%{transform:scale(0);opacity:0;}100%{transform:scale(1);opacity:1;}" ]);
|
|
88
88
|
var p = "2.07s";
|
|
89
89
|
var y = c().svg.withConfig({
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
large: (0, l.css)([ "width:40px;height:40px;" ])
|
|
96
96
|
}), (function(e) {
|
|
97
97
|
var t = e.$animated;
|
|
98
|
-
return t && (0, l.css)([ "animation:", " ", " infinite linear,", " 500ms cubic-bezier(0.01,0,0,1);" ],
|
|
98
|
+
return t && (0, l.css)([ "animation:", " ", " infinite linear,", " 500ms cubic-bezier(0.01,0,0,1);" ], u, p, m);
|
|
99
99
|
}));
|
|
100
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
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);}" ]);
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
if (Object.getOwnPropertySymbols) {
|
|
132
132
|
var i = Object.getOwnPropertySymbols(e);
|
|
133
133
|
for (n = 0; n < i.length; n++) {
|
|
134
|
-
r = i[n], t.
|
|
134
|
+
r = i[n], -1 === t.indexOf(r) && {}.propertyIsEnumerable.call(e, r) && (a[r] = e[r]);
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
return a;
|
|
@@ -141,7 +141,7 @@
|
|
|
141
141
|
var r = {};
|
|
142
142
|
for (var n in e) {
|
|
143
143
|
if ({}.hasOwnProperty.call(e, n)) {
|
|
144
|
-
if (t.
|
|
144
|
+
if (-1 !== t.indexOf(n)) continue;
|
|
145
145
|
r[n] = e[n];
|
|
146
146
|
}
|
|
147
147
|
}
|
|
@@ -157,7 +157,7 @@
|
|
|
157
157
|
// @docs-props-type WaitSpinnerPropsBase
|
|
158
158
|
var f = (0, s.useAnimationToggle)() === "on";
|
|
159
159
|
|
|
160
|
-
return n().createElement(
|
|
160
|
+
return n().createElement(d, k({
|
|
161
161
|
"data-test": "wait-spinner",
|
|
162
162
|
ref: t
|
|
163
163
|
}, c), n().createElement(y, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@splunk/react-ui",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.3.0",
|
|
4
4
|
"description": "Library of React components that implement the Splunk design language",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Splunk Inc.",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"docs:publish:external": "eval $(splunk-docs-package docs-external --suffix=public) && artifact-ci publish generic $DOCS_GEN_OUTPUT_NAME $DOCS_GEN_REMOTE_PATH",
|
|
12
12
|
"docs:start": "INTERNAL=true webpack serve --config docs.gen.webpack.config.js",
|
|
13
13
|
"docs:start:external": "webpack serve --config docs.gen.webpack.config.js",
|
|
14
|
-
"eslint": "eslint src .storybook --ext \".ts,.tsx,.js,.jsx\"",
|
|
14
|
+
"eslint": "eslint --rulesdir ../../infra/eslint/rules src .storybook --ext \".ts,.tsx,.js,.jsx\"",
|
|
15
15
|
"eslint:fix": "yarn run eslint --fix",
|
|
16
16
|
"eslint:ci": "yarn run eslint -f junit -o test-reports/lint-results.xml",
|
|
17
17
|
"lint": "yarn run eslint && yarn run stylelint",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"test:watch": "jest --watch",
|
|
30
30
|
"test:cypress": "yarn cypress open --component",
|
|
31
31
|
"test:cypress:ci": "yarn cypress run --component",
|
|
32
|
-
"types:build": "yarn types:
|
|
33
|
-
"types:
|
|
32
|
+
"types:build": "yarn types:noemit && yarn tsc --emitDeclarationOnly --declaration --declarationDir ./types && node ./scripts/pruneTypes.js",
|
|
33
|
+
"types:noemit": "tsc --p cypress/tsconfig.check-cypress.json && tsc --p tsconfig.check-docs.json",
|
|
34
34
|
"types:start": "yarn types:build --watch"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"@dnd-kit/sortable": "^8.0.0",
|
|
45
45
|
"@dnd-kit/utilities": "^3.2.2",
|
|
46
46
|
"@react-spring/web": "^9.7.5",
|
|
47
|
-
"@splunk/react-icons": "^5.
|
|
48
|
-
"@splunk/themes": "^1.1
|
|
47
|
+
"@splunk/react-icons": "^5.3.0",
|
|
48
|
+
"@splunk/themes": "^1.2.1",
|
|
49
49
|
"@splunk/ui-utils": "^1.10.0",
|
|
50
50
|
"decimal.js-light": "^2.2.3",
|
|
51
51
|
"lodash": "^4.17.14",
|
|
@@ -57,21 +57,21 @@
|
|
|
57
57
|
"use-typed-event-listener": "^3.0.0"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
|
-
"@babel/core": "^7.
|
|
61
|
-
"@babel/plugin-transform-runtime": "^7.
|
|
60
|
+
"@babel/core": "^7.28.0",
|
|
61
|
+
"@babel/plugin-transform-runtime": "^7.28.0",
|
|
62
62
|
"@splunk/babel-preset": "^4.0.0",
|
|
63
|
-
"@splunk/docs-gen": "^1.
|
|
63
|
+
"@splunk/docs-gen": "^1.1.1",
|
|
64
64
|
"@splunk/eslint-config": "^5.0.0",
|
|
65
|
-
"@splunk/react-docs": "^1.
|
|
65
|
+
"@splunk/react-docs": "^1.3.0",
|
|
66
66
|
"@splunk/stylelint-config": "^5.0.0",
|
|
67
67
|
"@splunk/test-runner-utils": "^0.4.1",
|
|
68
68
|
"@splunk/webpack-configs": "^7.0.2",
|
|
69
|
-
"@storybook/addon-a11y": "^7.6.
|
|
70
|
-
"@storybook/addon-essentials": "^7.6.
|
|
71
|
-
"@storybook/addon-interactions": "^7.6.
|
|
69
|
+
"@storybook/addon-a11y": "^7.6.20",
|
|
70
|
+
"@storybook/addon-essentials": "^7.6.20",
|
|
71
|
+
"@storybook/addon-interactions": "^7.6.20",
|
|
72
72
|
"@storybook/csf": "^0.0.1",
|
|
73
|
-
"@storybook/manager-api": "^7.6.
|
|
74
|
-
"@storybook/react-webpack5": "^7.6.
|
|
73
|
+
"@storybook/manager-api": "^7.6.20",
|
|
74
|
+
"@storybook/react-webpack5": "^7.6.20",
|
|
75
75
|
"@storybook/test-runner": "0.16.0",
|
|
76
76
|
"@testing-library/cypress": "^9.0.0",
|
|
77
77
|
"@testing-library/dom": "^10.4.0",
|
|
@@ -85,17 +85,15 @@
|
|
|
85
85
|
"@types/prismjs": "^1.26.3",
|
|
86
86
|
"@types/react": "^18.2.0",
|
|
87
87
|
"@types/react-dom": "^18.2.0",
|
|
88
|
-
"@types/sinon": "^4.3.3",
|
|
89
88
|
"@types/styled-components": "^5.1.0",
|
|
90
89
|
"@types/tinycolor2": "^1.4.2",
|
|
91
|
-
"@types/webdriverio": "^5.0.0",
|
|
92
90
|
"@types/webpack-env": "^1.15.2",
|
|
93
91
|
"@typescript-eslint/eslint-plugin": "^8.29.1",
|
|
94
92
|
"@typescript-eslint/parser": "^8.29.1",
|
|
95
|
-
"axe-html-reporter": "^2.2.
|
|
93
|
+
"axe-html-reporter": "^2.2.11",
|
|
96
94
|
"axe-playwright": "^1.1.11",
|
|
97
95
|
"babel-loader": "^8.3.0",
|
|
98
|
-
"babel-plugin-istanbul": "^5.
|
|
96
|
+
"babel-plugin-istanbul": "^5.2.0",
|
|
99
97
|
"babel-plugin-styled-components": "^1.10.7",
|
|
100
98
|
"babel-plugin-transform-imports": "^2.0.0",
|
|
101
99
|
"babel-plugin-transform-require-context": "^0.1.1",
|
|
@@ -128,20 +126,18 @@
|
|
|
128
126
|
"mkdirp": "^0.5.1",
|
|
129
127
|
"playwright": "^1.45.0",
|
|
130
128
|
"prismjs": "^1.29.0",
|
|
131
|
-
"prompt": "^1.0.0",
|
|
132
129
|
"raw-loader": "^4.0.2",
|
|
133
130
|
"react": "^18.2.0",
|
|
134
131
|
"react-docgen": "^5.4.0",
|
|
135
132
|
"react-dom": "^18.2.0",
|
|
136
133
|
"react-test-renderer": "^16.13.1",
|
|
137
|
-
"
|
|
138
|
-
"storybook": "^7.6.17",
|
|
134
|
+
"storybook": "^7.6.20",
|
|
139
135
|
"styled-components": "^5.3.10",
|
|
140
136
|
"stylelint": "^15.11.0",
|
|
141
137
|
"typescript": "^5.8.3",
|
|
142
138
|
"webpack": "^5.88.2",
|
|
143
139
|
"webpack-cli": "^5.1.4",
|
|
144
|
-
"webpack-dev-server": "^
|
|
140
|
+
"webpack-dev-server": "^5.2.2",
|
|
145
141
|
"webpack-merge": "^5.9.0"
|
|
146
142
|
},
|
|
147
143
|
"engines": {
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @name Inset
|
|
4
|
+
* @description inset adds padding to the Accordion Panel. This can be set on the Accordion, or individual Panels. Individual Panels can override inset from their parent Accordion.
|
|
5
|
+
*/
|
|
2
6
|
declare const Inset: () => React.JSX.Element;
|
|
3
7
|
export default Inset;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import React, { Component } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @name Controlling animation via a provider
|
|
4
|
+
* @description Shows how to control animation using an AnimationToggleProvider. This can be used to disable animation for most components included in this library.
|
|
5
|
+
*/
|
|
2
6
|
declare class Provider extends Component<object, {
|
|
3
7
|
animatedTransitions: boolean;
|
|
4
8
|
open: boolean;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @name Support reduced motion with a component
|
|
4
|
+
* @description Shows how to use the Animation Toggle component to offer an alternative when the user prefers reduced motion. If reduced motion is preferred but animations are disabled or no reduced motion alternative is set, Animation Toggle considers animations to be disabled.
|
|
5
|
+
*/
|
|
2
6
|
declare const ReducedMotionComponent: () => React.JSX.Element;
|
|
3
7
|
export default ReducedMotionComponent;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @name Support reduced motion with a hook
|
|
4
|
+
* @description Shows how to use the useAnimationToggle hook to offer an alternative when the user prefers reduced motion. If reduced motion is preferred but animations are disabled useAnimationToggle returns 'off'.
|
|
5
|
+
*/
|
|
2
6
|
declare const ReducedMotionHook: () => React.JSX.Element;
|
|
3
7
|
export default ReducedMotionHook;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import React, { Component } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @name Offering animation control with a component
|
|
4
|
+
* @description Shows how to use the Animation Toggle component to render different content based on current animation settings.
|
|
5
|
+
*/
|
|
2
6
|
declare class ToggleComponent extends Component<object, {
|
|
3
7
|
animatedTransitions: boolean;
|
|
4
8
|
}> {
|
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @name Background color
|
|
4
|
+
* @description An Avatar can render a provided background color and will automatically change the text color to satisfy accessibility contrast requirements. For the automatic text color change, backgroundColor must be provided as a string without a represented alpha value.
|
|
5
|
+
*/
|
|
2
6
|
export default function BackgroundColor(): React.JSX.Element;
|
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @name Size
|
|
4
|
+
* @description Avatars can be one of three standard sizes: small, medium (default), or large. The size prop can also be a string if the standard size doesn't fit your use case. Note: using a non-standard size may have unexpected layouts when combined with other components.
|
|
5
|
+
*/
|
|
2
6
|
export default function Size(): React.JSX.Element;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @name Customized click
|
|
4
|
+
* @description A custom onClick handler can be set on the root Breadcrumbs component or individual Breadcrumbs.Item components. If both components have onClick handlers, both handlers will be called when the Breadcrumbs.Item is clicked.
|
|
5
|
+
*/
|
|
2
6
|
declare function CustomizedClick(): React.JSX.Element;
|
|
3
7
|
export default CustomizedClick;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @name Block sized
|
|
4
|
+
* @description By default, Buttons exist in inline blocks. Set inline to false to make the Button the full width of the parent container.
|
|
5
|
+
*/
|
|
2
6
|
declare function Block(): React.JSX.Element;
|
|
3
7
|
export default Block;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @name Disabled
|
|
4
|
+
* @description Consider keeping Buttons enabled and inform the user why the action may have failed or can't be completed. Disabling buttons creates barriers for all users and can exclude people with disabilities. If a Button is passed disabled the default behavior is to render a 'dimmed' button. This ensures the button is still discoverable and can receive focus, but the button cannot not be activated by the user. If necessary, a Button can be completely disabled by setting disabled='disabled'. In these cases, consider contacting us to collaborate on alternatives for a more inclusive experience.
|
|
5
|
+
*/
|
|
2
6
|
declare function Disabled(): React.JSX.Element;
|
|
3
7
|
export default Disabled;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @name With icons
|
|
4
|
+
* @description By default, icons appear to the left of Button text. If you want an icon to appear the right of Button text, add it as a child and correct margins or other positioning as necessary.
|
|
5
|
+
*/
|
|
2
6
|
declare function Icons(): React.JSX.Element;
|
|
3
7
|
export default Icons;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @name With menu indicator
|
|
4
|
+
* @description Add the isMenu prop to display the menu indicator to the right of Button text. See [Dropdown](Dropdown) to learn how to create a dropdown menu.
|
|
5
|
+
*/
|
|
2
6
|
declare function Menus(): React.JSX.Element;
|
|
3
7
|
export default Menus;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @name As a link
|
|
4
|
+
* @description Add the to prop to indicate that the Button behaves as a link. The openInNewContext prop will open the link in a new window or tab and display the external link indicator
|
|
5
|
+
*/
|
|
2
6
|
declare function To(): React.JSX.Element;
|
|
3
7
|
export default To;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @name Basic
|
|
4
|
+
* @description A Card with a title and body. In this example, the content determines the width of the Card. Otherwise, pass in a width to fix the Card width.
|
|
5
|
+
*/
|
|
2
6
|
declare function Basic(): React.JSX.Element;
|
|
3
7
|
export default Basic;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @name Full card
|
|
4
|
+
* @description A Card with a header, body, and footer. In this example, the height and width of the Card are set. Card.Footer must always be last in a Card.
|
|
5
|
+
*/
|
|
2
6
|
declare function FullCard(): React.JSX.Element;
|
|
3
7
|
export default FullCard;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @name Card with heading
|
|
4
|
+
* @description Pass the Heading component into the title prop when there is content underneath to satisfy accessibility requirements.
|
|
5
|
+
*/
|
|
2
6
|
declare function HeadingTitle(): React.JSX.Element;
|
|
3
7
|
export default HeadingTitle;
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @name Selectable card
|
|
4
|
+
* @description A Card that is selected when clicked. The card must be provided an onClick in order to use the selected prop.
|
|
5
|
+
*/
|
|
2
6
|
declare function Selectable(): React.JSX.Element;
|
|
3
7
|
export default Selectable;
|
|
@@ -11,6 +11,10 @@ interface InteractiveState {
|
|
|
11
11
|
setAsWidth: boolean;
|
|
12
12
|
hasMaxWidth: boolean;
|
|
13
13
|
}
|
|
14
|
+
/**
|
|
15
|
+
* @name Interactive card layout
|
|
16
|
+
* @description The default layout scales cards equally and wraps them. As a best practice, pass in a minWidth style to each Card to prevent an overly narrow width when the screen is resized. You can pass in a maxWidth style so the Card doesn't get too wide. In this example, the minWidth is initially set to 200.
|
|
17
|
+
*/
|
|
14
18
|
declare class Interactive extends Component<object, InteractiveState> {
|
|
15
19
|
constructor(props: object);
|
|
16
20
|
handleChangeAmount: NumberChangeHandler;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import { ComponentProps } from '../utils/types';
|
|
4
|
+
/** @public */
|
|
5
|
+
type CheckboxChangeHandler = (event: React.ChangeEvent<HTMLInputElement>, data: {
|
|
6
|
+
checked: boolean;
|
|
7
|
+
name?: string;
|
|
8
|
+
value?: string;
|
|
9
|
+
}) => void;
|
|
10
|
+
interface CheckboxPropsBase {
|
|
11
|
+
/**
|
|
12
|
+
* Setting this value makes the component controlled. If set, the onChange callback is required.
|
|
13
|
+
* A setting of "indeterminate" is considered unchecked for the purposes of form submission.
|
|
14
|
+
*/
|
|
15
|
+
checked?: boolean | 'indeterminate';
|
|
16
|
+
/** The content to display inside the checkbox label. */
|
|
17
|
+
children?: React.ReactNode;
|
|
18
|
+
/** Set this property instead of checked to make the component uncontrolled. */
|
|
19
|
+
defaultChecked?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* The id of the description.
|
|
22
|
+
* When placed in a ControlGroup, this is automatically set to the ControlGroup's help component.
|
|
23
|
+
*/
|
|
24
|
+
describedBy?: string;
|
|
25
|
+
disabled?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* A React ref which is set to the DOM element when the component mounts, and null when it unmounts.
|
|
28
|
+
*/
|
|
29
|
+
elementRef?: React.Ref<HTMLDivElement>;
|
|
30
|
+
/**
|
|
31
|
+
* Mark the component as having an error.
|
|
32
|
+
*/
|
|
33
|
+
error?: boolean;
|
|
34
|
+
inert?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* A React ref which is set to the input element when the component mounts and null when it unmounts.
|
|
37
|
+
*/
|
|
38
|
+
inputRef?: React.Ref<HTMLInputElement>;
|
|
39
|
+
/**
|
|
40
|
+
* The id of the label.
|
|
41
|
+
* When placed in a ControlGroup, this is automatically set to the ControlGroup's label.
|
|
42
|
+
*/
|
|
43
|
+
labelledBy?: string;
|
|
44
|
+
/**
|
|
45
|
+
* The name is returned with onChange events, which can be used to identify the
|
|
46
|
+
* control when multiple controls share an onChange callback.
|
|
47
|
+
*/
|
|
48
|
+
name?: string;
|
|
49
|
+
/**
|
|
50
|
+
* Fires when the checked state changes.
|
|
51
|
+
*/
|
|
52
|
+
onChange?: CheckboxChangeHandler;
|
|
53
|
+
/** @private. */
|
|
54
|
+
required?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Returned by the onChange handler and submitted during form submission if the checkbox is checked.
|
|
57
|
+
* This defaults to "on" if the input is checked.
|
|
58
|
+
*/
|
|
59
|
+
value?: string;
|
|
60
|
+
}
|
|
61
|
+
interface CheckboxPropsBaseControlled extends CheckboxPropsBase {
|
|
62
|
+
defaultChecked?: never;
|
|
63
|
+
onChange: CheckboxChangeHandler;
|
|
64
|
+
}
|
|
65
|
+
interface CheckboxPropsBaseUncontrolled extends CheckboxPropsBase {
|
|
66
|
+
defaultChecked?: boolean;
|
|
67
|
+
checked?: never;
|
|
68
|
+
}
|
|
69
|
+
type CheckboxProps = ComponentProps<CheckboxPropsBaseControlled | CheckboxPropsBaseUncontrolled, 'input'>;
|
|
70
|
+
declare const Checkbox: {
|
|
71
|
+
({ checked, children, defaultChecked, describedBy, disabled, elementRef, error, id, inert, inputRef, labelledBy, name, onChange, required, role, tabIndex, value, ...otherProps }: CheckboxProps): React.JSX.Element;
|
|
72
|
+
propTypes: {
|
|
73
|
+
checked: PropTypes.Requireable<string | boolean>;
|
|
74
|
+
children: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
75
|
+
defaultChecked: PropTypes.Requireable<boolean>;
|
|
76
|
+
describedBy: PropTypes.Requireable<string>;
|
|
77
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
78
|
+
elementRef: PropTypes.Requireable<object>;
|
|
79
|
+
error: PropTypes.Requireable<boolean>;
|
|
80
|
+
inert: PropTypes.Requireable<boolean>;
|
|
81
|
+
inputRef: PropTypes.Requireable<object>;
|
|
82
|
+
labelledBy: PropTypes.Requireable<string>;
|
|
83
|
+
name: PropTypes.Requireable<string>;
|
|
84
|
+
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
85
|
+
/** @private. */
|
|
86
|
+
required: PropTypes.Requireable<boolean>;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
export default Checkbox;
|
|
90
|
+
export { CheckboxChangeHandler, CheckboxPropsBase, CheckboxPropsBaseControlled, CheckboxPropsBaseUncontrolled, };
|