Inline base64 source maps had been checked into tracked src files. This strips those comments from the repository without changing runtime behavior or adding ongoing guardrails, per the requested one-time cleanup scope. Constraint: Keep this change limited to tracked source cleanup only Rejected: Add CI/source verification guard | user requested one-time cleanup only Confidence: high Scope-risk: narrow Reversibility: clean Directive: If these directives reappear, fix the producing transform instead of reintroducing repo-side cleanup code Tested: rg -n "sourceMappingURL" ., bun run smoke, bun run verify:privacy, bun run test:provider, npm run test:provider-recommendation Not-tested: bun run typecheck (repository has many pre-existing unrelated failures) Co-authored-by: anandh8x <test@example.com>
68 lines
1.7 KiB
TypeScript
68 lines
1.7 KiB
TypeScript
import { c as _c } from "react-compiler-runtime";
|
|
import React, { type ReactNode } from 'react';
|
|
import { ListItem } from '../design-system/ListItem.js';
|
|
export type SelectOptionProps = {
|
|
/**
|
|
* Determines if option is focused.
|
|
*/
|
|
readonly isFocused: boolean;
|
|
|
|
/**
|
|
* Determines if option is selected.
|
|
*/
|
|
readonly isSelected: boolean;
|
|
|
|
/**
|
|
* Option label.
|
|
*/
|
|
readonly children: ReactNode;
|
|
|
|
/**
|
|
* Optional description to display below the label.
|
|
*/
|
|
readonly description?: string;
|
|
|
|
/**
|
|
* Determines if the down arrow should be shown.
|
|
*/
|
|
readonly shouldShowDownArrow?: boolean;
|
|
|
|
/**
|
|
* Determines if the up arrow should be shown.
|
|
*/
|
|
readonly shouldShowUpArrow?: boolean;
|
|
|
|
/**
|
|
* Whether ListItem should declare the terminal cursor position.
|
|
* Set false when a child declares its own cursor (e.g. BaseTextInput).
|
|
*/
|
|
readonly declareCursor?: boolean;
|
|
};
|
|
export function SelectOption(t0) {
|
|
const $ = _c(8);
|
|
const {
|
|
isFocused,
|
|
isSelected,
|
|
children,
|
|
description,
|
|
shouldShowDownArrow,
|
|
shouldShowUpArrow,
|
|
declareCursor
|
|
} = t0;
|
|
let t1;
|
|
if ($[0] !== children || $[1] !== declareCursor || $[2] !== description || $[3] !== isFocused || $[4] !== isSelected || $[5] !== shouldShowDownArrow || $[6] !== shouldShowUpArrow) {
|
|
t1 = <ListItem isFocused={isFocused} isSelected={isSelected} description={description} showScrollDown={shouldShowDownArrow} showScrollUp={shouldShowUpArrow} styled={false} declareCursor={declareCursor}>{children}</ListItem>;
|
|
$[0] = children;
|
|
$[1] = declareCursor;
|
|
$[2] = description;
|
|
$[3] = isFocused;
|
|
$[4] = isSelected;
|
|
$[5] = shouldShowDownArrow;
|
|
$[6] = shouldShowUpArrow;
|
|
$[7] = t1;
|
|
} else {
|
|
t1 = $[7];
|
|
}
|
|
return t1;
|
|
}
|