@splunk/react-ui 5.1.0 → 5.2.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 +10 -10
- package/Box.js +2 -2
- package/Breadcrumbs.js +13 -13
- package/Button.js +12 -12
- package/ButtonGroup.js +9 -9
- package/ButtonSimple.js +2 -2
- package/CHANGELOG.md +23 -0
- package/Calendar.js +61 -61
- package/Card.js +286 -255
- package/CardLayout.js +10 -10
- package/Chip.js +31 -31
- package/Clickable.js +29 -29
- package/Code.js +15 -15
- package/CollapsiblePanel.js +93 -91
- package/Color.js +10 -10
- package/ColumnLayout.js +16 -16
- package/ComboBox.js +110 -110
- package/ControlGroup.js +99 -99
- package/Date.js +62 -62
- package/DefinitionList.js +124 -104
- package/Divider.js +2 -2
- package/DualListbox.js +178 -173
- package/File.js +22 -22
- package/FormRows.js +15 -15
- package/Heading.js +15 -15
- package/Image.js +31 -31
- package/JSONTree.js +492 -476
- package/Layer.js +4 -1
- package/Layout.js +10 -10
- package/Link.js +2 -2
- package/List.js +24 -24
- package/Markdown.js +102 -102
- package/Menu.js +21 -20
- package/Message.js +20 -20
- package/MessageBar.js +13 -13
- package/Modal.js +33 -33
- package/Monogram.js +94 -68
- package/Multiselect.js +822 -719
- package/Number.js +18 -18
- package/Paginator.js +39 -39
- 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 +48 -48
- package/ScreenReaderContent.js +13 -13
- package/Scroll.js +24 -24
- package/Search.js +25 -25
- package/Select.js +941 -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 +2 -2
- package/TabBar.js +293 -270
- package/TabLayout.js +68 -68
- package/Table.js +807 -790
- package/Text.js +2 -2
- package/TextArea.js +16 -16
- package/Tooltip.js +22 -22
- package/TransitionOpen.js +11 -11
- package/Tree.js +194 -189
- package/Typography.js +15 -15
- package/WaitSpinner.js +6 -6
- package/package.json +15 -18
- 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/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/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 +4 -0
- 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/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 +22 -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/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/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/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/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/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/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 +3 -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 +1 -1
- package/types/src/Multiselect/Multiselect.d.ts +1 -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/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/docs/examples/Basic.d.ts +4 -0
- package/types/src/Switch/docs/examples/Disabled.d.ts +3 -0
- package/types/src/Switch/docs/examples/Error.d.ts +3 -0
- 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/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/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/types/src/DefinitionList/docs/examples/Customize.d.ts +0 -3
package/Card.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 n in
|
|
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,25 +56,25 @@
|
|
|
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(
|
|
63
|
+
e.d(t, {
|
|
64
64
|
Body: () => /* reexport */ x,
|
|
65
65
|
Footer: () => /* reexport */ H,
|
|
66
|
-
Header: () => /* reexport */
|
|
67
|
-
default: () => /* reexport */
|
|
66
|
+
Header: () => /* reexport */ ae,
|
|
67
|
+
default: () => /* reexport */ Pe
|
|
68
68
|
});
|
|
69
69
|
// CONCATENATED MODULE: external "react"
|
|
70
|
-
const
|
|
71
|
-
var n = e.n(
|
|
70
|
+
const r = require("react");
|
|
71
|
+
var n = e.n(r);
|
|
72
72
|
// CONCATENATED MODULE: external "prop-types"
|
|
73
73
|
const o = require("prop-types");
|
|
74
|
-
var
|
|
74
|
+
var a = e.n(o);
|
|
75
75
|
// CONCATENATED MODULE: external "styled-components"
|
|
76
|
-
const
|
|
77
|
-
var l = e.n(
|
|
76
|
+
const i = require("styled-components");
|
|
77
|
+
var l = e.n(i);
|
|
78
78
|
// CONCATENATED MODULE: external "@splunk/react-ui/Box"
|
|
79
79
|
const c = require("@splunk/react-ui/Box");
|
|
80
80
|
var s = e.n(c);
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
// The padding here is for the spacing between the Card and its subcomponents.
|
|
85
85
|
// We apply this to the subcomponents rather than directly to the Card to allow Body's inset prop
|
|
86
86
|
// to remove spacing around it when false and we cannot do that if the padding is on its parent.
|
|
87
|
-
var d = (0,
|
|
87
|
+
var d = (0, i.css)([ "padding:0 ", ";&:first-child{padding-top:", ";}&:last-child{padding-bottom:", ";}" ], u.variables.spacingXLarge, u.variables.spacingLarge, u.variables.spacingLarge);
|
|
88
88
|
var f = l().div.withConfig({
|
|
89
89
|
displayName: "HeaderStyles__StyledTitle",
|
|
90
90
|
componentId: "eqi6uk-0"
|
|
@@ -95,150 +95,150 @@
|
|
|
95
95
|
})([ "", " ", " overflow-wrap:break-word;" ], u.mixins.reset("block"), u.mixins.typography("body", {
|
|
96
96
|
color: "active"
|
|
97
97
|
}));
|
|
98
|
-
var
|
|
98
|
+
var v = l().div.withConfig({
|
|
99
99
|
displayName: "HeaderStyles__StyledTitleContainer",
|
|
100
100
|
componentId: "eqi6uk-2"
|
|
101
101
|
})([ "", " flex:0 1 auto;", " &:not(:last-child){margin-right:", ";}" ], u.mixins.reset("block"), (function(e) {
|
|
102
|
-
var
|
|
103
|
-
return
|
|
102
|
+
var t = e.$truncateTitle;
|
|
103
|
+
return t && (0, i.css)([ "overflow:hidden;& > ", ",& > ", ",& > ", " *{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}" ], /* sc-sel */ f, /* sc-sel */ p, /* sc-sel */ f);
|
|
104
104
|
}), u.variables.spacingSmall);
|
|
105
|
-
var
|
|
105
|
+
var y = l().div.withConfig({
|
|
106
106
|
displayName: "HeaderStyles__StyledActionContainer",
|
|
107
107
|
componentId: "eqi6uk-3"
|
|
108
108
|
})([ "", " align-items:center;flex:0 0 auto;justify-content:space-between;gap:", ";transform:translateY(calc(-1 * (", " - 20px) / 2));" ], u.mixins.reset("flex"), u.variables.spacingSmall, u.variables.inputHeight);
|
|
109
|
-
var
|
|
109
|
+
var m = l()(s()).withConfig({
|
|
110
110
|
displayName: "HeaderStyles__StyledBox",
|
|
111
111
|
componentId: "eqi6uk-4"
|
|
112
|
-
})([ "", " align-items:start;display:flex;justify-content:space-between;position:relative;min-height:30px;>:not(", "):not(", "){flex:1 0 auto;}" ], d, /* sc-sel */
|
|
112
|
+
})([ "", " align-items:start;display:flex;justify-content:space-between;position:relative;min-height:30px;>:not(", "):not(", "){flex:1 0 auto;}" ], d, /* sc-sel */ v, /* sc-sel */ y);
|
|
113
113
|
// CONCATENATED MODULE: ./src/Card/BodyStyles.ts
|
|
114
|
-
var
|
|
114
|
+
var b = l()(s()).withConfig({
|
|
115
115
|
displayName: "BodyStyles__StyledBox",
|
|
116
116
|
componentId: "sc-1130udp-0"
|
|
117
117
|
})([ "", ";overflow:auto;height:100%;" ], (function(e) {
|
|
118
|
-
var
|
|
119
|
-
return
|
|
118
|
+
var t = e.$inset;
|
|
119
|
+
return t && (0, i.css)([ "", "" ], d);
|
|
120
120
|
}));
|
|
121
121
|
// CONCATENATED MODULE: ./src/Card/Body.tsx
|
|
122
122
|
function g() {
|
|
123
123
|
return g = Object.assign ? Object.assign.bind() : function(e) {
|
|
124
|
-
for (var
|
|
125
|
-
var
|
|
126
|
-
for (var n in
|
|
127
|
-
({}).hasOwnProperty.call(
|
|
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]);
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
130
|
return e;
|
|
131
131
|
}, g.apply(null, arguments);
|
|
132
132
|
}
|
|
133
|
-
function h(e,
|
|
133
|
+
function h(e, t) {
|
|
134
134
|
if (null == e) return {};
|
|
135
|
-
var
|
|
135
|
+
var r, n, o = O(e, t);
|
|
136
136
|
if (Object.getOwnPropertySymbols) {
|
|
137
|
-
var
|
|
138
|
-
for (n = 0; n <
|
|
139
|
-
|
|
137
|
+
var a = Object.getOwnPropertySymbols(e);
|
|
138
|
+
for (n = 0; n < a.length; n++) {
|
|
139
|
+
r = a[n], -1 === t.indexOf(r) && {}.propertyIsEnumerable.call(e, r) && (o[r] = e[r]);
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
142
|
return o;
|
|
143
143
|
}
|
|
144
|
-
function
|
|
144
|
+
function O(e, t) {
|
|
145
145
|
if (null == e) return {};
|
|
146
|
-
var
|
|
146
|
+
var r = {};
|
|
147
147
|
for (var n in e) {
|
|
148
148
|
if ({}.hasOwnProperty.call(e, n)) {
|
|
149
|
-
if (
|
|
150
|
-
|
|
149
|
+
if (-1 !== t.indexOf(n)) continue;
|
|
150
|
+
r[n] = e[n];
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
|
-
return
|
|
153
|
+
return r;
|
|
154
154
|
}
|
|
155
|
-
var
|
|
156
|
-
children:
|
|
157
|
-
elementRef:
|
|
158
|
-
inset:
|
|
155
|
+
var w = {
|
|
156
|
+
children: a().node,
|
|
157
|
+
elementRef: a().oneOfType([ a().func, a().object ]),
|
|
158
|
+
inset: a().bool
|
|
159
159
|
};
|
|
160
160
|
/**
|
|
161
161
|
* A styled container for `Card` body content.
|
|
162
162
|
*/ function S(e) {
|
|
163
|
-
var
|
|
163
|
+
var t = e.children, r = e.inset, o = r === void 0 ? true : r, a = h(e, [ "children", "inset" ]);
|
|
164
164
|
// @docs-props-type BodyPropsBase
|
|
165
165
|
|
|
166
|
-
return n().createElement(
|
|
166
|
+
return n().createElement(b, g({
|
|
167
167
|
"data-test": "body",
|
|
168
168
|
$inset: o
|
|
169
|
-
},
|
|
169
|
+
}, a), t);
|
|
170
170
|
}
|
|
171
|
-
S.propTypes =
|
|
171
|
+
S.propTypes = w;
|
|
172
172
|
/* harmony default export */ const x = S;
|
|
173
173
|
// CONCATENATED MODULE: external "@splunk/react-ui/Clickable"
|
|
174
174
|
const j = require("@splunk/react-ui/Clickable");
|
|
175
175
|
var k = e.n(j);
|
|
176
176
|
// CONCATENATED MODULE: ./src/Card/CardStyles.ts
|
|
177
177
|
var C = "0.2s";
|
|
178
|
-
var P = (0,
|
|
179
|
-
var
|
|
180
|
-
return
|
|
178
|
+
var P = (0, i.css)([ "", ";gap:", " 0;grid-template-rows:min-content;background-color:", ";min-width:100px;flex:1;vertical-align:top;border:1px solid ", ";border-radius:", ";box-shadow:", ";transition:height ", ",width ", ",min-width ", ",max-width ", ",margin ", ",box-shadow ", ",border-color ", ";&[data-clickable='true']{cursor:pointer;border-color:", ";", " &:hover{background-color:", ";box-shadow:", ";", "{text-decoration:underline;}}&:focus{box-shadow:", ";", "{text-decoration:underline;}}}" ], u.mixins.reset("inline-grid"), u.variables.spacingLarge, u.variables.backgroundColorSection, u.variables.transparent, u.variables.borderRadius, u.variables.embossShadow, C, C, C, C, C, C, C, u.variables.borderColorWeak, (function(e) {
|
|
179
|
+
var t = e.$selected;
|
|
180
|
+
return t && (0, i.css)([ "background-color:", ";" ], u.mixins.overlayColors(u.variables.backgroundColorSection, u.variables.interactiveColorOverlaySelected));
|
|
181
181
|
}), u.mixins.overlayColors(u.variables.backgroundColorSection, u.variables.interactiveColorOverlayHover), u.variables.overlayShadow, /* sc-sel */ f, u.variables.focusShadow, /* sc-sel */ f);
|
|
182
182
|
var E = l().article.withConfig({
|
|
183
183
|
displayName: "CardStyles__Styled",
|
|
184
184
|
componentId: "ola3x0-0"
|
|
185
185
|
})([ "", "" ], P);
|
|
186
|
-
var
|
|
186
|
+
var N = l()(k()).withConfig({
|
|
187
187
|
displayName: "CardStyles__StyledClickable",
|
|
188
188
|
componentId: "ola3x0-1"
|
|
189
189
|
})([ "", "" ], P);
|
|
190
190
|
// CONCATENATED MODULE: ./src/Card/FooterStyles.ts
|
|
191
|
-
var
|
|
191
|
+
var T = l()(s()).withConfig({
|
|
192
192
|
displayName: "FooterStyles__StyledBox",
|
|
193
193
|
componentId: "sc-1yu3r4s-0"
|
|
194
194
|
})([ "", " ", " text-align:right;align-self:end;" ], u.mixins.typography("body"), d);
|
|
195
195
|
// CONCATENATED MODULE: ./src/Card/Footer.tsx
|
|
196
|
-
function
|
|
197
|
-
return
|
|
198
|
-
for (var
|
|
199
|
-
var
|
|
200
|
-
for (var n in
|
|
201
|
-
({}).hasOwnProperty.call(
|
|
196
|
+
function _() {
|
|
197
|
+
return _ = Object.assign ? Object.assign.bind() : function(e) {
|
|
198
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
199
|
+
var r = arguments[t];
|
|
200
|
+
for (var n in r) {
|
|
201
|
+
({}).hasOwnProperty.call(r, n) && (e[n] = r[n]);
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
204
|
return e;
|
|
205
|
-
},
|
|
205
|
+
}, _.apply(null, arguments);
|
|
206
206
|
}
|
|
207
|
-
function
|
|
207
|
+
function I(e, t) {
|
|
208
208
|
if (null == e) return {};
|
|
209
|
-
var
|
|
209
|
+
var r, n, o = q(e, t);
|
|
210
210
|
if (Object.getOwnPropertySymbols) {
|
|
211
|
-
var
|
|
212
|
-
for (n = 0; n <
|
|
213
|
-
|
|
211
|
+
var a = Object.getOwnPropertySymbols(e);
|
|
212
|
+
for (n = 0; n < a.length; n++) {
|
|
213
|
+
r = a[n], -1 === t.indexOf(r) && {}.propertyIsEnumerable.call(e, r) && (o[r] = e[r]);
|
|
214
214
|
}
|
|
215
215
|
}
|
|
216
216
|
return o;
|
|
217
217
|
}
|
|
218
|
-
function
|
|
218
|
+
function q(e, t) {
|
|
219
219
|
if (null == e) return {};
|
|
220
|
-
var
|
|
220
|
+
var r = {};
|
|
221
221
|
for (var n in e) {
|
|
222
222
|
if ({}.hasOwnProperty.call(e, n)) {
|
|
223
|
-
if (
|
|
224
|
-
|
|
223
|
+
if (-1 !== t.indexOf(n)) continue;
|
|
224
|
+
r[n] = e[n];
|
|
225
225
|
}
|
|
226
226
|
}
|
|
227
|
-
return
|
|
227
|
+
return r;
|
|
228
228
|
}
|
|
229
229
|
var R = {
|
|
230
|
-
children:
|
|
231
|
-
elementRef:
|
|
230
|
+
children: a().node,
|
|
231
|
+
elementRef: a().oneOfType([ a().func, a().object ])
|
|
232
232
|
};
|
|
233
233
|
/**
|
|
234
234
|
* A styled container for `Card` footer content.
|
|
235
235
|
*/ function A(e) {
|
|
236
|
-
var
|
|
236
|
+
var t = e.children, r = I(e, [ "children" ]);
|
|
237
237
|
// @docs-props-type FooterPropsBase
|
|
238
238
|
|
|
239
|
-
return n().createElement(
|
|
239
|
+
return n().createElement(T, _({
|
|
240
240
|
"data-test": "footer"
|
|
241
|
-
},
|
|
241
|
+
}, r), t);
|
|
242
242
|
}
|
|
243
243
|
A.propTypes = R;
|
|
244
244
|
/* harmony default export */ const H = A;
|
|
@@ -246,161 +246,188 @@
|
|
|
246
246
|
const W = require("@splunk/react-icons/DotsThreeVertical");
|
|
247
247
|
var B = e.n(W);
|
|
248
248
|
// CONCATENATED MODULE: external "@splunk/react-ui/Anchor"
|
|
249
|
-
const
|
|
250
|
-
var
|
|
249
|
+
const M = require("@splunk/react-ui/Anchor");
|
|
250
|
+
var $ = e.n(M);
|
|
251
251
|
// CONCATENATED MODULE: external "@splunk/react-ui/Button"
|
|
252
|
-
const
|
|
253
|
-
var
|
|
252
|
+
const D = require("@splunk/react-ui/Button");
|
|
253
|
+
var V = e.n(D);
|
|
254
254
|
// CONCATENATED MODULE: external "@splunk/react-ui/Dropdown"
|
|
255
|
-
const
|
|
256
|
-
var
|
|
255
|
+
const F = require("@splunk/react-ui/Dropdown");
|
|
256
|
+
var L = e.n(F);
|
|
257
257
|
// CONCATENATED MODULE: external "@splunk/react-ui/Tooltip"
|
|
258
|
-
const
|
|
259
|
-
var X = e.n(
|
|
258
|
+
const U = require("@splunk/react-ui/Tooltip");
|
|
259
|
+
var X = e.n(U);
|
|
260
260
|
// CONCATENATED MODULE: external "@splunk/ui-utils/i18n"
|
|
261
261
|
const Y = require("@splunk/ui-utils/i18n");
|
|
262
|
+
// CONCATENATED MODULE: ./src/utils/useDeprecate.tsx
|
|
263
|
+
var z = "is deprecated and will be removed in the next major version.";
|
|
264
|
+
var G = function e(t) {
|
|
265
|
+
var r = t.additionalMessage, n = r === void 0 ? "" : r, o = t.componentName;
|
|
266
|
+
useEffect((function() {
|
|
267
|
+
if (false) {}
|
|
268
|
+
}), [ n, o ]);
|
|
269
|
+
};
|
|
270
|
+
var J = function e(t) {
|
|
271
|
+
var n = t.additionalMessage, o = n === void 0 ? "" : n, a = t.componentName, i = t.propName, l = t.propValue;
|
|
272
|
+
(0, r.useEffect)((function() {
|
|
273
|
+
if (false) {}
|
|
274
|
+
}), [ o, a, i, l ]);
|
|
275
|
+
};
|
|
276
|
+
var K = function e(t) {
|
|
277
|
+
var r = t.additionalMessage, n = r === void 0 ? "" : r, o = t.componentName, a = t.deprecatedPropValue, i = t.propName, l = t.propValue;
|
|
278
|
+
useEffect((function() {
|
|
279
|
+
if (false) {}
|
|
280
|
+
}), [ n, o, i, l, a ]);
|
|
281
|
+
};
|
|
262
282
|
// CONCATENATED MODULE: ./src/Card/Header.tsx
|
|
263
|
-
function
|
|
283
|
+
function Q(e, t) {
|
|
264
284
|
if (null == e) return {};
|
|
265
|
-
var
|
|
285
|
+
var r, n, o = Z(e, t);
|
|
266
286
|
if (Object.getOwnPropertySymbols) {
|
|
267
|
-
var
|
|
268
|
-
for (n = 0; n <
|
|
269
|
-
|
|
287
|
+
var a = Object.getOwnPropertySymbols(e);
|
|
288
|
+
for (n = 0; n < a.length; n++) {
|
|
289
|
+
r = a[n], -1 === t.indexOf(r) && {}.propertyIsEnumerable.call(e, r) && (o[r] = e[r]);
|
|
270
290
|
}
|
|
271
291
|
}
|
|
272
292
|
return o;
|
|
273
293
|
}
|
|
274
|
-
function
|
|
294
|
+
function Z(e, t) {
|
|
275
295
|
if (null == e) return {};
|
|
276
|
-
var
|
|
296
|
+
var r = {};
|
|
277
297
|
for (var n in e) {
|
|
278
298
|
if ({}.hasOwnProperty.call(e, n)) {
|
|
279
|
-
if (
|
|
280
|
-
|
|
299
|
+
if (-1 !== t.indexOf(n)) continue;
|
|
300
|
+
r[n] = e[n];
|
|
281
301
|
}
|
|
282
302
|
}
|
|
283
|
-
return
|
|
284
|
-
}
|
|
285
|
-
function
|
|
286
|
-
return
|
|
287
|
-
for (var
|
|
288
|
-
var
|
|
289
|
-
for (var n in
|
|
290
|
-
({}).hasOwnProperty.call(
|
|
303
|
+
return r;
|
|
304
|
+
}
|
|
305
|
+
function ee() {
|
|
306
|
+
return ee = Object.assign ? Object.assign.bind() : function(e) {
|
|
307
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
308
|
+
var r = arguments[t];
|
|
309
|
+
for (var n in r) {
|
|
310
|
+
({}).hasOwnProperty.call(r, n) && (e[n] = r[n]);
|
|
291
311
|
}
|
|
292
312
|
}
|
|
293
313
|
return e;
|
|
294
|
-
},
|
|
295
|
-
}
|
|
296
|
-
var
|
|
297
|
-
actionPrimary:
|
|
298
|
-
actionsSecondary:
|
|
299
|
-
anchor:
|
|
300
|
-
children:
|
|
301
|
-
elementRef:
|
|
302
|
-
subtitle:
|
|
303
|
-
title:
|
|
304
|
-
truncateTitle:
|
|
314
|
+
}, ee.apply(null, arguments);
|
|
315
|
+
}
|
|
316
|
+
var te = {
|
|
317
|
+
actionPrimary: a().node,
|
|
318
|
+
actionsSecondary: a().node,
|
|
319
|
+
anchor: a().string,
|
|
320
|
+
children: a().node,
|
|
321
|
+
elementRef: a().oneOfType([ a().func, a().object ]),
|
|
322
|
+
subtitle: a().node,
|
|
323
|
+
title: a().node,
|
|
324
|
+
truncateTitle: a().bool
|
|
305
325
|
};
|
|
306
326
|
// The order of the interfaces is necessary to maintain proper error messages: HeaderWithActions then HeaderWithActionsRenderProp
|
|
307
327
|
// If the actions comes first the error will report that actions should be undefined
|
|
308
328
|
// when we want actions to be the intended use case
|
|
309
|
-
var
|
|
329
|
+
var re = n().createElement(B(), null);
|
|
310
330
|
// `forwardRef` is used to enable focus on toggle when Dropdown is closing
|
|
311
|
-
var
|
|
331
|
+
var ne = n().forwardRef((function(e, t) {
|
|
312
332
|
|
|
313
|
-
return n().createElement(X(),
|
|
333
|
+
return n().createElement(X(), ee({
|
|
314
334
|
content: (0, Y._)("Actions"),
|
|
315
335
|
contentRelationship: "label"
|
|
316
|
-
}, e), n().createElement(
|
|
336
|
+
}, e), n().createElement(V(), {
|
|
317
337
|
appearance: "secondary",
|
|
318
338
|
"data-test": "actions-secondary-toggle",
|
|
319
|
-
icon:
|
|
320
|
-
elementRef:
|
|
339
|
+
icon: re,
|
|
340
|
+
elementRef: t
|
|
321
341
|
}));
|
|
322
342
|
}));
|
|
323
343
|
/**
|
|
324
344
|
* A styled container for `Card` header content.
|
|
325
|
-
*/ function
|
|
326
|
-
var
|
|
345
|
+
*/ function oe(e) {
|
|
346
|
+
var t = e.actions, o = e.actionPrimary, a = e.actionsSecondary, i = e.anchor, l = e.children, c = e.subtitle, s = e.title, u = e.truncateTitle, d = u === void 0 ? true : u, b = Q(e, [ "actions", "actionPrimary", "actionsSecondary", "anchor", "children", "subtitle", "title", "truncateTitle" ]);
|
|
327
347
|
// @docs-props-type HeaderPropsBase
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
348
|
+
J({
|
|
349
|
+
additionalMessage: "Pass the Anchor component to the 'title' prop instead.",
|
|
350
|
+
componentName: "Card.Header",
|
|
351
|
+
propName: "anchor",
|
|
352
|
+
propValue: i
|
|
353
|
+
});
|
|
354
|
+
(0, r.useEffect)((function() {
|
|
355
|
+
if (false) {}
|
|
356
|
+
}), [ t, o, a ]);
|
|
357
|
+
var g;
|
|
358
|
+
if (t) {
|
|
359
|
+
g = t();
|
|
360
|
+
} else if (o || a) {
|
|
361
|
+
g = n().createElement(n().Fragment, null, o, a && n().createElement(L(), {
|
|
362
|
+
toggle: n().createElement(ne, null)
|
|
363
|
+
}, a));
|
|
337
364
|
}
|
|
338
365
|
|
|
339
|
-
return n().createElement(
|
|
366
|
+
return n().createElement(m, ee({
|
|
340
367
|
"data-test": "header"
|
|
341
|
-
},
|
|
342
|
-
$truncateTitle:
|
|
343
|
-
},
|
|
368
|
+
}, b), (s || c) && n().createElement(v, {
|
|
369
|
+
$truncateTitle: d
|
|
370
|
+
}, s && n().createElement(f, null, i ? n().createElement($(), {
|
|
344
371
|
name: i
|
|
345
|
-
},
|
|
372
|
+
}, s) : s), c && n().createElement(p, null, c)), l, g && n().createElement(y, null, g));
|
|
346
373
|
}
|
|
347
|
-
|
|
348
|
-
/* harmony default export */ const
|
|
374
|
+
oe.propTypes = te;
|
|
375
|
+
/* harmony default export */ const ae = oe;
|
|
349
376
|
// CONCATENATED MODULE: ./src/Card/Card.tsx
|
|
350
|
-
function
|
|
377
|
+
function ie(e) {
|
|
351
378
|
"@babel/helpers - typeof";
|
|
352
|
-
return
|
|
379
|
+
return ie = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
|
|
353
380
|
return typeof e;
|
|
354
381
|
} : function(e) {
|
|
355
382
|
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
356
|
-
},
|
|
357
|
-
}
|
|
358
|
-
function
|
|
359
|
-
return
|
|
360
|
-
for (var
|
|
361
|
-
var
|
|
362
|
-
for (var n in
|
|
363
|
-
({}).hasOwnProperty.call(
|
|
383
|
+
}, ie(e);
|
|
384
|
+
}
|
|
385
|
+
function le() {
|
|
386
|
+
return le = Object.assign ? Object.assign.bind() : function(e) {
|
|
387
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
388
|
+
var r = arguments[t];
|
|
389
|
+
for (var n in r) {
|
|
390
|
+
({}).hasOwnProperty.call(r, n) && (e[n] = r[n]);
|
|
364
391
|
}
|
|
365
392
|
}
|
|
366
393
|
return e;
|
|
367
|
-
},
|
|
394
|
+
}, le.apply(null, arguments);
|
|
368
395
|
}
|
|
369
|
-
function
|
|
370
|
-
return
|
|
396
|
+
function ce(e, t) {
|
|
397
|
+
return pe(e) || fe(e, t) || ue(e, t) || se();
|
|
371
398
|
}
|
|
372
|
-
function
|
|
399
|
+
function se() {
|
|
373
400
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
374
401
|
}
|
|
375
|
-
function
|
|
402
|
+
function ue(e, t) {
|
|
376
403
|
if (e) {
|
|
377
|
-
if ("string" == typeof e) return
|
|
378
|
-
var
|
|
379
|
-
return "Object" ===
|
|
404
|
+
if ("string" == typeof e) return de(e, t);
|
|
405
|
+
var r = {}.toString.call(e).slice(8, -1);
|
|
406
|
+
return "Object" === r && e.constructor && (r = e.constructor.name), "Map" === r || "Set" === r ? Array.from(e) : "Arguments" === r || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? de(e, t) : void 0;
|
|
380
407
|
}
|
|
381
408
|
}
|
|
382
|
-
function
|
|
383
|
-
(null ==
|
|
384
|
-
for (var
|
|
385
|
-
n[
|
|
409
|
+
function de(e, t) {
|
|
410
|
+
(null == t || t > e.length) && (t = e.length);
|
|
411
|
+
for (var r = 0, n = Array(t); r < t; r++) {
|
|
412
|
+
n[r] = e[r];
|
|
386
413
|
}
|
|
387
414
|
return n;
|
|
388
415
|
}
|
|
389
|
-
function
|
|
390
|
-
var
|
|
391
|
-
if (null !=
|
|
392
|
-
var n, o,
|
|
416
|
+
function fe(e, t) {
|
|
417
|
+
var r = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
|
|
418
|
+
if (null != r) {
|
|
419
|
+
var n, o, a, i, l = [], c = !0, s = !1;
|
|
393
420
|
try {
|
|
394
|
-
if (
|
|
395
|
-
if (Object(
|
|
421
|
+
if (a = (r = r.call(e)).next, 0 === t) {
|
|
422
|
+
if (Object(r) !== r) return;
|
|
396
423
|
c = !1;
|
|
397
|
-
} else for (;!(c = (n =
|
|
424
|
+
} else for (;!(c = (n = a.call(r)).done) && (l.push(n.value), l.length !== t); c = !0) {
|
|
398
425
|
}
|
|
399
426
|
} catch (e) {
|
|
400
427
|
s = !0, o = e;
|
|
401
428
|
} finally {
|
|
402
429
|
try {
|
|
403
|
-
if (!c && null !=
|
|
430
|
+
if (!c && null != r["return"] && (i = r["return"](), Object(i) !== i)) return;
|
|
404
431
|
} finally {
|
|
405
432
|
if (s) throw o;
|
|
406
433
|
}
|
|
@@ -408,148 +435,152 @@
|
|
|
408
435
|
return l;
|
|
409
436
|
}
|
|
410
437
|
}
|
|
411
|
-
function
|
|
438
|
+
function pe(e) {
|
|
412
439
|
if (Array.isArray(e)) return e;
|
|
413
440
|
}
|
|
414
|
-
function
|
|
415
|
-
var
|
|
441
|
+
function ve(e, t) {
|
|
442
|
+
var r = Object.keys(e);
|
|
416
443
|
if (Object.getOwnPropertySymbols) {
|
|
417
444
|
var n = Object.getOwnPropertySymbols(e);
|
|
418
|
-
|
|
419
|
-
return Object.getOwnPropertyDescriptor(e,
|
|
420
|
-
}))),
|
|
445
|
+
t && (n = n.filter((function(t) {
|
|
446
|
+
return Object.getOwnPropertyDescriptor(e, t).enumerable;
|
|
447
|
+
}))), r.push.apply(r, n);
|
|
421
448
|
}
|
|
422
|
-
return
|
|
423
|
-
}
|
|
424
|
-
function
|
|
425
|
-
for (var
|
|
426
|
-
var
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(
|
|
430
|
-
Object.defineProperty(e,
|
|
449
|
+
return r;
|
|
450
|
+
}
|
|
451
|
+
function ye(e) {
|
|
452
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
453
|
+
var r = null != arguments[t] ? arguments[t] : {};
|
|
454
|
+
t % 2 ? ve(Object(r), !0).forEach((function(t) {
|
|
455
|
+
me(e, t, r[t]);
|
|
456
|
+
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r)) : ve(Object(r)).forEach((function(t) {
|
|
457
|
+
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t));
|
|
431
458
|
}));
|
|
432
459
|
}
|
|
433
460
|
return e;
|
|
434
461
|
}
|
|
435
|
-
function
|
|
436
|
-
return (
|
|
437
|
-
value:
|
|
462
|
+
function me(e, t, r) {
|
|
463
|
+
return (t = be(t)) in e ? Object.defineProperty(e, t, {
|
|
464
|
+
value: r,
|
|
438
465
|
enumerable: !0,
|
|
439
466
|
configurable: !0,
|
|
440
467
|
writable: !0
|
|
441
|
-
}) : e[
|
|
442
|
-
}
|
|
443
|
-
function
|
|
444
|
-
var
|
|
445
|
-
return "symbol" ==
|
|
446
|
-
}
|
|
447
|
-
function
|
|
448
|
-
if ("object" !=
|
|
449
|
-
var
|
|
450
|
-
if (void 0 !==
|
|
451
|
-
var n =
|
|
452
|
-
if ("object" !=
|
|
468
|
+
}) : e[t] = r, e;
|
|
469
|
+
}
|
|
470
|
+
function be(e) {
|
|
471
|
+
var t = ge(e, "string");
|
|
472
|
+
return "symbol" == ie(t) ? t : t + "";
|
|
473
|
+
}
|
|
474
|
+
function ge(e, t) {
|
|
475
|
+
if ("object" != ie(e) || !e) return e;
|
|
476
|
+
var r = e[Symbol.toPrimitive];
|
|
477
|
+
if (void 0 !== r) {
|
|
478
|
+
var n = r.call(e, t || "default");
|
|
479
|
+
if ("object" != ie(n)) return n;
|
|
453
480
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
454
481
|
}
|
|
455
|
-
return ("string" ===
|
|
482
|
+
return ("string" === t ? String : Number)(e);
|
|
456
483
|
}
|
|
457
|
-
function
|
|
484
|
+
function he(e, t) {
|
|
458
485
|
if (null == e) return {};
|
|
459
|
-
var
|
|
486
|
+
var r, n, o = Oe(e, t);
|
|
460
487
|
if (Object.getOwnPropertySymbols) {
|
|
461
|
-
var
|
|
462
|
-
for (n = 0; n <
|
|
463
|
-
|
|
488
|
+
var a = Object.getOwnPropertySymbols(e);
|
|
489
|
+
for (n = 0; n < a.length; n++) {
|
|
490
|
+
r = a[n], -1 === t.indexOf(r) && {}.propertyIsEnumerable.call(e, r) && (o[r] = e[r]);
|
|
464
491
|
}
|
|
465
492
|
}
|
|
466
493
|
return o;
|
|
467
494
|
}
|
|
468
|
-
function
|
|
495
|
+
function Oe(e, t) {
|
|
469
496
|
if (null == e) return {};
|
|
470
|
-
var
|
|
497
|
+
var r = {};
|
|
471
498
|
for (var n in e) {
|
|
472
499
|
if ({}.hasOwnProperty.call(e, n)) {
|
|
473
|
-
if (
|
|
474
|
-
|
|
500
|
+
if (-1 !== t.indexOf(n)) continue;
|
|
501
|
+
r[n] = e[n];
|
|
475
502
|
}
|
|
476
503
|
}
|
|
477
|
-
return
|
|
504
|
+
return r;
|
|
478
505
|
}
|
|
479
|
-
/** @public */ var
|
|
480
|
-
children:
|
|
481
|
-
elementRef:
|
|
506
|
+
/** @public */ var we = {
|
|
507
|
+
children: a().node,
|
|
508
|
+
elementRef: a().oneOfType([ a().func, a().object ]),
|
|
482
509
|
/** @private */
|
|
483
|
-
margin:
|
|
510
|
+
margin: a().number,
|
|
484
511
|
/** @private */
|
|
485
|
-
maxWidth:
|
|
512
|
+
maxWidth: a().oneOfType([ a().number, a().string ]),
|
|
486
513
|
/** @private */
|
|
487
|
-
minWidth:
|
|
488
|
-
onClick:
|
|
489
|
-
openInNewContext:
|
|
490
|
-
selected:
|
|
491
|
-
to:
|
|
492
|
-
value:
|
|
493
|
-
tag:
|
|
514
|
+
minWidth: a().oneOfType([ a().number, a().string ]),
|
|
515
|
+
onClick: a().func,
|
|
516
|
+
openInNewContext: a().bool,
|
|
517
|
+
selected: a().bool,
|
|
518
|
+
to: a().string,
|
|
519
|
+
value: a().any,
|
|
520
|
+
tag: a().oneOf([ "article", "div", "aside", "section" ])
|
|
494
521
|
};
|
|
495
|
-
function
|
|
522
|
+
function Se(e) {
|
|
496
523
|
return !!e.onClick || !!e.to;
|
|
497
524
|
}
|
|
498
|
-
function
|
|
499
|
-
var
|
|
500
|
-
var
|
|
525
|
+
function xe(e) {
|
|
526
|
+
var t = e.margin, r = e.maxWidth, n = e.minWidth, o = e.style, a = he(e, [ "margin", "maxWidth", "minWidth", "style" ]);
|
|
527
|
+
var i = ye({
|
|
501
528
|
minWidth: n,
|
|
502
|
-
maxWidth:
|
|
503
|
-
margin:
|
|
529
|
+
maxWidth: r,
|
|
530
|
+
margin: t
|
|
504
531
|
}, o);
|
|
505
532
|
var l = {
|
|
506
533
|
"data-test": "card",
|
|
507
|
-
style:
|
|
534
|
+
style: i
|
|
508
535
|
};
|
|
509
|
-
return [ l,
|
|
536
|
+
return [ l, a ];
|
|
510
537
|
}
|
|
511
|
-
function
|
|
512
|
-
var
|
|
513
|
-
var l =
|
|
514
|
-
var
|
|
538
|
+
function je(e) {
|
|
539
|
+
var t = xe(e), o = ce(t, 2), a = o[0], i = o[1];
|
|
540
|
+
var l = i.children, c = i.elementRef, s = i.onClick, u = i.openInNewContext, d = i.selected, f = i.to, p = i.value, v = he(i, [ "children", "elementRef", "onClick", "openInNewContext", "selected", "to", "value" ]);
|
|
541
|
+
var y = (0, r.useCallback)((function(e) {
|
|
515
542
|
s === null || s === void 0 ? void 0 : s(e, {
|
|
516
543
|
selected: d || false,
|
|
517
544
|
value: p
|
|
518
545
|
});
|
|
519
546
|
}), [ s, d, p ]);
|
|
520
547
|
|
|
521
|
-
return n().createElement(
|
|
548
|
+
return n().createElement(N, le({
|
|
522
549
|
"data-clickable": true,
|
|
523
550
|
$selected: d || false,
|
|
524
551
|
elementRef: c
|
|
525
|
-
},
|
|
526
|
-
onClick: s ?
|
|
552
|
+
}, a, v, {
|
|
553
|
+
onClick: s ? y : undefined,
|
|
527
554
|
openInNewContext: u,
|
|
528
555
|
to: f || undefined
|
|
529
556
|
}), l);
|
|
530
557
|
}
|
|
531
|
-
function
|
|
532
|
-
var
|
|
533
|
-
var
|
|
558
|
+
function ke(e) {
|
|
559
|
+
var t = xe(e), r = ce(t, 2), o = r[0], a = r[1];
|
|
560
|
+
var i = a.children, l = a.elementRef, c = a.tag, s = he(a, [ "children", "elementRef", "tag" ]);
|
|
534
561
|
|
|
535
|
-
return n().createElement(E,
|
|
562
|
+
return n().createElement(E, le({
|
|
536
563
|
$selected: false,
|
|
537
564
|
ref: l,
|
|
538
565
|
as: c
|
|
539
566
|
}, o, s, {
|
|
540
567
|
onClick: undefined
|
|
541
|
-
}),
|
|
568
|
+
}), i);
|
|
542
569
|
}
|
|
543
|
-
function
|
|
570
|
+
function Ce(e) {
|
|
544
571
|
// @docs-props-type CardPropsBase
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
572
|
+
J({
|
|
573
|
+
componentName: "Card",
|
|
574
|
+
propName: "selected",
|
|
575
|
+
propValue: e.selected
|
|
576
|
+
});
|
|
577
|
+
return Se(e) ? n().createElement(je, e) : n().createElement(ke, e);
|
|
578
|
+
}
|
|
579
|
+
Ce.propTypes = we;
|
|
580
|
+
Ce.Header = ae;
|
|
581
|
+
Ce.Body = x;
|
|
582
|
+
Ce.Footer = H;
|
|
583
|
+
/* harmony default export */ const Pe = Ce;
|
|
553
584
|
// CONCATENATED MODULE: ./src/Card/index.ts
|
|
554
|
-
module.exports =
|
|
585
|
+
module.exports = t;
|
|
555
586
|
/******/})();
|