-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(combobox, combobox-item): add
description
, shortHeading
prop…
…s and `content-end` slot (#9771) **Related Issue:** #3695 ## Summary This adds the following enhancements to `combobox`/`combobox-item`: * `description` prop - displays description below label * `shortHeading` prop - displays short version of the heading (label) in selection * `content-end` slot - enables slotting non-interactive elements after the item's content **Note**: the new props are filterable and also participate in visual matching
- Loading branch information
Showing
7 changed files
with
238 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 17 additions & 7 deletions
24
packages/calcite-components/src/components/combobox-item/resources.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,24 @@ | ||
import { Scale } from "../interfaces"; | ||
|
||
export const CSS = { | ||
icon: "icon", | ||
iconActive: "icon--active", | ||
iconIndent: "icon--indent", | ||
active: "label--active", | ||
centerContent: "center-content", | ||
container: "container", | ||
custom: "icon--custom", | ||
description: "description", | ||
dot: "icon--dot", | ||
single: "label--single", | ||
filterMatch: "filter-match", | ||
icon: "icon", | ||
iconActive: "icon--active", | ||
label: "label", | ||
active: "label--active", | ||
scale: (scale: Scale) => `scale--${scale}` as const, | ||
selected: "label--selected", | ||
title: "title", | ||
shortText: "short-text", | ||
single: "label--single", | ||
textContainer: "text-container", | ||
filterMatch: "filter-match", | ||
title: "title", | ||
}; | ||
|
||
export const SLOTS = { | ||
contentEnd: "content-end", | ||
}; |
Oops, something went wrong.