-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Presentation Util] Shared toolbar component (#94139)
- Loading branch information
Showing
32 changed files
with
626 additions
and
238 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,7 @@ | |
"requiredBundles": [ | ||
"home", | ||
"kibanaReact", | ||
"kibanaUtils" | ||
"kibanaUtils", | ||
"presentationUtil" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
71 changes: 0 additions & 71 deletions
71
...rd/public/application/top_nav/panel_toolbar/__snapshots__/panel_toolbar.stories.storyshot
This file was deleted.
Oops, something went wrong.
51 changes: 0 additions & 51 deletions
51
src/plugins/dashboard/public/application/top_nav/panel_toolbar/panel_toolbar.tsx
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
src/plugins/presentation_util/public/components/solution_toolbar/items/add_from_library.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0 and the Server Side Public License, v 1; you may not use this file except | ||
* in compliance with, at your election, the Elastic License 2.0 or the Server | ||
* Side Public License, v 1. | ||
*/ | ||
|
||
import React from 'react'; | ||
import { ComponentStrings } from '../../../i18n/components'; | ||
import { SolutionToolbarButton, Props as SolutionToolbarButtonProps } from './button'; | ||
|
||
const { SolutionToolbar: strings } = ComponentStrings; | ||
|
||
export type Props = Omit<SolutionToolbarButtonProps, 'iconType' | 'label'>; | ||
|
||
export const AddFromLibraryButton = ({ onClick, ...rest }: Props) => ( | ||
<SolutionToolbarButton | ||
{...rest} | ||
iconType="folderOpen" | ||
onClick={onClick} | ||
label={strings.getLibraryButtonLabel()} | ||
/> | ||
); |
6 changes: 1 addition & 5 deletions
6
.../top_nav/panel_toolbar/panel_toolbar.scss → ...onents/solution_toolbar/items/button.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.