Skip to content

Commit 64703d4

Browse files
remove dead code
1 parent c060fad commit 64703d4

File tree

1 file changed

+2
-19
lines changed
  • libs/ui-react/src/lib/Components/Select

1 file changed

+2
-19
lines changed

libs/ui-react/src/lib/Components/Select/types.ts

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -172,13 +172,11 @@ export type SelectContentProps = {
172172
export type SelectListProps = {
173173
/**
174174
* A render function that receives each item and its index, returning a ReactNode.
175-
* Can also accept static ReactNode children, which are rendered as-is.
175+
* Can also accept static ReactNode children.
176176
*
177177
* When items are grouped, this render function is used for individual items
178178
* within each group — the group scaffolding (headers, separators, collection)
179-
* is handled automatically by `SelectList` **only when `children` is provided as
180-
* a render function**. If you pass static ReactNode children while using grouped
181-
* items, you are responsible for rendering any group headers or separators.
179+
* is handled automatically by `SelectList`.
182180
* @example children={(item) => <SelectItem value={item.value}>{item.label}</SelectItem>}
183181
*/
184182
children?: ReactNode | ((item: SelectItemData, index: number) => ReactNode);
@@ -188,21 +186,6 @@ export type SelectListProps = {
188186
className?: string;
189187
} & Omit<ComponentPropsWithRef<'div'>, 'children'>;
190188

191-
export type SelectGroupProps = {
192-
/**
193-
* The children of the select group.
194-
*/
195-
children: ReactNode;
196-
/**
197-
* Items to be rendered within this group.
198-
*/
199-
items?: readonly SelectItemData[];
200-
/**
201-
* Extra class names to apply to the group element.
202-
*/
203-
className?: string;
204-
} & ComponentPropsWithRef<'div'>;
205-
206189
export type SelectLabelProps = {
207190
/**
208191
* The children of the select label.

0 commit comments

Comments
 (0)