@elvia/elvis-dropdown
Advanced tools
Comparing version 7.0.2 to 7.1.0
@@ -5,2 +5,14 @@ { | ||
{ | ||
"date": "12.06.23", | ||
"version": "7.1.0", | ||
"changelog": [ | ||
{ | ||
"type": "bug_fix", | ||
"changes": [ | ||
"Now exporting some types for use with web component. They are available from <code>import {} from '@elvia/elvis-dropdown';</code>." | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"date": "01.06.23", | ||
@@ -7,0 +19,0 @@ "version": "7.0.2", |
@@ -1,3 +0,1 @@ | ||
export declare const Input: import("styled-components").StyledComponent<"input", any, { | ||
type: "text"; | ||
}, "type">; | ||
export declare const Input: import("styled-components").StyledComponent<"input", any, {}, never>; |
import { FormFieldSizes, BaseProps, HasValue, HasError } from '@elvia/elvis-toolbox'; | ||
import { DropdownItemStatus } from './statusToIconMap'; | ||
import { DropdownItem, DropdownValue, DropdownValueType } from './sharedTypes'; | ||
export { DropdownItem, DropdownValue, DropdownValueType } from './sharedTypes'; | ||
export type DropdownMenuPosition = 'top' | 'bottom' | 'auto'; | ||
export type DropdownValueType = string | number; | ||
export type DropdownValue = DropdownValueType | DropdownValueType[] | undefined | null; | ||
export interface DropdownItem { | ||
value: DropdownValueType; | ||
label: string; | ||
icon?: string; | ||
isDisabled?: boolean; | ||
status?: DropdownItemStatus; | ||
tooltip?: string; | ||
children?: DropdownItem[]; | ||
} | ||
export interface DropdownProps extends BaseProps, HasValue<DropdownValue>, HasError { | ||
@@ -16,0 +6,0 @@ /** |
@@ -5,3 +5,3 @@ /* | ||
*/ | ||
export{}; | ||
export{DropdownItem,DropdownValue,DropdownValueType}from"./sharedTypes"; | ||
//# sourceMappingURL=elviaDropdown.types.js.map |
import type { IconType } from '@elvia/elvis-assets-icons/dist/icons/_iconType'; | ||
import { ColorLabel } from '@elvia/elvis-colors'; | ||
export type DropdownItemStatus = 'error' | 'warning' | 'info' | 'informative'; | ||
import { DropdownItemStatus } from './sharedTypes'; | ||
type StatusToIconMap = { | ||
@@ -5,0 +5,0 @@ [key in DropdownItemStatus]: { |
{ | ||
"name": "@elvia/elvis-dropdown", | ||
"version": "7.0.2", | ||
"version": "7.1.0", | ||
"main": "web_component.js", | ||
@@ -9,2 +9,3 @@ "license": "MIT", | ||
"web_component.js", | ||
"web_component.d.ts", | ||
"react.js", | ||
@@ -11,0 +12,0 @@ "react.d.ts", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
193486
68
1859