@randstad-uca/design-system 1.0.35 → 1.0.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Select.d.ts +5 -2
- package/dist/index.js +187 -108
- package/dist/index.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/stories/Select.stories.d.ts +7 -0
- package/package.json +1 -1
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
2
|
type SelectOption = string | {
|
|
3
3
|
label: string;
|
|
4
|
-
value: string;
|
|
4
|
+
value: string | object;
|
|
5
5
|
disabled?: boolean;
|
|
6
|
+
icon?: string;
|
|
6
7
|
};
|
|
7
8
|
export declare class FilterableSelect extends LitElement {
|
|
8
9
|
options: SelectOption[];
|
|
9
10
|
placeholder: string;
|
|
10
11
|
defaultValue: string;
|
|
11
12
|
disabled: boolean;
|
|
13
|
+
value: string | object;
|
|
12
14
|
label: string;
|
|
13
|
-
value: string;
|
|
14
15
|
labelColor: string;
|
|
15
16
|
filterable: boolean;
|
|
16
17
|
maxLength?: number;
|
|
@@ -23,6 +24,7 @@ export declare class FilterableSelect extends LitElement {
|
|
|
23
24
|
isOpen: boolean;
|
|
24
25
|
mobileFilterValue: string;
|
|
25
26
|
private highlightedIndex;
|
|
27
|
+
private _isCleared;
|
|
26
28
|
private debounceTimeout;
|
|
27
29
|
static styles: import("lit").CSSResult;
|
|
28
30
|
update(changedProperties: Map<string, any>): void;
|
|
@@ -37,6 +39,7 @@ export declare class FilterableSelect extends LitElement {
|
|
|
37
39
|
handleIconClick(): void;
|
|
38
40
|
handleClickOutside(e: Event): void;
|
|
39
41
|
handleKeyDown(e: KeyboardEvent): void;
|
|
42
|
+
private renderSelectedIcon;
|
|
40
43
|
render(): import("lit-html").TemplateResult<1>;
|
|
41
44
|
}
|
|
42
45
|
export {};
|