@hashicorp/design-system-components
Version:
Helios Design System Components
41 lines (40 loc) • 1.76 kB
TypeScript
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
import Component from '@glimmer/component';
import { HdsDropdownListItemInteractiveColorValues } from './types.ts';
import type { HdsIconSignature } from '../../icon';
import type { HdsInteractiveSignature } from '../../interactive';
import type { HdsDropdownListItemInteractiveColors } from './types.ts';
import type { ComponentLike } from '@glint/template';
import type { HdsBadgeSignature } from '../../badge/index.ts';
import type Owner from '@ember/owner';
export declare const DEFAULT_COLOR = HdsDropdownListItemInteractiveColorValues.Action;
export declare const COLORS: string[];
export interface HdsDropdownListItemInteractiveSignature {
Args: HdsInteractiveSignature['Args'] & {
color?: HdsDropdownListItemInteractiveColors;
icon?: HdsIconSignature['Args']['name'];
isLoading?: boolean;
/**
* @deprecated The `@text` argument for "Hds::Dropdown::ListItem::Interactive" has been deprecated. Please put text in the yielded block. See: https://helios.hashicorp.design/components/dropdown?tab=version%20history#4100
*/
text?: string;
trailingIcon?: HdsIconSignature['Args']['name'];
};
Blocks: {
default?: [
{
Badge?: ComponentLike<HdsBadgeSignature>;
}
];
};
Element: HTMLDivElement | HdsInteractiveSignature['Element'];
}
export default class HdsDropdownListItemInteractive extends Component<HdsDropdownListItemInteractiveSignature> {
constructor(owner: Owner, args: HdsDropdownListItemInteractiveSignature['Args']);
get text(): string;
get color(): HdsDropdownListItemInteractiveColors;
get classNames(): string;
}