-
Notifications
You must be signed in to change notification settings - Fork 322
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into refactor/dropdown-migrate-to-ts-fixes
- Loading branch information
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
38 changes: 38 additions & 0 deletions
38
packages/core/src/components/Dropdown/DropdownConstants.tsx
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import { Theme } from "../ThemeProvider/ThemeProviderConstants"; | ||
|
||
export const defaultCustomStyles = (baseStyles: string) => baseStyles; | ||
|
||
export enum ADD_AUTO_HEIGHT_COMPONENTS { | ||
CONTAINER = "container", | ||
CONTROL = "control", | ||
VALUE_CONTAINER = "valueContainer" | ||
} | ||
|
||
export const DROPDOWN_MENU_ARIA_LABEL = "Dropdown menu"; | ||
|
||
export const DROPDOWN_MENU_ID = "dropdown-menu-list-id"; | ||
|
||
export const DROPDOWN_ID = "dropdown-menu-id"; | ||
|
||
export enum DROPDOWN_CHIP_COLORS { | ||
PRIMARY = "PRIMARY", | ||
NEGATIVE = "NEGATIVE", | ||
POSITIVE = "POSITIVE" | ||
} | ||
|
||
export enum DROPDOWN_MENU_POSITION { | ||
ABSOLUTE = "absolute", | ||
FIXED = "fixed" | ||
} | ||
|
||
export enum DROPDOWN_MENU_PLACEMENT { | ||
TOP = "top", | ||
BOTTOM = "bottom", | ||
AUTO = "auto" | ||
} | ||
|
||
export type DropdownOption = { | ||
label: string; | ||
value: string | number | Theme; | ||
isMandatory?: boolean; | ||
}; |