From 13ca4780bd9e9335458f0fc306f803a6ff136eef Mon Sep 17 00:00:00 2001 From: Niketan Date: Tue, 23 Jun 2026 17:33:59 +0530 Subject: [PATCH 1/3] Added star Icon --- src/icon/star.tsx | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 src/icon/star.tsx diff --git a/src/icon/star.tsx b/src/icon/star.tsx new file mode 100644 index 0000000000..9b8ec0383f --- /dev/null +++ b/src/icon/star.tsx @@ -0,0 +1,47 @@ + +/* +Copyright (c) Uber Technologies, Inc. + +This source code is licensed under the MIT license found in the +LICENSE file in the root directory of this source tree. +*/ +// BASEUI-GENERATED-REACT-ICON +// DO NOT EDIT THIS FILE DIRECTLY, SEE README.md +import * as React from 'react'; +import { useStyletron } from '../styles'; +import { mergeOverride, toObjectOverride } from '../helpers/overrides'; + +import Icon from './icon'; +import type { IconProps } from './types'; + +// @ts-ignore +function Search(props: IconProps, ref) { + const [, theme] = useStyletron(); + const { title = 'Search', size, color, overrides = {}, ...restProps } = props; + const SvgOverride = mergeOverride( + // Icons from the theme target the SVG override in the underlying Icon component + { + component: theme.icons && theme.icons.Search ? theme.icons.Search : null, + }, + overrides && overrides.Svg ? toObjectOverride(overrides.Svg) : {} + ); + return ( + + + + ); +} + +export default React.forwardRef(Search); From 6787237121549be49f178522e332be9df2a46e5d Mon Sep 17 00:00:00 2001 From: Niketan Date: Tue, 23 Jun 2026 17:36:53 +0530 Subject: [PATCH 2/3] Update star.tsx --- src/icon/star.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/icon/star.tsx b/src/icon/star.tsx index 9b8ec0383f..140609e883 100644 --- a/src/icon/star.tsx +++ b/src/icon/star.tsx @@ -17,11 +17,11 @@ import type { IconProps } from './types'; // @ts-ignore function Search(props: IconProps, ref) { const [, theme] = useStyletron(); - const { title = 'Search', size, color, overrides = {}, ...restProps } = props; + const { title = 'Star', size, color, overrides = {}, ...restProps } = props; const SvgOverride = mergeOverride( // Icons from the theme target the SVG override in the underlying Icon component { - component: theme.icons && theme.icons.Search ? theme.icons.Search : null, + component: theme.icons && theme.icons.Star ? theme.icons.Star : null, }, overrides && overrides.Svg ? toObjectOverride(overrides.Svg) : {} ); @@ -44,4 +44,4 @@ function Search(props: IconProps, ref) { ); } -export default React.forwardRef(Search); +export default React.forwardRef(Star); From a385f399d17a974ad291136ac23de3f2759fc3bc Mon Sep 17 00:00:00 2001 From: Niketan Date: Tue, 23 Jun 2026 17:39:53 +0530 Subject: [PATCH 3/3] Update star.tsx --- src/icon/star.tsx | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/src/icon/star.tsx b/src/icon/star.tsx index 140609e883..e2e1bebb2d 100644 --- a/src/icon/star.tsx +++ b/src/icon/star.tsx @@ -1,7 +1,5 @@ - /* Copyright (c) Uber Technologies, Inc. - This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree. */ @@ -10,16 +8,14 @@ LICENSE file in the root directory of this source tree. import * as React from 'react'; import { useStyletron } from '../styles'; import { mergeOverride, toObjectOverride } from '../helpers/overrides'; - import Icon from './icon'; import type { IconProps } from './types'; // @ts-ignore -function Search(props: IconProps, ref) { +function Star(props: IconProps, ref) { const [, theme] = useStyletron(); const { title = 'Star', size, color, overrides = {}, ...restProps } = props; const SvgOverride = mergeOverride( - // Icons from the theme target the SVG override in the underlying Icon component { component: theme.icons && theme.icons.Star ? theme.icons.Star : null, }, @@ -35,11 +31,11 @@ function Search(props: IconProps, ref) { overrides={{ Svg: SvgOverride }} {...restProps} > - + ); }