@splunk/react-ui 4.43.0 → 5.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Accordion.js +87 -109
- package/Animation.js +48 -31
- package/Avatar.d.ts +2 -0
- package/Avatar.js +478 -0
- package/Box.js +8 -8
- package/Breadcrumbs.js +45 -49
- package/Button.js +144 -399
- package/ButtonGroup.js +22 -26
- package/ButtonSimple.js +239 -605
- package/CHANGELOG.md +4 -0
- package/CHANGELOG.v5.mdx +195 -0
- package/Calendar.js +55 -68
- package/Card.js +162 -200
- package/Chip.js +108 -96
- package/Clickable.js +174 -310
- package/Code.js +393 -422
- package/CollapsiblePanel.js +439 -601
- package/Color.js +727 -967
- package/ColumnLayout.js +190 -234
- package/ComboBox.js +147 -135
- package/ControlGroup.js +502 -531
- package/Date.js +315 -416
- package/DefinitionList.js +128 -140
- package/Dropdown.js +201 -358
- package/DualListbox.js +26 -26
- package/File.js +479 -558
- package/FormRows.js +339 -569
- package/Heading.js +53 -99
- package/Image.js +254 -305
- package/JSONTree.js +105 -107
- package/Layer.js +187 -269
- package/{CloseButton.js → Layout.js} +39 -61
- package/Link.js +91 -244
- package/List.js +68 -74
- package/MIGRATION.v5.mdx +428 -0
- package/Markdown.js +439 -385
- package/Menu.js +383 -741
- package/Message.js +150 -322
- package/MessageBar.js +15 -15
- package/Modal.js +444 -587
- package/Monogram.js +1 -1
- package/Multiselect.js +1207 -1256
- package/NonInteractiveCheckbox.js +189 -0
- package/Number.js +495 -604
- package/Paginator.js +294 -406
- package/Paragraph.js +12 -15
- package/Popover.js +582 -744
- package/Progress.js +141 -244
- package/Prose.d.ts +2 -0
- package/Prose.js +213 -0
- package/RadioBar.js +328 -450
- package/RadioList.js +132 -216
- package/Resize.js +351 -402
- package/ResultsMenu.js +255 -358
- package/Scroll.js +159 -238
- package/Search.js +358 -437
- package/Select.js +1097 -1380
- package/SidePanel.js +179 -223
- package/Slider.js +440 -542
- package/SlidingPanels.js +377 -504
- package/SplitButton.js +114 -102
- package/StaticContent.js +58 -74
- package/StepBar.js +193 -258
- package/Switch.js +246 -552
- package/TabBar.js +438 -622
- package/TabLayout.js +197 -251
- package/Table.js +2355 -3673
- package/Text.js +422 -909
- package/TextArea.js +537 -959
- package/Tooltip.js +35 -41
- package/TransitionOpen.js +296 -336
- package/Typography.js +35 -50
- package/WaitSpinner.js +93 -124
- package/package.json +14 -15
- package/stubs-dependencies.d.ts +0 -7
- package/stubs-splunkui.d.ts +6 -1
- package/types/src/Accordion/Accordion.d.ts +5 -1
- package/types/src/Accordion/Panel.d.ts +1 -2
- package/types/src/Accordion/docs/examples/Controlled.d.ts +2 -1
- package/types/src/Accordion/docs/examples/Inset.d.ts +2 -1
- package/types/src/Accordion/docs/examples/Uncontrolled.d.ts +2 -1
- package/types/src/Anchor/Anchor.d.ts +1 -1
- package/types/src/Anchor/docs/examples/Basic.d.ts +2 -1
- package/types/src/Animation/Animation.d.ts +12 -2
- package/types/src/AnimationToggle/AnimationToggleProvider.d.ts +1 -1
- package/types/src/AnimationToggle/docs/examples/Provider.d.ts +2 -2
- package/types/src/AnimationToggle/docs/examples/ReducedMotionComponent.d.ts +2 -1
- package/types/src/AnimationToggle/docs/examples/ReducedMotionHook.d.ts +2 -1
- package/types/src/AnimationToggle/docs/examples/ToggleComponent.d.ts +2 -2
- package/types/src/AnimationToggle/docs/examples/ToggleHook.d.ts +2 -1
- package/types/src/Avatar/Avatar.d.ts +65 -0
- package/types/src/Avatar/docs/examples/BackgroundColor.d.ts +2 -0
- package/types/src/Avatar/docs/examples/Basic.d.ts +2 -0
- package/types/src/Avatar/docs/examples/Image.d.ts +2 -0
- package/types/src/Avatar/docs/examples/Interactive.d.ts +2 -0
- package/types/src/Avatar/docs/examples/Size.d.ts +2 -0
- package/types/src/Avatar/getInitials.d.ts +9 -0
- package/types/src/Avatar/index.d.ts +2 -0
- package/types/src/Box/Box.d.ts +1 -1
- package/types/src/Breadcrumbs/Breadcrumbs.d.ts +1 -1
- package/types/src/Breadcrumbs/Item.d.ts +1 -1
- package/types/src/Breadcrumbs/docs/examples/Adornments.d.ts +2 -1
- package/types/src/Breadcrumbs/docs/examples/Basic.d.ts +2 -1
- package/types/src/Breadcrumbs/docs/examples/CustomizedClick.d.ts +2 -1
- package/types/src/Button/Button.d.ts +19 -34
- package/types/src/Button/docs/examples/Basic.d.ts +2 -1
- package/types/src/Button/docs/examples/Block.d.ts +2 -1
- package/types/src/Button/docs/examples/Disabled.d.ts +2 -1
- package/types/src/Button/docs/examples/Icons.d.ts +2 -1
- package/types/src/Button/docs/examples/Menus.d.ts +2 -1
- package/types/src/Button/docs/examples/To.d.ts +2 -1
- package/types/src/Button/docs/examples/Truncated.d.ts +2 -1
- package/types/src/ButtonGroup/ButtonGroup.d.ts +1 -1
- package/types/src/ButtonGroup/docs/examples/Basic.d.ts +2 -1
- package/types/src/ButtonSimple/ButtonSimple.d.ts +22 -41
- package/types/src/ButtonSimple/mixin.d.ts +6 -2
- package/types/src/Calendar/Calendar.d.ts +2 -2
- package/types/src/Calendar/DateTable.d.ts +1 -1
- package/types/src/Calendar/Day.d.ts +1 -1
- package/types/src/Calendar/MonthHeader.d.ts +1 -1
- package/types/src/Card/Body.d.ts +1 -1
- package/types/src/Card/Card.d.ts +4 -9
- package/types/src/Card/Footer.d.ts +1 -8
- package/types/src/Card/Header.d.ts +2 -2
- package/types/src/Card/docs/examples/Actions.d.ts +2 -1
- package/types/src/Card/docs/examples/Basic.d.ts +2 -1
- package/types/src/Card/docs/examples/Clickable.d.ts +2 -1
- package/types/src/Card/docs/examples/Full.d.ts +2 -1
- package/types/src/Card/docs/examples/Images.d.ts +2 -1
- package/types/src/Card/docs/examples/Selectable.d.ts +2 -1
- package/types/src/CardLayout/CardLayout.d.ts +1 -1
- package/types/src/CardLayout/docs/examples/Basic.d.ts +2 -1
- package/types/src/CardLayout/docs/examples/Interactive.d.ts +2 -2
- package/types/src/Chip/Chip.d.ts +1 -1
- package/types/src/Chip/docs/examples/Appearance.d.ts +2 -1
- package/types/src/Chip/docs/examples/CustomColors.d.ts +2 -1
- package/types/src/Chip/docs/examples/Disabled.d.ts +2 -1
- package/types/src/Chip/docs/examples/Icon.d.ts +2 -1
- package/types/src/Chip/docs/examples/Removable.d.ts +2 -1
- package/types/src/Chip/docs/examples/RemovableWithNonStringChildren.d.ts +2 -1
- package/types/src/Clickable/Clickable.d.ts +13 -37
- package/types/src/Clickable/NavigationProvider.d.ts +2 -19
- package/types/src/Clickable/docs/examples/Basic.d.ts +2 -1
- package/types/src/Clickable/docs/examples/Disabled.d.ts +3 -0
- package/types/src/Clickable/docs/examples/NavigationProvider.d.ts +2 -1
- package/types/src/Code/Code.d.ts +2 -2
- package/types/src/Code/docs/examples/Default.d.ts +2 -1
- package/types/src/Code/docs/examples/HideIndent.d.ts +2 -1
- package/types/src/Code/docs/examples/Language.d.ts +2 -1
- package/types/src/CollapsiblePanel/CollapsiblePanel.d.ts +31 -70
- package/types/src/CollapsiblePanel/SingleOpenPanelGroup.d.ts +2 -2
- package/types/src/CollapsiblePanel/docs/examples/Actions.d.ts +3 -0
- package/types/src/CollapsiblePanel/docs/examples/BasicControlled.d.ts +2 -1
- package/types/src/CollapsiblePanel/docs/examples/BasicUncontrolled.d.ts +2 -1
- package/types/src/CollapsiblePanel/docs/examples/Disabled.d.ts +3 -0
- package/types/src/CollapsiblePanel/docs/examples/MultiControlled.d.ts +2 -1
- package/types/src/CollapsiblePanel/docs/examples/MultiUncontrolled.d.ts +2 -1
- package/types/src/CollapsiblePanel/docs/examples/SingleOpenPanelGroupControlled.d.ts +2 -1
- package/types/src/CollapsiblePanel/docs/examples/SingleOpenPanelGroupInset.d.ts +2 -1
- package/types/src/CollapsiblePanel/docs/examples/SingleOpenPanelGroupUncontrolled.d.ts +2 -1
- package/types/src/CollapsiblePanel/docs/examples/Subtle.d.ts +3 -0
- package/types/src/CollapsiblePanel/icons/ExpandPanel.d.ts +2 -1
- package/types/src/Color/Color.d.ts +24 -59
- package/types/src/Color/Palette.d.ts +3 -18
- package/types/src/Color/Swatch.d.ts +1 -4
- package/types/src/Color/docs/examples/Controlled.d.ts +2 -1
- package/types/src/Color/docs/examples/CustomizedPalette.d.ts +2 -1
- package/types/src/Color/docs/examples/HideInput.d.ts +2 -1
- package/types/src/Color/docs/examples/Null.d.ts +2 -1
- package/types/src/Color/docs/examples/ThemeVariables.d.ts +2 -1
- package/types/src/Color/docs/examples/Transparent.d.ts +2 -1
- package/types/src/Color/docs/examples/Uncontrolled.d.ts +2 -1
- package/types/src/ColumnLayout/Column.d.ts +1 -11
- package/types/src/ColumnLayout/ColumnLayout.d.ts +1 -1
- package/types/src/ColumnLayout/Row.d.ts +1 -11
- package/types/src/ColumnLayout/docs/examples/AlignItems.d.ts +2 -1
- package/types/src/ColumnLayout/docs/examples/Basic.d.ts +2 -1
- package/types/src/ColumnLayout/docs/examples/Dividers.d.ts +2 -1
- package/types/src/ColumnLayout/docs/examples/Gutters.d.ts +2 -1
- package/types/src/ComboBox/ComboBox.d.ts +4 -11
- package/types/src/ComboBox/Option.d.ts +2 -2
- package/types/src/ComboBox/docs/examples/Controlled.d.ts +2 -1
- package/types/src/ComboBox/docs/examples/Fetching.d.ts +2 -1
- package/types/src/ComboBox/docs/examples/Headings.d.ts +2 -1
- package/types/src/ComboBox/docs/examples/Label.d.ts +2 -1
- package/types/src/ComboBox/docs/examples/LoadMoreOnScrollBottom.d.ts +2 -1
- package/types/src/ComboBox/docs/examples/Uncontrolled.d.ts +2 -1
- package/types/src/ControlGroup/ControlGroup.d.ts +22 -38
- package/types/src/ControlGroup/ErrorMessageBar.d.ts +18 -0
- package/types/src/ControlGroup/docs/examples/Basic.d.ts +2 -1
- package/types/src/ControlGroup/docs/examples/CustomizedLabelTarget.d.ts +2 -2
- package/types/src/ControlGroup/docs/examples/Error.d.ts +2 -1
- package/types/src/ControlGroup/docs/examples/HelpWithErrorText.d.ts +2 -1
- package/types/src/ControlGroup/docs/examples/HelpWithLinks.d.ts +2 -1
- package/types/src/ControlGroup/docs/examples/LabelLeft.d.ts +3 -0
- package/types/src/ControlGroup/docs/examples/LayoutFill.d.ts +2 -1
- package/types/src/ControlGroup/docs/examples/LayoutFillJoin.d.ts +2 -1
- package/types/src/ControlGroup/docs/examples/LayoutNone.d.ts +2 -1
- package/types/src/ControlGroup/docs/examples/Required.d.ts +2 -1
- package/types/src/Date/Date.d.ts +30 -64
- package/types/src/Date/Icon.d.ts +2 -1
- package/types/src/Date/docs/examples/Basic.d.ts +2 -1
- package/types/src/Date/docs/examples/Controlled.d.ts +2 -2
- package/types/src/Date/docs/examples/CustomDate.d.ts +2 -1
- package/types/src/Date/docs/examples/Disabled.d.ts +2 -1
- package/types/src/Date/docs/examples/Error.d.ts +2 -1
- package/types/src/Date/docs/examples/HighlightToday.d.ts +2 -2
- package/types/src/Date/docs/examples/WithoutCalendar.d.ts +2 -1
- package/types/src/DefinitionList/DefinitionList.d.ts +8 -3
- package/types/src/DefinitionList/DefinitionListContext.d.ts +7 -0
- package/types/src/DefinitionList/Description.d.ts +3 -3
- package/types/src/DefinitionList/Term.d.ts +3 -3
- package/types/src/DefinitionList/docs/examples/Basic.d.ts +2 -1
- package/types/src/DefinitionList/docs/examples/Customize.d.ts +2 -1
- package/types/src/DefinitionList/docs/examples/EmptyDescription.d.ts +3 -0
- package/types/src/DefinitionList/docs/examples/WithSeparator.d.ts +3 -0
- package/types/src/Divider/Divider.d.ts +1 -1
- package/types/src/Divider/docs/examples/Basic.d.ts +2 -1
- package/types/src/Divider/docs/examples/CustomStyle.d.ts +2 -1
- package/types/src/Divider/docs/examples/Decorative.d.ts +2 -1
- package/types/src/Divider/docs/examples/Vertical.d.ts +2 -1
- package/types/src/Dropdown/Dropdown.d.ts +29 -44
- package/types/src/Dropdown/docs/examples/Basic.d.ts +2 -1
- package/types/src/Dropdown/docs/examples/BasicMenu.d.ts +2 -1
- package/types/src/Dropdown/docs/examples/ControlledDropdown.d.ts +2 -1
- package/types/src/Dropdown/docs/examples/Dialog.d.ts +2 -1
- package/types/src/Dropdown/docs/examples/ScrollContainer.d.ts +2 -1
- package/types/src/Dropdown/docs/examples/ScrollingMenu.d.ts +2 -1
- package/types/src/Dropdown/docs/examples/Submenu.d.ts +2 -1
- package/types/src/Dropdown/docs/examples/TooltipButtonToggle.d.ts +2 -1
- package/types/src/DualListbox/DualListbox.d.ts +1 -1
- package/types/src/DualListbox/Label.d.ts +1 -1
- package/types/src/DualListbox/Listbox.d.ts +1 -1
- package/types/src/DualListbox/Option.d.ts +1 -1
- package/types/src/DualListbox/ScreenReaderWrapper.d.ts +2 -1
- package/types/src/DualListbox/ToolbarButton.d.ts +1 -1
- package/types/src/DualListbox/docs/examples/Basic.d.ts +2 -1
- package/types/src/DualListbox/docs/examples/Controlled.d.ts +2 -1
- package/types/src/DualListbox/docs/examples/Fill.d.ts +2 -1
- package/types/src/EventListener/EventListener.d.ts +1 -1
- package/types/src/File/File.d.ts +26 -33
- package/types/src/File/Icon.d.ts +2 -1
- package/types/src/File/IconCloud.d.ts +2 -1
- package/types/src/File/Item.d.ts +1 -1
- package/types/src/File/PaperClip.d.ts +2 -1
- package/types/src/File/Retry.d.ts +2 -1
- package/types/src/File/Trash.d.ts +2 -1
- package/types/src/File/docs/examples/CustomizedMessages.d.ts +2 -1
- package/types/src/File/docs/examples/Disabled.d.ts +2 -2
- package/types/src/File/docs/examples/DropAnywhere.d.ts +2 -2
- package/types/src/File/docs/examples/Error.d.ts +2 -1
- package/types/src/File/docs/examples/FullScreen.d.ts +2 -1
- package/types/src/File/docs/examples/Multi.d.ts +2 -2
- package/types/src/File/docs/examples/Progress.d.ts +2 -1
- package/types/src/File/docs/examples/Single.d.ts +2 -2
- package/types/src/FormRows/FormRows.d.ts +20 -14
- package/types/src/FormRows/Row.d.ts +11 -7
- package/types/src/FormRows/SortableList.d.ts +1 -1
- package/types/src/FormRows/docs/examples/Basic.d.ts +1 -1
- package/types/src/FormRows/docs/examples/Header.d.ts +1 -1
- package/types/src/FormRows/docs/examples/Menu.d.ts +1 -1
- package/types/src/FormRows/docs/examples/ReorderOnly.d.ts +1 -1
- package/types/src/FormRows/icons/FormRowsPlusIcon.d.ts +2 -1
- package/types/src/Heading/Heading.d.ts +8 -20
- package/types/src/Heading/docs/examples/Basic.d.ts +2 -1
- package/types/src/Heading/docs/examples/Variant.d.ts +2 -1
- package/types/src/Heading/index.d.ts +1 -0
- package/types/src/Image/Image.d.ts +8 -19
- package/types/src/Image/docs/examples/Basic.d.ts +2 -1
- package/types/src/Image/icons/Cross.d.ts +2 -1
- package/types/src/JSONTree/JSONTree.d.ts +6 -10
- package/types/src/JSONTree/JSONTreeItem.d.ts +1 -1
- package/types/src/JSONTree/docs/examples/Basic.d.ts +2 -1
- package/types/src/JSONTree/docs/examples/Events.d.ts +2 -2
- package/types/src/JSONTree/docs/examples/ExpandChildrenOnShiftKey.d.ts +2 -1
- package/types/src/JSONTree/renderTreeItems.d.ts +3 -2
- package/types/src/Layer/Layer.d.ts +8 -25
- package/types/src/Layer/LayerStack.d.ts +2 -3
- package/types/src/Layer/docs/examples/Basic.d.ts +2 -1
- package/types/src/Layout/Layout.d.ts +22 -0
- package/types/src/Layout/docs/examples/Basic.d.ts +3 -0
- package/types/src/Layout/index.d.ts +2 -0
- package/types/src/Layout/test/Layout.unit.d.ts +1 -0
- package/types/src/Link/Link.d.ts +9 -22
- package/types/src/Link/docs/examples/Basic.d.ts +2 -1
- package/types/src/Link/docs/examples/Disabled.d.ts +2 -1
- package/types/src/Link/docs/examples/NewWindow.d.ts +2 -1
- package/types/src/Link/docs/examples/Standalone.d.ts +3 -0
- package/types/src/Link/icons/External.d.ts +2 -1
- package/types/src/List/Item.d.ts +1 -1
- package/types/src/List/List.d.ts +5 -17
- package/types/src/List/docs/examples/CustomizedList.d.ts +2 -1
- package/types/src/List/docs/examples/OrderedList.d.ts +2 -1
- package/types/src/List/docs/examples/UnorderedList.d.ts +2 -1
- package/types/src/Markdown/Markdown.d.ts +50 -59
- package/types/src/Markdown/docs/examples/Basic.d.ts +2 -1
- package/types/src/Markdown/docs/examples/I18n.d.ts +2 -1
- package/types/src/Markdown/docs/examples/RenderProps.d.ts +2 -1
- package/types/src/Markdown/renderers/MarkdownAnchorHeading.d.ts +2 -8
- package/types/src/Markdown/renderers/MarkdownBlockquote.d.ts +3 -7
- package/types/src/Markdown/renderers/MarkdownCode.d.ts +3 -9
- package/types/src/Markdown/renderers/MarkdownCodeBlock.d.ts +5 -9
- package/types/src/Markdown/renderers/MarkdownHeading.d.ts +3 -9
- package/types/src/Markdown/renderers/MarkdownImage.d.ts +4 -11
- package/types/src/Markdown/renderers/MarkdownItem.d.ts +4 -8
- package/types/src/Markdown/renderers/MarkdownLink.d.ts +3 -11
- package/types/src/Markdown/renderers/MarkdownList.d.ts +6 -22
- package/types/src/Markdown/renderers/MarkdownParagraph.d.ts +1 -7
- package/types/src/Markdown/renderers/MarkdownTable.d.ts +40 -0
- package/types/src/Markdown/renderers/index.d.ts +5 -4
- package/types/src/Menu/Divider.d.ts +2 -1
- package/types/src/Menu/Heading.d.ts +3 -3
- package/types/src/Menu/Item.d.ts +14 -47
- package/types/src/Menu/Menu.d.ts +4 -19
- package/types/src/Menu/docs/examples/Adornments.d.ts +2 -1
- package/types/src/Menu/docs/examples/Basic.d.ts +2 -1
- package/types/src/Menu/docs/examples/Complex.d.ts +2 -1
- package/types/src/Menu/docs/examples/Descriptions.d.ts +2 -1
- package/types/src/Menu/docs/examples/Dimmed.d.ts +2 -1
- package/types/src/Menu/docs/examples/Disabled.d.ts +2 -1
- package/types/src/Menu/docs/examples/Dividers.d.ts +2 -1
- package/types/src/Menu/docs/examples/Headings.d.ts +2 -1
- package/types/src/Menu/docs/examples/Links.d.ts +2 -1
- package/types/src/Menu/docs/examples/MatchRanges.d.ts +2 -1
- package/types/src/Menu/docs/examples/Selectable.d.ts +2 -1
- package/types/src/Menu/docs/examples/SelectableWithAdornments.d.ts +2 -1
- package/types/src/Menu/docs/examples/Truncate.d.ts +2 -1
- package/types/src/Menu/icons/External.d.ts +2 -1
- package/types/src/Message/Message.d.ts +4 -11
- package/types/src/Message/Title.d.ts +1 -1
- package/types/src/Message/docs/examples/Basic.d.ts +2 -1
- package/types/src/Message/docs/examples/Content.d.ts +2 -1
- package/types/src/Message/docs/examples/Fill.d.ts +2 -1
- package/types/src/Message/docs/examples/Removable.d.ts +2 -1
- package/types/src/MessageBar/MessageBar.d.ts +1 -1
- package/types/src/MessageBar/docs/examples/Basic.d.ts +2 -1
- package/types/src/MessageBar/docs/examples/Types.d.ts +2 -1
- package/types/src/MessageBar/docs/examples/WithActions.d.ts +2 -1
- package/types/src/Modal/Body.d.ts +1 -1
- package/types/src/Modal/Footer.d.ts +9 -1
- package/types/src/Modal/Header.d.ts +7 -11
- package/types/src/Modal/Modal.d.ts +26 -32
- package/types/src/Modal/ModalContext.d.ts +2 -0
- package/types/src/Modal/docs/examples/Basic.d.ts +2 -1
- package/types/src/Modal/docs/examples/InitialFocus.d.ts +2 -1
- package/types/src/Modal/docs/examples/TypicalUsage.d.ts +2 -1
- package/types/src/Modal/docs/examples/Undismissable.d.ts +2 -1
- package/types/src/ModalLayer/ModalLayer.d.ts +1 -1
- package/types/src/Monogram/Monogram.d.ts +3 -7
- package/types/src/Monogram/docs/examples/BackgroundAuto.d.ts +2 -1
- package/types/src/Monogram/docs/examples/BackgroundCustom.d.ts +2 -1
- package/types/src/Monogram/docs/examples/Basic.d.ts +2 -1
- package/types/src/Monogram/docs/examples/Interactive.d.ts +2 -1
- package/types/src/Monogram/docs/examples/Size.d.ts +2 -1
- package/types/src/Multiselect/Compact.d.ts +1 -1
- package/types/src/Multiselect/Multiselect.d.ts +2 -2
- package/types/src/Multiselect/Normal.d.ts +1 -1
- package/types/src/Multiselect/Option.d.ts +1 -1
- package/types/src/Multiselect/docs/examples/Children.d.ts +2 -2
- package/types/src/Multiselect/docs/examples/Compact.d.ts +2 -1
- package/types/src/Multiselect/docs/examples/CompactSelectAll.d.ts +2 -1
- package/types/src/Multiselect/docs/examples/Controlled.d.ts +2 -2
- package/types/src/Multiselect/docs/examples/CustomizeSelected.d.ts +2 -2
- package/types/src/Multiselect/docs/examples/Disabled.d.ts +2 -2
- package/types/src/Multiselect/docs/examples/Error.d.ts +2 -2
- package/types/src/Multiselect/docs/examples/Fetching.d.ts +4 -4
- package/types/src/Multiselect/docs/examples/Headings.d.ts +2 -1
- package/types/src/Multiselect/docs/examples/Icons.d.ts +2 -1
- package/types/src/Multiselect/docs/examples/LoadMoreOnScrollBottom.d.ts +4 -4
- package/types/src/Multiselect/docs/examples/NewValues.d.ts +2 -2
- package/types/src/Multiselect/docs/examples/TabInput.d.ts +2 -2
- package/types/src/Multiselect/docs/examples/Uncontrolled.d.ts +2 -1
- package/types/src/NonInteractiveCheckbox/NonInteractiveCheckbox.d.ts +21 -0
- package/types/src/NonInteractiveCheckbox/index.d.ts +1 -0
- package/types/src/Number/Number.d.ts +46 -61
- package/types/src/Number/docs/examples/Basic.d.ts +2 -2
- package/types/src/Number/docs/examples/Disabled.d.ts +2 -1
- package/types/src/Number/docs/examples/Error.d.ts +2 -1
- package/types/src/Number/docs/examples/Limits.d.ts +2 -2
- package/types/src/Number/docs/examples/Locale.d.ts +2 -2
- package/types/src/Number/docs/examples/Uncontrolled.d.ts +2 -1
- package/types/src/Number/utils.d.ts +1 -2
- package/types/src/Paginator/Button.d.ts +4 -8
- package/types/src/Paginator/Compact.d.ts +1 -1
- package/types/src/Paginator/PageControl.d.ts +1 -1
- package/types/src/Paginator/PageSelect.d.ts +1 -1
- package/types/src/Paginator/PageSeparator.d.ts +2 -1
- package/types/src/Paginator/Paginator.d.ts +1 -1
- package/types/src/Paginator/docs/examples/Basic.d.ts +2 -1
- package/types/src/Paginator/docs/examples/Compact.d.ts +2 -1
- package/types/src/Paginator/docs/examples/CompactCustomLabel.d.ts +2 -1
- package/types/src/Paginator/docs/examples/CompactWithLabel.d.ts +2 -1
- package/types/src/Paginator/docs/examples/CustomPages.d.ts +2 -1
- package/types/src/Paginator/docs/examples/Labelled.d.ts +2 -1
- package/types/src/Paginator/docs/examples/PageControl.d.ts +2 -1
- package/types/src/Paragraph/Paragraph.d.ts +3 -1
- package/types/src/Paragraph/docs/examples/Basic.d.ts +2 -1
- package/types/src/Paragraph/index.d.ts +1 -0
- package/types/src/Popover/Popover.d.ts +38 -69
- package/types/src/Popover/PopoverProvider.d.ts +1 -1
- package/types/src/Popover/docs/examples/Basic.d.ts +2 -1
- package/types/src/Popover/getPlacement.d.ts +1 -1
- package/types/src/Progress/Progress.d.ts +3 -4
- package/types/src/Progress/docs/examples/Basic.d.ts +2 -1
- package/types/src/Progress/docs/examples/Type.d.ts +2 -1
- package/types/src/Prose/Prose.d.ts +29 -0
- package/types/src/Prose/docs/examples/Basic.d.ts +3 -0
- package/types/src/Prose/docs/examples/Customize.d.ts +3 -0
- package/types/src/Prose/index.d.ts +2 -0
- package/types/src/Prose/test/Prose.unit.d.ts +1 -0
- package/types/src/RadioBar/Option.d.ts +2 -18
- package/types/src/RadioBar/RadioBar.d.ts +22 -39
- package/types/src/RadioBar/RadioBarContext.d.ts +0 -1
- package/types/src/RadioBar/docs/examples/AdornmentAriaExamples.d.ts +2 -1
- package/types/src/RadioBar/docs/examples/Basic.d.ts +2 -1
- package/types/src/RadioBar/docs/examples/Disabled.d.ts +2 -1
- package/types/src/RadioBar/docs/examples/Error.d.ts +2 -1
- package/types/src/RadioBar/docs/examples/MenuBar.d.ts +2 -1
- package/types/src/RadioBar/docs/examples/Uncontrolled.d.ts +2 -1
- package/types/src/RadioList/Option.d.ts +1 -1
- package/types/src/RadioList/RadioList.d.ts +5 -2
- package/types/src/RadioList/docs/examples/Basic.d.ts +2 -1
- package/types/src/RadioList/docs/examples/Disabled.d.ts +2 -1
- package/types/src/RadioList/docs/examples/Error.d.ts +2 -1
- package/types/src/RadioList/docs/examples/Row.d.ts +2 -1
- package/types/src/RadioList/docs/examples/Uncontrolled.d.ts +2 -1
- package/types/src/Resize/Resize.d.ts +15 -23
- package/types/src/Resize/docs/examples/Appearance.d.ts +2 -1
- package/types/src/Resize/docs/examples/Basic.d.ts +2 -1
- package/types/src/Resize/docs/examples/Percentage.d.ts +2 -1
- package/types/src/Resize/docs/examples/SizingInner.d.ts +2 -1
- package/types/src/Resize/docs/examples/SizingOuter.d.ts +2 -1
- package/types/src/ResultsMenu/ResultsMenu.d.ts +1 -1
- package/types/src/ResultsMenu/VirtualizedResultsMenu/VirtualizedResultsMenu.d.ts +1 -1
- package/types/src/ScreenReaderContent/ScreenReaderContent.d.ts +1 -1
- package/types/src/ScreenReaderContent/docs/examples/Basic.d.ts +2 -1
- package/types/src/Scroll/Inner.d.ts +1 -1
- package/types/src/Scroll/Scroll.d.ts +37 -27
- package/types/src/Scroll/docs/examples/Controlled.d.ts +2 -2
- package/types/src/Scroll/docs/examples/Uncontrolled.d.ts +2 -1
- package/types/src/ScrollContainerContext/docs/examples/Consumer.d.ts +2 -1
- package/types/src/ScrollContainerContext/docs/examples/Provider.d.ts +2 -1
- package/types/src/Search/Option.d.ts +32 -32
- package/types/src/Search/Search.d.ts +4 -4
- package/types/src/Search/docs/examples/Controlled.d.ts +2 -1
- package/types/src/Search/docs/examples/Loading.d.ts +2 -1
- package/types/src/Search/docs/examples/Options.d.ts +2 -1
- package/types/src/Search/docs/examples/OptionsLinks.d.ts +2 -1
- package/types/src/Search/docs/examples/Results.d.ts +2 -1
- package/types/src/Select/Option.d.ts +8 -21
- package/types/src/Select/OptionBase.d.ts +3 -8
- package/types/src/Select/Select.d.ts +62 -22
- package/types/src/Select/SelectAllOption.d.ts +1 -1
- package/types/src/Select/SelectBase.d.ts +4 -7
- package/types/src/Select/docs/examples/Appearance.d.ts +2 -1
- package/types/src/Select/docs/examples/Basic.d.ts +2 -1
- package/types/src/Select/docs/examples/Children.d.ts +2 -1
- package/types/src/Select/docs/examples/Descriptions.d.ts +2 -1
- package/types/src/Select/docs/examples/Error.d.ts +2 -1
- package/types/src/Select/docs/examples/Fetching.d.ts +2 -1
- package/types/src/Select/docs/examples/Filter.d.ts +2 -1
- package/types/src/Select/docs/examples/Headings.d.ts +2 -1
- package/types/src/Select/docs/examples/Icons.d.ts +2 -1
- package/types/src/Select/docs/examples/LoadMoreOnScrollBottom.d.ts +2 -1
- package/types/src/Select/docs/examples/Prefix.d.ts +2 -1
- package/types/src/Select/docs/examples/Truncate.d.ts +2 -1
- package/types/src/Select/docs/examples/Uncontrolled.d.ts +2 -1
- package/types/src/SidePanel/SidePanel.d.ts +18 -16
- package/types/src/SidePanel/docs/examples/Basic.d.ts +2 -1
- package/types/src/SidePanel/docs/examples/ChangeSize.d.ts +2 -1
- package/types/src/SidePanel/docs/examples/Composition.d.ts +2 -1
- package/types/src/Slider/Slider.d.ts +32 -46
- package/types/src/Slider/docs/examples/Basic.d.ts +2 -1
- package/types/src/Slider/docs/examples/Controlled.d.ts +2 -2
- package/types/src/Slider/docs/examples/CustomLabels.d.ts +2 -2
- package/types/src/Slider/docs/examples/Disabled.d.ts +2 -1
- package/types/src/Slider/docs/examples/Error.d.ts +2 -1
- package/types/src/Slider/docs/examples/StepMarks.d.ts +2 -1
- package/types/src/SlidingPanels/Panel.d.ts +23 -20
- package/types/src/SlidingPanels/SlidingPanels.d.ts +18 -25
- package/types/src/SlidingPanels/docs/examples/Basic.d.ts +2 -2
- package/types/src/SlidingPanels/docs/examples/Dropdown.d.ts +2 -2
- package/types/src/SlidingPanels/docs/examples/Modal.d.ts +2 -1
- package/types/src/SplitButton/Item.d.ts +2 -2
- package/types/src/SplitButton/SplitButton.d.ts +1 -1
- package/types/src/SplitButton/docs/examples/Basic.d.ts +2 -1
- package/types/src/SplitButton/docs/examples/Block.d.ts +2 -1
- package/types/src/SplitButton/docs/examples/ChangeLabel.d.ts +2 -1
- package/types/src/SplitButton/docs/examples/Disabled.d.ts +2 -1
- package/types/src/StaticContent/StaticContent.d.ts +1 -8
- package/types/src/StaticContent/docs/examples/Basic.d.ts +2 -1
- package/types/src/StaticContent/docs/examples/FieldValue.d.ts +2 -1
- package/types/src/StepBar/Step.d.ts +1 -1
- package/types/src/StepBar/StepBar.d.ts +2 -3
- package/types/src/StepBar/docs/examples/Basic.d.ts +2 -1
- package/types/src/StepBar/docs/examples/Error.d.ts +2 -1
- package/types/src/StepBar/types.d.ts +2 -0
- package/types/src/Switch/Switch.d.ts +37 -23
- package/types/src/Switch/docs/examples/Basic.d.ts +2 -2
- package/types/src/Switch/docs/examples/Disabled.d.ts +2 -2
- package/types/src/Switch/docs/examples/Error.d.ts +2 -1
- package/types/src/TabBar/Tab.d.ts +37 -44
- package/types/src/TabBar/TabBar.d.ts +21 -22
- package/types/src/TabBar/TabBarContext.d.ts +3 -5
- package/types/src/TabBar/docs/examples/Basic.d.ts +2 -1
- package/types/src/TabBar/docs/examples/Disabled.d.ts +2 -1
- package/types/src/TabBar/docs/examples/IconsAbove.d.ts +2 -1
- package/types/src/TabBar/docs/examples/IconsLeft.d.ts +2 -1
- package/types/src/TabBar/docs/examples/Tooltips.d.ts +2 -1
- package/types/src/TabBar/docs/examples/Vertical.d.ts +2 -1
- package/types/src/TabBar/docs/examples/VerticalIconsAbove.d.ts +2 -1
- package/types/src/TabBar/docs/examples/VerticalIconsLeft.d.ts +2 -1
- package/types/src/TabBar/docs/examples/WithCount.d.ts +2 -1
- package/types/src/TabLayout/Panel.d.ts +6 -1
- package/types/src/TabLayout/TabLayout.d.ts +18 -31
- package/types/src/TabLayout/docs/examples/AutoActivate.d.ts +2 -1
- package/types/src/TabLayout/docs/examples/Controlled.d.ts +2 -1
- package/types/src/TabLayout/docs/examples/Icons.d.ts +2 -1
- package/types/src/TabLayout/docs/examples/Uncontrolled.d.ts +2 -1
- package/types/src/TabLayout/docs/examples/Vertical.d.ts +2 -1
- package/types/src/TabLayout/docs/examples/VerticalIcons.d.ts +2 -1
- package/types/src/Table/Body.d.ts +6 -13
- package/types/src/Table/Caption.d.ts +1 -1
- package/types/src/Table/Cell.d.ts +40 -18
- package/types/src/Table/ExpandButton.d.ts +9 -3
- package/types/src/Table/Head.d.ts +40 -40
- package/types/src/Table/HeadCell.d.ts +49 -23
- package/types/src/Table/HeadDropdownCell.d.ts +58 -51
- package/types/src/Table/HeadInner.d.ts +1 -3
- package/types/src/Table/HeadTable.d.ts +23 -12
- package/types/src/Table/Row.d.ts +7 -14
- package/types/src/Table/RowDragCell.d.ts +2 -1
- package/types/src/Table/Table.d.ts +13 -19
- package/types/src/Table/Toggle.d.ts +1 -3
- package/types/src/Table/docs/examples/Basic.d.ts +2 -1
- package/types/src/Table/docs/examples/Click.d.ts +2 -1
- package/types/src/Table/docs/examples/ClickRows.d.ts +2 -1
- package/types/src/Table/docs/examples/Complex.d.ts +2 -1
- package/types/src/Table/docs/examples/DockedHeaderScrollbar.d.ts +2 -1
- package/types/src/Table/docs/examples/ExpandableRows.d.ts +2 -1
- package/types/src/Table/docs/examples/ExpandableRowsControlled.d.ts +2 -1
- package/types/src/Table/docs/examples/FilterColumnValues.d.ts +2 -1
- package/types/src/Table/docs/examples/FixedHeader.d.ts +2 -1
- package/types/src/Table/docs/examples/HeadDropdownCell.d.ts +2 -1
- package/types/src/Table/docs/examples/ReorderColumns.d.ts +2 -1
- package/types/src/Table/docs/examples/ReorderRows.d.ts +2 -1
- package/types/src/Table/docs/examples/Resizable.d.ts +2 -1
- package/types/src/Table/docs/examples/ResizableFill.d.ts +2 -1
- package/types/src/Table/docs/examples/RowActions.d.ts +2 -1
- package/types/src/Table/docs/examples/Selectable.d.ts +2 -1
- package/types/src/Table/docs/examples/SortableColumns.d.ts +2 -1
- package/types/src/Table/docs/examples/StripeRows.d.ts +2 -1
- package/types/src/Table/docs/examples/prisma/DockedHeaderScrollbar.d.ts +2 -1
- package/types/src/Text/IconOutlinedHide.d.ts +2 -1
- package/types/src/Text/IconOutlinedView.d.ts +2 -1
- package/types/src/Text/Text.d.ts +62 -112
- package/types/src/Text/docs/examples/Basic.d.ts +2 -1
- package/types/src/Text/docs/examples/CustomizedIcon.d.ts +2 -1
- package/types/src/Text/docs/examples/Dimmed.d.ts +2 -1
- package/types/src/Text/docs/examples/Disabled.d.ts +2 -1
- package/types/src/Text/docs/examples/Error.d.ts +2 -1
- package/types/src/Text/docs/examples/Inline.d.ts +2 -1
- package/types/src/Text/docs/examples/Password.d.ts +2 -1
- package/types/src/Text/docs/examples/Uncontrolled.d.ts +2 -1
- package/types/src/TextArea/TextArea.d.ts +49 -87
- package/types/src/TextArea/docs/examples/Basic.d.ts +2 -1
- package/types/src/TextArea/docs/examples/Disabled.d.ts +2 -1
- package/types/src/TextArea/docs/examples/Error.d.ts +2 -1
- package/types/src/TextArea/docs/examples/Inline.d.ts +2 -1
- package/types/src/TextArea/docs/examples/Uncontrolled.d.ts +2 -1
- package/types/src/TextArea/syncHeightWithShadow.d.ts +1 -1
- package/types/src/Tooltip/InfoIcon.d.ts +2 -1
- package/types/src/Tooltip/Tooltip.d.ts +9 -3
- package/types/src/Tooltip/docs/examples/Basic.d.ts +2 -1
- package/types/src/Tooltip/docs/examples/ContentRelationship.d.ts +2 -1
- package/types/src/Tooltip/docs/examples/Controlled.d.ts +2 -2
- package/types/src/Tooltip/docs/examples/CustomDelay.d.ts +2 -1
- package/types/src/Tooltip/docs/examples/CustomProps.d.ts +2 -1
- package/types/src/Tooltip/docs/examples/Toggletip.d.ts +2 -1
- package/types/src/TransitionOpen/TransitionOpen.d.ts +23 -25
- package/types/src/TransitionOpen/docs/examples/ExpandHeight.d.ts +2 -1
- package/types/src/TransitionOpen/docs/examples/ExpandWidth.d.ts +2 -1
- package/types/src/TransitionOpen/docs/examples/None.d.ts +2 -1
- package/types/src/TransitionOpen/docs/examples/SlideFromBottom.d.ts +2 -1
- package/types/src/TransitionOpen/docs/examples/SlideFromLeft.d.ts +2 -1
- package/types/src/TransitionOpen/docs/examples/SlideFromRight.d.ts +2 -1
- package/types/src/TransitionOpen/docs/examples/SlideFromTop.d.ts +2 -1
- package/types/src/Tree/Tree.d.ts +1 -1
- package/types/src/Tree/TreeItem.d.ts +1 -1
- package/types/src/Typography/Typography.d.ts +10 -19
- package/types/src/Typography/docs/examples/Basic.d.ts +2 -1
- package/types/src/WaitSpinner/WaitSpinner.d.ts +2 -3
- package/types/src/WaitSpinner/docs/examples/Basic.d.ts +2 -1
- package/types/src/utils/types.d.ts +1 -0
- package/Concertina.d.ts +0 -2
- package/Concertina.js +0 -963
- package/types/src/Accordion/docs/examples/FixedHeight.d.ts +0 -2
- package/types/src/Accordion/docs/examples/InDropdown.d.ts +0 -2
- package/types/src/Button/docs/examples/Dimmed.d.ts +0 -2
- package/types/src/Button/icons/CaretSmallDown.d.ts +0 -2
- package/types/src/Button/icons/External.d.ts +0 -2
- package/types/src/Clickable/docs/examples/Dimmed.d.ts +0 -2
- package/types/src/CloseButton/CloseButton.d.ts +0 -21
- package/types/src/CloseButton/index.d.ts +0 -1
- package/types/src/CollapsiblePanel/docs/examples/TitleWithActions.d.ts +0 -2
- package/types/src/Concertina/Concertina.d.ts +0 -46
- package/types/src/Concertina/ConcertinaContext.d.ts +0 -8
- package/types/src/Concertina/Heading.d.ts +0 -35
- package/types/src/Concertina/Panel.d.ts +0 -59
- package/types/src/Concertina/docs/examples/Basic.d.ts +0 -2
- package/types/src/Concertina/docs/examples/Disabled.d.ts +0 -9
- package/types/src/Concertina/docs/examples/Status.d.ts +0 -2
- package/types/src/Concertina/index.d.ts +0 -2
- package/types/src/Concertina/types.d.ts +0 -1
- package/types/src/ControlGroup/docs/examples/LabelTop.d.ts +0 -2
- package/types/src/Link/docs/examples/Inline.d.ts +0 -2
- package/types/src/Message/Link.d.ts +0 -37
- package/types/src/Number/IncrementIcon.d.ts +0 -2
- package/types/src/Paginator/icons/ChevronLeft.d.ts +0 -5
- package/types/src/Paginator/icons/ChevronRight.d.ts +0 -5
- package/types/src/RadioList/docs/examples/Composing.d.ts +0 -2
- package/types/src/Select/icons/CaretSmallDown.d.ts +0 -2
- package/types/src/Select/icons/Search.d.ts +0 -2
- package/types/src/Switch/CheckIcon.d.ts +0 -1
- package/types/src/Table/DragHandle.d.ts +0 -12
- package/types/src/Table/icons/HeadExpandRows.d.ts +0 -1
- package/types/src/Text/docs/examples/Multiline.d.ts +0 -2
- package/types/src/Text/docs/examples/Search.d.ts +0 -2
- package/types/src/TextArea/docs/examples/ClearContent.d.ts +0 -2
- package/types/src/TextArea/icons/ClearButton.d.ts +0 -3
- package/types/src/TextArea/icons/SearchIcon.d.ts +0 -1
package/ButtonSimple.js
CHANGED
|
@@ -9,26 +9,26 @@
|
|
|
9
9
|
/******/ (() => {
|
|
10
10
|
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
11
11
|
/******/ r.n = e => {
|
|
12
|
-
/******/ var
|
|
12
|
+
/******/ var o = e && e.__esModule ?
|
|
13
13
|
/******/ () => e["default"]
|
|
14
14
|
/******/ : () => e
|
|
15
15
|
/******/;
|
|
16
|
-
r.d(
|
|
17
|
-
a
|
|
16
|
+
r.d(o, {
|
|
17
|
+
a: o
|
|
18
18
|
});
|
|
19
|
-
/******/ return
|
|
19
|
+
/******/ return o;
|
|
20
20
|
/******/ };
|
|
21
21
|
/******/ })();
|
|
22
22
|
/******/
|
|
23
23
|
/******/ /* webpack/runtime/define property getters */
|
|
24
24
|
/******/ (() => {
|
|
25
25
|
/******/ // define getter functions for harmony exports
|
|
26
|
-
/******/ r.d = (e,
|
|
27
|
-
/******/ for (var
|
|
28
|
-
/******/ if (r.o(
|
|
29
|
-
/******/ Object.defineProperty(e,
|
|
26
|
+
/******/ r.d = (e, o) => {
|
|
27
|
+
/******/ for (var a in o) {
|
|
28
|
+
/******/ if (r.o(o, a) && !r.o(e, a)) {
|
|
29
|
+
/******/ Object.defineProperty(e, a, {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get: a
|
|
31
|
+
get: o[a]
|
|
32
32
|
});
|
|
33
33
|
/******/ }
|
|
34
34
|
/******/ }
|
|
@@ -61,25 +61,26 @@
|
|
|
61
61
|
r.r(e);
|
|
62
62
|
// EXPORTS
|
|
63
63
|
r.d(e, {
|
|
64
|
-
|
|
64
|
+
buttonMixin: () => /* reexport */ C,
|
|
65
|
+
default: () => /* reexport */ E
|
|
65
66
|
});
|
|
66
67
|
// CONCATENATED MODULE: external "react"
|
|
67
|
-
const
|
|
68
|
-
var
|
|
68
|
+
const o = require("react");
|
|
69
|
+
var a = r.n(o);
|
|
69
70
|
// CONCATENATED MODULE: external "prop-types"
|
|
70
|
-
const
|
|
71
|
-
var
|
|
72
|
-
// CONCATENATED MODULE: external "@splunk/themes"
|
|
73
|
-
const l = require("@splunk/themes");
|
|
71
|
+
const t = require("prop-types");
|
|
72
|
+
var n = r.n(t);
|
|
74
73
|
// CONCATENATED MODULE: external "styled-components"
|
|
75
|
-
const
|
|
76
|
-
var
|
|
74
|
+
const i = require("styled-components");
|
|
75
|
+
var c = r.n(i);
|
|
77
76
|
// CONCATENATED MODULE: external "@splunk/react-ui/Clickable"
|
|
78
|
-
const
|
|
79
|
-
var
|
|
77
|
+
const l = require("@splunk/react-ui/Clickable");
|
|
78
|
+
var s = r.n(l);
|
|
79
|
+
// CONCATENATED MODULE: external "@splunk/themes"
|
|
80
|
+
const d = require("@splunk/themes");
|
|
80
81
|
// CONCATENATED MODULE: external "lodash/merge"
|
|
81
|
-
const
|
|
82
|
-
var
|
|
82
|
+
const v = require("lodash/merge");
|
|
83
|
+
var b = r.n(v);
|
|
83
84
|
// CONCATENATED MODULE: ./src/ButtonSimple/mixin.ts
|
|
84
85
|
function u(r) {
|
|
85
86
|
"@babel/helpers - typeof";
|
|
@@ -89,655 +90,288 @@
|
|
|
89
90
|
return r && "function" == typeof Symbol && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
|
|
90
91
|
}, u(r);
|
|
91
92
|
}
|
|
92
|
-
var p = [ "primary", "secondary", "destructive", "subtle" ];
|
|
93
|
-
function
|
|
93
|
+
var p = [ "primary", "secondary", "destructive", "destructiveSecondary", "subtle" ];
|
|
94
|
+
function y(r) {
|
|
94
95
|
var e = "transparent";
|
|
96
|
+
var o = "transparent";
|
|
95
97
|
var a = "transparent";
|
|
96
|
-
var o = (0, l.pick)({
|
|
97
|
-
enterprise: {
|
|
98
|
-
light: l.variables.gray96,
|
|
99
|
-
dark: l.variables.gray30
|
|
100
|
-
},
|
|
101
|
-
prisma: l.variables.interactiveColorBackgroundDisabled
|
|
102
|
-
});
|
|
103
|
-
var i = (0, l.pick)({
|
|
104
|
-
enterprise: {
|
|
105
|
-
dark: l.variables.gray22,
|
|
106
|
-
light: l.variables.gray92
|
|
107
|
-
},
|
|
108
|
-
prisma: l.mixins.overlayColors(l.variables.interactiveColorBackgroundDisabled, l.variables.interactiveColorOverlaySelected)
|
|
109
|
-
});
|
|
110
98
|
var t = "transparent";
|
|
111
99
|
var n = "transparent";
|
|
112
|
-
var
|
|
100
|
+
var i;
|
|
113
101
|
var c;
|
|
114
|
-
var
|
|
115
|
-
var
|
|
102
|
+
var l;
|
|
103
|
+
var s = d.variables.contentColorActive;
|
|
104
|
+
var v;
|
|
105
|
+
var b = d.variables.contentColorDisabled;
|
|
106
|
+
var u;
|
|
116
107
|
switch (r) {
|
|
117
108
|
case "primary":
|
|
118
109
|
{
|
|
119
|
-
e =
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
prisma: l.mixins.overlayColors(l.variables.interactiveColorPrimary, l.variables.interactiveColorOverlayActive)
|
|
126
|
-
});
|
|
127
|
-
t = (0, l.pick)({
|
|
128
|
-
enterprise: l.variables.brandColorD50,
|
|
129
|
-
prisma: l.mixins.overlayColors(l.variables.interactiveColorPrimary, l.variables.interactiveColorOverlayHover)
|
|
130
|
-
});
|
|
131
|
-
n = (0, l.pick)({
|
|
132
|
-
enterprise: "#235823",
|
|
133
|
-
prisma: l.mixins.overlayColors(l.variables.interactiveColorPrimary, l.variables.interactiveColorOverlaySelected)
|
|
134
|
-
});
|
|
135
|
-
b = l.variables.contentColorInverted;
|
|
110
|
+
e = d.variables.actionColorBackgroundPrimary;
|
|
111
|
+
o = d.variables.actionColorBackgroundPrimaryActive;
|
|
112
|
+
a = d.variables.actionColorBackgroundPrimaryDisabled;
|
|
113
|
+
t = d.variables.actionColorBackgroundPrimaryHover;
|
|
114
|
+
s = d.variables.contentColorInverted;
|
|
115
|
+
b = d.variables.contentColorInverted;
|
|
136
116
|
break;
|
|
137
117
|
}
|
|
138
118
|
|
|
139
119
|
case "destructive":
|
|
140
120
|
{
|
|
141
|
-
e =
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
121
|
+
e = d.variables.actionColorBackgroundDestructive;
|
|
122
|
+
o = d.variables.actionColorBackgroundDestructiveActive;
|
|
123
|
+
a = d.variables.actionColorBackgroundDestructiveDisabled;
|
|
124
|
+
t = d.variables.actionColorBackgroundDestructiveHover;
|
|
125
|
+
s = d.variables.contentColorInverted;
|
|
126
|
+
b = d.variables.contentColorInverted;
|
|
127
|
+
break;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
case "destructiveSecondary":
|
|
131
|
+
{
|
|
132
|
+
n = d.variables.actionColorBorderDestructiveSecondary;
|
|
133
|
+
i = d.variables.actionColorBorderDestructiveSecondaryActive;
|
|
134
|
+
c = d.variables.actionColorBorderDestructiveSecondaryDisabled;
|
|
135
|
+
l = d.variables.actionColorBorderDestructiveSecondaryHover;
|
|
136
|
+
e = d.variables.actionColorBackgroundDestructiveSecondary;
|
|
137
|
+
o = d.variables.actionColorBackgroundDestructiveSecondaryActive;
|
|
138
|
+
a = d.variables.actionColorBackgroundDestructiveSecondaryDisabled;
|
|
139
|
+
t = d.variables.actionColorBackgroundDestructiveSecondaryHover;
|
|
140
|
+
s = d.variables.contentColorNegative;
|
|
141
|
+
b = d.variables.contentColorNegativeWeak;
|
|
155
142
|
break;
|
|
156
143
|
}
|
|
157
144
|
|
|
158
145
|
case "secondary":
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
prisma: l.variables.interactiveColorBackground
|
|
167
|
-
});
|
|
168
|
-
a = (0, l.pick)({
|
|
169
|
-
enterprise: {
|
|
170
|
-
light: l.variables.gray92,
|
|
171
|
-
dark: l.variables.gray22
|
|
172
|
-
},
|
|
173
|
-
prisma: l.variables.interactiveColorOverlayActive
|
|
174
|
-
});
|
|
175
|
-
t = (0, l.pick)({
|
|
176
|
-
enterprise: {
|
|
177
|
-
light: "#ebeeef",
|
|
178
|
-
dark: l.variables.gray30
|
|
179
|
-
},
|
|
180
|
-
prisma: l.variables.interactiveColorOverlayHover
|
|
181
|
-
});
|
|
182
|
-
n = (0, l.pick)({
|
|
183
|
-
enterprise: {
|
|
184
|
-
light: l.variables.gray92,
|
|
185
|
-
dark: l.variables.gray22
|
|
186
|
-
},
|
|
187
|
-
prisma: l.variables.interactiveColorOverlaySelected
|
|
188
|
-
});
|
|
146
|
+
n = d.variables.actionColorBorderSecondary;
|
|
147
|
+
i = d.variables.actionColorBorderSecondaryActive;
|
|
148
|
+
c = d.variables.actionColorBorderSecondaryDisabled;
|
|
149
|
+
l = d.variables.actionColorBorderSecondaryHover;
|
|
150
|
+
e = d.variables.actionColorBackgroundSecondary;
|
|
151
|
+
o = d.variables.actionColorBackgroundSecondaryActive;
|
|
152
|
+
t = d.variables.actionColorBackgroundSecondaryHover;
|
|
189
153
|
break;
|
|
190
154
|
|
|
191
155
|
case "subtle":
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
prisma: l.variables.interactiveColorOverlayActive
|
|
200
|
-
});
|
|
201
|
-
t = (0, l.pick)({
|
|
202
|
-
enterprise: {
|
|
203
|
-
light: l.variables.linkColor,
|
|
204
|
-
dark: l.variables.white
|
|
205
|
-
},
|
|
206
|
-
prisma: l.variables.interactiveColorOverlayHover
|
|
207
|
-
});
|
|
208
|
-
n = (0, l.pick)({
|
|
209
|
-
enterprise: "transparent",
|
|
210
|
-
prisma: l.variables.interactiveColorOverlaySelected
|
|
211
|
-
});
|
|
156
|
+
s = d.variables.contentColorAccent;
|
|
157
|
+
v = d.variables.contentColorAccentStrong;
|
|
158
|
+
b = d.variables.contentColorAccentWeak;
|
|
159
|
+
u = d.variables.contentColorAccentStrong;
|
|
160
|
+
e = d.variables.actionColorBackgroundSubtle;
|
|
161
|
+
o = d.variables.actionColorBackgroundSubtleActive;
|
|
162
|
+
t = d.variables.actionColorBackgroundSubtleHover;
|
|
212
163
|
break;
|
|
213
164
|
|
|
214
165
|
default:
|
|
215
166
|
}
|
|
216
|
-
var
|
|
167
|
+
var p = {
|
|
217
168
|
background: e,
|
|
218
|
-
backgroundActive:
|
|
219
|
-
backgroundDisabled:
|
|
220
|
-
backgroundDisabledSelected: i,
|
|
169
|
+
backgroundActive: o,
|
|
170
|
+
backgroundDisabled: a,
|
|
221
171
|
backgroundHover: t,
|
|
222
|
-
|
|
223
|
-
|
|
172
|
+
borderColor: n,
|
|
173
|
+
borderColorActive: i,
|
|
224
174
|
borderColorDisabled: c,
|
|
225
|
-
|
|
226
|
-
|
|
175
|
+
borderColorHover: l,
|
|
176
|
+
color: s,
|
|
177
|
+
colorActive: v,
|
|
178
|
+
colorDisabled: b,
|
|
179
|
+
colorHover: u
|
|
227
180
|
};
|
|
228
|
-
return
|
|
181
|
+
return p;
|
|
229
182
|
}
|
|
230
|
-
function
|
|
231
|
-
var
|
|
232
|
-
var
|
|
233
|
-
if (
|
|
234
|
-
|
|
235
|
-
} else if (
|
|
236
|
-
|
|
183
|
+
function f(r, e) {
|
|
184
|
+
var o = typeof r === "string" && p.includes(r) ? r : undefined;
|
|
185
|
+
var a = {};
|
|
186
|
+
if (o && e !== undefined) {
|
|
187
|
+
a = e;
|
|
188
|
+
} else if (o === undefined && u(r) === "object" && e === undefined) {
|
|
189
|
+
a = r;
|
|
237
190
|
}
|
|
238
|
-
var
|
|
239
|
-
var
|
|
240
|
-
var
|
|
191
|
+
var t = y(o);
|
|
192
|
+
var n = b()(t, a), c = n.background, l = n.backgroundActive, s = n.backgroundDisabled, v = n.backgroundDisabledSelected, f = n.backgroundHover, C = n.borderColor, g = n.borderColorActive, m = n.borderColorDisabled, k = n.borderColorHover, S = n.color, O = n.colorActive, B = n.colorDisabled, D = n.colorHover;
|
|
193
|
+
var A = c != null && c !== "transparent";
|
|
241
194
|
return function() {
|
|
242
|
-
return (0,
|
|
243
|
-
return k && (0, n.css)([ "border:1px solid ", ";" ], k);
|
|
244
|
-
}), (function(r) {
|
|
195
|
+
return (0, i.css)([ "border:1px solid ", ";border-radius:", ";", " ", " cursor:pointer;position:relative;&:focus,&:hover{z-index:3;}&:focus{box-shadow:", ";}&:not([disabled],[aria-disabled='true']){background-color:", ";color:", ";transition:background-color 0.2s,box-shadow 0.2s,text-decoration 0.2s;&:hover{background-color:", ";border-color:", ";color:", ";}&:active{background-color:", ";border-color:", ";color:", ";transition:none;}}&[disabled],&[aria-disabled='true']{border-color:", ";color:", ";cursor:not-allowed;", "}" ], C, d.variables.borderRadius, (function(r) {
|
|
245
196
|
var e = r.$append;
|
|
246
|
-
return e && (0,
|
|
197
|
+
return e && (0, i.css)([ "border-top-right-radius:0.1px;border-bottom-right-radius:0.1px;border-right:none;" ]);
|
|
247
198
|
}), (function(r) {
|
|
248
199
|
var e = r.$prepend;
|
|
249
|
-
return e && (0,
|
|
250
|
-
}),
|
|
200
|
+
return e && (0, i.css)([ "border-top-left-radius:0.1px;border-bottom-left-radius:0.1px;" ]);
|
|
201
|
+
}), d.variables.focusShadow, c, S, f, k, D, l, g, O, m, B, (function(r) {
|
|
251
202
|
var e = r.$selected;
|
|
252
|
-
return
|
|
253
|
-
}), l.variables.focusShadow, h, C, (function(r) {
|
|
254
|
-
var e = r.$selected;
|
|
255
|
-
return w && (0, n.css)([ "background-color:", ";" ], e ? d : b);
|
|
203
|
+
return A && (0, i.css)([ "background-color:", ";" ], e ? v : s);
|
|
256
204
|
}));
|
|
257
205
|
};
|
|
258
206
|
}
|
|
259
|
-
/* harmony default export */ const
|
|
260
|
-
// CONCATENATED MODULE: ./src/ButtonSimple/prismaStyles.ts
|
|
261
|
-
var k = (0, n.css)([ "&:not([disabled],[aria-disabled='true']){&:focus{background-color:", ";}&:hover{border-color:", ";", "}", " ", "}", " &[disabled],&[aria-disabled='true']{", "}" ], l.variables.interactiveColorOverlayHover, l.variables.interactiveColorBorderHover, (0,
|
|
262
|
-
l.pickVariant)("$variant", {
|
|
263
|
-
secondary: (0, n.css)([ "box-shadow:", ";" ], l.variables.hoverShadow),
|
|
264
|
-
default: (0, n.css)([ "box-shadow:", ";" ], l.variables.hoverShadow),
|
|
265
|
-
subtle: (0, n.css)([ "box-shadow:", ";" ], l.variables.hoverShadow)
|
|
266
|
-
}), (function(r) {
|
|
267
|
-
var e = r.$selected;
|
|
268
|
-
return e && (0, n.css)([ "border-color:", ";&:hover{background-color:", ";}" ], l.variables.interactiveColorBorderDisabled, l.mixins.overlayColors(l.variables.interactiveColorOverlaySelected, l.variables.interactiveColorOverlayHover));
|
|
269
|
-
}), (function(r) {
|
|
270
|
-
var e = r.$error;
|
|
271
|
-
return e && (0, n.css)([ "border-color:", ";&:hover{border-color:", ";}" ], l.variables.accentColorNegative, l.variables.accentColorNegative);
|
|
272
|
-
}), (0, l.pickVariant)("$variant", {
|
|
273
|
-
secondary: (0, n.css)([ "", " font-weight:", ";" ], y("subtle", {
|
|
274
|
-
color: l.variables.contentColorActive
|
|
275
|
-
}), l.variables.fontWeightSemiBold),
|
|
276
|
-
subtle: (0, n.css)([ "", " font-weight:", ";" ], y("subtle", {
|
|
277
|
-
color: l.variables.contentColorActive
|
|
278
|
-
}), l.variables.fontWeightSemiBold),
|
|
279
|
-
default: (0, n.css)([ "", " font-weight:", ";" ], y("secondary", {
|
|
280
|
-
background: "transparent"
|
|
281
|
-
}), l.variables.fontWeightSemiBold),
|
|
282
|
-
toggle: (0, n.css)([ "", " font-weight:normal;" ], y("secondary", {
|
|
283
|
-
background: "transparent"
|
|
284
|
-
}))
|
|
285
|
-
}), (function(r) {
|
|
286
|
-
var e = r.$selected;
|
|
287
|
-
return e && (0, n.css)([ "background-color:", ";" ], l.mixins.overlayColors(l.variables.interactiveColorBackgroundDisabled, l.variables.interactiveColorOverlaySelected));
|
|
288
|
-
}));
|
|
289
|
-
var h = (0, n.css)([ "&:not([disabled],[aria-disabled='true']){&:focus{background-color:", ";}&:hover{box-shadow:", ";}}", " font-weight:", ";" ], (0,
|
|
290
|
-
l.pickVariant)("$variant", {
|
|
291
|
-
primary: l.mixins.overlayColors(l.variables.interactiveColorPrimary, l.variables.interactiveColorOverlayHover),
|
|
292
|
-
destructive: l.mixins.overlayColors(l.variables.accentColorNegative, l.variables.interactiveColorOverlayHover),
|
|
293
|
-
flat: l.mixins.overlayColors(l.variables.interactiveColorBackground, l.variables.interactiveColorOverlayHover)
|
|
294
|
-
}), l.variables.hoverShadow, (0, l.pickVariant)("$variant", {
|
|
295
|
-
primary: y("primary", {
|
|
296
|
-
// this is intentional - the disabled background had always been applying the $selected style
|
|
297
|
-
// since beccfde78f787861217353e9149ce213bee0270 so keeping this for visual consistency
|
|
298
|
-
backgroundDisabled: l.mixins.overlayColors(l.variables.interactiveColorBackgroundDisabled, l.variables.interactiveColorOverlaySelected)
|
|
299
|
-
}),
|
|
300
|
-
destructive: y("destructive", {
|
|
301
|
-
// this is intentional - the disabled background had always been applying the $selected style
|
|
302
|
-
// since beccfde78f787861217353e9149ce213bee0270 so keeping this for visual consistency
|
|
303
|
-
backgroundDisabled: l.mixins.overlayColors(l.variables.interactiveColorBackgroundDisabled, l.variables.interactiveColorOverlaySelected)
|
|
304
|
-
}),
|
|
305
|
-
flat: y({
|
|
306
|
-
// this is intentional - the background had always been applying the $selected style
|
|
307
|
-
// since beccfde78f787861217353e9149ce213bee0270 so keeping this for visual consistency
|
|
308
|
-
background: l.mixins.overlayColors(l.variables.interactiveColorBackground, l.variables.interactiveColorOverlaySelected),
|
|
309
|
-
backgroundActive: l.mixins.overlayColors(l.variables.interactiveColorBackground, l.variables.interactiveColorOverlayActive),
|
|
310
|
-
// this is intentional - the disabled background had always been applying the $selected style
|
|
311
|
-
// since beccfde78f787861217353e9149ce213bee0270 so keeping this for visual consistency
|
|
312
|
-
backgroundDisabled: l.mixins.overlayColors(l.variables.interactiveColorBackgroundDisabled, l.variables.interactiveColorOverlaySelected),
|
|
313
|
-
backgroundHover: l.mixins.overlayColors(l.variables.interactiveColorBackground, l.variables.interactiveColorOverlayHover),
|
|
314
|
-
backgroundSelected: l.mixins.overlayColors(l.variables.interactiveColorBackground, l.variables.interactiveColorOverlaySelected)
|
|
315
|
-
})
|
|
316
|
-
}), l.variables.fontWeightSemiBold);
|
|
317
|
-
// CONCATENATED MODULE: ./src/ButtonSimple/enterpriseStyles.ts
|
|
318
|
-
var m = "#1A8929";
|
|
319
|
-
// SUI-2439 to meet WCAG AA compliance
|
|
320
|
-
var C = "#235823";
|
|
321
|
-
// SUI-2439 to meet WCAG AA compliance
|
|
322
|
-
var w = (0, n.css)([ "border-radius:", ";cursor:pointer;position:relative;&:focus{z-index:3;}" ], l.variables.borderRadius);
|
|
323
|
-
var x = (0, n.css)([ "", " ", "" ], (function(r) {
|
|
324
|
-
var e = r.$append;
|
|
325
|
-
return e && (0, n.css)([ "border-top-right-radius:0;border-bottom-right-radius:0;border-right:none;" ]);
|
|
326
|
-
}), (function(r) {
|
|
327
|
-
var e = r.$prepend;
|
|
328
|
-
return e && (0, n.css)([ "border-top-left-radius:0;border-bottom-left-radius:0;" ]);
|
|
329
|
-
}));
|
|
330
|
-
var S = "inset 0 -1px 0 rgba(0, 0, 0, 0.1)";
|
|
331
|
-
var O = "inset 0 1px 0 rgba(0, 0, 0, 0.1)";
|
|
332
|
-
var D = (0, n.css)([ "", ";border:1px solid;border-color:", ";", ";font-weight:", ";&:not([disabled],[aria-disabled='true']){background-color:", ";color:", ";transition:background-image 0.2s,border 0.2s,box-shadow 0.2s,text-decoration 0.2s;", ";", " &:hover{background-color:", ";", ";}&:active{transition:none;background-color:", ";border-color:", ";", ";}&:focus{", " ", "}}&:not([disabled]){&:focus{", "}}&[disabled],&[aria-disabled='true']{cursor:not-allowed;color:", ";background-color:", ";border-color:", ";", "}" ], w, (0,
|
|
333
|
-
l.pick)({
|
|
334
|
-
light: l.variables.gray60,
|
|
335
|
-
dark: l.variables.borderColor
|
|
336
|
-
}), x, (0, l.pickVariant)("$variant", {
|
|
337
|
-
default: "normal",
|
|
338
|
-
secondary: l.variables.fontWeightSemiBold
|
|
339
|
-
}), (0, l.pick)({
|
|
340
|
-
light: l.variables.gray98,
|
|
341
|
-
dark: l.variables.gray45
|
|
342
|
-
}), (0, l.pick)({
|
|
343
|
-
light: l.variables.gray45,
|
|
344
|
-
dark: l.variables.white
|
|
345
|
-
}), (0, l.pick)({
|
|
346
|
-
light: (0, n.css)([ "box-shadow:", ";" ], S),
|
|
347
|
-
dark: (0, n.css)([ "box-shadow:inset 0 -1px 0 ", ";" ], l.variables.gray30)
|
|
348
|
-
}), (function(r) {
|
|
349
|
-
var e = r.$selected;
|
|
350
|
-
return e && (0, n.css)([ "", ";background-color:", ";border-color:", ";" ], (0,
|
|
351
|
-
l.pick)({
|
|
352
|
-
light: (0, n.css)([ "box-shadow:", ";" ], O),
|
|
353
|
-
dark: (0, n.css)([ "box-shadow:inset 0 1px 0 ", ";" ], l.variables.black)
|
|
354
|
-
}), (0, l.pick)({
|
|
355
|
-
light: l.variables.gray92,
|
|
356
|
-
dark: l.variables.gray22
|
|
357
|
-
}), (0, l.pick)({
|
|
358
|
-
light: l.variables.gray60,
|
|
359
|
-
dark: l.variables.gray20
|
|
360
|
-
}));
|
|
361
|
-
}), (0, l.pick)({
|
|
362
|
-
light: "#ebeeef",
|
|
363
|
-
dark: l.variables.gray30
|
|
364
|
-
}), (0, l.pick)({
|
|
365
|
-
light: (0, n.css)([ "box-shadow:", ";" ], S),
|
|
366
|
-
dark: (0, n.css)([ "box-shadow:inset 0 -1px 0 ", ";" ], l.variables.gray25)
|
|
367
|
-
}), (0, l.pick)({
|
|
368
|
-
light: l.variables.gray92,
|
|
369
|
-
dark: l.variables.gray22
|
|
370
|
-
}), (0, l.pick)({
|
|
371
|
-
light: l.variables.gray60,
|
|
372
|
-
dark: l.variables.gray20
|
|
373
|
-
}), (0, l.pick)({
|
|
374
|
-
dark: (0, n.css)([ "box-shadow:inset 0 -1px 0 ", ";" ], l.variables.gray22)
|
|
375
|
-
}), (function(r) {
|
|
376
|
-
var e = r.$append;
|
|
377
|
-
return e && (0, l.pick)({
|
|
378
|
-
light: (0, n.css)([ "box-shadow:", " ", ",inset -1px 0 0 ", ";" ], S, l.variables.focusShadow, l.variables.borderColor),
|
|
379
|
-
dark: (0, n.css)([ "box-shadow:inset 0 -1px 0 ", " ", ",inset -1px 0 0 ", ";" ], l.variables.gray30, l.variables.focusShadow, l.variables.borderColor)
|
|
380
|
-
});
|
|
381
|
-
}), (function(r) {
|
|
382
|
-
var e = r.$append, a = r.$selected;
|
|
383
|
-
return e && a && (0, l.pick)({
|
|
384
|
-
light: (0, n.css)([ "box-shadow:", ",", ",", ",inset -1px 0 0 ", ";" ], S, O, l.variables.focusShadow, l.variables.borderColor),
|
|
385
|
-
dark: (0, n.css)([ "box-shadow:inset 0 1px 0 ", ",", ",inset -1px 0 0 ", ";" ], l.variables.black, l.variables.focusShadow, l.variables.borderColor)
|
|
386
|
-
});
|
|
387
|
-
}), (0, l.pick)({
|
|
388
|
-
light: (0, n.css)([ "box-shadow:", ",", ";" ], S, l.variables.focusShadow),
|
|
389
|
-
dark: (0, n.css)([ "box-shadow:inset 0 -1px 0 ", ",", ";" ], l.variables.gray30, l.variables.focusShadow)
|
|
390
|
-
}), l.variables.textDisabledColor, (0, l.pick)({
|
|
391
|
-
light: l.variables.gray96,
|
|
392
|
-
dark: l.variables.gray30
|
|
393
|
-
}), (0, l.pick)({
|
|
394
|
-
light: l.variables.borderLightColor,
|
|
395
|
-
dark: l.variables.gray30
|
|
396
|
-
}), (function(r) {
|
|
397
|
-
var e = r.$selected;
|
|
398
|
-
return e && (0, l.pick)({
|
|
399
|
-
light: (0, n.css)([ "box-shadow:", ";background-color:", ";border-color:", ";" ], O, l.variables.gray92, l.variables.gray80),
|
|
400
|
-
dark: (0, n.css)([ "box-shadow:inset 0 1px 0 ", ";background-color:", ";border-color:", ";" ], l.variables.black, l.variables.gray22, l.variables.gray20)
|
|
401
|
-
});
|
|
402
|
-
}));
|
|
403
|
-
var $ = "inset 0 -2px 0 rgba(0, 0, 0, 0.1)";
|
|
404
|
-
var j = "inset 0 2px 0 rgba(0, 0, 0, 0.1)";
|
|
405
|
-
var B = (0, n.css)([ "", ";font-weight:", ";", " &:not([disabled],[aria-disabled='true']){background-color:", ";color:", ";box-shadow:", ";transition:background-image 0.2s,border 0.2s,box-shadow 0.2s,text-decoration 0.2s;", " ", " &:hover{background-color:", ";}&:active{background-color:", ";transition:none;}&:focus{&:active{background-color:", ";transition:none;}}}&:not([disabled]){&:focus{box-shadow:", ",", ";}}&[disabled],&[aria-disabled='true']{color:", ";background-color:", ";cursor:not-allowed;", "}" ], w, l.variables.fontWeightSemiBold, x, m, l.variables.white, $, (function(r) {
|
|
406
|
-
var e = r.$selected;
|
|
407
|
-
return e && (0, n.css)([ "box-shadow:", ";background-color:", ";" ], j, C);
|
|
408
|
-
}), (function(r) {
|
|
409
|
-
var e = r.$prepend;
|
|
410
|
-
return e && (0, n.css)([ "border-left:1px solid ", ";" ], m);
|
|
411
|
-
}), l.variables.brandColorD50, l.variables.brandColorD30, l.variables.brandColorD30, $, l.variables.focusShadow, l.variables.brandColorL30, l.variables.brandColorL10, (function(r) {
|
|
412
|
-
var e = r.$selected;
|
|
413
|
-
return e && (0, n.css)([ "box-shadow:", ";background-color:", ";" ], j, l.variables.brandColorD20);
|
|
414
|
-
}));
|
|
415
|
-
var P = (0, n.css)([ "", ";font-weight:", ";", " &:not([disabled],[aria-disabled='true']){background-color:", ";color:", ";box-shadow:", ";transition:background-image 0.2s,border 0.2s,box-shadow 0.2s,text-decoration 0.2s;", " ", " &:hover{background-color:", ";}&:active{background-color:", ";transition:none;}&:focus{&:active{background-color:", ";transition:none;}}}&:not([disabled]){&:focus{box-shadow:", ",", ";}}&[disabled],&[aria-disabled='true']{color:", ";background-color:", ";cursor:not-allowed;", "}" ], w, l.variables.fontWeightSemiBold, x, l.variables.errorColorD10, l.variables.white, $, (function(r) {
|
|
416
|
-
var e = r.$selected;
|
|
417
|
-
return e && (0, n.css)([ "box-shadow:", ";background-color:", ";" ], j, l.variables.errorColorD30);
|
|
418
|
-
}), (function(r) {
|
|
419
|
-
var e = r.$prepend;
|
|
420
|
-
return e && (0, n.css)([ "border-left:1px solid ", ";" ], l.variables.errorColorD30);
|
|
421
|
-
}), l.variables.errorColorD30, l.variables.errorColorD40, l.variables.errorColorD40, $, l.variables.focusShadow, l.variables.errorColorL10, l.variables.errorColorD10, (function(r) {
|
|
422
|
-
var e = r.$selected;
|
|
423
|
-
return e && (0, n.css)([ "box-shadow:", ";background-color:", ";" ], j, l.variables.errorColorD40);
|
|
424
|
-
}));
|
|
425
|
-
var A = (0, n.css)([ "", ";color:", ";border:1px solid transparent;&:not([disabled],[aria-disabled='true']){transition:background-color 0.2s,border 0.2s,box-shadow 0.2s,text-decoration 0.2s;", " &:hover{color:", ";background-color:", ";border-color:", ";}", " &:focus{color:", ";}&:active,&[aria-expanded='true']{background-color:", ";transition:none;}}&:not([disabled]){&:focus{box-shadow:", ";}}&[disabled],&[aria-disabled='true']{color:", ";cursor:not-allowed;", "}" ], w, (0,
|
|
426
|
-
l.pick)({
|
|
427
|
-
light: l.variables.gray45,
|
|
428
|
-
dark: l.variables.white
|
|
429
|
-
}), (function(r) {
|
|
430
|
-
var e = r.$selected;
|
|
431
|
-
return e && (0, n.css)([ "border-color:", ";" ], l.variables.accentColor);
|
|
432
|
-
}), (0, l.pick)({
|
|
433
|
-
light: l.variables.linkColor,
|
|
434
|
-
dark: l.variables.white
|
|
435
|
-
}), l.variables.backgroundColorHover, (0, l.pick)({
|
|
436
|
-
light: l.variables.gray60,
|
|
437
|
-
dark: l.variables.borderColor
|
|
438
|
-
}), (function(r) {
|
|
439
|
-
var e = r.$error;
|
|
440
|
-
return e && (0, n.css)([ "&,&:hover{color:", ";}" ], l.variables.errorColor);
|
|
441
|
-
}), (0, l.pick)({
|
|
442
|
-
light: l.variables.linkColor,
|
|
443
|
-
dark: l.variables.white
|
|
444
|
-
}), (0, l.pick)({
|
|
445
|
-
light: l.variables.gray92,
|
|
446
|
-
dark: l.variables.gray22
|
|
447
|
-
}), l.variables.focusShadow, l.variables.textDisabledColor, (function(r) {
|
|
448
|
-
var e = r.$selected;
|
|
449
|
-
return e && (0, n.css)([ "border-color:", ";" ], l.variables.borderLightColor);
|
|
450
|
-
}));
|
|
207
|
+
/* harmony default export */ const C = f;
|
|
451
208
|
// CONCATENATED MODULE: ./src/ButtonSimple/ButtonSimpleStyles.ts
|
|
452
|
-
|
|
453
|
-
displayName: "ButtonSimpleStyles__StyledClickable",
|
|
454
|
-
componentId: "vlarwe-0"
|
|
455
|
-
})([ "", " ", "" ], (function(r) {
|
|
456
|
-
var e = r.to;
|
|
457
|
-
return e ? (0, n.css)([ "", " align-items:center;justify-content:center;" ], l.mixins.reset("flex")) : (0,
|
|
458
|
-
n.css)([ "", "" ], l.mixins.reset("block"));
|
|
459
|
-
}), (0, l.pick)({
|
|
460
|
-
enterprise: (0, l.pickVariant)("$variant", {
|
|
461
|
-
// the four main styles
|
|
462
|
-
primary: B,
|
|
463
|
-
secondary: D,
|
|
464
|
-
destructive: P,
|
|
465
|
-
subtle: A,
|
|
466
|
-
// same as "secondary"
|
|
467
|
-
default: D,
|
|
468
|
-
// "pill" is an Enterprise-only style
|
|
469
|
-
pill: A,
|
|
470
|
-
// fallbacks for styles unsupported by Enterprise
|
|
471
|
-
toggle: D,
|
|
472
|
-
flat: D
|
|
473
|
-
}),
|
|
474
|
-
prisma: (0, l.pickVariant)("$variant", {
|
|
475
|
-
// the four main styles
|
|
476
|
-
primary: h,
|
|
477
|
-
secondary: k,
|
|
478
|
-
destructive: h,
|
|
479
|
-
subtle: k,
|
|
480
|
-
// same as "secondary"
|
|
481
|
-
default: k,
|
|
482
|
-
// "toggle" and "flat" are Prisma-only styles
|
|
483
|
-
toggle: k,
|
|
484
|
-
flat: h,
|
|
485
|
-
// fallback for "pill" which is not supported by Prisma
|
|
486
|
-
pill: k
|
|
487
|
-
})
|
|
488
|
-
}));
|
|
489
|
-
// CONCATENATED MODULE: ./src/ButtonSimple/ButtonSimple.tsx
|
|
490
|
-
function T(r) {
|
|
209
|
+
function g(r) {
|
|
491
210
|
"@babel/helpers - typeof";
|
|
492
|
-
return
|
|
211
|
+
return g = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(r) {
|
|
493
212
|
return typeof r;
|
|
494
213
|
} : function(r) {
|
|
495
214
|
return r && "function" == typeof Symbol && r.constructor === Symbol && r !== Symbol.prototype ? "symbol" : typeof r;
|
|
496
|
-
},
|
|
215
|
+
}, g(r);
|
|
497
216
|
}
|
|
498
|
-
function
|
|
499
|
-
|
|
500
|
-
for (var e = 1; e < arguments.length; e++) {
|
|
501
|
-
var a = arguments[e];
|
|
502
|
-
for (var o in a) {
|
|
503
|
-
({}).hasOwnProperty.call(a, o) && (r[o] = a[o]);
|
|
504
|
-
}
|
|
505
|
-
}
|
|
506
|
-
return r;
|
|
507
|
-
}, _.apply(null, arguments);
|
|
508
|
-
}
|
|
509
|
-
function N(r, e) {
|
|
510
|
-
if (null == r) return {};
|
|
511
|
-
var a, o, i = I(r, e);
|
|
217
|
+
function m(r, e) {
|
|
218
|
+
var o = Object.keys(r);
|
|
512
219
|
if (Object.getOwnPropertySymbols) {
|
|
513
|
-
var
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
}
|
|
517
|
-
}
|
|
518
|
-
return i;
|
|
519
|
-
}
|
|
520
|
-
function I(r, e) {
|
|
521
|
-
if (null == r) return {};
|
|
522
|
-
var a = {};
|
|
523
|
-
for (var o in r) {
|
|
524
|
-
if ({}.hasOwnProperty.call(r, o)) {
|
|
525
|
-
if (e.includes(o)) continue;
|
|
526
|
-
a[o] = r[o];
|
|
527
|
-
}
|
|
220
|
+
var a = Object.getOwnPropertySymbols(r);
|
|
221
|
+
e && (a = a.filter((function(e) {
|
|
222
|
+
return Object.getOwnPropertyDescriptor(r, e).enumerable;
|
|
223
|
+
}))), o.push.apply(o, a);
|
|
528
224
|
}
|
|
529
|
-
return
|
|
530
|
-
}
|
|
531
|
-
function V(r, e) {
|
|
532
|
-
if (!(r instanceof e)) throw new TypeError("Cannot call a class as a function");
|
|
225
|
+
return o;
|
|
533
226
|
}
|
|
534
|
-
function
|
|
535
|
-
for (var
|
|
536
|
-
var o = e[
|
|
537
|
-
|
|
538
|
-
|
|
227
|
+
function k(r) {
|
|
228
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
229
|
+
var o = null != arguments[e] ? arguments[e] : {};
|
|
230
|
+
e % 2 ? m(Object(o), !0).forEach((function(e) {
|
|
231
|
+
S(r, e, o[e]);
|
|
232
|
+
})) : Object.getOwnPropertyDescriptors ? Object.defineProperties(r, Object.getOwnPropertyDescriptors(o)) : m(Object(o)).forEach((function(e) {
|
|
233
|
+
Object.defineProperty(r, e, Object.getOwnPropertyDescriptor(o, e));
|
|
234
|
+
}));
|
|
539
235
|
}
|
|
540
|
-
}
|
|
541
|
-
function W(r, e, a) {
|
|
542
|
-
return e && E(r.prototype, e), a && E(r, a), Object.defineProperty(r, "prototype", {
|
|
543
|
-
writable: !1
|
|
544
|
-
}), r;
|
|
545
|
-
}
|
|
546
|
-
function q(r, e) {
|
|
547
|
-
if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function");
|
|
548
|
-
r.prototype = Object.create(e && e.prototype, {
|
|
549
|
-
constructor: {
|
|
550
|
-
value: r,
|
|
551
|
-
writable: !0,
|
|
552
|
-
configurable: !0
|
|
553
|
-
}
|
|
554
|
-
}), Object.defineProperty(r, "prototype", {
|
|
555
|
-
writable: !1
|
|
556
|
-
}), e && M(r, e);
|
|
557
|
-
}
|
|
558
|
-
function M(r, e) {
|
|
559
|
-
return M = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, e) {
|
|
560
|
-
return r.__proto__ = e, r;
|
|
561
|
-
}, M(r, e);
|
|
562
|
-
}
|
|
563
|
-
function R(r) {
|
|
564
|
-
var e = U();
|
|
565
|
-
return function() {
|
|
566
|
-
var a, o = F(r);
|
|
567
|
-
if (e) {
|
|
568
|
-
var i = F(this).constructor;
|
|
569
|
-
a = Reflect.construct(o, arguments, i);
|
|
570
|
-
} else a = o.apply(this, arguments);
|
|
571
|
-
return L(this, a);
|
|
572
|
-
};
|
|
573
|
-
}
|
|
574
|
-
function L(r, e) {
|
|
575
|
-
if (e && ("object" == T(e) || "function" == typeof e)) return e;
|
|
576
|
-
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
577
|
-
return z(r);
|
|
578
|
-
}
|
|
579
|
-
function z(r) {
|
|
580
|
-
if (void 0 === r) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
581
236
|
return r;
|
|
582
237
|
}
|
|
583
|
-
function
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
} catch (r) {}
|
|
587
|
-
return (U = function e() {
|
|
588
|
-
return !!r;
|
|
589
|
-
})();
|
|
590
|
-
}
|
|
591
|
-
function F(r) {
|
|
592
|
-
return F = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(r) {
|
|
593
|
-
return r.__proto__ || Object.getPrototypeOf(r);
|
|
594
|
-
}, F(r);
|
|
595
|
-
}
|
|
596
|
-
function G(r, e, a) {
|
|
597
|
-
return (e = J(e)) in r ? Object.defineProperty(r, e, {
|
|
598
|
-
value: a,
|
|
238
|
+
function S(r, e, o) {
|
|
239
|
+
return (e = O(e)) in r ? Object.defineProperty(r, e, {
|
|
240
|
+
value: o,
|
|
599
241
|
enumerable: !0,
|
|
600
242
|
configurable: !0,
|
|
601
243
|
writable: !0
|
|
602
|
-
}) : r[e] =
|
|
244
|
+
}) : r[e] = o, r;
|
|
603
245
|
}
|
|
604
|
-
function
|
|
605
|
-
var e =
|
|
606
|
-
return "symbol" ==
|
|
246
|
+
function O(r) {
|
|
247
|
+
var e = B(r, "string");
|
|
248
|
+
return "symbol" == g(e) ? e : e + "";
|
|
607
249
|
}
|
|
608
|
-
function
|
|
609
|
-
if ("object" !=
|
|
610
|
-
var
|
|
611
|
-
if (void 0 !==
|
|
612
|
-
var
|
|
613
|
-
if ("object" !=
|
|
250
|
+
function B(r, e) {
|
|
251
|
+
if ("object" != g(r) || !r) return r;
|
|
252
|
+
var o = r[Symbol.toPrimitive];
|
|
253
|
+
if (void 0 !== o) {
|
|
254
|
+
var a = o.call(r, e || "default");
|
|
255
|
+
if ("object" != g(a)) return a;
|
|
614
256
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
615
257
|
}
|
|
616
258
|
return ("string" === e ? String : Number)(r);
|
|
617
259
|
}
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
260
|
+
var D = {
|
|
261
|
+
borderColor: d.variables.interactiveColorAccentError,
|
|
262
|
+
borderColorActive: d.variables.interactiveColorAccentError,
|
|
263
|
+
borderColorHover: d.mixins.overlayColors(d.variables.interactiveColorAccentError, d.variables.interactiveColorBorderHover)
|
|
264
|
+
};
|
|
265
|
+
var A = {
|
|
266
|
+
background: d.variables.interactiveColorBackground,
|
|
267
|
+
backgroundActive: d.variables.interactiveColorOverlayActive,
|
|
268
|
+
backgroundHover: d.variables.interactiveColorOverlayHover,
|
|
269
|
+
borderColor: d.variables.transparent,
|
|
270
|
+
borderColorActive: d.variables.transparent,
|
|
271
|
+
borderColorDisabled: d.variables.transparent,
|
|
272
|
+
borderColorHover: d.variables.transparent,
|
|
273
|
+
color: d.variables.contentColorActive,
|
|
274
|
+
colorActive: d.variables.contentColorActive,
|
|
275
|
+
colorDisable: d.variables.contentColorDisabled,
|
|
276
|
+
colorHover: d.variables.contentColorActive
|
|
277
|
+
};
|
|
278
|
+
var h = {
|
|
279
|
+
background: d.variables.interactiveColorBackground,
|
|
280
|
+
backgroundActive: d.variables.interactiveColorOverlayActive,
|
|
281
|
+
backgroundHover: d.variables.interactiveColorOverlayHover,
|
|
282
|
+
borderColor: d.variables.interactiveColorBorder,
|
|
283
|
+
borderColorActive: d.variables.interactiveColorBorderActive,
|
|
284
|
+
borderColorDisabled: d.variables.interactiveColorBorderDisabled,
|
|
285
|
+
borderColorHover: d.variables.interactiveColorBorderHover
|
|
286
|
+
};
|
|
287
|
+
var j = c()(s()).withConfig({
|
|
288
|
+
displayName: "ButtonSimpleStyles__StyledClickable",
|
|
289
|
+
componentId: "vlarwe-0"
|
|
290
|
+
})([ "", " align-items:center;justify-content:center;&:not([disabled],[aria-disabled='true']){", "}", "" ], d.mixins.reset("flex"), (function(r) {
|
|
291
|
+
var e = r.$error, o = r.$isMenu;
|
|
292
|
+
return e && (0, i.css)([ "", "" ], (0, d.pickVariant)("$variant", {
|
|
293
|
+
default: o ? C("secondary", k(k({}, h), D)) : C("secondary", D),
|
|
294
|
+
secondary: C("secondary", D),
|
|
295
|
+
subtle: o ? C("secondary", k(k({}, A), D)) : C("subtle", D)
|
|
296
|
+
}));
|
|
297
|
+
}), (function(r) {
|
|
298
|
+
var e = r.$isMenu;
|
|
299
|
+
return (0, d.pickVariant)("$variant", {
|
|
300
|
+
default: e ? C("secondary", h) : C("secondary"),
|
|
301
|
+
primary: C("primary"),
|
|
302
|
+
secondary: C("secondary"),
|
|
303
|
+
subtle: e ? C("secondary", A) : C("subtle"),
|
|
304
|
+
destructive: C("destructive"),
|
|
305
|
+
destructiveSecondary: C("destructiveSecondary")
|
|
306
|
+
});
|
|
307
|
+
}));
|
|
308
|
+
// CONCATENATED MODULE: ./src/ButtonSimple/ButtonSimple.tsx
|
|
309
|
+
function w() {
|
|
310
|
+
return w = Object.assign ? Object.assign.bind() : function(r) {
|
|
311
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
312
|
+
var o = arguments[e];
|
|
313
|
+
for (var a in o) {
|
|
314
|
+
({}).hasOwnProperty.call(o, a) && (r[a] = o[a]);
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
return r;
|
|
318
|
+
}, w.apply(null, arguments);
|
|
623
319
|
}
|
|
624
|
-
function
|
|
625
|
-
if (r) {
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
320
|
+
function H(r, e) {
|
|
321
|
+
if (null == r) return {};
|
|
322
|
+
var o, a, t = P(r, e);
|
|
323
|
+
if (Object.getOwnPropertySymbols) {
|
|
324
|
+
var n = Object.getOwnPropertySymbols(r);
|
|
325
|
+
for (a = 0; a < n.length; a++) {
|
|
326
|
+
o = n[a], e.includes(o) || {}.propertyIsEnumerable.call(r, o) && (t[o] = r[o]);
|
|
327
|
+
}
|
|
629
328
|
}
|
|
329
|
+
return t;
|
|
630
330
|
}
|
|
631
|
-
function
|
|
632
|
-
if (
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
for (var a = 0, o = Array(e); a < e; a++) {
|
|
640
|
-
o[a] = r[a];
|
|
331
|
+
function P(r, e) {
|
|
332
|
+
if (null == r) return {};
|
|
333
|
+
var o = {};
|
|
334
|
+
for (var a in r) {
|
|
335
|
+
if ({}.hasOwnProperty.call(r, a)) {
|
|
336
|
+
if (e.includes(a)) continue;
|
|
337
|
+
o[a] = r[a];
|
|
338
|
+
}
|
|
641
339
|
}
|
|
642
340
|
return o;
|
|
643
341
|
}
|
|
644
|
-
var
|
|
645
|
-
var
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
inline: t().bool,
|
|
658
|
-
openInNewContext: t().bool,
|
|
659
|
-
prepend: t().bool,
|
|
660
|
-
selected: t().bool,
|
|
661
|
-
splunkTheme: t().object,
|
|
662
|
-
to: t().string
|
|
663
|
-
};
|
|
664
|
-
var nr = {
|
|
665
|
-
appearance: "default",
|
|
666
|
-
append: false,
|
|
667
|
-
disabled: false,
|
|
668
|
-
error: false,
|
|
669
|
-
inline: true,
|
|
670
|
-
openInNewContext: false,
|
|
671
|
-
prepend: false
|
|
342
|
+
var x = [ "default", "secondary", "primary", "destructive", "destructiveSecondary", "subtle" ];
|
|
343
|
+
var $ = {
|
|
344
|
+
action: n().string,
|
|
345
|
+
appearance: n().oneOf([ "default", "secondary", "primary", "destructive", "subtle" ]),
|
|
346
|
+
append: n().bool,
|
|
347
|
+
children: n().node,
|
|
348
|
+
disabled: n().oneOfType([ n().bool, n().oneOf([ "dimmed", "disabled" ]) ]),
|
|
349
|
+
elementRef: n().oneOfType([ n().func, n().object ]),
|
|
350
|
+
error: n().bool,
|
|
351
|
+
isMenu: n().bool,
|
|
352
|
+
openInNewContext: n().bool,
|
|
353
|
+
prepend: n().bool,
|
|
354
|
+
to: n().string
|
|
672
355
|
};
|
|
673
|
-
var
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
}
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
/**
|
|
693
|
-
* Places focus on the button.
|
|
694
|
-
*/
|
|
695
|
-
// eslint-disable-next-line react/no-unused-class-component-methods
|
|
696
|
-
value: function r() {
|
|
697
|
-
var e;
|
|
698
|
-
(e = this.component) === null || e === void 0 ? void 0 : e.focus();
|
|
699
|
-
}
|
|
700
|
-
}, {
|
|
701
|
-
key: "getVariant",
|
|
702
|
-
value: function r() {
|
|
703
|
-
var e = this.props, a = e.appearance, o = e.error, i = e.splunkTheme;
|
|
704
|
-
var t = a;
|
|
705
|
-
if (i.family === "enterprise") {
|
|
706
|
-
if (o) {
|
|
707
|
-
t = "destructive";
|
|
708
|
-
} else if (!or /* the readonly string[] cast is needed due to https://github.com/microsoft/TypeScript/issues/26255 */ .includes(a)) {
|
|
709
|
-
t = "default";
|
|
710
|
-
}
|
|
711
|
-
} else if (i.family === "prisma" && !ir /* the readonly string[] cast is needed due to https://github.com/microsoft/TypeScript/issues/26255 */ .includes(a)) {
|
|
712
|
-
t = "secondary";
|
|
713
|
-
}
|
|
714
|
-
return t;
|
|
715
|
-
}
|
|
716
|
-
}, {
|
|
717
|
-
key: "render",
|
|
718
|
-
value: function r() {
|
|
719
|
-
var e = this.props, a = e.append, i = e.children, t = e.error, l = e.prepend, n = e.selected, s = N(e, [ "append", "children", "error", "prepend", "selected" ]);
|
|
720
|
-
|
|
721
|
-
return o().createElement(H, _({
|
|
722
|
-
"aria-invalid": t,
|
|
723
|
-
"aria-pressed": n,
|
|
724
|
-
"data-test": "button-simple",
|
|
725
|
-
ref: this.handleMount,
|
|
726
|
-
$variant: this.getVariant(),
|
|
727
|
-
$append: a,
|
|
728
|
-
$prepend: l,
|
|
729
|
-
$selected: n || false,
|
|
730
|
-
$error: t
|
|
731
|
-
}, s), i);
|
|
732
|
-
}
|
|
733
|
-
} ]);
|
|
734
|
-
return a;
|
|
735
|
-
}(a.Component);
|
|
736
|
-
G(sr, "defaultProps", nr);
|
|
737
|
-
G(sr, "propTypes", lr);
|
|
738
|
-
var cr = (0, l.withSplunkTheme)(sr);
|
|
739
|
-
cr.propTypes = sr.propTypes;
|
|
740
|
-
/* harmony default export */ const br = cr;
|
|
356
|
+
var M = a().forwardRef((function(r, e) {
|
|
357
|
+
var o = r.appearance, t = o === void 0 ? "default" : o, n = r.append, i = r.children, c = r.disabled, l = r.error, s = r.isMenu, d = r.prepend, v = H(r, [ "appearance", "append", "children", "disabled", "error", "isMenu", "prepend" ]);
|
|
358
|
+
// @docs-props-type ButtonSimplePropsBase
|
|
359
|
+
var b = x.includes(t) ? t : "default";
|
|
360
|
+
|
|
361
|
+
return a().createElement(j, w({
|
|
362
|
+
"aria-invalid": l,
|
|
363
|
+
"data-test": "button-simple",
|
|
364
|
+
disabled: c,
|
|
365
|
+
$variant: b,
|
|
366
|
+
$append: n,
|
|
367
|
+
$prepend: d,
|
|
368
|
+
$error: l,
|
|
369
|
+
$isMenu: s,
|
|
370
|
+
ref: e
|
|
371
|
+
}, v), i);
|
|
372
|
+
}));
|
|
373
|
+
M.propTypes = $;
|
|
374
|
+
/* harmony default export */ const E = M;
|
|
741
375
|
// only for styled-components that wrap ButtonSimple
|
|
742
376
|
// CONCATENATED MODULE: ./src/ButtonSimple/index.ts
|
|
743
377
|
module.exports = e;
|