@splunk/react-ui 4.42.0 → 5.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Accordion.js +87 -109
- package/Animation.js +48 -31
- package/Avatar.d.ts +2 -0
- package/Avatar.js +478 -0
- package/Box.js +8 -8
- package/Breadcrumbs.js +45 -49
- package/Button.js +144 -399
- package/ButtonGroup.js +22 -26
- package/ButtonSimple.js +239 -605
- package/CHANGELOG.md +29 -0
- package/CHANGELOG.v5.mdx +195 -0
- package/Calendar.js +55 -68
- package/Card.js +162 -200
- package/Chip.js +108 -96
- package/Clickable.js +174 -310
- package/Code.js +528 -372
- package/CollapsiblePanel.js +439 -601
- package/Color.js +727 -967
- package/ColumnLayout.js +190 -234
- package/ComboBox.js +166 -161
- package/ControlGroup.js +502 -531
- package/Date.js +314 -420
- package/DefinitionList.js +128 -140
- package/Dropdown.js +201 -358
- package/DualListbox.js +26 -26
- package/File.js +479 -558
- package/FormRows.js +339 -569
- package/Heading.js +53 -99
- package/Image.js +254 -305
- package/JSONTree.js +135 -131
- package/Layer.js +187 -269
- package/{CloseButton.js → Layout.js} +39 -61
- package/Link.js +91 -244
- package/List.js +68 -74
- package/MIGRATION.mdx +48 -53
- package/MIGRATION.v5.mdx +428 -0
- package/Markdown.js +439 -385
- package/Menu.js +387 -741
- package/Message.js +150 -322
- package/MessageBar.js +15 -15
- package/Modal.js +444 -587
- package/Monogram.js +1 -1
- package/Multiselect.js +1207 -1256
- package/NonInteractiveCheckbox.js +189 -0
- package/Number.js +538 -621
- package/Paginator.js +354 -448
- package/Paragraph.js +12 -15
- package/Popover.js +588 -683
- package/Progress.js +141 -244
- package/Prose.d.ts +2 -0
- package/Prose.js +213 -0
- package/RadioBar.js +328 -450
- package/RadioList.js +129 -212
- package/Resize.js +351 -402
- package/ResultsMenu.d.ts +2 -0
- package/ResultsMenu.js +255 -358
- package/Scroll.js +159 -238
- package/Search.js +365 -453
- package/Select.js +1097 -1380
- package/SidePanel.js +179 -223
- package/Slider.js +440 -542
- package/SlidingPanels.js +377 -504
- package/SplitButton.js +114 -102
- package/StaticContent.js +58 -74
- package/StepBar.js +193 -258
- package/Switch.js +246 -552
- package/TabBar.js +442 -622
- package/TabLayout.js +197 -251
- package/Table.js +2373 -3691
- package/Text.js +422 -909
- package/TextArea.js +537 -959
- package/Tooltip.js +35 -41
- package/TransitionOpen.js +296 -334
- package/Tree.js +20 -14
- package/Typography.js +35 -50
- package/WaitSpinner.js +93 -124
- package/package.json +16 -17
- package/stubs-dependencies.d.ts +0 -7
- package/stubs-splunkui.d.ts +6 -1
- package/types/src/Accordion/Accordion.d.ts +5 -1
- package/types/src/Accordion/Panel.d.ts +1 -2
- package/types/src/Accordion/docs/examples/Controlled.d.ts +2 -1
- package/types/src/Accordion/docs/examples/Inset.d.ts +2 -1
- package/types/src/Accordion/docs/examples/Uncontrolled.d.ts +2 -1
- package/types/src/Anchor/Anchor.d.ts +1 -1
- package/types/src/Anchor/docs/examples/Basic.d.ts +2 -1
- package/types/src/Animation/Animation.d.ts +12 -2
- package/types/src/AnimationToggle/AnimationToggleProvider.d.ts +1 -1
- package/types/src/AnimationToggle/docs/examples/Provider.d.ts +2 -2
- package/types/src/AnimationToggle/docs/examples/ReducedMotionComponent.d.ts +2 -1
- package/types/src/AnimationToggle/docs/examples/ReducedMotionHook.d.ts +2 -1
- package/types/src/AnimationToggle/docs/examples/ToggleComponent.d.ts +2 -2
- package/types/src/AnimationToggle/docs/examples/ToggleHook.d.ts +2 -1
- package/types/src/Avatar/Avatar.d.ts +65 -0
- package/types/src/Avatar/docs/examples/BackgroundColor.d.ts +2 -0
- package/types/src/Avatar/docs/examples/Basic.d.ts +2 -0
- package/types/src/Avatar/docs/examples/Image.d.ts +2 -0
- package/types/src/Avatar/docs/examples/Interactive.d.ts +2 -0
- package/types/src/Avatar/docs/examples/Size.d.ts +2 -0
- package/types/src/Avatar/getInitials.d.ts +9 -0
- package/types/src/Avatar/index.d.ts +2 -0
- package/types/src/Box/Box.d.ts +1 -1
- package/types/src/Breadcrumbs/Breadcrumbs.d.ts +1 -1
- package/types/src/Breadcrumbs/Item.d.ts +1 -1
- package/types/src/Breadcrumbs/docs/examples/Adornments.d.ts +2 -1
- package/types/src/Breadcrumbs/docs/examples/Basic.d.ts +2 -1
- package/types/src/Breadcrumbs/docs/examples/CustomizedClick.d.ts +2 -1
- package/types/src/Button/Button.d.ts +20 -34
- package/types/src/Button/docs/examples/Basic.d.ts +2 -1
- package/types/src/Button/docs/examples/Block.d.ts +2 -1
- package/types/src/Button/docs/examples/Disabled.d.ts +2 -1
- package/types/src/Button/docs/examples/Icons.d.ts +2 -1
- package/types/src/Button/docs/examples/Menus.d.ts +2 -1
- package/types/src/Button/docs/examples/To.d.ts +2 -1
- package/types/src/Button/docs/examples/Truncated.d.ts +2 -1
- package/types/src/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/types/src/ButtonGroup/docs/examples/Basic.d.ts +2 -1
- package/types/src/ButtonSimple/ButtonSimple.d.ts +22 -41
- package/types/src/ButtonSimple/mixin.d.ts +6 -2
- package/types/src/Calendar/Calendar.d.ts +2 -2
- package/types/src/Calendar/DateTable.d.ts +1 -1
- package/types/src/Calendar/Day.d.ts +1 -1
- package/types/src/Calendar/MonthHeader.d.ts +1 -1
- package/types/src/Card/Body.d.ts +1 -1
- package/types/src/Card/Card.d.ts +4 -9
- package/types/src/Card/Footer.d.ts +1 -8
- package/types/src/Card/Header.d.ts +2 -2
- package/types/src/Card/docs/examples/Actions.d.ts +2 -1
- package/types/src/Card/docs/examples/Basic.d.ts +2 -1
- package/types/src/Card/docs/examples/Clickable.d.ts +2 -1
- package/types/src/Card/docs/examples/Full.d.ts +2 -1
- package/types/src/Card/docs/examples/Images.d.ts +2 -1
- package/types/src/Card/docs/examples/Selectable.d.ts +2 -1
- package/types/src/CardLayout/CardLayout.d.ts +1 -1
- package/types/src/CardLayout/docs/examples/Basic.d.ts +2 -1
- package/types/src/CardLayout/docs/examples/Interactive.d.ts +2 -2
- package/types/src/Chip/Chip.d.ts +1 -1
- package/types/src/Chip/docs/examples/Appearance.d.ts +2 -1
- package/types/src/Chip/docs/examples/CustomColors.d.ts +2 -1
- package/types/src/Chip/docs/examples/Disabled.d.ts +2 -1
- package/types/src/Chip/docs/examples/Icon.d.ts +2 -1
- package/types/src/Chip/docs/examples/Removable.d.ts +2 -1
- package/types/src/Chip/docs/examples/RemovableWithNonStringChildren.d.ts +2 -1
- package/types/src/Clickable/Clickable.d.ts +13 -37
- package/types/src/Clickable/NavigationProvider.d.ts +2 -19
- package/types/src/Clickable/docs/examples/Basic.d.ts +2 -1
- package/types/src/Clickable/docs/examples/Disabled.d.ts +3 -0
- package/types/src/Clickable/docs/examples/NavigationProvider.d.ts +2 -1
- package/types/src/Code/Code.d.ts +3 -3
- package/types/src/Code/docs/examples/Default.d.ts +2 -1
- package/types/src/Code/docs/examples/HideIndent.d.ts +2 -1
- package/types/src/Code/docs/examples/Language.d.ts +2 -1
- package/types/src/CollapsiblePanel/CollapsiblePanel.d.ts +31 -70
- package/types/src/CollapsiblePanel/SingleOpenPanelGroup.d.ts +2 -2
- package/types/src/CollapsiblePanel/docs/examples/Actions.d.ts +3 -0
- package/types/src/CollapsiblePanel/docs/examples/BasicControlled.d.ts +2 -1
- package/types/src/CollapsiblePanel/docs/examples/BasicUncontrolled.d.ts +2 -1
- package/types/src/CollapsiblePanel/docs/examples/Disabled.d.ts +3 -0
- package/types/src/CollapsiblePanel/docs/examples/MultiControlled.d.ts +2 -1
- package/types/src/CollapsiblePanel/docs/examples/MultiUncontrolled.d.ts +2 -1
- package/types/src/CollapsiblePanel/docs/examples/SingleOpenPanelGroupControlled.d.ts +2 -1
- package/types/src/CollapsiblePanel/docs/examples/SingleOpenPanelGroupInset.d.ts +2 -1
- package/types/src/CollapsiblePanel/docs/examples/SingleOpenPanelGroupUncontrolled.d.ts +2 -1
- package/types/src/CollapsiblePanel/docs/examples/Subtle.d.ts +3 -0
- package/types/src/CollapsiblePanel/icons/ExpandPanel.d.ts +2 -1
- package/types/src/Color/Color.d.ts +24 -59
- package/types/src/Color/Palette.d.ts +3 -18
- package/types/src/Color/Swatch.d.ts +1 -4
- package/types/src/Color/docs/examples/Controlled.d.ts +2 -1
- package/types/src/Color/docs/examples/CustomizedPalette.d.ts +2 -1
- package/types/src/Color/docs/examples/HideInput.d.ts +2 -1
- package/types/src/Color/docs/examples/Null.d.ts +2 -1
- package/types/src/Color/docs/examples/ThemeVariables.d.ts +2 -1
- package/types/src/Color/docs/examples/Transparent.d.ts +2 -1
- package/types/src/Color/docs/examples/Uncontrolled.d.ts +2 -1
- package/types/src/ColumnLayout/Column.d.ts +1 -11
- package/types/src/ColumnLayout/ColumnLayout.d.ts +1 -1
- package/types/src/ColumnLayout/Row.d.ts +1 -11
- package/types/src/ColumnLayout/docs/examples/AlignItems.d.ts +2 -1
- package/types/src/ColumnLayout/docs/examples/Basic.d.ts +2 -1
- package/types/src/ColumnLayout/docs/examples/Dividers.d.ts +2 -1
- package/types/src/ColumnLayout/docs/examples/Gutters.d.ts +2 -1
- package/types/src/ComboBox/ComboBox.d.ts +10 -14
- package/types/src/ComboBox/Option.d.ts +2 -2
- package/types/src/ComboBox/docs/examples/Controlled.d.ts +2 -1
- package/types/src/ComboBox/docs/examples/Fetching.d.ts +2 -1
- package/types/src/ComboBox/docs/examples/Headings.d.ts +2 -1
- package/types/src/ComboBox/docs/examples/Label.d.ts +2 -1
- package/types/src/ComboBox/docs/examples/LoadMoreOnScrollBottom.d.ts +2 -1
- package/types/src/ComboBox/docs/examples/Uncontrolled.d.ts +2 -1
- package/types/src/ControlGroup/ControlGroup.d.ts +22 -38
- package/types/src/ControlGroup/ErrorMessageBar.d.ts +18 -0
- package/types/src/ControlGroup/docs/examples/Basic.d.ts +2 -1
- package/types/src/ControlGroup/docs/examples/CustomizedLabelTarget.d.ts +2 -2
- package/types/src/ControlGroup/docs/examples/Error.d.ts +2 -1
- package/types/src/ControlGroup/docs/examples/HelpWithErrorText.d.ts +2 -1
- package/types/src/ControlGroup/docs/examples/HelpWithLinks.d.ts +2 -1
- package/types/src/ControlGroup/docs/examples/LabelLeft.d.ts +3 -0
- package/types/src/ControlGroup/docs/examples/LayoutFill.d.ts +2 -1
- package/types/src/ControlGroup/docs/examples/LayoutFillJoin.d.ts +2 -1
- package/types/src/ControlGroup/docs/examples/LayoutNone.d.ts +2 -1
- package/types/src/ControlGroup/docs/examples/Required.d.ts +2 -1
- package/types/src/Date/Date.d.ts +30 -65
- package/types/src/Date/Icon.d.ts +2 -1
- package/types/src/Date/docs/examples/Basic.d.ts +2 -1
- package/types/src/Date/docs/examples/Controlled.d.ts +2 -2
- package/types/src/Date/docs/examples/CustomDate.d.ts +2 -1
- package/types/src/Date/docs/examples/Disabled.d.ts +2 -1
- package/types/src/Date/docs/examples/Error.d.ts +2 -1
- package/types/src/Date/docs/examples/HighlightToday.d.ts +2 -2
- package/types/src/Date/docs/examples/WithoutCalendar.d.ts +2 -1
- package/types/src/DefinitionList/DefinitionList.d.ts +8 -3
- package/types/src/DefinitionList/DefinitionListContext.d.ts +7 -0
- package/types/src/DefinitionList/Description.d.ts +3 -3
- package/types/src/DefinitionList/Term.d.ts +3 -3
- package/types/src/DefinitionList/docs/examples/Basic.d.ts +2 -1
- package/types/src/DefinitionList/docs/examples/Customize.d.ts +2 -1
- package/types/src/DefinitionList/docs/examples/EmptyDescription.d.ts +3 -0
- package/types/src/DefinitionList/docs/examples/WithSeparator.d.ts +3 -0
- package/types/src/Divider/Divider.d.ts +1 -1
- package/types/src/Divider/docs/examples/Basic.d.ts +2 -1
- package/types/src/Divider/docs/examples/CustomStyle.d.ts +2 -1
- package/types/src/Divider/docs/examples/Decorative.d.ts +2 -1
- package/types/src/Divider/docs/examples/Vertical.d.ts +2 -1
- package/types/src/Dropdown/Dropdown.d.ts +29 -44
- package/types/src/Dropdown/docs/examples/Basic.d.ts +2 -1
- package/types/src/Dropdown/docs/examples/BasicMenu.d.ts +2 -1
- package/types/src/Dropdown/docs/examples/ControlledDropdown.d.ts +2 -1
- package/types/src/Dropdown/docs/examples/Dialog.d.ts +2 -1
- package/types/src/Dropdown/docs/examples/ScrollContainer.d.ts +2 -1
- package/types/src/Dropdown/docs/examples/ScrollingMenu.d.ts +2 -1
- package/types/src/Dropdown/docs/examples/Submenu.d.ts +2 -1
- package/types/src/Dropdown/docs/examples/TooltipButtonToggle.d.ts +3 -0
- package/types/src/DualListbox/DualListbox.d.ts +1 -1
- package/types/src/DualListbox/Label.d.ts +1 -1
- package/types/src/DualListbox/Listbox.d.ts +1 -1
- package/types/src/DualListbox/Option.d.ts +1 -1
- package/types/src/DualListbox/ScreenReaderWrapper.d.ts +2 -1
- package/types/src/DualListbox/ToolbarButton.d.ts +1 -1
- package/types/src/DualListbox/docs/examples/Basic.d.ts +2 -1
- package/types/src/DualListbox/docs/examples/Controlled.d.ts +2 -1
- package/types/src/DualListbox/docs/examples/Fill.d.ts +2 -1
- package/types/src/EventListener/EventListener.d.ts +1 -1
- package/types/src/File/File.d.ts +26 -33
- package/types/src/File/Icon.d.ts +2 -1
- package/types/src/File/IconCloud.d.ts +2 -1
- package/types/src/File/Item.d.ts +1 -1
- package/types/src/File/PaperClip.d.ts +2 -1
- package/types/src/File/Retry.d.ts +2 -1
- package/types/src/File/Trash.d.ts +2 -1
- package/types/src/File/docs/examples/CustomizedMessages.d.ts +2 -1
- package/types/src/File/docs/examples/Disabled.d.ts +2 -2
- package/types/src/File/docs/examples/DropAnywhere.d.ts +2 -2
- package/types/src/File/docs/examples/Error.d.ts +2 -1
- package/types/src/File/docs/examples/FullScreen.d.ts +2 -1
- package/types/src/File/docs/examples/Multi.d.ts +2 -2
- package/types/src/File/docs/examples/Progress.d.ts +2 -1
- package/types/src/File/docs/examples/Single.d.ts +2 -2
- package/types/src/FormRows/FormRows.d.ts +20 -14
- package/types/src/FormRows/Row.d.ts +11 -7
- package/types/src/FormRows/SortableList.d.ts +1 -1
- package/types/src/FormRows/docs/examples/Basic.d.ts +1 -1
- package/types/src/FormRows/docs/examples/Header.d.ts +1 -1
- package/types/src/FormRows/docs/examples/Menu.d.ts +1 -1
- package/types/src/FormRows/docs/examples/ReorderOnly.d.ts +1 -1
- package/types/src/FormRows/icons/FormRowsPlusIcon.d.ts +2 -1
- package/types/src/Heading/Heading.d.ts +8 -20
- package/types/src/Heading/docs/examples/Basic.d.ts +2 -1
- package/types/src/Heading/docs/examples/Variant.d.ts +2 -1
- package/types/src/Heading/index.d.ts +1 -0
- package/types/src/Image/Image.d.ts +8 -19
- package/types/src/Image/docs/examples/Basic.d.ts +2 -1
- package/types/src/Image/icons/Cross.d.ts +2 -1
- package/types/src/JSONTree/JSONTree.d.ts +6 -10
- package/types/src/JSONTree/JSONTreeItem.d.ts +1 -1
- package/types/src/JSONTree/docs/examples/Basic.d.ts +2 -1
- package/types/src/JSONTree/docs/examples/Events.d.ts +2 -2
- package/types/src/JSONTree/docs/examples/ExpandChildrenOnShiftKey.d.ts +2 -1
- package/types/src/JSONTree/renderTreeItems.d.ts +3 -2
- package/types/src/Layer/Layer.d.ts +8 -25
- package/types/src/Layer/LayerStack.d.ts +2 -3
- package/types/src/Layer/docs/examples/Basic.d.ts +2 -1
- package/types/src/Layout/Layout.d.ts +22 -0
- package/types/src/Layout/docs/examples/Basic.d.ts +3 -0
- package/types/src/Layout/index.d.ts +2 -0
- package/types/src/Layout/test/Layout.unit.d.ts +1 -0
- package/types/src/Link/Link.d.ts +9 -22
- package/types/src/Link/docs/examples/Basic.d.ts +2 -1
- package/types/src/Link/docs/examples/Disabled.d.ts +2 -1
- package/types/src/Link/docs/examples/NewWindow.d.ts +2 -1
- package/types/src/Link/docs/examples/Standalone.d.ts +3 -0
- package/types/src/Link/icons/External.d.ts +2 -1
- package/types/src/List/Item.d.ts +1 -1
- package/types/src/List/List.d.ts +5 -17
- package/types/src/List/docs/examples/CustomizedList.d.ts +2 -1
- package/types/src/List/docs/examples/OrderedList.d.ts +2 -1
- package/types/src/List/docs/examples/UnorderedList.d.ts +2 -1
- package/types/src/Markdown/Markdown.d.ts +50 -59
- package/types/src/Markdown/docs/examples/Basic.d.ts +2 -1
- package/types/src/Markdown/docs/examples/I18n.d.ts +2 -1
- package/types/src/Markdown/docs/examples/RenderProps.d.ts +2 -1
- package/types/src/Markdown/renderers/MarkdownAnchorHeading.d.ts +2 -8
- package/types/src/Markdown/renderers/MarkdownBlockquote.d.ts +3 -7
- package/types/src/Markdown/renderers/MarkdownCode.d.ts +3 -9
- package/types/src/Markdown/renderers/MarkdownCodeBlock.d.ts +5 -9
- package/types/src/Markdown/renderers/MarkdownHeading.d.ts +3 -9
- package/types/src/Markdown/renderers/MarkdownImage.d.ts +4 -11
- package/types/src/Markdown/renderers/MarkdownItem.d.ts +4 -8
- package/types/src/Markdown/renderers/MarkdownLink.d.ts +3 -11
- package/types/src/Markdown/renderers/MarkdownList.d.ts +6 -22
- package/types/src/Markdown/renderers/MarkdownParagraph.d.ts +1 -7
- package/types/src/Markdown/renderers/MarkdownTable.d.ts +40 -0
- package/types/src/Markdown/renderers/index.d.ts +5 -4
- package/types/src/Menu/Divider.d.ts +2 -1
- package/types/src/Menu/Heading.d.ts +3 -3
- package/types/src/Menu/Item.d.ts +14 -47
- package/types/src/Menu/Menu.d.ts +4 -19
- package/types/src/Menu/docs/examples/Adornments.d.ts +2 -1
- package/types/src/Menu/docs/examples/Basic.d.ts +2 -1
- package/types/src/Menu/docs/examples/Complex.d.ts +2 -1
- package/types/src/Menu/docs/examples/Descriptions.d.ts +2 -1
- package/types/src/Menu/docs/examples/Dimmed.d.ts +2 -1
- package/types/src/Menu/docs/examples/Disabled.d.ts +2 -1
- package/types/src/Menu/docs/examples/Dividers.d.ts +2 -1
- package/types/src/Menu/docs/examples/Headings.d.ts +2 -1
- package/types/src/Menu/docs/examples/Links.d.ts +2 -1
- package/types/src/Menu/docs/examples/MatchRanges.d.ts +2 -1
- package/types/src/Menu/docs/examples/Selectable.d.ts +2 -1
- package/types/src/Menu/docs/examples/SelectableWithAdornments.d.ts +2 -1
- package/types/src/Menu/docs/examples/Truncate.d.ts +2 -1
- package/types/src/Menu/icons/External.d.ts +2 -1
- package/types/src/Message/Message.d.ts +4 -11
- package/types/src/Message/Title.d.ts +1 -1
- package/types/src/Message/docs/examples/Basic.d.ts +2 -1
- package/types/src/Message/docs/examples/Content.d.ts +2 -1
- package/types/src/Message/docs/examples/Fill.d.ts +2 -1
- package/types/src/Message/docs/examples/Removable.d.ts +2 -1
- package/types/src/MessageBar/MessageBar.d.ts +1 -1
- package/types/src/MessageBar/docs/examples/Basic.d.ts +2 -1
- package/types/src/MessageBar/docs/examples/Types.d.ts +2 -1
- package/types/src/MessageBar/docs/examples/WithActions.d.ts +2 -1
- package/types/src/Modal/Body.d.ts +1 -1
- package/types/src/Modal/Footer.d.ts +9 -1
- package/types/src/Modal/Header.d.ts +7 -11
- package/types/src/Modal/Modal.d.ts +26 -32
- package/types/src/Modal/ModalContext.d.ts +2 -0
- package/types/src/Modal/docs/examples/Basic.d.ts +2 -1
- package/types/src/Modal/docs/examples/InitialFocus.d.ts +2 -1
- package/types/src/Modal/docs/examples/TypicalUsage.d.ts +2 -1
- package/types/src/Modal/docs/examples/Undismissable.d.ts +2 -1
- package/types/src/ModalLayer/ModalLayer.d.ts +1 -1
- package/types/src/Monogram/Monogram.d.ts +3 -7
- package/types/src/Monogram/docs/examples/BackgroundAuto.d.ts +2 -1
- package/types/src/Monogram/docs/examples/BackgroundCustom.d.ts +2 -1
- package/types/src/Monogram/docs/examples/Basic.d.ts +2 -1
- package/types/src/Monogram/docs/examples/Interactive.d.ts +2 -1
- package/types/src/Monogram/docs/examples/Size.d.ts +2 -1
- package/types/src/Multiselect/Compact.d.ts +1 -1
- package/types/src/Multiselect/Multiselect.d.ts +4 -2
- package/types/src/Multiselect/Normal.d.ts +1 -1
- package/types/src/Multiselect/Option.d.ts +1 -1
- package/types/src/Multiselect/docs/examples/Children.d.ts +2 -2
- package/types/src/Multiselect/docs/examples/Compact.d.ts +2 -1
- package/types/src/Multiselect/docs/examples/CompactSelectAll.d.ts +2 -1
- package/types/src/Multiselect/docs/examples/Controlled.d.ts +2 -2
- package/types/src/Multiselect/docs/examples/CustomizeSelected.d.ts +2 -2
- package/types/src/Multiselect/docs/examples/Disabled.d.ts +2 -2
- package/types/src/Multiselect/docs/examples/Error.d.ts +2 -2
- package/types/src/Multiselect/docs/examples/Fetching.d.ts +4 -4
- package/types/src/Multiselect/docs/examples/Headings.d.ts +2 -1
- package/types/src/Multiselect/docs/examples/Icons.d.ts +2 -1
- package/types/src/Multiselect/docs/examples/LoadMoreOnScrollBottom.d.ts +4 -4
- package/types/src/Multiselect/docs/examples/NewValues.d.ts +2 -2
- package/types/src/Multiselect/docs/examples/TabInput.d.ts +2 -2
- package/types/src/Multiselect/docs/examples/Uncontrolled.d.ts +2 -1
- package/types/src/NonInteractiveCheckbox/NonInteractiveCheckbox.d.ts +21 -0
- package/types/src/NonInteractiveCheckbox/index.d.ts +1 -0
- package/types/src/Number/Number.d.ts +46 -68
- package/types/src/Number/docs/examples/Basic.d.ts +2 -2
- package/types/src/Number/docs/examples/Disabled.d.ts +2 -1
- package/types/src/Number/docs/examples/Error.d.ts +2 -1
- package/types/src/Number/docs/examples/Limits.d.ts +2 -2
- package/types/src/Number/docs/examples/Locale.d.ts +2 -2
- package/types/src/Number/docs/examples/Uncontrolled.d.ts +2 -1
- package/types/src/Number/utils.d.ts +28 -0
- package/types/src/Paginator/Button.d.ts +4 -8
- package/types/src/Paginator/Compact.d.ts +1 -1
- package/types/src/Paginator/PageControl.d.ts +1 -1
- package/types/src/Paginator/PageSelect.d.ts +1 -1
- package/types/src/Paginator/PageSeparator.d.ts +2 -1
- package/types/src/Paginator/Paginator.d.ts +15 -2
- package/types/src/Paginator/docs/examples/Basic.d.ts +2 -1
- package/types/src/Paginator/docs/examples/Compact.d.ts +2 -1
- package/types/src/Paginator/docs/examples/CompactCustomLabel.d.ts +2 -1
- package/types/src/Paginator/docs/examples/CompactWithLabel.d.ts +2 -1
- package/types/src/Paginator/docs/examples/CustomPages.d.ts +3 -0
- package/types/src/Paginator/docs/examples/Labelled.d.ts +2 -1
- package/types/src/Paginator/docs/examples/PageControl.d.ts +2 -1
- package/types/src/Paragraph/Paragraph.d.ts +3 -1
- package/types/src/Paragraph/docs/examples/Basic.d.ts +2 -1
- package/types/src/Paragraph/index.d.ts +1 -0
- package/types/src/Popover/Popover.d.ts +50 -72
- package/types/src/Popover/PopoverMenuContext.d.ts +6 -0
- package/types/src/Popover/PopoverProvider.d.ts +23 -0
- package/types/src/Popover/docs/examples/Basic.d.ts +2 -1
- package/types/src/Popover/getPlacement.d.ts +1 -1
- package/types/src/Popover/index.d.ts +2 -1
- package/types/src/Progress/Progress.d.ts +3 -4
- package/types/src/Progress/docs/examples/Basic.d.ts +2 -1
- package/types/src/Progress/docs/examples/Type.d.ts +2 -1
- package/types/src/Prose/Prose.d.ts +29 -0
- package/types/src/Prose/docs/examples/Basic.d.ts +3 -0
- package/types/src/Prose/docs/examples/Customize.d.ts +3 -0
- package/types/src/Prose/index.d.ts +2 -0
- package/types/src/Prose/test/Prose.unit.d.ts +1 -0
- package/types/src/RadioBar/Option.d.ts +2 -18
- package/types/src/RadioBar/RadioBar.d.ts +22 -39
- package/types/src/RadioBar/RadioBarContext.d.ts +0 -1
- package/types/src/RadioBar/docs/examples/AdornmentAriaExamples.d.ts +2 -1
- package/types/src/RadioBar/docs/examples/Basic.d.ts +2 -1
- package/types/src/RadioBar/docs/examples/Disabled.d.ts +2 -1
- package/types/src/RadioBar/docs/examples/Error.d.ts +2 -1
- package/types/src/RadioBar/docs/examples/MenuBar.d.ts +2 -1
- package/types/src/RadioBar/docs/examples/Uncontrolled.d.ts +2 -1
- package/types/src/RadioList/Option.d.ts +1 -1
- package/types/src/RadioList/RadioList.d.ts +5 -2
- package/types/src/RadioList/docs/examples/Basic.d.ts +2 -1
- package/types/src/RadioList/docs/examples/Disabled.d.ts +2 -1
- package/types/src/RadioList/docs/examples/Error.d.ts +2 -1
- package/types/src/RadioList/docs/examples/Row.d.ts +2 -1
- package/types/src/RadioList/docs/examples/Uncontrolled.d.ts +2 -1
- package/types/src/Resize/Resize.d.ts +15 -23
- package/types/src/Resize/docs/examples/Appearance.d.ts +2 -1
- package/types/src/Resize/docs/examples/Basic.d.ts +2 -1
- package/types/src/Resize/docs/examples/Percentage.d.ts +2 -1
- package/types/src/Resize/docs/examples/SizingInner.d.ts +2 -1
- package/types/src/Resize/docs/examples/SizingOuter.d.ts +2 -1
- package/types/src/ResultsMenu/ResultsMenu.d.ts +1 -1
- package/types/src/ResultsMenu/VirtualizedResultsMenu/VirtualizedResultsMenu.d.ts +1 -1
- package/types/src/ScreenReaderContent/ScreenReaderContent.d.ts +1 -1
- package/types/src/ScreenReaderContent/docs/examples/Basic.d.ts +2 -1
- package/types/src/Scroll/Inner.d.ts +1 -1
- package/types/src/Scroll/Scroll.d.ts +37 -27
- package/types/src/Scroll/docs/examples/Controlled.d.ts +2 -2
- package/types/src/Scroll/docs/examples/Uncontrolled.d.ts +2 -1
- package/types/src/ScrollContainerContext/docs/examples/Consumer.d.ts +2 -1
- package/types/src/ScrollContainerContext/docs/examples/Provider.d.ts +2 -1
- package/types/src/Search/Option.d.ts +32 -32
- package/types/src/Search/Search.d.ts +4 -4
- package/types/src/Search/docs/examples/Controlled.d.ts +2 -1
- package/types/src/Search/docs/examples/Loading.d.ts +2 -1
- package/types/src/Search/docs/examples/Options.d.ts +2 -1
- package/types/src/Search/docs/examples/OptionsLinks.d.ts +2 -1
- package/types/src/Search/docs/examples/Results.d.ts +2 -1
- package/types/src/Select/Option.d.ts +8 -21
- package/types/src/Select/OptionBase.d.ts +3 -8
- package/types/src/Select/Select.d.ts +62 -22
- package/types/src/Select/SelectAllOption.d.ts +1 -1
- package/types/src/Select/SelectBase.d.ts +5 -8
- package/types/src/Select/docs/examples/Appearance.d.ts +2 -11
- package/types/src/Select/docs/examples/Basic.d.ts +2 -9
- package/types/src/Select/docs/examples/Children.d.ts +2 -9
- package/types/src/Select/docs/examples/Descriptions.d.ts +2 -9
- package/types/src/Select/docs/examples/Error.d.ts +2 -1
- package/types/src/Select/docs/examples/Fetching.d.ts +2 -22
- package/types/src/Select/docs/examples/Filter.d.ts +2 -9
- package/types/src/Select/docs/examples/Headings.d.ts +2 -9
- package/types/src/Select/docs/examples/Icons.d.ts +2 -1
- package/types/src/Select/docs/examples/LoadMoreOnScrollBottom.d.ts +2 -24
- package/types/src/Select/docs/examples/Prefix.d.ts +2 -9
- package/types/src/Select/docs/examples/Truncate.d.ts +2 -9
- package/types/src/Select/docs/examples/Uncontrolled.d.ts +2 -1
- package/types/src/SidePanel/SidePanel.d.ts +18 -16
- package/types/src/SidePanel/docs/examples/Basic.d.ts +2 -1
- package/types/src/SidePanel/docs/examples/ChangeSize.d.ts +2 -1
- package/types/src/SidePanel/docs/examples/Composition.d.ts +2 -1
- package/types/src/Slider/Slider.d.ts +32 -46
- package/types/src/Slider/docs/examples/Basic.d.ts +2 -1
- package/types/src/Slider/docs/examples/Controlled.d.ts +2 -2
- package/types/src/Slider/docs/examples/CustomLabels.d.ts +2 -2
- package/types/src/Slider/docs/examples/Disabled.d.ts +2 -1
- package/types/src/Slider/docs/examples/Error.d.ts +2 -1
- package/types/src/Slider/docs/examples/StepMarks.d.ts +2 -1
- package/types/src/SlidingPanels/Panel.d.ts +23 -20
- package/types/src/SlidingPanels/SlidingPanels.d.ts +18 -25
- package/types/src/SlidingPanels/docs/examples/Basic.d.ts +2 -2
- package/types/src/SlidingPanels/docs/examples/Dropdown.d.ts +2 -2
- package/types/src/SlidingPanels/docs/examples/Modal.d.ts +2 -1
- package/types/src/SplitButton/Item.d.ts +2 -2
- package/types/src/SplitButton/SplitButton.d.ts +1 -1
- package/types/src/SplitButton/docs/examples/Basic.d.ts +2 -1
- package/types/src/SplitButton/docs/examples/Block.d.ts +2 -1
- package/types/src/SplitButton/docs/examples/ChangeLabel.d.ts +2 -1
- package/types/src/SplitButton/docs/examples/Disabled.d.ts +2 -1
- package/types/src/StaticContent/StaticContent.d.ts +1 -8
- package/types/src/StaticContent/docs/examples/Basic.d.ts +2 -1
- package/types/src/StaticContent/docs/examples/FieldValue.d.ts +2 -1
- package/types/src/StepBar/Step.d.ts +1 -1
- package/types/src/StepBar/StepBar.d.ts +2 -3
- package/types/src/StepBar/docs/examples/Basic.d.ts +2 -1
- package/types/src/StepBar/docs/examples/Error.d.ts +2 -1
- package/types/src/StepBar/types.d.ts +2 -0
- package/types/src/Switch/Switch.d.ts +37 -23
- package/types/src/Switch/docs/examples/Basic.d.ts +2 -2
- package/types/src/Switch/docs/examples/Disabled.d.ts +2 -2
- package/types/src/Switch/docs/examples/Error.d.ts +2 -1
- package/types/src/TabBar/Tab.d.ts +37 -44
- package/types/src/TabBar/TabBar.d.ts +21 -22
- package/types/src/TabBar/TabBarContext.d.ts +3 -5
- package/types/src/TabBar/docs/examples/Basic.d.ts +2 -1
- package/types/src/TabBar/docs/examples/Disabled.d.ts +2 -1
- package/types/src/TabBar/docs/examples/IconsAbove.d.ts +2 -1
- package/types/src/TabBar/docs/examples/IconsLeft.d.ts +2 -1
- package/types/src/TabBar/docs/examples/Tooltips.d.ts +2 -1
- package/types/src/TabBar/docs/examples/Vertical.d.ts +2 -1
- package/types/src/TabBar/docs/examples/VerticalIconsAbove.d.ts +2 -1
- package/types/src/TabBar/docs/examples/VerticalIconsLeft.d.ts +2 -1
- package/types/src/TabBar/docs/examples/WithCount.d.ts +2 -1
- package/types/src/TabLayout/Panel.d.ts +6 -1
- package/types/src/TabLayout/TabLayout.d.ts +18 -31
- package/types/src/TabLayout/docs/examples/AutoActivate.d.ts +2 -1
- package/types/src/TabLayout/docs/examples/Controlled.d.ts +2 -1
- package/types/src/TabLayout/docs/examples/Icons.d.ts +2 -1
- package/types/src/TabLayout/docs/examples/Uncontrolled.d.ts +2 -1
- package/types/src/TabLayout/docs/examples/Vertical.d.ts +2 -1
- package/types/src/TabLayout/docs/examples/VerticalIcons.d.ts +2 -1
- package/types/src/Table/Body.d.ts +6 -13
- package/types/src/Table/Caption.d.ts +1 -1
- package/types/src/Table/Cell.d.ts +40 -18
- package/types/src/Table/ExpandButton.d.ts +9 -3
- package/types/src/Table/Head.d.ts +40 -40
- package/types/src/Table/HeadCell.d.ts +49 -23
- package/types/src/Table/HeadDropdownCell.d.ts +58 -51
- package/types/src/Table/HeadInner.d.ts +1 -3
- package/types/src/Table/HeadTable.d.ts +23 -12
- package/types/src/Table/Row.d.ts +7 -14
- package/types/src/Table/RowDragCell.d.ts +2 -1
- package/types/src/Table/Table.d.ts +13 -19
- package/types/src/Table/Toggle.d.ts +1 -3
- package/types/src/Table/docs/examples/Basic.d.ts +2 -1
- package/types/src/Table/docs/examples/Click.d.ts +3 -16
- package/types/src/Table/docs/examples/ClickRows.d.ts +3 -16
- package/types/src/Table/docs/examples/Complex.d.ts +3 -50
- package/types/src/Table/docs/examples/DockedHeaderScrollbar.d.ts +2 -1
- package/types/src/Table/docs/examples/ExpandableRows.d.ts +2 -1
- package/types/src/Table/docs/examples/ExpandableRowsControlled.d.ts +2 -1
- package/types/src/Table/docs/examples/FilterColumnValues.d.ts +2 -13
- package/types/src/Table/docs/examples/FixedHeader.d.ts +2 -1
- package/types/src/Table/docs/examples/HeadDropdownCell.d.ts +2 -17
- package/types/src/Table/docs/examples/ReorderColumns.d.ts +3 -21
- package/types/src/Table/docs/examples/ReorderRows.d.ts +3 -21
- package/types/src/Table/docs/examples/Resizable.d.ts +3 -23
- package/types/src/Table/docs/examples/ResizableFill.d.ts +3 -23
- package/types/src/Table/docs/examples/RowActions.d.ts +3 -39
- package/types/src/Table/docs/examples/Selectable.d.ts +3 -18
- package/types/src/Table/docs/examples/SortableColumns.d.ts +2 -11
- package/types/src/Table/docs/examples/StripeRows.d.ts +2 -1
- package/types/src/Table/docs/examples/prisma/DockedHeaderScrollbar.d.ts +2 -1
- package/types/src/Text/IconOutlinedHide.d.ts +2 -1
- package/types/src/Text/IconOutlinedView.d.ts +2 -1
- package/types/src/Text/Text.d.ts +62 -112
- package/types/src/Text/docs/examples/Basic.d.ts +2 -1
- package/types/src/Text/docs/examples/CustomizedIcon.d.ts +2 -1
- package/types/src/Text/docs/examples/Dimmed.d.ts +2 -1
- package/types/src/Text/docs/examples/Disabled.d.ts +2 -1
- package/types/src/Text/docs/examples/Error.d.ts +2 -1
- package/types/src/Text/docs/examples/Inline.d.ts +2 -1
- package/types/src/Text/docs/examples/Password.d.ts +2 -1
- package/types/src/Text/docs/examples/Uncontrolled.d.ts +2 -1
- package/types/src/TextArea/TextArea.d.ts +49 -87
- package/types/src/TextArea/docs/examples/Basic.d.ts +2 -1
- package/types/src/TextArea/docs/examples/Disabled.d.ts +2 -1
- package/types/src/TextArea/docs/examples/Error.d.ts +2 -1
- package/types/src/TextArea/docs/examples/Inline.d.ts +2 -1
- package/types/src/TextArea/docs/examples/Uncontrolled.d.ts +2 -1
- package/types/src/TextArea/syncHeightWithShadow.d.ts +1 -1
- package/types/src/Tooltip/InfoIcon.d.ts +2 -1
- package/types/src/Tooltip/Tooltip.d.ts +9 -3
- package/types/src/Tooltip/docs/examples/Basic.d.ts +2 -1
- package/types/src/Tooltip/docs/examples/ContentRelationship.d.ts +2 -1
- package/types/src/Tooltip/docs/examples/Controlled.d.ts +2 -2
- package/types/src/Tooltip/docs/examples/CustomDelay.d.ts +2 -1
- package/types/src/Tooltip/docs/examples/CustomProps.d.ts +2 -1
- package/types/src/Tooltip/docs/examples/Toggletip.d.ts +2 -1
- package/types/src/TransitionOpen/TransitionOpen.d.ts +23 -25
- package/types/src/TransitionOpen/docs/examples/ExpandHeight.d.ts +2 -1
- package/types/src/TransitionOpen/docs/examples/ExpandWidth.d.ts +2 -1
- package/types/src/TransitionOpen/docs/examples/None.d.ts +2 -1
- package/types/src/TransitionOpen/docs/examples/SlideFromBottom.d.ts +2 -1
- package/types/src/TransitionOpen/docs/examples/SlideFromLeft.d.ts +2 -1
- package/types/src/TransitionOpen/docs/examples/SlideFromRight.d.ts +2 -1
- package/types/src/TransitionOpen/docs/examples/SlideFromTop.d.ts +2 -1
- package/types/src/Tree/Tree.d.ts +1 -1
- package/types/src/Tree/TreeItem.d.ts +1 -1
- package/types/src/Typography/Typography.d.ts +10 -19
- package/types/src/Typography/docs/examples/Basic.d.ts +2 -1
- package/types/src/WaitSpinner/WaitSpinner.d.ts +2 -3
- package/types/src/WaitSpinner/docs/examples/Basic.d.ts +2 -1
- package/types/src/utils/types.d.ts +1 -0
- package/useResizeObserver.js +122 -90
- package/Concertina.d.ts +0 -2
- package/Concertina.js +0 -963
- package/types/src/Accordion/docs/examples/FixedHeight.d.ts +0 -2
- package/types/src/Accordion/docs/examples/InDropdown.d.ts +0 -2
- package/types/src/Button/docs/examples/Dimmed.d.ts +0 -2
- package/types/src/Button/icons/CaretSmallDown.d.ts +0 -2
- package/types/src/Button/icons/External.d.ts +0 -2
- package/types/src/Clickable/docs/examples/Dimmed.d.ts +0 -2
- package/types/src/CloseButton/CloseButton.d.ts +0 -21
- package/types/src/CloseButton/index.d.ts +0 -1
- package/types/src/CollapsiblePanel/docs/examples/TitleWithActions.d.ts +0 -2
- package/types/src/Concertina/Concertina.d.ts +0 -46
- package/types/src/Concertina/ConcertinaContext.d.ts +0 -8
- package/types/src/Concertina/Heading.d.ts +0 -35
- package/types/src/Concertina/Panel.d.ts +0 -59
- package/types/src/Concertina/docs/examples/Basic.d.ts +0 -2
- package/types/src/Concertina/docs/examples/Disabled.d.ts +0 -9
- package/types/src/Concertina/docs/examples/Status.d.ts +0 -2
- package/types/src/Concertina/index.d.ts +0 -2
- package/types/src/Concertina/types.d.ts +0 -1
- package/types/src/ControlGroup/docs/examples/LabelTop.d.ts +0 -2
- package/types/src/Dropdown/docs/examples/OtherToggles.d.ts +0 -2
- package/types/src/Link/docs/examples/Inline.d.ts +0 -2
- package/types/src/Message/Link.d.ts +0 -37
- package/types/src/Number/IncrementIcon.d.ts +0 -2
- package/types/src/Paginator/icons/ChevronLeft.d.ts +0 -5
- package/types/src/Paginator/icons/ChevronRight.d.ts +0 -5
- package/types/src/Popover/PopoverContext.d.ts +0 -6
- package/types/src/RadioList/docs/examples/Composing.d.ts +0 -2
- package/types/src/Select/icons/CaretSmallDown.d.ts +0 -2
- package/types/src/Select/icons/Search.d.ts +0 -2
- package/types/src/Switch/CheckIcon.d.ts +0 -1
- package/types/src/Table/DragHandle.d.ts +0 -12
- package/types/src/Table/icons/HeadExpandRows.d.ts +0 -1
- package/types/src/Text/docs/examples/Multiline.d.ts +0 -2
- package/types/src/Text/docs/examples/Search.d.ts +0 -2
- package/types/src/TextArea/docs/examples/ClearContent.d.ts +0 -2
- package/types/src/TextArea/icons/ClearButton.d.ts +0 -3
- package/types/src/TextArea/icons/SearchIcon.d.ts +0 -1
package/Card.js
CHANGED
|
@@ -61,9 +61,9 @@
|
|
|
61
61
|
e.r(r);
|
|
62
62
|
// EXPORTS
|
|
63
63
|
e.d(r, {
|
|
64
|
-
Body: () => /* reexport */
|
|
64
|
+
Body: () => /* reexport */ v,
|
|
65
65
|
Footer: () => /* reexport */ k,
|
|
66
|
-
Header: () => /* reexport */
|
|
66
|
+
Header: () => /* reexport */ K,
|
|
67
67
|
default: () => /* reexport */ qe
|
|
68
68
|
});
|
|
69
69
|
// CONCATENATED MODULE: external "react"
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
// CONCATENATED MODULE: external "@splunk/themes"
|
|
82
82
|
const u = require("@splunk/themes");
|
|
83
83
|
// CONCATENATED MODULE: ./src/Card/BodyStyles.ts
|
|
84
|
-
var
|
|
84
|
+
var p = l()(s()).withConfig({
|
|
85
85
|
displayName: "BodyStyles__StyledBox",
|
|
86
86
|
componentId: "sc-1130udp-0"
|
|
87
87
|
})([ "flex:1 1 auto;overflow:auto;height:100%;", ";", "" ], (function(e) {
|
|
@@ -94,14 +94,11 @@
|
|
|
94
94
|
}
|
|
95
95
|
})) : (0, a.css)([ "padding:0;" ]);
|
|
96
96
|
}), (0, u.pick)({
|
|
97
|
-
prisma:
|
|
98
|
-
comfortable: (0, a.css)([ "border-radius:", ";color:", ";" ], u.variables.borderRadius, u.variables.contentColorMuted),
|
|
99
|
-
compact: (0, a.css)([ "border-radius:", ";color:", ";" ], u.variables.borderRadius, u.variables.contentColorMuted)
|
|
100
|
-
}
|
|
97
|
+
prisma: (0, a.css)([ "border-radius:", ";" ], u.variables.borderRadius)
|
|
101
98
|
}));
|
|
102
99
|
// CONCATENATED MODULE: ./src/Card/Body.tsx
|
|
103
|
-
function
|
|
104
|
-
return
|
|
100
|
+
function d() {
|
|
101
|
+
return d = Object.assign ? Object.assign.bind() : function(e) {
|
|
105
102
|
for (var r = 1; r < arguments.length; r++) {
|
|
106
103
|
var t = arguments[r];
|
|
107
104
|
for (var n in t) {
|
|
@@ -109,7 +106,7 @@
|
|
|
109
106
|
}
|
|
110
107
|
}
|
|
111
108
|
return e;
|
|
112
|
-
},
|
|
109
|
+
}, d.apply(null, arguments);
|
|
113
110
|
}
|
|
114
111
|
function f(e, r) {
|
|
115
112
|
if (null == e) return {};
|
|
@@ -133,39 +130,34 @@
|
|
|
133
130
|
}
|
|
134
131
|
return t;
|
|
135
132
|
}
|
|
136
|
-
var
|
|
133
|
+
var y = {
|
|
137
134
|
children: i().node,
|
|
138
135
|
elementRef: i().oneOfType([ i().func, i().object ]),
|
|
139
136
|
inset: i().bool
|
|
140
137
|
};
|
|
141
138
|
/**
|
|
142
139
|
* A styled container for `Card` body content.
|
|
143
|
-
*/ function
|
|
140
|
+
*/ function m(e) {
|
|
144
141
|
var r = e.children, t = e.inset, o = t === void 0 ? true : t, i = f(e, [ "children", "inset" ]);
|
|
145
142
|
// @docs-props-type BodyPropsBase
|
|
146
143
|
|
|
147
|
-
return n().createElement(
|
|
144
|
+
return n().createElement(p, d({
|
|
148
145
|
"data-test": "body",
|
|
149
146
|
$inset: o
|
|
150
147
|
}, i), r);
|
|
151
148
|
}
|
|
152
|
-
|
|
153
|
-
/* harmony default export */ const
|
|
149
|
+
m.propTypes = y;
|
|
150
|
+
/* harmony default export */ const v = m;
|
|
154
151
|
// CONCATENATED MODULE: ./src/Card/FooterStyles.ts
|
|
155
152
|
var h = l()(s()).withConfig({
|
|
156
153
|
displayName: "FooterStyles__StyledBox",
|
|
157
154
|
componentId: "sc-1yu3r4s-0"
|
|
158
|
-
})([ "", ";text-align:right;
|
|
155
|
+
})([ "", " ", ";text-align:right;" ], u.mixins.typography("body"), (0, u.pick)({
|
|
159
156
|
enterprise: (0, a.css)([ "padding:", ";&:first-child{border-top:none;}" ], u.variables.spacingLarge),
|
|
160
157
|
prisma: {
|
|
161
158
|
comfortable: (0, a.css)([ "padding:24px;" ]),
|
|
162
159
|
compact: "padding: 18px 24px"
|
|
163
160
|
}
|
|
164
|
-
}), u.variables.contentColorMuted, (function(e) {
|
|
165
|
-
var r = e.$showTopBorder;
|
|
166
|
-
return r && (0, u.pick)({
|
|
167
|
-
enterprise: (0, a.css)([ "border-top:1px solid ", ";" ], u.variables.gray92)
|
|
168
|
-
});
|
|
169
161
|
}));
|
|
170
162
|
// CONCATENATED MODULE: ./src/Card/Footer.tsx
|
|
171
163
|
function g() {
|
|
@@ -203,20 +195,17 @@
|
|
|
203
195
|
}
|
|
204
196
|
var x = {
|
|
205
197
|
children: i().node,
|
|
206
|
-
elementRef: i().oneOfType([ i().func, i().object ])
|
|
207
|
-
showBorder: i().bool
|
|
198
|
+
elementRef: i().oneOfType([ i().func, i().object ])
|
|
208
199
|
};
|
|
209
200
|
/**
|
|
210
201
|
* A styled container for `Card` footer content.
|
|
211
202
|
*/ function S(e) {
|
|
212
|
-
var r = e.children, t =
|
|
203
|
+
var r = e.children, t = w(e, [ "children" ]);
|
|
213
204
|
// @docs-props-type FooterPropsBase
|
|
214
|
-
|
|
215
|
-
|
|
205
|
+
|
|
216
206
|
return n().createElement(h, g({
|
|
217
|
-
"data-test": "footer"
|
|
218
|
-
|
|
219
|
-
}, i), r);
|
|
207
|
+
"data-test": "footer"
|
|
208
|
+
}, t), r);
|
|
220
209
|
}
|
|
221
210
|
S.propTypes = x;
|
|
222
211
|
/* harmony default export */ const k = S;
|
|
@@ -225,46 +214,37 @@
|
|
|
225
214
|
// CONCATENATED MODULE: external "@splunk/react-icons/DotsThreeVertical"
|
|
226
215
|
const C = require("@splunk/react-icons/DotsThreeVertical");
|
|
227
216
|
var P = e.n(C);
|
|
228
|
-
// CONCATENATED MODULE: external "@splunk/react-icons/enterprise/MoreVertical"
|
|
229
|
-
const _ = require("@splunk/react-icons/enterprise/MoreVertical");
|
|
230
|
-
var E = e.n(_);
|
|
231
217
|
// CONCATENATED MODULE: external "@splunk/react-ui/Anchor"
|
|
232
|
-
const
|
|
233
|
-
var
|
|
218
|
+
const _ = require("@splunk/react-ui/Anchor");
|
|
219
|
+
var E = e.n(_);
|
|
234
220
|
// CONCATENATED MODULE: external "@splunk/react-ui/Dropdown"
|
|
235
|
-
const
|
|
236
|
-
var
|
|
221
|
+
const T = require("@splunk/react-ui/Dropdown");
|
|
222
|
+
var I = e.n(T);
|
|
237
223
|
// CONCATENATED MODULE: external "@splunk/react-ui/Tooltip"
|
|
238
|
-
const
|
|
239
|
-
var
|
|
224
|
+
const R = require("@splunk/react-ui/Tooltip");
|
|
225
|
+
var q = e.n(R);
|
|
240
226
|
// CONCATENATED MODULE: external "@splunk/react-ui/Button"
|
|
241
|
-
const
|
|
242
|
-
var
|
|
227
|
+
const N = require("@splunk/react-ui/Button");
|
|
228
|
+
var A = e.n(N);
|
|
243
229
|
// CONCATENATED MODULE: ./src/Card/HeaderStyles.ts
|
|
244
|
-
var
|
|
230
|
+
var H = l().div.withConfig({
|
|
245
231
|
displayName: "HeaderStyles__StyledTitle",
|
|
246
232
|
componentId: "eqi6uk-0"
|
|
247
|
-
})([ "", " ", " margin:0;overflow-wrap:break-word;padding:0;" ], u.mixins.reset("block"), (
|
|
248
|
-
|
|
249
|
-
enterprise: (0, a.css)([ "font-weight:", ";font-size:", ";line-height:1.2;" ], u.variables.fontWeightSemiBold, u.variables.fontSizeLarge),
|
|
250
|
-
prisma: (0, a.css)([ "font-weight:", ";color:", ";" ], u.variables.fontWeightBold, u.variables.contentColorActive)
|
|
251
|
-
}));
|
|
252
|
-
var W = l().div.withConfig({
|
|
233
|
+
})([ "", " ", " margin:0;overflow-wrap:break-word;padding:0;" ], u.mixins.reset("block"), u.mixins.typography("title3"));
|
|
234
|
+
var B = l().div.withConfig({
|
|
253
235
|
displayName: "HeaderStyles__StyledSubtitle",
|
|
254
236
|
componentId: "eqi6uk-1"
|
|
255
|
-
})([ "", " ", " margin:0;overflow-wrap:break-word;padding:0;
|
|
256
|
-
|
|
257
|
-
enterprise: (0, a.css)([ "font-size:", ";color:", ";" ], u.variables.fontSizeSmall, u.variables.textGray),
|
|
258
|
-
prisma: (0, a.css)([ "color:", ";" ], u.variables.contentColorDefault)
|
|
237
|
+
})([ "", " ", " margin:0;overflow-wrap:break-word;padding:0;" ], u.mixins.reset("block"), u.mixins.typography("body", {
|
|
238
|
+
color: "active"
|
|
259
239
|
}));
|
|
260
|
-
var
|
|
240
|
+
var W = l().div.withConfig({
|
|
261
241
|
displayName: "HeaderStyles__StyledTitleContainer",
|
|
262
242
|
componentId: "eqi6uk-2"
|
|
263
243
|
})([ "", " flex:0 1 auto;", " &:not(:last-child){margin-right:", ";}" ], u.mixins.reset("block"), (function(e) {
|
|
264
244
|
var r = e.$truncateTitle;
|
|
265
|
-
return r && (0, a.css)([ "overflow:hidden;& > ", ",& > ", "{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}" ], /* sc-sel */
|
|
245
|
+
return r && (0, a.css)([ "overflow:hidden;& > ", ",& > ", "{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}" ], /* sc-sel */ H, /* sc-sel */ B);
|
|
266
246
|
}), u.variables.spacingSmall);
|
|
267
|
-
var
|
|
247
|
+
var $ = l().div.withConfig({
|
|
268
248
|
displayName: "HeaderStyles__StyledActionContainer",
|
|
269
249
|
componentId: "eqi6uk-3"
|
|
270
250
|
})([ "", " align-items:center;display:flex;flex:0 0 auto;justify-content:space-between;", ";" ], u.mixins.reset("block"), (0,
|
|
@@ -274,27 +254,27 @@
|
|
|
274
254
|
compact: (0, a.css)([ "margin-right:-12px;margin-top:0;" ])
|
|
275
255
|
}
|
|
276
256
|
}));
|
|
277
|
-
var
|
|
257
|
+
var D = l()(A()).withConfig({
|
|
278
258
|
displayName: "HeaderStyles__StyledSecondaryAction",
|
|
279
259
|
componentId: "eqi6uk-4"
|
|
280
260
|
})([ "margin-left:10px;" ]);
|
|
281
|
-
var
|
|
261
|
+
var F = l()(s()).withConfig({
|
|
282
262
|
displayName: "HeaderStyles__StyledBox",
|
|
283
263
|
componentId: "eqi6uk-5"
|
|
284
264
|
})([ "align-items:start;display:flex;flex:0 0 auto;justify-content:space-between;position:relative;min-height:30px;", " ", " >:not(", "):not(", "){flex:1 0 auto;}" ], (0,
|
|
285
265
|
u.pick)({
|
|
286
266
|
enterprise: (0, a.css)([ "padding:", ";" ], u.variables.spacingLarge),
|
|
287
267
|
prisma: {
|
|
288
|
-
comfortable: (0, a.css)([ "padding:16px 24px
|
|
289
|
-
compact: (0, a.css)([ "padding:12px 24px
|
|
268
|
+
comfortable: (0, a.css)([ "padding:16px 24px;" ]),
|
|
269
|
+
compact: (0, a.css)([ "padding:12px 24px;" ])
|
|
290
270
|
}
|
|
291
271
|
}), (0, u.pick)({
|
|
292
272
|
prisma: (0, a.css)([ "border-top-left-radius:", ";border-top-right-radius:", ";" ], u.variables.borderRadius, u.variables.borderRadius)
|
|
293
|
-
}), /* sc-sel */
|
|
273
|
+
}), /* sc-sel */ W, /* sc-sel */ $);
|
|
294
274
|
// CONCATENATED MODULE: ./src/Card/Header.tsx
|
|
295
|
-
function
|
|
275
|
+
function L(e, r) {
|
|
296
276
|
if (null == e) return {};
|
|
297
|
-
var t, n, o =
|
|
277
|
+
var t, n, o = M(e, r);
|
|
298
278
|
if (Object.getOwnPropertySymbols) {
|
|
299
279
|
var i = Object.getOwnPropertySymbols(e);
|
|
300
280
|
for (n = 0; n < i.length; n++) {
|
|
@@ -303,7 +283,7 @@
|
|
|
303
283
|
}
|
|
304
284
|
return o;
|
|
305
285
|
}
|
|
306
|
-
function
|
|
286
|
+
function M(e, r) {
|
|
307
287
|
if (null == e) return {};
|
|
308
288
|
var t = {};
|
|
309
289
|
for (var n in e) {
|
|
@@ -314,8 +294,8 @@
|
|
|
314
294
|
}
|
|
315
295
|
return t;
|
|
316
296
|
}
|
|
317
|
-
function
|
|
318
|
-
return
|
|
297
|
+
function U() {
|
|
298
|
+
return U = Object.assign ? Object.assign.bind() : function(e) {
|
|
319
299
|
for (var r = 1; r < arguments.length; r++) {
|
|
320
300
|
var t = arguments[r];
|
|
321
301
|
for (var n in t) {
|
|
@@ -323,9 +303,9 @@
|
|
|
323
303
|
}
|
|
324
304
|
}
|
|
325
305
|
return e;
|
|
326
|
-
},
|
|
306
|
+
}, U.apply(null, arguments);
|
|
327
307
|
}
|
|
328
|
-
var
|
|
308
|
+
var V = {
|
|
329
309
|
actionPrimary: i().node,
|
|
330
310
|
actionsSecondary: i().node,
|
|
331
311
|
anchor: i().string,
|
|
@@ -338,69 +318,58 @@
|
|
|
338
318
|
// The order of the interfaces is necessary to maintain proper error messages: HeaderWithActions then HeaderWithActionsRenderProp
|
|
339
319
|
// If the actions comes first the error will report that actions should be undefined
|
|
340
320
|
// when we want actions to be the intended use case
|
|
341
|
-
|
|
321
|
+
var z = n().createElement(P(), null);
|
|
342
322
|
// `forwardRef` is used to enable focus on toggle when Dropdown is closing
|
|
343
|
-
var
|
|
344
|
-
var t = (0, u.useSplunkTheme)(), o = t.family, i = t.isCompact;
|
|
345
|
-
var a = i ? "20px" : "24px";
|
|
346
|
-
var l = o === "prisma" ? n().createElement(P(), {
|
|
347
|
-
height: a,
|
|
348
|
-
width: a
|
|
349
|
-
}) : n().createElement(E(), null);
|
|
323
|
+
var G = n().forwardRef((function(e, r) {
|
|
350
324
|
|
|
351
|
-
return n().createElement(
|
|
325
|
+
return n().createElement(q(), U({
|
|
352
326
|
content: (0, j._)("Actions"),
|
|
353
327
|
contentRelationship: "label"
|
|
354
|
-
}, e), n().createElement(
|
|
328
|
+
}, e), n().createElement(D, {
|
|
355
329
|
appearance: "secondary",
|
|
356
330
|
"data-test": "actions-secondary-toggle",
|
|
357
|
-
icon:
|
|
331
|
+
icon: z,
|
|
358
332
|
elementRef: r
|
|
359
333
|
}));
|
|
360
334
|
}));
|
|
361
335
|
/**
|
|
362
336
|
* A styled container for `Card` header content.
|
|
363
|
-
*/ function
|
|
364
|
-
var r = e.actions, t = e.actionPrimary, o = e.actionsSecondary, i = e.anchor, a = e.children, l = e.subtitle, c = e.title, s = e.truncateTitle,
|
|
337
|
+
*/ function J(e) {
|
|
338
|
+
var r = e.actions, t = e.actionPrimary, o = e.actionsSecondary, i = e.anchor, a = e.children, l = e.subtitle, c = e.title, s = e.truncateTitle, p = s === void 0 ? true : s, d = L(e, [ "actions", "actionPrimary", "actionsSecondary", "anchor", "children", "subtitle", "title", "truncateTitle" ]);
|
|
365
339
|
// @docs-props-type HeaderPropsBase
|
|
366
340
|
var f = (0, u.useSplunkTheme)(), b = f.family;
|
|
367
|
-
var
|
|
341
|
+
var y = b === "prisma" ? "right" : "below";
|
|
368
342
|
if (false) {}
|
|
369
|
-
var
|
|
343
|
+
var m;
|
|
370
344
|
if (r) {
|
|
371
|
-
|
|
345
|
+
m = r();
|
|
372
346
|
} else if (t || o) {
|
|
373
|
-
|
|
374
|
-
defaultPlacement:
|
|
375
|
-
toggle: n().createElement(
|
|
347
|
+
m = n().createElement(n().Fragment, null, t, o && n().createElement(I(), {
|
|
348
|
+
defaultPlacement: y,
|
|
349
|
+
toggle: n().createElement(G, null)
|
|
376
350
|
}, o));
|
|
377
351
|
}
|
|
378
352
|
|
|
379
|
-
return n().createElement(
|
|
353
|
+
return n().createElement(F, U({
|
|
380
354
|
"data-test": "header"
|
|
381
|
-
},
|
|
382
|
-
$truncateTitle:
|
|
383
|
-
}, c && n().createElement(
|
|
355
|
+
}, d), (c || l) && n().createElement(W, {
|
|
356
|
+
$truncateTitle: p
|
|
357
|
+
}, c && n().createElement(H, null, i ? n().createElement(E(), {
|
|
384
358
|
name: i
|
|
385
|
-
}, c) : c), l && n().createElement(
|
|
359
|
+
}, c) : c), l && n().createElement(B, null, l)), a, m && n().createElement($, null, m));
|
|
386
360
|
}
|
|
387
|
-
|
|
388
|
-
/* harmony default export */ const
|
|
361
|
+
J.propTypes = V;
|
|
362
|
+
/* harmony default export */ const K = J;
|
|
389
363
|
// CONCATENATED MODULE: external "@splunk/react-ui/Clickable"
|
|
390
|
-
const
|
|
391
|
-
var
|
|
364
|
+
const Q = require("@splunk/react-ui/Clickable");
|
|
365
|
+
var X = e.n(Q);
|
|
392
366
|
// CONCATENATED MODULE: ./src/Card/CardStyles.ts
|
|
393
|
-
var
|
|
394
|
-
var
|
|
367
|
+
var Y = "0.2s";
|
|
368
|
+
var Z = (0, a.css)([ "", ";background-color:", ";flex-direction:column;align-items:stretch;min-width:100px;flex:1;vertical-align:top;", " transition:height ", ",width ", ",min-width ", ",max-width ", ",margin ", ",box-shadow ", ",border-color ", ";&[data-clickable='true']{cursor:pointer;", " &:hover{", "}&:focus{", "}}" ], u.mixins.reset("inline-flex"), u.variables.backgroundColorSection, (0,
|
|
395
369
|
u.pick)({
|
|
396
|
-
enterprise: (0, a.css)([ "
|
|
397
|
-
prisma: (0, a.css)([ "
|
|
398
|
-
}),
|
|
399
|
-
var r = e.$cardHasBorder;
|
|
400
|
-
return r && (0, u.pick)({
|
|
401
|
-
enterprise: (0, a.css)([ "border-color:", ";" ], u.variables.borderLightColor)
|
|
402
|
-
});
|
|
403
|
-
}), (function(e) {
|
|
370
|
+
enterprise: (0, a.css)([ "border:1px solid ", ";" ], u.variables.borderLightColor),
|
|
371
|
+
prisma: (0, a.css)([ "border-radius:", ";box-shadow:", ";" ], u.variables.borderRadius, u.variables.embossShadow)
|
|
372
|
+
}), Y, Y, Y, Y, Y, Y, Y, (function(e) {
|
|
404
373
|
var r = e.$selected;
|
|
405
374
|
return r && (0, u.pick)({
|
|
406
375
|
enterprise: (0, a.css)([ "border-color:", ";" ], u.variables.focusColor),
|
|
@@ -413,21 +382,21 @@
|
|
|
413
382
|
enterprise: (0, a.css)([ "box-shadow:", ";" ], u.variables.focusShadow),
|
|
414
383
|
prisma: (0, a.css)([ "box-shadow:", ",", ";background-color:", ";" ], u.variables.embossShadow, u.variables.focusShadow, u.mixins.overlayColors(u.variables.backgroundColorSection, u.variables.interactiveColorOverlayHover))
|
|
415
384
|
}));
|
|
416
|
-
var
|
|
385
|
+
var ee = l().article.withConfig({
|
|
417
386
|
displayName: "CardStyles__Styled",
|
|
418
387
|
componentId: "ola3x0-0"
|
|
419
|
-
})([ "", "" ],
|
|
420
|
-
var
|
|
388
|
+
})([ "", "" ], Z);
|
|
389
|
+
var re = l()(X()).withConfig({
|
|
421
390
|
displayName: "CardStyles__StyledClickable",
|
|
422
391
|
componentId: "ola3x0-1"
|
|
423
|
-
})([ "", "" ],
|
|
392
|
+
})([ "", "" ], Z);
|
|
424
393
|
/* A child element we add to <button>s to make flexbox work.
|
|
425
394
|
Without this wrapper element, child elements won't flex
|
|
426
395
|
in Firefox.
|
|
427
396
|
This unfortunately exposes some fragility in IE (e.g., adding
|
|
428
397
|
a flex: 1 style here will cause the card to collapse) so test
|
|
429
398
|
across the supported browsers if making a change here.
|
|
430
|
-
*/ var
|
|
399
|
+
*/ var te = l().div.withConfig({
|
|
431
400
|
displayName: "CardStyles__StyledFirefoxFlexHack",
|
|
432
401
|
componentId: "ola3x0-2"
|
|
433
402
|
})([ "display:flex;flex:1 1 auto;flex-direction:column;align-items:stretch;justify-content:stretch;height:100%;", "" ], (0,
|
|
@@ -435,16 +404,16 @@
|
|
|
435
404
|
prisma: (0, a.css)([ "border-radius:", ";" ], u.variables.borderRadius)
|
|
436
405
|
}));
|
|
437
406
|
// CONCATENATED MODULE: ./src/Card/Card.tsx
|
|
438
|
-
function
|
|
407
|
+
function ne(e) {
|
|
439
408
|
"@babel/helpers - typeof";
|
|
440
|
-
return
|
|
409
|
+
return ne = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
|
|
441
410
|
return typeof e;
|
|
442
411
|
} : function(e) {
|
|
443
412
|
return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
444
|
-
},
|
|
413
|
+
}, ne(e);
|
|
445
414
|
}
|
|
446
|
-
function
|
|
447
|
-
return
|
|
415
|
+
function oe() {
|
|
416
|
+
return oe = Object.assign ? Object.assign.bind() : function(e) {
|
|
448
417
|
for (var r = 1; r < arguments.length; r++) {
|
|
449
418
|
var t = arguments[r];
|
|
450
419
|
for (var n in t) {
|
|
@@ -452,29 +421,29 @@
|
|
|
452
421
|
}
|
|
453
422
|
}
|
|
454
423
|
return e;
|
|
455
|
-
},
|
|
424
|
+
}, oe.apply(null, arguments);
|
|
456
425
|
}
|
|
457
|
-
function
|
|
458
|
-
return
|
|
426
|
+
function ie(e, r) {
|
|
427
|
+
return ue(e) || se(e, r) || le(e, r) || ae();
|
|
459
428
|
}
|
|
460
|
-
function
|
|
429
|
+
function ae() {
|
|
461
430
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
462
431
|
}
|
|
463
|
-
function
|
|
432
|
+
function le(e, r) {
|
|
464
433
|
if (e) {
|
|
465
|
-
if ("string" == typeof e) return
|
|
434
|
+
if ("string" == typeof e) return ce(e, r);
|
|
466
435
|
var t = {}.toString.call(e).slice(8, -1);
|
|
467
|
-
return "Object" === t && e.constructor && (t = e.constructor.name), "Map" === t || "Set" === t ? Array.from(e) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ?
|
|
436
|
+
return "Object" === t && e.constructor && (t = e.constructor.name), "Map" === t || "Set" === t ? Array.from(e) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? ce(e, r) : void 0;
|
|
468
437
|
}
|
|
469
438
|
}
|
|
470
|
-
function
|
|
439
|
+
function ce(e, r) {
|
|
471
440
|
(null == r || r > e.length) && (r = e.length);
|
|
472
441
|
for (var t = 0, n = Array(r); t < r; t++) {
|
|
473
442
|
n[t] = e[t];
|
|
474
443
|
}
|
|
475
444
|
return n;
|
|
476
445
|
}
|
|
477
|
-
function
|
|
446
|
+
function se(e, r) {
|
|
478
447
|
var t = null == e ? null : "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
|
|
479
448
|
if (null != t) {
|
|
480
449
|
var n, o, i, a, l = [], c = !0, s = !1;
|
|
@@ -496,25 +465,25 @@
|
|
|
496
465
|
return l;
|
|
497
466
|
}
|
|
498
467
|
}
|
|
499
|
-
function
|
|
468
|
+
function ue(e) {
|
|
500
469
|
if (Array.isArray(e)) return e;
|
|
501
470
|
}
|
|
502
471
|
function pe(e, r) {
|
|
503
472
|
if (!(e instanceof r)) throw new TypeError("Cannot call a class as a function");
|
|
504
473
|
}
|
|
505
|
-
function
|
|
474
|
+
function de(e, r) {
|
|
506
475
|
for (var t = 0; t < r.length; t++) {
|
|
507
476
|
var n = r[t];
|
|
508
477
|
n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0),
|
|
509
|
-
Object.defineProperty(e,
|
|
478
|
+
Object.defineProperty(e, ke(n.key), n);
|
|
510
479
|
}
|
|
511
480
|
}
|
|
512
|
-
function
|
|
513
|
-
return r &&
|
|
481
|
+
function fe(e, r, t) {
|
|
482
|
+
return r && de(e.prototype, r), t && de(e, t), Object.defineProperty(e, "prototype", {
|
|
514
483
|
writable: !1
|
|
515
484
|
}), e;
|
|
516
485
|
}
|
|
517
|
-
function
|
|
486
|
+
function be(e, r) {
|
|
518
487
|
if ("function" != typeof r && null !== r) throw new TypeError("Super expression must either be null or a function");
|
|
519
488
|
e.prototype = Object.create(r && r.prototype, {
|
|
520
489
|
constructor: {
|
|
@@ -532,39 +501,39 @@
|
|
|
532
501
|
}, ye(e, r);
|
|
533
502
|
}
|
|
534
503
|
function me(e) {
|
|
535
|
-
var r =
|
|
504
|
+
var r = ge();
|
|
536
505
|
return function() {
|
|
537
|
-
var t, n =
|
|
506
|
+
var t, n = we(e);
|
|
538
507
|
if (r) {
|
|
539
|
-
var o =
|
|
508
|
+
var o = we(this).constructor;
|
|
540
509
|
t = Reflect.construct(n, arguments, o);
|
|
541
510
|
} else t = n.apply(this, arguments);
|
|
542
|
-
return
|
|
511
|
+
return ve(this, t);
|
|
543
512
|
};
|
|
544
513
|
}
|
|
545
|
-
function
|
|
546
|
-
if (r && ("object" ==
|
|
514
|
+
function ve(e, r) {
|
|
515
|
+
if (r && ("object" == ne(r) || "function" == typeof r)) return r;
|
|
547
516
|
if (void 0 !== r) throw new TypeError("Derived constructors may only return object or undefined");
|
|
548
|
-
return
|
|
517
|
+
return he(e);
|
|
549
518
|
}
|
|
550
|
-
function
|
|
519
|
+
function he(e) {
|
|
551
520
|
if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
552
521
|
return e;
|
|
553
522
|
}
|
|
554
|
-
function
|
|
523
|
+
function ge() {
|
|
555
524
|
try {
|
|
556
525
|
var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], (function() {})));
|
|
557
526
|
} catch (e) {}
|
|
558
|
-
return (
|
|
527
|
+
return (ge = function r() {
|
|
559
528
|
return !!e;
|
|
560
529
|
})();
|
|
561
530
|
}
|
|
562
|
-
function
|
|
563
|
-
return
|
|
531
|
+
function we(e) {
|
|
532
|
+
return we = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
|
|
564
533
|
return e.__proto__ || Object.getPrototypeOf(e);
|
|
565
|
-
},
|
|
534
|
+
}, we(e);
|
|
566
535
|
}
|
|
567
|
-
function
|
|
536
|
+
function Oe(e, r) {
|
|
568
537
|
var t = Object.keys(e);
|
|
569
538
|
if (Object.getOwnPropertySymbols) {
|
|
570
539
|
var n = Object.getOwnPropertySymbols(e);
|
|
@@ -574,42 +543,42 @@
|
|
|
574
543
|
}
|
|
575
544
|
return t;
|
|
576
545
|
}
|
|
577
|
-
function
|
|
546
|
+
function xe(e) {
|
|
578
547
|
for (var r = 1; r < arguments.length; r++) {
|
|
579
548
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
580
|
-
r % 2 ?
|
|
581
|
-
|
|
582
|
-
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
549
|
+
r % 2 ? Oe(Object(t), !0).forEach((function(r) {
|
|
550
|
+
Se(e, r, t[r]);
|
|
551
|
+
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : Oe(Object(t)).forEach((function(r) {
|
|
583
552
|
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
584
553
|
}));
|
|
585
554
|
}
|
|
586
555
|
return e;
|
|
587
556
|
}
|
|
588
|
-
function
|
|
589
|
-
return (r =
|
|
557
|
+
function Se(e, r, t) {
|
|
558
|
+
return (r = ke(r)) in e ? Object.defineProperty(e, r, {
|
|
590
559
|
value: t,
|
|
591
560
|
enumerable: !0,
|
|
592
561
|
configurable: !0,
|
|
593
562
|
writable: !0
|
|
594
563
|
}) : e[r] = t, e;
|
|
595
564
|
}
|
|
596
|
-
function
|
|
597
|
-
var r =
|
|
598
|
-
return "symbol" ==
|
|
565
|
+
function ke(e) {
|
|
566
|
+
var r = je(e, "string");
|
|
567
|
+
return "symbol" == ne(r) ? r : r + "";
|
|
599
568
|
}
|
|
600
|
-
function
|
|
601
|
-
if ("object" !=
|
|
569
|
+
function je(e, r) {
|
|
570
|
+
if ("object" != ne(e) || !e) return e;
|
|
602
571
|
var t = e[Symbol.toPrimitive];
|
|
603
572
|
if (void 0 !== t) {
|
|
604
573
|
var n = t.call(e, r || "default");
|
|
605
|
-
if ("object" !=
|
|
574
|
+
if ("object" != ne(n)) return n;
|
|
606
575
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
607
576
|
}
|
|
608
577
|
return ("string" === r ? String : Number)(e);
|
|
609
578
|
}
|
|
610
|
-
function
|
|
579
|
+
function Ce(e, r) {
|
|
611
580
|
if (null == e) return {};
|
|
612
|
-
var t, n, o =
|
|
581
|
+
var t, n, o = Pe(e, r);
|
|
613
582
|
if (Object.getOwnPropertySymbols) {
|
|
614
583
|
var i = Object.getOwnPropertySymbols(e);
|
|
615
584
|
for (n = 0; n < i.length; n++) {
|
|
@@ -618,7 +587,7 @@
|
|
|
618
587
|
}
|
|
619
588
|
return o;
|
|
620
589
|
}
|
|
621
|
-
function
|
|
590
|
+
function Pe(e, r) {
|
|
622
591
|
if (null == e) return {};
|
|
623
592
|
var t = {};
|
|
624
593
|
for (var n in e) {
|
|
@@ -629,7 +598,7 @@
|
|
|
629
598
|
}
|
|
630
599
|
return t;
|
|
631
600
|
}
|
|
632
|
-
/** @public */ var
|
|
601
|
+
/** @public */ var _e = {
|
|
633
602
|
children: i().node,
|
|
634
603
|
elementRef: i().oneOfType([ i().func, i().object ]),
|
|
635
604
|
/** @private */
|
|
@@ -641,34 +610,31 @@
|
|
|
641
610
|
onClick: i().func,
|
|
642
611
|
openInNewContext: i().bool,
|
|
643
612
|
selected: i().bool,
|
|
644
|
-
showBorder: i().bool,
|
|
645
613
|
to: i().string,
|
|
646
614
|
value: i().any,
|
|
647
615
|
tag: i().oneOf([ "article", "div", "aside", "section" ])
|
|
648
616
|
};
|
|
649
|
-
var
|
|
650
|
-
openInNewContext: false
|
|
651
|
-
showBorder: true
|
|
617
|
+
var Ee = {
|
|
618
|
+
openInNewContext: false
|
|
652
619
|
};
|
|
653
|
-
function
|
|
620
|
+
function Te(e) {
|
|
654
621
|
return !!e.onClick || !!e.to;
|
|
655
622
|
}
|
|
656
623
|
function Ie(e) {
|
|
657
|
-
var r = e.margin, t = e.maxWidth, n = e.minWidth, o = e.
|
|
658
|
-
var
|
|
624
|
+
var r = e.margin, t = e.maxWidth, n = e.minWidth, o = e.style, i = Ce(e, [ "margin", "maxWidth", "minWidth", "style" ]);
|
|
625
|
+
var a = xe({
|
|
659
626
|
minWidth: n,
|
|
660
627
|
maxWidth: t,
|
|
661
628
|
margin: r
|
|
662
|
-
},
|
|
663
|
-
var
|
|
664
|
-
showBorder: o,
|
|
629
|
+
}, o);
|
|
630
|
+
var l = {
|
|
665
631
|
"data-test": "card",
|
|
666
|
-
style:
|
|
632
|
+
style: a
|
|
667
633
|
};
|
|
668
|
-
return [
|
|
634
|
+
return [ l, i ];
|
|
669
635
|
}
|
|
670
636
|
var Re = function(e) {
|
|
671
|
-
|
|
637
|
+
be(t, e);
|
|
672
638
|
var r = me(t);
|
|
673
639
|
function t() {
|
|
674
640
|
var e;
|
|
@@ -677,7 +643,7 @@
|
|
|
677
643
|
o[i] = arguments[i];
|
|
678
644
|
}
|
|
679
645
|
e = r.call.apply(r, [ this ].concat(o));
|
|
680
|
-
|
|
646
|
+
Se(he(e), "handleCardClick", (function(r) {
|
|
681
647
|
var t, n;
|
|
682
648
|
var o = e.props, i = o.selected, a = o.value;
|
|
683
649
|
(t = (n = e.props).onClick) === null || t === void 0 ? void 0 : t.call(n, r, {
|
|
@@ -688,47 +654,43 @@
|
|
|
688
654
|
return e;
|
|
689
655
|
}
|
|
690
656
|
// @docs-props-type CardPropsBase
|
|
691
|
-
|
|
657
|
+
fe(t, [ {
|
|
692
658
|
key: "render",
|
|
693
659
|
value: function e() {
|
|
694
660
|
if (false) {}
|
|
695
|
-
if (
|
|
696
|
-
var r = Ie(this.props), t =
|
|
697
|
-
var a =
|
|
698
|
-
var l = i.children, c = i.elementRef, s = i.onClick, u = i.openInNewContext, d = i.selected, p = i.to, f = Pe(i, [ "children", "elementRef", "onClick", "openInNewContext", "selected", "to" ]);
|
|
661
|
+
if (Te(this.props)) {
|
|
662
|
+
var r = Ie(this.props), t = ie(r, 2), o = t[0], i = t[1];
|
|
663
|
+
var a = i.children, l = i.elementRef, c = i.onClick, s = i.openInNewContext, u = i.selected, p = i.to, d = Ce(i, [ "children", "elementRef", "onClick", "openInNewContext", "selected", "to" ]);
|
|
699
664
|
|
|
700
|
-
return n().createElement(
|
|
665
|
+
return n().createElement(re, oe({
|
|
701
666
|
"data-clickable": true,
|
|
702
|
-
$selected:
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
openInNewContext: u,
|
|
667
|
+
$selected: u || false,
|
|
668
|
+
elementRef: l
|
|
669
|
+
}, o, d, {
|
|
670
|
+
onClick: c ? this.handleCardClick : undefined,
|
|
671
|
+
openInNewContext: s,
|
|
708
672
|
to: p || undefined
|
|
709
|
-
}), n().createElement(
|
|
673
|
+
}), n().createElement(te, null, a));
|
|
710
674
|
}
|
|
711
|
-
var
|
|
712
|
-
var h =
|
|
713
|
-
var g = m.children, w = m.elementRef, O = m.tag, x = Pe(m, [ "children", "elementRef", "tag" ]);
|
|
675
|
+
var f = Ie(this.props), b = ie(f, 2), y = b[0], m = b[1];
|
|
676
|
+
var v = m.children, h = m.elementRef, g = m.tag, w = Ce(m, [ "children", "elementRef", "tag" ]);
|
|
714
677
|
|
|
715
|
-
return n().createElement(
|
|
678
|
+
return n().createElement(ee, oe({
|
|
716
679
|
$selected: false,
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
}, y, x, {
|
|
680
|
+
ref: h,
|
|
681
|
+
as: g
|
|
682
|
+
}, y, w, {
|
|
721
683
|
onClick: undefined
|
|
722
|
-
}),
|
|
684
|
+
}), v);
|
|
723
685
|
}
|
|
724
686
|
} ]);
|
|
725
687
|
return t;
|
|
726
688
|
}(t.Component);
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
689
|
+
Se(Re, "propTypes", _e);
|
|
690
|
+
Se(Re, "defaultProps", Ee);
|
|
691
|
+
Se(Re, "Header", K);
|
|
692
|
+
Se(Re, "Body", v);
|
|
693
|
+
Se(Re, "Footer", k);
|
|
732
694
|
/* harmony default export */ const qe = Re;
|
|
733
695
|
// CONCATENATED MODULE: ./src/Card/index.ts
|
|
734
696
|
module.exports = r;
|