diff --git a/packages/eui/changelogs/upcoming/9528.md b/packages/eui/changelogs/upcoming/9528.md new file mode 100644 index 000000000000..8424900d64a2 --- /dev/null +++ b/packages/eui/changelogs/upcoming/9528.md @@ -0,0 +1 @@ +- Added `transitionBottomIn` and `transitionBottomOut` icons to `EuiIcon` diff --git a/packages/eui/src/components/icon/__snapshots__/icon.test.tsx.snap b/packages/eui/src/components/icon/__snapshots__/icon.test.tsx.snap index 6c6dfc826267..49ac2f2bd784 100644 --- a/packages/eui/src/components/icon/__snapshots__/icon.test.tsx.snap +++ b/packages/eui/src/components/icon/__snapshots__/icon.test.tsx.snap @@ -14422,6 +14422,50 @@ exports[`EuiIcon props type training is rendered 1`] = ` `; +exports[`EuiIcon props type transitionBottomIn is rendered 1`] = ` + + + + +`; + +exports[`EuiIcon props type transitionBottomOut is rendered 1`] = ` + + + + +`; + exports[`EuiIcon props type transitionLeftIn is rendered 1`] = ` & SVGRProps) => ( + + {title ? {title} : null} + + + +); +export const icon = EuiIconTransitionBottomIn; diff --git a/packages/eui/src/components/icon/assets/transition_bottom_out.tsx b/packages/eui/src/components/icon/assets/transition_bottom_out.tsx new file mode 100644 index 000000000000..d29377b7ef27 --- /dev/null +++ b/packages/eui/src/components/icon/assets/transition_bottom_out.tsx @@ -0,0 +1,39 @@ +/* + * 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. + */ + +// THIS IS A GENERATED FILE. DO NOT MODIFY MANUALLY. @see scripts/compile-icons.js + +import * as React from 'react'; +import type { SVGProps } from 'react'; +interface SVGRProps { + title?: string; + titleId?: string; +} +const EuiIconTransitionBottomOut = ({ + title, + titleId, + ...props +}: SVGProps & SVGRProps) => ( + + {title ? {title} : null} + + + +); +export const icon = EuiIconTransitionBottomOut; diff --git a/packages/eui/src/components/icon/icon_map.ts b/packages/eui/src/components/icon/icon_map.ts index 4a1bec2cca55..3190e7ab8614 100644 --- a/packages/eui/src/components/icon/icon_map.ts +++ b/packages/eui/src/components/icon/icon_map.ts @@ -579,6 +579,8 @@ export const typeToPathMap = { refreshTime: () => import('./assets/refresh_time'), timeslider: () => import('./assets/clock_control'), // NOTE: To be deprecated in favor of clockControl training: () => import('./assets/presentation'), // NOTE: To be deprecated in favor of presentation, + transitionBottomIn: () => import('./assets/transition_bottom_in'), + transitionBottomOut: () => import('./assets/transition_bottom_out'), transitionLeftIn: () => import('./assets/transition_left_in'), transitionLeftOut: () => import('./assets/transition_left_out'), transitionTopIn: () => import('./assets/transition_top_in'), diff --git a/packages/eui/src/components/icon/svgs/transition_bottom_in.svg b/packages/eui/src/components/icon/svgs/transition_bottom_in.svg new file mode 100644 index 000000000000..9e039dfa6d90 --- /dev/null +++ b/packages/eui/src/components/icon/svgs/transition_bottom_in.svg @@ -0,0 +1 @@ + diff --git a/packages/eui/src/components/icon/svgs/transition_bottom_out.svg b/packages/eui/src/components/icon/svgs/transition_bottom_out.svg new file mode 100644 index 000000000000..cc22af9376fd --- /dev/null +++ b/packages/eui/src/components/icon/svgs/transition_bottom_out.svg @@ -0,0 +1 @@ + diff --git a/packages/website/docs/components/display/icons/icon_types.ts b/packages/website/docs/components/display/icons/icon_types.ts index c7afb1dba35b..c703c6e2a2a3 100644 --- a/packages/website/docs/components/display/icons/icon_types.ts +++ b/packages/website/docs/components/display/icons/icon_types.ts @@ -313,6 +313,8 @@ export const iconTypes: Array = [ 'thumbUp', 'timeline', 'timelineWithArrow', // To be deprecated + 'transitionBottomIn', + 'transitionBottomOut', 'transitionLeftIn', 'transitionLeftOut', 'transitionTopIn',