kibana/api_docs/kbn_shared_ux_button_toolbar.devdocs.json

619 lines
No EOL
22 KiB
JSON

{
"id": "@kbn/shared-ux-button-toolbar",
"client": {
"classes": [],
"functions": [
{
"parentPluginId": "@kbn/shared-ux-button-toolbar",
"id": "def-public.AddFromLibraryButton",
"type": "Function",
"tags": [],
"label": "AddFromLibraryButton",
"description": [
"\nA button that acts to add an item from the library to a solution, typically through a modal."
],
"signature": [
"({ onClick, size, ...rest }: ",
{
"pluginId": "@kbn/shared-ux-button-toolbar",
"scope": "public",
"docId": "kibKbnSharedUxButtonToolbarPluginApi",
"section": "def-public.Props",
"text": "Props"
},
") => React.JSX.Element"
],
"path": "src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/add_from_library/add_from_library.tsx",
"deprecated": false,
"trackAdoption": false,
"children": [
{
"parentPluginId": "@kbn/shared-ux-button-toolbar",
"id": "def-public.AddFromLibraryButton.$1",
"type": "Object",
"tags": [],
"label": "{ onClick, size = 'm', ...rest }",
"description": [],
"signature": [
{
"pluginId": "@kbn/shared-ux-button-toolbar",
"scope": "public",
"docId": "kibKbnSharedUxButtonToolbarPluginApi",
"section": "def-public.Props",
"text": "Props"
}
],
"path": "src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/add_from_library/add_from_library.tsx",
"deprecated": false,
"trackAdoption": false,
"isRequired": true
}
],
"returnComment": [],
"initialIsOpen": false
},
{
"parentPluginId": "@kbn/shared-ux-button-toolbar",
"id": "def-public.IconButtonGroup",
"type": "Function",
"tags": [],
"label": "IconButtonGroup",
"description": [
"\nA group of buttons each performing an action, represented by an icon."
],
"signature": [
"({ buttons, legend, buttonSize, \"data-test-subj\": dataTestSubj, }: ",
{
"pluginId": "@kbn/shared-ux-button-toolbar",
"scope": "public",
"docId": "kibKbnSharedUxButtonToolbarPluginApi",
"section": "def-public.Props",
"text": "Props"
},
") => React.JSX.Element"
],
"path": "src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/icon_button_group/icon_button_group.tsx",
"deprecated": false,
"trackAdoption": false,
"children": [
{
"parentPluginId": "@kbn/shared-ux-button-toolbar",
"id": "def-public.IconButtonGroup.$1",
"type": "Object",
"tags": [],
"label": "{\n buttons,\n legend,\n buttonSize = 'm',\n 'data-test-subj': dataTestSubj,\n}",
"description": [],
"signature": [
{
"pluginId": "@kbn/shared-ux-button-toolbar",
"scope": "public",
"docId": "kibKbnSharedUxButtonToolbarPluginApi",
"section": "def-public.Props",
"text": "Props"
}
],
"path": "src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/icon_button_group/icon_button_group.tsx",
"deprecated": false,
"trackAdoption": false,
"isRequired": true
}
],
"returnComment": [],
"initialIsOpen": false
},
{
"parentPluginId": "@kbn/shared-ux-button-toolbar",
"id": "def-public.Toolbar",
"type": "Function",
"tags": [],
"label": "Toolbar",
"description": [
"\n"
],
"signature": [
"({ children }: ",
{
"pluginId": "@kbn/shared-ux-button-toolbar",
"scope": "public",
"docId": "kibKbnSharedUxButtonToolbarPluginApi",
"section": "def-public.Props",
"text": "Props"
},
") => React.JSX.Element"
],
"path": "src/platform/packages/shared/shared-ux/button_toolbar/src/toolbar/toolbar.tsx",
"deprecated": false,
"trackAdoption": false,
"children": [
{
"parentPluginId": "@kbn/shared-ux-button-toolbar",
"id": "def-public.Toolbar.$1",
"type": "Object",
"tags": [],
"label": "{ children }",
"description": [],
"signature": [
{
"pluginId": "@kbn/shared-ux-button-toolbar",
"scope": "public",
"docId": "kibKbnSharedUxButtonToolbarPluginApi",
"section": "def-public.Props",
"text": "Props"
}
],
"path": "src/platform/packages/shared/shared-ux/button_toolbar/src/toolbar/toolbar.tsx",
"deprecated": false,
"trackAdoption": false,
"isRequired": true
}
],
"returnComment": [
"Toolbar component"
],
"initialIsOpen": false
},
{
"parentPluginId": "@kbn/shared-ux-button-toolbar",
"id": "def-public.ToolbarButton",
"type": "Function",
"tags": [],
"label": "ToolbarButton",
"description": [],
"signature": [
"(props: ",
{
"pluginId": "@kbn/shared-ux-button-toolbar",
"scope": "public",
"docId": "kibKbnSharedUxButtonToolbarPluginApi",
"section": "def-public.Props",
"text": "Props"
},
"<T>) => React.JSX.Element"
],
"path": "src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/toolbar_button/toolbar_button.tsx",
"deprecated": false,
"trackAdoption": false,
"children": [
{
"parentPluginId": "@kbn/shared-ux-button-toolbar",
"id": "def-public.ToolbarButton.$1",
"type": "Uncategorized",
"tags": [],
"label": "props",
"description": [],
"signature": [
{
"pluginId": "@kbn/shared-ux-button-toolbar",
"scope": "public",
"docId": "kibKbnSharedUxButtonToolbarPluginApi",
"section": "def-public.Props",
"text": "Props"
},
"<T>"
],
"path": "src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/toolbar_button/toolbar_button.tsx",
"deprecated": false,
"trackAdoption": false,
"isRequired": true
}
],
"returnComment": [],
"initialIsOpen": false
},
{
"parentPluginId": "@kbn/shared-ux-button-toolbar",
"id": "def-public.ToolbarPopover",
"type": "Function",
"tags": [],
"label": "ToolbarPopover",
"description": [
"\nA button which opens a popover of additional actions within the toolbar."
],
"signature": [
"({ type, label, iconType, size, children, isDisabled, ...popover }: ",
{
"pluginId": "@kbn/shared-ux-button-toolbar",
"scope": "public",
"docId": "kibKbnSharedUxButtonToolbarPluginApi",
"section": "def-public.Props",
"text": "Props"
},
") => React.JSX.Element"
],
"path": "src/platform/packages/shared/shared-ux/button_toolbar/src/popover/popover.tsx",
"deprecated": false,
"trackAdoption": false,
"children": [
{
"parentPluginId": "@kbn/shared-ux-button-toolbar",
"id": "def-public.ToolbarPopover.$1",
"type": "CompoundType",
"tags": [],
"label": "{\n type,\n label,\n iconType,\n size = 'm',\n children,\n isDisabled,\n ...popover\n}",
"description": [],
"signature": [
{
"pluginId": "@kbn/shared-ux-button-toolbar",
"scope": "public",
"docId": "kibKbnSharedUxButtonToolbarPluginApi",
"section": "def-public.Props",
"text": "Props"
}
],
"path": "src/platform/packages/shared/shared-ux/button_toolbar/src/popover/popover.tsx",
"deprecated": false,
"trackAdoption": false,
"isRequired": true
}
],
"returnComment": [],
"initialIsOpen": false
}
],
"interfaces": [
{
"parentPluginId": "@kbn/shared-ux-button-toolbar",
"id": "def-public.IconButton",
"type": "Interface",
"tags": [],
"label": "IconButton",
"description": [
"\nAn interface representing a single icon button in the `IconButtonGroup`."
],
"path": "src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/icon_button_group/icon_button_group.tsx",
"deprecated": false,
"trackAdoption": false,
"children": [
{
"parentPluginId": "@kbn/shared-ux-button-toolbar",
"id": "def-public.IconButton.label",
"type": "string",
"tags": [],
"label": "label",
"description": [
"The accessible button label."
],
"path": "src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/icon_button_group/icon_button_group.tsx",
"deprecated": false,
"trackAdoption": false
},
{
"parentPluginId": "@kbn/shared-ux-button-toolbar",
"id": "def-public.IconButton.iconType",
"type": "CompoundType",
"tags": [],
"label": "iconType",
"description": [
"EUI `IconType` to display."
],
"signature": [
"string | React.ComponentType<{}>"
],
"path": "src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/icon_button_group/icon_button_group.tsx",
"deprecated": false,
"trackAdoption": false
},
{
"parentPluginId": "@kbn/shared-ux-button-toolbar",
"id": "def-public.IconButton.onClick",
"type": "Function",
"tags": [],
"label": "onClick",
"description": [
"Handler for button click."
],
"signature": [
"() => void"
],
"path": "src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/icon_button_group/icon_button_group.tsx",
"deprecated": false,
"trackAdoption": false,
"children": [],
"returnComment": []
},
{
"parentPluginId": "@kbn/shared-ux-button-toolbar",
"id": "def-public.IconButton.title",
"type": "string",
"tags": [],
"label": "title",
"description": [
"HTML `title` attribute for tooltips if different from `label`"
],
"signature": [
"string | undefined"
],
"path": "src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/icon_button_group/icon_button_group.tsx",
"deprecated": false,
"trackAdoption": false
},
{
"parentPluginId": "@kbn/shared-ux-button-toolbar",
"id": "def-public.IconButton.datatestsubj",
"type": "string",
"tags": [],
"label": "'data-test-subj'",
"description": [
"Test subject for button"
],
"signature": [
"string | undefined"
],
"path": "src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/icon_button_group/icon_button_group.tsx",
"deprecated": false,
"trackAdoption": false
},
{
"parentPluginId": "@kbn/shared-ux-button-toolbar",
"id": "def-public.IconButton.isDisabled",
"type": "CompoundType",
"tags": [],
"label": "isDisabled",
"description": [
"To disable the action"
],
"signature": [
"boolean | undefined"
],
"path": "src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/icon_button_group/icon_button_group.tsx",
"deprecated": false,
"trackAdoption": false
},
{
"parentPluginId": "@kbn/shared-ux-button-toolbar",
"id": "def-public.IconButton.ariaexpanded",
"type": "CompoundType",
"tags": [],
"label": "'aria-expanded'",
"description": [
"A11y for button"
],
"signature": [
"boolean | undefined"
],
"path": "src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/icon_button_group/icon_button_group.tsx",
"deprecated": false,
"trackAdoption": false
},
{
"parentPluginId": "@kbn/shared-ux-button-toolbar",
"id": "def-public.IconButton.ariacontrols",
"type": "string",
"tags": [],
"label": "'aria-controls'",
"description": [
"A11y for button"
],
"signature": [
"string | undefined"
],
"path": "src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/icon_button_group/icon_button_group.tsx",
"deprecated": false,
"trackAdoption": false
}
],
"initialIsOpen": false
},
{
"parentPluginId": "@kbn/shared-ux-button-toolbar",
"id": "def-public.Props",
"type": "Interface",
"tags": [],
"label": "Props",
"description": [
"\nProps for `IconButtonGroup`."
],
"path": "src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/icon_button_group/icon_button_group.tsx",
"deprecated": false,
"trackAdoption": false,
"children": [
{
"parentPluginId": "@kbn/shared-ux-button-toolbar",
"id": "def-public.Props.legend",
"type": "string",
"tags": [],
"label": "legend",
"description": [
"Required accessible legend for the whole group"
],
"path": "src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/icon_button_group/icon_button_group.tsx",
"deprecated": false,
"trackAdoption": false
},
{
"parentPluginId": "@kbn/shared-ux-button-toolbar",
"id": "def-public.Props.buttons",
"type": "Array",
"tags": [],
"label": "buttons",
"description": [
"Array of `IconButton`"
],
"signature": [
{
"pluginId": "@kbn/shared-ux-button-toolbar",
"scope": "public",
"docId": "kibKbnSharedUxButtonToolbarPluginApi",
"section": "def-public.IconButton",
"text": "IconButton"
},
"[]"
],
"path": "src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/icon_button_group/icon_button_group.tsx",
"deprecated": false,
"trackAdoption": false
},
{
"parentPluginId": "@kbn/shared-ux-button-toolbar",
"id": "def-public.Props.buttonSize",
"type": "CompoundType",
"tags": [],
"label": "buttonSize",
"description": [
"Button size"
],
"signature": [
"\"m\" | \"s\" | \"compressed\" | undefined"
],
"path": "src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/icon_button_group/icon_button_group.tsx",
"deprecated": false,
"trackAdoption": false
},
{
"parentPluginId": "@kbn/shared-ux-button-toolbar",
"id": "def-public.Props.datatestsubj",
"type": "string",
"tags": [],
"label": "'data-test-subj'",
"description": [
"Test subject for button group"
],
"signature": [
"string | undefined"
],
"path": "src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/icon_button_group/icon_button_group.tsx",
"deprecated": false,
"trackAdoption": false
}
],
"initialIsOpen": false
},
{
"parentPluginId": "@kbn/shared-ux-button-toolbar",
"id": "def-public.Props",
"type": "Interface",
"tags": [],
"label": "Props",
"description": [
"\nProps for a generic toolbar component"
],
"path": "src/platform/packages/shared/shared-ux/button_toolbar/src/toolbar/toolbar.tsx",
"deprecated": false,
"trackAdoption": false,
"children": [
{
"parentPluginId": "@kbn/shared-ux-button-toolbar",
"id": "def-public.Props.children",
"type": "Object",
"tags": [],
"label": "children",
"description": [],
"signature": [
"NamedSlots"
],
"path": "src/platform/packages/shared/shared-ux/button_toolbar/src/toolbar/toolbar.tsx",
"deprecated": false,
"trackAdoption": false
}
],
"initialIsOpen": false
}
],
"enums": [],
"misc": [
{
"parentPluginId": "@kbn/shared-ux-button-toolbar",
"id": "def-public.Props",
"type": "Type",
"tags": [],
"label": "Props",
"description": [],
"signature": [
"{ \"aria-label\"?: string | undefined; 'data-test-subj'?: string | undefined; onBlur?: React.FocusEventHandler<HTMLButtonElement> | undefined; onClick?: React.MouseEventHandler<HTMLButtonElement> | undefined; size?: \"m\" | \"s\" | undefined; isLoading?: boolean | undefined; isDisabled?: boolean | undefined; as?: \"standard\" | undefined; fontWeight?: ToolbarButtonFontWeights | undefined; fullWidth?: boolean | undefined; iconSide?: ",
"ButtonContentIconSide",
"; groupPosition?: ButtonPositions | undefined; hasArrow?: boolean | undefined; }"
],
"path": "src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/add_from_library/add_from_library.tsx",
"deprecated": false,
"trackAdoption": false,
"initialIsOpen": false
},
{
"parentPluginId": "@kbn/shared-ux-button-toolbar",
"id": "def-public.Props",
"type": "Type",
"tags": [],
"label": "Props",
"description": [
"\nProps for `PrimaryButton`."
],
"signature": [
"T extends \"iconButton\" ? ToolbarIconButton : ToolbarStandardButton"
],
"path": "src/platform/packages/shared/shared-ux/button_toolbar/src/buttons/toolbar_button/toolbar_button.tsx",
"deprecated": false,
"trackAdoption": false,
"initialIsOpen": false
},
{
"parentPluginId": "@kbn/shared-ux-button-toolbar",
"id": "def-public.Props",
"type": "Type",
"tags": [],
"label": "Props",
"description": [
"\nProps for `ToolbarPopover`."
],
"signature": [
"AllowedButtonProps & Omit<AllowedPopoverProps, \"children\"> & { children: (arg: { closePopover: () => void; }) => React.ReactNode; label: string | number | boolean | React.ReactElement<any, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | React.ReactPortal; }"
],
"path": "src/platform/packages/shared/shared-ux/button_toolbar/src/popover/popover.tsx",
"deprecated": false,
"trackAdoption": false,
"initialIsOpen": false
},
{
"parentPluginId": "@kbn/shared-ux-button-toolbar",
"id": "def-public.ToolbarButtonType",
"type": "Type",
"tags": [],
"label": "ToolbarButtonType",
"description": [
"type for cases with both button or a popover could be used"
],
"signature": [
"(<T extends ButtonRenderStyle>(props: ",
{
"pluginId": "@kbn/shared-ux-button-toolbar",
"scope": "public",
"docId": "kibKbnSharedUxButtonToolbarPluginApi",
"section": "def-public.Props",
"text": "Props"
},
"<T>) => React.JSX.Element) | (({ type, label, iconType, size, children, isDisabled, ...popover }: ",
{
"pluginId": "@kbn/shared-ux-button-toolbar",
"scope": "public",
"docId": "kibKbnSharedUxButtonToolbarPluginApi",
"section": "def-public.Props",
"text": "Props"
},
") => React.JSX.Element)"
],
"path": "src/platform/packages/shared/shared-ux/button_toolbar/src/toolbar/toolbar.tsx",
"deprecated": false,
"trackAdoption": false,
"returnComment": [],
"children": [],
"initialIsOpen": false
}
],
"objects": []
},
"server": {
"classes": [],
"functions": [],
"interfaces": [],
"enums": [],
"misc": [],
"objects": []
},
"common": {
"classes": [],
"functions": [],
"interfaces": [],
"enums": [],
"misc": [],
"objects": []
}
}