@value variables: "../../style/variables.module.css"; @value buttonPrimaryTextColor from…
- User
@value variables: "../../style/variables.module.css";
@value buttonPrimaryTextColor from variables;
.dropdown { padding: 0.8rem 1.5rem; }
.dropdownForward { padding: 0.6rem 1.5rem; min-height: 3.9rem; align-items: center; }
.dropdownItems .tags { display: flex; flex-wrap: wrap; gap: 1rem; }
.dropdownItems .tag { display: flex; align-items: center; justify-content: center; height: 2rem; border: 0.5px solid var(--secondary_border); box-sizing: border-box; padding: 0.2rem 2rem; font-weight: 400; line-height: normal; background: var(--icon_background); border-radius: 5px; color: var(--header_text); font-size: 1.4rem; }
.dropdownItems .placeholder { width: 100%; height: 2rem; display: flex; justify-content: space-between; align-items: center; }
.dropdownItems .placeholder label { color: var(--primary_text_dark); font-size: 1.8rem; font-weight: 400; line-height: normal; }
.dropdownItems .placeholder i { color: #b6b6b6; }
.dropdownItems .selection { display: flex; width: 100%; white-space: nowrap; overflow: hidden; align-items: center; text-overflow: ellipsis; }
.item { padding: 1rem; display: flex; justify-content: flex-start; align-items: center; }
.label { padding-left: 2rem; }
.searchItem { padding: 2rem 2rem 1.2rem 2rem; width: inherit; }
.searchIcon:hover { cursor: pointer; filter: brightness(80%); }
.noSearchResultsItem { padding: 1rem 2rem 1rem 2rem; color: #ccc; text-align: center; }
.selection > label { font-weight: 400; font-size: 1.8rem; line-height: normal; color: var(--header_text); white-space: nowrap; text-overflow: ellipsis; overflow: hidden; } the above code is a css code of DropdownItem import { Placement } from "@popperjs/core" import classNames from "classnames" import { CSSProperties, Fragment, ReactNode, useEffect, useRef, useState, } from "react" import { Checkbox } from "../checkbox/checkbox.component" import { InputContainer } from "../input-container/input-container.component" import { Input } from "../input/input.component" import { Menu, MenuItem } from "../menu" import { Popup } from "../popup/popup.component" import { PopupOptions, PopupPosition } from "../popup/popup.types" import styles from "./dropdown.styles.module.css"
export function DropdownItems({ style, menuStyle, menuClassName, menuItemClassName, dropDownContent, popupStyle, mode = "primary", type = "dropdown", checkboxes = true, multiselect = false, placeholder, selectMaxDisplayed = 1, onSearch, items, itemRender, tagRender, elemRender, checked, onChange, searchNoResultsLabel, searchPlaceholder, onClose, checkBoxPosition = "left", }: { style?: CSSProperties menuStyle?: CSSProperties menuClassName?: string menuItemClassName?: string dropDownContent?: string popupStyle?: CSSProperties mode?: "primary" | "secondary" type?: "dropdown" | "tags" | "forward" multiselect?: boolean checkboxes?: boolean items: T[] itemRender: (item: T, checked: boolean) => ReactNode tagRender?: (item: T, checked: boolean) => ReactNode elemRender?: (item: T, checked: boolean) => ReactNode checked: (item: T) => boolean onChange: (item: T, checked: boolean) => void onSearch?: (items: T[], keyword: string) => T[] onClose?: () => void placeholder: string selectMaxDisplayed?: number searchNoResultsLabel?: string searchPlaceholder?: string checkBoxPosition?: "left" | "right" }) { // --------------------------------------------------------------------------- // variables // ---------------------------------------------------------------------------
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.