@florid-kit/components 2.1.6 → 2.2.1
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/components/input.d.ts +37 -0
- package/components/search-input.d.ts +25 -0
- package/components/wishlist-button.d.ts +2 -0
- package/index.js +559 -327
- package/index.mjs +1529 -1116
- package/package.json +1 -1
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import { IconName } from '../assets/icons/icons';
|
|
3
|
+
|
|
4
|
+
declare const inputBaseClass: import('../behaviors/mixin').MixinReturn<typeof LitElement, import('../behaviors/element-internals.js').WithElementInternals>;
|
|
5
|
+
export declare class OccitaneInput extends inputBaseClass {
|
|
6
|
+
static readonly formAssociated = true;
|
|
7
|
+
label: string;
|
|
8
|
+
value: string;
|
|
9
|
+
placeholder: string;
|
|
10
|
+
helperText: string;
|
|
11
|
+
state: "default" | "error" | "success";
|
|
12
|
+
disabled: boolean;
|
|
13
|
+
leadingIcon: IconName | "";
|
|
14
|
+
trailingIcon: IconName | "";
|
|
15
|
+
name: string;
|
|
16
|
+
required: boolean;
|
|
17
|
+
clearLabel: string;
|
|
18
|
+
inputId: string;
|
|
19
|
+
private inputEl;
|
|
20
|
+
static shadowRootOptions: ShadowRootInit;
|
|
21
|
+
constructor();
|
|
22
|
+
static styles: import('lit').CSSResult;
|
|
23
|
+
updated(changed: Map<string, unknown>): void;
|
|
24
|
+
formResetCallback(): void;
|
|
25
|
+
private handleInput;
|
|
26
|
+
private handleChange;
|
|
27
|
+
private handleClear;
|
|
28
|
+
private renderHelperIcon;
|
|
29
|
+
private renderTrailingIcon;
|
|
30
|
+
render(): import('lit').TemplateResult<1>;
|
|
31
|
+
}
|
|
32
|
+
declare global {
|
|
33
|
+
interface HTMLElementTagNameMap {
|
|
34
|
+
"o-input": OccitaneInput;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
|
|
3
|
+
export declare class OccitaneSearchInput extends LitElement {
|
|
4
|
+
label: string;
|
|
5
|
+
value: string;
|
|
6
|
+
placeholder: string;
|
|
7
|
+
helperText: string;
|
|
8
|
+
state: "default" | "error" | "success";
|
|
9
|
+
disabled: boolean;
|
|
10
|
+
theme: "default" | "light";
|
|
11
|
+
trigger: "input" | "enter" | "change";
|
|
12
|
+
onSearch?: (value: string) => void;
|
|
13
|
+
static shadowRootOptions: ShadowRootInit;
|
|
14
|
+
static styles: import('lit').CSSResult;
|
|
15
|
+
private dispatchSearch;
|
|
16
|
+
private handleInput;
|
|
17
|
+
private handleKeyDown;
|
|
18
|
+
private handleChange;
|
|
19
|
+
render(): import('lit').TemplateResult<1>;
|
|
20
|
+
}
|
|
21
|
+
declare global {
|
|
22
|
+
interface HTMLElementTagNameMap {
|
|
23
|
+
"o-search-input": OccitaneSearchInput;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -4,6 +4,8 @@ type Status = "empty" | "filled";
|
|
|
4
4
|
export declare class OccitaneWishlistButton extends LitElement {
|
|
5
5
|
static styles: import('lit').CSSResult;
|
|
6
6
|
status: Status;
|
|
7
|
+
icon: string;
|
|
8
|
+
bgstyle: string;
|
|
7
9
|
ariaDescribedBy: string;
|
|
8
10
|
label: string;
|
|
9
11
|
connectedCallback(): void;
|